/*! For license information please see app.js.LICENSE.txt */

(() => {
  var e,
    t = {
      299: (e, t, i) => {
        "use strict";
        var n = {};
        i.r(n),
          i.d(n, {
            Cell: () => xl,
            Component: () => Zs,
            Config: () => Rc,
            Grid: () => Qc,
            PluginPosition: () => pc,
            Row: () => wl,
            className: () => kl,
            createElement: () => qs,
            createRef: () => Us,
            h: () => qs,
            html: () => bl,
            useConfig: () => Ql,
            useEffect: () => Xl,
            useRef: () => Wl,
            useSelector: () => ac,
            useState: () => Yl,
            useStore: () => rc,
            useTranslator: () => ic,
          });
        var r = {};
        i.r(r),
          i.d(r, { getBrwoserScrollbarWidth: () => Yu, toggleCode: () => Hu });
        var a = {};
        i.r(a),
          i.d(a, { initExample1: () => Gu, initGridTableExapmle: () => qu });
        var o = {};
        i.r(o), i.d(o, { initFormValidationExample: () => Vu });
        var s = {};
        i.r(s),
          i.d(s, {
            charts: () => Xu,
            formValidation: () => o,
            initCreditCard: () => Uu,
            tables: () => a,
            tomSelect: () => Wu,
          });
        var l,
          c,
          u,
          d,
          h = !1,
          f = !1,
          p = [];
        function g(e) {
          !(function (e) {
            p.includes(e) || p.push(e);
            f || h || ((h = !0), queueMicrotask(v));
          })(e);
        }
        function m(e) {
          let t = p.indexOf(e);
          -1 !== t && p.splice(t, 1);
        }
        function v() {
          (h = !1), (f = !0);
          for (let e = 0; e < p.length; e++) p[e]();
          (p.length = 0), (f = !1);
        }
        var b = !0;
        function y(e) {
          c = e;
        }
        var x = [],
          w = [],
          E = [];
        function _(e, t) {
          "function" == typeof t
            ? (e._x_cleanups || (e._x_cleanups = []), e._x_cleanups.push(t))
            : ((t = e), w.push(t));
        }
        function S(e, t) {
          e._x_attributeCleanups &&
            Object.entries(e._x_attributeCleanups).forEach(([i, n]) => {
              (void 0 === t || t.includes(i)) &&
                (n.forEach((e) => e()), delete e._x_attributeCleanups[i]);
            });
        }
        var A = new MutationObserver(D),
          k = !1;
        function T() {
          A.observe(document, {
            subtree: !0,
            childList: !0,
            attributes: !0,
            attributeOldValue: !0,
          }),
            (k = !0);
        }
        function C() {
          (O = O.concat(A.takeRecords())).length &&
            !I &&
            ((I = !0),
            queueMicrotask(() => {
              D(O), (O.length = 0), (I = !1);
            })),
            A.disconnect(),
            (k = !1);
        }
        var O = [],
          I = !1;
        function M(e) {
          if (!k) return e();
          C();
          let t = e();
          return T(), t;
        }
        var L = !1,
          P = [];
        function D(e) {
          if (L) return void (P = P.concat(e));
          let t = [],
            i = [],
            n = new Map(),
            r = new Map();
          for (let a = 0; a < e.length; a++)
            if (
              !e[a].target._x_ignoreMutationObserver &&
              ("childList" === e[a].type &&
                (e[a].addedNodes.forEach((e) => 1 === e.nodeType && t.push(e)),
                e[a].removedNodes.forEach(
                  (e) => 1 === e.nodeType && i.push(e)
                )),
              "attributes" === e[a].type)
            ) {
              let t = e[a].target,
                i = e[a].attributeName,
                o = e[a].oldValue,
                s = () => {
                  n.has(t) || n.set(t, []),
                    n.get(t).push({ name: i, value: t.getAttribute(i) });
                },
                l = () => {
                  r.has(t) || r.set(t, []), r.get(t).push(i);
                };
              t.hasAttribute(i) && null === o
                ? s()
                : t.hasAttribute(i)
                ? (l(), s())
                : l();
            }
          r.forEach((e, t) => {
            S(t, e);
          }),
            n.forEach((e, t) => {
              x.forEach((i) => i(t, e));
            });
          for (let e of i)
            if (!t.includes(e) && (w.forEach((t) => t(e)), e._x_cleanups))
              for (; e._x_cleanups.length; ) e._x_cleanups.pop()();
          t.forEach((e) => {
            (e._x_ignoreSelf = !0), (e._x_ignore = !0);
          });
          for (let e of t)
            i.includes(e) ||
              (e.isConnected &&
                (delete e._x_ignoreSelf,
                delete e._x_ignore,
                E.forEach((t) => t(e)),
                (e._x_ignore = !0),
                (e._x_ignoreSelf = !0)));
          t.forEach((e) => {
            delete e._x_ignoreSelf, delete e._x_ignore;
          }),
            (t = null),
            (i = null),
            (n = null),
            (r = null);
        }
        function R(e) {
          return z(B(e));
        }
        function N(e, t, i) {
          return (
            (e._x_dataStack = [t, ...B(i || e)]),
            () => {
              e._x_dataStack = e._x_dataStack.filter((e) => e !== t);
            }
          );
        }
        function F(e, t) {
          let i = e._x_dataStack[0];
          Object.entries(t).forEach(([e, t]) => {
            i[e] = t;
          });
        }
        function B(e) {
          return e._x_dataStack
            ? e._x_dataStack
            : "function" == typeof ShadowRoot && e instanceof ShadowRoot
            ? B(e.host)
            : e.parentNode
            ? B(e.parentNode)
            : [];
        }
        function z(e) {
          let t = new Proxy(
            {},
            {
              ownKeys: () =>
                Array.from(new Set(e.flatMap((e) => Object.keys(e)))),
              has: (t, i) => e.some((e) => e.hasOwnProperty(i)),
              get: (i, n) =>
                (e.find((e) => {
                  if (e.hasOwnProperty(n)) {
                    let i = Object.getOwnPropertyDescriptor(e, n);
                    if (
                      (i.get && i.get._x_alreadyBound) ||
                      (i.set && i.set._x_alreadyBound)
                    )
                      return !0;
                    if ((i.get || i.set) && i.enumerable) {
                      let r = i.get,
                        a = i.set,
                        o = i;
                      (r = r && r.bind(t)),
                        (a = a && a.bind(t)),
                        r && (r._x_alreadyBound = !0),
                        a && (a._x_alreadyBound = !0),
                        Object.defineProperty(e, n, { ...o, get: r, set: a });
                    }
                    return !0;
                  }
                  return !1;
                }) || {})[n],
              set: (t, i, n) => {
                let r = e.find((e) => e.hasOwnProperty(i));
                return r ? (r[i] = n) : (e[e.length - 1][i] = n), !0;
              },
            }
          );
          return t;
        }
        function j(e) {
          let t = (i, n = "") => {
            Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(
              ([r, { value: a, enumerable: o }]) => {
                if (!1 === o || void 0 === a) return;
                let s = "" === n ? r : `${n}.${r}`;
                var l;
                "object" == typeof a && null !== a && a._x_interceptor
                  ? (i[r] = a.initialize(e, s, r))
                  : "object" != typeof (l = a) ||
                    Array.isArray(l) ||
                    null === l ||
                    a === i ||
                    a instanceof Element ||
                    t(a, s);
              }
            );
          };
          return t(e);
        }
        function H(e, t = () => {}) {
          let i = {
            initialValue: void 0,
            _x_interceptor: !0,
            initialize(t, i, n) {
              return e(
                this.initialValue,
                () =>
                  (function (e, t) {
                    return t.split(".").reduce((e, t) => e[t], e);
                  })(t, i),
                (e) => Y(t, i, e),
                i,
                n
              );
            },
          };
          return (
            t(i),
            (e) => {
              if ("object" == typeof e && null !== e && e._x_interceptor) {
                let t = i.initialize.bind(i);
                i.initialize = (n, r, a) => {
                  let o = e.initialize(n, r, a);
                  return (i.initialValue = o), t(n, r, a);
                };
              } else i.initialValue = e;
              return i;
            }
          );
        }
        function Y(e, t, i) {
          if (("string" == typeof t && (t = t.split(".")), 1 !== t.length)) {
            if (0 === t.length) throw error;
            return e[t[0]] || (e[t[0]] = {}), Y(e[t[0]], t.slice(1), i);
          }
          e[t[0]] = i;
        }
        var X = {};
        function W(e, t) {
          X[e] = t;
        }
        function G(e, t) {
          return (
            Object.entries(X).forEach(([i, n]) => {
              Object.defineProperty(e, `$${i}`, {
                get() {
                  let [e, i] = ue(t);
                  return (e = { interceptor: H, ...e }), _(t, i), n(t, e);
                },
                enumerable: !1,
              });
            }),
            e
          );
        }
        function q(e, t, i, ...n) {
          try {
            return i(...n);
          } catch (i) {
            V(i, e, t);
          }
        }
        function V(e, t, i) {
          Object.assign(e, { el: t, expression: i }),
            console.warn(
              `Alpine Expression Error: ${e.message}\n\n${
                i ? 'Expression: "' + i + '"\n\n' : ""
              }`,
              t
            ),
            setTimeout(() => {
              throw e;
            }, 0);
        }
        var U = !0;
        function $(e, t, i = {}) {
          let n;
          return Z(e, t)((e) => (n = e), i), n;
        }
        function Z(...e) {
          return K(...e);
        }
        var K = J;
        function J(e, t) {
          let i = {};
          G(i, e);
          let n = [i, ...B(e)];
          if ("function" == typeof t)
            return (function (e, t) {
              return (i = () => {}, { scope: n = {}, params: r = [] } = {}) => {
                ee(i, t.apply(z([n, ...e]), r));
              };
            })(n, t);
          let r = (function (e, t, i) {
            let n = (function (e, t) {
              if (Q[e]) return Q[e];
              let i = Object.getPrototypeOf(async function () {}).constructor,
                n =
                  /^[\n\s]*if.*\(.*\)/.test(e) || /^(let|const)\s/.test(e)
                    ? `(async()=>{ ${e} })()`
                    : e;
              const r = () => {
                try {
                  return new i(
                    ["__self", "scope"],
                    `with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`
                  );
                } catch (i) {
                  return V(i, t, e), Promise.resolve();
                }
              };
              let a = r();
              return (Q[e] = a), a;
            })(t, i);
            return (r = () => {}, { scope: a = {}, params: o = [] } = {}) => {
              (n.result = void 0), (n.finished = !1);
              let s = z([a, ...e]);
              if ("function" == typeof n) {
                let e = n(n, s).catch((e) => V(e, i, t));
                n.finished
                  ? (ee(r, n.result, s, o, i), (n.result = void 0))
                  : e
                      .then((e) => {
                        ee(r, e, s, o, i);
                      })
                      .catch((e) => V(e, i, t))
                      .finally(() => (n.result = void 0));
              }
            };
          })(n, t, e);
          return q.bind(null, e, t, r);
        }
        var Q = {};
        function ee(e, t, i, n, r) {
          if (U && "function" == typeof t) {
            let a = t.apply(i, n);
            a instanceof Promise
              ? a.then((t) => ee(e, t, i, n)).catch((e) => V(e, r, t))
              : e(a);
          } else
            "object" == typeof t && t instanceof Promise
              ? t.then((t) => e(t))
              : e(t);
        }
        var te = "x-";
        function ie(e = "") {
          return te + e;
        }
        var ne = {};
        function re(e, t) {
          return (
            (ne[e] = t),
            {
              before(t) {
                if (!ne[t])
                  return void console.warn(
                    "Cannot find directive `${directive}`. `${name}` will use the default order of execution"
                  );
                const i = be.indexOf(t) ?? be.indexOf("DEFAULT");
                i >= 0 && be.splice(i, 0, e);
              },
            }
          );
        }
        function ae(e, t, i) {
          if (((t = Array.from(t)), e._x_virtualDirectives)) {
            let i = Object.entries(e._x_virtualDirectives).map(([e, t]) => ({
                name: e,
                value: t,
              })),
              n = oe(i);
            (i = i.map((e) =>
              n.find((t) => t.name === e.name)
                ? { name: `x-bind:${e.name}`, value: `"${e.value}"` }
                : e
            )),
              (t = t.concat(i));
          }
          let n = {},
            r = t
              .map(he((e, t) => (n[e] = t)))
              .filter(ge)
              .map(
                (function (e, t) {
                  return ({ name: i, value: n }) => {
                    let r = i.match(me()),
                      a = i.match(/:([a-zA-Z0-9\-:]+)/),
                      o = i.match(/\.[^.\]]+(?=[^\]]*$)/g) || [],
                      s = t || e[i] || i;
                    return {
                      type: r ? r[1] : null,
                      value: a ? a[1] : null,
                      modifiers: o.map((e) => e.replace(".", "")),
                      expression: n,
                      original: s,
                    };
                  };
                })(n, i)
              )
              .sort(ye);
          return r.map((t) =>
            (function (e, t) {
              let i = () => {},
                n = ne[t.type] || i,
                [r, a] = ue(e);
              !(function (e, t, i) {
                e._x_attributeCleanups || (e._x_attributeCleanups = {}),
                  e._x_attributeCleanups[t] || (e._x_attributeCleanups[t] = []),
                  e._x_attributeCleanups[t].push(i);
              })(e, t.original, a);
              let o = () => {
                e._x_ignore ||
                  e._x_ignoreSelf ||
                  (n.inline && n.inline(e, t, r),
                  (n = n.bind(n, e, t, r)),
                  se ? le.get(ce).push(n) : n());
              };
              return (o.runCleanups = a), o;
            })(e, t)
          );
        }
        function oe(e) {
          return Array.from(e)
            .map(he())
            .filter((e) => !ge(e));
        }
        var se = !1,
          le = new Map(),
          ce = Symbol();
        function ue(e) {
          let t = [],
            [i, n] = (function (e) {
              let t = () => {};
              return [
                (i) => {
                  let n = c(i);
                  return (
                    e._x_effects ||
                      ((e._x_effects = new Set()),
                      (e._x_runEffects = () => {
                        e._x_effects.forEach((e) => e());
                      })),
                    e._x_effects.add(n),
                    (t = () => {
                      void 0 !== n && (e._x_effects.delete(n), u(n));
                    }),
                    n
                  );
                },
                () => {
                  t();
                },
              ];
            })(e);
          t.push(n);
          return [
            {
              Alpine: at,
              effect: i,
              cleanup: (e) => t.push(e),
              evaluateLater: Z.bind(Z, e),
              evaluate: $.bind($, e),
            },
            () => t.forEach((e) => e()),
          ];
        }
        var de =
          (e, t) =>
          ({ name: i, value: n }) => (
            i.startsWith(e) && (i = i.replace(e, t)), { name: i, value: n }
          );
        function he(e = () => {}) {
          return ({ name: t, value: i }) => {
            let { name: n, value: r } = fe.reduce((e, t) => t(e), {
              name: t,
              value: i,
            });
            return n !== t && e(n, t), { name: n, value: r };
          };
        }
        var fe = [];
        function pe(e) {
          fe.push(e);
        }
        function ge({ name: e }) {
          return me().test(e);
        }
        var me = () => new RegExp(`^${te}([^:^.]+)\\b`);
        var ve = "DEFAULT",
          be = [
            "ignore",
            "ref",
            "data",
            "id",
            "radio",
            "tabs",
            "switch",
            "disclosure",
            "menu",
            "listbox",
            "combobox",
            "bind",
            "init",
            "for",
            "mask",
            "model",
            "modelable",
            "transition",
            "show",
            "if",
            ve,
            "teleport",
          ];
        function ye(e, t) {
          let i = -1 === be.indexOf(e.type) ? ve : e.type,
            n = -1 === be.indexOf(t.type) ? ve : t.type;
          return be.indexOf(i) - be.indexOf(n);
        }
        function xe(e, t, i = {}) {
          e.dispatchEvent(
            new CustomEvent(t, {
              detail: i,
              bubbles: !0,
              composed: !0,
              cancelable: !0,
            })
          );
        }
        function we(e, t) {
          if ("function" == typeof ShadowRoot && e instanceof ShadowRoot)
            return void Array.from(e.children).forEach((e) => we(e, t));
          let i = !1;
          if ((t(e, () => (i = !0)), i)) return;
          let n = e.firstElementChild;
          for (; n; ) we(n, t), (n = n.nextElementSibling);
        }
        function Ee(e, ...t) {
          console.warn(`Alpine Warning: ${e}`, ...t);
        }
        var _e = [],
          Se = [];
        function Ae() {
          return _e.map((e) => e());
        }
        function ke() {
          return _e.concat(Se).map((e) => e());
        }
        function Te(e) {
          _e.push(e);
        }
        function Ce(e) {
          Se.push(e);
        }
        function Oe(e, t = !1) {
          return Ie(e, (e) => {
            if ((t ? ke() : Ae()).some((t) => e.matches(t))) return !0;
          });
        }
        function Ie(e, t) {
          if (e) {
            if (t(e)) return e;
            if ((e._x_teleportBack && (e = e._x_teleportBack), e.parentElement))
              return Ie(e.parentElement, t);
          }
        }
        var Me = [];
        function Le(e, t = we, i = () => {}) {
          !(function (e) {
            se = !0;
            let t = Symbol();
            (ce = t), le.set(t, []);
            let i = () => {
              for (; le.get(t).length; ) le.get(t).shift()();
              le.delete(t);
            };
            e(i), (se = !1), i();
          })(() => {
            t(e, (e, t) => {
              i(e, t),
                Me.forEach((i) => i(e, t)),
                ae(e, e.attributes).forEach((e) => e()),
                e._x_ignore && t();
            });
          });
        }
        function Pe(e) {
          we(e, (e) => S(e));
        }
        var De = [],
          Re = !1;
        function Ne(e = () => {}) {
          return (
            queueMicrotask(() => {
              Re ||
                setTimeout(() => {
                  Fe();
                });
            }),
            new Promise((t) => {
              De.push(() => {
                e(), t();
              });
            })
          );
        }
        function Fe() {
          for (Re = !1; De.length; ) De.shift()();
        }
        function Be(e, t) {
          return Array.isArray(t)
            ? ze(e, t.join(" "))
            : "object" == typeof t && null !== t
            ? (function (e, t) {
                let i = (e) => e.split(" ").filter(Boolean),
                  n = Object.entries(t)
                    .flatMap(([e, t]) => !!t && i(e))
                    .filter(Boolean),
                  r = Object.entries(t)
                    .flatMap(([e, t]) => !t && i(e))
                    .filter(Boolean),
                  a = [],
                  o = [];
                return (
                  r.forEach((t) => {
                    e.classList.contains(t) &&
                      (e.classList.remove(t), o.push(t));
                  }),
                  n.forEach((t) => {
                    e.classList.contains(t) || (e.classList.add(t), a.push(t));
                  }),
                  () => {
                    o.forEach((t) => e.classList.add(t)),
                      a.forEach((t) => e.classList.remove(t));
                  }
                );
              })(e, t)
            : "function" == typeof t
            ? Be(e, t())
            : ze(e, t);
        }
        function ze(e, t) {
          return (
            (t = !0 === t ? (t = "") : t || ""),
            ((t) => (
              e.classList.add(...t),
              () => {
                e.classList.remove(...t);
              }
            ))(
              t
                .split(" ")
                .filter((t) => !e.classList.contains(t))
                .filter(Boolean)
            )
          );
        }
        function je(e, t) {
          return "object" == typeof t && null !== t
            ? (function (e, t) {
                let i = {};
                return (
                  Object.entries(t).forEach(([t, n]) => {
                    (i[t] = e.style[t]),
                      t.startsWith("--") ||
                        (t = t
                          .replace(/([a-z])([A-Z])/g, "$1-$2")
                          .toLowerCase()),
                      e.style.setProperty(t, n);
                  }),
                  setTimeout(() => {
                    0 === e.style.length && e.removeAttribute("style");
                  }),
                  () => {
                    je(e, i);
                  }
                );
              })(e, t)
            : (function (e, t) {
                let i = e.getAttribute("style", t);
                return (
                  e.setAttribute("style", t),
                  () => {
                    e.setAttribute("style", i || "");
                  }
                );
              })(e, t);
        }
        function He(e, t = () => {}) {
          let i = !1;
          return function () {
            i ? t.apply(this, arguments) : ((i = !0), e.apply(this, arguments));
          };
        }
        function Ye(e, t, i = {}) {
          e._x_transition ||
            (e._x_transition = {
              enter: { during: i, start: i, end: i },
              leave: { during: i, start: i, end: i },
              in(i = () => {}, n = () => {}) {
                We(
                  e,
                  t,
                  {
                    during: this.enter.during,
                    start: this.enter.start,
                    end: this.enter.end,
                  },
                  i,
                  n
                );
              },
              out(i = () => {}, n = () => {}) {
                We(
                  e,
                  t,
                  {
                    during: this.leave.during,
                    start: this.leave.start,
                    end: this.leave.end,
                  },
                  i,
                  n
                );
              },
            });
        }
        function Xe(e) {
          let t = e.parentNode;
          if (t) return t._x_hidePromise ? t : Xe(t);
        }
        function We(
          e,
          t,
          { during: i, start: n, end: r } = {},
          a = () => {},
          o = () => {}
        ) {
          if (
            (e._x_transitioning && e._x_transitioning.cancel(),
            0 === Object.keys(i).length &&
              0 === Object.keys(n).length &&
              0 === Object.keys(r).length)
          )
            return a(), void o();
          let s, l, c;
          !(function (e, t) {
            let i,
              n,
              r,
              a = He(() => {
                M(() => {
                  (i = !0),
                    n || t.before(),
                    r || (t.end(), Fe()),
                    t.after(),
                    e.isConnected && t.cleanup(),
                    delete e._x_transitioning;
                });
              });
            (e._x_transitioning = {
              beforeCancels: [],
              beforeCancel(e) {
                this.beforeCancels.push(e);
              },
              cancel: He(function () {
                for (; this.beforeCancels.length; )
                  this.beforeCancels.shift()();
                a();
              }),
              finish: a,
            }),
              M(() => {
                t.start(), t.during();
              }),
              (Re = !0),
              requestAnimationFrame(() => {
                if (i) return;
                let a =
                    1e3 *
                    Number(
                      getComputedStyle(e)
                        .transitionDuration.replace(/,.*/, "")
                        .replace("s", "")
                    ),
                  o =
                    1e3 *
                    Number(
                      getComputedStyle(e)
                        .transitionDelay.replace(/,.*/, "")
                        .replace("s", "")
                    );
                0 === a &&
                  (a =
                    1e3 *
                    Number(
                      getComputedStyle(e).animationDuration.replace("s", "")
                    )),
                  M(() => {
                    t.before();
                  }),
                  (n = !0),
                  requestAnimationFrame(() => {
                    i ||
                      (M(() => {
                        t.end();
                      }),
                      Fe(),
                      setTimeout(e._x_transitioning.finish, a + o),
                      (r = !0));
                  });
              });
          })(e, {
            start() {
              s = t(e, n);
            },
            during() {
              l = t(e, i);
            },
            before: a,
            end() {
              s(), (c = t(e, r));
            },
            after: o,
            cleanup() {
              l(), c();
            },
          });
        }
        function Ge(e, t, i) {
          if (-1 === e.indexOf(t)) return i;
          const n = e[e.indexOf(t) + 1];
          if (!n) return i;
          if ("scale" === t && isNaN(n)) return i;
          if ("duration" === t) {
            let e = n.match(/([0-9]+)ms/);
            if (e) return e[1];
          }
          return "origin" === t &&
            ["top", "right", "left", "center", "bottom"].includes(
              e[e.indexOf(t) + 2]
            )
            ? [n, e[e.indexOf(t) + 2]].join(" ")
            : n;
        }
        re(
          "transition",
          (e, { value: t, modifiers: i, expression: n }, { evaluate: r }) => {
            "function" == typeof n && (n = r(n)),
              n
                ? (function (e, t, i) {
                    Ye(e, Be, "");
                    let n = {
                      enter: (t) => {
                        e._x_transition.enter.during = t;
                      },
                      "enter-start": (t) => {
                        e._x_transition.enter.start = t;
                      },
                      "enter-end": (t) => {
                        e._x_transition.enter.end = t;
                      },
                      leave: (t) => {
                        e._x_transition.leave.during = t;
                      },
                      "leave-start": (t) => {
                        e._x_transition.leave.start = t;
                      },
                      "leave-end": (t) => {
                        e._x_transition.leave.end = t;
                      },
                    };
                    n[i](t);
                  })(e, n, t)
                : (function (e, t, i) {
                    Ye(e, je);
                    let n = !t.includes("in") && !t.includes("out") && !i,
                      r = n || t.includes("in") || ["enter"].includes(i),
                      a = n || t.includes("out") || ["leave"].includes(i);
                    t.includes("in") &&
                      !n &&
                      (t = t.filter((e, i) => i < t.indexOf("out")));
                    t.includes("out") &&
                      !n &&
                      (t = t.filter((e, i) => i > t.indexOf("out")));
                    let o = !t.includes("opacity") && !t.includes("scale"),
                      s = o || t.includes("opacity"),
                      l = o || t.includes("scale"),
                      c = s ? 0 : 1,
                      u = l ? Ge(t, "scale", 95) / 100 : 1,
                      d = Ge(t, "delay", 0),
                      h = Ge(t, "origin", "center"),
                      f = "opacity, transform",
                      p = Ge(t, "duration", 150) / 1e3,
                      g = Ge(t, "duration", 75) / 1e3,
                      m = "cubic-bezier(0.4, 0.0, 0.2, 1)";
                    r &&
                      ((e._x_transition.enter.during = {
                        transformOrigin: h,
                        transitionDelay: d,
                        transitionProperty: f,
                        transitionDuration: `${p}s`,
                        transitionTimingFunction: m,
                      }),
                      (e._x_transition.enter.start = {
                        opacity: c,
                        transform: `scale(${u})`,
                      }),
                      (e._x_transition.enter.end = {
                        opacity: 1,
                        transform: "scale(1)",
                      }));
                    a &&
                      ((e._x_transition.leave.during = {
                        transformOrigin: h,
                        transitionDelay: d,
                        transitionProperty: f,
                        transitionDuration: `${g}s`,
                        transitionTimingFunction: m,
                      }),
                      (e._x_transition.leave.start = {
                        opacity: 1,
                        transform: "scale(1)",
                      }),
                      (e._x_transition.leave.end = {
                        opacity: c,
                        transform: `scale(${u})`,
                      }));
                  })(e, i, t);
          }
        ),
          (window.Element.prototype._x_toggleAndCascadeWithTransitions =
            function (e, t, i, n) {
              const r =
                "visible" === document.visibilityState
                  ? requestAnimationFrame
                  : setTimeout;
              let a = () => r(i);
              t
                ? e._x_transition &&
                  (e._x_transition.enter || e._x_transition.leave)
                  ? e._x_transition.enter &&
                    (Object.entries(e._x_transition.enter.during).length ||
                      Object.entries(e._x_transition.enter.start).length ||
                      Object.entries(e._x_transition.enter.end).length)
                    ? e._x_transition.in(i)
                    : a()
                  : e._x_transition
                  ? e._x_transition.in(i)
                  : a()
                : ((e._x_hidePromise = e._x_transition
                    ? new Promise((t, i) => {
                        e._x_transition.out(
                          () => {},
                          () => t(n)
                        ),
                          e._x_transitioning.beforeCancel(() =>
                            i({ isFromCancelledTransition: !0 })
                          );
                      })
                    : Promise.resolve(n)),
                  queueMicrotask(() => {
                    let t = Xe(e);
                    t
                      ? (t._x_hideChildren || (t._x_hideChildren = []),
                        t._x_hideChildren.push(e))
                      : r(() => {
                          let t = (e) => {
                            let i = Promise.all([
                              e._x_hidePromise,
                              ...(e._x_hideChildren || []).map(t),
                            ]).then(([e]) => e());
                            return (
                              delete e._x_hidePromise,
                              delete e._x_hideChildren,
                              i
                            );
                          };
                          t(e).catch((e) => {
                            if (!e.isFromCancelledTransition) throw e;
                          });
                        });
                  }));
            });
        var qe = !1;
        function Ve(e, t = () => {}) {
          return (...i) => (qe ? t(...i) : e(...i));
        }
        function Ue(e, t, i, n = []) {
          switch (
            (e._x_bindings || (e._x_bindings = l({})),
            (e._x_bindings[t] = i),
            (t = n.includes("camel")
              ? t.toLowerCase().replace(/-(\w)/g, (e, t) => t.toUpperCase())
              : t))
          ) {
            case "value":
              !(function (e, t) {
                if ("radio" === e.type)
                  void 0 === e.attributes.value && (e.value = t),
                    window.fromModel && (e.checked = $e(e.value, t));
                else if ("checkbox" === e.type)
                  Number.isInteger(t)
                    ? (e.value = t)
                    : Number.isInteger(t) ||
                      Array.isArray(t) ||
                      "boolean" == typeof t ||
                      [null, void 0].includes(t)
                    ? Array.isArray(t)
                      ? (e.checked = t.some((t) => $e(t, e.value)))
                      : (e.checked = !!t)
                    : (e.value = String(t));
                else if ("SELECT" === e.tagName)
                  !(function (e, t) {
                    const i = [].concat(t).map((e) => e + "");
                    Array.from(e.options).forEach((e) => {
                      e.selected = i.includes(e.value);
                    });
                  })(e, t);
                else {
                  if (e.value === t) return;
                  e.value = t;
                }
              })(e, i);
              break;
            case "style":
              !(function (e, t) {
                e._x_undoAddedStyles && e._x_undoAddedStyles();
                e._x_undoAddedStyles = je(e, t);
              })(e, i);
              break;
            case "class":
              !(function (e, t) {
                e._x_undoAddedClasses && e._x_undoAddedClasses();
                e._x_undoAddedClasses = Be(e, t);
              })(e, i);
              break;
            default:
              !(function (e, t, i) {
                [null, void 0, !1].includes(i) &&
                (function (e) {
                  return ![
                    "aria-pressed",
                    "aria-checked",
                    "aria-expanded",
                    "aria-selected",
                  ].includes(e);
                })(t)
                  ? e.removeAttribute(t)
                  : (Ze(t) && (i = t),
                    (function (e, t, i) {
                      e.getAttribute(t) != i && e.setAttribute(t, i);
                    })(e, t, i));
              })(e, t, i);
          }
        }
        function $e(e, t) {
          return e == t;
        }
        function Ze(e) {
          return [
            "disabled",
            "checked",
            "required",
            "readonly",
            "hidden",
            "open",
            "selected",
            "autofocus",
            "itemscope",
            "multiple",
            "novalidate",
            "allowfullscreen",
            "allowpaymentrequest",
            "formnovalidate",
            "autoplay",
            "controls",
            "loop",
            "muted",
            "playsinline",
            "default",
            "ismap",
            "reversed",
            "async",
            "defer",
            "nomodule",
          ].includes(e);
        }
        function Ke(e, t) {
          var i;
          return function () {
            var n = this,
              r = arguments;
            clearTimeout(i),
              (i = setTimeout(function () {
                (i = null), e.apply(n, r);
              }, t));
          };
        }
        function Je(e, t) {
          let i;
          return function () {
            let n = this,
              r = arguments;
            i || (e.apply(n, r), (i = !0), setTimeout(() => (i = !1), t));
          };
        }
        var Qe = {},
          et = !1;
        var tt = {};
        function it(e, t, i) {
          let n = [];
          for (; n.length; ) n.pop()();
          let r = Object.entries(t).map(([e, t]) => ({ name: e, value: t })),
            a = oe(r);
          (r = r.map((e) =>
            a.find((t) => t.name === e.name)
              ? { name: `x-bind:${e.name}`, value: `"${e.value}"` }
              : e
          )),
            ae(e, r, i).map((e) => {
              n.push(e.runCleanups), e();
            });
        }
        var nt = {};
        var rt = {
            get reactive() {
              return l;
            },
            get release() {
              return u;
            },
            get effect() {
              return c;
            },
            get raw() {
              return d;
            },
            version: "3.11.1",
            flushAndStopDeferringMutations: function () {
              (L = !1), D(P), (P = []);
            },
            dontAutoEvaluateFunctions: function (e) {
              let t = U;
              (U = !1), e(), (U = t);
            },
            disableEffectScheduling: function (e) {
              (b = !1), e(), (b = !0);
            },
            startObservingMutations: T,
            stopObservingMutations: C,
            setReactivityEngine: function (e) {
              (l = e.reactive),
                (u = e.release),
                (c = (t) =>
                  e.effect(t, {
                    scheduler: (e) => {
                      b ? g(e) : e();
                    },
                  })),
                (d = e.raw);
            },
            closestDataStack: B,
            skipDuringClone: Ve,
            onlyDuringClone: function (e) {
              return (...t) => qe && e(...t);
            },
            addRootSelector: Te,
            addInitSelector: Ce,
            addScopeToNode: N,
            deferMutations: function () {
              L = !0;
            },
            mapAttributes: pe,
            evaluateLater: Z,
            interceptInit: function (e) {
              Me.push(e);
            },
            setEvaluator: function (e) {
              K = e;
            },
            mergeProxies: z,
            findClosest: Ie,
            closestRoot: Oe,
            destroyTree: Pe,
            interceptor: H,
            transition: We,
            setStyles: je,
            mutateDom: M,
            directive: re,
            throttle: Je,
            debounce: Ke,
            evaluate: $,
            initTree: Le,
            nextTick: Ne,
            prefixed: ie,
            prefix: function (e) {
              te = e;
            },
            plugin: function (e) {
              e(at);
            },
            magic: W,
            store: function (e, t) {
              if ((et || ((Qe = l(Qe)), (et = !0)), void 0 === t)) return Qe[e];
              (Qe[e] = t),
                "object" == typeof t &&
                  null !== t &&
                  t.hasOwnProperty("init") &&
                  "function" == typeof t.init &&
                  Qe[e].init(),
                j(Qe[e]);
            },
            start: function () {
              var e;
              document.body ||
                Ee(
                  "Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"
                ),
                xe(document, "alpine:init"),
                xe(document, "alpine:initializing"),
                T(),
                (e = (e) => Le(e, we)),
                E.push(e),
                _((e) => Pe(e)),
                (function (e) {
                  x.push(e);
                })((e, t) => {
                  ae(e, t).forEach((e) => e());
                }),
                Array.from(document.querySelectorAll(ke()))
                  .filter((e) => !Oe(e.parentElement, !0))
                  .forEach((e) => {
                    Le(e);
                  }),
                xe(document, "alpine:initialized");
            },
            clone: function (e, t) {
              t._x_dataStack || (t._x_dataStack = e._x_dataStack),
                (qe = !0),
                (function (e) {
                  let t = c;
                  y((e, i) => {
                    let n = t(e);
                    return u(n), () => {};
                  }),
                    e(),
                    y(t);
                })(() => {
                  !(function (e) {
                    let t = !1;
                    Le(e, (e, i) => {
                      we(e, (e, n) => {
                        if (
                          t &&
                          (function (e) {
                            return Ae().some((t) => e.matches(t));
                          })(e)
                        )
                          return n();
                        (t = !0), i(e, n);
                      });
                    });
                  })(t);
                }),
                (qe = !1);
            },
            bound: function (e, t, i) {
              if (e._x_bindings && void 0 !== e._x_bindings[t])
                return e._x_bindings[t];
              let n = e.getAttribute(t);
              return null === n
                ? "function" == typeof i
                  ? i()
                  : i
                : "" === n || (Ze(t) ? !![t, "true"].includes(n) : n);
            },
            $data: R,
            walk: we,
            data: function (e, t) {
              nt[e] = t;
            },
            bind: function (e, t) {
              let i = "function" != typeof t ? () => t : t;
              e instanceof Element ? it(e, i()) : (tt[e] = i);
            },
          },
          at = rt;
        function ot(e, t) {
          const i = Object.create(null),
            n = e.split(",");
          for (let e = 0; e < n.length; e++) i[n[e]] = !0;
          return t ? (e) => !!i[e.toLowerCase()] : (e) => !!i[e];
        }
        var st,
          lt = Object.freeze({}),
          ct = (Object.freeze([]), Object.assign),
          ut = Object.prototype.hasOwnProperty,
          dt = (e, t) => ut.call(e, t),
          ht = Array.isArray,
          ft = (e) => "[object Map]" === vt(e),
          pt = (e) => "symbol" == typeof e,
          gt = (e) => null !== e && "object" == typeof e,
          mt = Object.prototype.toString,
          vt = (e) => mt.call(e),
          bt = (e) => vt(e).slice(8, -1),
          yt = (e) =>
            "string" == typeof e &&
            "NaN" !== e &&
            "-" !== e[0] &&
            "" + parseInt(e, 10) === e,
          xt = (e) => {
            const t = Object.create(null);
            return (i) => t[i] || (t[i] = e(i));
          },
          wt = /-(\w)/g,
          Et =
            (xt((e) => e.replace(wt, (e, t) => (t ? t.toUpperCase() : ""))),
            /\B([A-Z])/g),
          _t =
            (xt((e) => e.replace(Et, "-$1").toLowerCase()),
            xt((e) => e.charAt(0).toUpperCase() + e.slice(1))),
          St =
            (xt((e) => (e ? `on${_t(e)}` : "")),
            (e, t) => e !== t && (e == e || t == t)),
          At = new WeakMap(),
          kt = [],
          Tt = Symbol("iterate"),
          Ct = Symbol("Map key iterate");
        var Ot = 0;
        function It(e) {
          const { deps: t } = e;
          if (t.length) {
            for (let i = 0; i < t.length; i++) t[i].delete(e);
            t.length = 0;
          }
        }
        var Mt = !0,
          Lt = [];
        function Pt() {
          const e = Lt.pop();
          Mt = void 0 === e || e;
        }
        function Dt(e, t, i) {
          if (!Mt || void 0 === st) return;
          let n = At.get(e);
          n || At.set(e, (n = new Map()));
          let r = n.get(i);
          r || n.set(i, (r = new Set())),
            r.has(st) ||
              (r.add(st),
              st.deps.push(r),
              st.options.onTrack &&
                st.options.onTrack({ effect: st, target: e, type: t, key: i }));
        }
        function Rt(e, t, i, n, r, a) {
          const o = At.get(e);
          if (!o) return;
          const s = new Set(),
            l = (e) => {
              e &&
                e.forEach((e) => {
                  (e !== st || e.allowRecurse) && s.add(e);
                });
            };
          if ("clear" === t) o.forEach(l);
          else if ("length" === i && ht(e))
            o.forEach((e, t) => {
              ("length" === t || t >= n) && l(e);
            });
          else
            switch ((void 0 !== i && l(o.get(i)), t)) {
              case "add":
                ht(e)
                  ? yt(i) && l(o.get("length"))
                  : (l(o.get(Tt)), ft(e) && l(o.get(Ct)));
                break;
              case "delete":
                ht(e) || (l(o.get(Tt)), ft(e) && l(o.get(Ct)));
                break;
              case "set":
                ft(e) && l(o.get(Tt));
            }
          s.forEach((o) => {
            o.options.onTrigger &&
              o.options.onTrigger({
                effect: o,
                target: e,
                key: i,
                type: t,
                newValue: n,
                oldValue: r,
                oldTarget: a,
              }),
              o.options.scheduler ? o.options.scheduler(o) : o();
          });
        }
        var Nt = ot("__proto__,__v_isRef,__isVue"),
          Ft = new Set(
            Object.getOwnPropertyNames(Symbol)
              .map((e) => Symbol[e])
              .filter(pt)
          ),
          Bt = Xt(),
          zt = Xt(!1, !0),
          jt = Xt(!0),
          Ht = Xt(!0, !0),
          Yt = {};
        function Xt(e = !1, t = !1) {
          return function (i, n, r) {
            if ("__v_isReactive" === n) return !e;
            if ("__v_isReadonly" === n) return e;
            if (
              "__v_raw" === n &&
              r === (e ? (t ? bi : vi) : t ? mi : gi).get(i)
            )
              return i;
            const a = ht(i);
            if (!e && a && dt(Yt, n)) return Reflect.get(Yt, n, r);
            const o = Reflect.get(i, n, r);
            if (pt(n) ? Ft.has(n) : Nt(n)) return o;
            if ((e || Dt(i, "get", n), t)) return o;
            if (_i(o)) {
              return !a || !yt(n) ? o.value : o;
            }
            return gt(o) ? (e ? xi(o) : yi(o)) : o;
          };
        }
        function Wt(e = !1) {
          return function (t, i, n, r) {
            let a = t[i];
            if (!e && ((n = Ei(n)), (a = Ei(a)), !ht(t) && _i(a) && !_i(n)))
              return (a.value = n), !0;
            const o = ht(t) && yt(i) ? Number(i) < t.length : dt(t, i),
              s = Reflect.set(t, i, n, r);
            return (
              t === Ei(r) &&
                (o ? St(n, a) && Rt(t, "set", i, n, a) : Rt(t, "add", i, n)),
              s
            );
          };
        }
        ["includes", "indexOf", "lastIndexOf"].forEach((e) => {
          const t = Array.prototype[e];
          Yt[e] = function (...e) {
            const i = Ei(this);
            for (let e = 0, t = this.length; e < t; e++) Dt(i, "get", e + "");
            const n = t.apply(i, e);
            return -1 === n || !1 === n ? t.apply(i, e.map(Ei)) : n;
          };
        }),
          ["push", "pop", "shift", "unshift", "splice"].forEach((e) => {
            const t = Array.prototype[e];
            Yt[e] = function (...e) {
              Lt.push(Mt), (Mt = !1);
              const i = t.apply(this, e);
              return Pt(), i;
            };
          });
        var Gt = {
            get: Bt,
            set: Wt(),
            deleteProperty: function (e, t) {
              const i = dt(e, t),
                n = e[t],
                r = Reflect.deleteProperty(e, t);
              return r && i && Rt(e, "delete", t, void 0, n), r;
            },
            has: function (e, t) {
              const i = Reflect.has(e, t);
              return (pt(t) && Ft.has(t)) || Dt(e, "has", t), i;
            },
            ownKeys: function (e) {
              return (
                Dt(e, "iterate", ht(e) ? "length" : Tt), Reflect.ownKeys(e)
              );
            },
          },
          qt = {
            get: jt,
            set: (e, t) => (
              console.warn(
                `Set operation on key "${String(
                  t
                )}" failed: target is readonly.`,
                e
              ),
              !0
            ),
            deleteProperty: (e, t) => (
              console.warn(
                `Delete operation on key "${String(
                  t
                )}" failed: target is readonly.`,
                e
              ),
              !0
            ),
          },
          Vt =
            (ct({}, Gt, { get: zt, set: Wt(!0) }),
            ct({}, qt, { get: Ht }),
            (e) => (gt(e) ? yi(e) : e)),
          Ut = (e) => (gt(e) ? xi(e) : e),
          $t = (e) => e,
          Zt = (e) => Reflect.getPrototypeOf(e);
        function Kt(e, t, i = !1, n = !1) {
          const r = Ei((e = e.__v_raw)),
            a = Ei(t);
          t !== a && !i && Dt(r, "get", t), !i && Dt(r, "get", a);
          const { has: o } = Zt(r),
            s = n ? $t : i ? Ut : Vt;
          return o.call(r, t)
            ? s(e.get(t))
            : o.call(r, a)
            ? s(e.get(a))
            : void (e !== r && e.get(t));
        }
        function Jt(e, t = !1) {
          const i = this.__v_raw,
            n = Ei(i),
            r = Ei(e);
          return (
            e !== r && !t && Dt(n, "has", e),
            !t && Dt(n, "has", r),
            e === r ? i.has(e) : i.has(e) || i.has(r)
          );
        }
        function Qt(e, t = !1) {
          return (
            (e = e.__v_raw),
            !t && Dt(Ei(e), "iterate", Tt),
            Reflect.get(e, "size", e)
          );
        }
        function ei(e) {
          e = Ei(e);
          const t = Ei(this);
          return Zt(t).has.call(t, e) || (t.add(e), Rt(t, "add", e, e)), this;
        }
        function ti(e, t) {
          t = Ei(t);
          const i = Ei(this),
            { has: n, get: r } = Zt(i);
          let a = n.call(i, e);
          a ? pi(i, n, e) : ((e = Ei(e)), (a = n.call(i, e)));
          const o = r.call(i, e);
          return (
            i.set(e, t),
            a ? St(t, o) && Rt(i, "set", e, t, o) : Rt(i, "add", e, t),
            this
          );
        }
        function ii(e) {
          const t = Ei(this),
            { has: i, get: n } = Zt(t);
          let r = i.call(t, e);
          r ? pi(t, i, e) : ((e = Ei(e)), (r = i.call(t, e)));
          const a = n ? n.call(t, e) : void 0,
            o = t.delete(e);
          return r && Rt(t, "delete", e, void 0, a), o;
        }
        function ni() {
          const e = Ei(this),
            t = 0 !== e.size,
            i = ft(e) ? new Map(e) : new Set(e),
            n = e.clear();
          return t && Rt(e, "clear", void 0, void 0, i), n;
        }
        function ri(e, t) {
          return function (i, n) {
            const r = this,
              a = r.__v_raw,
              o = Ei(a),
              s = t ? $t : e ? Ut : Vt;
            return (
              !e && Dt(o, "iterate", Tt),
              a.forEach((e, t) => i.call(n, s(e), s(t), r))
            );
          };
        }
        function ai(e, t, i) {
          return function (...n) {
            const r = this.__v_raw,
              a = Ei(r),
              o = ft(a),
              s = "entries" === e || (e === Symbol.iterator && o),
              l = "keys" === e && o,
              c = r[e](...n),
              u = i ? $t : t ? Ut : Vt;
            return (
              !t && Dt(a, "iterate", l ? Ct : Tt),
              {
                next() {
                  const { value: e, done: t } = c.next();
                  return t
                    ? { value: e, done: t }
                    : { value: s ? [u(e[0]), u(e[1])] : u(e), done: t };
                },
                [Symbol.iterator]() {
                  return this;
                },
              }
            );
          };
        }
        function oi(e) {
          return function (...t) {
            {
              const i = t[0] ? `on key "${t[0]}" ` : "";
              console.warn(
                `${_t(e)} operation ${i}failed: target is readonly.`,
                Ei(this)
              );
            }
            return "delete" !== e && this;
          };
        }
        var si = {
            get(e) {
              return Kt(this, e);
            },
            get size() {
              return Qt(this);
            },
            has: Jt,
            add: ei,
            set: ti,
            delete: ii,
            clear: ni,
            forEach: ri(!1, !1),
          },
          li = {
            get(e) {
              return Kt(this, e, !1, !0);
            },
            get size() {
              return Qt(this);
            },
            has: Jt,
            add: ei,
            set: ti,
            delete: ii,
            clear: ni,
            forEach: ri(!1, !0),
          },
          ci = {
            get(e) {
              return Kt(this, e, !0);
            },
            get size() {
              return Qt(this, !0);
            },
            has(e) {
              return Jt.call(this, e, !0);
            },
            add: oi("add"),
            set: oi("set"),
            delete: oi("delete"),
            clear: oi("clear"),
            forEach: ri(!0, !1),
          },
          ui = {
            get(e) {
              return Kt(this, e, !0, !0);
            },
            get size() {
              return Qt(this, !0);
            },
            has(e) {
              return Jt.call(this, e, !0);
            },
            add: oi("add"),
            set: oi("set"),
            delete: oi("delete"),
            clear: oi("clear"),
            forEach: ri(!0, !0),
          };
        function di(e, t) {
          const i = t ? (e ? ui : li) : e ? ci : si;
          return (t, n, r) =>
            "__v_isReactive" === n
              ? !e
              : "__v_isReadonly" === n
              ? e
              : "__v_raw" === n
              ? t
              : Reflect.get(dt(i, n) && n in t ? i : t, n, r);
        }
        ["keys", "values", "entries", Symbol.iterator].forEach((e) => {
          (si[e] = ai(e, !1, !1)),
            (ci[e] = ai(e, !0, !1)),
            (li[e] = ai(e, !1, !0)),
            (ui[e] = ai(e, !0, !0));
        });
        var hi = { get: di(!1, !1) },
          fi = (di(!1, !0), { get: di(!0, !1) });
        di(!0, !0);
        function pi(e, t, i) {
          const n = Ei(i);
          if (n !== i && t.call(e, n)) {
            const t = bt(e);
            console.warn(
              `Reactive ${t} contains both the raw and reactive versions of the same object${
                "Map" === t ? " as keys" : ""
              }, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
            );
          }
        }
        var gi = new WeakMap(),
          mi = new WeakMap(),
          vi = new WeakMap(),
          bi = new WeakMap();
        function yi(e) {
          return e && e.__v_isReadonly ? e : wi(e, !1, Gt, hi, gi);
        }
        function xi(e) {
          return wi(e, !0, qt, fi, vi);
        }
        function wi(e, t, i, n, r) {
          if (!gt(e))
            return (
              console.warn(`value cannot be made reactive: ${String(e)}`), e
            );
          if (e.__v_raw && (!t || !e.__v_isReactive)) return e;
          const a = r.get(e);
          if (a) return a;
          const o =
            (s = e).__v_skip || !Object.isExtensible(s)
              ? 0
              : (function (e) {
                  switch (e) {
                    case "Object":
                    case "Array":
                      return 1;
                    case "Map":
                    case "Set":
                    case "WeakMap":
                    case "WeakSet":
                      return 2;
                    default:
                      return 0;
                  }
                })(bt(s));
          var s;
          if (0 === o) return e;
          const l = new Proxy(e, 2 === o ? n : i);
          return r.set(e, l), l;
        }
        function Ei(e) {
          return (e && Ei(e.__v_raw)) || e;
        }
        function _i(e) {
          return Boolean(e && !0 === e.__v_isRef);
        }
        W("nextTick", () => Ne),
          W("dispatch", (e) => xe.bind(xe, e)),
          W("watch", (e, { evaluateLater: t, effect: i }) => (n, r) => {
            let a,
              o = t(n),
              s = !0,
              l = i(() =>
                o((e) => {
                  JSON.stringify(e),
                    s
                      ? (a = e)
                      : queueMicrotask(() => {
                          r(e, a), (a = e);
                        }),
                    (s = !1);
                })
              );
            e._x_effects.delete(l);
          }),
          W("store", function () {
            return Qe;
          }),
          W("data", (e) => R(e)),
          W("root", (e) => Oe(e)),
          W(
            "refs",
            (e) => (
              e._x_refs_proxy ||
                (e._x_refs_proxy = z(
                  (function (e) {
                    let t = [],
                      i = e;
                    for (; i; )
                      i._x_refs && t.push(i._x_refs), (i = i.parentNode);
                    return t;
                  })(e)
                )),
              e._x_refs_proxy
            )
          );
        var Si = {};
        function Ai(e) {
          return Si[e] || (Si[e] = 0), ++Si[e];
        }
        function ki(e, t, i) {
          W(t, (t) =>
            Ee(
              `You can't use [$${directiveName}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${i}`,
              t
            )
          );
        }
        W("id", (e) => (t, i = null) => {
          let n = (function (e, t) {
              return Ie(e, (e) => {
                if (e._x_ids && e._x_ids[t]) return !0;
              });
            })(e, t),
            r = n ? n._x_ids[t] : Ai(t);
          return i ? `${t}-${r}-${i}` : `${t}-${r}`;
        }),
          W("el", (e) => e),
          ki("Focus", "focus", "focus"),
          ki("Persist", "persist", "persist"),
          re(
            "modelable",
            (
              e,
              { expression: t },
              { effect: i, evaluateLater: n, cleanup: r }
            ) => {
              let a = n(t),
                o = () => {
                  let e;
                  return a((t) => (e = t)), e;
                },
                s = n(`${t} = __placeholder`),
                l = (e) => s(() => {}, { scope: { __placeholder: e } }),
                d = o();
              l(d),
                queueMicrotask(() => {
                  if (!e._x_model) return;
                  e._x_removeModelListeners.default();
                  let t = e._x_model.get,
                    i = e._x_model.set,
                    n = (function ({ get: e, set: t }, { get: i, set: n }) {
                      let r,
                        a,
                        o,
                        s,
                        l = !0,
                        d = c(() => {
                          let c, u;
                          l
                            ? ((c = e()), n(c), (u = i()), (l = !1))
                            : ((c = e()),
                              (u = i()),
                              (o = JSON.stringify(c)),
                              (s = JSON.stringify(u)),
                              o !== r
                                ? ((u = i()), n(c), (u = c))
                                : (t(u), (c = u))),
                            (r = JSON.stringify(c)),
                            (a = JSON.stringify(u));
                        });
                      return () => {
                        u(d);
                      };
                    })(
                      {
                        get: () => t(),
                        set(e) {
                          i(e);
                        },
                      },
                      {
                        get: () => o(),
                        set(e) {
                          l(e);
                        },
                      }
                    );
                  r(n);
                });
            }
          );
        var Ti = document.createElement("div");
        re("teleport", (e, { modifiers: t, expression: i }, { cleanup: n }) => {
          "template" !== e.tagName.toLowerCase() &&
            Ee("x-teleport can only be used on a <template> tag", e);
          let r = Ve(
            () => document.querySelector(i),
            () => Ti
          )();
          r || Ee(`Cannot find x-teleport element for selector: "${i}"`);
          let a = e.content.cloneNode(!0).firstElementChild;
          (e._x_teleport = a),
            (a._x_teleportBack = e),
            e._x_forwardEvents &&
              e._x_forwardEvents.forEach((t) => {
                a.addEventListener(t, (t) => {
                  t.stopPropagation(),
                    e.dispatchEvent(new t.constructor(t.type, t));
                });
              }),
            N(a, {}, e),
            M(() => {
              t.includes("prepend")
                ? r.parentNode.insertBefore(a, r)
                : t.includes("append")
                ? r.parentNode.insertBefore(a, r.nextSibling)
                : r.appendChild(a),
                Le(a),
                (a._x_ignore = !0);
            }),
            n(() => a.remove());
        });
        var Ci = () => {};
        function Oi(e, t, i, n) {
          let r = e,
            a = (e) => n(e),
            o = {},
            s = (e, t) => (i) => t(e, i);
          if (
            (i.includes("dot") && (t = t.replace(/-/g, ".")),
            i.includes("camel") &&
              (t = (function (e) {
                return e
                  .toLowerCase()
                  .replace(/-(\w)/g, (e, t) => t.toUpperCase());
              })(t)),
            i.includes("passive") && (o.passive = !0),
            i.includes("capture") && (o.capture = !0),
            i.includes("window") && (r = window),
            i.includes("document") && (r = document),
            i.includes("prevent") &&
              (a = s(a, (e, t) => {
                t.preventDefault(), e(t);
              })),
            i.includes("stop") &&
              (a = s(a, (e, t) => {
                t.stopPropagation(), e(t);
              })),
            i.includes("self") &&
              (a = s(a, (t, i) => {
                i.target === e && t(i);
              })),
            (i.includes("away") || i.includes("outside")) &&
              ((r = document),
              (a = s(a, (t, i) => {
                e.contains(i.target) ||
                  (!1 !== i.target.isConnected &&
                    ((e.offsetWidth < 1 && e.offsetHeight < 1) ||
                      (!1 !== e._x_isShown && t(i))));
              }))),
            i.includes("once") &&
              (a = s(a, (e, i) => {
                e(i), r.removeEventListener(t, a, o);
              })),
            (a = s(a, (e, n) => {
              ((function (e) {
                return ["keydown", "keyup"].includes(e);
              })(t) &&
                (function (e, t) {
                  let i = t.filter(
                    (e) =>
                      ![
                        "window",
                        "document",
                        "prevent",
                        "stop",
                        "once",
                      ].includes(e)
                  );
                  if (i.includes("debounce")) {
                    let e = i.indexOf("debounce");
                    i.splice(
                      e,
                      Ii((i[e + 1] || "invalid-wait").split("ms")[0]) ? 2 : 1
                    );
                  }
                  if (i.includes("throttle")) {
                    let e = i.indexOf("throttle");
                    i.splice(
                      e,
                      Ii((i[e + 1] || "invalid-wait").split("ms")[0]) ? 2 : 1
                    );
                  }
                  if (0 === i.length) return !1;
                  if (1 === i.length && Mi(e.key).includes(i[0])) return !1;
                  const n = [
                    "ctrl",
                    "shift",
                    "alt",
                    "meta",
                    "cmd",
                    "super",
                  ].filter((e) => i.includes(e));
                  if (((i = i.filter((e) => !n.includes(e))), n.length > 0)) {
                    if (
                      n.filter(
                        (t) => (
                          ("cmd" !== t && "super" !== t) || (t = "meta"),
                          e[`${t}Key`]
                        )
                      ).length === n.length &&
                      Mi(e.key).includes(i[0])
                    )
                      return !1;
                  }
                  return !0;
                })(n, i)) ||
                e(n);
            })),
            i.includes("debounce"))
          ) {
            let e = i[i.indexOf("debounce") + 1] || "invalid-wait",
              t = Ii(e.split("ms")[0]) ? Number(e.split("ms")[0]) : 250;
            a = Ke(a, t);
          }
          if (i.includes("throttle")) {
            let e = i[i.indexOf("throttle") + 1] || "invalid-wait",
              t = Ii(e.split("ms")[0]) ? Number(e.split("ms")[0]) : 250;
            a = Je(a, t);
          }
          return (
            r.addEventListener(t, a, o),
            () => {
              r.removeEventListener(t, a, o);
            }
          );
        }
        function Ii(e) {
          return !Array.isArray(e) && !isNaN(e);
        }
        function Mi(e) {
          if (!e) return [];
          var t;
          e = [" ", "_"].includes((t = e))
            ? t
            : t
                .replace(/([a-z])([A-Z])/g, "$1-$2")
                .replace(/[_\s]/, "-")
                .toLowerCase();
          let i = {
            ctrl: "control",
            slash: "/",
            space: " ",
            spacebar: " ",
            cmd: "meta",
            esc: "escape",
            up: "arrow-up",
            down: "arrow-down",
            left: "arrow-left",
            right: "arrow-right",
            period: ".",
            equal: "=",
            minus: "-",
            underscore: "_",
          };
          return (
            (i[e] = e),
            Object.keys(i)
              .map((t) => {
                if (i[t] === e) return t;
              })
              .filter((e) => e)
          );
        }
        function Li(e) {
          let t = e ? parseFloat(e) : null;
          return (i = t), Array.isArray(i) || isNaN(i) ? e : t;
          var i;
        }
        function Pi(e) {
          return (
            null !== e &&
            "object" == typeof e &&
            "function" == typeof e.get &&
            "function" == typeof e.set
          );
        }
        function Di(e, t, i, n) {
          let r = {};
          if (/^\[.*\]$/.test(e.item) && Array.isArray(t)) {
            let i = e.item
              .replace("[", "")
              .replace("]", "")
              .split(",")
              .map((e) => e.trim());
            i.forEach((e, i) => {
              r[e] = t[i];
            });
          } else if (
            /^\{.*\}$/.test(e.item) &&
            !Array.isArray(t) &&
            "object" == typeof t
          ) {
            let i = e.item
              .replace("{", "")
              .replace("}", "")
              .split(",")
              .map((e) => e.trim());
            i.forEach((e) => {
              r[e] = t[e];
            });
          } else r[e.item] = t;
          return (
            e.index && (r[e.index] = i),
            e.collection && (r[e.collection] = n),
            r
          );
        }
        function Ri() {}
        function Ni(e, t, i) {
          re(t, (n) =>
            Ee(
              `You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${i}`,
              n
            )
          );
        }
        (Ci.inline = (e, { modifiers: t }, { cleanup: i }) => {
          t.includes("self") ? (e._x_ignoreSelf = !0) : (e._x_ignore = !0),
            i(() => {
              t.includes("self") ? delete e._x_ignoreSelf : delete e._x_ignore;
            });
        }),
          re("ignore", Ci),
          re("effect", (e, { expression: t }, { effect: i }) => i(Z(e, t))),
          re(
            "model",
            (e, { modifiers: t, expression: i }, { effect: n, cleanup: r }) => {
              let a = e;
              t.includes("parent") && (a = e.parentNode);
              let o,
                s = Z(a, i);
              o =
                "string" == typeof i
                  ? Z(a, `${i} = __placeholder`)
                  : "function" == typeof i && "string" == typeof i()
                  ? Z(a, `${i()} = __placeholder`)
                  : () => {};
              let l = () => {
                  let e;
                  return s((t) => (e = t)), Pi(e) ? e.get() : e;
                },
                c = (e) => {
                  let t;
                  s((e) => (t = e)),
                    Pi(t)
                      ? t.set(e)
                      : o(() => {}, { scope: { __placeholder: e } });
                };
              "string" == typeof i &&
                "radio" === e.type &&
                M(() => {
                  e.hasAttribute("name") || e.setAttribute("name", i);
                });
              var u =
                "select" === e.tagName.toLowerCase() ||
                ["checkbox", "radio"].includes(e.type) ||
                t.includes("lazy")
                  ? "change"
                  : "input";
              let d = Oi(e, u, t, (i) => {
                c(
                  (function (e, t, i, n) {
                    return M(() => {
                      if (i instanceof CustomEvent && void 0 !== i.detail)
                        return void 0 !== i.detail ? i.detail : i.target.value;
                      if ("checkbox" === e.type) {
                        if (Array.isArray(n)) {
                          let e = t.includes("number")
                            ? Li(i.target.value)
                            : i.target.value;
                          return i.target.checked
                            ? n.concat([e])
                            : n.filter((t) => !(t == e));
                        }
                        return i.target.checked;
                      }
                      if ("select" === e.tagName.toLowerCase() && e.multiple)
                        return t.includes("number")
                          ? Array.from(i.target.selectedOptions).map((e) =>
                              Li(e.value || e.text)
                            )
                          : Array.from(i.target.selectedOptions).map(
                              (e) => e.value || e.text
                            );
                      {
                        let e = i.target.value;
                        return t.includes("number")
                          ? Li(e)
                          : t.includes("trim")
                          ? e.trim()
                          : e;
                      }
                    });
                  })(e, t, i, l())
                );
              });
              if (
                (e._x_removeModelListeners || (e._x_removeModelListeners = {}),
                (e._x_removeModelListeners.default = d),
                r(() => e._x_removeModelListeners.default()),
                e.form)
              ) {
                let t = Oi(e.form, "reset", [], (t) => {
                  Ne(() => e._x_model && e._x_model.set(e.value));
                });
                r(() => t());
              }
              (e._x_model = {
                get: () => l(),
                set(e) {
                  c(e);
                },
              }),
                (e._x_forceModelUpdate = (t) => {
                  void 0 === (t = void 0 === t ? l() : t) &&
                    "string" == typeof i &&
                    i.match(/\./) &&
                    (t = ""),
                    (window.fromModel = !0),
                    M(() => Ue(e, "value", t)),
                    delete window.fromModel;
                }),
                n(() => {
                  let i = l();
                  (t.includes("unintrusive") &&
                    document.activeElement.isSameNode(e)) ||
                    e._x_forceModelUpdate(i);
                });
            }
          ),
          re("cloak", (e) =>
            queueMicrotask(() => M(() => e.removeAttribute(ie("cloak"))))
          ),
          Ce(() => `[${ie("init")}]`),
          re(
            "init",
            Ve((e, { expression: t }, { evaluate: i }) =>
              "string" == typeof t ? !!t.trim() && i(t, {}, !1) : i(t, {}, !1)
            )
          ),
          re(
            "text",
            (e, { expression: t }, { effect: i, evaluateLater: n }) => {
              let r = n(t);
              i(() => {
                r((t) => {
                  M(() => {
                    e.textContent = t;
                  });
                });
              });
            }
          ),
          re(
            "html",
            (e, { expression: t }, { effect: i, evaluateLater: n }) => {
              let r = n(t);
              i(() => {
                r((t) => {
                  M(() => {
                    (e.innerHTML = t),
                      (e._x_ignoreSelf = !0),
                      Le(e),
                      delete e._x_ignoreSelf;
                  });
                });
              });
            }
          ),
          pe(de(":", ie("bind:"))),
          re(
            "bind",
            (
              e,
              { value: t, modifiers: i, expression: n, original: r },
              { effect: a }
            ) => {
              if (!t) {
                let t = {};
                return (
                  (o = t),
                  Object.entries(tt).forEach(([e, t]) => {
                    Object.defineProperty(o, e, {
                      get:
                        () =>
                        (...e) =>
                          t(...e),
                    });
                  }),
                  void Z(e, n)(
                    (t) => {
                      it(e, t, r);
                    },
                    { scope: t }
                  )
                );
              }
              var o;
              if ("key" === t)
                return (function (e, t) {
                  e._x_keyExpression = t;
                })(e, n);
              let s = Z(e, n);
              a(() =>
                s((r) => {
                  void 0 === r &&
                    "string" == typeof n &&
                    n.match(/\./) &&
                    (r = ""),
                    M(() => Ue(e, t, r, i));
                })
              );
            }
          ),
          Te(() => `[${ie("data")}]`),
          re(
            "data",
            Ve((e, { expression: t }, { cleanup: i }) => {
              t = "" === t ? "{}" : t;
              let n = {};
              G(n, e);
              let r = {};
              var a, o;
              (a = r),
                (o = n),
                Object.entries(nt).forEach(([e, t]) => {
                  Object.defineProperty(a, e, {
                    get:
                      () =>
                      (...e) =>
                        t.bind(o)(...e),
                    enumerable: !1,
                  });
                });
              let s = $(e, t, { scope: r });
              void 0 === s && (s = {}), G(s, e);
              let c = l(s);
              j(c);
              let u = N(e, c);
              c.init && $(e, c.init),
                i(() => {
                  c.destroy && $(e, c.destroy), u();
                });
            })
          ),
          re("show", (e, { modifiers: t, expression: i }, { effect: n }) => {
            let r = Z(e, i);
            e._x_doHide ||
              (e._x_doHide = () => {
                M(() => {
                  e.style.setProperty(
                    "display",
                    "none",
                    t.includes("important") ? "important" : void 0
                  );
                });
              }),
              e._x_doShow ||
                (e._x_doShow = () => {
                  M(() => {
                    1 === e.style.length && "none" === e.style.display
                      ? e.removeAttribute("style")
                      : e.style.removeProperty("display");
                  });
                });
            let a,
              o = () => {
                e._x_doHide(), (e._x_isShown = !1);
              },
              s = () => {
                e._x_doShow(), (e._x_isShown = !0);
              },
              l = () => setTimeout(s),
              c = He(
                (e) => (e ? s() : o()),
                (t) => {
                  "function" == typeof e._x_toggleAndCascadeWithTransitions
                    ? e._x_toggleAndCascadeWithTransitions(e, t, s, o)
                    : t
                    ? l()
                    : o();
                }
              ),
              u = !0;
            n(() =>
              r((e) => {
                (u || e !== a) &&
                  (t.includes("immediate") && (e ? l() : o()),
                  c(e),
                  (a = e),
                  (u = !1));
              })
            );
          }),
          re("for", (e, { expression: t }, { effect: i, cleanup: n }) => {
            let r = (function (e) {
                let t = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/,
                  i = /^\s*\(|\)\s*$/g,
                  n = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,
                  r = e.match(n);
                if (!r) return;
                let a = {};
                a.items = r[2].trim();
                let o = r[1].replace(i, "").trim(),
                  s = o.match(t);
                s
                  ? ((a.item = o.replace(t, "").trim()),
                    (a.index = s[1].trim()),
                    s[2] && (a.collection = s[2].trim()))
                  : (a.item = o);
                return a;
              })(t),
              a = Z(e, r.items),
              o = Z(e, e._x_keyExpression || "index");
            (e._x_prevKeys = []),
              (e._x_lookup = {}),
              i(() =>
                (function (e, t, i, n) {
                  let r = (e) => "object" == typeof e && !Array.isArray(e),
                    a = e;
                  i((i) => {
                    var o;
                    (o = i),
                      !Array.isArray(o) &&
                        !isNaN(o) &&
                        i >= 0 &&
                        (i = Array.from(Array(i).keys(), (e) => e + 1)),
                      void 0 === i && (i = []);
                    let s = e._x_lookup,
                      c = e._x_prevKeys,
                      u = [],
                      d = [];
                    if (r(i))
                      i = Object.entries(i).map(([e, r]) => {
                        let a = Di(t, r, e, i);
                        n((e) => d.push(e), { scope: { index: e, ...a } }),
                          u.push(a);
                      });
                    else
                      for (let e = 0; e < i.length; e++) {
                        let r = Di(t, i[e], e, i);
                        n((e) => d.push(e), { scope: { index: e, ...r } }),
                          u.push(r);
                      }
                    let h = [],
                      f = [],
                      p = [],
                      g = [];
                    for (let e = 0; e < c.length; e++) {
                      let t = c[e];
                      -1 === d.indexOf(t) && p.push(t);
                    }
                    c = c.filter((e) => !p.includes(e));
                    let v = "template";
                    for (let e = 0; e < d.length; e++) {
                      let t = d[e],
                        i = c.indexOf(t);
                      if (-1 === i) c.splice(e, 0, t), h.push([v, e]);
                      else if (i !== e) {
                        let t = c.splice(e, 1)[0],
                          n = c.splice(i - 1, 1)[0];
                        c.splice(e, 0, n), c.splice(i, 0, t), f.push([t, n]);
                      } else g.push(t);
                      v = t;
                    }
                    for (let e = 0; e < p.length; e++) {
                      let t = p[e];
                      s[t]._x_effects && s[t]._x_effects.forEach(m),
                        s[t].remove(),
                        (s[t] = null),
                        delete s[t];
                    }
                    for (let e = 0; e < f.length; e++) {
                      let [t, i] = f[e],
                        n = s[t],
                        r = s[i],
                        a = document.createElement("div");
                      M(() => {
                        r.after(a),
                          n.after(r),
                          r._x_currentIfEl && r.after(r._x_currentIfEl),
                          a.before(n),
                          n._x_currentIfEl && n.after(n._x_currentIfEl),
                          a.remove();
                      }),
                        F(r, u[d.indexOf(i)]);
                    }
                    for (let e = 0; e < h.length; e++) {
                      let [t, i] = h[e],
                        n = "template" === t ? a : s[t];
                      n._x_currentIfEl && (n = n._x_currentIfEl);
                      let r = u[i],
                        o = d[i],
                        c = document.importNode(
                          a.content,
                          !0
                        ).firstElementChild;
                      N(c, l(r), a),
                        M(() => {
                          n.after(c), Le(c);
                        }),
                        "object" == typeof o &&
                          Ee(
                            "x-for key cannot be an object, it must be a string or an integer",
                            a
                          ),
                        (s[o] = c);
                    }
                    for (let e = 0; e < g.length; e++)
                      F(s[g[e]], u[d.indexOf(g[e])]);
                    a._x_prevKeys = d;
                  });
                })(e, r, a, o)
              ),
              n(() => {
                Object.values(e._x_lookup).forEach((e) => e.remove()),
                  delete e._x_prevKeys,
                  delete e._x_lookup;
              });
          }),
          (Ri.inline = (e, { expression: t }, { cleanup: i }) => {
            let n = Oe(e);
            n._x_refs || (n._x_refs = {}),
              (n._x_refs[t] = e),
              i(() => delete n._x_refs[t]);
          }),
          re("ref", Ri),
          re("if", (e, { expression: t }, { effect: i, cleanup: n }) => {
            let r = Z(e, t);
            i(() =>
              r((t) => {
                t
                  ? (() => {
                      if (e._x_currentIfEl) return e._x_currentIfEl;
                      let t = e.content.cloneNode(!0).firstElementChild;
                      N(t, {}, e),
                        M(() => {
                          e.after(t), Le(t);
                        }),
                        (e._x_currentIfEl = t),
                        (e._x_undoIf = () => {
                          we(t, (e) => {
                            e._x_effects && e._x_effects.forEach(m);
                          }),
                            t.remove(),
                            delete e._x_currentIfEl;
                        });
                    })()
                  : e._x_undoIf && (e._x_undoIf(), delete e._x_undoIf);
              })
            ),
              n(() => e._x_undoIf && e._x_undoIf());
          }),
          re("id", (e, { expression: t }, { evaluate: i }) => {
            i(t).forEach((t) =>
              (function (e, t) {
                e._x_ids || (e._x_ids = {}),
                  e._x_ids[t] || (e._x_ids[t] = Ai(t));
              })(e, t)
            );
          }),
          pe(de("@", ie("on:"))),
          re(
            "on",
            Ve(
              (
                e,
                { value: t, modifiers: i, expression: n },
                { cleanup: r }
              ) => {
                let a = n ? Z(e, n) : () => {};
                "template" === e.tagName.toLowerCase() &&
                  (e._x_forwardEvents || (e._x_forwardEvents = []),
                  e._x_forwardEvents.includes(t) || e._x_forwardEvents.push(t));
                let o = Oi(e, t, i, (e) => {
                  a(() => {}, { scope: { $event: e }, params: [e] });
                });
                r(() => o());
              }
            )
          ),
          Ni("Collapse", "collapse", "collapse"),
          Ni("Intersect", "intersect", "intersect"),
          Ni("Focus", "trap", "focus"),
          Ni("Mask", "mask", "mask"),
          at.setEvaluator(J),
          at.setReactivityEngine({
            reactive: yi,
            effect: function (e, t = lt) {
              (function (e) {
                return e && !0 === e._isEffect;
              })(e) && (e = e.raw);
              const i = (function (e, t) {
                const i = function () {
                  if (!i.active) return e();
                  if (!kt.includes(i)) {
                    It(i);
                    try {
                      return Lt.push(Mt), (Mt = !0), kt.push(i), (st = i), e();
                    } finally {
                      kt.pop(), Pt(), (st = kt[kt.length - 1]);
                    }
                  }
                };
                return (
                  (i.id = Ot++),
                  (i.allowRecurse = !!t.allowRecurse),
                  (i._isEffect = !0),
                  (i.active = !0),
                  (i.raw = e),
                  (i.deps = []),
                  (i.options = t),
                  i
                );
              })(e, t);
              return t.lazy || i(), i;
            },
            release: function (e) {
              e.active &&
                (It(e),
                e.options.onStop && e.options.onStop(),
                (e.active = !1));
            },
            raw: Ei,
          });
        var Fi = at;
        function Bi(e, t) {
          return null !== t.getItem(e);
        }
        function zi(e, t) {
          return JSON.parse(t.getItem(e, t));
        }
        function ji(e, t, i) {
          i.setItem(e, JSON.stringify(t));
        }
        var Hi = function (e) {
          let t = () => {
            let t,
              i = localStorage;
            return e.interceptor(
              (n, r, a, o, s) => {
                let l = t || `_x_${o}`,
                  c = Bi(l, i) ? zi(l, i) : n;
                return (
                  a(c),
                  e.effect(() => {
                    let e = r();
                    ji(l, e, i), a(e);
                  }),
                  c
                );
              },
              (e) => {
                (e.as = (i) => ((t = i), e)), (e.using = (t) => ((i = t), e));
              }
            );
          };
          Object.defineProperty(e, "$persist", { get: () => t() }),
            e.magic("persist", t),
            (e.persist = (t, { get: i, set: n }, r = localStorage) => {
              let a = Bi(t, r) ? zi(t, r) : i();
              n(a),
                e.effect(() => {
                  let e = i();
                  ji(t, e, r), n(e);
                });
            });
        };
        function Yi(e, t, i) {
          if (-1 === e.indexOf(t)) return i;
          const n = e[e.indexOf(t) + 1];
          if (!n) return i;
          if ("duration" === t) {
            let e = n.match(/([0-9]+)ms/);
            if (e) return e[1];
          }
          if ("min" === t) {
            let e = n.match(/([0-9]+)px/);
            if (e) return e[1];
          }
          return n;
        }
        var Xi = function (e) {
          function t(t, { modifiers: i }) {
            let n = Yi(i, "duration", 250) / 1e3,
              r = Yi(i, "min", 0),
              a = !i.includes("min");
            t._x_isShown || (t.style.height = `${r}px`),
              !t._x_isShown && a && (t.hidden = !0),
              t._x_isShown || (t.style.overflow = "hidden");
            let o = (t, i) => {
                let n = e.setStyles(t, i);
                return i.height ? () => {} : n;
              },
              s = {
                transitionProperty: "height",
                transitionDuration: `${n}s`,
                transitionTimingFunction: "cubic-bezier(0.4, 0.0, 0.2, 1)",
              };
            t._x_transition = {
              in(i = () => {}, n = () => {}) {
                a && (t.hidden = !1), a && (t.style.display = null);
                let o = t.getBoundingClientRect().height;
                t.style.height = "auto";
                let l = t.getBoundingClientRect().height;
                o === l && (o = r),
                  e.transition(
                    t,
                    e.setStyles,
                    {
                      during: s,
                      start: { height: o + "px" },
                      end: { height: l + "px" },
                    },
                    () => (t._x_isShown = !0),
                    () => {
                      t.getBoundingClientRect().height == l &&
                        (t.style.overflow = null);
                    }
                  );
              },
              out(i = () => {}, n = () => {}) {
                let l = t.getBoundingClientRect().height;
                e.transition(
                  t,
                  o,
                  {
                    during: s,
                    start: { height: l + "px" },
                    end: { height: r + "px" },
                  },
                  () => (t.style.overflow = "hidden"),
                  () => {
                    (t._x_isShown = !1),
                      t.style.height == `${r}px` &&
                        a &&
                        ((t.style.display = "none"), (t.hidden = !0));
                  }
                );
              },
            };
          }
          e.directive("collapse", t),
            (t.inline = (e, { modifiers: t }) => {
              t.includes("min") &&
                ((e._x_doShow = () => {}), (e._x_doHide = () => {}));
            });
        };
        function Wi(e) {
          if (e.includes("full")) return 0.99;
          if (e.includes("half")) return 0.5;
          if (!e.includes("threshold")) return 0;
          let t = e[e.indexOf("threshold") + 1];
          return "100" === t ? 1 : "0" === t ? 0 : Number(`.${t}`);
        }
        function Gi(e) {
          let t = e.match(/^(-?[0-9]+)(px|%)?$/);
          return t ? t[1] + (t[2] || "px") : void 0;
        }
        function qi(e) {
          const t = "0px 0px 0px 0px",
            i = e.indexOf("margin");
          if (-1 === i) return t;
          let n = [];
          for (let t = 1; t < 5; t++) n.push(Gi(e[i + t] || ""));
          return (
            (n = n.filter((e) => void 0 !== e)),
            n.length ? n.join(" ").trim() : t
          );
        }
        var Vi = function (e) {
            e.directive(
              "intersect",
              (
                e,
                { value: t, expression: i, modifiers: n },
                { evaluateLater: r, cleanup: a }
              ) => {
                let o = r(i),
                  s = { rootMargin: qi(n), threshold: Wi(n) },
                  l = new IntersectionObserver((e) => {
                    e.forEach((e) => {
                      e.isIntersecting !== ("leave" === t) &&
                        (o(), n.includes("once") && l.disconnect());
                    });
                  }, s);
                l.observe(e),
                  a(() => {
                    l.disconnect();
                  });
              }
            );
          },
          Ui = i(358);
        const $i = function (e) {
          var t = typeof e;
          return null != e && ("object" == t || "function" == t);
        };
        const Zi =
          "object" == typeof global &&
          global &&
          global.Object === Object &&
          global;
        var Ki =
          "object" == typeof self && self && self.Object === Object && self;
        const Ji = Zi || Ki || Function("return this")();
        const Qi = function () {
          return Ji.Date.now();
        };
        var en = /\s/;
        const tn = function (e) {
          for (var t = e.length; t-- && en.test(e.charAt(t)); );
          return t;
        };
        var nn = /^\s+/;
        const rn = function (e) {
          return e ? e.slice(0, tn(e) + 1).replace(nn, "") : e;
        };
        const an = Ji.Symbol;
        var on = Object.prototype,
          sn = on.hasOwnProperty,
          ln = on.toString,
          cn = an ? an.toStringTag : void 0;
        const un = function (e) {
          var t = sn.call(e, cn),
            i = e[cn];
          try {
            e[cn] = void 0;
            var n = !0;
          } catch (e) {}
          var r = ln.call(e);
          return n && (t ? (e[cn] = i) : delete e[cn]), r;
        };
        var dn = Object.prototype.toString;
        const hn = function (e) {
          return dn.call(e);
        };
        var fn = "[object Null]",
          pn = "[object Undefined]",
          gn = an ? an.toStringTag : void 0;
        const mn = function (e) {
          return null == e
            ? void 0 === e
              ? pn
              : fn
            : gn && gn in Object(e)
            ? un(e)
            : hn(e);
        };
        const vn = function (e) {
          return null != e && "object" == typeof e;
        };
        var bn = "[object Symbol]";
        const yn = function (e) {
          return "symbol" == typeof e || (vn(e) && mn(e) == bn);
        };
        var xn = NaN,
          wn = /^[-+]0x[0-9a-f]+$/i,
          En = /^0b[01]+$/i,
          _n = /^0o[0-7]+$/i,
          Sn = parseInt;
        const An = function (e) {
          if ("number" == typeof e) return e;
          if (yn(e)) return xn;
          if ($i(e)) {
            var t = "function" == typeof e.valueOf ? e.valueOf() : e;
            e = $i(t) ? t + "" : t;
          }
          if ("string" != typeof e) return 0 === e ? e : +e;
          e = rn(e);
          var i = En.test(e);
          return i || _n.test(e)
            ? Sn(e.slice(2), i ? 2 : 8)
            : wn.test(e)
            ? xn
            : +e;
        };
        var kn = "Expected a function",
          Tn = Math.max,
          Cn = Math.min;
        const On = function (e, t, i) {
          var n,
            r,
            a,
            o,
            s,
            l,
            c = 0,
            u = !1,
            d = !1,
            h = !0;
          if ("function" != typeof e) throw new TypeError(kn);
          function f(t) {
            var i = n,
              a = r;
            return (n = r = void 0), (c = t), (o = e.apply(a, i));
          }
          function p(e) {
            var i = e - l;
            return void 0 === l || i >= t || i < 0 || (d && e - c >= a);
          }
          function g() {
            var e = Qi();
            if (p(e)) return m(e);
            s = setTimeout(
              g,
              (function (e) {
                var i = t - (e - l);
                return d ? Cn(i, a - (e - c)) : i;
              })(e)
            );
          }
          function m(e) {
            return (s = void 0), h && n ? f(e) : ((n = r = void 0), o);
          }
          function v() {
            var e = Qi(),
              i = p(e);
            if (((n = arguments), (r = this), (l = e), i)) {
              if (void 0 === s)
                return (function (e) {
                  return (c = e), (s = setTimeout(g, t)), u ? f(e) : o;
                })(l);
              if (d) return clearTimeout(s), (s = setTimeout(g, t)), f(l);
            }
            return void 0 === s && (s = setTimeout(g, t)), o;
          }
          return (
            (t = An(t) || 0),
            $i(i) &&
              ((u = !!i.leading),
              (a = (d = "maxWait" in i) ? Tn(An(i.maxWait) || 0, t) : a),
              (h = "trailing" in i ? !!i.trailing : h)),
            (v.cancel = function () {
              void 0 !== s && clearTimeout(s),
                (c = 0),
                (n = l = r = s = void 0);
            }),
            (v.flush = function () {
              return void 0 === s ? o : m(Qi());
            }),
            v
          );
        };
        var In = "Expected a function";
        const Mn = function (e, t, i) {
          var n = !0,
            r = !0;
          if ("function" != typeof e) throw new TypeError(In);
          return (
            $i(i) &&
              ((n = "leading" in i ? !!i.leading : n),
              (r = "trailing" in i ? !!i.trailing : r)),
            On(e, t, { leading: n, maxWait: t, trailing: r })
          );
        };
        var Ln = function () {
            return (
              (Ln =
                Object.assign ||
                function (e) {
                  for (var t, i = 1, n = arguments.length; i < n; i++)
                    for (var r in (t = arguments[i]))
                      Object.prototype.hasOwnProperty.call(t, r) &&
                        (e[r] = t[r]);
                  return e;
                }),
              Ln.apply(this, arguments)
            );
          },
          Pn = null,
          Dn = null;
        function Rn() {
          if (null === Pn) {
            if ("undefined" == typeof document) return (Pn = 0);
            var e = document.body,
              t = document.createElement("div");
            t.classList.add("simplebar-hide-scrollbar"), e.appendChild(t);
            var i = t.getBoundingClientRect().right;
            e.removeChild(t), (Pn = i);
          }
          return Pn;
        }
        function Nn(e) {
          return e && e.ownerDocument && e.ownerDocument.defaultView
            ? e.ownerDocument.defaultView
            : window;
        }
        function Fn(e) {
          return e && e.ownerDocument ? e.ownerDocument : document;
        }
        Ui &&
          window.addEventListener("resize", function () {
            Dn !== window.devicePixelRatio &&
              ((Dn = window.devicePixelRatio), (Pn = null));
          });
        var Bn = function (e) {
          return Array.prototype.reduce.call(
            e,
            function (e, t) {
              var i = t.name.match(/data-simplebar-(.+)/);
              if (i) {
                var n = i[1].replace(/\W+(.)/g, function (e, t) {
                  return t.toUpperCase();
                });
                switch (t.value) {
                  case "true":
                    e[n] = !0;
                    break;
                  case "false":
                    e[n] = !1;
                    break;
                  case void 0:
                    e[n] = !0;
                    break;
                  default:
                    e[n] = t.value;
                }
              }
              return e;
            },
            {}
          );
        };
        function zn(e, t) {
          var i;
          e && (i = e.classList).add.apply(i, t.split(" "));
        }
        function jn(e, t) {
          e &&
            t.split(" ").forEach(function (t) {
              e.classList.remove(t);
            });
        }
        function Hn(e) {
          return ".".concat(e.split(" ").join("."));
        }
        var Yn = Object.freeze({
            __proto__: null,
            addClasses: zn,
            classNamesToQuery: Hn,
            getElementDocument: Fn,
            getElementWindow: Nn,
            getOptions: Bn,
            removeClasses: jn,
          }),
          Xn = Nn,
          Wn = Fn,
          Gn = Bn,
          qn = zn,
          Vn = jn,
          Un = Hn,
          $n = (function () {
            function e(t, i) {
              void 0 === i && (i = {});
              var n = this;
              if (
                ((this.removePreventClickId = null),
                (this.minScrollbarWidth = 20),
                (this.stopScrollDelay = 175),
                (this.isScrolling = !1),
                (this.isMouseEntering = !1),
                (this.scrollXTicking = !1),
                (this.scrollYTicking = !1),
                (this.wrapperEl = null),
                (this.contentWrapperEl = null),
                (this.contentEl = null),
                (this.offsetEl = null),
                (this.maskEl = null),
                (this.placeholderEl = null),
                (this.heightAutoObserverWrapperEl = null),
                (this.heightAutoObserverEl = null),
                (this.rtlHelpers = null),
                (this.scrollbarWidth = 0),
                (this.resizeObserver = null),
                (this.mutationObserver = null),
                (this.elStyles = null),
                (this.isRtl = null),
                (this.mouseX = 0),
                (this.mouseY = 0),
                (this.onMouseMove = function () {}),
                (this.onWindowResize = function () {}),
                (this.onStopScrolling = function () {}),
                (this.onMouseEntered = function () {}),
                (this.onScroll = function () {
                  var e = Xn(n.el);
                  n.scrollXTicking ||
                    (e.requestAnimationFrame(n.scrollX),
                    (n.scrollXTicking = !0)),
                    n.scrollYTicking ||
                      (e.requestAnimationFrame(n.scrollY),
                      (n.scrollYTicking = !0)),
                    n.isScrolling ||
                      ((n.isScrolling = !0), qn(n.el, n.classNames.scrolling)),
                    n.showScrollbar("x"),
                    n.showScrollbar("y"),
                    n.onStopScrolling();
                }),
                (this.scrollX = function () {
                  n.axis.x.isOverflowing && n.positionScrollbar("x"),
                    (n.scrollXTicking = !1);
                }),
                (this.scrollY = function () {
                  n.axis.y.isOverflowing && n.positionScrollbar("y"),
                    (n.scrollYTicking = !1);
                }),
                (this._onStopScrolling = function () {
                  Vn(n.el, n.classNames.scrolling),
                    n.options.autoHide &&
                      (n.hideScrollbar("x"), n.hideScrollbar("y")),
                    (n.isScrolling = !1);
                }),
                (this.onMouseEnter = function () {
                  n.isMouseEntering ||
                    (qn(n.el, n.classNames.mouseEntered),
                    n.showScrollbar("x"),
                    n.showScrollbar("y"),
                    (n.isMouseEntering = !0)),
                    n.onMouseEntered();
                }),
                (this._onMouseEntered = function () {
                  Vn(n.el, n.classNames.mouseEntered),
                    n.options.autoHide &&
                      (n.hideScrollbar("x"), n.hideScrollbar("y")),
                    (n.isMouseEntering = !1);
                }),
                (this._onMouseMove = function (e) {
                  (n.mouseX = e.clientX),
                    (n.mouseY = e.clientY),
                    (n.axis.x.isOverflowing || n.axis.x.forceVisible) &&
                      n.onMouseMoveForAxis("x"),
                    (n.axis.y.isOverflowing || n.axis.y.forceVisible) &&
                      n.onMouseMoveForAxis("y");
                }),
                (this.onMouseLeave = function () {
                  n.onMouseMove.cancel(),
                    (n.axis.x.isOverflowing || n.axis.x.forceVisible) &&
                      n.onMouseLeaveForAxis("x"),
                    (n.axis.y.isOverflowing || n.axis.y.forceVisible) &&
                      n.onMouseLeaveForAxis("y"),
                    (n.mouseX = -1),
                    (n.mouseY = -1);
                }),
                (this._onWindowResize = function () {
                  (n.scrollbarWidth = n.getScrollbarWidth()),
                    n.hideNativeScrollbar();
                }),
                (this.onPointerEvent = function (e) {
                  var t, i;
                  n.axis.x.track.el &&
                    n.axis.y.track.el &&
                    n.axis.x.scrollbar.el &&
                    n.axis.y.scrollbar.el &&
                    ((n.axis.x.track.rect =
                      n.axis.x.track.el.getBoundingClientRect()),
                    (n.axis.y.track.rect =
                      n.axis.y.track.el.getBoundingClientRect()),
                    (n.axis.x.isOverflowing || n.axis.x.forceVisible) &&
                      (t = n.isWithinBounds(n.axis.x.track.rect)),
                    (n.axis.y.isOverflowing || n.axis.y.forceVisible) &&
                      (i = n.isWithinBounds(n.axis.y.track.rect)),
                    (t || i) &&
                      (e.stopPropagation(),
                      "pointerdown" === e.type &&
                        "touch" !== e.pointerType &&
                        (t &&
                          ((n.axis.x.scrollbar.rect =
                            n.axis.x.scrollbar.el.getBoundingClientRect()),
                          n.isWithinBounds(n.axis.x.scrollbar.rect)
                            ? n.onDragStart(e, "x")
                            : n.onTrackClick(e, "x")),
                        i &&
                          ((n.axis.y.scrollbar.rect =
                            n.axis.y.scrollbar.el.getBoundingClientRect()),
                          n.isWithinBounds(n.axis.y.scrollbar.rect)
                            ? n.onDragStart(e, "y")
                            : n.onTrackClick(e, "y")))));
                }),
                (this.drag = function (t) {
                  var i, r, a, o, s, l, c, u, d, h, f;
                  if (n.draggedAxis && n.contentWrapperEl) {
                    var p = n.axis[n.draggedAxis].track,
                      g =
                        null !==
                          (r =
                            null === (i = p.rect) || void 0 === i
                              ? void 0
                              : i[n.axis[n.draggedAxis].sizeAttr]) &&
                        void 0 !== r
                          ? r
                          : 0,
                      m = n.axis[n.draggedAxis].scrollbar,
                      v =
                        null !==
                          (o =
                            null === (a = n.contentWrapperEl) || void 0 === a
                              ? void 0
                              : a[n.axis[n.draggedAxis].scrollSizeAttr]) &&
                        void 0 !== o
                          ? o
                          : 0,
                      b = parseInt(
                        null !==
                          (l =
                            null === (s = n.elStyles) || void 0 === s
                              ? void 0
                              : s[n.axis[n.draggedAxis].sizeAttr]) &&
                          void 0 !== l
                          ? l
                          : "0px",
                        10
                      );
                    t.preventDefault(), t.stopPropagation();
                    var y =
                        ("y" === n.draggedAxis ? t.pageY : t.pageX) -
                        (null !==
                          (u =
                            null === (c = p.rect) || void 0 === c
                              ? void 0
                              : c[n.axis[n.draggedAxis].offsetAttr]) &&
                        void 0 !== u
                          ? u
                          : 0) -
                        n.axis[n.draggedAxis].dragOffset,
                      x =
                        ((y = n.isRtl
                          ? (null !==
                              (h =
                                null === (d = p.rect) || void 0 === d
                                  ? void 0
                                  : d[n.axis[n.draggedAxis].sizeAttr]) &&
                            void 0 !== h
                              ? h
                              : 0) -
                            m.size -
                            y
                          : y) /
                          (g - m.size)) *
                        (v - b);
                    "x" === n.draggedAxis &&
                      n.isRtl &&
                      (x = (
                        null === (f = e.getRtlHelpers()) || void 0 === f
                          ? void 0
                          : f.isScrollingToNegative
                      )
                        ? -x
                        : x),
                      (n.contentWrapperEl[
                        n.axis[n.draggedAxis].scrollOffsetAttr
                      ] = x);
                  }
                }),
                (this.onEndDrag = function (e) {
                  var t = Wn(n.el),
                    i = Xn(n.el);
                  e.preventDefault(),
                    e.stopPropagation(),
                    Vn(n.el, n.classNames.dragging),
                    t.removeEventListener("mousemove", n.drag, !0),
                    t.removeEventListener("mouseup", n.onEndDrag, !0),
                    (n.removePreventClickId = i.setTimeout(function () {
                      t.removeEventListener("click", n.preventClick, !0),
                        t.removeEventListener("dblclick", n.preventClick, !0),
                        (n.removePreventClickId = null);
                    }));
                }),
                (this.preventClick = function (e) {
                  e.preventDefault(), e.stopPropagation();
                }),
                (this.el = t),
                (this.options = Ln(Ln({}, e.defaultOptions), i)),
                (this.classNames = Ln(
                  Ln({}, e.defaultOptions.classNames),
                  i.classNames
                )),
                (this.axis = {
                  x: {
                    scrollOffsetAttr: "scrollLeft",
                    sizeAttr: "width",
                    scrollSizeAttr: "scrollWidth",
                    offsetSizeAttr: "offsetWidth",
                    offsetAttr: "left",
                    overflowAttr: "overflowX",
                    dragOffset: 0,
                    isOverflowing: !0,
                    forceVisible: !1,
                    track: { size: null, el: null, rect: null, isVisible: !1 },
                    scrollbar: {
                      size: null,
                      el: null,
                      rect: null,
                      isVisible: !1,
                    },
                  },
                  y: {
                    scrollOffsetAttr: "scrollTop",
                    sizeAttr: "height",
                    scrollSizeAttr: "scrollHeight",
                    offsetSizeAttr: "offsetHeight",
                    offsetAttr: "top",
                    overflowAttr: "overflowY",
                    dragOffset: 0,
                    isOverflowing: !0,
                    forceVisible: !1,
                    track: { size: null, el: null, rect: null, isVisible: !1 },
                    scrollbar: {
                      size: null,
                      el: null,
                      rect: null,
                      isVisible: !1,
                    },
                  },
                }),
                "object" != typeof this.el || !this.el.nodeName)
              )
                throw new Error(
                  "Argument passed to SimpleBar must be an HTML element instead of ".concat(
                    this.el
                  )
                );
              (this.onMouseMove = Mn(this._onMouseMove, 64)),
                (this.onWindowResize = On(this._onWindowResize, 64, {
                  leading: !0,
                })),
                (this.onStopScrolling = On(
                  this._onStopScrolling,
                  this.stopScrollDelay
                )),
                (this.onMouseEntered = On(
                  this._onMouseEntered,
                  this.stopScrollDelay
                )),
                this.init();
            }
            return (
              (e.getRtlHelpers = function () {
                if (e.rtlHelpers) return e.rtlHelpers;
                var t = document.createElement("div");
                t.innerHTML =
                  '<div class="simplebar-dummy-scrollbar-size"><div></div></div>';
                var i = t.firstElementChild,
                  n = null == i ? void 0 : i.firstElementChild;
                if (!n) return null;
                document.body.appendChild(i), (i.scrollLeft = 0);
                var r = e.getOffset(i),
                  a = e.getOffset(n);
                i.scrollLeft = -999;
                var o = e.getOffset(n);
                return (
                  document.body.removeChild(i),
                  (e.rtlHelpers = {
                    isScrollOriginAtZero: r.left !== a.left,
                    isScrollingToNegative: a.left !== o.left,
                  }),
                  e.rtlHelpers
                );
              }),
              (e.prototype.getScrollbarWidth = function () {
                try {
                  return (this.contentWrapperEl &&
                    "none" ===
                      getComputedStyle(
                        this.contentWrapperEl,
                        "::-webkit-scrollbar"
                      ).display) ||
                    "scrollbarWidth" in document.documentElement.style ||
                    "-ms-overflow-style" in document.documentElement.style
                    ? 0
                    : Rn();
                } catch (e) {
                  return Rn();
                }
              }),
              (e.getOffset = function (e) {
                var t = e.getBoundingClientRect(),
                  i = Wn(e),
                  n = Xn(e);
                return {
                  top: t.top + (n.pageYOffset || i.documentElement.scrollTop),
                  left:
                    t.left + (n.pageXOffset || i.documentElement.scrollLeft),
                };
              }),
              (e.prototype.init = function () {
                Ui &&
                  (this.initDOM(),
                  (this.rtlHelpers = e.getRtlHelpers()),
                  (this.scrollbarWidth = this.getScrollbarWidth()),
                  this.recalculate(),
                  this.initListeners());
              }),
              (e.prototype.initDOM = function () {
                var e, t;
                (this.wrapperEl = this.el.querySelector(
                  Un(this.classNames.wrapper)
                )),
                  (this.contentWrapperEl =
                    this.options.scrollableNode ||
                    this.el.querySelector(Un(this.classNames.contentWrapper))),
                  (this.contentEl =
                    this.options.contentNode ||
                    this.el.querySelector(Un(this.classNames.contentEl))),
                  (this.offsetEl = this.el.querySelector(
                    Un(this.classNames.offset)
                  )),
                  (this.maskEl = this.el.querySelector(
                    Un(this.classNames.mask)
                  )),
                  (this.placeholderEl = this.findChild(
                    this.wrapperEl,
                    Un(this.classNames.placeholder)
                  )),
                  (this.heightAutoObserverWrapperEl = this.el.querySelector(
                    Un(this.classNames.heightAutoObserverWrapperEl)
                  )),
                  (this.heightAutoObserverEl = this.el.querySelector(
                    Un(this.classNames.heightAutoObserverEl)
                  )),
                  (this.axis.x.track.el = this.findChild(
                    this.el,
                    ""
                      .concat(Un(this.classNames.track))
                      .concat(Un(this.classNames.horizontal))
                  )),
                  (this.axis.y.track.el = this.findChild(
                    this.el,
                    ""
                      .concat(Un(this.classNames.track))
                      .concat(Un(this.classNames.vertical))
                  )),
                  (this.axis.x.scrollbar.el =
                    (null === (e = this.axis.x.track.el) || void 0 === e
                      ? void 0
                      : e.querySelector(Un(this.classNames.scrollbar))) ||
                    null),
                  (this.axis.y.scrollbar.el =
                    (null === (t = this.axis.y.track.el) || void 0 === t
                      ? void 0
                      : t.querySelector(Un(this.classNames.scrollbar))) ||
                    null),
                  this.options.autoHide ||
                    (qn(this.axis.x.scrollbar.el, this.classNames.visible),
                    qn(this.axis.y.scrollbar.el, this.classNames.visible));
              }),
              (e.prototype.initListeners = function () {
                var e,
                  t = this,
                  i = Xn(this.el);
                if (
                  (this.el.addEventListener("mouseenter", this.onMouseEnter),
                  this.el.addEventListener(
                    "pointerdown",
                    this.onPointerEvent,
                    !0
                  ),
                  this.el.addEventListener("mousemove", this.onMouseMove),
                  this.el.addEventListener("mouseleave", this.onMouseLeave),
                  null === (e = this.contentWrapperEl) ||
                    void 0 === e ||
                    e.addEventListener("scroll", this.onScroll),
                  i.addEventListener("resize", this.onWindowResize),
                  this.contentEl)
                ) {
                  if (window.ResizeObserver) {
                    var n = !1,
                      r = i.ResizeObserver || ResizeObserver;
                    (this.resizeObserver = new r(function () {
                      n &&
                        i.requestAnimationFrame(function () {
                          t.recalculate();
                        });
                    })),
                      this.resizeObserver.observe(this.el),
                      this.resizeObserver.observe(this.contentEl),
                      i.requestAnimationFrame(function () {
                        n = !0;
                      });
                  }
                  (this.mutationObserver = new i.MutationObserver(function () {
                    i.requestAnimationFrame(function () {
                      t.recalculate();
                    });
                  })),
                    this.mutationObserver.observe(this.contentEl, {
                      childList: !0,
                      subtree: !0,
                      characterData: !0,
                    });
                }
              }),
              (e.prototype.recalculate = function () {
                if (
                  this.heightAutoObserverEl &&
                  this.contentEl &&
                  this.contentWrapperEl &&
                  this.wrapperEl &&
                  this.placeholderEl
                ) {
                  var e = Xn(this.el);
                  (this.elStyles = e.getComputedStyle(this.el)),
                    (this.isRtl = "rtl" === this.elStyles.direction);
                  var t = this.contentEl.offsetWidth,
                    i = this.heightAutoObserverEl.offsetHeight <= 1,
                    n = this.heightAutoObserverEl.offsetWidth <= 1 || t > 0,
                    r = this.contentWrapperEl.offsetWidth,
                    a = this.elStyles.overflowX,
                    o = this.elStyles.overflowY;
                  (this.contentEl.style.padding = ""
                    .concat(this.elStyles.paddingTop, " ")
                    .concat(this.elStyles.paddingRight, " ")
                    .concat(this.elStyles.paddingBottom, " ")
                    .concat(this.elStyles.paddingLeft)),
                    (this.wrapperEl.style.margin = "-"
                      .concat(this.elStyles.paddingTop, " -")
                      .concat(this.elStyles.paddingRight, " -")
                      .concat(this.elStyles.paddingBottom, " -")
                      .concat(this.elStyles.paddingLeft));
                  var s = this.contentEl.scrollHeight,
                    l = this.contentEl.scrollWidth;
                  (this.contentWrapperEl.style.height = i ? "auto" : "100%"),
                    (this.placeholderEl.style.width = n
                      ? "".concat(t || l, "px")
                      : "auto"),
                    (this.placeholderEl.style.height = "".concat(s, "px"));
                  var c = this.contentWrapperEl.offsetHeight;
                  (this.axis.x.isOverflowing = 0 !== t && l > t),
                    (this.axis.y.isOverflowing = s > c),
                    (this.axis.x.isOverflowing =
                      "hidden" !== a && this.axis.x.isOverflowing),
                    (this.axis.y.isOverflowing =
                      "hidden" !== o && this.axis.y.isOverflowing),
                    (this.axis.x.forceVisible =
                      "x" === this.options.forceVisible ||
                      !0 === this.options.forceVisible),
                    (this.axis.y.forceVisible =
                      "y" === this.options.forceVisible ||
                      !0 === this.options.forceVisible),
                    this.hideNativeScrollbar();
                  var u = this.axis.x.isOverflowing ? this.scrollbarWidth : 0,
                    d = this.axis.y.isOverflowing ? this.scrollbarWidth : 0;
                  (this.axis.x.isOverflowing =
                    this.axis.x.isOverflowing && l > r - d),
                    (this.axis.y.isOverflowing =
                      this.axis.y.isOverflowing && s > c - u),
                    (this.axis.x.scrollbar.size = this.getScrollbarSize("x")),
                    (this.axis.y.scrollbar.size = this.getScrollbarSize("y")),
                    this.axis.x.scrollbar.el &&
                      (this.axis.x.scrollbar.el.style.width = "".concat(
                        this.axis.x.scrollbar.size,
                        "px"
                      )),
                    this.axis.y.scrollbar.el &&
                      (this.axis.y.scrollbar.el.style.height = "".concat(
                        this.axis.y.scrollbar.size,
                        "px"
                      )),
                    this.positionScrollbar("x"),
                    this.positionScrollbar("y"),
                    this.toggleTrackVisibility("x"),
                    this.toggleTrackVisibility("y");
                }
              }),
              (e.prototype.getScrollbarSize = function (e) {
                var t, i;
                if (
                  (void 0 === e && (e = "y"),
                  !this.axis[e].isOverflowing || !this.contentEl)
                )
                  return 0;
                var n,
                  r = this.contentEl[this.axis[e].scrollSizeAttr],
                  a =
                    null !==
                      (i =
                        null === (t = this.axis[e].track.el) || void 0 === t
                          ? void 0
                          : t[this.axis[e].offsetSizeAttr]) && void 0 !== i
                      ? i
                      : 0,
                  o = a / r;
                return (
                  (n = Math.max(~~(o * a), this.options.scrollbarMinSize)),
                  this.options.scrollbarMaxSize &&
                    (n = Math.min(n, this.options.scrollbarMaxSize)),
                  n
                );
              }),
              (e.prototype.positionScrollbar = function (t) {
                var i, n, r;
                void 0 === t && (t = "y");
                var a = this.axis[t].scrollbar;
                if (
                  this.axis[t].isOverflowing &&
                  this.contentWrapperEl &&
                  a.el &&
                  this.elStyles
                ) {
                  var o = this.contentWrapperEl[this.axis[t].scrollSizeAttr],
                    s =
                      (null === (i = this.axis[t].track.el) || void 0 === i
                        ? void 0
                        : i[this.axis[t].offsetSizeAttr]) || 0,
                    l = parseInt(this.elStyles[this.axis[t].sizeAttr], 10),
                    c = this.contentWrapperEl[this.axis[t].scrollOffsetAttr];
                  (c =
                    "x" === t &&
                    this.isRtl &&
                    (null === (n = e.getRtlHelpers()) || void 0 === n
                      ? void 0
                      : n.isScrollOriginAtZero)
                      ? -c
                      : c),
                    "x" === t &&
                      this.isRtl &&
                      (c = (
                        null === (r = e.getRtlHelpers()) || void 0 === r
                          ? void 0
                          : r.isScrollingToNegative
                      )
                        ? c
                        : -c);
                  var u = c / (o - l),
                    d = ~~((s - a.size) * u);
                  (d = "x" === t && this.isRtl ? -d + (s - a.size) : d),
                    (a.el.style.transform =
                      "x" === t
                        ? "translate3d(".concat(d, "px, 0, 0)")
                        : "translate3d(0, ".concat(d, "px, 0)"));
                }
              }),
              (e.prototype.toggleTrackVisibility = function (e) {
                void 0 === e && (e = "y");
                var t = this.axis[e].track.el,
                  i = this.axis[e].scrollbar.el;
                t &&
                  i &&
                  this.contentWrapperEl &&
                  (this.axis[e].isOverflowing || this.axis[e].forceVisible
                    ? ((t.style.visibility = "visible"),
                      (this.contentWrapperEl.style[this.axis[e].overflowAttr] =
                        "scroll"),
                      this.el.classList.add(
                        "".concat(this.classNames.scrollable, "-").concat(e)
                      ))
                    : ((t.style.visibility = "hidden"),
                      (this.contentWrapperEl.style[this.axis[e].overflowAttr] =
                        "hidden"),
                      this.el.classList.remove(
                        "".concat(this.classNames.scrollable, "-").concat(e)
                      )),
                  this.axis[e].isOverflowing
                    ? (i.style.display = "block")
                    : (i.style.display = "none"));
              }),
              (e.prototype.showScrollbar = function (e) {
                void 0 === e && (e = "y"),
                  this.axis[e].isOverflowing &&
                    !this.axis[e].scrollbar.isVisible &&
                    (qn(this.axis[e].scrollbar.el, this.classNames.visible),
                    (this.axis[e].scrollbar.isVisible = !0));
              }),
              (e.prototype.hideScrollbar = function (e) {
                void 0 === e && (e = "y"),
                  this.axis[e].isOverflowing &&
                    this.axis[e].scrollbar.isVisible &&
                    (Vn(this.axis[e].scrollbar.el, this.classNames.visible),
                    (this.axis[e].scrollbar.isVisible = !1));
              }),
              (e.prototype.hideNativeScrollbar = function () {
                this.offsetEl &&
                  ((this.offsetEl.style[this.isRtl ? "left" : "right"] =
                    this.axis.y.isOverflowing || this.axis.y.forceVisible
                      ? "-".concat(this.scrollbarWidth, "px")
                      : "0px"),
                  (this.offsetEl.style.bottom =
                    this.axis.x.isOverflowing || this.axis.x.forceVisible
                      ? "-".concat(this.scrollbarWidth, "px")
                      : "0px"));
              }),
              (e.prototype.onMouseMoveForAxis = function (e) {
                void 0 === e && (e = "y");
                var t = this.axis[e];
                t.track.el &&
                  t.scrollbar.el &&
                  ((t.track.rect = t.track.el.getBoundingClientRect()),
                  (t.scrollbar.rect = t.scrollbar.el.getBoundingClientRect()),
                  this.isWithinBounds(t.track.rect)
                    ? (this.showScrollbar(e),
                      qn(t.track.el, this.classNames.hover),
                      this.isWithinBounds(t.scrollbar.rect)
                        ? qn(t.scrollbar.el, this.classNames.hover)
                        : Vn(t.scrollbar.el, this.classNames.hover))
                    : (Vn(t.track.el, this.classNames.hover),
                      this.options.autoHide && this.hideScrollbar(e)));
              }),
              (e.prototype.onMouseLeaveForAxis = function (e) {
                void 0 === e && (e = "y"),
                  Vn(this.axis[e].track.el, this.classNames.hover),
                  Vn(this.axis[e].scrollbar.el, this.classNames.hover),
                  this.options.autoHide && this.hideScrollbar(e);
              }),
              (e.prototype.onDragStart = function (e, t) {
                var i;
                void 0 === t && (t = "y");
                var n = Wn(this.el),
                  r = Xn(this.el),
                  a = this.axis[t].scrollbar,
                  o = "y" === t ? e.pageY : e.pageX;
                (this.axis[t].dragOffset =
                  o -
                  ((null === (i = a.rect) || void 0 === i
                    ? void 0
                    : i[this.axis[t].offsetAttr]) || 0)),
                  (this.draggedAxis = t),
                  qn(this.el, this.classNames.dragging),
                  n.addEventListener("mousemove", this.drag, !0),
                  n.addEventListener("mouseup", this.onEndDrag, !0),
                  null === this.removePreventClickId
                    ? (n.addEventListener("click", this.preventClick, !0),
                      n.addEventListener("dblclick", this.preventClick, !0))
                    : (r.clearTimeout(this.removePreventClickId),
                      (this.removePreventClickId = null));
              }),
              (e.prototype.onTrackClick = function (e, t) {
                var i,
                  n,
                  r,
                  a,
                  o = this;
                void 0 === t && (t = "y");
                var s = this.axis[t];
                if (
                  this.options.clickOnTrack &&
                  s.scrollbar.el &&
                  this.contentWrapperEl
                ) {
                  e.preventDefault();
                  var l = Xn(this.el);
                  this.axis[t].scrollbar.rect =
                    s.scrollbar.el.getBoundingClientRect();
                  var c =
                      null !==
                        (n =
                          null === (i = this.axis[t].scrollbar.rect) ||
                          void 0 === i
                            ? void 0
                            : i[this.axis[t].offsetAttr]) && void 0 !== n
                        ? n
                        : 0,
                    u = parseInt(
                      null !==
                        (a =
                          null === (r = this.elStyles) || void 0 === r
                            ? void 0
                            : r[this.axis[t].sizeAttr]) && void 0 !== a
                        ? a
                        : "0px",
                      10
                    ),
                    d = this.contentWrapperEl[this.axis[t].scrollOffsetAttr],
                    h =
                      ("y" === t ? this.mouseY - c : this.mouseX - c) < 0
                        ? -1
                        : 1,
                    f = -1 === h ? d - u : d + u,
                    p = function () {
                      o.contentWrapperEl &&
                        (-1 === h
                          ? d > f &&
                            ((d -= 40),
                            (o.contentWrapperEl[o.axis[t].scrollOffsetAttr] =
                              d),
                            l.requestAnimationFrame(p))
                          : d < f &&
                            ((d += 40),
                            (o.contentWrapperEl[o.axis[t].scrollOffsetAttr] =
                              d),
                            l.requestAnimationFrame(p)));
                    };
                  p();
                }
              }),
              (e.prototype.getContentElement = function () {
                return this.contentEl;
              }),
              (e.prototype.getScrollElement = function () {
                return this.contentWrapperEl;
              }),
              (e.prototype.removeListeners = function () {
                var e = Xn(this.el);
                this.el.removeEventListener("mouseenter", this.onMouseEnter),
                  this.el.removeEventListener(
                    "pointerdown",
                    this.onPointerEvent,
                    !0
                  ),
                  this.el.removeEventListener("mousemove", this.onMouseMove),
                  this.el.removeEventListener("mouseleave", this.onMouseLeave),
                  this.contentWrapperEl &&
                    this.contentWrapperEl.removeEventListener(
                      "scroll",
                      this.onScroll
                    ),
                  e.removeEventListener("resize", this.onWindowResize),
                  this.mutationObserver && this.mutationObserver.disconnect(),
                  this.resizeObserver && this.resizeObserver.disconnect(),
                  this.onMouseMove.cancel(),
                  this.onWindowResize.cancel(),
                  this.onStopScrolling.cancel(),
                  this.onMouseEntered.cancel();
              }),
              (e.prototype.unMount = function () {
                this.removeListeners();
              }),
              (e.prototype.isWithinBounds = function (e) {
                return (
                  this.mouseX >= e.left &&
                  this.mouseX <= e.left + e.width &&
                  this.mouseY >= e.top &&
                  this.mouseY <= e.top + e.height
                );
              }),
              (e.prototype.findChild = function (e, t) {
                var i =
                  e.matches ||
                  e.webkitMatchesSelector ||
                  e.mozMatchesSelector ||
                  e.msMatchesSelector;
                return Array.prototype.filter.call(e.children, function (e) {
                  return i.call(e, t);
                })[0];
              }),
              (e.rtlHelpers = null),
              (e.defaultOptions = {
                forceVisible: !1,
                clickOnTrack: !0,
                scrollbarMinSize: 25,
                scrollbarMaxSize: 0,
                ariaLabel: "scrollable content",
                classNames: {
                  contentEl: "simplebar-content",
                  contentWrapper: "simplebar-content-wrapper",
                  offset: "simplebar-offset",
                  mask: "simplebar-mask",
                  wrapper: "simplebar-wrapper",
                  placeholder: "simplebar-placeholder",
                  scrollbar: "simplebar-scrollbar",
                  track: "simplebar-track",
                  heightAutoObserverWrapperEl:
                    "simplebar-height-auto-observer-wrapper",
                  heightAutoObserverEl: "simplebar-height-auto-observer",
                  visible: "simplebar-visible",
                  horizontal: "simplebar-horizontal",
                  vertical: "simplebar-vertical",
                  hover: "simplebar-hover",
                  dragging: "simplebar-dragging",
                  scrolling: "simplebar-scrolling",
                  scrollable: "simplebar-scrollable",
                  mouseEntered: "simplebar-mouse-entered",
                },
                scrollableNode: null,
                contentNode: null,
                autoHide: !0,
              }),
              (e.getOptions = Gn),
              (e.helpers = Yn),
              e
            );
          })(),
          Zn = function (e, t) {
            return (
              (Zn =
                Object.setPrototypeOf ||
                ({ __proto__: [] } instanceof Array &&
                  function (e, t) {
                    e.__proto__ = t;
                  }) ||
                function (e, t) {
                  for (var i in t)
                    Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
                }),
              Zn(e, t)
            );
          };
        var Kn = $n.helpers,
          Jn = Kn.getOptions,
          Qn = Kn.addClasses,
          er = (function (e) {
            function t() {
              for (var i = [], n = 0; n < arguments.length; n++)
                i[n] = arguments[n];
              var r = e.apply(this, i) || this;
              return t.instances.set(i[0], r), r;
            }
            return (
              (function (e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Class extends value " +
                      String(t) +
                      " is not a constructor or null"
                  );
                function i() {
                  this.constructor = e;
                }
                Zn(e, t),
                  (e.prototype =
                    null === t
                      ? Object.create(t)
                      : ((i.prototype = t.prototype), new i()));
              })(t, e),
              (t.initDOMLoadedElements = function () {
                document.removeEventListener(
                  "DOMContentLoaded",
                  this.initDOMLoadedElements
                ),
                  window.removeEventListener(
                    "load",
                    this.initDOMLoadedElements
                  ),
                  Array.prototype.forEach.call(
                    document.querySelectorAll("[data-simplebar]"),
                    function (e) {
                      "init" === e.getAttribute("data-simplebar") ||
                        t.instances.has(e) ||
                        new t(e, Jn(e.attributes));
                    }
                  );
              }),
              (t.removeObserver = function () {
                var e;
                null === (e = t.globalObserver) ||
                  void 0 === e ||
                  e.disconnect();
              }),
              (t.prototype.initDOM = function () {
                var e,
                  t,
                  i,
                  n = this;
                if (
                  !Array.prototype.filter.call(this.el.children, function (e) {
                    return e.classList.contains(n.classNames.wrapper);
                  }).length
                ) {
                  for (
                    this.wrapperEl = document.createElement("div"),
                      this.contentWrapperEl = document.createElement("div"),
                      this.offsetEl = document.createElement("div"),
                      this.maskEl = document.createElement("div"),
                      this.contentEl = document.createElement("div"),
                      this.placeholderEl = document.createElement("div"),
                      this.heightAutoObserverWrapperEl =
                        document.createElement("div"),
                      this.heightAutoObserverEl = document.createElement("div"),
                      Qn(this.wrapperEl, this.classNames.wrapper),
                      Qn(this.contentWrapperEl, this.classNames.contentWrapper),
                      Qn(this.offsetEl, this.classNames.offset),
                      Qn(this.maskEl, this.classNames.mask),
                      Qn(this.contentEl, this.classNames.contentEl),
                      Qn(this.placeholderEl, this.classNames.placeholder),
                      Qn(
                        this.heightAutoObserverWrapperEl,
                        this.classNames.heightAutoObserverWrapperEl
                      ),
                      Qn(
                        this.heightAutoObserverEl,
                        this.classNames.heightAutoObserverEl
                      );
                    this.el.firstChild;

                  )
                    this.contentEl.appendChild(this.el.firstChild);
                  this.contentWrapperEl.appendChild(this.contentEl),
                    this.offsetEl.appendChild(this.contentWrapperEl),
                    this.maskEl.appendChild(this.offsetEl),
                    this.heightAutoObserverWrapperEl.appendChild(
                      this.heightAutoObserverEl
                    ),
                    this.wrapperEl.appendChild(
                      this.heightAutoObserverWrapperEl
                    ),
                    this.wrapperEl.appendChild(this.maskEl),
                    this.wrapperEl.appendChild(this.placeholderEl),
                    this.el.appendChild(this.wrapperEl),
                    null === (e = this.contentWrapperEl) ||
                      void 0 === e ||
                      e.setAttribute("tabindex", "0"),
                    null === (t = this.contentWrapperEl) ||
                      void 0 === t ||
                      t.setAttribute("role", "region"),
                    null === (i = this.contentWrapperEl) ||
                      void 0 === i ||
                      i.setAttribute("aria-label", this.options.ariaLabel);
                }
                if (!this.axis.x.track.el || !this.axis.y.track.el) {
                  var r = document.createElement("div"),
                    a = document.createElement("div");
                  Qn(r, this.classNames.track),
                    Qn(a, this.classNames.scrollbar),
                    r.appendChild(a),
                    (this.axis.x.track.el = r.cloneNode(!0)),
                    Qn(this.axis.x.track.el, this.classNames.horizontal),
                    (this.axis.y.track.el = r.cloneNode(!0)),
                    Qn(this.axis.y.track.el, this.classNames.vertical),
                    this.el.appendChild(this.axis.x.track.el),
                    this.el.appendChild(this.axis.y.track.el);
                }
                $n.prototype.initDOM.call(this),
                  this.el.setAttribute("data-simplebar", "init");
              }),
              (t.prototype.unMount = function () {
                $n.prototype.unMount.call(this), t.instances.delete(this.el);
              }),
              (t.initHtmlApi = function () {
                (this.initDOMLoadedElements =
                  this.initDOMLoadedElements.bind(this)),
                  "undefined" != typeof MutationObserver &&
                    ((this.globalObserver = new MutationObserver(
                      t.handleMutations
                    )),
                    this.globalObserver.observe(document, {
                      childList: !0,
                      subtree: !0,
                    })),
                  "complete" === document.readyState ||
                  ("loading" !== document.readyState &&
                    !document.documentElement.doScroll)
                    ? window.setTimeout(this.initDOMLoadedElements)
                    : (document.addEventListener(
                        "DOMContentLoaded",
                        this.initDOMLoadedElements
                      ),
                      window.addEventListener(
                        "load",
                        this.initDOMLoadedElements
                      ));
              }),
              (t.handleMutations = function (e) {
                e.forEach(function (e) {
                  e.addedNodes.forEach(function (e) {
                    1 === e.nodeType &&
                      (e.hasAttribute("data-simplebar")
                        ? !t.instances.has(e) &&
                          document.documentElement.contains(e) &&
                          new t(e, Jn(e.attributes))
                        : e
                            .querySelectorAll("[data-simplebar]")
                            .forEach(function (e) {
                              "init" !== e.getAttribute("data-simplebar") &&
                                !t.instances.has(e) &&
                                document.documentElement.contains(e) &&
                                new t(e, Jn(e.attributes));
                            }));
                  }),
                    e.removedNodes.forEach(function (e) {
                      1 === e.nodeType &&
                        ("init" === e.getAttribute("data-simplebar")
                          ? t.instances.has(e) &&
                            !document.documentElement.contains(e) &&
                            t.instances.get(e).unMount()
                          : Array.prototype.forEach.call(
                              e.querySelectorAll('[data-simplebar="init"]'),
                              function (e) {
                                t.instances.has(e) &&
                                  !document.documentElement.contains(e) &&
                                  t.instances.get(e).unMount();
                              }
                            ));
                    });
                });
              }),
              (t.instances = new WeakMap()),
              t
            );
          })($n);
        Ui && er.initHtmlApi();
        const tr = i(324);
        var ir = i(322),
          nr = i.n(ir);
        function rr(e) {
          return (
            null !== e &&
            "object" == typeof e &&
            "constructor" in e &&
            e.constructor === Object
          );
        }
        function ar(e = {}, t = {}) {
          Object.keys(t).forEach((i) => {
            void 0 === e[i]
              ? (e[i] = t[i])
              : rr(t[i]) &&
                rr(e[i]) &&
                Object.keys(t[i]).length > 0 &&
                ar(e[i], t[i]);
          });
        }
        const or = {
          body: {},
          addEventListener() {},
          removeEventListener() {},
          activeElement: { blur() {}, nodeName: "" },
          querySelector: () => null,
          querySelectorAll: () => [],
          getElementById: () => null,
          createEvent: () => ({ initEvent() {} }),
          createElement: () => ({
            children: [],
            childNodes: [],
            style: {},
            setAttribute() {},
            getElementsByTagName: () => [],
          }),
          createElementNS: () => ({}),
          importNode: () => null,
          location: {
            hash: "",
            host: "",
            hostname: "",
            href: "",
            origin: "",
            pathname: "",
            protocol: "",
            search: "",
          },
        };
        function sr() {
          const e = "undefined" != typeof document ? document : {};
          return ar(e, or), e;
        }
        const lr = {
          document: or,
          navigator: { userAgent: "" },
          location: {
            hash: "",
            host: "",
            hostname: "",
            href: "",
            origin: "",
            pathname: "",
            protocol: "",
            search: "",
          },
          history: { replaceState() {}, pushState() {}, go() {}, back() {} },
          CustomEvent: function () {
            return this;
          },
          addEventListener() {},
          removeEventListener() {},
          getComputedStyle: () => ({ getPropertyValue: () => "" }),
          Image() {},
          Date() {},
          screen: {},
          setTimeout() {},
          clearTimeout() {},
          matchMedia: () => ({}),
          requestAnimationFrame: (e) =>
            "undefined" == typeof setTimeout ? (e(), null) : setTimeout(e, 0),
          cancelAnimationFrame(e) {
            "undefined" != typeof setTimeout && clearTimeout(e);
          },
        };
        function cr() {
          const e = "undefined" != typeof window ? window : {};
          return ar(e, lr), e;
        }
        function ur(e, t = 0) {
          return setTimeout(e, t);
        }
        function dr() {
          return Date.now();
        }
        function hr(e, t = "x") {
          const i = cr();
          let n, r, a;
          const o = (function (e) {
            const t = cr();
            let i;
            return (
              t.getComputedStyle && (i = t.getComputedStyle(e, null)),
              !i && e.currentStyle && (i = e.currentStyle),
              i || (i = e.style),
              i
            );
          })(e);
          return (
            i.WebKitCSSMatrix
              ? ((r = o.transform || o.webkitTransform),
                r.split(",").length > 6 &&
                  (r = r
                    .split(", ")
                    .map((e) => e.replace(",", "."))
                    .join(", ")),
                (a = new i.WebKitCSSMatrix("none" === r ? "" : r)))
              : ((a =
                  o.MozTransform ||
                  o.OTransform ||
                  o.MsTransform ||
                  o.msTransform ||
                  o.transform ||
                  o
                    .getPropertyValue("transform")
                    .replace("translate(", "matrix(1, 0, 0, 1,")),
                (n = a.toString().split(","))),
            "x" === t &&
              (r = i.WebKitCSSMatrix
                ? a.m41
                : 16 === n.length
                ? parseFloat(n[12])
                : parseFloat(n[4])),
            "y" === t &&
              (r = i.WebKitCSSMatrix
                ? a.m42
                : 16 === n.length
                ? parseFloat(n[13])
                : parseFloat(n[5])),
            r || 0
          );
        }
        function fr(e) {
          return (
            "object" == typeof e &&
            null !== e &&
            e.constructor &&
            "Object" === Object.prototype.toString.call(e).slice(8, -1)
          );
        }
        function pr(...e) {
          const t = Object(e[0]),
            i = ["__proto__", "constructor", "prototype"];
          for (let r = 1; r < e.length; r += 1) {
            const a = e[r];
            if (
              null != a &&
              ((n = a),
              !("undefined" != typeof window && void 0 !== window.HTMLElement
                ? n instanceof HTMLElement
                : n && (1 === n.nodeType || 11 === n.nodeType)))
            ) {
              const e = Object.keys(Object(a)).filter((e) => i.indexOf(e) < 0);
              for (let i = 0, n = e.length; i < n; i += 1) {
                const n = e[i],
                  r = Object.getOwnPropertyDescriptor(a, n);
                void 0 !== r &&
                  r.enumerable &&
                  (fr(t[n]) && fr(a[n])
                    ? a[n].__swiper__
                      ? (t[n] = a[n])
                      : pr(t[n], a[n])
                    : !fr(t[n]) && fr(a[n])
                    ? ((t[n] = {}),
                      a[n].__swiper__ ? (t[n] = a[n]) : pr(t[n], a[n]))
                    : (t[n] = a[n]));
              }
            }
          }
          var n;
          return t;
        }
        function gr(e, t, i) {
          e.style.setProperty(t, i);
        }
        function mr({ swiper: e, targetPosition: t, side: i }) {
          const n = cr(),
            r = -e.translate;
          let a,
            o = null;
          const s = e.params.speed;
          (e.wrapperEl.style.scrollSnapType = "none"),
            n.cancelAnimationFrame(e.cssModeFrameID);
          const l = t > r ? "next" : "prev",
            c = (e, t) => ("next" === l && e >= t) || ("prev" === l && e <= t),
            u = () => {
              (a = new Date().getTime()), null === o && (o = a);
              const l = Math.max(Math.min((a - o) / s, 1), 0),
                d = 0.5 - Math.cos(l * Math.PI) / 2;
              let h = r + d * (t - r);
              if (
                (c(h, t) && (h = t), e.wrapperEl.scrollTo({ [i]: h }), c(h, t))
              )
                return (
                  (e.wrapperEl.style.overflow = "hidden"),
                  (e.wrapperEl.style.scrollSnapType = ""),
                  setTimeout(() => {
                    (e.wrapperEl.style.overflow = ""),
                      e.wrapperEl.scrollTo({ [i]: h });
                  }),
                  void n.cancelAnimationFrame(e.cssModeFrameID)
                );
              e.cssModeFrameID = n.requestAnimationFrame(u);
            };
          u();
        }
        function vr(e) {
          return (
            e.querySelector(".swiper-slide-transform") ||
            (e.shadowEl &&
              e.shadowEl.querySelector(".swiper-slide-transform")) ||
            e
          );
        }
        function br(e, t = "") {
          return [...e.children].filter((e) => e.matches(t));
        }
        function yr(e, t = []) {
          const i = document.createElement(e);
          return i.classList.add(...(Array.isArray(t) ? t : [t])), i;
        }
        function xr(e) {
          const t = cr(),
            i = sr(),
            n = e.getBoundingClientRect(),
            r = i.body,
            a = e.clientTop || r.clientTop || 0,
            o = e.clientLeft || r.clientLeft || 0,
            s = e === t ? t.scrollY : e.scrollTop,
            l = e === t ? t.scrollX : e.scrollLeft;
          return { top: n.top + s - a, left: n.left + l - o };
        }
        function wr(e, t) {
          return cr().getComputedStyle(e, null).getPropertyValue(t);
        }
        function Er(e) {
          let t,
            i = e;
          if (i) {
            for (t = 0; null !== (i = i.previousSibling); )
              1 === i.nodeType && (t += 1);
            return t;
          }
        }
        function _r(e, t) {
          const i = [];
          let n = e.parentElement;
          for (; n; )
            t ? n.matches(t) && i.push(n) : i.push(n), (n = n.parentElement);
          return i;
        }
        function Sr(e, t) {
          t &&
            e.addEventListener("transitionend", function i(n) {
              n.target === e &&
                (t.call(e, n), e.removeEventListener("transitionend", i));
            });
        }
        function Ar(e, t, i) {
          const n = cr();
          return i
            ? e["width" === t ? "offsetWidth" : "offsetHeight"] +
                parseFloat(
                  n
                    .getComputedStyle(e, null)
                    .getPropertyValue(
                      "width" === t ? "margin-right" : "margin-top"
                    )
                ) +
                parseFloat(
                  n
                    .getComputedStyle(e, null)
                    .getPropertyValue(
                      "width" === t ? "margin-left" : "margin-bottom"
                    )
                )
            : e.offsetWidth;
        }
        let kr, Tr, Cr;
        function Or() {
          return (
            kr ||
              (kr = (function () {
                const e = cr(),
                  t = sr();
                return {
                  smoothScroll:
                    t.documentElement &&
                    "scrollBehavior" in t.documentElement.style,
                  touch: !!(
                    "ontouchstart" in e ||
                    (e.DocumentTouch && t instanceof e.DocumentTouch)
                  ),
                };
              })()),
            kr
          );
        }
        function Ir(e = {}) {
          return (
            Tr ||
              (Tr = (function ({ userAgent: e } = {}) {
                const t = Or(),
                  i = cr(),
                  n = i.navigator.platform,
                  r = e || i.navigator.userAgent,
                  a = { ios: !1, android: !1 },
                  o = i.screen.width,
                  s = i.screen.height,
                  l = r.match(/(Android);?[\s\/]+([\d.]+)?/);
                let c = r.match(/(iPad).*OS\s([\d_]+)/);
                const u = r.match(/(iPod)(.*OS\s([\d_]+))?/),
                  d = !c && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),
                  h = "Win32" === n;
                let f = "MacIntel" === n;
                return (
                  !c &&
                    f &&
                    t.touch &&
                    [
                      "1024x1366",
                      "1366x1024",
                      "834x1194",
                      "1194x834",
                      "834x1112",
                      "1112x834",
                      "768x1024",
                      "1024x768",
                      "820x1180",
                      "1180x820",
                      "810x1080",
                      "1080x810",
                    ].indexOf(`${o}x${s}`) >= 0 &&
                    ((c = r.match(/(Version)\/([\d.]+)/)),
                    c || (c = [0, 1, "13_0_0"]),
                    (f = !1)),
                  l && !h && ((a.os = "android"), (a.android = !0)),
                  (c || d || u) && ((a.os = "ios"), (a.ios = !0)),
                  a
                );
              })(e)),
            Tr
          );
        }
        function Mr() {
          return (
            Cr ||
              (Cr = (function () {
                const e = cr();
                let t = !1;
                function i() {
                  const t = e.navigator.userAgent.toLowerCase();
                  return (
                    t.indexOf("safari") >= 0 &&
                    t.indexOf("chrome") < 0 &&
                    t.indexOf("android") < 0
                  );
                }
                if (i()) {
                  const i = String(e.navigator.userAgent);
                  if (i.includes("Version/")) {
                    const [e, n] = i
                      .split("Version/")[1]
                      .split(" ")[0]
                      .split(".")
                      .map((e) => Number(e));
                    t = e < 16 || (16 === e && n < 2);
                  }
                }
                return {
                  isSafari: t || i(),
                  needPerspectiveFix: t,
                  isWebView:
                    /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(
                      e.navigator.userAgent
                    ),
                };
              })()),
            Cr
          );
        }
        const Lr = {
          on(e, t, i) {
            const n = this;
            if (!n.eventsListeners || n.destroyed) return n;
            if ("function" != typeof t) return n;
            const r = i ? "unshift" : "push";
            return (
              e.split(" ").forEach((e) => {
                n.eventsListeners[e] || (n.eventsListeners[e] = []),
                  n.eventsListeners[e][r](t);
              }),
              n
            );
          },
          once(e, t, i) {
            const n = this;
            if (!n.eventsListeners || n.destroyed) return n;
            if ("function" != typeof t) return n;
            function r(...i) {
              n.off(e, r),
                r.__emitterProxy && delete r.__emitterProxy,
                t.apply(n, i);
            }
            return (r.__emitterProxy = t), n.on(e, r, i);
          },
          onAny(e, t) {
            const i = this;
            if (!i.eventsListeners || i.destroyed) return i;
            if ("function" != typeof e) return i;
            const n = t ? "unshift" : "push";
            return (
              i.eventsAnyListeners.indexOf(e) < 0 && i.eventsAnyListeners[n](e),
              i
            );
          },
          offAny(e) {
            const t = this;
            if (!t.eventsListeners || t.destroyed) return t;
            if (!t.eventsAnyListeners) return t;
            const i = t.eventsAnyListeners.indexOf(e);
            return i >= 0 && t.eventsAnyListeners.splice(i, 1), t;
          },
          off(e, t) {
            const i = this;
            return !i.eventsListeners || i.destroyed
              ? i
              : i.eventsListeners
              ? (e.split(" ").forEach((e) => {
                  void 0 === t
                    ? (i.eventsListeners[e] = [])
                    : i.eventsListeners[e] &&
                      i.eventsListeners[e].forEach((n, r) => {
                        (n === t ||
                          (n.__emitterProxy && n.__emitterProxy === t)) &&
                          i.eventsListeners[e].splice(r, 1);
                      });
                }),
                i)
              : i;
          },
          emit(...e) {
            const t = this;
            if (!t.eventsListeners || t.destroyed) return t;
            if (!t.eventsListeners) return t;
            let i, n, r;
            "string" == typeof e[0] || Array.isArray(e[0])
              ? ((i = e[0]), (n = e.slice(1, e.length)), (r = t))
              : ((i = e[0].events), (n = e[0].data), (r = e[0].context || t)),
              n.unshift(r);
            return (
              (Array.isArray(i) ? i : i.split(" ")).forEach((e) => {
                t.eventsAnyListeners &&
                  t.eventsAnyListeners.length &&
                  t.eventsAnyListeners.forEach((t) => {
                    t.apply(r, [e, ...n]);
                  }),
                  t.eventsListeners &&
                    t.eventsListeners[e] &&
                    t.eventsListeners[e].forEach((e) => {
                      e.apply(r, n);
                    });
              }),
              t
            );
          },
        };
        const Pr = {
          updateSize: function () {
            const e = this;
            let t, i;
            const n = e.el;
            (t =
              void 0 !== e.params.width && null !== e.params.width
                ? e.params.width
                : n.clientWidth),
              (i =
                void 0 !== e.params.height && null !== e.params.height
                  ? e.params.height
                  : n.clientHeight),
              (0 === t && e.isHorizontal()) ||
                (0 === i && e.isVertical()) ||
                ((t =
                  t -
                  parseInt(wr(n, "padding-left") || 0, 10) -
                  parseInt(wr(n, "padding-right") || 0, 10)),
                (i =
                  i -
                  parseInt(wr(n, "padding-top") || 0, 10) -
                  parseInt(wr(n, "padding-bottom") || 0, 10)),
                Number.isNaN(t) && (t = 0),
                Number.isNaN(i) && (i = 0),
                Object.assign(e, {
                  width: t,
                  height: i,
                  size: e.isHorizontal() ? t : i,
                }));
          },
          updateSlides: function () {
            const e = this;
            function t(t) {
              return e.isHorizontal()
                ? t
                : {
                    width: "height",
                    "margin-top": "margin-left",
                    "margin-bottom ": "margin-right",
                    "margin-left": "margin-top",
                    "margin-right": "margin-bottom",
                    "padding-left": "padding-top",
                    "padding-right": "padding-bottom",
                    marginRight: "marginBottom",
                  }[t];
            }
            function i(e, i) {
              return parseFloat(e.getPropertyValue(t(i)) || 0);
            }
            const n = e.params,
              {
                wrapperEl: r,
                slidesEl: a,
                size: o,
                rtlTranslate: s,
                wrongRTL: l,
              } = e,
              c = e.virtual && n.virtual.enabled,
              u = c ? e.virtual.slides.length : e.slides.length,
              d = br(a, `.${e.params.slideClass}, swiper-slide`),
              h = c ? e.virtual.slides.length : d.length;
            let f = [];
            const p = [],
              g = [];
            let m = n.slidesOffsetBefore;
            "function" == typeof m && (m = n.slidesOffsetBefore.call(e));
            let v = n.slidesOffsetAfter;
            "function" == typeof v && (v = n.slidesOffsetAfter.call(e));
            const b = e.snapGrid.length,
              y = e.slidesGrid.length;
            let x = n.spaceBetween,
              w = -m,
              E = 0,
              _ = 0;
            if (void 0 === o) return;
            "string" == typeof x &&
              x.indexOf("%") >= 0 &&
              (x = (parseFloat(x.replace("%", "")) / 100) * o),
              (e.virtualSize = -x),
              d.forEach((e) => {
                s ? (e.style.marginLeft = "") : (e.style.marginRight = ""),
                  (e.style.marginBottom = ""),
                  (e.style.marginTop = "");
              }),
              n.centeredSlides &&
                n.cssMode &&
                (gr(r, "--swiper-centered-offset-before", ""),
                gr(r, "--swiper-centered-offset-after", ""));
            const S = n.grid && n.grid.rows > 1 && e.grid;
            let A;
            S && e.grid.initSlides(h);
            const k =
              "auto" === n.slidesPerView &&
              n.breakpoints &&
              Object.keys(n.breakpoints).filter(
                (e) => void 0 !== n.breakpoints[e].slidesPerView
              ).length > 0;
            for (let r = 0; r < h; r += 1) {
              let a;
              if (
                ((A = 0),
                d[r] && (a = d[r]),
                S && e.grid.updateSlide(r, a, h, t),
                !d[r] || "none" !== wr(a, "display"))
              ) {
                if ("auto" === n.slidesPerView) {
                  k && (d[r].style[t("width")] = "");
                  const o = getComputedStyle(a),
                    s = a.style.transform,
                    l = a.style.webkitTransform;
                  if (
                    (s && (a.style.transform = "none"),
                    l && (a.style.webkitTransform = "none"),
                    n.roundLengths)
                  )
                    A = e.isHorizontal()
                      ? Ar(a, "width", !0)
                      : Ar(a, "height", !0);
                  else {
                    const e = i(o, "width"),
                      t = i(o, "padding-left"),
                      n = i(o, "padding-right"),
                      r = i(o, "margin-left"),
                      s = i(o, "margin-right"),
                      l = o.getPropertyValue("box-sizing");
                    if (l && "border-box" === l) A = e + r + s;
                    else {
                      const { clientWidth: i, offsetWidth: o } = a;
                      A = e + t + n + r + s + (o - i);
                    }
                  }
                  s && (a.style.transform = s),
                    l && (a.style.webkitTransform = l),
                    n.roundLengths && (A = Math.floor(A));
                } else
                  (A = (o - (n.slidesPerView - 1) * x) / n.slidesPerView),
                    n.roundLengths && (A = Math.floor(A)),
                    d[r] && (d[r].style[t("width")] = `${A}px`);
                d[r] && (d[r].swiperSlideSize = A),
                  g.push(A),
                  n.centeredSlides
                    ? ((w = w + A / 2 + E / 2 + x),
                      0 === E && 0 !== r && (w = w - o / 2 - x),
                      0 === r && (w = w - o / 2 - x),
                      Math.abs(w) < 0.001 && (w = 0),
                      n.roundLengths && (w = Math.floor(w)),
                      _ % n.slidesPerGroup == 0 && f.push(w),
                      p.push(w))
                    : (n.roundLengths && (w = Math.floor(w)),
                      (_ - Math.min(e.params.slidesPerGroupSkip, _)) %
                        e.params.slidesPerGroup ==
                        0 && f.push(w),
                      p.push(w),
                      (w = w + A + x)),
                  (e.virtualSize += A + x),
                  (E = A),
                  (_ += 1);
              }
            }
            if (
              ((e.virtualSize = Math.max(e.virtualSize, o) + v),
              s &&
                l &&
                ("slide" === n.effect || "coverflow" === n.effect) &&
                (r.style.width = `${e.virtualSize + n.spaceBetween}px`),
              n.setWrapperSize &&
                (r.style[t("width")] = `${e.virtualSize + n.spaceBetween}px`),
              S && e.grid.updateWrapperSize(A, f, t),
              !n.centeredSlides)
            ) {
              const t = [];
              for (let i = 0; i < f.length; i += 1) {
                let r = f[i];
                n.roundLengths && (r = Math.floor(r)),
                  f[i] <= e.virtualSize - o && t.push(r);
              }
              (f = t),
                Math.floor(e.virtualSize - o) - Math.floor(f[f.length - 1]) >
                  1 && f.push(e.virtualSize - o);
            }
            if (c && n.loop) {
              const t = g[0] + x;
              if (n.slidesPerGroup > 1) {
                const i = Math.ceil(
                    (e.virtual.slidesBefore + e.virtual.slidesAfter) /
                      n.slidesPerGroup
                  ),
                  r = t * n.slidesPerGroup;
                for (let e = 0; e < i; e += 1) f.push(f[f.length - 1] + r);
              }
              for (
                let i = 0;
                i < e.virtual.slidesBefore + e.virtual.slidesAfter;
                i += 1
              )
                1 === n.slidesPerGroup && f.push(f[f.length - 1] + t),
                  p.push(p[p.length - 1] + t),
                  (e.virtualSize += t);
            }
            if ((0 === f.length && (f = [0]), 0 !== n.spaceBetween)) {
              const i = e.isHorizontal() && s ? "marginLeft" : t("marginRight");
              d.filter(
                (e, t) => !(n.cssMode && !n.loop) || t !== d.length - 1
              ).forEach((e) => {
                e.style[i] = `${x}px`;
              });
            }
            if (n.centeredSlides && n.centeredSlidesBounds) {
              let e = 0;
              g.forEach((t) => {
                e += t + (n.spaceBetween ? n.spaceBetween : 0);
              }),
                (e -= n.spaceBetween);
              const t = e - o;
              f = f.map((e) => (e < 0 ? -m : e > t ? t + v : e));
            }
            if (n.centerInsufficientSlides) {
              let e = 0;
              if (
                (g.forEach((t) => {
                  e += t + (n.spaceBetween ? n.spaceBetween : 0);
                }),
                (e -= n.spaceBetween),
                e < o)
              ) {
                const t = (o - e) / 2;
                f.forEach((e, i) => {
                  f[i] = e - t;
                }),
                  p.forEach((e, i) => {
                    p[i] = e + t;
                  });
              }
            }
            if (
              (Object.assign(e, {
                slides: d,
                snapGrid: f,
                slidesGrid: p,
                slidesSizesGrid: g,
              }),
              n.centeredSlides && n.cssMode && !n.centeredSlidesBounds)
            ) {
              gr(r, "--swiper-centered-offset-before", -f[0] + "px"),
                gr(
                  r,
                  "--swiper-centered-offset-after",
                  e.size / 2 - g[g.length - 1] / 2 + "px"
                );
              const t = -e.snapGrid[0],
                i = -e.slidesGrid[0];
              (e.snapGrid = e.snapGrid.map((e) => e + t)),
                (e.slidesGrid = e.slidesGrid.map((e) => e + i));
            }
            if (
              (h !== u && e.emit("slidesLengthChange"),
              f.length !== b &&
                (e.params.watchOverflow && e.checkOverflow(),
                e.emit("snapGridLengthChange")),
              p.length !== y && e.emit("slidesGridLengthChange"),
              n.watchSlidesProgress && e.updateSlidesOffset(),
              !(
                c ||
                n.cssMode ||
                ("slide" !== n.effect && "fade" !== n.effect)
              ))
            ) {
              const t = `${n.containerModifierClass}backface-hidden`,
                i = e.el.classList.contains(t);
              h <= n.maxBackfaceHiddenSlides
                ? i || e.el.classList.add(t)
                : i && e.el.classList.remove(t);
            }
          },
          updateAutoHeight: function (e) {
            const t = this,
              i = [],
              n = t.virtual && t.params.virtual.enabled;
            let r,
              a = 0;
            "number" == typeof e
              ? t.setTransition(e)
              : !0 === e && t.setTransition(t.params.speed);
            const o = (e) =>
              n
                ? t.slides.filter(
                    (t) =>
                      parseInt(
                        t.getAttribute("data-swiper-slide-index"),
                        10
                      ) === e
                  )[0]
                : t.slides[e];
            if ("auto" !== t.params.slidesPerView && t.params.slidesPerView > 1)
              if (t.params.centeredSlides)
                (t.visibleSlides || []).forEach((e) => {
                  i.push(e);
                });
              else
                for (r = 0; r < Math.ceil(t.params.slidesPerView); r += 1) {
                  const e = t.activeIndex + r;
                  if (e > t.slides.length && !n) break;
                  i.push(o(e));
                }
            else i.push(o(t.activeIndex));
            for (r = 0; r < i.length; r += 1)
              if (void 0 !== i[r]) {
                const e = i[r].offsetHeight;
                a = e > a ? e : a;
              }
            (a || 0 === a) && (t.wrapperEl.style.height = `${a}px`);
          },
          updateSlidesOffset: function () {
            const e = this,
              t = e.slides,
              i = e.isElement
                ? e.isHorizontal()
                  ? e.wrapperEl.offsetLeft
                  : e.wrapperEl.offsetTop
                : 0;
            for (let n = 0; n < t.length; n += 1)
              t[n].swiperSlideOffset =
                (e.isHorizontal() ? t[n].offsetLeft : t[n].offsetTop) - i;
          },
          updateSlidesProgress: function (e = (this && this.translate) || 0) {
            const t = this,
              i = t.params,
              { slides: n, rtlTranslate: r, snapGrid: a } = t;
            if (0 === n.length) return;
            void 0 === n[0].swiperSlideOffset && t.updateSlidesOffset();
            let o = -e;
            r && (o = e),
              n.forEach((e) => {
                e.classList.remove(i.slideVisibleClass);
              }),
              (t.visibleSlidesIndexes = []),
              (t.visibleSlides = []);
            for (let e = 0; e < n.length; e += 1) {
              const s = n[e];
              let l = s.swiperSlideOffset;
              i.cssMode && i.centeredSlides && (l -= n[0].swiperSlideOffset);
              const c =
                  (o + (i.centeredSlides ? t.minTranslate() : 0) - l) /
                  (s.swiperSlideSize + i.spaceBetween),
                u =
                  (o - a[0] + (i.centeredSlides ? t.minTranslate() : 0) - l) /
                  (s.swiperSlideSize + i.spaceBetween),
                d = -(o - l),
                h = d + t.slidesSizesGrid[e];
              ((d >= 0 && d < t.size - 1) ||
                (h > 1 && h <= t.size) ||
                (d <= 0 && h >= t.size)) &&
                (t.visibleSlides.push(s),
                t.visibleSlidesIndexes.push(e),
                n[e].classList.add(i.slideVisibleClass)),
                (s.progress = r ? -c : c),
                (s.originalProgress = r ? -u : u);
            }
          },
          updateProgress: function (e) {
            const t = this;
            if (void 0 === e) {
              const i = t.rtlTranslate ? -1 : 1;
              e = (t && t.translate && t.translate * i) || 0;
            }
            const i = t.params,
              n = t.maxTranslate() - t.minTranslate();
            let { progress: r, isBeginning: a, isEnd: o, progressLoop: s } = t;
            const l = a,
              c = o;
            if (0 === n) (r = 0), (a = !0), (o = !0);
            else {
              r = (e - t.minTranslate()) / n;
              const i = Math.abs(e - t.minTranslate()) < 1,
                s = Math.abs(e - t.maxTranslate()) < 1;
              (a = i || r <= 0), (o = s || r >= 1), i && (r = 0), s && (r = 1);
            }
            if (i.loop) {
              const i = Er(
                  t.slides.filter(
                    (e) => "0" === e.getAttribute("data-swiper-slide-index")
                  )[0]
                ),
                n = Er(
                  t.slides.filter(
                    (e) =>
                      1 * e.getAttribute("data-swiper-slide-index") ==
                      t.slides.length - 1
                  )[0]
                ),
                r = t.slidesGrid[i],
                a = t.slidesGrid[n],
                o = t.slidesGrid[t.slidesGrid.length - 1],
                l = Math.abs(e);
              (s = l >= r ? (l - r) / o : (l + o - a) / o), s > 1 && (s -= 1);
            }
            Object.assign(t, {
              progress: r,
              progressLoop: s,
              isBeginning: a,
              isEnd: o,
            }),
              (i.watchSlidesProgress || (i.centeredSlides && i.autoHeight)) &&
                t.updateSlidesProgress(e),
              a && !l && t.emit("reachBeginning toEdge"),
              o && !c && t.emit("reachEnd toEdge"),
              ((l && !a) || (c && !o)) && t.emit("fromEdge"),
              t.emit("progress", r);
          },
          updateSlidesClasses: function () {
            const e = this,
              { slides: t, params: i, slidesEl: n, activeIndex: r } = e,
              a = e.virtual && i.virtual.enabled,
              o = (e) => br(n, `.${i.slideClass}${e}, swiper-slide${e}`)[0];
            let s;
            if (
              (t.forEach((e) => {
                e.classList.remove(
                  i.slideActiveClass,
                  i.slideNextClass,
                  i.slidePrevClass
                );
              }),
              a)
            )
              if (i.loop) {
                let t = r - e.virtual.slidesBefore;
                t < 0 && (t = e.virtual.slides.length + t),
                  t >= e.virtual.slides.length &&
                    (t -= e.virtual.slides.length),
                  (s = o(`[data-swiper-slide-index="${t}"]`));
              } else s = o(`[data-swiper-slide-index="${r}"]`);
            else s = t[r];
            if (s) {
              s.classList.add(i.slideActiveClass);
              let e = (function (e, t) {
                const i = [];
                for (; e.nextElementSibling; ) {
                  const n = e.nextElementSibling;
                  t ? n.matches(t) && i.push(n) : i.push(n), (e = n);
                }
                return i;
              })(s, `.${i.slideClass}, swiper-slide`)[0];
              i.loop && !e && (e = t[0]),
                e && e.classList.add(i.slideNextClass);
              let n = (function (e, t) {
                const i = [];
                for (; e.previousElementSibling; ) {
                  const n = e.previousElementSibling;
                  t ? n.matches(t) && i.push(n) : i.push(n), (e = n);
                }
                return i;
              })(s, `.${i.slideClass}, swiper-slide`)[0];
              i.loop && 0 === !n && (n = t[t.length - 1]),
                n && n.classList.add(i.slidePrevClass);
            }
            e.emitSlidesClasses();
          },
          updateActiveIndex: function (e) {
            const t = this,
              i = t.rtlTranslate ? t.translate : -t.translate,
              {
                snapGrid: n,
                params: r,
                activeIndex: a,
                realIndex: o,
                snapIndex: s,
              } = t;
            let l,
              c = e;
            const u = (e) => {
              let i = e - t.virtual.slidesBefore;
              return (
                i < 0 && (i = t.virtual.slides.length + i),
                i >= t.virtual.slides.length && (i -= t.virtual.slides.length),
                i
              );
            };
            if (
              (void 0 === c &&
                (c = (function (e) {
                  const { slidesGrid: t, params: i } = e,
                    n = e.rtlTranslate ? e.translate : -e.translate;
                  let r;
                  for (let e = 0; e < t.length; e += 1)
                    void 0 !== t[e + 1]
                      ? n >= t[e] && n < t[e + 1] - (t[e + 1] - t[e]) / 2
                        ? (r = e)
                        : n >= t[e] && n < t[e + 1] && (r = e + 1)
                      : n >= t[e] && (r = e);
                  return (
                    i.normalizeSlideIndex && (r < 0 || void 0 === r) && (r = 0),
                    r
                  );
                })(t)),
              n.indexOf(i) >= 0)
            )
              l = n.indexOf(i);
            else {
              const e = Math.min(r.slidesPerGroupSkip, c);
              l = e + Math.floor((c - e) / r.slidesPerGroup);
            }
            if ((l >= n.length && (l = n.length - 1), c === a))
              return (
                l !== s && ((t.snapIndex = l), t.emit("snapIndexChange")),
                void (
                  t.params.loop &&
                  t.virtual &&
                  t.params.virtual.enabled &&
                  (t.realIndex = u(c))
                )
              );
            let d;
            (d =
              t.virtual && r.virtual.enabled && r.loop
                ? u(c)
                : t.slides[c]
                ? parseInt(
                    t.slides[c].getAttribute("data-swiper-slide-index") || c,
                    10
                  )
                : c),
              Object.assign(t, {
                snapIndex: l,
                realIndex: d,
                previousIndex: a,
                activeIndex: c,
              }),
              t.emit("activeIndexChange"),
              t.emit("snapIndexChange"),
              o !== d && t.emit("realIndexChange"),
              (t.initialized || t.params.runCallbacksOnInit) &&
                t.emit("slideChange");
          },
          updateClickedSlide: function (e) {
            const t = this,
              i = t.params,
              n = e.closest(`.${i.slideClass}, swiper-slide`);
            let r,
              a = !1;
            if (n)
              for (let e = 0; e < t.slides.length; e += 1)
                if (t.slides[e] === n) {
                  (a = !0), (r = e);
                  break;
                }
            if (!n || !a)
              return (t.clickedSlide = void 0), void (t.clickedIndex = void 0);
            (t.clickedSlide = n),
              t.virtual && t.params.virtual.enabled
                ? (t.clickedIndex = parseInt(
                    n.getAttribute("data-swiper-slide-index"),
                    10
                  ))
                : (t.clickedIndex = r),
              i.slideToClickedSlide &&
                void 0 !== t.clickedIndex &&
                t.clickedIndex !== t.activeIndex &&
                t.slideToClickedSlide();
          },
        };
        const Dr = {
          getTranslate: function (e = this.isHorizontal() ? "x" : "y") {
            const {
              params: t,
              rtlTranslate: i,
              translate: n,
              wrapperEl: r,
            } = this;
            if (t.virtualTranslate) return i ? -n : n;
            if (t.cssMode) return n;
            let a = hr(r, e);
            return i && (a = -a), a || 0;
          },
          setTranslate: function (e, t) {
            const i = this,
              { rtlTranslate: n, params: r, wrapperEl: a, progress: o } = i;
            let s,
              l = 0,
              c = 0;
            i.isHorizontal() ? (l = n ? -e : e) : (c = e),
              r.roundLengths && ((l = Math.floor(l)), (c = Math.floor(c))),
              r.cssMode
                ? (a[i.isHorizontal() ? "scrollLeft" : "scrollTop"] =
                    i.isHorizontal() ? -l : -c)
                : r.virtualTranslate ||
                  (a.style.transform = `translate3d(${l}px, ${c}px, 0px)`),
              (i.previousTranslate = i.translate),
              (i.translate = i.isHorizontal() ? l : c);
            const u = i.maxTranslate() - i.minTranslate();
            (s = 0 === u ? 0 : (e - i.minTranslate()) / u),
              s !== o && i.updateProgress(e),
              i.emit("setTranslate", i.translate, t);
          },
          minTranslate: function () {
            return -this.snapGrid[0];
          },
          maxTranslate: function () {
            return -this.snapGrid[this.snapGrid.length - 1];
          },
          translateTo: function (
            e = 0,
            t = this.params.speed,
            i = !0,
            n = !0,
            r
          ) {
            const a = this,
              { params: o, wrapperEl: s } = a;
            if (a.animating && o.preventInteractionOnTransition) return !1;
            const l = a.minTranslate(),
              c = a.maxTranslate();
            let u;
            if (
              ((u = n && e > l ? l : n && e < c ? c : e),
              a.updateProgress(u),
              o.cssMode)
            ) {
              const e = a.isHorizontal();
              if (0 === t) s[e ? "scrollLeft" : "scrollTop"] = -u;
              else {
                if (!a.support.smoothScroll)
                  return (
                    mr({
                      swiper: a,
                      targetPosition: -u,
                      side: e ? "left" : "top",
                    }),
                    !0
                  );
                s.scrollTo({ [e ? "left" : "top"]: -u, behavior: "smooth" });
              }
              return !0;
            }
            return (
              0 === t
                ? (a.setTransition(0),
                  a.setTranslate(u),
                  i &&
                    (a.emit("beforeTransitionStart", t, r),
                    a.emit("transitionEnd")))
                : (a.setTransition(t),
                  a.setTranslate(u),
                  i &&
                    (a.emit("beforeTransitionStart", t, r),
                    a.emit("transitionStart")),
                  a.animating ||
                    ((a.animating = !0),
                    a.onTranslateToWrapperTransitionEnd ||
                      (a.onTranslateToWrapperTransitionEnd = function (e) {
                        a &&
                          !a.destroyed &&
                          e.target === this &&
                          (a.wrapperEl.removeEventListener(
                            "transitionend",
                            a.onTranslateToWrapperTransitionEnd
                          ),
                          (a.onTranslateToWrapperTransitionEnd = null),
                          delete a.onTranslateToWrapperTransitionEnd,
                          i && a.emit("transitionEnd"));
                      }),
                    a.wrapperEl.addEventListener(
                      "transitionend",
                      a.onTranslateToWrapperTransitionEnd
                    ))),
              !0
            );
          },
        };
        function Rr({ swiper: e, runCallbacks: t, direction: i, step: n }) {
          const { activeIndex: r, previousIndex: a } = e;
          let o = i;
          if (
            (o || (o = r > a ? "next" : r < a ? "prev" : "reset"),
            e.emit(`transition${n}`),
            t && r !== a)
          ) {
            if ("reset" === o) return void e.emit(`slideResetTransition${n}`);
            e.emit(`slideChangeTransition${n}`),
              "next" === o
                ? e.emit(`slideNextTransition${n}`)
                : e.emit(`slidePrevTransition${n}`);
          }
        }
        const Nr = {
          setTransition: function (e, t) {
            const i = this;
            i.params.cssMode ||
              (i.wrapperEl.style.transitionDuration = `${e}ms`),
              i.emit("setTransition", e, t);
          },
          transitionStart: function (e = !0, t) {
            const i = this,
              { params: n } = i;
            n.cssMode ||
              (n.autoHeight && i.updateAutoHeight(),
              Rr({ swiper: i, runCallbacks: e, direction: t, step: "Start" }));
          },
          transitionEnd: function (e = !0, t) {
            const i = this,
              { params: n } = i;
            (i.animating = !1),
              n.cssMode ||
                (i.setTransition(0),
                Rr({ swiper: i, runCallbacks: e, direction: t, step: "End" }));
          },
        };
        const Fr = {
          slideTo: function (e = 0, t = this.params.speed, i = !0, n, r) {
            "string" == typeof e && (e = parseInt(e, 10));
            const a = this;
            let o = e;
            o < 0 && (o = 0);
            const {
              params: s,
              snapGrid: l,
              slidesGrid: c,
              previousIndex: u,
              activeIndex: d,
              rtlTranslate: h,
              wrapperEl: f,
              enabled: p,
            } = a;
            if (
              (a.animating && s.preventInteractionOnTransition) ||
              (!p && !n && !r)
            )
              return !1;
            const g = Math.min(a.params.slidesPerGroupSkip, o);
            let m = g + Math.floor((o - g) / a.params.slidesPerGroup);
            m >= l.length && (m = l.length - 1);
            const v = -l[m];
            if (s.normalizeSlideIndex)
              for (let e = 0; e < c.length; e += 1) {
                const t = -Math.floor(100 * v),
                  i = Math.floor(100 * c[e]),
                  n = Math.floor(100 * c[e + 1]);
                void 0 !== c[e + 1]
                  ? t >= i && t < n - (n - i) / 2
                    ? (o = e)
                    : t >= i && t < n && (o = e + 1)
                  : t >= i && (o = e);
              }
            if (a.initialized && o !== d) {
              if (!a.allowSlideNext && v < a.translate && v < a.minTranslate())
                return !1;
              if (
                !a.allowSlidePrev &&
                v > a.translate &&
                v > a.maxTranslate() &&
                (d || 0) !== o
              )
                return !1;
            }
            let b;
            if (
              (o !== (u || 0) && i && a.emit("beforeSlideChangeStart"),
              a.updateProgress(v),
              (b = o > d ? "next" : o < d ? "prev" : "reset"),
              (h && -v === a.translate) || (!h && v === a.translate))
            )
              return (
                a.updateActiveIndex(o),
                s.autoHeight && a.updateAutoHeight(),
                a.updateSlidesClasses(),
                "slide" !== s.effect && a.setTranslate(v),
                "reset" !== b &&
                  (a.transitionStart(i, b), a.transitionEnd(i, b)),
                !1
              );
            if (s.cssMode) {
              const e = a.isHorizontal(),
                i = h ? v : -v;
              if (0 === t) {
                const t = a.virtual && a.params.virtual.enabled;
                t &&
                  ((a.wrapperEl.style.scrollSnapType = "none"),
                  (a._immediateVirtual = !0)),
                  t && !a._cssModeVirtualInitialSet && a.params.initialSlide > 0
                    ? ((a._cssModeVirtualInitialSet = !0),
                      requestAnimationFrame(() => {
                        f[e ? "scrollLeft" : "scrollTop"] = i;
                      }))
                    : (f[e ? "scrollLeft" : "scrollTop"] = i),
                  t &&
                    requestAnimationFrame(() => {
                      (a.wrapperEl.style.scrollSnapType = ""),
                        (a._immediateVirtual = !1);
                    });
              } else {
                if (!a.support.smoothScroll)
                  return (
                    mr({
                      swiper: a,
                      targetPosition: i,
                      side: e ? "left" : "top",
                    }),
                    !0
                  );
                f.scrollTo({ [e ? "left" : "top"]: i, behavior: "smooth" });
              }
              return !0;
            }
            return (
              a.setTransition(t),
              a.setTranslate(v),
              a.updateActiveIndex(o),
              a.updateSlidesClasses(),
              a.emit("beforeTransitionStart", t, n),
              a.transitionStart(i, b),
              0 === t
                ? a.transitionEnd(i, b)
                : a.animating ||
                  ((a.animating = !0),
                  a.onSlideToWrapperTransitionEnd ||
                    (a.onSlideToWrapperTransitionEnd = function (e) {
                      a &&
                        !a.destroyed &&
                        e.target === this &&
                        (a.wrapperEl.removeEventListener(
                          "transitionend",
                          a.onSlideToWrapperTransitionEnd
                        ),
                        (a.onSlideToWrapperTransitionEnd = null),
                        delete a.onSlideToWrapperTransitionEnd,
                        a.transitionEnd(i, b));
                    }),
                  a.wrapperEl.addEventListener(
                    "transitionend",
                    a.onSlideToWrapperTransitionEnd
                  )),
              !0
            );
          },
          slideToLoop: function (e = 0, t = this.params.speed, i = !0, n) {
            if ("string" == typeof e) {
              e = parseInt(e, 10);
            }
            const r = this;
            let a = e;
            return (
              r.params.loop &&
                (r.virtual && r.params.virtual.enabled
                  ? (a += r.virtual.slidesBefore)
                  : (a = Er(
                      r.slides.filter(
                        (e) =>
                          1 * e.getAttribute("data-swiper-slide-index") === a
                      )[0]
                    ))),
              r.slideTo(a, t, i, n)
            );
          },
          slideNext: function (e = this.params.speed, t = !0, i) {
            const n = this,
              { enabled: r, params: a, animating: o } = n;
            if (!r) return n;
            let s = a.slidesPerGroup;
            "auto" === a.slidesPerView &&
              1 === a.slidesPerGroup &&
              a.slidesPerGroupAuto &&
              (s = Math.max(n.slidesPerViewDynamic("current", !0), 1));
            const l = n.activeIndex < a.slidesPerGroupSkip ? 1 : s,
              c = n.virtual && a.virtual.enabled;
            if (a.loop) {
              if (o && !c && a.loopPreventsSliding) return !1;
              n.loopFix({ direction: "next" }),
                (n._clientLeft = n.wrapperEl.clientLeft);
            }
            return a.rewind && n.isEnd
              ? n.slideTo(0, e, t, i)
              : n.slideTo(n.activeIndex + l, e, t, i);
          },
          slidePrev: function (e = this.params.speed, t = !0, i) {
            const n = this,
              {
                params: r,
                snapGrid: a,
                slidesGrid: o,
                rtlTranslate: s,
                enabled: l,
                animating: c,
              } = n;
            if (!l) return n;
            const u = n.virtual && r.virtual.enabled;
            if (r.loop) {
              if (c && !u && r.loopPreventsSliding) return !1;
              n.loopFix({ direction: "prev" }),
                (n._clientLeft = n.wrapperEl.clientLeft);
            }
            function d(e) {
              return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e);
            }
            const h = d(s ? n.translate : -n.translate),
              f = a.map((e) => d(e));
            let p = a[f.indexOf(h) - 1];
            if (void 0 === p && r.cssMode) {
              let e;
              a.forEach((t, i) => {
                h >= t && (e = i);
              }),
                void 0 !== e && (p = a[e > 0 ? e - 1 : e]);
            }
            let g = 0;
            if (
              (void 0 !== p &&
                ((g = o.indexOf(p)),
                g < 0 && (g = n.activeIndex - 1),
                "auto" === r.slidesPerView &&
                  1 === r.slidesPerGroup &&
                  r.slidesPerGroupAuto &&
                  ((g = g - n.slidesPerViewDynamic("previous", !0) + 1),
                  (g = Math.max(g, 0)))),
              r.rewind && n.isBeginning)
            ) {
              const r =
                n.params.virtual && n.params.virtual.enabled && n.virtual
                  ? n.virtual.slides.length - 1
                  : n.slides.length - 1;
              return n.slideTo(r, e, t, i);
            }
            return n.slideTo(g, e, t, i);
          },
          slideReset: function (e = this.params.speed, t = !0, i) {
            return this.slideTo(this.activeIndex, e, t, i);
          },
          slideToClosest: function (e = this.params.speed, t = !0, i, n = 0.5) {
            const r = this;
            let a = r.activeIndex;
            const o = Math.min(r.params.slidesPerGroupSkip, a),
              s = o + Math.floor((a - o) / r.params.slidesPerGroup),
              l = r.rtlTranslate ? r.translate : -r.translate;
            if (l >= r.snapGrid[s]) {
              const e = r.snapGrid[s];
              l - e > (r.snapGrid[s + 1] - e) * n &&
                (a += r.params.slidesPerGroup);
            } else {
              const e = r.snapGrid[s - 1];
              l - e <= (r.snapGrid[s] - e) * n &&
                (a -= r.params.slidesPerGroup);
            }
            return (
              (a = Math.max(a, 0)),
              (a = Math.min(a, r.slidesGrid.length - 1)),
              r.slideTo(a, e, t, i)
            );
          },
          slideToClickedSlide: function () {
            const e = this,
              { params: t, slidesEl: i } = e,
              n =
                "auto" === t.slidesPerView
                  ? e.slidesPerViewDynamic()
                  : t.slidesPerView;
            let r,
              a = e.clickedIndex;
            const o = e.isElement ? "swiper-slide" : `.${t.slideClass}`;
            if (t.loop) {
              if (e.animating) return;
              (r = parseInt(
                e.clickedSlide.getAttribute("data-swiper-slide-index"),
                10
              )),
                t.centeredSlides
                  ? a < e.loopedSlides - n / 2 ||
                    a > e.slides.length - e.loopedSlides + n / 2
                    ? (e.loopFix(),
                      (a = Er(
                        br(i, `${o}[data-swiper-slide-index="${r}"]`)[0]
                      )),
                      ur(() => {
                        e.slideTo(a);
                      }))
                    : e.slideTo(a)
                  : a > e.slides.length - n
                  ? (e.loopFix(),
                    (a = Er(br(i, `${o}[data-swiper-slide-index="${r}"]`)[0])),
                    ur(() => {
                      e.slideTo(a);
                    }))
                  : e.slideTo(a);
            } else e.slideTo(a);
          },
        };
        const Br = {
          loopCreate: function (e) {
            const t = this,
              { params: i, slidesEl: n } = t;
            if (!i.loop || (t.virtual && t.params.virtual.enabled)) return;
            br(n, `.${i.slideClass}, swiper-slide`).forEach((e, t) => {
              e.setAttribute("data-swiper-slide-index", t);
            }),
              t.loopFix({
                slideRealIndex: e,
                direction: i.centeredSlides ? void 0 : "next",
              });
          },
          loopFix: function ({
            slideRealIndex: e,
            slideTo: t = !0,
            direction: i,
            setTranslate: n,
            activeSlideIndex: r,
            byController: a,
            byMousewheel: o,
          } = {}) {
            const s = this;
            if (!s.params.loop) return;
            s.emit("beforeLoopFix");
            const {
              slides: l,
              allowSlidePrev: c,
              allowSlideNext: u,
              slidesEl: d,
              params: h,
            } = s;
            if (
              ((s.allowSlidePrev = !0),
              (s.allowSlideNext = !0),
              s.virtual && h.virtual.enabled)
            )
              return (
                t &&
                  (h.centeredSlides || 0 !== s.snapIndex
                    ? h.centeredSlides && s.snapIndex < h.slidesPerView
                      ? s.slideTo(
                          s.virtual.slides.length + s.snapIndex,
                          0,
                          !1,
                          !0
                        )
                      : s.snapIndex === s.snapGrid.length - 1 &&
                        s.slideTo(s.virtual.slidesBefore, 0, !1, !0)
                    : s.slideTo(s.virtual.slides.length, 0, !1, !0)),
                (s.allowSlidePrev = c),
                (s.allowSlideNext = u),
                void s.emit("loopFix")
              );
            const f =
              "auto" === h.slidesPerView
                ? s.slidesPerViewDynamic()
                : Math.ceil(parseFloat(h.slidesPerView, 10));
            let p = h.loopedSlides || f;
            p % h.slidesPerGroup != 0 &&
              (p += h.slidesPerGroup - (p % h.slidesPerGroup)),
              (s.loopedSlides = p);
            const g = [],
              m = [];
            let v = s.activeIndex;
            void 0 === r
              ? (r = Er(
                  s.slides.filter((e) =>
                    e.classList.contains("swiper-slide-active")
                  )[0]
                ))
              : (v = r);
            const b = "next" === i || !i,
              y = "prev" === i || !i;
            let x = 0,
              w = 0;
            if (r < p) {
              x = p - r;
              for (let e = 0; e < p - r; e += 1) {
                const t = e - Math.floor(e / l.length) * l.length;
                g.push(l.length - t - 1);
              }
            } else if (r > s.slides.length - 2 * p) {
              w = r - (s.slides.length - 2 * p);
              for (let e = 0; e < w; e += 1) {
                const t = e - Math.floor(e / l.length) * l.length;
                m.push(t);
              }
            }
            if (
              (y &&
                g.forEach((e) => {
                  d.prepend(s.slides[e]);
                }),
              b &&
                m.forEach((e) => {
                  d.append(s.slides[e]);
                }),
              s.recalcSlides(),
              h.watchSlidesProgress && s.updateSlidesOffset(),
              t)
            )
              if (g.length > 0 && y)
                if (void 0 === e) {
                  const e = s.slidesGrid[v],
                    t = s.slidesGrid[v + x] - e;
                  o
                    ? s.setTranslate(s.translate - t)
                    : (s.slideTo(v + x, 0, !1, !0),
                      n &&
                        (s.touches[s.isHorizontal() ? "startX" : "startY"] +=
                          t));
                } else n && s.slideToLoop(e, 0, !1, !0);
              else if (m.length > 0 && b)
                if (void 0 === e) {
                  const e = s.slidesGrid[v],
                    t = s.slidesGrid[v - w] - e;
                  o
                    ? s.setTranslate(s.translate - t)
                    : (s.slideTo(v - w, 0, !1, !0),
                      n &&
                        (s.touches[s.isHorizontal() ? "startX" : "startY"] +=
                          t));
                } else s.slideToLoop(e, 0, !1, !0);
            if (
              ((s.allowSlidePrev = c),
              (s.allowSlideNext = u),
              s.controller && s.controller.control && !a)
            ) {
              const t = {
                slideRealIndex: e,
                slideTo: !1,
                direction: i,
                setTranslate: n,
                activeSlideIndex: r,
                byController: !0,
              };
              Array.isArray(s.controller.control)
                ? s.controller.control.forEach((e) => {
                    e.params.loop && e.loopFix(t);
                  })
                : s.controller.control instanceof s.constructor &&
                  s.controller.control.params.loop &&
                  s.controller.control.loopFix(t);
            }
            s.emit("loopFix");
          },
          loopDestroy: function () {
            const e = this,
              { slides: t, params: i, slidesEl: n } = e;
            if (!i.loop || (e.virtual && e.params.virtual.enabled)) return;
            e.recalcSlides();
            const r = [];
            t.forEach((e) => {
              const t =
                void 0 === e.swiperSlideIndex
                  ? 1 * e.getAttribute("data-swiper-slide-index")
                  : e.swiperSlideIndex;
              r[t] = e;
            }),
              t.forEach((e) => {
                e.removeAttribute("data-swiper-slide-index");
              }),
              r.forEach((e) => {
                n.append(e);
              }),
              e.recalcSlides(),
              e.slideTo(e.realIndex, 0);
          },
        };
        function zr(e) {
          const t = this,
            i = sr(),
            n = cr(),
            r = t.touchEventsData;
          r.evCache.push(e);
          const { params: a, touches: o, enabled: s } = t;
          if (!s) return;
          if (!a.simulateTouch && "mouse" === e.pointerType) return;
          if (t.animating && a.preventInteractionOnTransition) return;
          !t.animating && a.cssMode && a.loop && t.loopFix();
          let l = e;
          l.originalEvent && (l = l.originalEvent);
          let c = l.target;
          if ("wrapper" === a.touchEventsTarget && !t.wrapperEl.contains(c))
            return;
          if ("which" in l && 3 === l.which) return;
          if ("button" in l && l.button > 0) return;
          if (r.isTouched && r.isMoved) return;
          const u = !!a.noSwipingClass && "" !== a.noSwipingClass,
            d = e.composedPath ? e.composedPath() : e.path;
          u && l.target && l.target.shadowRoot && d && (c = d[0]);
          const h = a.noSwipingSelector
              ? a.noSwipingSelector
              : `.${a.noSwipingClass}`,
            f = !(!l.target || !l.target.shadowRoot);
          if (
            a.noSwiping &&
            (f
              ? (function (e, t = this) {
                  return (function t(i) {
                    if (!i || i === sr() || i === cr()) return null;
                    i.assignedSlot && (i = i.assignedSlot);
                    const n = i.closest(e);
                    return n || i.getRootNode
                      ? n || t(i.getRootNode().host)
                      : null;
                  })(t);
                })(h, c)
              : c.closest(h))
          )
            return void (t.allowClick = !0);
          if (a.swipeHandler && !c.closest(a.swipeHandler)) return;
          (o.currentX = l.pageX), (o.currentY = l.pageY);
          const p = o.currentX,
            g = o.currentY,
            m = a.edgeSwipeDetection || a.iOSEdgeSwipeDetection,
            v = a.edgeSwipeThreshold || a.iOSEdgeSwipeThreshold;
          if (m && (p <= v || p >= n.innerWidth - v)) {
            if ("prevent" !== m) return;
            e.preventDefault();
          }
          Object.assign(r, {
            isTouched: !0,
            isMoved: !1,
            allowTouchCallbacks: !0,
            isScrolling: void 0,
            startMoving: void 0,
          }),
            (o.startX = p),
            (o.startY = g),
            (r.touchStartTime = dr()),
            (t.allowClick = !0),
            t.updateSize(),
            (t.swipeDirection = void 0),
            a.threshold > 0 && (r.allowThresholdMove = !1);
          let b = !0;
          c.matches(r.focusableElements) &&
            ((b = !1), "SELECT" === c.nodeName && (r.isTouched = !1)),
            i.activeElement &&
              i.activeElement.matches(r.focusableElements) &&
              i.activeElement !== c &&
              i.activeElement.blur();
          const y = b && t.allowTouchMove && a.touchStartPreventDefault;
          (!a.touchStartForcePreventDefault && !y) ||
            c.isContentEditable ||
            l.preventDefault(),
            t.params.freeMode &&
              t.params.freeMode.enabled &&
              t.freeMode &&
              t.animating &&
              !a.cssMode &&
              t.freeMode.onTouchStart(),
            t.emit("touchStart", l);
        }
        function jr(e) {
          const t = sr(),
            i = this,
            n = i.touchEventsData,
            { params: r, touches: a, rtlTranslate: o, enabled: s } = i;
          if (!s) return;
          if (!r.simulateTouch && "mouse" === e.pointerType) return;
          let l = e;
          if ((l.originalEvent && (l = l.originalEvent), !n.isTouched))
            return void (
              n.startMoving &&
              n.isScrolling &&
              i.emit("touchMoveOpposite", l)
            );
          const c = n.evCache.findIndex((e) => e.pointerId === l.pointerId);
          c >= 0 && (n.evCache[c] = l);
          const u = n.evCache.length > 1 ? n.evCache[0] : l,
            d = u.pageX,
            h = u.pageY;
          if (l.preventedByNestedSwiper)
            return (a.startX = d), void (a.startY = h);
          if (!i.allowTouchMove)
            return (
              l.target.matches(n.focusableElements) || (i.allowClick = !1),
              void (
                n.isTouched &&
                (Object.assign(a, {
                  startX: d,
                  startY: h,
                  prevX: i.touches.currentX,
                  prevY: i.touches.currentY,
                  currentX: d,
                  currentY: h,
                }),
                (n.touchStartTime = dr()))
              )
            );
          if (r.touchReleaseOnEdges && !r.loop)
            if (i.isVertical()) {
              if (
                (h < a.startY && i.translate <= i.maxTranslate()) ||
                (h > a.startY && i.translate >= i.minTranslate())
              )
                return (n.isTouched = !1), void (n.isMoved = !1);
            } else if (
              (d < a.startX && i.translate <= i.maxTranslate()) ||
              (d > a.startX && i.translate >= i.minTranslate())
            )
              return;
          if (
            t.activeElement &&
            l.target === t.activeElement &&
            l.target.matches(n.focusableElements)
          )
            return (n.isMoved = !0), void (i.allowClick = !1);
          if (
            (n.allowTouchCallbacks && i.emit("touchMove", l),
            l.targetTouches && l.targetTouches.length > 1)
          )
            return;
          (a.currentX = d), (a.currentY = h);
          const f = a.currentX - a.startX,
            p = a.currentY - a.startY;
          if (
            i.params.threshold &&
            Math.sqrt(f ** 2 + p ** 2) < i.params.threshold
          )
            return;
          if (void 0 === n.isScrolling) {
            let e;
            (i.isHorizontal() && a.currentY === a.startY) ||
            (i.isVertical() && a.currentX === a.startX)
              ? (n.isScrolling = !1)
              : f * f + p * p >= 25 &&
                ((e = (180 * Math.atan2(Math.abs(p), Math.abs(f))) / Math.PI),
                (n.isScrolling = i.isHorizontal()
                  ? e > r.touchAngle
                  : 90 - e > r.touchAngle));
          }
          if (
            (n.isScrolling && i.emit("touchMoveOpposite", l),
            void 0 === n.startMoving &&
              ((a.currentX === a.startX && a.currentY === a.startY) ||
                (n.startMoving = !0)),
            n.isScrolling ||
              (i.zoom &&
                i.params.zoom &&
                i.params.zoom.enabled &&
                n.evCache.length > 1))
          )
            return void (n.isTouched = !1);
          if (!n.startMoving) return;
          (i.allowClick = !1),
            !r.cssMode && l.cancelable && l.preventDefault(),
            r.touchMoveStopPropagation && !r.nested && l.stopPropagation();
          let g = i.isHorizontal() ? f : p,
            m = i.isHorizontal()
              ? a.currentX - a.previousX
              : a.currentY - a.previousY;
          r.oneWayMovement &&
            ((g = Math.abs(g) * (o ? 1 : -1)),
            (m = Math.abs(m) * (o ? 1 : -1))),
            (a.diff = g),
            (g *= r.touchRatio),
            o && ((g = -g), (m = -m));
          const v = i.touchesDirection;
          (i.swipeDirection = g > 0 ? "prev" : "next"),
            (i.touchesDirection = m > 0 ? "prev" : "next");
          const b = i.params.loop && !r.cssMode;
          if (!n.isMoved) {
            if (
              (b && i.loopFix({ direction: i.swipeDirection }),
              (n.startTranslate = i.getTranslate()),
              i.setTransition(0),
              i.animating)
            ) {
              const e = new window.CustomEvent("transitionend", {
                bubbles: !0,
                cancelable: !0,
              });
              i.wrapperEl.dispatchEvent(e);
            }
            (n.allowMomentumBounce = !1),
              !r.grabCursor ||
                (!0 !== i.allowSlideNext && !0 !== i.allowSlidePrev) ||
                i.setGrabCursor(!0),
              i.emit("sliderFirstMove", l);
          }
          let y;
          n.isMoved &&
            v !== i.touchesDirection &&
            b &&
            Math.abs(g) >= 1 &&
            (i.loopFix({ direction: i.swipeDirection, setTranslate: !0 }),
            (y = !0)),
            i.emit("sliderMove", l),
            (n.isMoved = !0),
            (n.currentTranslate = g + n.startTranslate);
          let x = !0,
            w = r.resistanceRatio;
          if (
            (r.touchReleaseOnEdges && (w = 0),
            g > 0
              ? (b &&
                  !y &&
                  n.currentTranslate >
                    (r.centeredSlides
                      ? i.minTranslate() - i.size / 2
                      : i.minTranslate()) &&
                  i.loopFix({
                    direction: "prev",
                    setTranslate: !0,
                    activeSlideIndex: 0,
                  }),
                n.currentTranslate > i.minTranslate() &&
                  ((x = !1),
                  r.resistance &&
                    (n.currentTranslate =
                      i.minTranslate() -
                      1 +
                      (-i.minTranslate() + n.startTranslate + g) ** w)))
              : g < 0 &&
                (b &&
                  !y &&
                  n.currentTranslate <
                    (r.centeredSlides
                      ? i.maxTranslate() + i.size / 2
                      : i.maxTranslate()) &&
                  i.loopFix({
                    direction: "next",
                    setTranslate: !0,
                    activeSlideIndex:
                      i.slides.length -
                      ("auto" === r.slidesPerView
                        ? i.slidesPerViewDynamic()
                        : Math.ceil(parseFloat(r.slidesPerView, 10))),
                  }),
                n.currentTranslate < i.maxTranslate() &&
                  ((x = !1),
                  r.resistance &&
                    (n.currentTranslate =
                      i.maxTranslate() +
                      1 -
                      (i.maxTranslate() - n.startTranslate - g) ** w))),
            x && (l.preventedByNestedSwiper = !0),
            !i.allowSlideNext &&
              "next" === i.swipeDirection &&
              n.currentTranslate < n.startTranslate &&
              (n.currentTranslate = n.startTranslate),
            !i.allowSlidePrev &&
              "prev" === i.swipeDirection &&
              n.currentTranslate > n.startTranslate &&
              (n.currentTranslate = n.startTranslate),
            i.allowSlidePrev ||
              i.allowSlideNext ||
              (n.currentTranslate = n.startTranslate),
            r.threshold > 0)
          ) {
            if (!(Math.abs(g) > r.threshold || n.allowThresholdMove))
              return void (n.currentTranslate = n.startTranslate);
            if (!n.allowThresholdMove)
              return (
                (n.allowThresholdMove = !0),
                (a.startX = a.currentX),
                (a.startY = a.currentY),
                (n.currentTranslate = n.startTranslate),
                void (a.diff = i.isHorizontal()
                  ? a.currentX - a.startX
                  : a.currentY - a.startY)
              );
          }
          r.followFinger &&
            !r.cssMode &&
            (((r.freeMode && r.freeMode.enabled && i.freeMode) ||
              r.watchSlidesProgress) &&
              (i.updateActiveIndex(), i.updateSlidesClasses()),
            i.params.freeMode &&
              r.freeMode.enabled &&
              i.freeMode &&
              i.freeMode.onTouchMove(),
            i.updateProgress(n.currentTranslate),
            i.setTranslate(n.currentTranslate));
        }
        function Hr(e) {
          const t = this,
            i = t.touchEventsData,
            n = i.evCache.findIndex((t) => t.pointerId === e.pointerId);
          if (
            (n >= 0 && i.evCache.splice(n, 1),
            ["pointercancel", "pointerout", "pointerleave"].includes(e.type))
          )
            return;
          const {
            params: r,
            touches: a,
            rtlTranslate: o,
            slidesGrid: s,
            enabled: l,
          } = t;
          if (!l) return;
          if (!r.simulateTouch && "mouse" === e.pointerType) return;
          let c = e;
          if (
            (c.originalEvent && (c = c.originalEvent),
            i.allowTouchCallbacks && t.emit("touchEnd", c),
            (i.allowTouchCallbacks = !1),
            !i.isTouched)
          )
            return (
              i.isMoved && r.grabCursor && t.setGrabCursor(!1),
              (i.isMoved = !1),
              void (i.startMoving = !1)
            );
          r.grabCursor &&
            i.isMoved &&
            i.isTouched &&
            (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) &&
            t.setGrabCursor(!1);
          const u = dr(),
            d = u - i.touchStartTime;
          if (t.allowClick) {
            const e = c.path || (c.composedPath && c.composedPath());
            t.updateClickedSlide((e && e[0]) || c.target),
              t.emit("tap click", c),
              d < 300 &&
                u - i.lastClickTime < 300 &&
                t.emit("doubleTap doubleClick", c);
          }
          if (
            ((i.lastClickTime = dr()),
            ur(() => {
              t.destroyed || (t.allowClick = !0);
            }),
            !i.isTouched ||
              !i.isMoved ||
              !t.swipeDirection ||
              0 === a.diff ||
              i.currentTranslate === i.startTranslate)
          )
            return (
              (i.isTouched = !1), (i.isMoved = !1), void (i.startMoving = !1)
            );
          let h;
          if (
            ((i.isTouched = !1),
            (i.isMoved = !1),
            (i.startMoving = !1),
            (h = r.followFinger
              ? o
                ? t.translate
                : -t.translate
              : -i.currentTranslate),
            r.cssMode)
          )
            return;
          if (t.params.freeMode && r.freeMode.enabled)
            return void t.freeMode.onTouchEnd({ currentPos: h });
          let f = 0,
            p = t.slidesSizesGrid[0];
          for (
            let e = 0;
            e < s.length;
            e += e < r.slidesPerGroupSkip ? 1 : r.slidesPerGroup
          ) {
            const t = e < r.slidesPerGroupSkip - 1 ? 1 : r.slidesPerGroup;
            void 0 !== s[e + t]
              ? h >= s[e] && h < s[e + t] && ((f = e), (p = s[e + t] - s[e]))
              : h >= s[e] && ((f = e), (p = s[s.length - 1] - s[s.length - 2]));
          }
          let g = null,
            m = null;
          r.rewind &&
            (t.isBeginning
              ? (m =
                  t.params.virtual && t.params.virtual.enabled && t.virtual
                    ? t.virtual.slides.length - 1
                    : t.slides.length - 1)
              : t.isEnd && (g = 0));
          const v = (h - s[f]) / p,
            b = f < r.slidesPerGroupSkip - 1 ? 1 : r.slidesPerGroup;
          if (d > r.longSwipesMs) {
            if (!r.longSwipes) return void t.slideTo(t.activeIndex);
            "next" === t.swipeDirection &&
              (v >= r.longSwipesRatio
                ? t.slideTo(r.rewind && t.isEnd ? g : f + b)
                : t.slideTo(f)),
              "prev" === t.swipeDirection &&
                (v > 1 - r.longSwipesRatio
                  ? t.slideTo(f + b)
                  : null !== m && v < 0 && Math.abs(v) > r.longSwipesRatio
                  ? t.slideTo(m)
                  : t.slideTo(f));
          } else {
            if (!r.shortSwipes) return void t.slideTo(t.activeIndex);
            t.navigation &&
            (c.target === t.navigation.nextEl ||
              c.target === t.navigation.prevEl)
              ? c.target === t.navigation.nextEl
                ? t.slideTo(f + b)
                : t.slideTo(f)
              : ("next" === t.swipeDirection &&
                  t.slideTo(null !== g ? g : f + b),
                "prev" === t.swipeDirection && t.slideTo(null !== m ? m : f));
          }
        }
        let Yr;
        function Xr() {
          const e = this,
            { params: t, el: i } = e;
          if (i && 0 === i.offsetWidth) return;
          t.breakpoints && e.setBreakpoint();
          const { allowSlideNext: n, allowSlidePrev: r, snapGrid: a } = e,
            o = e.virtual && e.params.virtual.enabled;
          (e.allowSlideNext = !0),
            (e.allowSlidePrev = !0),
            e.updateSize(),
            e.updateSlides(),
            e.updateSlidesClasses();
          const s = o && t.loop;
          !("auto" === t.slidesPerView || t.slidesPerView > 1) ||
          !e.isEnd ||
          e.isBeginning ||
          e.params.centeredSlides ||
          s
            ? e.params.loop && !o
              ? e.slideToLoop(e.realIndex, 0, !1, !0)
              : e.slideTo(e.activeIndex, 0, !1, !0)
            : e.slideTo(e.slides.length - 1, 0, !1, !0),
            e.autoplay &&
              e.autoplay.running &&
              e.autoplay.paused &&
              (clearTimeout(Yr),
              (Yr = setTimeout(() => {
                e.autoplay.resume();
              }, 500))),
            (e.allowSlidePrev = r),
            (e.allowSlideNext = n),
            e.params.watchOverflow && a !== e.snapGrid && e.checkOverflow();
        }
        function Wr(e) {
          const t = this;
          t.enabled &&
            (t.allowClick ||
              (t.params.preventClicks && e.preventDefault(),
              t.params.preventClicksPropagation &&
                t.animating &&
                (e.stopPropagation(), e.stopImmediatePropagation())));
        }
        function Gr() {
          const e = this,
            { wrapperEl: t, rtlTranslate: i, enabled: n } = e;
          if (!n) return;
          let r;
          (e.previousTranslate = e.translate),
            e.isHorizontal()
              ? (e.translate = -t.scrollLeft)
              : (e.translate = -t.scrollTop),
            0 === e.translate && (e.translate = 0),
            e.updateActiveIndex(),
            e.updateSlidesClasses();
          const a = e.maxTranslate() - e.minTranslate();
          (r = 0 === a ? 0 : (e.translate - e.minTranslate()) / a),
            r !== e.progress &&
              e.updateProgress(i ? -e.translate : e.translate),
            e.emit("setTranslate", e.translate, !1);
        }
        const qr = (e, t) => {
          if (!e || e.destroyed || !e.params) return;
          const i = t.closest(
            e.isElement ? "swiper-slide" : `.${e.params.slideClass}`
          );
          if (i) {
            const t = i.querySelector(`.${e.params.lazyPreloaderClass}`);
            t && t.remove();
          }
        };
        function Vr(e) {
          qr(this, e.target), this.update();
        }
        let Ur = !1;
        function $r() {}
        const Zr = (e, t) => {
          const i = sr(),
            { params: n, el: r, wrapperEl: a, device: o } = e,
            s = !!n.nested,
            l = "on" === t ? "addEventListener" : "removeEventListener",
            c = t;
          r[l]("pointerdown", e.onTouchStart, { passive: !1 }),
            i[l]("pointermove", e.onTouchMove, { passive: !1, capture: s }),
            i[l]("pointerup", e.onTouchEnd, { passive: !0 }),
            i[l]("pointercancel", e.onTouchEnd, { passive: !0 }),
            i[l]("pointerout", e.onTouchEnd, { passive: !0 }),
            i[l]("pointerleave", e.onTouchEnd, { passive: !0 }),
            (n.preventClicks || n.preventClicksPropagation) &&
              r[l]("click", e.onClick, !0),
            n.cssMode && a[l]("scroll", e.onScroll),
            n.updateOnWindowResize
              ? e[c](
                  o.ios || o.android
                    ? "resize orientationchange observerUpdate"
                    : "resize observerUpdate",
                  Xr,
                  !0
                )
              : e[c]("observerUpdate", Xr, !0),
            r[l]("load", e.onLoad, { capture: !0 });
        };
        const Kr = (e, t) => e.grid && t.grid && t.grid.rows > 1;
        const Jr = {
          setBreakpoint: function () {
            const e = this,
              { realIndex: t, initialized: i, params: n, el: r } = e,
              a = n.breakpoints;
            if (!a || (a && 0 === Object.keys(a).length)) return;
            const o = e.getBreakpoint(a, e.params.breakpointsBase, e.el);
            if (!o || e.currentBreakpoint === o) return;
            const s = (o in a ? a[o] : void 0) || e.originalParams,
              l = Kr(e, n),
              c = Kr(e, s),
              u = n.enabled;
            l && !c
              ? (r.classList.remove(
                  `${n.containerModifierClass}grid`,
                  `${n.containerModifierClass}grid-column`
                ),
                e.emitContainerClasses())
              : !l &&
                c &&
                (r.classList.add(`${n.containerModifierClass}grid`),
                ((s.grid.fill && "column" === s.grid.fill) ||
                  (!s.grid.fill && "column" === n.grid.fill)) &&
                  r.classList.add(`${n.containerModifierClass}grid-column`),
                e.emitContainerClasses()),
              ["navigation", "pagination", "scrollbar"].forEach((t) => {
                const i = n[t] && n[t].enabled,
                  r = s[t] && s[t].enabled;
                i && !r && e[t].disable(), !i && r && e[t].enable();
              });
            const d = s.direction && s.direction !== n.direction,
              h = n.loop && (s.slidesPerView !== n.slidesPerView || d);
            d && i && e.changeDirection(), pr(e.params, s);
            const f = e.params.enabled;
            Object.assign(e, {
              allowTouchMove: e.params.allowTouchMove,
              allowSlideNext: e.params.allowSlideNext,
              allowSlidePrev: e.params.allowSlidePrev,
            }),
              u && !f ? e.disable() : !u && f && e.enable(),
              (e.currentBreakpoint = o),
              e.emit("_beforeBreakpoint", s),
              h && i && (e.loopDestroy(), e.loopCreate(t), e.updateSlides()),
              e.emit("breakpoint", s);
          },
          getBreakpoint: function (e, t = "window", i) {
            if (!e || ("container" === t && !i)) return;
            let n = !1;
            const r = cr(),
              a = "window" === t ? r.innerHeight : i.clientHeight,
              o = Object.keys(e).map((e) => {
                if ("string" == typeof e && 0 === e.indexOf("@")) {
                  const t = parseFloat(e.substr(1));
                  return { value: a * t, point: e };
                }
                return { value: e, point: e };
              });
            o.sort((e, t) => parseInt(e.value, 10) - parseInt(t.value, 10));
            for (let e = 0; e < o.length; e += 1) {
              const { point: a, value: s } = o[e];
              "window" === t
                ? r.matchMedia(`(min-width: ${s}px)`).matches && (n = a)
                : s <= i.clientWidth && (n = a);
            }
            return n || "max";
          },
        };
        const Qr = {
          addClasses: function () {
            const e = this,
              { classNames: t, params: i, rtl: n, el: r, device: a } = e,
              o = (function (e, t) {
                const i = [];
                return (
                  e.forEach((e) => {
                    "object" == typeof e
                      ? Object.keys(e).forEach((n) => {
                          e[n] && i.push(t + n);
                        })
                      : "string" == typeof e && i.push(t + e);
                  }),
                  i
                );
              })(
                [
                  "initialized",
                  i.direction,
                  { "free-mode": e.params.freeMode && i.freeMode.enabled },
                  { autoheight: i.autoHeight },
                  { rtl: n },
                  { grid: i.grid && i.grid.rows > 1 },
                  {
                    "grid-column":
                      i.grid && i.grid.rows > 1 && "column" === i.grid.fill,
                  },
                  { android: a.android },
                  { ios: a.ios },
                  { "css-mode": i.cssMode },
                  { centered: i.cssMode && i.centeredSlides },
                  { "watch-progress": i.watchSlidesProgress },
                ],
                i.containerModifierClass
              );
            t.push(...o), r.classList.add(...t), e.emitContainerClasses();
          },
          removeClasses: function () {
            const { el: e, classNames: t } = this;
            e.classList.remove(...t), this.emitContainerClasses();
          },
        };
        const ea = {
          init: !0,
          direction: "horizontal",
          oneWayMovement: !1,
          touchEventsTarget: "wrapper",
          initialSlide: 0,
          speed: 300,
          cssMode: !1,
          updateOnWindowResize: !0,
          resizeObserver: !0,
          nested: !1,
          createElements: !1,
          enabled: !0,
          focusableElements:
            "input, select, option, textarea, button, video, label",
          width: null,
          height: null,
          preventInteractionOnTransition: !1,
          userAgent: null,
          url: null,
          edgeSwipeDetection: !1,
          edgeSwipeThreshold: 20,
          autoHeight: !1,
          setWrapperSize: !1,
          virtualTranslate: !1,
          effect: "slide",
          breakpoints: void 0,
          breakpointsBase: "window",
          spaceBetween: 0,
          slidesPerView: 1,
          slidesPerGroup: 1,
          slidesPerGroupSkip: 0,
          slidesPerGroupAuto: !1,
          centeredSlides: !1,
          centeredSlidesBounds: !1,
          slidesOffsetBefore: 0,
          slidesOffsetAfter: 0,
          normalizeSlideIndex: !0,
          centerInsufficientSlides: !1,
          watchOverflow: !0,
          roundLengths: !1,
          touchRatio: 1,
          touchAngle: 45,
          simulateTouch: !0,
          shortSwipes: !0,
          longSwipes: !0,
          longSwipesRatio: 0.5,
          longSwipesMs: 300,
          followFinger: !0,
          allowTouchMove: !0,
          threshold: 5,
          touchMoveStopPropagation: !1,
          touchStartPreventDefault: !0,
          touchStartForcePreventDefault: !1,
          touchReleaseOnEdges: !1,
          uniqueNavElements: !0,
          resistance: !0,
          resistanceRatio: 0.85,
          watchSlidesProgress: !1,
          grabCursor: !1,
          preventClicks: !0,
          preventClicksPropagation: !0,
          slideToClickedSlide: !1,
          loop: !1,
          loopedSlides: null,
          loopPreventsSliding: !0,
          rewind: !1,
          allowSlidePrev: !0,
          allowSlideNext: !0,
          swipeHandler: null,
          noSwiping: !0,
          noSwipingClass: "swiper-no-swiping",
          noSwipingSelector: null,
          passiveListeners: !0,
          maxBackfaceHiddenSlides: 10,
          containerModifierClass: "swiper-",
          slideClass: "swiper-slide",
          slideActiveClass: "swiper-slide-active",
          slideVisibleClass: "swiper-slide-visible",
          slideNextClass: "swiper-slide-next",
          slidePrevClass: "swiper-slide-prev",
          wrapperClass: "swiper-wrapper",
          lazyPreloaderClass: "swiper-lazy-preloader",
          runCallbacksOnInit: !0,
          _emitClasses: !1,
        };
        function ta(e, t) {
          return function (i = {}) {
            const n = Object.keys(i)[0],
              r = i[n];
            "object" == typeof r && null !== r
              ? (["navigation", "pagination", "scrollbar"].indexOf(n) >= 0 &&
                  !0 === e[n] &&
                  (e[n] = { auto: !0 }),
                n in e && "enabled" in r
                  ? (!0 === e[n] && (e[n] = { enabled: !0 }),
                    "object" != typeof e[n] ||
                      "enabled" in e[n] ||
                      (e[n].enabled = !0),
                    e[n] || (e[n] = { enabled: !1 }),
                    pr(t, i))
                  : pr(t, i))
              : pr(t, i);
          };
        }
        const ia = {
            eventsEmitter: Lr,
            update: Pr,
            translate: Dr,
            transition: Nr,
            slide: Fr,
            loop: Br,
            grabCursor: {
              setGrabCursor: function (e) {
                const t = this;
                if (
                  !t.params.simulateTouch ||
                  (t.params.watchOverflow && t.isLocked) ||
                  t.params.cssMode
                )
                  return;
                const i =
                  "container" === t.params.touchEventsTarget
                    ? t.el
                    : t.wrapperEl;
                (i.style.cursor = "move"),
                  (i.style.cursor = e ? "grabbing" : "grab");
              },
              unsetGrabCursor: function () {
                const e = this;
                (e.params.watchOverflow && e.isLocked) ||
                  e.params.cssMode ||
                  (e[
                    "container" === e.params.touchEventsTarget
                      ? "el"
                      : "wrapperEl"
                  ].style.cursor = "");
              },
            },
            events: {
              attachEvents: function () {
                const e = this,
                  t = sr(),
                  { params: i } = e;
                (e.onTouchStart = zr.bind(e)),
                  (e.onTouchMove = jr.bind(e)),
                  (e.onTouchEnd = Hr.bind(e)),
                  i.cssMode && (e.onScroll = Gr.bind(e)),
                  (e.onClick = Wr.bind(e)),
                  (e.onLoad = Vr.bind(e)),
                  Ur || (t.addEventListener("touchstart", $r), (Ur = !0)),
                  Zr(e, "on");
              },
              detachEvents: function () {
                Zr(this, "off");
              },
            },
            breakpoints: Jr,
            checkOverflow: {
              checkOverflow: function () {
                const e = this,
                  { isLocked: t, params: i } = e,
                  { slidesOffsetBefore: n } = i;
                if (n) {
                  const t = e.slides.length - 1,
                    i = e.slidesGrid[t] + e.slidesSizesGrid[t] + 2 * n;
                  e.isLocked = e.size > i;
                } else e.isLocked = 1 === e.snapGrid.length;
                !0 === i.allowSlideNext && (e.allowSlideNext = !e.isLocked),
                  !0 === i.allowSlidePrev && (e.allowSlidePrev = !e.isLocked),
                  t && t !== e.isLocked && (e.isEnd = !1),
                  t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock");
              },
            },
            classes: Qr,
          },
          na = {};
        class ra {
          constructor(...e) {
            let t, i;
            1 === e.length &&
            e[0].constructor &&
            "Object" === Object.prototype.toString.call(e[0]).slice(8, -1)
              ? (i = e[0])
              : ([t, i] = e),
              i || (i = {}),
              (i = pr({}, i)),
              t && !i.el && (i.el = t);
            const n = sr();
            if (
              i.el &&
              "string" == typeof i.el &&
              n.querySelectorAll(i.el).length > 1
            ) {
              const e = [];
              return (
                n.querySelectorAll(i.el).forEach((t) => {
                  const n = pr({}, i, { el: t });
                  e.push(new ra(n));
                }),
                e
              );
            }
            const r = this;
            (r.__swiper__ = !0),
              (r.support = Or()),
              (r.device = Ir({ userAgent: i.userAgent })),
              (r.browser = Mr()),
              (r.eventsListeners = {}),
              (r.eventsAnyListeners = []),
              (r.modules = [...r.__modules__]),
              i.modules &&
                Array.isArray(i.modules) &&
                r.modules.push(...i.modules);
            const a = {};
            r.modules.forEach((e) => {
              e({
                params: i,
                swiper: r,
                extendParams: ta(i, a),
                on: r.on.bind(r),
                once: r.once.bind(r),
                off: r.off.bind(r),
                emit: r.emit.bind(r),
              });
            });
            const o = pr({}, ea, a);
            return (
              (r.params = pr({}, o, na, i)),
              (r.originalParams = pr({}, r.params)),
              (r.passedParams = pr({}, i)),
              r.params &&
                r.params.on &&
                Object.keys(r.params.on).forEach((e) => {
                  r.on(e, r.params.on[e]);
                }),
              r.params && r.params.onAny && r.onAny(r.params.onAny),
              Object.assign(r, {
                enabled: r.params.enabled,
                el: t,
                classNames: [],
                slides: [],
                slidesGrid: [],
                snapGrid: [],
                slidesSizesGrid: [],
                isHorizontal: () => "horizontal" === r.params.direction,
                isVertical: () => "vertical" === r.params.direction,
                activeIndex: 0,
                realIndex: 0,
                isBeginning: !0,
                isEnd: !1,
                translate: 0,
                previousTranslate: 0,
                progress: 0,
                velocity: 0,
                animating: !1,
                allowSlideNext: r.params.allowSlideNext,
                allowSlidePrev: r.params.allowSlidePrev,
                touchEventsData: {
                  isTouched: void 0,
                  isMoved: void 0,
                  allowTouchCallbacks: void 0,
                  touchStartTime: void 0,
                  isScrolling: void 0,
                  currentTranslate: void 0,
                  startTranslate: void 0,
                  allowThresholdMove: void 0,
                  focusableElements: r.params.focusableElements,
                  lastClickTime: dr(),
                  clickTimeout: void 0,
                  velocities: [],
                  allowMomentumBounce: void 0,
                  startMoving: void 0,
                  evCache: [],
                },
                allowClick: !0,
                allowTouchMove: r.params.allowTouchMove,
                touches: {
                  startX: 0,
                  startY: 0,
                  currentX: 0,
                  currentY: 0,
                  diff: 0,
                },
                imagesToLoad: [],
                imagesLoaded: 0,
              }),
              r.emit("_swiper"),
              r.params.init && r.init(),
              r
            );
          }
          recalcSlides() {
            const { slidesEl: e, params: t } = this;
            this.slides = br(e, `.${t.slideClass}, swiper-slide`);
          }
          enable() {
            const e = this;
            e.enabled ||
              ((e.enabled = !0),
              e.params.grabCursor && e.setGrabCursor(),
              e.emit("enable"));
          }
          disable() {
            const e = this;
            e.enabled &&
              ((e.enabled = !1),
              e.params.grabCursor && e.unsetGrabCursor(),
              e.emit("disable"));
          }
          setProgress(e, t) {
            const i = this;
            e = Math.min(Math.max(e, 0), 1);
            const n = i.minTranslate(),
              r = (i.maxTranslate() - n) * e + n;
            i.translateTo(r, void 0 === t ? 0 : t),
              i.updateActiveIndex(),
              i.updateSlidesClasses();
          }
          emitContainerClasses() {
            const e = this;
            if (!e.params._emitClasses || !e.el) return;
            const t = e.el.className
              .split(" ")
              .filter(
                (t) =>
                  0 === t.indexOf("swiper") ||
                  0 === t.indexOf(e.params.containerModifierClass)
              );
            e.emit("_containerClasses", t.join(" "));
          }
          getSlideClasses(e) {
            const t = this;
            return t.destroyed
              ? ""
              : e.className
                  .split(" ")
                  .filter(
                    (e) =>
                      0 === e.indexOf("swiper-slide") ||
                      0 === e.indexOf(t.params.slideClass)
                  )
                  .join(" ");
          }
          emitSlidesClasses() {
            const e = this;
            if (!e.params._emitClasses || !e.el) return;
            const t = [];
            e.slides.forEach((i) => {
              const n = e.getSlideClasses(i);
              t.push({ slideEl: i, classNames: n }),
                e.emit("_slideClass", i, n);
            }),
              e.emit("_slideClasses", t);
          }
          slidesPerViewDynamic(e = "current", t = !1) {
            const {
              params: i,
              slides: n,
              slidesGrid: r,
              slidesSizesGrid: a,
              size: o,
              activeIndex: s,
            } = this;
            let l = 1;
            if (i.centeredSlides) {
              let e,
                t = n[s].swiperSlideSize;
              for (let i = s + 1; i < n.length; i += 1)
                n[i] &&
                  !e &&
                  ((t += n[i].swiperSlideSize), (l += 1), t > o && (e = !0));
              for (let i = s - 1; i >= 0; i -= 1)
                n[i] &&
                  !e &&
                  ((t += n[i].swiperSlideSize), (l += 1), t > o && (e = !0));
            } else if ("current" === e)
              for (let e = s + 1; e < n.length; e += 1) {
                (t ? r[e] + a[e] - r[s] < o : r[e] - r[s] < o) && (l += 1);
              }
            else
              for (let e = s - 1; e >= 0; e -= 1) {
                r[s] - r[e] < o && (l += 1);
              }
            return l;
          }
          update() {
            const e = this;
            if (!e || e.destroyed) return;
            const { snapGrid: t, params: i } = e;
            function n() {
              const t = e.rtlTranslate ? -1 * e.translate : e.translate,
                i = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate());
              e.setTranslate(i), e.updateActiveIndex(), e.updateSlidesClasses();
            }
            let r;
            i.breakpoints && e.setBreakpoint(),
              [...e.el.querySelectorAll('[loading="lazy"]')].forEach((t) => {
                t.complete && qr(e, t);
              }),
              e.updateSize(),
              e.updateSlides(),
              e.updateProgress(),
              e.updateSlidesClasses(),
              e.params.freeMode && e.params.freeMode.enabled
                ? (n(), e.params.autoHeight && e.updateAutoHeight())
                : ((r =
                    ("auto" === e.params.slidesPerView ||
                      e.params.slidesPerView > 1) &&
                    e.isEnd &&
                    !e.params.centeredSlides
                      ? e.slideTo(e.slides.length - 1, 0, !1, !0)
                      : e.slideTo(e.activeIndex, 0, !1, !0)),
                  r || n()),
              i.watchOverflow && t !== e.snapGrid && e.checkOverflow(),
              e.emit("update");
          }
          changeDirection(e, t = !0) {
            const i = this,
              n = i.params.direction;
            return (
              e || (e = "horizontal" === n ? "vertical" : "horizontal"),
              e === n ||
                ("horizontal" !== e && "vertical" !== e) ||
                (i.el.classList.remove(
                  `${i.params.containerModifierClass}${n}`
                ),
                i.el.classList.add(`${i.params.containerModifierClass}${e}`),
                i.emitContainerClasses(),
                (i.params.direction = e),
                i.slides.forEach((t) => {
                  "vertical" === e
                    ? (t.style.width = "")
                    : (t.style.height = "");
                }),
                i.emit("changeDirection"),
                t && i.update()),
              i
            );
          }
          changeLanguageDirection(e) {
            const t = this;
            (t.rtl && "rtl" === e) ||
              (!t.rtl && "ltr" === e) ||
              ((t.rtl = "rtl" === e),
              (t.rtlTranslate = "horizontal" === t.params.direction && t.rtl),
              t.rtl
                ? (t.el.classList.add(`${t.params.containerModifierClass}rtl`),
                  (t.el.dir = "rtl"))
                : (t.el.classList.remove(
                    `${t.params.containerModifierClass}rtl`
                  ),
                  (t.el.dir = "ltr")),
              t.update());
          }
          mount(e) {
            const t = this;
            if (t.mounted) return !0;
            let i = e || t.params.el;
            if (("string" == typeof i && (i = document.querySelector(i)), !i))
              return !1;
            (i.swiper = t), i.shadowEl && (t.isElement = !0);
            const n = () =>
              `.${(t.params.wrapperClass || "").trim().split(" ").join(".")}`;
            let r = (() => {
              if (i && i.shadowRoot && i.shadowRoot.querySelector) {
                return i.shadowRoot.querySelector(n());
              }
              return br(i, n())[0];
            })();
            return (
              !r &&
                t.params.createElements &&
                ((r = yr("div", t.params.wrapperClass)),
                i.append(r),
                br(i, `.${t.params.slideClass}`).forEach((e) => {
                  r.append(e);
                })),
              Object.assign(t, {
                el: i,
                wrapperEl: r,
                slidesEl: t.isElement ? i : r,
                mounted: !0,
                rtl:
                  "rtl" === i.dir.toLowerCase() || "rtl" === wr(i, "direction"),
                rtlTranslate:
                  "horizontal" === t.params.direction &&
                  ("rtl" === i.dir.toLowerCase() ||
                    "rtl" === wr(i, "direction")),
                wrongRTL: "-webkit-box" === wr(r, "display"),
              }),
              !0
            );
          }
          init(e) {
            const t = this;
            if (t.initialized) return t;
            return (
              !1 === t.mount(e) ||
                (t.emit("beforeInit"),
                t.params.breakpoints && t.setBreakpoint(),
                t.addClasses(),
                t.updateSize(),
                t.updateSlides(),
                t.params.watchOverflow && t.checkOverflow(),
                t.params.grabCursor && t.enabled && t.setGrabCursor(),
                t.params.loop && t.virtual && t.params.virtual.enabled
                  ? t.slideTo(
                      t.params.initialSlide + t.virtual.slidesBefore,
                      0,
                      t.params.runCallbacksOnInit,
                      !1,
                      !0
                    )
                  : t.slideTo(
                      t.params.initialSlide,
                      0,
                      t.params.runCallbacksOnInit,
                      !1,
                      !0
                    ),
                t.params.loop && t.loopCreate(),
                t.attachEvents(),
                [...t.el.querySelectorAll('[loading="lazy"]')].forEach((e) => {
                  e.complete
                    ? qr(t, e)
                    : e.addEventListener("load", (e) => {
                        qr(t, e.target);
                      });
                }),
                (t.initialized = !0),
                t.emit("init"),
                t.emit("afterInit")),
              t
            );
          }
          destroy(e = !0, t = !0) {
            const i = this,
              { params: n, el: r, wrapperEl: a, slides: o } = i;
            return (
              void 0 === i.params ||
                i.destroyed ||
                (i.emit("beforeDestroy"),
                (i.initialized = !1),
                i.detachEvents(),
                n.loop && i.loopDestroy(),
                t &&
                  (i.removeClasses(),
                  r.removeAttribute("style"),
                  a.removeAttribute("style"),
                  o &&
                    o.length &&
                    o.forEach((e) => {
                      e.classList.remove(
                        n.slideVisibleClass,
                        n.slideActiveClass,
                        n.slideNextClass,
                        n.slidePrevClass
                      ),
                        e.removeAttribute("style"),
                        e.removeAttribute("data-swiper-slide-index");
                    })),
                i.emit("destroy"),
                Object.keys(i.eventsListeners).forEach((e) => {
                  i.off(e);
                }),
                !1 !== e &&
                  ((i.el.swiper = null),
                  (function (e) {
                    const t = e;
                    Object.keys(t).forEach((e) => {
                      try {
                        t[e] = null;
                      } catch (e) {}
                      try {
                        delete t[e];
                      } catch (e) {}
                    });
                  })(i)),
                (i.destroyed = !0)),
              null
            );
          }
          static extendDefaults(e) {
            pr(na, e);
          }
          static get extendedDefaults() {
            return na;
          }
          static get defaults() {
            return ea;
          }
          static installModule(e) {
            ra.prototype.__modules__ || (ra.prototype.__modules__ = []);
            const t = ra.prototype.__modules__;
            "function" == typeof e && t.indexOf(e) < 0 && t.push(e);
          }
          static use(e) {
            return Array.isArray(e)
              ? (e.forEach((e) => ra.installModule(e)), ra)
              : (ra.installModule(e), ra);
          }
        }
        Object.keys(ia).forEach((e) => {
          Object.keys(ia[e]).forEach((t) => {
            ra.prototype[t] = ia[e][t];
          });
        }),
          ra.use([
            function ({ swiper: e, on: t, emit: i }) {
              const n = cr();
              let r = null,
                a = null;
              const o = () => {
                  e &&
                    !e.destroyed &&
                    e.initialized &&
                    (i("beforeResize"), i("resize"));
                },
                s = () => {
                  e && !e.destroyed && e.initialized && i("orientationchange");
                };
              t("init", () => {
                e.params.resizeObserver && void 0 !== n.ResizeObserver
                  ? e &&
                    !e.destroyed &&
                    e.initialized &&
                    ((r = new ResizeObserver((t) => {
                      a = n.requestAnimationFrame(() => {
                        const { width: i, height: n } = e;
                        let r = i,
                          a = n;
                        t.forEach(
                          ({
                            contentBoxSize: t,
                            contentRect: i,
                            target: n,
                          }) => {
                            (n && n !== e.el) ||
                              ((r = i ? i.width : (t[0] || t).inlineSize),
                              (a = i ? i.height : (t[0] || t).blockSize));
                          }
                        ),
                          (r === i && a === n) || o();
                      });
                    })),
                    r.observe(e.el))
                  : (n.addEventListener("resize", o),
                    n.addEventListener("orientationchange", s));
              }),
                t("destroy", () => {
                  a && n.cancelAnimationFrame(a),
                    r && r.unobserve && e.el && (r.unobserve(e.el), (r = null)),
                    n.removeEventListener("resize", o),
                    n.removeEventListener("orientationchange", s);
                });
            },
            function ({ swiper: e, extendParams: t, on: i, emit: n }) {
              const r = [],
                a = cr(),
                o = (e, t = {}) => {
                  const i = new (a.MutationObserver ||
                    a.WebkitMutationObserver)((e) => {
                    if (1 === e.length) return void n("observerUpdate", e[0]);
                    const t = function () {
                      n("observerUpdate", e[0]);
                    };
                    a.requestAnimationFrame
                      ? a.requestAnimationFrame(t)
                      : a.setTimeout(t, 0);
                  });
                  i.observe(e, {
                    attributes: void 0 === t.attributes || t.attributes,
                    childList: void 0 === t.childList || t.childList,
                    characterData:
                      void 0 === t.characterData || t.characterData,
                  }),
                    r.push(i);
                };
              t({ observer: !1, observeParents: !1, observeSlideChildren: !1 }),
                i("init", () => {
                  if (e.params.observer) {
                    if (e.params.observeParents) {
                      const t = _r(e.el);
                      for (let e = 0; e < t.length; e += 1) o(t[e]);
                    }
                    o(e.el, { childList: e.params.observeSlideChildren }),
                      o(e.wrapperEl, { attributes: !1 });
                  }
                }),
                i("destroy", () => {
                  r.forEach((e) => {
                    e.disconnect();
                  }),
                    r.splice(0, r.length);
                });
            },
          ]);
        const aa = ra;
        function oa(e, t, i, n) {
          return (
            e.params.createElements &&
              Object.keys(n).forEach((r) => {
                if (!i[r] && !0 === i.auto) {
                  let a = br(e.el, `.${n[r]}`)[0];
                  a ||
                    ((a = yr("div", n[r])),
                    (a.className = n[r]),
                    e.el.append(a)),
                    (i[r] = a),
                    (t[r] = a);
                }
              }),
            i
          );
        }
        function sa(e = "") {
          return `.${e
            .trim()
            .replace(/([\.:!\/])/g, "\\$1")
            .replace(/ /g, ".")}`;
        }
        function la(e) {
          const t = this,
            { params: i, slidesEl: n } = t;
          i.loop && t.loopDestroy();
          const r = (e) => {
            if ("string" == typeof e) {
              const t = document.createElement("div");
              (t.innerHTML = e), n.append(t.children[0]), (t.innerHTML = "");
            } else n.append(e);
          };
          if ("object" == typeof e && "length" in e)
            for (let t = 0; t < e.length; t += 1) e[t] && r(e[t]);
          else r(e);
          t.recalcSlides(),
            i.loop && t.loopCreate(),
            (i.observer && !t.isElement) || t.update();
        }
        function ca(e) {
          const t = this,
            { params: i, activeIndex: n, slidesEl: r } = t;
          i.loop && t.loopDestroy();
          let a = n + 1;
          const o = (e) => {
            if ("string" == typeof e) {
              const t = document.createElement("div");
              (t.innerHTML = e), r.prepend(t.children[0]), (t.innerHTML = "");
            } else r.prepend(e);
          };
          if ("object" == typeof e && "length" in e) {
            for (let t = 0; t < e.length; t += 1) e[t] && o(e[t]);
            a = n + e.length;
          } else o(e);
          t.recalcSlides(),
            i.loop && t.loopCreate(),
            (i.observer && !t.isElement) || t.update(),
            t.slideTo(a, 0, !1);
        }
        function ua(e, t) {
          const i = this,
            { params: n, activeIndex: r, slidesEl: a } = i;
          let o = r;
          n.loop && ((o -= i.loopedSlides), i.loopDestroy(), i.recalcSlides());
          const s = i.slides.length;
          if (e <= 0) return void i.prependSlide(t);
          if (e >= s) return void i.appendSlide(t);
          let l = o > e ? o + 1 : o;
          const c = [];
          for (let t = s - 1; t >= e; t -= 1) {
            const e = i.slides[t];
            e.remove(), c.unshift(e);
          }
          if ("object" == typeof t && "length" in t) {
            for (let e = 0; e < t.length; e += 1) t[e] && a.append(t[e]);
            l = o > e ? o + t.length : o;
          } else a.append(t);
          for (let e = 0; e < c.length; e += 1) a.append(c[e]);
          i.recalcSlides(),
            n.loop && i.loopCreate(),
            (n.observer && !i.isElement) || i.update(),
            n.loop ? i.slideTo(l + i.loopedSlides, 0, !1) : i.slideTo(l, 0, !1);
        }
        function da(e) {
          const t = this,
            { params: i, activeIndex: n } = t;
          let r = n;
          i.loop && ((r -= t.loopedSlides), t.loopDestroy());
          let a,
            o = r;
          if ("object" == typeof e && "length" in e) {
            for (let i = 0; i < e.length; i += 1)
              (a = e[i]),
                t.slides[a] && t.slides[a].remove(),
                a < o && (o -= 1);
            o = Math.max(o, 0);
          } else
            (a = e),
              t.slides[a] && t.slides[a].remove(),
              a < o && (o -= 1),
              (o = Math.max(o, 0));
          t.recalcSlides(),
            i.loop && t.loopCreate(),
            (i.observer && !t.isElement) || t.update(),
            i.loop ? t.slideTo(o + t.loopedSlides, 0, !1) : t.slideTo(o, 0, !1);
        }
        function ha() {
          const e = this,
            t = [];
          for (let i = 0; i < e.slides.length; i += 1) t.push(i);
          e.removeSlide(t);
        }
        function fa(e) {
          const {
            effect: t,
            swiper: i,
            on: n,
            setTranslate: r,
            setTransition: a,
            overwriteParams: o,
            perspective: s,
            recreateShadows: l,
            getEffectParams: c,
          } = e;
          let u;
          n("beforeInit", () => {
            if (i.params.effect !== t) return;
            i.classNames.push(`${i.params.containerModifierClass}${t}`),
              s &&
                s() &&
                i.classNames.push(`${i.params.containerModifierClass}3d`);
            const e = o ? o() : {};
            Object.assign(i.params, e), Object.assign(i.originalParams, e);
          }),
            n("setTranslate", () => {
              i.params.effect === t && r();
            }),
            n("setTransition", (e, n) => {
              i.params.effect === t && a(n);
            }),
            n("transitionEnd", () => {
              if (i.params.effect === t && l) {
                if (!c || !c().slideShadows) return;
                i.slides.forEach((e) => {
                  e.querySelectorAll(
                    ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left"
                  ).forEach((e) => e.remove());
                }),
                  l();
              }
            }),
            n("virtualUpdate", () => {
              i.params.effect === t &&
                (i.slides.length || (u = !0),
                requestAnimationFrame(() => {
                  u && i.slides && i.slides.length && (r(), (u = !1));
                }));
            });
        }
        function pa(e, t) {
          const i = vr(t);
          return (
            i !== t &&
              ((i.style.backfaceVisibility = "hidden"),
              (i.style["-webkit-backface-visibility"] = "hidden")),
            i
          );
        }
        function ga({
          swiper: e,
          duration: t,
          transformElements: i,
          allSlides: n,
        }) {
          const { activeIndex: r } = e;
          if (e.params.virtualTranslate && 0 !== t) {
            let t,
              a = !1;
            (t = n
              ? i
              : i.filter(
                  (t) =>
                    Er(
                      t.classList.contains("swiper-slide-transform")
                        ? ((t) => {
                            if (!t.parentElement)
                              return e.slides.filter(
                                (e) => e.shadowEl && e.shadowEl === t.parentNode
                              )[0];
                            return t.parentElement;
                          })(t)
                        : t
                    ) === r
                )),
              t.forEach((t) => {
                Sr(t, () => {
                  if (a) return;
                  if (!e || e.destroyed) return;
                  (a = !0), (e.animating = !1);
                  const t = new window.CustomEvent("transitionend", {
                    bubbles: !0,
                    cancelable: !0,
                  });
                  e.wrapperEl.dispatchEvent(t);
                });
              });
          }
        }
        function ma(e, t, i) {
          const n = "swiper-slide-shadow" + (i ? `-${i}` : ""),
            r = vr(t);
          let a = r.querySelector(`.${n}`);
          return (
            a ||
              ((a = yr("div", "swiper-slide-shadow" + (i ? `-${i}` : ""))),
              r.append(a)),
            a
          );
        }
        const va = [
          function ({ swiper: e, extendParams: t, on: i, emit: n }) {
            let r;
            t({
              virtual: {
                enabled: !1,
                slides: [],
                cache: !0,
                renderSlide: null,
                renderExternal: null,
                renderExternalUpdate: !0,
                addSlidesBefore: 0,
                addSlidesAfter: 0,
              },
            });
            const a = sr();
            e.virtual = {
              cache: {},
              from: void 0,
              to: void 0,
              slides: [],
              offset: 0,
              slidesGrid: [],
            };
            const o = a.createElement("div");
            function s(t, i) {
              const n = e.params.virtual;
              if (n.cache && e.virtual.cache[i]) return e.virtual.cache[i];
              let r;
              return (
                n.renderSlide
                  ? ((r = n.renderSlide.call(e, t, i)),
                    "string" == typeof r &&
                      ((o.innerHTML = r), (r = o.children[0])))
                  : (r = e.isElement
                      ? yr("swiper-slide")
                      : yr("div", e.params.slideClass)),
                r.setAttribute("data-swiper-slide-index", i),
                n.renderSlide || (r.textContent = t),
                n.cache && (e.virtual.cache[i] = r),
                r
              );
            }
            function l(t) {
              const {
                  slidesPerView: i,
                  slidesPerGroup: r,
                  centeredSlides: a,
                  loop: o,
                } = e.params,
                { addSlidesBefore: l, addSlidesAfter: c } = e.params.virtual,
                {
                  from: u,
                  to: d,
                  slides: h,
                  slidesGrid: f,
                  offset: p,
                } = e.virtual;
              e.params.cssMode || e.updateActiveIndex();
              const g = e.activeIndex || 0;
              let m, v, b;
              (m = e.rtlTranslate
                ? "right"
                : e.isHorizontal()
                ? "left"
                : "top"),
                a
                  ? ((v = Math.floor(i / 2) + r + c),
                    (b = Math.floor(i / 2) + r + l))
                  : ((v = i + (r - 1) + c), (b = (o ? i : r) + l));
              let y = g - b,
                x = g + v;
              o || ((y = Math.max(y, 0)), (x = Math.min(x, h.length - 1)));
              let w = (e.slidesGrid[y] || 0) - (e.slidesGrid[0] || 0);
              function E() {
                e.updateSlides(),
                  e.updateProgress(),
                  e.updateSlidesClasses(),
                  n("virtualUpdate");
              }
              if (
                (o && g >= b
                  ? ((y -= b), a || (w += e.slidesGrid[0]))
                  : o && g < b && ((y = -b), a && (w += e.slidesGrid[0])),
                Object.assign(e.virtual, {
                  from: y,
                  to: x,
                  offset: w,
                  slidesGrid: e.slidesGrid,
                  slidesBefore: b,
                  slidesAfter: v,
                }),
                u === y && d === x && !t)
              )
                return (
                  e.slidesGrid !== f &&
                    w !== p &&
                    e.slides.forEach((e) => {
                      e.style[m] = `${w}px`;
                    }),
                  e.updateProgress(),
                  void n("virtualUpdate")
                );
              if (e.params.virtual.renderExternal)
                return (
                  e.params.virtual.renderExternal.call(e, {
                    offset: w,
                    from: y,
                    to: x,
                    slides: (function () {
                      const e = [];
                      for (let t = y; t <= x; t += 1) e.push(h[t]);
                      return e;
                    })(),
                  }),
                  void (e.params.virtual.renderExternalUpdate
                    ? E()
                    : n("virtualUpdate"))
                );
              const _ = [],
                S = [],
                A = (e) => {
                  let t = e;
                  return (
                    e < 0
                      ? (t = h.length + e)
                      : t >= h.length && (t -= h.length),
                    t
                  );
                };
              if (t)
                e.slidesEl
                  .querySelectorAll(`.${e.params.slideClass}, swiper-slide`)
                  .forEach((e) => {
                    e.remove();
                  });
              else
                for (let t = u; t <= d; t += 1)
                  if (t < y || t > x) {
                    const i = A(t);
                    e.slidesEl
                      .querySelectorAll(
                        `.${e.params.slideClass}[data-swiper-slide-index="${i}"], swiper-slide[data-swiper-slide-index="${i}"]`
                      )
                      .forEach((e) => {
                        e.remove();
                      });
                  }
              const k = o ? -h.length : 0,
                T = o ? 2 * h.length : h.length;
              for (let e = k; e < T; e += 1)
                if (e >= y && e <= x) {
                  const i = A(e);
                  void 0 === d || t
                    ? S.push(i)
                    : (e > d && S.push(i), e < u && _.push(i));
                }
              if (
                (S.forEach((t) => {
                  e.slidesEl.append(s(h[t], t));
                }),
                o)
              )
                for (let t = _.length - 1; t >= 0; t -= 1) {
                  const i = _[t];
                  e.slidesEl.prepend(s(h[i], i));
                }
              else
                _.sort((e, t) => t - e),
                  _.forEach((t) => {
                    e.slidesEl.prepend(s(h[t], t));
                  });
              br(e.slidesEl, ".swiper-slide, swiper-slide").forEach((e) => {
                e.style[m] = `${w}px`;
              }),
                E();
            }
            i("beforeInit", () => {
              if (!e.params.virtual.enabled) return;
              let t;
              if (void 0 === e.passedParams.virtual.slides) {
                const i = [...e.slidesEl.children].filter((t) =>
                  t.matches(`.${e.params.slideClass}, swiper-slide`)
                );
                i &&
                  i.length &&
                  ((e.virtual.slides = [...i]),
                  (t = !0),
                  i.forEach((t, i) => {
                    t.setAttribute("data-swiper-slide-index", i),
                      (e.virtual.cache[i] = t),
                      t.remove();
                  }));
              }
              t || (e.virtual.slides = e.params.virtual.slides),
                e.classNames.push(`${e.params.containerModifierClass}virtual`),
                (e.params.watchSlidesProgress = !0),
                (e.originalParams.watchSlidesProgress = !0),
                e.params.initialSlide || l();
            }),
              i("setTranslate", () => {
                e.params.virtual.enabled &&
                  (e.params.cssMode && !e._immediateVirtual
                    ? (clearTimeout(r),
                      (r = setTimeout(() => {
                        l();
                      }, 100)))
                    : l());
              }),
              i("init update resize", () => {
                e.params.virtual.enabled &&
                  e.params.cssMode &&
                  gr(
                    e.wrapperEl,
                    "--swiper-virtual-size",
                    `${e.virtualSize}px`
                  );
              }),
              Object.assign(e.virtual, {
                appendSlide: function (t) {
                  if ("object" == typeof t && "length" in t)
                    for (let i = 0; i < t.length; i += 1)
                      t[i] && e.virtual.slides.push(t[i]);
                  else e.virtual.slides.push(t);
                  l(!0);
                },
                prependSlide: function (t) {
                  const i = e.activeIndex;
                  let n = i + 1,
                    r = 1;
                  if (Array.isArray(t)) {
                    for (let i = 0; i < t.length; i += 1)
                      t[i] && e.virtual.slides.unshift(t[i]);
                    (n = i + t.length), (r = t.length);
                  } else e.virtual.slides.unshift(t);
                  if (e.params.virtual.cache) {
                    const t = e.virtual.cache,
                      i = {};
                    Object.keys(t).forEach((e) => {
                      const n = t[e],
                        a = n.getAttribute("data-swiper-slide-index");
                      a &&
                        n.setAttribute(
                          "data-swiper-slide-index",
                          parseInt(a, 10) + r
                        ),
                        (i[parseInt(e, 10) + r] = n);
                    }),
                      (e.virtual.cache = i);
                  }
                  l(!0), e.slideTo(n, 0);
                },
                removeSlide: function (t) {
                  if (null == t) return;
                  let i = e.activeIndex;
                  if (Array.isArray(t))
                    for (let n = t.length - 1; n >= 0; n -= 1)
                      e.virtual.slides.splice(t[n], 1),
                        e.params.virtual.cache && delete e.virtual.cache[t[n]],
                        t[n] < i && (i -= 1),
                        (i = Math.max(i, 0));
                  else
                    e.virtual.slides.splice(t, 1),
                      e.params.virtual.cache && delete e.virtual.cache[t],
                      t < i && (i -= 1),
                      (i = Math.max(i, 0));
                  l(!0), e.slideTo(i, 0);
                },
                removeAllSlides: function () {
                  (e.virtual.slides = []),
                    e.params.virtual.cache && (e.virtual.cache = {}),
                    l(!0),
                    e.slideTo(0, 0);
                },
                update: l,
              });
          },
          function ({ swiper: e, extendParams: t, on: i, emit: n }) {
            const r = sr(),
              a = cr();
            function o(t) {
              if (!e.enabled) return;
              const { rtlTranslate: i } = e;
              let o = t;
              o.originalEvent && (o = o.originalEvent);
              const s = o.keyCode || o.charCode,
                l = e.params.keyboard.pageUpDown,
                c = l && 33 === s,
                u = l && 34 === s,
                d = 37 === s,
                h = 39 === s,
                f = 38 === s,
                p = 40 === s;
              if (
                !e.allowSlideNext &&
                ((e.isHorizontal() && h) || (e.isVertical() && p) || u)
              )
                return !1;
              if (
                !e.allowSlidePrev &&
                ((e.isHorizontal() && d) || (e.isVertical() && f) || c)
              )
                return !1;
              if (
                !(
                  o.shiftKey ||
                  o.altKey ||
                  o.ctrlKey ||
                  o.metaKey ||
                  (r.activeElement &&
                    r.activeElement.nodeName &&
                    ("input" === r.activeElement.nodeName.toLowerCase() ||
                      "textarea" === r.activeElement.nodeName.toLowerCase()))
                )
              ) {
                if (
                  e.params.keyboard.onlyInViewport &&
                  (c || u || d || h || f || p)
                ) {
                  let t = !1;
                  if (
                    _r(e.el, `.${e.params.slideClass}, swiper-slide`).length >
                      0 &&
                    0 === _r(e.el, `.${e.params.slideActiveClass}`).length
                  )
                    return;
                  const n = e.el,
                    r = n.clientWidth,
                    o = n.clientHeight,
                    s = a.innerWidth,
                    l = a.innerHeight,
                    c = xr(n);
                  i && (c.left -= n.scrollLeft);
                  const u = [
                    [c.left, c.top],
                    [c.left + r, c.top],
                    [c.left, c.top + o],
                    [c.left + r, c.top + o],
                  ];
                  for (let e = 0; e < u.length; e += 1) {
                    const i = u[e];
                    if (i[0] >= 0 && i[0] <= s && i[1] >= 0 && i[1] <= l) {
                      if (0 === i[0] && 0 === i[1]) continue;
                      t = !0;
                    }
                  }
                  if (!t) return;
                }
                e.isHorizontal()
                  ? ((c || u || d || h) &&
                      (o.preventDefault
                        ? o.preventDefault()
                        : (o.returnValue = !1)),
                    (((u || h) && !i) || ((c || d) && i)) && e.slideNext(),
                    (((c || d) && !i) || ((u || h) && i)) && e.slidePrev())
                  : ((c || u || f || p) &&
                      (o.preventDefault
                        ? o.preventDefault()
                        : (o.returnValue = !1)),
                    (u || p) && e.slideNext(),
                    (c || f) && e.slidePrev()),
                  n("keyPress", s);
              }
            }
            function s() {
              e.keyboard.enabled ||
                (r.addEventListener("keydown", o), (e.keyboard.enabled = !0));
            }
            function l() {
              e.keyboard.enabled &&
                (r.removeEventListener("keydown", o),
                (e.keyboard.enabled = !1));
            }
            (e.keyboard = { enabled: !1 }),
              t({
                keyboard: { enabled: !1, onlyInViewport: !0, pageUpDown: !0 },
              }),
              i("init", () => {
                e.params.keyboard.enabled && s();
              }),
              i("destroy", () => {
                e.keyboard.enabled && l();
              }),
              Object.assign(e.keyboard, { enable: s, disable: l });
          },
          function ({ swiper: e, extendParams: t, on: i, emit: n }) {
            const r = cr();
            let a;
            t({
              mousewheel: {
                enabled: !1,
                releaseOnEdges: !1,
                invert: !1,
                forceToAxis: !1,
                sensitivity: 1,
                eventsTarget: "container",
                thresholdDelta: null,
                thresholdTime: null,
              },
            }),
              (e.mousewheel = { enabled: !1 });
            let o,
              s = dr();
            const l = [];
            function c() {
              e.enabled && (e.mouseEntered = !0);
            }
            function u() {
              e.enabled && (e.mouseEntered = !1);
            }
            function d(t) {
              return (
                !(
                  e.params.mousewheel.thresholdDelta &&
                  t.delta < e.params.mousewheel.thresholdDelta
                ) &&
                !(
                  e.params.mousewheel.thresholdTime &&
                  dr() - s < e.params.mousewheel.thresholdTime
                ) &&
                ((t.delta >= 6 && dr() - s < 60) ||
                  (t.direction < 0
                    ? (e.isEnd && !e.params.loop) ||
                      e.animating ||
                      (e.slideNext(), n("scroll", t.raw))
                    : (e.isBeginning && !e.params.loop) ||
                      e.animating ||
                      (e.slidePrev(), n("scroll", t.raw)),
                  (s = new r.Date().getTime()),
                  !1))
              );
            }
            function h(t) {
              let i = t,
                r = !0;
              if (!e.enabled) return;
              const s = e.params.mousewheel;
              e.params.cssMode && i.preventDefault();
              let c = e.el;
              "container" !== e.params.mousewheel.eventsTarget &&
                (c = document.querySelector(e.params.mousewheel.eventsTarget));
              const u = c && c.contains(i.target);
              if (!e.mouseEntered && !u && !s.releaseOnEdges) return !0;
              i.originalEvent && (i = i.originalEvent);
              let h = 0;
              const f = e.rtlTranslate ? -1 : 1,
                p = (function (e) {
                  let t = 0,
                    i = 0,
                    n = 0,
                    r = 0;
                  return (
                    "detail" in e && (i = e.detail),
                    "wheelDelta" in e && (i = -e.wheelDelta / 120),
                    "wheelDeltaY" in e && (i = -e.wheelDeltaY / 120),
                    "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120),
                    "axis" in e &&
                      e.axis === e.HORIZONTAL_AXIS &&
                      ((t = i), (i = 0)),
                    (n = 10 * t),
                    (r = 10 * i),
                    "deltaY" in e && (r = e.deltaY),
                    "deltaX" in e && (n = e.deltaX),
                    e.shiftKey && !n && ((n = r), (r = 0)),
                    (n || r) &&
                      e.deltaMode &&
                      (1 === e.deltaMode
                        ? ((n *= 40), (r *= 40))
                        : ((n *= 800), (r *= 800))),
                    n && !t && (t = n < 1 ? -1 : 1),
                    r && !i && (i = r < 1 ? -1 : 1),
                    { spinX: t, spinY: i, pixelX: n, pixelY: r }
                  );
                })(i);
              if (s.forceToAxis)
                if (e.isHorizontal()) {
                  if (!(Math.abs(p.pixelX) > Math.abs(p.pixelY))) return !0;
                  h = -p.pixelX * f;
                } else {
                  if (!(Math.abs(p.pixelY) > Math.abs(p.pixelX))) return !0;
                  h = -p.pixelY;
                }
              else
                h =
                  Math.abs(p.pixelX) > Math.abs(p.pixelY)
                    ? -p.pixelX * f
                    : -p.pixelY;
              if (0 === h) return !0;
              s.invert && (h = -h);
              let g = e.getTranslate() + h * s.sensitivity;
              if (
                (g >= e.minTranslate() && (g = e.minTranslate()),
                g <= e.maxTranslate() && (g = e.maxTranslate()),
                (r =
                  !!e.params.loop ||
                  !(g === e.minTranslate() || g === e.maxTranslate())),
                r && e.params.nested && i.stopPropagation(),
                e.params.freeMode && e.params.freeMode.enabled)
              ) {
                const t = {
                    time: dr(),
                    delta: Math.abs(h),
                    direction: Math.sign(h),
                  },
                  r =
                    o &&
                    t.time < o.time + 500 &&
                    t.delta <= o.delta &&
                    t.direction === o.direction;
                if (!r) {
                  o = void 0;
                  let c = e.getTranslate() + h * s.sensitivity;
                  const u = e.isBeginning,
                    d = e.isEnd;
                  if (
                    (c >= e.minTranslate() && (c = e.minTranslate()),
                    c <= e.maxTranslate() && (c = e.maxTranslate()),
                    e.setTransition(0),
                    e.setTranslate(c),
                    e.updateProgress(),
                    e.updateActiveIndex(),
                    e.updateSlidesClasses(),
                    ((!u && e.isBeginning) || (!d && e.isEnd)) &&
                      e.updateSlidesClasses(),
                    e.params.loop &&
                      e.loopFix({
                        direction: t.direction < 0 ? "next" : "prev",
                        byMousewheel: !0,
                      }),
                    e.params.freeMode.sticky)
                  ) {
                    clearTimeout(a), (a = void 0), l.length >= 15 && l.shift();
                    const i = l.length ? l[l.length - 1] : void 0,
                      n = l[0];
                    if (
                      (l.push(t),
                      i && (t.delta > i.delta || t.direction !== i.direction))
                    )
                      l.splice(0);
                    else if (
                      l.length >= 15 &&
                      t.time - n.time < 500 &&
                      n.delta - t.delta >= 1 &&
                      t.delta <= 6
                    ) {
                      const i = h > 0 ? 0.8 : 0.2;
                      (o = t),
                        l.splice(0),
                        (a = ur(() => {
                          e.slideToClosest(e.params.speed, !0, void 0, i);
                        }, 0));
                    }
                    a ||
                      (a = ur(() => {
                        (o = t),
                          l.splice(0),
                          e.slideToClosest(e.params.speed, !0, void 0, 0.5);
                      }, 500));
                  }
                  if (
                    (r || n("scroll", i),
                    e.params.autoplay &&
                      e.params.autoplayDisableOnInteraction &&
                      e.autoplay.stop(),
                    c === e.minTranslate() || c === e.maxTranslate())
                  )
                    return !0;
                }
              } else {
                const i = {
                  time: dr(),
                  delta: Math.abs(h),
                  direction: Math.sign(h),
                  raw: t,
                };
                l.length >= 2 && l.shift();
                const n = l.length ? l[l.length - 1] : void 0;
                if (
                  (l.push(i),
                  n
                    ? (i.direction !== n.direction ||
                        i.delta > n.delta ||
                        i.time > n.time + 150) &&
                      d(i)
                    : d(i),
                  (function (t) {
                    const i = e.params.mousewheel;
                    if (t.direction < 0) {
                      if (e.isEnd && !e.params.loop && i.releaseOnEdges)
                        return !0;
                    } else if (
                      e.isBeginning &&
                      !e.params.loop &&
                      i.releaseOnEdges
                    )
                      return !0;
                    return !1;
                  })(i))
                )
                  return !0;
              }
              return (
                i.preventDefault ? i.preventDefault() : (i.returnValue = !1), !1
              );
            }
            function f(t) {
              let i = e.el;
              "container" !== e.params.mousewheel.eventsTarget &&
                (i = document.querySelector(e.params.mousewheel.eventsTarget)),
                i[t]("mouseenter", c),
                i[t]("mouseleave", u),
                i[t]("wheel", h);
            }
            function p() {
              return e.params.cssMode
                ? (e.wrapperEl.removeEventListener("wheel", h), !0)
                : !e.mousewheel.enabled &&
                    (f("addEventListener"), (e.mousewheel.enabled = !0), !0);
            }
            function g() {
              return e.params.cssMode
                ? (e.wrapperEl.addEventListener(event, h), !0)
                : !!e.mousewheel.enabled &&
                    (f("removeEventListener"), (e.mousewheel.enabled = !1), !0);
            }
            i("init", () => {
              !e.params.mousewheel.enabled && e.params.cssMode && g(),
                e.params.mousewheel.enabled && p();
            }),
              i("destroy", () => {
                e.params.cssMode && p(), e.mousewheel.enabled && g();
              }),
              Object.assign(e.mousewheel, { enable: p, disable: g });
          },
          function ({ swiper: e, extendParams: t, on: i, emit: n }) {
            t({
              navigation: {
                nextEl: null,
                prevEl: null,
                hideOnClick: !1,
                disabledClass: "swiper-button-disabled",
                hiddenClass: "swiper-button-hidden",
                lockClass: "swiper-button-lock",
                navigationDisabledClass: "swiper-navigation-disabled",
              },
            }),
              (e.navigation = { nextEl: null, prevEl: null });
            const r = (e) => (
              Array.isArray(e) || (e = [e].filter((e) => !!e)), e
            );
            function a(t) {
              let i;
              return t &&
                "string" == typeof t &&
                e.isElement &&
                ((i = e.el.shadowRoot.querySelector(t)), i)
                ? i
                : (t &&
                    ("string" == typeof t &&
                      (i = [...document.querySelectorAll(t)]),
                    e.params.uniqueNavElements &&
                      "string" == typeof t &&
                      i.length > 1 &&
                      1 === e.el.querySelectorAll(t).length &&
                      (i = e.el.querySelector(t))),
                  t && !i ? t : i);
            }
            function o(t, i) {
              const n = e.params.navigation;
              (t = r(t)).forEach((t) => {
                t &&
                  (t.classList[i ? "add" : "remove"](
                    ...n.disabledClass.split(" ")
                  ),
                  "BUTTON" === t.tagName && (t.disabled = i),
                  e.params.watchOverflow &&
                    e.enabled &&
                    t.classList[e.isLocked ? "add" : "remove"](n.lockClass));
              });
            }
            function s() {
              const { nextEl: t, prevEl: i } = e.navigation;
              if (e.params.loop) return o(i, !1), void o(t, !1);
              o(i, e.isBeginning && !e.params.rewind),
                o(t, e.isEnd && !e.params.rewind);
            }
            function l(t) {
              t.preventDefault(),
                (!e.isBeginning || e.params.loop || e.params.rewind) &&
                  (e.slidePrev(), n("navigationPrev"));
            }
            function c(t) {
              t.preventDefault(),
                (!e.isEnd || e.params.loop || e.params.rewind) &&
                  (e.slideNext(), n("navigationNext"));
            }
            function u() {
              const t = e.params.navigation;
              if (
                ((e.params.navigation = oa(
                  e,
                  e.originalParams.navigation,
                  e.params.navigation,
                  { nextEl: "swiper-button-next", prevEl: "swiper-button-prev" }
                )),
                !t.nextEl && !t.prevEl)
              )
                return;
              let i = a(t.nextEl),
                n = a(t.prevEl);
              Object.assign(e.navigation, { nextEl: i, prevEl: n }),
                (i = r(i)),
                (n = r(n));
              const o = (i, n) => {
                i && i.addEventListener("click", "next" === n ? c : l),
                  !e.enabled && i && i.classList.add(...t.lockClass.split(" "));
              };
              i.forEach((e) => o(e, "next")), n.forEach((e) => o(e, "prev"));
            }
            function d() {
              let { nextEl: t, prevEl: i } = e.navigation;
              (t = r(t)), (i = r(i));
              const n = (t, i) => {
                t.removeEventListener("click", "next" === i ? c : l),
                  t.classList.remove(
                    ...e.params.navigation.disabledClass.split(" ")
                  );
              };
              t.forEach((e) => n(e, "next")), i.forEach((e) => n(e, "prev"));
            }
            i("init", () => {
              !1 === e.params.navigation.enabled ? h() : (u(), s());
            }),
              i("toEdge fromEdge lock unlock", () => {
                s();
              }),
              i("destroy", () => {
                d();
              }),
              i("enable disable", () => {
                let { nextEl: t, prevEl: i } = e.navigation;
                (t = r(t)),
                  (i = r(i)),
                  [...t, ...i]
                    .filter((e) => !!e)
                    .forEach((t) =>
                      t.classList[e.enabled ? "remove" : "add"](
                        e.params.navigation.lockClass
                      )
                    );
              }),
              i("click", (t, i) => {
                let { nextEl: a, prevEl: o } = e.navigation;
                (a = r(a)), (o = r(o));
                const s = i.target;
                if (
                  e.params.navigation.hideOnClick &&
                  !o.includes(s) &&
                  !a.includes(s)
                ) {
                  if (
                    e.pagination &&
                    e.params.pagination &&
                    e.params.pagination.clickable &&
                    (e.pagination.el === s || e.pagination.el.contains(s))
                  )
                    return;
                  let t;
                  a.length
                    ? (t = a[0].classList.contains(
                        e.params.navigation.hiddenClass
                      ))
                    : o.length &&
                      (t = o[0].classList.contains(
                        e.params.navigation.hiddenClass
                      )),
                    n(!0 === t ? "navigationShow" : "navigationHide"),
                    [...a, ...o]
                      .filter((e) => !!e)
                      .forEach((t) =>
                        t.classList.toggle(e.params.navigation.hiddenClass)
                      );
                }
              });
            const h = () => {
              e.el.classList.add(
                ...e.params.navigation.navigationDisabledClass.split(" ")
              ),
                d();
            };
            Object.assign(e.navigation, {
              enable: () => {
                e.el.classList.remove(
                  ...e.params.navigation.navigationDisabledClass.split(" ")
                ),
                  u(),
                  s();
              },
              disable: h,
              update: s,
              init: u,
              destroy: d,
            });
          },
          function ({ swiper: e, extendParams: t, on: i, emit: n }) {
            const r = "swiper-pagination";
            let a;
            t({
              pagination: {
                el: null,
                bulletElement: "span",
                clickable: !1,
                hideOnClick: !1,
                renderBullet: null,
                renderProgressbar: null,
                renderFraction: null,
                renderCustom: null,
                progressbarOpposite: !1,
                type: "bullets",
                dynamicBullets: !1,
                dynamicMainBullets: 1,
                formatFractionCurrent: (e) => e,
                formatFractionTotal: (e) => e,
                bulletClass: `${r}-bullet`,
                bulletActiveClass: `${r}-bullet-active`,
                modifierClass: `${r}-`,
                currentClass: `${r}-current`,
                totalClass: `${r}-total`,
                hiddenClass: `${r}-hidden`,
                progressbarFillClass: `${r}-progressbar-fill`,
                progressbarOppositeClass: `${r}-progressbar-opposite`,
                clickableClass: `${r}-clickable`,
                lockClass: `${r}-lock`,
                horizontalClass: `${r}-horizontal`,
                verticalClass: `${r}-vertical`,
                paginationDisabledClass: `${r}-disabled`,
              },
            }),
              (e.pagination = { el: null, bullets: [] });
            let o = 0;
            const s = (e) => (
              Array.isArray(e) || (e = [e].filter((e) => !!e)), e
            );
            function l() {
              return (
                !e.params.pagination.el ||
                !e.pagination.el ||
                (Array.isArray(e.pagination.el) && 0 === e.pagination.el.length)
              );
            }
            function c(t, i) {
              const { bulletActiveClass: n } = e.params.pagination;
              t &&
                (t =
                  t[("prev" === i ? "previous" : "next") + "ElementSibling"]) &&
                (t.classList.add(`${n}-${i}`),
                (t =
                  t[("prev" === i ? "previous" : "next") + "ElementSibling"]) &&
                  t.classList.add(`${n}-${i}-${i}`));
            }
            function u(t) {
              const i = t.target.closest(sa(e.params.pagination.bulletClass));
              if (!i) return;
              t.preventDefault();
              const n = Er(i) * e.params.slidesPerGroup;
              e.params.loop ? e.slideToLoop(n) : e.slideTo(n);
            }
            function d() {
              const t = e.rtl,
                i = e.params.pagination;
              if (l()) return;
              let r,
                u = e.pagination.el;
              u = s(u);
              const d =
                  e.virtual && e.params.virtual.enabled
                    ? e.virtual.slides.length
                    : e.slides.length,
                h = e.params.loop
                  ? Math.ceil(d / e.params.slidesPerGroup)
                  : e.snapGrid.length;
              if (
                ((r = e.params.loop
                  ? e.params.slidesPerGroup > 1
                    ? Math.floor(e.realIndex / e.params.slidesPerGroup)
                    : e.realIndex
                  : void 0 !== e.snapIndex
                  ? e.snapIndex
                  : e.activeIndex || 0),
                "bullets" === i.type &&
                  e.pagination.bullets &&
                  e.pagination.bullets.length > 0)
              ) {
                const n = e.pagination.bullets;
                let s, l, d;
                if (
                  (i.dynamicBullets &&
                    ((a = Ar(n[0], e.isHorizontal() ? "width" : "height", !0)),
                    u.forEach((t) => {
                      t.style[e.isHorizontal() ? "width" : "height"] =
                        a * (i.dynamicMainBullets + 4) + "px";
                    }),
                    i.dynamicMainBullets > 1 &&
                      void 0 !== e.previousIndex &&
                      ((o += r - (e.previousIndex || 0)),
                      o > i.dynamicMainBullets - 1
                        ? (o = i.dynamicMainBullets - 1)
                        : o < 0 && (o = 0)),
                    (s = Math.max(r - o, 0)),
                    (l = s + (Math.min(n.length, i.dynamicMainBullets) - 1)),
                    (d = (l + s) / 2)),
                  n.forEach((e) => {
                    e.classList.remove(
                      ...[
                        "",
                        "-next",
                        "-next-next",
                        "-prev",
                        "-prev-prev",
                        "-main",
                      ].map((e) => `${i.bulletActiveClass}${e}`)
                    );
                  }),
                  u.length > 1)
                )
                  n.forEach((e) => {
                    const t = Er(e);
                    t === r && e.classList.add(i.bulletActiveClass),
                      i.dynamicBullets &&
                        (t >= s &&
                          t <= l &&
                          e.classList.add(`${i.bulletActiveClass}-main`),
                        t === s && c(e, "prev"),
                        t === l && c(e, "next"));
                  });
                else {
                  const e = n[r];
                  if (
                    (e && e.classList.add(i.bulletActiveClass),
                    i.dynamicBullets)
                  ) {
                    const e = n[s],
                      t = n[l];
                    for (let e = s; e <= l; e += 1)
                      n[e].classList.add(`${i.bulletActiveClass}-main`);
                    c(e, "prev"), c(t, "next");
                  }
                }
                if (i.dynamicBullets) {
                  const r = Math.min(n.length, i.dynamicMainBullets + 4),
                    o = (a * r - a) / 2 - d * a,
                    s = t ? "right" : "left";
                  n.forEach((t) => {
                    t.style[e.isHorizontal() ? s : "top"] = `${o}px`;
                  });
                }
              }
              u.forEach((t, a) => {
                if (
                  ("fraction" === i.type &&
                    (t.querySelectorAll(sa(i.currentClass)).forEach((e) => {
                      e.textContent = i.formatFractionCurrent(r + 1);
                    }),
                    t.querySelectorAll(sa(i.totalClass)).forEach((e) => {
                      e.textContent = i.formatFractionTotal(h);
                    })),
                  "progressbar" === i.type)
                ) {
                  let n;
                  n = i.progressbarOpposite
                    ? e.isHorizontal()
                      ? "vertical"
                      : "horizontal"
                    : e.isHorizontal()
                    ? "horizontal"
                    : "vertical";
                  const a = (r + 1) / h;
                  let o = 1,
                    s = 1;
                  "horizontal" === n ? (o = a) : (s = a),
                    t
                      .querySelectorAll(sa(i.progressbarFillClass))
                      .forEach((t) => {
                        (t.style.transform = `translate3d(0,0,0) scaleX(${o}) scaleY(${s})`),
                          (t.style.transitionDuration = `${e.params.speed}ms`);
                      });
                }
                "custom" === i.type && i.renderCustom
                  ? ((t.innerHTML = i.renderCustom(e, r + 1, h)),
                    0 === a && n("paginationRender", t))
                  : (0 === a && n("paginationRender", t),
                    n("paginationUpdate", t)),
                  e.params.watchOverflow &&
                    e.enabled &&
                    t.classList[e.isLocked ? "add" : "remove"](i.lockClass);
              });
            }
            function h() {
              const t = e.params.pagination;
              if (l()) return;
              const i =
                e.virtual && e.params.virtual.enabled
                  ? e.virtual.slides.length
                  : e.slides.length;
              let r = e.pagination.el;
              r = s(r);
              let a = "";
              if ("bullets" === t.type) {
                let n = e.params.loop
                  ? Math.ceil(i / e.params.slidesPerGroup)
                  : e.snapGrid.length;
                e.params.freeMode &&
                  e.params.freeMode.enabled &&
                  n > i &&
                  (n = i);
                for (let i = 0; i < n; i += 1)
                  t.renderBullet
                    ? (a += t.renderBullet.call(e, i, t.bulletClass))
                    : (a += `<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`);
              }
              "fraction" === t.type &&
                (a = t.renderFraction
                  ? t.renderFraction.call(e, t.currentClass, t.totalClass)
                  : `<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),
                "progressbar" === t.type &&
                  (a = t.renderProgressbar
                    ? t.renderProgressbar.call(e, t.progressbarFillClass)
                    : `<span class="${t.progressbarFillClass}"></span>`),
                r.forEach((i) => {
                  "custom" !== t.type && (i.innerHTML = a || ""),
                    "bullets" === t.type &&
                      (e.pagination.bullets = [
                        ...i.querySelectorAll(sa(t.bulletClass)),
                      ]);
                }),
                "custom" !== t.type && n("paginationRender", r[0]);
            }
            function f() {
              e.params.pagination = oa(
                e,
                e.originalParams.pagination,
                e.params.pagination,
                { el: "swiper-pagination" }
              );
              const t = e.params.pagination;
              if (!t.el) return;
              let i;
              "string" == typeof t.el &&
                e.isElement &&
                (i = e.el.shadowRoot.querySelector(t.el)),
                i ||
                  "string" != typeof t.el ||
                  (i = [...document.querySelectorAll(t.el)]),
                i || (i = t.el),
                i &&
                  0 !== i.length &&
                  (e.params.uniqueNavElements &&
                    "string" == typeof t.el &&
                    Array.isArray(i) &&
                    i.length > 1 &&
                    ((i = [...e.el.querySelectorAll(t.el)]),
                    i.length > 1 &&
                      (i = i.filter((t) => _r(t, ".swiper")[0] === e.el)[0])),
                  Array.isArray(i) && 1 === i.length && (i = i[0]),
                  Object.assign(e.pagination, { el: i }),
                  (i = s(i)),
                  i.forEach((i) => {
                    "bullets" === t.type &&
                      t.clickable &&
                      i.classList.add(t.clickableClass),
                      i.classList.add(t.modifierClass + t.type),
                      i.classList.add(
                        e.isHorizontal() ? t.horizontalClass : t.verticalClass
                      ),
                      "bullets" === t.type &&
                        t.dynamicBullets &&
                        (i.classList.add(`${t.modifierClass}${t.type}-dynamic`),
                        (o = 0),
                        t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)),
                      "progressbar" === t.type &&
                        t.progressbarOpposite &&
                        i.classList.add(t.progressbarOppositeClass),
                      t.clickable && i.addEventListener("click", u),
                      e.enabled || i.classList.add(t.lockClass);
                  }));
            }
            function p() {
              const t = e.params.pagination;
              if (l()) return;
              let i = e.pagination.el;
              i &&
                ((i = s(i)),
                i.forEach((i) => {
                  i.classList.remove(t.hiddenClass),
                    i.classList.remove(t.modifierClass + t.type),
                    i.classList.remove(
                      e.isHorizontal() ? t.horizontalClass : t.verticalClass
                    ),
                    t.clickable && i.removeEventListener("click", u);
                })),
                e.pagination.bullets &&
                  e.pagination.bullets.forEach((e) =>
                    e.classList.remove(t.bulletActiveClass)
                  );
            }
            i("init", () => {
              !1 === e.params.pagination.enabled ? g() : (f(), h(), d());
            }),
              i("activeIndexChange", () => {
                void 0 === e.snapIndex && d();
              }),
              i("snapIndexChange", () => {
                d();
              }),
              i("snapGridLengthChange", () => {
                h(), d();
              }),
              i("destroy", () => {
                p();
              }),
              i("enable disable", () => {
                let { el: t } = e.pagination;
                t &&
                  ((t = s(t)),
                  t.forEach((t) =>
                    t.classList[e.enabled ? "remove" : "add"](
                      e.params.pagination.lockClass
                    )
                  ));
              }),
              i("lock unlock", () => {
                d();
              }),
              i("click", (t, i) => {
                const r = i.target;
                let { el: a } = e.pagination;
                if (
                  (Array.isArray(a) || (a = [a].filter((e) => !!e)),
                  e.params.pagination.el &&
                    e.params.pagination.hideOnClick &&
                    a &&
                    a.length > 0 &&
                    !r.classList.contains(e.params.pagination.bulletClass))
                ) {
                  if (
                    e.navigation &&
                    ((e.navigation.nextEl && r === e.navigation.nextEl) ||
                      (e.navigation.prevEl && r === e.navigation.prevEl))
                  )
                    return;
                  const t = a[0].classList.contains(
                    e.params.pagination.hiddenClass
                  );
                  n(!0 === t ? "paginationShow" : "paginationHide"),
                    a.forEach((t) =>
                      t.classList.toggle(e.params.pagination.hiddenClass)
                    );
                }
              });
            const g = () => {
              e.el.classList.add(e.params.pagination.paginationDisabledClass);
              let { el: t } = e.pagination;
              t &&
                ((t = s(t)),
                t.forEach((t) =>
                  t.classList.add(e.params.pagination.paginationDisabledClass)
                )),
                p();
            };
            Object.assign(e.pagination, {
              enable: () => {
                e.el.classList.remove(
                  e.params.pagination.paginationDisabledClass
                );
                let { el: t } = e.pagination;
                t &&
                  ((t = s(t)),
                  t.forEach((t) =>
                    t.classList.remove(
                      e.params.pagination.paginationDisabledClass
                    )
                  )),
                  f(),
                  h(),
                  d();
              },
              disable: g,
              render: h,
              update: d,
              init: f,
              destroy: p,
            });
          },
          function ({ swiper: e, extendParams: t, on: i, emit: n }) {
            const r = sr();
            let a,
              o,
              s,
              l,
              c = !1,
              u = null,
              d = null;
            function h() {
              if (!e.params.scrollbar.el || !e.scrollbar.el) return;
              const { scrollbar: t, rtlTranslate: i } = e,
                { dragEl: n, el: r } = t,
                a = e.params.scrollbar,
                l = e.params.loop ? e.progressLoop : e.progress;
              let c = o,
                d = (s - o) * l;
              i
                ? ((d = -d),
                  d > 0 ? ((c = o - d), (d = 0)) : -d + o > s && (c = s + d))
                : d < 0
                ? ((c = o + d), (d = 0))
                : d + o > s && (c = s - d),
                e.isHorizontal()
                  ? ((n.style.transform = `translate3d(${d}px, 0, 0)`),
                    (n.style.width = `${c}px`))
                  : ((n.style.transform = `translate3d(0px, ${d}px, 0)`),
                    (n.style.height = `${c}px`)),
                a.hide &&
                  (clearTimeout(u),
                  (r.style.opacity = 1),
                  (u = setTimeout(() => {
                    (r.style.opacity = 0),
                      (r.style.transitionDuration = "400ms");
                  }, 1e3)));
            }
            function f() {
              if (!e.params.scrollbar.el || !e.scrollbar.el) return;
              const { scrollbar: t } = e,
                { dragEl: i, el: n } = t;
              (i.style.width = ""),
                (i.style.height = ""),
                (s = e.isHorizontal() ? n.offsetWidth : n.offsetHeight),
                (l =
                  e.size /
                  (e.virtualSize +
                    e.params.slidesOffsetBefore -
                    (e.params.centeredSlides ? e.snapGrid[0] : 0))),
                (o =
                  "auto" === e.params.scrollbar.dragSize
                    ? s * l
                    : parseInt(e.params.scrollbar.dragSize, 10)),
                e.isHorizontal()
                  ? (i.style.width = `${o}px`)
                  : (i.style.height = `${o}px`),
                (n.style.display = l >= 1 ? "none" : ""),
                e.params.scrollbar.hide && (n.style.opacity = 0),
                e.params.watchOverflow &&
                  e.enabled &&
                  t.el.classList[e.isLocked ? "add" : "remove"](
                    e.params.scrollbar.lockClass
                  );
            }
            function p(t) {
              return e.isHorizontal() ? t.clientX : t.clientY;
            }
            function g(t) {
              const { scrollbar: i, rtlTranslate: n } = e,
                { el: r } = i;
              let l;
              (l =
                (p(t) -
                  xr(r)[e.isHorizontal() ? "left" : "top"] -
                  (null !== a ? a : o / 2)) /
                (s - o)),
                (l = Math.max(Math.min(l, 1), 0)),
                n && (l = 1 - l);
              const c =
                e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * l;
              e.updateProgress(c),
                e.setTranslate(c),
                e.updateActiveIndex(),
                e.updateSlidesClasses();
            }
            function m(t) {
              const i = e.params.scrollbar,
                { scrollbar: r, wrapperEl: o } = e,
                { el: s, dragEl: l } = r;
              (c = !0),
                (a =
                  t.target === l
                    ? p(t) -
                      t.target.getBoundingClientRect()[
                        e.isHorizontal() ? "left" : "top"
                      ]
                    : null),
                t.preventDefault(),
                t.stopPropagation(),
                (o.style.transitionDuration = "100ms"),
                (l.style.transitionDuration = "100ms"),
                g(t),
                clearTimeout(d),
                (s.style.transitionDuration = "0ms"),
                i.hide && (s.style.opacity = 1),
                e.params.cssMode &&
                  (e.wrapperEl.style["scroll-snap-type"] = "none"),
                n("scrollbarDragStart", t);
            }
            function v(t) {
              const { scrollbar: i, wrapperEl: r } = e,
                { el: a, dragEl: o } = i;
              c &&
                (t.preventDefault ? t.preventDefault() : (t.returnValue = !1),
                g(t),
                (r.style.transitionDuration = "0ms"),
                (a.style.transitionDuration = "0ms"),
                (o.style.transitionDuration = "0ms"),
                n("scrollbarDragMove", t));
            }
            function b(t) {
              const i = e.params.scrollbar,
                { scrollbar: r, wrapperEl: a } = e,
                { el: o } = r;
              c &&
                ((c = !1),
                e.params.cssMode &&
                  ((e.wrapperEl.style["scroll-snap-type"] = ""),
                  (a.style.transitionDuration = "")),
                i.hide &&
                  (clearTimeout(d),
                  (d = ur(() => {
                    (o.style.opacity = 0),
                      (o.style.transitionDuration = "400ms");
                  }, 1e3))),
                n("scrollbarDragEnd", t),
                i.snapOnRelease && e.slideToClosest());
            }
            function y(t) {
              const { scrollbar: i, params: n } = e,
                a = i.el;
              if (!a) return;
              const o = a,
                s = !!n.passiveListeners && { passive: !1, capture: !1 },
                l = !!n.passiveListeners && { passive: !0, capture: !1 };
              if (!o) return;
              const c = "on" === t ? "addEventListener" : "removeEventListener";
              o[c]("pointerdown", m, s),
                r[c]("pointermove", v, s),
                r[c]("pointerup", b, l);
            }
            function x() {
              const { scrollbar: t, el: i } = e;
              e.params.scrollbar = oa(
                e,
                e.originalParams.scrollbar,
                e.params.scrollbar,
                { el: "swiper-scrollbar" }
              );
              const n = e.params.scrollbar;
              if (!n.el) return;
              let a, o;
              "string" == typeof n.el &&
                e.isElement &&
                (a = e.el.shadowRoot.querySelector(n.el)),
                a || "string" != typeof n.el
                  ? a || (a = n.el)
                  : (a = r.querySelectorAll(n.el)),
                e.params.uniqueNavElements &&
                  "string" == typeof n.el &&
                  a.length > 1 &&
                  1 === i.querySelectorAll(n.el).length &&
                  (a = i.querySelector(n.el)),
                a.length > 0 && (a = a[0]),
                a.classList.add(
                  e.isHorizontal() ? n.horizontalClass : n.verticalClass
                ),
                a &&
                  ((o = a.querySelector(`.${e.params.scrollbar.dragClass}`)),
                  o ||
                    ((o = yr("div", e.params.scrollbar.dragClass)),
                    a.append(o))),
                Object.assign(t, { el: a, dragEl: o }),
                n.draggable &&
                  e.params.scrollbar.el &&
                  e.scrollbar.el &&
                  y("on"),
                a &&
                  a.classList[e.enabled ? "remove" : "add"](
                    e.params.scrollbar.lockClass
                  );
            }
            function w() {
              const t = e.params.scrollbar,
                i = e.scrollbar.el;
              i &&
                i.classList.remove(
                  e.isHorizontal() ? t.horizontalClass : t.verticalClass
                ),
                e.params.scrollbar.el && e.scrollbar.el && y("off");
            }
            t({
              scrollbar: {
                el: null,
                dragSize: "auto",
                hide: !1,
                draggable: !1,
                snapOnRelease: !0,
                lockClass: "swiper-scrollbar-lock",
                dragClass: "swiper-scrollbar-drag",
                scrollbarDisabledClass: "swiper-scrollbar-disabled",
                horizontalClass: "swiper-scrollbar-horizontal",
                verticalClass: "swiper-scrollbar-vertical",
              },
            }),
              (e.scrollbar = { el: null, dragEl: null }),
              i("init", () => {
                !1 === e.params.scrollbar.enabled ? E() : (x(), f(), h());
              }),
              i("update resize observerUpdate lock unlock", () => {
                f();
              }),
              i("setTranslate", () => {
                h();
              }),
              i("setTransition", (t, i) => {
                !(function (t) {
                  e.params.scrollbar.el &&
                    e.scrollbar.el &&
                    (e.scrollbar.dragEl.style.transitionDuration = `${t}ms`);
                })(i);
              }),
              i("enable disable", () => {
                const { el: t } = e.scrollbar;
                t &&
                  t.classList[e.enabled ? "remove" : "add"](
                    e.params.scrollbar.lockClass
                  );
              }),
              i("destroy", () => {
                w();
              });
            const E = () => {
              e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),
                e.scrollbar.el &&
                  e.scrollbar.el.classList.add(
                    e.params.scrollbar.scrollbarDisabledClass
                  ),
                w();
            };
            Object.assign(e.scrollbar, {
              enable: () => {
                e.el.classList.remove(
                  e.params.scrollbar.scrollbarDisabledClass
                ),
                  e.scrollbar.el &&
                    e.scrollbar.el.classList.remove(
                      e.params.scrollbar.scrollbarDisabledClass
                    ),
                  x(),
                  f(),
                  h();
              },
              disable: E,
              updateSize: f,
              setTranslate: h,
              init: x,
              destroy: w,
            });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            t({ parallax: { enabled: !1 } });
            const n = (t, i) => {
                const { rtl: n } = e,
                  r = n ? -1 : 1,
                  a = t.getAttribute("data-swiper-parallax") || "0";
                let o = t.getAttribute("data-swiper-parallax-x"),
                  s = t.getAttribute("data-swiper-parallax-y");
                const l = t.getAttribute("data-swiper-parallax-scale"),
                  c = t.getAttribute("data-swiper-parallax-opacity"),
                  u = t.getAttribute("data-swiper-parallax-rotate");
                if (
                  (o || s
                    ? ((o = o || "0"), (s = s || "0"))
                    : e.isHorizontal()
                    ? ((o = a), (s = "0"))
                    : ((s = a), (o = "0")),
                  (o =
                    o.indexOf("%") >= 0
                      ? parseInt(o, 10) * i * r + "%"
                      : o * i * r + "px"),
                  (s =
                    s.indexOf("%") >= 0
                      ? parseInt(s, 10) * i + "%"
                      : s * i + "px"),
                  null != c)
                ) {
                  const e = c - (c - 1) * (1 - Math.abs(i));
                  t.style.opacity = e;
                }
                let d = `translate3d(${o}, ${s}, 0px)`;
                if (null != l) {
                  d += ` scale(${l - (l - 1) * (1 - Math.abs(i))})`;
                }
                if (u && null != u) {
                  d += ` rotate(${u * i * -1}deg)`;
                }
                t.style.transform = d;
              },
              r = () => {
                const { el: t, slides: i, progress: r, snapGrid: a } = e;
                br(
                  t,
                  "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]"
                ).forEach((e) => {
                  n(e, r);
                }),
                  i.forEach((t, i) => {
                    let o = t.progress;
                    e.params.slidesPerGroup > 1 &&
                      "auto" !== e.params.slidesPerView &&
                      (o += Math.ceil(i / 2) - r * (a.length - 1)),
                      (o = Math.min(Math.max(o, -1), 1)),
                      t
                        .querySelectorAll(
                          "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale], [data-swiper-parallax-rotate]"
                        )
                        .forEach((e) => {
                          n(e, o);
                        });
                  });
              };
            i("beforeInit", () => {
              e.params.parallax.enabled &&
                ((e.params.watchSlidesProgress = !0),
                (e.originalParams.watchSlidesProgress = !0));
            }),
              i("init", () => {
                e.params.parallax.enabled && r();
              }),
              i("setTranslate", () => {
                e.params.parallax.enabled && r();
              }),
              i("setTransition", (t, i) => {
                e.params.parallax.enabled &&
                  ((t = e.params.speed) => {
                    const { el: i } = e;
                    i.querySelectorAll(
                      "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]"
                    ).forEach((e) => {
                      let i =
                        parseInt(
                          e.getAttribute("data-swiper-parallax-duration"),
                          10
                        ) || t;
                      0 === t && (i = 0),
                        (e.style.transitionDuration = `${i}ms`);
                    });
                  })(i);
              });
          },
          function ({ swiper: e, extendParams: t, on: i, emit: n }) {
            const r = cr();
            t({
              zoom: {
                enabled: !1,
                maxRatio: 3,
                minRatio: 1,
                toggle: !0,
                containerClass: "swiper-zoom-container",
                zoomedSlideClass: "swiper-slide-zoomed",
              },
            }),
              (e.zoom = { enabled: !1 });
            let a,
              o,
              s = 1,
              l = !1;
            const c = [],
              u = {
                slideEl: void 0,
                slideWidth: void 0,
                slideHeight: void 0,
                imageEl: void 0,
                imageWrapEl: void 0,
                maxRatio: 3,
              },
              d = {
                isTouched: void 0,
                isMoved: void 0,
                currentX: void 0,
                currentY: void 0,
                minX: void 0,
                minY: void 0,
                maxX: void 0,
                maxY: void 0,
                width: void 0,
                height: void 0,
                startX: void 0,
                startY: void 0,
                touchesStart: {},
                touchesCurrent: {},
              },
              h = {
                x: void 0,
                y: void 0,
                prevPositionX: void 0,
                prevPositionY: void 0,
                prevTime: void 0,
              };
            let f = 1;
            function p() {
              if (c.length < 2) return 1;
              const e = c[0].pageX,
                t = c[0].pageY,
                i = c[1].pageX,
                n = c[1].pageY;
              return Math.sqrt((i - e) ** 2 + (n - t) ** 2);
            }
            function g(t) {
              const i = e.isElement
                ? "swiper-slide"
                : `.${e.params.slideClass}`;
              return (
                !!t.target.matches(i) ||
                e.slides.filter((e) => e.contains(t.target)).length > 0
              );
            }
            function m(t) {
              if (!g(t)) return;
              const i = e.params.zoom;
              if (((a = !1), (o = !1), c.push(t), !(c.length < 2))) {
                if (((a = !0), (u.scaleStart = p()), !u.slideEl)) {
                  (u.slideEl = t.target.closest(
                    `.${e.params.slideClass}, swiper-slide`
                  )),
                    u.slideEl || (u.slideEl = e.slides[e.activeIndex]);
                  let n = u.slideEl.querySelector(`.${i.containerClass}`);
                  if (
                    (n &&
                      (n = n.querySelectorAll(
                        "picture, img, svg, canvas, .swiper-zoom-target"
                      )[0]),
                    (u.imageEl = n),
                    (u.imageWrapEl = n
                      ? _r(u.imageEl, `.${i.containerClass}`)[0]
                      : void 0),
                    !u.imageWrapEl)
                  )
                    return void (u.imageEl = void 0);
                  u.maxRatio =
                    u.imageWrapEl.getAttribute("data-swiper-zoom") ||
                    i.maxRatio;
                }
                if (u.imageEl) {
                  const [e, t] = (function () {
                    if (c.length < 2) return { x: null, y: null };
                    const e = u.imageEl.getBoundingClientRect();
                    return [
                      (c[0].pageX + (c[1].pageX - c[0].pageX) / 2 - e.x) / s,
                      (c[0].pageY + (c[1].pageY - c[0].pageY) / 2 - e.y) / s,
                    ];
                  })();
                  (u.imageEl.style.transformOrigin = `${e}px ${t}px`),
                    (u.imageEl.style.transitionDuration = "0ms");
                }
                l = !0;
              }
            }
            function v(t) {
              if (!g(t)) return;
              const i = e.params.zoom,
                n = e.zoom,
                r = c.findIndex((e) => e.pointerId === t.pointerId);
              r >= 0 && (c[r] = t),
                c.length < 2 ||
                  ((o = !0),
                  (u.scaleMove = p()),
                  u.imageEl &&
                    ((n.scale = (u.scaleMove / u.scaleStart) * s),
                    n.scale > u.maxRatio &&
                      (n.scale =
                        u.maxRatio - 1 + (n.scale - u.maxRatio + 1) ** 0.5),
                    n.scale < i.minRatio &&
                      (n.scale =
                        i.minRatio + 1 - (i.minRatio - n.scale + 1) ** 0.5),
                    (u.imageEl.style.transform = `translate3d(0,0,0) scale(${n.scale})`)));
            }
            function b(t) {
              if (!g(t)) return;
              const i = e.params.zoom,
                n = e.zoom,
                r = c.findIndex((e) => e.pointerId === t.pointerId);
              r >= 0 && c.splice(r, 1),
                a &&
                  o &&
                  ((a = !1),
                  (o = !1),
                  u.imageEl &&
                    ((n.scale = Math.max(
                      Math.min(n.scale, u.maxRatio),
                      i.minRatio
                    )),
                    (u.imageEl.style.transitionDuration = `${e.params.speed}ms`),
                    (u.imageEl.style.transform = `translate3d(0,0,0) scale(${n.scale})`),
                    (s = n.scale),
                    (l = !1),
                    1 === n.scale && (u.slideEl = void 0)));
            }
            function y(t) {
              if (
                !g(t) ||
                !(function (t) {
                  const i = `.${e.params.zoom.containerClass}`;
                  return (
                    !!t.target.matches(i) ||
                    [...e.el.querySelectorAll(i)].filter((e) =>
                      e.contains(t.target)
                    ).length > 0
                  );
                })(t)
              )
                return;
              const i = e.zoom;
              if (!u.imageEl) return;
              if (((e.allowClick = !1), !d.isTouched || !u.slideEl)) return;
              d.isMoved ||
                ((d.width = u.imageEl.offsetWidth),
                (d.height = u.imageEl.offsetHeight),
                (d.startX = hr(u.imageWrapEl, "x") || 0),
                (d.startY = hr(u.imageWrapEl, "y") || 0),
                (u.slideWidth = u.slideEl.offsetWidth),
                (u.slideHeight = u.slideEl.offsetHeight),
                (u.imageWrapEl.style.transitionDuration = "0ms"));
              const n = d.width * i.scale,
                r = d.height * i.scale;
              if (!(n < u.slideWidth && r < u.slideHeight)) {
                if (
                  ((d.minX = Math.min(u.slideWidth / 2 - n / 2, 0)),
                  (d.maxX = -d.minX),
                  (d.minY = Math.min(u.slideHeight / 2 - r / 2, 0)),
                  (d.maxY = -d.minY),
                  (d.touchesCurrent.x = c.length > 0 ? c[0].pageX : t.pageX),
                  (d.touchesCurrent.y = c.length > 0 ? c[0].pageY : t.pageY),
                  !d.isMoved && !l)
                ) {
                  if (
                    e.isHorizontal() &&
                    ((Math.floor(d.minX) === Math.floor(d.startX) &&
                      d.touchesCurrent.x < d.touchesStart.x) ||
                      (Math.floor(d.maxX) === Math.floor(d.startX) &&
                        d.touchesCurrent.x > d.touchesStart.x))
                  )
                    return void (d.isTouched = !1);
                  if (
                    !e.isHorizontal() &&
                    ((Math.floor(d.minY) === Math.floor(d.startY) &&
                      d.touchesCurrent.y < d.touchesStart.y) ||
                      (Math.floor(d.maxY) === Math.floor(d.startY) &&
                        d.touchesCurrent.y > d.touchesStart.y))
                  )
                    return void (d.isTouched = !1);
                }
                t.cancelable && t.preventDefault(),
                  t.stopPropagation(),
                  (d.isMoved = !0),
                  (d.currentX =
                    d.touchesCurrent.x - d.touchesStart.x + d.startX),
                  (d.currentY =
                    d.touchesCurrent.y - d.touchesStart.y + d.startY),
                  d.currentX < d.minX &&
                    (d.currentX =
                      d.minX + 1 - (d.minX - d.currentX + 1) ** 0.8),
                  d.currentX > d.maxX &&
                    (d.currentX =
                      d.maxX - 1 + (d.currentX - d.maxX + 1) ** 0.8),
                  d.currentY < d.minY &&
                    (d.currentY =
                      d.minY + 1 - (d.minY - d.currentY + 1) ** 0.8),
                  d.currentY > d.maxY &&
                    (d.currentY =
                      d.maxY - 1 + (d.currentY - d.maxY + 1) ** 0.8),
                  h.prevPositionX || (h.prevPositionX = d.touchesCurrent.x),
                  h.prevPositionY || (h.prevPositionY = d.touchesCurrent.y),
                  h.prevTime || (h.prevTime = Date.now()),
                  (h.x =
                    (d.touchesCurrent.x - h.prevPositionX) /
                    (Date.now() - h.prevTime) /
                    2),
                  (h.y =
                    (d.touchesCurrent.y - h.prevPositionY) /
                    (Date.now() - h.prevTime) /
                    2),
                  Math.abs(d.touchesCurrent.x - h.prevPositionX) < 2 &&
                    (h.x = 0),
                  Math.abs(d.touchesCurrent.y - h.prevPositionY) < 2 &&
                    (h.y = 0),
                  (h.prevPositionX = d.touchesCurrent.x),
                  (h.prevPositionY = d.touchesCurrent.y),
                  (h.prevTime = Date.now()),
                  (u.imageWrapEl.style.transform = `translate3d(${d.currentX}px, ${d.currentY}px,0)`);
              }
            }
            function x() {
              const t = e.zoom;
              u.slideEl &&
                e.previousIndex !== e.activeIndex &&
                (u.imageEl &&
                  (u.imageEl.style.transform = "translate3d(0,0,0) scale(1)"),
                u.imageWrapEl &&
                  (u.imageWrapEl.style.transform = "translate3d(0,0,0)"),
                (t.scale = 1),
                (s = 1),
                (u.slideEl = void 0),
                (u.imageEl = void 0),
                (u.imageWrapEl = void 0));
            }
            function w(t) {
              const i = e.zoom,
                n = e.params.zoom;
              if (!u.slideEl) {
                t &&
                  t.target &&
                  (u.slideEl = t.target.closest(
                    `.${e.params.slideClass}, swiper-slide`
                  )),
                  u.slideEl ||
                    (e.params.virtual && e.params.virtual.enabled && e.virtual
                      ? (u.slideEl = br(
                          e.slidesEl,
                          `.${e.params.slideActiveClass}`
                        )[0])
                      : (u.slideEl = e.slides[e.activeIndex]));
                let i = u.slideEl.querySelector(`.${n.containerClass}`);
                i &&
                  (i = i.querySelectorAll(
                    "picture, img, svg, canvas, .swiper-zoom-target"
                  )[0]),
                  (u.imageEl = i),
                  (u.imageWrapEl = i
                    ? _r(u.imageEl, `.${n.containerClass}`)[0]
                    : void 0);
              }
              if (!u.imageEl || !u.imageWrapEl) return;
              let a, o, l, c, h, f, p, g, m, v, b, y, x, w, E, _, S, A;
              e.params.cssMode &&
                ((e.wrapperEl.style.overflow = "hidden"),
                (e.wrapperEl.style.touchAction = "none")),
                u.slideEl.classList.add(`${n.zoomedSlideClass}`),
                void 0 === d.touchesStart.x && t
                  ? ((a = t.pageX), (o = t.pageY))
                  : ((a = d.touchesStart.x), (o = d.touchesStart.y));
              const k = "number" == typeof t ? t : null;
              1 === s && k && ((a = void 0), (o = void 0)),
                (i.scale =
                  k ||
                  u.imageWrapEl.getAttribute("data-swiper-zoom") ||
                  n.maxRatio),
                (s =
                  k ||
                  u.imageWrapEl.getAttribute("data-swiper-zoom") ||
                  n.maxRatio),
                !t || (1 === s && k)
                  ? ((p = 0), (g = 0))
                  : ((S = u.slideEl.offsetWidth),
                    (A = u.slideEl.offsetHeight),
                    (l = xr(u.slideEl).left + r.scrollX),
                    (c = xr(u.slideEl).top + r.scrollY),
                    (h = l + S / 2 - a),
                    (f = c + A / 2 - o),
                    (m = u.imageEl.offsetWidth),
                    (v = u.imageEl.offsetHeight),
                    (b = m * i.scale),
                    (y = v * i.scale),
                    (x = Math.min(S / 2 - b / 2, 0)),
                    (w = Math.min(A / 2 - y / 2, 0)),
                    (E = -x),
                    (_ = -w),
                    (p = h * i.scale),
                    (g = f * i.scale),
                    p < x && (p = x),
                    p > E && (p = E),
                    g < w && (g = w),
                    g > _ && (g = _)),
                (u.imageWrapEl.style.transitionDuration = "300ms"),
                (u.imageWrapEl.style.transform = `translate3d(${p}px, ${g}px,0)`),
                (u.imageEl.style.transitionDuration = "300ms"),
                (u.imageEl.style.transform = `translate3d(0,0,0) scale(${i.scale})`);
            }
            function E() {
              const t = e.zoom,
                i = e.params.zoom;
              if (!u.slideEl) {
                e.params.virtual && e.params.virtual.enabled && e.virtual
                  ? (u.slideEl = br(
                      e.slidesEl,
                      `.${e.params.slideActiveClass}`
                    )[0])
                  : (u.slideEl = e.slides[e.activeIndex]);
                let t = u.slideEl.querySelector(`.${i.containerClass}`);
                t &&
                  (t = t.querySelectorAll(
                    "picture, img, svg, canvas, .swiper-zoom-target"
                  )[0]),
                  (u.imageEl = t),
                  (u.imageWrapEl = t
                    ? _r(u.imageEl, `.${i.containerClass}`)[0]
                    : void 0);
              }
              u.imageEl &&
                u.imageWrapEl &&
                (e.params.cssMode &&
                  ((e.wrapperEl.style.overflow = ""),
                  (e.wrapperEl.style.touchAction = "")),
                (t.scale = 1),
                (s = 1),
                (u.imageWrapEl.style.transitionDuration = "300ms"),
                (u.imageWrapEl.style.transform = "translate3d(0,0,0)"),
                (u.imageEl.style.transitionDuration = "300ms"),
                (u.imageEl.style.transform = "translate3d(0,0,0) scale(1)"),
                u.slideEl.classList.remove(`${i.zoomedSlideClass}`),
                (u.slideEl = void 0));
            }
            function _(t) {
              const i = e.zoom;
              i.scale && 1 !== i.scale ? E() : w(t);
            }
            function S() {
              return {
                passiveListener: !!e.params.passiveListeners && {
                  passive: !0,
                  capture: !1,
                },
                activeListenerWithCapture: !e.params.passiveListeners || {
                  passive: !1,
                  capture: !0,
                },
              };
            }
            function A() {
              const t = e.zoom;
              if (t.enabled) return;
              t.enabled = !0;
              const { passiveListener: i, activeListenerWithCapture: n } = S();
              e.wrapperEl.addEventListener("pointerdown", m, i),
                e.wrapperEl.addEventListener("pointermove", v, n),
                ["pointerup", "pointercancel"].forEach((t) => {
                  e.wrapperEl.addEventListener(t, b, i);
                }),
                e.wrapperEl.addEventListener("pointermove", y, n);
            }
            function k() {
              const t = e.zoom;
              if (!t.enabled) return;
              t.enabled = !1;
              const { passiveListener: i, activeListenerWithCapture: n } = S();
              e.wrapperEl.removeEventListener("pointerdown", m, i),
                e.wrapperEl.removeEventListener("pointermove", v, n),
                ["pointerup", "pointercancel"].forEach((t) => {
                  e.wrapperEl.removeEventListener(t, b, i);
                }),
                e.wrapperEl.removeEventListener("pointermove", y, n);
            }
            Object.defineProperty(e.zoom, "scale", {
              get: () => f,
              set(e) {
                if (f !== e) {
                  const t = u.imageEl,
                    i = u.slideEl;
                  n("zoomChange", e, t, i);
                }
                f = e;
              },
            }),
              i("init", () => {
                e.params.zoom.enabled && A();
              }),
              i("destroy", () => {
                k();
              }),
              i("touchStart", (t, i) => {
                e.zoom.enabled &&
                  (function (t) {
                    const i = e.device;
                    u.imageEl &&
                      (d.isTouched ||
                        (i.android && t.cancelable && t.preventDefault(),
                        (d.isTouched = !0),
                        (d.touchesStart.x = t.pageX),
                        (d.touchesStart.y = t.pageY)));
                  })(i);
              }),
              i("touchEnd", (t, i) => {
                e.zoom.enabled &&
                  (function () {
                    const t = e.zoom;
                    if (!u.imageEl) return;
                    if (!d.isTouched || !d.isMoved)
                      return (d.isTouched = !1), void (d.isMoved = !1);
                    (d.isTouched = !1), (d.isMoved = !1);
                    let i = 300,
                      n = 300;
                    const r = h.x * i,
                      a = d.currentX + r,
                      o = h.y * n,
                      s = d.currentY + o;
                    0 !== h.x && (i = Math.abs((a - d.currentX) / h.x)),
                      0 !== h.y && (n = Math.abs((s - d.currentY) / h.y));
                    const l = Math.max(i, n);
                    (d.currentX = a), (d.currentY = s);
                    const c = d.width * t.scale,
                      f = d.height * t.scale;
                    (d.minX = Math.min(u.slideWidth / 2 - c / 2, 0)),
                      (d.maxX = -d.minX),
                      (d.minY = Math.min(u.slideHeight / 2 - f / 2, 0)),
                      (d.maxY = -d.minY),
                      (d.currentX = Math.max(
                        Math.min(d.currentX, d.maxX),
                        d.minX
                      )),
                      (d.currentY = Math.max(
                        Math.min(d.currentY, d.maxY),
                        d.minY
                      )),
                      (u.imageWrapEl.style.transitionDuration = `${l}ms`),
                      (u.imageWrapEl.style.transform = `translate3d(${d.currentX}px, ${d.currentY}px,0)`);
                  })();
              }),
              i("doubleTap", (t, i) => {
                !e.animating &&
                  e.params.zoom.enabled &&
                  e.zoom.enabled &&
                  e.params.zoom.toggle &&
                  _(i);
              }),
              i("transitionEnd", () => {
                e.zoom.enabled && e.params.zoom.enabled && x();
              }),
              i("slideChange", () => {
                e.zoom.enabled &&
                  e.params.zoom.enabled &&
                  e.params.cssMode &&
                  x();
              }),
              Object.assign(e.zoom, {
                enable: A,
                disable: k,
                in: w,
                out: E,
                toggle: _,
              });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            function n(e, t) {
              const i = (function () {
                let e, t, i;
                return (n, r) => {
                  for (t = -1, e = n.length; e - t > 1; )
                    (i = (e + t) >> 1), n[i] <= r ? (t = i) : (e = i);
                  return e;
                };
              })();
              let n, r;
              return (
                (this.x = e),
                (this.y = t),
                (this.lastIndex = e.length - 1),
                (this.interpolate = function (e) {
                  return e
                    ? ((r = i(this.x, e)),
                      (n = r - 1),
                      ((e - this.x[n]) * (this.y[r] - this.y[n])) /
                        (this.x[r] - this.x[n]) +
                        this.y[n])
                    : 0;
                }),
                this
              );
            }
            function r() {
              e.controller.control &&
                e.controller.spline &&
                ((e.controller.spline = void 0), delete e.controller.spline);
            }
            t({ controller: { control: void 0, inverse: !1, by: "slide" } }),
              (e.controller = { control: void 0 }),
              i("beforeInit", () => {
                if (
                  "undefined" != typeof window &&
                  ("string" == typeof e.params.controller.control ||
                    e.params.controller.control instanceof HTMLElement)
                ) {
                  const t = document.querySelector(e.params.controller.control);
                  if (t && t.swiper) e.controller.control = t.swiper;
                  else if (t) {
                    const i = (n) => {
                      (e.controller.control = n.detail[0]),
                        e.update(),
                        t.removeEventListener("init", i);
                    };
                    t.addEventListener("init", i);
                  }
                } else e.controller.control = e.params.controller.control;
              }),
              i("update", () => {
                r();
              }),
              i("resize", () => {
                r();
              }),
              i("observerUpdate", () => {
                r();
              }),
              i("setTranslate", (t, i, n) => {
                e.controller.control && e.controller.setTranslate(i, n);
              }),
              i("setTransition", (t, i, n) => {
                e.controller.control && e.controller.setTransition(i, n);
              }),
              Object.assign(e.controller, {
                setTranslate: function (t, i) {
                  const r = e.controller.control;
                  let a, o;
                  const s = e.constructor;
                  function l(t) {
                    const i = e.rtlTranslate ? -e.translate : e.translate;
                    "slide" === e.params.controller.by &&
                      (!(function (t) {
                        e.controller.spline ||
                          (e.controller.spline = e.params.loop
                            ? new n(e.slidesGrid, t.slidesGrid)
                            : new n(e.snapGrid, t.snapGrid));
                      })(t),
                      (o = -e.controller.spline.interpolate(-i))),
                      (o && "container" !== e.params.controller.by) ||
                        ((a =
                          (t.maxTranslate() - t.minTranslate()) /
                          (e.maxTranslate() - e.minTranslate())),
                        (o = (i - e.minTranslate()) * a + t.minTranslate())),
                      e.params.controller.inverse && (o = t.maxTranslate() - o),
                      t.updateProgress(o),
                      t.setTranslate(o, e),
                      t.updateActiveIndex(),
                      t.updateSlidesClasses();
                  }
                  if (Array.isArray(r))
                    for (let e = 0; e < r.length; e += 1)
                      r[e] !== i && r[e] instanceof s && l(r[e]);
                  else r instanceof s && i !== r && l(r);
                },
                setTransition: function (t, i) {
                  const n = e.constructor,
                    r = e.controller.control;
                  let a;
                  function o(i) {
                    i.setTransition(t, e),
                      0 !== t &&
                        (i.transitionStart(),
                        i.params.autoHeight &&
                          ur(() => {
                            i.updateAutoHeight();
                          }),
                        Sr(i.wrapperEl, () => {
                          r && i.transitionEnd();
                        }));
                  }
                  if (Array.isArray(r))
                    for (a = 0; a < r.length; a += 1)
                      r[a] !== i && r[a] instanceof n && o(r[a]);
                  else r instanceof n && i !== r && o(r);
                },
              });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            t({
              a11y: {
                enabled: !0,
                notificationClass: "swiper-notification",
                prevSlideMessage: "Previous slide",
                nextSlideMessage: "Next slide",
                firstSlideMessage: "This is the first slide",
                lastSlideMessage: "This is the last slide",
                paginationBulletMessage: "Go to slide {{index}}",
                slideLabelMessage: "{{index}} / {{slidesLength}}",
                containerMessage: null,
                containerRoleDescriptionMessage: null,
                itemRoleDescriptionMessage: null,
                slideRole: "group",
                id: null,
              },
            }),
              (e.a11y = { clicked: !1 });
            let n = null;
            function r(e) {
              const t = n;
              0 !== t.length && ((t.innerHTML = ""), (t.innerHTML = e));
            }
            const a = (e) => (
              Array.isArray(e) || (e = [e].filter((e) => !!e)), e
            );
            function o(e) {
              (e = a(e)).forEach((e) => {
                e.setAttribute("tabIndex", "0");
              });
            }
            function s(e) {
              (e = a(e)).forEach((e) => {
                e.setAttribute("tabIndex", "-1");
              });
            }
            function l(e, t) {
              (e = a(e)).forEach((e) => {
                e.setAttribute("role", t);
              });
            }
            function c(e, t) {
              (e = a(e)).forEach((e) => {
                e.setAttribute("aria-roledescription", t);
              });
            }
            function u(e, t) {
              (e = a(e)).forEach((e) => {
                e.setAttribute("aria-label", t);
              });
            }
            function d(e) {
              (e = a(e)).forEach((e) => {
                e.setAttribute("aria-disabled", !0);
              });
            }
            function h(e) {
              (e = a(e)).forEach((e) => {
                e.setAttribute("aria-disabled", !1);
              });
            }
            function f(t) {
              if (13 !== t.keyCode && 32 !== t.keyCode) return;
              const i = e.params.a11y,
                n = t.target;
              (e.pagination &&
                e.pagination.el &&
                (n === e.pagination.el || e.pagination.el.contains(t.target)) &&
                !t.target.matches(sa(e.params.pagination.bulletClass))) ||
                (e.navigation &&
                  e.navigation.nextEl &&
                  n === e.navigation.nextEl &&
                  ((e.isEnd && !e.params.loop) || e.slideNext(),
                  e.isEnd ? r(i.lastSlideMessage) : r(i.nextSlideMessage)),
                e.navigation &&
                  e.navigation.prevEl &&
                  n === e.navigation.prevEl &&
                  ((e.isBeginning && !e.params.loop) || e.slidePrev(),
                  e.isBeginning
                    ? r(i.firstSlideMessage)
                    : r(i.prevSlideMessage)),
                e.pagination &&
                  n.matches(sa(e.params.pagination.bulletClass)) &&
                  n.click());
            }
            function p() {
              return (
                e.pagination &&
                e.pagination.bullets &&
                e.pagination.bullets.length
              );
            }
            function g() {
              return p() && e.params.pagination.clickable;
            }
            const m = (e, t, i) => {
                o(e),
                  "BUTTON" !== e.tagName &&
                    (l(e, "button"), e.addEventListener("keydown", f)),
                  u(e, i),
                  (function (e, t) {
                    (e = a(e)).forEach((e) => {
                      e.setAttribute("aria-controls", t);
                    });
                  })(e, t);
              },
              v = () => {
                e.a11y.clicked = !0;
              },
              b = () => {
                requestAnimationFrame(() => {
                  requestAnimationFrame(() => {
                    e.destroyed || (e.a11y.clicked = !1);
                  });
                });
              },
              y = (t) => {
                if (e.a11y.clicked) return;
                const i = t.target.closest(
                  `.${e.params.slideClass}, swiper-slide`
                );
                if (!i || !e.slides.includes(i)) return;
                const n = e.slides.indexOf(i) === e.activeIndex,
                  r =
                    e.params.watchSlidesProgress &&
                    e.visibleSlides &&
                    e.visibleSlides.includes(i);
                n ||
                  r ||
                  (t.sourceCapabilities &&
                    t.sourceCapabilities.firesTouchEvents) ||
                  (e.isHorizontal()
                    ? (e.el.scrollLeft = 0)
                    : (e.el.scrollTop = 0),
                  e.slideTo(e.slides.indexOf(i), 0));
              },
              x = () => {
                const t = e.params.a11y;
                t.itemRoleDescriptionMessage &&
                  c(e.slides, t.itemRoleDescriptionMessage),
                  t.slideRole && l(e.slides, t.slideRole);
                const i = e.slides.length;
                t.slideLabelMessage &&
                  e.slides.forEach((n, r) => {
                    const a = e.params.loop
                      ? parseInt(n.getAttribute("data-swiper-slide-index"), 10)
                      : r;
                    u(
                      n,
                      t.slideLabelMessage
                        .replace(/\{\{index\}\}/, a + 1)
                        .replace(/\{\{slidesLength\}\}/, i)
                    );
                  });
              },
              w = () => {
                const t = e.params.a11y;
                e.el.append(n);
                const i = e.el;
                t.containerRoleDescriptionMessage &&
                  c(i, t.containerRoleDescriptionMessage),
                  t.containerMessage && u(i, t.containerMessage);
                const r = e.wrapperEl,
                  o =
                    t.id ||
                    r.getAttribute("id") ||
                    `swiper-wrapper-${(function (e = 16) {
                      return "x"
                        .repeat(e)
                        .replace(/x/g, () =>
                          Math.round(16 * Math.random()).toString(16)
                        );
                    })(16)}`,
                  s =
                    e.params.autoplay && e.params.autoplay.enabled
                      ? "off"
                      : "polite";
                var l;
                (l = o),
                  a(r).forEach((e) => {
                    e.setAttribute("id", l);
                  }),
                  (function (e, t) {
                    (e = a(e)).forEach((e) => {
                      e.setAttribute("aria-live", t);
                    });
                  })(r, s),
                  x();
                let { nextEl: d, prevEl: h } = e.navigation ? e.navigation : {};
                if (
                  ((d = a(d)),
                  (h = a(h)),
                  d && d.forEach((e) => m(e, o, t.nextSlideMessage)),
                  h && h.forEach((e) => m(e, o, t.prevSlideMessage)),
                  g())
                ) {
                  (Array.isArray(e.pagination.el)
                    ? e.pagination.el
                    : [e.pagination.el]
                  ).forEach((e) => {
                    e.addEventListener("keydown", f);
                  });
                }
                e.el.addEventListener("focus", y, !0),
                  e.el.addEventListener("pointerdown", v, !0),
                  e.el.addEventListener("pointerup", b, !0);
              };
            i("beforeInit", () => {
              (n = yr("span", e.params.a11y.notificationClass)),
                n.setAttribute("aria-live", "assertive"),
                n.setAttribute("aria-atomic", "true"),
                e.isElement && n.setAttribute("slot", "container-end");
            }),
              i("afterInit", () => {
                e.params.a11y.enabled && w();
              }),
              i(
                "slidesLengthChange snapGridLengthChange slidesGridLengthChange",
                () => {
                  e.params.a11y.enabled && x();
                }
              ),
              i("fromEdge toEdge afterInit lock unlock", () => {
                e.params.a11y.enabled &&
                  (function () {
                    if (e.params.loop || e.params.rewind || !e.navigation)
                      return;
                    const { nextEl: t, prevEl: i } = e.navigation;
                    i && (e.isBeginning ? (d(i), s(i)) : (h(i), o(i))),
                      t && (e.isEnd ? (d(t), s(t)) : (h(t), o(t)));
                  })();
              }),
              i("paginationUpdate", () => {
                e.params.a11y.enabled &&
                  (function () {
                    const t = e.params.a11y;
                    p() &&
                      e.pagination.bullets.forEach((i) => {
                        e.params.pagination.clickable &&
                          (o(i),
                          e.params.pagination.renderBullet ||
                            (l(i, "button"),
                            u(
                              i,
                              t.paginationBulletMessage.replace(
                                /\{\{index\}\}/,
                                Er(i) + 1
                              )
                            ))),
                          i.matches(`.${e.params.pagination.bulletActiveClass}`)
                            ? i.setAttribute("aria-current", "true")
                            : i.removeAttribute("aria-current");
                      });
                  })();
              }),
              i("destroy", () => {
                e.params.a11y.enabled &&
                  (function () {
                    n && n.length > 0 && n.remove();
                    let { nextEl: t, prevEl: i } = e.navigation
                      ? e.navigation
                      : {};
                    (t = a(t)),
                      (i = a(i)),
                      t &&
                        t.forEach((e) => e.removeEventListener("keydown", f)),
                      i &&
                        i.forEach((e) => e.removeEventListener("keydown", f)),
                      g() &&
                        (Array.isArray(e.pagination.el)
                          ? e.pagination.el
                          : [e.pagination.el]
                        ).forEach((e) => {
                          e.removeEventListener("keydown", f);
                        });
                    e.el.removeEventListener("focus", y, !0),
                      e.el.removeEventListener("pointerdown", v, !0),
                      e.el.removeEventListener("pointerup", b, !0);
                  })();
              });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            t({
              history: {
                enabled: !1,
                root: "",
                replaceState: !1,
                key: "slides",
                keepQuery: !1,
              },
            });
            let n = !1,
              r = {};
            const a = (e) =>
                e
                  .toString()
                  .replace(/\s+/g, "-")
                  .replace(/[^\w-]+/g, "")
                  .replace(/--+/g, "-")
                  .replace(/^-+/, "")
                  .replace(/-+$/, ""),
              o = (e) => {
                const t = cr();
                let i;
                i = e ? new URL(e) : t.location;
                const n = i.pathname
                    .slice(1)
                    .split("/")
                    .filter((e) => "" !== e),
                  r = n.length;
                return { key: n[r - 2], value: n[r - 1] };
              },
              s = (t, i) => {
                const r = cr();
                if (!n || !e.params.history.enabled) return;
                let o;
                o = e.params.url ? new URL(e.params.url) : r.location;
                const s = e.slides[i];
                let l = a(s.getAttribute("data-history"));
                if (e.params.history.root.length > 0) {
                  let i = e.params.history.root;
                  "/" === i[i.length - 1] && (i = i.slice(0, i.length - 1)),
                    (l = `${i}/${t ? `${t}/` : ""}${l}`);
                } else
                  o.pathname.includes(t) || (l = `${t ? `${t}/` : ""}${l}`);
                e.params.history.keepQuery && (l += o.search);
                const c = r.history.state;
                (c && c.value === l) ||
                  (e.params.history.replaceState
                    ? r.history.replaceState({ value: l }, null, l)
                    : r.history.pushState({ value: l }, null, l));
              },
              l = (t, i, n) => {
                if (i)
                  for (let r = 0, o = e.slides.length; r < o; r += 1) {
                    const o = e.slides[r];
                    if (a(o.getAttribute("data-history")) === i) {
                      const i = Er(o);
                      e.slideTo(i, t, n);
                    }
                  }
                else e.slideTo(0, t, n);
              },
              c = () => {
                (r = o(e.params.url)), l(e.params.speed, r.value, !1);
              };
            i("init", () => {
              e.params.history.enabled &&
                (() => {
                  const t = cr();
                  if (e.params.history) {
                    if (!t.history || !t.history.pushState)
                      return (
                        (e.params.history.enabled = !1),
                        void (e.params.hashNavigation.enabled = !0)
                      );
                    (n = !0),
                      (r = o(e.params.url)),
                      r.key || r.value
                        ? (l(0, r.value, e.params.runCallbacksOnInit),
                          e.params.history.replaceState ||
                            t.addEventListener("popstate", c))
                        : e.params.history.replaceState ||
                          t.addEventListener("popstate", c);
                  }
                })();
            }),
              i("destroy", () => {
                e.params.history.enabled &&
                  (() => {
                    const t = cr();
                    e.params.history.replaceState ||
                      t.removeEventListener("popstate", c);
                  })();
              }),
              i("transitionEnd _freeModeNoMomentumRelease", () => {
                n && s(e.params.history.key, e.activeIndex);
              }),
              i("slideChange", () => {
                n && e.params.cssMode && s(e.params.history.key, e.activeIndex);
              });
          },
          function ({ swiper: e, extendParams: t, emit: i, on: n }) {
            let r = !1;
            const a = sr(),
              o = cr();
            t({
              hashNavigation: { enabled: !1, replaceState: !1, watchState: !1 },
            });
            const s = () => {
                i("hashChange");
                const t = a.location.hash.replace("#", "");
                if (t !== e.slides[e.activeIndex].getAttribute("data-hash")) {
                  const i = Er(
                    br(
                      e.slidesEl,
                      `.${e.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`
                    )[0]
                  );
                  if (void 0 === i) return;
                  e.slideTo(i);
                }
              },
              l = () => {
                if (r && e.params.hashNavigation.enabled)
                  if (
                    e.params.hashNavigation.replaceState &&
                    o.history &&
                    o.history.replaceState
                  )
                    o.history.replaceState(
                      null,
                      null,
                      `#${e.slides[e.activeIndex].getAttribute("data-hash")}` ||
                        ""
                    ),
                      i("hashSet");
                  else {
                    const t = e.slides[e.activeIndex],
                      n =
                        t.getAttribute("data-hash") ||
                        t.getAttribute("data-history");
                    (a.location.hash = n || ""), i("hashSet");
                  }
              };
            n("init", () => {
              e.params.hashNavigation.enabled &&
                (() => {
                  if (
                    !e.params.hashNavigation.enabled ||
                    (e.params.history && e.params.history.enabled)
                  )
                    return;
                  r = !0;
                  const t = a.location.hash.replace("#", "");
                  if (t) {
                    const i = 0;
                    for (let n = 0, r = e.slides.length; n < r; n += 1) {
                      const r = e.slides[n];
                      if (
                        (r.getAttribute("data-hash") ||
                          r.getAttribute("data-history")) === t
                      ) {
                        const t = Er(r);
                        e.slideTo(t, i, e.params.runCallbacksOnInit, !0);
                      }
                    }
                  }
                  e.params.hashNavigation.watchState &&
                    o.addEventListener("hashchange", s);
                })();
            }),
              n("destroy", () => {
                e.params.hashNavigation.enabled &&
                  e.params.hashNavigation.watchState &&
                  o.removeEventListener("hashchange", s);
              }),
              n("transitionEnd _freeModeNoMomentumRelease", () => {
                r && l();
              }),
              n("slideChange", () => {
                r && e.params.cssMode && l();
              });
          },
          function ({ swiper: e, extendParams: t, on: i, emit: n, params: r }) {
            let a, o;
            (e.autoplay = { running: !1, paused: !1, timeLeft: 0 }),
              t({
                autoplay: {
                  enabled: !1,
                  delay: 3e3,
                  waitForTransition: !0,
                  disableOnInteraction: !0,
                  stopOnLastSlide: !1,
                  reverseDirection: !1,
                  pauseOnMouseEnter: !1,
                },
              });
            let s,
              l,
              c,
              u,
              d,
              h,
              f,
              p = r && r.autoplay ? r.autoplay.delay : 3e3,
              g = r && r.autoplay ? r.autoplay.delay : 3e3,
              m = new Date().getTime;
            function v(t) {
              e &&
                !e.destroyed &&
                e.wrapperEl &&
                t.target === e.wrapperEl &&
                (e.wrapperEl.removeEventListener("transitionend", v), _());
            }
            const b = () => {
                if (e.destroyed || !e.autoplay.running) return;
                e.autoplay.paused ? (l = !0) : l && ((g = s), (l = !1));
                const t = e.autoplay.paused ? s : m + g - new Date().getTime();
                (e.autoplay.timeLeft = t),
                  n("autoplayTimeLeft", t, t / p),
                  (o = requestAnimationFrame(() => {
                    b();
                  }));
              },
              y = (t) => {
                if (e.destroyed || !e.autoplay.running) return;
                cancelAnimationFrame(o), b();
                let i = void 0 === t ? e.params.autoplay.delay : t;
                (p = e.params.autoplay.delay), (g = e.params.autoplay.delay);
                const r = (() => {
                  let t;
                  if (
                    ((t =
                      e.virtual && e.params.virtual.enabled
                        ? e.slides.filter((e) =>
                            e.classList.contains("swiper-slide-active")
                          )[0]
                        : e.slides[e.activeIndex]),
                    !t)
                  )
                    return;
                  return parseInt(t.getAttribute("data-swiper-autoplay"), 10);
                })();
                !Number.isNaN(r) &&
                  r > 0 &&
                  void 0 === t &&
                  ((i = r), (p = r), (g = r)),
                  (s = i);
                const l = e.params.speed,
                  c = () => {
                    e &&
                      !e.destroyed &&
                      (e.params.autoplay.reverseDirection
                        ? !e.isBeginning || e.params.loop || e.params.rewind
                          ? (e.slidePrev(l, !0, !0), n("autoplay"))
                          : e.params.autoplay.stopOnLastSlide ||
                            (e.slideTo(e.slides.length - 1, l, !0, !0),
                            n("autoplay"))
                        : !e.isEnd || e.params.loop || e.params.rewind
                        ? (e.slideNext(l, !0, !0), n("autoplay"))
                        : e.params.autoplay.stopOnLastSlide ||
                          (e.slideTo(0, l, !0, !0), n("autoplay")),
                      e.params.cssMode &&
                        ((m = new Date().getTime()),
                        requestAnimationFrame(() => {
                          y();
                        })));
                  };
                return (
                  i > 0
                    ? (clearTimeout(a),
                      (a = setTimeout(() => {
                        c();
                      }, i)))
                    : requestAnimationFrame(() => {
                        c();
                      }),
                  i
                );
              },
              x = () => {
                (e.autoplay.running = !0), y(), n("autoplayStart");
              },
              w = () => {
                (e.autoplay.running = !1),
                  clearTimeout(a),
                  cancelAnimationFrame(o),
                  n("autoplayStop");
              },
              E = (t, i) => {
                if (e.destroyed || !e.autoplay.running) return;
                clearTimeout(a), t || (f = !0);
                const r = () => {
                  n("autoplayPause"),
                    e.params.autoplay.waitForTransition
                      ? e.wrapperEl.addEventListener("transitionend", v)
                      : _();
                };
                if (((e.autoplay.paused = !0), i))
                  return h && (s = e.params.autoplay.delay), (h = !1), void r();
                const o = s || e.params.autoplay.delay;
                (s = o - (new Date().getTime() - m)),
                  (e.isEnd && s < 0 && !e.params.loop) ||
                    (s < 0 && (s = 0), r());
              },
              _ = () => {
                (e.isEnd && s < 0 && !e.params.loop) ||
                  e.destroyed ||
                  !e.autoplay.running ||
                  ((m = new Date().getTime()),
                  f ? ((f = !1), y(s)) : y(),
                  (e.autoplay.paused = !1),
                  n("autoplayResume"));
              },
              S = () => {
                if (e.destroyed || !e.autoplay.running) return;
                const t = sr();
                "hidden" === t.visibilityState && ((f = !0), E(!0)),
                  "visible" === t.visibilityState && _();
              },
              A = (e) => {
                "mouse" === e.pointerType && ((f = !0), E(!0));
              },
              k = (t) => {
                "mouse" === t.pointerType && e.autoplay.paused && _();
              };
            i("init", () => {
              e.params.autoplay.enabled &&
                (e.params.autoplay.pauseOnMouseEnter &&
                  (e.el.addEventListener("pointerenter", A),
                  e.el.addEventListener("pointerleave", k)),
                sr().addEventListener("visibilitychange", S),
                (m = new Date().getTime()),
                x());
            }),
              i("destroy", () => {
                e.el.removeEventListener("pointerenter", A),
                  e.el.removeEventListener("pointerleave", k),
                  sr().removeEventListener("visibilitychange", S),
                  e.autoplay.running && w();
              }),
              i("beforeTransitionStart", (t, i, n) => {
                !e.destroyed &&
                  e.autoplay.running &&
                  (n || !e.params.autoplay.disableOnInteraction
                    ? E(!0, !0)
                    : w());
              }),
              i("sliderFirstMove", () => {
                !e.destroyed &&
                  e.autoplay.running &&
                  (e.params.autoplay.disableOnInteraction
                    ? w()
                    : ((c = !0),
                      (u = !1),
                      (f = !1),
                      (d = setTimeout(() => {
                        (f = !0), (u = !0), E(!0);
                      }, 200))));
              }),
              i("touchEnd", () => {
                if (!e.destroyed && e.autoplay.running && c) {
                  if (
                    (clearTimeout(d),
                    clearTimeout(a),
                    e.params.autoplay.disableOnInteraction)
                  )
                    return (u = !1), void (c = !1);
                  u && e.params.cssMode && _(), (u = !1), (c = !1);
                }
              }),
              i("slideChange", () => {
                !e.destroyed && e.autoplay.running && (h = !0);
              }),
              Object.assign(e.autoplay, {
                start: x,
                stop: w,
                pause: E,
                resume: _,
              });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            t({
              thumbs: {
                swiper: null,
                multipleActiveThumbs: !0,
                autoScrollOffset: 0,
                slideThumbActiveClass: "swiper-slide-thumb-active",
                thumbsContainerClass: "swiper-thumbs",
              },
            });
            let n = !1,
              r = !1;
            function a() {
              const t = e.thumbs.swiper;
              if (!t || t.destroyed) return;
              const i = t.clickedIndex,
                n = t.clickedSlide;
              if (
                n &&
                n.classList.contains(e.params.thumbs.slideThumbActiveClass)
              )
                return;
              if (null == i) return;
              let r;
              (r = t.params.loop
                ? parseInt(
                    t.clickedSlide.getAttribute("data-swiper-slide-index"),
                    10
                  )
                : i),
                e.params.loop ? e.slideToLoop(r) : e.slideTo(r);
            }
            function o() {
              const { thumbs: t } = e.params;
              if (n) return !1;
              n = !0;
              const i = e.constructor;
              if (t.swiper instanceof i)
                (e.thumbs.swiper = t.swiper),
                  Object.assign(e.thumbs.swiper.originalParams, {
                    watchSlidesProgress: !0,
                    slideToClickedSlide: !1,
                  }),
                  Object.assign(e.thumbs.swiper.params, {
                    watchSlidesProgress: !0,
                    slideToClickedSlide: !1,
                  }),
                  e.thumbs.swiper.update();
              else if (fr(t.swiper)) {
                const n = Object.assign({}, t.swiper);
                Object.assign(n, {
                  watchSlidesProgress: !0,
                  slideToClickedSlide: !1,
                }),
                  (e.thumbs.swiper = new i(n)),
                  (r = !0);
              }
              return (
                e.thumbs.swiper.el.classList.add(
                  e.params.thumbs.thumbsContainerClass
                ),
                e.thumbs.swiper.on("tap", a),
                !0
              );
            }
            function s(t) {
              const i = e.thumbs.swiper;
              if (!i || i.destroyed) return;
              const n =
                "auto" === i.params.slidesPerView
                  ? i.slidesPerViewDynamic()
                  : i.params.slidesPerView;
              let r = 1;
              const a = e.params.thumbs.slideThumbActiveClass;
              if (
                (e.params.slidesPerView > 1 &&
                  !e.params.centeredSlides &&
                  (r = e.params.slidesPerView),
                e.params.thumbs.multipleActiveThumbs || (r = 1),
                (r = Math.floor(r)),
                i.slides.forEach((e) => e.classList.remove(a)),
                i.params.loop || (i.params.virtual && i.params.virtual.enabled))
              )
                for (let t = 0; t < r; t += 1)
                  br(
                    i.slidesEl,
                    `[data-swiper-slide-index="${e.realIndex + t}"]`
                  ).forEach((e) => {
                    e.classList.add(a);
                  });
              else
                for (let t = 0; t < r; t += 1)
                  i.slides[e.realIndex + t] &&
                    i.slides[e.realIndex + t].classList.add(a);
              const o = e.params.thumbs.autoScrollOffset,
                s = o && !i.params.loop;
              if (e.realIndex !== i.realIndex || s) {
                const r = i.activeIndex;
                let a, l;
                if (i.params.loop) {
                  const t = i.slides.filter(
                    (t) =>
                      t.getAttribute("data-swiper-slide-index") ===
                      `${e.realIndex}`
                  )[0];
                  (a = i.slides.indexOf(t)),
                    (l = e.activeIndex > e.previousIndex ? "next" : "prev");
                } else
                  (a = e.realIndex),
                    (l = a > e.previousIndex ? "next" : "prev");
                s && (a += "next" === l ? o : -1 * o),
                  i.visibleSlidesIndexes &&
                    i.visibleSlidesIndexes.indexOf(a) < 0 &&
                    (i.params.centeredSlides
                      ? (a =
                          a > r
                            ? a - Math.floor(n / 2) + 1
                            : a + Math.floor(n / 2) - 1)
                      : a > r && i.params.slidesPerGroup,
                    i.slideTo(a, t ? 0 : void 0));
              }
            }
            (e.thumbs = { swiper: null }),
              i("beforeInit", () => {
                const { thumbs: t } = e.params;
                if (t && t.swiper)
                  if (
                    "string" == typeof t.swiper ||
                    t.swiper instanceof HTMLElement
                  ) {
                    const i = sr(),
                      n = () => {
                        const n =
                          "string" == typeof t.swiper
                            ? i.querySelector(t.swiper)
                            : t.swiper;
                        if (n && n.swiper) (t.swiper = n.swiper), o(), s(!0);
                        else if (n) {
                          const i = (r) => {
                            (t.swiper = r.detail[0]),
                              n.removeEventListener("init", i),
                              o(),
                              s(!0),
                              t.swiper.update(),
                              e.update();
                          };
                          n.addEventListener("init", i);
                        }
                        return n;
                      },
                      r = () => {
                        if (e.destroyed) return;
                        n() || requestAnimationFrame(r);
                      };
                    requestAnimationFrame(r);
                  } else o(), s(!0);
              }),
              i("slideChange update resize observerUpdate", () => {
                s();
              }),
              i("setTransition", (t, i) => {
                const n = e.thumbs.swiper;
                n && !n.destroyed && n.setTransition(i);
              }),
              i("beforeDestroy", () => {
                const t = e.thumbs.swiper;
                t && !t.destroyed && r && t.destroy();
              }),
              Object.assign(e.thumbs, { init: o, update: s });
          },
          function ({ swiper: e, extendParams: t, emit: i, once: n }) {
            t({
              freeMode: {
                enabled: !1,
                momentum: !0,
                momentumRatio: 1,
                momentumBounce: !0,
                momentumBounceRatio: 1,
                momentumVelocityRatio: 1,
                sticky: !1,
                minimumVelocity: 0.02,
              },
            }),
              Object.assign(e, {
                freeMode: {
                  onTouchStart: function () {
                    const t = e.getTranslate();
                    e.setTranslate(t),
                      e.setTransition(0),
                      (e.touchEventsData.velocities.length = 0),
                      e.freeMode.onTouchEnd({
                        currentPos: e.rtl ? e.translate : -e.translate,
                      });
                  },
                  onTouchMove: function () {
                    const { touchEventsData: t, touches: i } = e;
                    0 === t.velocities.length &&
                      t.velocities.push({
                        position: i[e.isHorizontal() ? "startX" : "startY"],
                        time: t.touchStartTime,
                      }),
                      t.velocities.push({
                        position: i[e.isHorizontal() ? "currentX" : "currentY"],
                        time: dr(),
                      });
                  },
                  onTouchEnd: function ({ currentPos: t }) {
                    const {
                        params: r,
                        wrapperEl: a,
                        rtlTranslate: o,
                        snapGrid: s,
                        touchEventsData: l,
                      } = e,
                      c = dr() - l.touchStartTime;
                    if (t < -e.minTranslate()) e.slideTo(e.activeIndex);
                    else if (t > -e.maxTranslate())
                      e.slides.length < s.length
                        ? e.slideTo(s.length - 1)
                        : e.slideTo(e.slides.length - 1);
                    else {
                      if (r.freeMode.momentum) {
                        if (l.velocities.length > 1) {
                          const t = l.velocities.pop(),
                            i = l.velocities.pop(),
                            n = t.position - i.position,
                            a = t.time - i.time;
                          (e.velocity = n / a),
                            (e.velocity /= 2),
                            Math.abs(e.velocity) < r.freeMode.minimumVelocity &&
                              (e.velocity = 0),
                            (a > 150 || dr() - t.time > 300) &&
                              (e.velocity = 0);
                        } else e.velocity = 0;
                        (e.velocity *= r.freeMode.momentumVelocityRatio),
                          (l.velocities.length = 0);
                        let t = 1e3 * r.freeMode.momentumRatio;
                        const c = e.velocity * t;
                        let u = e.translate + c;
                        o && (u = -u);
                        let d,
                          h = !1;
                        const f =
                          20 *
                          Math.abs(e.velocity) *
                          r.freeMode.momentumBounceRatio;
                        let p;
                        if (u < e.maxTranslate())
                          r.freeMode.momentumBounce
                            ? (u + e.maxTranslate() < -f &&
                                (u = e.maxTranslate() - f),
                              (d = e.maxTranslate()),
                              (h = !0),
                              (l.allowMomentumBounce = !0))
                            : (u = e.maxTranslate()),
                            r.loop && r.centeredSlides && (p = !0);
                        else if (u > e.minTranslate())
                          r.freeMode.momentumBounce
                            ? (u - e.minTranslate() > f &&
                                (u = e.minTranslate() + f),
                              (d = e.minTranslate()),
                              (h = !0),
                              (l.allowMomentumBounce = !0))
                            : (u = e.minTranslate()),
                            r.loop && r.centeredSlides && (p = !0);
                        else if (r.freeMode.sticky) {
                          let t;
                          for (let e = 0; e < s.length; e += 1)
                            if (s[e] > -u) {
                              t = e;
                              break;
                            }
                          (u =
                            Math.abs(s[t] - u) < Math.abs(s[t - 1] - u) ||
                            "next" === e.swipeDirection
                              ? s[t]
                              : s[t - 1]),
                            (u = -u);
                        }
                        if (
                          (p &&
                            n("transitionEnd", () => {
                              e.loopFix();
                            }),
                          0 !== e.velocity)
                        ) {
                          if (
                            ((t = o
                              ? Math.abs((-u - e.translate) / e.velocity)
                              : Math.abs((u - e.translate) / e.velocity)),
                            r.freeMode.sticky)
                          ) {
                            const i = Math.abs((o ? -u : u) - e.translate),
                              n = e.slidesSizesGrid[e.activeIndex];
                            t =
                              i < n
                                ? r.speed
                                : i < 2 * n
                                ? 1.5 * r.speed
                                : 2.5 * r.speed;
                          }
                        } else if (r.freeMode.sticky)
                          return void e.slideToClosest();
                        r.freeMode.momentumBounce && h
                          ? (e.updateProgress(d),
                            e.setTransition(t),
                            e.setTranslate(u),
                            e.transitionStart(!0, e.swipeDirection),
                            (e.animating = !0),
                            Sr(a, () => {
                              e &&
                                !e.destroyed &&
                                l.allowMomentumBounce &&
                                (i("momentumBounce"),
                                e.setTransition(r.speed),
                                setTimeout(() => {
                                  e.setTranslate(d),
                                    Sr(a, () => {
                                      e && !e.destroyed && e.transitionEnd();
                                    });
                                }, 0));
                            }))
                          : e.velocity
                          ? (i("_freeModeNoMomentumRelease"),
                            e.updateProgress(u),
                            e.setTransition(t),
                            e.setTranslate(u),
                            e.transitionStart(!0, e.swipeDirection),
                            e.animating ||
                              ((e.animating = !0),
                              Sr(a, () => {
                                e && !e.destroyed && e.transitionEnd();
                              })))
                          : e.updateProgress(u),
                          e.updateActiveIndex(),
                          e.updateSlidesClasses();
                      } else {
                        if (r.freeMode.sticky) return void e.slideToClosest();
                        r.freeMode && i("_freeModeNoMomentumRelease");
                      }
                      (!r.freeMode.momentum || c >= r.longSwipesMs) &&
                        (e.updateProgress(),
                        e.updateActiveIndex(),
                        e.updateSlidesClasses());
                    }
                  },
                },
              });
          },
          function ({ swiper: e, extendParams: t }) {
            let i, n, r;
            t({ grid: { rows: 1, fill: "column" } }),
              (e.grid = {
                initSlides: (t) => {
                  const { slidesPerView: a } = e.params,
                    { rows: o, fill: s } = e.params.grid;
                  (n = i / o),
                    (r = Math.floor(t / o)),
                    (i =
                      Math.floor(t / o) === t / o ? t : Math.ceil(t / o) * o),
                    "auto" !== a && "row" === s && (i = Math.max(i, a * o));
                },
                updateSlide: (t, a, o, s) => {
                  const { slidesPerGroup: l, spaceBetween: c } = e.params,
                    { rows: u, fill: d } = e.params.grid;
                  let h, f, p;
                  if ("row" === d && l > 1) {
                    const e = Math.floor(t / (l * u)),
                      n = t - u * l * e,
                      r =
                        0 === e
                          ? l
                          : Math.min(Math.ceil((o - e * u * l) / u), l);
                    (p = Math.floor(n / r)),
                      (f = n - p * r + e * l),
                      (h = f + (p * i) / u),
                      (a.style.order = h);
                  } else
                    "column" === d
                      ? ((f = Math.floor(t / u)),
                        (p = t - f * u),
                        (f > r || (f === r && p === u - 1)) &&
                          ((p += 1), p >= u && ((p = 0), (f += 1))))
                      : ((p = Math.floor(t / n)), (f = t - p * n));
                  a.style[s("margin-top")] = 0 !== p ? c && `${c}px` : "";
                },
                updateWrapperSize: (t, n, r) => {
                  const {
                      spaceBetween: a,
                      centeredSlides: o,
                      roundLengths: s,
                    } = e.params,
                    { rows: l } = e.params.grid;
                  if (
                    ((e.virtualSize = (t + a) * i),
                    (e.virtualSize = Math.ceil(e.virtualSize / l) - a),
                    (e.wrapperEl.style[r("width")] = `${e.virtualSize + a}px`),
                    o)
                  ) {
                    const t = [];
                    for (let i = 0; i < n.length; i += 1) {
                      let r = n[i];
                      s && (r = Math.floor(r)),
                        n[i] < e.virtualSize + n[0] && t.push(r);
                    }
                    n.splice(0, n.length), n.push(...t);
                  }
                },
              });
          },
          function ({ swiper: e }) {
            Object.assign(e, {
              appendSlide: la.bind(e),
              prependSlide: ca.bind(e),
              addSlide: ua.bind(e),
              removeSlide: da.bind(e),
              removeAllSlides: ha.bind(e),
            });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            t({ fadeEffect: { crossFade: !1 } }),
              fa({
                effect: "fade",
                swiper: e,
                on: i,
                setTranslate: () => {
                  const { slides: t } = e;
                  e.params.fadeEffect;
                  for (let i = 0; i < t.length; i += 1) {
                    const t = e.slides[i];
                    let n = -t.swiperSlideOffset;
                    e.params.virtualTranslate || (n -= e.translate);
                    let r = 0;
                    e.isHorizontal() || ((r = n), (n = 0));
                    const a = e.params.fadeEffect.crossFade
                        ? Math.max(1 - Math.abs(t.progress), 0)
                        : 1 + Math.min(Math.max(t.progress, -1), 0),
                      o = pa(0, t);
                    (o.style.opacity = a),
                      (o.style.transform = `translate3d(${n}px, ${r}px, 0px)`);
                  }
                },
                setTransition: (t) => {
                  const i = e.slides.map((e) => vr(e));
                  i.forEach((e) => {
                    e.style.transitionDuration = `${t}ms`;
                  }),
                    ga({
                      swiper: e,
                      duration: t,
                      transformElements: i,
                      allSlides: !0,
                    });
                },
                overwriteParams: () => ({
                  slidesPerView: 1,
                  slidesPerGroup: 1,
                  watchSlidesProgress: !0,
                  spaceBetween: 0,
                  virtualTranslate: !e.params.cssMode,
                }),
              });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            t({
              cubeEffect: {
                slideShadows: !0,
                shadow: !0,
                shadowOffset: 20,
                shadowScale: 0.94,
              },
            });
            const n = (e, t, i) => {
              let n = i
                  ? e.querySelector(".swiper-slide-shadow-left")
                  : e.querySelector(".swiper-slide-shadow-top"),
                r = i
                  ? e.querySelector(".swiper-slide-shadow-right")
                  : e.querySelector(".swiper-slide-shadow-bottom");
              n ||
                ((n = yr("div", "swiper-slide-shadow-" + (i ? "left" : "top"))),
                e.append(n)),
                r ||
                  ((r = yr(
                    "div",
                    "swiper-slide-shadow-" + (i ? "right" : "bottom")
                  )),
                  e.append(r)),
                n && (n.style.opacity = Math.max(-t, 0)),
                r && (r.style.opacity = Math.max(t, 0));
            };
            fa({
              effect: "cube",
              swiper: e,
              on: i,
              setTranslate: () => {
                const {
                    el: t,
                    wrapperEl: i,
                    slides: r,
                    width: a,
                    height: o,
                    rtlTranslate: s,
                    size: l,
                    browser: c,
                  } = e,
                  u = e.params.cubeEffect,
                  d = e.isHorizontal(),
                  h = e.virtual && e.params.virtual.enabled;
                let f,
                  p = 0;
                u.shadow &&
                  (d
                    ? ((f = e.slidesEl.querySelector(".swiper-cube-shadow")),
                      f ||
                        ((f = yr("div", "swiper-cube-shadow")),
                        e.slidesEl.append(f)),
                      (f.style.height = `${a}px`))
                    : ((f = t.querySelector(".swiper-cube-shadow")),
                      f ||
                        ((f = yr("div", "swiper-cube-shadow")), t.append(f))));
                for (let e = 0; e < r.length; e += 1) {
                  const t = r[e];
                  let i = e;
                  h &&
                    (i = parseInt(
                      t.getAttribute("data-swiper-slide-index"),
                      10
                    ));
                  let a = 90 * i,
                    o = Math.floor(a / 360);
                  s && ((a = -a), (o = Math.floor(-a / 360)));
                  const c = Math.max(Math.min(t.progress, 1), -1);
                  let f = 0,
                    g = 0,
                    m = 0;
                  i % 4 == 0
                    ? ((f = 4 * -o * l), (m = 0))
                    : (i - 1) % 4 == 0
                    ? ((f = 0), (m = 4 * -o * l))
                    : (i - 2) % 4 == 0
                    ? ((f = l + 4 * o * l), (m = l))
                    : (i - 3) % 4 == 0 && ((f = -l), (m = 3 * l + 4 * l * o)),
                    s && (f = -f),
                    d || ((g = f), (f = 0));
                  const v = `rotateX(${d ? 0 : -a}deg) rotateY(${
                    d ? a : 0
                  }deg) translate3d(${f}px, ${g}px, ${m}px)`;
                  c <= 1 &&
                    c > -1 &&
                    ((p = 90 * i + 90 * c), s && (p = 90 * -i - 90 * c)),
                    (t.style.transform = v),
                    u.slideShadows && n(t, c, d);
                }
                if (
                  ((i.style.transformOrigin = `50% 50% -${l / 2}px`),
                  (i.style["-webkit-transform-origin"] = `50% 50% -${l / 2}px`),
                  u.shadow)
                )
                  if (d)
                    f.style.transform = `translate3d(0px, ${
                      a / 2 + u.shadowOffset
                    }px, ${-a / 2}px) rotateX(90deg) rotateZ(0deg) scale(${
                      u.shadowScale
                    })`;
                  else {
                    const e = Math.abs(p) - 90 * Math.floor(Math.abs(p) / 90),
                      t =
                        1.5 -
                        (Math.sin((2 * e * Math.PI) / 360) / 2 +
                          Math.cos((2 * e * Math.PI) / 360) / 2),
                      i = u.shadowScale,
                      n = u.shadowScale / t,
                      r = u.shadowOffset;
                    f.style.transform = `scale3d(${i}, 1, ${n}) translate3d(0px, ${
                      o / 2 + r
                    }px, ${-o / 2 / n}px) rotateX(-90deg)`;
                  }
                const g =
                  (c.isSafari || c.isWebView) && c.needPerspectiveFix
                    ? -l / 2
                    : 0;
                (i.style.transform = `translate3d(0px,0,${g}px) rotateX(${
                  e.isHorizontal() ? 0 : p
                }deg) rotateY(${e.isHorizontal() ? -p : 0}deg)`),
                  i.style.setProperty("--swiper-cube-translate-z", `${g}px`);
              },
              setTransition: (t) => {
                const { el: i, slides: n } = e;
                if (
                  (n.forEach((e) => {
                    (e.style.transitionDuration = `${t}ms`),
                      e
                        .querySelectorAll(
                          ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left"
                        )
                        .forEach((e) => {
                          e.style.transitionDuration = `${t}ms`;
                        });
                  }),
                  e.params.cubeEffect.shadow && !e.isHorizontal())
                ) {
                  const e = i.querySelector(".swiper-cube-shadow");
                  e && (e.style.transitionDuration = `${t}ms`);
                }
              },
              recreateShadows: () => {
                const t = e.isHorizontal();
                e.slides.forEach((e) => {
                  const i = Math.max(Math.min(e.progress, 1), -1);
                  n(e, i, t);
                });
              },
              getEffectParams: () => e.params.cubeEffect,
              perspective: () => !0,
              overwriteParams: () => ({
                slidesPerView: 1,
                slidesPerGroup: 1,
                watchSlidesProgress: !0,
                resistanceRatio: 0,
                spaceBetween: 0,
                centeredSlides: !1,
                virtualTranslate: !0,
              }),
            });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            t({ flipEffect: { slideShadows: !0, limitRotation: !0 } });
            const n = (t, i, n) => {
              let r = e.isHorizontal()
                  ? t.querySelector(".swiper-slide-shadow-left")
                  : t.querySelector(".swiper-slide-shadow-top"),
                a = e.isHorizontal()
                  ? t.querySelector(".swiper-slide-shadow-right")
                  : t.querySelector(".swiper-slide-shadow-bottom");
              r || (r = ma(0, t, e.isHorizontal() ? "left" : "top")),
                a || (a = ma(0, t, e.isHorizontal() ? "right" : "bottom")),
                r && (r.style.opacity = Math.max(-i, 0)),
                a && (a.style.opacity = Math.max(i, 0));
            };
            fa({
              effect: "flip",
              swiper: e,
              on: i,
              setTranslate: () => {
                const { slides: t, rtlTranslate: i } = e,
                  r = e.params.flipEffect;
                for (let a = 0; a < t.length; a += 1) {
                  const o = t[a];
                  let s = o.progress;
                  e.params.flipEffect.limitRotation &&
                    (s = Math.max(Math.min(o.progress, 1), -1));
                  const l = o.swiperSlideOffset;
                  let c = -180 * s,
                    u = 0,
                    d = e.params.cssMode ? -l - e.translate : -l,
                    h = 0;
                  e.isHorizontal()
                    ? i && (c = -c)
                    : ((h = d), (d = 0), (u = -c), (c = 0)),
                    (o.style.zIndex = -Math.abs(Math.round(s)) + t.length),
                    r.slideShadows && n(o, s);
                  const f = `translate3d(${d}px, ${h}px, 0px) rotateX(${u}deg) rotateY(${c}deg)`;
                  pa(0, o).style.transform = f;
                }
              },
              setTransition: (t) => {
                const i = e.slides.map((e) => vr(e));
                i.forEach((e) => {
                  (e.style.transitionDuration = `${t}ms`),
                    e
                      .querySelectorAll(
                        ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left"
                      )
                      .forEach((e) => {
                        e.style.transitionDuration = `${t}ms`;
                      });
                }),
                  ga({ swiper: e, duration: t, transformElements: i });
              },
              recreateShadows: () => {
                e.params.flipEffect;
                e.slides.forEach((t) => {
                  let i = t.progress;
                  e.params.flipEffect.limitRotation &&
                    (i = Math.max(Math.min(t.progress, 1), -1)),
                    n(t, i);
                });
              },
              getEffectParams: () => e.params.flipEffect,
              perspective: () => !0,
              overwriteParams: () => ({
                slidesPerView: 1,
                slidesPerGroup: 1,
                watchSlidesProgress: !0,
                spaceBetween: 0,
                virtualTranslate: !e.params.cssMode,
              }),
            });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            t({
              coverflowEffect: {
                rotate: 50,
                stretch: 0,
                depth: 100,
                scale: 1,
                modifier: 1,
                slideShadows: !0,
              },
            }),
              fa({
                effect: "coverflow",
                swiper: e,
                on: i,
                setTranslate: () => {
                  const {
                      width: t,
                      height: i,
                      slides: n,
                      slidesSizesGrid: r,
                    } = e,
                    a = e.params.coverflowEffect,
                    o = e.isHorizontal(),
                    s = e.translate,
                    l = o ? t / 2 - s : i / 2 - s,
                    c = o ? a.rotate : -a.rotate,
                    u = a.depth;
                  for (let e = 0, t = n.length; e < t; e += 1) {
                    const t = n[e],
                      i = r[e],
                      s = (l - t.swiperSlideOffset - i / 2) / i,
                      d =
                        "function" == typeof a.modifier
                          ? a.modifier(s)
                          : s * a.modifier;
                    let h = o ? c * d : 0,
                      f = o ? 0 : c * d,
                      p = -u * Math.abs(d),
                      g = a.stretch;
                    "string" == typeof g &&
                      -1 !== g.indexOf("%") &&
                      (g = (parseFloat(a.stretch) / 100) * i);
                    let m = o ? 0 : g * d,
                      v = o ? g * d : 0,
                      b = 1 - (1 - a.scale) * Math.abs(d);
                    Math.abs(v) < 0.001 && (v = 0),
                      Math.abs(m) < 0.001 && (m = 0),
                      Math.abs(p) < 0.001 && (p = 0),
                      Math.abs(h) < 0.001 && (h = 0),
                      Math.abs(f) < 0.001 && (f = 0),
                      Math.abs(b) < 0.001 && (b = 0);
                    const y = `translate3d(${v}px,${m}px,${p}px)  rotateX(${f}deg) rotateY(${h}deg) scale(${b})`;
                    if (
                      ((pa(0, t).style.transform = y),
                      (t.style.zIndex = 1 - Math.abs(Math.round(d))),
                      a.slideShadows)
                    ) {
                      let e = o
                          ? t.querySelector(".swiper-slide-shadow-left")
                          : t.querySelector(".swiper-slide-shadow-top"),
                        i = o
                          ? t.querySelector(".swiper-slide-shadow-right")
                          : t.querySelector(".swiper-slide-shadow-bottom");
                      e || (e = ma(0, t, o ? "left" : "top")),
                        i || (i = ma(0, t, o ? "right" : "bottom")),
                        e && (e.style.opacity = d > 0 ? d : 0),
                        i && (i.style.opacity = -d > 0 ? -d : 0);
                    }
                  }
                },
                setTransition: (t) => {
                  e.slides
                    .map((e) => vr(e))
                    .forEach((e) => {
                      (e.style.transitionDuration = `${t}ms`),
                        e
                          .querySelectorAll(
                            ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left"
                          )
                          .forEach((e) => {
                            e.style.transitionDuration = `${t}ms`;
                          });
                    });
                },
                perspective: () => !0,
                overwriteParams: () => ({ watchSlidesProgress: !0 }),
              });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            t({
              creativeEffect: {
                limitProgress: 1,
                shadowPerProgress: !1,
                progressMultiplier: 1,
                perspective: !0,
                prev: {
                  translate: [0, 0, 0],
                  rotate: [0, 0, 0],
                  opacity: 1,
                  scale: 1,
                },
                next: {
                  translate: [0, 0, 0],
                  rotate: [0, 0, 0],
                  opacity: 1,
                  scale: 1,
                },
              },
            });
            const n = (e) => ("string" == typeof e ? e : `${e}px`);
            fa({
              effect: "creative",
              swiper: e,
              on: i,
              setTranslate: () => {
                const { slides: t, wrapperEl: i, slidesSizesGrid: r } = e,
                  a = e.params.creativeEffect,
                  { progressMultiplier: o } = a,
                  s = e.params.centeredSlides;
                if (s) {
                  const t = r[0] / 2 - e.params.slidesOffsetBefore || 0;
                  i.style.transform = `translateX(calc(50% - ${t}px))`;
                }
                for (let i = 0; i < t.length; i += 1) {
                  const r = t[i],
                    l = r.progress,
                    c = Math.min(
                      Math.max(r.progress, -a.limitProgress),
                      a.limitProgress
                    );
                  let u = c;
                  s ||
                    (u = Math.min(
                      Math.max(r.originalProgress, -a.limitProgress),
                      a.limitProgress
                    ));
                  const d = r.swiperSlideOffset,
                    h = [e.params.cssMode ? -d - e.translate : -d, 0, 0],
                    f = [0, 0, 0];
                  let p = !1;
                  e.isHorizontal() || ((h[1] = h[0]), (h[0] = 0));
                  let g = {
                    translate: [0, 0, 0],
                    rotate: [0, 0, 0],
                    scale: 1,
                    opacity: 1,
                  };
                  c < 0
                    ? ((g = a.next), (p = !0))
                    : c > 0 && ((g = a.prev), (p = !0)),
                    h.forEach((e, t) => {
                      h[t] = `calc(${e}px + (${n(g.translate[t])} * ${Math.abs(
                        c * o
                      )}))`;
                    }),
                    f.forEach((e, t) => {
                      f[t] = g.rotate[t] * Math.abs(c * o);
                    }),
                    (r.style.zIndex = -Math.abs(Math.round(l)) + t.length);
                  const m = h.join(", "),
                    v = `rotateX(${f[0]}deg) rotateY(${f[1]}deg) rotateZ(${f[2]}deg)`,
                    b =
                      u < 0
                        ? `scale(${1 + (1 - g.scale) * u * o})`
                        : `scale(${1 - (1 - g.scale) * u * o})`,
                    y =
                      u < 0
                        ? 1 + (1 - g.opacity) * u * o
                        : 1 - (1 - g.opacity) * u * o,
                    x = `translate3d(${m}) ${v} ${b}`;
                  if ((p && g.shadow) || !p) {
                    let e = r.querySelector(".swiper-slide-shadow");
                    if ((!e && g.shadow && (e = ma(0, r)), e)) {
                      const t = a.shadowPerProgress
                        ? c * (1 / a.limitProgress)
                        : c;
                      e.style.opacity = Math.min(Math.max(Math.abs(t), 0), 1);
                    }
                  }
                  const w = pa(0, r);
                  (w.style.transform = x),
                    (w.style.opacity = y),
                    g.origin && (w.style.transformOrigin = y);
                }
              },
              setTransition: (t) => {
                const i = e.slides.map((e) => vr(e));
                i.forEach((e) => {
                  (e.style.transitionDuration = `${t}ms`),
                    e.querySelectorAll(".swiper-slide-shadow").forEach((e) => {
                      e.style.transitionDuration = `${t}ms`;
                    });
                }),
                  ga({
                    swiper: e,
                    duration: t,
                    transformElements: i,
                    allSlides: !0,
                  });
              },
              perspective: () => e.params.creativeEffect.perspective,
              overwriteParams: () => ({
                watchSlidesProgress: !0,
                virtualTranslate: !e.params.cssMode,
              }),
            });
          },
          function ({ swiper: e, extendParams: t, on: i }) {
            t({
              cardsEffect: {
                slideShadows: !0,
                rotate: !0,
                perSlideRotate: 2,
                perSlideOffset: 8,
              },
            }),
              fa({
                effect: "cards",
                swiper: e,
                on: i,
                setTranslate: () => {
                  const { slides: t, activeIndex: i } = e,
                    n = e.params.cardsEffect,
                    { startTranslate: r, isTouched: a } = e.touchEventsData,
                    o = e.translate;
                  for (let s = 0; s < t.length; s += 1) {
                    const l = t[s],
                      c = l.progress,
                      u = Math.min(Math.max(c, -4), 4);
                    let d = l.swiperSlideOffset;
                    e.params.centeredSlides &&
                      !e.params.cssMode &&
                      (e.wrapperEl.style.transform = `translateX(${e.minTranslate()}px)`),
                      e.params.centeredSlides &&
                        e.params.cssMode &&
                        (d -= t[0].swiperSlideOffset);
                    let h = e.params.cssMode ? -d - e.translate : -d,
                      f = 0;
                    const p = -100 * Math.abs(u);
                    let g = 1,
                      m = -n.perSlideRotate * u,
                      v = n.perSlideOffset - 0.75 * Math.abs(u);
                    const b =
                        e.virtual && e.params.virtual.enabled
                          ? e.virtual.from + s
                          : s,
                      y =
                        (b === i || b === i - 1) &&
                        u > 0 &&
                        u < 1 &&
                        (a || e.params.cssMode) &&
                        o < r,
                      x =
                        (b === i || b === i + 1) &&
                        u < 0 &&
                        u > -1 &&
                        (a || e.params.cssMode) &&
                        o > r;
                    if (y || x) {
                      const e =
                        (1 - Math.abs((Math.abs(u) - 0.5) / 0.5)) ** 0.5;
                      (m += -28 * u * e),
                        (g += -0.5 * e),
                        (v += 96 * e),
                        (f = -25 * e * Math.abs(u) + "%");
                    }
                    if (
                      ((h =
                        u < 0
                          ? `calc(${h}px + (${v * Math.abs(u)}%))`
                          : u > 0
                          ? `calc(${h}px + (-${v * Math.abs(u)}%))`
                          : `${h}px`),
                      !e.isHorizontal())
                    ) {
                      const e = f;
                      (f = h), (h = e);
                    }
                    const w =
                        u < 0 ? "" + (1 + (1 - g) * u) : "" + (1 - (1 - g) * u),
                      E = `\n        translate3d(${h}, ${f}, ${p}px)\n        rotateZ(${
                        n.rotate ? m : 0
                      }deg)\n        scale(${w})\n      `;
                    if (n.slideShadows) {
                      let e = l.querySelector(".swiper-slide-shadow");
                      e || (e = ma(0, l)),
                        e &&
                          (e.style.opacity = Math.min(
                            Math.max((Math.abs(u) - 0.5) / 0.5, 0),
                            1
                          ));
                    }
                    l.style.zIndex = -Math.abs(Math.round(c)) + t.length;
                    pa(0, l).style.transform = E;
                  }
                },
                setTransition: (t) => {
                  const i = e.slides.map((e) => vr(e));
                  i.forEach((e) => {
                    (e.style.transitionDuration = `${t}ms`),
                      e
                        .querySelectorAll(".swiper-slide-shadow")
                        .forEach((e) => {
                          e.style.transitionDuration = `${t}ms`;
                        });
                  }),
                    ga({ swiper: e, duration: t, transformElements: i });
                },
                perspective: () => !0,
                overwriteParams: () => ({
                  watchSlidesProgress: !0,
                  virtualTranslate: !e.params.cssMode,
                }),
              });
          },
        ];
        function ba(e, t) {
          var i = Object.keys(e);
          if (Object.getOwnPropertySymbols) {
            var n = Object.getOwnPropertySymbols(e);
            t &&
              (n = n.filter(function (t) {
                return Object.getOwnPropertyDescriptor(e, t).enumerable;
              })),
              i.push.apply(i, n);
          }
          return i;
        }
        function ya(e) {
          for (var t = 1; t < arguments.length; t++) {
            var i = null != arguments[t] ? arguments[t] : {};
            t % 2
              ? ba(Object(i), !0).forEach(function (t) {
                  wa(e, t, i[t]);
                })
              : Object.getOwnPropertyDescriptors
              ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i))
              : ba(Object(i)).forEach(function (t) {
                  Object.defineProperty(
                    e,
                    t,
                    Object.getOwnPropertyDescriptor(i, t)
                  );
                });
          }
          return e;
        }
        function xa(e) {
          return (
            (xa =
              "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
                ? function (e) {
                    return typeof e;
                  }
                : function (e) {
                    return e &&
                      "function" == typeof Symbol &&
                      e.constructor === Symbol &&
                      e !== Symbol.prototype
                      ? "symbol"
                      : typeof e;
                  }),
            xa(e)
          );
        }
        function wa(e, t, i) {
          return (
            t in e
              ? Object.defineProperty(e, t, {
                  value: i,
                  enumerable: !0,
                  configurable: !0,
                  writable: !0,
                })
              : (e[t] = i),
            e
          );
        }
        function Ea() {
          return (
            (Ea =
              Object.assign ||
              function (e) {
                for (var t = 1; t < arguments.length; t++) {
                  var i = arguments[t];
                  for (var n in i)
                    Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
                }
                return e;
              }),
            Ea.apply(this, arguments)
          );
        }
        function _a(e, t) {
          if (null == e) return {};
          var i,
            n,
            r = (function (e, t) {
              if (null == e) return {};
              var i,
                n,
                r = {},
                a = Object.keys(e);
              for (n = 0; n < a.length; n++)
                (i = a[n]), t.indexOf(i) >= 0 || (r[i] = e[i]);
              return r;
            })(e, t);
          if (Object.getOwnPropertySymbols) {
            var a = Object.getOwnPropertySymbols(e);
            for (n = 0; n < a.length; n++)
              (i = a[n]),
                t.indexOf(i) >= 0 ||
                  (Object.prototype.propertyIsEnumerable.call(e, i) &&
                    (r[i] = e[i]));
          }
          return r;
        }
        aa.use(va);
        function Sa(e) {
          if ("undefined" != typeof window && window.navigator)
            return !!navigator.userAgent.match(e);
        }
        var Aa = Sa(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
          ka = Sa(/Edge/i),
          Ta = Sa(/firefox/i),
          Ca = Sa(/safari/i) && !Sa(/chrome/i) && !Sa(/android/i),
          Oa = Sa(/iP(ad|od|hone)/i),
          Ia = Sa(/chrome/i) && Sa(/android/i),
          Ma = { capture: !1, passive: !1 };
        function La(e, t, i) {
          e.addEventListener(t, i, !Aa && Ma);
        }
        function Pa(e, t, i) {
          e.removeEventListener(t, i, !Aa && Ma);
        }
        function Da(e, t) {
          if (t) {
            if ((">" === t[0] && (t = t.substring(1)), e))
              try {
                if (e.matches) return e.matches(t);
                if (e.msMatchesSelector) return e.msMatchesSelector(t);
                if (e.webkitMatchesSelector) return e.webkitMatchesSelector(t);
              } catch (e) {
                return !1;
              }
            return !1;
          }
        }
        function Ra(e) {
          return e.host && e !== document && e.host.nodeType
            ? e.host
            : e.parentNode;
        }
        function Na(e, t, i, n) {
          if (e) {
            i = i || document;
            do {
              if (
                (null != t &&
                  (">" === t[0] ? e.parentNode === i && Da(e, t) : Da(e, t))) ||
                (n && e === i)
              )
                return e;
              if (e === i) break;
            } while ((e = Ra(e)));
          }
          return null;
        }
        var Fa,
          Ba = /\s+/g;
        function za(e, t, i) {
          if (e && t)
            if (e.classList) e.classList[i ? "add" : "remove"](t);
            else {
              var n = (" " + e.className + " ")
                .replace(Ba, " ")
                .replace(" " + t + " ", " ");
              e.className = (n + (i ? " " + t : "")).replace(Ba, " ");
            }
        }
        function ja(e, t, i) {
          var n = e && e.style;
          if (n) {
            if (void 0 === i)
              return (
                document.defaultView && document.defaultView.getComputedStyle
                  ? (i = document.defaultView.getComputedStyle(e, ""))
                  : e.currentStyle && (i = e.currentStyle),
                void 0 === t ? i : i[t]
              );
            t in n || -1 !== t.indexOf("webkit") || (t = "-webkit-" + t),
              (n[t] = i + ("string" == typeof i ? "" : "px"));
          }
        }
        function Ha(e, t) {
          var i = "";
          if ("string" == typeof e) i = e;
          else
            do {
              var n = ja(e, "transform");
              n && "none" !== n && (i = n + " " + i);
            } while (!t && (e = e.parentNode));
          var r =
            window.DOMMatrix ||
            window.WebKitCSSMatrix ||
            window.CSSMatrix ||
            window.MSCSSMatrix;
          return r && new r(i);
        }
        function Ya(e, t, i) {
          if (e) {
            var n = e.getElementsByTagName(t),
              r = 0,
              a = n.length;
            if (i) for (; r < a; r++) i(n[r], r);
            return n;
          }
          return [];
        }
        function Xa() {
          var e = document.scrollingElement;
          return e || document.documentElement;
        }
        function Wa(e, t, i, n, r) {
          if (e.getBoundingClientRect || e === window) {
            var a, o, s, l, c, u, d;
            if (
              (e !== window && e.parentNode && e !== Xa()
                ? ((o = (a = e.getBoundingClientRect()).top),
                  (s = a.left),
                  (l = a.bottom),
                  (c = a.right),
                  (u = a.height),
                  (d = a.width))
                : ((o = 0),
                  (s = 0),
                  (l = window.innerHeight),
                  (c = window.innerWidth),
                  (u = window.innerHeight),
                  (d = window.innerWidth)),
              (t || i) && e !== window && ((r = r || e.parentNode), !Aa))
            )
              do {
                if (
                  r &&
                  r.getBoundingClientRect &&
                  ("none" !== ja(r, "transform") ||
                    (i && "static" !== ja(r, "position")))
                ) {
                  var h = r.getBoundingClientRect();
                  (o -= h.top + parseInt(ja(r, "border-top-width"))),
                    (s -= h.left + parseInt(ja(r, "border-left-width"))),
                    (l = o + a.height),
                    (c = s + a.width);
                  break;
                }
              } while ((r = r.parentNode));
            if (n && e !== window) {
              var f = Ha(r || e),
                p = f && f.a,
                g = f && f.d;
              f && ((l = (o /= g) + (u /= g)), (c = (s /= p) + (d /= p)));
            }
            return {
              top: o,
              left: s,
              bottom: l,
              right: c,
              width: d,
              height: u,
            };
          }
        }
        function Ga(e, t, i) {
          for (var n = Za(e, !0), r = Wa(e)[t]; n; ) {
            var a = Wa(n)[i];
            if (!("top" === i || "left" === i ? r >= a : r <= a)) return n;
            if (n === Xa()) break;
            n = Za(n, !1);
          }
          return !1;
        }
        function qa(e, t, i, n) {
          for (var r = 0, a = 0, o = e.children; a < o.length; ) {
            if (
              "none" !== o[a].style.display &&
              o[a] !== ts.ghost &&
              (n || o[a] !== ts.dragged) &&
              Na(o[a], i.draggable, e, !1)
            ) {
              if (r === t) return o[a];
              r++;
            }
            a++;
          }
          return null;
        }
        function Va(e, t) {
          for (
            var i = e.lastElementChild;
            i &&
            (i === ts.ghost || "none" === ja(i, "display") || (t && !Da(i, t)));

          )
            i = i.previousElementSibling;
          return i || null;
        }
        function Ua(e, t) {
          var i = 0;
          if (!e || !e.parentNode) return -1;
          for (; (e = e.previousElementSibling); )
            "TEMPLATE" === e.nodeName.toUpperCase() ||
              e === ts.clone ||
              (t && !Da(e, t)) ||
              i++;
          return i;
        }
        function $a(e) {
          var t = 0,
            i = 0,
            n = Xa();
          if (e)
            do {
              var r = Ha(e),
                a = r.a,
                o = r.d;
              (t += e.scrollLeft * a), (i += e.scrollTop * o);
            } while (e !== n && (e = e.parentNode));
          return [t, i];
        }
        function Za(e, t) {
          if (!e || !e.getBoundingClientRect) return Xa();
          var i = e,
            n = !1;
          do {
            if (
              i.clientWidth < i.scrollWidth ||
              i.clientHeight < i.scrollHeight
            ) {
              var r = ja(i);
              if (
                (i.clientWidth < i.scrollWidth &&
                  ("auto" == r.overflowX || "scroll" == r.overflowX)) ||
                (i.clientHeight < i.scrollHeight &&
                  ("auto" == r.overflowY || "scroll" == r.overflowY))
              ) {
                if (!i.getBoundingClientRect || i === document.body)
                  return Xa();
                if (n || t) return i;
                n = !0;
              }
            }
          } while ((i = i.parentNode));
          return Xa();
        }
        function Ka(e, t) {
          return (
            Math.round(e.top) === Math.round(t.top) &&
            Math.round(e.left) === Math.round(t.left) &&
            Math.round(e.height) === Math.round(t.height) &&
            Math.round(e.width) === Math.round(t.width)
          );
        }
        function Ja(e, t) {
          return function () {
            if (!Fa) {
              var i = arguments;
              1 === i.length ? e.call(this, i[0]) : e.apply(this, i),
                (Fa = setTimeout(function () {
                  Fa = void 0;
                }, t));
            }
          };
        }
        function Qa(e, t, i) {
          (e.scrollLeft += t), (e.scrollTop += i);
        }
        function eo(e) {
          var t = window.Polymer,
            i = window.jQuery || window.Zepto;
          return t && t.dom
            ? t.dom(e).cloneNode(!0)
            : i
            ? i(e).clone(!0)[0]
            : e.cloneNode(!0);
        }
        var to = "Sortable" + new Date().getTime();
        function io() {
          var e,
            t = [];
          return {
            captureAnimationState: function () {
              ((t = []), this.options.animation) &&
                [].slice.call(this.el.children).forEach(function (e) {
                  if ("none" !== ja(e, "display") && e !== ts.ghost) {
                    t.push({ target: e, rect: Wa(e) });
                    var i = ya({}, t[t.length - 1].rect);
                    if (e.thisAnimationDuration) {
                      var n = Ha(e, !0);
                      n && ((i.top -= n.f), (i.left -= n.e));
                    }
                    e.fromRect = i;
                  }
                });
            },
            addAnimationState: function (e) {
              t.push(e);
            },
            removeAnimationState: function (e) {
              t.splice(
                (function (e, t) {
                  for (var i in e)
                    if (e.hasOwnProperty(i))
                      for (var n in t)
                        if (t.hasOwnProperty(n) && t[n] === e[i][n])
                          return Number(i);
                  return -1;
                })(t, { target: e }),
                1
              );
            },
            animateAll: function (i) {
              var n = this;
              if (!this.options.animation)
                return clearTimeout(e), void ("function" == typeof i && i());
              var r = !1,
                a = 0;
              t.forEach(function (e) {
                var t = 0,
                  i = e.target,
                  o = i.fromRect,
                  s = Wa(i),
                  l = i.prevFromRect,
                  c = i.prevToRect,
                  u = e.rect,
                  d = Ha(i, !0);
                d && ((s.top -= d.f), (s.left -= d.e)),
                  (i.toRect = s),
                  i.thisAnimationDuration &&
                    Ka(l, s) &&
                    !Ka(o, s) &&
                    (u.top - s.top) / (u.left - s.left) ==
                      (o.top - s.top) / (o.left - s.left) &&
                    (t = (function (e, t, i, n) {
                      return (
                        (Math.sqrt(
                          Math.pow(t.top - e.top, 2) +
                            Math.pow(t.left - e.left, 2)
                        ) /
                          Math.sqrt(
                            Math.pow(t.top - i.top, 2) +
                              Math.pow(t.left - i.left, 2)
                          )) *
                        n.animation
                      );
                    })(u, l, c, n.options)),
                  Ka(s, o) ||
                    ((i.prevFromRect = o),
                    (i.prevToRect = s),
                    t || (t = n.options.animation),
                    n.animate(i, u, s, t)),
                  t &&
                    ((r = !0),
                    (a = Math.max(a, t)),
                    clearTimeout(i.animationResetTimer),
                    (i.animationResetTimer = setTimeout(function () {
                      (i.animationTime = 0),
                        (i.prevFromRect = null),
                        (i.fromRect = null),
                        (i.prevToRect = null),
                        (i.thisAnimationDuration = null);
                    }, t)),
                    (i.thisAnimationDuration = t));
              }),
                clearTimeout(e),
                r
                  ? (e = setTimeout(function () {
                      "function" == typeof i && i();
                    }, a))
                  : "function" == typeof i && i(),
                (t = []);
            },
            animate: function (e, t, i, n) {
              if (n) {
                ja(e, "transition", ""), ja(e, "transform", "");
                var r = Ha(this.el),
                  a = r && r.a,
                  o = r && r.d,
                  s = (t.left - i.left) / (a || 1),
                  l = (t.top - i.top) / (o || 1);
                (e.animatingX = !!s),
                  (e.animatingY = !!l),
                  ja(e, "transform", "translate3d(" + s + "px," + l + "px,0)"),
                  (this.forRepaintDummy = (function (e) {
                    return e.offsetWidth;
                  })(e)),
                  ja(
                    e,
                    "transition",
                    "transform " +
                      n +
                      "ms" +
                      (this.options.easing ? " " + this.options.easing : "")
                  ),
                  ja(e, "transform", "translate3d(0,0,0)"),
                  "number" == typeof e.animated && clearTimeout(e.animated),
                  (e.animated = setTimeout(function () {
                    ja(e, "transition", ""),
                      ja(e, "transform", ""),
                      (e.animated = !1),
                      (e.animatingX = !1),
                      (e.animatingY = !1);
                  }, n));
              }
            },
          };
        }
        var no = [],
          ro = { initializeByDefault: !0 },
          ao = {
            mount: function (e) {
              for (var t in ro)
                ro.hasOwnProperty(t) && !(t in e) && (e[t] = ro[t]);
              no.forEach(function (t) {
                if (t.pluginName === e.pluginName)
                  throw "Sortable: Cannot mount plugin ".concat(
                    e.pluginName,
                    " more than once"
                  );
              }),
                no.push(e);
            },
            pluginEvent: function (e, t, i) {
              var n = this;
              (this.eventCanceled = !1),
                (i.cancel = function () {
                  n.eventCanceled = !0;
                });
              var r = e + "Global";
              no.forEach(function (n) {
                t[n.pluginName] &&
                  (t[n.pluginName][r] &&
                    t[n.pluginName][r](ya({ sortable: t }, i)),
                  t.options[n.pluginName] &&
                    t[n.pluginName][e] &&
                    t[n.pluginName][e](ya({ sortable: t }, i)));
              });
            },
            initializePlugins: function (e, t, i, n) {
              for (var r in (no.forEach(function (n) {
                var r = n.pluginName;
                if (e.options[r] || n.initializeByDefault) {
                  var a = new n(e, t, e.options);
                  (a.sortable = e),
                    (a.options = e.options),
                    (e[r] = a),
                    Ea(i, a.defaults);
                }
              }),
              e.options))
                if (e.options.hasOwnProperty(r)) {
                  var a = this.modifyOption(e, r, e.options[r]);
                  void 0 !== a && (e.options[r] = a);
                }
            },
            getEventProperties: function (e, t) {
              var i = {};
              return (
                no.forEach(function (n) {
                  "function" == typeof n.eventProperties &&
                    Ea(i, n.eventProperties.call(t[n.pluginName], e));
                }),
                i
              );
            },
            modifyOption: function (e, t, i) {
              var n;
              return (
                no.forEach(function (r) {
                  e[r.pluginName] &&
                    r.optionListeners &&
                    "function" == typeof r.optionListeners[t] &&
                    (n = r.optionListeners[t].call(e[r.pluginName], i));
                }),
                n
              );
            },
          };
        function oo(e) {
          var t = e.sortable,
            i = e.rootEl,
            n = e.name,
            r = e.targetEl,
            a = e.cloneEl,
            o = e.toEl,
            s = e.fromEl,
            l = e.oldIndex,
            c = e.newIndex,
            u = e.oldDraggableIndex,
            d = e.newDraggableIndex,
            h = e.originalEvent,
            f = e.putSortable,
            p = e.extraEventProperties;
          if ((t = t || (i && i[to]))) {
            var g,
              m = t.options,
              v = "on" + n.charAt(0).toUpperCase() + n.substr(1);
            !window.CustomEvent || Aa || ka
              ? (g = document.createEvent("Event")).initEvent(n, !0, !0)
              : (g = new CustomEvent(n, { bubbles: !0, cancelable: !0 })),
              (g.to = o || i),
              (g.from = s || i),
              (g.item = r || i),
              (g.clone = a),
              (g.oldIndex = l),
              (g.newIndex = c),
              (g.oldDraggableIndex = u),
              (g.newDraggableIndex = d),
              (g.originalEvent = h),
              (g.pullMode = f ? f.lastPutMode : void 0);
            var b = ya(ya({}, p), ao.getEventProperties(n, t));
            for (var y in b) g[y] = b[y];
            i && i.dispatchEvent(g), m[v] && m[v].call(t, g);
          }
        }
        var so = ["evt"],
          lo = function (e, t) {
            var i =
                arguments.length > 2 && void 0 !== arguments[2]
                  ? arguments[2]
                  : {},
              n = i.evt,
              r = _a(i, so);
            ao.pluginEvent.bind(ts)(
              e,
              t,
              ya(
                {
                  dragEl: uo,
                  parentEl: ho,
                  ghostEl: fo,
                  rootEl: po,
                  nextEl: go,
                  lastDownEl: mo,
                  cloneEl: vo,
                  cloneHidden: bo,
                  dragStarted: Mo,
                  putSortable: So,
                  activeSortable: ts.active,
                  originalEvent: n,
                  oldIndex: yo,
                  oldDraggableIndex: wo,
                  newIndex: xo,
                  newDraggableIndex: Eo,
                  hideGhostForTarget: Ko,
                  unhideGhostForTarget: Jo,
                  cloneNowHidden: function () {
                    bo = !0;
                  },
                  cloneNowShown: function () {
                    bo = !1;
                  },
                  dispatchSortableEvent: function (e) {
                    co({ sortable: t, name: e, originalEvent: n });
                  },
                },
                r
              )
            );
          };
        function co(e) {
          oo(
            ya(
              {
                putSortable: So,
                cloneEl: vo,
                targetEl: uo,
                rootEl: po,
                oldIndex: yo,
                oldDraggableIndex: wo,
                newIndex: xo,
                newDraggableIndex: Eo,
              },
              e
            )
          );
        }
        var uo,
          ho,
          fo,
          po,
          go,
          mo,
          vo,
          bo,
          yo,
          xo,
          wo,
          Eo,
          _o,
          So,
          Ao,
          ko,
          To,
          Co,
          Oo,
          Io,
          Mo,
          Lo,
          Po,
          Do,
          Ro,
          No = !1,
          Fo = !1,
          Bo = [],
          zo = !1,
          jo = !1,
          Ho = [],
          Yo = !1,
          Xo = [],
          Wo = "undefined" != typeof document,
          Go = Oa,
          qo = ka || Aa ? "cssFloat" : "float",
          Vo = Wo && !Ia && !Oa && "draggable" in document.createElement("div"),
          Uo = (function () {
            if (Wo) {
              if (Aa) return !1;
              var e = document.createElement("x");
              return (
                (e.style.cssText = "pointer-events:auto"),
                "auto" === e.style.pointerEvents
              );
            }
          })(),
          $o = function (e, t) {
            var i = ja(e),
              n =
                parseInt(i.width) -
                parseInt(i.paddingLeft) -
                parseInt(i.paddingRight) -
                parseInt(i.borderLeftWidth) -
                parseInt(i.borderRightWidth),
              r = qa(e, 0, t),
              a = qa(e, 1, t),
              o = r && ja(r),
              s = a && ja(a),
              l =
                o &&
                parseInt(o.marginLeft) + parseInt(o.marginRight) + Wa(r).width,
              c =
                s &&
                parseInt(s.marginLeft) + parseInt(s.marginRight) + Wa(a).width;
            if ("flex" === i.display)
              return "column" === i.flexDirection ||
                "column-reverse" === i.flexDirection
                ? "vertical"
                : "horizontal";
            if ("grid" === i.display)
              return i.gridTemplateColumns.split(" ").length <= 1
                ? "vertical"
                : "horizontal";
            if (r && o.float && "none" !== o.float) {
              var u = "left" === o.float ? "left" : "right";
              return !a || ("both" !== s.clear && s.clear !== u)
                ? "horizontal"
                : "vertical";
            }
            return r &&
              ("block" === o.display ||
                "flex" === o.display ||
                "table" === o.display ||
                "grid" === o.display ||
                (l >= n && "none" === i[qo]) ||
                (a && "none" === i[qo] && l + c > n))
              ? "vertical"
              : "horizontal";
          },
          Zo = function (e) {
            function t(e, i) {
              return function (n, r, a, o) {
                var s =
                  n.options.group.name &&
                  r.options.group.name &&
                  n.options.group.name === r.options.group.name;
                if (null == e && (i || s)) return !0;
                if (null == e || !1 === e) return !1;
                if (i && "clone" === e) return e;
                if ("function" == typeof e)
                  return t(e(n, r, a, o), i)(n, r, a, o);
                var l = (i ? n : r).options.group.name;
                return (
                  !0 === e ||
                  ("string" == typeof e && e === l) ||
                  (e.join && e.indexOf(l) > -1)
                );
              };
            }
            var i = {},
              n = e.group;
            (n && "object" == xa(n)) || (n = { name: n }),
              (i.name = n.name),
              (i.checkPull = t(n.pull, !0)),
              (i.checkPut = t(n.put)),
              (i.revertClone = n.revertClone),
              (e.group = i);
          },
          Ko = function () {
            !Uo && fo && ja(fo, "display", "none");
          },
          Jo = function () {
            !Uo && fo && ja(fo, "display", "");
          };
        Wo &&
          !Ia &&
          document.addEventListener(
            "click",
            function (e) {
              if (Fo)
                return (
                  e.preventDefault(),
                  e.stopPropagation && e.stopPropagation(),
                  e.stopImmediatePropagation && e.stopImmediatePropagation(),
                  (Fo = !1),
                  !1
                );
            },
            !0
          );
        var Qo = function (e) {
            if (uo) {
              var t = (function (e, t) {
                var i;
                return (
                  Bo.some(function (n) {
                    var r = n[to].options.emptyInsertThreshold;
                    if (r && !Va(n)) {
                      var a = Wa(n),
                        o = e >= a.left - r && e <= a.right + r,
                        s = t >= a.top - r && t <= a.bottom + r;
                      return o && s ? (i = n) : void 0;
                    }
                  }),
                  i
                );
              })((e = e.touches ? e.touches[0] : e).clientX, e.clientY);
              if (t) {
                var i = {};
                for (var n in e) e.hasOwnProperty(n) && (i[n] = e[n]);
                (i.target = i.rootEl = t),
                  (i.preventDefault = void 0),
                  (i.stopPropagation = void 0),
                  t[to]._onDragOver(i);
              }
            }
          },
          es = function (e) {
            uo && uo.parentNode[to]._isOutsideThisEl(e.target);
          };
        function ts(e, t) {
          if (!e || !e.nodeType || 1 !== e.nodeType)
            throw "Sortable: `el` must be an HTMLElement, not ".concat(
              {}.toString.call(e)
            );
          (this.el = e), (this.options = t = Ea({}, t)), (e[to] = this);
          var i = {
            group: null,
            sort: !0,
            disabled: !1,
            store: null,
            handle: null,
            draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
            swapThreshold: 1,
            invertSwap: !1,
            invertedSwapThreshold: null,
            removeCloneOnHide: !0,
            direction: function () {
              return $o(e, this.options);
            },
            ghostClass: "sortable-ghost",
            chosenClass: "sortable-chosen",
            dragClass: "sortable-drag",
            ignore: "a, img",
            filter: null,
            preventOnFilter: !0,
            animation: 0,
            easing: null,
            setData: function (e, t) {
              e.setData("Text", t.textContent);
            },
            dropBubble: !1,
            dragoverBubble: !1,
            dataIdAttr: "data-id",
            delay: 0,
            delayOnTouchOnly: !1,
            touchStartThreshold:
              (Number.parseInt ? Number : window).parseInt(
                window.devicePixelRatio,
                10
              ) || 1,
            forceFallback: !1,
            fallbackClass: "sortable-fallback",
            fallbackOnBody: !1,
            fallbackTolerance: 0,
            fallbackOffset: { x: 0, y: 0 },
            supportPointer:
              !1 !== ts.supportPointer && "PointerEvent" in window && !Ca,
            emptyInsertThreshold: 5,
          };
          for (var n in (ao.initializePlugins(this, e, i), i))
            !(n in t) && (t[n] = i[n]);
          for (var r in (Zo(t), this))
            "_" === r.charAt(0) &&
              "function" == typeof this[r] &&
              (this[r] = this[r].bind(this));
          (this.nativeDraggable = !t.forceFallback && Vo),
            this.nativeDraggable && (this.options.touchStartThreshold = 1),
            t.supportPointer
              ? La(e, "pointerdown", this._onTapStart)
              : (La(e, "mousedown", this._onTapStart),
                La(e, "touchstart", this._onTapStart)),
            this.nativeDraggable &&
              (La(e, "dragover", this), La(e, "dragenter", this)),
            Bo.push(this.el),
            t.store && t.store.get && this.sort(t.store.get(this) || []),
            Ea(this, io());
        }
        function is(e, t, i, n, r, a, o, s) {
          var l,
            c,
            u = e[to],
            d = u.options.onMove;
          return (
            !window.CustomEvent || Aa || ka
              ? (l = document.createEvent("Event")).initEvent("move", !0, !0)
              : (l = new CustomEvent("move", { bubbles: !0, cancelable: !0 })),
            (l.to = t),
            (l.from = e),
            (l.dragged = i),
            (l.draggedRect = n),
            (l.related = r || t),
            (l.relatedRect = a || Wa(t)),
            (l.willInsertAfter = s),
            (l.originalEvent = o),
            e.dispatchEvent(l),
            d && (c = d.call(u, l, o)),
            c
          );
        }
        function ns(e) {
          e.draggable = !1;
        }
        function rs() {
          Yo = !1;
        }
        function as(e) {
          for (
            var t = e.tagName + e.className + e.src + e.href + e.textContent,
              i = t.length,
              n = 0;
            i--;

          )
            n += t.charCodeAt(i);
          return n.toString(36);
        }
        function os(e) {
          return setTimeout(e, 0);
        }
        function ss(e) {
          return clearTimeout(e);
        }
        (ts.prototype = {
          constructor: ts,
          _isOutsideThisEl: function (e) {
            this.el.contains(e) || e === this.el || (Lo = null);
          },
          _getDirection: function (e, t) {
            return "function" == typeof this.options.direction
              ? this.options.direction.call(this, e, t, uo)
              : this.options.direction;
          },
          _onTapStart: function (e) {
            if (e.cancelable) {
              var t = this,
                i = this.el,
                n = this.options,
                r = n.preventOnFilter,
                a = e.type,
                o =
                  (e.touches && e.touches[0]) ||
                  (e.pointerType && "touch" === e.pointerType && e),
                s = (o || e).target,
                l =
                  (e.target.shadowRoot &&
                    ((e.path && e.path[0]) ||
                      (e.composedPath && e.composedPath()[0]))) ||
                  s,
                c = n.filter;
              if (
                ((function (e) {
                  Xo.length = 0;
                  var t = e.getElementsByTagName("input"),
                    i = t.length;
                  for (; i--; ) {
                    var n = t[i];
                    n.checked && Xo.push(n);
                  }
                })(i),
                !uo &&
                  !(
                    (/mousedown|pointerdown/.test(a) && 0 !== e.button) ||
                    n.disabled
                  ) &&
                  !l.isContentEditable &&
                  (this.nativeDraggable ||
                    !Ca ||
                    !s ||
                    "SELECT" !== s.tagName.toUpperCase()) &&
                  !(
                    ((s = Na(s, n.draggable, i, !1)) && s.animated) ||
                    mo === s
                  ))
              ) {
                if (
                  ((yo = Ua(s)),
                  (wo = Ua(s, n.draggable)),
                  "function" == typeof c)
                ) {
                  if (c.call(this, e, s, this))
                    return (
                      co({
                        sortable: t,
                        rootEl: l,
                        name: "filter",
                        targetEl: s,
                        toEl: i,
                        fromEl: i,
                      }),
                      lo("filter", t, { evt: e }),
                      void (r && e.cancelable && e.preventDefault())
                    );
                } else if (
                  c &&
                  (c = c.split(",").some(function (n) {
                    if ((n = Na(l, n.trim(), i, !1)))
                      return (
                        co({
                          sortable: t,
                          rootEl: n,
                          name: "filter",
                          targetEl: s,
                          fromEl: i,
                          toEl: i,
                        }),
                        lo("filter", t, { evt: e }),
                        !0
                      );
                  }))
                )
                  return void (r && e.cancelable && e.preventDefault());
                (n.handle && !Na(l, n.handle, i, !1)) ||
                  this._prepareDragStart(e, o, s);
              }
            }
          },
          _prepareDragStart: function (e, t, i) {
            var n,
              r = this,
              a = r.el,
              o = r.options,
              s = a.ownerDocument;
            if (i && !uo && i.parentNode === a) {
              var l = Wa(i);
              if (
                ((po = a),
                (ho = (uo = i).parentNode),
                (go = uo.nextSibling),
                (mo = i),
                (_o = o.group),
                (ts.dragged = uo),
                (Ao = {
                  target: uo,
                  clientX: (t || e).clientX,
                  clientY: (t || e).clientY,
                }),
                (Oo = Ao.clientX - l.left),
                (Io = Ao.clientY - l.top),
                (this._lastX = (t || e).clientX),
                (this._lastY = (t || e).clientY),
                (uo.style["will-change"] = "all"),
                (n = function () {
                  lo("delayEnded", r, { evt: e }),
                    ts.eventCanceled
                      ? r._onDrop()
                      : (r._disableDelayedDragEvents(),
                        !Ta && r.nativeDraggable && (uo.draggable = !0),
                        r._triggerDragStart(e, t),
                        co({ sortable: r, name: "choose", originalEvent: e }),
                        za(uo, o.chosenClass, !0));
                }),
                o.ignore.split(",").forEach(function (e) {
                  Ya(uo, e.trim(), ns);
                }),
                La(s, "dragover", Qo),
                La(s, "mousemove", Qo),
                La(s, "touchmove", Qo),
                La(s, "mouseup", r._onDrop),
                La(s, "touchend", r._onDrop),
                La(s, "touchcancel", r._onDrop),
                Ta &&
                  this.nativeDraggable &&
                  ((this.options.touchStartThreshold = 4), (uo.draggable = !0)),
                lo("delayStart", this, { evt: e }),
                !o.delay ||
                  (o.delayOnTouchOnly && !t) ||
                  (this.nativeDraggable && (ka || Aa)))
              )
                n();
              else {
                if (ts.eventCanceled) return void this._onDrop();
                La(s, "mouseup", r._disableDelayedDrag),
                  La(s, "touchend", r._disableDelayedDrag),
                  La(s, "touchcancel", r._disableDelayedDrag),
                  La(s, "mousemove", r._delayedDragTouchMoveHandler),
                  La(s, "touchmove", r._delayedDragTouchMoveHandler),
                  o.supportPointer &&
                    La(s, "pointermove", r._delayedDragTouchMoveHandler),
                  (r._dragStartTimer = setTimeout(n, o.delay));
              }
            }
          },
          _delayedDragTouchMoveHandler: function (e) {
            var t = e.touches ? e.touches[0] : e;
            Math.max(
              Math.abs(t.clientX - this._lastX),
              Math.abs(t.clientY - this._lastY)
            ) >=
              Math.floor(
                this.options.touchStartThreshold /
                  ((this.nativeDraggable && window.devicePixelRatio) || 1)
              ) && this._disableDelayedDrag();
          },
          _disableDelayedDrag: function () {
            uo && ns(uo),
              clearTimeout(this._dragStartTimer),
              this._disableDelayedDragEvents();
          },
          _disableDelayedDragEvents: function () {
            var e = this.el.ownerDocument;
            Pa(e, "mouseup", this._disableDelayedDrag),
              Pa(e, "touchend", this._disableDelayedDrag),
              Pa(e, "touchcancel", this._disableDelayedDrag),
              Pa(e, "mousemove", this._delayedDragTouchMoveHandler),
              Pa(e, "touchmove", this._delayedDragTouchMoveHandler),
              Pa(e, "pointermove", this._delayedDragTouchMoveHandler);
          },
          _triggerDragStart: function (e, t) {
            (t = t || ("touch" == e.pointerType && e)),
              !this.nativeDraggable || t
                ? this.options.supportPointer
                  ? La(document, "pointermove", this._onTouchMove)
                  : La(
                      document,
                      t ? "touchmove" : "mousemove",
                      this._onTouchMove
                    )
                : (La(uo, "dragend", this),
                  La(po, "dragstart", this._onDragStart));
            try {
              document.selection
                ? os(function () {
                    document.selection.empty();
                  })
                : window.getSelection().removeAllRanges();
            } catch (e) {}
          },
          _dragStarted: function (e, t) {
            if (((No = !1), po && uo)) {
              lo("dragStarted", this, { evt: t }),
                this.nativeDraggable && La(document, "dragover", es);
              var i = this.options;
              !e && za(uo, i.dragClass, !1),
                za(uo, i.ghostClass, !0),
                (ts.active = this),
                e && this._appendGhost(),
                co({ sortable: this, name: "start", originalEvent: t });
            } else this._nulling();
          },
          _emulateDragOver: function () {
            if (ko) {
              (this._lastX = ko.clientX), (this._lastY = ko.clientY), Ko();
              for (
                var e = document.elementFromPoint(ko.clientX, ko.clientY),
                  t = e;
                e &&
                e.shadowRoot &&
                (e = e.shadowRoot.elementFromPoint(ko.clientX, ko.clientY)) !==
                  t;

              )
                t = e;
              if ((uo.parentNode[to]._isOutsideThisEl(e), t))
                do {
                  if (t[to]) {
                    if (
                      t[to]._onDragOver({
                        clientX: ko.clientX,
                        clientY: ko.clientY,
                        target: e,
                        rootEl: t,
                      }) &&
                      !this.options.dragoverBubble
                    )
                      break;
                  }
                  e = t;
                } while ((t = t.parentNode));
              Jo();
            }
          },
          _onTouchMove: function (e) {
            if (Ao) {
              var t = this.options,
                i = t.fallbackTolerance,
                n = t.fallbackOffset,
                r = e.touches ? e.touches[0] : e,
                a = fo && Ha(fo, !0),
                o = fo && a && a.a,
                s = fo && a && a.d,
                l = Go && Ro && $a(Ro),
                c =
                  (r.clientX - Ao.clientX + n.x) / (o || 1) +
                  (l ? l[0] - Ho[0] : 0) / (o || 1),
                u =
                  (r.clientY - Ao.clientY + n.y) / (s || 1) +
                  (l ? l[1] - Ho[1] : 0) / (s || 1);
              if (!ts.active && !No) {
                if (
                  i &&
                  Math.max(
                    Math.abs(r.clientX - this._lastX),
                    Math.abs(r.clientY - this._lastY)
                  ) < i
                )
                  return;
                this._onDragStart(e, !0);
              }
              if (fo) {
                a
                  ? ((a.e += c - (To || 0)), (a.f += u - (Co || 0)))
                  : (a = { a: 1, b: 0, c: 0, d: 1, e: c, f: u });
                var d = "matrix("
                  .concat(a.a, ",")
                  .concat(a.b, ",")
                  .concat(a.c, ",")
                  .concat(a.d, ",")
                  .concat(a.e, ",")
                  .concat(a.f, ")");
                ja(fo, "webkitTransform", d),
                  ja(fo, "mozTransform", d),
                  ja(fo, "msTransform", d),
                  ja(fo, "transform", d),
                  (To = c),
                  (Co = u),
                  (ko = r);
              }
              e.cancelable && e.preventDefault();
            }
          },
          _appendGhost: function () {
            if (!fo) {
              var e = this.options.fallbackOnBody ? document.body : po,
                t = Wa(uo, !0, Go, !0, e),
                i = this.options;
              if (Go) {
                for (
                  Ro = e;
                  "static" === ja(Ro, "position") &&
                  "none" === ja(Ro, "transform") &&
                  Ro !== document;

                )
                  Ro = Ro.parentNode;
                Ro !== document.body && Ro !== document.documentElement
                  ? (Ro === document && (Ro = Xa()),
                    (t.top += Ro.scrollTop),
                    (t.left += Ro.scrollLeft))
                  : (Ro = Xa()),
                  (Ho = $a(Ro));
              }
              za((fo = uo.cloneNode(!0)), i.ghostClass, !1),
                za(fo, i.fallbackClass, !0),
                za(fo, i.dragClass, !0),
                ja(fo, "transition", ""),
                ja(fo, "transform", ""),
                ja(fo, "box-sizing", "border-box"),
                ja(fo, "margin", 0),
                ja(fo, "top", t.top),
                ja(fo, "left", t.left),
                ja(fo, "width", t.width),
                ja(fo, "height", t.height),
                ja(fo, "opacity", "0.8"),
                ja(fo, "position", Go ? "absolute" : "fixed"),
                ja(fo, "zIndex", "100000"),
                ja(fo, "pointerEvents", "none"),
                (ts.ghost = fo),
                e.appendChild(fo),
                ja(
                  fo,
                  "transform-origin",
                  (Oo / parseInt(fo.style.width)) * 100 +
                    "% " +
                    (Io / parseInt(fo.style.height)) * 100 +
                    "%"
                );
            }
          },
          _onDragStart: function (e, t) {
            var i = this,
              n = e.dataTransfer,
              r = i.options;
            lo("dragStart", this, { evt: e }),
              ts.eventCanceled
                ? this._onDrop()
                : (lo("setupClone", this),
                  ts.eventCanceled ||
                    ((vo = eo(uo)).removeAttribute("id"),
                    (vo.draggable = !1),
                    (vo.style["will-change"] = ""),
                    this._hideClone(),
                    za(vo, this.options.chosenClass, !1),
                    (ts.clone = vo)),
                  (i.cloneId = os(function () {
                    lo("clone", i),
                      ts.eventCanceled ||
                        (i.options.removeCloneOnHide || po.insertBefore(vo, uo),
                        i._hideClone(),
                        co({ sortable: i, name: "clone" }));
                  })),
                  !t && za(uo, r.dragClass, !0),
                  t
                    ? ((Fo = !0),
                      (i._loopId = setInterval(i._emulateDragOver, 50)))
                    : (Pa(document, "mouseup", i._onDrop),
                      Pa(document, "touchend", i._onDrop),
                      Pa(document, "touchcancel", i._onDrop),
                      n &&
                        ((n.effectAllowed = "move"),
                        r.setData && r.setData.call(i, n, uo)),
                      La(document, "drop", i),
                      ja(uo, "transform", "translateZ(0)")),
                  (No = !0),
                  (i._dragStartId = os(i._dragStarted.bind(i, t, e))),
                  La(document, "selectstart", i),
                  (Mo = !0),
                  Ca && ja(document.body, "user-select", "none"));
          },
          _onDragOver: function (e) {
            var t,
              i,
              n,
              r,
              a = this.el,
              o = e.target,
              s = this.options,
              l = s.group,
              c = ts.active,
              u = _o === l,
              d = s.sort,
              h = So || c,
              f = this,
              p = !1;
            if (!Yo) {
              if (
                (void 0 !== e.preventDefault &&
                  e.cancelable &&
                  e.preventDefault(),
                (o = Na(o, s.draggable, a, !0)),
                O("dragOver"),
                ts.eventCanceled)
              )
                return p;
              if (
                uo.contains(e.target) ||
                (o.animated && o.animatingX && o.animatingY) ||
                f._ignoreWhileAnimating === o
              )
                return M(!1);
              if (
                ((Fo = !1),
                c &&
                  !s.disabled &&
                  (u
                    ? d || (n = ho !== po)
                    : So === this ||
                      ((this.lastPutMode = _o.checkPull(this, c, uo, e)) &&
                        l.checkPut(this, c, uo, e))))
              ) {
                if (
                  ((r = "vertical" === this._getDirection(e, o)),
                  (t = Wa(uo)),
                  O("dragOverValid"),
                  ts.eventCanceled)
                )
                  return p;
                if (n)
                  return (
                    (ho = po),
                    I(),
                    this._hideClone(),
                    O("revert"),
                    ts.eventCanceled ||
                      (go ? po.insertBefore(uo, go) : po.appendChild(uo)),
                    M(!0)
                  );
                var g = Va(a, s.draggable);
                if (
                  !g ||
                  ((function (e, t, i) {
                    var n = Wa(Va(i.el, i.options.draggable)),
                      r = 10;
                    return t
                      ? e.clientX > n.right + r ||
                          (e.clientX <= n.right &&
                            e.clientY > n.bottom &&
                            e.clientX >= n.left)
                      : (e.clientX > n.right && e.clientY > n.top) ||
                          (e.clientX <= n.right && e.clientY > n.bottom + r);
                  })(e, r, this) &&
                    !g.animated)
                ) {
                  if (g === uo) return M(!1);
                  if (
                    (g && a === e.target && (o = g),
                    o && (i = Wa(o)),
                    !1 !== is(po, a, uo, t, o, i, e, !!o))
                  )
                    return (
                      I(),
                      g && g.nextSibling
                        ? a.insertBefore(uo, g.nextSibling)
                        : a.appendChild(uo),
                      (ho = a),
                      L(),
                      M(!0)
                    );
                } else if (
                  g &&
                  (function (e, t, i) {
                    var n = Wa(qa(i.el, 0, i.options, !0)),
                      r = 10;
                    return t
                      ? e.clientX < n.left - r ||
                          (e.clientY < n.top && e.clientX < n.right)
                      : e.clientY < n.top - r ||
                          (e.clientY < n.bottom && e.clientX < n.left);
                  })(e, r, this)
                ) {
                  var m = qa(a, 0, s, !0);
                  if (m === uo) return M(!1);
                  if (((i = Wa((o = m))), !1 !== is(po, a, uo, t, o, i, e, !1)))
                    return I(), a.insertBefore(uo, m), (ho = a), L(), M(!0);
                } else if (o.parentNode === a) {
                  i = Wa(o);
                  var v,
                    b,
                    y,
                    x = uo.parentNode !== a,
                    w = !(function (e, t, i) {
                      var n = i ? e.left : e.top,
                        r = i ? e.right : e.bottom,
                        a = i ? e.width : e.height,
                        o = i ? t.left : t.top,
                        s = i ? t.right : t.bottom,
                        l = i ? t.width : t.height;
                      return n === o || r === s || n + a / 2 === o + l / 2;
                    })(
                      (uo.animated && uo.toRect) || t,
                      (o.animated && o.toRect) || i,
                      r
                    ),
                    E = r ? "top" : "left",
                    _ = Ga(o, "top", "top") || Ga(uo, "top", "top"),
                    S = _ ? _.scrollTop : void 0;
                  if (
                    (Lo !== o &&
                      ((b = i[E]), (zo = !1), (jo = (!w && s.invertSwap) || x)),
                    (v = (function (e, t, i, n, r, a, o, s) {
                      var l = n ? e.clientY : e.clientX,
                        c = n ? i.height : i.width,
                        u = n ? i.top : i.left,
                        d = n ? i.bottom : i.right,
                        h = !1;
                      if (!o)
                        if (s && Do < c * r) {
                          if (
                            (!zo &&
                              (1 === Po
                                ? l > u + (c * a) / 2
                                : l < d - (c * a) / 2) &&
                              (zo = !0),
                            zo)
                          )
                            h = !0;
                          else if (1 === Po ? l < u + Do : l > d - Do)
                            return -Po;
                        } else if (
                          l > u + (c * (1 - r)) / 2 &&
                          l < d - (c * (1 - r)) / 2
                        )
                          return (function (e) {
                            return Ua(uo) < Ua(e) ? 1 : -1;
                          })(t);
                      if (
                        (h = h || o) &&
                        (l < u + (c * a) / 2 || l > d - (c * a) / 2)
                      )
                        return l > u + c / 2 ? 1 : -1;
                      return 0;
                    })(
                      e,
                      o,
                      i,
                      r,
                      w ? 1 : s.swapThreshold,
                      null == s.invertedSwapThreshold
                        ? s.swapThreshold
                        : s.invertedSwapThreshold,
                      jo,
                      Lo === o
                    )),
                    0 !== v)
                  ) {
                    var A = Ua(uo);
                    do {
                      (A -= v), (y = ho.children[A]);
                    } while (y && ("none" === ja(y, "display") || y === fo));
                  }
                  if (0 === v || y === o) return M(!1);
                  (Lo = o), (Po = v);
                  var k = o.nextElementSibling,
                    T = !1,
                    C = is(po, a, uo, t, o, i, e, (T = 1 === v));
                  if (!1 !== C)
                    return (
                      (1 !== C && -1 !== C) || (T = 1 === C),
                      (Yo = !0),
                      setTimeout(rs, 30),
                      I(),
                      T && !k
                        ? a.appendChild(uo)
                        : o.parentNode.insertBefore(uo, T ? k : o),
                      _ && Qa(_, 0, S - _.scrollTop),
                      (ho = uo.parentNode),
                      void 0 === b || jo || (Do = Math.abs(b - Wa(o)[E])),
                      L(),
                      M(!0)
                    );
                }
                if (a.contains(uo)) return M(!1);
              }
              return !1;
            }
            function O(s, l) {
              lo(
                s,
                f,
                ya(
                  {
                    evt: e,
                    isOwner: u,
                    axis: r ? "vertical" : "horizontal",
                    revert: n,
                    dragRect: t,
                    targetRect: i,
                    canSort: d,
                    fromSortable: h,
                    target: o,
                    completed: M,
                    onMove: function (i, n) {
                      return is(po, a, uo, t, i, Wa(i), e, n);
                    },
                    changed: L,
                  },
                  l
                )
              );
            }
            function I() {
              O("dragOverAnimationCapture"),
                f.captureAnimationState(),
                f !== h && h.captureAnimationState();
            }
            function M(t) {
              return (
                O("dragOverCompleted", { insertion: t }),
                t &&
                  (u ? c._hideClone() : c._showClone(f),
                  f !== h &&
                    (za(
                      uo,
                      So ? So.options.ghostClass : c.options.ghostClass,
                      !1
                    ),
                    za(uo, s.ghostClass, !0)),
                  So !== f && f !== ts.active
                    ? (So = f)
                    : f === ts.active && So && (So = null),
                  h === f && (f._ignoreWhileAnimating = o),
                  f.animateAll(function () {
                    O("dragOverAnimationComplete"),
                      (f._ignoreWhileAnimating = null);
                  }),
                  f !== h &&
                    (h.animateAll(), (h._ignoreWhileAnimating = null))),
                ((o === uo && !uo.animated) || (o === a && !o.animated)) &&
                  (Lo = null),
                s.dragoverBubble ||
                  e.rootEl ||
                  o === document ||
                  (uo.parentNode[to]._isOutsideThisEl(e.target), !t && Qo(e)),
                !s.dragoverBubble && e.stopPropagation && e.stopPropagation(),
                (p = !0)
              );
            }
            function L() {
              (xo = Ua(uo)),
                (Eo = Ua(uo, s.draggable)),
                co({
                  sortable: f,
                  name: "change",
                  toEl: a,
                  newIndex: xo,
                  newDraggableIndex: Eo,
                  originalEvent: e,
                });
            }
          },
          _ignoreWhileAnimating: null,
          _offMoveEvents: function () {
            Pa(document, "mousemove", this._onTouchMove),
              Pa(document, "touchmove", this._onTouchMove),
              Pa(document, "pointermove", this._onTouchMove),
              Pa(document, "dragover", Qo),
              Pa(document, "mousemove", Qo),
              Pa(document, "touchmove", Qo);
          },
          _offUpEvents: function () {
            var e = this.el.ownerDocument;
            Pa(e, "mouseup", this._onDrop),
              Pa(e, "touchend", this._onDrop),
              Pa(e, "pointerup", this._onDrop),
              Pa(e, "touchcancel", this._onDrop),
              Pa(document, "selectstart", this);
          },
          _onDrop: function (e) {
            var t = this.el,
              i = this.options;
            (xo = Ua(uo)),
              (Eo = Ua(uo, i.draggable)),
              lo("drop", this, { evt: e }),
              (ho = uo && uo.parentNode),
              (xo = Ua(uo)),
              (Eo = Ua(uo, i.draggable)),
              ts.eventCanceled ||
                ((No = !1),
                (jo = !1),
                (zo = !1),
                clearInterval(this._loopId),
                clearTimeout(this._dragStartTimer),
                ss(this.cloneId),
                ss(this._dragStartId),
                this.nativeDraggable &&
                  (Pa(document, "drop", this),
                  Pa(t, "dragstart", this._onDragStart)),
                this._offMoveEvents(),
                this._offUpEvents(),
                Ca && ja(document.body, "user-select", ""),
                ja(uo, "transform", ""),
                e &&
                  (Mo &&
                    (e.cancelable && e.preventDefault(),
                    !i.dropBubble && e.stopPropagation()),
                  fo && fo.parentNode && fo.parentNode.removeChild(fo),
                  (po === ho || (So && "clone" !== So.lastPutMode)) &&
                    vo &&
                    vo.parentNode &&
                    vo.parentNode.removeChild(vo),
                  uo &&
                    (this.nativeDraggable && Pa(uo, "dragend", this),
                    ns(uo),
                    (uo.style["will-change"] = ""),
                    Mo &&
                      !No &&
                      za(
                        uo,
                        So ? So.options.ghostClass : this.options.ghostClass,
                        !1
                      ),
                    za(uo, this.options.chosenClass, !1),
                    co({
                      sortable: this,
                      name: "unchoose",
                      toEl: ho,
                      newIndex: null,
                      newDraggableIndex: null,
                      originalEvent: e,
                    }),
                    po !== ho
                      ? (xo >= 0 &&
                          (co({
                            rootEl: ho,
                            name: "add",
                            toEl: ho,
                            fromEl: po,
                            originalEvent: e,
                          }),
                          co({
                            sortable: this,
                            name: "remove",
                            toEl: ho,
                            originalEvent: e,
                          }),
                          co({
                            rootEl: ho,
                            name: "sort",
                            toEl: ho,
                            fromEl: po,
                            originalEvent: e,
                          }),
                          co({
                            sortable: this,
                            name: "sort",
                            toEl: ho,
                            originalEvent: e,
                          })),
                        So && So.save())
                      : xo !== yo &&
                        xo >= 0 &&
                        (co({
                          sortable: this,
                          name: "update",
                          toEl: ho,
                          originalEvent: e,
                        }),
                        co({
                          sortable: this,
                          name: "sort",
                          toEl: ho,
                          originalEvent: e,
                        })),
                    ts.active &&
                      ((null != xo && -1 !== xo) || ((xo = yo), (Eo = wo)),
                      co({
                        sortable: this,
                        name: "end",
                        toEl: ho,
                        originalEvent: e,
                      }),
                      this.save())))),
              this._nulling();
          },
          _nulling: function () {
            lo("nulling", this),
              (po =
                uo =
                ho =
                fo =
                go =
                vo =
                mo =
                bo =
                Ao =
                ko =
                Mo =
                xo =
                Eo =
                yo =
                wo =
                Lo =
                Po =
                So =
                _o =
                ts.dragged =
                ts.ghost =
                ts.clone =
                ts.active =
                  null),
              Xo.forEach(function (e) {
                e.checked = !0;
              }),
              (Xo.length = To = Co = 0);
          },
          handleEvent: function (e) {
            switch (e.type) {
              case "drop":
              case "dragend":
                this._onDrop(e);
                break;
              case "dragenter":
              case "dragover":
                uo &&
                  (this._onDragOver(e),
                  (function (e) {
                    e.dataTransfer && (e.dataTransfer.dropEffect = "move");
                    e.cancelable && e.preventDefault();
                  })(e));
                break;
              case "selectstart":
                e.preventDefault();
            }
          },
          toArray: function () {
            for (
              var e,
                t = [],
                i = this.el.children,
                n = 0,
                r = i.length,
                a = this.options;
              n < r;
              n++
            )
              Na((e = i[n]), a.draggable, this.el, !1) &&
                t.push(e.getAttribute(a.dataIdAttr) || as(e));
            return t;
          },
          sort: function (e, t) {
            var i = {},
              n = this.el;
            this.toArray().forEach(function (e, t) {
              var r = n.children[t];
              Na(r, this.options.draggable, n, !1) && (i[e] = r);
            }, this),
              t && this.captureAnimationState(),
              e.forEach(function (e) {
                i[e] && (n.removeChild(i[e]), n.appendChild(i[e]));
              }),
              t && this.animateAll();
          },
          save: function () {
            var e = this.options.store;
            e && e.set && e.set(this);
          },
          closest: function (e, t) {
            return Na(e, t || this.options.draggable, this.el, !1);
          },
          option: function (e, t) {
            var i = this.options;
            if (void 0 === t) return i[e];
            var n = ao.modifyOption(this, e, t);
            (i[e] = void 0 !== n ? n : t), "group" === e && Zo(i);
          },
          destroy: function () {
            lo("destroy", this);
            var e = this.el;
            (e[to] = null),
              Pa(e, "mousedown", this._onTapStart),
              Pa(e, "touchstart", this._onTapStart),
              Pa(e, "pointerdown", this._onTapStart),
              this.nativeDraggable &&
                (Pa(e, "dragover", this), Pa(e, "dragenter", this)),
              Array.prototype.forEach.call(
                e.querySelectorAll("[draggable]"),
                function (e) {
                  e.removeAttribute("draggable");
                }
              ),
              this._onDrop(),
              this._disableDelayedDragEvents(),
              Bo.splice(Bo.indexOf(this.el), 1),
              (this.el = e = null);
          },
          _hideClone: function () {
            if (!bo) {
              if ((lo("hideClone", this), ts.eventCanceled)) return;
              ja(vo, "display", "none"),
                this.options.removeCloneOnHide &&
                  vo.parentNode &&
                  vo.parentNode.removeChild(vo),
                (bo = !0);
            }
          },
          _showClone: function (e) {
            if ("clone" === e.lastPutMode) {
              if (bo) {
                if ((lo("showClone", this), ts.eventCanceled)) return;
                uo.parentNode != po || this.options.group.revertClone
                  ? go
                    ? po.insertBefore(vo, go)
                    : po.appendChild(vo)
                  : po.insertBefore(vo, uo),
                  this.options.group.revertClone && this.animate(uo, vo),
                  ja(vo, "display", ""),
                  (bo = !1);
              }
            } else this._hideClone();
          },
        }),
          Wo &&
            La(document, "touchmove", function (e) {
              (ts.active || No) && e.cancelable && e.preventDefault();
            }),
          (ts.utils = {
            on: La,
            off: Pa,
            css: ja,
            find: Ya,
            is: function (e, t) {
              return !!Na(e, t, e, !1);
            },
            extend: function (e, t) {
              if (e && t) for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
              return e;
            },
            throttle: Ja,
            closest: Na,
            toggleClass: za,
            clone: eo,
            index: Ua,
            nextTick: os,
            cancelNextTick: ss,
            detectDirection: $o,
            getChild: qa,
          }),
          (ts.get = function (e) {
            return e[to];
          }),
          (ts.mount = function () {
            for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
              t[i] = arguments[i];
            t[0].constructor === Array && (t = t[0]),
              t.forEach(function (e) {
                if (!e.prototype || !e.prototype.constructor)
                  throw "Sortable: Mounted plugin must be a constructor function, not ".concat(
                    {}.toString.call(e)
                  );
                e.utils && (ts.utils = ya(ya({}, ts.utils), e.utils)),
                  ao.mount(e);
              });
          }),
          (ts.create = function (e, t) {
            return new ts(e, t);
          }),
          (ts.version = "1.15.0");
        var ls,
          cs,
          us,
          ds,
          hs,
          fs,
          ps = [],
          gs = !1;
        function ms() {
          ps.forEach(function (e) {
            clearInterval(e.pid);
          }),
            (ps = []);
        }
        function vs() {
          clearInterval(fs);
        }
        var bs = Ja(function (e, t, i, n) {
            if (t.scroll) {
              var r,
                a = (e.touches ? e.touches[0] : e).clientX,
                o = (e.touches ? e.touches[0] : e).clientY,
                s = t.scrollSensitivity,
                l = t.scrollSpeed,
                c = Xa(),
                u = !1;
              cs !== i &&
                ((cs = i),
                ms(),
                (ls = t.scroll),
                (r = t.scrollFn),
                !0 === ls && (ls = Za(i, !0)));
              var d = 0,
                h = ls;
              do {
                var f = h,
                  p = Wa(f),
                  g = p.top,
                  m = p.bottom,
                  v = p.left,
                  b = p.right,
                  y = p.width,
                  x = p.height,
                  w = void 0,
                  E = void 0,
                  _ = f.scrollWidth,
                  S = f.scrollHeight,
                  A = ja(f),
                  k = f.scrollLeft,
                  T = f.scrollTop;
                f === c
                  ? ((w =
                      y < _ &&
                      ("auto" === A.overflowX ||
                        "scroll" === A.overflowX ||
                        "visible" === A.overflowX)),
                    (E =
                      x < S &&
                      ("auto" === A.overflowY ||
                        "scroll" === A.overflowY ||
                        "visible" === A.overflowY)))
                  : ((w =
                      y < _ &&
                      ("auto" === A.overflowX || "scroll" === A.overflowX)),
                    (E =
                      x < S &&
                      ("auto" === A.overflowY || "scroll" === A.overflowY)));
                var C =
                    w &&
                    (Math.abs(b - a) <= s && k + y < _) -
                      (Math.abs(v - a) <= s && !!k),
                  O =
                    E &&
                    (Math.abs(m - o) <= s && T + x < S) -
                      (Math.abs(g - o) <= s && !!T);
                if (!ps[d]) for (var I = 0; I <= d; I++) ps[I] || (ps[I] = {});
                (ps[d].vx == C && ps[d].vy == O && ps[d].el === f) ||
                  ((ps[d].el = f),
                  (ps[d].vx = C),
                  (ps[d].vy = O),
                  clearInterval(ps[d].pid),
                  (0 == C && 0 == O) ||
                    ((u = !0),
                    (ps[d].pid = setInterval(
                      function () {
                        n && 0 === this.layer && ts.active._onTouchMove(hs);
                        var t = ps[this.layer].vy ? ps[this.layer].vy * l : 0,
                          i = ps[this.layer].vx ? ps[this.layer].vx * l : 0;
                        ("function" == typeof r &&
                          "continue" !==
                            r.call(
                              ts.dragged.parentNode[to],
                              i,
                              t,
                              e,
                              hs,
                              ps[this.layer].el
                            )) ||
                          Qa(ps[this.layer].el, i, t);
                      }.bind({ layer: d }),
                      24
                    )))),
                  d++;
              } while (t.bubbleScroll && h !== c && (h = Za(h, !1)));
              gs = u;
            }
          }, 30),
          ys = function (e) {
            var t = e.originalEvent,
              i = e.putSortable,
              n = e.dragEl,
              r = e.activeSortable,
              a = e.dispatchSortableEvent,
              o = e.hideGhostForTarget,
              s = e.unhideGhostForTarget;
            if (t) {
              var l = i || r;
              o();
              var c =
                  t.changedTouches && t.changedTouches.length
                    ? t.changedTouches[0]
                    : t,
                u = document.elementFromPoint(c.clientX, c.clientY);
              s(),
                l &&
                  !l.el.contains(u) &&
                  (a("spill"), this.onSpill({ dragEl: n, putSortable: i }));
            }
          };
        function xs() {}
        function ws() {}
        (xs.prototype = {
          startIndex: null,
          dragStart: function (e) {
            var t = e.oldDraggableIndex;
            this.startIndex = t;
          },
          onSpill: function (e) {
            var t = e.dragEl,
              i = e.putSortable;
            this.sortable.captureAnimationState(),
              i && i.captureAnimationState();
            var n = qa(this.sortable.el, this.startIndex, this.options);
            n
              ? this.sortable.el.insertBefore(t, n)
              : this.sortable.el.appendChild(t),
              this.sortable.animateAll(),
              i && i.animateAll();
          },
          drop: ys,
        }),
          Ea(xs, { pluginName: "revertOnSpill" }),
          (ws.prototype = {
            onSpill: function (e) {
              var t = e.dragEl,
                i = e.putSortable || this.sortable;
              i.captureAnimationState(),
                t.parentNode && t.parentNode.removeChild(t),
                i.animateAll();
            },
            drop: ys,
          }),
          Ea(ws, { pluginName: "removeOnSpill" });
        ts.mount(
          new (function () {
            function e() {
              for (var e in ((this.defaults = {
                scroll: !0,
                forceAutoScrollFallback: !1,
                scrollSensitivity: 30,
                scrollSpeed: 10,
                bubbleScroll: !0,
              }),
              this))
                "_" === e.charAt(0) &&
                  "function" == typeof this[e] &&
                  (this[e] = this[e].bind(this));
            }
            return (
              (e.prototype = {
                dragStarted: function (e) {
                  var t = e.originalEvent;
                  this.sortable.nativeDraggable
                    ? La(document, "dragover", this._handleAutoScroll)
                    : this.options.supportPointer
                    ? La(
                        document,
                        "pointermove",
                        this._handleFallbackAutoScroll
                      )
                    : t.touches
                    ? La(document, "touchmove", this._handleFallbackAutoScroll)
                    : La(document, "mousemove", this._handleFallbackAutoScroll);
                },
                dragOverCompleted: function (e) {
                  var t = e.originalEvent;
                  this.options.dragOverBubble ||
                    t.rootEl ||
                    this._handleAutoScroll(t);
                },
                drop: function () {
                  this.sortable.nativeDraggable
                    ? Pa(document, "dragover", this._handleAutoScroll)
                    : (Pa(
                        document,
                        "pointermove",
                        this._handleFallbackAutoScroll
                      ),
                      Pa(document, "touchmove", this._handleFallbackAutoScroll),
                      Pa(
                        document,
                        "mousemove",
                        this._handleFallbackAutoScroll
                      )),
                    vs(),
                    ms(),
                    clearTimeout(Fa),
                    (Fa = void 0);
                },
                nulling: function () {
                  (hs = cs = ls = gs = fs = us = ds = null), (ps.length = 0);
                },
                _handleFallbackAutoScroll: function (e) {
                  this._handleAutoScroll(e, !0);
                },
                _handleAutoScroll: function (e, t) {
                  var i = this,
                    n = (e.touches ? e.touches[0] : e).clientX,
                    r = (e.touches ? e.touches[0] : e).clientY,
                    a = document.elementFromPoint(n, r);
                  if (
                    ((hs = e),
                    t || this.options.forceAutoScrollFallback || ka || Aa || Ca)
                  ) {
                    bs(e, this.options, a, t);
                    var o = Za(a, !0);
                    !gs ||
                      (fs && n === us && r === ds) ||
                      (fs && vs(),
                      (fs = setInterval(function () {
                        var a = Za(document.elementFromPoint(n, r), !0);
                        a !== o && ((o = a), ms()), bs(e, i.options, a, t);
                      }, 10)),
                      (us = n),
                      (ds = r));
                  } else {
                    if (!this.options.bubbleScroll || Za(a, !0) === Xa())
                      return void ms();
                    bs(e, this.options, Za(a, !1), !1);
                  }
                },
              }),
              Ea(e, { pluginName: "scroll", initializeByDefault: !0 })
            );
          })()
        ),
          ts.mount(ws, xs);
        const Es = ts;
        var _s,
          Ss = i(369),
          As = i.n(Ss);
        function ks(e, t) {
          for (var i = 0; i < t.length; i++) {
            var n = t[i];
            (n.enumerable = n.enumerable || !1),
              (n.configurable = !0),
              "value" in n && (n.writable = !0),
              Object.defineProperty(
                e,
                "symbol" ==
                  typeof (r = (function (e, t) {
                    if ("object" != typeof e || null === e) return e;
                    var i = e[Symbol.toPrimitive];
                    if (void 0 !== i) {
                      var n = i.call(e, "string");
                      if ("object" != typeof n) return n;
                      throw new TypeError(
                        "@@toPrimitive must return a primitive value."
                      );
                    }
                    return String(e);
                  })(n.key))
                  ? r
                  : String(r),
                n
              );
          }
          var r;
        }
        function Ts(e, t, i) {
          return (
            t && ks(e.prototype, t),
            i && ks(e, i),
            Object.defineProperty(e, "prototype", { writable: !1 }),
            e
          );
        }
        function Cs() {
          return (
            (Cs = Object.assign
              ? Object.assign.bind()
              : function (e) {
                  for (var t = 1; t < arguments.length; t++) {
                    var i = arguments[t];
                    for (var n in i)
                      Object.prototype.hasOwnProperty.call(i, n) &&
                        (e[n] = i[n]);
                  }
                  return e;
                }),
            Cs.apply(this, arguments)
          );
        }
        function Os(e, t) {
          (e.prototype = Object.create(t.prototype)),
            (e.prototype.constructor = e),
            Is(e, t);
        }
        function Is(e, t) {
          return (
            (Is = Object.setPrototypeOf
              ? Object.setPrototypeOf.bind()
              : function (e, t) {
                  return (e.__proto__ = t), e;
                }),
            Is(e, t)
          );
        }
        function Ms(e) {
          if (void 0 === e)
            throw new ReferenceError(
              "this hasn't been initialised - super() hasn't been called"
            );
          return e;
        }
        function Ls(e, t) {
          (null == t || t > e.length) && (t = e.length);
          for (var i = 0, n = new Array(t); i < t; i++) n[i] = e[i];
          return n;
        }
        function Ps(e, t) {
          var i =
            ("undefined" != typeof Symbol && e[Symbol.iterator]) ||
            e["@@iterator"];
          if (i) return (i = i.call(e)).next.bind(i);
          if (
            Array.isArray(e) ||
            (i = (function (e, t) {
              if (e) {
                if ("string" == typeof e) return Ls(e, t);
                var i = Object.prototype.toString.call(e).slice(8, -1);
                return (
                  "Object" === i && e.constructor && (i = e.constructor.name),
                  "Map" === i || "Set" === i
                    ? Array.from(e)
                    : "Arguments" === i ||
                      /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)
                    ? Ls(e, t)
                    : void 0
                );
              }
            })(e)) ||
            (t && e && "number" == typeof e.length)
          ) {
            i && (e = i);
            var n = 0;
            return function () {
              return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
            };
          }
          throw new TypeError(
            "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
          );
        }
        !(function (e) {
          (e[(e.Init = 0)] = "Init"),
            (e[(e.Loading = 1)] = "Loading"),
            (e[(e.Loaded = 2)] = "Loaded"),
            (e[(e.Rendered = 3)] = "Rendered"),
            (e[(e.Error = 4)] = "Error");
        })(_s || (_s = {}));
        var Ds,
          Rs,
          Ns,
          Fs,
          Bs,
          zs,
          js,
          Hs = {},
          Ys = [],
          Xs =
            /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
        function Ws(e, t) {
          for (var i in t) e[i] = t[i];
          return e;
        }
        function Gs(e) {
          var t = e.parentNode;
          t && t.removeChild(e);
        }
        function qs(e, t, i) {
          var n,
            r,
            a,
            o = {};
          for (a in t)
            "key" == a ? (n = t[a]) : "ref" == a ? (r = t[a]) : (o[a] = t[a]);
          if (
            (arguments.length > 2 &&
              (o.children = arguments.length > 3 ? Ds.call(arguments, 2) : i),
            "function" == typeof e && null != e.defaultProps)
          )
            for (a in e.defaultProps)
              void 0 === o[a] && (o[a] = e.defaultProps[a]);
          return Vs(e, o, n, r, null);
        }
        function Vs(e, t, i, n, r) {
          var a = {
            type: e,
            props: t,
            key: i,
            ref: n,
            __k: null,
            __: null,
            __b: 0,
            __e: null,
            __d: void 0,
            __c: null,
            __h: null,
            constructor: void 0,
            __v: null == r ? ++Ns : r,
          };
          return null == r && null != Rs.vnode && Rs.vnode(a), a;
        }
        function Us() {
          return { current: null };
        }
        function $s(e) {
          return e.children;
        }
        function Zs(e, t) {
          (this.props = e), (this.context = t);
        }
        function Ks(e, t) {
          if (null == t) return e.__ ? Ks(e.__, e.__.__k.indexOf(e) + 1) : null;
          for (var i; t < e.__k.length; t++)
            if (null != (i = e.__k[t]) && null != i.__e) return i.__e;
          return "function" == typeof e.type ? Ks(e) : null;
        }
        function Js(e) {
          var t, i;
          if (null != (e = e.__) && null != e.__c) {
            for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++)
              if (null != (i = e.__k[t]) && null != i.__e) {
                e.__e = e.__c.base = i.__e;
                break;
              }
            return Js(e);
          }
        }
        function Qs(e) {
          ((!e.__d && (e.__d = !0) && Bs.push(e) && !el.__r++) ||
            zs !== Rs.debounceRendering) &&
            ((zs = Rs.debounceRendering) || setTimeout)(el);
        }
        function el() {
          for (var e; (el.__r = Bs.length); )
            (e = Bs.sort(function (e, t) {
              return e.__v.__b - t.__v.__b;
            })),
              (Bs = []),
              e.some(function (e) {
                var t, i, n, r, a, o;
                e.__d &&
                  ((a = (r = (t = e).__v).__e),
                  (o = t.__P) &&
                    ((i = []),
                    ((n = Ws({}, r)).__v = r.__v + 1),
                    ll(
                      o,
                      r,
                      n,
                      t.__n,
                      void 0 !== o.ownerSVGElement,
                      null != r.__h ? [a] : null,
                      i,
                      null == a ? Ks(r) : a,
                      r.__h
                    ),
                    cl(i, r),
                    r.__e != a && Js(r)));
              });
        }
        function tl(e, t, i, n, r, a, o, s, l, c) {
          var u,
            d,
            h,
            f,
            p,
            g,
            m,
            v = (n && n.__k) || Ys,
            b = v.length;
          for (i.__k = [], u = 0; u < t.length; u++)
            if (
              null !=
              (f = i.__k[u] =
                null == (f = t[u]) || "boolean" == typeof f
                  ? null
                  : "string" == typeof f ||
                    "number" == typeof f ||
                    "bigint" == typeof f
                  ? Vs(null, f, null, null, f)
                  : Array.isArray(f)
                  ? Vs($s, { children: f }, null, null, null)
                  : f.__b > 0
                  ? Vs(f.type, f.props, f.key, f.ref ? f.ref : null, f.__v)
                  : f)
            ) {
              if (
                ((f.__ = i),
                (f.__b = i.__b + 1),
                null === (h = v[u]) ||
                  (h && f.key == h.key && f.type === h.type))
              )
                v[u] = void 0;
              else
                for (d = 0; d < b; d++) {
                  if ((h = v[d]) && f.key == h.key && f.type === h.type) {
                    v[d] = void 0;
                    break;
                  }
                  h = null;
                }
              ll(e, f, (h = h || Hs), r, a, o, s, l, c),
                (p = f.__e),
                (d = f.ref) &&
                  h.ref != d &&
                  (m || (m = []),
                  h.ref && m.push(h.ref, null, f),
                  m.push(d, f.__c || p, f)),
                null != p
                  ? (null == g && (g = p),
                    "function" == typeof f.type && f.__k === h.__k
                      ? (f.__d = l = il(f, l, e))
                      : (l = nl(e, f, h, v, p, l)),
                    "function" == typeof i.type && (i.__d = l))
                  : l && h.__e == l && l.parentNode != e && (l = Ks(h));
            }
          for (i.__e = g, u = b; u--; ) null != v[u] && hl(v[u], v[u]);
          if (m) for (u = 0; u < m.length; u++) dl(m[u], m[++u], m[++u]);
        }
        function il(e, t, i) {
          for (var n, r = e.__k, a = 0; r && a < r.length; a++)
            (n = r[a]) &&
              ((n.__ = e),
              (t =
                "function" == typeof n.type
                  ? il(n, t, i)
                  : nl(i, n, n, r, n.__e, t)));
          return t;
        }
        function nl(e, t, i, n, r, a) {
          var o, s, l;
          if (void 0 !== t.__d) (o = t.__d), (t.__d = void 0);
          else if (null == i || r != a || null == r.parentNode)
            e: if (null == a || a.parentNode !== e)
              e.appendChild(r), (o = null);
            else {
              for (s = a, l = 0; (s = s.nextSibling) && l < n.length; l += 1)
                if (s == r) break e;
              e.insertBefore(r, a), (o = a);
            }
          return void 0 !== o ? o : r.nextSibling;
        }
        function rl(e, t, i) {
          "-" === t[0]
            ? e.setProperty(t, i)
            : (e[t] =
                null == i
                  ? ""
                  : "number" != typeof i || Xs.test(t)
                  ? i
                  : i + "px");
        }
        function al(e, t, i, n, r) {
          var a;
          e: if ("style" === t)
            if ("string" == typeof i) e.style.cssText = i;
            else {
              if (("string" == typeof n && (e.style.cssText = n = ""), n))
                for (t in n) (i && t in i) || rl(e.style, t, "");
              if (i) for (t in i) (n && i[t] === n[t]) || rl(e.style, t, i[t]);
            }
          else if ("o" === t[0] && "n" === t[1])
            (a = t !== (t = t.replace(/Capture$/, ""))),
              (t =
                t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2)),
              e.l || (e.l = {}),
              (e.l[t + a] = i),
              i
                ? n || e.addEventListener(t, a ? sl : ol, a)
                : e.removeEventListener(t, a ? sl : ol, a);
          else if ("dangerouslySetInnerHTML" !== t) {
            if (r) 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 == i ? "" : i;
                break e;
              } catch (e) {}
            "function" == typeof i ||
              (null == i || (!1 === i && -1 == t.indexOf("-"))
                ? e.removeAttribute(t)
                : e.setAttribute(t, i));
          }
        }
        function ol(e) {
          this.l[e.type + !1](Rs.event ? Rs.event(e) : e);
        }
        function sl(e) {
          this.l[e.type + !0](Rs.event ? Rs.event(e) : e);
        }
        function ll(e, t, i, n, r, a, o, s, l) {
          var c,
            u,
            d,
            h,
            f,
            p,
            g,
            m,
            v,
            b,
            y,
            x,
            w,
            E,
            _,
            S = t.type;
          if (void 0 !== t.constructor) return null;
          null != i.__h &&
            ((l = i.__h), (s = t.__e = i.__e), (t.__h = null), (a = [s])),
            (c = Rs.__b) && c(t);
          try {
            e: if ("function" == typeof S) {
              if (
                ((m = t.props),
                (v = (c = S.contextType) && n[c.__c]),
                (b = c ? (v ? v.props.value : c.__) : n),
                i.__c
                  ? (g = (u = t.__c = i.__c).__ = u.__E)
                  : ("prototype" in S && S.prototype.render
                      ? (t.__c = u = new S(m, b))
                      : ((t.__c = u = new Zs(m, b)),
                        (u.constructor = S),
                        (u.render = fl)),
                    v && v.sub(u),
                    (u.props = m),
                    u.state || (u.state = {}),
                    (u.context = b),
                    (u.__n = n),
                    (d = u.__d = !0),
                    (u.__h = []),
                    (u._sb = [])),
                null == u.__s && (u.__s = u.state),
                null != S.getDerivedStateFromProps &&
                  (u.__s == u.state && (u.__s = Ws({}, u.__s)),
                  Ws(u.__s, S.getDerivedStateFromProps(m, u.__s))),
                (h = u.props),
                (f = u.state),
                d)
              )
                null == S.getDerivedStateFromProps &&
                  null != u.componentWillMount &&
                  u.componentWillMount(),
                  null != u.componentDidMount &&
                    u.__h.push(u.componentDidMount);
              else {
                if (
                  (null == S.getDerivedStateFromProps &&
                    m !== h &&
                    null != u.componentWillReceiveProps &&
                    u.componentWillReceiveProps(m, b),
                  (!u.__e &&
                    null != u.shouldComponentUpdate &&
                    !1 === u.shouldComponentUpdate(m, u.__s, b)) ||
                    t.__v === i.__v)
                ) {
                  for (
                    u.props = m,
                      u.state = u.__s,
                      t.__v !== i.__v && (u.__d = !1),
                      u.__v = t,
                      t.__e = i.__e,
                      t.__k = i.__k,
                      t.__k.forEach(function (e) {
                        e && (e.__ = t);
                      }),
                      y = 0;
                    y < u._sb.length;
                    y++
                  )
                    u.__h.push(u._sb[y]);
                  (u._sb = []), u.__h.length && o.push(u);
                  break e;
                }
                null != u.componentWillUpdate &&
                  u.componentWillUpdate(m, u.__s, b),
                  null != u.componentDidUpdate &&
                    u.__h.push(function () {
                      u.componentDidUpdate(h, f, p);
                    });
              }
              if (
                ((u.context = b),
                (u.props = m),
                (u.__v = t),
                (u.__P = e),
                (x = Rs.__r),
                (w = 0),
                "prototype" in S && S.prototype.render)
              ) {
                for (
                  u.state = u.__s,
                    u.__d = !1,
                    x && x(t),
                    c = u.render(u.props, u.state, u.context),
                    E = 0;
                  E < u._sb.length;
                  E++
                )
                  u.__h.push(u._sb[E]);
                u._sb = [];
              } else
                do {
                  (u.__d = !1),
                    x && x(t),
                    (c = u.render(u.props, u.state, u.context)),
                    (u.state = u.__s);
                } while (u.__d && ++w < 25);
              (u.state = u.__s),
                null != u.getChildContext &&
                  (n = Ws(Ws({}, n), u.getChildContext())),
                d ||
                  null == u.getSnapshotBeforeUpdate ||
                  (p = u.getSnapshotBeforeUpdate(h, f)),
                (_ =
                  null != c && c.type === $s && null == c.key
                    ? c.props.children
                    : c),
                tl(e, Array.isArray(_) ? _ : [_], t, i, n, r, a, o, s, l),
                (u.base = t.__e),
                (t.__h = null),
                u.__h.length && o.push(u),
                g && (u.__E = u.__ = null),
                (u.__e = !1);
            } else
              null == a && t.__v === i.__v
                ? ((t.__k = i.__k), (t.__e = i.__e))
                : (t.__e = ul(i.__e, t, i, n, r, a, o, l));
            (c = Rs.diffed) && c(t);
          } catch (e) {
            (t.__v = null),
              (l || null != a) &&
                ((t.__e = s), (t.__h = !!l), (a[a.indexOf(s)] = null)),
              Rs.__e(e, t, i);
          }
        }
        function cl(e, t) {
          Rs.__c && Rs.__c(t, e),
            e.some(function (t) {
              try {
                (e = t.__h),
                  (t.__h = []),
                  e.some(function (e) {
                    e.call(t);
                  });
              } catch (e) {
                Rs.__e(e, t.__v);
              }
            });
        }
        function ul(e, t, i, n, r, a, o, s) {
          var l,
            c,
            u,
            d = i.props,
            h = t.props,
            f = t.type,
            p = 0;
          if (("svg" === f && (r = !0), null != a))
            for (; p < a.length; p++)
              if (
                (l = a[p]) &&
                "setAttribute" in l == !!f &&
                (f ? l.localName === f : 3 === l.nodeType)
              ) {
                (e = l), (a[p] = null);
                break;
              }
          if (null == e) {
            if (null === f) return document.createTextNode(h);
            (e = r
              ? document.createElementNS("http://www.w3.org/2000/svg", f)
              : document.createElement(f, h.is && h)),
              (a = null),
              (s = !1);
          }
          if (null === f) d === h || (s && e.data === h) || (e.data = h);
          else {
            if (
              ((a = a && Ds.call(e.childNodes)),
              (c = (d = i.props || Hs).dangerouslySetInnerHTML),
              (u = h.dangerouslySetInnerHTML),
              !s)
            ) {
              if (null != a)
                for (d = {}, p = 0; p < e.attributes.length; p++)
                  d[e.attributes[p].name] = e.attributes[p].value;
              (u || c) &&
                ((u &&
                  ((c && u.__html == c.__html) || u.__html === e.innerHTML)) ||
                  (e.innerHTML = (u && u.__html) || ""));
            }
            if (
              ((function (e, t, i, n, r) {
                var a;
                for (a in i)
                  "children" === a ||
                    "key" === a ||
                    a in t ||
                    al(e, a, null, i[a], n);
                for (a in t)
                  (r && "function" != typeof t[a]) ||
                    "children" === a ||
                    "key" === a ||
                    "value" === a ||
                    "checked" === a ||
                    i[a] === t[a] ||
                    al(e, a, t[a], i[a], n);
              })(e, h, d, r, s),
              u)
            )
              t.__k = [];
            else if (
              ((p = t.props.children),
              tl(
                e,
                Array.isArray(p) ? p : [p],
                t,
                i,
                n,
                r && "foreignObject" !== f,
                a,
                o,
                a ? a[0] : i.__k && Ks(i, 0),
                s
              ),
              null != a)
            )
              for (p = a.length; p--; ) null != a[p] && Gs(a[p]);
            s ||
              ("value" in h &&
                void 0 !== (p = h.value) &&
                (p !== e.value ||
                  ("progress" === f && !p) ||
                  ("option" === f && p !== d.value)) &&
                al(e, "value", p, d.value, !1),
              "checked" in h &&
                void 0 !== (p = h.checked) &&
                p !== e.checked &&
                al(e, "checked", p, d.checked, !1));
          }
          return e;
        }
        function dl(e, t, i) {
          try {
            "function" == typeof e ? e(t) : (e.current = t);
          } catch (e) {
            Rs.__e(e, i);
          }
        }
        function hl(e, t, i) {
          var n, r;
          if (
            (Rs.unmount && Rs.unmount(e),
            (n = e.ref) &&
              ((n.current && n.current !== e.__e) || dl(n, null, t)),
            null != (n = e.__c))
          ) {
            if (n.componentWillUnmount)
              try {
                n.componentWillUnmount();
              } catch (e) {
                Rs.__e(e, t);
              }
            (n.base = n.__P = null), (e.__c = void 0);
          }
          if ((n = e.__k))
            for (r = 0; r < n.length; r++)
              n[r] && hl(n[r], t, i || "function" != typeof e.type);
          i || null == e.__e || Gs(e.__e), (e.__ = e.__e = e.__d = void 0);
        }
        function fl(e, t, i) {
          return this.constructor(e, i);
        }
        function pl(e, t, i) {
          var n, r, a;
          Rs.__ && Rs.__(e, t),
            (r = (n = "function" == typeof i) ? null : (i && i.__k) || t.__k),
            (a = []),
            ll(
              t,
              (e = ((!n && i) || t).__k = qs($s, null, [e])),
              r || Hs,
              Hs,
              void 0 !== t.ownerSVGElement,
              !n && i
                ? [i]
                : r
                ? null
                : t.firstChild
                ? Ds.call(t.childNodes)
                : null,
              a,
              !n && i ? i : r ? r.__e : t.firstChild,
              n
            ),
            cl(a, e);
        }
        function gl() {
          return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
            /[xy]/g,
            function (e) {
              var t = (16 * Math.random()) | 0;
              return ("x" == e ? t : (3 & t) | 8).toString(16);
            }
          );
        }
        (Ds = Ys.slice),
          (Rs = {
            __e: function (e, t, i, n) {
              for (var r, a, o; (t = t.__); )
                if ((r = t.__c) && !r.__)
                  try {
                    if (
                      ((a = r.constructor) &&
                        null != a.getDerivedStateFromError &&
                        (r.setState(a.getDerivedStateFromError(e)),
                        (o = r.__d)),
                      null != r.componentDidCatch &&
                        (r.componentDidCatch(e, n || {}), (o = r.__d)),
                      o)
                    )
                      return (r.__E = r);
                  } catch (t) {
                    e = t;
                  }
              throw e;
            },
          }),
          (Ns = 0),
          (Fs = function (e) {
            return null != e && void 0 === e.constructor;
          }),
          (Zs.prototype.setState = function (e, t) {
            var i;
            (i =
              null != this.__s && this.__s !== this.state
                ? this.__s
                : (this.__s = Ws({}, this.state))),
              "function" == typeof e && (e = e(Ws({}, i), this.props)),
              e && Ws(i, e),
              null != e && this.__v && (t && this._sb.push(t), Qs(this));
          }),
          (Zs.prototype.forceUpdate = function (e) {
            this.__v && ((this.__e = !0), e && this.__h.push(e), Qs(this));
          }),
          (Zs.prototype.render = $s),
          (Bs = []),
          (el.__r = 0),
          (js = 0);
        var ml = (function () {
          function e(e) {
            (this._id = void 0), (this._id = e || gl());
          }
          return (
            Ts(e, [
              {
                key: "id",
                get: function () {
                  return this._id;
                },
              },
            ]),
            e
          );
        })();
        function vl(e) {
          return qs(e.parentElement || "span", {
            dangerouslySetInnerHTML: { __html: e.content },
          });
        }
        function bl(e, t) {
          return qs(vl, { content: e, parentElement: t });
        }
        var yl,
          xl = (function (e) {
            function t(t) {
              var i;
              return ((i = e.call(this) || this).data = void 0), i.update(t), i;
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.cast = function (e) {
                return e instanceof HTMLElement ? bl(e.outerHTML) : e;
              }),
              (i.update = function (e) {
                return (this.data = this.cast(e)), this;
              }),
              t
            );
          })(ml),
          wl = (function (e) {
            function t(t) {
              var i;
              return (
                ((i = e.call(this) || this)._cells = void 0),
                (i.cells = t || []),
                i
              );
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.cell = function (e) {
                return this._cells[e];
              }),
              (i.toArray = function () {
                return this.cells.map(function (e) {
                  return e.data;
                });
              }),
              (t.fromCells = function (e) {
                return new t(
                  e.map(function (e) {
                    return new xl(e.data);
                  })
                );
              }),
              Ts(t, [
                {
                  key: "cells",
                  get: function () {
                    return this._cells;
                  },
                  set: function (e) {
                    this._cells = e;
                  },
                },
                {
                  key: "length",
                  get: function () {
                    return this.cells.length;
                  },
                },
              ]),
              t
            );
          })(ml),
          El = (function (e) {
            function t(t) {
              var i;
              return (
                ((i = e.call(this) || this)._rows = void 0),
                (i._length = void 0),
                (i.rows = t instanceof Array ? t : t instanceof wl ? [t] : []),
                i
              );
            }
            return (
              Os(t, e),
              (t.prototype.toArray = function () {
                return this.rows.map(function (e) {
                  return e.toArray();
                });
              }),
              (t.fromRows = function (e) {
                return new t(
                  e.map(function (e) {
                    return wl.fromCells(e.cells);
                  })
                );
              }),
              (t.fromArray = function (e) {
                return new t(
                  (e = (function (e) {
                    return !e[0] || e[0] instanceof Array ? e : [e];
                  })(e)).map(function (e) {
                    return new wl(
                      e.map(function (e) {
                        return new xl(e);
                      })
                    );
                  })
                );
              }),
              Ts(t, [
                {
                  key: "rows",
                  get: function () {
                    return this._rows;
                  },
                  set: function (e) {
                    this._rows = e;
                  },
                },
                {
                  key: "length",
                  get: function () {
                    return this._length || this.rows.length;
                  },
                  set: function (e) {
                    this._length = e;
                  },
                },
              ]),
              t
            );
          })(ml),
          _l = (function () {
            function e() {
              this.callbacks = void 0;
            }
            var t = e.prototype;
            return (
              (t.init = function (e) {
                this.callbacks || (this.callbacks = {}),
                  e && !this.callbacks[e] && (this.callbacks[e] = []);
              }),
              (t.listeners = function () {
                return this.callbacks;
              }),
              (t.on = function (e, t) {
                return this.init(e), this.callbacks[e].push(t), this;
              }),
              (t.off = function (e, t) {
                var i = e;
                return (
                  this.init(),
                  this.callbacks[i] && 0 !== this.callbacks[i].length
                    ? ((this.callbacks[i] = this.callbacks[i].filter(function (
                        e
                      ) {
                        return e != t;
                      })),
                      this)
                    : this
                );
              }),
              (t.emit = function (e) {
                var t = arguments,
                  i = e;
                return (
                  this.init(i),
                  this.callbacks[i].length > 0 &&
                    (this.callbacks[i].forEach(function (e) {
                      return e.apply(void 0, [].slice.call(t, 1));
                    }),
                    !0)
                );
              }),
              e
            );
          })();
        !(function (e) {
          (e[(e.Initiator = 0)] = "Initiator"),
            (e[(e.ServerFilter = 1)] = "ServerFilter"),
            (e[(e.ServerSort = 2)] = "ServerSort"),
            (e[(e.ServerLimit = 3)] = "ServerLimit"),
            (e[(e.Extractor = 4)] = "Extractor"),
            (e[(e.Transformer = 5)] = "Transformer"),
            (e[(e.Filter = 6)] = "Filter"),
            (e[(e.Sort = 7)] = "Sort"),
            (e[(e.Limit = 8)] = "Limit");
        })(yl || (yl = {}));
        var Sl = (function (e) {
            function t(t) {
              var i;
              return (
                ((i = e.call(this) || this).id = void 0),
                (i._props = void 0),
                (i._props = {}),
                (i.id = gl()),
                t && i.setProps(t),
                i
              );
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.process = function () {
                var e = [].slice.call(arguments);
                this.validateProps instanceof Function &&
                  this.validateProps.apply(this, e),
                  this.emit.apply(this, ["beforeProcess"].concat(e));
                var t = this._process.apply(this, e);
                return this.emit.apply(this, ["afterProcess"].concat(e)), t;
              }),
              (i.setProps = function (e) {
                return (
                  Object.assign(this._props, e),
                  this.emit("propsUpdated", this),
                  this
                );
              }),
              Ts(t, [
                {
                  key: "props",
                  get: function () {
                    return this._props;
                  },
                },
              ]),
              t
            );
          })(_l),
          Al = (function (e) {
            function t() {
              return e.apply(this, arguments) || this;
            }
            return (
              Os(t, e),
              (t.prototype._process = function (e) {
                return this.props.keyword
                  ? ((t = String(this.props.keyword).trim()),
                    (i = this.props.columns),
                    (n = this.props.ignoreHiddenColumns),
                    (r = e),
                    (a = this.props.selector),
                    (t = t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")),
                    new El(
                      r.rows.filter(function (e, r) {
                        return e.cells.some(function (e, o) {
                          if (!e) return !1;
                          if (
                            n &&
                            i &&
                            i[o] &&
                            "object" == typeof i[o] &&
                            i[o].hidden
                          )
                            return !1;
                          var s = "";
                          if ("function" == typeof a) s = a(e.data, r, o);
                          else if ("object" == typeof e.data) {
                            var l = e.data;
                            l &&
                              l.props &&
                              l.props.content &&
                              (s = l.props.content);
                          } else s = String(e.data);
                          return new RegExp(t, "gi").test(s);
                        });
                      })
                    ))
                  : e;
                var t, i, n, r, a;
              }),
              Ts(t, [
                {
                  key: "type",
                  get: function () {
                    return yl.Filter;
                  },
                },
              ]),
              t
            );
          })(Sl);
        function kl() {
          return (
            "gridjs" +
            [].slice.call(arguments).reduce(function (e, t) {
              return e + "-" + t;
            }, "")
          );
        }
        function Tl() {
          return [].slice
            .call(arguments)
            .map(function (e) {
              return e ? e.toString() : "";
            })
            .filter(function (e) {
              return e;
            })
            .reduce(function (e, t) {
              return (e || "") + " " + t;
            }, "")
            .trim();
        }
        var Cl,
          Ol,
          Il,
          Ml,
          Ll = (function (e) {
            function t() {
              return e.apply(this, arguments) || this;
            }
            return (
              Os(t, e),
              (t.prototype._process = function (e) {
                if (!this.props.keyword) return e;
                var t = {};
                return (
                  this.props.url &&
                    (t.url = this.props.url(e.url, this.props.keyword)),
                  this.props.body &&
                    (t.body = this.props.body(e.body, this.props.keyword)),
                  Cs({}, e, t)
                );
              }),
              Ts(t, [
                {
                  key: "type",
                  get: function () {
                    return yl.ServerFilter;
                  },
                },
              ]),
              t
            );
          })(Sl),
          Pl = 0,
          Dl = [],
          Rl = [],
          Nl = Rs.__b,
          Fl = Rs.__r,
          Bl = Rs.diffed,
          zl = Rs.__c,
          jl = Rs.unmount;
        function Hl(e, t) {
          Rs.__h && Rs.__h(Ol, e, Pl || t), (Pl = 0);
          var i = Ol.__H || (Ol.__H = { __: [], __h: [] });
          return e >= i.__.length && i.__.push({ __V: Rl }), i.__[e];
        }
        function Yl(e) {
          return (
            (Pl = 1),
            (function (e, t, i) {
              var n = Hl(Cl++, 2);
              if (
                ((n.t = e),
                !n.__c &&
                  ((n.__ = [
                    Jl(void 0, t),
                    function (e) {
                      var t = n.__N ? n.__N[0] : n.__[0],
                        i = n.t(t, e);
                      t !== i && ((n.__N = [i, n.__[1]]), n.__c.setState({}));
                    },
                  ]),
                  (n.__c = Ol),
                  !Ol.u))
              ) {
                Ol.u = !0;
                var r = Ol.shouldComponentUpdate;
                Ol.shouldComponentUpdate = function (e, t, i) {
                  if (!n.__c.__H) return !0;
                  var a = n.__c.__H.__.filter(function (e) {
                    return e.__c;
                  });
                  if (
                    a.every(function (e) {
                      return !e.__N;
                    })
                  )
                    return !r || r.call(this, e, t, i);
                  var o = !1;
                  return (
                    a.forEach(function (e) {
                      if (e.__N) {
                        var t = e.__[0];
                        (e.__ = e.__N),
                          (e.__N = void 0),
                          t !== e.__[0] && (o = !0);
                      }
                    }),
                    !(!o && n.__c.props === e) && (!r || r.call(this, e, t, i))
                  );
                };
              }
              return n.__N || n.__;
            })(Jl, e)
          );
        }
        function Xl(e, t) {
          var i = Hl(Cl++, 3);
          !Rs.__s &&
            Kl(i.__H, t) &&
            ((i.__ = e), (i.i = t), Ol.__H.__h.push(i));
        }
        function Wl(e) {
          return (
            (Pl = 5),
            Gl(function () {
              return { current: e };
            }, [])
          );
        }
        function Gl(e, t) {
          var i = Hl(Cl++, 7);
          return Kl(i.__H, t)
            ? ((i.__V = e()), (i.i = t), (i.__h = e), i.__V)
            : i.__;
        }
        function ql() {
          for (var e; (e = Dl.shift()); )
            if (e.__P && e.__H)
              try {
                e.__H.__h.forEach($l), e.__H.__h.forEach(Zl), (e.__H.__h = []);
              } catch (t) {
                (e.__H.__h = []), Rs.__e(t, e.__v);
              }
        }
        (Rs.__b = function (e) {
          (Ol = null), Nl && Nl(e);
        }),
          (Rs.__r = function (e) {
            Fl && Fl(e), (Cl = 0);
            var t = (Ol = e.__c).__H;
            t &&
              (Il === Ol
                ? ((t.__h = []),
                  (Ol.__h = []),
                  t.__.forEach(function (e) {
                    e.__N && (e.__ = e.__N),
                      (e.__V = Rl),
                      (e.__N = e.i = void 0);
                  }))
                : (t.__h.forEach($l), t.__h.forEach(Zl), (t.__h = []))),
              (Il = Ol);
          }),
          (Rs.diffed = function (e) {
            Bl && Bl(e);
            var t = e.__c;
            t &&
              t.__H &&
              (t.__H.__h.length &&
                ((1 !== Dl.push(t) && Ml === Rs.requestAnimationFrame) ||
                  ((Ml = Rs.requestAnimationFrame) || Ul)(ql)),
              t.__H.__.forEach(function (e) {
                e.i && (e.__H = e.i),
                  e.__V !== Rl && (e.__ = e.__V),
                  (e.i = void 0),
                  (e.__V = Rl);
              })),
              (Il = Ol = null);
          }),
          (Rs.__c = function (e, t) {
            t.some(function (e) {
              try {
                e.__h.forEach($l),
                  (e.__h = e.__h.filter(function (e) {
                    return !e.__ || Zl(e);
                  }));
              } catch (i) {
                t.some(function (e) {
                  e.__h && (e.__h = []);
                }),
                  (t = []),
                  Rs.__e(i, e.__v);
              }
            }),
              zl && zl(e, t);
          }),
          (Rs.unmount = function (e) {
            jl && jl(e);
            var t,
              i = e.__c;
            i &&
              i.__H &&
              (i.__H.__.forEach(function (e) {
                try {
                  $l(e);
                } catch (e) {
                  t = e;
                }
              }),
              (i.__H = void 0),
              t && Rs.__e(t, i.__v));
          });
        var Vl = "function" == typeof requestAnimationFrame;
        function Ul(e) {
          var t,
            i = function () {
              clearTimeout(n), Vl && cancelAnimationFrame(t), setTimeout(e);
            },
            n = setTimeout(i, 100);
          Vl && (t = requestAnimationFrame(i));
        }
        function $l(e) {
          var t = Ol,
            i = e.__c;
          "function" == typeof i && ((e.__c = void 0), i()), (Ol = t);
        }
        function Zl(e) {
          var t = Ol;
          (e.__c = e.__()), (Ol = t);
        }
        function Kl(e, t) {
          return (
            !e ||
            e.length !== t.length ||
            t.some(function (t, i) {
              return t !== e[i];
            })
          );
        }
        function Jl(e, t) {
          return "function" == typeof t ? t(e) : t;
        }
        function Ql() {
          return (function (e) {
            var t = Ol.context[e.__c],
              i = Hl(Cl++, 9);
            return (
              (i.c = e),
              t
                ? (null == i.__ && ((i.__ = !0), t.sub(Ol)), t.props.value)
                : e.__
            );
          })(Dc);
        }
        var ec = {
            search: { placeholder: "Type a keyword..." },
            sort: {
              sortAsc: "Sort column ascending",
              sortDesc: "Sort column descending",
            },
            pagination: {
              previous: "Previous",
              next: "Next",
              navigate: function (e, t) {
                return "Page " + e + " of " + t;
              },
              page: function (e) {
                return "Page " + e;
              },
              showing: "Showing",
              of: "of",
              to: "to",
              results: "results",
            },
            loading: "Loading...",
            noRecordsFound: "No matching records found",
            error: "An error happened while fetching the data",
          },
          tc = (function () {
            function e(e) {
              (this._language = void 0),
                (this._defaultLanguage = void 0),
                (this._language = e),
                (this._defaultLanguage = ec);
            }
            var t = e.prototype;
            return (
              (t.getString = function (e, t) {
                if (!t || !e) return null;
                var i = e.split("."),
                  n = i[0];
                if (t[n]) {
                  var r = t[n];
                  return "string" == typeof r
                    ? function () {
                        return r;
                      }
                    : "function" == typeof r
                    ? r
                    : this.getString(i.slice(1).join("."), r);
                }
                return null;
              }),
              (t.translate = function (e) {
                var t;
                return (t =
                  this.getString(e, this._language) ||
                  this.getString(e, this._defaultLanguage))
                  ? t.apply(void 0, [].slice.call(arguments, 1))
                  : e;
              }),
              e
            );
          })();
        function ic() {
          var e = Ql();
          return function (t) {
            var i;
            return (i = e.translator).translate.apply(
              i,
              [t].concat([].slice.call(arguments, 1))
            );
          };
        }
        var nc = function (e) {
          return function (t) {
            return Cs({}, t, { search: { keyword: e } });
          };
        };
        function rc() {
          return Ql().store;
        }
        function ac(e) {
          var t = rc(),
            i = Yl(e(t.getState())),
            n = i[0],
            r = i[1];
          return (
            Xl(function () {
              return t.subscribe(function () {
                var i = e(t.getState());
                n !== i && r(i);
              });
            }, []),
            n
          );
        }
        function oc() {
          var e,
            t = Yl(void 0),
            i = t[0],
            n = t[1],
            r = Ql(),
            a = r.search,
            o = ic(),
            s = rc().dispatch,
            l = ac(function (e) {
              return e.search;
            });
          Xl(
            function () {
              i && i.setProps({ keyword: null == l ? void 0 : l.keyword });
            },
            [l, i]
          ),
            Xl(
              function () {
                n(
                  a.server
                    ? new Ll({
                        keyword: a.keyword,
                        url: a.server.url,
                        body: a.server.body,
                      })
                    : new Al({
                        keyword: a.keyword,
                        columns: r.header && r.header.columns,
                        ignoreHiddenColumns:
                          a.ignoreHiddenColumns ||
                          void 0 === a.ignoreHiddenColumns,
                        selector: a.selector,
                      })
                ),
                  a.keyword && s(nc(a.keyword));
              },
              [a]
            ),
            Xl(
              function () {
                return (
                  r.pipeline.register(i),
                  function () {
                    return r.pipeline.unregister(i);
                  }
                );
              },
              [r, i]
            );
          var c,
            u,
            d,
            h = (function (e, t) {
              return (
                (Pl = 8),
                Gl(function () {
                  return e;
                }, t)
              );
            })(
              ((c = function (e) {
                e.target instanceof HTMLInputElement && s(nc(e.target.value));
              }),
              (u = i instanceof Ll ? a.debounceTimeout || 250 : 0),
              function () {
                var e = arguments;
                return new Promise(function (t) {
                  d && clearTimeout(d),
                    (d = setTimeout(function () {
                      return t(c.apply(void 0, [].slice.call(e)));
                    }, u));
                });
              }),
              [a, i]
            );
          return qs(
            "div",
            {
              className: kl(
                Tl("search", null == (e = r.className) ? void 0 : e.search)
              ),
            },
            qs("input", {
              type: "search",
              placeholder: o("search.placeholder"),
              "aria-label": o("search.placeholder"),
              onInput: h,
              className: Tl(kl("input"), kl("search", "input")),
              value: (null == l ? void 0 : l.keyword) || "",
            })
          );
        }
        var sc = (function (e) {
            function t() {
              return e.apply(this, arguments) || this;
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.validateProps = function () {
                if (
                  isNaN(Number(this.props.limit)) ||
                  isNaN(Number(this.props.page))
                )
                  throw Error("Invalid parameters passed");
              }),
              (i._process = function (e) {
                var t = this.props.page;
                return new El(
                  e.rows.slice(t * this.props.limit, (t + 1) * this.props.limit)
                );
              }),
              Ts(t, [
                {
                  key: "type",
                  get: function () {
                    return yl.Limit;
                  },
                },
              ]),
              t
            );
          })(Sl),
          lc = (function (e) {
            function t() {
              return e.apply(this, arguments) || this;
            }
            return (
              Os(t, e),
              (t.prototype._process = function (e) {
                var t = {};
                return (
                  this.props.url &&
                    (t.url = this.props.url(
                      e.url,
                      this.props.page,
                      this.props.limit
                    )),
                  this.props.body &&
                    (t.body = this.props.body(
                      e.body,
                      this.props.page,
                      this.props.limit
                    )),
                  Cs({}, e, t)
                );
              }),
              Ts(t, [
                {
                  key: "type",
                  get: function () {
                    return yl.ServerLimit;
                  },
                },
              ]),
              t
            );
          })(Sl);
        function cc() {
          var e = Ql(),
            t = e.pagination,
            i = t.server,
            n = t.summary,
            r = void 0 === n || n,
            a = t.nextButton,
            o = void 0 === a || a,
            s = t.prevButton,
            l = void 0 === s || s,
            c = t.buttonsCount,
            u = void 0 === c ? 3 : c,
            d = t.limit,
            h = void 0 === d ? 10 : d,
            f = t.page,
            p = void 0 === f ? 0 : f,
            g = t.resetPageOnUpdate,
            m = void 0 === g || g,
            v = Wl(null),
            b = Yl(p),
            y = b[0],
            x = b[1],
            w = Yl(0),
            E = w[0],
            _ = w[1],
            S = ic();
          Xl(function () {
            return (
              (v.current = i
                ? new lc({ limit: h, page: y, url: i.url, body: i.body })
                : new sc({ limit: h, page: y })),
              v.current instanceof lc
                ? e.pipeline.on("afterProcess", function (e) {
                    return _(e.length);
                  })
                : v.current instanceof sc &&
                  v.current.on("beforeProcess", function (e) {
                    return _(e.length);
                  }),
              e.pipeline.on("updated", A),
              e.pipeline.register(v.current),
              e.pipeline.on("error", function () {
                _(0), x(0);
              }),
              function () {
                e.pipeline.unregister(v.current), e.pipeline.off("updated", A);
              }
            );
          }, []);
          var A = function (e) {
              m && e !== v.current && x(0);
            },
            k = function () {
              return Math.ceil(E / h);
            },
            T = function (e) {
              if (e >= k() || e < 0 || e === y) return null;
              x(e), v.current.setProps({ page: e });
            };
          return qs(
            "div",
            { className: Tl(kl("pagination"), e.className.pagination) },
            qs(
              $s,
              null,
              r &&
                E > 0 &&
                qs(
                  "div",
                  {
                    role: "status",
                    "aria-live": "polite",
                    className: Tl(kl("summary"), e.className.paginationSummary),
                    title: S("pagination.navigate", y + 1, k()),
                  },
                  S("pagination.showing"),
                  " ",
                  qs("b", null, S("" + (y * h + 1))),
                  " ",
                  S("pagination.to"),
                  " ",
                  qs("b", null, S("" + Math.min((y + 1) * h, E))),
                  " ",
                  S("pagination.of"),
                  " ",
                  qs("b", null, S("" + E)),
                  " ",
                  S("pagination.results")
                )
            ),
            qs(
              "div",
              { className: kl("pages") },
              l &&
                qs(
                  "button",
                  {
                    tabIndex: 0,
                    role: "button",
                    disabled: 0 === y,
                    onClick: function () {
                      return T(y - 1);
                    },
                    title: S("pagination.previous"),
                    "aria-label": S("pagination.previous"),
                    className: Tl(
                      e.className.paginationButton,
                      e.className.paginationButtonPrev
                    ),
                  },
                  S("pagination.previous")
                ),
              (function () {
                if (u <= 0) return null;
                var t = Math.min(k(), u),
                  i = Math.min(y, Math.floor(t / 2));
                return (
                  y + Math.floor(t / 2) >= k() && (i = t - (k() - y)),
                  qs(
                    $s,
                    null,
                    k() > t &&
                      y - i > 0 &&
                      qs(
                        $s,
                        null,
                        qs(
                          "button",
                          {
                            tabIndex: 0,
                            role: "button",
                            onClick: function () {
                              return T(0);
                            },
                            title: S("pagination.firstPage"),
                            "aria-label": S("pagination.firstPage"),
                            className: e.className.paginationButton,
                          },
                          S("1")
                        ),
                        qs(
                          "button",
                          {
                            tabIndex: -1,
                            className: Tl(
                              kl("spread"),
                              e.className.paginationButton
                            ),
                          },
                          "..."
                        )
                      ),
                    Array.from(Array(t).keys())
                      .map(function (e) {
                        return y + (e - i);
                      })
                      .map(function (t) {
                        return qs(
                          "button",
                          {
                            tabIndex: 0,
                            role: "button",
                            onClick: function () {
                              return T(t);
                            },
                            className: Tl(
                              y === t
                                ? Tl(
                                    kl("currentPage"),
                                    e.className.paginationButtonCurrent
                                  )
                                : null,
                              e.className.paginationButton
                            ),
                            title: S("pagination.page", t + 1),
                            "aria-label": S("pagination.page", t + 1),
                          },
                          S("" + (t + 1))
                        );
                      }),
                    k() > t &&
                      k() > y + i + 1 &&
                      qs(
                        $s,
                        null,
                        qs(
                          "button",
                          {
                            tabIndex: -1,
                            className: Tl(
                              kl("spread"),
                              e.className.paginationButton
                            ),
                          },
                          "..."
                        ),
                        qs(
                          "button",
                          {
                            tabIndex: 0,
                            role: "button",
                            onClick: function () {
                              return T(k() - 1);
                            },
                            title: S("pagination.page", k()),
                            "aria-label": S("pagination.page", k()),
                            className: e.className.paginationButton,
                          },
                          S("" + k())
                        )
                      )
                  )
                );
              })(),
              o &&
                qs(
                  "button",
                  {
                    tabIndex: 0,
                    role: "button",
                    disabled: k() === y + 1 || 0 === k(),
                    onClick: function () {
                      return T(y + 1);
                    },
                    title: S("pagination.next"),
                    "aria-label": S("pagination.next"),
                    className: Tl(
                      e.className.paginationButton,
                      e.className.paginationButtonNext
                    ),
                  },
                  S("pagination.next")
                )
            )
          );
        }
        function uc(e, t) {
          return "string" == typeof e
            ? e.indexOf("%") > -1
              ? (t / 100) * parseInt(e, 10)
              : parseInt(e, 10)
            : e;
        }
        function dc(e) {
          return e ? Math.floor(e) + "px" : "";
        }
        function hc(e) {
          var t = e.tableRef.cloneNode(!0);
          return (
            (t.style.position = "absolute"),
            (t.style.width = "100%"),
            (t.style.zIndex = "-2147483640"),
            (t.style.visibility = "hidden"),
            qs("div", {
              ref: function (e) {
                e && e.appendChild(t);
              },
            })
          );
        }
        function fc(e) {
          if (!e) return "";
          var t = e.split(" ");
          return 1 === t.length && /([a-z][A-Z])+/g.test(e)
            ? e
            : t
                .map(function (e, t) {
                  return 0 == t
                    ? e.toLowerCase()
                    : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
                })
                .join("");
        }
        var pc,
          gc = new ((function () {
            function e() {}
            var t = e.prototype;
            return (
              (t.format = function (e, t) {
                return "[Grid.js] [" + t.toUpperCase() + "]: " + e;
              }),
              (t.error = function (e, t) {
                void 0 === t && (t = !1);
                var i = this.format(e, "error");
                if (t) throw Error(i);
                console.error(i);
              }),
              (t.warn = function (e) {
                console.warn(this.format(e, "warn"));
              }),
              (t.info = function (e) {
                console.info(this.format(e, "info"));
              }),
              e
            );
          })())();
        !(function (e) {
          (e[(e.Header = 0)] = "Header"),
            (e[(e.Footer = 1)] = "Footer"),
            (e[(e.Cell = 2)] = "Cell");
        })(pc || (pc = {}));
        var mc = (function () {
          function e() {
            (this.plugins = void 0), (this.plugins = []);
          }
          var t = e.prototype;
          return (
            (t.get = function (e) {
              return this.plugins.find(function (t) {
                return t.id === e;
              });
            }),
            (t.add = function (e) {
              return e.id
                ? this.get(e.id)
                  ? (gc.error("Duplicate plugin ID: " + e.id), this)
                  : (this.plugins.push(e), this)
                : (gc.error("Plugin ID cannot be empty"), this);
            }),
            (t.remove = function (e) {
              var t = this.get(e);
              return t && this.plugins.splice(this.plugins.indexOf(t), 1), this;
            }),
            (t.list = function (e) {
              return (
                null != e || null != e
                  ? this.plugins.filter(function (t) {
                      return t.position === e;
                    })
                  : this.plugins
              ).sort(function (e, t) {
                return e.order && t.order ? e.order - t.order : 1;
              });
            }),
            e
          );
        })();
        function vc(e) {
          var t = this,
            i = Ql();
          if (e.pluginId) {
            var n = i.plugin.get(e.pluginId);
            return n
              ? qs($s, {}, qs(n.component, Cs({ plugin: n }, e.props)))
              : null;
          }
          return void 0 !== e.position
            ? qs(
                $s,
                {},
                i.plugin.list(e.position).map(function (e) {
                  return qs(e.component, Cs({ plugin: e }, t.props.props));
                })
              )
            : null;
        }
        var bc = (function (e) {
            function t() {
              var t;
              return (
                ((t = e.call(this) || this)._columns = void 0),
                (t._columns = []),
                t
              );
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.adjustWidth = function (e, i, n) {
                var r = e.container,
                  a = e.autoWidth;
                if (!r) return this;
                var o = r.clientWidth,
                  s = {};
                i.current &&
                  a &&
                  (pl(qs(hc, { tableRef: i.current }), n.current),
                  (s = (function (e) {
                    var t = e.querySelector("table");
                    if (!t) return {};
                    var i = t.className,
                      n = t.style.cssText;
                    (t.className = i + " " + kl("shadowTable")),
                      (t.style.tableLayout = "auto"),
                      (t.style.width = "auto"),
                      (t.style.padding = "0"),
                      (t.style.margin = "0"),
                      (t.style.border = "none"),
                      (t.style.outline = "none");
                    var r = Array.from(
                      t.parentNode.querySelectorAll("thead th")
                    ).reduce(function (e, t) {
                      var i;
                      return (
                        (t.style.width = t.clientWidth + "px"),
                        Cs(
                          (((i = {})[t.getAttribute("data-column-id")] = {
                            minWidth: t.clientWidth,
                          }),
                          i),
                          e
                        )
                      );
                    }, {});
                    return (
                      (t.className = i),
                      (t.style.cssText = n),
                      (t.style.tableLayout = "auto"),
                      Array.from(
                        t.parentNode.querySelectorAll("thead th")
                      ).reduce(function (e, t) {
                        return (
                          (e[t.getAttribute("data-column-id")].width =
                            t.clientWidth),
                          e
                        );
                      }, r)
                    );
                  })(n.current)));
                for (
                  var l,
                    c = Ps(
                      t.tabularFormat(this.columns).reduce(function (e, t) {
                        return e.concat(t);
                      }, [])
                    );
                  !(l = c()).done;

                ) {
                  var u = l.value;
                  (u.columns && u.columns.length > 0) ||
                    (!u.width && a
                      ? u.id in s &&
                        ((u.width = dc(s[u.id].width)),
                        (u.minWidth = dc(s[u.id].minWidth)))
                      : (u.width = dc(uc(u.width, o))));
                }
                return i.current && a && pl(null, n.current), this;
              }),
              (i.setSort = function (e, t) {
                for (
                  var i, n = Ps(t || this.columns || []);
                  !(i = n()).done;

                ) {
                  var r = i.value;
                  r.columns && r.columns.length > 0
                    ? (r.sort = void 0)
                    : void 0 === r.sort && e
                    ? (r.sort = {})
                    : r.sort
                    ? "object" == typeof r.sort && (r.sort = Cs({}, r.sort))
                    : (r.sort = void 0),
                    r.columns && this.setSort(e, r.columns);
                }
              }),
              (i.setResizable = function (e, t) {
                for (
                  var i, n = Ps(t || this.columns || []);
                  !(i = n()).done;

                ) {
                  var r = i.value;
                  void 0 === r.resizable && (r.resizable = e),
                    r.columns && this.setResizable(e, r.columns);
                }
              }),
              (i.setID = function (e) {
                for (
                  var t, i = Ps(e || this.columns || []);
                  !(t = i()).done;

                ) {
                  var n = t.value;
                  n.id || "string" != typeof n.name || (n.id = fc(n.name)),
                    n.id ||
                      gc.error(
                        'Could not find a valid ID for one of the columns. Make sure a valid "id" is set for all columns.'
                      ),
                    n.columns && this.setID(n.columns);
                }
              }),
              (i.populatePlugins = function (e, t) {
                for (var i, n = Ps(t); !(i = n()).done; ) {
                  var r = i.value;
                  void 0 !== r.plugin &&
                    e.add(Cs({ id: r.id }, r.plugin, { position: pc.Cell }));
                }
              }),
              (t.fromColumns = function (e) {
                for (var i, n = new t(), r = Ps(e); !(i = r()).done; ) {
                  var a = i.value;
                  if ("string" == typeof a || Fs(a))
                    n.columns.push({ name: a });
                  else if ("object" == typeof a) {
                    var o = a;
                    o.columns && (o.columns = t.fromColumns(o.columns).columns),
                      "object" == typeof o.plugin &&
                        void 0 === o.data &&
                        (o.data = null),
                      n.columns.push(a);
                  }
                }
                return n;
              }),
              (t.createFromConfig = function (e) {
                var i = new t();
                return (
                  e.from
                    ? (i.columns = t.fromHTMLTable(e.from).columns)
                    : e.columns
                    ? (i.columns = t.fromColumns(e.columns).columns)
                    : !e.data ||
                      "object" != typeof e.data[0] ||
                      e.data[0] instanceof Array ||
                      (i.columns = Object.keys(e.data[0]).map(function (e) {
                        return { name: e };
                      })),
                  i.columns.length
                    ? (i.setID(),
                      i.setSort(e.sort),
                      i.setResizable(e.resizable),
                      i.populatePlugins(e.plugin, i.columns),
                      i)
                    : null
                );
              }),
              (t.fromHTMLTable = function (e) {
                for (
                  var i,
                    n = new t(),
                    r = Ps(e.querySelector("thead").querySelectorAll("th"));
                  !(i = r()).done;

                ) {
                  var a = i.value;
                  n.columns.push({ name: a.innerHTML, width: a.width });
                }
                return n;
              }),
              (t.tabularFormat = function (e) {
                var t = [],
                  i = e || [],
                  n = [];
                if (i && i.length) {
                  t.push(i);
                  for (var r, a = Ps(i); !(r = a()).done; ) {
                    var o = r.value;
                    o.columns && o.columns.length && (n = n.concat(o.columns));
                  }
                  n.length && (t = t.concat(this.tabularFormat(n)));
                }
                return t;
              }),
              (t.leafColumns = function (e) {
                var t = [],
                  i = e || [];
                if (i && i.length)
                  for (var n, r = Ps(i); !(n = r()).done; ) {
                    var a = n.value;
                    (a.columns && 0 !== a.columns.length) || t.push(a),
                      a.columns && (t = t.concat(this.leafColumns(a.columns)));
                  }
                return t;
              }),
              (t.maximumDepth = function (e) {
                return this.tabularFormat([e]).length - 1;
              }),
              Ts(t, [
                {
                  key: "columns",
                  get: function () {
                    return this._columns;
                  },
                  set: function (e) {
                    this._columns = e;
                  },
                },
                {
                  key: "visibleColumns",
                  get: function () {
                    return this._columns.filter(function (e) {
                      return !e.hidden;
                    });
                  },
                },
              ]),
              t
            );
          })(ml),
          yc = function () {},
          xc = (function (e) {
            function t(t) {
              var i;
              return ((i = e.call(this) || this).data = void 0), i.set(t), i;
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.get = function () {
                try {
                  return Promise.resolve(this.data()).then(function (e) {
                    return { data: e, total: e.length };
                  });
                } catch (e) {
                  return Promise.reject(e);
                }
              }),
              (i.set = function (e) {
                return (
                  e instanceof Array
                    ? (this.data = function () {
                        return e;
                      })
                    : e instanceof Function && (this.data = e),
                  this
                );
              }),
              t
            );
          })(yc),
          wc = (function (e) {
            function t(t) {
              var i;
              return (
                ((i = e.call(this) || this).options = void 0),
                (i.options = t),
                i
              );
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.handler = function (e) {
                return "function" == typeof this.options.handle
                  ? this.options.handle(e)
                  : e.ok
                  ? e.json()
                  : (gc.error(
                      "Could not fetch data: " +
                        e.status +
                        " - " +
                        e.statusText,
                      !0
                    ),
                    null);
              }),
              (i.get = function (e) {
                var t = Cs({}, this.options, e);
                return "function" == typeof t.data
                  ? t.data(t)
                  : fetch(t.url, t)
                      .then(this.handler.bind(this))
                      .then(function (e) {
                        return {
                          data: t.then(e),
                          total:
                            "function" == typeof t.total ? t.total(e) : void 0,
                        };
                      });
              }),
              t
            );
          })(yc),
          Ec = (function () {
            function e() {}
            return (
              (e.createFromConfig = function (e) {
                var t = null;
                return (
                  e.data && (t = new xc(e.data)),
                  e.from &&
                    ((t = new xc(this.tableElementToArray(e.from))),
                    (e.from.style.display = "none")),
                  e.server && (t = new wc(e.server)),
                  t || gc.error("Could not determine the storage type", !0),
                  t
                );
              }),
              (e.tableElementToArray = function (e) {
                for (
                  var t,
                    i,
                    n = [],
                    r = Ps(e.querySelector("tbody").querySelectorAll("tr"));
                  !(t = r()).done;

                ) {
                  for (
                    var a, o = [], s = Ps(t.value.querySelectorAll("td"));
                    !(a = s()).done;

                  ) {
                    var l = a.value;
                    1 === l.childNodes.length &&
                    l.childNodes[0].nodeType === Node.TEXT_NODE
                      ? o.push(
                          ((i = l.innerHTML),
                          new DOMParser().parseFromString(i, "text/html")
                            .documentElement.textContent)
                        )
                      : o.push(bl(l.innerHTML));
                  }
                  n.push(o);
                }
                return n;
              }),
              e
            );
          })(),
          _c =
            "undefined" != typeof Symbol
              ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))
              : "@@iterator";
        function Sc(e, t, i) {
          if (!e.s) {
            if (i instanceof Ac) {
              if (!i.s) return void (i.o = Sc.bind(null, e, t));
              1 & t && (t = i.s), (i = i.v);
            }
            if (i && i.then)
              return void i.then(Sc.bind(null, e, t), Sc.bind(null, e, 2));
            (e.s = t), (e.v = i);
            var n = e.o;
            n && n(e);
          }
        }
        var Ac = (function () {
          function e() {}
          return (
            (e.prototype.then = function (t, i) {
              var n = new e(),
                r = this.s;
              if (r) {
                var a = 1 & r ? t : i;
                if (a) {
                  try {
                    Sc(n, 1, a(this.v));
                  } catch (e) {
                    Sc(n, 2, e);
                  }
                  return n;
                }
                return this;
              }
              return (
                (this.o = function (e) {
                  try {
                    var r = e.v;
                    1 & e.s
                      ? Sc(n, 1, t ? t(r) : r)
                      : i
                      ? Sc(n, 1, i(r))
                      : Sc(n, 2, r);
                  } catch (e) {
                    Sc(n, 2, e);
                  }
                }),
                n
              );
            }),
            e
          );
        })();
        function kc(e) {
          return e instanceof Ac && 1 & e.s;
        }
        var Tc = (function (e) {
            function t(t) {
              var i;
              return (
                ((i = e.call(this) || this)._steps = new Map()),
                (i.cache = new Map()),
                (i.lastProcessorIndexUpdated = -1),
                t &&
                  t.forEach(function (e) {
                    return i.register(e);
                  }),
                i
              );
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.clearCache = function () {
                (this.cache = new Map()), (this.lastProcessorIndexUpdated = -1);
              }),
              (i.register = function (e, t) {
                if ((void 0 === t && (t = null), e)) {
                  if (null === e.type)
                    throw Error("Processor type is not defined");
                  e.on("propsUpdated", this.processorPropsUpdated.bind(this)),
                    this.addProcessorByPriority(e, t),
                    this.afterRegistered(e);
                }
              }),
              (i.unregister = function (e) {
                if (e) {
                  var t = this._steps.get(e.type);
                  t &&
                    t.length &&
                    (this._steps.set(
                      e.type,
                      t.filter(function (t) {
                        return t != e;
                      })
                    ),
                    this.emit("updated", e));
                }
              }),
              (i.addProcessorByPriority = function (e, t) {
                var i = this._steps.get(e.type);
                if (!i) {
                  var n = [];
                  this._steps.set(e.type, n), (i = n);
                }
                if (null === t || t < 0) i.push(e);
                else if (i[t]) {
                  var r = i.slice(0, t - 1),
                    a = i.slice(t + 1);
                  this._steps.set(e.type, r.concat(e).concat(a));
                } else i[t] = e;
              }),
              (i.getStepsByType = function (e) {
                return this.steps.filter(function (t) {
                  return t.type === e;
                });
              }),
              (i.getSortedProcessorTypes = function () {
                return Object.keys(yl)
                  .filter(function (e) {
                    return !isNaN(Number(e));
                  })
                  .map(function (e) {
                    return Number(e);
                  });
              }),
              (i.process = function (e) {
                try {
                  var t = function (e) {
                      return (
                        (i.lastProcessorIndexUpdated = r.length),
                        i.emit("afterProcess", a),
                        a
                      );
                    },
                    i = this,
                    n = i.lastProcessorIndexUpdated,
                    r = i.steps,
                    a = e,
                    o = (function (e, t) {
                      try {
                        var o = (function (e, t, i) {
                          if ("function" == typeof e[_c]) {
                            var n,
                              r,
                              a,
                              o = e[_c]();
                            if (
                              ((function e(i) {
                                try {
                                  for (; !(n = o.next()).done; )
                                    if ((i = t(n.value)) && i.then) {
                                      if (!kc(i))
                                        return void i.then(
                                          e,
                                          a ||
                                            (a = Sc.bind(
                                              null,
                                              (r = new Ac()),
                                              2
                                            ))
                                        );
                                      i = i.v;
                                    }
                                  r ? Sc(r, 1, i) : (r = i);
                                } catch (e) {
                                  Sc(r || (r = new Ac()), 2, e);
                                }
                              })(),
                              o.return)
                            ) {
                              var s = function (e) {
                                try {
                                  n.done || o.return();
                                } catch (e) {}
                                return e;
                              };
                              if (r && r.then)
                                return r.then(s, function (e) {
                                  throw s(e);
                                });
                              s();
                            }
                            return r;
                          }
                          if (!("length" in e))
                            throw new TypeError("Object is not iterable");
                          for (var l = [], c = 0; c < e.length; c++)
                            l.push(e[c]);
                          return (function (e, t, i) {
                            var n,
                              r,
                              a = -1;
                            return (
                              (function i(o) {
                                try {
                                  for (; ++a < e.length; )
                                    if ((o = t(a)) && o.then) {
                                      if (!kc(o))
                                        return void o.then(
                                          i,
                                          r ||
                                            (r = Sc.bind(
                                              null,
                                              (n = new Ac()),
                                              2
                                            ))
                                        );
                                      o = o.v;
                                    }
                                  n ? Sc(n, 1, o) : (n = o);
                                } catch (e) {
                                  Sc(n || (n = new Ac()), 2, e);
                                }
                              })(),
                              n
                            );
                          })(l, function (e) {
                            return t(l[e]);
                          });
                        })(r, function (e) {
                          var t = i.findProcessorIndexByID(e.id),
                            r = (function () {
                              if (t >= n)
                                return Promise.resolve(e.process(a)).then(
                                  function (t) {
                                    i.cache.set(e.id, (a = t));
                                  }
                                );
                              a = i.cache.get(e.id);
                            })();
                          if (r && r.then) return r.then(function () {});
                        });
                      } catch (e) {
                        return t(e);
                      }
                      return o && o.then ? o.then(void 0, t) : o;
                    })(0, function (e) {
                      throw (gc.error(e), i.emit("error", a), e);
                    });
                  return Promise.resolve(o && o.then ? o.then(t) : t());
                } catch (e) {
                  return Promise.reject(e);
                }
              }),
              (i.findProcessorIndexByID = function (e) {
                return this.steps.findIndex(function (t) {
                  return t.id == e;
                });
              }),
              (i.setLastProcessorIndex = function (e) {
                var t = this.findProcessorIndexByID(e.id);
                this.lastProcessorIndexUpdated > t &&
                  (this.lastProcessorIndexUpdated = t);
              }),
              (i.processorPropsUpdated = function (e) {
                this.setLastProcessorIndex(e),
                  this.emit("propsUpdated"),
                  this.emit("updated", e);
              }),
              (i.afterRegistered = function (e) {
                this.setLastProcessorIndex(e),
                  this.emit("afterRegister"),
                  this.emit("updated", e);
              }),
              Ts(t, [
                {
                  key: "steps",
                  get: function () {
                    for (
                      var e, t = [], i = Ps(this.getSortedProcessorTypes());
                      !(e = i()).done;

                    ) {
                      var n = this._steps.get(e.value);
                      n && n.length && (t = t.concat(n));
                    }
                    return t.filter(function (e) {
                      return e;
                    });
                  },
                },
              ]),
              t
            );
          })(_l),
          Cc = (function (e) {
            function t() {
              return e.apply(this, arguments) || this;
            }
            return (
              Os(t, e),
              (t.prototype._process = function (e) {
                try {
                  return Promise.resolve(this.props.storage.get(e));
                } catch (e) {
                  return Promise.reject(e);
                }
              }),
              Ts(t, [
                {
                  key: "type",
                  get: function () {
                    return yl.Extractor;
                  },
                },
              ]),
              t
            );
          })(Sl),
          Oc = (function (e) {
            function t() {
              return e.apply(this, arguments) || this;
            }
            return (
              Os(t, e),
              (t.prototype._process = function (e) {
                var t = El.fromArray(e.data);
                return (t.length = e.total), t;
              }),
              Ts(t, [
                {
                  key: "type",
                  get: function () {
                    return yl.Transformer;
                  },
                },
              ]),
              t
            );
          })(Sl),
          Ic = (function (e) {
            function t() {
              return e.apply(this, arguments) || this;
            }
            return (
              Os(t, e),
              (t.prototype._process = function () {
                return Object.entries(this.props.serverStorageOptions)
                  .filter(function (e) {
                    return "function" != typeof e[1];
                  })
                  .reduce(function (e, t) {
                    var i;
                    return Cs({}, e, (((i = {})[t[0]] = t[1]), i));
                  }, {});
              }),
              Ts(t, [
                {
                  key: "type",
                  get: function () {
                    return yl.Initiator;
                  },
                },
              ]),
              t
            );
          })(Sl),
          Mc = (function (e) {
            function t() {
              return e.apply(this, arguments) || this;
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.castData = function (e) {
                if (!e || !e.length) return [];
                if (!this.props.header || !this.props.header.columns) return e;
                var t = bc.leafColumns(this.props.header.columns);
                return e[0] instanceof Array
                  ? e.map(function (e) {
                      var i = 0;
                      return t.map(function (t, n) {
                        return void 0 !== t.data
                          ? (i++,
                            "function" == typeof t.data ? t.data(e) : t.data)
                          : e[n - i];
                      });
                    })
                  : "object" != typeof e[0] || e[0] instanceof Array
                  ? []
                  : e.map(function (e) {
                      return t.map(function (t, i) {
                        return void 0 !== t.data
                          ? "function" == typeof t.data
                            ? t.data(e)
                            : t.data
                          : t.id
                          ? e[t.id]
                          : (gc.error(
                              "Could not find the correct cell for column at position " +
                                i +
                                ".\n                          Make sure either 'id' or 'selector' is defined for all columns."
                            ),
                            null);
                      });
                    });
              }),
              (i._process = function (e) {
                return { data: this.castData(e.data), total: e.total };
              }),
              Ts(t, [
                {
                  key: "type",
                  get: function () {
                    return yl.Transformer;
                  },
                },
              ]),
              t
            );
          })(Sl),
          Lc = (function () {
            function e() {}
            return (
              (e.createFromConfig = function (e) {
                var t = new Tc();
                return (
                  e.storage instanceof wc &&
                    t.register(new Ic({ serverStorageOptions: e.server })),
                  t.register(new Cc({ storage: e.storage })),
                  t.register(new Mc({ header: e.header })),
                  t.register(new Oc()),
                  t
                );
              }),
              e
            );
          })(),
          Pc = function (e) {
            var t = this;
            (this.state = void 0),
              (this.listeners = []),
              (this.isDispatching = !1),
              (this.getState = function () {
                return t.state;
              }),
              (this.getListeners = function () {
                return t.listeners;
              }),
              (this.dispatch = function (e) {
                if ("function" != typeof e)
                  throw new Error("Reducer is not a function");
                if (t.isDispatching)
                  throw new Error("Reducers may not dispatch actions");
                t.isDispatching = !0;
                var i = t.state;
                try {
                  t.state = e(t.state);
                } finally {
                  t.isDispatching = !1;
                }
                for (var n, r = Ps(t.listeners); !(n = r()).done; )
                  (0, n.value)(t.state, i);
                return t.state;
              }),
              (this.subscribe = function (e) {
                if ("function" != typeof e)
                  throw new Error("Listener is not a function");
                return (
                  (t.listeners = [].concat(t.listeners, [e])),
                  function () {
                    return (t.listeners = t.listeners.filter(function (t) {
                      return t !== e;
                    }));
                  }
                );
              }),
              (this.state = e);
          },
          Dc = (function (e, t) {
            var i = {
              __c: (t = "__cC" + js++),
              __: null,
              Consumer: function (e, t) {
                return e.children(t);
              },
              Provider: function (e) {
                var i, n;
                return (
                  this.getChildContext ||
                    ((i = []),
                    ((n = {})[t] = this),
                    (this.getChildContext = function () {
                      return n;
                    }),
                    (this.shouldComponentUpdate = function (e) {
                      this.props.value !== e.value && i.some(Qs);
                    }),
                    (this.sub = function (e) {
                      i.push(e);
                      var t = e.componentWillUnmount;
                      e.componentWillUnmount = function () {
                        i.splice(i.indexOf(e), 1), t && t.call(e);
                      };
                    })),
                  e.children
                );
              },
            };
            return (i.Provider.__ = i.Consumer.contextType = i);
          })(),
          Rc = (function () {
            function e() {
              Object.assign(this, e.defaultConfig());
            }
            var t = e.prototype;
            return (
              (t.assign = function (e) {
                return Object.assign(this, e);
              }),
              (t.update = function (t) {
                return t
                  ? (this.assign(e.fromPartialConfig(Cs({}, this, t))), this)
                  : this;
              }),
              (e.defaultConfig = function () {
                return {
                  store: new Pc({
                    status: _s.Init,
                    header: void 0,
                    data: null,
                  }),
                  plugin: new mc(),
                  tableRef: { current: null },
                  width: "100%",
                  height: "auto",
                  autoWidth: !0,
                  style: {},
                  className: {},
                };
              }),
              (e.fromPartialConfig = function (t) {
                var i = new e().assign(t);
                return (
                  "boolean" == typeof t.sort &&
                    t.sort &&
                    i.assign({ sort: { multiColumn: !0 } }),
                  i.assign({ header: bc.createFromConfig(i) }),
                  i.assign({ storage: Ec.createFromConfig(i) }),
                  i.assign({ pipeline: Lc.createFromConfig(i) }),
                  i.assign({ translator: new tc(i.language) }),
                  i.search &&
                    i.plugin.add({
                      id: "search",
                      position: pc.Header,
                      component: oc,
                    }),
                  i.pagination &&
                    i.plugin.add({
                      id: "pagination",
                      position: pc.Footer,
                      component: cc,
                    }),
                  i.plugins &&
                    i.plugins.forEach(function (e) {
                      return i.plugin.add(e);
                    }),
                  i
                );
              }),
              e
            );
          })();
        function Nc(e) {
          var t,
            i = Ql();
          return qs(
            "td",
            Cs(
              {
                role: e.role,
                colSpan: e.colSpan,
                "data-column-id": e.column && e.column.id,
                className: Tl(kl("td"), e.className, i.className.td),
                style: Cs({}, e.style, i.style.td),
                onClick: function (t) {
                  e.messageCell ||
                    i.eventEmitter.emit(
                      "cellClick",
                      t,
                      e.cell,
                      e.column,
                      e.row
                    );
                },
              },
              (t = e.column)
                ? "function" == typeof t.attributes
                  ? t.attributes(e.cell.data, e.row, e.column)
                  : t.attributes
                : {}
            ),
            e.column && "function" == typeof e.column.formatter
              ? e.column.formatter(e.cell.data, e.row, e.column)
              : e.column && e.column.plugin
              ? qs(vc, {
                  pluginId: e.column.id,
                  props: { column: e.column, cell: e.cell, row: e.row },
                })
              : e.cell.data
          );
        }
        function Fc(e) {
          var t = Ql(),
            i = ac(function (e) {
              return e.header;
            });
          return qs(
            "tr",
            {
              className: Tl(kl("tr"), t.className.tr),
              onClick: function (i) {
                e.messageRow || t.eventEmitter.emit("rowClick", i, e.row);
              },
            },
            e.children
              ? e.children
              : e.row.cells.map(function (t, n) {
                  var r = (function (e) {
                    if (i) {
                      var t = bc.leafColumns(i.columns);
                      if (t) return t[e];
                    }
                    return null;
                  })(n);
                  return r && r.hidden
                    ? null
                    : qs(Nc, { key: t.id, cell: t, row: e.row, column: r });
                })
          );
        }
        function Bc(e) {
          return qs(
            Fc,
            { messageRow: !0 },
            qs(Nc, {
              role: "alert",
              colSpan: e.colSpan,
              messageCell: !0,
              cell: new xl(e.message),
              className: Tl(kl("message"), e.className ? e.className : null),
            })
          );
        }
        function zc() {
          var e = Ql(),
            t = ac(function (e) {
              return e.data;
            }),
            i = ac(function (e) {
              return e.status;
            }),
            n = ac(function (e) {
              return e.header;
            }),
            r = ic(),
            a = function () {
              return n ? n.visibleColumns.length : 0;
            };
          return qs(
            "tbody",
            { className: Tl(kl("tbody"), e.className.tbody) },
            t &&
              t.rows.map(function (e) {
                return qs(Fc, { key: e.id, row: e });
              }),
            i === _s.Loading &&
              (!t || 0 === t.length) &&
              qs(Bc, {
                message: r("loading"),
                colSpan: a(),
                className: Tl(kl("loading"), e.className.loading),
              }),
            i === _s.Rendered &&
              t &&
              0 === t.length &&
              qs(Bc, {
                message: r("noRecordsFound"),
                colSpan: a(),
                className: Tl(kl("notfound"), e.className.notfound),
              }),
            i === _s.Error &&
              qs(Bc, {
                message: r("error"),
                colSpan: a(),
                className: Tl(kl("error"), e.className.error),
              })
          );
        }
        var jc = (function (e) {
            function t() {
              return e.apply(this, arguments) || this;
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.validateProps = function () {
                for (var e, t = Ps(this.props.columns); !(e = t()).done; ) {
                  var i = e.value;
                  void 0 === i.direction && (i.direction = 1),
                    1 !== i.direction &&
                      -1 !== i.direction &&
                      gc.error("Invalid sort direction " + i.direction);
                }
              }),
              (i.compare = function (e, t) {
                return e > t ? 1 : e < t ? -1 : 0;
              }),
              (i.compareWrapper = function (e, t) {
                for (
                  var i, n = 0, r = Ps(this.props.columns);
                  !(i = r()).done;

                ) {
                  var a = i.value;
                  if (0 !== n) break;
                  var o = e.cells[a.index].data,
                    s = t.cells[a.index].data;
                  n |=
                    "function" == typeof a.compare
                      ? a.compare(o, s) * a.direction
                      : this.compare(o, s) * a.direction;
                }
                return n;
              }),
              (i._process = function (e) {
                var t = [].concat(e.rows);
                t.sort(this.compareWrapper.bind(this));
                var i = new El(t);
                return (i.length = e.length), i;
              }),
              Ts(t, [
                {
                  key: "type",
                  get: function () {
                    return yl.Sort;
                  },
                },
              ]),
              t
            );
          })(Sl),
          Hc = function (e, t, i, n) {
            return function (r) {
              var a = r.sort ? [].concat(r.sort.columns) : [],
                o = a.length,
                s = a.find(function (t) {
                  return t.index === e;
                }),
                l = !1,
                c = !1,
                u = !1,
                d = !1;
              if (
                (void 0 !== s
                  ? i
                    ? -1 === s.direction
                      ? (u = !0)
                      : (d = !0)
                    : 1 === o
                    ? (d = !0)
                    : o > 1 && ((c = !0), (l = !0))
                  : 0 === o
                  ? (l = !0)
                  : o > 0 && !i
                  ? ((l = !0), (c = !0))
                  : o > 0 && i && (l = !0),
                c && (a = []),
                l)
              )
                a.push({ index: e, direction: t, compare: n });
              else if (d) {
                var h = a.indexOf(s);
                a[h].direction = t;
              } else if (u) {
                var f = a.indexOf(s);
                a.splice(f, 1);
              }
              return Cs({}, r, { sort: { columns: a } });
            };
          },
          Yc = function (e, t, i) {
            return function (n) {
              var r = (n.sort ? [].concat(n.sort.columns) : []).find(function (
                t
              ) {
                return t.index === e;
              });
              return Cs(
                {},
                n,
                r
                  ? Hc(e, 1 === r.direction ? -1 : 1, t, i)(n)
                  : Hc(e, 1, t, i)(n)
              );
            };
          },
          Xc = (function (e) {
            function t() {
              return e.apply(this, arguments) || this;
            }
            return (
              Os(t, e),
              (t.prototype._process = function (e) {
                var t = {};
                return (
                  this.props.url &&
                    (t.url = this.props.url(e.url, this.props.columns)),
                  this.props.body &&
                    (t.body = this.props.body(e.body, this.props.columns)),
                  Cs({}, e, t)
                );
              }),
              Ts(t, [
                {
                  key: "type",
                  get: function () {
                    return yl.ServerSort;
                  },
                },
              ]),
              t
            );
          })(Sl);
        function Wc(e) {
          var t = Ql(),
            i = ic(),
            n = Yl(0),
            r = n[0],
            a = n[1],
            o = Yl(void 0),
            s = o[0],
            l = o[1],
            c = ac(function (e) {
              return e.sort;
            }),
            u = rc().dispatch,
            d = t.sort;
          Xl(function () {
            var e = h();
            e && l(e);
          }, []),
            Xl(
              function () {
                return (
                  t.pipeline.register(s),
                  function () {
                    return t.pipeline.unregister(s);
                  }
                );
              },
              [t, s]
            ),
            Xl(
              function () {
                if (c) {
                  var t = c.columns.find(function (t) {
                    return t.index === e.index;
                  });
                  a(t ? t.direction : 0);
                }
              },
              [c]
            ),
            Xl(
              function () {
                s && c && s.setProps({ columns: c.columns });
              },
              [c]
            );
          var h = function () {
            var e = yl.Sort;
            return (
              d && "object" == typeof d.server && (e = yl.ServerSort),
              0 === t.pipeline.getStepsByType(e).length
                ? e === yl.ServerSort
                  ? new Xc(Cs({ columns: c ? c.columns : [] }, d.server))
                  : new jc({ columns: c ? c.columns : [] })
                : null
            );
          };
          return qs("button", {
            tabIndex: -1,
            "aria-label": i("sort.sort" + (1 === r ? "Desc" : "Asc")),
            title: i("sort.sort" + (1 === r ? "Desc" : "Asc")),
            className: Tl(
              kl("sort"),
              kl(
                "sort",
                (function (e) {
                  return 1 === e ? "asc" : -1 === e ? "desc" : "neutral";
                })(r)
              ),
              t.className.sort
            ),
            onClick: function (t) {
              t.preventDefault(),
                t.stopPropagation(),
                u(Yc(e.index, !0 === t.shiftKey && d.multiColumn, e.compare));
            },
          });
        }
        function Gc(e) {
          var t,
            i = function (e) {
              return e instanceof MouseEvent
                ? Math.floor(e.pageX)
                : Math.floor(e.changedTouches[0].pageX);
            },
            n = function (n) {
              n.stopPropagation();
              var o,
                s,
                l,
                c,
                u,
                d = parseInt(e.thRef.current.style.width, 10) - i(n);
              (o = function (e) {
                return r(e, d);
              }),
                void 0 === (s = 10) && (s = 100),
                (t = function () {
                  var e = [].slice.call(arguments);
                  l
                    ? (clearTimeout(c),
                      (c = setTimeout(function () {
                        Date.now() - u >= s &&
                          (o.apply(void 0, e), (u = Date.now()));
                      }, Math.max(s - (Date.now() - u), 0))))
                    : (o.apply(void 0, e), (u = Date.now()), (l = !0));
                }),
                document.addEventListener("mouseup", a),
                document.addEventListener("touchend", a),
                document.addEventListener("mousemove", t),
                document.addEventListener("touchmove", t);
            },
            r = function (t, n) {
              t.stopPropagation();
              var r = e.thRef.current;
              n + i(t) >= parseInt(r.style.minWidth, 10) &&
                (r.style.width = n + i(t) + "px");
            },
            a = function e(i) {
              i.stopPropagation(),
                document.removeEventListener("mouseup", e),
                document.removeEventListener("mousemove", t),
                document.removeEventListener("touchmove", t),
                document.removeEventListener("touchend", e);
            };
          return qs("div", {
            className: Tl(kl("th"), kl("resizable")),
            onMouseDown: n,
            onTouchStart: n,
            onClick: function (e) {
              return e.stopPropagation();
            },
          });
        }
        function qc(e) {
          var t = Ql(),
            i = Wl(null),
            n = Yl({}),
            r = n[0],
            a = n[1],
            o = rc().dispatch;
          Xl(
            function () {
              if (t.fixedHeader && i.current) {
                var e = i.current.offsetTop;
                "number" == typeof e && a({ top: e });
              }
            },
            [i]
          );
          var s,
            l = function () {
              return null != e.column.sort;
            },
            c = function (i) {
              i.stopPropagation(),
                l() &&
                  o(
                    Yc(
                      e.index,
                      !0 === i.shiftKey && t.sort.multiColumn,
                      e.column.sort.compare
                    )
                  );
            };
          return qs(
            "th",
            Cs(
              {
                ref: i,
                "data-column-id": e.column && e.column.id,
                className: Tl(
                  kl("th"),
                  l() ? kl("th", "sort") : null,
                  t.fixedHeader ? kl("th", "fixed") : null,
                  t.className.th
                ),
                onClick: c,
                style: Cs(
                  {},
                  t.style.th,
                  { minWidth: e.column.minWidth, width: e.column.width },
                  r,
                  e.style
                ),
                onKeyDown: function (e) {
                  l() && 13 === e.which && c(e);
                },
                rowSpan: e.rowSpan > 1 ? e.rowSpan : void 0,
                colSpan: e.colSpan > 1 ? e.colSpan : void 0,
              },
              (s = e.column)
                ? "function" == typeof s.attributes
                  ? s.attributes(null, null, e.column)
                  : s.attributes
                : {},
              l() ? { tabIndex: 0 } : {}
            ),
            qs(
              "div",
              { className: kl("th", "content") },
              void 0 !== e.column.name
                ? e.column.name
                : void 0 !== e.column.plugin
                ? qs(vc, {
                    pluginId: e.column.plugin.id,
                    props: { column: e.column },
                  })
                : null
            ),
            l() && qs(Wc, Cs({ index: e.index }, e.column.sort)),
            e.column.resizable &&
              e.index < t.header.visibleColumns.length - 1 &&
              qs(Gc, { column: e.column, thRef: i })
          );
        }
        function Vc() {
          var e,
            t = Ql(),
            i = ac(function (e) {
              return e.header;
            });
          return i
            ? qs(
                "thead",
                { key: i.id, className: Tl(kl("thead"), t.className.thead) },
                (e = bc.tabularFormat(i.columns)).map(function (t, n) {
                  return (function (e, t, n) {
                    var r = bc.leafColumns(i.columns);
                    return qs(
                      Fc,
                      null,
                      e.map(function (e) {
                        return e.hidden
                          ? null
                          : (function (e, t, i, n) {
                              var r = (function (e, t, i) {
                                var n = bc.maximumDepth(e),
                                  r = i - t;
                                return {
                                  rowSpan: Math.floor(r - n - n / r),
                                  colSpan: (e.columns && e.columns.length) || 1,
                                };
                              })(e, t, n);
                              return qs(qc, {
                                column: e,
                                index: i,
                                colSpan: r.colSpan,
                                rowSpan: r.rowSpan,
                              });
                            })(e, t, r.indexOf(e), n);
                      })
                    );
                  })(t, n, e.length);
                })
              )
            : null;
        }
        var Uc = function (e) {
          return function (t) {
            return Cs({}, t, { header: e });
          };
        };
        function $c() {
          var e = Ql(),
            t = Wl(null),
            i = rc().dispatch;
          return (
            Xl(
              function () {
                t &&
                  i(
                    (function (e) {
                      return function (t) {
                        return Cs({}, t, { tableRef: e });
                      };
                    })(t)
                  );
              },
              [t]
            ),
            qs(
              "table",
              {
                ref: t,
                role: "grid",
                className: Tl(kl("table"), e.className.table),
                style: Cs({}, e.style.table, { height: e.height }),
              },
              qs(Vc, null),
              qs(zc, null)
            )
          );
        }
        function Zc() {
          var e = Yl(!0),
            t = e[0],
            i = e[1],
            n = Wl(null),
            r = Ql();
          return (
            Xl(
              function () {
                0 === n.current.children.length && i(!1);
              },
              [n]
            ),
            t
              ? qs(
                  "div",
                  {
                    ref: n,
                    className: Tl(kl("head"), r.className.header),
                    style: Cs({}, r.style.header),
                  },
                  qs(vc, { position: pc.Header })
                )
              : null
          );
        }
        function Kc() {
          var e = Wl(null),
            t = Yl(!0),
            i = t[0],
            n = t[1],
            r = Ql();
          return (
            Xl(
              function () {
                0 === e.current.children.length && n(!1);
              },
              [e]
            ),
            i
              ? qs(
                  "div",
                  {
                    ref: e,
                    className: Tl(kl("footer"), r.className.footer),
                    style: Cs({}, r.style.footer),
                  },
                  qs(vc, { position: pc.Footer })
                )
              : null
          );
        }
        function Jc() {
          var e = Ql(),
            t = rc().dispatch,
            i = ac(function (e) {
              return e.status;
            }),
            n = ac(function (e) {
              return e.data;
            }),
            r = ac(function (e) {
              return e.tableRef;
            }),
            a = { current: null };
          Xl(function () {
            return (
              t(Uc(e.header)),
              o(),
              e.pipeline.on("updated", o),
              function () {
                return e.pipeline.off("updated", o);
              }
            );
          }, []),
            Xl(
              function () {
                e.header &&
                  i === _s.Loaded &&
                  null != n &&
                  n.length &&
                  t(Uc(e.header.adjustWidth(e, r, a)));
              },
              [n, e, a]
            );
          var o = function () {
            try {
              t(function (e) {
                return Cs({}, e, { status: _s.Loading });
              });
              var i = (function (i, n) {
                try {
                  var r = Promise.resolve(e.pipeline.process()).then(function (
                    e
                  ) {
                    t(
                      (function (e) {
                        return function (t) {
                          return e
                            ? Cs({}, t, { data: e, status: _s.Loaded })
                            : t;
                        };
                      })(e)
                    ),
                      setTimeout(function () {
                        t(function (e) {
                          return e.status === _s.Loaded
                            ? Cs({}, e, { status: _s.Rendered })
                            : e;
                        });
                      }, 0);
                  });
                } catch (e) {
                  return n(e);
                }
                return r && r.then ? r.then(void 0, n) : r;
              })(0, function (e) {
                gc.error(e),
                  t(function (e) {
                    return Cs({}, e, { data: null, status: _s.Error });
                  });
              });
              return Promise.resolve(
                i && i.then ? i.then(function () {}) : void 0
              );
            } catch (e) {
              return Promise.reject(e);
            }
          };
          return qs(
            "div",
            {
              role: "complementary",
              className: Tl(
                "gridjs",
                kl("container"),
                i === _s.Loading ? kl("loading") : null,
                e.className.container
              ),
              style: Cs({}, e.style.container, { width: e.width }),
            },
            i === _s.Loading && qs("div", { className: kl("loading-bar") }),
            qs(Zc, null),
            qs(
              "div",
              { className: kl("wrapper"), style: { height: e.height } },
              qs($c, null)
            ),
            qs(Kc, null),
            qs("div", { ref: a, id: "gridjs-temp", className: kl("temp") })
          );
        }
        var Qc = (function (e) {
            function t(t) {
              var i;
              return (
                ((i = e.call(this) || this).config = void 0),
                (i.plugin = void 0),
                (i.config = new Rc()
                  .assign({ instance: Ms(i), eventEmitter: Ms(i) })
                  .update(t)),
                (i.plugin = i.config.plugin),
                i
              );
            }
            Os(t, e);
            var i = t.prototype;
            return (
              (i.updateConfig = function (e) {
                return this.config.update(e), this;
              }),
              (i.createElement = function () {
                return qs(Dc.Provider, {
                  value: this.config,
                  children: qs(Jc, {}),
                });
              }),
              (i.forceRender = function () {
                return (
                  (this.config && this.config.container) ||
                    gc.error(
                      "Container is empty. Make sure you call render() before forceRender()",
                      !0
                    ),
                  this.destroy(),
                  pl(this.createElement(), this.config.container),
                  this
                );
              }),
              (i.destroy = function () {
                this.config.pipeline.clearCache(),
                  pl(null, this.config.container);
              }),
              (i.render = function (e) {
                return (
                  e || gc.error("Container element cannot be null", !0),
                  e.childNodes.length > 0
                    ? (gc.error(
                        "The container element " +
                          e +
                          " is not empty. Make sure the container is empty and call render() again"
                      ),
                      this)
                    : ((this.config.container = e),
                      pl(this.createElement(), e),
                      this)
                );
              }),
              t
            );
          })(_l),
          eu = (i(890), i(391)),
          tu = i(974),
          iu = i.n(tu),
          nu = i(945),
          ru = i.n(nu),
          au = [
            "onChange",
            "onClose",
            "onDayCreate",
            "onDestroy",
            "onKeyDown",
            "onMonthChange",
            "onOpen",
            "onParseConfig",
            "onReady",
            "onValueUpdate",
            "onYearChange",
            "onPreCalendarPosition",
          ],
          ou = {
            _disable: [],
            allowInput: !1,
            allowInvalidPreload: !1,
            altFormat: "F j, Y",
            altInput: !1,
            altInputClass: "form-control input",
            animate:
              "object" == typeof window &&
              -1 === window.navigator.userAgent.indexOf("MSIE"),
            ariaDateFormat: "F j, Y",
            autoFillDefaultTime: !0,
            clickOpens: !0,
            closeOnSelect: !0,
            conjunction: ", ",
            dateFormat: "Y-m-d",
            defaultHour: 12,
            defaultMinute: 0,
            defaultSeconds: 0,
            disable: [],
            disableMobile: !1,
            enableSeconds: !1,
            enableTime: !1,
            errorHandler: function (e) {
              return "undefined" != typeof console && console.warn(e);
            },
            getWeek: function (e) {
              var t = new Date(e.getTime());
              t.setHours(0, 0, 0, 0),
                t.setDate(t.getDate() + 3 - ((t.getDay() + 6) % 7));
              var i = new Date(t.getFullYear(), 0, 4);
              return (
                1 +
                Math.round(
                  ((t.getTime() - i.getTime()) / 864e5 -
                    3 +
                    ((i.getDay() + 6) % 7)) /
                    7
                )
              );
            },
            hourIncrement: 1,
            ignoredFocusElements: [],
            inline: !1,
            locale: "default",
            minuteIncrement: 5,
            mode: "single",
            monthSelectorType: "dropdown",
            nextArrow:
              "<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",
            noCalendar: !1,
            now: new Date(),
            onChange: [],
            onClose: [],
            onDayCreate: [],
            onDestroy: [],
            onKeyDown: [],
            onMonthChange: [],
            onOpen: [],
            onParseConfig: [],
            onReady: [],
            onValueUpdate: [],
            onYearChange: [],
            onPreCalendarPosition: [],
            plugins: [],
            position: "auto",
            positionElement: void 0,
            prevArrow:
              "<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",
            shorthandCurrentMonth: !1,
            showMonths: 1,
            static: !1,
            time_24hr: !1,
            weekNumbers: !1,
            wrap: !1,
          },
          su = {
            weekdays: {
              shorthand: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
              longhand: [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday",
              ],
            },
            months: {
              shorthand: [
                "Jan",
                "Feb",
                "Mar",
                "Apr",
                "May",
                "Jun",
                "Jul",
                "Aug",
                "Sep",
                "Oct",
                "Nov",
                "Dec",
              ],
              longhand: [
                "January",
                "February",
                "March",
                "April",
                "May",
                "June",
                "July",
                "August",
                "September",
                "October",
                "November",
                "December",
              ],
            },
            daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
            firstDayOfWeek: 0,
            ordinal: function (e) {
              var t = e % 100;
              if (t > 3 && t < 21) return "th";
              switch (t % 10) {
                case 1:
                  return "st";
                case 2:
                  return "nd";
                case 3:
                  return "rd";
                default:
                  return "th";
              }
            },
            rangeSeparator: " to ",
            weekAbbreviation: "Wk",
            scrollTitle: "Scroll to increment",
            toggleTitle: "Click to toggle",
            amPM: ["AM", "PM"],
            yearAriaLabel: "Year",
            monthAriaLabel: "Month",
            hourAriaLabel: "Hour",
            minuteAriaLabel: "Minute",
            time_24hr: !1,
          };
        const lu = su;
        var cu = function (e, t) {
            return void 0 === t && (t = 2), ("000" + e).slice(-1 * t);
          },
          uu = function (e) {
            return !0 === e ? 1 : 0;
          };
        function du(e, t) {
          var i;
          return function () {
            var n = this,
              r = arguments;
            clearTimeout(i),
              (i = setTimeout(function () {
                return e.apply(n, r);
              }, t));
          };
        }
        var hu = function (e) {
          return e instanceof Array ? e : [e];
        };
        function fu(e, t, i) {
          if (!0 === i) return e.classList.add(t);
          e.classList.remove(t);
        }
        function pu(e, t, i) {
          var n = window.document.createElement(e);
          return (
            (t = t || ""),
            (i = i || ""),
            (n.className = t),
            void 0 !== i && (n.textContent = i),
            n
          );
        }
        function gu(e) {
          for (; e.firstChild; ) e.removeChild(e.firstChild);
        }
        function mu(e, t) {
          return t(e) ? e : e.parentNode ? mu(e.parentNode, t) : void 0;
        }
        function vu(e, t) {
          var i = pu("div", "numInputWrapper"),
            n = pu("input", "numInput " + e),
            r = pu("span", "arrowUp"),
            a = pu("span", "arrowDown");
          if (
            (-1 === navigator.userAgent.indexOf("MSIE 9.0")
              ? (n.type = "number")
              : ((n.type = "text"), (n.pattern = "\\d*")),
            void 0 !== t)
          )
            for (var o in t) n.setAttribute(o, t[o]);
          return i.appendChild(n), i.appendChild(r), i.appendChild(a), i;
        }
        function bu(e) {
          try {
            return "function" == typeof e.composedPath
              ? e.composedPath()[0]
              : e.target;
          } catch (t) {
            return e.target;
          }
        }
        var yu = function () {},
          xu = function (e, t, i) {
            return i.months[t ? "shorthand" : "longhand"][e];
          },
          wu = {
            D: yu,
            F: function (e, t, i) {
              e.setMonth(i.months.longhand.indexOf(t));
            },
            G: function (e, t) {
              e.setHours((e.getHours() >= 12 ? 12 : 0) + parseFloat(t));
            },
            H: function (e, t) {
              e.setHours(parseFloat(t));
            },
            J: function (e, t) {
              e.setDate(parseFloat(t));
            },
            K: function (e, t, i) {
              e.setHours(
                (e.getHours() % 12) +
                  12 * uu(new RegExp(i.amPM[1], "i").test(t))
              );
            },
            M: function (e, t, i) {
              e.setMonth(i.months.shorthand.indexOf(t));
            },
            S: function (e, t) {
              e.setSeconds(parseFloat(t));
            },
            U: function (e, t) {
              return new Date(1e3 * parseFloat(t));
            },
            W: function (e, t, i) {
              var n = parseInt(t),
                r = new Date(e.getFullYear(), 0, 2 + 7 * (n - 1), 0, 0, 0, 0);
              return r.setDate(r.getDate() - r.getDay() + i.firstDayOfWeek), r;
            },
            Y: function (e, t) {
              e.setFullYear(parseFloat(t));
            },
            Z: function (e, t) {
              return new Date(t);
            },
            d: function (e, t) {
              e.setDate(parseFloat(t));
            },
            h: function (e, t) {
              e.setHours((e.getHours() >= 12 ? 12 : 0) + parseFloat(t));
            },
            i: function (e, t) {
              e.setMinutes(parseFloat(t));
            },
            j: function (e, t) {
              e.setDate(parseFloat(t));
            },
            l: yu,
            m: function (e, t) {
              e.setMonth(parseFloat(t) - 1);
            },
            n: function (e, t) {
              e.setMonth(parseFloat(t) - 1);
            },
            s: function (e, t) {
              e.setSeconds(parseFloat(t));
            },
            u: function (e, t) {
              return new Date(parseFloat(t));
            },
            w: yu,
            y: function (e, t) {
              e.setFullYear(2e3 + parseFloat(t));
            },
          },
          Eu = {
            D: "",
            F: "",
            G: "(\\d\\d|\\d)",
            H: "(\\d\\d|\\d)",
            J: "(\\d\\d|\\d)\\w+",
            K: "",
            M: "",
            S: "(\\d\\d|\\d)",
            U: "(.+)",
            W: "(\\d\\d|\\d)",
            Y: "(\\d{4})",
            Z: "(.+)",
            d: "(\\d\\d|\\d)",
            h: "(\\d\\d|\\d)",
            i: "(\\d\\d|\\d)",
            j: "(\\d\\d|\\d)",
            l: "",
            m: "(\\d\\d|\\d)",
            n: "(\\d\\d|\\d)",
            s: "(\\d\\d|\\d)",
            u: "(.+)",
            w: "(\\d\\d|\\d)",
            y: "(\\d{2})",
          },
          _u = {
            Z: function (e) {
              return e.toISOString();
            },
            D: function (e, t, i) {
              return t.weekdays.shorthand[_u.w(e, t, i)];
            },
            F: function (e, t, i) {
              return xu(_u.n(e, t, i) - 1, !1, t);
            },
            G: function (e, t, i) {
              return cu(_u.h(e, t, i));
            },
            H: function (e) {
              return cu(e.getHours());
            },
            J: function (e, t) {
              return void 0 !== t.ordinal
                ? e.getDate() + t.ordinal(e.getDate())
                : e.getDate();
            },
            K: function (e, t) {
              return t.amPM[uu(e.getHours() > 11)];
            },
            M: function (e, t) {
              return xu(e.getMonth(), !0, t);
            },
            S: function (e) {
              return cu(e.getSeconds());
            },
            U: function (e) {
              return e.getTime() / 1e3;
            },
            W: function (e, t, i) {
              return i.getWeek(e);
            },
            Y: function (e) {
              return cu(e.getFullYear(), 4);
            },
            d: function (e) {
              return cu(e.getDate());
            },
            h: function (e) {
              return e.getHours() % 12 ? e.getHours() % 12 : 12;
            },
            i: function (e) {
              return cu(e.getMinutes());
            },
            j: function (e) {
              return e.getDate();
            },
            l: function (e, t) {
              return t.weekdays.longhand[e.getDay()];
            },
            m: function (e) {
              return cu(e.getMonth() + 1);
            },
            n: function (e) {
              return e.getMonth() + 1;
            },
            s: function (e) {
              return e.getSeconds();
            },
            u: function (e) {
              return e.getTime();
            },
            w: function (e) {
              return e.getDay();
            },
            y: function (e) {
              return String(e.getFullYear()).substring(2);
            },
          },
          Su = function (e) {
            var t = e.config,
              i = void 0 === t ? ou : t,
              n = e.l10n,
              r = void 0 === n ? su : n,
              a = e.isMobile,
              o = void 0 !== a && a;
            return function (e, t, n) {
              var a = n || r;
              return void 0 === i.formatDate || o
                ? t
                    .split("")
                    .map(function (t, n, r) {
                      return _u[t] && "\\" !== r[n - 1]
                        ? _u[t](e, a, i)
                        : "\\" !== t
                        ? t
                        : "";
                    })
                    .join("")
                : i.formatDate(e, t, a);
            };
          },
          Au = function (e) {
            var t = e.config,
              i = void 0 === t ? ou : t,
              n = e.l10n,
              r = void 0 === n ? su : n;
            return function (e, t, n, a) {
              if (0 === e || e) {
                var o,
                  s = a || r,
                  l = e;
                if (e instanceof Date) o = new Date(e.getTime());
                else if ("string" != typeof e && void 0 !== e.toFixed)
                  o = new Date(e);
                else if ("string" == typeof e) {
                  var c = t || (i || ou).dateFormat,
                    u = String(e).trim();
                  if ("today" === u) (o = new Date()), (n = !0);
                  else if (i && i.parseDate) o = i.parseDate(e, c);
                  else if (/Z$/.test(u) || /GMT$/.test(u)) o = new Date(e);
                  else {
                    for (
                      var d = void 0, h = [], f = 0, p = 0, g = "";
                      f < c.length;
                      f++
                    ) {
                      var m = c[f],
                        v = "\\" === m,
                        b = "\\" === c[f - 1] || v;
                      if (Eu[m] && !b) {
                        g += Eu[m];
                        var y = new RegExp(g).exec(e);
                        y &&
                          (d = !0) &&
                          h["Y" !== m ? "push" : "unshift"]({
                            fn: wu[m],
                            val: y[++p],
                          });
                      } else v || (g += ".");
                    }
                    (o =
                      i && i.noCalendar
                        ? new Date(new Date().setHours(0, 0, 0, 0))
                        : new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0)),
                      h.forEach(function (e) {
                        var t = e.fn,
                          i = e.val;
                        return (o = t(o, i, s) || o);
                      }),
                      (o = d ? o : void 0);
                  }
                }
                if (o instanceof Date && !isNaN(o.getTime()))
                  return !0 === n && o.setHours(0, 0, 0, 0), o;
                i.errorHandler(new Error("Invalid date provided: " + l));
              }
            };
          };
        function ku(e, t, i) {
          return (
            void 0 === i && (i = !0),
            !1 !== i
              ? new Date(e.getTime()).setHours(0, 0, 0, 0) -
                new Date(t.getTime()).setHours(0, 0, 0, 0)
              : e.getTime() - t.getTime()
          );
        }
        var Tu = function (e, t, i) {
            return e > Math.min(t, i) && e < Math.max(t, i);
          },
          Cu = function (e, t, i) {
            return 3600 * e + 60 * t + i;
          },
          Ou = function (e) {
            var t = Math.floor(e / 3600),
              i = (e - 3600 * t) / 60;
            return [t, i, e - 3600 * t - 60 * i];
          },
          Iu = { DAY: 864e5 };
        function Mu(e) {
          var t = e.defaultHour,
            i = e.defaultMinute,
            n = e.defaultSeconds;
          if (void 0 !== e.minDate) {
            var r = e.minDate.getHours(),
              a = e.minDate.getMinutes(),
              o = e.minDate.getSeconds();
            t < r && (t = r),
              t === r && i < a && (i = a),
              t === r && i === a && n < o && (n = e.minDate.getSeconds());
          }
          if (void 0 !== e.maxDate) {
            var s = e.maxDate.getHours(),
              l = e.maxDate.getMinutes();
            (t = Math.min(t, s)) === s && (i = Math.min(l, i)),
              t === s && i === l && (n = e.maxDate.getSeconds());
          }
          return { hours: t, minutes: i, seconds: n };
        }
        i(25);
        var Lu = function () {
            return (
              (Lu =
                Object.assign ||
                function (e) {
                  for (var t, i = 1, n = arguments.length; i < n; i++)
                    for (var r in (t = arguments[i]))
                      Object.prototype.hasOwnProperty.call(t, r) &&
                        (e[r] = t[r]);
                  return e;
                }),
              Lu.apply(this, arguments)
            );
          },
          Pu = function () {
            for (var e = 0, t = 0, i = arguments.length; t < i; t++)
              e += arguments[t].length;
            var n = Array(e),
              r = 0;
            for (t = 0; t < i; t++)
              for (var a = arguments[t], o = 0, s = a.length; o < s; o++, r++)
                n[r] = a[o];
            return n;
          },
          Du = 300;
        function Ru(e, t) {
          var i = { config: Lu(Lu({}, ou), Fu.defaultConfig), l10n: lu };
          function n() {
            var e;
            return (
              (null === (e = i.calendarContainer) || void 0 === e
                ? void 0
                : e.getRootNode()
              ).activeElement || document.activeElement
            );
          }
          function r(e) {
            return e.bind(i);
          }
          function a() {
            var e = i.config;
            (!1 === e.weekNumbers && 1 === e.showMonths) ||
              (!0 !== e.noCalendar &&
                window.requestAnimationFrame(function () {
                  if (
                    (void 0 !== i.calendarContainer &&
                      ((i.calendarContainer.style.visibility = "hidden"),
                      (i.calendarContainer.style.display = "block")),
                    void 0 !== i.daysContainer)
                  ) {
                    var t = (i.days.offsetWidth + 1) * e.showMonths;
                    (i.daysContainer.style.width = t + "px"),
                      (i.calendarContainer.style.width =
                        t +
                        (void 0 !== i.weekWrapper
                          ? i.weekWrapper.offsetWidth
                          : 0) +
                        "px"),
                      i.calendarContainer.style.removeProperty("visibility"),
                      i.calendarContainer.style.removeProperty("display");
                  }
                }));
          }
          function o(e) {
            if (0 === i.selectedDates.length) {
              var t =
                  void 0 === i.config.minDate ||
                  ku(new Date(), i.config.minDate) >= 0
                    ? new Date()
                    : new Date(i.config.minDate.getTime()),
                n = Mu(i.config);
              t.setHours(n.hours, n.minutes, n.seconds, t.getMilliseconds()),
                (i.selectedDates = [t]),
                (i.latestSelectedDateObj = t);
            }
            void 0 !== e &&
              "blur" !== e.type &&
              (function (e) {
                e.preventDefault();
                var t = "keydown" === e.type,
                  n = bu(e),
                  r = n;
                void 0 !== i.amPM &&
                  n === i.amPM &&
                  (i.amPM.textContent =
                    i.l10n.amPM[uu(i.amPM.textContent === i.l10n.amPM[0])]);
                var a = parseFloat(r.getAttribute("min")),
                  o = parseFloat(r.getAttribute("max")),
                  s = parseFloat(r.getAttribute("step")),
                  l = parseInt(r.value, 10),
                  c = e.delta || (t ? (38 === e.which ? 1 : -1) : 0),
                  u = l + s * c;
                if (void 0 !== r.value && 2 === r.value.length) {
                  var d = r === i.hourElement,
                    h = r === i.minuteElement;
                  u < a
                    ? ((u = o + u + uu(!d) + (uu(d) && uu(!i.amPM))),
                      h && g(void 0, -1, i.hourElement))
                    : u > o &&
                      ((u = r === i.hourElement ? u - o - uu(!i.amPM) : a),
                      h && g(void 0, 1, i.hourElement)),
                    i.amPM &&
                      d &&
                      (1 === s ? u + l === 23 : Math.abs(u - l) > s) &&
                      (i.amPM.textContent =
                        i.l10n.amPM[uu(i.amPM.textContent === i.l10n.amPM[0])]),
                    (r.value = cu(u));
                }
              })(e);
            var r = i._input.value;
            s(), Q(), i._input.value !== r && i._debouncedChange();
          }
          function s() {
            if (void 0 !== i.hourElement && void 0 !== i.minuteElement) {
              var e,
                t,
                n = (parseInt(i.hourElement.value.slice(-2), 10) || 0) % 24,
                r = (parseInt(i.minuteElement.value, 10) || 0) % 60,
                a =
                  void 0 !== i.secondElement
                    ? (parseInt(i.secondElement.value, 10) || 0) % 60
                    : 0;
              void 0 !== i.amPM &&
                ((e = n),
                (t = i.amPM.textContent),
                (n = (e % 12) + 12 * uu(t === i.l10n.amPM[1])));
              var o =
                  void 0 !== i.config.minTime ||
                  (i.config.minDate &&
                    i.minDateHasTime &&
                    i.latestSelectedDateObj &&
                    0 === ku(i.latestSelectedDateObj, i.config.minDate, !0)),
                s =
                  void 0 !== i.config.maxTime ||
                  (i.config.maxDate &&
                    i.maxDateHasTime &&
                    i.latestSelectedDateObj &&
                    0 === ku(i.latestSelectedDateObj, i.config.maxDate, !0));
              if (
                void 0 !== i.config.maxTime &&
                void 0 !== i.config.minTime &&
                i.config.minTime > i.config.maxTime
              ) {
                var l = Cu(
                    i.config.minTime.getHours(),
                    i.config.minTime.getMinutes(),
                    i.config.minTime.getSeconds()
                  ),
                  u = Cu(
                    i.config.maxTime.getHours(),
                    i.config.maxTime.getMinutes(),
                    i.config.maxTime.getSeconds()
                  ),
                  d = Cu(n, r, a);
                if (d > u && d < l) {
                  var h = Ou(l);
                  (n = h[0]), (r = h[1]), (a = h[2]);
                }
              } else {
                if (s) {
                  var f =
                    void 0 !== i.config.maxTime
                      ? i.config.maxTime
                      : i.config.maxDate;
                  (n = Math.min(n, f.getHours())) === f.getHours() &&
                    (r = Math.min(r, f.getMinutes())),
                    r === f.getMinutes() && (a = Math.min(a, f.getSeconds()));
                }
                if (o) {
                  var p =
                    void 0 !== i.config.minTime
                      ? i.config.minTime
                      : i.config.minDate;
                  (n = Math.max(n, p.getHours())) === p.getHours() &&
                    r < p.getMinutes() &&
                    (r = p.getMinutes()),
                    r === p.getMinutes() && (a = Math.max(a, p.getSeconds()));
                }
              }
              c(n, r, a);
            }
          }
          function l(e) {
            var t = e || i.latestSelectedDateObj;
            t &&
              t instanceof Date &&
              c(t.getHours(), t.getMinutes(), t.getSeconds());
          }
          function c(e, t, n) {
            void 0 !== i.latestSelectedDateObj &&
              i.latestSelectedDateObj.setHours(e % 24, t, n || 0, 0),
              i.hourElement &&
                i.minuteElement &&
                !i.isMobile &&
                ((i.hourElement.value = cu(
                  i.config.time_24hr
                    ? e
                    : ((12 + e) % 12) + 12 * uu(e % 12 == 0)
                )),
                (i.minuteElement.value = cu(t)),
                void 0 !== i.amPM &&
                  (i.amPM.textContent = i.l10n.amPM[uu(e >= 12)]),
                void 0 !== i.secondElement && (i.secondElement.value = cu(n)));
          }
          function u(e) {
            var t = bu(e),
              i = parseInt(t.value) + (e.delta || 0);
            (i / 1e3 > 1 ||
              ("Enter" === e.key && !/[^\d]/.test(i.toString()))) &&
              I(i);
          }
          function d(e, t, n, r) {
            return t instanceof Array
              ? t.forEach(function (t) {
                  return d(e, t, n, r);
                })
              : e instanceof Array
              ? e.forEach(function (e) {
                  return d(e, t, n, r);
                })
              : (e.addEventListener(t, n, r),
                void i._handlers.push({
                  remove: function () {
                    return e.removeEventListener(t, n, r);
                  },
                }));
          }
          function h() {
            U("onChange");
          }
          function f(e, t) {
            var n =
                void 0 !== e
                  ? i.parseDate(e)
                  : i.latestSelectedDateObj ||
                    (i.config.minDate && i.config.minDate > i.now
                      ? i.config.minDate
                      : i.config.maxDate && i.config.maxDate < i.now
                      ? i.config.maxDate
                      : i.now),
              r = i.currentYear,
              a = i.currentMonth;
            try {
              void 0 !== n &&
                ((i.currentYear = n.getFullYear()),
                (i.currentMonth = n.getMonth()));
            } catch (e) {
              (e.message = "Invalid date supplied: " + n),
                i.config.errorHandler(e);
            }
            t && i.currentYear !== r && (U("onYearChange"), E()),
              !t ||
                (i.currentYear === r && i.currentMonth === a) ||
                U("onMonthChange"),
              i.redraw();
          }
          function p(e) {
            var t = bu(e);
            ~t.className.indexOf("arrow") &&
              g(e, t.classList.contains("arrowUp") ? 1 : -1);
          }
          function g(e, t, i) {
            var n = e && bu(e),
              r = i || (n && n.parentNode && n.parentNode.firstChild),
              a = $("increment");
            (a.delta = t), r && r.dispatchEvent(a);
          }
          function m(e, t, n, r) {
            var a = M(t, !0),
              o = pu("span", e, t.getDate().toString());
            return (
              (o.dateObj = t),
              (o.$i = r),
              o.setAttribute(
                "aria-label",
                i.formatDate(t, i.config.ariaDateFormat)
              ),
              -1 === e.indexOf("hidden") &&
                0 === ku(t, i.now) &&
                ((i.todayDateElem = o),
                o.classList.add("today"),
                o.setAttribute("aria-current", "date")),
              a
                ? ((o.tabIndex = -1),
                  Z(t) &&
                    (o.classList.add("selected"),
                    (i.selectedDateElem = o),
                    "range" === i.config.mode &&
                      (fu(
                        o,
                        "startRange",
                        i.selectedDates[0] &&
                          0 === ku(t, i.selectedDates[0], !0)
                      ),
                      fu(
                        o,
                        "endRange",
                        i.selectedDates[1] &&
                          0 === ku(t, i.selectedDates[1], !0)
                      ),
                      "nextMonthDay" === e && o.classList.add("inRange"))))
                : o.classList.add("flatpickr-disabled"),
              "range" === i.config.mode &&
                (function (e) {
                  return (
                    !(
                      "range" !== i.config.mode || i.selectedDates.length < 2
                    ) &&
                    ku(e, i.selectedDates[0]) >= 0 &&
                    ku(e, i.selectedDates[1]) <= 0
                  );
                })(t) &&
                !Z(t) &&
                o.classList.add("inRange"),
              i.weekNumbers &&
                1 === i.config.showMonths &&
                "prevMonthDay" !== e &&
                r % 7 == 6 &&
                i.weekNumbers.insertAdjacentHTML(
                  "beforeend",
                  "<span class='flatpickr-day'>" +
                    i.config.getWeek(t) +
                    "</span>"
                ),
              U("onDayCreate", o),
              o
            );
          }
          function v(e) {
            e.focus(), "range" === i.config.mode && R(e);
          }
          function b(e) {
            for (
              var t = e > 0 ? 0 : i.config.showMonths - 1,
                n = e > 0 ? i.config.showMonths : -1,
                r = t;
              r != n;
              r += e
            )
              for (
                var a = i.daysContainer.children[r],
                  o = e > 0 ? 0 : a.children.length - 1,
                  s = e > 0 ? a.children.length : -1,
                  l = o;
                l != s;
                l += e
              ) {
                var c = a.children[l];
                if (-1 === c.className.indexOf("hidden") && M(c.dateObj))
                  return c;
              }
          }
          function y(e, t) {
            var r = n(),
              a = L(r || document.body),
              o =
                void 0 !== e
                  ? e
                  : a
                  ? r
                  : void 0 !== i.selectedDateElem && L(i.selectedDateElem)
                  ? i.selectedDateElem
                  : void 0 !== i.todayDateElem && L(i.todayDateElem)
                  ? i.todayDateElem
                  : b(t > 0 ? 1 : -1);
            void 0 === o
              ? i._input.focus()
              : a
              ? (function (e, t) {
                  for (
                    var n =
                        -1 === e.className.indexOf("Month")
                          ? e.dateObj.getMonth()
                          : i.currentMonth,
                      r = t > 0 ? i.config.showMonths : -1,
                      a = t > 0 ? 1 : -1,
                      o = n - i.currentMonth;
                    o != r;
                    o += a
                  )
                    for (
                      var s = i.daysContainer.children[o],
                        l =
                          n - i.currentMonth === o
                            ? e.$i + t
                            : t < 0
                            ? s.children.length - 1
                            : 0,
                        c = s.children.length,
                        u = l;
                      u >= 0 && u < c && u != (t > 0 ? c : -1);
                      u += a
                    ) {
                      var d = s.children[u];
                      if (
                        -1 === d.className.indexOf("hidden") &&
                        M(d.dateObj) &&
                        Math.abs(e.$i - u) >= Math.abs(t)
                      )
                        return v(d);
                    }
                  i.changeMonth(a), y(b(a), 0);
                })(o, t)
              : v(o);
          }
          function x(e, t) {
            for (
              var n =
                  (new Date(e, t, 1).getDay() - i.l10n.firstDayOfWeek + 7) % 7,
                r = i.utils.getDaysInMonth((t - 1 + 12) % 12, e),
                a = i.utils.getDaysInMonth(t, e),
                o = window.document.createDocumentFragment(),
                s = i.config.showMonths > 1,
                l = s ? "prevMonthDay hidden" : "prevMonthDay",
                c = s ? "nextMonthDay hidden" : "nextMonthDay",
                u = r + 1 - n,
                d = 0;
              u <= r;
              u++, d++
            )
              o.appendChild(
                m("flatpickr-day " + l, new Date(e, t - 1, u), 0, d)
              );
            for (u = 1; u <= a; u++, d++)
              o.appendChild(m("flatpickr-day", new Date(e, t, u), 0, d));
            for (
              var h = a + 1;
              h <= 42 - n && (1 === i.config.showMonths || d % 7 != 0);
              h++, d++
            )
              o.appendChild(
                m("flatpickr-day " + c, new Date(e, t + 1, h % a), 0, d)
              );
            var f = pu("div", "dayContainer");
            return f.appendChild(o), f;
          }
          function w() {
            if (void 0 !== i.daysContainer) {
              gu(i.daysContainer), i.weekNumbers && gu(i.weekNumbers);
              for (
                var e = document.createDocumentFragment(), t = 0;
                t < i.config.showMonths;
                t++
              ) {
                var n = new Date(i.currentYear, i.currentMonth, 1);
                n.setMonth(i.currentMonth + t),
                  e.appendChild(x(n.getFullYear(), n.getMonth()));
              }
              i.daysContainer.appendChild(e),
                (i.days = i.daysContainer.firstChild),
                "range" === i.config.mode &&
                  1 === i.selectedDates.length &&
                  R();
            }
          }
          function E() {
            if (
              !(
                i.config.showMonths > 1 ||
                "dropdown" !== i.config.monthSelectorType
              )
            ) {
              var e = function (e) {
                return (
                  !(
                    void 0 !== i.config.minDate &&
                    i.currentYear === i.config.minDate.getFullYear() &&
                    e < i.config.minDate.getMonth()
                  ) &&
                  !(
                    void 0 !== i.config.maxDate &&
                    i.currentYear === i.config.maxDate.getFullYear() &&
                    e > i.config.maxDate.getMonth()
                  )
                );
              };
              (i.monthsDropdownContainer.tabIndex = -1),
                (i.monthsDropdownContainer.innerHTML = "");
              for (var t = 0; t < 12; t++)
                if (e(t)) {
                  var n = pu("option", "flatpickr-monthDropdown-month");
                  (n.value = new Date(i.currentYear, t).getMonth().toString()),
                    (n.textContent = xu(
                      t,
                      i.config.shorthandCurrentMonth,
                      i.l10n
                    )),
                    (n.tabIndex = -1),
                    i.currentMonth === t && (n.selected = !0),
                    i.monthsDropdownContainer.appendChild(n);
                }
            }
          }
          function _() {
            var e,
              t = pu("div", "flatpickr-month"),
              n = window.document.createDocumentFragment();
            i.config.showMonths > 1 || "static" === i.config.monthSelectorType
              ? (e = pu("span", "cur-month"))
              : ((i.monthsDropdownContainer = pu(
                  "select",
                  "flatpickr-monthDropdown-months"
                )),
                i.monthsDropdownContainer.setAttribute(
                  "aria-label",
                  i.l10n.monthAriaLabel
                ),
                d(i.monthsDropdownContainer, "change", function (e) {
                  var t = bu(e),
                    n = parseInt(t.value, 10);
                  i.changeMonth(n - i.currentMonth), U("onMonthChange");
                }),
                E(),
                (e = i.monthsDropdownContainer));
            var r = vu("cur-year", { tabindex: "-1" }),
              a = r.getElementsByTagName("input")[0];
            a.setAttribute("aria-label", i.l10n.yearAriaLabel),
              i.config.minDate &&
                a.setAttribute(
                  "min",
                  i.config.minDate.getFullYear().toString()
                ),
              i.config.maxDate &&
                (a.setAttribute(
                  "max",
                  i.config.maxDate.getFullYear().toString()
                ),
                (a.disabled =
                  !!i.config.minDate &&
                  i.config.minDate.getFullYear() ===
                    i.config.maxDate.getFullYear()));
            var o = pu("div", "flatpickr-current-month");
            return (
              o.appendChild(e),
              o.appendChild(r),
              n.appendChild(o),
              t.appendChild(n),
              { container: t, yearElement: a, monthElement: e }
            );
          }
          function S() {
            gu(i.monthNav),
              i.monthNav.appendChild(i.prevMonthNav),
              i.config.showMonths &&
                ((i.yearElements = []), (i.monthElements = []));
            for (var e = i.config.showMonths; e--; ) {
              var t = _();
              i.yearElements.push(t.yearElement),
                i.monthElements.push(t.monthElement),
                i.monthNav.appendChild(t.container);
            }
            i.monthNav.appendChild(i.nextMonthNav);
          }
          function A() {
            i.weekdayContainer
              ? gu(i.weekdayContainer)
              : (i.weekdayContainer = pu("div", "flatpickr-weekdays"));
            for (var e = i.config.showMonths; e--; ) {
              var t = pu("div", "flatpickr-weekdaycontainer");
              i.weekdayContainer.appendChild(t);
            }
            return k(), i.weekdayContainer;
          }
          function k() {
            if (i.weekdayContainer) {
              var e = i.l10n.firstDayOfWeek,
                t = Pu(i.l10n.weekdays.shorthand);
              e > 0 &&
                e < t.length &&
                (t = Pu(t.splice(e, t.length), t.splice(0, e)));
              for (var n = i.config.showMonths; n--; )
                i.weekdayContainer.children[n].innerHTML =
                  "\n      <span class='flatpickr-weekday'>\n        " +
                  t.join("</span><span class='flatpickr-weekday'>") +
                  "\n      </span>\n      ";
            }
          }
          function T(e, t) {
            void 0 === t && (t = !0);
            var n = t ? e : e - i.currentMonth;
            (n < 0 && !0 === i._hidePrevMonthArrow) ||
              (n > 0 && !0 === i._hideNextMonthArrow) ||
              ((i.currentMonth += n),
              (i.currentMonth < 0 || i.currentMonth > 11) &&
                ((i.currentYear += i.currentMonth > 11 ? 1 : -1),
                (i.currentMonth = (i.currentMonth + 12) % 12),
                U("onYearChange"),
                E()),
              w(),
              U("onMonthChange"),
              K());
          }
          function C(e) {
            return i.calendarContainer.contains(e);
          }
          function O(e) {
            if (i.isOpen && !i.config.inline) {
              var t = bu(e),
                n = C(t),
                r =
                  !(
                    t === i.input ||
                    t === i.altInput ||
                    i.element.contains(t) ||
                    (e.path &&
                      e.path.indexOf &&
                      (~e.path.indexOf(i.input) || ~e.path.indexOf(i.altInput)))
                  ) &&
                  !n &&
                  !C(e.relatedTarget),
                a = !i.config.ignoredFocusElements.some(function (e) {
                  return e.contains(t);
                });
              r &&
                a &&
                (i.config.allowInput &&
                  i.setDate(
                    i._input.value,
                    !1,
                    i.config.altInput ? i.config.altFormat : i.config.dateFormat
                  ),
                void 0 !== i.timeContainer &&
                  void 0 !== i.minuteElement &&
                  void 0 !== i.hourElement &&
                  "" !== i.input.value &&
                  void 0 !== i.input.value &&
                  o(),
                i.close(),
                i.config &&
                  "range" === i.config.mode &&
                  1 === i.selectedDates.length &&
                  i.clear(!1));
            }
          }
          function I(e) {
            if (
              !(
                !e ||
                (i.config.minDate && e < i.config.minDate.getFullYear()) ||
                (i.config.maxDate && e > i.config.maxDate.getFullYear())
              )
            ) {
              var t = e,
                n = i.currentYear !== t;
              (i.currentYear = t || i.currentYear),
                i.config.maxDate &&
                i.currentYear === i.config.maxDate.getFullYear()
                  ? (i.currentMonth = Math.min(
                      i.config.maxDate.getMonth(),
                      i.currentMonth
                    ))
                  : i.config.minDate &&
                    i.currentYear === i.config.minDate.getFullYear() &&
                    (i.currentMonth = Math.max(
                      i.config.minDate.getMonth(),
                      i.currentMonth
                    )),
                n && (i.redraw(), U("onYearChange"), E());
            }
          }
          function M(e, t) {
            var n;
            void 0 === t && (t = !0);
            var r = i.parseDate(e, void 0, t);
            if (
              (i.config.minDate &&
                r &&
                ku(r, i.config.minDate, void 0 !== t ? t : !i.minDateHasTime) <
                  0) ||
              (i.config.maxDate &&
                r &&
                ku(r, i.config.maxDate, void 0 !== t ? t : !i.maxDateHasTime) >
                  0)
            )
              return !1;
            if (!i.config.enable && 0 === i.config.disable.length) return !0;
            if (void 0 === r) return !1;
            for (
              var a = !!i.config.enable,
                o =
                  null !== (n = i.config.enable) && void 0 !== n
                    ? n
                    : i.config.disable,
                s = 0,
                l = void 0;
              s < o.length;
              s++
            ) {
              if ("function" == typeof (l = o[s]) && l(r)) return a;
              if (
                l instanceof Date &&
                void 0 !== r &&
                l.getTime() === r.getTime()
              )
                return a;
              if ("string" == typeof l) {
                var c = i.parseDate(l, void 0, !0);
                return c && c.getTime() === r.getTime() ? a : !a;
              }
              if (
                "object" == typeof l &&
                void 0 !== r &&
                l.from &&
                l.to &&
                r.getTime() >= l.from.getTime() &&
                r.getTime() <= l.to.getTime()
              )
                return a;
            }
            return !a;
          }
          function L(e) {
            return (
              void 0 !== i.daysContainer &&
              -1 === e.className.indexOf("hidden") &&
              -1 === e.className.indexOf("flatpickr-disabled") &&
              i.daysContainer.contains(e)
            );
          }
          function P(e) {
            var t = e.target === i._input,
              n = i._input.value.trimEnd() !== J();
            !t ||
              !n ||
              (e.relatedTarget && C(e.relatedTarget)) ||
              i.setDate(
                i._input.value,
                !0,
                e.target === i.altInput
                  ? i.config.altFormat
                  : i.config.dateFormat
              );
          }
          function D(t) {
            var r = bu(t),
              a = i.config.wrap ? e.contains(r) : r === i._input,
              l = i.config.allowInput,
              c = i.isOpen && (!l || !a),
              u = i.config.inline && a && !l;
            if (13 === t.keyCode && a) {
              if (l)
                return (
                  i.setDate(
                    i._input.value,
                    !0,
                    r === i.altInput ? i.config.altFormat : i.config.dateFormat
                  ),
                  i.close(),
                  r.blur()
                );
              i.open();
            } else if (C(r) || c || u) {
              var d = !!i.timeContainer && i.timeContainer.contains(r);
              switch (t.keyCode) {
                case 13:
                  d ? (t.preventDefault(), o(), Y()) : X(t);
                  break;
                case 27:
                  t.preventDefault(), Y();
                  break;
                case 8:
                case 46:
                  a && !i.config.allowInput && (t.preventDefault(), i.clear());
                  break;
                case 37:
                case 39:
                  if (d || a) i.hourElement && i.hourElement.focus();
                  else {
                    t.preventDefault();
                    var h = n();
                    if (
                      void 0 !== i.daysContainer &&
                      (!1 === l || (h && L(h)))
                    ) {
                      var f = 39 === t.keyCode ? 1 : -1;
                      t.ctrlKey
                        ? (t.stopPropagation(), T(f), y(b(1), 0))
                        : y(void 0, f);
                    }
                  }
                  break;
                case 38:
                case 40:
                  t.preventDefault();
                  var p = 40 === t.keyCode ? 1 : -1;
                  (i.daysContainer && void 0 !== r.$i) ||
                  r === i.input ||
                  r === i.altInput
                    ? t.ctrlKey
                      ? (t.stopPropagation(), I(i.currentYear - p), y(b(1), 0))
                      : d || y(void 0, 7 * p)
                    : r === i.currentYearElement
                    ? I(i.currentYear - p)
                    : i.config.enableTime &&
                      (!d && i.hourElement && i.hourElement.focus(),
                      o(t),
                      i._debouncedChange());
                  break;
                case 9:
                  if (d) {
                    var g = [
                        i.hourElement,
                        i.minuteElement,
                        i.secondElement,
                        i.amPM,
                      ]
                        .concat(i.pluginElements)
                        .filter(function (e) {
                          return e;
                        }),
                      m = g.indexOf(r);
                    if (-1 !== m) {
                      var v = g[m + (t.shiftKey ? -1 : 1)];
                      t.preventDefault(), (v || i._input).focus();
                    }
                  } else
                    !i.config.noCalendar &&
                      i.daysContainer &&
                      i.daysContainer.contains(r) &&
                      t.shiftKey &&
                      (t.preventDefault(), i._input.focus());
              }
            }
            if (void 0 !== i.amPM && r === i.amPM)
              switch (t.key) {
                case i.l10n.amPM[0].charAt(0):
                case i.l10n.amPM[0].charAt(0).toLowerCase():
                  (i.amPM.textContent = i.l10n.amPM[0]), s(), Q();
                  break;
                case i.l10n.amPM[1].charAt(0):
                case i.l10n.amPM[1].charAt(0).toLowerCase():
                  (i.amPM.textContent = i.l10n.amPM[1]), s(), Q();
              }
            (a || C(r)) && U("onKeyDown", t);
          }
          function R(e, t) {
            if (
              (void 0 === t && (t = "flatpickr-day"),
              1 === i.selectedDates.length &&
                (!e ||
                  (e.classList.contains(t) &&
                    !e.classList.contains("flatpickr-disabled"))))
            ) {
              for (
                var n = e
                    ? e.dateObj.getTime()
                    : i.days.firstElementChild.dateObj.getTime(),
                  r = i.parseDate(i.selectedDates[0], void 0, !0).getTime(),
                  a = Math.min(n, i.selectedDates[0].getTime()),
                  o = Math.max(n, i.selectedDates[0].getTime()),
                  s = !1,
                  l = 0,
                  c = 0,
                  u = a;
                u < o;
                u += Iu.DAY
              )
                M(new Date(u), !0) ||
                  ((s = s || (u > a && u < o)),
                  u < r && (!l || u > l)
                    ? (l = u)
                    : u > r && (!c || u < c) && (c = u));
              Array.from(
                i.rContainer.querySelectorAll(
                  "*:nth-child(-n+" + i.config.showMonths + ") > ." + t
                )
              ).forEach(function (t) {
                var a = t.dateObj.getTime(),
                  o = (l > 0 && a < l) || (c > 0 && a > c);
                if (o)
                  return (
                    t.classList.add("notAllowed"),
                    void ["inRange", "startRange", "endRange"].forEach(
                      function (e) {
                        t.classList.remove(e);
                      }
                    )
                  );
                (s && !o) ||
                  (["startRange", "inRange", "endRange", "notAllowed"].forEach(
                    function (e) {
                      t.classList.remove(e);
                    }
                  ),
                  void 0 !== e &&
                    (e.classList.add(
                      n <= i.selectedDates[0].getTime()
                        ? "startRange"
                        : "endRange"
                    ),
                    r < n && a === r
                      ? t.classList.add("startRange")
                      : r > n && a === r && t.classList.add("endRange"),
                    a >= l &&
                      (0 === c || a <= c) &&
                      Tu(a, r, n) &&
                      t.classList.add("inRange")));
              });
            }
          }
          function N() {
            !i.isOpen || i.config.static || i.config.inline || j();
          }
          function F(e) {
            return function (t) {
              var n = (i.config["_" + e + "Date"] = i.parseDate(
                  t,
                  i.config.dateFormat
                )),
                r = i.config["_" + ("min" === e ? "max" : "min") + "Date"];
              void 0 !== n &&
                (i["min" === e ? "minDateHasTime" : "maxDateHasTime"] =
                  n.getHours() > 0 || n.getMinutes() > 0 || n.getSeconds() > 0),
                i.selectedDates &&
                  ((i.selectedDates = i.selectedDates.filter(function (e) {
                    return M(e);
                  })),
                  i.selectedDates.length || "min" !== e || l(n),
                  Q()),
                i.daysContainer &&
                  (H(),
                  void 0 !== n
                    ? (i.currentYearElement[e] = n.getFullYear().toString())
                    : i.currentYearElement.removeAttribute(e),
                  (i.currentYearElement.disabled =
                    !!r &&
                    void 0 !== n &&
                    r.getFullYear() === n.getFullYear()));
            };
          }
          function B() {
            return i.config.wrap ? e.querySelector("[data-input]") : e;
          }
          function z() {
            "object" != typeof i.config.locale &&
              void 0 === Fu.l10ns[i.config.locale] &&
              i.config.errorHandler(
                new Error("flatpickr: invalid locale " + i.config.locale)
              ),
              (i.l10n = Lu(
                Lu({}, Fu.l10ns.default),
                "object" == typeof i.config.locale
                  ? i.config.locale
                  : "default" !== i.config.locale
                  ? Fu.l10ns[i.config.locale]
                  : void 0
              )),
              (Eu.D = "(" + i.l10n.weekdays.shorthand.join("|") + ")"),
              (Eu.l = "(" + i.l10n.weekdays.longhand.join("|") + ")"),
              (Eu.M = "(" + i.l10n.months.shorthand.join("|") + ")"),
              (Eu.F = "(" + i.l10n.months.longhand.join("|") + ")"),
              (Eu.K =
                "(" +
                i.l10n.amPM[0] +
                "|" +
                i.l10n.amPM[1] +
                "|" +
                i.l10n.amPM[0].toLowerCase() +
                "|" +
                i.l10n.amPM[1].toLowerCase() +
                ")"),
              void 0 ===
                Lu(Lu({}, t), JSON.parse(JSON.stringify(e.dataset || {})))
                  .time_24hr &&
                void 0 === Fu.defaultConfig.time_24hr &&
                (i.config.time_24hr = i.l10n.time_24hr),
              (i.formatDate = Su(i)),
              (i.parseDate = Au({ config: i.config, l10n: i.l10n }));
          }
          function j(e) {
            if ("function" != typeof i.config.position) {
              if (void 0 !== i.calendarContainer) {
                U("onPreCalendarPosition");
                var t = e || i._positionElement,
                  n = Array.prototype.reduce.call(
                    i.calendarContainer.children,
                    function (e, t) {
                      return e + t.offsetHeight;
                    },
                    0
                  ),
                  r = i.calendarContainer.offsetWidth,
                  a = i.config.position.split(" "),
                  o = a[0],
                  s = a.length > 1 ? a[1] : null,
                  l = t.getBoundingClientRect(),
                  c = window.innerHeight - l.bottom,
                  u = "above" === o || ("below" !== o && c < n && l.top > n),
                  d =
                    window.pageYOffset +
                    l.top +
                    (u ? -n - 2 : t.offsetHeight + 2);
                if (
                  (fu(i.calendarContainer, "arrowTop", !u),
                  fu(i.calendarContainer, "arrowBottom", u),
                  !i.config.inline)
                ) {
                  var h = window.pageXOffset + l.left,
                    f = !1,
                    p = !1;
                  "center" === s
                    ? ((h -= (r - l.width) / 2), (f = !0))
                    : "right" === s && ((h -= r - l.width), (p = !0)),
                    fu(i.calendarContainer, "arrowLeft", !f && !p),
                    fu(i.calendarContainer, "arrowCenter", f),
                    fu(i.calendarContainer, "arrowRight", p);
                  var g =
                      window.document.body.offsetWidth -
                      (window.pageXOffset + l.right),
                    m = h + r > window.document.body.offsetWidth,
                    v = g + r > window.document.body.offsetWidth;
                  if (
                    (fu(i.calendarContainer, "rightMost", m), !i.config.static)
                  )
                    if (((i.calendarContainer.style.top = d + "px"), m))
                      if (v) {
                        var b = (function () {
                          for (
                            var e = null, t = 0;
                            t < document.styleSheets.length;
                            t++
                          ) {
                            var i = document.styleSheets[t];
                            if (i.cssRules) {
                              try {
                                i.cssRules;
                              } catch (e) {
                                continue;
                              }
                              e = i;
                              break;
                            }
                          }
                          return null != e
                            ? e
                            : ((n = document.createElement("style")),
                              document.head.appendChild(n),
                              n.sheet);
                          var n;
                        })();
                        if (void 0 === b) return;
                        var y = window.document.body.offsetWidth,
                          x = Math.max(0, y / 2 - r / 2),
                          w = b.cssRules.length,
                          E = "{left:" + l.left + "px;right:auto;}";
                        fu(i.calendarContainer, "rightMost", !1),
                          fu(i.calendarContainer, "centerMost", !0),
                          b.insertRule(
                            ".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after" +
                              E,
                            w
                          ),
                          (i.calendarContainer.style.left = x + "px"),
                          (i.calendarContainer.style.right = "auto");
                      } else
                        (i.calendarContainer.style.left = "auto"),
                          (i.calendarContainer.style.right = g + "px");
                    else
                      (i.calendarContainer.style.left = h + "px"),
                        (i.calendarContainer.style.right = "auto");
                }
              }
            } else i.config.position(i, e);
          }
          function H() {
            i.config.noCalendar || i.isMobile || (E(), K(), w());
          }
          function Y() {
            i._input.focus(),
              -1 !== window.navigator.userAgent.indexOf("MSIE") ||
              void 0 !== navigator.msMaxTouchPoints
                ? setTimeout(i.close, 0)
                : i.close();
          }
          function X(e) {
            e.preventDefault(), e.stopPropagation();
            var t = mu(bu(e), function (e) {
              return (
                e.classList &&
                e.classList.contains("flatpickr-day") &&
                !e.classList.contains("flatpickr-disabled") &&
                !e.classList.contains("notAllowed")
              );
            });
            if (void 0 !== t) {
              var n = t,
                r = (i.latestSelectedDateObj = new Date(n.dateObj.getTime())),
                a =
                  (r.getMonth() < i.currentMonth ||
                    r.getMonth() > i.currentMonth + i.config.showMonths - 1) &&
                  "range" !== i.config.mode;
              if (((i.selectedDateElem = n), "single" === i.config.mode))
                i.selectedDates = [r];
              else if ("multiple" === i.config.mode) {
                var o = Z(r);
                o
                  ? i.selectedDates.splice(parseInt(o), 1)
                  : i.selectedDates.push(r);
              } else
                "range" === i.config.mode &&
                  (2 === i.selectedDates.length && i.clear(!1, !1),
                  (i.latestSelectedDateObj = r),
                  i.selectedDates.push(r),
                  0 !== ku(r, i.selectedDates[0], !0) &&
                    i.selectedDates.sort(function (e, t) {
                      return e.getTime() - t.getTime();
                    }));
              if ((s(), a)) {
                var l = i.currentYear !== r.getFullYear();
                (i.currentYear = r.getFullYear()),
                  (i.currentMonth = r.getMonth()),
                  l && (U("onYearChange"), E()),
                  U("onMonthChange");
              }
              if (
                (K(),
                w(),
                Q(),
                a || "range" === i.config.mode || 1 !== i.config.showMonths
                  ? void 0 !== i.selectedDateElem &&
                    void 0 === i.hourElement &&
                    i.selectedDateElem &&
                    i.selectedDateElem.focus()
                  : v(n),
                void 0 !== i.hourElement &&
                  void 0 !== i.hourElement &&
                  i.hourElement.focus(),
                i.config.closeOnSelect)
              ) {
                var c = "single" === i.config.mode && !i.config.enableTime,
                  u =
                    "range" === i.config.mode &&
                    2 === i.selectedDates.length &&
                    !i.config.enableTime;
                (c || u) && Y();
              }
              h();
            }
          }
          (i.parseDate = Au({ config: i.config, l10n: i.l10n })),
            (i._handlers = []),
            (i.pluginElements = []),
            (i.loadedPlugins = []),
            (i._bind = d),
            (i._setHoursFromDate = l),
            (i._positionCalendar = j),
            (i.changeMonth = T),
            (i.changeYear = I),
            (i.clear = function (e, t) {
              void 0 === e && (e = !0);
              void 0 === t && (t = !0);
              (i.input.value = ""),
                void 0 !== i.altInput && (i.altInput.value = "");
              void 0 !== i.mobileInput && (i.mobileInput.value = "");
              (i.selectedDates = []),
                (i.latestSelectedDateObj = void 0),
                !0 === t &&
                  ((i.currentYear = i._initialDate.getFullYear()),
                  (i.currentMonth = i._initialDate.getMonth()));
              if (!0 === i.config.enableTime) {
                var n = Mu(i.config);
                c(n.hours, n.minutes, n.seconds);
              }
              i.redraw(), e && U("onChange");
            }),
            (i.close = function () {
              (i.isOpen = !1),
                i.isMobile ||
                  (void 0 !== i.calendarContainer &&
                    i.calendarContainer.classList.remove("open"),
                  void 0 !== i._input && i._input.classList.remove("active"));
              U("onClose");
            }),
            (i.onMouseOver = R),
            (i._createElement = pu),
            (i.createDay = m),
            (i.destroy = function () {
              void 0 !== i.config && U("onDestroy");
              for (var e = i._handlers.length; e--; ) i._handlers[e].remove();
              if (((i._handlers = []), i.mobileInput))
                i.mobileInput.parentNode &&
                  i.mobileInput.parentNode.removeChild(i.mobileInput),
                  (i.mobileInput = void 0);
              else if (i.calendarContainer && i.calendarContainer.parentNode)
                if (i.config.static && i.calendarContainer.parentNode) {
                  var t = i.calendarContainer.parentNode;
                  if (
                    (t.lastChild && t.removeChild(t.lastChild), t.parentNode)
                  ) {
                    for (; t.firstChild; )
                      t.parentNode.insertBefore(t.firstChild, t);
                    t.parentNode.removeChild(t);
                  }
                } else
                  i.calendarContainer.parentNode.removeChild(
                    i.calendarContainer
                  );
              i.altInput &&
                ((i.input.type = "text"),
                i.altInput.parentNode &&
                  i.altInput.parentNode.removeChild(i.altInput),
                delete i.altInput);
              i.input &&
                ((i.input.type = i.input._type),
                i.input.classList.remove("flatpickr-input"),
                i.input.removeAttribute("readonly"));
              [
                "_showTimeInput",
                "latestSelectedDateObj",
                "_hideNextMonthArrow",
                "_hidePrevMonthArrow",
                "__hideNextMonthArrow",
                "__hidePrevMonthArrow",
                "isMobile",
                "isOpen",
                "selectedDateElem",
                "minDateHasTime",
                "maxDateHasTime",
                "days",
                "daysContainer",
                "_input",
                "_positionElement",
                "innerContainer",
                "rContainer",
                "monthNav",
                "todayDateElem",
                "calendarContainer",
                "weekdayContainer",
                "prevMonthNav",
                "nextMonthNav",
                "monthsDropdownContainer",
                "currentMonthElement",
                "currentYearElement",
                "navigationCurrentMonth",
                "selectedDateElem",
                "config",
              ].forEach(function (e) {
                try {
                  delete i[e];
                } catch (e) {}
              });
            }),
            (i.isEnabled = M),
            (i.jumpToDate = f),
            (i.updateValue = Q),
            (i.open = function (e, t) {
              void 0 === t && (t = i._positionElement);
              if (!0 === i.isMobile) {
                if (e) {
                  e.preventDefault();
                  var n = bu(e);
                  n && n.blur();
                }
                return (
                  void 0 !== i.mobileInput &&
                    (i.mobileInput.focus(), i.mobileInput.click()),
                  void U("onOpen")
                );
              }
              if (i._input.disabled || i.config.inline) return;
              var r = i.isOpen;
              (i.isOpen = !0),
                r ||
                  (i.calendarContainer.classList.add("open"),
                  i._input.classList.add("active"),
                  U("onOpen"),
                  j(t));
              !0 === i.config.enableTime &&
                !0 === i.config.noCalendar &&
                (!1 !== i.config.allowInput ||
                  (void 0 !== e && i.timeContainer.contains(e.relatedTarget)) ||
                  setTimeout(function () {
                    return i.hourElement.select();
                  }, 50));
            }),
            (i.redraw = H),
            (i.set = function (e, t) {
              if (null !== e && "object" == typeof e)
                for (var n in (Object.assign(i.config, e), e))
                  void 0 !== W[n] &&
                    W[n].forEach(function (e) {
                      return e();
                    });
              else
                (i.config[e] = t),
                  void 0 !== W[e]
                    ? W[e].forEach(function (e) {
                        return e();
                      })
                    : au.indexOf(e) > -1 && (i.config[e] = hu(t));
              i.redraw(), Q(!0);
            }),
            (i.setDate = function (e, t, n) {
              void 0 === t && (t = !1);
              void 0 === n && (n = i.config.dateFormat);
              if ((0 !== e && !e) || (e instanceof Array && 0 === e.length))
                return i.clear(t);
              G(e, n),
                (i.latestSelectedDateObj =
                  i.selectedDates[i.selectedDates.length - 1]),
                i.redraw(),
                f(void 0, t),
                l(),
                0 === i.selectedDates.length && i.clear(!1);
              Q(t), t && U("onChange");
            }),
            (i.toggle = function (e) {
              if (!0 === i.isOpen) return i.close();
              i.open(e);
            });
          var W = {
            locale: [z, k],
            showMonths: [S, a, A],
            minDate: [f],
            maxDate: [f],
            positionElement: [V],
            clickOpens: [
              function () {
                !0 === i.config.clickOpens
                  ? (d(i._input, "focus", i.open), d(i._input, "click", i.open))
                  : (i._input.removeEventListener("focus", i.open),
                    i._input.removeEventListener("click", i.open));
              },
            ],
          };
          function G(e, t) {
            var n = [];
            if (e instanceof Array)
              n = e.map(function (e) {
                return i.parseDate(e, t);
              });
            else if (e instanceof Date || "number" == typeof e)
              n = [i.parseDate(e, t)];
            else if ("string" == typeof e)
              switch (i.config.mode) {
                case "single":
                case "time":
                  n = [i.parseDate(e, t)];
                  break;
                case "multiple":
                  n = e.split(i.config.conjunction).map(function (e) {
                    return i.parseDate(e, t);
                  });
                  break;
                case "range":
                  n = e.split(i.l10n.rangeSeparator).map(function (e) {
                    return i.parseDate(e, t);
                  });
              }
            else
              i.config.errorHandler(
                new Error("Invalid date supplied: " + JSON.stringify(e))
              );
            (i.selectedDates = i.config.allowInvalidPreload
              ? n
              : n.filter(function (e) {
                  return e instanceof Date && M(e, !1);
                })),
              "range" === i.config.mode &&
                i.selectedDates.sort(function (e, t) {
                  return e.getTime() - t.getTime();
                });
          }
          function q(e) {
            return e
              .slice()
              .map(function (e) {
                return "string" == typeof e ||
                  "number" == typeof e ||
                  e instanceof Date
                  ? i.parseDate(e, void 0, !0)
                  : e && "object" == typeof e && e.from && e.to
                  ? {
                      from: i.parseDate(e.from, void 0),
                      to: i.parseDate(e.to, void 0),
                    }
                  : e;
              })
              .filter(function (e) {
                return e;
              });
          }
          function V() {
            i._positionElement = i.config.positionElement || i._input;
          }
          function U(e, t) {
            if (void 0 !== i.config) {
              var n = i.config[e];
              if (void 0 !== n && n.length > 0)
                for (var r = 0; n[r] && r < n.length; r++)
                  n[r](i.selectedDates, i.input.value, i, t);
              "onChange" === e &&
                (i.input.dispatchEvent($("change")),
                i.input.dispatchEvent($("input")));
            }
          }
          function $(e) {
            var t = document.createEvent("Event");
            return t.initEvent(e, !0, !0), t;
          }
          function Z(e) {
            for (var t = 0; t < i.selectedDates.length; t++) {
              var n = i.selectedDates[t];
              if (n instanceof Date && 0 === ku(n, e)) return "" + t;
            }
            return !1;
          }
          function K() {
            i.config.noCalendar ||
              i.isMobile ||
              !i.monthNav ||
              (i.yearElements.forEach(function (e, t) {
                var n = new Date(i.currentYear, i.currentMonth, 1);
                n.setMonth(i.currentMonth + t),
                  i.config.showMonths > 1 ||
                  "static" === i.config.monthSelectorType
                    ? (i.monthElements[t].textContent =
                        xu(
                          n.getMonth(),
                          i.config.shorthandCurrentMonth,
                          i.l10n
                        ) + " ")
                    : (i.monthsDropdownContainer.value = n
                        .getMonth()
                        .toString()),
                  (e.value = n.getFullYear().toString());
              }),
              (i._hidePrevMonthArrow =
                void 0 !== i.config.minDate &&
                (i.currentYear === i.config.minDate.getFullYear()
                  ? i.currentMonth <= i.config.minDate.getMonth()
                  : i.currentYear < i.config.minDate.getFullYear())),
              (i._hideNextMonthArrow =
                void 0 !== i.config.maxDate &&
                (i.currentYear === i.config.maxDate.getFullYear()
                  ? i.currentMonth + 1 > i.config.maxDate.getMonth()
                  : i.currentYear > i.config.maxDate.getFullYear())));
          }
          function J(e) {
            var t =
              e ||
              (i.config.altInput ? i.config.altFormat : i.config.dateFormat);
            return i.selectedDates
              .map(function (e) {
                return i.formatDate(e, t);
              })
              .filter(function (e, t, n) {
                return (
                  "range" !== i.config.mode ||
                  i.config.enableTime ||
                  n.indexOf(e) === t
                );
              })
              .join(
                "range" !== i.config.mode
                  ? i.config.conjunction
                  : i.l10n.rangeSeparator
              );
          }
          function Q(e) {
            void 0 === e && (e = !0),
              void 0 !== i.mobileInput &&
                i.mobileFormatStr &&
                (i.mobileInput.value =
                  void 0 !== i.latestSelectedDateObj
                    ? i.formatDate(i.latestSelectedDateObj, i.mobileFormatStr)
                    : ""),
              (i.input.value = J(i.config.dateFormat)),
              void 0 !== i.altInput &&
                (i.altInput.value = J(i.config.altFormat)),
              !1 !== e && U("onValueUpdate");
          }
          function ee(e) {
            var t = bu(e),
              n = i.prevMonthNav.contains(t),
              r = i.nextMonthNav.contains(t);
            n || r
              ? T(n ? -1 : 1)
              : i.yearElements.indexOf(t) >= 0
              ? t.select()
              : t.classList.contains("arrowUp")
              ? i.changeYear(i.currentYear + 1)
              : t.classList.contains("arrowDown") &&
                i.changeYear(i.currentYear - 1);
          }
          return (
            (function () {
              (i.element = i.input = e),
                (i.isOpen = !1),
                (function () {
                  var n = [
                      "wrap",
                      "weekNumbers",
                      "allowInput",
                      "allowInvalidPreload",
                      "clickOpens",
                      "time_24hr",
                      "enableTime",
                      "noCalendar",
                      "altInput",
                      "shorthandCurrentMonth",
                      "inline",
                      "static",
                      "enableSeconds",
                      "disableMobile",
                    ],
                    a = Lu(
                      Lu({}, JSON.parse(JSON.stringify(e.dataset || {}))),
                      t
                    ),
                    o = {};
                  (i.config.parseDate = a.parseDate),
                    (i.config.formatDate = a.formatDate),
                    Object.defineProperty(i.config, "enable", {
                      get: function () {
                        return i.config._enable;
                      },
                      set: function (e) {
                        i.config._enable = q(e);
                      },
                    }),
                    Object.defineProperty(i.config, "disable", {
                      get: function () {
                        return i.config._disable;
                      },
                      set: function (e) {
                        i.config._disable = q(e);
                      },
                    });
                  var s = "time" === a.mode;
                  if (!a.dateFormat && (a.enableTime || s)) {
                    var l = Fu.defaultConfig.dateFormat || ou.dateFormat;
                    o.dateFormat =
                      a.noCalendar || s
                        ? "H:i" + (a.enableSeconds ? ":S" : "")
                        : l + " H:i" + (a.enableSeconds ? ":S" : "");
                  }
                  if (a.altInput && (a.enableTime || s) && !a.altFormat) {
                    var c = Fu.defaultConfig.altFormat || ou.altFormat;
                    o.altFormat =
                      a.noCalendar || s
                        ? "h:i" + (a.enableSeconds ? ":S K" : " K")
                        : c + " h:i" + (a.enableSeconds ? ":S" : "") + " K";
                  }
                  Object.defineProperty(i.config, "minDate", {
                    get: function () {
                      return i.config._minDate;
                    },
                    set: F("min"),
                  }),
                    Object.defineProperty(i.config, "maxDate", {
                      get: function () {
                        return i.config._maxDate;
                      },
                      set: F("max"),
                    });
                  var u = function (e) {
                    return function (t) {
                      i.config["min" === e ? "_minTime" : "_maxTime"] =
                        i.parseDate(t, "H:i:S");
                    };
                  };
                  Object.defineProperty(i.config, "minTime", {
                    get: function () {
                      return i.config._minTime;
                    },
                    set: u("min"),
                  }),
                    Object.defineProperty(i.config, "maxTime", {
                      get: function () {
                        return i.config._maxTime;
                      },
                      set: u("max"),
                    }),
                    "time" === a.mode &&
                      ((i.config.noCalendar = !0), (i.config.enableTime = !0));
                  Object.assign(i.config, o, a);
                  for (var d = 0; d < n.length; d++)
                    i.config[n[d]] =
                      !0 === i.config[n[d]] || "true" === i.config[n[d]];
                  au
                    .filter(function (e) {
                      return void 0 !== i.config[e];
                    })
                    .forEach(function (e) {
                      i.config[e] = hu(i.config[e] || []).map(r);
                    }),
                    (i.isMobile =
                      !i.config.disableMobile &&
                      !i.config.inline &&
                      "single" === i.config.mode &&
                      !i.config.disable.length &&
                      !i.config.enable &&
                      !i.config.weekNumbers &&
                      /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
                        navigator.userAgent
                      ));
                  for (d = 0; d < i.config.plugins.length; d++) {
                    var h = i.config.plugins[d](i) || {};
                    for (var f in h)
                      au.indexOf(f) > -1
                        ? (i.config[f] = hu(h[f]).map(r).concat(i.config[f]))
                        : void 0 === a[f] && (i.config[f] = h[f]);
                  }
                  a.altInputClass ||
                    (i.config.altInputClass =
                      B().className + " " + i.config.altInputClass);
                  U("onParseConfig");
                })(),
                z(),
                (function () {
                  if (((i.input = B()), !i.input))
                    return void i.config.errorHandler(
                      new Error("Invalid input element specified")
                    );
                  (i.input._type = i.input.type),
                    (i.input.type = "text"),
                    i.input.classList.add("flatpickr-input"),
                    (i._input = i.input),
                    i.config.altInput &&
                      ((i.altInput = pu(
                        i.input.nodeName,
                        i.config.altInputClass
                      )),
                      (i._input = i.altInput),
                      (i.altInput.placeholder = i.input.placeholder),
                      (i.altInput.disabled = i.input.disabled),
                      (i.altInput.required = i.input.required),
                      (i.altInput.tabIndex = i.input.tabIndex),
                      (i.altInput.type = "text"),
                      i.input.setAttribute("type", "hidden"),
                      !i.config.static &&
                        i.input.parentNode &&
                        i.input.parentNode.insertBefore(
                          i.altInput,
                          i.input.nextSibling
                        ));
                  i.config.allowInput ||
                    i._input.setAttribute("readonly", "readonly");
                  V();
                })(),
                (function () {
                  (i.selectedDates = []),
                    (i.now = i.parseDate(i.config.now) || new Date());
                  var e =
                    i.config.defaultDate ||
                    (("INPUT" !== i.input.nodeName &&
                      "TEXTAREA" !== i.input.nodeName) ||
                    !i.input.placeholder ||
                    i.input.value !== i.input.placeholder
                      ? i.input.value
                      : null);
                  e && G(e, i.config.dateFormat);
                  (i._initialDate =
                    i.selectedDates.length > 0
                      ? i.selectedDates[0]
                      : i.config.minDate &&
                        i.config.minDate.getTime() > i.now.getTime()
                      ? i.config.minDate
                      : i.config.maxDate &&
                        i.config.maxDate.getTime() < i.now.getTime()
                      ? i.config.maxDate
                      : i.now),
                    (i.currentYear = i._initialDate.getFullYear()),
                    (i.currentMonth = i._initialDate.getMonth()),
                    i.selectedDates.length > 0 &&
                      (i.latestSelectedDateObj = i.selectedDates[0]);
                  void 0 !== i.config.minTime &&
                    (i.config.minTime = i.parseDate(i.config.minTime, "H:i"));
                  void 0 !== i.config.maxTime &&
                    (i.config.maxTime = i.parseDate(i.config.maxTime, "H:i"));
                  (i.minDateHasTime =
                    !!i.config.minDate &&
                    (i.config.minDate.getHours() > 0 ||
                      i.config.minDate.getMinutes() > 0 ||
                      i.config.minDate.getSeconds() > 0)),
                    (i.maxDateHasTime =
                      !!i.config.maxDate &&
                      (i.config.maxDate.getHours() > 0 ||
                        i.config.maxDate.getMinutes() > 0 ||
                        i.config.maxDate.getSeconds() > 0));
                })(),
                (i.utils = {
                  getDaysInMonth: function (e, t) {
                    return (
                      void 0 === e && (e = i.currentMonth),
                      void 0 === t && (t = i.currentYear),
                      1 === e && ((t % 4 == 0 && t % 100 != 0) || t % 400 == 0)
                        ? 29
                        : i.l10n.daysInMonth[e]
                    );
                  },
                }),
                i.isMobile ||
                  (function () {
                    var e = window.document.createDocumentFragment();
                    if (
                      ((i.calendarContainer = pu("div", "flatpickr-calendar")),
                      (i.calendarContainer.tabIndex = -1),
                      !i.config.noCalendar)
                    ) {
                      if (
                        (e.appendChild(
                          ((i.monthNav = pu("div", "flatpickr-months")),
                          (i.yearElements = []),
                          (i.monthElements = []),
                          (i.prevMonthNav = pu("span", "flatpickr-prev-month")),
                          (i.prevMonthNav.innerHTML = i.config.prevArrow),
                          (i.nextMonthNav = pu("span", "flatpickr-next-month")),
                          (i.nextMonthNav.innerHTML = i.config.nextArrow),
                          S(),
                          Object.defineProperty(i, "_hidePrevMonthArrow", {
                            get: function () {
                              return i.__hidePrevMonthArrow;
                            },
                            set: function (e) {
                              i.__hidePrevMonthArrow !== e &&
                                (fu(i.prevMonthNav, "flatpickr-disabled", e),
                                (i.__hidePrevMonthArrow = e));
                            },
                          }),
                          Object.defineProperty(i, "_hideNextMonthArrow", {
                            get: function () {
                              return i.__hideNextMonthArrow;
                            },
                            set: function (e) {
                              i.__hideNextMonthArrow !== e &&
                                (fu(i.nextMonthNav, "flatpickr-disabled", e),
                                (i.__hideNextMonthArrow = e));
                            },
                          }),
                          (i.currentYearElement = i.yearElements[0]),
                          K(),
                          i.monthNav)
                        ),
                        (i.innerContainer = pu(
                          "div",
                          "flatpickr-innerContainer"
                        )),
                        i.config.weekNumbers)
                      ) {
                        var t = (function () {
                            i.calendarContainer.classList.add("hasWeeks");
                            var e = pu("div", "flatpickr-weekwrapper");
                            e.appendChild(
                              pu(
                                "span",
                                "flatpickr-weekday",
                                i.l10n.weekAbbreviation
                              )
                            );
                            var t = pu("div", "flatpickr-weeks");
                            return (
                              e.appendChild(t),
                              { weekWrapper: e, weekNumbers: t }
                            );
                          })(),
                          n = t.weekWrapper,
                          r = t.weekNumbers;
                        i.innerContainer.appendChild(n),
                          (i.weekNumbers = r),
                          (i.weekWrapper = n);
                      }
                      (i.rContainer = pu("div", "flatpickr-rContainer")),
                        i.rContainer.appendChild(A()),
                        i.daysContainer ||
                          ((i.daysContainer = pu("div", "flatpickr-days")),
                          (i.daysContainer.tabIndex = -1)),
                        w(),
                        i.rContainer.appendChild(i.daysContainer),
                        i.innerContainer.appendChild(i.rContainer),
                        e.appendChild(i.innerContainer);
                    }
                    i.config.enableTime &&
                      e.appendChild(
                        (function () {
                          i.calendarContainer.classList.add("hasTime"),
                            i.config.noCalendar &&
                              i.calendarContainer.classList.add("noCalendar");
                          var e = Mu(i.config);
                          (i.timeContainer = pu("div", "flatpickr-time")),
                            (i.timeContainer.tabIndex = -1);
                          var t = pu("span", "flatpickr-time-separator", ":"),
                            n = vu("flatpickr-hour", {
                              "aria-label": i.l10n.hourAriaLabel,
                            });
                          i.hourElement = n.getElementsByTagName("input")[0];
                          var r = vu("flatpickr-minute", {
                            "aria-label": i.l10n.minuteAriaLabel,
                          });
                          (i.minuteElement =
                            r.getElementsByTagName("input")[0]),
                            (i.hourElement.tabIndex = i.minuteElement.tabIndex =
                              -1),
                            (i.hourElement.value = cu(
                              i.latestSelectedDateObj
                                ? i.latestSelectedDateObj.getHours()
                                : i.config.time_24hr
                                ? e.hours
                                : (function (e) {
                                    switch (e % 24) {
                                      case 0:
                                      case 12:
                                        return 12;
                                      default:
                                        return e % 12;
                                    }
                                  })(e.hours)
                            )),
                            (i.minuteElement.value = cu(
                              i.latestSelectedDateObj
                                ? i.latestSelectedDateObj.getMinutes()
                                : e.minutes
                            )),
                            i.hourElement.setAttribute(
                              "step",
                              i.config.hourIncrement.toString()
                            ),
                            i.minuteElement.setAttribute(
                              "step",
                              i.config.minuteIncrement.toString()
                            ),
                            i.hourElement.setAttribute(
                              "min",
                              i.config.time_24hr ? "0" : "1"
                            ),
                            i.hourElement.setAttribute(
                              "max",
                              i.config.time_24hr ? "23" : "12"
                            ),
                            i.hourElement.setAttribute("maxlength", "2"),
                            i.minuteElement.setAttribute("min", "0"),
                            i.minuteElement.setAttribute("max", "59"),
                            i.minuteElement.setAttribute("maxlength", "2"),
                            i.timeContainer.appendChild(n),
                            i.timeContainer.appendChild(t),
                            i.timeContainer.appendChild(r),
                            i.config.time_24hr &&
                              i.timeContainer.classList.add("time24hr");
                          if (i.config.enableSeconds) {
                            i.timeContainer.classList.add("hasSeconds");
                            var a = vu("flatpickr-second");
                            (i.secondElement =
                              a.getElementsByTagName("input")[0]),
                              (i.secondElement.value = cu(
                                i.latestSelectedDateObj
                                  ? i.latestSelectedDateObj.getSeconds()
                                  : e.seconds
                              )),
                              i.secondElement.setAttribute(
                                "step",
                                i.minuteElement.getAttribute("step")
                              ),
                              i.secondElement.setAttribute("min", "0"),
                              i.secondElement.setAttribute("max", "59"),
                              i.secondElement.setAttribute("maxlength", "2"),
                              i.timeContainer.appendChild(
                                pu("span", "flatpickr-time-separator", ":")
                              ),
                              i.timeContainer.appendChild(a);
                          }
                          i.config.time_24hr ||
                            ((i.amPM = pu(
                              "span",
                              "flatpickr-am-pm",
                              i.l10n.amPM[
                                uu(
                                  (i.latestSelectedDateObj
                                    ? i.hourElement.value
                                    : i.config.defaultHour) > 11
                                )
                              ]
                            )),
                            (i.amPM.title = i.l10n.toggleTitle),
                            (i.amPM.tabIndex = -1),
                            i.timeContainer.appendChild(i.amPM));
                          return i.timeContainer;
                        })()
                      );
                    fu(
                      i.calendarContainer,
                      "rangeMode",
                      "range" === i.config.mode
                    ),
                      fu(
                        i.calendarContainer,
                        "animate",
                        !0 === i.config.animate
                      ),
                      fu(
                        i.calendarContainer,
                        "multiMonth",
                        i.config.showMonths > 1
                      ),
                      i.calendarContainer.appendChild(e);
                    var a =
                      void 0 !== i.config.appendTo &&
                      void 0 !== i.config.appendTo.nodeType;
                    if (
                      (i.config.inline || i.config.static) &&
                      (i.calendarContainer.classList.add(
                        i.config.inline ? "inline" : "static"
                      ),
                      i.config.inline &&
                        (!a && i.element.parentNode
                          ? i.element.parentNode.insertBefore(
                              i.calendarContainer,
                              i._input.nextSibling
                            )
                          : void 0 !== i.config.appendTo &&
                            i.config.appendTo.appendChild(i.calendarContainer)),
                      i.config.static)
                    ) {
                      var o = pu("div", "flatpickr-wrapper");
                      i.element.parentNode &&
                        i.element.parentNode.insertBefore(o, i.element),
                        o.appendChild(i.element),
                        i.altInput && o.appendChild(i.altInput),
                        o.appendChild(i.calendarContainer);
                    }
                    i.config.static ||
                      i.config.inline ||
                      (void 0 !== i.config.appendTo
                        ? i.config.appendTo
                        : window.document.body
                      ).appendChild(i.calendarContainer);
                  })(),
                (function () {
                  i.config.wrap &&
                    ["open", "close", "toggle", "clear"].forEach(function (e) {
                      Array.prototype.forEach.call(
                        i.element.querySelectorAll("[data-" + e + "]"),
                        function (t) {
                          return d(t, "click", i[e]);
                        }
                      );
                    });
                  if (i.isMobile)
                    return void (function () {
                      var e = i.config.enableTime
                        ? i.config.noCalendar
                          ? "time"
                          : "datetime-local"
                        : "date";
                      (i.mobileInput = pu(
                        "input",
                        i.input.className + " flatpickr-mobile"
                      )),
                        (i.mobileInput.tabIndex = 1),
                        (i.mobileInput.type = e),
                        (i.mobileInput.disabled = i.input.disabled),
                        (i.mobileInput.required = i.input.required),
                        (i.mobileInput.placeholder = i.input.placeholder),
                        (i.mobileFormatStr =
                          "datetime-local" === e
                            ? "Y-m-d\\TH:i:S"
                            : "date" === e
                            ? "Y-m-d"
                            : "H:i:S"),
                        i.selectedDates.length > 0 &&
                          (i.mobileInput.defaultValue = i.mobileInput.value =
                            i.formatDate(
                              i.selectedDates[0],
                              i.mobileFormatStr
                            ));
                      i.config.minDate &&
                        (i.mobileInput.min = i.formatDate(
                          i.config.minDate,
                          "Y-m-d"
                        ));
                      i.config.maxDate &&
                        (i.mobileInput.max = i.formatDate(
                          i.config.maxDate,
                          "Y-m-d"
                        ));
                      i.input.getAttribute("step") &&
                        (i.mobileInput.step = String(
                          i.input.getAttribute("step")
                        ));
                      (i.input.type = "hidden"),
                        void 0 !== i.altInput && (i.altInput.type = "hidden");
                      try {
                        i.input.parentNode &&
                          i.input.parentNode.insertBefore(
                            i.mobileInput,
                            i.input.nextSibling
                          );
                      } catch (e) {}
                      d(i.mobileInput, "change", function (e) {
                        i.setDate(bu(e).value, !1, i.mobileFormatStr),
                          U("onChange"),
                          U("onClose");
                      });
                    })();
                  var e = du(N, 50);
                  (i._debouncedChange = du(h, Du)),
                    i.daysContainer &&
                      !/iPhone|iPad|iPod/i.test(navigator.userAgent) &&
                      d(i.daysContainer, "mouseover", function (e) {
                        "range" === i.config.mode && R(bu(e));
                      });
                  d(i._input, "keydown", D),
                    void 0 !== i.calendarContainer &&
                      d(i.calendarContainer, "keydown", D);
                  i.config.inline || i.config.static || d(window, "resize", e);
                  void 0 !== window.ontouchstart
                    ? d(window.document, "touchstart", O)
                    : d(window.document, "mousedown", O);
                  d(window.document, "focus", O, { capture: !0 }),
                    !0 === i.config.clickOpens &&
                      (d(i._input, "focus", i.open),
                      d(i._input, "click", i.open));
                  void 0 !== i.daysContainer &&
                    (d(i.monthNav, "click", ee),
                    d(i.monthNav, ["keyup", "increment"], u),
                    d(i.daysContainer, "click", X));
                  if (
                    void 0 !== i.timeContainer &&
                    void 0 !== i.minuteElement &&
                    void 0 !== i.hourElement
                  ) {
                    var t = function (e) {
                      return bu(e).select();
                    };
                    d(i.timeContainer, ["increment"], o),
                      d(i.timeContainer, "blur", o, { capture: !0 }),
                      d(i.timeContainer, "click", p),
                      d(
                        [i.hourElement, i.minuteElement],
                        ["focus", "click"],
                        t
                      ),
                      void 0 !== i.secondElement &&
                        d(i.secondElement, "focus", function () {
                          return i.secondElement && i.secondElement.select();
                        }),
                      void 0 !== i.amPM &&
                        d(i.amPM, "click", function (e) {
                          o(e);
                        });
                  }
                  i.config.allowInput && d(i._input, "blur", P);
                })(),
                (i.selectedDates.length || i.config.noCalendar) &&
                  (i.config.enableTime &&
                    l(i.config.noCalendar ? i.latestSelectedDateObj : void 0),
                  Q(!1)),
                a();
              var n = /^((?!chrome|android).)*safari/i.test(
                navigator.userAgent
              );
              !i.isMobile && n && j(), U("onReady");
            })(),
            i
          );
        }
        function Nu(e, t) {
          for (
            var i = Array.prototype.slice.call(e).filter(function (e) {
                return e instanceof HTMLElement;
              }),
              n = [],
              r = 0;
            r < i.length;
            r++
          ) {
            var a = i[r];
            try {
              if (null !== a.getAttribute("data-fp-omit")) continue;
              void 0 !== a._flatpickr &&
                (a._flatpickr.destroy(), (a._flatpickr = void 0)),
                (a._flatpickr = Ru(a, t || {})),
                n.push(a._flatpickr);
            } catch (e) {
              console.error(e);
            }
          }
          return 1 === n.length ? n[0] : n;
        }
        "undefined" != typeof HTMLElement &&
          "undefined" != typeof HTMLCollection &&
          "undefined" != typeof NodeList &&
          ((HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr =
            function (e) {
              return Nu(this, e);
            }),
          (HTMLElement.prototype.flatpickr = function (e) {
            return Nu([this], e);
          }));
        var Fu = function (e, t) {
          return "string" == typeof e
            ? Nu(window.document.querySelectorAll(e), t)
            : e instanceof Node
            ? Nu([e], t)
            : Nu(e, t);
        };
        (Fu.defaultConfig = {}),
          (Fu.l10ns = { en: Lu({}, lu), default: Lu({}, lu) }),
          (Fu.localize = function (e) {
            Fu.l10ns.default = Lu(Lu({}, Fu.l10ns.default), e);
          }),
          (Fu.setDefaults = function (e) {
            Fu.defaultConfig = Lu(Lu({}, Fu.defaultConfig), e);
          }),
          (Fu.parseDate = Au({})),
          (Fu.formatDate = Su({})),
          (Fu.compareDates = ku),
          "undefined" != typeof jQuery &&
            void 0 !== jQuery.fn &&
            (jQuery.fn.flatpickr = function (e) {
              return Nu(this, e);
            }),
          (Date.prototype.fp_incr = function (e) {
            return new Date(
              this.getFullYear(),
              this.getMonth(),
              this.getDate() + ("string" == typeof e ? parseInt(e, 10) : e)
            );
          }),
          "undefined" != typeof window && (window.flatpickr = Fu);
        const Bu = Fu;
        var zu = i(488),
          ju = i.n(zu);
        function Hu(e) {
          var t = e.target.closest(".card").querySelector(".code-wrapper");
          e.target.checked
            ? t.classList.remove("hidden")
            : t.classList.add("hidden");
        }
        function Yu() {
          return window.innerWidth - document.documentElement.clientWidth;
        }
        var Xu = {
            demoChart1: {
              colors: ["#34d399", "#ffba1a"],
              series: [
                { name: "Series1", data: [31, 40, 28, 51, 42, 109, 100] },
                { name: "Series2", data: [11, 32, 45, 32, 34, 52, 41] },
              ],
              chart: { height: 350, type: "area", toolbar: { show: !1 } },
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth" },
              xaxis: {
                type: "datetime",
                categories: [
                  "2018-09-19T00:00:00.000Z",
                  "2018-09-19T01:30:00.000Z",
                  "2018-09-19T02:30:00.000Z",
                  "2018-09-19T03:30:00.000Z",
                  "2018-09-19T04:30:00.000Z",
                  "2018-09-19T05:30:00.000Z",
                  "2018-09-19T06:30:00.000Z",
                ],
              },
              tooltip: { x: { format: "dd/MM/yy HH:mm" } },
              legend: {
                position: "top",
                horizontalAlign: "left",
                fontSize: "14px",
              },
            },
            demoChart2: {
              colors: ["#6366f1", "#ffba1a"],
              series: [
                { name: "PRODUCT B", data: [45, 75, 50, 70, 85, 90, 70, 62] },
                { name: "PRODUCT A", data: [30, 16, 27, 30, 55, 60, 48, 43] },
              ],
              chart: {
                type: "area",
                stacked: !1,
                height: 350,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              markers: { size: 0 },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.35,
                  opacityTo: 0.05,
                  stops: [20, 100, 100, 100],
                },
              },
              tooltip: { shared: !0 },
              legend: {
                position: "top",
                horizontalAlign: "right",
                offsetX: -10,
              },
              grid: {
                xaxis: { lines: { show: !0 } },
                yaxis: { lines: { show: !0 } },
              },
            },
            demoChart3: {
              colors: ["#ff9800", "#6366f1"],
              series: [
                { name: "Net Profit", data: [44, 55, 57, 56, 61, 58, 63] },
                { name: "Revenue", data: [76, 85, 101, 98, 87, 105, 91] },
              ],
              chart: { type: "bar", height: 350, toolbar: { show: !1 } },
              plotOptions: {
                bar: { horizontal: !0, columnWidth: "55%", borderRadius: 5 },
              },
              dataLabels: { enabled: !1 },
              stroke: { show: !0, width: 2, colors: ["transparent"] },
              xaxis: {
                categories: ["Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug"],
              },
              fill: { opacity: 1 },
              tooltip: {
                y: {
                  formatter: function (e) {
                    return "$ " + e + " thousands";
                  },
                },
              },
              legend: {
                position: "top",
                horizontalAlign: "right",
                fontSize: "14px",
                markers: { radius: 12 },
              },
            },
            demoChart4: {
              colors: ["#a855f7"],
              series: [{ name: "Sales", data: [14, 13, 10, 9, 19, 22, 25] }],
              chart: {
                height: 350,
                type: "line",
                dropShadow: {
                  enabled: !0,
                  color: "#1E202C",
                  top: 18,
                  left: 6,
                  blur: 8,
                  opacity: 0.1,
                },
              },
              stroke: { width: 8, curve: "smooth" },
              xaxis: {
                type: "datetime",
                categories: [
                  "1/11/2000",
                  "2/11/2000",
                  "3/11/2000",
                  "4/11/2000",
                  "5/11/2000",
                  "6/11/2000",
                  "7/11/2000",
                ],
                tickAmount: 10,
                labels: {
                  formatter: function (e, t, i) {
                    return i.dateFormatter(new Date(t), "dd MMM");
                  },
                },
              },
              fill: {
                type: "gradient",
                gradient: {
                  shade: "dark",
                  gradientToColors: ["#86efac"],
                  shadeIntensity: 1,
                  type: "horizontal",
                  opacityFrom: 1,
                  opacityTo: 0.95,
                  stops: [0, 100, 0, 100],
                },
              },
              yaxis: { min: -10, max: 40 },
            },
            demoChart5: {
              series: [
                {
                  name: "candle",
                  data: [
                    {
                      x: new Date(15387786e5),
                      y: [6629.81, 6650.5, 6623.04, 6633.33],
                    },
                    {
                      x: new Date(15387804e5),
                      y: [6632.01, 6643.59, 6620, 6630.11],
                    },
                    {
                      x: new Date(15387822e5),
                      y: [6630.71, 6648.95, 6623.34, 6635.65],
                    },
                    {
                      x: new Date(1538784e6),
                      y: [6635.65, 6651, 6629.67, 6638.24],
                    },
                    {
                      x: new Date(15387858e5),
                      y: [6638.24, 6640, 6620, 6624.47],
                    },
                    {
                      x: new Date(15387876e5),
                      y: [6624.53, 6636.03, 6621.68, 6624.31],
                    },
                    {
                      x: new Date(15387894e5),
                      y: [6624.61, 6632.2, 6617, 6626.02],
                    },
                    {
                      x: new Date(15387912e5),
                      y: [6627, 6627.62, 6584.22, 6603.02],
                    },
                    {
                      x: new Date(1538793e6),
                      y: [6605, 6608.03, 6598.95, 6604.01],
                    },
                    {
                      x: new Date(15387948e5),
                      y: [6604.5, 6614.4, 6602.26, 6608.02],
                    },
                    {
                      x: new Date(15387966e5),
                      y: [6608.02, 6610.68, 6601.99, 6608.91],
                    },
                    {
                      x: new Date(15387984e5),
                      y: [6608.91, 6618.99, 6608.01, 6612],
                    },
                    {
                      x: new Date(15388002e5),
                      y: [6612, 6615.13, 6605.09, 6612],
                    },
                    {
                      x: new Date(1538802e6),
                      y: [6612, 6624.12, 6608.43, 6622.95],
                    },
                    {
                      x: new Date(15388038e5),
                      y: [6623.91, 6623.91, 6615, 6615.67],
                    },
                    {
                      x: new Date(15388056e5),
                      y: [6618.69, 6618.74, 6610, 6610.4],
                    },
                    {
                      x: new Date(15388074e5),
                      y: [6611, 6622.78, 6610.4, 6614.9],
                    },
                    {
                      x: new Date(15388092e5),
                      y: [6614.9, 6626.2, 6613.33, 6623.45],
                    },
                    {
                      x: new Date(1538811e6),
                      y: [6623.48, 6627, 6618.38, 6620.35],
                    },
                    {
                      x: new Date(15388128e5),
                      y: [6619.43, 6620.35, 6610.05, 6615.53],
                    },
                    {
                      x: new Date(15388146e5),
                      y: [6615.53, 6617.93, 6610, 6615.19],
                    },
                    {
                      x: new Date(15388164e5),
                      y: [6615.19, 6621.6, 6608.2, 6620],
                    },
                    {
                      x: new Date(15388182e5),
                      y: [6619.54, 6625.17, 6614.15, 6620],
                    },
                    {
                      x: new Date(153882e7),
                      y: [6620.33, 6634.15, 6617.24, 6624.61],
                    },
                    {
                      x: new Date(15388218e5),
                      y: [6625.95, 6626, 6611.66, 6617.58],
                    },
                    {
                      x: new Date(15388236e5),
                      y: [6619, 6625.97, 6595.27, 6598.86],
                    },
                  ],
                },
              ],
              chart: {
                height: 350,
                type: "candlestick",
                toolbar: { show: !1 },
              },
              grid: {
                xaxis: { lines: { show: !0 } },
                yaxis: { lines: { show: !0 } },
              },
              tooltip: { enabled: !0 },
              xaxis: {
                type: "category",
                labels: {
                  formatter: function (e) {
                    return dayjs(e).format("MMM DD HH:mm");
                  },
                },
              },
              yaxis: { tooltip: { enabled: !0 } },
            },
            demoChart6: {
              series: [
                { name: "PRODUCT A", data: [44, 55, 41, 67, 22, 43, 21, 49] },
                { name: "PRODUCT B", data: [13, 23, 20, 8, 13, 27, 33, 12] },
                { name: "PRODUCT C", data: [11, 17, 15, 15, 21, 14, 15, 13] },
              ],
              chart: {
                type: "bar",
                height: 350,
                stacked: !0,
                stackType: "100%",
                toolbar: { show: !1 },
              },
              plotOptions: { bar: { borderRadius: 15 } },
              xaxis: {
                categories: [
                  "2011 Q1",
                  "2011 Q2",
                  "2011 Q3",
                  "2011 Q4",
                  "2012 Q1",
                  "2012 Q2",
                  "2012 Q3",
                  "2012 Q4",
                ],
              },
              fill: { opacity: 1 },
              legend: {
                position: "top",
                horizontalAlign: "left",
                fontSize: "14px",
                markers: { radius: 12 },
              },
            },
            demoChart7: {
              series: [
                {
                  name: "SAMPLE A",
                  data: [
                    [16.4, 5.4],
                    [21.7, 2],
                    [27.1, 2.3],
                    [16.4, 0],
                    [13.6, 3.7],
                    [10.9, 5.2],
                    [16.4, 6.5],
                    [10.9, 0],
                    [24.5, 7.1],
                    [10.9, 0],
                    [8.1, 4.7],
                  ],
                },
                {
                  name: "SAMPLE B",
                  data: [
                    [36.4, 13.4],
                    [1.6, 10],
                    [9.9, 2],
                    [7.1, 15],
                    [1.4, 0],
                    [3.6, 13.7],
                    [1.9, 15.2],
                    [6.4, 16.5],
                    [0.9, 10],
                    [4.5, 17.1],
                    [10.9, 10],
                  ],
                },
                {
                  name: "SAMPLE C",
                  data: [
                    [21.7, 3],
                    [32.6, 3],
                    [27.1, 4],
                    [29.6, 6],
                    [31.6, 8],
                    [21.6, 5],
                    [20.9, 4],
                    [22.4, 0],
                    [32.6, 10.3],
                    [29.7, 20.8],
                    [24.5, 0.8],
                  ],
                },
              ],
              chart: {
                height: 350,
                type: "scatter",
                zoom: { enabled: !0, type: "xy" },
                toolbar: { show: !1 },
              },
              xaxis: {
                tickAmount: 10,
                labels: {
                  formatter: function (e) {
                    return parseFloat(e).toFixed(1);
                  },
                },
              },
              yaxis: { tickAmount: 7 },
              legend: {
                position: "bottom",
                horizontalAlign: "left",
                fontSize: "14px",
              },
            },
            demoChart8: {
              colors: ["#4ade80", "#f43f5e", "#a855f7"],
              series: [44, 55, 67],
              chart: { height: 350, type: "radialBar" },
              plotOptions: {
                radialBar: {
                  hollow: { margin: 15, size: "35%" },
                  track: { margin: 15 },
                  dataLabels: {
                    name: { fontSize: "22px" },
                    value: { fontSize: "16px" },
                    total: {
                      show: !0,
                      label: "Total",
                      formatter: function (e) {
                        return e.config.series.reduce(function (e, t) {
                          return e + t;
                        });
                      },
                    },
                  },
                },
              },
              stroke: { lineCap: "round" },
              labels: ["Apples", "Oranges", "Bananas"],
            },
            demoChart9: {
              series: [
                { name: "Series 1", data: [80, 50, 30, 40, 100, 20] },
                { name: "Series 2", data: [20, 30, 40, 80, 20, 80] },
                { name: "Series 3", data: [44, 76, 78, 13, 43, 10] },
              ],
              chart: {
                height: 350,
                type: "radar",
                dropShadow: { enabled: !0, blur: 1, left: 1, top: 1 },
              },
              grid: {
                xaxis: { lines: { show: !1 } },
                yaxis: { lines: { show: !1 } },
              },
              stroke: { width: 2 },
              fill: { opacity: 0.1 },
              markers: { size: 0 },
              xaxis: {
                categories: ["2011", "2012", "2013", "2014", "2015", "2016"],
              },
            },
            demoChart10: {
              series: [42, 47, 52, 58, 65],
              chart: {
                width: 380,
                type: "polarArea",
                animations: { enabled: !1 },
              },
              labels: ["Rose A", "Rose B", "Rose C", "Rose D", "Rose E"],
              fill: { opacity: 1 },
              stroke: { width: 1, colors: void 0 },
              yaxis: { show: !1 },
              legend: { position: "bottom", horizontalAlign: "center" },
              plotOptions: {
                polarArea: {
                  rings: { strokeWidth: 0 },
                  spokes: { strokeWidth: 0 },
                },
              },
              theme: {
                monochrome: {
                  color: "#F000B9",
                  enabled: !0,
                  shadeTo: "light",
                  shadeIntensity: 0.6,
                },
              },
            },
            cardUser1: {
              colors: ["#6366f1"],
              series: [{ name: "Posts", data: [48, 100, 70, 92] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 85,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: 0 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            cardUser2: {
              colors: ["#F000B9"],
              series: [{ name: "Posts", data: [54, 77, 43, 69, 12] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 85,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: 0 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            cardUser3: {
              colors: ["#10B981"],
              series: [{ name: "Posts", data: [0, 100, 0] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 85,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: 0 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            cardUser4: {
              colors: ["#FF5724"],
              series: [{ name: "Posts", data: [0, 20, 10, 30, 20, 50] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 85,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: 0 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            cardUser5: {
              colors: ["#FF9800"],
              series: [{ name: "Posts", data: [33, 77, 55, 102, 12] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 85,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: 0 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            dailyVisitWidget: {
              colors: ["#FF5724"],
              series: [{ data: [0, 20, 10, 30, 20, 50] }],
              chart: {
                type: "line",
                stacked: !1,
                height: 150,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
                zoom: { enabled: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { show: !1, padding: { left: 0, right: 0 } },
              stroke: { width: 3, curve: "smooth" },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            interview: {
              colors: ["#0EA5E9"],
              series: [
                { name: "Interviews", data: [31, 40, 28, 51, 42, 61, 45] },
              ],
              chart: { height: "220", type: "area", toolbar: { show: !1 } },
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 2 },
              xaxis: {
                type: "datetime",
                categories: [
                  "2018-09-19",
                  "2018-09-20",
                  "2018-09-21",
                  "2018-09-22",
                  "2018-09-23",
                  "2018-09-24",
                  "2018-09-25",
                ],
              },
              tooltip: { x: { format: "dd/MM/yy HH:mm" } },
              legend: { show: !1 },
            },
            tasksReport: {
              colors: ["#81E4C0", "#FFC233", "#F000B9"],
              series: [
                { name: "Completed", data: [31, 40, 28, 51, 42, 109, 100] },
                { name: "Blocked", data: [48, 32, 45, 77, 86, 52, 41] },
                { name: "Pending", data: [75, 64, 55, 62, 34, 62, 91] },
              ],
              chart: { height: 300, type: "area", toolbar: { show: !1 } },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: 0, bottom: 0 } },
              yaxis: { labels: { offsetX: -12, offsetY: 0 } },
              stroke: { curve: "smooth", width: "2" },
              xaxis: {
                type: "datetime",
                categories: [
                  "2018-09-19T00:00:00.000Z",
                  "2018-09-19T01:30:00.000Z",
                  "2018-09-19T02:30:00.000Z",
                  "2018-09-19T03:30:00.000Z",
                  "2018-09-19T04:30:00.000Z",
                  "2018-09-19T05:30:00.000Z",
                  "2018-09-19T06:30:00.000Z",
                ],
              },
              tooltip: { x: { format: "dd/MM/yy HH:mm" } },
              legend: {
                position: "top",
                horizontalAlign: "left",
                fontSize: "14px",
                offsetX: -28,
              },
            },
            tasksStatus: {
              colors: ["#4C4EE7", "#0EA5E9"],
              series: [
                { name: "High", data: [28, 45, 35, 50, 32, 55, 23, 60] },
                { name: "Low", data: [14, 25, 20, 25, 12, 20, 15, 20] },
              ],
              chart: { height: 250, type: "area", toolbar: { show: !1 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.35,
                  opacityTo: 0.05,
                  stops: [20, 100, 100, 100],
                },
              },
              dataLabels: { enabled: !1 },
              stroke: { width: 2, curve: "smooth" },
              plotOptions: {
                bar: { borderRadius: 5, barHeight: "90%", columnWidth: "40%" },
              },
              legend: { show: !1 },
              xaxis: {
                categories: [
                  "Jan",
                  "Feb",
                  "Mar",
                  "Apr",
                  "May",
                  "Jun",
                  "Jul",
                  "Aug",
                ],
              },
              grid: { padding: { left: 10, right: 0, top: 0, bottom: 0 } },
            },
            teamefficiency: {
              series: [44, 55, 66],
              labels: ["Design", "Development", "Support"],
              chart: { type: "donut", height: "200px" },
              legend: { show: !1 },
              dataLabels: { enabled: !1 },
              plotOptions: {
                pie: {
                  donut: {
                    labels: {
                      show: !0,
                      total: {
                        show: !0,
                        label: "Design",
                        color: void 0,
                        fontFamily: void 0,
                        formatter: function (e) {
                          return e.config.series[0];
                        },
                      },
                    },
                  },
                },
              },
              theme: {
                monochrome: {
                  color: "#5F5AF6",
                  enabled: !0,
                  shadeTo: "light",
                  shadeIntensity: 0.65,
                },
              },
            },
            earningWhite: {
              colors: ["#fff"],
              series: [{ name: "Earning", data: [0, 20, 50, 10] }],
              chart: {
                type: "line",
                stacked: !1,
                height: 60,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -28 } },
              stroke: { width: 3, curve: "smooth" },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            incomePersonal: {
              series: [
                {
                  name: "Income",
                  data: [1765, 2357, 4215, 3971, 3841, 4221, 2374, 4212],
                },
              ],
              colors: ["#4467EF"],
              chart: {
                height: 250,
                type: "bar",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              plotOptions: {
                bar: {
                  borderRadius: 10,
                  columnWidth: "55%",
                  dataLabels: { position: "top" },
                },
              },
              dataLabels: {
                enabled: !0,
                formatter: function (e) {
                  return e >= 1e3 ? (e / 1e3).toFixed(2) + "k" : e;
                },
                offsetY: -20,
              },
              xaxis: {
                categories: [
                  "Jan",
                  "Feb",
                  "Mar",
                  "Apr",
                  "May",
                  "Jun",
                  "Jul",
                  "Aug",
                ],
                position: "top",
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                tooltip: { enabled: !1 },
              },
              yaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            courseTimeline: {
              series: [
                {
                  data: [
                    {
                      x: "Analysis",
                      y: [
                        new Date("2019-02-27").getTime(),
                        new Date("2019-03-04").getTime(),
                      ],
                      fillColor: "#008FFB",
                    },
                    {
                      x: "Design",
                      y: [
                        new Date("2019-03-04").getTime(),
                        new Date("2019-03-09").getTime(),
                      ],
                      fillColor: "#00E396",
                    },
                    {
                      x: "Coding",
                      y: [
                        new Date("2019-03-07").getTime(),
                        new Date("2019-03-10").getTime(),
                      ],
                      fillColor: "#775DD0",
                    },
                    {
                      x: "Testing",
                      y: [
                        new Date("2019-03-08").getTime(),
                        new Date("2019-03-12").getTime(),
                      ],
                      fillColor: "#FEB019",
                    },
                    {
                      x: "Deployment",
                      y: [
                        new Date("2019-03-12").getTime(),
                        new Date("2019-03-17").getTime(),
                      ],
                      fillColor: "#FF4560",
                    },
                  ],
                },
              ],
              chart: {
                type: "rangeBar",
                height: "200px",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              grid: { padding: { top: -16, bottom: 0 } },
              plotOptions: {
                bar: {
                  horizontal: !0,
                  distributed: !0,
                  dataLabels: { hideOverflowingLabels: !1 },
                },
              },
              dataLabels: { enabled: !1 },
              xaxis: { type: "datetime" },
              yaxis: { show: !1 },
            },
            blogVisitors: {
              colors: ["#10b981"],
              series: [
                { name: "Visitors", data: [35, 20, 45, 30, 55, 27, 45] },
              ],
              chart: {
                type: "area",
                stacked: !1,
                height: 150,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: -8 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.35,
                  opacityTo: 0.05,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            blogMembers: {
              colors: ["#ff5724"],
              series: [{ name: "Members", data: [65, 40, 60, 35, 56, 42] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 150,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: -8 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.35,
                  opacityTo: 0.05,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            blogAuthors1: {
              series: [
                { name: "Posts", data: [1765, 2357, 4215, 3971, 3841, 4221] },
              ],
              colors: ["#4467EF"],
              chart: {
                height: 85,
                type: "bar",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              grid: { padding: { left: -18, right: 0, top: -30 } },
              plotOptions: { bar: { borderRadius: 8, columnWidth: "55%" } },
              dataLabels: { enabled: !1 },
              xaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            blogAuthors2: {
              series: [
                { name: "Posts", data: [2357, 4215, 1765, 4221, 3841, 5665] },
              ],
              colors: ["#f000b9"],
              chart: {
                height: 85,
                type: "bar",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              grid: { padding: { left: -18, right: 0, top: -30 } },
              plotOptions: { bar: { borderRadius: 8, columnWidth: "55%" } },
              dataLabels: { enabled: !1 },
              xaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            blogAuthors3: {
              series: [
                { name: "Posts", data: [6153, 7020, 5659, 3422, 5439, 6081] },
              ],
              colors: ["#10b981"],
              chart: {
                height: 85,
                type: "bar",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              grid: { padding: { left: -18, right: 0, top: -30 } },
              plotOptions: { bar: { borderRadius: 8, columnWidth: "55%" } },
              dataLabels: { enabled: !1 },
              xaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            blogAuthors4: {
              series: [
                { name: "Posts", data: [1499, 2303, 2857, 1791, 2194, 1351] },
              ],
              colors: ["#ff5724"],
              chart: {
                height: 85,
                type: "bar",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              grid: { padding: { left: -18, right: 0, top: -30 } },
              plotOptions: { bar: { borderRadius: 8, columnWidth: "55%" } },
              dataLabels: { enabled: !1 },
              xaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            blogAuthors5: {
              series: [
                { name: "Posts", data: [1765, 2357, 4215, 3971, 3841, 4221] },
              ],
              colors: ["#4467EF"],
              chart: {
                height: 85,
                type: "bar",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              grid: { padding: { left: -18, right: 0, top: -30 } },
              plotOptions: { bar: { borderRadius: 8, columnWidth: "55%" } },
              dataLabels: { enabled: !1 },
              xaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            workingHours: {
              colors: ["#0EA5E9"],
              series: [70],
              chart: { height: 210, type: "radialBar" },
              plotOptions: {
                radialBar: {
                  hollow: { margin: 0, size: "70%" },
                  dataLabels: {
                    name: { show: !1 },
                    value: {
                      show: !0,
                      color: "#333",
                      offsetY: 10,
                      fontSize: "24px",
                      fontWeight: 600,
                    },
                  },
                },
              },
              grid: {
                show: !1,
                padding: { left: 0, right: 0, top: 0, bottom: 0 },
              },
              stroke: { lineCap: "round" },
            },
            patientCount: {
              colors: ["#0EA5E9", "#F000B9"],
              series: [
                { name: "Man", data: [28, 45, 35, 50, 32] },
                { name: "Woman", data: [14, 25, 20, 25, 12] },
              ],
              chart: { height: 210, type: "bar", toolbar: { show: !1 } },
              dataLabels: { enabled: !1 },
              plotOptions: {
                bar: { borderRadius: 5, barHeight: "90%", columnWidth: "40%" },
              },
              legend: { show: !1 },
              xaxis: {
                categories: ["Jan", "Feb", "Mar", "Apr", "May"],
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                tooltip: { enabled: !1 },
              },
              grid: { padding: { left: 0, right: 0, top: 0, bottom: -8 } },
              yaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            salesGrowth: {
              colors: ["#FF9800"],
              series: [
                { name: "Sales Growth", data: [35, 20, 45, 30, 55, 27, 45] },
              ],
              chart: {
                type: "area",
                stacked: !1,
                height: 120,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -28, bottom: -15 } },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            clientsGrowth: {
              colors: ["#10B981"],
              series: [
                { name: "Clients Growth", data: [45, 20, 55, 28, 45, 25, 65] },
              ],
              chart: {
                type: "area",
                stacked: !1,
                height: 120,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -28, bottom: -15 } },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            employeesTask: {
              colors: ["#0EA5E9"],
              series: [65],
              chart: { height: 120, width: 120, type: "radialBar" },
              plotOptions: {
                radialBar: {
                  hollow: { size: "60%" },
                  dataLabels: {
                    name: { show: !1, color: "#fff" },
                    value: { show: !0, fontSize: "18px", offsetY: 4 },
                  },
                },
              },
              grid: {
                show: !1,
                padding: { left: -20, right: -20, top: -20, bottom: -23 },
              },
              stroke: { lineCap: "round" },
            },
            serverTraffic: {
              colors: ["#4C4EE7", "#0EA5E9"],
              series: [
                { name: "High", data: [28, 45, 35, 50, 32, 55, 23, 60] },
                { name: "Low", data: [14, 25, 20, 25, 12, 20, 15, 20] },
              ],
              chart: { height: 260, type: "bar", toolbar: { show: !1 } },
              dataLabels: { enabled: !1 },
              plotOptions: {
                bar: { borderRadius: 5, barHeight: "90%", columnWidth: "40%" },
              },
              legend: { show: !1 },
              xaxis: {
                categories: [
                  "Jan",
                  "Feb",
                  "Mar",
                  "Apr",
                  "May",
                  "Jun",
                  "Jul",
                  "Aug",
                ],
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                tooltip: { enabled: !1 },
              },
              grid: { padding: { left: -8, right: -8, top: 0, bottom: -6 } },
              yaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            cpuUsage: {
              colors: ["#0EA5E9"],
              series: [76],
              chart: {
                height: "200px",
                type: "radialBar",
                sparkline: { enabled: !0 },
              },
              plotOptions: {
                radialBar: {
                  startAngle: -90,
                  endAngle: 90,
                  dataLabels: {
                    name: { show: !1 },
                    value: { offsetY: -2, fontSize: "18px" },
                  },
                },
              },
              responsive: [
                { breakpoint: 400, options: { chart: { height: "160px" } } },
              ],
              grid: { padding: { top: 0, right: -10, bottom: 0, left: -10 } },
              labels: ["Average Results"],
            },
            storageUsage: {
              colors: ["#4C4EE7"],
              series: [45],
              chart: { height: 80, width: 50, type: "radialBar" },
              plotOptions: {
                radialBar: {
                  hollow: { size: "45%" },
                  dataLabels: {
                    name: { show: !1 },
                    value: { offsetY: 5, show: !0, fontSize: "12px" },
                  },
                },
              },
              grid: { padding: { top: -15, right: 0, bottom: -17, left: 0 } },
              stroke: { lineCap: "round" },
            },
            memoryUsage: {
              colors: ["#0EA5E9"],
              series: [45],
              chart: { height: 80, width: 50, type: "radialBar" },
              plotOptions: {
                radialBar: {
                  hollow: { size: "45%" },
                  dataLabels: {
                    name: { show: !1, color: "#fff" },
                    value: { offsetY: 5, show: !0, fontSize: "12px" },
                  },
                },
              },
              grid: { padding: { top: -15, right: 0, bottom: -17, left: 0 } },
              stroke: { lineCap: "round" },
            },
            salesReport: {
              colors: ["#4C4EE7", "#0EA5E9"],
              series: [
                {
                  name: "Sales",
                  data: [28, 45, 35, 50, 32, 55, 23, 60, 28, 45, 35, 50],
                },
                {
                  name: "Profit",
                  data: [14, 25, 20, 25, 12, 20, 15, 20, 14, 25, 20, 25],
                },
              ],
              chart: { height: 260, type: "bar", toolbar: { show: !1 } },
              dataLabels: { enabled: !1 },
              plotOptions: {
                bar: { borderRadius: 4, barHeight: "90%", columnWidth: "35%" },
              },
              legend: { show: !1 },
              xaxis: {
                categories: [
                  "Jan",
                  "Feb",
                  "Mar",
                  "Apr",
                  "May",
                  "Jun",
                  "Jul",
                  "Aug",
                  "Sep",
                  "Oct",
                  "Nov",
                  "Dec",
                ],
                labels: { hideOverlappingLabels: !1 },
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                tooltip: { enabled: !1 },
              },
              grid: { padding: { left: 0, right: 0, top: 0, bottom: -8 } },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              responsive: [
                {
                  breakpoint: 850,
                  options: { plotOptions: { bar: { columnWidth: "55%" } } },
                },
              ],
            },
            salesEarning: {
              series: [
                { name: "Earning A", data: [44, 55, 41, 25, 22] },
                { name: "Earning 0", data: [13, 23, 20, 60, 13] },
              ],
              grid: {
                show: !1,
                padding: { left: -8, right: 0, bottom: -8, top: 0 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              chart: {
                type: "bar",
                height: 120,
                toolbar: { show: !1 },
                stacked: !0,
                stackType: "100%",
              },
              dataLabels: { enabled: !1 },
              fill: { colors: ["#0EA5E9", "#e2e8f0"] },
              plotOptions: {
                bar: { borderRadius: 2, horizontal: !1, columnWidth: 20 },
              },
              legend: { show: !1 },
            },
            salesRating: {
              colors: ["#10b981"],
              series: [85],
              chart: { height: 80, width: 50, type: "radialBar" },
              plotOptions: {
                radialBar: {
                  hollow: { size: "45%" },
                  dataLabels: {
                    name: { show: !1 },
                    value: { offsetY: 5, show: !0, fontSize: "12px" },
                  },
                },
              },
              grid: { padding: { top: -15, right: 0, bottom: -17, left: 0 } },
              stroke: { lineCap: "round" },
            },
            salesCompletedOrders: {
              colors: ["#4C4EE7"],
              series: [45],
              chart: { height: 80, width: 50, type: "radialBar" },
              plotOptions: {
                radialBar: {
                  hollow: { size: "45%" },
                  dataLabels: {
                    name: { show: !1 },
                    value: { offsetY: 5, show: !0, fontSize: "12px" },
                  },
                },
              },
              grid: { padding: { top: -15, right: 0, bottom: -17, left: 0 } },
              stroke: { lineCap: "round" },
            },
            salesOrders: {
              colors: ["#FF9800"],
              series: [{ name: "Orders", data: [20, 50, 30, 60, 25, 82] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 140,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: -10 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            topSeller1: {
              colors: ["#4467EF"],
              chart: {
                height: 100,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              series: [{ name: "Income", data: [20, 420, 102, 540, 275, 614] }],
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 3 },
              grid: { padding: { left: 0, right: 0, top: -10, bottom: 0 } },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            topSeller2: {
              colors: ["#4467EF"],
              chart: {
                height: 100,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              series: [{ name: "Income", data: [54, 77, 43, 69, 12] }],
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 3 },
              grid: { padding: { left: 0, right: 0, top: -10, bottom: 0 } },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            topSeller3: {
              colors: ["#4467EF"],
              chart: {
                height: 100,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              series: [{ name: "Income", data: [0, 20, 10, 30, 20, 50] }],
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 3 },
              grid: { padding: { left: 0, right: 0, top: -10, bottom: 0 } },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            topSeller4: {
              colors: ["#4467EF"],
              chart: {
                height: 100,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              series: [
                { name: "Income", data: [654, 820, 102, 540, 154, 614] },
              ],
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 3 },
              grid: { padding: { left: 0, right: 0, top: -10, bottom: 0 } },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            ordersOverview: {
              colors: ["#4C4EE7", "#26E7A6", "#FF9800"],
              series: [
                { name: "Orders", data: [28, 45, 35, 50, 32, 55, 23, 60, 28] },
                {
                  name: "Completed Orders",
                  data: [14, 25, 20, 25, 12, 20, 15, 20, 14],
                },
                { name: "Returned Orders", data: [4, 5, 6, 5, 2, 5, 3, 6, 3] },
              ],
              chart: {
                height: 270,
                type: "bar",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              stroke: { show: !0, width: 2, colors: ["transparent"] },
              plotOptions: {
                bar: { borderRadius: 4, barHeight: "90%", columnWidth: "35%" },
              },
              legend: { show: !1 },
              xaxis: {
                categories: [
                  "Jan",
                  "Feb",
                  "Mar",
                  "Apr",
                  "May",
                  "Jun",
                  "Jul",
                  "Aug",
                  "Sep",
                ],
                labels: { hideOverlappingLabels: !1 },
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                tooltip: { enabled: !1 },
              },
              grid: { padding: { left: 0, right: 0, top: 0, bottom: 0 } },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              responsive: [
                {
                  breakpoint: 850,
                  options: { plotOptions: { bar: { columnWidth: "55%" } } },
                },
              ],
            },
            orderBudget: {
              series: [
                { name: "Start", data: [44, 55, 41, 25, 22, 56] },
                { name: "End", data: [13, 23, 20, 60, 13, 16] },
              ],
              grid: {
                show: !1,
                padding: { left: -8, right: 0, bottom: -12, top: 0 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              chart: {
                type: "bar",
                height: 120,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
                stacked: !0,
                stackType: "100%",
              },
              dataLabels: { enabled: !1 },
              fill: { colors: ["#0EA5E9", "#e2e8f0"] },
              plotOptions: {
                bar: { borderRadius: 2, horizontal: !1, columnWidth: 20 },
              },
              legend: { show: !1 },
            },
            orderIncome: {
              colors: ["#10b981"],
              series: [{ name: "Income", data: [20, 50, 30, 60, 33, 75] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 150,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: -8 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            orderExpense: {
              colors: ["#FF5724"],
              series: [{ name: "Expense", data: [82, 25, 60, 30, 50, 20] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 150,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: -8 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            historyTransactions: {
              colors: ["#FF9800", "#0EA5E9"],
              series: [
                { name: "High", data: [28, 45, 35, 50, 32, 55, 23, 60] },
                { name: "Low", data: [14, 25, 20, 25, 12, 20, 15, 20] },
              ],
              chart: {
                parentHeightOffset: 0,
                height: 290,
                type: "area",
                toolbar: { show: !1 },
              },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.35,
                  opacityTo: 0.05,
                  stops: [20, 100, 100, 100],
                },
              },
              dataLabels: { enabled: !1 },
              stroke: { width: 2, curve: "smooth" },
              plotOptions: {
                bar: { borderRadius: 5, barHeight: "90%", columnWidth: "40%" },
              },
              legend: { show: !1 },
              xaxis: {
                categories: [
                  "Jan",
                  "Feb",
                  "Mar",
                  "Apr",
                  "May",
                  "Jun",
                  "Jul",
                  "Aug",
                ],
              },
              grid: { padding: { left: 10, right: 0, top: -10, bottom: 0 } },
            },
            historyTransactionsLine: {
              colors: ["#4C4EE7", "#0EA5E9"],
              series: [
                {
                  name: "Sales",
                  data: [28, 45, 35, 50, 32, 55, 23, 60, 28, 66],
                },
                {
                  name: "Profit",
                  data: [14, 25, 20, 25, 12, 20, 15, 20, 14, 22],
                },
              ],
              chart: {
                height: 330,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              plotOptions: {},
              legend: { show: !1 },
              xaxis: {
                categories: [
                  "Jan",
                  "Feb",
                  "Mar",
                  "Apr",
                  "May",
                  "Jun",
                  "Jul",
                  "Aug",
                  "Sep",
                  "Oct",
                ],
                labels: { hideOverlappingLabels: !1 },
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                tooltip: { enabled: !1 },
              },
              stroke: { width: 3 },
              markers: { size: 5, hover: { size: 8 } },
              grid: { padding: { left: 10, right: 0, top: -30, bottom: -8 } },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            analyticsSalesOverview: {
              colors: ["#4C4EE7", "#0EA5E9"],
              series: [
                {
                  name: "Sales",
                  data: [28, 45, 35, 50, 32, 55, 23, 60, 28, 45, 35, 50],
                },
                {
                  name: "Profit",
                  data: [14, 25, 20, 25, 12, 20, 15, 20, 14, 25, 20, 25],
                },
              ],
              chart: {
                height: 255,
                type: "bar",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              plotOptions: {
                bar: { borderRadius: 4, barHeight: "90%", columnWidth: "35%" },
              },
              legend: { show: !1 },
              xaxis: {
                categories: [
                  "Jan",
                  "Feb",
                  "Mar",
                  "Apr",
                  "May",
                  "Jun",
                  "Jul",
                  "Aug",
                  "Sep",
                  "Oct",
                  "Nov",
                  "Dec",
                ],
                labels: { hideOverlappingLabels: !1 },
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                tooltip: { enabled: !1 },
              },
              grid: { padding: { left: 0, right: 0, top: 0, bottom: -10 } },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              responsive: [
                {
                  breakpoint: 850,
                  options: { plotOptions: { bar: { columnWidth: "55%" } } },
                },
              ],
            },
            analyticsSalesThisMonth: {
              colors: ["#4467EF"],
              chart: {
                height: 60,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              series: [{ name: "Sales", data: [654, 820, 102, 540, 154, 614] }],
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 3 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: -10 } },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            analyticsBandwidth: {
              colors: ["#4467EF"],
              series: [
                {
                  name: "Traffic",
                  data: [
                    8107.85, 8128, 8122.9, 8165.5, 8340.7, 8423.7, 8423.5,
                    8514.3, 8481.85, 8487.7, 8506.9, 8626.2, 8668.95, 8602.3,
                    8607.55, 8512.9, 8496.25, 8600.65, 8881.1, 9340.85,
                  ],
                },
              ],
              chart: {
                type: "area",
                height: 220,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
                zoom: { enabled: !1 },
              },
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 2 },
              grid: { padding: { left: 0, right: 0, top: -28, bottom: -15 } },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            travelAnalytics: {
              colors: ["#4ade80", "#f43f5e", "#a855f7"],
              series: [44, 55, 67],
              chart: { height: 250, type: "radialBar" },
              plotOptions: {
                radialBar: {
                  hollow: { margin: 10, size: "35%" },
                  track: { margin: 10 },
                  dataLabels: {
                    name: { fontSize: "22px" },
                    value: { fontSize: "16px" },
                    total: {
                      show: !0,
                      label: "Total",
                      formatter: function (e) {
                        return e.config.series.reduce(function (e, t) {
                          return e + t;
                        });
                      },
                    },
                  },
                },
              },
              grid: { padding: { top: -20, bottom: -20, right: 0, left: 0 } },
              stroke: { lineCap: "round" },
              labels: ["Booked", "Cancelled", "Unconfirmed"],
            },
            travelExpense: {
              colors: ["#0EA5E9"],
              series: [{ name: "Expense", data: [82, 25, 60, 30, 50, 20] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 180,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: -8 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            influencerActivity: {
              colors: ["#a855f7"],
              series: [
                { name: "Sales", data: [200, 100, 300, 200, 400, 300, 500] },
              ],
              chart: {
                height: 268,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
                dropShadow: {
                  enabled: !0,
                  color: "#1E202C",
                  top: 18,
                  left: 6,
                  blur: 8,
                  opacity: 0.1,
                },
              },
              stroke: { width: 5, curve: "smooth" },
              xaxis: {
                type: "datetime",
                categories: [
                  "1/11/2000",
                  "2/11/2000",
                  "3/11/2000",
                  "4/11/2000",
                  "5/11/2000",
                  "6/11/2000",
                  "7/11/2000",
                ],
                tickAmount: 10,
                labels: {
                  formatter: function (e, t, i) {
                    return i.dateFormatter(new Date(t), "dd MMM");
                  },
                },
              },
              yaxis: { labels: { offsetX: -12, offsetY: 0 } },
              fill: {
                type: "gradient",
                gradient: {
                  shade: "dark",
                  gradientToColors: ["#86efac"],
                  shadeIntensity: 1,
                  type: "horizontal",
                  opacityFrom: 1,
                  opacityTo: 0.95,
                  stops: [0, 100, 0, 100],
                },
              },
              grid: { padding: { left: 0, right: 0 } },
            },
            cryptoWatchlist1: {
              colors: ["#F7931A"],
              chart: {
                height: 60,
                width: 120,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              series: [{ name: "Stat", data: [20, 420, 102, 540, 275, 614] }],
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 3 },
              grid: { padding: { left: 0, right: 0, top: -28, bottom: 0 } },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            cryptoWatchlist2: {
              colors: ["#627EEA"],
              chart: {
                height: 60,
                width: 120,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              series: [{ name: "Stat", data: [54, 77, 43, 69, 12] }],
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 3 },
              grid: { padding: { left: 0, right: 0, top: -28, bottom: 0 } },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            cryptoWatchlist3: {
              colors: ["#3AC5BC"],
              chart: {
                height: 60,
                width: 120,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              series: [{ name: "Stat", data: [654, 820, 102, 540, 154, 614] }],
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 3 },
              grid: { padding: { left: 0, right: 0, top: -28, bottom: 0 } },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            cryptoWatchlist4: {
              colors: ["#4073C3"],
              chart: {
                height: 60,
                width: 120,
                type: "line",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              series: [{ name: "Stat", data: [0, 20, 10, 30, 20, 50] }],
              dataLabels: { enabled: !1 },
              stroke: { curve: "smooth", width: 3 },
              grid: { padding: { left: 0, right: 0, top: -28, bottom: 0 } },
              xaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            cryptoTransactions: {
              colors: ["#0EA5E9", "#F000B9"],
              series: [
                { name: "Income", data: [28, 45, 35, 50, 32, 48, 31] },
                { name: "outcome", data: [14, 25, 20, 25, 12, 16, 12] },
              ],
              chart: { height: 228, type: "bar", toolbar: { show: !1 } },
              dataLabels: { enabled: !1 },
              plotOptions: {
                bar: { borderRadius: 5, barHeight: "90%", columnWidth: "40%" },
              },
              legend: { show: !1 },
              xaxis: {
                categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"],
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                tooltip: { enabled: !1 },
              },
              grid: { padding: { left: 0, right: 0, top: 0, bottom: -10 } },
              yaxis: {
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
            },
            cryptoCandlestick: {
              series: [
                {
                  name: "candle",
                  data: [
                    {
                      x: new Date(15387786e5),
                      y: [6629.81, 6650.5, 6623.04, 6633.33],
                    },
                    {
                      x: new Date(15387804e5),
                      y: [6632.01, 6643.59, 6620, 6630.11],
                    },
                    {
                      x: new Date(15387822e5),
                      y: [6630.71, 6648.95, 6623.34, 6635.65],
                    },
                    {
                      x: new Date(1538784e6),
                      y: [6635.65, 6651, 6629.67, 6638.24],
                    },
                    {
                      x: new Date(15387858e5),
                      y: [6638.24, 6640, 6620, 6624.47],
                    },
                    {
                      x: new Date(15387876e5),
                      y: [6624.53, 6636.03, 6621.68, 6624.31],
                    },
                    {
                      x: new Date(15387894e5),
                      y: [6624.61, 6632.2, 6617, 6626.02],
                    },
                    {
                      x: new Date(15387912e5),
                      y: [6627, 6627.62, 6584.22, 6603.02],
                    },
                    {
                      x: new Date(1538793e6),
                      y: [6605, 6608.03, 6598.95, 6604.01],
                    },
                    {
                      x: new Date(15387948e5),
                      y: [6604.5, 6614.4, 6602.26, 6608.02],
                    },
                    {
                      x: new Date(15387966e5),
                      y: [6608.02, 6610.68, 6601.99, 6608.91],
                    },
                    {
                      x: new Date(15387984e5),
                      y: [6608.91, 6618.99, 6608.01, 6612],
                    },
                    {
                      x: new Date(15388002e5),
                      y: [6612, 6615.13, 6605.09, 6612],
                    },
                    {
                      x: new Date(1538802e6),
                      y: [6612, 6624.12, 6608.43, 6622.95],
                    },
                    {
                      x: new Date(15388038e5),
                      y: [6623.91, 6623.91, 6615, 6615.67],
                    },
                    {
                      x: new Date(15388056e5),
                      y: [6618.69, 6618.74, 6610, 6610.4],
                    },
                    {
                      x: new Date(15388074e5),
                      y: [6611, 6622.78, 6610.4, 6614.9],
                    },
                    {
                      x: new Date(15388092e5),
                      y: [6614.9, 6626.2, 6613.33, 6623.45],
                    },
                    {
                      x: new Date(1538811e6),
                      y: [6623.48, 6627, 6618.38, 6620.35],
                    },
                    {
                      x: new Date(15388128e5),
                      y: [6619.43, 6620.35, 6610.05, 6615.53],
                    },
                    {
                      x: new Date(15388146e5),
                      y: [6615.53, 6617.93, 6610, 6615.19],
                    },
                    {
                      x: new Date(15388164e5),
                      y: [6615.19, 6621.6, 6608.2, 6620],
                    },
                    {
                      x: new Date(15388182e5),
                      y: [6619.54, 6625.17, 6614.15, 6620],
                    },
                    {
                      x: new Date(153882e7),
                      y: [6620.33, 6634.15, 6617.24, 6624.61],
                    },
                    {
                      x: new Date(15388218e5),
                      y: [6625.95, 6626, 6611.66, 6617.58],
                    },
                    {
                      x: new Date(15388236e5),
                      y: [6619, 6625.97, 6595.27, 6598.86],
                    },
                  ],
                },
              ],
              chart: {
                height: 364,
                type: "candlestick",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
                events: {
                  mounted: function (e) {
                    e.windowResizeHandler();
                  },
                },
              },
              grid: {
                xaxis: { lines: { show: !0 } },
                yaxis: { lines: { show: !0 } },
                padding: { left: -12, right: -12, top: -6, bottom: 0 },
              },
              tooltip: { enabled: !0 },
              xaxis: {
                type: "category",
                tickAmount: 10,
                labels: {
                  formatter: function (e) {
                    return dayjs(e).format("HH:mm");
                  },
                  rotate: 0,
                },
              },
              yaxis: {
                tooltip: { enabled: !0 },
                labels: {
                  offsetX: -14,
                  formatter: function (e) {
                    return e / 1e3 + "k";
                  },
                },
              },
              responsive: [
                { breakpoint: 640, options: { xaxis: { tickAmount: 6 } } },
              ],
            },
            stockMarket1: {
              colors: ["#F7931A"],
              series: [{ name: "Price", data: [20, 50, 30, 60, 33, 75] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 100,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: -8 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            stockMarket2: {
              colors: ["#3AC5BC"],
              series: [{ name: "Price", data: [654, 820, 102, 540, 154, 614] }],
              chart: {
                type: "area",
                stacked: !1,
                height: 100,
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              dataLabels: { enabled: !1 },
              grid: { padding: { left: 0, right: 0, top: -20, bottom: -8 } },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.45,
                  opacityTo: 0.1,
                  stops: [20, 100, 100, 100],
                },
              },
              stroke: { width: 2 },
              tooltip: { shared: !0 },
              legend: { show: !1 },
              yaxis: { show: !1 },
              xaxis: {
                labels: { show: !1 },
                axisTicks: { show: !1 },
                axisBorder: { show: !1 },
              },
            },
            analyticsPagesViews: {
              colors: ["#FF9800", "#4C4EE7"],
              series: [
                {
                  name: "Previous Period",
                  data: [14, 25, 20, 25, 12, 20, 15, 20, 14, 25, 20, 25],
                },
                {
                  name: "Current Period",
                  data: [28, 45, 35, 50, 32, 55, 23, 60, 28, 45, 35, 50],
                },
              ],
              chart: {
                height: 280,
                type: "bar",
                parentHeightOffset: 0,
                toolbar: { show: !1 },
              },
              stroke: { show: !0, width: 3, colors: ["transparent"] },
              dataLabels: { enabled: !1 },
              plotOptions: {
                bar: { borderRadius: 4, barHeight: "90%", columnWidth: "35%" },
              },
              legend: { show: !1 },
              xaxis: {
                categories: [
                  "Jan",
                  "Feb",
                  "Mar",
                  "Apr",
                  "May",
                  "Jun",
                  "Jul",
                  "Aug",
                  "Sep",
                  "Oct",
                  "Nov",
                  "Dec",
                ],
                labels: { hideOverlappingLabels: !1 },
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                tooltip: { enabled: !1 },
              },
              grid: { padding: { left: 0, right: 0, top: 0, bottom: -10 } },
              yaxis: {
                show: !1,
                axisBorder: { show: !1 },
                axisTicks: { show: !1 },
                labels: { show: !1 },
              },
              responsive: [
                {
                  breakpoint: 1024,
                  options: { plotOptions: { bar: { columnWidth: "55%" } } },
                },
              ],
            },
            analyticsSiteOverview: {
              colors: ["#0EA5E9"],
              series: [
                { name: "High", data: [28, 45, 35, 50, 32, 55, 23, 60] },
              ],
              chart: {
                parentHeightOffset: 0,
                height: 249,
                type: "area",
                toolbar: { show: !1 },
              },
              fill: {
                type: "gradient",
                gradient: {
                  shadeIntensity: 1,
                  inverseColors: !1,
                  opacityFrom: 0.35,
                  opacityTo: 0.05,
                  stops: [20, 100, 100, 100],
                },
              },
              dataLabels: { enabled: !1 },
              stroke: { width: 2, curve: "smooth" },
              plotOptions: {
                bar: { borderRadius: 5, barHeight: "90%", columnWidth: "40%" },
              },
              legend: { show: !1 },
              xaxis: {
                categories: [
                  "Jan",
                  "Feb",
                  "Mar",
                  "Apr",
                  "May",
                  "Jun",
                  "Jul",
                  "Aug",
                ],
              },
              yaxis: { labels: { offsetX: -12, offsetY: 0 } },
              grid: { padding: { left: 0, right: 0, top: -10, bottom: 8 } },
            },
          },
          Wu = {
            author: {
              valueField: "id",
              searchField: "title",
              options: [
                {
                  id: 1,
                  name: "John Doe",
                  job: "Web designer",
                  src: "images/avatar/avatar-20.jpg",
                },
                {
                  id: 2,
                  name: "Emilie Watson",
                  job: "Developer",
                  src: "images/avatar/avatar-11.jpg",
                },
                {
                  id: 3,
                  name: "Nancy Clarke",
                  job: "Software Engineer",
                  src: "images/avatar/avatar-7.jpg",
                },
              ],
              placeholder: "Select the author",
              render: {
                option: function (e, t) {
                  return '<div class="flex space-x-3">\n                      <div class="avatar w-8 h-8">\n                        <img class="rounded-full" src="'
                    .concat(
                      t(e.src),
                      '" alt="avatar"/>\n                      </div>\n                      <div class="flex flex-col">\n                        <span> '
                    )
                    .concat(
                      t(e.name),
                      '</span>\n                        <span class="text-xs opacity-80"> '
                    )
                    .concat(
                      t(e.job),
                      "</span>\n                      </div>\n                    </div>"
                    );
                },
                item: function (e, t) {
                  return '<span class="badge rounded-full bg-primary dark:bg-accent text-white p-px mr-2">\n                      <span class="avatar w-6 h-6">\n                        <img class="rounded-full" src="'
                    .concat(
                      t(e.src),
                      '" alt="avatar">\n                      </span>\n                      <span class="mx-2">'
                    )
                    .concat(t(e.name), "</span>\n                    </span>");
                },
              },
            },
            assignedTodo: {
              valueField: "id",
              searchField: "title",
              options: [
                {
                  id: 1,
                  name: "John Doe",
                  job: "Web designer",
                  src: "images/avatar/avatar-20.jpg",
                },
                {
                  id: 2,
                  name: "Emilie Watson",
                  job: "Developer",
                  src: "images/avatar/avatar-11.jpg",
                },
                {
                  id: 3,
                  name: "Nancy Clarke",
                  job: "Software Engineer",
                  src: "images/avatar/avatar-7.jpg",
                },
              ],
              placeholder: "Select the user",
              render: {
                option: function (e, t) {
                  return '<div class="flex space-x-3">\n                      <div class="avatar w-8 h-8">\n                        <img class="rounded-full" src="'
                    .concat(
                      t(e.src),
                      '" alt="avatar"/>\n                      </div>\n                      <div class="flex flex-col">\n                        <span> '
                    )
                    .concat(
                      t(e.name),
                      '</span>\n                        <span class="text-xs opacity-80"> '
                    )
                    .concat(
                      t(e.job),
                      "</span>\n                      </div>\n                    </div>"
                    );
                },
                item: function (e, t) {
                  return '<span class="inline-flex items-center">\n        <span class="avatar w-6 h-6">\n            <img class="rounded-full" src="'
                    .concat(
                      t(e.src),
                      '" alt="avatar">\n        </span>\n        <span class="mx-2">'
                    )
                    .concat(t(e.name), "</span>\n      </span>");
                },
              },
            },
          };
        function Gu() {
          return {
            usersData: [
              {
                id: "1",
                avatar_url: "images/avatar/avatar-3.jpg",
                name: "John Doe",
                age: "24",
                phone: "443-893-2318",
                role: "Superadmin",
                role_bg:
                  "bg-secondary/10 text-secondary dark:bg-secondary-light/15 dark:text-secondary-light",
                status: !0,
              },
              {
                id: "2",
                avatar_url: "images/avatar/avatar-4.jpg",
                name: "Sabina Mores",
                age: "26",
                phone: "442-893-2318",
                role: "Author",
                role_bg: "bg-info/10 text-info dark:bg-info/15",
                status: !1,
              },
              {
                id: "3",
                avatar_url: "images/avatar/avatar-20.jpg",
                name: "Tom Robert",
                age: "34",
                phone: "443-893-2318",
                role: "Admin",
                role_bg:
                  "bg-secondary/10 text-secondary dark:bg-secondary-light/15 dark:text-secondary-light",
                status: !0,
              },
              {
                id: "4",
                avatar_url: "images/avatar/avatar-2.jpg",
                name: "Nolan Doe",
                age: "28",
                phone: "443-893-2318",
                role: "Author",
                role_bg: "bg-info/10 text-info dark:bg-info/15",
                status: !0,
              },
            ],
            allSelected: !1,
            userIds: [],
            updateCheckAll: function () {
              this.allSelected = this.usersData.length === this.userIds.length;
            },
            selectAll: function () {
              if (((this.userIds = []), this.allSelected))
                for (user in this.usersData)
                  this.userIds.push(this.usersData[user].id.toString());
            },
          };
        }
        function qu() {
          return {
            table: null,
            config: {
              columns: [
                {
                  id: "id",
                  name: "ID",
                  formatter: function (e) {
                    return Gridjs.html(
                      '<span class="mx-2">'.concat(e, "</span>")
                    );
                  },
                },
                {
                  id: "name",
                  name: "Name",
                  formatter: function (e) {
                    return Gridjs.html(
                      '<span class="text-slate-700 dark:text-navy-100 font-medium">'.concat(
                        e,
                        "</span>"
                      )
                    );
                  },
                },
                {
                  id: "avatar_url",
                  name: "Avatar",
                  sort: !1,
                  formatter: function (e) {
                    return Gridjs.html(
                      '<div class="avatar flex">\n                                    <img class="rounded-full" src="'.concat(
                        e,
                        '" alt="avatar">\n                                </div>'
                      )
                    );
                  },
                },
                { id: "email", name: "Email" },
                { id: "phone", name: "Phone Number" },
                {
                  name: "Actions",
                  sort: !1,
                  formatter: function () {
                    return Gridjs.html(
                      '<div class="flex justify-center space-x-2">\n                            <button @click="editItem" class="btn h-8 w-8 p-0 text-info hover:bg-info/20 focus:bg-info/20 active:bg-info/25">\n                                <i class="fa fa-edit"></i>\n                            </button>\n                            <button @click="deleteItem" class="btn h-8 w-8 p-0 text-error hover:bg-error/20 focus:bg-error/20 active:bg-error/25">\n                                <i class="fa fa-trash-alt"></i>\n                            </button>\n                        </div>'
                    );
                  },
                },
              ],
              data: [
                {
                  id: "1",
                  name: "John",
                  email: "john@example.com",
                  phone: "(01) 22 888 4444",
                  avatar_url: "images/avatar/avatar-2.jpg",
                },
                {
                  id: "2",
                  name: "Doe",
                  email: "thedoe@example.com",
                  phone: "(33) 22 888 4444",
                  avatar_url: "images/avatar/avatar-19.jpg",
                },
                {
                  id: "3",
                  name: "Nancy",
                  email: "nancy@example.com",
                  phone: "(21) 33 888 4444",
                  avatar_url: "images/avatar/avatar-14.jpg",
                },
                {
                  id: "4",
                  name: "Clarke",
                  email: "clarke@example.com",
                  phone: "(44) 33 888 4444",
                  avatar_url: "images/avatar/avatar-20.jpg",
                },
                {
                  id: "5",
                  name: "Robert",
                  email: "robert@example.com",
                  phone: "(27) 63 688 6444",
                  avatar_url: "images/avatar/avatar-14.jpg",
                },
                {
                  id: "6",
                  name: "Tom",
                  email: "thetom@example.com",
                  phone: "(57) 63 688 6444",
                  avatar_url: "images/avatar/avatar-4.jpg",
                },
                {
                  id: "7",
                  name: "Nolan",
                  email: "Nolan@example.com",
                  phone: "(27) 63 688 6444",
                  avatar_url: "images/avatar/avatar-3.jpg",
                },
                {
                  id: "8",
                  name: "Adam",
                  email: "Adam@example.com",
                  phone: "(12) 22 888 4444",
                  avatar_url: "images/avatar/avatar-2.jpg",
                },
                {
                  id: "9",
                  name: "Glen",
                  email: "Glen@example.com",
                  phone: "(74) 22 888 4444",
                  avatar_url: "images/avatar/avatar-18.jpg",
                },
                {
                  id: "10",
                  name: "Edna",
                  email: "Edna@example.com",
                  phone: "(52) 33 888 4444",
                  avatar_url: "images/avatar/avatar-13.jpg",
                },
                {
                  id: "11",
                  name: "Dianne",
                  email: "dianne@example.com",
                  phone: "(78) 33 888 4444",
                  avatar_url: "images/avatar/avatar-2.jpg",
                },
                {
                  id: "12",
                  name: "Wilson",
                  email: "wilson@example.com",
                  phone: "(54) 63 688 6444",
                  avatar_url: "images/avatar/avatar-1.jpg",
                },
                {
                  id: "13",
                  name: "Ross",
                  email: "rose@example.com",
                  phone: "(98) 63 688 6444",
                  avatar_url: "images/avatar/avatar-4.jpg",
                },
                {
                  id: "14",
                  name: "Henry",
                  email: "henry@example.com",
                  phone: "(87) 63 688 6444",
                  avatar_url: "images/avatar/avatar-3.jpg",
                },
                {
                  id: "15",
                  name: "Kerry",
                  email: "kerry@example.com",
                  phone: "(55) 63 688 6444",
                  avatar_url: "images/avatar/avatar-3.jpg",
                },
              ],
              sort: !0,
              search: !0,
              pagination: { enabled: !0, limit: 10 },
            },
            init: function () {
              this.table = new Gridjs.Grid(this.config).render(this.$root);
            },
            deleteItem: function () {
              this.$notification({
                text: "Item remove action",
                variant: "warning",
              });
            },
            editItem: function () {
              this.$notification({ text: "Item edit action", variant: "info" });
            },
          };
        }
        function Vu() {
          return {
            username: {
              value: "",
              errorMessage: "",
              blurred: !1,
              validate: ["required"],
            },
            email: {
              value: "",
              errorMessage: "",
              blurred: !1,
              validate: ["required", "email"],
            },
            minmax: {
              value: "",
              errorMessage: "",
              blurred: !1,
              validate: ["required", "min:5", "max:15"],
            },
            minmaxLength: {
              value: "",
              errorMessage: "",
              blurred: !1,
              validate: ["required", "minLength:5", "maxLength:15"],
            },
            url: {
              value: "",
              errorMessage: "",
              blurred: !1,
              validate: ["required", "url"],
            },
            instagramUsername: {
              value: "",
              errorMessage: "",
              blurred: !1,
              validate: [
                "required",
                "regexMatch:^(?!.*\\.\\.)(?!.*\\.$)[^\\W][\\w.]{0,29}$",
              ],
            },
            startWith: {
              value: "",
              errorMessage: "",
              blurred: !1,
              validate: ["required", "startingWith:A"],
            },
            endWith: {
              value: "",
              errorMessage: "",
              blurred: !1,
              validate: ["required", "endingWith:Z"],
            },
            getErrorMessage: function (e, t) {
              return Iodine.assert(e, t).error;
            },
          };
        }
        const Uu = function () {
          return {
            init: function () {
              var e = this;
              this.$watch("cardName", function (t) {
                switch (t) {
                  case "mastercard":
                    (e.creditCardUI =
                      "bg-gradient-to-r from-green-300 via-blue-500 to-purple-600"),
                      (e.cardText = "Master Card"),
                      (e.cardLogoSrc = "images/payments/cc-mastercard.svg");
                    break;
                  case "visa":
                    (e.creditCardUI =
                      "bg-gradient-to-r from-indigo-400 to-indigo-600"),
                      (e.cardLogoSrc = "images/payments/cc-visa.svg"),
                      (e.cardText = "Visa");
                    break;
                  default:
                    (e.creditCardUI =
                      "bg-gradient-to-r from-pink-300 via-purple-300 to-indigo-400"),
                      (e.cardText = "Credit Card"),
                      (e.cardLogoSrc = "");
                }
              });
            },
            cardNumber: null,
            cardText: "Credit Card",
            cardName: "",
            cardLogoSrc: "",
            nameOnCard: "",
            creditCardUI:
              "bg-gradient-to-r from-pink-300 via-purple-300 to-indigo-400",
            creditCardInput: function () {
              var e = this;
              return {
                creditCard: !0,
                onCreditCardTypeChanged: function (t) {
                  e.cardName = t;
                },
              };
            },
          };
        };
        function $u(e) {
          return (
            ($u =
              "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
                ? function (e) {
                    return typeof e;
                  }
                : function (e) {
                    return e &&
                      "function" == typeof Symbol &&
                      e.constructor === Symbol &&
                      e !== Symbol.prototype
                      ? "symbol"
                      : typeof e;
                  }),
            $u(e)
          );
        }
        const Zu = {
          isDarkModeEnabled: !1,
          isMonochromeModeEnabled: !1,
          isSearchbarActive: !1,
          isSidebarExpanded: !1,
          isRightSidebarExpanded: !1,
          currentLocation: [
            location.protocol,
            "//",
            location.host,
            location.pathname,
          ].join(""),
          init: function () {
            var e = this,
              t = !0;
            (this.isDarkModeEnabled = Alpine.$persist(!1).as("_x_darkMode_on")),
              (this.isSidebarExpanded =
                document.querySelector(".sidebar") &&
                document.body.classList.contains("is-sidebar-open") &&
                Alpine.store("breakpoints").xlAndUp),
              Alpine.effect(function () {
                e.isDarkModeEnabled
                  ? document.documentElement.classList.remove("dark")
                  : document.documentElement.classList.add("dark");
              }),
              Alpine.effect(function () {
                e.isMonochromeModeEnabled
                  ? document.body.classList.add("is-monochrome")
                  : document.body.classList.remove("is-monochrome");
              }),
              Alpine.effect(function () {
                e.isSidebarExpanded
                  ? document.body.classList.add("is-sidebar-open")
                  : document.body.classList.remove("is-sidebar-open");
              }),
              Alpine.effect(function () {
                Alpine.store("breakpoints").name &&
                  !t &&
                  ((e.isSidebarExpanded = !1), (e.isRightSidebarExpanded = !1));
              }),
              Alpine.effect(function () {
                Alpine.store("breakpoints").smAndUp &&
                  (e.isSearchbarActive = !1);
              }),
              (t = !1);
          },
          documentBody:
            ((Ku = {}),
            (Ju = "@load.window"),
            (Qu = function () {
              var e = document.querySelector(".app-preloader");
              e &&
                setTimeout(function () {
                  e.classList.add(
                    "animate-[cubic-bezier(0.4,0,0.2,1)_fade-out_500ms_forwards]"
                  ),
                    setTimeout(function () {
                      return e.remove();
                    }, 1e3);
                }, 150);
            }),
            (Ju = (function (e) {
              var t = (function (e, t) {
                if ("object" !== $u(e) || null === e) return e;
                var i = e[Symbol.toPrimitive];
                if (void 0 !== i) {
                  var n = i.call(e, t || "default");
                  if ("object" !== $u(n)) return n;
                  throw new TypeError(
                    "@@toPrimitive must return a primitive value."
                  );
                }
                return ("string" === t ? String : Number)(e);
              })(e, "string");
              return "symbol" === $u(t) ? t : String(t);
            })(Ju)) in Ku
              ? Object.defineProperty(Ku, Ju, {
                  value: Qu,
                  enumerable: !0,
                  configurable: !0,
                  writable: !0,
                })
              : (Ku[Ju] = Qu),
            Ku),
        };
        var Ku, Ju, Qu;
        const ed = {
          init: function () {
            this.update(),
              window.addEventListener("resize", this.onResize.bind(this), {
                passive: !0,
              });
          },
          height: 0,
          width: 0,
          name: "",
          isBreakpointChanged: !1,
          isXs: !1,
          isSm: !1,
          isMd: !1,
          isLg: !1,
          isXl: !1,
          is2xl: !1,
          smAndDown: !1,
          smAndUp: !1,
          mdAndDown: !1,
          mdAndUp: !1,
          lgAndDown: !1,
          lgAndUp: !1,
          xlAndDown: !1,
          xlAndUp: !1,
          sm: 640,
          md: 768,
          lg: 1024,
          xl: 1280,
          the2xl: 1536,
          update: function () {
            var e = window.innerHeight,
              t = window.innerWidth,
              i = t < this.sm,
              n = t < this.md && !i,
              r = t < this.lg && !(n || i),
              a = t < this.xl && !(r || n || i),
              o = t < this.the2xl && !(a || r || n || i),
              s = t >= this.the2xl;
            (this.height = e),
              (this.width = t),
              (this.isXs = i),
              (this.isSm = n),
              (this.isMd = r),
              (this.isLg = a),
              (this.isXl = o),
              (this.is2xl = s),
              (this.smAndDown = (i || n) && !(r || a || o || s)),
              (this.smAndUp = !i && (n || r || a || o || s)),
              (this.mdAndDown = (i || n || r) && !(a || o || s)),
              (this.mdAndUp = !(i || n) && (r || a || o || s)),
              (this.lgAndDown = (i || n || r || a) && !(o || s)),
              (this.lgAndUp = !(i || n || r) && (a || o || s)),
              (this.xlAndDown = (i || n || r || a || o) && !s),
              (this.xlAndUp = !(i || n || r || a) && (o || s)),
              i && (this.name = "xs"),
              n && (this.name = "sm"),
              r && (this.name = "md"),
              a && (this.name = "lg"),
              o && (this.name = "xl"),
              s && (this.name = "2xl"),
              document.documentElement.style.setProperty(
                "--vh",
                "".concat(0.01 * e, "px")
              );
          },
          onResize: function () {
            clearTimeout(this.resizeTimeout),
              (this.resizeTimeout = window.setTimeout(
                this.update.bind(this),
                175
              ));
          },
        };
        function td(e) {
          if (null == e) return window;
          if ("[object Window]" !== e.toString()) {
            var t = e.ownerDocument;
            return (t && t.defaultView) || window;
          }
          return e;
        }
        function id(e) {
          return e instanceof td(e).Element || e instanceof Element;
        }
        function nd(e) {
          return e instanceof td(e).HTMLElement || e instanceof HTMLElement;
        }
        function rd(e) {
          return (
            "undefined" != typeof ShadowRoot &&
            (e instanceof td(e).ShadowRoot || e instanceof ShadowRoot)
          );
        }
        var ad = Math.max,
          od = Math.min,
          sd = Math.round;
        function ld() {
          var e = navigator.userAgentData;
          return null != e && e.brands
            ? e.brands
                .map(function (e) {
                  return e.brand + "/" + e.version;
                })
                .join(" ")
            : navigator.userAgent;
        }
        function cd() {
          return !/^((?!chrome|android).)*safari/i.test(ld());
        }
        function ud(e, t, i) {
          void 0 === t && (t = !1), void 0 === i && (i = !1);
          var n = e.getBoundingClientRect(),
            r = 1,
            a = 1;
          t &&
            nd(e) &&
            ((r = (e.offsetWidth > 0 && sd(n.width) / e.offsetWidth) || 1),
            (a = (e.offsetHeight > 0 && sd(n.height) / e.offsetHeight) || 1));
          var o = (id(e) ? td(e) : window).visualViewport,
            s = !cd() && i,
            l = (n.left + (s && o ? o.offsetLeft : 0)) / r,
            c = (n.top + (s && o ? o.offsetTop : 0)) / a,
            u = n.width / r,
            d = n.height / a;
          return {
            width: u,
            height: d,
            top: c,
            right: l + u,
            bottom: c + d,
            left: l,
            x: l,
            y: c,
          };
        }
        function dd(e) {
          var t = td(e);
          return { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset };
        }
        function hd(e) {
          return e ? (e.nodeName || "").toLowerCase() : null;
        }
        function fd(e) {
          return ((id(e) ? e.ownerDocument : e.document) || window.document)
            .documentElement;
        }
        function pd(e) {
          return ud(fd(e)).left + dd(e).scrollLeft;
        }
        function gd(e) {
          return td(e).getComputedStyle(e);
        }
        function md(e) {
          var t = gd(e),
            i = t.overflow,
            n = t.overflowX,
            r = t.overflowY;
          return /auto|scroll|overlay|hidden/.test(i + r + n);
        }
        function vd(e, t, i) {
          void 0 === i && (i = !1);
          var n,
            r,
            a = nd(t),
            o =
              nd(t) &&
              (function (e) {
                var t = e.getBoundingClientRect(),
                  i = sd(t.width) / e.offsetWidth || 1,
                  n = sd(t.height) / e.offsetHeight || 1;
                return 1 !== i || 1 !== n;
              })(t),
            s = fd(t),
            l = ud(e, o, i),
            c = { scrollLeft: 0, scrollTop: 0 },
            u = { x: 0, y: 0 };
          return (
            (a || (!a && !i)) &&
              (("body" !== hd(t) || md(s)) &&
                (c =
                  (n = t) !== td(n) && nd(n)
                    ? { scrollLeft: (r = n).scrollLeft, scrollTop: r.scrollTop }
                    : dd(n)),
              nd(t)
                ? (((u = ud(t, !0)).x += t.clientLeft), (u.y += t.clientTop))
                : s && (u.x = pd(s))),
            {
              x: l.left + c.scrollLeft - u.x,
              y: l.top + c.scrollTop - u.y,
              width: l.width,
              height: l.height,
            }
          );
        }
        function bd(e) {
          var t = ud(e),
            i = e.offsetWidth,
            n = e.offsetHeight;
          return (
            Math.abs(t.width - i) <= 1 && (i = t.width),
            Math.abs(t.height - n) <= 1 && (n = t.height),
            { x: e.offsetLeft, y: e.offsetTop, width: i, height: n }
          );
        }
        function yd(e) {
          return "html" === hd(e)
            ? e
            : e.assignedSlot ||
                e.parentNode ||
                (rd(e) ? e.host : null) ||
                fd(e);
        }
        function xd(e) {
          return ["html", "body", "#document"].indexOf(hd(e)) >= 0
            ? e.ownerDocument.body
            : nd(e) && md(e)
            ? e
            : xd(yd(e));
        }
        function wd(e, t) {
          var i;
          void 0 === t && (t = []);
          var n = xd(e),
            r = n === (null == (i = e.ownerDocument) ? void 0 : i.body),
            a = td(n),
            o = r ? [a].concat(a.visualViewport || [], md(n) ? n : []) : n,
            s = t.concat(o);
          return r ? s : s.concat(wd(yd(o)));
        }
        function Ed(e) {
          return ["table", "td", "th"].indexOf(hd(e)) >= 0;
        }
        function _d(e) {
          return nd(e) && "fixed" !== gd(e).position ? e.offsetParent : null;
        }
        function Sd(e) {
          for (
            var t = td(e), i = _d(e);
            i && Ed(i) && "static" === gd(i).position;

          )
            i = _d(i);
          return i &&
            ("html" === hd(i) ||
              ("body" === hd(i) && "static" === gd(i).position))
            ? t
            : i ||
                (function (e) {
                  var t = /firefox/i.test(ld());
                  if (
                    /Trident/i.test(ld()) &&
                    nd(e) &&
                    "fixed" === gd(e).position
                  )
                    return null;
                  var i = yd(e);
                  for (
                    rd(i) && (i = i.host);
                    nd(i) && ["html", "body"].indexOf(hd(i)) < 0;

                  ) {
                    var n = gd(i);
                    if (
                      "none" !== n.transform ||
                      "none" !== n.perspective ||
                      "paint" === n.contain ||
                      -1 !==
                        ["transform", "perspective"].indexOf(n.willChange) ||
                      (t && "filter" === n.willChange) ||
                      (t && n.filter && "none" !== n.filter)
                    )
                      return i;
                    i = i.parentNode;
                  }
                  return null;
                })(e) ||
                t;
        }
        var Ad = "top",
          kd = "bottom",
          Td = "right",
          Cd = "left",
          Od = "auto",
          Id = [Ad, kd, Td, Cd],
          Md = "start",
          Ld = "end",
          Pd = "clippingParents",
          Dd = "viewport",
          Rd = "popper",
          Nd = "reference",
          Fd = Id.reduce(function (e, t) {
            return e.concat([t + "-" + Md, t + "-" + Ld]);
          }, []),
          Bd = [].concat(Id, [Od]).reduce(function (e, t) {
            return e.concat([t, t + "-" + Md, t + "-" + Ld]);
          }, []),
          zd = [
            "beforeRead",
            "read",
            "afterRead",
            "beforeMain",
            "main",
            "afterMain",
            "beforeWrite",
            "write",
            "afterWrite",
          ];
        function jd(e) {
          var t = new Map(),
            i = new Set(),
            n = [];
          function r(e) {
            i.add(e.name),
              []
                .concat(e.requires || [], e.requiresIfExists || [])
                .forEach(function (e) {
                  if (!i.has(e)) {
                    var n = t.get(e);
                    n && r(n);
                  }
                }),
              n.push(e);
          }
          return (
            e.forEach(function (e) {
              t.set(e.name, e);
            }),
            e.forEach(function (e) {
              i.has(e.name) || r(e);
            }),
            n
          );
        }
        function Hd(e) {
          var t;
          return function () {
            return (
              t ||
                (t = new Promise(function (i) {
                  Promise.resolve().then(function () {
                    (t = void 0), i(e());
                  });
                })),
              t
            );
          };
        }
        var Yd = { placement: "bottom", modifiers: [], strategy: "absolute" };
        function Xd() {
          for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
            t[i] = arguments[i];
          return !t.some(function (e) {
            return !(e && "function" == typeof e.getBoundingClientRect);
          });
        }
        function Wd(e) {
          void 0 === e && (e = {});
          var t = e,
            i = t.defaultModifiers,
            n = void 0 === i ? [] : i,
            r = t.defaultOptions,
            a = void 0 === r ? Yd : r;
          return function (e, t, i) {
            void 0 === i && (i = a);
            var r = {
                placement: "bottom",
                orderedModifiers: [],
                options: Object.assign({}, Yd, a),
                modifiersData: {},
                elements: { reference: e, popper: t },
                attributes: {},
                styles: {},
              },
              o = [],
              s = !1,
              l = {
                state: r,
                setOptions: function (i) {
                  var s = "function" == typeof i ? i(r.options) : i;
                  c(),
                    (r.options = Object.assign({}, a, r.options, s)),
                    (r.scrollParents = {
                      reference: id(e)
                        ? wd(e)
                        : e.contextElement
                        ? wd(e.contextElement)
                        : [],
                      popper: wd(t),
                    });
                  var u = (function (e) {
                    var t = jd(e);
                    return zd.reduce(function (e, i) {
                      return e.concat(
                        t.filter(function (e) {
                          return e.phase === i;
                        })
                      );
                    }, []);
                  })(
                    (function (e) {
                      var t = e.reduce(function (e, t) {
                        var i = e[t.name];
                        return (
                          (e[t.name] = i
                            ? Object.assign({}, i, t, {
                                options: Object.assign(
                                  {},
                                  i.options,
                                  t.options
                                ),
                                data: Object.assign({}, i.data, t.data),
                              })
                            : t),
                          e
                        );
                      }, {});
                      return Object.keys(t).map(function (e) {
                        return t[e];
                      });
                    })([].concat(n, r.options.modifiers))
                  );
                  return (
                    (r.orderedModifiers = u.filter(function (e) {
                      return e.enabled;
                    })),
                    r.orderedModifiers.forEach(function (e) {
                      var t = e.name,
                        i = e.options,
                        n = void 0 === i ? {} : i,
                        a = e.effect;
                      if ("function" == typeof a) {
                        var s = a({
                            state: r,
                            name: t,
                            instance: l,
                            options: n,
                          }),
                          c = function () {};
                        o.push(s || c);
                      }
                    }),
                    l.update()
                  );
                },
                forceUpdate: function () {
                  if (!s) {
                    var e = r.elements,
                      t = e.reference,
                      i = e.popper;
                    if (Xd(t, i)) {
                      (r.rects = {
                        reference: vd(t, Sd(i), "fixed" === r.options.strategy),
                        popper: bd(i),
                      }),
                        (r.reset = !1),
                        (r.placement = r.options.placement),
                        r.orderedModifiers.forEach(function (e) {
                          return (r.modifiersData[e.name] = Object.assign(
                            {},
                            e.data
                          ));
                        });
                      for (var n = 0; n < r.orderedModifiers.length; n++)
                        if (!0 !== r.reset) {
                          var a = r.orderedModifiers[n],
                            o = a.fn,
                            c = a.options,
                            u = void 0 === c ? {} : c,
                            d = a.name;
                          "function" == typeof o &&
                            (r =
                              o({
                                state: r,
                                options: u,
                                name: d,
                                instance: l,
                              }) || r);
                        } else (r.reset = !1), (n = -1);
                    }
                  }
                },
                update: Hd(function () {
                  return new Promise(function (e) {
                    l.forceUpdate(), e(r);
                  });
                }),
                destroy: function () {
                  c(), (s = !0);
                },
              };
            if (!Xd(e, t)) return l;
            function c() {
              o.forEach(function (e) {
                return e();
              }),
                (o = []);
            }
            return (
              l.setOptions(i).then(function (e) {
                !s && i.onFirstUpdate && i.onFirstUpdate(e);
              }),
              l
            );
          };
        }
        var Gd = { passive: !0 };
        function qd(e) {
          return e.split("-")[0];
        }
        function Vd(e) {
          return e.split("-")[1];
        }
        function Ud(e) {
          return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
        }
        function $d(e) {
          var t,
            i = e.reference,
            n = e.element,
            r = e.placement,
            a = r ? qd(r) : null,
            o = r ? Vd(r) : null,
            s = i.x + i.width / 2 - n.width / 2,
            l = i.y + i.height / 2 - n.height / 2;
          switch (a) {
            case Ad:
              t = { x: s, y: i.y - n.height };
              break;
            case kd:
              t = { x: s, y: i.y + i.height };
              break;
            case Td:
              t = { x: i.x + i.width, y: l };
              break;
            case Cd:
              t = { x: i.x - n.width, y: l };
              break;
            default:
              t = { x: i.x, y: i.y };
          }
          var c = a ? Ud(a) : null;
          if (null != c) {
            var u = "y" === c ? "height" : "width";
            switch (o) {
              case Md:
                t[c] = t[c] - (i[u] / 2 - n[u] / 2);
                break;
              case Ld:
                t[c] = t[c] + (i[u] / 2 - n[u] / 2);
            }
          }
          return t;
        }
        var Zd = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
        function Kd(e) {
          var t,
            i = e.popper,
            n = e.popperRect,
            r = e.placement,
            a = e.variation,
            o = e.offsets,
            s = e.position,
            l = e.gpuAcceleration,
            c = e.adaptive,
            u = e.roundOffsets,
            d = e.isFixed,
            h = o.x,
            f = void 0 === h ? 0 : h,
            p = o.y,
            g = void 0 === p ? 0 : p,
            m = "function" == typeof u ? u({ x: f, y: g }) : { x: f, y: g };
          (f = m.x), (g = m.y);
          var v = o.hasOwnProperty("x"),
            b = o.hasOwnProperty("y"),
            y = Cd,
            x = Ad,
            w = window;
          if (c) {
            var E = Sd(i),
              _ = "clientHeight",
              S = "clientWidth";
            if (
              (E === td(i) &&
                "static" !== gd((E = fd(i))).position &&
                "absolute" === s &&
                ((_ = "scrollHeight"), (S = "scrollWidth")),
              r === Ad || ((r === Cd || r === Td) && a === Ld))
            )
              (x = kd),
                (g -=
                  (d && E === w && w.visualViewport
                    ? w.visualViewport.height
                    : E[_]) - n.height),
                (g *= l ? 1 : -1);
            if (r === Cd || ((r === Ad || r === kd) && a === Ld))
              (y = Td),
                (f -=
                  (d && E === w && w.visualViewport
                    ? w.visualViewport.width
                    : E[S]) - n.width),
                (f *= l ? 1 : -1);
          }
          var A,
            k = Object.assign({ position: s }, c && Zd),
            T =
              !0 === u
                ? (function (e) {
                    var t = e.x,
                      i = e.y,
                      n = window.devicePixelRatio || 1;
                    return { x: sd(t * n) / n || 0, y: sd(i * n) / n || 0 };
                  })({ x: f, y: g })
                : { x: f, y: g };
          return (
            (f = T.x),
            (g = T.y),
            l
              ? Object.assign(
                  {},
                  k,
                  (((A = {})[x] = b ? "0" : ""),
                  (A[y] = v ? "0" : ""),
                  (A.transform =
                    (w.devicePixelRatio || 1) <= 1
                      ? "translate(" + f + "px, " + g + "px)"
                      : "translate3d(" + f + "px, " + g + "px, 0)"),
                  A)
                )
              : Object.assign(
                  {},
                  k,
                  (((t = {})[x] = b ? g + "px" : ""),
                  (t[y] = v ? f + "px" : ""),
                  (t.transform = ""),
                  t)
                )
          );
        }
        const Jd = {
          name: "applyStyles",
          enabled: !0,
          phase: "write",
          fn: function (e) {
            var t = e.state;
            Object.keys(t.elements).forEach(function (e) {
              var i = t.styles[e] || {},
                n = t.attributes[e] || {},
                r = t.elements[e];
              nd(r) &&
                hd(r) &&
                (Object.assign(r.style, i),
                Object.keys(n).forEach(function (e) {
                  var t = n[e];
                  !1 === t
                    ? r.removeAttribute(e)
                    : r.setAttribute(e, !0 === t ? "" : t);
                }));
            });
          },
          effect: function (e) {
            var t = e.state,
              i = {
                popper: {
                  position: t.options.strategy,
                  left: "0",
                  top: "0",
                  margin: "0",
                },
                arrow: { position: "absolute" },
                reference: {},
              };
            return (
              Object.assign(t.elements.popper.style, i.popper),
              (t.styles = i),
              t.elements.arrow &&
                Object.assign(t.elements.arrow.style, i.arrow),
              function () {
                Object.keys(t.elements).forEach(function (e) {
                  var n = t.elements[e],
                    r = t.attributes[e] || {},
                    a = Object.keys(
                      t.styles.hasOwnProperty(e) ? t.styles[e] : i[e]
                    ).reduce(function (e, t) {
                      return (e[t] = ""), e;
                    }, {});
                  nd(n) &&
                    hd(n) &&
                    (Object.assign(n.style, a),
                    Object.keys(r).forEach(function (e) {
                      n.removeAttribute(e);
                    }));
                });
              }
            );
          },
          requires: ["computeStyles"],
        };
        const Qd = {
          name: "offset",
          enabled: !0,
          phase: "main",
          requires: ["popperOffsets"],
          fn: function (e) {
            var t = e.state,
              i = e.options,
              n = e.name,
              r = i.offset,
              a = void 0 === r ? [0, 0] : r,
              o = Bd.reduce(function (e, i) {
                return (
                  (e[i] = (function (e, t, i) {
                    var n = qd(e),
                      r = [Cd, Ad].indexOf(n) >= 0 ? -1 : 1,
                      a =
                        "function" == typeof i
                          ? i(Object.assign({}, t, { placement: e }))
                          : i,
                      o = a[0],
                      s = a[1];
                    return (
                      (o = o || 0),
                      (s = (s || 0) * r),
                      [Cd, Td].indexOf(n) >= 0 ? { x: s, y: o } : { x: o, y: s }
                    );
                  })(i, t.rects, a)),
                  e
                );
              }, {}),
              s = o[t.placement],
              l = s.x,
              c = s.y;
            null != t.modifiersData.popperOffsets &&
              ((t.modifiersData.popperOffsets.x += l),
              (t.modifiersData.popperOffsets.y += c)),
              (t.modifiersData[n] = o);
          },
        };
        var eh = { left: "right", right: "left", bottom: "top", top: "bottom" };
        function th(e) {
          return e.replace(/left|right|bottom|top/g, function (e) {
            return eh[e];
          });
        }
        var ih = { start: "end", end: "start" };
        function nh(e) {
          return e.replace(/start|end/g, function (e) {
            return ih[e];
          });
        }
        function rh(e, t) {
          var i = t.getRootNode && t.getRootNode();
          if (e.contains(t)) return !0;
          if (i && rd(i)) {
            var n = t;
            do {
              if (n && e.isSameNode(n)) return !0;
              n = n.parentNode || n.host;
            } while (n);
          }
          return !1;
        }
        function ah(e) {
          return Object.assign({}, e, {
            left: e.x,
            top: e.y,
            right: e.x + e.width,
            bottom: e.y + e.height,
          });
        }
        function oh(e, t, i) {
          return t === Dd
            ? ah(
                (function (e, t) {
                  var i = td(e),
                    n = fd(e),
                    r = i.visualViewport,
                    a = n.clientWidth,
                    o = n.clientHeight,
                    s = 0,
                    l = 0;
                  if (r) {
                    (a = r.width), (o = r.height);
                    var c = cd();
                    (c || (!c && "fixed" === t)) &&
                      ((s = r.offsetLeft), (l = r.offsetTop));
                  }
                  return { width: a, height: o, x: s + pd(e), y: l };
                })(e, i)
              )
            : id(t)
            ? (function (e, t) {
                var i = ud(e, !1, "fixed" === t);
                return (
                  (i.top = i.top + e.clientTop),
                  (i.left = i.left + e.clientLeft),
                  (i.bottom = i.top + e.clientHeight),
                  (i.right = i.left + e.clientWidth),
                  (i.width = e.clientWidth),
                  (i.height = e.clientHeight),
                  (i.x = i.left),
                  (i.y = i.top),
                  i
                );
              })(t, i)
            : ah(
                (function (e) {
                  var t,
                    i = fd(e),
                    n = dd(e),
                    r = null == (t = e.ownerDocument) ? void 0 : t.body,
                    a = ad(
                      i.scrollWidth,
                      i.clientWidth,
                      r ? r.scrollWidth : 0,
                      r ? r.clientWidth : 0
                    ),
                    o = ad(
                      i.scrollHeight,
                      i.clientHeight,
                      r ? r.scrollHeight : 0,
                      r ? r.clientHeight : 0
                    ),
                    s = -n.scrollLeft + pd(e),
                    l = -n.scrollTop;
                  return (
                    "rtl" === gd(r || i).direction &&
                      (s += ad(i.clientWidth, r ? r.clientWidth : 0) - a),
                    { width: a, height: o, x: s, y: l }
                  );
                })(fd(e))
              );
        }
        function sh(e, t, i, n) {
          var r =
              "clippingParents" === t
                ? (function (e) {
                    var t = wd(yd(e)),
                      i =
                        ["absolute", "fixed"].indexOf(gd(e).position) >= 0 &&
                        nd(e)
                          ? Sd(e)
                          : e;
                    return id(i)
                      ? t.filter(function (e) {
                          return id(e) && rh(e, i) && "body" !== hd(e);
                        })
                      : [];
                  })(e)
                : [].concat(t),
            a = [].concat(r, [i]),
            o = a[0],
            s = a.reduce(function (t, i) {
              var r = oh(e, i, n);
              return (
                (t.top = ad(r.top, t.top)),
                (t.right = od(r.right, t.right)),
                (t.bottom = od(r.bottom, t.bottom)),
                (t.left = ad(r.left, t.left)),
                t
              );
            }, oh(e, o, n));
          return (
            (s.width = s.right - s.left),
            (s.height = s.bottom - s.top),
            (s.x = s.left),
            (s.y = s.top),
            s
          );
        }
        function lh(e) {
          return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, e);
        }
        function ch(e, t) {
          return t.reduce(function (t, i) {
            return (t[i] = e), t;
          }, {});
        }
        function uh(e, t) {
          void 0 === t && (t = {});
          var i = t,
            n = i.placement,
            r = void 0 === n ? e.placement : n,
            a = i.strategy,
            o = void 0 === a ? e.strategy : a,
            s = i.boundary,
            l = void 0 === s ? Pd : s,
            c = i.rootBoundary,
            u = void 0 === c ? Dd : c,
            d = i.elementContext,
            h = void 0 === d ? Rd : d,
            f = i.altBoundary,
            p = void 0 !== f && f,
            g = i.padding,
            m = void 0 === g ? 0 : g,
            v = lh("number" != typeof m ? m : ch(m, Id)),
            b = h === Rd ? Nd : Rd,
            y = e.rects.popper,
            x = e.elements[p ? b : h],
            w = sh(
              id(x) ? x : x.contextElement || fd(e.elements.popper),
              l,
              u,
              o
            ),
            E = ud(e.elements.reference),
            _ = $d({
              reference: E,
              element: y,
              strategy: "absolute",
              placement: r,
            }),
            S = ah(Object.assign({}, y, _)),
            A = h === Rd ? S : E,
            k = {
              top: w.top - A.top + v.top,
              bottom: A.bottom - w.bottom + v.bottom,
              left: w.left - A.left + v.left,
              right: A.right - w.right + v.right,
            },
            T = e.modifiersData.offset;
          if (h === Rd && T) {
            var C = T[r];
            Object.keys(k).forEach(function (e) {
              var t = [Td, kd].indexOf(e) >= 0 ? 1 : -1,
                i = [Ad, kd].indexOf(e) >= 0 ? "y" : "x";
              k[e] += C[i] * t;
            });
          }
          return k;
        }
        const dh = {
          name: "flip",
          enabled: !0,
          phase: "main",
          fn: function (e) {
            var t = e.state,
              i = e.options,
              n = e.name;
            if (!t.modifiersData[n]._skip) {
              for (
                var r = i.mainAxis,
                  a = void 0 === r || r,
                  o = i.altAxis,
                  s = void 0 === o || o,
                  l = i.fallbackPlacements,
                  c = i.padding,
                  u = i.boundary,
                  d = i.rootBoundary,
                  h = i.altBoundary,
                  f = i.flipVariations,
                  p = void 0 === f || f,
                  g = i.allowedAutoPlacements,
                  m = t.options.placement,
                  v = qd(m),
                  b =
                    l ||
                    (v === m || !p
                      ? [th(m)]
                      : (function (e) {
                          if (qd(e) === Od) return [];
                          var t = th(e);
                          return [nh(e), t, nh(t)];
                        })(m)),
                  y = [m].concat(b).reduce(function (e, i) {
                    return e.concat(
                      qd(i) === Od
                        ? (function (e, t) {
                            void 0 === t && (t = {});
                            var i = t,
                              n = i.placement,
                              r = i.boundary,
                              a = i.rootBoundary,
                              o = i.padding,
                              s = i.flipVariations,
                              l = i.allowedAutoPlacements,
                              c = void 0 === l ? Bd : l,
                              u = Vd(n),
                              d = u
                                ? s
                                  ? Fd
                                  : Fd.filter(function (e) {
                                      return Vd(e) === u;
                                    })
                                : Id,
                              h = d.filter(function (e) {
                                return c.indexOf(e) >= 0;
                              });
                            0 === h.length && (h = d);
                            var f = h.reduce(function (t, i) {
                              return (
                                (t[i] = uh(e, {
                                  placement: i,
                                  boundary: r,
                                  rootBoundary: a,
                                  padding: o,
                                })[qd(i)]),
                                t
                              );
                            }, {});
                            return Object.keys(f).sort(function (e, t) {
                              return f[e] - f[t];
                            });
                          })(t, {
                            placement: i,
                            boundary: u,
                            rootBoundary: d,
                            padding: c,
                            flipVariations: p,
                            allowedAutoPlacements: g,
                          })
                        : i
                    );
                  }, []),
                  x = t.rects.reference,
                  w = t.rects.popper,
                  E = new Map(),
                  _ = !0,
                  S = y[0],
                  A = 0;
                A < y.length;
                A++
              ) {
                var k = y[A],
                  T = qd(k),
                  C = Vd(k) === Md,
                  O = [Ad, kd].indexOf(T) >= 0,
                  I = O ? "width" : "height",
                  M = uh(t, {
                    placement: k,
                    boundary: u,
                    rootBoundary: d,
                    altBoundary: h,
                    padding: c,
                  }),
                  L = O ? (C ? Td : Cd) : C ? kd : Ad;
                x[I] > w[I] && (L = th(L));
                var P = th(L),
                  D = [];
                if (
                  (a && D.push(M[T] <= 0),
                  s && D.push(M[L] <= 0, M[P] <= 0),
                  D.every(function (e) {
                    return e;
                  }))
                ) {
                  (S = k), (_ = !1);
                  break;
                }
                E.set(k, D);
              }
              if (_)
                for (
                  var R = function (e) {
                      var t = y.find(function (t) {
                        var i = E.get(t);
                        if (i)
                          return i.slice(0, e).every(function (e) {
                            return e;
                          });
                      });
                      if (t) return (S = t), "break";
                    },
                    N = p ? 3 : 1;
                  N > 0;
                  N--
                ) {
                  if ("break" === R(N)) break;
                }
              t.placement !== S &&
                ((t.modifiersData[n]._skip = !0),
                (t.placement = S),
                (t.reset = !0));
            }
          },
          requiresIfExists: ["offset"],
          data: { _skip: !1 },
        };
        function hh(e, t, i) {
          return ad(e, od(t, i));
        }
        const fh = {
          name: "preventOverflow",
          enabled: !0,
          phase: "main",
          fn: function (e) {
            var t = e.state,
              i = e.options,
              n = e.name,
              r = i.mainAxis,
              a = void 0 === r || r,
              o = i.altAxis,
              s = void 0 !== o && o,
              l = i.boundary,
              c = i.rootBoundary,
              u = i.altBoundary,
              d = i.padding,
              h = i.tether,
              f = void 0 === h || h,
              p = i.tetherOffset,
              g = void 0 === p ? 0 : p,
              m = uh(t, {
                boundary: l,
                rootBoundary: c,
                padding: d,
                altBoundary: u,
              }),
              v = qd(t.placement),
              b = Vd(t.placement),
              y = !b,
              x = Ud(v),
              w = "x" === x ? "y" : "x",
              E = t.modifiersData.popperOffsets,
              _ = t.rects.reference,
              S = t.rects.popper,
              A =
                "function" == typeof g
                  ? g(Object.assign({}, t.rects, { placement: t.placement }))
                  : g,
              k =
                "number" == typeof A
                  ? { mainAxis: A, altAxis: A }
                  : Object.assign({ mainAxis: 0, altAxis: 0 }, A),
              T = t.modifiersData.offset
                ? t.modifiersData.offset[t.placement]
                : null,
              C = { x: 0, y: 0 };
            if (E) {
              if (a) {
                var O,
                  I = "y" === x ? Ad : Cd,
                  M = "y" === x ? kd : Td,
                  L = "y" === x ? "height" : "width",
                  P = E[x],
                  D = P + m[I],
                  R = P - m[M],
                  N = f ? -S[L] / 2 : 0,
                  F = b === Md ? _[L] : S[L],
                  B = b === Md ? -S[L] : -_[L],
                  z = t.elements.arrow,
                  j = f && z ? bd(z) : { width: 0, height: 0 },
                  H = t.modifiersData["arrow#persistent"]
                    ? t.modifiersData["arrow#persistent"].padding
                    : { top: 0, right: 0, bottom: 0, left: 0 },
                  Y = H[I],
                  X = H[M],
                  W = hh(0, _[L], j[L]),
                  G = y
                    ? _[L] / 2 - N - W - Y - k.mainAxis
                    : F - W - Y - k.mainAxis,
                  q = y
                    ? -_[L] / 2 + N + W + X + k.mainAxis
                    : B + W + X + k.mainAxis,
                  V = t.elements.arrow && Sd(t.elements.arrow),
                  U = V
                    ? "y" === x
                      ? V.clientTop || 0
                      : V.clientLeft || 0
                    : 0,
                  $ = null != (O = null == T ? void 0 : T[x]) ? O : 0,
                  Z = P + q - $,
                  K = hh(f ? od(D, P + G - $ - U) : D, P, f ? ad(R, Z) : R);
                (E[x] = K), (C[x] = K - P);
              }
              if (s) {
                var J,
                  Q = "x" === x ? Ad : Cd,
                  ee = "x" === x ? kd : Td,
                  te = E[w],
                  ie = "y" === w ? "height" : "width",
                  ne = te + m[Q],
                  re = te - m[ee],
                  ae = -1 !== [Ad, Cd].indexOf(v),
                  oe = null != (J = null == T ? void 0 : T[w]) ? J : 0,
                  se = ae ? ne : te - _[ie] - S[ie] - oe + k.altAxis,
                  le = ae ? te + _[ie] + S[ie] - oe - k.altAxis : re,
                  ce =
                    f && ae
                      ? (function (e, t, i) {
                          var n = hh(e, t, i);
                          return n > i ? i : n;
                        })(se, te, le)
                      : hh(f ? se : ne, te, f ? le : re);
                (E[w] = ce), (C[w] = ce - te);
              }
              t.modifiersData[n] = C;
            }
          },
          requiresIfExists: ["offset"],
        };
        var ph = function (e, t) {
          return lh(
            "number" !=
              typeof (e =
                "function" == typeof e
                  ? e(Object.assign({}, t.rects, { placement: t.placement }))
                  : e)
              ? e
              : ch(e, Id)
          );
        };
        const gh = {
          name: "arrow",
          enabled: !0,
          phase: "main",
          fn: function (e) {
            var t,
              i = e.state,
              n = e.name,
              r = e.options,
              a = i.elements.arrow,
              o = i.modifiersData.popperOffsets,
              s = qd(i.placement),
              l = Ud(s),
              c = [Cd, Td].indexOf(s) >= 0 ? "height" : "width";
            if (a && o) {
              var u = ph(r.padding, i),
                d = bd(a),
                h = "y" === l ? Ad : Cd,
                f = "y" === l ? kd : Td,
                p =
                  i.rects.reference[c] +
                  i.rects.reference[l] -
                  o[l] -
                  i.rects.popper[c],
                g = o[l] - i.rects.reference[l],
                m = Sd(a),
                v = m
                  ? "y" === l
                    ? m.clientHeight || 0
                    : m.clientWidth || 0
                  : 0,
                b = p / 2 - g / 2,
                y = u[h],
                x = v - d[c] - u[f],
                w = v / 2 - d[c] / 2 + b,
                E = hh(y, w, x),
                _ = l;
              i.modifiersData[n] =
                (((t = {})[_] = E), (t.centerOffset = E - w), t);
            }
          },
          effect: function (e) {
            var t = e.state,
              i = e.options.element,
              n = void 0 === i ? "[data-popper-arrow]" : i;
            null != n &&
              ("string" != typeof n ||
                (n = t.elements.popper.querySelector(n))) &&
              rh(t.elements.popper, n) &&
              (t.elements.arrow = n);
          },
          requires: ["popperOffsets"],
          requiresIfExists: ["preventOverflow"],
        };
        function mh(e, t, i) {
          return (
            void 0 === i && (i = { x: 0, y: 0 }),
            {
              top: e.top - t.height - i.y,
              right: e.right - t.width + i.x,
              bottom: e.bottom - t.height + i.y,
              left: e.left - t.width - i.x,
            }
          );
        }
        function vh(e) {
          return [Ad, Td, kd, Cd].some(function (t) {
            return e[t] >= 0;
          });
        }
        var bh = Wd({
          defaultModifiers: [
            {
              name: "eventListeners",
              enabled: !0,
              phase: "write",
              fn: function () {},
              effect: function (e) {
                var t = e.state,
                  i = e.instance,
                  n = e.options,
                  r = n.scroll,
                  a = void 0 === r || r,
                  o = n.resize,
                  s = void 0 === o || o,
                  l = td(t.elements.popper),
                  c = [].concat(
                    t.scrollParents.reference,
                    t.scrollParents.popper
                  );
                return (
                  a &&
                    c.forEach(function (e) {
                      e.addEventListener("scroll", i.update, Gd);
                    }),
                  s && l.addEventListener("resize", i.update, Gd),
                  function () {
                    a &&
                      c.forEach(function (e) {
                        e.removeEventListener("scroll", i.update, Gd);
                      }),
                      s && l.removeEventListener("resize", i.update, Gd);
                  }
                );
              },
              data: {},
            },
            {
              name: "popperOffsets",
              enabled: !0,
              phase: "read",
              fn: function (e) {
                var t = e.state,
                  i = e.name;
                t.modifiersData[i] = $d({
                  reference: t.rects.reference,
                  element: t.rects.popper,
                  strategy: "absolute",
                  placement: t.placement,
                });
              },
              data: {},
            },
            {
              name: "computeStyles",
              enabled: !0,
              phase: "beforeWrite",
              fn: function (e) {
                var t = e.state,
                  i = e.options,
                  n = i.gpuAcceleration,
                  r = void 0 === n || n,
                  a = i.adaptive,
                  o = void 0 === a || a,
                  s = i.roundOffsets,
                  l = void 0 === s || s,
                  c = {
                    placement: qd(t.placement),
                    variation: Vd(t.placement),
                    popper: t.elements.popper,
                    popperRect: t.rects.popper,
                    gpuAcceleration: r,
                    isFixed: "fixed" === t.options.strategy,
                  };
                null != t.modifiersData.popperOffsets &&
                  (t.styles.popper = Object.assign(
                    {},
                    t.styles.popper,
                    Kd(
                      Object.assign({}, c, {
                        offsets: t.modifiersData.popperOffsets,
                        position: t.options.strategy,
                        adaptive: o,
                        roundOffsets: l,
                      })
                    )
                  )),
                  null != t.modifiersData.arrow &&
                    (t.styles.arrow = Object.assign(
                      {},
                      t.styles.arrow,
                      Kd(
                        Object.assign({}, c, {
                          offsets: t.modifiersData.arrow,
                          position: "absolute",
                          adaptive: !1,
                          roundOffsets: l,
                        })
                      )
                    )),
                  (t.attributes.popper = Object.assign(
                    {},
                    t.attributes.popper,
                    { "data-popper-placement": t.placement }
                  ));
              },
              data: {},
            },
            Jd,
            Qd,
            dh,
            fh,
            gh,
            {
              name: "hide",
              enabled: !0,
              phase: "main",
              requiresIfExists: ["preventOverflow"],
              fn: function (e) {
                var t = e.state,
                  i = e.name,
                  n = t.rects.reference,
                  r = t.rects.popper,
                  a = t.modifiersData.preventOverflow,
                  o = uh(t, { elementContext: "reference" }),
                  s = uh(t, { altBoundary: !0 }),
                  l = mh(o, n),
                  c = mh(s, r, a),
                  u = vh(l),
                  d = vh(c);
                (t.modifiersData[i] = {
                  referenceClippingOffsets: l,
                  popperEscapeOffsets: c,
                  isReferenceHidden: u,
                  hasPopperEscaped: d,
                }),
                  (t.attributes.popper = Object.assign(
                    {},
                    t.attributes.popper,
                    {
                      "data-popper-reference-hidden": u,
                      "data-popper-escaped": d,
                    }
                  ));
              },
            },
          ],
        });
        function yh(e) {
          return (
            (function (e) {
              if (Array.isArray(e)) return xh(e);
            })(e) ||
            (function (e) {
              if (
                ("undefined" != typeof Symbol && null != e[Symbol.iterator]) ||
                null != e["@@iterator"]
              )
                return Array.from(e);
            })(e) ||
            (function (e, t) {
              if (!e) return;
              if ("string" == typeof e) return xh(e, t);
              var i = Object.prototype.toString.call(e).slice(8, -1);
              "Object" === i && e.constructor && (i = e.constructor.name);
              if ("Map" === i || "Set" === i) return Array.from(e);
              if (
                "Arguments" === i ||
                /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)
              )
                return xh(e, t);
            })(e) ||
            (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."
              );
            })()
          );
        }
        function xh(e, t) {
          (null == t || t > e.length) && (t = e.length);
          for (var i = 0, n = new Array(t); i < t; i++) n[i] = e[i];
          return n;
        }
        var wh = function (e) {
          var t,
            i,
            n,
            r,
            a,
            o = {
              placement:
                null !== (t = e.placement) && void 0 !== t ? t : "auto",
              strategy: null !== (i = e.strategy) && void 0 !== i ? i : "fixed",
              onFirstUpdate:
                null !== (n = e.onFirstUpdate) && void 0 !== n
                  ? n
                  : function () {},
              modifiers: [
                {
                  name: "offset",
                  options: {
                    offset: [
                      0,
                      null !== (r = e.offset) && void 0 !== r ? r : 0,
                    ],
                  },
                },
              ],
            };
          return (
            e.modifiers && (a = o.modifiers).push.apply(a, yh(e.modifiers)), o
          );
        };
        var Eh = "tippy-box",
          _h = "tippy-content",
          Sh = "tippy-backdrop",
          Ah = "tippy-arrow",
          kh = "tippy-svg-arrow",
          Th = { passive: !0, capture: !0 },
          Ch = function () {
            return document.body;
          };
        function Oh(e, t, i) {
          if (Array.isArray(e)) {
            var n = e[t];
            return null == n ? (Array.isArray(i) ? i[t] : i) : n;
          }
          return e;
        }
        function Ih(e, t) {
          var i = {}.toString.call(e);
          return 0 === i.indexOf("[object") && i.indexOf(t + "]") > -1;
        }
        function Mh(e, t) {
          return "function" == typeof e ? e.apply(void 0, t) : e;
        }
        function Lh(e, t) {
          return 0 === t
            ? e
            : function (n) {
                clearTimeout(i),
                  (i = setTimeout(function () {
                    e(n);
                  }, t));
              };
          var i;
        }
        function Ph(e) {
          return [].concat(e);
        }
        function Dh(e, t) {
          -1 === e.indexOf(t) && e.push(t);
        }
        function Rh(e) {
          return e.split("-")[0];
        }
        function Nh(e) {
          return [].slice.call(e);
        }
        function Fh(e) {
          return Object.keys(e).reduce(function (t, i) {
            return void 0 !== e[i] && (t[i] = e[i]), t;
          }, {});
        }
        function Bh() {
          return document.createElement("div");
        }
        function zh(e) {
          return ["Element", "Fragment"].some(function (t) {
            return Ih(e, t);
          });
        }
        function jh(e) {
          return Ih(e, "MouseEvent");
        }
        function Hh(e) {
          return !(!e || !e._tippy || e._tippy.reference !== e);
        }
        function Yh(e) {
          return zh(e)
            ? [e]
            : (function (e) {
                return Ih(e, "NodeList");
              })(e)
            ? Nh(e)
            : Array.isArray(e)
            ? e
            : Nh(document.querySelectorAll(e));
        }
        function Xh(e, t) {
          e.forEach(function (e) {
            e && (e.style.transitionDuration = t + "ms");
          });
        }
        function Wh(e, t) {
          e.forEach(function (e) {
            e && e.setAttribute("data-state", t);
          });
        }
        function Gh(e) {
          var t,
            i = Ph(e)[0];
          return null != i && null != (t = i.ownerDocument) && t.body
            ? i.ownerDocument
            : document;
        }
        function qh(e, t, i) {
          var n = t + "EventListener";
          ["transitionend", "webkitTransitionEnd"].forEach(function (t) {
            e[n](t, i);
          });
        }
        function Vh(e, t) {
          for (var i = t; i; ) {
            var n;
            if (e.contains(i)) return !0;
            i =
              null == i.getRootNode || null == (n = i.getRootNode())
                ? void 0
                : n.host;
          }
          return !1;
        }
        var Uh = { isTouch: !1 },
          $h = 0;
        function Zh() {
          Uh.isTouch ||
            ((Uh.isTouch = !0),
            window.performance && document.addEventListener("mousemove", Kh));
        }
        function Kh() {
          var e = performance.now();
          e - $h < 20 &&
            ((Uh.isTouch = !1), document.removeEventListener("mousemove", Kh)),
            ($h = e);
        }
        function Jh() {
          var e = document.activeElement;
          if (Hh(e)) {
            var t = e._tippy;
            e.blur && !t.state.isVisible && e.blur();
          }
        }
        var Qh =
          !!("undefined" != typeof window && "undefined" != typeof document) &&
          !!window.msCrypto;
        var ef = {
            animateFill: !1,
            followCursor: !1,
            inlinePositioning: !1,
            sticky: !1,
          },
          tf = Object.assign(
            {
              appendTo: Ch,
              aria: { content: "auto", expanded: "auto" },
              delay: 0,
              duration: [300, 250],
              getReferenceClientRect: null,
              hideOnClick: !0,
              ignoreAttributes: !1,
              interactive: !1,
              interactiveBorder: 2,
              interactiveDebounce: 0,
              moveTransition: "",
              offset: [0, 10],
              onAfterUpdate: function () {},
              onBeforeUpdate: function () {},
              onCreate: function () {},
              onDestroy: function () {},
              onHidden: function () {},
              onHide: function () {},
              onMount: function () {},
              onShow: function () {},
              onShown: function () {},
              onTrigger: function () {},
              onUntrigger: function () {},
              onClickOutside: function () {},
              placement: "top",
              plugins: [],
              popperOptions: {},
              render: null,
              showOnCreate: !1,
              touch: !0,
              trigger: "mouseenter focus",
              triggerTarget: null,
            },
            ef,
            {
              allowHTML: !1,
              animation: "fade",
              arrow: !0,
              content: "",
              inertia: !1,
              maxWidth: 350,
              role: "tooltip",
              theme: "",
              zIndex: 9999,
            }
          ),
          nf = Object.keys(tf);
        function rf(e) {
          var t = (e.plugins || []).reduce(function (t, i) {
            var n,
              r = i.name,
              a = i.defaultValue;
            r && (t[r] = void 0 !== e[r] ? e[r] : null != (n = tf[r]) ? n : a);
            return t;
          }, {});
          return Object.assign({}, e, t);
        }
        function af(e, t) {
          var i = Object.assign(
            {},
            t,
            { content: Mh(t.content, [e]) },
            t.ignoreAttributes
              ? {}
              : (function (e, t) {
                  var i = (
                    t
                      ? Object.keys(rf(Object.assign({}, tf, { plugins: t })))
                      : nf
                  ).reduce(function (t, i) {
                    var n = (e.getAttribute("data-tippy-" + i) || "").trim();
                    if (!n) return t;
                    if ("content" === i) t[i] = n;
                    else
                      try {
                        t[i] = JSON.parse(n);
                      } catch (e) {
                        t[i] = n;
                      }
                    return t;
                  }, {});
                  return i;
                })(e, t.plugins)
          );
          return (
            (i.aria = Object.assign({}, tf.aria, i.aria)),
            (i.aria = {
              expanded:
                "auto" === i.aria.expanded ? t.interactive : i.aria.expanded,
              content:
                "auto" === i.aria.content
                  ? t.interactive
                    ? null
                    : "describedby"
                  : i.aria.content,
            }),
            i
          );
        }
        var of = function () {
          return "innerHTML";
        };
        function sf(e, t) {
          e[of()] = t;
        }
        function lf(e) {
          var t = Bh();
          return (
            !0 === e
              ? (t.className = Ah)
              : ((t.className = kh), zh(e) ? t.appendChild(e) : sf(t, e)),
            t
          );
        }
        function cf(e, t) {
          zh(t.content)
            ? (sf(e, ""), e.appendChild(t.content))
            : "function" != typeof t.content &&
              (t.allowHTML ? sf(e, t.content) : (e.textContent = t.content));
        }
        function uf(e) {
          var t = e.firstElementChild,
            i = Nh(t.children);
          return {
            box: t,
            content: i.find(function (e) {
              return e.classList.contains(_h);
            }),
            arrow: i.find(function (e) {
              return e.classList.contains(Ah) || e.classList.contains(kh);
            }),
            backdrop: i.find(function (e) {
              return e.classList.contains(Sh);
            }),
          };
        }
        function df(e) {
          var t = Bh(),
            i = Bh();
          (i.className = Eh),
            i.setAttribute("data-state", "hidden"),
            i.setAttribute("tabindex", "-1");
          var n = Bh();
          function r(i, n) {
            var r = uf(t),
              a = r.box,
              o = r.content,
              s = r.arrow;
            n.theme
              ? a.setAttribute("data-theme", n.theme)
              : a.removeAttribute("data-theme"),
              "string" == typeof n.animation
                ? a.setAttribute("data-animation", n.animation)
                : a.removeAttribute("data-animation"),
              n.inertia
                ? a.setAttribute("data-inertia", "")
                : a.removeAttribute("data-inertia"),
              (a.style.maxWidth =
                "number" == typeof n.maxWidth ? n.maxWidth + "px" : n.maxWidth),
              n.role
                ? a.setAttribute("role", n.role)
                : a.removeAttribute("role"),
              (i.content === n.content && i.allowHTML === n.allowHTML) ||
                cf(o, e.props),
              n.arrow
                ? s
                  ? i.arrow !== n.arrow &&
                    (a.removeChild(s), a.appendChild(lf(n.arrow)))
                  : a.appendChild(lf(n.arrow))
                : s && a.removeChild(s);
          }
          return (
            (n.className = _h),
            n.setAttribute("data-state", "hidden"),
            cf(n, e.props),
            t.appendChild(i),
            i.appendChild(n),
            r(e.props, e.props),
            { popper: t, onUpdate: r }
          );
        }
        df.$$tippy = !0;
        var hf = 1,
          ff = [],
          pf = [];
        function gf(e, t) {
          var i,
            n,
            r,
            a,
            o,
            s,
            l,
            c,
            u = af(e, Object.assign({}, tf, rf(Fh(t)))),
            d = !1,
            h = !1,
            f = !1,
            p = !1,
            g = [],
            m = Lh(V, u.interactiveDebounce),
            v = hf++,
            b = (c = u.plugins).filter(function (e, t) {
              return c.indexOf(e) === t;
            }),
            y = {
              id: v,
              reference: e,
              popper: Bh(),
              popperInstance: null,
              props: u,
              state: {
                isEnabled: !0,
                isVisible: !1,
                isDestroyed: !1,
                isMounted: !1,
                isShown: !1,
              },
              plugins: b,
              clearDelayTimeouts: function () {
                clearTimeout(i), clearTimeout(n), cancelAnimationFrame(r);
              },
              setProps: function (t) {
                0;
                if (y.state.isDestroyed) return;
                P("onBeforeUpdate", [y, t]), G();
                var i = y.props,
                  n = af(
                    e,
                    Object.assign({}, i, Fh(t), { ignoreAttributes: !0 })
                  );
                (y.props = n),
                  W(),
                  i.interactiveDebounce !== n.interactiveDebounce &&
                    (N(), (m = Lh(V, n.interactiveDebounce)));
                i.triggerTarget && !n.triggerTarget
                  ? Ph(i.triggerTarget).forEach(function (e) {
                      e.removeAttribute("aria-expanded");
                    })
                  : n.triggerTarget && e.removeAttribute("aria-expanded");
                R(), L(), E && E(i, n);
                y.popperInstance &&
                  (K(),
                  Q().forEach(function (e) {
                    requestAnimationFrame(e._tippy.popperInstance.forceUpdate);
                  }));
                P("onAfterUpdate", [y, t]);
              },
              setContent: function (e) {
                y.setProps({ content: e });
              },
              show: function () {
                0;
                var e = y.state.isVisible,
                  t = y.state.isDestroyed,
                  i = !y.state.isEnabled,
                  n = Uh.isTouch && !y.props.touch,
                  r = Oh(y.props.duration, 0, tf.duration);
                if (e || t || i || n) return;
                if (C().hasAttribute("disabled")) return;
                if ((P("onShow", [y], !1), !1 === y.props.onShow(y))) return;
                (y.state.isVisible = !0),
                  T() && (w.style.visibility = "visible");
                L(), j(), y.state.isMounted || (w.style.transition = "none");
                if (T()) {
                  var a = I();
                  Xh([a.box, a.content], 0);
                }
                (s = function () {
                  var e;
                  if (y.state.isVisible && !p) {
                    if (
                      ((p = !0),
                      w.offsetHeight,
                      (w.style.transition = y.props.moveTransition),
                      T() && y.props.animation)
                    ) {
                      var t = I(),
                        i = t.box,
                        n = t.content;
                      Xh([i, n], r), Wh([i, n], "visible");
                    }
                    D(),
                      R(),
                      Dh(pf, y),
                      null == (e = y.popperInstance) || e.forceUpdate(),
                      P("onMount", [y]),
                      y.props.animation &&
                        T() &&
                        (function (e, t) {
                          Y(e, t);
                        })(r, function () {
                          (y.state.isShown = !0), P("onShown", [y]);
                        });
                  }
                }),
                  (function () {
                    var e,
                      t = y.props.appendTo,
                      i = C();
                    e =
                      (y.props.interactive && t === Ch) || "parent" === t
                        ? i.parentNode
                        : Mh(t, [i]);
                    e.contains(w) || e.appendChild(w);
                    (y.state.isMounted = !0), K(), !1;
                  })();
              },
              hide: function () {
                0;
                var e = !y.state.isVisible,
                  t = y.state.isDestroyed,
                  i = !y.state.isEnabled,
                  n = Oh(y.props.duration, 1, tf.duration);
                if (e || t || i) return;
                if ((P("onHide", [y], !1), !1 === y.props.onHide(y))) return;
                (y.state.isVisible = !1),
                  (y.state.isShown = !1),
                  (p = !1),
                  (d = !1),
                  T() && (w.style.visibility = "hidden");
                if ((N(), H(), L(!0), T())) {
                  var r = I(),
                    a = r.box,
                    o = r.content;
                  y.props.animation && (Xh([a, o], n), Wh([a, o], "hidden"));
                }
                D(),
                  R(),
                  y.props.animation
                    ? T() &&
                      (function (e, t) {
                        Y(e, function () {
                          !y.state.isVisible &&
                            w.parentNode &&
                            w.parentNode.contains(w) &&
                            t();
                        });
                      })(n, y.unmount)
                    : y.unmount();
              },
              hideWithInteractivity: function (e) {
                0;
                O().addEventListener("mousemove", m), Dh(ff, m), m(e);
              },
              enable: function () {
                y.state.isEnabled = !0;
              },
              disable: function () {
                y.hide(), (y.state.isEnabled = !1);
              },
              unmount: function () {
                0;
                y.state.isVisible && y.hide();
                if (!y.state.isMounted) return;
                J(),
                  Q().forEach(function (e) {
                    e._tippy.unmount();
                  }),
                  w.parentNode && w.parentNode.removeChild(w);
                (pf = pf.filter(function (e) {
                  return e !== y;
                })),
                  (y.state.isMounted = !1),
                  P("onHidden", [y]);
              },
              destroy: function () {
                0;
                if (y.state.isDestroyed) return;
                y.clearDelayTimeouts(),
                  y.unmount(),
                  G(),
                  delete e._tippy,
                  (y.state.isDestroyed = !0),
                  P("onDestroy", [y]);
              },
            };
          if (!u.render) return y;
          var x = u.render(y),
            w = x.popper,
            E = x.onUpdate;
          w.setAttribute("data-tippy-root", ""),
            (w.id = "tippy-" + y.id),
            (y.popper = w),
            (e._tippy = y),
            (w._tippy = y);
          var _ = b.map(function (e) {
              return e.fn(y);
            }),
            S = e.hasAttribute("aria-expanded");
          return (
            W(),
            R(),
            L(),
            P("onCreate", [y]),
            u.showOnCreate && ee(),
            w.addEventListener("mouseenter", function () {
              y.props.interactive &&
                y.state.isVisible &&
                y.clearDelayTimeouts();
            }),
            w.addEventListener("mouseleave", function () {
              y.props.interactive &&
                y.props.trigger.indexOf("mouseenter") >= 0 &&
                O().addEventListener("mousemove", m);
            }),
            y
          );
          function A() {
            var e = y.props.touch;
            return Array.isArray(e) ? e : [e, 0];
          }
          function k() {
            return "hold" === A()[0];
          }
          function T() {
            var e;
            return !(null == (e = y.props.render) || !e.$$tippy);
          }
          function C() {
            return l || e;
          }
          function O() {
            var e = C().parentNode;
            return e ? Gh(e) : document;
          }
          function I() {
            return uf(w);
          }
          function M(e) {
            return (y.state.isMounted && !y.state.isVisible) ||
              Uh.isTouch ||
              (a && "focus" === a.type)
              ? 0
              : Oh(y.props.delay, e ? 0 : 1, tf.delay);
          }
          function L(e) {
            void 0 === e && (e = !1),
              (w.style.pointerEvents = y.props.interactive && !e ? "" : "none"),
              (w.style.zIndex = "" + y.props.zIndex);
          }
          function P(e, t, i) {
            var n;
            (void 0 === i && (i = !0),
            _.forEach(function (i) {
              i[e] && i[e].apply(i, t);
            }),
            i) && (n = y.props)[e].apply(n, t);
          }
          function D() {
            var t = y.props.aria;
            if (t.content) {
              var i = "aria-" + t.content,
                n = w.id;
              Ph(y.props.triggerTarget || e).forEach(function (e) {
                var t = e.getAttribute(i);
                if (y.state.isVisible) e.setAttribute(i, t ? t + " " + n : n);
                else {
                  var r = t && t.replace(n, "").trim();
                  r ? e.setAttribute(i, r) : e.removeAttribute(i);
                }
              });
            }
          }
          function R() {
            !S &&
              y.props.aria.expanded &&
              Ph(y.props.triggerTarget || e).forEach(function (e) {
                y.props.interactive
                  ? e.setAttribute(
                      "aria-expanded",
                      y.state.isVisible && e === C() ? "true" : "false"
                    )
                  : e.removeAttribute("aria-expanded");
              });
          }
          function N() {
            O().removeEventListener("mousemove", m),
              (ff = ff.filter(function (e) {
                return e !== m;
              }));
          }
          function F(t) {
            if (!Uh.isTouch || (!f && "mousedown" !== t.type)) {
              var i = (t.composedPath && t.composedPath()[0]) || t.target;
              if (!y.props.interactive || !Vh(w, i)) {
                if (
                  Ph(y.props.triggerTarget || e).some(function (e) {
                    return Vh(e, i);
                  })
                ) {
                  if (Uh.isTouch) return;
                  if (
                    y.state.isVisible &&
                    y.props.trigger.indexOf("click") >= 0
                  )
                    return;
                } else P("onClickOutside", [y, t]);
                !0 === y.props.hideOnClick &&
                  (y.clearDelayTimeouts(),
                  y.hide(),
                  (h = !0),
                  setTimeout(function () {
                    h = !1;
                  }),
                  y.state.isMounted || H());
              }
            }
          }
          function B() {
            f = !0;
          }
          function z() {
            f = !1;
          }
          function j() {
            var e = O();
            e.addEventListener("mousedown", F, !0),
              e.addEventListener("touchend", F, Th),
              e.addEventListener("touchstart", z, Th),
              e.addEventListener("touchmove", B, Th);
          }
          function H() {
            var e = O();
            e.removeEventListener("mousedown", F, !0),
              e.removeEventListener("touchend", F, Th),
              e.removeEventListener("touchstart", z, Th),
              e.removeEventListener("touchmove", B, Th);
          }
          function Y(e, t) {
            var i = I().box;
            function n(e) {
              e.target === i && (qh(i, "remove", n), t());
            }
            if (0 === e) return t();
            qh(i, "remove", o), qh(i, "add", n), (o = n);
          }
          function X(t, i, n) {
            void 0 === n && (n = !1),
              Ph(y.props.triggerTarget || e).forEach(function (e) {
                e.addEventListener(t, i, n),
                  g.push({ node: e, eventType: t, handler: i, options: n });
              });
          }
          function W() {
            k() &&
              (X("touchstart", q, { passive: !0 }),
              X("touchend", U, { passive: !0 })),
              (function (e) {
                return e.split(/\s+/).filter(Boolean);
              })(y.props.trigger).forEach(function (e) {
                if ("manual" !== e)
                  switch ((X(e, q), e)) {
                    case "mouseenter":
                      X("mouseleave", U);
                      break;
                    case "focus":
                      X(Qh ? "focusout" : "blur", $);
                      break;
                    case "focusin":
                      X("focusout", $);
                  }
              });
          }
          function G() {
            g.forEach(function (e) {
              var t = e.node,
                i = e.eventType,
                n = e.handler,
                r = e.options;
              t.removeEventListener(i, n, r);
            }),
              (g = []);
          }
          function q(e) {
            var t,
              i = !1;
            if (y.state.isEnabled && !Z(e) && !h) {
              var n = "focus" === (null == (t = a) ? void 0 : t.type);
              (a = e),
                (l = e.currentTarget),
                R(),
                !y.state.isVisible &&
                  jh(e) &&
                  ff.forEach(function (t) {
                    return t(e);
                  }),
                "click" === e.type &&
                (y.props.trigger.indexOf("mouseenter") < 0 || d) &&
                !1 !== y.props.hideOnClick &&
                y.state.isVisible
                  ? (i = !0)
                  : ee(e),
                "click" === e.type && (d = !i),
                i && !n && te(e);
            }
          }
          function V(e) {
            var t = e.target,
              i = C().contains(t) || w.contains(t);
            if ("mousemove" !== e.type || !i) {
              var n = Q()
                .concat(w)
                .map(function (e) {
                  var t,
                    i =
                      null == (t = e._tippy.popperInstance) ? void 0 : t.state;
                  return i
                    ? {
                        popperRect: e.getBoundingClientRect(),
                        popperState: i,
                        props: u,
                      }
                    : null;
                })
                .filter(Boolean);
              (function (e, t) {
                var i = t.clientX,
                  n = t.clientY;
                return e.every(function (e) {
                  var t = e.popperRect,
                    r = e.popperState,
                    a = e.props.interactiveBorder,
                    o = Rh(r.placement),
                    s = r.modifiersData.offset;
                  if (!s) return !0;
                  var l = "bottom" === o ? s.top.y : 0,
                    c = "top" === o ? s.bottom.y : 0,
                    u = "right" === o ? s.left.x : 0,
                    d = "left" === o ? s.right.x : 0,
                    h = t.top - n + l > a,
                    f = n - t.bottom - c > a,
                    p = t.left - i + u > a,
                    g = i - t.right - d > a;
                  return h || f || p || g;
                });
              })(n, e) && (N(), te(e));
            }
          }
          function U(e) {
            Z(e) ||
              (y.props.trigger.indexOf("click") >= 0 && d) ||
              (y.props.interactive ? y.hideWithInteractivity(e) : te(e));
          }
          function $(e) {
            (y.props.trigger.indexOf("focusin") < 0 && e.target !== C()) ||
              (y.props.interactive &&
                e.relatedTarget &&
                w.contains(e.relatedTarget)) ||
              te(e);
          }
          function Z(e) {
            return !!Uh.isTouch && k() !== e.type.indexOf("touch") >= 0;
          }
          function K() {
            J();
            var t = y.props,
              i = t.popperOptions,
              n = t.placement,
              r = t.offset,
              a = t.getReferenceClientRect,
              o = t.moveTransition,
              l = T() ? uf(w).arrow : null,
              c = a
                ? {
                    getBoundingClientRect: a,
                    contextElement: a.contextElement || C(),
                  }
                : e,
              u = {
                name: "$$tippy",
                enabled: !0,
                phase: "beforeWrite",
                requires: ["computeStyles"],
                fn: function (e) {
                  var t = e.state;
                  if (T()) {
                    var i = I().box;
                    ["placement", "reference-hidden", "escaped"].forEach(
                      function (e) {
                        "placement" === e
                          ? i.setAttribute("data-placement", t.placement)
                          : t.attributes.popper["data-popper-" + e]
                          ? i.setAttribute("data-" + e, "")
                          : i.removeAttribute("data-" + e);
                      }
                    ),
                      (t.attributes.popper = {});
                  }
                },
              },
              d = [
                { name: "offset", options: { offset: r } },
                {
                  name: "preventOverflow",
                  options: {
                    padding: { top: 2, bottom: 2, left: 5, right: 5 },
                  },
                },
                { name: "flip", options: { padding: 5 } },
                { name: "computeStyles", options: { adaptive: !o } },
                u,
              ];
            T() &&
              l &&
              d.push({ name: "arrow", options: { element: l, padding: 3 } }),
              d.push.apply(d, (null == i ? void 0 : i.modifiers) || []),
              (y.popperInstance = bh(
                c,
                w,
                Object.assign({}, i, {
                  placement: n,
                  onFirstUpdate: s,
                  modifiers: d,
                })
              ));
          }
          function J() {
            y.popperInstance &&
              (y.popperInstance.destroy(), (y.popperInstance = null));
          }
          function Q() {
            return Nh(w.querySelectorAll("[data-tippy-root]"));
          }
          function ee(e) {
            y.clearDelayTimeouts(), e && P("onTrigger", [y, e]), j();
            var t = M(!0),
              n = A(),
              r = n[0],
              a = n[1];
            Uh.isTouch && "hold" === r && a && (t = a),
              t
                ? (i = setTimeout(function () {
                    y.show();
                  }, t))
                : y.show();
          }
          function te(e) {
            if (
              (y.clearDelayTimeouts(),
              P("onUntrigger", [y, e]),
              y.state.isVisible)
            ) {
              if (
                !(
                  y.props.trigger.indexOf("mouseenter") >= 0 &&
                  y.props.trigger.indexOf("click") >= 0 &&
                  ["mouseleave", "mousemove"].indexOf(e.type) >= 0 &&
                  d
                )
              ) {
                var t = M(!1);
                t
                  ? (n = setTimeout(function () {
                      y.state.isVisible && y.hide();
                    }, t))
                  : (r = requestAnimationFrame(function () {
                      y.hide();
                    }));
              }
            } else H();
          }
        }
        function mf(e, t) {
          void 0 === t && (t = {});
          var i = tf.plugins.concat(t.plugins || []);
          document.addEventListener("touchstart", Zh, Th),
            window.addEventListener("blur", Jh);
          var n = Object.assign({}, t, { plugins: i }),
            r = Yh(e).reduce(function (e, t) {
              var i = t && gf(t, n);
              return i && e.push(i), e;
            }, []);
          return zh(e) ? r[0] : r;
        }
        (mf.defaultProps = tf),
          (mf.setDefaultProps = function (e) {
            Object.keys(e).forEach(function (t) {
              tf[t] = e[t];
            });
          }),
          (mf.currentInput = Uh);
        Object.assign({}, Jd, {
          effect: function (e) {
            var t = e.state,
              i = {
                popper: {
                  position: t.options.strategy,
                  left: "0",
                  top: "0",
                  margin: "0",
                },
                arrow: { position: "absolute" },
                reference: {},
              };
            Object.assign(t.elements.popper.style, i.popper),
              (t.styles = i),
              t.elements.arrow &&
                Object.assign(t.elements.arrow.style, i.arrow);
          },
        });
        var vf = { clientX: 0, clientY: 0 },
          bf = [];
        function yf(e) {
          var t = e.clientX,
            i = e.clientY;
          vf = { clientX: t, clientY: i };
        }
        var xf = {
          name: "followCursor",
          defaultValue: !1,
          fn: function (e) {
            var t = e.reference,
              i = Gh(e.props.triggerTarget || t),
              n = !1,
              r = !1,
              a = !0,
              o = e.props;
            function s() {
              return "initial" === e.props.followCursor && e.state.isVisible;
            }
            function l() {
              i.addEventListener("mousemove", d);
            }
            function c() {
              i.removeEventListener("mousemove", d);
            }
            function u() {
              (n = !0), e.setProps({ getReferenceClientRect: null }), (n = !1);
            }
            function d(i) {
              var n = !i.target || t.contains(i.target),
                r = e.props.followCursor,
                a = i.clientX,
                o = i.clientY,
                s = t.getBoundingClientRect(),
                l = a - s.left,
                c = o - s.top;
              (!n && e.props.interactive) ||
                e.setProps({
                  getReferenceClientRect: function () {
                    var e = t.getBoundingClientRect(),
                      i = a,
                      n = o;
                    "initial" === r && ((i = e.left + l), (n = e.top + c));
                    var s = "horizontal" === r ? e.top : n,
                      u = "vertical" === r ? e.right : i,
                      d = "horizontal" === r ? e.bottom : n,
                      h = "vertical" === r ? e.left : i;
                    return {
                      width: u - h,
                      height: d - s,
                      top: s,
                      right: u,
                      bottom: d,
                      left: h,
                    };
                  },
                });
            }
            function h() {
              e.props.followCursor &&
                (bf.push({ instance: e, doc: i }),
                (function (e) {
                  e.addEventListener("mousemove", yf);
                })(i));
            }
            function f() {
              (bf = bf.filter(function (t) {
                return t.instance !== e;
              })),
                0 ===
                  bf.filter(function (e) {
                    return e.doc === i;
                  }).length &&
                  (function (e) {
                    e.removeEventListener("mousemove", yf);
                  })(i);
            }
            return {
              onCreate: h,
              onDestroy: f,
              onBeforeUpdate: function () {
                o = e.props;
              },
              onAfterUpdate: function (t, i) {
                var a = i.followCursor;
                n ||
                  (void 0 !== a &&
                    o.followCursor !== a &&
                    (f(),
                    a
                      ? (h(), !e.state.isMounted || r || s() || l())
                      : (c(), u())));
              },
              onMount: function () {
                e.props.followCursor &&
                  !r &&
                  (a && (d(vf), (a = !1)), s() || l());
              },
              onTrigger: function (e, t) {
                jh(t) && (vf = { clientX: t.clientX, clientY: t.clientY }),
                  (r = "focus" === t.type);
              },
              onHidden: function () {
                e.props.followCursor && (u(), c(), (a = !0));
              },
            };
          },
        };
        mf.setDefaultProps({ render: df });
        const wf = mf;
        var Ef = function (e) {
            var t = {
              plugins: [],
              arrow:
                '<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',
              animation: "shift-away",
              zIndex: 10003,
            };
            if (
              (e.includes("duration") &&
                (t.duration = parseInt(e[e.indexOf("duration") + 1])),
              e.includes("delay") &&
                (t.delay = parseInt(e[e.indexOf("delay") + 1])),
              e.includes("cursor"))
            ) {
              var i;
              t.plugins.push(xf);
              var n =
                null !== (i = e[e.indexOf("cursor") + 1]) && void 0 !== i
                  ? i
                  : null;
              ["x", "y", "initial"].includes(n)
                ? ("x" === n && (t.followCursor = "horizontal"),
                  "y" === n && (t.followCursor = "vertical"),
                  "initial" === n && (t.followCursor = "initial"))
                : (t.followCursor = !0);
            }
            return (
              e.includes("on") && (t.trigger = e[e.indexOf("on") + 1]),
              e.includes("arrowless") && (t.arrow = !1),
              e.includes("interactive") && (t.interactive = !0),
              e.includes("border") &&
                t.interactive &&
                (t.interactiveBorder = parseInt(e[e.indexOf("border") + 1])),
              e.includes("debounce") &&
                t.interactive &&
                (t.interactiveDebounce = parseInt(
                  e[e.indexOf("debounce") + 1]
                )),
              e.includes("max-width") &&
                (t.maxWidth = parseInt(e[e.indexOf("max-width") + 1])),
              e.includes("placement") &&
                (t.placement = e[e.indexOf("placement") + 1]),
              e.includes("light") && (t.theme = "light"),
              e.includes("primary") && (t.theme = "primary"),
              e.includes("secondary") && (t.theme = "secondary"),
              e.includes("info") && (t.theme = "info"),
              e.includes("success") && (t.theme = "success"),
              e.includes("warning") && (t.theme = "warning"),
              e.includes("error") && (t.theme = "error"),
              e.includes("sm") && (t.theme = "".concat(t.theme, " is-sm")),
              e.includes("content") &&
                ((t.theme = "content"), (t.content = !0)),
              t
            );
          },
          _f = i(877),
          Sf = i.n(_f);
        function Af(e) {
          return (
            (Af =
              "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
                ? function (e) {
                    return typeof e;
                  }
                : function (e) {
                    return e &&
                      "function" == typeof Symbol &&
                      e.constructor === Symbol &&
                      e !== Symbol.prototype
                      ? "symbol"
                      : typeof e;
                  }),
            Af(e)
          );
        }
        var kf = i(374),
          Tf = i.n(kf);
        function Cf(e, t) {
          return (
            (function (e) {
              if (Array.isArray(e)) return e;
            })(e) ||
            (function (e, t) {
              var i =
                null == e
                  ? null
                  : ("undefined" != typeof Symbol && e[Symbol.iterator]) ||
                    e["@@iterator"];
              if (null != i) {
                var n,
                  r,
                  a,
                  o,
                  s = [],
                  l = !0,
                  c = !1;
                try {
                  if (((a = (i = i.call(e)).next), 0 === t)) {
                    if (Object(i) !== i) return;
                    l = !1;
                  } else
                    for (
                      ;
                      !(l = (n = a.call(i)).done) &&
                      (s.push(n.value), s.length !== t);
                      l = !0
                    );
                } catch (e) {
                  (c = !0), (r = e);
                } finally {
                  try {
                    if (
                      !l &&
                      null != i.return &&
                      ((o = i.return()), Object(o) !== o)
                    )
                      return;
                  } finally {
                    if (c) throw r;
                  }
                }
                return s;
              }
            })(e, t) ||
            (function (e, t) {
              if (!e) return;
              if ("string" == typeof e) return Of(e, t);
              var i = Object.prototype.toString.call(e).slice(8, -1);
              "Object" === i && e.constructor && (i = e.constructor.name);
              if ("Map" === i || "Set" === i) return Array.from(e);
              if (
                "Arguments" === i ||
                /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)
              )
                return Of(e, t);
            })(e, t) ||
            (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."
              );
            })()
          );
        }
        function Of(e, t) {
          (null == t || t > e.length) && (t = e.length);
          for (var i = 0, n = new Array(t); i < t; i++) n[i] = e[i];
          return n;
        }
        const If = function (e) {
            var t = Cf(e.position ? e.position.split("-") : "", 2),
              i = t[0],
              n = void 0 === i ? "right" : i,
              r = t[1],
              a = void 0 === r ? "bottom" : r,
              o = null,
              s = {
                duration: e.duration || 5e3,
                gravity: a,
                position: n,
                text: e.text || "This is a message",
                newWindow: !0,
                close: e.hasCloseBtn || !1,
                backgroundColor: "",
                className: e.class || "",
                stopOnFocus: e.pauseOnHover || !0,
              };
            e.link && (s.destination = e.link),
              e.variant &&
                (s.className = "".concat(s.className, " ").concat(e.variant)),
              e.content &&
                ((s.node = document
                  .querySelector(e.content)
                  .content.firstElementChild.cloneNode(!0)),
                (s.className += " html"),
                (s.close = !1));
            var l = Tf()(s);
            l.showToast(),
              e.content &&
                (o = l.toastElement.querySelector(
                  "[data-notification-remove]"
                )) &&
                o.addEventListener("click", function () {
                  return l.removeElement(l.toastElement);
                });
          },
          Mf = function (e) {
            var t,
              i,
              n = {
                content: e.content,
                onSuccess:
                  null !== (t = e.success) && void 0 !== t ? t : function () {},
                onError:
                  null !== (i = e.error) && void 0 !== i ? i : function () {},
              };
            "" !== e.content &&
              ("function" == typeof e.content && (e.content = e.content()),
              navigator.clipboard.writeText(n.content).then(
                function () {
                  n.onSuccess();
                },
                function (e) {
                  n.onError(e);
                }
              ));
          };
        tr.registerLanguage("xml", function (e) {
          const t = e.regex,
            i = t.concat(
              /[\p{L}_]/u,
              t.optional(/[\p{L}0-9_.-]*:/u),
              /[\p{L}0-9_.-]*/u
            ),
            n = {
              className: "symbol",
              begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/,
            },
            r = {
              begin: /\s/,
              contains: [
                {
                  className: "keyword",
                  begin: /#?[a-z_][a-z1-9_-]+/,
                  illegal: /\n/,
                },
              ],
            },
            a = e.inherit(r, { begin: /\(/, end: /\)/ }),
            o = e.inherit(e.APOS_STRING_MODE, { className: "string" }),
            s = e.inherit(e.QUOTE_STRING_MODE, { className: "string" }),
            l = {
              endsWithParent: !0,
              illegal: /</,
              relevance: 0,
              contains: [
                { className: "attr", begin: /[\p{L}0-9._:-]+/u, relevance: 0 },
                {
                  begin: /=\s*/,
                  relevance: 0,
                  contains: [
                    {
                      className: "string",
                      endsParent: !0,
                      variants: [
                        { begin: /"/, end: /"/, contains: [n] },
                        { begin: /'/, end: /'/, contains: [n] },
                        { begin: /[^\s"'=<>`]+/ },
                      ],
                    },
                  ],
                },
              ],
            };
          return {
            name: "HTML, XML",
            aliases: [
              "html",
              "xhtml",
              "rss",
              "atom",
              "xjb",
              "xsd",
              "xsl",
              "plist",
              "wsf",
              "svg",
            ],
            case_insensitive: !0,
            unicodeRegex: !0,
            contains: [
              {
                className: "meta",
                begin: /<![a-z]/,
                end: />/,
                relevance: 10,
                contains: [
                  r,
                  s,
                  o,
                  a,
                  {
                    begin: /\[/,
                    end: /\]/,
                    contains: [
                      {
                        className: "meta",
                        begin: /<![a-z]/,
                        end: />/,
                        contains: [r, a, s, o],
                      },
                    ],
                  },
                ],
              },
              e.COMMENT(/<!--/, /-->/, { relevance: 10 }),
              { begin: /<!\[CDATA\[/, end: /\]\]>/, relevance: 10 },
              n,
              {
                className: "meta",
                end: /\?>/,
                variants: [
                  { begin: /<\?xml/, relevance: 10, contains: [s] },
                  { begin: /<\?[a-z][a-z0-9]+/ },
                ],
              },
              {
                className: "tag",
                begin: /<style(?=\s|>)/,
                end: />/,
                keywords: { name: "style" },
                contains: [l],
                starts: {
                  end: /<\/style>/,
                  returnEnd: !0,
                  subLanguage: ["css", "xml"],
                },
              },
              {
                className: "tag",
                begin: /<script(?=\s|>)/,
                end: />/,
                keywords: { name: "script" },
                contains: [l],
                starts: {
                  end: /<\/script>/,
                  returnEnd: !0,
                  subLanguage: ["javascript", "handlebars", "xml"],
                },
              },
              { className: "tag", begin: /<>|<\/>/ },
              {
                className: "tag",
                begin: t.concat(
                  /</,
                  t.lookahead(t.concat(i, t.either(/\/>/, />/, /\s/)))
                ),
                end: /\/?>/,
                contains: [
                  { className: "name", begin: i, relevance: 0, starts: l },
                ],
              },
              {
                className: "tag",
                begin: t.concat(/<\//, t.lookahead(t.concat(i, />/))),
                contains: [
                  { className: "name", begin: i, relevance: 0 },
                  { begin: />/, relevance: 0, endsParent: !0 },
                ],
              },
            ],
          };
        }),
          tr.configure({ ignoreUnescapedHTML: !0 }),
          eu.registerPlugin(iu()),
          (window.hljs = tr),
          (window.dayjs = nr()),
          (window.SimpleBar = er),
          (window.Swiper = aa),
          (window.Sortable = Es),
          (window.ApexCharts = As()),
          (window.Gridjs = n),
          (window.FilePond = eu),
          (window.flatpickr = Bu),
          (window.Quill = ru()),
          (window.Tom = ju()),
          (window.Alpine = Fi),
          (window.helpers = r),
          (window.pages = s),
          Fi.plugin(Hi),
          Fi.plugin(Xi),
          Fi.plugin(Vi),
          Fi.directive("tooltip", function (e, t, i) {
            var n = t.modifiers,
              r = t.expression,
              a = i.evaluateLater,
              o = i.effect,
              s = a(r),
              l = Ef(n);
            o(function () {
              s(function (t) {
                !0 === l.content
                  ? ((l.content = document
                      .querySelector(t)
                      .content.cloneNode(!0)),
                    (l.allowHTML = !0),
                    (e.__x_tippy = wf(e, l)))
                  : (e.__x_tippy || (e.__x_tippy = wf(e, l)),
                    e.__x_tippy.setContent(t));
              });
            });
          }),
          Fi.directive("input-mask", function (e, t, i) {
            var n = t.expression,
              r = i.evaluateLater,
              a = i.effect,
              o = r(n);
            a(function () {
              o(function (t) {
                "object" == Af(t)
                  ? (e.__x_cleave = new (Sf())(e, t))
                  : console.warn("Input mask config should be object");
              });
            });
          }),
          Fi.magic("notification", function () {
            return If;
          }),
          Fi.magic("clipboard", function () {
            return Mf;
          }),
          Fi.store("breakpoints", ed),
          Fi.store("global", Zu),
          Fi.data("usePopper", function () {
            return {
              popperInstance: null,
              options: wh(
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : {}
              ),
              isShowPopper: !1,
              init: function () {
                var e = this;
                this.$nextTick(function () {
                  return (e.popperInstance = bh(
                    e.$refs.popperRef,
                    e.$refs.popperRoot,
                    e.options
                  ));
                }),
                  this.$watch("isShowPopper", function (t) {
                    return t && e.popperInstance.update();
                  }),
                  Alpine.effect(function () {
                    return (
                      Alpine.store("breakpoints").name && (e.isShowPopper = !1)
                    );
                  });
              },
            };
          }),
          Fi.data("accordionItem", function (e) {
            return {
              acc_id: e,
              get expanded() {
                return this.expandedItem === this.acc_id;
              },
              set expanded(e) {
                this.expandedItem = e ? this.acc_id : null;
              },
            };
          }),
          Fi.data("navLink", function () {
            return {
              isActive: !1,
              init: function () {
                this.$el.href &&
                  ((this.isActive =
                    this.$el.href.split("?")[0].split("#")[0] ===
                    this.$store.global.currentLocation),
                  this.isActive &&
                    (this.acc_id && (this.expanded = !0),
                    this.$el.scrollIntoView({ block: "center" })));
              },
            };
          });
      },
      141: () => {},
      890: (e) => {
        class t {
          constructor() {
            (this.locale = void 0),
              (this.messages = {
                after: "The date must be after: '[PARAM]'",
                afterOrEqual: "The date must be after or equal to: '[PARAM]'",
                array: "[FIELD] must be an array",
                before: "The date must be before: '[PARAM]'",
                beforeOrEqual: "The date must be before or equal to: '[PARAM]'",
                boolean: "[FIELD] must be true or false",
                date: "[FIELD] must be a date",
                different: "[FIELD] must be different to '[PARAM]'",
                endsWith: "[FIELD] must end with '[PARAM]'",
                email: "[FIELD] must be a valid email address",
                falsy:
                  "[FIELD] must be a falsy value (false, 'false', 0 or '0')",
                in: "[FIELD] must be one of the following options: [PARAM]",
                integer: "[FIELD] must be an integer",
                json: "[FIELD] must be a parsable JSON object string",
                max: "[FIELD] must be less than or equal to [PARAM]",
                min: "[FIELD] must be greater than or equal to [PARAM]",
                maxLength:
                  "[FIELD] must not be greater than '[PARAM]' in character length",
                minLength:
                  "[FIELD] must not be less than '[PARAM]' character length",
                notIn:
                  "[FIELD] must not be one of the following options: [PARAM]",
                numeric: "[FIELD] must be numeric",
                optional: "[FIELD] is optional",
                regexMatch:
                  "[FIELD] must satisify the regular expression: [PARAM]",
                required: "[FIELD] must be present",
                same: "[FIELD] must be '[PARAM]'",
                startsWith: "[FIELD] must start with '[PARAM]'",
                string: "[FIELD] must be a string",
                truthy:
                  "[FIELD] must be a truthy value (true, 'true', 1 or '1')",
                url: "[FIELD] must be a valid url",
                uuid: "[FIELD] must be a valid UUID",
              });
          }
          _compare(e, t, i, n = !1) {
            return (
              !!this.assertDate(e) &&
              !(!this.assertDate(t) && !this.assertInteger(t)) &&
              ((t = "number" == typeof t ? t : t.getTime()),
              "less" === i && n
                ? e.getTime() <= t
                : "less" !== i || n
                ? "more" === i && n
                  ? e.getTime() >= t
                  : "more" !== i || n
                  ? void 0
                  : e.getTime() > t
                : e.getTime() < t)
            );
          }
          _error(e, t) {
            let { param: i, field: n } =
              "object" == typeof t ? t : { param: t, field: void 0 };
            const r = e.split(":");
            let a = r.shift();
            (i = i || r.join(":")),
              ["after", "afterOrEqual", "before", "beforeOrEqual"].includes(
                a
              ) &&
                (i = new Date(parseInt(i)).toLocaleTimeString(this.locale, {
                  year: "numeric",
                  month: "short",
                  day: "numeric",
                  hour: "2-digit",
                  minute: "numeric",
                  hour12: !1,
                }));
            let o = [null, void 0, ""].includes(i)
              ? this.messages[a]
              : this.messages[a].replace("[PARAM]", i);
            return [null, void 0, ""].includes(n)
              ? o.replace("[FIELD]", this.default_field_name ?? "Value")
              : o.replace("[FIELD]", n);
          }
          _missing() {
            return {
              valid: !1,
              rule: "None",
              error: "Rules exist, but no value was provided to check",
            };
          }
          _prepare(e, t = []) {
            return t.length
              ? "optional" === t[0] && this.assertOptional(e)
                ? []
                : t
                    .filter((e) => "optional" !== e)
                    .map((e) =>
                      "string" == typeof e
                        ? [
                            e,
                            this._title(e.split(":").shift()),
                            e.split(":").slice(1).join(":"),
                          ]
                        : [`${e.rule}:${e.param}`, this._title(e.rule), e.param]
                    )
              : [];
          }
          _title(e) {
            return `${e[0].toUpperCase()}${e.slice(1)}`;
          }
          _validate(e, t) {
            for (let i in (t = this._prepare(e, t)))
              if (!this[`assert${t[i][1]}`].apply(this, [e, t[i][2]]))
                return {
                  valid: !1,
                  rule: t[i][0],
                  error: this._error(t[i][0]),
                };
            return { valid: !0, rule: "", error: "" };
          }
          assert(e, t) {
            if (Array.isArray(t)) return this._validate(e, t);
            let i = Object.keys(t),
              n = { valid: !0, fields: {} };
            for (let r = 0; r < i.length; r++)
              (n.fields[i[r]] = e.hasOwnProperty(i[r])
                ? this._validate(e[i[r]], t[i[r]])
                : this._missing()),
                n.fields[i[r]].valid || (n.valid = !1);
            return n;
          }
          assertAfter(e, t) {
            return this._compare(e, t, "more", !1);
          }
          assertAfterOrEqual(e, t) {
            return this._compare(e, t, "more", !0);
          }
          assertArray(e) {
            return Array.isArray(e);
          }
          assertBefore(e, t) {
            return this._compare(e, t, "less", !1);
          }
          assertBeforeOrEqual(e, t) {
            return this._compare(e, t, "less", !0);
          }
          assertBoolean(e) {
            return [!0, !1].includes(e);
          }
          assertDate(e) {
            return (
              e &&
              "[object Date]" === Object.prototype.toString.call(e) &&
              !isNaN(e)
            );
          }
          assertDifferent(e, t) {
            return e != t;
          }
          assertEndsWith(e, t) {
            return this.assertString(e) && e.endsWith(t);
          }
          assertEmail(e) {
            return new RegExp(
              "^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
            ).test(String(e).toLowerCase());
          }
          assertFalsy(e) {
            return [0, "0", !1, "false"].includes(e);
          }
          assertIn(e, t) {
            return ("string" == typeof t ? t.split(",") : t).includes(e);
          }
          assertInteger(e) {
            return (
              Number.isInteger(e) && parseInt(e).toString() === e.toString()
            );
          }
          assertJson(e) {
            try {
              return "object" == typeof JSON.parse(e);
            } catch (e) {
              return !1;
            }
          }
          assertMax(e, t) {
            return parseFloat(e) <= t;
          }
          assertMin(e, t) {
            return parseFloat(e) >= t;
          }
          assertMaxLength(e, t) {
            return "string" == typeof e && e.length <= t;
          }
          assertMinLength(e, t) {
            return "string" == typeof e && e.length >= t;
          }
          assertNotIn(e, t) {
            return !this.assertIn(e, t);
          }
          assertNumeric(e) {
            return !isNaN(parseFloat(e)) && isFinite(e);
          }
          assertOptional(e) {
            return [null, void 0, ""].includes(e);
          }
          assertRegexMatch(e, t) {
            return new RegExp(t).test(String(e));
          }
          assertRequired(e) {
            return !this.assertOptional(e);
          }
          assertSame(e, t) {
            return e == t;
          }
          assertStartsWith(e, t) {
            return this.assertString(e) && e.startsWith(t);
          }
          assertString(e) {
            return "string" == typeof e;
          }
          assertTruthy(e) {
            return [1, "1", !0, "true"].includes(e);
          }
          assertUrl(e) {
            return new RegExp(
              "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$"
            ).test(String(e).toLowerCase());
          }
          assertUuid(e) {
            return new RegExp(
              "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            ).test(String(e).toLowerCase());
          }
          rule(e, i) {
            t.prototype[`assert${this._title(e)}`] = i;
          }
          setErrorMessages(e) {
            this.messages = e;
          }
          setErrorMessage(e, t) {
            this.messages[e] = t;
          }
          setLocale(e) {
            this.locale = e;
          }
          setDefaultFieldName(e) {
            this.default_field_name = e;
          }
        }
        "undefined" != typeof window && (window.Iodine = new t()),
          (e.exports = t);
      },
      369: (e, t, i) => {
        "use strict";
        var n;
        function r(e, t) {
          var i = Object.keys(e);
          if (Object.getOwnPropertySymbols) {
            var n = Object.getOwnPropertySymbols(e);
            t &&
              (n = n.filter(function (t) {
                return Object.getOwnPropertyDescriptor(e, t).enumerable;
              })),
              i.push.apply(i, n);
          }
          return i;
        }
        function a(e) {
          for (var t = 1; t < arguments.length; t++) {
            var i = null != arguments[t] ? arguments[t] : {};
            t % 2
              ? r(Object(i), !0).forEach(function (t) {
                  u(e, t, i[t]);
                })
              : Object.getOwnPropertyDescriptors
              ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i))
              : r(Object(i)).forEach(function (t) {
                  Object.defineProperty(
                    e,
                    t,
                    Object.getOwnPropertyDescriptor(i, t)
                  );
                });
          }
          return e;
        }
        function o(e) {
          return (
            (o =
              "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
                ? function (e) {
                    return typeof e;
                  }
                : function (e) {
                    return e &&
                      "function" == typeof Symbol &&
                      e.constructor === Symbol &&
                      e !== Symbol.prototype
                      ? "symbol"
                      : typeof e;
                  }),
            o(e)
          );
        }
        function s(e, t) {
          if (!(e instanceof t))
            throw new TypeError("Cannot call a class as a function");
        }
        function l(e, t) {
          for (var i = 0; i < t.length; i++) {
            var n = t[i];
            (n.enumerable = n.enumerable || !1),
              (n.configurable = !0),
              "value" in n && (n.writable = !0),
              Object.defineProperty(e, n.key, n);
          }
        }
        function c(e, t, i) {
          return t && l(e.prototype, t), i && l(e, i), e;
        }
        function u(e, t, i) {
          return (
            t in e
              ? Object.defineProperty(e, t, {
                  value: i,
                  enumerable: !0,
                  configurable: !0,
                  writable: !0,
                })
              : (e[t] = i),
            e
          );
        }
        function d(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 && f(e, t);
        }
        function h(e) {
          return (
            (h = Object.setPrototypeOf
              ? Object.getPrototypeOf
              : function (e) {
                  return e.__proto__ || Object.getPrototypeOf(e);
                }),
            h(e)
          );
        }
        function f(e, t) {
          return (
            (f =
              Object.setPrototypeOf ||
              function (e, t) {
                return (e.__proto__ = t), e;
              }),
            f(e, t)
          );
        }
        function p(e) {
          var t = (function () {
            if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
            if (Reflect.construct.sham) return !1;
            if ("function" == typeof Proxy) return !0;
            try {
              return (
                Boolean.prototype.valueOf.call(
                  Reflect.construct(Boolean, [], function () {})
                ),
                !0
              );
            } catch (e) {
              return !1;
            }
          })();
          return function () {
            var i,
              n = h(e);
            if (t) {
              var r = h(this).constructor;
              i = Reflect.construct(n, arguments, r);
            } else i = n.apply(this, arguments);
            return (function (e, t) {
              if (t && ("object" == typeof t || "function" == typeof t))
                return t;
              if (void 0 !== t)
                throw new TypeError(
                  "Derived constructors may only return object or undefined"
                );
              return (function (e) {
                if (void 0 === e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return e;
              })(e);
            })(this, i);
          };
        }
        function g(e) {
          return (
            (function (e) {
              if (Array.isArray(e)) return v(e);
            })(e) ||
            (function (e) {
              if (
                ("undefined" != typeof Symbol && null != e[Symbol.iterator]) ||
                null != e["@@iterator"]
              )
                return Array.from(e);
            })(e) ||
            m(e) ||
            (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."
              );
            })()
          );
        }
        function m(e, t) {
          if (e) {
            if ("string" == typeof e) return v(e, t);
            var i = Object.prototype.toString.call(e).slice(8, -1);
            return (
              "Object" === i && e.constructor && (i = e.constructor.name),
              "Map" === i || "Set" === i
                ? Array.from(e)
                : "Arguments" === i ||
                  /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)
                ? v(e, t)
                : void 0
            );
          }
        }
        function v(e, t) {
          (null == t || t > e.length) && (t = e.length);
          for (var i = 0, n = new Array(t); i < t; i++) n[i] = e[i];
          return n;
        }
        var b = (function () {
            function e() {
              s(this, e);
            }
            return (
              c(
                e,
                [
                  {
                    key: "shadeRGBColor",
                    value: function (e, t) {
                      var i = t.split(","),
                        n = e < 0 ? 0 : 255,
                        r = e < 0 ? -1 * e : e,
                        a = parseInt(i[0].slice(4), 10),
                        o = parseInt(i[1], 10),
                        s = parseInt(i[2], 10);
                      return (
                        "rgb(" +
                        (Math.round((n - a) * r) + a) +
                        "," +
                        (Math.round((n - o) * r) + o) +
                        "," +
                        (Math.round((n - s) * r) + s) +
                        ")"
                      );
                    },
                  },
                  {
                    key: "shadeHexColor",
                    value: function (e, t) {
                      var i = parseInt(t.slice(1), 16),
                        n = e < 0 ? 0 : 255,
                        r = e < 0 ? -1 * e : e,
                        a = i >> 16,
                        o = (i >> 8) & 255,
                        s = 255 & i;
                      return (
                        "#" +
                        (
                          16777216 +
                          65536 * (Math.round((n - a) * r) + a) +
                          256 * (Math.round((n - o) * r) + o) +
                          (Math.round((n - s) * r) + s)
                        )
                          .toString(16)
                          .slice(1)
                      );
                    },
                  },
                  {
                    key: "shadeColor",
                    value: function (t, i) {
                      return e.isColorHex(i)
                        ? this.shadeHexColor(t, i)
                        : this.shadeRGBColor(t, i);
                    },
                  },
                ],
                [
                  {
                    key: "bind",
                    value: function (e, t) {
                      return function () {
                        return e.apply(t, arguments);
                      };
                    },
                  },
                  {
                    key: "isObject",
                    value: function (e) {
                      return (
                        e && "object" === o(e) && !Array.isArray(e) && null != e
                      );
                    },
                  },
                  {
                    key: "is",
                    value: function (e, t) {
                      return (
                        Object.prototype.toString.call(t) ===
                        "[object " + e + "]"
                      );
                    },
                  },
                  {
                    key: "listToArray",
                    value: function (e) {
                      var t,
                        i = [];
                      for (t = 0; t < e.length; t++) i[t] = e[t];
                      return i;
                    },
                  },
                  {
                    key: "extend",
                    value: function (e, t) {
                      var i = this;
                      "function" != typeof Object.assign &&
                        (Object.assign = function (e) {
                          if (null == e)
                            throw new TypeError(
                              "Cannot convert undefined or null to object"
                            );
                          for (
                            var t = Object(e), i = 1;
                            i < arguments.length;
                            i++
                          ) {
                            var n = arguments[i];
                            if (null != n)
                              for (var r in n)
                                n.hasOwnProperty(r) && (t[r] = n[r]);
                          }
                          return t;
                        });
                      var n = Object.assign({}, e);
                      return (
                        this.isObject(e) &&
                          this.isObject(t) &&
                          Object.keys(t).forEach(function (r) {
                            i.isObject(t[r]) && r in e
                              ? (n[r] = i.extend(e[r], t[r]))
                              : Object.assign(n, u({}, r, t[r]));
                          }),
                        n
                      );
                    },
                  },
                  {
                    key: "extendArray",
                    value: function (t, i) {
                      var n = [];
                      return (
                        t.map(function (t) {
                          n.push(e.extend(i, t));
                        }),
                        n
                      );
                    },
                  },
                  {
                    key: "monthMod",
                    value: function (e) {
                      return e % 12;
                    },
                  },
                  {
                    key: "clone",
                    value: function (t) {
                      if (e.is("Array", t)) {
                        for (var i = [], n = 0; n < t.length; n++)
                          i[n] = this.clone(t[n]);
                        return i;
                      }
                      if (e.is("Null", t)) return null;
                      if (e.is("Date", t)) return t;
                      if ("object" === o(t)) {
                        var r = {};
                        for (var a in t)
                          t.hasOwnProperty(a) && (r[a] = this.clone(t[a]));
                        return r;
                      }
                      return t;
                    },
                  },
                  {
                    key: "log10",
                    value: function (e) {
                      return Math.log(e) / Math.LN10;
                    },
                  },
                  {
                    key: "roundToBase10",
                    value: function (e) {
                      return Math.pow(10, Math.floor(Math.log10(e)));
                    },
                  },
                  {
                    key: "roundToBase",
                    value: function (e, t) {
                      return Math.pow(t, Math.floor(Math.log(e) / Math.log(t)));
                    },
                  },
                  {
                    key: "parseNumber",
                    value: function (e) {
                      return null === e ? e : parseFloat(e);
                    },
                  },
                  {
                    key: "randomId",
                    value: function () {
                      return (Math.random() + 1).toString(36).substring(4);
                    },
                  },
                  {
                    key: "noExponents",
                    value: function (e) {
                      var t = String(e).split(/[eE]/);
                      if (1 === t.length) return t[0];
                      var i = "",
                        n = e < 0 ? "-" : "",
                        r = t[0].replace(".", ""),
                        a = Number(t[1]) + 1;
                      if (a < 0) {
                        for (i = n + "0."; a++; ) i += "0";
                        return i + r.replace(/^-/, "");
                      }
                      for (a -= r.length; a--; ) i += "0";
                      return r + i;
                    },
                  },
                  {
                    key: "getDimensions",
                    value: function (e) {
                      var t = getComputedStyle(e, null),
                        i = e.clientHeight,
                        n = e.clientWidth;
                      return (
                        (i -=
                          parseFloat(t.paddingTop) +
                          parseFloat(t.paddingBottom)),
                        [
                          (n -=
                            parseFloat(t.paddingLeft) +
                            parseFloat(t.paddingRight)),
                          i,
                        ]
                      );
                    },
                  },
                  {
                    key: "getBoundingClientRect",
                    value: function (e) {
                      var t = e.getBoundingClientRect();
                      return {
                        top: t.top,
                        right: t.right,
                        bottom: t.bottom,
                        left: t.left,
                        width: e.clientWidth,
                        height: e.clientHeight,
                        x: t.left,
                        y: t.top,
                      };
                    },
                  },
                  {
                    key: "getLargestStringFromArr",
                    value: function (e) {
                      return e.reduce(function (e, t) {
                        return (
                          Array.isArray(t) &&
                            (t = t.reduce(function (e, t) {
                              return e.length > t.length ? e : t;
                            })),
                          e.length > t.length ? e : t
                        );
                      }, 0);
                    },
                  },
                  {
                    key: "hexToRgba",
                    value: function () {
                      var e =
                          arguments.length > 0 && void 0 !== arguments[0]
                            ? arguments[0]
                            : "#999999",
                        t =
                          arguments.length > 1 && void 0 !== arguments[1]
                            ? arguments[1]
                            : 0.6;
                      "#" !== e.substring(0, 1) && (e = "#999999");
                      var i = e.replace("#", "");
                      i = i.match(new RegExp("(.{" + i.length / 3 + "})", "g"));
                      for (var n = 0; n < i.length; n++)
                        i[n] = parseInt(
                          1 === i[n].length ? i[n] + i[n] : i[n],
                          16
                        );
                      return (
                        void 0 !== t && i.push(t), "rgba(" + i.join(",") + ")"
                      );
                    },
                  },
                  {
                    key: "getOpacityFromRGBA",
                    value: function (e) {
                      return parseFloat(e.replace(/^.*,(.+)\)/, "$1"));
                    },
                  },
                  {
                    key: "rgb2hex",
                    value: function (e) {
                      return (e = e.match(
                        /^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i
                      )) && 4 === e.length
                        ? "#" +
                            ("0" + parseInt(e[1], 10).toString(16)).slice(-2) +
                            ("0" + parseInt(e[2], 10).toString(16)).slice(-2) +
                            ("0" + parseInt(e[3], 10).toString(16)).slice(-2)
                        : "";
                    },
                  },
                  {
                    key: "isColorHex",
                    value: function (e) {
                      return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(
                        e
                      );
                    },
                  },
                  {
                    key: "getPolygonPos",
                    value: function (e, t) {
                      for (
                        var i = [], n = (2 * Math.PI) / t, r = 0;
                        r < t;
                        r++
                      ) {
                        var a = {};
                        (a.x = e * Math.sin(r * n)),
                          (a.y = -e * Math.cos(r * n)),
                          i.push(a);
                      }
                      return i;
                    },
                  },
                  {
                    key: "polarToCartesian",
                    value: function (e, t, i, n) {
                      var r = ((n - 90) * Math.PI) / 180;
                      return { x: e + i * Math.cos(r), y: t + i * Math.sin(r) };
                    },
                  },
                  {
                    key: "escapeString",
                    value: function (e) {
                      var t =
                          arguments.length > 1 && void 0 !== arguments[1]
                            ? arguments[1]
                            : "x",
                        i = e.toString().slice();
                      return i.replace(
                        /[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,
                        t
                      );
                    },
                  },
                  {
                    key: "negToZero",
                    value: function (e) {
                      return e < 0 ? 0 : e;
                    },
                  },
                  {
                    key: "moveIndexInArray",
                    value: function (e, t, i) {
                      if (i >= e.length)
                        for (var n = i - e.length + 1; n--; ) e.push(void 0);
                      return e.splice(i, 0, e.splice(t, 1)[0]), e;
                    },
                  },
                  {
                    key: "extractNumber",
                    value: function (e) {
                      return parseFloat(e.replace(/[^\d.]*/g, ""));
                    },
                  },
                  {
                    key: "findAncestor",
                    value: function (e, t) {
                      for (
                        ;
                        (e = e.parentElement) && !e.classList.contains(t);

                      );
                      return e;
                    },
                  },
                  {
                    key: "setELstyles",
                    value: function (e, t) {
                      for (var i in t)
                        t.hasOwnProperty(i) && (e.style.key = t[i]);
                    },
                  },
                  {
                    key: "isNumber",
                    value: function (e) {
                      return (
                        !isNaN(e) &&
                        parseFloat(Number(e)) === e &&
                        !isNaN(parseInt(e, 10))
                      );
                    },
                  },
                  {
                    key: "isFloat",
                    value: function (e) {
                      return Number(e) === e && e % 1 != 0;
                    },
                  },
                  {
                    key: "isSafari",
                    value: function () {
                      return /^((?!chrome|android).)*safari/i.test(
                        navigator.userAgent
                      );
                    },
                  },
                  {
                    key: "isFirefox",
                    value: function () {
                      return (
                        navigator.userAgent.toLowerCase().indexOf("firefox") >
                        -1
                      );
                    },
                  },
                  {
                    key: "isIE11",
                    value: function () {
                      if (
                        -1 !== window.navigator.userAgent.indexOf("MSIE") ||
                        window.navigator.appVersion.indexOf("Trident/") > -1
                      )
                        return !0;
                    },
                  },
                  {
                    key: "isIE",
                    value: function () {
                      var e = window.navigator.userAgent,
                        t = e.indexOf("MSIE ");
                      if (t > 0)
                        return parseInt(
                          e.substring(t + 5, e.indexOf(".", t)),
                          10
                        );
                      if (e.indexOf("Trident/") > 0) {
                        var i = e.indexOf("rv:");
                        return parseInt(
                          e.substring(i + 3, e.indexOf(".", i)),
                          10
                        );
                      }
                      var n = e.indexOf("Edge/");
                      return (
                        n > 0 &&
                        parseInt(e.substring(n + 5, e.indexOf(".", n)), 10)
                      );
                    },
                  },
                ]
              ),
              e
            );
          })(),
          y = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                this.setEasingFunctions();
            }
            return (
              c(e, [
                {
                  key: "setEasingFunctions",
                  value: function () {
                    var e;
                    if (!this.w.globals.easing) {
                      switch (this.w.config.chart.animations.easing) {
                        case "linear":
                          e = "-";
                          break;
                        case "easein":
                          e = "<";
                          break;
                        case "easeout":
                          e = ">";
                          break;
                        case "easeinout":
                        default:
                          e = "<>";
                          break;
                        case "swing":
                          e = function (e) {
                            var t = 1.70158;
                            return (e -= 1) * e * ((t + 1) * e + t) + 1;
                          };
                          break;
                        case "bounce":
                          e = function (e) {
                            return e < 1 / 2.75
                              ? 7.5625 * e * e
                              : e < 2 / 2.75
                              ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75
                              : e < 2.5 / 2.75
                              ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375
                              : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375;
                          };
                          break;
                        case "elastic":
                          e = function (e) {
                            return e === !!e
                              ? e
                              : Math.pow(2, -10 * e) *
                                  Math.sin(
                                    ((e - 0.075) * (2 * Math.PI)) / 0.3
                                  ) +
                                  1;
                          };
                      }
                      this.w.globals.easing = e;
                    }
                  },
                },
                {
                  key: "animateLine",
                  value: function (e, t, i, n) {
                    e.attr(t).animate(n).attr(i);
                  },
                },
                {
                  key: "animateMarker",
                  value: function (e, t, i, n, r, a) {
                    t || (t = 0),
                      e
                        .attr({ r: t, width: t, height: t })
                        .animate(n, r)
                        .attr({ r: i, width: i.width, height: i.height })
                        .afterAll(function () {
                          a();
                        });
                  },
                },
                {
                  key: "animateCircle",
                  value: function (e, t, i, n, r) {
                    e.attr({ r: t.r, cx: t.cx, cy: t.cy })
                      .animate(n, r)
                      .attr({ r: i.r, cx: i.cx, cy: i.cy });
                  },
                },
                {
                  key: "animateRect",
                  value: function (e, t, i, n, r) {
                    e.attr(t)
                      .animate(n)
                      .attr(i)
                      .afterAll(function () {
                        return r();
                      });
                  },
                },
                {
                  key: "animatePathsGradually",
                  value: function (e) {
                    var t = e.el,
                      i = e.realIndex,
                      n = e.j,
                      r = e.fill,
                      a = e.pathFrom,
                      o = e.pathTo,
                      s = e.speed,
                      l = e.delay,
                      c = this.w,
                      u = 0;
                    c.config.chart.animations.animateGradually.enabled &&
                      (u = c.config.chart.animations.animateGradually.delay),
                      c.config.chart.animations.dynamicAnimation.enabled &&
                        c.globals.dataChanged &&
                        "bar" !== c.config.chart.type &&
                        (u = 0),
                      this.morphSVG(
                        t,
                        i,
                        n,
                        "line" !== c.config.chart.type || c.globals.comboCharts
                          ? r
                          : "stroke",
                        a,
                        o,
                        s,
                        l * u
                      );
                  },
                },
                {
                  key: "showDelayedElements",
                  value: function () {
                    this.w.globals.delayedElements.forEach(function (e) {
                      e.el.classList.remove("apexcharts-element-hidden");
                    });
                  },
                },
                {
                  key: "animationCompleted",
                  value: function (e) {
                    var t = this.w;
                    t.globals.animationEnded ||
                      ((t.globals.animationEnded = !0),
                      this.showDelayedElements(),
                      "function" == typeof t.config.chart.events.animationEnd &&
                        t.config.chart.events.animationEnd(this.ctx, {
                          el: e,
                          w: t,
                        }));
                  },
                },
                {
                  key: "morphSVG",
                  value: function (e, t, i, n, r, a, o, s) {
                    var l = this,
                      c = this.w;
                    r || (r = e.attr("pathFrom")), a || (a = e.attr("pathTo"));
                    var u = function (e) {
                      return (
                        "radar" === c.config.chart.type && (o = 1),
                        "M 0 ".concat(c.globals.gridHeight)
                      );
                    };
                    (!r ||
                      r.indexOf("undefined") > -1 ||
                      r.indexOf("NaN") > -1) &&
                      (r = u()),
                      (!a ||
                        a.indexOf("undefined") > -1 ||
                        a.indexOf("NaN") > -1) &&
                        (a = u()),
                      c.globals.shouldAnimate || (o = 1),
                      e
                        .plot(r)
                        .animate(1, c.globals.easing, s)
                        .plot(r)
                        .animate(o, c.globals.easing, s)
                        .plot(a)
                        .afterAll(function () {
                          b.isNumber(i)
                            ? i ===
                                c.globals.series[c.globals.maxValsInArrayIndex]
                                  .length -
                                  2 &&
                              c.globals.shouldAnimate &&
                              l.animationCompleted(e)
                            : "none" !== n &&
                              c.globals.shouldAnimate &&
                              ((!c.globals.comboCharts &&
                                t === c.globals.series.length - 1) ||
                                c.globals.comboCharts) &&
                              l.animationCompleted(e),
                            l.showDelayedElements();
                        });
                  },
                },
              ]),
              e
            );
          })(),
          x = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "getDefaultFilter",
                  value: function (e, t) {
                    var i = this.w;
                    e.unfilter(!0),
                      new window.SVG.Filter().size(
                        "120%",
                        "180%",
                        "-5%",
                        "-40%"
                      ),
                      "none" !== i.config.states.normal.filter
                        ? this.applyFilter(
                            e,
                            t,
                            i.config.states.normal.filter.type,
                            i.config.states.normal.filter.value
                          )
                        : i.config.chart.dropShadow.enabled &&
                          this.dropShadow(e, i.config.chart.dropShadow, t);
                  },
                },
                {
                  key: "addNormalFilter",
                  value: function (e, t) {
                    var i = this.w;
                    i.config.chart.dropShadow.enabled &&
                      !e.node.classList.contains("apexcharts-marker") &&
                      this.dropShadow(e, i.config.chart.dropShadow, t);
                  },
                },
                {
                  key: "addLightenFilter",
                  value: function (e, t, i) {
                    var n = this,
                      r = this.w,
                      a = i.intensity;
                    e.unfilter(!0),
                      new window.SVG.Filter(),
                      e.filter(function (e) {
                        var i = r.config.chart.dropShadow;
                        (i.enabled
                          ? n.addShadow(e, t, i)
                          : e
                        ).componentTransfer({
                          rgb: { type: "linear", slope: 1.5, intercept: a },
                        });
                      }),
                      e.filterer.node.setAttribute(
                        "filterUnits",
                        "userSpaceOnUse"
                      ),
                      this._scaleFilterSize(e.filterer.node);
                  },
                },
                {
                  key: "addDarkenFilter",
                  value: function (e, t, i) {
                    var n = this,
                      r = this.w,
                      a = i.intensity;
                    e.unfilter(!0),
                      new window.SVG.Filter(),
                      e.filter(function (e) {
                        var i = r.config.chart.dropShadow;
                        (i.enabled
                          ? n.addShadow(e, t, i)
                          : e
                        ).componentTransfer({
                          rgb: { type: "linear", slope: a },
                        });
                      }),
                      e.filterer.node.setAttribute(
                        "filterUnits",
                        "userSpaceOnUse"
                      ),
                      this._scaleFilterSize(e.filterer.node);
                  },
                },
                {
                  key: "applyFilter",
                  value: function (e, t, i) {
                    var n =
                      arguments.length > 3 && void 0 !== arguments[3]
                        ? arguments[3]
                        : 0.5;
                    switch (i) {
                      case "none":
                        this.addNormalFilter(e, t);
                        break;
                      case "lighten":
                        this.addLightenFilter(e, t, { intensity: n });
                        break;
                      case "darken":
                        this.addDarkenFilter(e, t, { intensity: n });
                    }
                  },
                },
                {
                  key: "addShadow",
                  value: function (e, t, i) {
                    var n = i.blur,
                      r = i.top,
                      a = i.left,
                      o = i.color,
                      s = i.opacity,
                      l = e
                        .flood(Array.isArray(o) ? o[t] : o, s)
                        .composite(e.sourceAlpha, "in")
                        .offset(a, r)
                        .gaussianBlur(n)
                        .merge(e.source);
                    return e.blend(e.source, l);
                  },
                },
                {
                  key: "dropShadow",
                  value: function (e, t) {
                    var i =
                        arguments.length > 2 && void 0 !== arguments[2]
                          ? arguments[2]
                          : 0,
                      n = t.top,
                      r = t.left,
                      a = t.blur,
                      o = t.color,
                      s = t.opacity,
                      l = t.noUserSpaceOnUse,
                      c = this.w;
                    return (
                      e.unfilter(!0),
                      (b.isIE() && "radialBar" === c.config.chart.type) ||
                        ((o = Array.isArray(o) ? o[i] : o),
                        e.filter(function (e) {
                          var t;
                          (t =
                            b.isSafari() || b.isFirefox() || b.isIE()
                              ? e
                                  .flood(o, s)
                                  .composite(e.sourceAlpha, "in")
                                  .offset(r, n)
                                  .gaussianBlur(a)
                              : e
                                  .flood(o, s)
                                  .composite(e.sourceAlpha, "in")
                                  .offset(r, n)
                                  .gaussianBlur(a)
                                  .merge(e.source)),
                            e.blend(e.source, t);
                        }),
                        l ||
                          e.filterer.node.setAttribute(
                            "filterUnits",
                            "userSpaceOnUse"
                          ),
                        this._scaleFilterSize(e.filterer.node)),
                      e
                    );
                  },
                },
                {
                  key: "setSelectionFilter",
                  value: function (e, t, i) {
                    var n = this.w;
                    if (
                      void 0 !== n.globals.selectedDataPoints[t] &&
                      n.globals.selectedDataPoints[t].indexOf(i) > -1
                    ) {
                      e.node.setAttribute("selected", !0);
                      var r = n.config.states.active.filter;
                      "none" !== r && this.applyFilter(e, t, r.type, r.value);
                    }
                  },
                },
                {
                  key: "_scaleFilterSize",
                  value: function (e) {
                    !(function (t) {
                      for (var i in t)
                        t.hasOwnProperty(i) && e.setAttribute(i, t[i]);
                    })({ width: "200%", height: "200%", x: "-50%", y: "-50%" });
                  },
                },
              ]),
              e
            );
          })(),
          w = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(
                e,
                [
                  {
                    key: "roundPathCorners",
                    value: function (e, t) {
                      function i(e, t, i) {
                        var r = t.x - e.x,
                          a = t.y - e.y,
                          o = Math.sqrt(r * r + a * a);
                        return n(e, t, Math.min(1, i / o));
                      }
                      function n(e, t, i) {
                        return {
                          x: e.x + (t.x - e.x) * i,
                          y: e.y + (t.y - e.y) * i,
                        };
                      }
                      function r(e, t) {
                        e.length > 2 &&
                          ((e[e.length - 2] = t.x), (e[e.length - 1] = t.y));
                      }
                      function a(e) {
                        return {
                          x: parseFloat(e[e.length - 2]),
                          y: parseFloat(e[e.length - 1]),
                        };
                      }
                      var o = e
                          .split(/[,\s]/)
                          .reduce(function (e, t) {
                            var i = t.match("([a-zA-Z])(.+)");
                            return (
                              i ? (e.push(i[1]), e.push(i[2])) : e.push(t), e
                            );
                          }, [])
                          .reduce(function (e, t) {
                            return (
                              parseFloat(t) == t && e.length
                                ? e[e.length - 1].push(t)
                                : e.push([t]),
                              e
                            );
                          }, []),
                        s = [];
                      if (o.length > 1) {
                        var l = a(o[0]),
                          c = null;
                        "Z" == o[o.length - 1][0] &&
                          o[0].length > 2 &&
                          ((c = ["L", l.x, l.y]), (o[o.length - 1] = c)),
                          s.push(o[0]);
                        for (var u = 1; u < o.length; u++) {
                          var d = s[s.length - 1],
                            h = o[u],
                            f = h == c ? o[1] : o[u + 1];
                          if (
                            f &&
                            d &&
                            d.length > 2 &&
                            "L" == h[0] &&
                            f.length > 2 &&
                            "L" == f[0]
                          ) {
                            var p,
                              g,
                              m = a(d),
                              v = a(h),
                              b = a(f);
                            (p = i(v, m, t)),
                              (g = i(v, b, t)),
                              r(h, p),
                              (h.origPoint = v),
                              s.push(h);
                            var y = n(p, v, 0.5),
                              x = n(v, g, 0.5),
                              w = ["C", y.x, y.y, x.x, x.y, g.x, g.y];
                            (w.origPoint = v), s.push(w);
                          } else s.push(h);
                        }
                        if (c) {
                          var E = a(s[s.length - 1]);
                          s.push(["Z"]), r(s[0], E);
                        }
                      } else s = o;
                      return s.reduce(function (e, t) {
                        return e + t.join(" ") + " ";
                      }, "");
                    },
                  },
                  {
                    key: "drawLine",
                    value: function (e, t, i, n) {
                      var r =
                          arguments.length > 4 && void 0 !== arguments[4]
                            ? arguments[4]
                            : "#a8a8a8",
                        a =
                          arguments.length > 5 && void 0 !== arguments[5]
                            ? arguments[5]
                            : 0,
                        o =
                          arguments.length > 6 && void 0 !== arguments[6]
                            ? arguments[6]
                            : null,
                        s =
                          arguments.length > 7 && void 0 !== arguments[7]
                            ? arguments[7]
                            : "butt";
                      return this.w.globals.dom.Paper.line().attr({
                        x1: e,
                        y1: t,
                        x2: i,
                        y2: n,
                        stroke: r,
                        "stroke-dasharray": a,
                        "stroke-width": o,
                        "stroke-linecap": s,
                      });
                    },
                  },
                  {
                    key: "drawRect",
                    value: function () {
                      var e =
                          arguments.length > 0 && void 0 !== arguments[0]
                            ? arguments[0]
                            : 0,
                        t =
                          arguments.length > 1 && void 0 !== arguments[1]
                            ? arguments[1]
                            : 0,
                        i =
                          arguments.length > 2 && void 0 !== arguments[2]
                            ? arguments[2]
                            : 0,
                        n =
                          arguments.length > 3 && void 0 !== arguments[3]
                            ? arguments[3]
                            : 0,
                        r =
                          arguments.length > 4 && void 0 !== arguments[4]
                            ? arguments[4]
                            : 0,
                        a =
                          arguments.length > 5 && void 0 !== arguments[5]
                            ? arguments[5]
                            : "#fefefe",
                        o =
                          arguments.length > 6 && void 0 !== arguments[6]
                            ? arguments[6]
                            : 1,
                        s =
                          arguments.length > 7 && void 0 !== arguments[7]
                            ? arguments[7]
                            : null,
                        l =
                          arguments.length > 8 && void 0 !== arguments[8]
                            ? arguments[8]
                            : null,
                        c =
                          arguments.length > 9 && void 0 !== arguments[9]
                            ? arguments[9]
                            : 0,
                        u = this.w.globals.dom.Paper.rect();
                      return (
                        u.attr({
                          x: e,
                          y: t,
                          width: i > 0 ? i : 0,
                          height: n > 0 ? n : 0,
                          rx: r,
                          ry: r,
                          opacity: o,
                          "stroke-width": null !== s ? s : 0,
                          stroke: null !== l ? l : "none",
                          "stroke-dasharray": c,
                        }),
                        u.node.setAttribute("fill", a),
                        u
                      );
                    },
                  },
                  {
                    key: "drawPolygon",
                    value: function (e) {
                      var t =
                          arguments.length > 1 && void 0 !== arguments[1]
                            ? arguments[1]
                            : "#e1e1e1",
                        i =
                          arguments.length > 2 && void 0 !== arguments[2]
                            ? arguments[2]
                            : 1,
                        n =
                          arguments.length > 3 && void 0 !== arguments[3]
                            ? arguments[3]
                            : "none";
                      return this.w.globals.dom.Paper.polygon(e).attr({
                        fill: n,
                        stroke: t,
                        "stroke-width": i,
                      });
                    },
                  },
                  {
                    key: "drawCircle",
                    value: function (e) {
                      var t =
                        arguments.length > 1 && void 0 !== arguments[1]
                          ? arguments[1]
                          : null;
                      e < 0 && (e = 0);
                      var i = this.w.globals.dom.Paper.circle(2 * e);
                      return null !== t && i.attr(t), i;
                    },
                  },
                  {
                    key: "drawPath",
                    value: function (e) {
                      var t = e.d,
                        i = void 0 === t ? "" : t,
                        n = e.stroke,
                        r = void 0 === n ? "#a8a8a8" : n,
                        a = e.strokeWidth,
                        o = void 0 === a ? 1 : a,
                        s = e.fill,
                        l = e.fillOpacity,
                        c = void 0 === l ? 1 : l,
                        u = e.strokeOpacity,
                        d = void 0 === u ? 1 : u,
                        h = e.classes,
                        f = e.strokeLinecap,
                        p = void 0 === f ? null : f,
                        g = e.strokeDashArray,
                        m = void 0 === g ? 0 : g,
                        v = this.w;
                      return (
                        null === p && (p = v.config.stroke.lineCap),
                        (i.indexOf("undefined") > -1 ||
                          i.indexOf("NaN") > -1) &&
                          (i = "M 0 ".concat(v.globals.gridHeight)),
                        v.globals.dom.Paper.path(i).attr({
                          fill: s,
                          "fill-opacity": c,
                          stroke: r,
                          "stroke-opacity": d,
                          "stroke-linecap": p,
                          "stroke-width": o,
                          "stroke-dasharray": m,
                          class: h,
                        })
                      );
                    },
                  },
                  {
                    key: "group",
                    value: function () {
                      var e =
                          arguments.length > 0 && void 0 !== arguments[0]
                            ? arguments[0]
                            : null,
                        t = this.w.globals.dom.Paper.group();
                      return null !== e && t.attr(e), t;
                    },
                  },
                  {
                    key: "move",
                    value: function (e, t) {
                      return ["M", e, t].join(" ");
                    },
                  },
                  {
                    key: "line",
                    value: function (e, t) {
                      var i =
                          arguments.length > 2 && void 0 !== arguments[2]
                            ? arguments[2]
                            : null,
                        n = null;
                      return (
                        null === i
                          ? (n = [" L", e, t].join(" "))
                          : "H" === i
                          ? (n = [" H", e].join(" "))
                          : "V" === i && (n = [" V", t].join(" ")),
                        n
                      );
                    },
                  },
                  {
                    key: "curve",
                    value: function (e, t, i, n, r, a) {
                      return ["C", e, t, i, n, r, a].join(" ");
                    },
                  },
                  {
                    key: "quadraticCurve",
                    value: function (e, t, i, n) {
                      return ["Q", e, t, i, n].join(" ");
                    },
                  },
                  {
                    key: "arc",
                    value: function (e, t, i, n, r, a, o) {
                      var s = "A";
                      return (
                        arguments.length > 7 &&
                          void 0 !== arguments[7] &&
                          arguments[7] &&
                          (s = "a"),
                        [s, e, t, i, n, r, a, o].join(" ")
                      );
                    },
                  },
                  {
                    key: "renderPaths",
                    value: function (e) {
                      var t,
                        i = e.j,
                        n = e.realIndex,
                        r = e.pathFrom,
                        o = e.pathTo,
                        s = e.stroke,
                        l = e.strokeWidth,
                        c = e.strokeLinecap,
                        u = e.fill,
                        d = e.animationDelay,
                        h = e.initialSpeed,
                        f = e.dataChangeSpeed,
                        p = e.className,
                        g = e.shouldClipToGrid,
                        m = void 0 === g || g,
                        v = e.bindEventsOnPaths,
                        b = void 0 === v || v,
                        w = e.drawShadow,
                        E = void 0 === w || w,
                        _ = this.w,
                        S = new x(this.ctx),
                        A = new y(this.ctx),
                        k = this.w.config.chart.animations.enabled,
                        T =
                          k &&
                          this.w.config.chart.animations.dynamicAnimation
                            .enabled,
                        C = !!(
                          (k && !_.globals.resized) ||
                          (T &&
                            _.globals.dataChanged &&
                            _.globals.shouldAnimate)
                        );
                      C ? (t = r) : ((t = o), (_.globals.animationEnded = !0));
                      var O,
                        I = _.config.stroke.dashArray;
                      O = Array.isArray(I) ? I[n] : _.config.stroke.dashArray;
                      var M = this.drawPath({
                        d: t,
                        stroke: s,
                        strokeWidth: l,
                        fill: u,
                        fillOpacity: 1,
                        classes: p,
                        strokeLinecap: c,
                        strokeDashArray: O,
                      });
                      if (
                        (M.attr("index", n),
                        m &&
                          M.attr({
                            "clip-path": "url(#gridRectMask".concat(
                              _.globals.cuid,
                              ")"
                            ),
                          }),
                        "none" !== _.config.states.normal.filter.type)
                      )
                        S.getDefaultFilter(M, n);
                      else if (
                        _.config.chart.dropShadow.enabled &&
                        E &&
                        (!_.config.chart.dropShadow.enabledOnSeries ||
                          (_.config.chart.dropShadow.enabledOnSeries &&
                            -1 !==
                              _.config.chart.dropShadow.enabledOnSeries.indexOf(
                                n
                              )))
                      ) {
                        var L = _.config.chart.dropShadow;
                        S.dropShadow(M, L, n);
                      }
                      b &&
                        (M.node.addEventListener(
                          "mouseenter",
                          this.pathMouseEnter.bind(this, M)
                        ),
                        M.node.addEventListener(
                          "mouseleave",
                          this.pathMouseLeave.bind(this, M)
                        ),
                        M.node.addEventListener(
                          "mousedown",
                          this.pathMouseDown.bind(this, M)
                        )),
                        M.attr({ pathTo: o, pathFrom: r });
                      var P = {
                        el: M,
                        j: i,
                        realIndex: n,
                        pathFrom: r,
                        pathTo: o,
                        fill: u,
                        strokeWidth: l,
                        delay: d,
                      };
                      return (
                        !k || _.globals.resized || _.globals.dataChanged
                          ? (!_.globals.resized && _.globals.dataChanged) ||
                            A.showDelayedElements()
                          : A.animatePathsGradually(
                              a(a({}, P), {}, { speed: h })
                            ),
                        _.globals.dataChanged &&
                          T &&
                          C &&
                          A.animatePathsGradually(
                            a(a({}, P), {}, { speed: f })
                          ),
                        M
                      );
                    },
                  },
                  {
                    key: "drawPattern",
                    value: function (e, t, i) {
                      var n =
                          arguments.length > 3 && void 0 !== arguments[3]
                            ? arguments[3]
                            : "#a8a8a8",
                        r =
                          arguments.length > 4 && void 0 !== arguments[4]
                            ? arguments[4]
                            : 0,
                        a = this.w.globals.dom.Paper.pattern(
                          t,
                          i,
                          function (a) {
                            "horizontalLines" === e
                              ? a
                                  .line(0, 0, i, 0)
                                  .stroke({ color: n, width: r + 1 })
                              : "verticalLines" === e
                              ? a
                                  .line(0, 0, 0, t)
                                  .stroke({ color: n, width: r + 1 })
                              : "slantedLines" === e
                              ? a
                                  .line(0, 0, t, i)
                                  .stroke({ color: n, width: r })
                              : "squares" === e
                              ? a
                                  .rect(t, i)
                                  .fill("none")
                                  .stroke({ color: n, width: r })
                              : "circles" === e &&
                                a
                                  .circle(t)
                                  .fill("none")
                                  .stroke({ color: n, width: r });
                          }
                        );
                      return a;
                    },
                  },
                  {
                    key: "drawGradient",
                    value: function (e, t, i, n, r) {
                      var a,
                        o =
                          arguments.length > 5 && void 0 !== arguments[5]
                            ? arguments[5]
                            : null,
                        s =
                          arguments.length > 6 && void 0 !== arguments[6]
                            ? arguments[6]
                            : null,
                        l =
                          arguments.length > 7 && void 0 !== arguments[7]
                            ? arguments[7]
                            : null,
                        c =
                          arguments.length > 8 && void 0 !== arguments[8]
                            ? arguments[8]
                            : 0,
                        u = this.w;
                      t.length < 9 &&
                        0 === t.indexOf("#") &&
                        (t = b.hexToRgba(t, n)),
                        i.length < 9 &&
                          0 === i.indexOf("#") &&
                          (i = b.hexToRgba(i, r));
                      var d = 0,
                        h = 1,
                        f = 1,
                        p = null;
                      null !== s &&
                        ((d = void 0 !== s[0] ? s[0] / 100 : 0),
                        (h = void 0 !== s[1] ? s[1] / 100 : 1),
                        (f = void 0 !== s[2] ? s[2] / 100 : 1),
                        (p = void 0 !== s[3] ? s[3] / 100 : null));
                      var g = !(
                        "donut" !== u.config.chart.type &&
                        "pie" !== u.config.chart.type &&
                        "polarArea" !== u.config.chart.type &&
                        "bubble" !== u.config.chart.type
                      );
                      if (
                        ((a =
                          null === l || 0 === l.length
                            ? u.globals.dom.Paper.gradient(
                                g ? "radial" : "linear",
                                function (e) {
                                  e.at(d, t, n),
                                    e.at(h, i, r),
                                    e.at(f, i, r),
                                    null !== p && e.at(p, t, n);
                                }
                              )
                            : u.globals.dom.Paper.gradient(
                                g ? "radial" : "linear",
                                function (e) {
                                  (Array.isArray(l[c]) ? l[c] : l).forEach(
                                    function (t) {
                                      e.at(t.offset / 100, t.color, t.opacity);
                                    }
                                  );
                                }
                              )),
                        g)
                      ) {
                        var m = u.globals.gridWidth / 2,
                          v = u.globals.gridHeight / 2;
                        "bubble" !== u.config.chart.type
                          ? a.attr({
                              gradientUnits: "userSpaceOnUse",
                              cx: m,
                              cy: v,
                              r: o,
                            })
                          : a.attr({
                              cx: 0.5,
                              cy: 0.5,
                              r: 0.8,
                              fx: 0.2,
                              fy: 0.2,
                            });
                      } else
                        "vertical" === e
                          ? a.from(0, 0).to(0, 1)
                          : "diagonal" === e
                          ? a.from(0, 0).to(1, 1)
                          : "horizontal" === e
                          ? a.from(0, 1).to(1, 1)
                          : "diagonal2" === e && a.from(1, 0).to(0, 1);
                      return a;
                    },
                  },
                  {
                    key: "getTextBasedOnMaxWidth",
                    value: function (e) {
                      var t = e.text,
                        i = e.maxWidth,
                        n = e.fontSize,
                        r = e.fontFamily,
                        a = this.getTextRects(t, n, r),
                        o = a.width / t.length,
                        s = Math.floor(i / o);
                      return i < a.width ? t.slice(0, s - 3) + "..." : t;
                    },
                  },
                  {
                    key: "drawText",
                    value: function (e) {
                      var t = this,
                        i = e.x,
                        n = e.y,
                        r = e.text,
                        o = e.textAnchor,
                        s = e.fontSize,
                        l = e.fontFamily,
                        c = e.fontWeight,
                        u = e.foreColor,
                        d = e.opacity,
                        h = e.maxWidth,
                        f = e.cssClass,
                        p = void 0 === f ? "" : f,
                        g = e.isPlainText,
                        m = void 0 === g || g,
                        v = this.w;
                      void 0 === r && (r = "");
                      var b = r;
                      o || (o = "start"),
                        (u && u.length) || (u = v.config.chart.foreColor),
                        (l = l || v.config.chart.fontFamily),
                        (c = c || "regular");
                      var y,
                        x = {
                          maxWidth: h,
                          fontSize: (s = s || "11px"),
                          fontFamily: l,
                        };
                      return (
                        Array.isArray(r)
                          ? (y = v.globals.dom.Paper.text(function (e) {
                              for (var i = 0; i < r.length; i++)
                                (b = r[i]),
                                  h &&
                                    (b = t.getTextBasedOnMaxWidth(
                                      a({ text: r[i] }, x)
                                    )),
                                  0 === i ? e.tspan(b) : e.tspan(b).newLine();
                            }))
                          : (h &&
                              (b = this.getTextBasedOnMaxWidth(
                                a({ text: r }, x)
                              )),
                            (y = m
                              ? v.globals.dom.Paper.plain(r)
                              : v.globals.dom.Paper.text(function (e) {
                                  return e.tspan(b);
                                }))),
                        y.attr({
                          x: i,
                          y: n,
                          "text-anchor": o,
                          "dominant-baseline": "auto",
                          "font-size": s,
                          "font-family": l,
                          "font-weight": c,
                          fill: u,
                          class: "apexcharts-text " + p,
                        }),
                        (y.node.style.fontFamily = l),
                        (y.node.style.opacity = d),
                        y
                      );
                    },
                  },
                  {
                    key: "drawMarker",
                    value: function (e, t, i) {
                      e = e || 0;
                      var n = i.pSize || 0,
                        r = null;
                      if ("square" === i.shape || "rect" === i.shape) {
                        var a = void 0 === i.pRadius ? n / 2 : i.pRadius;
                        (null !== t && n) || ((n = 0), (a = 0));
                        var o = 1.2 * n + a,
                          s = this.drawRect(o, o, o, o, a);
                        s.attr({
                          x: e - o / 2,
                          y: t - o / 2,
                          cx: e,
                          cy: t,
                          class: i.class ? i.class : "",
                          fill: i.pointFillColor,
                          "fill-opacity": i.pointFillOpacity
                            ? i.pointFillOpacity
                            : 1,
                          stroke: i.pointStrokeColor,
                          "stroke-width": i.pointStrokeWidth
                            ? i.pointStrokeWidth
                            : 0,
                          "stroke-opacity": i.pointStrokeOpacity
                            ? i.pointStrokeOpacity
                            : 1,
                        }),
                          (r = s);
                      } else
                        ("circle" !== i.shape && i.shape) ||
                          (b.isNumber(t) || ((n = 0), (t = 0)),
                          (r = this.drawCircle(n, {
                            cx: e,
                            cy: t,
                            class: i.class ? i.class : "",
                            stroke: i.pointStrokeColor,
                            fill: i.pointFillColor,
                            "fill-opacity": i.pointFillOpacity
                              ? i.pointFillOpacity
                              : 1,
                            "stroke-width": i.pointStrokeWidth
                              ? i.pointStrokeWidth
                              : 0,
                            "stroke-opacity": i.pointStrokeOpacity
                              ? i.pointStrokeOpacity
                              : 1,
                          })));
                      return r;
                    },
                  },
                  {
                    key: "pathMouseEnter",
                    value: function (e, t) {
                      var i = this.w,
                        n = new x(this.ctx),
                        r = parseInt(e.node.getAttribute("index"), 10),
                        a = parseInt(e.node.getAttribute("j"), 10);
                      if (
                        ("function" ==
                          typeof i.config.chart.events.dataPointMouseEnter &&
                          i.config.chart.events.dataPointMouseEnter(
                            t,
                            this.ctx,
                            { seriesIndex: r, dataPointIndex: a, w: i }
                          ),
                        this.ctx.events.fireEvent("dataPointMouseEnter", [
                          t,
                          this.ctx,
                          { seriesIndex: r, dataPointIndex: a, w: i },
                        ]),
                        ("none" === i.config.states.active.filter.type ||
                          "true" !== e.node.getAttribute("selected")) &&
                          "none" !== i.config.states.hover.filter.type &&
                          !i.globals.isTouchDevice)
                      ) {
                        var o = i.config.states.hover.filter;
                        n.applyFilter(e, r, o.type, o.value);
                      }
                    },
                  },
                  {
                    key: "pathMouseLeave",
                    value: function (e, t) {
                      var i = this.w,
                        n = new x(this.ctx),
                        r = parseInt(e.node.getAttribute("index"), 10),
                        a = parseInt(e.node.getAttribute("j"), 10);
                      "function" ==
                        typeof i.config.chart.events.dataPointMouseLeave &&
                        i.config.chart.events.dataPointMouseLeave(t, this.ctx, {
                          seriesIndex: r,
                          dataPointIndex: a,
                          w: i,
                        }),
                        this.ctx.events.fireEvent("dataPointMouseLeave", [
                          t,
                          this.ctx,
                          { seriesIndex: r, dataPointIndex: a, w: i },
                        ]),
                        ("none" !== i.config.states.active.filter.type &&
                          "true" === e.node.getAttribute("selected")) ||
                          ("none" !== i.config.states.hover.filter.type &&
                            n.getDefaultFilter(e, r));
                    },
                  },
                  {
                    key: "pathMouseDown",
                    value: function (e, t) {
                      var i = this.w,
                        n = new x(this.ctx),
                        r = parseInt(e.node.getAttribute("index"), 10),
                        a = parseInt(e.node.getAttribute("j"), 10),
                        o = "false";
                      if ("true" === e.node.getAttribute("selected")) {
                        if (
                          (e.node.setAttribute("selected", "false"),
                          i.globals.selectedDataPoints[r].indexOf(a) > -1)
                        ) {
                          var s = i.globals.selectedDataPoints[r].indexOf(a);
                          i.globals.selectedDataPoints[r].splice(s, 1);
                        }
                      } else {
                        if (
                          !i.config.states.active
                            .allowMultipleDataPointsSelection &&
                          i.globals.selectedDataPoints.length > 0
                        ) {
                          i.globals.selectedDataPoints = [];
                          var l = i.globals.dom.Paper.select(
                              ".apexcharts-series path"
                            ).members,
                            c = i.globals.dom.Paper.select(
                              ".apexcharts-series circle, .apexcharts-series rect"
                            ).members,
                            u = function (e) {
                              Array.prototype.forEach.call(e, function (e) {
                                e.node.setAttribute("selected", "false"),
                                  n.getDefaultFilter(e, r);
                              });
                            };
                          u(l), u(c);
                        }
                        e.node.setAttribute("selected", "true"),
                          (o = "true"),
                          void 0 === i.globals.selectedDataPoints[r] &&
                            (i.globals.selectedDataPoints[r] = []),
                          i.globals.selectedDataPoints[r].push(a);
                      }
                      if ("true" === o) {
                        var d = i.config.states.active.filter;
                        if ("none" !== d) n.applyFilter(e, r, d.type, d.value);
                        else if (
                          "none" !== i.config.states.hover.filter &&
                          !i.globals.isTouchDevice
                        ) {
                          var h = i.config.states.hover.filter;
                          n.applyFilter(e, r, h.type, h.value);
                        }
                      } else
                        "none" !== i.config.states.active.filter.type &&
                          ("none" === i.config.states.hover.filter.type ||
                          i.globals.isTouchDevice
                            ? n.getDefaultFilter(e, r)
                            : ((h = i.config.states.hover.filter),
                              n.applyFilter(e, r, h.type, h.value)));
                      "function" ==
                        typeof i.config.chart.events.dataPointSelection &&
                        i.config.chart.events.dataPointSelection(t, this.ctx, {
                          selectedDataPoints: i.globals.selectedDataPoints,
                          seriesIndex: r,
                          dataPointIndex: a,
                          w: i,
                        }),
                        t &&
                          this.ctx.events.fireEvent("dataPointSelection", [
                            t,
                            this.ctx,
                            {
                              selectedDataPoints: i.globals.selectedDataPoints,
                              seriesIndex: r,
                              dataPointIndex: a,
                              w: i,
                            },
                          ]);
                    },
                  },
                  {
                    key: "rotateAroundCenter",
                    value: function (e) {
                      var t = {};
                      return (
                        e &&
                          "function" == typeof e.getBBox &&
                          (t = e.getBBox()),
                        { x: t.x + t.width / 2, y: t.y + t.height / 2 }
                      );
                    },
                  },
                  {
                    key: "getTextRects",
                    value: function (e, t, i, n) {
                      var r =
                          !(arguments.length > 4 && void 0 !== arguments[4]) ||
                          arguments[4],
                        a = this.w,
                        o = this.drawText({
                          x: -200,
                          y: -200,
                          text: e,
                          textAnchor: "start",
                          fontSize: t,
                          fontFamily: i,
                          foreColor: "#fff",
                          opacity: 0,
                        });
                      n && o.attr("transform", n), a.globals.dom.Paper.add(o);
                      var s = o.bbox();
                      return (
                        r || (s = o.node.getBoundingClientRect()),
                        o.remove(),
                        { width: s.width, height: s.height }
                      );
                    },
                  },
                  {
                    key: "placeTextWithEllipsis",
                    value: function (e, t, i) {
                      if (
                        "function" == typeof e.getComputedTextLength &&
                        ((e.textContent = t),
                        t.length > 0 && e.getComputedTextLength() >= i / 1.1)
                      ) {
                        for (var n = t.length - 3; n > 0; n -= 3)
                          if (e.getSubStringLength(0, n) <= i / 1.1)
                            return void (e.textContent =
                              t.substring(0, n) + "...");
                        e.textContent = ".";
                      }
                    },
                  },
                ],
                [
                  {
                    key: "setAttrs",
                    value: function (e, t) {
                      for (var i in t)
                        t.hasOwnProperty(i) && e.setAttribute(i, t[i]);
                    },
                  },
                ]
              ),
              e
            );
          })(),
          E = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(
                e,
                [
                  {
                    key: "getStackedSeriesTotals",
                    value: function () {
                      var e =
                          arguments.length > 0 && void 0 !== arguments[0]
                            ? arguments[0]
                            : [],
                        t = this.w,
                        i = [];
                      if (0 === t.globals.series.length) return i;
                      for (
                        var n = 0;
                        n <
                        t.globals.series[t.globals.maxValsInArrayIndex].length;
                        n++
                      ) {
                        for (var r = 0, a = 0; a < t.globals.series.length; a++)
                          void 0 !== t.globals.series[a][n] &&
                            -1 === e.indexOf(a) &&
                            (r += t.globals.series[a][n]);
                        i.push(r);
                      }
                      return i;
                    },
                  },
                  {
                    key: "getSeriesTotalByIndex",
                    value: function () {
                      var e =
                        arguments.length > 0 && void 0 !== arguments[0]
                          ? arguments[0]
                          : null;
                      return null === e
                        ? this.w.config.series.reduce(function (e, t) {
                            return e + t;
                          }, 0)
                        : this.w.globals.series[e].reduce(function (e, t) {
                            return e + t;
                          }, 0);
                    },
                  },
                  {
                    key: "isSeriesNull",
                    value: function () {
                      var e =
                        arguments.length > 0 && void 0 !== arguments[0]
                          ? arguments[0]
                          : null;
                      return (
                        0 ===
                        (null === e
                          ? this.w.config.series.filter(function (e) {
                              return null !== e;
                            })
                          : this.w.config.series[e].data.filter(function (e) {
                              return null !== e;
                            })
                        ).length
                      );
                    },
                  },
                  {
                    key: "seriesHaveSameValues",
                    value: function (e) {
                      return this.w.globals.series[e].every(function (e, t, i) {
                        return e === i[0];
                      });
                    },
                  },
                  {
                    key: "getCategoryLabels",
                    value: function (e) {
                      var t = this.w,
                        i = e.slice();
                      return (
                        t.config.xaxis.convertedCatToNumeric &&
                          (i = e.map(function (e, i) {
                            return t.config.xaxis.labels.formatter(
                              e - t.globals.minX + 1
                            );
                          })),
                        i
                      );
                    },
                  },
                  {
                    key: "getLargestSeries",
                    value: function () {
                      var e = this.w;
                      e.globals.maxValsInArrayIndex = e.globals.series
                        .map(function (e) {
                          return e.length;
                        })
                        .indexOf(
                          Math.max.apply(
                            Math,
                            e.globals.series.map(function (e) {
                              return e.length;
                            })
                          )
                        );
                    },
                  },
                  {
                    key: "getLargestMarkerSize",
                    value: function () {
                      var e = this.w,
                        t = 0;
                      return (
                        e.globals.markers.size.forEach(function (e) {
                          t = Math.max(t, e);
                        }),
                        e.config.markers.discrete &&
                          e.config.markers.discrete.length &&
                          e.config.markers.discrete.forEach(function (e) {
                            t = Math.max(t, e.size);
                          }),
                        t > 0 && (t += e.config.markers.hover.sizeOffset + 1),
                        (e.globals.markers.largestSize = t),
                        t
                      );
                    },
                  },
                  {
                    key: "getSeriesTotals",
                    value: function () {
                      var e = this.w;
                      e.globals.seriesTotals = e.globals.series.map(function (
                        e,
                        t
                      ) {
                        var i = 0;
                        if (Array.isArray(e))
                          for (var n = 0; n < e.length; n++) i += e[n];
                        else i += e;
                        return i;
                      });
                    },
                  },
                  {
                    key: "getSeriesTotalsXRange",
                    value: function (e, t) {
                      var i = this.w;
                      return i.globals.series.map(function (n, r) {
                        for (var a = 0, o = 0; o < n.length; o++)
                          i.globals.seriesX[r][o] > e &&
                            i.globals.seriesX[r][o] < t &&
                            (a += n[o]);
                        return a;
                      });
                    },
                  },
                  {
                    key: "getPercentSeries",
                    value: function () {
                      var e = this.w;
                      e.globals.seriesPercent = e.globals.series.map(function (
                        t,
                        i
                      ) {
                        var n = [];
                        if (Array.isArray(t))
                          for (var r = 0; r < t.length; r++) {
                            var a = e.globals.stackedSeriesTotals[r],
                              o = 0;
                            a && (o = (100 * t[r]) / a), n.push(o);
                          }
                        else {
                          var s =
                            (100 * t) /
                            e.globals.seriesTotals.reduce(function (e, t) {
                              return e + t;
                            }, 0);
                          n.push(s);
                        }
                        return n;
                      });
                    },
                  },
                  {
                    key: "getCalculatedRatios",
                    value: function () {
                      var e,
                        t,
                        i,
                        n,
                        r = this.w.globals,
                        a = [],
                        o = 0,
                        s = [],
                        l = 0.1,
                        c = 0;
                      if (((r.yRange = []), r.isMultipleYAxis))
                        for (var u = 0; u < r.minYArr.length; u++)
                          r.yRange.push(Math.abs(r.minYArr[u] - r.maxYArr[u])),
                            s.push(0);
                      else r.yRange.push(Math.abs(r.minY - r.maxY));
                      (r.xRange = Math.abs(r.maxX - r.minX)),
                        (r.zRange = Math.abs(r.maxZ - r.minZ));
                      for (var d = 0; d < r.yRange.length; d++)
                        a.push(r.yRange[d] / r.gridHeight);
                      if (
                        ((t = r.xRange / r.gridWidth),
                        (i =
                          Math.abs(r.initialMaxX - r.initialMinX) /
                          r.gridWidth),
                        (e = r.yRange / r.gridWidth),
                        (n = r.xRange / r.gridHeight),
                        (o = (r.zRange / r.gridHeight) * 16) || (o = 1),
                        r.minY !== Number.MIN_VALUE &&
                          0 !== Math.abs(r.minY) &&
                          (r.hasNegs = !0),
                        r.isMultipleYAxis)
                      ) {
                        s = [];
                        for (var h = 0; h < a.length; h++)
                          s.push(-r.minYArr[h] / a[h]);
                      } else
                        s.push(-r.minY / a[0]),
                          r.minY !== Number.MIN_VALUE &&
                            0 !== Math.abs(r.minY) &&
                            ((l = -r.minY / e), (c = r.minX / t));
                      return {
                        yRatio: a,
                        invertedYRatio: e,
                        zRatio: o,
                        xRatio: t,
                        initialXRatio: i,
                        invertedXRatio: n,
                        baseLineInvertedY: l,
                        baseLineY: s,
                        baseLineX: c,
                      };
                    },
                  },
                  {
                    key: "getLogSeries",
                    value: function (e) {
                      var t = this,
                        i = this.w;
                      return (
                        (i.globals.seriesLog = e.map(function (e, n) {
                          return i.config.yaxis[n] &&
                            i.config.yaxis[n].logarithmic
                            ? e.map(function (e) {
                                return null === e
                                  ? null
                                  : t.getLogVal(
                                      i.config.yaxis[n].logBase,
                                      e,
                                      n
                                    );
                              })
                            : e;
                        })),
                        i.globals.invalidLogScale ? e : i.globals.seriesLog
                      );
                    },
                  },
                  {
                    key: "getBaseLog",
                    value: function (e, t) {
                      return Math.log(t) / Math.log(e);
                    },
                  },
                  {
                    key: "getLogVal",
                    value: function (e, t, i) {
                      if (0 === t) return 0;
                      var n = this.w,
                        r =
                          0 === n.globals.minYArr[i]
                            ? -1
                            : this.getBaseLog(e, n.globals.minYArr[i]),
                        a =
                          (0 === n.globals.maxYArr[i]
                            ? 0
                            : this.getBaseLog(e, n.globals.maxYArr[i])) - r;
                      return t < 1 ? t / a : (this.getBaseLog(e, t) - r) / a;
                    },
                  },
                  {
                    key: "getLogYRatios",
                    value: function (e) {
                      var t = this,
                        i = this.w,
                        n = this.w.globals;
                      return (
                        (n.yLogRatio = e.slice()),
                        (n.logYRange = n.yRange.map(function (e, r) {
                          if (
                            i.config.yaxis[r] &&
                            t.w.config.yaxis[r].logarithmic
                          ) {
                            var a,
                              o = -Number.MAX_VALUE,
                              s = Number.MIN_VALUE;
                            return (
                              n.seriesLog.forEach(function (e, t) {
                                e.forEach(function (e) {
                                  i.config.yaxis[t] &&
                                    i.config.yaxis[t].logarithmic &&
                                    ((o = Math.max(e, o)),
                                    (s = Math.min(e, s)));
                                });
                              }),
                              (a = Math.pow(
                                n.yRange[r],
                                Math.abs(s - o) / n.yRange[r]
                              )),
                              (n.yLogRatio[r] = a / n.gridHeight),
                              a
                            );
                          }
                        })),
                        n.invalidLogScale ? e.slice() : n.yLogRatio
                      );
                    },
                  },
                ],
                [
                  {
                    key: "checkComboSeries",
                    value: function (e) {
                      var t = !1,
                        i = 0,
                        n = 0;
                      return (
                        e.length &&
                          void 0 !== e[0].type &&
                          e.forEach(function (e) {
                            ("bar" !== e.type &&
                              "column" !== e.type &&
                              "candlestick" !== e.type &&
                              "boxPlot" !== e.type) ||
                              i++,
                              void 0 !== e.type && n++;
                          }),
                        n > 0 && (t = !0),
                        { comboBarCount: i, comboCharts: t }
                      );
                    },
                  },
                  {
                    key: "extendArrayProps",
                    value: function (e, t, i) {
                      return (
                        t.yaxis && (t = e.extendYAxis(t, i)),
                        t.annotations &&
                          (t.annotations.yaxis &&
                            (t = e.extendYAxisAnnotations(t)),
                          t.annotations.xaxis &&
                            (t = e.extendXAxisAnnotations(t)),
                          t.annotations.points &&
                            (t = e.extendPointAnnotations(t))),
                        t
                      );
                    },
                  },
                ]
              ),
              e
            );
          })(),
          _ = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.annoCtx = t);
            }
            return (
              c(e, [
                {
                  key: "setOrientations",
                  value: function (e) {
                    var t =
                        arguments.length > 1 && void 0 !== arguments[1]
                          ? arguments[1]
                          : null,
                      i = this.w;
                    if ("vertical" === e.label.orientation) {
                      var n = null !== t ? t : 0,
                        r = i.globals.dom.baseEl.querySelector(
                          ".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(
                            n,
                            "']"
                          )
                        );
                      if (null !== r) {
                        var a = r.getBoundingClientRect();
                        r.setAttribute(
                          "x",
                          parseFloat(r.getAttribute("x")) - a.height + 4
                        ),
                          "top" === e.label.position
                            ? r.setAttribute(
                                "y",
                                parseFloat(r.getAttribute("y")) + a.width
                              )
                            : r.setAttribute(
                                "y",
                                parseFloat(r.getAttribute("y")) - a.width
                              );
                        var o = this.annoCtx.graphics.rotateAroundCenter(r),
                          s = o.x,
                          l = o.y;
                        r.setAttribute(
                          "transform",
                          "rotate(-90 ".concat(s, " ").concat(l, ")")
                        );
                      }
                    }
                  },
                },
                {
                  key: "addBackgroundToAnno",
                  value: function (e, t) {
                    var i = this.w;
                    if (
                      !e ||
                      void 0 === t.label.text ||
                      (void 0 !== t.label.text && !String(t.label.text).trim())
                    )
                      return null;
                    var n = i.globals.dom.baseEl
                        .querySelector(".apexcharts-grid")
                        .getBoundingClientRect(),
                      r = e.getBoundingClientRect(),
                      a = t.label.style.padding.left,
                      o = t.label.style.padding.right,
                      s = t.label.style.padding.top,
                      l = t.label.style.padding.bottom;
                    "vertical" === t.label.orientation &&
                      ((s = t.label.style.padding.left),
                      (l = t.label.style.padding.right),
                      (a = t.label.style.padding.top),
                      (o = t.label.style.padding.bottom));
                    var c = r.left - n.left - a,
                      u = r.top - n.top - s,
                      d = this.annoCtx.graphics.drawRect(
                        c - i.globals.barPadForNumericAxis,
                        u,
                        r.width + a + o,
                        r.height + s + l,
                        t.label.borderRadius,
                        t.label.style.background,
                        1,
                        t.label.borderWidth,
                        t.label.borderColor,
                        0
                      );
                    return t.id && d.node.classList.add(t.id), d;
                  },
                },
                {
                  key: "annotationsBackground",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = function (i, n, r) {
                        var a = t.globals.dom.baseEl.querySelector(
                          ".apexcharts-"
                            .concat(r, "-annotations .apexcharts-")
                            .concat(r, "-annotation-label[rel='")
                            .concat(n, "']")
                        );
                        if (a) {
                          var o = a.parentNode,
                            s = e.addBackgroundToAnno(a, i);
                          s &&
                            (o.insertBefore(s.node, a),
                            i.label.mouseEnter &&
                              s.node.addEventListener(
                                "mouseenter",
                                i.label.mouseEnter.bind(e, i)
                              ),
                            i.label.mouseLeave &&
                              s.node.addEventListener(
                                "mouseleave",
                                i.label.mouseLeave.bind(e, i)
                              ),
                            i.label.click &&
                              s.node.addEventListener(
                                "click",
                                i.label.click.bind(e, i)
                              ));
                        }
                      };
                    t.config.annotations.xaxis.map(function (e, t) {
                      i(e, t, "xaxis");
                    }),
                      t.config.annotations.yaxis.map(function (e, t) {
                        i(e, t, "yaxis");
                      }),
                      t.config.annotations.points.map(function (e, t) {
                        i(e, t, "point");
                      });
                  },
                },
                {
                  key: "getY1Y2",
                  value: function (e, t) {
                    var i,
                      n = "y1" === e ? t.y : t.y2,
                      r = this.w;
                    if (this.annoCtx.invertAxis) {
                      var a = r.globals.labels.indexOf(n);
                      r.config.xaxis.convertedCatToNumeric &&
                        (a = r.globals.categoryLabels.indexOf(n));
                      var o = r.globals.dom.baseEl.querySelector(
                        ".apexcharts-yaxis-texts-g text:nth-child(" +
                          (a + 1) +
                          ")"
                      );
                      o && (i = parseFloat(o.getAttribute("y")));
                    } else {
                      var s;
                      (s = r.config.yaxis[t.yAxisIndex].logarithmic
                        ? (n = new E(this.annoCtx.ctx).getLogVal(
                            n,
                            t.yAxisIndex
                          )) / r.globals.yLogRatio[t.yAxisIndex]
                        : (n - r.globals.minYArr[t.yAxisIndex]) /
                          (r.globals.yRange[t.yAxisIndex] /
                            r.globals.gridHeight)),
                        (i = r.globals.gridHeight - s),
                        !t.marker ||
                          (void 0 !== t.y && null !== t.y) ||
                          (i = 0),
                        r.config.yaxis[t.yAxisIndex] &&
                          r.config.yaxis[t.yAxisIndex].reversed &&
                          (i = s);
                    }
                    return (
                      "string" == typeof n &&
                        n.indexOf("px") > -1 &&
                        (i = parseFloat(n)),
                      i
                    );
                  },
                },
                {
                  key: "getX1X2",
                  value: function (e, t) {
                    var i = this.w,
                      n = this.annoCtx.invertAxis
                        ? i.globals.minY
                        : i.globals.minX,
                      r = this.annoCtx.invertAxis
                        ? i.globals.maxY
                        : i.globals.maxX,
                      a = this.annoCtx.invertAxis
                        ? i.globals.yRange[0]
                        : i.globals.xRange,
                      o = (t.x - n) / (a / i.globals.gridWidth);
                    this.annoCtx.inversedReversedAxis &&
                      (o = (r - t.x) / (a / i.globals.gridWidth)),
                      ("category" !== i.config.xaxis.type &&
                        !i.config.xaxis.convertedCatToNumeric) ||
                        this.annoCtx.invertAxis ||
                        i.globals.dataFormatXNumeric ||
                        (o = this.getStringX(t.x));
                    var s = (t.x2 - n) / (a / i.globals.gridWidth);
                    return (
                      this.annoCtx.inversedReversedAxis &&
                        (s = (r - t.x2) / (a / i.globals.gridWidth)),
                      ("category" !== i.config.xaxis.type &&
                        !i.config.xaxis.convertedCatToNumeric) ||
                        this.annoCtx.invertAxis ||
                        i.globals.dataFormatXNumeric ||
                        (s = this.getStringX(t.x2)),
                      (void 0 !== t.x && null !== t.x) ||
                        !t.marker ||
                        (o = i.globals.gridWidth),
                      "x1" === e &&
                        "string" == typeof t.x &&
                        t.x.indexOf("px") > -1 &&
                        (o = parseFloat(t.x)),
                      "x2" === e &&
                        "string" == typeof t.x2 &&
                        t.x2.indexOf("px") > -1 &&
                        (s = parseFloat(t.x2)),
                      "x1" === e ? o : s
                    );
                  },
                },
                {
                  key: "getStringX",
                  value: function (e) {
                    var t = this.w,
                      i = e;
                    t.config.xaxis.convertedCatToNumeric &&
                      t.globals.categoryLabels.length &&
                      (e = t.globals.categoryLabels.indexOf(e) + 1);
                    var n = t.globals.labels.indexOf(e),
                      r = t.globals.dom.baseEl.querySelector(
                        ".apexcharts-xaxis-texts-g text:nth-child(" +
                          (n + 1) +
                          ")"
                      );
                    return r && (i = parseFloat(r.getAttribute("x"))), i;
                  },
                },
              ]),
              e
            );
          })(),
          S = (function () {
            function e(t) {
              s(this, e),
                (this.w = t.w),
                (this.annoCtx = t),
                (this.invertAxis = this.annoCtx.invertAxis),
                (this.helpers = new _(this.annoCtx));
            }
            return (
              c(e, [
                {
                  key: "addXaxisAnnotation",
                  value: function (e, t, i) {
                    var n,
                      r = this.w,
                      a = this.helpers.getX1X2("x1", e),
                      o = e.label.text,
                      s = e.strokeDashArray;
                    if (b.isNumber(a)) {
                      if (null === e.x2 || void 0 === e.x2) {
                        var l = this.annoCtx.graphics.drawLine(
                          a + e.offsetX,
                          0 + e.offsetY,
                          a + e.offsetX,
                          r.globals.gridHeight + e.offsetY,
                          e.borderColor,
                          s,
                          e.borderWidth
                        );
                        t.appendChild(l.node),
                          e.id && l.node.classList.add(e.id);
                      } else {
                        if ((n = this.helpers.getX1X2("x2", e)) < a) {
                          var c = a;
                          (a = n), (n = c);
                        }
                        var u = this.annoCtx.graphics.drawRect(
                          a + e.offsetX,
                          0 + e.offsetY,
                          n - a,
                          r.globals.gridHeight + e.offsetY,
                          0,
                          e.fillColor,
                          e.opacity,
                          1,
                          e.borderColor,
                          s
                        );
                        u.node.classList.add("apexcharts-annotation-rect"),
                          u.attr(
                            "clip-path",
                            "url(#gridRectMask".concat(r.globals.cuid, ")")
                          ),
                          t.appendChild(u.node),
                          e.id && u.node.classList.add(e.id);
                      }
                      var d = this.annoCtx.graphics.getTextRects(
                          o,
                          parseFloat(e.label.style.fontSize)
                        ),
                        h =
                          "top" === e.label.position
                            ? 4
                            : "center" === e.label.position
                            ? r.globals.gridHeight / 2 +
                              ("vertical" === e.label.orientation
                                ? d.width / 2
                                : 0)
                            : r.globals.gridHeight,
                        f = this.annoCtx.graphics.drawText({
                          x: a + e.label.offsetX,
                          y:
                            h +
                            e.label.offsetY -
                            ("vertical" === e.label.orientation
                              ? "top" === e.label.position
                                ? d.width / 2 - 12
                                : -d.width / 2
                              : 0),
                          text: o,
                          textAnchor: e.label.textAnchor,
                          fontSize: e.label.style.fontSize,
                          fontFamily: e.label.style.fontFamily,
                          fontWeight: e.label.style.fontWeight,
                          foreColor: e.label.style.color,
                          cssClass: "apexcharts-xaxis-annotation-label "
                            .concat(e.label.style.cssClass, " ")
                            .concat(e.id ? e.id : ""),
                        });
                      f.attr({ rel: i }),
                        t.appendChild(f.node),
                        this.annoCtx.helpers.setOrientations(e, i);
                    }
                  },
                },
                {
                  key: "drawXAxisAnnotations",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = this.annoCtx.graphics.group({
                        class: "apexcharts-xaxis-annotations",
                      });
                    return (
                      t.config.annotations.xaxis.map(function (t, n) {
                        e.addXaxisAnnotation(t, i.node, n);
                      }),
                      i
                    );
                  },
                },
              ]),
              e
            );
          })(),
          A = (function () {
            function e(t) {
              s(this, e),
                (this.w = t.w),
                (this.annoCtx = t),
                (this.helpers = new _(this.annoCtx));
            }
            return (
              c(e, [
                {
                  key: "addYaxisAnnotation",
                  value: function (e, t, i) {
                    var n,
                      r = this.w,
                      a = e.strokeDashArray,
                      o = this.helpers.getY1Y2("y1", e),
                      s = e.label.text;
                    if (null === e.y2 || void 0 === e.y2) {
                      var l = this.annoCtx.graphics.drawLine(
                        0 + e.offsetX,
                        o + e.offsetY,
                        this._getYAxisAnnotationWidth(e),
                        o + e.offsetY,
                        e.borderColor,
                        a,
                        e.borderWidth
                      );
                      t.appendChild(l.node), e.id && l.node.classList.add(e.id);
                    } else {
                      if ((n = this.helpers.getY1Y2("y2", e)) > o) {
                        var c = o;
                        (o = n), (n = c);
                      }
                      var u = this.annoCtx.graphics.drawRect(
                        0 + e.offsetX,
                        n + e.offsetY,
                        this._getYAxisAnnotationWidth(e),
                        o - n,
                        0,
                        e.fillColor,
                        e.opacity,
                        1,
                        e.borderColor,
                        a
                      );
                      u.node.classList.add("apexcharts-annotation-rect"),
                        u.attr(
                          "clip-path",
                          "url(#gridRectMask".concat(r.globals.cuid, ")")
                        ),
                        t.appendChild(u.node),
                        e.id && u.node.classList.add(e.id);
                    }
                    var d =
                        "right" === e.label.position
                          ? r.globals.gridWidth
                          : "center" === e.label.position
                          ? r.globals.gridWidth / 2
                          : 0,
                      h = this.annoCtx.graphics.drawText({
                        x: d + e.label.offsetX,
                        y: (null != n ? n : o) + e.label.offsetY - 3,
                        text: s,
                        textAnchor: e.label.textAnchor,
                        fontSize: e.label.style.fontSize,
                        fontFamily: e.label.style.fontFamily,
                        fontWeight: e.label.style.fontWeight,
                        foreColor: e.label.style.color,
                        cssClass: "apexcharts-yaxis-annotation-label "
                          .concat(e.label.style.cssClass, " ")
                          .concat(e.id ? e.id : ""),
                      });
                    h.attr({ rel: i }), t.appendChild(h.node);
                  },
                },
                {
                  key: "_getYAxisAnnotationWidth",
                  value: function (e) {
                    var t = this.w;
                    return (
                      t.globals.gridWidth,
                      (e.width.indexOf("%") > -1
                        ? (t.globals.gridWidth * parseInt(e.width, 10)) / 100
                        : parseInt(e.width, 10)) + e.offsetX
                    );
                  },
                },
                {
                  key: "drawYAxisAnnotations",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = this.annoCtx.graphics.group({
                        class: "apexcharts-yaxis-annotations",
                      });
                    return (
                      t.config.annotations.yaxis.map(function (t, n) {
                        e.addYaxisAnnotation(t, i.node, n);
                      }),
                      i
                    );
                  },
                },
              ]),
              e
            );
          })(),
          k = (function () {
            function e(t) {
              s(this, e),
                (this.w = t.w),
                (this.annoCtx = t),
                (this.helpers = new _(this.annoCtx));
            }
            return (
              c(e, [
                {
                  key: "addPointAnnotation",
                  value: function (e, t, i) {
                    this.w;
                    var n = this.helpers.getX1X2("x1", e),
                      r = this.helpers.getY1Y2("y1", e);
                    if (b.isNumber(n)) {
                      var a = {
                          pSize: e.marker.size,
                          pointStrokeWidth: e.marker.strokeWidth,
                          pointFillColor: e.marker.fillColor,
                          pointStrokeColor: e.marker.strokeColor,
                          shape: e.marker.shape,
                          pRadius: e.marker.radius,
                          class: "apexcharts-point-annotation-marker "
                            .concat(e.marker.cssClass, " ")
                            .concat(e.id ? e.id : ""),
                        },
                        o = this.annoCtx.graphics.drawMarker(
                          n + e.marker.offsetX,
                          r + e.marker.offsetY,
                          a
                        );
                      t.appendChild(o.node);
                      var s = e.label.text ? e.label.text : "",
                        l = this.annoCtx.graphics.drawText({
                          x: n + e.label.offsetX,
                          y:
                            r +
                            e.label.offsetY -
                            e.marker.size -
                            parseFloat(e.label.style.fontSize) / 1.6,
                          text: s,
                          textAnchor: e.label.textAnchor,
                          fontSize: e.label.style.fontSize,
                          fontFamily: e.label.style.fontFamily,
                          fontWeight: e.label.style.fontWeight,
                          foreColor: e.label.style.color,
                          cssClass: "apexcharts-point-annotation-label "
                            .concat(e.label.style.cssClass, " ")
                            .concat(e.id ? e.id : ""),
                        });
                      if (
                        (l.attr({ rel: i }),
                        t.appendChild(l.node),
                        e.customSVG.SVG)
                      ) {
                        var c = this.annoCtx.graphics.group({
                          class:
                            "apexcharts-point-annotations-custom-svg " +
                            e.customSVG.cssClass,
                        });
                        c.attr({
                          transform: "translate("
                            .concat(n + e.customSVG.offsetX, ", ")
                            .concat(r + e.customSVG.offsetY, ")"),
                        }),
                          (c.node.innerHTML = e.customSVG.SVG),
                          t.appendChild(c.node);
                      }
                      if (e.image.path) {
                        var u = e.image.width ? e.image.width : 20,
                          d = e.image.height ? e.image.height : 20;
                        o = this.annoCtx.addImage({
                          x: n + e.image.offsetX - u / 2,
                          y: r + e.image.offsetY - d / 2,
                          width: u,
                          height: d,
                          path: e.image.path,
                          appendTo: ".apexcharts-point-annotations",
                        });
                      }
                      e.mouseEnter &&
                        o.node.addEventListener(
                          "mouseenter",
                          e.mouseEnter.bind(this, e)
                        ),
                        e.mouseLeave &&
                          o.node.addEventListener(
                            "mouseleave",
                            e.mouseLeave.bind(this, e)
                          ),
                        e.click &&
                          o.node.addEventListener(
                            "click",
                            e.click.bind(this, e)
                          );
                    }
                  },
                },
                {
                  key: "drawPointAnnotations",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = this.annoCtx.graphics.group({
                        class: "apexcharts-point-annotations",
                      });
                    return (
                      t.config.annotations.points.map(function (t, n) {
                        e.addPointAnnotation(t, i.node, n);
                      }),
                      i
                    );
                  },
                },
              ]),
              e
            );
          })(),
          T = {
            name: "en",
            options: {
              months: [
                "January",
                "February",
                "March",
                "April",
                "May",
                "June",
                "July",
                "August",
                "September",
                "October",
                "November",
                "December",
              ],
              shortMonths: [
                "Jan",
                "Feb",
                "Mar",
                "Apr",
                "May",
                "Jun",
                "Jul",
                "Aug",
                "Sep",
                "Oct",
                "Nov",
                "Dec",
              ],
              days: [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday",
              ],
              shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
              toolbar: {
                exportToSVG: "Download SVG",
                exportToPNG: "Download PNG",
                exportToCSV: "Download CSV",
                menu: "Menu",
                selection: "Selection",
                selectionZoom: "Selection Zoom",
                zoomIn: "Zoom In",
                zoomOut: "Zoom Out",
                pan: "Panning",
                reset: "Reset Zoom",
              },
            },
          },
          C = (function () {
            function e() {
              s(this, e),
                (this.yAxis = {
                  show: !0,
                  showAlways: !1,
                  showForNullSeries: !0,
                  seriesName: void 0,
                  opposite: !1,
                  reversed: !1,
                  logarithmic: !1,
                  logBase: 10,
                  tickAmount: void 0,
                  forceNiceScale: !1,
                  max: void 0,
                  min: void 0,
                  floating: !1,
                  decimalsInFloat: void 0,
                  labels: {
                    show: !0,
                    minWidth: 0,
                    maxWidth: 160,
                    offsetX: 0,
                    offsetY: 0,
                    align: void 0,
                    rotate: 0,
                    padding: 20,
                    style: {
                      colors: [],
                      fontSize: "11px",
                      fontWeight: 400,
                      fontFamily: void 0,
                      cssClass: "",
                    },
                    formatter: void 0,
                  },
                  axisBorder: {
                    show: !1,
                    color: "#e0e0e0",
                    width: 1,
                    offsetX: 0,
                    offsetY: 0,
                  },
                  axisTicks: {
                    show: !1,
                    color: "#e0e0e0",
                    width: 6,
                    offsetX: 0,
                    offsetY: 0,
                  },
                  title: {
                    text: void 0,
                    rotate: -90,
                    offsetY: 0,
                    offsetX: 0,
                    style: {
                      color: void 0,
                      fontSize: "11px",
                      fontWeight: 900,
                      fontFamily: void 0,
                      cssClass: "",
                    },
                  },
                  tooltip: { enabled: !1, offsetX: 0 },
                  crosshairs: {
                    show: !0,
                    position: "front",
                    stroke: { color: "#b6b6b6", width: 1, dashArray: 0 },
                  },
                }),
                (this.pointAnnotation = {
                  id: void 0,
                  x: 0,
                  y: null,
                  yAxisIndex: 0,
                  seriesIndex: 0,
                  mouseEnter: void 0,
                  mouseLeave: void 0,
                  click: void 0,
                  marker: {
                    size: 4,
                    fillColor: "#fff",
                    strokeWidth: 2,
                    strokeColor: "#333",
                    shape: "circle",
                    offsetX: 0,
                    offsetY: 0,
                    radius: 2,
                    cssClass: "",
                  },
                  label: {
                    borderColor: "#c2c2c2",
                    borderWidth: 1,
                    borderRadius: 2,
                    text: void 0,
                    textAnchor: "middle",
                    offsetX: 0,
                    offsetY: 0,
                    mouseEnter: void 0,
                    mouseLeave: void 0,
                    click: void 0,
                    style: {
                      background: "#fff",
                      color: void 0,
                      fontSize: "11px",
                      fontFamily: void 0,
                      fontWeight: 400,
                      cssClass: "",
                      padding: { left: 5, right: 5, top: 2, bottom: 2 },
                    },
                  },
                  customSVG: {
                    SVG: void 0,
                    cssClass: void 0,
                    offsetX: 0,
                    offsetY: 0,
                  },
                  image: {
                    path: void 0,
                    width: 20,
                    height: 20,
                    offsetX: 0,
                    offsetY: 0,
                  },
                }),
                (this.yAxisAnnotation = {
                  id: void 0,
                  y: 0,
                  y2: null,
                  strokeDashArray: 1,
                  fillColor: "#c2c2c2",
                  borderColor: "#c2c2c2",
                  borderWidth: 1,
                  opacity: 0.3,
                  offsetX: 0,
                  offsetY: 0,
                  width: "100%",
                  yAxisIndex: 0,
                  label: {
                    borderColor: "#c2c2c2",
                    borderWidth: 1,
                    borderRadius: 2,
                    text: void 0,
                    textAnchor: "end",
                    position: "right",
                    offsetX: 0,
                    offsetY: -3,
                    mouseEnter: void 0,
                    mouseLeave: void 0,
                    click: void 0,
                    style: {
                      background: "#fff",
                      color: void 0,
                      fontSize: "11px",
                      fontFamily: void 0,
                      fontWeight: 400,
                      cssClass: "",
                      padding: { left: 5, right: 5, top: 2, bottom: 2 },
                    },
                  },
                }),
                (this.xAxisAnnotation = {
                  id: void 0,
                  x: 0,
                  x2: null,
                  strokeDashArray: 1,
                  fillColor: "#c2c2c2",
                  borderColor: "#c2c2c2",
                  borderWidth: 1,
                  opacity: 0.3,
                  offsetX: 0,
                  offsetY: 0,
                  label: {
                    borderColor: "#c2c2c2",
                    borderWidth: 1,
                    borderRadius: 2,
                    text: void 0,
                    textAnchor: "middle",
                    orientation: "vertical",
                    position: "top",
                    offsetX: 0,
                    offsetY: 0,
                    mouseEnter: void 0,
                    mouseLeave: void 0,
                    click: void 0,
                    style: {
                      background: "#fff",
                      color: void 0,
                      fontSize: "11px",
                      fontFamily: void 0,
                      fontWeight: 400,
                      cssClass: "",
                      padding: { left: 5, right: 5, top: 2, bottom: 2 },
                    },
                  },
                }),
                (this.text = {
                  x: 0,
                  y: 0,
                  text: "",
                  textAnchor: "start",
                  foreColor: void 0,
                  fontSize: "13px",
                  fontFamily: void 0,
                  fontWeight: 400,
                  appendTo: ".apexcharts-annotations",
                  backgroundColor: "transparent",
                  borderColor: "#c2c2c2",
                  borderRadius: 0,
                  borderWidth: 0,
                  paddingLeft: 4,
                  paddingRight: 4,
                  paddingTop: 2,
                  paddingBottom: 2,
                });
            }
            return (
              c(e, [
                {
                  key: "init",
                  value: function () {
                    return {
                      annotations: {
                        position: "front",
                        yaxis: [this.yAxisAnnotation],
                        xaxis: [this.xAxisAnnotation],
                        points: [this.pointAnnotation],
                        texts: [],
                        images: [],
                        shapes: [],
                      },
                      chart: {
                        animations: {
                          enabled: !0,
                          easing: "easeinout",
                          speed: 800,
                          animateGradually: { delay: 150, enabled: !0 },
                          dynamicAnimation: { enabled: !0, speed: 350 },
                        },
                        background: "transparent",
                        locales: [T],
                        defaultLocale: "en",
                        dropShadow: {
                          enabled: !1,
                          enabledOnSeries: void 0,
                          top: 2,
                          left: 2,
                          blur: 4,
                          color: "#000",
                          opacity: 0.35,
                        },
                        events: {
                          animationEnd: void 0,
                          beforeMount: void 0,
                          mounted: void 0,
                          updated: void 0,
                          click: void 0,
                          mouseMove: void 0,
                          mouseLeave: void 0,
                          xAxisLabelClick: void 0,
                          legendClick: void 0,
                          markerClick: void 0,
                          selection: void 0,
                          dataPointSelection: void 0,
                          dataPointMouseEnter: void 0,
                          dataPointMouseLeave: void 0,
                          beforeZoom: void 0,
                          beforeResetZoom: void 0,
                          zoomed: void 0,
                          scrolled: void 0,
                          brushScrolled: void 0,
                        },
                        foreColor: "#373d3f",
                        fontFamily: "Helvetica, Arial, sans-serif",
                        height: "auto",
                        parentHeightOffset: 15,
                        redrawOnParentResize: !0,
                        redrawOnWindowResize: !0,
                        id: void 0,
                        group: void 0,
                        offsetX: 0,
                        offsetY: 0,
                        selection: {
                          enabled: !1,
                          type: "x",
                          fill: { color: "#24292e", opacity: 0.1 },
                          stroke: {
                            width: 1,
                            color: "#24292e",
                            opacity: 0.4,
                            dashArray: 3,
                          },
                          xaxis: { min: void 0, max: void 0 },
                          yaxis: { min: void 0, max: void 0 },
                        },
                        sparkline: { enabled: !1 },
                        brush: {
                          enabled: !1,
                          autoScaleYaxis: !0,
                          target: void 0,
                        },
                        stacked: !1,
                        stackType: "normal",
                        toolbar: {
                          show: !0,
                          offsetX: 0,
                          offsetY: 0,
                          tools: {
                            download: !0,
                            selection: !0,
                            zoom: !0,
                            zoomin: !0,
                            zoomout: !0,
                            pan: !0,
                            reset: !0,
                            customIcons: [],
                          },
                          export: {
                            csv: {
                              filename: void 0,
                              columnDelimiter: ",",
                              headerCategory: "category",
                              headerValue: "value",
                              dateFormatter: function (e) {
                                return new Date(e).toDateString();
                              },
                            },
                            png: { filename: void 0 },
                            svg: { filename: void 0 },
                          },
                          autoSelected: "zoom",
                        },
                        type: "line",
                        width: "100%",
                        zoom: {
                          enabled: !0,
                          type: "x",
                          autoScaleYaxis: !1,
                          zoomedArea: {
                            fill: { color: "#90CAF9", opacity: 0.4 },
                            stroke: {
                              color: "#0D47A1",
                              opacity: 0.4,
                              width: 1,
                            },
                          },
                        },
                      },
                      plotOptions: {
                        area: { fillTo: "origin" },
                        bar: {
                          horizontal: !1,
                          columnWidth: "70%",
                          barHeight: "70%",
                          distributed: !1,
                          borderRadius: 0,
                          borderRadiusApplication: "around",
                          borderRadiusWhenStacked: "last",
                          rangeBarOverlap: !0,
                          rangeBarGroupRows: !1,
                          colors: {
                            ranges: [],
                            backgroundBarColors: [],
                            backgroundBarOpacity: 1,
                            backgroundBarRadius: 0,
                          },
                          dataLabels: {
                            position: "top",
                            maxItems: 100,
                            hideOverflowingLabels: !0,
                            orientation: "horizontal",
                            total: {
                              enabled: !1,
                              formatter: void 0,
                              offsetX: 0,
                              offsetY: 0,
                              style: {
                                color: "#373d3f",
                                fontSize: "12px",
                                fontFamily: void 0,
                                fontWeight: 600,
                              },
                            },
                          },
                        },
                        bubble: {
                          zScaling: !0,
                          minBubbleRadius: void 0,
                          maxBubbleRadius: void 0,
                        },
                        candlestick: {
                          colors: { upward: "#00B746", downward: "#EF403C" },
                          wick: { useFillColor: !0 },
                        },
                        boxPlot: {
                          colors: { upper: "#00E396", lower: "#008FFB" },
                        },
                        heatmap: {
                          radius: 2,
                          enableShades: !0,
                          shadeIntensity: 0.5,
                          reverseNegativeShade: !1,
                          distributed: !1,
                          useFillColorAsStroke: !1,
                          colorScale: {
                            inverse: !1,
                            ranges: [],
                            min: void 0,
                            max: void 0,
                          },
                        },
                        treemap: {
                          enableShades: !0,
                          shadeIntensity: 0.5,
                          distributed: !1,
                          reverseNegativeShade: !1,
                          useFillColorAsStroke: !1,
                          colorScale: {
                            inverse: !1,
                            ranges: [],
                            min: void 0,
                            max: void 0,
                          },
                        },
                        radialBar: {
                          inverseOrder: !1,
                          startAngle: 0,
                          endAngle: 360,
                          offsetX: 0,
                          offsetY: 0,
                          hollow: {
                            margin: 5,
                            size: "50%",
                            background: "transparent",
                            image: void 0,
                            imageWidth: 150,
                            imageHeight: 150,
                            imageOffsetX: 0,
                            imageOffsetY: 0,
                            imageClipped: !0,
                            position: "front",
                            dropShadow: {
                              enabled: !1,
                              top: 0,
                              left: 0,
                              blur: 3,
                              color: "#000",
                              opacity: 0.5,
                            },
                          },
                          track: {
                            show: !0,
                            startAngle: void 0,
                            endAngle: void 0,
                            background: "#f2f2f2",
                            strokeWidth: "97%",
                            opacity: 1,
                            margin: 5,
                            dropShadow: {
                              enabled: !1,
                              top: 0,
                              left: 0,
                              blur: 3,
                              color: "#000",
                              opacity: 0.5,
                            },
                          },
                          dataLabels: {
                            show: !0,
                            name: {
                              show: !0,
                              fontSize: "16px",
                              fontFamily: void 0,
                              fontWeight: 600,
                              color: void 0,
                              offsetY: 0,
                              formatter: function (e) {
                                return e;
                              },
                            },
                            value: {
                              show: !0,
                              fontSize: "14px",
                              fontFamily: void 0,
                              fontWeight: 400,
                              color: void 0,
                              offsetY: 16,
                              formatter: function (e) {
                                return e + "%";
                              },
                            },
                            total: {
                              show: !1,
                              label: "Total",
                              fontSize: "16px",
                              fontWeight: 600,
                              fontFamily: void 0,
                              color: void 0,
                              formatter: function (e) {
                                return (
                                  e.globals.seriesTotals.reduce(function (
                                    e,
                                    t
                                  ) {
                                    return e + t;
                                  },
                                  0) /
                                    e.globals.series.length +
                                  "%"
                                );
                              },
                            },
                          },
                        },
                        pie: {
                          customScale: 1,
                          offsetX: 0,
                          offsetY: 0,
                          startAngle: 0,
                          endAngle: 360,
                          expandOnClick: !0,
                          dataLabels: { offset: 0, minAngleToShowLabel: 10 },
                          donut: {
                            size: "65%",
                            background: "transparent",
                            labels: {
                              show: !1,
                              name: {
                                show: !0,
                                fontSize: "16px",
                                fontFamily: void 0,
                                fontWeight: 600,
                                color: void 0,
                                offsetY: -10,
                                formatter: function (e) {
                                  return e;
                                },
                              },
                              value: {
                                show: !0,
                                fontSize: "20px",
                                fontFamily: void 0,
                                fontWeight: 400,
                                color: void 0,
                                offsetY: 10,
                                formatter: function (e) {
                                  return e;
                                },
                              },
                              total: {
                                show: !1,
                                showAlways: !1,
                                label: "Total",
                                fontSize: "16px",
                                fontWeight: 400,
                                fontFamily: void 0,
                                color: void 0,
                                formatter: function (e) {
                                  return e.globals.seriesTotals.reduce(
                                    function (e, t) {
                                      return e + t;
                                    },
                                    0
                                  );
                                },
                              },
                            },
                          },
                        },
                        polarArea: {
                          rings: { strokeWidth: 1, strokeColor: "#e8e8e8" },
                          spokes: {
                            strokeWidth: 1,
                            connectorColors: "#e8e8e8",
                          },
                        },
                        radar: {
                          size: void 0,
                          offsetX: 0,
                          offsetY: 0,
                          polygons: {
                            strokeWidth: 1,
                            strokeColors: "#e8e8e8",
                            connectorColors: "#e8e8e8",
                            fill: { colors: void 0 },
                          },
                        },
                      },
                      colors: void 0,
                      dataLabels: {
                        enabled: !0,
                        enabledOnSeries: void 0,
                        formatter: function (e) {
                          return null !== e ? e : "";
                        },
                        textAnchor: "middle",
                        distributed: !1,
                        offsetX: 0,
                        offsetY: 0,
                        style: {
                          fontSize: "12px",
                          fontFamily: void 0,
                          fontWeight: 600,
                          colors: void 0,
                        },
                        background: {
                          enabled: !0,
                          foreColor: "#fff",
                          borderRadius: 2,
                          padding: 4,
                          opacity: 0.9,
                          borderWidth: 1,
                          borderColor: "#fff",
                          dropShadow: {
                            enabled: !1,
                            top: 1,
                            left: 1,
                            blur: 1,
                            color: "#000",
                            opacity: 0.45,
                          },
                        },
                        dropShadow: {
                          enabled: !1,
                          top: 1,
                          left: 1,
                          blur: 1,
                          color: "#000",
                          opacity: 0.45,
                        },
                      },
                      fill: {
                        type: "solid",
                        colors: void 0,
                        opacity: 0.85,
                        gradient: {
                          shade: "dark",
                          type: "horizontal",
                          shadeIntensity: 0.5,
                          gradientToColors: void 0,
                          inverseColors: !0,
                          opacityFrom: 1,
                          opacityTo: 1,
                          stops: [0, 50, 100],
                          colorStops: [],
                        },
                        image: { src: [], width: void 0, height: void 0 },
                        pattern: {
                          style: "squares",
                          width: 6,
                          height: 6,
                          strokeWidth: 2,
                        },
                      },
                      forecastDataPoints: {
                        count: 0,
                        fillOpacity: 0.5,
                        strokeWidth: void 0,
                        dashArray: 4,
                      },
                      grid: {
                        show: !0,
                        borderColor: "#e0e0e0",
                        strokeDashArray: 0,
                        position: "back",
                        xaxis: { lines: { show: !0 } },
                        yaxis: { lines: { show: !0 } },
                        row: { colors: void 0, opacity: 0.5 },
                        column: { colors: void 0, opacity: 0.5 },
                        padding: { top: 0, right: 10, bottom: 0, left: 12 },
                      },
                      labels: [],
                      legend: {
                        show: !0,
                        showForSingleSeries: !1,
                        showForNullSeries: !0,
                        showForZeroSeries: !0,
                        floating: !1,
                        position: "bottom",
                        horizontalAlign: "center",
                        inverseOrder: !1,
                        fontSize: "12px",
                        fontFamily: void 0,
                        fontWeight: 400,
                        width: void 0,
                        height: void 0,
                        formatter: void 0,
                        tooltipHoverFormatter: void 0,
                        offsetX: -20,
                        offsetY: 4,
                        customLegendItems: [],
                        labels: { colors: void 0, useSeriesColors: !1 },
                        markers: {
                          width: 12,
                          height: 12,
                          strokeWidth: 0,
                          fillColors: void 0,
                          strokeColor: "#fff",
                          radius: 12,
                          customHTML: void 0,
                          offsetX: 0,
                          offsetY: 0,
                          onClick: void 0,
                        },
                        itemMargin: { horizontal: 5, vertical: 2 },
                        onItemClick: { toggleDataSeries: !0 },
                        onItemHover: { highlightDataSeries: !0 },
                      },
                      markers: {
                        discrete: [],
                        size: 0,
                        colors: void 0,
                        strokeColors: "#fff",
                        strokeWidth: 2,
                        strokeOpacity: 0.9,
                        strokeDashArray: 0,
                        fillOpacity: 1,
                        shape: "circle",
                        width: 8,
                        height: 8,
                        radius: 2,
                        offsetX: 0,
                        offsetY: 0,
                        onClick: void 0,
                        onDblClick: void 0,
                        showNullDataPoints: !0,
                        hover: { size: void 0, sizeOffset: 3 },
                      },
                      noData: {
                        text: void 0,
                        align: "center",
                        verticalAlign: "middle",
                        offsetX: 0,
                        offsetY: 0,
                        style: {
                          color: void 0,
                          fontSize: "14px",
                          fontFamily: void 0,
                        },
                      },
                      responsive: [],
                      series: void 0,
                      states: {
                        normal: { filter: { type: "none", value: 0 } },
                        hover: { filter: { type: "lighten", value: 0.1 } },
                        active: {
                          allowMultipleDataPointsSelection: !1,
                          filter: { type: "darken", value: 0.5 },
                        },
                      },
                      title: {
                        text: void 0,
                        align: "left",
                        margin: 5,
                        offsetX: 0,
                        offsetY: 0,
                        floating: !1,
                        style: {
                          fontSize: "14px",
                          fontWeight: 900,
                          fontFamily: void 0,
                          color: void 0,
                        },
                      },
                      subtitle: {
                        text: void 0,
                        align: "left",
                        margin: 5,
                        offsetX: 0,
                        offsetY: 30,
                        floating: !1,
                        style: {
                          fontSize: "12px",
                          fontWeight: 400,
                          fontFamily: void 0,
                          color: void 0,
                        },
                      },
                      stroke: {
                        show: !0,
                        curve: "smooth",
                        lineCap: "butt",
                        width: 2,
                        colors: void 0,
                        dashArray: 0,
                        fill: {
                          type: "solid",
                          colors: void 0,
                          opacity: 0.85,
                          gradient: {
                            shade: "dark",
                            type: "horizontal",
                            shadeIntensity: 0.5,
                            gradientToColors: void 0,
                            inverseColors: !0,
                            opacityFrom: 1,
                            opacityTo: 1,
                            stops: [0, 50, 100],
                            colorStops: [],
                          },
                        },
                      },
                      tooltip: {
                        enabled: !0,
                        enabledOnSeries: void 0,
                        shared: !0,
                        followCursor: !1,
                        intersect: !1,
                        inverseOrder: !1,
                        custom: void 0,
                        fillSeriesColor: !1,
                        theme: "light",
                        cssClass: "",
                        style: { fontSize: "12px", fontFamily: void 0 },
                        onDatasetHover: { highlightDataSeries: !1 },
                        x: { show: !0, format: "dd MMM", formatter: void 0 },
                        y: {
                          formatter: void 0,
                          title: {
                            formatter: function (e) {
                              return e ? e + ": " : "";
                            },
                          },
                        },
                        z: { formatter: void 0, title: "Size: " },
                        marker: { show: !0, fillColors: void 0 },
                        items: { display: "flex" },
                        fixed: {
                          enabled: !1,
                          position: "topRight",
                          offsetX: 0,
                          offsetY: 0,
                        },
                      },
                      xaxis: {
                        type: "category",
                        categories: [],
                        convertedCatToNumeric: !1,
                        offsetX: 0,
                        offsetY: 0,
                        overwriteCategories: void 0,
                        labels: {
                          show: !0,
                          rotate: -45,
                          rotateAlways: !1,
                          hideOverlappingLabels: !0,
                          trim: !1,
                          minHeight: void 0,
                          maxHeight: 120,
                          showDuplicates: !0,
                          style: {
                            colors: [],
                            fontSize: "12px",
                            fontWeight: 400,
                            fontFamily: void 0,
                            cssClass: "",
                          },
                          offsetX: 0,
                          offsetY: 0,
                          format: void 0,
                          formatter: void 0,
                          datetimeUTC: !0,
                          datetimeFormatter: {
                            year: "yyyy",
                            month: "MMM 'yy",
                            day: "dd MMM",
                            hour: "HH:mm",
                            minute: "HH:mm:ss",
                            second: "HH:mm:ss",
                          },
                        },
                        group: {
                          groups: [],
                          style: {
                            colors: [],
                            fontSize: "12px",
                            fontWeight: 400,
                            fontFamily: void 0,
                            cssClass: "",
                          },
                        },
                        axisBorder: {
                          show: !0,
                          color: "#e0e0e0",
                          width: "100%",
                          height: 1,
                          offsetX: 0,
                          offsetY: 0,
                        },
                        axisTicks: {
                          show: !0,
                          color: "#e0e0e0",
                          height: 6,
                          offsetX: 0,
                          offsetY: 0,
                        },
                        tickAmount: void 0,
                        tickPlacement: "on",
                        min: void 0,
                        max: void 0,
                        range: void 0,
                        floating: !1,
                        decimalsInFloat: void 0,
                        position: "bottom",
                        title: {
                          text: void 0,
                          offsetX: 0,
                          offsetY: 0,
                          style: {
                            color: void 0,
                            fontSize: "12px",
                            fontWeight: 900,
                            fontFamily: void 0,
                            cssClass: "",
                          },
                        },
                        crosshairs: {
                          show: !0,
                          width: 1,
                          position: "back",
                          opacity: 0.9,
                          stroke: { color: "#b6b6b6", width: 1, dashArray: 3 },
                          fill: {
                            type: "solid",
                            color: "#B1B9C4",
                            gradient: {
                              colorFrom: "#D8E3F0",
                              colorTo: "#BED1E6",
                              stops: [0, 100],
                              opacityFrom: 0.4,
                              opacityTo: 0.5,
                            },
                          },
                          dropShadow: {
                            enabled: !1,
                            left: 0,
                            top: 0,
                            blur: 1,
                            opacity: 0.4,
                          },
                        },
                        tooltip: {
                          enabled: !0,
                          offsetY: 0,
                          formatter: void 0,
                          style: { fontSize: "12px", fontFamily: void 0 },
                        },
                      },
                      yaxis: this.yAxis,
                      theme: {
                        mode: "light",
                        palette: "palette1",
                        monochrome: {
                          enabled: !1,
                          color: "#008FFB",
                          shadeTo: "light",
                          shadeIntensity: 0.65,
                        },
                      },
                    };
                  },
                },
              ]),
              e
            );
          })(),
          O = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.graphics = new w(this.ctx)),
                this.w.globals.isBarHorizontal && (this.invertAxis = !0),
                (this.helpers = new _(this)),
                (this.xAxisAnnotations = new S(this)),
                (this.yAxisAnnotations = new A(this)),
                (this.pointsAnnotations = new k(this)),
                this.w.globals.isBarHorizontal &&
                  this.w.config.yaxis[0].reversed &&
                  (this.inversedReversedAxis = !0),
                (this.xDivision =
                  this.w.globals.gridWidth / this.w.globals.dataPoints);
            }
            return (
              c(e, [
                {
                  key: "drawAxesAnnotations",
                  value: function () {
                    var e = this.w;
                    if (e.globals.axisCharts) {
                      for (
                        var t = this.yAxisAnnotations.drawYAxisAnnotations(),
                          i = this.xAxisAnnotations.drawXAxisAnnotations(),
                          n = this.pointsAnnotations.drawPointAnnotations(),
                          r = e.config.chart.animations.enabled,
                          a = [t, i, n],
                          o = [i.node, t.node, n.node],
                          s = 0;
                        s < 3;
                        s++
                      )
                        e.globals.dom.elGraphical.add(a[s]),
                          !r ||
                            e.globals.resized ||
                            e.globals.dataChanged ||
                            ("scatter" !== e.config.chart.type &&
                              "bubble" !== e.config.chart.type &&
                              e.globals.dataPoints > 1 &&
                              o[s].classList.add("apexcharts-element-hidden")),
                          e.globals.delayedElements.push({
                            el: o[s],
                            index: 0,
                          });
                      this.helpers.annotationsBackground();
                    }
                  },
                },
                {
                  key: "drawImageAnnos",
                  value: function () {
                    var e = this;
                    this.w.config.annotations.images.map(function (t, i) {
                      e.addImage(t, i);
                    });
                  },
                },
                {
                  key: "drawTextAnnos",
                  value: function () {
                    var e = this;
                    this.w.config.annotations.texts.map(function (t, i) {
                      e.addText(t, i);
                    });
                  },
                },
                {
                  key: "addXaxisAnnotation",
                  value: function (e, t, i) {
                    this.xAxisAnnotations.addXaxisAnnotation(e, t, i);
                  },
                },
                {
                  key: "addYaxisAnnotation",
                  value: function (e, t, i) {
                    this.yAxisAnnotations.addYaxisAnnotation(e, t, i);
                  },
                },
                {
                  key: "addPointAnnotation",
                  value: function (e, t, i) {
                    this.pointsAnnotations.addPointAnnotation(e, t, i);
                  },
                },
                {
                  key: "addText",
                  value: function (e, t) {
                    var i = e.x,
                      n = e.y,
                      r = e.text,
                      a = e.textAnchor,
                      o = e.foreColor,
                      s = e.fontSize,
                      l = e.fontFamily,
                      c = e.fontWeight,
                      u = e.cssClass,
                      d = e.backgroundColor,
                      h = e.borderWidth,
                      f = e.strokeDashArray,
                      p = e.borderRadius,
                      g = e.borderColor,
                      m = e.appendTo,
                      v = void 0 === m ? ".apexcharts-annotations" : m,
                      b = e.paddingLeft,
                      y = void 0 === b ? 4 : b,
                      x = e.paddingRight,
                      w = void 0 === x ? 4 : x,
                      E = e.paddingBottom,
                      _ = void 0 === E ? 2 : E,
                      S = e.paddingTop,
                      A = void 0 === S ? 2 : S,
                      k = this.w,
                      T = this.graphics.drawText({
                        x: i,
                        y: n,
                        text: r,
                        textAnchor: a || "start",
                        fontSize: s || "12px",
                        fontWeight: c || "regular",
                        fontFamily: l || k.config.chart.fontFamily,
                        foreColor: o || k.config.chart.foreColor,
                        cssClass: u,
                      }),
                      C = k.globals.dom.baseEl.querySelector(v);
                    C && C.appendChild(T.node);
                    var O = T.bbox();
                    if (r) {
                      var I = this.graphics.drawRect(
                        O.x - y,
                        O.y - A,
                        O.width + y + w,
                        O.height + _ + A,
                        p,
                        d || "transparent",
                        1,
                        h,
                        g,
                        f
                      );
                      C.insertBefore(I.node, T.node);
                    }
                  },
                },
                {
                  key: "addImage",
                  value: function (e, t) {
                    var i = this.w,
                      n = e.path,
                      r = e.x,
                      a = void 0 === r ? 0 : r,
                      o = e.y,
                      s = void 0 === o ? 0 : o,
                      l = e.width,
                      c = void 0 === l ? 20 : l,
                      u = e.height,
                      d = void 0 === u ? 20 : u,
                      h = e.appendTo,
                      f = void 0 === h ? ".apexcharts-annotations" : h,
                      p = i.globals.dom.Paper.image(n);
                    p.size(c, d).move(a, s);
                    var g = i.globals.dom.baseEl.querySelector(f);
                    return g && g.appendChild(p.node), p;
                  },
                },
                {
                  key: "addXaxisAnnotationExternal",
                  value: function (e, t, i) {
                    return (
                      this.addAnnotationExternal({
                        params: e,
                        pushToMemory: t,
                        context: i,
                        type: "xaxis",
                        contextMethod: i.addXaxisAnnotation,
                      }),
                      i
                    );
                  },
                },
                {
                  key: "addYaxisAnnotationExternal",
                  value: function (e, t, i) {
                    return (
                      this.addAnnotationExternal({
                        params: e,
                        pushToMemory: t,
                        context: i,
                        type: "yaxis",
                        contextMethod: i.addYaxisAnnotation,
                      }),
                      i
                    );
                  },
                },
                {
                  key: "addPointAnnotationExternal",
                  value: function (e, t, i) {
                    return (
                      void 0 === this.invertAxis &&
                        (this.invertAxis = i.w.globals.isBarHorizontal),
                      this.addAnnotationExternal({
                        params: e,
                        pushToMemory: t,
                        context: i,
                        type: "point",
                        contextMethod: i.addPointAnnotation,
                      }),
                      i
                    );
                  },
                },
                {
                  key: "addAnnotationExternal",
                  value: function (e) {
                    var t = e.params,
                      i = e.pushToMemory,
                      n = e.context,
                      r = e.type,
                      a = e.contextMethod,
                      o = n,
                      s = o.w,
                      l = s.globals.dom.baseEl.querySelector(
                        ".apexcharts-".concat(r, "-annotations")
                      ),
                      c = l.childNodes.length + 1,
                      u = new C(),
                      d = Object.assign(
                        {},
                        "xaxis" === r
                          ? u.xAxisAnnotation
                          : "yaxis" === r
                          ? u.yAxisAnnotation
                          : u.pointAnnotation
                      ),
                      h = b.extend(d, t);
                    switch (r) {
                      case "xaxis":
                        this.addXaxisAnnotation(h, l, c);
                        break;
                      case "yaxis":
                        this.addYaxisAnnotation(h, l, c);
                        break;
                      case "point":
                        this.addPointAnnotation(h, l, c);
                    }
                    var f = s.globals.dom.baseEl.querySelector(
                        ".apexcharts-"
                          .concat(r, "-annotations .apexcharts-")
                          .concat(r, "-annotation-label[rel='")
                          .concat(c, "']")
                      ),
                      p = this.helpers.addBackgroundToAnno(f, h);
                    return (
                      p && l.insertBefore(p.node, f),
                      i &&
                        s.globals.memory.methodsToExec.push({
                          context: o,
                          id: h.id ? h.id : b.randomId(),
                          method: a,
                          label: "addAnnotation",
                          params: t,
                        }),
                      n
                    );
                  },
                },
                {
                  key: "clearAnnotations",
                  value: function (e) {
                    var t = e.w,
                      i = t.globals.dom.baseEl.querySelectorAll(
                        ".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"
                      );
                    t.globals.memory.methodsToExec.map(function (e, i) {
                      ("addText" !== e.label && "addAnnotation" !== e.label) ||
                        t.globals.memory.methodsToExec.splice(i, 1);
                    }),
                      (i = b.listToArray(i)),
                      Array.prototype.forEach.call(i, function (e) {
                        for (; e.firstChild; ) e.removeChild(e.firstChild);
                      });
                  },
                },
                {
                  key: "removeAnnotation",
                  value: function (e, t) {
                    var i = e.w,
                      n = i.globals.dom.baseEl.querySelectorAll(".".concat(t));
                    n &&
                      (i.globals.memory.methodsToExec.map(function (e, n) {
                        e.id === t &&
                          i.globals.memory.methodsToExec.splice(n, 1);
                      }),
                      Array.prototype.forEach.call(n, function (e) {
                        e.parentElement.removeChild(e);
                      }));
                  },
                },
              ]),
              e
            );
          })(),
          I = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.months31 = [1, 3, 5, 7, 8, 10, 12]),
                (this.months30 = [2, 4, 6, 9, 11]),
                (this.daysCntOfYear = [
                  0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334,
                ]);
            }
            return (
              c(e, [
                {
                  key: "isValidDate",
                  value: function (e) {
                    return !isNaN(this.parseDate(e));
                  },
                },
                {
                  key: "getTimeStamp",
                  value: function (e) {
                    return Date.parse(e)
                      ? this.w.config.xaxis.labels.datetimeUTC
                        ? new Date(
                            new Date(e).toISOString().substr(0, 25)
                          ).getTime()
                        : new Date(e).getTime()
                      : e;
                  },
                },
                {
                  key: "getDate",
                  value: function (e) {
                    return this.w.config.xaxis.labels.datetimeUTC
                      ? new Date(new Date(e).toUTCString())
                      : new Date(e);
                  },
                },
                {
                  key: "parseDate",
                  value: function (e) {
                    var t = Date.parse(e);
                    if (!isNaN(t)) return this.getTimeStamp(e);
                    var i = Date.parse(
                      e.replace(/-/g, "/").replace(/[a-z]+/gi, " ")
                    );
                    return this.getTimeStamp(i);
                  },
                },
                {
                  key: "parseDateWithTimezone",
                  value: function (e) {
                    return Date.parse(
                      e.replace(/-/g, "/").replace(/[a-z]+/gi, " ")
                    );
                  },
                },
                {
                  key: "formatDate",
                  value: function (e, t) {
                    var i = this.w.globals.locale,
                      n = this.w.config.xaxis.labels.datetimeUTC,
                      r = ["\0"].concat(g(i.months)),
                      a = [""].concat(g(i.shortMonths)),
                      o = [""].concat(g(i.days)),
                      s = [""].concat(g(i.shortDays));
                    function l(e, t) {
                      var i = e + "";
                      for (t = t || 2; i.length < t; ) i = "0" + i;
                      return i;
                    }
                    var c = n ? e.getUTCFullYear() : e.getFullYear();
                    t = (t = (t = t.replace(
                      /(^|[^\\])yyyy+/g,
                      "$1" + c
                    )).replace(
                      /(^|[^\\])yy/g,
                      "$1" + c.toString().substr(2, 2)
                    )).replace(/(^|[^\\])y/g, "$1" + c);
                    var u = (n ? e.getUTCMonth() : e.getMonth()) + 1;
                    t = (t = (t = (t = t.replace(
                      /(^|[^\\])MMMM+/g,
                      "$1" + r[0]
                    )).replace(/(^|[^\\])MMM/g, "$1" + a[0])).replace(
                      /(^|[^\\])MM/g,
                      "$1" + l(u)
                    )).replace(/(^|[^\\])M/g, "$1" + u);
                    var d = n ? e.getUTCDate() : e.getDate();
                    t = (t = (t = (t = t.replace(
                      /(^|[^\\])dddd+/g,
                      "$1" + o[0]
                    )).replace(/(^|[^\\])ddd/g, "$1" + s[0])).replace(
                      /(^|[^\\])dd/g,
                      "$1" + l(d)
                    )).replace(/(^|[^\\])d/g, "$1" + d);
                    var h = n ? e.getUTCHours() : e.getHours(),
                      f = h > 12 ? h - 12 : 0 === h ? 12 : h;
                    t = (t = (t = (t = t.replace(
                      /(^|[^\\])HH+/g,
                      "$1" + l(h)
                    )).replace(/(^|[^\\])H/g, "$1" + h)).replace(
                      /(^|[^\\])hh+/g,
                      "$1" + l(f)
                    )).replace(/(^|[^\\])h/g, "$1" + f);
                    var p = n ? e.getUTCMinutes() : e.getMinutes();
                    t = (t = t.replace(/(^|[^\\])mm+/g, "$1" + l(p))).replace(
                      /(^|[^\\])m/g,
                      "$1" + p
                    );
                    var m = n ? e.getUTCSeconds() : e.getSeconds();
                    t = (t = t.replace(/(^|[^\\])ss+/g, "$1" + l(m))).replace(
                      /(^|[^\\])s/g,
                      "$1" + m
                    );
                    var v = n ? e.getUTCMilliseconds() : e.getMilliseconds();
                    (t = t.replace(/(^|[^\\])fff+/g, "$1" + l(v, 3))),
                      (v = Math.round(v / 10)),
                      (t = t.replace(/(^|[^\\])ff/g, "$1" + l(v))),
                      (v = Math.round(v / 10));
                    var b = h < 12 ? "AM" : "PM";
                    t = (t = (t = t.replace(/(^|[^\\])f/g, "$1" + v)).replace(
                      /(^|[^\\])TT+/g,
                      "$1" + b
                    )).replace(/(^|[^\\])T/g, "$1" + b.charAt(0));
                    var y = b.toLowerCase();
                    t = (t = t.replace(/(^|[^\\])tt+/g, "$1" + y)).replace(
                      /(^|[^\\])t/g,
                      "$1" + y.charAt(0)
                    );
                    var x = -e.getTimezoneOffset(),
                      w = n || !x ? "Z" : x > 0 ? "+" : "-";
                    if (!n) {
                      var E = (x = Math.abs(x)) % 60;
                      w += l(Math.floor(x / 60)) + ":" + l(E);
                    }
                    t = t.replace(/(^|[^\\])K/g, "$1" + w);
                    var _ = (n ? e.getUTCDay() : e.getDay()) + 1;
                    return (t = (t = (t = (t = t.replace(
                      new RegExp(o[0], "g"),
                      o[_]
                    )).replace(new RegExp(s[0], "g"), s[_])).replace(
                      new RegExp(r[0], "g"),
                      r[u]
                    )).replace(new RegExp(a[0], "g"), a[u])).replace(
                      /\\(.)/g,
                      "$1"
                    );
                  },
                },
                {
                  key: "getTimeUnitsfromTimestamp",
                  value: function (e, t, i) {
                    var n = this.w;
                    void 0 !== n.config.xaxis.min && (e = n.config.xaxis.min),
                      void 0 !== n.config.xaxis.max && (t = n.config.xaxis.max);
                    var r = this.getDate(e),
                      a = this.getDate(t),
                      o = this.formatDate(r, "yyyy MM dd HH mm ss fff").split(
                        " "
                      ),
                      s = this.formatDate(a, "yyyy MM dd HH mm ss fff").split(
                        " "
                      );
                    return {
                      minMillisecond: parseInt(o[6], 10),
                      maxMillisecond: parseInt(s[6], 10),
                      minSecond: parseInt(o[5], 10),
                      maxSecond: parseInt(s[5], 10),
                      minMinute: parseInt(o[4], 10),
                      maxMinute: parseInt(s[4], 10),
                      minHour: parseInt(o[3], 10),
                      maxHour: parseInt(s[3], 10),
                      minDate: parseInt(o[2], 10),
                      maxDate: parseInt(s[2], 10),
                      minMonth: parseInt(o[1], 10) - 1,
                      maxMonth: parseInt(s[1], 10) - 1,
                      minYear: parseInt(o[0], 10),
                      maxYear: parseInt(s[0], 10),
                    };
                  },
                },
                {
                  key: "isLeapYear",
                  value: function (e) {
                    return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0;
                  },
                },
                {
                  key: "calculcateLastDaysOfMonth",
                  value: function (e, t, i) {
                    return this.determineDaysOfMonths(e, t) - i;
                  },
                },
                {
                  key: "determineDaysOfYear",
                  value: function (e) {
                    var t = 365;
                    return this.isLeapYear(e) && (t = 366), t;
                  },
                },
                {
                  key: "determineRemainingDaysOfYear",
                  value: function (e, t, i) {
                    var n = this.daysCntOfYear[t] + i;
                    return t > 1 && this.isLeapYear() && n++, n;
                  },
                },
                {
                  key: "determineDaysOfMonths",
                  value: function (e, t) {
                    var i = 30;
                    switch (((e = b.monthMod(e)), !0)) {
                      case this.months30.indexOf(e) > -1:
                        2 === e && (i = this.isLeapYear(t) ? 29 : 28);
                        break;
                      case this.months31.indexOf(e) > -1:
                      default:
                        i = 31;
                    }
                    return i;
                  },
                },
              ]),
              e
            );
          })(),
          M = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.tooltipKeyFormat = "dd MMM");
            }
            return (
              c(e, [
                {
                  key: "xLabelFormat",
                  value: function (e, t, i, n) {
                    var r = this.w;
                    if (
                      "datetime" === r.config.xaxis.type &&
                      void 0 === r.config.xaxis.labels.formatter &&
                      void 0 === r.config.tooltip.x.formatter
                    ) {
                      var a = new I(this.ctx);
                      return a.formatDate(
                        a.getDate(t),
                        r.config.tooltip.x.format
                      );
                    }
                    return e(t, i, n);
                  },
                },
                {
                  key: "defaultGeneralFormatter",
                  value: function (e) {
                    return Array.isArray(e)
                      ? e.map(function (e) {
                          return e;
                        })
                      : e;
                  },
                },
                {
                  key: "defaultYFormatter",
                  value: function (e, t, i) {
                    var n = this.w;
                    return (
                      b.isNumber(e) &&
                        (e =
                          0 !== n.globals.yValueDecimal
                            ? e.toFixed(
                                void 0 !== t.decimalsInFloat
                                  ? t.decimalsInFloat
                                  : n.globals.yValueDecimal
                              )
                            : n.globals.maxYArr[i] - n.globals.minYArr[i] < 5
                            ? e.toFixed(1)
                            : e.toFixed(0)),
                      e
                    );
                  },
                },
                {
                  key: "setLabelFormatters",
                  value: function () {
                    var e = this,
                      t = this.w;
                    return (
                      (t.globals.xaxisTooltipFormatter = function (t) {
                        return e.defaultGeneralFormatter(t);
                      }),
                      (t.globals.ttKeyFormatter = function (t) {
                        return e.defaultGeneralFormatter(t);
                      }),
                      (t.globals.ttZFormatter = function (e) {
                        return e;
                      }),
                      (t.globals.legendFormatter = function (t) {
                        return e.defaultGeneralFormatter(t);
                      }),
                      void 0 !== t.config.xaxis.labels.formatter
                        ? (t.globals.xLabelFormatter =
                            t.config.xaxis.labels.formatter)
                        : (t.globals.xLabelFormatter = function (e) {
                            if (b.isNumber(e)) {
                              if (
                                !t.config.xaxis.convertedCatToNumeric &&
                                "numeric" === t.config.xaxis.type
                              ) {
                                if (b.isNumber(t.config.xaxis.decimalsInFloat))
                                  return e.toFixed(
                                    t.config.xaxis.decimalsInFloat
                                  );
                                var i = t.globals.maxX - t.globals.minX;
                                return i > 0 && i < 100
                                  ? e.toFixed(1)
                                  : e.toFixed(0);
                              }
                              return t.globals.isBarHorizontal &&
                                t.globals.maxY - t.globals.minYArr < 4
                                ? e.toFixed(1)
                                : e.toFixed(0);
                            }
                            return e;
                          }),
                      "function" == typeof t.config.tooltip.x.formatter
                        ? (t.globals.ttKeyFormatter =
                            t.config.tooltip.x.formatter)
                        : (t.globals.ttKeyFormatter =
                            t.globals.xLabelFormatter),
                      "function" == typeof t.config.xaxis.tooltip.formatter &&
                        (t.globals.xaxisTooltipFormatter =
                          t.config.xaxis.tooltip.formatter),
                      (Array.isArray(t.config.tooltip.y) ||
                        void 0 !== t.config.tooltip.y.formatter) &&
                        (t.globals.ttVal = t.config.tooltip.y),
                      void 0 !== t.config.tooltip.z.formatter &&
                        (t.globals.ttZFormatter = t.config.tooltip.z.formatter),
                      void 0 !== t.config.legend.formatter &&
                        (t.globals.legendFormatter = t.config.legend.formatter),
                      t.config.yaxis.forEach(function (i, n) {
                        void 0 !== i.labels.formatter
                          ? (t.globals.yLabelFormatters[n] = i.labels.formatter)
                          : (t.globals.yLabelFormatters[n] = function (r) {
                              return t.globals.xyCharts
                                ? Array.isArray(r)
                                  ? r.map(function (t) {
                                      return e.defaultYFormatter(t, i, n);
                                    })
                                  : e.defaultYFormatter(r, i, n)
                                : r;
                            });
                      }),
                      t.globals
                    );
                  },
                },
                {
                  key: "heatmapLabelFormatters",
                  value: function () {
                    var e = this.w;
                    if ("heatmap" === e.config.chart.type) {
                      e.globals.yAxisScale[0].result =
                        e.globals.seriesNames.slice();
                      var t = e.globals.seriesNames.reduce(function (e, t) {
                        return e.length > t.length ? e : t;
                      }, 0);
                      (e.globals.yAxisScale[0].niceMax = t),
                        (e.globals.yAxisScale[0].niceMin = t);
                    }
                  },
                },
              ]),
              e
            );
          })(),
          L = function (e) {
            var t,
              i = e.isTimeline,
              n = e.ctx,
              r = e.seriesIndex,
              a = e.dataPointIndex,
              o = e.y1,
              s = e.y2,
              l = e.w,
              c = l.globals.seriesRangeStart[r][a],
              u = l.globals.seriesRangeEnd[r][a],
              d = l.globals.labels[a],
              h = l.config.series[r].name ? l.config.series[r].name : "",
              f = l.globals.ttKeyFormatter,
              p = l.config.tooltip.y.title.formatter,
              g = { w: l, seriesIndex: r, dataPointIndex: a, start: c, end: u };
            "function" == typeof p && (h = p(h, g)),
              null !== (t = l.config.series[r].data[a]) &&
                void 0 !== t &&
                t.x &&
                (d = l.config.series[r].data[a].x),
              i ||
                ("datetime" === l.config.xaxis.type &&
                  (d = new M(n).xLabelFormat(l.globals.ttKeyFormatter, d, d, {
                    i: void 0,
                    dateFormatter: new I(n).formatDate,
                    w: l,
                  }))),
              "function" == typeof f && (d = f(d, g)),
              Number.isFinite(o) && Number.isFinite(s) && ((c = o), (u = s));
            var m = "",
              v = "",
              b = l.globals.colors[r];
            if (void 0 === l.config.tooltip.x.formatter)
              if ("datetime" === l.config.xaxis.type) {
                var y = new I(n);
                (m = y.formatDate(y.getDate(c), l.config.tooltip.x.format)),
                  (v = y.formatDate(y.getDate(u), l.config.tooltip.x.format));
              } else (m = c), (v = u);
            else
              (m = l.config.tooltip.x.formatter(c)),
                (v = l.config.tooltip.x.formatter(u));
            return {
              start: c,
              end: u,
              startVal: m,
              endVal: v,
              ylabel: d,
              color: b,
              seriesName: h,
            };
          },
          P = function (e) {
            var t = e.color,
              i = e.seriesName,
              n = e.ylabel,
              r = e.start,
              a = e.end,
              o = e.seriesIndex,
              s = e.dataPointIndex,
              l = e.ctx.tooltip.tooltipLabels.getFormatters(o);
            (r = l.yLbFormatter(r)), (a = l.yLbFormatter(a));
            var c = l.yLbFormatter(e.w.globals.series[o][s]),
              u = '<span class="value start-value">\n  '
                .concat(
                  r,
                  '\n  </span> <span class="separator">-</span> <span class="value end-value">\n  '
                )
                .concat(a, "\n  </span>");
            return (
              '<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: ' +
              t +
              '">' +
              (i || "") +
              '</span></div><div> <span class="category">' +
              n +
              ": </span> " +
              (e.w.globals.comboCharts
                ? "rangeArea" === e.w.config.series[o].type ||
                  "rangeBar" === e.w.config.series[o].type
                  ? u
                  : "<span>".concat(c, "</span>")
                : u) +
              " </div></div>"
            );
          },
          D = (function () {
            function e(t) {
              s(this, e), (this.opts = t);
            }
            return (
              c(e, [
                {
                  key: "line",
                  value: function () {
                    return {
                      chart: { animations: { easing: "swing" } },
                      dataLabels: { enabled: !1 },
                      stroke: { width: 5, curve: "straight" },
                      markers: { size: 0, hover: { sizeOffset: 6 } },
                      xaxis: { crosshairs: { width: 1 } },
                    };
                  },
                },
                {
                  key: "sparkline",
                  value: function (e) {
                    return (
                      (this.opts.yaxis[0].show = !1),
                      (this.opts.yaxis[0].title.text = ""),
                      (this.opts.yaxis[0].axisBorder.show = !1),
                      (this.opts.yaxis[0].axisTicks.show = !1),
                      (this.opts.yaxis[0].floating = !0),
                      b.extend(e, {
                        grid: {
                          show: !1,
                          padding: { left: 0, right: 0, top: 0, bottom: 0 },
                        },
                        legend: { show: !1 },
                        xaxis: {
                          labels: { show: !1 },
                          tooltip: { enabled: !1 },
                          axisBorder: { show: !1 },
                          axisTicks: { show: !1 },
                        },
                        chart: { toolbar: { show: !1 }, zoom: { enabled: !1 } },
                        dataLabels: { enabled: !1 },
                      })
                    );
                  },
                },
                {
                  key: "bar",
                  value: function () {
                    return {
                      chart: { stacked: !1, animations: { easing: "swing" } },
                      plotOptions: {
                        bar: { dataLabels: { position: "center" } },
                      },
                      dataLabels: {
                        style: { colors: ["#fff"] },
                        background: { enabled: !1 },
                      },
                      stroke: { width: 0, lineCap: "round" },
                      fill: { opacity: 0.85 },
                      legend: {
                        markers: { shape: "square", radius: 2, size: 8 },
                      },
                      tooltip: { shared: !1, intersect: !0 },
                      xaxis: {
                        tooltip: { enabled: !1 },
                        tickPlacement: "between",
                        crosshairs: {
                          width: "barWidth",
                          position: "back",
                          fill: { type: "gradient" },
                          dropShadow: { enabled: !1 },
                          stroke: { width: 0 },
                        },
                      },
                    };
                  },
                },
                {
                  key: "candlestick",
                  value: function () {
                    var e = this;
                    return {
                      stroke: { width: 1, colors: ["#333"] },
                      fill: { opacity: 1 },
                      dataLabels: { enabled: !1 },
                      tooltip: {
                        shared: !0,
                        custom: function (t) {
                          var i = t.seriesIndex,
                            n = t.dataPointIndex,
                            r = t.w;
                          return e._getBoxTooltip(
                            r,
                            i,
                            n,
                            ["Open", "High", "", "Low", "Close"],
                            "candlestick"
                          );
                        },
                      },
                      states: { active: { filter: { type: "none" } } },
                      xaxis: { crosshairs: { width: 1 } },
                    };
                  },
                },
                {
                  key: "boxPlot",
                  value: function () {
                    var e = this;
                    return {
                      chart: {
                        animations: { dynamicAnimation: { enabled: !1 } },
                      },
                      stroke: { width: 1, colors: ["#24292e"] },
                      dataLabels: { enabled: !1 },
                      tooltip: {
                        shared: !0,
                        custom: function (t) {
                          var i = t.seriesIndex,
                            n = t.dataPointIndex,
                            r = t.w;
                          return e._getBoxTooltip(
                            r,
                            i,
                            n,
                            ["Minimum", "Q1", "Median", "Q3", "Maximum"],
                            "boxPlot"
                          );
                        },
                      },
                      markers: {
                        size: 5,
                        strokeWidth: 1,
                        strokeColors: "#111",
                      },
                      xaxis: { crosshairs: { width: 1 } },
                    };
                  },
                },
                {
                  key: "rangeBar",
                  value: function () {
                    return {
                      stroke: { width: 0, lineCap: "square" },
                      plotOptions: {
                        bar: {
                          borderRadius: 0,
                          dataLabels: { position: "center" },
                        },
                      },
                      dataLabels: {
                        enabled: !1,
                        formatter: function (e, t) {
                          t.ctx;
                          var i = t.seriesIndex,
                            n = t.dataPointIndex,
                            r = t.w,
                            a = function () {
                              var e = r.globals.seriesRangeStart[i][n];
                              return r.globals.seriesRangeEnd[i][n] - e;
                            };
                          return r.globals.comboCharts
                            ? "rangeBar" === r.config.series[i].type ||
                              "rangeArea" === r.config.series[i].type
                              ? a()
                              : e
                            : a();
                        },
                        background: { enabled: !1 },
                        style: { colors: ["#fff"] },
                      },
                      tooltip: {
                        shared: !1,
                        followCursor: !0,
                        custom: function (e) {
                          return e.w.config.plotOptions &&
                            e.w.config.plotOptions.bar &&
                            e.w.config.plotOptions.bar.horizontal
                            ? (function (e) {
                                var t = L(a(a({}, e), {}, { isTimeline: !0 })),
                                  i = t.color,
                                  n = t.seriesName,
                                  r = t.ylabel,
                                  o = t.startVal,
                                  s = t.endVal;
                                return P(
                                  a(
                                    a({}, e),
                                    {},
                                    {
                                      color: i,
                                      seriesName: n,
                                      ylabel: r,
                                      start: o,
                                      end: s,
                                    }
                                  )
                                );
                              })(e)
                            : (function (e) {
                                var t = L(e),
                                  i = t.color,
                                  n = t.seriesName,
                                  r = t.ylabel,
                                  o = t.start,
                                  s = t.end;
                                return P(
                                  a(
                                    a({}, e),
                                    {},
                                    {
                                      color: i,
                                      seriesName: n,
                                      ylabel: r,
                                      start: o,
                                      end: s,
                                    }
                                  )
                                );
                              })(e);
                        },
                      },
                      xaxis: {
                        tickPlacement: "between",
                        tooltip: { enabled: !1 },
                        crosshairs: { stroke: { width: 0 } },
                      },
                    };
                  },
                },
                {
                  key: "area",
                  value: function () {
                    return {
                      stroke: {
                        width: 4,
                        fill: {
                          type: "solid",
                          gradient: {
                            inverseColors: !1,
                            shade: "light",
                            type: "vertical",
                            opacityFrom: 0.65,
                            opacityTo: 0.5,
                            stops: [0, 100, 100],
                          },
                        },
                      },
                      fill: {
                        type: "gradient",
                        gradient: {
                          inverseColors: !1,
                          shade: "light",
                          type: "vertical",
                          opacityFrom: 0.65,
                          opacityTo: 0.5,
                          stops: [0, 100, 100],
                        },
                      },
                      markers: { size: 0, hover: { sizeOffset: 6 } },
                      tooltip: { followCursor: !1 },
                    };
                  },
                },
                {
                  key: "rangeArea",
                  value: function () {
                    return {
                      stroke: { curve: "straight", width: 0 },
                      fill: { type: "solid", opacity: 0.6 },
                      markers: { size: 0 },
                      states: {
                        hover: { filter: { type: "none" } },
                        active: { filter: { type: "none" } },
                      },
                      tooltip: {
                        intersect: !1,
                        shared: !0,
                        followCursor: !0,
                        custom: function (e) {
                          return (function (e) {
                            var t = L(e),
                              i = t.color,
                              n = t.seriesName,
                              r = t.ylabel,
                              o = t.start,
                              s = t.end;
                            return P(
                              a(
                                a({}, e),
                                {},
                                {
                                  color: i,
                                  seriesName: n,
                                  ylabel: r,
                                  start: o,
                                  end: s,
                                }
                              )
                            );
                          })(e);
                        },
                      },
                    };
                  },
                },
                {
                  key: "brush",
                  value: function (e) {
                    return b.extend(e, {
                      chart: {
                        toolbar: { autoSelected: "selection", show: !1 },
                        zoom: { enabled: !1 },
                      },
                      dataLabels: { enabled: !1 },
                      stroke: { width: 1 },
                      tooltip: { enabled: !1 },
                      xaxis: { tooltip: { enabled: !1 } },
                    });
                  },
                },
                {
                  key: "stacked100",
                  value: function (e) {
                    (e.dataLabels = e.dataLabels || {}),
                      (e.dataLabels.formatter =
                        e.dataLabels.formatter || void 0);
                    var t = e.dataLabels.formatter;
                    return (
                      e.yaxis.forEach(function (t, i) {
                        (e.yaxis[i].min = 0), (e.yaxis[i].max = 100);
                      }),
                      "bar" === e.chart.type &&
                        (e.dataLabels.formatter =
                          t ||
                          function (e) {
                            return "number" == typeof e && e
                              ? e.toFixed(0) + "%"
                              : e;
                          }),
                      e
                    );
                  },
                },
                {
                  key: "convertCatToNumeric",
                  value: function (e) {
                    return (e.xaxis.convertedCatToNumeric = !0), e;
                  },
                },
                {
                  key: "convertCatToNumericXaxis",
                  value: function (e, t, i) {
                    (e.xaxis.type = "numeric"),
                      (e.xaxis.labels = e.xaxis.labels || {}),
                      (e.xaxis.labels.formatter =
                        e.xaxis.labels.formatter ||
                        function (e) {
                          return b.isNumber(e) ? Math.floor(e) : e;
                        });
                    var n = e.xaxis.labels.formatter,
                      r =
                        e.xaxis.categories && e.xaxis.categories.length
                          ? e.xaxis.categories
                          : e.labels;
                    return (
                      i &&
                        i.length &&
                        (r = i.map(function (e) {
                          return Array.isArray(e) ? e : String(e);
                        })),
                      r &&
                        r.length &&
                        (e.xaxis.labels.formatter = function (e) {
                          return b.isNumber(e) ? n(r[Math.floor(e) - 1]) : n(e);
                        }),
                      (e.xaxis.categories = []),
                      (e.labels = []),
                      (e.xaxis.tickAmount = e.xaxis.tickAmount || "dataPoints"),
                      e
                    );
                  },
                },
                {
                  key: "bubble",
                  value: function () {
                    return {
                      dataLabels: { style: { colors: ["#fff"] } },
                      tooltip: { shared: !1, intersect: !0 },
                      xaxis: { crosshairs: { width: 0 } },
                      fill: {
                        type: "solid",
                        gradient: {
                          shade: "light",
                          inverse: !0,
                          shadeIntensity: 0.55,
                          opacityFrom: 0.4,
                          opacityTo: 0.8,
                        },
                      },
                    };
                  },
                },
                {
                  key: "scatter",
                  value: function () {
                    return {
                      dataLabels: { enabled: !1 },
                      tooltip: { shared: !1, intersect: !0 },
                      markers: {
                        size: 6,
                        strokeWidth: 1,
                        hover: { sizeOffset: 2 },
                      },
                    };
                  },
                },
                {
                  key: "heatmap",
                  value: function () {
                    return {
                      chart: { stacked: !1 },
                      fill: { opacity: 1 },
                      dataLabels: { style: { colors: ["#fff"] } },
                      stroke: { colors: ["#fff"] },
                      tooltip: {
                        followCursor: !0,
                        marker: { show: !1 },
                        x: { show: !1 },
                      },
                      legend: {
                        position: "top",
                        markers: { shape: "square", size: 10, offsetY: 2 },
                      },
                      grid: { padding: { right: 20 } },
                    };
                  },
                },
                {
                  key: "treemap",
                  value: function () {
                    return {
                      chart: { zoom: { enabled: !1 } },
                      dataLabels: {
                        style: {
                          fontSize: 14,
                          fontWeight: 600,
                          colors: ["#fff"],
                        },
                      },
                      stroke: { show: !0, width: 2, colors: ["#fff"] },
                      legend: { show: !1 },
                      fill: { gradient: { stops: [0, 100] } },
                      tooltip: { followCursor: !0, x: { show: !1 } },
                      grid: { padding: { left: 0, right: 0 } },
                      xaxis: {
                        crosshairs: { show: !1 },
                        tooltip: { enabled: !1 },
                      },
                    };
                  },
                },
                {
                  key: "pie",
                  value: function () {
                    return {
                      chart: { toolbar: { show: !1 } },
                      plotOptions: { pie: { donut: { labels: { show: !1 } } } },
                      dataLabels: {
                        formatter: function (e) {
                          return e.toFixed(1) + "%";
                        },
                        style: { colors: ["#fff"] },
                        background: { enabled: !1 },
                        dropShadow: { enabled: !0 },
                      },
                      stroke: { colors: ["#fff"] },
                      fill: {
                        opacity: 1,
                        gradient: { shade: "light", stops: [0, 100] },
                      },
                      tooltip: { theme: "dark", fillSeriesColor: !0 },
                      legend: { position: "right" },
                    };
                  },
                },
                {
                  key: "donut",
                  value: function () {
                    return {
                      chart: { toolbar: { show: !1 } },
                      dataLabels: {
                        formatter: function (e) {
                          return e.toFixed(1) + "%";
                        },
                        style: { colors: ["#fff"] },
                        background: { enabled: !1 },
                        dropShadow: { enabled: !0 },
                      },
                      stroke: { colors: ["#fff"] },
                      fill: {
                        opacity: 1,
                        gradient: {
                          shade: "light",
                          shadeIntensity: 0.35,
                          stops: [80, 100],
                          opacityFrom: 1,
                          opacityTo: 1,
                        },
                      },
                      tooltip: { theme: "dark", fillSeriesColor: !0 },
                      legend: { position: "right" },
                    };
                  },
                },
                {
                  key: "polarArea",
                  value: function () {
                    return (
                      (this.opts.yaxis[0].tickAmount = this.opts.yaxis[0]
                        .tickAmount
                        ? this.opts.yaxis[0].tickAmount
                        : 6),
                      {
                        chart: { toolbar: { show: !1 } },
                        dataLabels: {
                          formatter: function (e) {
                            return e.toFixed(1) + "%";
                          },
                          enabled: !1,
                        },
                        stroke: { show: !0, width: 2 },
                        fill: { opacity: 0.7 },
                        tooltip: { theme: "dark", fillSeriesColor: !0 },
                        legend: { position: "right" },
                      }
                    );
                  },
                },
                {
                  key: "radar",
                  value: function () {
                    return (
                      (this.opts.yaxis[0].labels.offsetY = this.opts.yaxis[0]
                        .labels.offsetY
                        ? this.opts.yaxis[0].labels.offsetY
                        : 6),
                      {
                        dataLabels: {
                          enabled: !1,
                          style: { fontSize: "11px" },
                        },
                        stroke: { width: 2 },
                        markers: { size: 3, strokeWidth: 1, strokeOpacity: 1 },
                        fill: { opacity: 0.2 },
                        tooltip: {
                          shared: !1,
                          intersect: !0,
                          followCursor: !0,
                        },
                        grid: { show: !1 },
                        xaxis: {
                          labels: {
                            formatter: function (e) {
                              return e;
                            },
                            style: { colors: ["#a8a8a8"], fontSize: "11px" },
                          },
                          tooltip: { enabled: !1 },
                          crosshairs: { show: !1 },
                        },
                      }
                    );
                  },
                },
                {
                  key: "radialBar",
                  value: function () {
                    return {
                      chart: {
                        animations: {
                          dynamicAnimation: { enabled: !0, speed: 800 },
                        },
                        toolbar: { show: !1 },
                      },
                      fill: {
                        gradient: {
                          shade: "dark",
                          shadeIntensity: 0.4,
                          inverseColors: !1,
                          type: "diagonal2",
                          opacityFrom: 1,
                          opacityTo: 1,
                          stops: [70, 98, 100],
                        },
                      },
                      legend: { show: !1, position: "right" },
                      tooltip: { enabled: !1, fillSeriesColor: !0 },
                    };
                  },
                },
                {
                  key: "_getBoxTooltip",
                  value: function (e, t, i, n, r) {
                    var a = e.globals.seriesCandleO[t][i],
                      o = e.globals.seriesCandleH[t][i],
                      s = e.globals.seriesCandleM[t][i],
                      l = e.globals.seriesCandleL[t][i],
                      c = e.globals.seriesCandleC[t][i];
                    return e.config.series[t].type &&
                      e.config.series[t].type !== r
                      ? '<div class="apexcharts-custom-tooltip">\n          '
                          .concat(
                            e.config.series[t].name
                              ? e.config.series[t].name
                              : "series-" + (t + 1),
                            ": <strong>"
                          )
                          .concat(
                            e.globals.series[t][i],
                            "</strong>\n        </div>"
                          )
                      : '<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(
                          e.config.chart.type,
                          '">'
                        ) +
                          "<div>".concat(n[0], ': <span class="value">') +
                          a +
                          "</span></div>" +
                          "<div>".concat(n[1], ': <span class="value">') +
                          o +
                          "</span></div>" +
                          (s
                            ? "<div>".concat(n[2], ': <span class="value">') +
                              s +
                              "</span></div>"
                            : "") +
                          "<div>".concat(n[3], ': <span class="value">') +
                          l +
                          "</span></div>" +
                          "<div>".concat(n[4], ': <span class="value">') +
                          c +
                          "</span></div></div>";
                  },
                },
              ]),
              e
            );
          })(),
          R = (function () {
            function e(t) {
              s(this, e), (this.opts = t);
            }
            return (
              c(e, [
                {
                  key: "init",
                  value: function (e) {
                    var t = e.responsiveOverride,
                      i = this.opts,
                      n = new C(),
                      r = new D(i);
                    (this.chartType = i.chart.type),
                      (i = this.extendYAxis(i)),
                      (i = this.extendAnnotations(i));
                    var a = n.init(),
                      s = {};
                    if (i && "object" === o(i)) {
                      var l = {};
                      (l =
                        -1 !==
                        [
                          "line",
                          "area",
                          "bar",
                          "candlestick",
                          "boxPlot",
                          "rangeBar",
                          "rangeArea",
                          "bubble",
                          "scatter",
                          "heatmap",
                          "treemap",
                          "pie",
                          "polarArea",
                          "donut",
                          "radar",
                          "radialBar",
                        ].indexOf(i.chart.type)
                          ? r[i.chart.type]()
                          : r.line()),
                        i.chart.brush &&
                          i.chart.brush.enabled &&
                          (l = r.brush(l)),
                        i.chart.stacked &&
                          "100%" === i.chart.stackType &&
                          (i = r.stacked100(i)),
                        this.checkForDarkTheme(window.Apex),
                        this.checkForDarkTheme(i),
                        (i.xaxis = i.xaxis || window.Apex.xaxis || {}),
                        t || (i.xaxis.convertedCatToNumeric = !1),
                        (((i = this.checkForCatToNumericXAxis(
                          this.chartType,
                          l,
                          i
                        )).chart.sparkline &&
                          i.chart.sparkline.enabled) ||
                          (window.Apex.chart &&
                            window.Apex.chart.sparkline &&
                            window.Apex.chart.sparkline.enabled)) &&
                          (l = r.sparkline(l)),
                        (s = b.extend(a, l));
                    }
                    var c = b.extend(s, window.Apex);
                    return (a = b.extend(c, i)), this.handleUserInputErrors(a);
                  },
                },
                {
                  key: "checkForCatToNumericXAxis",
                  value: function (e, t, i) {
                    var n = new D(i),
                      r =
                        ("bar" === e || "boxPlot" === e) &&
                        i.plotOptions &&
                        i.plotOptions.bar &&
                        i.plotOptions.bar.horizontal,
                      a =
                        "pie" === e ||
                        "polarArea" === e ||
                        "donut" === e ||
                        "radar" === e ||
                        "radialBar" === e ||
                        "heatmap" === e,
                      o =
                        "datetime" !== i.xaxis.type &&
                        "numeric" !== i.xaxis.type,
                      s = i.xaxis.tickPlacement
                        ? i.xaxis.tickPlacement
                        : t.xaxis && t.xaxis.tickPlacement;
                    return (
                      r ||
                        a ||
                        !o ||
                        "between" === s ||
                        (i = n.convertCatToNumeric(i)),
                      i
                    );
                  },
                },
                {
                  key: "extendYAxis",
                  value: function (e, t) {
                    var i = new C();
                    (void 0 === e.yaxis ||
                      !e.yaxis ||
                      (Array.isArray(e.yaxis) && 0 === e.yaxis.length)) &&
                      (e.yaxis = {}),
                      e.yaxis.constructor !== Array &&
                        window.Apex.yaxis &&
                        window.Apex.yaxis.constructor !== Array &&
                        (e.yaxis = b.extend(e.yaxis, window.Apex.yaxis)),
                      e.yaxis.constructor !== Array
                        ? (e.yaxis = [b.extend(i.yAxis, e.yaxis)])
                        : (e.yaxis = b.extendArray(e.yaxis, i.yAxis));
                    var n = !1;
                    e.yaxis.forEach(function (e) {
                      e.logarithmic && (n = !0);
                    });
                    var r = e.series;
                    return (
                      t && !r && (r = t.config.series),
                      n &&
                        r.length !== e.yaxis.length &&
                        r.length &&
                        (e.yaxis = r.map(function (t, n) {
                          if (
                            (t.name || (r[n].name = "series-".concat(n + 1)),
                            e.yaxis[n])
                          )
                            return (
                              (e.yaxis[n].seriesName = r[n].name), e.yaxis[n]
                            );
                          var a = b.extend(i.yAxis, e.yaxis[0]);
                          return (a.show = !1), a;
                        })),
                      n &&
                        r.length > 1 &&
                        r.length !== e.yaxis.length &&
                        console.warn(
                          "A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."
                        ),
                      e
                    );
                  },
                },
                {
                  key: "extendAnnotations",
                  value: function (e) {
                    return (
                      void 0 === e.annotations &&
                        ((e.annotations = {}),
                        (e.annotations.yaxis = []),
                        (e.annotations.xaxis = []),
                        (e.annotations.points = [])),
                      (e = this.extendYAxisAnnotations(e)),
                      (e = this.extendXAxisAnnotations(e)),
                      this.extendPointAnnotations(e)
                    );
                  },
                },
                {
                  key: "extendYAxisAnnotations",
                  value: function (e) {
                    var t = new C();
                    return (
                      (e.annotations.yaxis = b.extendArray(
                        void 0 !== e.annotations.yaxis
                          ? e.annotations.yaxis
                          : [],
                        t.yAxisAnnotation
                      )),
                      e
                    );
                  },
                },
                {
                  key: "extendXAxisAnnotations",
                  value: function (e) {
                    var t = new C();
                    return (
                      (e.annotations.xaxis = b.extendArray(
                        void 0 !== e.annotations.xaxis
                          ? e.annotations.xaxis
                          : [],
                        t.xAxisAnnotation
                      )),
                      e
                    );
                  },
                },
                {
                  key: "extendPointAnnotations",
                  value: function (e) {
                    var t = new C();
                    return (
                      (e.annotations.points = b.extendArray(
                        void 0 !== e.annotations.points
                          ? e.annotations.points
                          : [],
                        t.pointAnnotation
                      )),
                      e
                    );
                  },
                },
                {
                  key: "checkForDarkTheme",
                  value: function (e) {
                    e.theme &&
                      "dark" === e.theme.mode &&
                      (e.tooltip || (e.tooltip = {}),
                      "light" !== e.tooltip.theme && (e.tooltip.theme = "dark"),
                      e.chart.foreColor || (e.chart.foreColor = "#f6f7f8"),
                      e.chart.background || (e.chart.background = "#424242"),
                      e.theme.palette || (e.theme.palette = "palette4"));
                  },
                },
                {
                  key: "handleUserInputErrors",
                  value: function (e) {
                    var t = e;
                    if (t.tooltip.shared && t.tooltip.intersect)
                      throw new Error(
                        "tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false."
                      );
                    if (
                      "bar" === t.chart.type &&
                      t.plotOptions.bar.horizontal
                    ) {
                      if (t.yaxis.length > 1)
                        throw new Error(
                          "Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false"
                        );
                      t.yaxis[0].reversed && (t.yaxis[0].opposite = !0),
                        (t.xaxis.tooltip.enabled = !1),
                        (t.yaxis[0].tooltip.enabled = !1),
                        (t.chart.zoom.enabled = !1);
                    }
                    return (
                      ("bar" !== t.chart.type && "rangeBar" !== t.chart.type) ||
                        (t.tooltip.shared &&
                          "barWidth" === t.xaxis.crosshairs.width &&
                          t.series.length > 1 &&
                          (t.xaxis.crosshairs.width = "tickWidth")),
                      ("candlestick" !== t.chart.type &&
                        "boxPlot" !== t.chart.type) ||
                        (t.yaxis[0].reversed &&
                          (console.warn(
                            "Reversed y-axis in ".concat(
                              t.chart.type,
                              " chart is not supported."
                            )
                          ),
                          (t.yaxis[0].reversed = !1))),
                      t
                    );
                  },
                },
              ]),
              e
            );
          })(),
          N = (function () {
            function e() {
              s(this, e);
            }
            return (
              c(e, [
                {
                  key: "initGlobalVars",
                  value: function (e) {
                    (e.series = []),
                      (e.seriesCandleO = []),
                      (e.seriesCandleH = []),
                      (e.seriesCandleM = []),
                      (e.seriesCandleL = []),
                      (e.seriesCandleC = []),
                      (e.seriesRangeStart = []),
                      (e.seriesRangeEnd = []),
                      (e.seriesRange = []),
                      (e.seriesPercent = []),
                      (e.seriesGoals = []),
                      (e.seriesX = []),
                      (e.seriesZ = []),
                      (e.seriesNames = []),
                      (e.seriesTotals = []),
                      (e.seriesLog = []),
                      (e.seriesColors = []),
                      (e.stackedSeriesTotals = []),
                      (e.seriesXvalues = []),
                      (e.seriesYvalues = []),
                      (e.labels = []),
                      (e.hasGroups = !1),
                      (e.groups = []),
                      (e.categoryLabels = []),
                      (e.timescaleLabels = []),
                      (e.noLabelsProvided = !1),
                      (e.resizeTimer = null),
                      (e.selectionResizeTimer = null),
                      (e.delayedElements = []),
                      (e.pointsArray = []),
                      (e.dataLabelsRects = []),
                      (e.isXNumeric = !1),
                      (e.skipLastTimelinelabel = !1),
                      (e.skipFirstTimelinelabel = !1),
                      (e.isDataXYZ = !1),
                      (e.isMultiLineX = !1),
                      (e.isMultipleYAxis = !1),
                      (e.maxY = -Number.MAX_VALUE),
                      (e.minY = Number.MIN_VALUE),
                      (e.minYArr = []),
                      (e.maxYArr = []),
                      (e.maxX = -Number.MAX_VALUE),
                      (e.minX = Number.MAX_VALUE),
                      (e.initialMaxX = -Number.MAX_VALUE),
                      (e.initialMinX = Number.MAX_VALUE),
                      (e.maxDate = 0),
                      (e.minDate = Number.MAX_VALUE),
                      (e.minZ = Number.MAX_VALUE),
                      (e.maxZ = -Number.MAX_VALUE),
                      (e.minXDiff = Number.MAX_VALUE),
                      (e.yAxisScale = []),
                      (e.xAxisScale = null),
                      (e.xAxisTicksPositions = []),
                      (e.yLabelsCoords = []),
                      (e.yTitleCoords = []),
                      (e.barPadForNumericAxis = 0),
                      (e.padHorizontal = 0),
                      (e.xRange = 0),
                      (e.yRange = []),
                      (e.zRange = 0),
                      (e.dataPoints = 0),
                      (e.xTickAmount = 0);
                  },
                },
                {
                  key: "globalVars",
                  value: function (e) {
                    return {
                      chartID: null,
                      cuid: null,
                      events: {
                        beforeMount: [],
                        mounted: [],
                        updated: [],
                        clicked: [],
                        selection: [],
                        dataPointSelection: [],
                        zoomed: [],
                        scrolled: [],
                      },
                      colors: [],
                      clientX: null,
                      clientY: null,
                      fill: { colors: [] },
                      stroke: { colors: [] },
                      dataLabels: { style: { colors: [] } },
                      radarPolygons: { fill: { colors: [] } },
                      markers: {
                        colors: [],
                        size: e.markers.size,
                        largestSize: 0,
                      },
                      animationEnded: !1,
                      isTouchDevice:
                        "ontouchstart" in window || navigator.msMaxTouchPoints,
                      isDirty: !1,
                      isExecCalled: !1,
                      initialConfig: null,
                      initialSeries: [],
                      lastXAxis: [],
                      lastYAxis: [],
                      columnSeries: null,
                      labels: [],
                      timescaleLabels: [],
                      noLabelsProvided: !1,
                      allSeriesCollapsed: !1,
                      collapsedSeries: [],
                      collapsedSeriesIndices: [],
                      ancillaryCollapsedSeries: [],
                      ancillaryCollapsedSeriesIndices: [],
                      risingSeries: [],
                      dataFormatXNumeric: !1,
                      capturedSeriesIndex: -1,
                      capturedDataPointIndex: -1,
                      selectedDataPoints: [],
                      goldenPadding: 35,
                      invalidLogScale: !1,
                      ignoreYAxisIndexes: [],
                      yAxisSameScaleIndices: [],
                      maxValsInArrayIndex: 0,
                      radialSize: 0,
                      selection: void 0,
                      zoomEnabled:
                        "zoom" === e.chart.toolbar.autoSelected &&
                        e.chart.toolbar.tools.zoom &&
                        e.chart.zoom.enabled,
                      panEnabled:
                        "pan" === e.chart.toolbar.autoSelected &&
                        e.chart.toolbar.tools.pan,
                      selectionEnabled:
                        "selection" === e.chart.toolbar.autoSelected &&
                        e.chart.toolbar.tools.selection,
                      yaxis: null,
                      mousedown: !1,
                      lastClientPosition: {},
                      visibleXRange: void 0,
                      yValueDecimal: 0,
                      total: 0,
                      SVGNS: "http://www.w3.org/2000/svg",
                      svgWidth: 0,
                      svgHeight: 0,
                      noData: !1,
                      locale: {},
                      dom: {},
                      memory: { methodsToExec: [] },
                      shouldAnimate: !0,
                      skipLastTimelinelabel: !1,
                      skipFirstTimelinelabel: !1,
                      delayedElements: [],
                      axisCharts: !0,
                      isDataXYZ: !1,
                      resized: !1,
                      resizeTimer: null,
                      comboCharts: !1,
                      dataChanged: !1,
                      previousPaths: [],
                      allSeriesHasEqualX: !0,
                      pointsArray: [],
                      dataLabelsRects: [],
                      lastDrawnDataLabelsIndexes: [],
                      hasNullValues: !1,
                      easing: null,
                      zoomed: !1,
                      gridWidth: 0,
                      gridHeight: 0,
                      rotateXLabels: !1,
                      defaultLabels: !1,
                      xLabelFormatter: void 0,
                      yLabelFormatters: [],
                      xaxisTooltipFormatter: void 0,
                      ttKeyFormatter: void 0,
                      ttVal: void 0,
                      ttZFormatter: void 0,
                      LINE_HEIGHT_RATIO: 1.618,
                      xAxisLabelsHeight: 0,
                      xAxisGroupLabelsHeight: 0,
                      xAxisLabelsWidth: 0,
                      yAxisLabelsWidth: 0,
                      scaleX: 1,
                      scaleY: 1,
                      translateX: 0,
                      translateY: 0,
                      translateYAxisX: [],
                      yAxisWidths: [],
                      translateXAxisY: 0,
                      translateXAxisX: 0,
                      tooltip: null,
                    };
                  },
                },
                {
                  key: "init",
                  value: function (e) {
                    var t = this.globalVars(e);
                    return (
                      this.initGlobalVars(t),
                      (t.initialConfig = b.extend({}, e)),
                      (t.initialSeries = b.clone(e.series)),
                      (t.lastXAxis = b.clone(t.initialConfig.xaxis)),
                      (t.lastYAxis = b.clone(t.initialConfig.yaxis)),
                      t
                    );
                  },
                },
              ]),
              e
            );
          })(),
          F = (function () {
            function e(t) {
              s(this, e), (this.opts = t);
            }
            return (
              c(e, [
                {
                  key: "init",
                  value: function () {
                    var e = new R(this.opts).init({ responsiveOverride: !1 });
                    return { config: e, globals: new N().init(e) };
                  },
                },
              ]),
              e
            );
          })(),
          B = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.opts = null),
                (this.seriesIndex = 0);
            }
            return (
              c(e, [
                {
                  key: "clippedImgArea",
                  value: function (e) {
                    var t = this.w,
                      i = t.config,
                      n = parseInt(t.globals.gridWidth, 10),
                      r = parseInt(t.globals.gridHeight, 10),
                      a = n > r ? n : r,
                      o = e.image,
                      s = 0,
                      l = 0;
                    void 0 === e.width && void 0 === e.height
                      ? void 0 !== i.fill.image.width &&
                        void 0 !== i.fill.image.height
                        ? ((s = i.fill.image.width + 1),
                          (l = i.fill.image.height))
                        : ((s = a + 1), (l = a))
                      : ((s = e.width), (l = e.height));
                    var c = document.createElementNS(
                      t.globals.SVGNS,
                      "pattern"
                    );
                    w.setAttrs(c, {
                      id: e.patternID,
                      patternUnits: e.patternUnits
                        ? e.patternUnits
                        : "userSpaceOnUse",
                      width: s + "px",
                      height: l + "px",
                    });
                    var u = document.createElementNS(t.globals.SVGNS, "image");
                    c.appendChild(u),
                      u.setAttributeNS(window.SVG.xlink, "href", o),
                      w.setAttrs(u, {
                        x: 0,
                        y: 0,
                        preserveAspectRatio: "none",
                        width: s + "px",
                        height: l + "px",
                      }),
                      (u.style.opacity = e.opacity),
                      t.globals.dom.elDefs.node.appendChild(c);
                  },
                },
                {
                  key: "getSeriesIndex",
                  value: function (e) {
                    var t = this.w;
                    return (
                      (("bar" === t.config.chart.type ||
                        "rangeBar" === t.config.chart.type) &&
                        t.config.plotOptions.bar.distributed) ||
                      "heatmap" === t.config.chart.type ||
                      "treemap" === t.config.chart.type
                        ? (this.seriesIndex = e.seriesNumber)
                        : (this.seriesIndex =
                            e.seriesNumber % t.globals.series.length),
                      this.seriesIndex
                    );
                  },
                },
                {
                  key: "fillPath",
                  value: function (e) {
                    var t = this.w;
                    this.opts = e;
                    var i,
                      n,
                      r,
                      a = this.w.config;
                    this.seriesIndex = this.getSeriesIndex(e);
                    var o = this.getFillColors()[this.seriesIndex];
                    void 0 !== t.globals.seriesColors[this.seriesIndex] &&
                      (o = t.globals.seriesColors[this.seriesIndex]),
                      "function" == typeof o &&
                        (o = o({
                          seriesIndex: this.seriesIndex,
                          dataPointIndex: e.dataPointIndex,
                          value: e.value,
                          w: t,
                        }));
                    var s = e.fillType
                        ? e.fillType
                        : this.getFillType(this.seriesIndex),
                      l = Array.isArray(a.fill.opacity)
                        ? a.fill.opacity[this.seriesIndex]
                        : a.fill.opacity;
                    e.color && (o = e.color);
                    var c = o;
                    if (
                      (-1 === o.indexOf("rgb")
                        ? o.length < 9 && (c = b.hexToRgba(o, l))
                        : o.indexOf("rgba") > -1 &&
                          (l = b.getOpacityFromRGBA(o)),
                      e.opacity && (l = e.opacity),
                      "pattern" === s &&
                        (n = this.handlePatternFill({
                          fillConfig: e.fillConfig,
                          patternFill: n,
                          fillColor: o,
                          fillOpacity: l,
                          defaultColor: c,
                        })),
                      "gradient" === s &&
                        (r = this.handleGradientFill({
                          fillConfig: e.fillConfig,
                          fillColor: o,
                          fillOpacity: l,
                          i: this.seriesIndex,
                        })),
                      "image" === s)
                    ) {
                      var u = a.fill.image.src,
                        d = e.patternID ? e.patternID : "";
                      this.clippedImgArea({
                        opacity: l,
                        image: Array.isArray(u)
                          ? e.seriesNumber < u.length
                            ? u[e.seriesNumber]
                            : u[0]
                          : u,
                        width: e.width ? e.width : void 0,
                        height: e.height ? e.height : void 0,
                        patternUnits: e.patternUnits,
                        patternID: "pattern"
                          .concat(t.globals.cuid)
                          .concat(e.seriesNumber + 1)
                          .concat(d),
                      }),
                        (i = "url(#pattern"
                          .concat(t.globals.cuid)
                          .concat(e.seriesNumber + 1)
                          .concat(d, ")"));
                    } else i = "gradient" === s ? r : "pattern" === s ? n : c;
                    return e.solid && (i = c), i;
                  },
                },
                {
                  key: "getFillType",
                  value: function (e) {
                    var t = this.w;
                    return Array.isArray(t.config.fill.type)
                      ? t.config.fill.type[e]
                      : t.config.fill.type;
                  },
                },
                {
                  key: "getFillColors",
                  value: function () {
                    var e = this.w,
                      t = e.config,
                      i = this.opts,
                      n = [];
                    return (
                      e.globals.comboCharts
                        ? "line" === e.config.series[this.seriesIndex].type
                          ? Array.isArray(e.globals.stroke.colors)
                            ? (n = e.globals.stroke.colors)
                            : n.push(e.globals.stroke.colors)
                          : Array.isArray(e.globals.fill.colors)
                          ? (n = e.globals.fill.colors)
                          : n.push(e.globals.fill.colors)
                        : "line" === t.chart.type
                        ? Array.isArray(e.globals.stroke.colors)
                          ? (n = e.globals.stroke.colors)
                          : n.push(e.globals.stroke.colors)
                        : Array.isArray(e.globals.fill.colors)
                        ? (n = e.globals.fill.colors)
                        : n.push(e.globals.fill.colors),
                      void 0 !== i.fillColors &&
                        ((n = []),
                        Array.isArray(i.fillColors)
                          ? (n = i.fillColors.slice())
                          : n.push(i.fillColors)),
                      n
                    );
                  },
                },
                {
                  key: "handlePatternFill",
                  value: function (e) {
                    var t = e.fillConfig,
                      i = (e.patternFill, e.fillColor),
                      n = e.fillOpacity,
                      r = e.defaultColor,
                      a = this.w.config.fill;
                    t && (a = t);
                    var o = this.opts,
                      s = new w(this.ctx),
                      l = Array.isArray(a.pattern.strokeWidth)
                        ? a.pattern.strokeWidth[this.seriesIndex]
                        : a.pattern.strokeWidth,
                      c = i;
                    return Array.isArray(a.pattern.style)
                      ? void 0 !== a.pattern.style[o.seriesNumber]
                        ? s.drawPattern(
                            a.pattern.style[o.seriesNumber],
                            a.pattern.width,
                            a.pattern.height,
                            c,
                            l,
                            n
                          )
                        : r
                      : s.drawPattern(
                          a.pattern.style,
                          a.pattern.width,
                          a.pattern.height,
                          c,
                          l,
                          n
                        );
                  },
                },
                {
                  key: "handleGradientFill",
                  value: function (e) {
                    var t = e.fillColor,
                      i = e.fillOpacity,
                      n = e.fillConfig,
                      r = e.i,
                      o = this.w.config.fill;
                    n && (o = a(a({}, o), n));
                    var s,
                      l = this.opts,
                      c = new w(this.ctx),
                      u = new b(),
                      d = o.gradient.type,
                      h = t,
                      f =
                        void 0 === o.gradient.opacityFrom
                          ? i
                          : Array.isArray(o.gradient.opacityFrom)
                          ? o.gradient.opacityFrom[r]
                          : o.gradient.opacityFrom;
                    h.indexOf("rgba") > -1 && (f = b.getOpacityFromRGBA(h));
                    var p =
                      void 0 === o.gradient.opacityTo
                        ? i
                        : Array.isArray(o.gradient.opacityTo)
                        ? o.gradient.opacityTo[r]
                        : o.gradient.opacityTo;
                    if (
                      void 0 === o.gradient.gradientToColors ||
                      0 === o.gradient.gradientToColors.length
                    )
                      s =
                        "dark" === o.gradient.shade
                          ? u.shadeColor(
                              -1 * parseFloat(o.gradient.shadeIntensity),
                              t.indexOf("rgb") > -1 ? b.rgb2hex(t) : t
                            )
                          : u.shadeColor(
                              parseFloat(o.gradient.shadeIntensity),
                              t.indexOf("rgb") > -1 ? b.rgb2hex(t) : t
                            );
                    else if (o.gradient.gradientToColors[l.seriesNumber]) {
                      var g = o.gradient.gradientToColors[l.seriesNumber];
                      (s = g),
                        g.indexOf("rgba") > -1 && (p = b.getOpacityFromRGBA(g));
                    } else s = t;
                    if (
                      (o.gradient.gradientFrom && (h = o.gradient.gradientFrom),
                      o.gradient.gradientTo && (s = o.gradient.gradientTo),
                      o.gradient.inverseColors)
                    ) {
                      var m = h;
                      (h = s), (s = m);
                    }
                    return (
                      h.indexOf("rgb") > -1 && (h = b.rgb2hex(h)),
                      s.indexOf("rgb") > -1 && (s = b.rgb2hex(s)),
                      c.drawGradient(
                        d,
                        h,
                        s,
                        f,
                        p,
                        l.size,
                        o.gradient.stops,
                        o.gradient.colorStops,
                        r
                      )
                    );
                  },
                },
              ]),
              e
            );
          })(),
          z = (function () {
            function e(t, i) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "setGlobalMarkerSize",
                  value: function () {
                    var e = this.w;
                    if (
                      ((e.globals.markers.size = Array.isArray(
                        e.config.markers.size
                      )
                        ? e.config.markers.size
                        : [e.config.markers.size]),
                      e.globals.markers.size.length > 0)
                    ) {
                      if (
                        e.globals.markers.size.length <
                        e.globals.series.length + 1
                      )
                        for (var t = 0; t <= e.globals.series.length; t++)
                          void 0 === e.globals.markers.size[t] &&
                            e.globals.markers.size.push(
                              e.globals.markers.size[0]
                            );
                    } else
                      e.globals.markers.size = e.config.series.map(function (
                        t
                      ) {
                        return e.config.markers.size;
                      });
                  },
                },
                {
                  key: "plotChartMarkers",
                  value: function (e, t, i, n) {
                    var r,
                      a =
                        arguments.length > 4 &&
                        void 0 !== arguments[4] &&
                        arguments[4],
                      o = this.w,
                      s = t,
                      l = e,
                      c = null,
                      u = new w(this.ctx),
                      d =
                        o.config.markers.discrete &&
                        o.config.markers.discrete.length;
                    if (
                      ((o.globals.markers.size[t] > 0 || a || d) &&
                        (c = u.group({
                          class: a || d ? "" : "apexcharts-series-markers",
                        })).attr(
                          "clip-path",
                          "url(#gridRectMarkerMask".concat(o.globals.cuid, ")")
                        ),
                      Array.isArray(l.x))
                    )
                      for (var h = 0; h < l.x.length; h++) {
                        var f = i;
                        1 === i && 0 === h && (f = 0),
                          1 === i && 1 === h && (f = 1);
                        var p = "apexcharts-marker";
                        if (
                          (("line" !== o.config.chart.type &&
                            "area" !== o.config.chart.type) ||
                            o.globals.comboCharts ||
                            o.config.tooltip.intersect ||
                            (p += " no-pointer-events"),
                          (Array.isArray(o.config.markers.size)
                            ? o.globals.markers.size[t] > 0
                            : o.config.markers.size > 0) ||
                            a ||
                            d)
                        ) {
                          b.isNumber(l.y[h])
                            ? (p += " w".concat(b.randomId()))
                            : (p = "apexcharts-nullpoint");
                          var g = this.getMarkerConfig({
                            cssClass: p,
                            seriesIndex: t,
                            dataPointIndex: f,
                          });
                          o.config.series[s].data[f] &&
                            (o.config.series[s].data[f].fillColor &&
                              (g.pointFillColor =
                                o.config.series[s].data[f].fillColor),
                            o.config.series[s].data[f].strokeColor &&
                              (g.pointStrokeColor =
                                o.config.series[s].data[f].strokeColor)),
                            n && (g.pSize = n),
                            (r = u.drawMarker(l.x[h], l.y[h], g)).attr(
                              "rel",
                              f
                            ),
                            r.attr("j", f),
                            r.attr("index", t),
                            r.node.setAttribute("default-marker-size", g.pSize),
                            new x(this.ctx).setSelectionFilter(r, t, f),
                            this.addEvents(r),
                            c && c.add(r);
                        } else
                          void 0 === o.globals.pointsArray[t] &&
                            (o.globals.pointsArray[t] = []),
                            o.globals.pointsArray[t].push([l.x[h], l.y[h]]);
                      }
                    return c;
                  },
                },
                {
                  key: "getMarkerConfig",
                  value: function (e) {
                    var t = e.cssClass,
                      i = e.seriesIndex,
                      n = e.dataPointIndex,
                      r = void 0 === n ? null : n,
                      a = e.finishRadius,
                      o = void 0 === a ? null : a,
                      s = this.w,
                      l = this.getMarkerStyle(i),
                      c = s.globals.markers.size[i],
                      u = s.config.markers;
                    return (
                      null !== r &&
                        u.discrete.length &&
                        u.discrete.map(function (e) {
                          e.seriesIndex === i &&
                            e.dataPointIndex === r &&
                            ((l.pointStrokeColor = e.strokeColor),
                            (l.pointFillColor = e.fillColor),
                            (c = e.size),
                            (l.pointShape = e.shape));
                        }),
                      {
                        pSize: null === o ? c : o,
                        pRadius: u.radius,
                        width: Array.isArray(u.width) ? u.width[i] : u.width,
                        height: Array.isArray(u.height)
                          ? u.height[i]
                          : u.height,
                        pointStrokeWidth: Array.isArray(u.strokeWidth)
                          ? u.strokeWidth[i]
                          : u.strokeWidth,
                        pointStrokeColor: l.pointStrokeColor,
                        pointFillColor: l.pointFillColor,
                        shape:
                          l.pointShape ||
                          (Array.isArray(u.shape) ? u.shape[i] : u.shape),
                        class: t,
                        pointStrokeOpacity: Array.isArray(u.strokeOpacity)
                          ? u.strokeOpacity[i]
                          : u.strokeOpacity,
                        pointStrokeDashArray: Array.isArray(u.strokeDashArray)
                          ? u.strokeDashArray[i]
                          : u.strokeDashArray,
                        pointFillOpacity: Array.isArray(u.fillOpacity)
                          ? u.fillOpacity[i]
                          : u.fillOpacity,
                        seriesIndex: i,
                      }
                    );
                  },
                },
                {
                  key: "addEvents",
                  value: function (e) {
                    var t = this.w,
                      i = new w(this.ctx);
                    e.node.addEventListener(
                      "mouseenter",
                      i.pathMouseEnter.bind(this.ctx, e)
                    ),
                      e.node.addEventListener(
                        "mouseleave",
                        i.pathMouseLeave.bind(this.ctx, e)
                      ),
                      e.node.addEventListener(
                        "mousedown",
                        i.pathMouseDown.bind(this.ctx, e)
                      ),
                      e.node.addEventListener(
                        "click",
                        t.config.markers.onClick
                      ),
                      e.node.addEventListener(
                        "dblclick",
                        t.config.markers.onDblClick
                      ),
                      e.node.addEventListener(
                        "touchstart",
                        i.pathMouseDown.bind(this.ctx, e),
                        { passive: !0 }
                      );
                  },
                },
                {
                  key: "getMarkerStyle",
                  value: function (e) {
                    var t = this.w,
                      i = t.globals.markers.colors,
                      n =
                        t.config.markers.strokeColor ||
                        t.config.markers.strokeColors;
                    return {
                      pointStrokeColor: Array.isArray(n) ? n[e] : n,
                      pointFillColor: Array.isArray(i) ? i[e] : i,
                    };
                  },
                },
              ]),
              e
            );
          })(),
          j = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.initialAnim = this.w.config.chart.animations.enabled),
                (this.dynamicAnim =
                  this.initialAnim &&
                  this.w.config.chart.animations.dynamicAnimation.enabled);
            }
            return (
              c(e, [
                {
                  key: "draw",
                  value: function (e, t, i) {
                    var n = this.w,
                      r = new w(this.ctx),
                      a = i.realIndex,
                      o = i.pointsPos,
                      s = i.zRatio,
                      l = i.elParent,
                      c = r.group({
                        class:
                          "apexcharts-series-markers apexcharts-series-".concat(
                            n.config.chart.type
                          ),
                      });
                    if (
                      (c.attr(
                        "clip-path",
                        "url(#gridRectMarkerMask".concat(n.globals.cuid, ")")
                      ),
                      Array.isArray(o.x))
                    )
                      for (var u = 0; u < o.x.length; u++) {
                        var d = t + 1,
                          h = !0;
                        0 === t && 0 === u && (d = 0),
                          0 === t && 1 === u && (d = 1);
                        var f = 0,
                          p = n.globals.markers.size[a];
                        if (s !== 1 / 0) {
                          var g = n.config.plotOptions.bubble;
                          (p = n.globals.seriesZ[a][d]),
                            g.zScaling && (p /= s),
                            g.minBubbleRadius &&
                              p < g.minBubbleRadius &&
                              (p = g.minBubbleRadius),
                            g.maxBubbleRadius &&
                              p > g.maxBubbleRadius &&
                              (p = g.maxBubbleRadius);
                        }
                        n.config.chart.animations.enabled || (f = p);
                        var m = o.x[u],
                          v = o.y[u];
                        if (
                          ((f = f || 0),
                          (null !== v && void 0 !== n.globals.series[a][d]) ||
                            (h = !1),
                          h)
                        ) {
                          var b = this.drawPoint(m, v, f, p, a, d, t);
                          c.add(b);
                        }
                        l.add(c);
                      }
                  },
                },
                {
                  key: "drawPoint",
                  value: function (e, t, i, n, r, a, o) {
                    var s = this.w,
                      l = r,
                      c = new y(this.ctx),
                      u = new x(this.ctx),
                      d = new B(this.ctx),
                      h = new z(this.ctx),
                      f = new w(this.ctx),
                      p = h.getMarkerConfig({
                        cssClass: "apexcharts-marker",
                        seriesIndex: l,
                        dataPointIndex: a,
                        finishRadius:
                          "bubble" === s.config.chart.type ||
                          (s.globals.comboCharts &&
                            s.config.series[r] &&
                            "bubble" === s.config.series[r].type)
                            ? n
                            : null,
                      });
                    n = p.pSize;
                    var g,
                      m = d.fillPath({
                        seriesNumber: r,
                        dataPointIndex: a,
                        color: p.pointFillColor,
                        patternUnits: "objectBoundingBox",
                        value: s.globals.series[r][o],
                      });
                    if (
                      ("circle" === p.shape
                        ? (g = f.drawCircle(i))
                        : ("square" !== p.shape && "rect" !== p.shape) ||
                          (g = f.drawRect(
                            0,
                            0,
                            p.width - p.pointStrokeWidth / 2,
                            p.height - p.pointStrokeWidth / 2,
                            p.pRadius
                          )),
                      s.config.series[l].data[a] &&
                        s.config.series[l].data[a].fillColor &&
                        (m = s.config.series[l].data[a].fillColor),
                      g.attr({
                        x: e - p.width / 2 - p.pointStrokeWidth / 2,
                        y: t - p.height / 2 - p.pointStrokeWidth / 2,
                        cx: e,
                        cy: t,
                        fill: m,
                        "fill-opacity": p.pointFillOpacity,
                        stroke: p.pointStrokeColor,
                        r: n,
                        "stroke-width": p.pointStrokeWidth,
                        "stroke-dasharray": p.pointStrokeDashArray,
                        "stroke-opacity": p.pointStrokeOpacity,
                      }),
                      s.config.chart.dropShadow.enabled)
                    ) {
                      var v = s.config.chart.dropShadow;
                      u.dropShadow(g, v, r);
                    }
                    if (
                      !this.initialAnim ||
                      s.globals.dataChanged ||
                      s.globals.resized
                    )
                      s.globals.animationEnded = !0;
                    else {
                      var b = s.config.chart.animations.speed;
                      c.animateMarker(
                        g,
                        0,
                        "circle" === p.shape
                          ? n
                          : { width: p.width, height: p.height },
                        b,
                        s.globals.easing,
                        function () {
                          window.setTimeout(function () {
                            c.animationCompleted(g);
                          }, 100);
                        }
                      );
                    }
                    if (s.globals.dataChanged && "circle" === p.shape)
                      if (this.dynamicAnim) {
                        var E,
                          _,
                          S,
                          A,
                          k = s.config.chart.animations.dynamicAnimation.speed;
                        null !=
                          (A =
                            s.globals.previousPaths[r] &&
                            s.globals.previousPaths[r][o]) &&
                          ((E = A.x),
                          (_ = A.y),
                          (S = void 0 !== A.r ? A.r : n));
                        for (
                          var T = 0;
                          T < s.globals.collapsedSeries.length;
                          T++
                        )
                          s.globals.collapsedSeries[T].index === r &&
                            ((k = 1), (n = 0));
                        0 === e && 0 === t && (n = 0),
                          c.animateCircle(
                            g,
                            { cx: E, cy: _, r: S },
                            { cx: e, cy: t, r: n },
                            k,
                            s.globals.easing
                          );
                      } else g.attr({ r: n });
                    return (
                      g.attr({
                        rel: a,
                        j: a,
                        index: r,
                        "default-marker-size": n,
                      }),
                      u.setSelectionFilter(g, r, a),
                      h.addEvents(g),
                      g.node.classList.add("apexcharts-marker"),
                      g
                    );
                  },
                },
                {
                  key: "centerTextInBubble",
                  value: function (e) {
                    var t = this.w;
                    return {
                      y: (e +=
                        parseInt(t.config.dataLabels.style.fontSize, 10) / 4),
                    };
                  },
                },
              ]),
              e
            );
          })(),
          H = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "dataLabelsCorrection",
                  value: function (e, t, i, n, r, a, o) {
                    var s = this.w,
                      l = !1,
                      c = new w(this.ctx).getTextRects(i, o),
                      u = c.width,
                      d = c.height;
                    t < 0 && (t = 0),
                      t > s.globals.gridHeight + d &&
                        (t = s.globals.gridHeight + d / 2),
                      void 0 === s.globals.dataLabelsRects[n] &&
                        (s.globals.dataLabelsRects[n] = []),
                      s.globals.dataLabelsRects[n].push({
                        x: e,
                        y: t,
                        width: u,
                        height: d,
                      });
                    var h = s.globals.dataLabelsRects[n].length - 2,
                      f =
                        void 0 !== s.globals.lastDrawnDataLabelsIndexes[n]
                          ? s.globals.lastDrawnDataLabelsIndexes[n][
                              s.globals.lastDrawnDataLabelsIndexes[n].length - 1
                            ]
                          : 0;
                    if (void 0 !== s.globals.dataLabelsRects[n][h]) {
                      var p = s.globals.dataLabelsRects[n][f];
                      (e > p.x + p.width + 2 ||
                        t > p.y + p.height + 2 ||
                        e + u < p.x) &&
                        (l = !0);
                    }
                    return (
                      (0 === r || a) && (l = !0),
                      { x: e, y: t, textRects: c, drawnextLabel: l }
                    );
                  },
                },
                {
                  key: "drawDataLabel",
                  value: function (e) {
                    var t = this,
                      i = e.type,
                      n = e.pos,
                      r = e.i,
                      a = e.j,
                      o = e.isRangeStart,
                      s = e.strokeWidth,
                      l = void 0 === s ? 2 : s,
                      c = this.w,
                      u = new w(this.ctx),
                      d = c.config.dataLabels,
                      h = 0,
                      f = 0,
                      p = a,
                      g = null;
                    if (!d.enabled || !Array.isArray(n.x)) return g;
                    g = u.group({ class: "apexcharts-data-labels" });
                    for (var m = 0; m < n.x.length; m++)
                      if (
                        ((h = n.x[m] + d.offsetX),
                        (f = n.y[m] + d.offsetY + l),
                        !isNaN(h))
                      ) {
                        1 === a && 0 === m && (p = 0),
                          1 === a && 1 === m && (p = 1);
                        var v = c.globals.series[r][p];
                        "rangeArea" === i &&
                          (v = o
                            ? c.globals.seriesRangeStart[r][p]
                            : c.globals.seriesRangeEnd[r][p]);
                        var b = "",
                          y = function (e) {
                            return c.config.dataLabels.formatter(e, {
                              ctx: t.ctx,
                              seriesIndex: r,
                              dataPointIndex: p,
                              w: c,
                            });
                          };
                        "bubble" === c.config.chart.type
                          ? ((b = y((v = c.globals.seriesZ[r][p]))),
                            (f = n.y[m]),
                            (f = new j(this.ctx).centerTextInBubble(f, r, p).y))
                          : void 0 !== v && (b = y(v)),
                          this.plotDataLabelsText({
                            x: h,
                            y: f,
                            text: b,
                            i: r,
                            j: p,
                            parent: g,
                            offsetCorrection: !0,
                            dataLabelsConfig: c.config.dataLabels,
                          });
                      }
                    return g;
                  },
                },
                {
                  key: "plotDataLabelsText",
                  value: function (e) {
                    var t = this.w,
                      i = new w(this.ctx),
                      n = e.x,
                      r = e.y,
                      a = e.i,
                      o = e.j,
                      s = e.text,
                      l = e.textAnchor,
                      c = e.fontSize,
                      u = e.parent,
                      d = e.dataLabelsConfig,
                      h = e.color,
                      f = e.alwaysDrawDataLabel,
                      p = e.offsetCorrection;
                    if (
                      !(
                        Array.isArray(t.config.dataLabels.enabledOnSeries) &&
                        t.config.dataLabels.enabledOnSeries.indexOf(a) < 0
                      )
                    ) {
                      var g = {
                        x: n,
                        y: r,
                        drawnextLabel: !0,
                        textRects: null,
                      };
                      p &&
                        (g = this.dataLabelsCorrection(
                          n,
                          r,
                          s,
                          a,
                          o,
                          f,
                          parseInt(d.style.fontSize, 10)
                        )),
                        t.globals.zoomed || ((n = g.x), (r = g.y)),
                        g.textRects &&
                          (n < -10 - g.textRects.width ||
                            n > t.globals.gridWidth + g.textRects.width + 10) &&
                          (s = "");
                      var m = t.globals.dataLabels.style.colors[a];
                      ((("bar" === t.config.chart.type ||
                        "rangeBar" === t.config.chart.type) &&
                        t.config.plotOptions.bar.distributed) ||
                        t.config.dataLabels.distributed) &&
                        (m = t.globals.dataLabels.style.colors[o]),
                        "function" == typeof m &&
                          (m = m({
                            series: t.globals.series,
                            seriesIndex: a,
                            dataPointIndex: o,
                            w: t,
                          })),
                        h && (m = h);
                      var v = d.offsetX,
                        b = d.offsetY;
                      if (
                        (("bar" !== t.config.chart.type &&
                          "rangeBar" !== t.config.chart.type) ||
                          ((v = 0), (b = 0)),
                        g.drawnextLabel)
                      ) {
                        var y = i.drawText({
                          width: 100,
                          height: parseInt(d.style.fontSize, 10),
                          x: n + v,
                          y: r + b,
                          foreColor: m,
                          textAnchor: l || d.textAnchor,
                          text: s,
                          fontSize: c || d.style.fontSize,
                          fontFamily: d.style.fontFamily,
                          fontWeight: d.style.fontWeight || "normal",
                        });
                        if (
                          (y.attr({
                            class: "apexcharts-datalabel",
                            cx: n,
                            cy: r,
                          }),
                          d.dropShadow.enabled)
                        ) {
                          var E = d.dropShadow;
                          new x(this.ctx).dropShadow(y, E);
                        }
                        u.add(y),
                          void 0 === t.globals.lastDrawnDataLabelsIndexes[a] &&
                            (t.globals.lastDrawnDataLabelsIndexes[a] = []),
                          t.globals.lastDrawnDataLabelsIndexes[a].push(o);
                      }
                    }
                  },
                },
                {
                  key: "addBackgroundToDataLabel",
                  value: function (e, t) {
                    var i = this.w,
                      n = i.config.dataLabels.background,
                      r = n.padding,
                      a = n.padding / 2,
                      o = t.width,
                      s = t.height,
                      l = new w(this.ctx).drawRect(
                        t.x - r,
                        t.y - a / 2,
                        o + 2 * r,
                        s + a,
                        n.borderRadius,
                        "transparent" === i.config.chart.background
                          ? "#fff"
                          : i.config.chart.background,
                        n.opacity,
                        n.borderWidth,
                        n.borderColor
                      );
                    return (
                      n.dropShadow.enabled &&
                        new x(this.ctx).dropShadow(l, n.dropShadow),
                      l
                    );
                  },
                },
                {
                  key: "dataLabelsBackground",
                  value: function () {
                    var e = this.w;
                    if ("bubble" !== e.config.chart.type)
                      for (
                        var t = e.globals.dom.baseEl.querySelectorAll(
                            ".apexcharts-datalabels text"
                          ),
                          i = 0;
                        i < t.length;
                        i++
                      ) {
                        var n = t[i],
                          r = n.getBBox(),
                          a = null;
                        if (
                          (r.width &&
                            r.height &&
                            (a = this.addBackgroundToDataLabel(n, r)),
                          a)
                        ) {
                          n.parentNode.insertBefore(a.node, n);
                          var o = n.getAttribute("fill");
                          !e.config.chart.animations.enabled ||
                          e.globals.resized ||
                          e.globals.dataChanged
                            ? a.attr({ fill: o })
                            : a.animate().attr({ fill: o }),
                            n.setAttribute(
                              "fill",
                              e.config.dataLabels.background.foreColor
                            );
                        }
                      }
                  },
                },
                {
                  key: "bringForward",
                  value: function () {
                    for (
                      var e = this.w,
                        t = e.globals.dom.baseEl.querySelectorAll(
                          ".apexcharts-datalabels"
                        ),
                        i = e.globals.dom.baseEl.querySelector(
                          ".apexcharts-plot-series:last-child"
                        ),
                        n = 0;
                      n < t.length;
                      n++
                    )
                      i && i.insertBefore(t[n], i.nextSibling);
                  },
                },
              ]),
              e
            );
          })(),
          Y = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.legendInactiveClass = "legend-mouseover-inactive");
            }
            return (
              c(e, [
                {
                  key: "getAllSeriesEls",
                  value: function () {
                    return this.w.globals.dom.baseEl.getElementsByClassName(
                      "apexcharts-series"
                    );
                  },
                },
                {
                  key: "getSeriesByName",
                  value: function (e) {
                    return this.w.globals.dom.baseEl.querySelector(
                      ".apexcharts-inner .apexcharts-series[seriesName='".concat(
                        b.escapeString(e),
                        "']"
                      )
                    );
                  },
                },
                {
                  key: "isSeriesHidden",
                  value: function (e) {
                    var t = this.getSeriesByName(e),
                      i = parseInt(t.getAttribute("data:realIndex"), 10);
                    return {
                      isHidden: t.classList.contains(
                        "apexcharts-series-collapsed"
                      ),
                      realIndex: i,
                    };
                  },
                },
                {
                  key: "addCollapsedClassToSeries",
                  value: function (e, t) {
                    var i = this.w;
                    function n(i) {
                      for (var n = 0; n < i.length; n++)
                        i[n].index === t &&
                          e.node.classList.add("apexcharts-series-collapsed");
                    }
                    n(i.globals.collapsedSeries),
                      n(i.globals.ancillaryCollapsedSeries);
                  },
                },
                {
                  key: "toggleSeries",
                  value: function (e) {
                    var t = this.isSeriesHidden(e);
                    return (
                      this.ctx.legend.legendHelpers.toggleDataSeries(
                        t.realIndex,
                        t.isHidden
                      ),
                      t.isHidden
                    );
                  },
                },
                {
                  key: "showSeries",
                  value: function (e) {
                    var t = this.isSeriesHidden(e);
                    t.isHidden &&
                      this.ctx.legend.legendHelpers.toggleDataSeries(
                        t.realIndex,
                        !0
                      );
                  },
                },
                {
                  key: "hideSeries",
                  value: function (e) {
                    var t = this.isSeriesHidden(e);
                    t.isHidden ||
                      this.ctx.legend.legendHelpers.toggleDataSeries(
                        t.realIndex,
                        !1
                      );
                  },
                },
                {
                  key: "resetSeries",
                  value: function () {
                    var e =
                        !(arguments.length > 0 && void 0 !== arguments[0]) ||
                        arguments[0],
                      t =
                        !(arguments.length > 1 && void 0 !== arguments[1]) ||
                        arguments[1],
                      i =
                        !(arguments.length > 2 && void 0 !== arguments[2]) ||
                        arguments[2],
                      n = this.w,
                      r = b.clone(n.globals.initialSeries);
                    (n.globals.previousPaths = []),
                      i
                        ? ((n.globals.collapsedSeries = []),
                          (n.globals.ancillaryCollapsedSeries = []),
                          (n.globals.collapsedSeriesIndices = []),
                          (n.globals.ancillaryCollapsedSeriesIndices = []))
                        : (r = this.emptyCollapsedSeries(r)),
                      (n.config.series = r),
                      e &&
                        (t &&
                          ((n.globals.zoomed = !1),
                          this.ctx.updateHelpers.revertDefaultAxisMinMax()),
                        this.ctx.updateHelpers._updateSeries(
                          r,
                          n.config.chart.animations.dynamicAnimation.enabled
                        ));
                  },
                },
                {
                  key: "emptyCollapsedSeries",
                  value: function (e) {
                    for (var t = this.w, i = 0; i < e.length; i++)
                      t.globals.collapsedSeriesIndices.indexOf(i) > -1 &&
                        (e[i].data = []);
                    return e;
                  },
                },
                {
                  key: "toggleSeriesOnHover",
                  value: function (e, t) {
                    var i = this.w;
                    t || (t = e.target);
                    var n = i.globals.dom.baseEl.querySelectorAll(
                      ".apexcharts-series, .apexcharts-datalabels"
                    );
                    if ("mousemove" === e.type) {
                      var r = parseInt(t.getAttribute("rel"), 10) - 1,
                        a = null,
                        o = null;
                      i.globals.axisCharts ||
                      "radialBar" === i.config.chart.type
                        ? i.globals.axisCharts
                          ? ((a = i.globals.dom.baseEl.querySelector(
                              ".apexcharts-series[data\\:realIndex='".concat(
                                r,
                                "']"
                              )
                            )),
                            (o = i.globals.dom.baseEl.querySelector(
                              ".apexcharts-datalabels[data\\:realIndex='".concat(
                                r,
                                "']"
                              )
                            )))
                          : (a = i.globals.dom.baseEl.querySelector(
                              ".apexcharts-series[rel='".concat(r + 1, "']")
                            ))
                        : (a = i.globals.dom.baseEl.querySelector(
                            ".apexcharts-series[rel='".concat(r + 1, "'] path")
                          ));
                      for (var s = 0; s < n.length; s++)
                        n[s].classList.add(this.legendInactiveClass);
                      null !== a &&
                        (i.globals.axisCharts ||
                          a.parentNode.classList.remove(
                            this.legendInactiveClass
                          ),
                        a.classList.remove(this.legendInactiveClass),
                        null !== o &&
                          o.classList.remove(this.legendInactiveClass));
                    } else if ("mouseout" === e.type)
                      for (var l = 0; l < n.length; l++)
                        n[l].classList.remove(this.legendInactiveClass);
                  },
                },
                {
                  key: "highlightRangeInSeries",
                  value: function (e, t) {
                    var i = this,
                      n = this.w,
                      r = n.globals.dom.baseEl.getElementsByClassName(
                        "apexcharts-heatmap-rect"
                      ),
                      a = function (e) {
                        for (var t = 0; t < r.length; t++)
                          r[t].classList[e](i.legendInactiveClass);
                      };
                    if ("mousemove" === e.type) {
                      var o = parseInt(t.getAttribute("rel"), 10) - 1;
                      a("add"),
                        (function (e) {
                          for (var t = 0; t < r.length; t++) {
                            var n = parseInt(r[t].getAttribute("val"), 10);
                            n >= e.from &&
                              n <= e.to &&
                              r[t].classList.remove(i.legendInactiveClass);
                          }
                        })(n.config.plotOptions.heatmap.colorScale.ranges[o]);
                    } else "mouseout" === e.type && a("remove");
                  },
                },
                {
                  key: "getActiveConfigSeriesIndex",
                  value: function () {
                    var e =
                        arguments.length > 0 && void 0 !== arguments[0]
                          ? arguments[0]
                          : "asc",
                      t =
                        arguments.length > 1 && void 0 !== arguments[1]
                          ? arguments[1]
                          : [],
                      i = this.w,
                      n = 0;
                    if (i.config.series.length > 1)
                      for (
                        var r = i.config.series.map(function (e, n) {
                            return e.data &&
                              e.data.length > 0 &&
                              -1 ===
                                i.globals.collapsedSeriesIndices.indexOf(n) &&
                              (!i.globals.comboCharts ||
                                0 === t.length ||
                                (t.length &&
                                  t.indexOf(i.config.series[n].type) > -1))
                              ? n
                              : -1;
                          }),
                          a = "asc" === e ? 0 : r.length - 1;
                        "asc" === e ? a < r.length : a >= 0;
                        "asc" === e ? a++ : a--
                      )
                        if (-1 !== r[a]) {
                          n = r[a];
                          break;
                        }
                    return n;
                  },
                },
                {
                  key: "getBarSeriesIndices",
                  value: function () {
                    return this.w.globals.comboCharts
                      ? this.w.config.series
                          .map(function (e, t) {
                            return "bar" === e.type || "column" === e.type
                              ? t
                              : -1;
                          })
                          .filter(function (e) {
                            return -1 !== e;
                          })
                      : this.w.config.series.map(function (e, t) {
                          return t;
                        });
                  },
                },
                {
                  key: "getPreviousPaths",
                  value: function () {
                    var e = this.w;
                    function t(t, i, n) {
                      for (
                        var r = t[i].childNodes,
                          a = {
                            type: n,
                            paths: [],
                            realIndex: t[i].getAttribute("data:realIndex"),
                          },
                          o = 0;
                        o < r.length;
                        o++
                      )
                        if (r[o].hasAttribute("pathTo")) {
                          var s = r[o].getAttribute("pathTo");
                          a.paths.push({ d: s });
                        }
                      e.globals.previousPaths.push(a);
                    }
                    (e.globals.previousPaths = []),
                      [
                        "line",
                        "area",
                        "bar",
                        "rangebar",
                        "rangeArea",
                        "candlestick",
                        "radar",
                      ].forEach(function (i) {
                        for (
                          var n,
                            r =
                              ((n = i),
                              e.globals.dom.baseEl.querySelectorAll(
                                ".apexcharts-".concat(
                                  n,
                                  "-series .apexcharts-series"
                                )
                              )),
                            a = 0;
                          a < r.length;
                          a++
                        )
                          t(r, a, i);
                      }),
                      this.handlePrevBubbleScatterPaths("bubble"),
                      this.handlePrevBubbleScatterPaths("scatter");
                    var i = e.globals.dom.baseEl.querySelectorAll(
                      ".apexcharts-".concat(
                        e.config.chart.type,
                        " .apexcharts-series"
                      )
                    );
                    if (i.length > 0)
                      for (
                        var n = function (t) {
                            for (
                              var i = e.globals.dom.baseEl.querySelectorAll(
                                  ".apexcharts-"
                                    .concat(
                                      e.config.chart.type,
                                      " .apexcharts-series[data\\:realIndex='"
                                    )
                                    .concat(t, "'] rect")
                                ),
                                n = [],
                                r = function (e) {
                                  var t = function (t) {
                                      return i[e].getAttribute(t);
                                    },
                                    r = {
                                      x: parseFloat(t("x")),
                                      y: parseFloat(t("y")),
                                      width: parseFloat(t("width")),
                                      height: parseFloat(t("height")),
                                    };
                                  n.push({
                                    rect: r,
                                    color: i[e].getAttribute("color"),
                                  });
                                },
                                a = 0;
                              a < i.length;
                              a++
                            )
                              r(a);
                            e.globals.previousPaths.push(n);
                          },
                          r = 0;
                        r < i.length;
                        r++
                      )
                        n(r);
                    e.globals.axisCharts ||
                      (e.globals.previousPaths = e.globals.series);
                  },
                },
                {
                  key: "handlePrevBubbleScatterPaths",
                  value: function (e) {
                    var t = this.w,
                      i = t.globals.dom.baseEl.querySelectorAll(
                        ".apexcharts-".concat(e, "-series .apexcharts-series")
                      );
                    if (i.length > 0)
                      for (var n = 0; n < i.length; n++) {
                        for (
                          var r = t.globals.dom.baseEl.querySelectorAll(
                              ".apexcharts-"
                                .concat(
                                  e,
                                  "-series .apexcharts-series[data\\:realIndex='"
                                )
                                .concat(n, "'] circle")
                            ),
                            a = [],
                            o = 0;
                          o < r.length;
                          o++
                        )
                          a.push({
                            x: r[o].getAttribute("cx"),
                            y: r[o].getAttribute("cy"),
                            r: r[o].getAttribute("r"),
                          });
                        t.globals.previousPaths.push(a);
                      }
                  },
                },
                {
                  key: "clearPreviousPaths",
                  value: function () {
                    var e = this.w;
                    (e.globals.previousPaths = []),
                      (e.globals.allSeriesCollapsed = !1);
                  },
                },
                {
                  key: "handleNoData",
                  value: function () {
                    var e = this.w,
                      t = e.config.noData,
                      i = new w(this.ctx),
                      n = e.globals.svgWidth / 2,
                      r = e.globals.svgHeight / 2,
                      a = "middle";
                    if (
                      ((e.globals.noData = !0),
                      (e.globals.animationEnded = !0),
                      "left" === t.align
                        ? ((n = 10), (a = "start"))
                        : "right" === t.align &&
                          ((n = e.globals.svgWidth - 10), (a = "end")),
                      "top" === t.verticalAlign
                        ? (r = 50)
                        : "bottom" === t.verticalAlign &&
                          (r = e.globals.svgHeight - 50),
                      (n += t.offsetX),
                      (r = r + parseInt(t.style.fontSize, 10) + 2 + t.offsetY),
                      void 0 !== t.text && "" !== t.text)
                    ) {
                      var o = i.drawText({
                        x: n,
                        y: r,
                        text: t.text,
                        textAnchor: a,
                        fontSize: t.style.fontSize,
                        fontFamily: t.style.fontFamily,
                        foreColor: t.style.color,
                        opacity: 1,
                        class: "apexcharts-text-nodata",
                      });
                      e.globals.dom.Paper.add(o);
                    }
                  },
                },
                {
                  key: "setNullSeriesToZeroValues",
                  value: function (e) {
                    for (var t = this.w, i = 0; i < e.length; i++)
                      if (0 === e[i].length)
                        for (
                          var n = 0;
                          n < e[t.globals.maxValsInArrayIndex].length;
                          n++
                        )
                          e[i].push(0);
                    return e;
                  },
                },
                {
                  key: "hasAllSeriesEqualX",
                  value: function () {
                    for (
                      var e = !0, t = this.w, i = this.filteredSeriesX(), n = 0;
                      n < i.length - 1;
                      n++
                    )
                      if (i[n][0] !== i[n + 1][0]) {
                        e = !1;
                        break;
                      }
                    return (t.globals.allSeriesHasEqualX = e), e;
                  },
                },
                {
                  key: "filteredSeriesX",
                  value: function () {
                    return this.w.globals.seriesX.map(function (e) {
                      return e.length > 0 ? e : [];
                    });
                  },
                },
              ]),
              e
            );
          })(),
          X = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.twoDSeries = []),
                (this.threeDSeries = []),
                (this.twoDSeriesX = []),
                (this.seriesGoals = []),
                (this.coreUtils = new E(this.ctx));
            }
            return (
              c(e, [
                {
                  key: "isMultiFormat",
                  value: function () {
                    return this.isFormatXY() || this.isFormat2DArray();
                  },
                },
                {
                  key: "isFormatXY",
                  value: function () {
                    var e = this.w.config.series.slice(),
                      t = new Y(this.ctx);
                    if (
                      ((this.activeSeriesIndex =
                        t.getActiveConfigSeriesIndex()),
                      void 0 !== e[this.activeSeriesIndex].data &&
                        e[this.activeSeriesIndex].data.length > 0 &&
                        null !== e[this.activeSeriesIndex].data[0] &&
                        void 0 !== e[this.activeSeriesIndex].data[0].x &&
                        null !== e[this.activeSeriesIndex].data[0])
                    )
                      return !0;
                  },
                },
                {
                  key: "isFormat2DArray",
                  value: function () {
                    var e = this.w.config.series.slice(),
                      t = new Y(this.ctx);
                    if (
                      ((this.activeSeriesIndex =
                        t.getActiveConfigSeriesIndex()),
                      void 0 !== e[this.activeSeriesIndex].data &&
                        e[this.activeSeriesIndex].data.length > 0 &&
                        void 0 !== e[this.activeSeriesIndex].data[0] &&
                        null !== e[this.activeSeriesIndex].data[0] &&
                        e[this.activeSeriesIndex].data[0].constructor === Array)
                    )
                      return !0;
                  },
                },
                {
                  key: "handleFormat2DArray",
                  value: function (e, t) {
                    for (
                      var i = this.w.config,
                        n = this.w.globals,
                        r =
                          "boxPlot" === i.chart.type ||
                          "boxPlot" === i.series[t].type,
                        a = 0;
                      a < e[t].data.length;
                      a++
                    )
                      if (
                        (void 0 !== e[t].data[a][1] &&
                          (Array.isArray(e[t].data[a][1]) &&
                          4 === e[t].data[a][1].length &&
                          !r
                            ? this.twoDSeries.push(
                                b.parseNumber(e[t].data[a][1][3])
                              )
                            : e[t].data[a].length >= 5
                            ? this.twoDSeries.push(
                                b.parseNumber(e[t].data[a][4])
                              )
                            : this.twoDSeries.push(
                                b.parseNumber(e[t].data[a][1])
                              ),
                          (n.dataFormatXNumeric = !0)),
                        "datetime" === i.xaxis.type)
                      ) {
                        var o = new Date(e[t].data[a][0]);
                        (o = new Date(o).getTime()), this.twoDSeriesX.push(o);
                      } else this.twoDSeriesX.push(e[t].data[a][0]);
                    for (var s = 0; s < e[t].data.length; s++)
                      void 0 !== e[t].data[s][2] &&
                        (this.threeDSeries.push(e[t].data[s][2]),
                        (n.isDataXYZ = !0));
                  },
                },
                {
                  key: "handleFormatXY",
                  value: function (e, t) {
                    var i = this.w.config,
                      n = this.w.globals,
                      r = new I(this.ctx),
                      a = t;
                    n.collapsedSeriesIndices.indexOf(t) > -1 &&
                      (a = this.activeSeriesIndex);
                    for (var o = 0; o < e[t].data.length; o++)
                      void 0 !== e[t].data[o].y &&
                        (Array.isArray(e[t].data[o].y)
                          ? this.twoDSeries.push(
                              b.parseNumber(
                                e[t].data[o].y[e[t].data[o].y.length - 1]
                              )
                            )
                          : this.twoDSeries.push(
                              b.parseNumber(e[t].data[o].y)
                            )),
                        void 0 !== e[t].data[o].goals &&
                        Array.isArray(e[t].data[o].goals)
                          ? (void 0 === this.seriesGoals[t] &&
                              (this.seriesGoals[t] = []),
                            this.seriesGoals[t].push(e[t].data[o].goals))
                          : (void 0 === this.seriesGoals[t] &&
                              (this.seriesGoals[t] = []),
                            this.seriesGoals[t].push(null));
                    for (var s = 0; s < e[a].data.length; s++) {
                      var l = "string" == typeof e[a].data[s].x,
                        c = Array.isArray(e[a].data[s].x),
                        u = !c && !!r.isValidDate(e[a].data[s].x.toString());
                      if (l || u)
                        if (l || i.xaxis.convertedCatToNumeric) {
                          var d = n.isBarHorizontal && n.isRangeData;
                          "datetime" !== i.xaxis.type || d
                            ? ((this.fallbackToCategory = !0),
                              this.twoDSeriesX.push(e[a].data[s].x))
                            : this.twoDSeriesX.push(
                                r.parseDate(e[a].data[s].x)
                              );
                        } else
                          "datetime" === i.xaxis.type
                            ? this.twoDSeriesX.push(
                                r.parseDate(e[a].data[s].x.toString())
                              )
                            : ((n.dataFormatXNumeric = !0),
                              (n.isXNumeric = !0),
                              this.twoDSeriesX.push(
                                parseFloat(e[a].data[s].x)
                              ));
                      else
                        c
                          ? ((this.fallbackToCategory = !0),
                            this.twoDSeriesX.push(e[a].data[s].x))
                          : ((n.isXNumeric = !0),
                            (n.dataFormatXNumeric = !0),
                            this.twoDSeriesX.push(e[a].data[s].x));
                    }
                    if (e[t].data[0] && void 0 !== e[t].data[0].z) {
                      for (var h = 0; h < e[t].data.length; h++)
                        this.threeDSeries.push(e[t].data[h].z);
                      n.isDataXYZ = !0;
                    }
                  },
                },
                {
                  key: "handleRangeData",
                  value: function (e, t) {
                    var i = this.w.globals,
                      n = {};
                    return (
                      this.isFormat2DArray()
                        ? (n = this.handleRangeDataFormat("array", e, t))
                        : this.isFormatXY() &&
                          (n = this.handleRangeDataFormat("xy", e, t)),
                      i.seriesRangeStart.push(n.start),
                      i.seriesRangeEnd.push(n.end),
                      i.seriesRange.push(n.rangeUniques),
                      i.seriesRange.forEach(function (e, t) {
                        e &&
                          e.forEach(function (e, t) {
                            e.y.forEach(function (t, i) {
                              for (var n = 0; n < e.y.length; n++)
                                if (i !== n) {
                                  var r = t.y1,
                                    a = t.y2,
                                    o = e.y[n].y1;
                                  r <= e.y[n].y2 &&
                                    o <= a &&
                                    (e.overlaps.indexOf(t.rangeName) < 0 &&
                                      e.overlaps.push(t.rangeName),
                                    e.overlaps.indexOf(e.y[n].rangeName) < 0 &&
                                      e.overlaps.push(e.y[n].rangeName));
                                }
                            });
                          });
                      }),
                      n
                    );
                  },
                },
                {
                  key: "handleCandleStickBoxData",
                  value: function (e, t) {
                    var i = this.w.globals,
                      n = {};
                    return (
                      this.isFormat2DArray()
                        ? (n = this.handleCandleStickBoxDataFormat(
                            "array",
                            e,
                            t
                          ))
                        : this.isFormatXY() &&
                          (n = this.handleCandleStickBoxDataFormat("xy", e, t)),
                      (i.seriesCandleO[t] = n.o),
                      (i.seriesCandleH[t] = n.h),
                      (i.seriesCandleM[t] = n.m),
                      (i.seriesCandleL[t] = n.l),
                      (i.seriesCandleC[t] = n.c),
                      n
                    );
                  },
                },
                {
                  key: "handleRangeDataFormat",
                  value: function (e, t, i) {
                    var n = [],
                      r = [],
                      a = t[i].data
                        .filter(function (e, t, i) {
                          return (
                            t ===
                            i.findIndex(function (t) {
                              return t.x === e.x;
                            })
                          );
                        })
                        .map(function (e, t) {
                          return { x: e.x, overlaps: [], y: [] };
                        });
                    if ("array" === e)
                      for (var o = 0; o < t[i].data.length; o++)
                        Array.isArray(t[i].data[o])
                          ? (n.push(t[i].data[o][1][0]),
                            r.push(t[i].data[o][1][1]))
                          : (n.push(t[i].data[o]), r.push(t[i].data[o]));
                    else if ("xy" === e)
                      for (
                        var s = function (e) {
                            var o = Array.isArray(t[i].data[e].y),
                              s = b.randomId(),
                              l = t[i].data[e].x,
                              c = {
                                y1: o ? t[i].data[e].y[0] : t[i].data[e].y,
                                y2: o ? t[i].data[e].y[1] : t[i].data[e].y,
                                rangeName: s,
                              };
                            t[i].data[e].rangeName = s;
                            var u = a.findIndex(function (e) {
                              return e.x === l;
                            });
                            a[u].y.push(c), n.push(c.y1), r.push(c.y2);
                          },
                          l = 0;
                        l < t[i].data.length;
                        l++
                      )
                        s(l);
                    return { start: n, end: r, rangeUniques: a };
                  },
                },
                {
                  key: "handleCandleStickBoxDataFormat",
                  value: function (e, t, i) {
                    var n = this.w,
                      r =
                        "boxPlot" === n.config.chart.type ||
                        "boxPlot" === n.config.series[i].type,
                      a = [],
                      o = [],
                      s = [],
                      l = [],
                      c = [];
                    if ("array" === e)
                      if (
                        (r && 6 === t[i].data[0].length) ||
                        (!r && 5 === t[i].data[0].length)
                      )
                        for (var u = 0; u < t[i].data.length; u++)
                          a.push(t[i].data[u][1]),
                            o.push(t[i].data[u][2]),
                            r
                              ? (s.push(t[i].data[u][3]),
                                l.push(t[i].data[u][4]),
                                c.push(t[i].data[u][5]))
                              : (l.push(t[i].data[u][3]),
                                c.push(t[i].data[u][4]));
                      else
                        for (var d = 0; d < t[i].data.length; d++)
                          Array.isArray(t[i].data[d][1]) &&
                            (a.push(t[i].data[d][1][0]),
                            o.push(t[i].data[d][1][1]),
                            r
                              ? (s.push(t[i].data[d][1][2]),
                                l.push(t[i].data[d][1][3]),
                                c.push(t[i].data[d][1][4]))
                              : (l.push(t[i].data[d][1][2]),
                                c.push(t[i].data[d][1][3])));
                    else if ("xy" === e)
                      for (var h = 0; h < t[i].data.length; h++)
                        Array.isArray(t[i].data[h].y) &&
                          (a.push(t[i].data[h].y[0]),
                          o.push(t[i].data[h].y[1]),
                          r
                            ? (s.push(t[i].data[h].y[2]),
                              l.push(t[i].data[h].y[3]),
                              c.push(t[i].data[h].y[4]))
                            : (l.push(t[i].data[h].y[2]),
                              c.push(t[i].data[h].y[3])));
                    return { o: a, h: o, m: s, l, c };
                  },
                },
                {
                  key: "parseDataAxisCharts",
                  value: function (e) {
                    var t = this,
                      i =
                        arguments.length > 1 && void 0 !== arguments[1]
                          ? arguments[1]
                          : this.ctx,
                      n = this.w.config,
                      r = this.w.globals,
                      a = new I(i),
                      o =
                        n.labels.length > 0
                          ? n.labels.slice()
                          : n.xaxis.categories.slice();
                    (r.isRangeBar =
                      "rangeBar" === n.chart.type && r.isBarHorizontal),
                      (r.hasGroups =
                        "category" === n.xaxis.type &&
                        n.xaxis.group.groups.length > 0),
                      r.hasGroups && (r.groups = n.xaxis.group.groups);
                    for (
                      var s = function () {
                          for (var e = 0; e < o.length; e++)
                            if ("string" == typeof o[e]) {
                              if (!a.isValidDate(o[e]))
                                throw new Error(
                                  "You have provided invalid Date format. Please provide a valid JavaScript Date"
                                );
                              t.twoDSeriesX.push(a.parseDate(o[e]));
                            } else t.twoDSeriesX.push(o[e]);
                        },
                        l = 0;
                      l < e.length;
                      l++
                    ) {
                      if (
                        ((this.twoDSeries = []),
                        (this.twoDSeriesX = []),
                        (this.threeDSeries = []),
                        void 0 === e[l].data)
                      )
                        return void console.error(
                          "It is a possibility that you may have not included 'data' property in series."
                        );
                      if (
                        (("rangeBar" !== n.chart.type &&
                          "rangeArea" !== n.chart.type &&
                          "rangeBar" !== e[l].type &&
                          "rangeArea" !== e[l].type) ||
                          ((r.isRangeData = !0),
                          r.isComboCharts
                            ? ("rangeBar" !== e[l].type &&
                                "rangeArea" !== e[l].type) ||
                              this.handleRangeData(e, l)
                            : ("rangeBar" !== n.chart.type &&
                                "rangeArea" !== n.chart.type) ||
                              this.handleRangeData(e, l)),
                        this.isMultiFormat())
                      )
                        this.isFormat2DArray()
                          ? this.handleFormat2DArray(e, l)
                          : this.isFormatXY() && this.handleFormatXY(e, l),
                          ("candlestick" !== n.chart.type &&
                            "candlestick" !== e[l].type &&
                            "boxPlot" !== n.chart.type &&
                            "boxPlot" !== e[l].type) ||
                            this.handleCandleStickBoxData(e, l),
                          r.series.push(this.twoDSeries),
                          r.labels.push(this.twoDSeriesX),
                          r.seriesX.push(this.twoDSeriesX),
                          (r.seriesGoals = this.seriesGoals),
                          l !== this.activeSeriesIndex ||
                            this.fallbackToCategory ||
                            (r.isXNumeric = !0);
                      else {
                        "datetime" === n.xaxis.type
                          ? ((r.isXNumeric = !0),
                            s(),
                            r.seriesX.push(this.twoDSeriesX))
                          : "numeric" === n.xaxis.type &&
                            ((r.isXNumeric = !0),
                            o.length > 0 &&
                              ((this.twoDSeriesX = o),
                              r.seriesX.push(this.twoDSeriesX))),
                          r.labels.push(this.twoDSeriesX);
                        var c = e[l].data.map(function (e) {
                          return b.parseNumber(e);
                        });
                        r.series.push(c);
                      }
                      r.seriesZ.push(this.threeDSeries),
                        void 0 !== e[l].name
                          ? r.seriesNames.push(e[l].name)
                          : r.seriesNames.push("series-" + parseInt(l + 1, 10)),
                        void 0 !== e[l].color
                          ? r.seriesColors.push(e[l].color)
                          : r.seriesColors.push(void 0);
                    }
                    return this.w;
                  },
                },
                {
                  key: "parseDataNonAxisCharts",
                  value: function (e) {
                    var t = this.w.globals,
                      i = this.w.config;
                    (t.series = e.slice()), (t.seriesNames = i.labels.slice());
                    for (var n = 0; n < t.series.length; n++)
                      void 0 === t.seriesNames[n] &&
                        t.seriesNames.push("series-" + (n + 1));
                    return this.w;
                  },
                },
                {
                  key: "handleExternalLabelsData",
                  value: function (e) {
                    var t = this.w.config,
                      i = this.w.globals;
                    t.xaxis.categories.length > 0
                      ? (i.labels = t.xaxis.categories)
                      : t.labels.length > 0
                      ? (i.labels = t.labels.slice())
                      : this.fallbackToCategory
                      ? ((i.labels = i.labels[0]),
                        i.seriesRange.length &&
                          (i.seriesRange.map(function (e) {
                            e.forEach(function (e) {
                              i.labels.indexOf(e.x) < 0 &&
                                e.x &&
                                i.labels.push(e.x);
                            });
                          }),
                          (i.labels = i.labels.filter(function (e, t, i) {
                            return i.indexOf(e) === t;
                          }))),
                        t.xaxis.convertedCatToNumeric &&
                          (new D(t).convertCatToNumericXaxis(
                            t,
                            this.ctx,
                            i.seriesX[0]
                          ),
                          this._generateExternalLabels(e)))
                      : this._generateExternalLabels(e);
                  },
                },
                {
                  key: "_generateExternalLabels",
                  value: function (e) {
                    var t = this.w.globals,
                      i = this.w.config,
                      n = [];
                    if (t.axisCharts) {
                      if (t.series.length > 0)
                        if (this.isFormatXY())
                          for (
                            var r = i.series.map(function (e, t) {
                                return e.data.filter(function (e, t, i) {
                                  return (
                                    i.findIndex(function (t) {
                                      return t.x === e.x;
                                    }) === t
                                  );
                                });
                              }),
                              a = r.reduce(function (e, t, i, n) {
                                return n[e].length > t.length ? e : i;
                              }, 0),
                              o = 0;
                            o < r[a].length;
                            o++
                          )
                            n.push(o + 1);
                        else
                          for (
                            var s = 0;
                            s < t.series[t.maxValsInArrayIndex].length;
                            s++
                          )
                            n.push(s + 1);
                      t.seriesX = [];
                      for (var l = 0; l < e.length; l++) t.seriesX.push(n);
                      t.isXNumeric = !0;
                    }
                    if (0 === n.length) {
                      n = t.axisCharts
                        ? []
                        : t.series.map(function (e, t) {
                            return t + 1;
                          });
                      for (var c = 0; c < e.length; c++) t.seriesX.push(n);
                    }
                    (t.labels = n),
                      i.xaxis.convertedCatToNumeric &&
                        (t.categoryLabels = n.map(function (e) {
                          return i.xaxis.labels.formatter(e);
                        })),
                      (t.noLabelsProvided = !0);
                  },
                },
                {
                  key: "parseData",
                  value: function (e) {
                    var t = this.w,
                      i = t.config,
                      n = t.globals;
                    if (
                      (this.excludeCollapsedSeriesInYAxis(),
                      (this.fallbackToCategory = !1),
                      this.ctx.core.resetGlobals(),
                      this.ctx.core.isMultipleY(),
                      n.axisCharts
                        ? (this.parseDataAxisCharts(e),
                          this.coreUtils.getLargestSeries())
                        : this.parseDataNonAxisCharts(e),
                      "bar" === i.chart.type && i.chart.stacked)
                    ) {
                      var r = new Y(this.ctx);
                      n.series = r.setNullSeriesToZeroValues(n.series);
                    }
                    this.coreUtils.getSeriesTotals(),
                      n.axisCharts &&
                        (n.stackedSeriesTotals =
                          this.coreUtils.getStackedSeriesTotals()),
                      this.coreUtils.getPercentSeries(),
                      n.dataFormatXNumeric ||
                        (n.isXNumeric &&
                          ("numeric" !== i.xaxis.type ||
                            0 !== i.labels.length ||
                            0 !== i.xaxis.categories.length)) ||
                        this.handleExternalLabelsData(e);
                    for (
                      var a = this.coreUtils.getCategoryLabels(n.labels), o = 0;
                      o < a.length;
                      o++
                    )
                      if (Array.isArray(a[o])) {
                        n.isMultiLineX = !0;
                        break;
                      }
                  },
                },
                {
                  key: "excludeCollapsedSeriesInYAxis",
                  value: function () {
                    var e = this,
                      t = this.w;
                    t.globals.ignoreYAxisIndexes =
                      t.globals.collapsedSeries.map(function (i, n) {
                        if (
                          e.w.globals.isMultipleYAxis &&
                          !t.config.chart.stacked
                        )
                          return i.index;
                      });
                  },
                },
              ]),
              e
            );
          })(),
          W = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "getLabel",
                  value: function (e, t, i, n) {
                    var r =
                        arguments.length > 4 && void 0 !== arguments[4]
                          ? arguments[4]
                          : [],
                      a =
                        arguments.length > 5 && void 0 !== arguments[5]
                          ? arguments[5]
                          : "12px",
                      o =
                        !(arguments.length > 6 && void 0 !== arguments[6]) ||
                        arguments[6],
                      s = this.w,
                      l = void 0 === e[n] ? "" : e[n],
                      c = l,
                      u = s.globals.xLabelFormatter,
                      d = s.config.xaxis.labels.formatter,
                      h = !1,
                      f = new M(this.ctx),
                      p = l;
                    o &&
                      ((c = f.xLabelFormat(u, l, p, {
                        i: n,
                        dateFormatter: new I(this.ctx).formatDate,
                        w: s,
                      })),
                      void 0 !== d &&
                        (c = d(l, e[n], {
                          i: n,
                          dateFormatter: new I(this.ctx).formatDate,
                          w: s,
                        })));
                    t.length > 0
                      ? ((h = (function (e) {
                          var i = null;
                          return (
                            t.forEach(function (e) {
                              "month" === e.unit
                                ? (i = "year")
                                : "day" === e.unit
                                ? (i = "month")
                                : "hour" === e.unit
                                ? (i = "day")
                                : "minute" === e.unit && (i = "hour");
                            }),
                            i === e
                          );
                        })(t[n].unit)),
                        (i = t[n].position),
                        (c = t[n].value))
                      : "datetime" === s.config.xaxis.type &&
                        void 0 === d &&
                        (c = ""),
                      void 0 === c && (c = ""),
                      (c = Array.isArray(c) ? c : c.toString());
                    var g,
                      m = new w(this.ctx);
                    g =
                      s.globals.rotateXLabels && o
                        ? m.getTextRects(
                            c,
                            parseInt(a, 10),
                            null,
                            "rotate(".concat(
                              s.config.xaxis.labels.rotate,
                              " 0 0)"
                            ),
                            !1
                          )
                        : m.getTextRects(c, parseInt(a, 10));
                    var v =
                      !s.config.xaxis.labels.showDuplicates &&
                      this.ctx.timeScale;
                    return (
                      !Array.isArray(c) &&
                        (0 === c.indexOf("NaN") ||
                          0 === c.toLowerCase().indexOf("invalid") ||
                          c.toLowerCase().indexOf("infinity") >= 0 ||
                          (r.indexOf(c) >= 0 && v)) &&
                        (c = ""),
                      { x: i, text: c, textRect: g, isBold: h }
                    );
                  },
                },
                {
                  key: "checkLabelBasedOnTickamount",
                  value: function (e, t, i) {
                    var n = this.w,
                      r = n.config.xaxis.tickAmount;
                    return (
                      "dataPoints" === r &&
                        (r = Math.round(n.globals.gridWidth / 120)),
                      r > i ||
                        e % Math.round(i / (r + 1)) == 0 ||
                        (t.text = ""),
                      t
                    );
                  },
                },
                {
                  key: "checkForOverflowingLabels",
                  value: function (e, t, i, n, r) {
                    var a = this.w;
                    if (
                      (0 === e &&
                        a.globals.skipFirstTimelinelabel &&
                        (t.text = ""),
                      e === i - 1 &&
                        a.globals.skipLastTimelinelabel &&
                        (t.text = ""),
                      a.config.xaxis.labels.hideOverlappingLabels &&
                        n.length > 0)
                    ) {
                      var o = r[r.length - 1];
                      t.x <
                        o.textRect.width /
                          (a.globals.rotateXLabels
                            ? Math.abs(a.config.xaxis.labels.rotate) / 12
                            : 1.01) +
                          o.x && (t.text = "");
                    }
                    return t;
                  },
                },
                {
                  key: "checkForReversedLabels",
                  value: function (e, t) {
                    var i = this.w;
                    return (
                      i.config.yaxis[e] &&
                        i.config.yaxis[e].reversed &&
                        t.reverse(),
                      t
                    );
                  },
                },
                {
                  key: "isYAxisHidden",
                  value: function (e) {
                    var t = this.w,
                      i = new E(this.ctx);
                    return (
                      !t.config.yaxis[e].show ||
                      (!t.config.yaxis[e].showForNullSeries &&
                        i.isSeriesNull(e) &&
                        -1 === t.globals.collapsedSeriesIndices.indexOf(e))
                    );
                  },
                },
                {
                  key: "getYAxisForeColor",
                  value: function (e, t) {
                    var i = this.w;
                    return (
                      Array.isArray(e) &&
                        i.globals.yAxisScale[t] &&
                        this.ctx.theme.pushExtraColors(
                          e,
                          i.globals.yAxisScale[t].result.length,
                          !1
                        ),
                      e
                    );
                  },
                },
                {
                  key: "drawYAxisTicks",
                  value: function (e, t, i, n, r, a, o) {
                    var s = this.w,
                      l = new w(this.ctx),
                      c = s.globals.translateY;
                    if (n.show && t > 0) {
                      !0 === s.config.yaxis[r].opposite && (e += n.width);
                      for (var u = t; u >= 0; u--) {
                        var d =
                          c + t / 10 + s.config.yaxis[r].labels.offsetY - 1;
                        s.globals.isBarHorizontal && (d = a * u),
                          "heatmap" === s.config.chart.type && (d += a / 2);
                        var h = l.drawLine(
                          e + i.offsetX - n.width + n.offsetX,
                          d + n.offsetY,
                          e + i.offsetX + n.offsetX,
                          d + n.offsetY,
                          n.color
                        );
                        o.add(h), (c += a);
                      }
                    }
                  },
                },
              ]),
              e
            );
          })(),
          G = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "scaleSvgNode",
                  value: function (e, t) {
                    var i = parseFloat(e.getAttributeNS(null, "width")),
                      n = parseFloat(e.getAttributeNS(null, "height"));
                    e.setAttributeNS(null, "width", i * t),
                      e.setAttributeNS(null, "height", n * t),
                      e.setAttributeNS(null, "viewBox", "0 0 " + i + " " + n);
                  },
                },
                {
                  key: "fixSvgStringForIe11",
                  value: function (e) {
                    if (!b.isIE11()) return e.replace(/&nbsp;/g, "&#160;");
                    var t = 0,
                      i = e.replace(
                        /xmlns="http:\/\/www.w3.org\/2000\/svg"/g,
                        function (e) {
                          return 2 == ++t
                            ? 'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"'
                            : e;
                        }
                      );
                    return (i = i.replace(/xmlns:NS\d+=""/g, "")).replace(
                      /NS\d+:(\w+:\w+=")/g,
                      "$1"
                    );
                  },
                },
                {
                  key: "getSvgString",
                  value: function (e) {
                    null == e && (e = 1);
                    var t = this.w.globals.dom.Paper.svg();
                    if (1 !== e) {
                      var i = this.w.globals.dom.Paper.node.cloneNode(!0);
                      this.scaleSvgNode(i, e),
                        (t = new XMLSerializer().serializeToString(i));
                    }
                    return this.fixSvgStringForIe11(t);
                  },
                },
                {
                  key: "cleanup",
                  value: function () {
                    var e = this.w,
                      t = e.globals.dom.baseEl.getElementsByClassName(
                        "apexcharts-xcrosshairs"
                      ),
                      i = e.globals.dom.baseEl.getElementsByClassName(
                        "apexcharts-ycrosshairs"
                      ),
                      n = e.globals.dom.baseEl.querySelectorAll(
                        ".apexcharts-zoom-rect, .apexcharts-selection-rect"
                      );
                    Array.prototype.forEach.call(n, function (e) {
                      e.setAttribute("width", 0);
                    }),
                      t &&
                        t[0] &&
                        (t[0].setAttribute("x", -500),
                        t[0].setAttribute("x1", -500),
                        t[0].setAttribute("x2", -500)),
                      i &&
                        i[0] &&
                        (i[0].setAttribute("y", -100),
                        i[0].setAttribute("y1", -100),
                        i[0].setAttribute("y2", -100));
                  },
                },
                {
                  key: "svgUrl",
                  value: function () {
                    this.cleanup();
                    var e = this.getSvgString(),
                      t = new Blob([e], {
                        type: "image/svg+xml;charset=utf-8",
                      });
                    return URL.createObjectURL(t);
                  },
                },
                {
                  key: "dataURI",
                  value: function (e) {
                    var t = this;
                    return new Promise(function (i) {
                      var n = t.w,
                        r = e ? e.scale || e.width / n.globals.svgWidth : 1;
                      t.cleanup();
                      var a = document.createElement("canvas");
                      (a.width = n.globals.svgWidth * r),
                        (a.height =
                          parseInt(n.globals.dom.elWrap.style.height, 10) * r);
                      var o =
                          "transparent" === n.config.chart.background
                            ? "#fff"
                            : n.config.chart.background,
                        s = a.getContext("2d");
                      (s.fillStyle = o),
                        s.fillRect(0, 0, a.width * r, a.height * r);
                      var l = t.getSvgString(r);
                      if (window.canvg && b.isIE11()) {
                        var c = window.canvg.Canvg.fromString(s, l, {
                          ignoreClear: !0,
                          ignoreDimensions: !0,
                        });
                        c.start();
                        var u = a.msToBlob();
                        c.stop(), i({ blob: u });
                      } else {
                        var d = "data:image/svg+xml," + encodeURIComponent(l),
                          h = new Image();
                        (h.crossOrigin = "anonymous"),
                          (h.onload = function () {
                            if ((s.drawImage(h, 0, 0), a.msToBlob)) {
                              var e = a.msToBlob();
                              i({ blob: e });
                            } else {
                              var t = a.toDataURL("image/png");
                              i({ imgURI: t });
                            }
                          }),
                          (h.src = d);
                      }
                    });
                  },
                },
                {
                  key: "exportToSVG",
                  value: function () {
                    this.triggerDownload(
                      this.svgUrl(),
                      this.w.config.chart.toolbar.export.svg.filename,
                      ".svg"
                    );
                  },
                },
                {
                  key: "exportToPng",
                  value: function () {
                    var e = this;
                    this.dataURI().then(function (t) {
                      var i = t.imgURI,
                        n = t.blob;
                      n
                        ? navigator.msSaveOrOpenBlob(
                            n,
                            e.w.globals.chartID + ".png"
                          )
                        : e.triggerDownload(
                            i,
                            e.w.config.chart.toolbar.export.png.filename,
                            ".png"
                          );
                    });
                  },
                },
                {
                  key: "exportToCSV",
                  value: function (e) {
                    var t = this,
                      i = e.series,
                      n = e.fileName,
                      r = e.columnDelimiter,
                      a = void 0 === r ? "," : r,
                      o = e.lineDelimiter,
                      s = void 0 === o ? "\n" : o,
                      l = this.w;
                    i || (i = l.config.series);
                    var c = [],
                      u = [],
                      d = "",
                      h = l.globals.series.map(function (e, t) {
                        return -1 ===
                          l.globals.collapsedSeriesIndices.indexOf(t)
                          ? e
                          : [];
                      }),
                      f = Math.max.apply(
                        Math,
                        g(
                          i.map(function (e) {
                            return e.data ? e.data.length : 0;
                          })
                        )
                      ),
                      p = new X(this.ctx),
                      m = new W(this.ctx),
                      v = function (e) {
                        var i = "";
                        if (l.globals.axisCharts) {
                          if (
                            "category" === l.config.xaxis.type ||
                            l.config.xaxis.convertedCatToNumeric
                          )
                            if (l.globals.isBarHorizontal) {
                              var n = l.globals.yLabelFormatters[0],
                                r = new Y(t.ctx).getActiveConfigSeriesIndex();
                              i = n(l.globals.labels[e], {
                                seriesIndex: r,
                                dataPointIndex: e,
                                w: l,
                              });
                            } else
                              i = m.getLabel(
                                l.globals.labels,
                                l.globals.timescaleLabels,
                                0,
                                e
                              ).text;
                          "datetime" === l.config.xaxis.type &&
                            (l.config.xaxis.categories.length
                              ? (i = l.config.xaxis.categories[e])
                              : l.config.labels.length &&
                                (i = l.config.labels[e]));
                        } else i = l.config.labels[e];
                        return (
                          Array.isArray(i) && (i = i.join(" ")),
                          b.isNumber(i) ? i : i.split(a).join("")
                        );
                      };
                    c.push(l.config.chart.toolbar.export.csv.headerCategory),
                      "boxPlot" === l.config.chart.type
                        ? (c.push("minimum"),
                          c.push("q1"),
                          c.push("median"),
                          c.push("q3"),
                          c.push("maximum"))
                        : "candlestick" === l.config.chart.type
                        ? (c.push("open"),
                          c.push("high"),
                          c.push("low"),
                          c.push("close"))
                        : "rangeBar" === l.config.chart.type
                        ? (c.push("minimum"), c.push("maximum"))
                        : i.map(function (e, t) {
                            var i = e.name ? e.name : "series-".concat(t);
                            l.globals.axisCharts &&
                              c.push(
                                i.split(a).join("")
                                  ? i.split(a).join("")
                                  : "series-".concat(t)
                              );
                          }),
                      l.globals.axisCharts ||
                        (c.push(l.config.chart.toolbar.export.csv.headerValue),
                        u.push(c.join(a))),
                      i.map(function (e, t) {
                        l.globals.axisCharts
                          ? (function (e, t) {
                              if (
                                (c.length && 0 === t && u.push(c.join(a)),
                                e.data)
                              ) {
                                e.data =
                                  (e.data.length && e.data) ||
                                  g(Array(f)).map(function () {
                                    return "";
                                  });
                                for (var n = 0; n < e.data.length; n++) {
                                  c = [];
                                  var r = v(n);
                                  if (
                                    (r ||
                                      (p.isFormatXY()
                                        ? (r = i[t].data[n].x)
                                        : p.isFormat2DArray() &&
                                          (r = i[t].data[n]
                                            ? i[t].data[n][0]
                                            : "")),
                                    0 === t)
                                  ) {
                                    c.push(
                                      ((s = r),
                                      "datetime" === l.config.xaxis.type &&
                                      String(s).length >= 10
                                        ? l.config.chart.toolbar.export.csv.dateFormatter(
                                            r
                                          )
                                        : b.isNumber(r)
                                        ? r
                                        : r.split(a).join(""))
                                    );
                                    for (
                                      var o = 0;
                                      o < l.globals.series.length;
                                      o++
                                    )
                                      p.isFormatXY()
                                        ? c.push(i[o].data[n].y)
                                        : c.push(h[o][n]);
                                  }
                                  ("candlestick" === l.config.chart.type ||
                                    (e.type && "candlestick" === e.type)) &&
                                    (c.pop(),
                                    c.push(l.globals.seriesCandleO[t][n]),
                                    c.push(l.globals.seriesCandleH[t][n]),
                                    c.push(l.globals.seriesCandleL[t][n]),
                                    c.push(l.globals.seriesCandleC[t][n])),
                                    ("boxPlot" === l.config.chart.type ||
                                      (e.type && "boxPlot" === e.type)) &&
                                      (c.pop(),
                                      c.push(l.globals.seriesCandleO[t][n]),
                                      c.push(l.globals.seriesCandleH[t][n]),
                                      c.push(l.globals.seriesCandleM[t][n]),
                                      c.push(l.globals.seriesCandleL[t][n]),
                                      c.push(l.globals.seriesCandleC[t][n])),
                                    "rangeBar" === l.config.chart.type &&
                                      (c.pop(),
                                      c.push(l.globals.seriesRangeStart[t][n]),
                                      c.push(l.globals.seriesRangeEnd[t][n])),
                                    c.length && u.push(c.join(a));
                                }
                              }
                              var s;
                            })(e, t)
                          : ((c = []).push(
                              l.globals.labels[t].split(a).join("")
                            ),
                            c.push(h[t]),
                            u.push(c.join(a)));
                      }),
                      (d += u.join(s)),
                      this.triggerDownload(
                        "data:text/csv; charset=utf-8," +
                          encodeURIComponent("\ufeff" + d),
                        n || l.config.chart.toolbar.export.csv.filename,
                        ".csv"
                      );
                  },
                },
                {
                  key: "triggerDownload",
                  value: function (e, t, i) {
                    var n = document.createElement("a");
                    (n.href = e),
                      (n.download = (t || this.w.globals.chartID) + i),
                      document.body.appendChild(n),
                      n.click(),
                      document.body.removeChild(n);
                  },
                },
              ]),
              e
            );
          })(),
          q = (function () {
            function e(t, i) {
              s(this, e), (this.ctx = t), (this.elgrid = i), (this.w = t.w);
              var n = this.w;
              (this.axesUtils = new W(t)),
                (this.xaxisLabels = n.globals.labels.slice()),
                n.globals.timescaleLabels.length > 0 &&
                  !n.globals.isBarHorizontal &&
                  (this.xaxisLabels = n.globals.timescaleLabels.slice()),
                n.config.xaxis.overwriteCategories &&
                  (this.xaxisLabels = n.config.xaxis.overwriteCategories),
                (this.drawnLabels = []),
                (this.drawnLabelsRects = []),
                "top" === n.config.xaxis.position
                  ? (this.offY = 0)
                  : (this.offY = n.globals.gridHeight + 1),
                (this.offY = this.offY + n.config.xaxis.axisBorder.offsetY),
                (this.isCategoryBarHorizontal =
                  "bar" === n.config.chart.type &&
                  n.config.plotOptions.bar.horizontal),
                (this.xaxisFontSize = n.config.xaxis.labels.style.fontSize),
                (this.xaxisFontFamily = n.config.xaxis.labels.style.fontFamily),
                (this.xaxisForeColors = n.config.xaxis.labels.style.colors),
                (this.xaxisBorderWidth = n.config.xaxis.axisBorder.width),
                this.isCategoryBarHorizontal &&
                  (this.xaxisBorderWidth =
                    n.config.yaxis[0].axisBorder.width.toString()),
                this.xaxisBorderWidth.indexOf("%") > -1
                  ? (this.xaxisBorderWidth =
                      (n.globals.gridWidth *
                        parseInt(this.xaxisBorderWidth, 10)) /
                      100)
                  : (this.xaxisBorderWidth = parseInt(
                      this.xaxisBorderWidth,
                      10
                    )),
                (this.xaxisBorderHeight = n.config.xaxis.axisBorder.height),
                (this.yaxis = n.config.yaxis[0]);
            }
            return (
              c(e, [
                {
                  key: "drawXaxis",
                  value: function () {
                    var e = this.w,
                      t = new w(this.ctx),
                      i = t.group({
                        class: "apexcharts-xaxis",
                        transform: "translate("
                          .concat(e.config.xaxis.offsetX, ", ")
                          .concat(e.config.xaxis.offsetY, ")"),
                      }),
                      n = t.group({
                        class: "apexcharts-xaxis-texts-g",
                        transform: "translate("
                          .concat(e.globals.translateXAxisX, ", ")
                          .concat(e.globals.translateXAxisY, ")"),
                      });
                    i.add(n);
                    for (var r = [], a = 0; a < this.xaxisLabels.length; a++)
                      r.push(this.xaxisLabels[a]);
                    if (
                      (this.drawXAxisLabelAndGroup(
                        !0,
                        t,
                        n,
                        r,
                        e.globals.isXNumeric,
                        function (e, t) {
                          return t;
                        }
                      ),
                      e.globals.hasGroups)
                    ) {
                      var o = e.globals.groups;
                      r = [];
                      for (var s = 0; s < o.length; s++) r.push(o[s].title);
                      var l = {};
                      e.config.xaxis.group.style &&
                        ((l.xaxisFontSize =
                          e.config.xaxis.group.style.fontSize),
                        (l.xaxisFontFamily =
                          e.config.xaxis.group.style.fontFamily),
                        (l.xaxisForeColors = e.config.xaxis.group.style.colors),
                        (l.fontWeight = e.config.xaxis.group.style.fontWeight),
                        (l.cssClass = e.config.xaxis.group.style.cssClass)),
                        this.drawXAxisLabelAndGroup(
                          !1,
                          t,
                          n,
                          r,
                          !1,
                          function (e, t) {
                            return o[e].cols * t;
                          },
                          l
                        );
                    }
                    if (void 0 !== e.config.xaxis.title.text) {
                      var c = t.group({ class: "apexcharts-xaxis-title" }),
                        u = t.drawText({
                          x:
                            e.globals.gridWidth / 2 +
                            e.config.xaxis.title.offsetX,
                          y:
                            this.offY +
                            parseFloat(this.xaxisFontSize) +
                            ("bottom" === e.config.xaxis.position
                              ? e.globals.xAxisLabelsHeight
                              : -e.globals.xAxisLabelsHeight - 10) +
                            e.config.xaxis.title.offsetY,
                          text: e.config.xaxis.title.text,
                          textAnchor: "middle",
                          fontSize: e.config.xaxis.title.style.fontSize,
                          fontFamily: e.config.xaxis.title.style.fontFamily,
                          fontWeight: e.config.xaxis.title.style.fontWeight,
                          foreColor: e.config.xaxis.title.style.color,
                          cssClass:
                            "apexcharts-xaxis-title-text " +
                            e.config.xaxis.title.style.cssClass,
                        });
                      c.add(u), i.add(c);
                    }
                    if (e.config.xaxis.axisBorder.show) {
                      var d = e.globals.barPadForNumericAxis,
                        h = t.drawLine(
                          e.globals.padHorizontal +
                            e.config.xaxis.axisBorder.offsetX -
                            d,
                          this.offY,
                          this.xaxisBorderWidth + d,
                          this.offY,
                          e.config.xaxis.axisBorder.color,
                          0,
                          this.xaxisBorderHeight
                        );
                      this.elgrid && this.elgrid.elGridBorders
                        ? this.elgrid.elGridBorders.add(h)
                        : i.add(h);
                    }
                    return i;
                  },
                },
                {
                  key: "drawXAxisLabelAndGroup",
                  value: function (e, t, i, n, r, a) {
                    var o,
                      s = this,
                      l =
                        arguments.length > 6 && void 0 !== arguments[6]
                          ? arguments[6]
                          : {},
                      c = [],
                      u = [],
                      d = this.w,
                      h = l.xaxisFontSize || this.xaxisFontSize,
                      f = l.xaxisFontFamily || this.xaxisFontFamily,
                      p = l.xaxisForeColors || this.xaxisForeColors,
                      g =
                        l.fontWeight || d.config.xaxis.labels.style.fontWeight,
                      m = l.cssClass || d.config.xaxis.labels.style.cssClass,
                      v = d.globals.padHorizontal,
                      b = n.length,
                      y =
                        "category" === d.config.xaxis.type
                          ? d.globals.dataPoints
                          : b;
                    if ((0 === y && b > y && (y = b), r)) {
                      var x = y > 1 ? y - 1 : y;
                      (o = d.globals.gridWidth / x),
                        (v = v + a(0, o) / 2 + d.config.xaxis.labels.offsetX);
                    } else
                      (o = d.globals.gridWidth / y),
                        (v = v + a(0, o) + d.config.xaxis.labels.offsetX);
                    for (
                      var w = function (r) {
                          var l =
                            v - a(r, o) / 2 + d.config.xaxis.labels.offsetX;
                          0 === r &&
                            1 === b &&
                            o / 2 === v &&
                            1 === y &&
                            (l = d.globals.gridWidth / 2);
                          var x = s.axesUtils.getLabel(
                              n,
                              d.globals.timescaleLabels,
                              l,
                              r,
                              c,
                              h,
                              e
                            ),
                            w = 28;
                          if (
                            (d.globals.rotateXLabels && e && (w = 22),
                            d.config.xaxis.title.text &&
                              "top" === d.config.xaxis.position &&
                              (w +=
                                parseFloat(
                                  d.config.xaxis.title.style.fontSize
                                ) + 2),
                            e ||
                              (w =
                                w +
                                parseFloat(h) +
                                (d.globals.xAxisLabelsHeight -
                                  d.globals.xAxisGroupLabelsHeight) +
                                (d.globals.rotateXLabels ? 10 : 0)),
                            (x =
                              void 0 !== d.config.xaxis.tickAmount &&
                              "dataPoints" !== d.config.xaxis.tickAmount &&
                              "datetime" !== d.config.xaxis.type
                                ? s.axesUtils.checkLabelBasedOnTickamount(
                                    r,
                                    x,
                                    b
                                  )
                                : s.axesUtils.checkForOverflowingLabels(
                                    r,
                                    x,
                                    b,
                                    c,
                                    u
                                  )),
                            d.config.xaxis.labels.show)
                          ) {
                            var E = t.drawText({
                              x: x.x,
                              y:
                                s.offY +
                                d.config.xaxis.labels.offsetY +
                                w -
                                ("top" === d.config.xaxis.position
                                  ? d.globals.xAxisHeight +
                                    d.config.xaxis.axisTicks.height -
                                    2
                                  : 0),
                              text: x.text,
                              textAnchor: "middle",
                              fontWeight: x.isBold ? 600 : g,
                              fontSize: h,
                              fontFamily: f,
                              foreColor: Array.isArray(p)
                                ? e && d.config.xaxis.convertedCatToNumeric
                                  ? p[d.globals.minX + r - 1]
                                  : p[r]
                                : p,
                              isPlainText: !1,
                              cssClass:
                                (e
                                  ? "apexcharts-xaxis-label "
                                  : "apexcharts-xaxis-group-label ") + m,
                            });
                            if (
                              (i.add(E),
                              E.on("click", function (e) {
                                if (
                                  "function" ==
                                  typeof d.config.chart.events.xAxisLabelClick
                                ) {
                                  var t = Object.assign({}, d, {
                                    labelIndex: r,
                                  });
                                  d.config.chart.events.xAxisLabelClick(
                                    e,
                                    s.ctx,
                                    t
                                  );
                                }
                              }),
                              e)
                            ) {
                              var _ = document.createElementNS(
                                d.globals.SVGNS,
                                "title"
                              );
                              (_.textContent = Array.isArray(x.text)
                                ? x.text.join(" ")
                                : x.text),
                                E.node.appendChild(_),
                                "" !== x.text && (c.push(x.text), u.push(x));
                            }
                          }
                          r < b - 1 && (v += a(r + 1, o));
                        },
                        E = 0;
                      E <= b - 1;
                      E++
                    )
                      w(E);
                  },
                },
                {
                  key: "drawXaxisInversed",
                  value: function (e) {
                    var t,
                      i,
                      n = this,
                      r = this.w,
                      a = new w(this.ctx),
                      o = r.config.yaxis[0].opposite
                        ? r.globals.translateYAxisX[e]
                        : 0,
                      s = a.group({
                        class: "apexcharts-yaxis apexcharts-xaxis-inversed",
                        rel: e,
                      }),
                      l = a.group({
                        class:
                          "apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",
                        transform: "translate(" + o + ", 0)",
                      });
                    s.add(l);
                    var c = [];
                    if (r.config.yaxis[e].show)
                      for (var u = 0; u < this.xaxisLabels.length; u++)
                        c.push(this.xaxisLabels[u]);
                    (t = r.globals.gridHeight / c.length), (i = -t / 2.2);
                    var d = r.globals.yLabelFormatters[0],
                      h = r.config.yaxis[0].labels;
                    if (h.show)
                      for (
                        var f = function (o) {
                            var s = void 0 === c[o] ? "" : c[o];
                            s = d(s, {
                              seriesIndex: e,
                              dataPointIndex: o,
                              w: r,
                            });
                            var u = n.axesUtils.getYAxisForeColor(
                                h.style.colors,
                                e
                              ),
                              f = 0;
                            Array.isArray(s) &&
                              (f =
                                (s.length / 2) *
                                parseInt(h.style.fontSize, 10));
                            var p = h.offsetX - 15,
                              g = "end";
                            n.yaxis.opposite && (g = "start"),
                              "left" === r.config.yaxis[0].labels.align
                                ? ((p = h.offsetX), (g = "start"))
                                : "center" === r.config.yaxis[0].labels.align
                                ? ((p = h.offsetX), (g = "middle"))
                                : "right" === r.config.yaxis[0].labels.align &&
                                  (g = "end");
                            var m = a.drawText({
                              x: p,
                              y: i + t + h.offsetY - f,
                              text: s,
                              textAnchor: g,
                              foreColor: Array.isArray(u) ? u[o] : u,
                              fontSize: h.style.fontSize,
                              fontFamily: h.style.fontFamily,
                              fontWeight: h.style.fontWeight,
                              isPlainText: !1,
                              cssClass:
                                "apexcharts-yaxis-label " + h.style.cssClass,
                              maxWidth: h.maxWidth,
                            });
                            l.add(m),
                              m.on("click", function (e) {
                                if (
                                  "function" ==
                                  typeof r.config.chart.events.xAxisLabelClick
                                ) {
                                  var t = Object.assign({}, r, {
                                    labelIndex: o,
                                  });
                                  r.config.chart.events.xAxisLabelClick(
                                    e,
                                    n.ctx,
                                    t
                                  );
                                }
                              });
                            var v = document.createElementNS(
                              r.globals.SVGNS,
                              "title"
                            );
                            if (
                              ((v.textContent = Array.isArray(s)
                                ? s.join(" ")
                                : s),
                              m.node.appendChild(v),
                              0 !== r.config.yaxis[e].labels.rotate)
                            ) {
                              var b = a.rotateAroundCenter(m.node);
                              m.node.setAttribute(
                                "transform",
                                "rotate("
                                  .concat(
                                    r.config.yaxis[e].labels.rotate,
                                    " 0 "
                                  )
                                  .concat(b.y, ")")
                              );
                            }
                            i += t;
                          },
                          p = 0;
                        p <= c.length - 1;
                        p++
                      )
                        f(p);
                    if (void 0 !== r.config.yaxis[0].title.text) {
                      var g = a.group({
                          class:
                            "apexcharts-yaxis-title apexcharts-xaxis-title-inversed",
                          transform: "translate(" + o + ", 0)",
                        }),
                        m = a.drawText({
                          x: r.config.yaxis[0].title.offsetX,
                          y:
                            r.globals.gridHeight / 2 +
                            r.config.yaxis[0].title.offsetY,
                          text: r.config.yaxis[0].title.text,
                          textAnchor: "middle",
                          foreColor: r.config.yaxis[0].title.style.color,
                          fontSize: r.config.yaxis[0].title.style.fontSize,
                          fontWeight: r.config.yaxis[0].title.style.fontWeight,
                          fontFamily: r.config.yaxis[0].title.style.fontFamily,
                          cssClass:
                            "apexcharts-yaxis-title-text " +
                            r.config.yaxis[0].title.style.cssClass,
                        });
                      g.add(m), s.add(g);
                    }
                    var v = 0;
                    this.isCategoryBarHorizontal &&
                      r.config.yaxis[0].opposite &&
                      (v = r.globals.gridWidth);
                    var b = r.config.xaxis.axisBorder;
                    if (b.show) {
                      var y = a.drawLine(
                        r.globals.padHorizontal + b.offsetX + v,
                        1 + b.offsetY,
                        r.globals.padHorizontal + b.offsetX + v,
                        r.globals.gridHeight + b.offsetY,
                        b.color,
                        0
                      );
                      this.elgrid && this.elgrid.elGridBorders
                        ? this.elgrid.elGridBorders.add(y)
                        : s.add(y);
                    }
                    return (
                      r.config.yaxis[0].axisTicks.show &&
                        this.axesUtils.drawYAxisTicks(
                          v,
                          c.length,
                          r.config.yaxis[0].axisBorder,
                          r.config.yaxis[0].axisTicks,
                          0,
                          t,
                          s
                        ),
                      s
                    );
                  },
                },
                {
                  key: "drawXaxisTicks",
                  value: function (e, t, i) {
                    var n = this.w,
                      r = e;
                    if (!(e < 0 || e - 2 > n.globals.gridWidth)) {
                      var a = this.offY + n.config.xaxis.axisTicks.offsetY;
                      if (
                        ((t = t + a + n.config.xaxis.axisTicks.height),
                        "top" === n.config.xaxis.position &&
                          (t = a - n.config.xaxis.axisTicks.height),
                        n.config.xaxis.axisTicks.show)
                      ) {
                        var o = new w(this.ctx).drawLine(
                          e + n.config.xaxis.axisTicks.offsetX,
                          a + n.config.xaxis.offsetY,
                          r + n.config.xaxis.axisTicks.offsetX,
                          t + n.config.xaxis.offsetY,
                          n.config.xaxis.axisTicks.color
                        );
                        i.add(o), o.node.classList.add("apexcharts-xaxis-tick");
                      }
                    }
                  },
                },
                {
                  key: "getXAxisTicksPositions",
                  value: function () {
                    var e = this.w,
                      t = [],
                      i = this.xaxisLabels.length,
                      n = e.globals.padHorizontal;
                    if (e.globals.timescaleLabels.length > 0)
                      for (var r = 0; r < i; r++)
                        (n = this.xaxisLabels[r].position), t.push(n);
                    else
                      for (var a = i, o = 0; o < a; o++) {
                        var s = a;
                        e.globals.isXNumeric &&
                          "bar" !== e.config.chart.type &&
                          (s -= 1),
                          (n += e.globals.gridWidth / s),
                          t.push(n);
                      }
                    return t;
                  },
                },
                {
                  key: "xAxisLabelCorrections",
                  value: function () {
                    var e = this.w,
                      t = new w(this.ctx),
                      i = e.globals.dom.baseEl.querySelector(
                        ".apexcharts-xaxis-texts-g"
                      ),
                      n = e.globals.dom.baseEl.querySelectorAll(
                        ".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"
                      ),
                      r = e.globals.dom.baseEl.querySelectorAll(
                        ".apexcharts-yaxis-inversed text"
                      ),
                      a = e.globals.dom.baseEl.querySelectorAll(
                        ".apexcharts-xaxis-inversed-texts-g text tspan"
                      );
                    if (
                      e.globals.rotateXLabels ||
                      e.config.xaxis.labels.rotateAlways
                    )
                      for (var o = 0; o < n.length; o++) {
                        var s = t.rotateAroundCenter(n[o]);
                        (s.y = s.y - 1),
                          (s.x = s.x + 1),
                          n[o].setAttribute(
                            "transform",
                            "rotate("
                              .concat(e.config.xaxis.labels.rotate, " ")
                              .concat(s.x, " ")
                              .concat(s.y, ")")
                          ),
                          n[o].setAttribute("text-anchor", "end"),
                          i.setAttribute(
                            "transform",
                            "translate(0, ".concat(-10, ")")
                          );
                        var l = n[o].childNodes;
                        e.config.xaxis.labels.trim &&
                          Array.prototype.forEach.call(l, function (i) {
                            t.placeTextWithEllipsis(
                              i,
                              i.textContent,
                              e.globals.xAxisLabelsHeight -
                                ("bottom" === e.config.legend.position
                                  ? 20
                                  : 10)
                            );
                          });
                      }
                    else
                      !(function () {
                        for (
                          var i =
                              e.globals.gridWidth /
                              (e.globals.labels.length + 1),
                            r = 0;
                          r < n.length;
                          r++
                        ) {
                          var a = n[r].childNodes;
                          e.config.xaxis.labels.trim &&
                            "datetime" !== e.config.xaxis.type &&
                            Array.prototype.forEach.call(a, function (e) {
                              t.placeTextWithEllipsis(e, e.textContent, i);
                            });
                        }
                      })();
                    if (r.length > 0) {
                      var c = r[r.length - 1].getBBox(),
                        u = r[0].getBBox();
                      c.x < -20 &&
                        r[r.length - 1].parentNode.removeChild(r[r.length - 1]),
                        u.x + u.width > e.globals.gridWidth &&
                          !e.globals.isBarHorizontal &&
                          r[0].parentNode.removeChild(r[0]);
                      for (var d = 0; d < a.length; d++)
                        t.placeTextWithEllipsis(
                          a[d],
                          a[d].textContent,
                          e.config.yaxis[0].labels.maxWidth -
                            (e.config.yaxis[0].title.text
                              ? 2 *
                                parseFloat(
                                  e.config.yaxis[0].title.style.fontSize
                                )
                              : 0) -
                            15
                        );
                    }
                  },
                },
              ]),
              e
            );
          })(),
          V = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
              var i = this.w;
              (this.xaxisLabels = i.globals.labels.slice()),
                (this.axesUtils = new W(t)),
                (this.isRangeBar = i.globals.seriesRange.length),
                i.globals.timescaleLabels.length > 0 &&
                  (this.xaxisLabels = i.globals.timescaleLabels.slice());
            }
            return (
              c(e, [
                {
                  key: "drawGridArea",
                  value: function () {
                    var e =
                        arguments.length > 0 && void 0 !== arguments[0]
                          ? arguments[0]
                          : null,
                      t = this.w,
                      i = new w(this.ctx);
                    null === e && (e = i.group({ class: "apexcharts-grid" }));
                    var n = i.drawLine(
                        t.globals.padHorizontal,
                        1,
                        t.globals.padHorizontal,
                        t.globals.gridHeight,
                        "transparent"
                      ),
                      r = i.drawLine(
                        t.globals.padHorizontal,
                        t.globals.gridHeight,
                        t.globals.gridWidth,
                        t.globals.gridHeight,
                        "transparent"
                      );
                    return e.add(r), e.add(n), e;
                  },
                },
                {
                  key: "drawGrid",
                  value: function () {
                    var e = null;
                    return (
                      this.w.globals.axisCharts &&
                        ((e = this.renderGrid()), this.drawGridArea(e.el)),
                      e
                    );
                  },
                },
                {
                  key: "createGridMask",
                  value: function () {
                    var e = this.w,
                      t = e.globals,
                      i = new w(this.ctx),
                      n = Array.isArray(e.config.stroke.width)
                        ? 0
                        : e.config.stroke.width;
                    if (Array.isArray(e.config.stroke.width)) {
                      var r = 0;
                      e.config.stroke.width.forEach(function (e) {
                        r = Math.max(r, e);
                      }),
                        (n = r);
                    }
                    (t.dom.elGridRectMask = document.createElementNS(
                      t.SVGNS,
                      "clipPath"
                    )),
                      t.dom.elGridRectMask.setAttribute(
                        "id",
                        "gridRectMask".concat(t.cuid)
                      ),
                      (t.dom.elGridRectMarkerMask = document.createElementNS(
                        t.SVGNS,
                        "clipPath"
                      )),
                      t.dom.elGridRectMarkerMask.setAttribute(
                        "id",
                        "gridRectMarkerMask".concat(t.cuid)
                      ),
                      (t.dom.elForecastMask = document.createElementNS(
                        t.SVGNS,
                        "clipPath"
                      )),
                      t.dom.elForecastMask.setAttribute(
                        "id",
                        "forecastMask".concat(t.cuid)
                      ),
                      (t.dom.elNonForecastMask = document.createElementNS(
                        t.SVGNS,
                        "clipPath"
                      )),
                      t.dom.elNonForecastMask.setAttribute(
                        "id",
                        "nonForecastMask".concat(t.cuid)
                      );
                    var a = e.config.chart.type,
                      o = 0,
                      s = 0;
                    ("bar" === a ||
                      "rangeBar" === a ||
                      "candlestick" === a ||
                      "boxPlot" === a ||
                      e.globals.comboBarCount > 0) &&
                      e.globals.isXNumeric &&
                      !e.globals.isBarHorizontal &&
                      ((o = e.config.grid.padding.left),
                      (s = e.config.grid.padding.right),
                      t.barPadForNumericAxis > o &&
                        ((o = t.barPadForNumericAxis),
                        (s = t.barPadForNumericAxis))),
                      (t.dom.elGridRect = i.drawRect(
                        -n / 2 - o - 2,
                        -n / 2,
                        t.gridWidth + n + s + o + 4,
                        t.gridHeight + n,
                        0,
                        "#fff"
                      ));
                    var l = e.globals.markers.largestSize + 1;
                    (t.dom.elGridRectMarker = i.drawRect(
                      2 * -l,
                      2 * -l,
                      t.gridWidth + 4 * l,
                      t.gridHeight + 4 * l,
                      0,
                      "#fff"
                    )),
                      t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),
                      t.dom.elGridRectMarkerMask.appendChild(
                        t.dom.elGridRectMarker.node
                      );
                    var c = t.dom.baseEl.querySelector("defs");
                    c.appendChild(t.dom.elGridRectMask),
                      c.appendChild(t.dom.elForecastMask),
                      c.appendChild(t.dom.elNonForecastMask),
                      c.appendChild(t.dom.elGridRectMarkerMask);
                  },
                },
                {
                  key: "_drawGridLines",
                  value: function (e) {
                    var t = e.i,
                      i = e.x1,
                      n = e.y1,
                      r = e.x2,
                      a = e.y2,
                      o = e.xCount,
                      s = e.parent,
                      l = this.w;
                    if (
                      !(
                        (0 === t && l.globals.skipFirstTimelinelabel) ||
                        (t === o - 1 &&
                          l.globals.skipLastTimelinelabel &&
                          !l.config.xaxis.labels.formatter) ||
                        "radar" === l.config.chart.type
                      )
                    ) {
                      l.config.grid.xaxis.lines.show &&
                        this._drawGridLine({
                          i: t,
                          x1: i,
                          y1: n,
                          x2: r,
                          y2: a,
                          xCount: o,
                          parent: s,
                        });
                      var c = 0;
                      if (
                        l.globals.hasGroups &&
                        "between" === l.config.xaxis.tickPlacement
                      ) {
                        var u = l.globals.groups;
                        if (u) {
                          for (var d = 0, h = 0; d < t && h < u.length; h++)
                            d += u[h].cols;
                          d === t && (c = 0.6 * l.globals.xAxisLabelsHeight);
                        }
                      }
                      new q(this.ctx).drawXaxisTicks(
                        i,
                        c,
                        l.globals.dom.elGraphical
                      );
                    }
                  },
                },
                {
                  key: "_drawGridLine",
                  value: function (e) {
                    var t = e.i,
                      i = e.x1,
                      n = e.y1,
                      r = e.x2,
                      a = e.y2,
                      o = e.xCount,
                      s = e.parent,
                      l = this.w,
                      c = !1,
                      u = s.node.classList.contains(
                        "apexcharts-gridlines-horizontal"
                      ),
                      d = l.config.grid.strokeDashArray,
                      h = l.globals.barPadForNumericAxis;
                    ((0 === n && 0 === a) || (0 === i && 0 === r)) && (c = !0),
                      n === l.globals.gridHeight &&
                        a === l.globals.gridHeight &&
                        (c = !0),
                      !l.globals.isBarHorizontal ||
                        (0 !== t && t !== o - 1) ||
                        (c = !0);
                    var f = new w(this).drawLine(
                      i - (u ? h : 0),
                      n,
                      r + (u ? h : 0),
                      a,
                      l.config.grid.borderColor,
                      d
                    );
                    f.node.classList.add("apexcharts-gridline"),
                      c ? this.elGridBorders.add(f) : s.add(f);
                  },
                },
                {
                  key: "_drawGridBandRect",
                  value: function (e) {
                    var t = e.c,
                      i = e.x1,
                      n = e.y1,
                      r = e.x2,
                      a = e.y2,
                      o = e.type,
                      s = this.w,
                      l = new w(this.ctx),
                      c = s.globals.barPadForNumericAxis;
                    if ("column" !== o || "datetime" !== s.config.xaxis.type) {
                      var u = s.config.grid[o].colors[t],
                        d = l.drawRect(
                          i - ("row" === o ? c : 0),
                          n,
                          r + ("row" === o ? 2 * c : 0),
                          a,
                          0,
                          u,
                          s.config.grid[o].opacity
                        );
                      this.elg.add(d),
                        d.attr(
                          "clip-path",
                          "url(#gridRectMask".concat(s.globals.cuid, ")")
                        ),
                        d.node.classList.add("apexcharts-grid-".concat(o));
                    }
                  },
                },
                {
                  key: "_drawXYLines",
                  value: function (e) {
                    var t = this,
                      i = e.xCount,
                      n = e.tickAmount,
                      r = this.w;
                    if (
                      r.config.grid.xaxis.lines.show ||
                      r.config.xaxis.axisTicks.show
                    ) {
                      var a,
                        o = r.globals.padHorizontal,
                        s = r.globals.gridHeight;
                      r.globals.timescaleLabels.length
                        ? (function (e) {
                            for (
                              var n = e.xC,
                                r = e.x1,
                                a = e.y1,
                                o = e.x2,
                                s = e.y2,
                                l = 0;
                              l < n;
                              l++
                            )
                              (r = t.xaxisLabels[l].position),
                                (o = t.xaxisLabels[l].position),
                                t._drawGridLines({
                                  i: l,
                                  x1: r,
                                  y1: a,
                                  x2: o,
                                  y2: s,
                                  xCount: i,
                                  parent: t.elgridLinesV,
                                });
                          })({ xC: i, x1: o, y1: 0, x2: a, y2: s })
                        : (r.globals.isXNumeric &&
                            (i = r.globals.xAxisScale.result.length),
                          (function (e) {
                            for (
                              var n = e.xC,
                                a = e.x1,
                                o = e.y1,
                                s = e.x2,
                                l = e.y2,
                                c = 0;
                              c < n + (r.globals.isXNumeric ? 0 : 1);
                              c++
                            )
                              0 === c &&
                                1 === n &&
                                1 === r.globals.dataPoints &&
                                (s = a = r.globals.gridWidth / 2),
                                t._drawGridLines({
                                  i: c,
                                  x1: a,
                                  y1: o,
                                  x2: s,
                                  y2: l,
                                  xCount: i,
                                  parent: t.elgridLinesV,
                                }),
                                (s = a +=
                                  r.globals.gridWidth /
                                  (r.globals.isXNumeric ? n - 1 : n));
                          })({ xC: i, x1: o, y1: 0, x2: a, y2: s }));
                    }
                    if (r.config.grid.yaxis.lines.show) {
                      var l = 0,
                        c = 0,
                        u = r.globals.gridWidth,
                        d = n + 1;
                      this.isRangeBar && (d = r.globals.labels.length);
                      for (var h = 0; h < d + (this.isRangeBar ? 1 : 0); h++)
                        this._drawGridLine({
                          i: h,
                          xCount: d + (this.isRangeBar ? 1 : 0),
                          x1: 0,
                          y1: l,
                          x2: u,
                          y2: c,
                          parent: this.elgridLinesH,
                        }),
                          (c = l +=
                            r.globals.gridHeight / (this.isRangeBar ? d : n));
                    }
                  },
                },
                {
                  key: "_drawInvertedXYLines",
                  value: function (e) {
                    var t = e.xCount,
                      i = this.w;
                    if (
                      i.config.grid.xaxis.lines.show ||
                      i.config.xaxis.axisTicks.show
                    )
                      for (
                        var n,
                          r = i.globals.padHorizontal,
                          a = i.globals.gridHeight,
                          o = 0;
                        o < t + 1;
                        o++
                      )
                        i.config.grid.xaxis.lines.show &&
                          this._drawGridLine({
                            i: o,
                            xCount: t + 1,
                            x1: r,
                            y1: 0,
                            x2: n,
                            y2: a,
                            parent: this.elgridLinesV,
                          }),
                          new q(this.ctx).drawXaxisTicks(
                            r,
                            0,
                            i.globals.dom.elGraphical
                          ),
                          (n = r = r + i.globals.gridWidth / t + 0.3);
                    if (i.config.grid.yaxis.lines.show)
                      for (
                        var s = 0, l = 0, c = i.globals.gridWidth, u = 0;
                        u < i.globals.dataPoints + 1;
                        u++
                      )
                        this._drawGridLine({
                          i: u,
                          xCount: i.globals.dataPoints + 1,
                          x1: 0,
                          y1: s,
                          x2: c,
                          y2: l,
                          parent: this.elgridLinesH,
                        }),
                          (l = s +=
                            i.globals.gridHeight / i.globals.dataPoints);
                  },
                },
                {
                  key: "renderGrid",
                  value: function () {
                    var e = this.w,
                      t = new w(this.ctx);
                    (this.elg = t.group({ class: "apexcharts-grid" })),
                      (this.elgridLinesH = t.group({
                        class: "apexcharts-gridlines-horizontal",
                      })),
                      (this.elgridLinesV = t.group({
                        class: "apexcharts-gridlines-vertical",
                      })),
                      (this.elGridBorders = t.group({
                        class: "apexcharts-grid-borders",
                      })),
                      this.elg.add(this.elgridLinesH),
                      this.elg.add(this.elgridLinesV),
                      e.config.grid.show ||
                        (this.elgridLinesV.hide(),
                        this.elgridLinesH.hide(),
                        this.elGridBorders.hide());
                    for (
                      var i,
                        n = e.globals.yAxisScale.length
                          ? e.globals.yAxisScale[0].result.length - 1
                          : 5,
                        r = 0;
                      r < e.globals.series.length &&
                      (void 0 !== e.globals.yAxisScale[r] &&
                        (n = e.globals.yAxisScale[r].result.length - 1),
                      !(n > 2));
                      r++
                    );
                    return (
                      !e.globals.isBarHorizontal || this.isRangeBar
                        ? ((i = this.xaxisLabels.length),
                          this.isRangeBar &&
                            ((n = e.globals.labels.length),
                            e.config.xaxis.tickAmount &&
                              e.config.xaxis.labels.formatter &&
                              (i = e.config.xaxis.tickAmount)),
                          this._drawXYLines({ xCount: i, tickAmount: n }))
                        : ((i = n),
                          (n = e.globals.xTickAmount),
                          this._drawInvertedXYLines({
                            xCount: i,
                            tickAmount: n,
                          })),
                      this.drawGridBands(i, n),
                      {
                        el: this.elg,
                        elGridBorders: this.elGridBorders,
                        xAxisTickWidth: e.globals.gridWidth / i,
                      }
                    );
                  },
                },
                {
                  key: "drawGridBands",
                  value: function (e, t) {
                    var i = this.w;
                    if (
                      void 0 !== i.config.grid.row.colors &&
                      i.config.grid.row.colors.length > 0
                    )
                      for (
                        var n = 0,
                          r = i.globals.gridHeight / t,
                          a = i.globals.gridWidth,
                          o = 0,
                          s = 0;
                        o < t;
                        o++, s++
                      )
                        s >= i.config.grid.row.colors.length && (s = 0),
                          this._drawGridBandRect({
                            c: s,
                            x1: 0,
                            y1: n,
                            x2: a,
                            y2: r,
                            type: "row",
                          }),
                          (n += i.globals.gridHeight / t);
                    if (
                      void 0 !== i.config.grid.column.colors &&
                      i.config.grid.column.colors.length > 0
                    )
                      for (
                        var l =
                            i.globals.isBarHorizontal ||
                            ("category" !== i.config.xaxis.type &&
                              !i.config.xaxis.convertedCatToNumeric)
                              ? e
                              : e - 1,
                          c = i.globals.padHorizontal,
                          u = i.globals.padHorizontal + i.globals.gridWidth / l,
                          d = i.globals.gridHeight,
                          h = 0,
                          f = 0;
                        h < e;
                        h++, f++
                      )
                        f >= i.config.grid.column.colors.length && (f = 0),
                          this._drawGridBandRect({
                            c: f,
                            x1: c,
                            y1: 0,
                            x2: u,
                            y2: d,
                            type: "column",
                          }),
                          (c += i.globals.gridWidth / l);
                  },
                },
              ]),
              e
            );
          })(),
          U = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "niceScale",
                  value: function (e, t) {
                    var i =
                        arguments.length > 2 && void 0 !== arguments[2]
                          ? arguments[2]
                          : 10,
                      n =
                        arguments.length > 3 && void 0 !== arguments[3]
                          ? arguments[3]
                          : 0,
                      r = arguments.length > 4 ? arguments[4] : void 0,
                      a = this.w,
                      o = Math.abs(t - e);
                    if (
                      ("dataPoints" ===
                        (i = this._adjustTicksForSmallRange(i, n, o)) &&
                        (i = a.globals.dataPoints - 1),
                      (e === Number.MIN_VALUE && 0 === t) ||
                        (!b.isNumber(e) && !b.isNumber(t)) ||
                        (e === Number.MIN_VALUE && t === -Number.MAX_VALUE))
                    )
                      return (e = 0), (t = i), this.linearScale(e, t, i);
                    e > t
                      ? (console.warn(
                          "axis.min cannot be greater than axis.max"
                        ),
                        (t = e + 0.1))
                      : e === t &&
                        ((e = 0 === e ? 0 : e - 0.5),
                        (t = 0 === t ? 2 : t + 0.5));
                    var s = [];
                    o < 1 &&
                      r &&
                      ("candlestick" === a.config.chart.type ||
                        "candlestick" === a.config.series[n].type ||
                        "boxPlot" === a.config.chart.type ||
                        "boxPlot" === a.config.series[n].type ||
                        a.globals.isRangeData) &&
                      (t *= 1.01);
                    var l = i + 1;
                    l < 2 ? (l = 2) : l > 2 && (l -= 2);
                    var c = o / l,
                      u = Math.floor(b.log10(c)),
                      d = Math.pow(10, u),
                      h = Math.round(c / d);
                    h < 1 && (h = 1);
                    var f = h * d,
                      p = f * Math.floor(e / f),
                      g = f * Math.ceil(t / f),
                      m = p;
                    if (r && o > 2) {
                      for (; s.push(m), !((m += f) > g); );
                      return {
                        result: s,
                        niceMin: s[0],
                        niceMax: s[s.length - 1],
                      };
                    }
                    var v = e;
                    (s = []).push(v);
                    for (var y = Math.abs(t - e) / i, x = 0; x <= i; x++)
                      (v += y), s.push(v);
                    return (
                      s[s.length - 2] >= t && s.pop(),
                      { result: s, niceMin: s[0], niceMax: s[s.length - 1] }
                    );
                  },
                },
                {
                  key: "linearScale",
                  value: function (e, t) {
                    var i =
                        arguments.length > 2 && void 0 !== arguments[2]
                          ? arguments[2]
                          : 10,
                      n = arguments.length > 3 ? arguments[3] : void 0,
                      r = Math.abs(t - e);
                    "dataPoints" ===
                      (i = this._adjustTicksForSmallRange(i, n, r)) &&
                      (i = this.w.globals.dataPoints - 1);
                    var a = r / i;
                    i === Number.MAX_VALUE && ((i = 10), (a = 1));
                    for (var o = [], s = e; i >= 0; )
                      o.push(s), (s += a), (i -= 1);
                    return {
                      result: o,
                      niceMin: o[0],
                      niceMax: o[o.length - 1],
                    };
                  },
                },
                {
                  key: "logarithmicScaleNice",
                  value: function (e, t, i) {
                    t <= 0 && (t = Math.max(e, i)),
                      e <= 0 && (e = Math.min(t, i));
                    for (
                      var n = [],
                        r = Math.ceil(Math.log(t) / Math.log(i) + 1),
                        a = Math.floor(Math.log(e) / Math.log(i));
                      a < r;
                      a++
                    )
                      n.push(Math.pow(i, a));
                    return {
                      result: n,
                      niceMin: n[0],
                      niceMax: n[n.length - 1],
                    };
                  },
                },
                {
                  key: "logarithmicScale",
                  value: function (e, t, i) {
                    t <= 0 && (t = Math.max(e, i)),
                      e <= 0 && (e = Math.min(t, i));
                    for (
                      var n = [],
                        r = Math.log(t) / Math.log(i),
                        a = Math.log(e) / Math.log(i),
                        o = r - a,
                        s = Math.round(o),
                        l = o / s,
                        c = 0,
                        u = a;
                      c < s;
                      c++, u += l
                    )
                      n.push(Math.pow(i, u));
                    return (
                      n.push(Math.pow(i, r)),
                      { result: n, niceMin: e, niceMax: t }
                    );
                  },
                },
                {
                  key: "_adjustTicksForSmallRange",
                  value: function (e, t, i) {
                    var n = e;
                    if (
                      void 0 !== t &&
                      this.w.config.yaxis[t].labels.formatter &&
                      void 0 === this.w.config.yaxis[t].tickAmount
                    ) {
                      var r = Number(
                        this.w.config.yaxis[t].labels.formatter(1)
                      );
                      b.isNumber(r) &&
                        0 === this.w.globals.yValueDecimal &&
                        (n = Math.ceil(i));
                    }
                    return n < e ? n : e;
                  },
                },
                {
                  key: "setYScaleForIndex",
                  value: function (e, t, i) {
                    var n = this.w.globals,
                      r = this.w.config,
                      a = n.isBarHorizontal ? r.xaxis : r.yaxis[e];
                    void 0 === n.yAxisScale[e] && (n.yAxisScale[e] = []);
                    var o = Math.abs(i - t);
                    if (
                      (a.logarithmic && o <= 5 && (n.invalidLogScale = !0),
                      a.logarithmic && o > 5)
                    )
                      (n.allSeriesCollapsed = !1),
                        (n.yAxisScale[e] = this.logarithmicScale(
                          t,
                          i,
                          a.logBase
                        )),
                        (n.yAxisScale[e] = a.forceNiceScale
                          ? this.logarithmicScaleNice(t, i, a.logBase)
                          : this.logarithmicScale(t, i, a.logBase));
                    else if (i !== -Number.MAX_VALUE && b.isNumber(i))
                      if (
                        ((n.allSeriesCollapsed = !1),
                        (void 0 === a.min && void 0 === a.max) ||
                          a.forceNiceScale)
                      ) {
                        var s =
                          (void 0 === r.yaxis[e].max &&
                            void 0 === r.yaxis[e].min) ||
                          r.yaxis[e].forceNiceScale;
                        n.yAxisScale[e] = this.niceScale(
                          t,
                          i,
                          a.tickAmount
                            ? a.tickAmount
                            : o < 5 && o > 1
                            ? o + 1
                            : 5,
                          e,
                          s
                        );
                      } else
                        n.yAxisScale[e] = this.linearScale(
                          t,
                          i,
                          a.tickAmount,
                          e
                        );
                    else n.yAxisScale[e] = this.linearScale(0, 5, 5);
                  },
                },
                {
                  key: "setXScale",
                  value: function (e, t) {
                    var i = this.w,
                      n = i.globals,
                      r = i.config.xaxis,
                      a = Math.abs(t - e);
                    return (
                      t !== -Number.MAX_VALUE && b.isNumber(t)
                        ? (n.xAxisScale = this.linearScale(
                            e,
                            t,
                            r.tickAmount
                              ? r.tickAmount
                              : a < 5 && a > 1
                              ? a + 1
                              : 5,
                            0
                          ))
                        : (n.xAxisScale = this.linearScale(0, 5, 5)),
                      n.xAxisScale
                    );
                  },
                },
                {
                  key: "setMultipleYScales",
                  value: function () {
                    var e = this,
                      t = this.w.globals,
                      i = this.w.config,
                      n = t.minYArr.concat([]),
                      r = t.maxYArr.concat([]),
                      a = [];
                    i.yaxis.forEach(function (t, o) {
                      var s = o;
                      i.series.forEach(function (e, i) {
                        e.name === t.seriesName &&
                          ((s = i),
                          o !== i
                            ? a.push({
                                index: i,
                                similarIndex: o,
                                alreadyExists: !0,
                              })
                            : a.push({ index: i }));
                      });
                      var l = n[s],
                        c = r[s];
                      e.setYScaleForIndex(o, l, c);
                    }),
                      this.sameScaleInMultipleAxes(n, r, a);
                  },
                },
                {
                  key: "sameScaleInMultipleAxes",
                  value: function (e, t, i) {
                    var n = this,
                      r = this.w.config,
                      a = this.w.globals,
                      o = [];
                    i.forEach(function (e) {
                      e.alreadyExists &&
                        (void 0 === o[e.index] && (o[e.index] = []),
                        o[e.index].push(e.index),
                        o[e.index].push(e.similarIndex));
                    }),
                      (a.yAxisSameScaleIndices = o),
                      o.forEach(function (e, t) {
                        o.forEach(function (i, n) {
                          var r, a;
                          t !== n &&
                            ((r = e),
                            (a = i),
                            r.filter(function (e) {
                              return -1 !== a.indexOf(e);
                            })).length > 0 &&
                            (o[t] = o[t].concat(o[n]));
                        });
                      });
                    var s = o
                      .map(function (e) {
                        return e.filter(function (t, i) {
                          return e.indexOf(t) === i;
                        });
                      })
                      .map(function (e) {
                        return e.sort();
                      });
                    o = o.filter(function (e) {
                      return !!e;
                    });
                    var l = s.slice(),
                      c = l.map(function (e) {
                        return JSON.stringify(e);
                      });
                    l = l.filter(function (e, t) {
                      return c.indexOf(JSON.stringify(e)) === t;
                    });
                    var u = [],
                      d = [];
                    e.forEach(function (e, i) {
                      l.forEach(function (n, r) {
                        n.indexOf(i) > -1 &&
                          (void 0 === u[r] && ((u[r] = []), (d[r] = [])),
                          u[r].push({ key: i, value: e }),
                          d[r].push({ key: i, value: t[i] }));
                      });
                    });
                    var h = Array.apply(null, Array(l.length)).map(
                        Number.prototype.valueOf,
                        Number.MIN_VALUE
                      ),
                      f = Array.apply(null, Array(l.length)).map(
                        Number.prototype.valueOf,
                        -Number.MAX_VALUE
                      );
                    u.forEach(function (e, t) {
                      e.forEach(function (e, i) {
                        h[t] = Math.min(e.value, h[t]);
                      });
                    }),
                      d.forEach(function (e, t) {
                        e.forEach(function (e, i) {
                          f[t] = Math.max(e.value, f[t]);
                        });
                      }),
                      e.forEach(function (e, t) {
                        d.forEach(function (e, i) {
                          var o = h[i],
                            s = f[i];
                          r.chart.stacked &&
                            ((s = 0),
                            e.forEach(function (e, t) {
                              e.value !== -Number.MAX_VALUE && (s += e.value),
                                o !== Number.MIN_VALUE && (o += u[i][t].value);
                            })),
                            e.forEach(function (i, l) {
                              e[l].key === t &&
                                (void 0 !== r.yaxis[t].min &&
                                  (o =
                                    "function" == typeof r.yaxis[t].min
                                      ? r.yaxis[t].min(a.minY)
                                      : r.yaxis[t].min),
                                void 0 !== r.yaxis[t].max &&
                                  (s =
                                    "function" == typeof r.yaxis[t].max
                                      ? r.yaxis[t].max(a.maxY)
                                      : r.yaxis[t].max),
                                n.setYScaleForIndex(t, o, s));
                            });
                        });
                      });
                  },
                },
                {
                  key: "autoScaleY",
                  value: function (e, t, i) {
                    e || (e = this);
                    var n = e.w;
                    if (
                      n.globals.isMultipleYAxis ||
                      n.globals.collapsedSeries.length
                    )
                      return (
                        console.warn(
                          "autoScaleYaxis is not supported in a multi-yaxis chart."
                        ),
                        t
                      );
                    var r = n.globals.seriesX[0],
                      a = n.config.chart.stacked;
                    return (
                      t.forEach(function (e, o) {
                        for (var s = 0, l = 0; l < r.length; l++)
                          if (r[l] >= i.xaxis.min) {
                            s = l;
                            break;
                          }
                        var c,
                          u,
                          d = n.globals.minYArr[o],
                          h = n.globals.maxYArr[o],
                          f = n.globals.stackedSeriesTotals;
                        n.globals.series.forEach(function (o, l) {
                          var p = o[s];
                          a
                            ? ((p = f[s]),
                              (c = u = p),
                              f.forEach(function (e, t) {
                                r[t] <= i.xaxis.max &&
                                  r[t] >= i.xaxis.min &&
                                  (e > u && null !== e && (u = e),
                                  o[t] < c && null !== o[t] && (c = o[t]));
                              }))
                            : ((c = u = p),
                              o.forEach(function (e, t) {
                                if (
                                  r[t] <= i.xaxis.max &&
                                  r[t] >= i.xaxis.min
                                ) {
                                  var a = e,
                                    o = e;
                                  n.globals.series.forEach(function (i, n) {
                                    null !== e &&
                                      ((a = Math.min(i[t], a)),
                                      (o = Math.max(i[t], o)));
                                  }),
                                    o > u && null !== o && (u = o),
                                    a < c && null !== a && (c = a);
                                }
                              })),
                            void 0 === c && void 0 === u && ((c = d), (u = h)),
                            (u *= u < 0 ? 0.9 : 1.1),
                            0 == (c *= c < 0 ? 1.1 : 0.9) &&
                              0 === u &&
                              ((c = -1), (u = 1)),
                            u < 0 && u < h && (u = h),
                            c < 0 && c > d && (c = d),
                            t.length > 1
                              ? ((t[l].min = void 0 === e.min ? c : e.min),
                                (t[l].max = void 0 === e.max ? u : e.max))
                              : ((t[0].min = void 0 === e.min ? c : e.min),
                                (t[0].max = void 0 === e.max ? u : e.max));
                        });
                      }),
                      t
                    );
                  },
                },
              ]),
              e
            );
          })(),
          $ = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.scales = new U(t));
            }
            return (
              c(e, [
                {
                  key: "init",
                  value: function () {
                    this.setYRange(), this.setXRange(), this.setZRange();
                  },
                },
                {
                  key: "getMinYMaxY",
                  value: function (e) {
                    var t =
                        arguments.length > 1 && void 0 !== arguments[1]
                          ? arguments[1]
                          : Number.MAX_VALUE,
                      i =
                        arguments.length > 2 && void 0 !== arguments[2]
                          ? arguments[2]
                          : -Number.MAX_VALUE,
                      n =
                        arguments.length > 3 && void 0 !== arguments[3]
                          ? arguments[3]
                          : null,
                      r = this.w.config,
                      a = this.w.globals,
                      o = -Number.MAX_VALUE,
                      s = Number.MIN_VALUE;
                    null === n && (n = e + 1);
                    var l = a.series,
                      c = l,
                      u = l;
                    "candlestick" === r.chart.type
                      ? ((c = a.seriesCandleL), (u = a.seriesCandleH))
                      : "boxPlot" === r.chart.type
                      ? ((c = a.seriesCandleO), (u = a.seriesCandleC))
                      : a.isRangeData &&
                        ((c = a.seriesRangeStart), (u = a.seriesRangeEnd));
                    for (var d = e; d < n; d++) {
                      (a.dataPoints = Math.max(a.dataPoints, l[d].length)),
                        a.categoryLabels.length &&
                          (a.dataPoints = a.categoryLabels.filter(function (e) {
                            return void 0 !== e;
                          }).length);
                      for (var h = 0; h < a.series[d].length; h++) {
                        var f = l[d][h];
                        null !== f && b.isNumber(f)
                          ? (void 0 !== u[d][h] &&
                              ((o = Math.max(o, u[d][h])),
                              (t = Math.min(t, u[d][h]))),
                            void 0 !== c[d][h] &&
                              ((t = Math.min(t, c[d][h])),
                              (i = Math.max(i, c[d][h]))),
                            ("candlestick" !== this.w.config.chart.type &&
                              "boxPlot" !== this.w.config.chart.type &&
                              "rangeArea" === this.w.config.chart.type &&
                              "rangeBar" === this.w.config.chart.type) ||
                              (("candlestick" !== this.w.config.chart.type &&
                                "boxPlot" !== this.w.config.chart.type) ||
                                (void 0 !== a.seriesCandleC[d][h] &&
                                  ((o = Math.max(o, a.seriesCandleO[d][h])),
                                  (o = Math.max(o, a.seriesCandleH[d][h])),
                                  (o = Math.max(o, a.seriesCandleL[d][h])),
                                  (o = Math.max(o, a.seriesCandleC[d][h])),
                                  "boxPlot" === this.w.config.chart.type &&
                                    (o = Math.max(o, a.seriesCandleM[d][h])))),
                              !r.series[d].type ||
                                ("candlestick" === r.series[d].type &&
                                  "boxPlot" === r.series[d].type &&
                                  "rangeArea" === r.series[d].type &&
                                  "rangeBar" === r.series[d].type) ||
                                ((o = Math.max(o, a.series[d][h])),
                                (t = Math.min(t, a.series[d][h]))),
                              (i = o)),
                            a.seriesGoals[d] &&
                              a.seriesGoals[d][h] &&
                              Array.isArray(a.seriesGoals[d][h]) &&
                              a.seriesGoals[d][h].forEach(function (e) {
                                s !== Number.MIN_VALUE &&
                                  ((s = Math.min(s, e.value)), (t = s)),
                                  (o = Math.max(o, e.value)),
                                  (i = o);
                              }),
                            b.isFloat(f) &&
                              ((f = b.noExponents(f)),
                              (a.yValueDecimal = Math.max(
                                a.yValueDecimal,
                                f.toString().split(".")[1].length
                              ))),
                            s > c[d][h] && c[d][h] < 0 && (s = c[d][h]))
                          : (a.hasNullValues = !0);
                      }
                    }
                    return (
                      "rangeBar" === r.chart.type &&
                        a.seriesRangeStart.length &&
                        a.isBarHorizontal &&
                        (s = t),
                      "bar" === r.chart.type &&
                        (s < 0 && o < 0 && (o = 0),
                        s === Number.MIN_VALUE && (s = 0)),
                      { minY: s, maxY: o, lowestY: t, highestY: i }
                    );
                  },
                },
                {
                  key: "setYRange",
                  value: function () {
                    var e = this.w.globals,
                      t = this.w.config;
                    (e.maxY = -Number.MAX_VALUE), (e.minY = Number.MIN_VALUE);
                    var i = Number.MAX_VALUE;
                    if (e.isMultipleYAxis)
                      for (var n = 0; n < e.series.length; n++) {
                        var r = this.getMinYMaxY(n, i, null, n + 1);
                        e.minYArr.push(r.minY),
                          e.maxYArr.push(r.maxY),
                          (i = r.lowestY);
                      }
                    var a = this.getMinYMaxY(0, i, null, e.series.length);
                    if (
                      ((e.minY = a.minY),
                      (e.maxY = a.maxY),
                      (i = a.lowestY),
                      t.chart.stacked && this._setStackedMinMax(),
                      ("line" === t.chart.type ||
                        "area" === t.chart.type ||
                        "candlestick" === t.chart.type ||
                        "boxPlot" === t.chart.type ||
                        ("rangeBar" === t.chart.type && !e.isBarHorizontal)) &&
                        e.minY === Number.MIN_VALUE &&
                        i !== -Number.MAX_VALUE &&
                        i !== e.maxY)
                    ) {
                      var o = e.maxY - i;
                      ((i >= 0 && i <= 10) ||
                        void 0 !== t.yaxis[0].min ||
                        void 0 !== t.yaxis[0].max) &&
                        (o = 0),
                        (e.minY = i - (5 * o) / 100),
                        i > 0 && e.minY < 0 && (e.minY = 0),
                        (e.maxY = e.maxY + (5 * o) / 100);
                    }
                    return (
                      t.yaxis.forEach(function (t, i) {
                        void 0 !== t.max &&
                          ("number" == typeof t.max
                            ? (e.maxYArr[i] = t.max)
                            : "function" == typeof t.max &&
                              (e.maxYArr[i] = t.max(
                                e.isMultipleYAxis ? e.maxYArr[i] : e.maxY
                              )),
                          (e.maxY = e.maxYArr[i])),
                          void 0 !== t.min &&
                            ("number" == typeof t.min
                              ? (e.minYArr[i] = t.min)
                              : "function" == typeof t.min &&
                                (e.minYArr[i] = t.min(
                                  e.isMultipleYAxis
                                    ? e.minYArr[i] === Number.MIN_VALUE
                                      ? 0
                                      : e.minYArr[i]
                                    : e.minY
                                )),
                            (e.minY = e.minYArr[i]));
                      }),
                      e.isBarHorizontal &&
                        ["min", "max"].forEach(function (i) {
                          void 0 !== t.xaxis[i] &&
                            "number" == typeof t.xaxis[i] &&
                            ("min" === i
                              ? (e.minY = t.xaxis[i])
                              : (e.maxY = t.xaxis[i]));
                        }),
                      e.isMultipleYAxis
                        ? (this.scales.setMultipleYScales(),
                          (e.minY = i),
                          e.yAxisScale.forEach(function (t, i) {
                            (e.minYArr[i] = t.niceMin),
                              (e.maxYArr[i] = t.niceMax);
                          }))
                        : (this.scales.setYScaleForIndex(0, e.minY, e.maxY),
                          (e.minY = e.yAxisScale[0].niceMin),
                          (e.maxY = e.yAxisScale[0].niceMax),
                          (e.minYArr[0] = e.yAxisScale[0].niceMin),
                          (e.maxYArr[0] = e.yAxisScale[0].niceMax)),
                      {
                        minY: e.minY,
                        maxY: e.maxY,
                        minYArr: e.minYArr,
                        maxYArr: e.maxYArr,
                        yAxisScale: e.yAxisScale,
                      }
                    );
                  },
                },
                {
                  key: "setXRange",
                  value: function () {
                    var e = this.w.globals,
                      t = this.w.config,
                      i =
                        "numeric" === t.xaxis.type ||
                        "datetime" === t.xaxis.type ||
                        ("category" === t.xaxis.type && !e.noLabelsProvided) ||
                        e.noLabelsProvided ||
                        e.isXNumeric;
                    if (
                      (e.isXNumeric &&
                        (function () {
                          for (var t = 0; t < e.series.length; t++)
                            if (e.labels[t])
                              for (var i = 0; i < e.labels[t].length; i++)
                                null !== e.labels[t][i] &&
                                  b.isNumber(e.labels[t][i]) &&
                                  ((e.maxX = Math.max(e.maxX, e.labels[t][i])),
                                  (e.initialMaxX = Math.max(
                                    e.maxX,
                                    e.labels[t][i]
                                  )),
                                  (e.minX = Math.min(e.minX, e.labels[t][i])),
                                  (e.initialMinX = Math.min(
                                    e.minX,
                                    e.labels[t][i]
                                  )));
                        })(),
                      e.noLabelsProvided &&
                        0 === t.xaxis.categories.length &&
                        ((e.maxX = e.labels[e.labels.length - 1]),
                        (e.initialMaxX = e.labels[e.labels.length - 1]),
                        (e.minX = 1),
                        (e.initialMinX = 1)),
                      e.isXNumeric ||
                        e.noLabelsProvided ||
                        e.dataFormatXNumeric)
                    ) {
                      var n;
                      if (
                        (void 0 === t.xaxis.tickAmount
                          ? ((n = Math.round(e.svgWidth / 150)),
                            "numeric" === t.xaxis.type &&
                              e.dataPoints < 30 &&
                              (n = e.dataPoints - 1),
                            n > e.dataPoints &&
                              0 !== e.dataPoints &&
                              (n = e.dataPoints - 1))
                          : "dataPoints" === t.xaxis.tickAmount
                          ? (e.series.length > 1 &&
                              (n = e.series[e.maxValsInArrayIndex].length - 1),
                            e.isXNumeric && (n = e.maxX - e.minX - 1))
                          : (n = t.xaxis.tickAmount),
                        (e.xTickAmount = n),
                        void 0 !== t.xaxis.max &&
                          "number" == typeof t.xaxis.max &&
                          (e.maxX = t.xaxis.max),
                        void 0 !== t.xaxis.min &&
                          "number" == typeof t.xaxis.min &&
                          (e.minX = t.xaxis.min),
                        void 0 !== t.xaxis.range &&
                          (e.minX = e.maxX - t.xaxis.range),
                        e.minX !== Number.MAX_VALUE &&
                          e.maxX !== -Number.MAX_VALUE)
                      )
                        if (
                          t.xaxis.convertedCatToNumeric &&
                          !e.dataFormatXNumeric
                        ) {
                          for (var r = [], a = e.minX - 1; a < e.maxX; a++)
                            r.push(a + 1);
                          e.xAxisScale = {
                            result: r,
                            niceMin: r[0],
                            niceMax: r[r.length - 1],
                          };
                        } else
                          e.xAxisScale = this.scales.setXScale(e.minX, e.maxX);
                      else
                        (e.xAxisScale = this.scales.linearScale(1, n, n)),
                          e.noLabelsProvided &&
                            e.labels.length > 0 &&
                            ((e.xAxisScale = this.scales.linearScale(
                              1,
                              e.labels.length,
                              n - 1
                            )),
                            (e.seriesX = e.labels.slice()));
                      i && (e.labels = e.xAxisScale.result.slice());
                    }
                    return (
                      e.isBarHorizontal &&
                        e.labels.length &&
                        (e.xTickAmount = e.labels.length),
                      this._handleSingleDataPoint(),
                      this._getMinXDiff(),
                      { minX: e.minX, maxX: e.maxX }
                    );
                  },
                },
                {
                  key: "setZRange",
                  value: function () {
                    var e = this.w.globals;
                    if (e.isDataXYZ)
                      for (var t = 0; t < e.series.length; t++)
                        if (void 0 !== e.seriesZ[t])
                          for (var i = 0; i < e.seriesZ[t].length; i++)
                            null !== e.seriesZ[t][i] &&
                              b.isNumber(e.seriesZ[t][i]) &&
                              ((e.maxZ = Math.max(e.maxZ, e.seriesZ[t][i])),
                              (e.minZ = Math.min(e.minZ, e.seriesZ[t][i])));
                  },
                },
                {
                  key: "_handleSingleDataPoint",
                  value: function () {
                    var e = this.w.globals,
                      t = this.w.config;
                    if (e.minX === e.maxX) {
                      var i = new I(this.ctx);
                      if ("datetime" === t.xaxis.type) {
                        var n = i.getDate(e.minX);
                        t.xaxis.labels.datetimeUTC
                          ? n.setUTCDate(n.getUTCDate() - 2)
                          : n.setDate(n.getDate() - 2),
                          (e.minX = new Date(n).getTime());
                        var r = i.getDate(e.maxX);
                        t.xaxis.labels.datetimeUTC
                          ? r.setUTCDate(r.getUTCDate() + 2)
                          : r.setDate(r.getDate() + 2),
                          (e.maxX = new Date(r).getTime());
                      } else
                        ("numeric" === t.xaxis.type ||
                          ("category" === t.xaxis.type &&
                            !e.noLabelsProvided)) &&
                          ((e.minX = e.minX - 2),
                          (e.initialMinX = e.minX),
                          (e.maxX = e.maxX + 2),
                          (e.initialMaxX = e.maxX));
                    }
                  },
                },
                {
                  key: "_getMinXDiff",
                  value: function () {
                    var e = this.w.globals;
                    e.isXNumeric &&
                      e.seriesX.forEach(function (t, i) {
                        1 === t.length &&
                          t.push(
                            e.seriesX[e.maxValsInArrayIndex][
                              e.seriesX[e.maxValsInArrayIndex].length - 1
                            ]
                          );
                        var n = t.slice();
                        n.sort(function (e, t) {
                          return e - t;
                        }),
                          n.forEach(function (t, i) {
                            if (i > 0) {
                              var r = t - n[i - 1];
                              r > 0 && (e.minXDiff = Math.min(r, e.minXDiff));
                            }
                          }),
                          (1 !== e.dataPoints &&
                            e.minXDiff !== Number.MAX_VALUE) ||
                            (e.minXDiff = 0.5);
                      });
                  },
                },
                {
                  key: "_setStackedMinMax",
                  value: function () {
                    var e = this.w.globals,
                      t = [],
                      i = [];
                    if (e.series.length)
                      for (
                        var n = 0;
                        n < e.series[e.maxValsInArrayIndex].length;
                        n++
                      )
                        for (var r = 0, a = 0, o = 0; o < e.series.length; o++)
                          null !== e.series[o][n] &&
                            b.isNumber(e.series[o][n]) &&
                            (e.series[o][n] > 0
                              ? (r = r + parseFloat(e.series[o][n]) + 1e-4)
                              : (a += parseFloat(e.series[o][n]))),
                            o === e.series.length - 1 && (t.push(r), i.push(a));
                    for (var s = 0; s < t.length; s++)
                      (e.maxY = Math.max(e.maxY, t[s])),
                        (e.minY = Math.min(e.minY, i[s]));
                  },
                },
              ]),
              e
            );
          })(),
          Z = (function () {
            function e(t, i) {
              s(this, e), (this.ctx = t), (this.elgrid = i), (this.w = t.w);
              var n = this.w;
              (this.xaxisFontSize = n.config.xaxis.labels.style.fontSize),
                (this.axisFontFamily = n.config.xaxis.labels.style.fontFamily),
                (this.xaxisForeColors = n.config.xaxis.labels.style.colors),
                (this.isCategoryBarHorizontal =
                  "bar" === n.config.chart.type &&
                  n.config.plotOptions.bar.horizontal),
                (this.xAxisoffX = 0),
                "bottom" === n.config.xaxis.position &&
                  (this.xAxisoffX = n.globals.gridHeight),
                (this.drawnLabels = []),
                (this.axesUtils = new W(t));
            }
            return (
              c(e, [
                {
                  key: "drawYaxis",
                  value: function (e) {
                    var t = this,
                      i = this.w,
                      n = new w(this.ctx),
                      r = i.config.yaxis[e].labels.style,
                      a = r.fontSize,
                      o = r.fontFamily,
                      s = r.fontWeight,
                      l = n.group({
                        class: "apexcharts-yaxis",
                        rel: e,
                        transform:
                          "translate(" + i.globals.translateYAxisX[e] + ", 0)",
                      });
                    if (this.axesUtils.isYAxisHidden(e)) return l;
                    var c = n.group({ class: "apexcharts-yaxis-texts-g" });
                    l.add(c);
                    var u = i.globals.yAxisScale[e].result.length - 1,
                      d = i.globals.gridHeight / u,
                      h = i.globals.translateY,
                      f = i.globals.yLabelFormatters[e],
                      p = i.globals.yAxisScale[e].result.slice();
                    p = this.axesUtils.checkForReversedLabels(e, p);
                    var g = "";
                    if (i.config.yaxis[e].labels.show)
                      for (
                        var m = function (l) {
                            var m = p[l];
                            m = f(m, l, i);
                            var v = i.config.yaxis[e].labels.padding;
                            i.config.yaxis[e].opposite &&
                              0 !== i.config.yaxis.length &&
                              (v *= -1);
                            var b = "end";
                            i.config.yaxis[e].opposite && (b = "start"),
                              "left" === i.config.yaxis[e].labels.align
                                ? (b = "start")
                                : "center" === i.config.yaxis[e].labels.align
                                ? (b = "middle")
                                : "right" === i.config.yaxis[e].labels.align &&
                                  (b = "end");
                            var y = t.axesUtils.getYAxisForeColor(r.colors, e),
                              x = n.drawText({
                                x: v,
                                y:
                                  h +
                                  u / 10 +
                                  i.config.yaxis[e].labels.offsetY +
                                  1,
                                text: m,
                                textAnchor: b,
                                fontSize: a,
                                fontFamily: o,
                                fontWeight: s,
                                maxWidth: i.config.yaxis[e].labels.maxWidth,
                                foreColor: Array.isArray(y) ? y[l] : y,
                                isPlainText: !1,
                                cssClass:
                                  "apexcharts-yaxis-label " + r.cssClass,
                              });
                            l === u && (g = x), c.add(x);
                            var w = document.createElementNS(
                              i.globals.SVGNS,
                              "title"
                            );
                            if (
                              ((w.textContent = Array.isArray(m)
                                ? m.join(" ")
                                : m),
                              x.node.appendChild(w),
                              0 !== i.config.yaxis[e].labels.rotate)
                            ) {
                              var E = n.rotateAroundCenter(g.node),
                                _ = n.rotateAroundCenter(x.node);
                              x.node.setAttribute(
                                "transform",
                                "rotate("
                                  .concat(i.config.yaxis[e].labels.rotate, " ")
                                  .concat(E.x, " ")
                                  .concat(_.y, ")")
                              );
                            }
                            h += d;
                          },
                          v = u;
                        v >= 0;
                        v--
                      )
                        m(v);
                    if (void 0 !== i.config.yaxis[e].title.text) {
                      var b = n.group({ class: "apexcharts-yaxis-title" }),
                        y = 0;
                      i.config.yaxis[e].opposite &&
                        (y = i.globals.translateYAxisX[e]);
                      var x = n.drawText({
                        x: y,
                        y:
                          i.globals.gridHeight / 2 +
                          i.globals.translateY +
                          i.config.yaxis[e].title.offsetY,
                        text: i.config.yaxis[e].title.text,
                        textAnchor: "end",
                        foreColor: i.config.yaxis[e].title.style.color,
                        fontSize: i.config.yaxis[e].title.style.fontSize,
                        fontWeight: i.config.yaxis[e].title.style.fontWeight,
                        fontFamily: i.config.yaxis[e].title.style.fontFamily,
                        cssClass:
                          "apexcharts-yaxis-title-text " +
                          i.config.yaxis[e].title.style.cssClass,
                      });
                      b.add(x), l.add(b);
                    }
                    var E = i.config.yaxis[e].axisBorder,
                      _ = 31 + E.offsetX;
                    if (
                      (i.config.yaxis[e].opposite && (_ = -31 - E.offsetX),
                      E.show)
                    ) {
                      var S = n.drawLine(
                        _,
                        i.globals.translateY + E.offsetY - 2,
                        _,
                        i.globals.gridHeight +
                          i.globals.translateY +
                          E.offsetY +
                          2,
                        E.color,
                        0,
                        E.width
                      );
                      l.add(S);
                    }
                    return (
                      i.config.yaxis[e].axisTicks.show &&
                        this.axesUtils.drawYAxisTicks(
                          _,
                          u,
                          E,
                          i.config.yaxis[e].axisTicks,
                          e,
                          d,
                          l
                        ),
                      l
                    );
                  },
                },
                {
                  key: "drawYaxisInversed",
                  value: function (e) {
                    var t = this.w,
                      i = new w(this.ctx),
                      n = i.group({
                        class: "apexcharts-xaxis apexcharts-yaxis-inversed",
                      }),
                      r = i.group({
                        class: "apexcharts-xaxis-texts-g",
                        transform: "translate("
                          .concat(t.globals.translateXAxisX, ", ")
                          .concat(t.globals.translateXAxisY, ")"),
                      });
                    n.add(r);
                    var a = t.globals.yAxisScale[e].result.length - 1,
                      o = t.globals.gridWidth / a + 0.1,
                      s = o + t.config.xaxis.labels.offsetX,
                      l = t.globals.xLabelFormatter,
                      c = t.globals.yAxisScale[e].result.slice(),
                      u = t.globals.timescaleLabels;
                    u.length > 0 &&
                      ((this.xaxisLabels = u.slice()),
                      (a = (c = u.slice()).length)),
                      (c = this.axesUtils.checkForReversedLabels(e, c));
                    var d = u.length;
                    if (t.config.xaxis.labels.show)
                      for (
                        var h = d ? 0 : a;
                        d ? h < d : h >= 0;
                        d ? h++ : h--
                      ) {
                        var f = c[h];
                        f = l(f, h, t);
                        var p =
                          t.globals.gridWidth +
                          t.globals.padHorizontal -
                          (s - o + t.config.xaxis.labels.offsetX);
                        if (u.length) {
                          var g = this.axesUtils.getLabel(
                            c,
                            u,
                            p,
                            h,
                            this.drawnLabels,
                            this.xaxisFontSize
                          );
                          (p = g.x),
                            (f = g.text),
                            this.drawnLabels.push(g.text),
                            0 === h &&
                              t.globals.skipFirstTimelinelabel &&
                              (f = ""),
                            h === c.length - 1 &&
                              t.globals.skipLastTimelinelabel &&
                              (f = "");
                        }
                        var m = i.drawText({
                          x: p,
                          y:
                            this.xAxisoffX +
                            t.config.xaxis.labels.offsetY +
                            30 -
                            ("top" === t.config.xaxis.position
                              ? t.globals.xAxisHeight +
                                t.config.xaxis.axisTicks.height -
                                2
                              : 0),
                          text: f,
                          textAnchor: "middle",
                          foreColor: Array.isArray(this.xaxisForeColors)
                            ? this.xaxisForeColors[e]
                            : this.xaxisForeColors,
                          fontSize: this.xaxisFontSize,
                          fontFamily: this.xaxisFontFamily,
                          fontWeight: t.config.xaxis.labels.style.fontWeight,
                          isPlainText: !1,
                          cssClass:
                            "apexcharts-xaxis-label " +
                            t.config.xaxis.labels.style.cssClass,
                        });
                        r.add(m), m.tspan(f);
                        var v = document.createElementNS(
                          t.globals.SVGNS,
                          "title"
                        );
                        (v.textContent = f), m.node.appendChild(v), (s += o);
                      }
                    return (
                      this.inversedYAxisTitleText(n),
                      this.inversedYAxisBorder(n),
                      n
                    );
                  },
                },
                {
                  key: "inversedYAxisBorder",
                  value: function (e) {
                    var t = this.w,
                      i = new w(this.ctx),
                      n = t.config.xaxis.axisBorder;
                    if (n.show) {
                      var r = 0;
                      "bar" === t.config.chart.type &&
                        t.globals.isXNumeric &&
                        (r -= 15);
                      var a = i.drawLine(
                        t.globals.padHorizontal + r + n.offsetX,
                        this.xAxisoffX,
                        t.globals.gridWidth,
                        this.xAxisoffX,
                        n.color,
                        0,
                        n.height
                      );
                      this.elgrid && this.elgrid.elGridBorders
                        ? this.elgrid.elGridBorders.add(a)
                        : e.add(a);
                    }
                  },
                },
                {
                  key: "inversedYAxisTitleText",
                  value: function (e) {
                    var t = this.w,
                      i = new w(this.ctx);
                    if (void 0 !== t.config.xaxis.title.text) {
                      var n = i.group({
                          class:
                            "apexcharts-xaxis-title apexcharts-yaxis-title-inversed",
                        }),
                        r = i.drawText({
                          x:
                            t.globals.gridWidth / 2 +
                            t.config.xaxis.title.offsetX,
                          y:
                            this.xAxisoffX +
                            parseFloat(this.xaxisFontSize) +
                            parseFloat(t.config.xaxis.title.style.fontSize) +
                            t.config.xaxis.title.offsetY +
                            20,
                          text: t.config.xaxis.title.text,
                          textAnchor: "middle",
                          fontSize: t.config.xaxis.title.style.fontSize,
                          fontFamily: t.config.xaxis.title.style.fontFamily,
                          fontWeight: t.config.xaxis.title.style.fontWeight,
                          foreColor: t.config.xaxis.title.style.color,
                          cssClass:
                            "apexcharts-xaxis-title-text " +
                            t.config.xaxis.title.style.cssClass,
                        });
                      n.add(r), e.add(n);
                    }
                  },
                },
                {
                  key: "yAxisTitleRotate",
                  value: function (e, t) {
                    var i = this.w,
                      n = new w(this.ctx),
                      r = { width: 0, height: 0 },
                      a = { width: 0, height: 0 },
                      o = i.globals.dom.baseEl.querySelector(
                        " .apexcharts-yaxis[rel='".concat(
                          e,
                          "'] .apexcharts-yaxis-texts-g"
                        )
                      );
                    null !== o && (r = o.getBoundingClientRect());
                    var s = i.globals.dom.baseEl.querySelector(
                      ".apexcharts-yaxis[rel='".concat(
                        e,
                        "'] .apexcharts-yaxis-title text"
                      )
                    );
                    if (
                      (null !== s && (a = s.getBoundingClientRect()),
                      null !== s)
                    ) {
                      var l = this.xPaddingForYAxisTitle(e, r, a, t);
                      s.setAttribute("x", l.xPos - (t ? 10 : 0));
                    }
                    if (null !== s) {
                      var c = n.rotateAroundCenter(s);
                      s.setAttribute(
                        "transform",
                        "rotate("
                          .concat(
                            t
                              ? -1 * i.config.yaxis[e].title.rotate
                              : i.config.yaxis[e].title.rotate,
                            " "
                          )
                          .concat(c.x, " ")
                          .concat(c.y, ")")
                      );
                    }
                  },
                },
                {
                  key: "xPaddingForYAxisTitle",
                  value: function (e, t, i, n) {
                    var r = this.w,
                      a = 0,
                      o = 0,
                      s = 10;
                    return void 0 === r.config.yaxis[e].title.text || e < 0
                      ? { xPos: o, padd: 0 }
                      : (n
                          ? ((o =
                              t.width +
                              r.config.yaxis[e].title.offsetX +
                              i.width / 2 +
                              s / 2),
                            0 === (a += 1) && (o -= s / 2))
                          : ((o =
                              -1 * t.width +
                              r.config.yaxis[e].title.offsetX +
                              s / 2 +
                              i.width / 2),
                            r.globals.isBarHorizontal &&
                              ((s = 25),
                              (o =
                                -1 * t.width -
                                r.config.yaxis[e].title.offsetX -
                                s))),
                        { xPos: o, padd: s });
                  },
                },
                {
                  key: "setYAxisXPosition",
                  value: function (e, t) {
                    var i = this.w,
                      n = 0,
                      r = 0,
                      a = 18,
                      o = 1;
                    i.config.yaxis.length > 1 && (this.multipleYs = !0),
                      i.config.yaxis.map(function (s, l) {
                        var c =
                            i.globals.ignoreYAxisIndexes.indexOf(l) > -1 ||
                            !s.show ||
                            s.floating ||
                            0 === e[l].width,
                          u = e[l].width + t[l].width;
                        s.opposite
                          ? i.globals.isBarHorizontal
                            ? ((r =
                                i.globals.gridWidth + i.globals.translateX - 1),
                              (i.globals.translateYAxisX[l] =
                                r - s.labels.offsetX))
                            : ((r =
                                i.globals.gridWidth + i.globals.translateX + o),
                              c || (o = o + u + 20),
                              (i.globals.translateYAxisX[l] =
                                r - s.labels.offsetX + 20))
                          : ((n = i.globals.translateX - a),
                            c || (a = a + u + 20),
                            (i.globals.translateYAxisX[l] =
                              n + s.labels.offsetX));
                      });
                  },
                },
                {
                  key: "setYAxisTextAlignments",
                  value: function () {
                    var e = this.w,
                      t =
                        e.globals.dom.baseEl.getElementsByClassName(
                          "apexcharts-yaxis"
                        );
                    (t = b.listToArray(t)).forEach(function (t, i) {
                      var n = e.config.yaxis[i];
                      if (n && !n.floating && void 0 !== n.labels.align) {
                        var r = e.globals.dom.baseEl.querySelector(
                            ".apexcharts-yaxis[rel='".concat(
                              i,
                              "'] .apexcharts-yaxis-texts-g"
                            )
                          ),
                          a = e.globals.dom.baseEl.querySelectorAll(
                            ".apexcharts-yaxis[rel='".concat(
                              i,
                              "'] .apexcharts-yaxis-label"
                            )
                          );
                        a = b.listToArray(a);
                        var o = r.getBoundingClientRect();
                        "left" === n.labels.align
                          ? (a.forEach(function (e, t) {
                              e.setAttribute("text-anchor", "start");
                            }),
                            n.opposite ||
                              r.setAttribute(
                                "transform",
                                "translate(-".concat(o.width, ", 0)")
                              ))
                          : "center" === n.labels.align
                          ? (a.forEach(function (e, t) {
                              e.setAttribute("text-anchor", "middle");
                            }),
                            r.setAttribute(
                              "transform",
                              "translate(".concat(
                                (o.width / 2) * (n.opposite ? 1 : -1),
                                ", 0)"
                              )
                            ))
                          : "right" === n.labels.align &&
                            (a.forEach(function (e, t) {
                              e.setAttribute("text-anchor", "end");
                            }),
                            n.opposite &&
                              r.setAttribute(
                                "transform",
                                "translate(".concat(o.width, ", 0)")
                              ));
                      }
                    });
                  },
                },
              ]),
              e
            );
          })(),
          K = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.documentEvent = b.bind(this.documentEvent, this));
            }
            return (
              c(e, [
                {
                  key: "addEventListener",
                  value: function (e, t) {
                    var i = this.w;
                    i.globals.events.hasOwnProperty(e)
                      ? i.globals.events[e].push(t)
                      : (i.globals.events[e] = [t]);
                  },
                },
                {
                  key: "removeEventListener",
                  value: function (e, t) {
                    var i = this.w;
                    if (i.globals.events.hasOwnProperty(e)) {
                      var n = i.globals.events[e].indexOf(t);
                      -1 !== n && i.globals.events[e].splice(n, 1);
                    }
                  },
                },
                {
                  key: "fireEvent",
                  value: function (e, t) {
                    var i = this.w;
                    if (i.globals.events.hasOwnProperty(e)) {
                      (t && t.length) || (t = []);
                      for (
                        var n = i.globals.events[e], r = n.length, a = 0;
                        a < r;
                        a++
                      )
                        n[a].apply(null, t);
                    }
                  },
                },
                {
                  key: "setupEventHandlers",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = this.ctx,
                      n = t.globals.dom.baseEl.querySelector(
                        t.globals.chartClass
                      );
                    this.ctx.eventList.forEach(function (e) {
                      n.addEventListener(
                        e,
                        function (e) {
                          var n = Object.assign({}, t, {
                            seriesIndex: t.globals.capturedSeriesIndex,
                            dataPointIndex: t.globals.capturedDataPointIndex,
                          });
                          "mousemove" === e.type || "touchmove" === e.type
                            ? "function" ==
                                typeof t.config.chart.events.mouseMove &&
                              t.config.chart.events.mouseMove(e, i, n)
                            : "mouseleave" === e.type || "touchleave" === e.type
                            ? "function" ==
                                typeof t.config.chart.events.mouseLeave &&
                              t.config.chart.events.mouseLeave(e, i, n)
                            : (("mouseup" === e.type && 1 === e.which) ||
                                "touchend" === e.type) &&
                              ("function" ==
                                typeof t.config.chart.events.click &&
                                t.config.chart.events.click(e, i, n),
                              i.ctx.events.fireEvent("click", [e, i, n]));
                        },
                        { capture: !1, passive: !0 }
                      );
                    }),
                      this.ctx.eventList.forEach(function (i) {
                        t.globals.dom.baseEl.addEventListener(
                          i,
                          e.documentEvent,
                          { passive: !0 }
                        );
                      }),
                      this.ctx.core.setupBrushHandler();
                  },
                },
                {
                  key: "documentEvent",
                  value: function (e) {
                    var t = this.w,
                      i = e.target.className;
                    if ("click" === e.type) {
                      var n =
                        t.globals.dom.baseEl.querySelector(".apexcharts-menu");
                      n &&
                        n.classList.contains("apexcharts-menu-open") &&
                        "apexcharts-menu-icon" !== i &&
                        n.classList.remove("apexcharts-menu-open");
                    }
                    (t.globals.clientX =
                      "touchmove" === e.type
                        ? e.touches[0].clientX
                        : e.clientX),
                      (t.globals.clientY =
                        "touchmove" === e.type
                          ? e.touches[0].clientY
                          : e.clientY);
                  },
                },
              ]),
              e
            );
          })(),
          J = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "setCurrentLocaleValues",
                  value: function (e) {
                    var t = this.w.config.chart.locales;
                    window.Apex.chart &&
                      window.Apex.chart.locales &&
                      window.Apex.chart.locales.length > 0 &&
                      (t = this.w.config.chart.locales.concat(
                        window.Apex.chart.locales
                      ));
                    var i = t.filter(function (t) {
                      return t.name === e;
                    })[0];
                    if (!i)
                      throw new Error(
                        "Wrong locale name provided. Please make sure you set the correct locale name in options"
                      );
                    var n = b.extend(T, i);
                    this.w.globals.locale = n.options;
                  },
                },
              ]),
              e
            );
          })(),
          Q = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "drawAxis",
                  value: function (e, t) {
                    var i,
                      n,
                      r = this,
                      a = this.w.globals,
                      o = this.w.config,
                      s = new q(this.ctx, t),
                      l = new Z(this.ctx, t);
                    a.axisCharts &&
                      "radar" !== e &&
                      (a.isBarHorizontal
                        ? ((n = l.drawYaxisInversed(0)),
                          (i = s.drawXaxisInversed(0)),
                          a.dom.elGraphical.add(i),
                          a.dom.elGraphical.add(n))
                        : ((i = s.drawXaxis()),
                          a.dom.elGraphical.add(i),
                          o.yaxis.map(function (e, t) {
                            if (
                              -1 === a.ignoreYAxisIndexes.indexOf(t) &&
                              ((n = l.drawYaxis(t)),
                              a.dom.Paper.add(n),
                              "back" === r.w.config.grid.position)
                            ) {
                              var i = a.dom.Paper.children()[1];
                              i.remove(), a.dom.Paper.add(i);
                            }
                          })));
                  },
                },
              ]),
              e
            );
          })(),
          ee = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "drawXCrosshairs",
                  value: function () {
                    var e = this.w,
                      t = new w(this.ctx),
                      i = new x(this.ctx),
                      n = e.config.xaxis.crosshairs.fill.gradient,
                      r = e.config.xaxis.crosshairs.dropShadow,
                      a = e.config.xaxis.crosshairs.fill.type,
                      o = n.colorFrom,
                      s = n.colorTo,
                      l = n.opacityFrom,
                      c = n.opacityTo,
                      u = n.stops,
                      d = r.enabled,
                      h = r.left,
                      f = r.top,
                      p = r.blur,
                      g = r.color,
                      m = r.opacity,
                      v = e.config.xaxis.crosshairs.fill.color;
                    if (e.config.xaxis.crosshairs.show) {
                      "gradient" === a &&
                        (v = t.drawGradient(
                          "vertical",
                          o,
                          s,
                          l,
                          c,
                          null,
                          u,
                          null
                        ));
                      var y = t.drawRect();
                      1 === e.config.xaxis.crosshairs.width &&
                        (y = t.drawLine());
                      var E = e.globals.gridHeight;
                      (!b.isNumber(E) || E < 0) && (E = 0);
                      var _ = e.config.xaxis.crosshairs.width;
                      (!b.isNumber(_) || _ < 0) && (_ = 0),
                        y.attr({
                          class: "apexcharts-xcrosshairs",
                          x: 0,
                          y: 0,
                          y2: E,
                          width: _,
                          height: E,
                          fill: v,
                          filter: "none",
                          "fill-opacity": e.config.xaxis.crosshairs.opacity,
                          stroke: e.config.xaxis.crosshairs.stroke.color,
                          "stroke-width":
                            e.config.xaxis.crosshairs.stroke.width,
                          "stroke-dasharray":
                            e.config.xaxis.crosshairs.stroke.dashArray,
                        }),
                        d &&
                          (y = i.dropShadow(y, {
                            left: h,
                            top: f,
                            blur: p,
                            color: g,
                            opacity: m,
                          })),
                        e.globals.dom.elGraphical.add(y);
                    }
                  },
                },
                {
                  key: "drawYCrosshairs",
                  value: function () {
                    var e = this.w,
                      t = new w(this.ctx),
                      i = e.config.yaxis[0].crosshairs,
                      n = e.globals.barPadForNumericAxis;
                    if (e.config.yaxis[0].crosshairs.show) {
                      var r = t.drawLine(
                        -n,
                        0,
                        e.globals.gridWidth + n,
                        0,
                        i.stroke.color,
                        i.stroke.dashArray,
                        i.stroke.width
                      );
                      r.attr({ class: "apexcharts-ycrosshairs" }),
                        e.globals.dom.elGraphical.add(r);
                    }
                    var a = t.drawLine(
                      -n,
                      0,
                      e.globals.gridWidth + n,
                      0,
                      i.stroke.color,
                      0,
                      0
                    );
                    a.attr({ class: "apexcharts-ycrosshairs-hidden" }),
                      e.globals.dom.elGraphical.add(a);
                  },
                },
              ]),
              e
            );
          })(),
          te = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "checkResponsiveConfig",
                  value: function (e) {
                    var t = this,
                      i = this.w,
                      n = i.config;
                    if (0 !== n.responsive.length) {
                      var r = n.responsive.slice();
                      r.sort(function (e, t) {
                        return e.breakpoint > t.breakpoint
                          ? 1
                          : t.breakpoint > e.breakpoint
                          ? -1
                          : 0;
                      }).reverse();
                      var a = new R({}),
                        o = function () {
                          var e =
                              arguments.length > 0 && void 0 !== arguments[0]
                                ? arguments[0]
                                : {},
                            n = r[0].breakpoint,
                            o =
                              window.innerWidth > 0
                                ? window.innerWidth
                                : screen.width;
                          if (o > n) {
                            var s = E.extendArrayProps(
                              a,
                              i.globals.initialConfig,
                              i
                            );
                            (e = b.extend(s, e)),
                              (e = b.extend(i.config, e)),
                              t.overrideResponsiveOptions(e);
                          } else
                            for (var l = 0; l < r.length; l++)
                              o < r[l].breakpoint &&
                                ((e = E.extendArrayProps(a, r[l].options, i)),
                                (e = b.extend(i.config, e)),
                                t.overrideResponsiveOptions(e));
                        };
                      if (e) {
                        var s = E.extendArrayProps(a, e, i);
                        (s = b.extend(i.config, s)), o((s = b.extend(s, e)));
                      } else o({});
                    }
                  },
                },
                {
                  key: "overrideResponsiveOptions",
                  value: function (e) {
                    var t = new R(e).init({ responsiveOverride: !0 });
                    this.w.config = t;
                  },
                },
              ]),
              e
            );
          })(),
          ie = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.colors = []), (this.w = t.w);
              var i = this.w;
              (this.isColorFn = !1),
                (this.isHeatmapDistributed =
                  ("treemap" === i.config.chart.type &&
                    i.config.plotOptions.treemap.distributed) ||
                  ("heatmap" === i.config.chart.type &&
                    i.config.plotOptions.heatmap.distributed)),
                (this.isBarDistributed =
                  i.config.plotOptions.bar.distributed &&
                  ("bar" === i.config.chart.type ||
                    "rangeBar" === i.config.chart.type));
            }
            return (
              c(e, [
                {
                  key: "init",
                  value: function () {
                    this.setDefaultColors();
                  },
                },
                {
                  key: "setDefaultColors",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = new b();
                    if (
                      (t.globals.dom.elWrap.classList.add(
                        "apexcharts-theme-".concat(t.config.theme.mode)
                      ),
                      void 0 === t.config.colors
                        ? (t.globals.colors = this.predefined())
                        : ((t.globals.colors = t.config.colors),
                          Array.isArray(t.config.colors) &&
                            t.config.colors.length > 0 &&
                            "function" == typeof t.config.colors[0] &&
                            (t.globals.colors = t.config.series.map(function (
                              i,
                              n
                            ) {
                              var r = t.config.colors[n];
                              return (
                                r || (r = t.config.colors[0]),
                                "function" == typeof r
                                  ? ((e.isColorFn = !0),
                                    r({
                                      value: t.globals.axisCharts
                                        ? t.globals.series[n][0]
                                          ? t.globals.series[n][0]
                                          : 0
                                        : t.globals.series[n],
                                      seriesIndex: n,
                                      dataPointIndex: n,
                                      w: t,
                                    }))
                                  : r
                              );
                            }))),
                      t.globals.seriesColors.map(function (e, i) {
                        e && (t.globals.colors[i] = e);
                      }),
                      t.config.theme.monochrome.enabled)
                    ) {
                      var n = [],
                        r = t.globals.series.length;
                      (this.isBarDistributed || this.isHeatmapDistributed) &&
                        (r =
                          t.globals.series[0].length * t.globals.series.length);
                      for (
                        var a = t.config.theme.monochrome.color,
                          o =
                            1 / (r / t.config.theme.monochrome.shadeIntensity),
                          s = t.config.theme.monochrome.shadeTo,
                          l = 0,
                          c = 0;
                        c < r;
                        c++
                      ) {
                        var u = void 0;
                        "dark" === s
                          ? ((u = i.shadeColor(-1 * l, a)), (l += o))
                          : ((u = i.shadeColor(l, a)), (l += o)),
                          n.push(u);
                      }
                      t.globals.colors = n.slice();
                    }
                    var d = t.globals.colors.slice();
                    this.pushExtraColors(t.globals.colors),
                      ["fill", "stroke"].forEach(function (i) {
                        void 0 === t.config[i].colors
                          ? (t.globals[i].colors = e.isColorFn
                              ? t.config.colors
                              : d)
                          : (t.globals[i].colors = t.config[i].colors.slice()),
                          e.pushExtraColors(t.globals[i].colors);
                      }),
                      void 0 === t.config.dataLabels.style.colors
                        ? (t.globals.dataLabels.style.colors = d)
                        : (t.globals.dataLabels.style.colors =
                            t.config.dataLabels.style.colors.slice()),
                      this.pushExtraColors(
                        t.globals.dataLabels.style.colors,
                        50
                      ),
                      void 0 === t.config.plotOptions.radar.polygons.fill.colors
                        ? (t.globals.radarPolygons.fill.colors = [
                            "dark" === t.config.theme.mode ? "#424242" : "none",
                          ])
                        : (t.globals.radarPolygons.fill.colors =
                            t.config.plotOptions.radar.polygons.fill.colors.slice()),
                      this.pushExtraColors(
                        t.globals.radarPolygons.fill.colors,
                        20
                      ),
                      void 0 === t.config.markers.colors
                        ? (t.globals.markers.colors = d)
                        : (t.globals.markers.colors =
                            t.config.markers.colors.slice()),
                      this.pushExtraColors(t.globals.markers.colors);
                  },
                },
                {
                  key: "pushExtraColors",
                  value: function (e, t) {
                    var i =
                        arguments.length > 2 && void 0 !== arguments[2]
                          ? arguments[2]
                          : null,
                      n = this.w,
                      r = t || n.globals.series.length;
                    if (
                      (null === i &&
                        (i =
                          this.isBarDistributed ||
                          this.isHeatmapDistributed ||
                          ("heatmap" === n.config.chart.type &&
                            n.config.plotOptions.heatmap.colorScale.inverse)),
                      i &&
                        n.globals.series.length &&
                        (r =
                          n.globals.series[n.globals.maxValsInArrayIndex]
                            .length * n.globals.series.length),
                      e.length < r)
                    )
                      for (var a = r - e.length, o = 0; o < a; o++)
                        e.push(e[o]);
                  },
                },
                {
                  key: "updateThemeOptions",
                  value: function (e) {
                    (e.chart = e.chart || {}), (e.tooltip = e.tooltip || {});
                    var t = e.theme.mode || "light",
                      i = e.theme.palette
                        ? e.theme.palette
                        : "dark" === t
                        ? "palette4"
                        : "palette1",
                      n = e.chart.foreColor
                        ? e.chart.foreColor
                        : "dark" === t
                        ? "#f6f7f8"
                        : "#373d3f";
                    return (
                      (e.tooltip.theme = t),
                      (e.chart.foreColor = n),
                      (e.theme.palette = i),
                      e
                    );
                  },
                },
                {
                  key: "predefined",
                  value: function () {
                    switch (this.w.config.theme.palette) {
                      case "palette1":
                      default:
                        this.colors = [
                          "#008FFB",
                          "#00E396",
                          "#FEB019",
                          "#FF4560",
                          "#775DD0",
                        ];
                        break;
                      case "palette2":
                        this.colors = [
                          "#3f51b5",
                          "#03a9f4",
                          "#4caf50",
                          "#f9ce1d",
                          "#FF9800",
                        ];
                        break;
                      case "palette3":
                        this.colors = [
                          "#33b2df",
                          "#546E7A",
                          "#d4526e",
                          "#13d8aa",
                          "#A5978B",
                        ];
                        break;
                      case "palette4":
                        this.colors = [
                          "#4ecdc4",
                          "#c7f464",
                          "#81D4FA",
                          "#fd6a6a",
                          "#546E7A",
                        ];
                        break;
                      case "palette5":
                        this.colors = [
                          "#2b908f",
                          "#f9a3a4",
                          "#90ee7e",
                          "#fa4443",
                          "#69d2e7",
                        ];
                        break;
                      case "palette6":
                        this.colors = [
                          "#449DD1",
                          "#F86624",
                          "#EA3546",
                          "#662E9B",
                          "#C5D86D",
                        ];
                        break;
                      case "palette7":
                        this.colors = [
                          "#D7263D",
                          "#1B998B",
                          "#2E294E",
                          "#F46036",
                          "#E2C044",
                        ];
                        break;
                      case "palette8":
                        this.colors = [
                          "#662E9B",
                          "#F86624",
                          "#F9C80E",
                          "#EA3546",
                          "#43BCCD",
                        ];
                        break;
                      case "palette9":
                        this.colors = [
                          "#5C4742",
                          "#A5978B",
                          "#8D5B4C",
                          "#5A2A27",
                          "#C4BBAF",
                        ];
                        break;
                      case "palette10":
                        this.colors = [
                          "#A300D6",
                          "#7D02EB",
                          "#5653FE",
                          "#2983FF",
                          "#00B1F2",
                        ];
                    }
                    return this.colors;
                  },
                },
              ]),
              e
            );
          })(),
          ne = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "draw",
                  value: function () {
                    this.drawTitleSubtitle("title"),
                      this.drawTitleSubtitle("subtitle");
                  },
                },
                {
                  key: "drawTitleSubtitle",
                  value: function (e) {
                    var t = this.w,
                      i = "title" === e ? t.config.title : t.config.subtitle,
                      n = t.globals.svgWidth / 2,
                      r = i.offsetY,
                      a = "middle";
                    if (
                      ("left" === i.align
                        ? ((n = 10), (a = "start"))
                        : "right" === i.align &&
                          ((n = t.globals.svgWidth - 10), (a = "end")),
                      (n += i.offsetX),
                      (r = r + parseInt(i.style.fontSize, 10) + i.margin / 2),
                      void 0 !== i.text)
                    ) {
                      var o = new w(this.ctx).drawText({
                        x: n,
                        y: r,
                        text: i.text,
                        textAnchor: a,
                        fontSize: i.style.fontSize,
                        fontFamily: i.style.fontFamily,
                        fontWeight: i.style.fontWeight,
                        foreColor: i.style.color,
                        opacity: 1,
                      });
                      o.node.setAttribute(
                        "class",
                        "apexcharts-".concat(e, "-text")
                      ),
                        t.globals.dom.Paper.add(o);
                    }
                  },
                },
              ]),
              e
            );
          })(),
          re = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.dCtx = t);
            }
            return (
              c(e, [
                {
                  key: "getTitleSubtitleCoords",
                  value: function (e) {
                    var t = this.w,
                      i = 0,
                      n = 0,
                      r =
                        "title" === e
                          ? t.config.title.floating
                          : t.config.subtitle.floating,
                      a = t.globals.dom.baseEl.querySelector(
                        ".apexcharts-".concat(e, "-text")
                      );
                    if (null !== a && !r) {
                      var o = a.getBoundingClientRect();
                      (i = o.width),
                        (n = t.globals.axisCharts ? o.height + 5 : o.height);
                    }
                    return { width: i, height: n };
                  },
                },
                {
                  key: "getLegendsRect",
                  value: function () {
                    var e = this.w,
                      t =
                        e.globals.dom.baseEl.querySelector(
                          ".apexcharts-legend"
                        );
                    e.config.legend.height ||
                      ("top" !== e.config.legend.position &&
                        "bottom" !== e.config.legend.position) ||
                      (t.style.maxHeight = e.globals.svgHeight / 2 + "px");
                    var i = Object.assign({}, b.getBoundingClientRect(t));
                    return (
                      null !== t &&
                      !e.config.legend.floating &&
                      e.config.legend.show
                        ? (this.dCtx.lgRect = {
                            x: i.x,
                            y: i.y,
                            height: i.height,
                            width: 0 === i.height ? 0 : i.width,
                          })
                        : (this.dCtx.lgRect = {
                            x: 0,
                            y: 0,
                            height: 0,
                            width: 0,
                          }),
                      ("left" !== e.config.legend.position &&
                        "right" !== e.config.legend.position) ||
                        (1.5 * this.dCtx.lgRect.width > e.globals.svgWidth &&
                          (this.dCtx.lgRect.width = e.globals.svgWidth / 1.5)),
                      this.dCtx.lgRect
                    );
                  },
                },
                {
                  key: "getLargestStringFromMultiArr",
                  value: function (e, t) {
                    var i = e;
                    if (this.w.globals.isMultiLineX) {
                      var n = t.map(function (e, t) {
                          return Array.isArray(e) ? e.length : 1;
                        }),
                        r = Math.max.apply(Math, g(n));
                      i = t[n.indexOf(r)];
                    }
                    return i;
                  },
                },
              ]),
              e
            );
          })(),
          ae = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.dCtx = t);
            }
            return (
              c(e, [
                {
                  key: "getxAxisLabelsCoords",
                  value: function () {
                    var e,
                      t = this.w,
                      i = t.globals.labels.slice();
                    if (
                      (t.config.xaxis.convertedCatToNumeric &&
                        0 === i.length &&
                        (i = t.globals.categoryLabels),
                      t.globals.timescaleLabels.length > 0)
                    ) {
                      var n = this.getxAxisTimeScaleLabelsCoords();
                      (e = { width: n.width, height: n.height }),
                        (t.globals.rotateXLabels = !1);
                    } else {
                      this.dCtx.lgWidthForSideLegends =
                        ("left" !== t.config.legend.position &&
                          "right" !== t.config.legend.position) ||
                        t.config.legend.floating
                          ? 0
                          : this.dCtx.lgRect.width;
                      var r = t.globals.xLabelFormatter,
                        a = b.getLargestStringFromArr(i),
                        o = this.dCtx.dimHelpers.getLargestStringFromMultiArr(
                          a,
                          i
                        );
                      t.globals.isBarHorizontal &&
                        (o = a =
                          t.globals.yAxisScale[0].result.reduce(function (
                            e,
                            t
                          ) {
                            return e.length > t.length ? e : t;
                          },
                          0));
                      var s = new M(this.dCtx.ctx),
                        l = a;
                      (a = s.xLabelFormat(r, a, l, {
                        i: void 0,
                        dateFormatter: new I(this.dCtx.ctx).formatDate,
                        w: t,
                      })),
                        (o = s.xLabelFormat(r, o, l, {
                          i: void 0,
                          dateFormatter: new I(this.dCtx.ctx).formatDate,
                          w: t,
                        })),
                        ((t.config.xaxis.convertedCatToNumeric &&
                          void 0 === a) ||
                          "" === String(a).trim()) &&
                          (o = a = "1");
                      var c = new w(this.dCtx.ctx),
                        u = c.getTextRects(
                          a,
                          t.config.xaxis.labels.style.fontSize
                        ),
                        d = u;
                      if (
                        (a !== o &&
                          (d = c.getTextRects(
                            o,
                            t.config.xaxis.labels.style.fontSize
                          )),
                        ((e = {
                          width: u.width >= d.width ? u.width : d.width,
                          height: u.height >= d.height ? u.height : d.height,
                        }).width *
                          i.length >
                          t.globals.svgWidth -
                            this.dCtx.lgWidthForSideLegends -
                            this.dCtx.yAxisWidth -
                            this.dCtx.gridPad.left -
                            this.dCtx.gridPad.right &&
                          0 !== t.config.xaxis.labels.rotate) ||
                          t.config.xaxis.labels.rotateAlways)
                      ) {
                        if (!t.globals.isBarHorizontal) {
                          t.globals.rotateXLabels = !0;
                          var h = function (e) {
                            return c.getTextRects(
                              e,
                              t.config.xaxis.labels.style.fontSize,
                              t.config.xaxis.labels.style.fontFamily,
                              "rotate(".concat(
                                t.config.xaxis.labels.rotate,
                                " 0 0)"
                              ),
                              !1
                            );
                          };
                          (u = h(a)),
                            a !== o && (d = h(o)),
                            (e.height =
                              (u.height > d.height ? u.height : d.height) /
                              1.5),
                            (e.width = u.width > d.width ? u.width : d.width);
                        }
                      } else t.globals.rotateXLabels = !1;
                    }
                    return (
                      t.config.xaxis.labels.show ||
                        (e = { width: 0, height: 0 }),
                      { width: e.width, height: e.height }
                    );
                  },
                },
                {
                  key: "getxAxisGroupLabelsCoords",
                  value: function () {
                    var e,
                      t = this.w;
                    if (!t.globals.hasGroups) return { width: 0, height: 0 };
                    var i,
                      n =
                        (null === (e = t.config.xaxis.group.style) ||
                        void 0 === e
                          ? void 0
                          : e.fontSize) || t.config.xaxis.labels.style.fontSize,
                      r = t.globals.groups.map(function (e) {
                        return e.title;
                      }),
                      a = b.getLargestStringFromArr(r),
                      o = this.dCtx.dimHelpers.getLargestStringFromMultiArr(
                        a,
                        r
                      ),
                      s = new w(this.dCtx.ctx),
                      l = s.getTextRects(a, n),
                      c = l;
                    return (
                      a !== o && (c = s.getTextRects(o, n)),
                      (i = {
                        width: l.width >= c.width ? l.width : c.width,
                        height: l.height >= c.height ? l.height : c.height,
                      }),
                      t.config.xaxis.labels.show ||
                        (i = { width: 0, height: 0 }),
                      { width: i.width, height: i.height }
                    );
                  },
                },
                {
                  key: "getxAxisTitleCoords",
                  value: function () {
                    var e = this.w,
                      t = 0,
                      i = 0;
                    if (void 0 !== e.config.xaxis.title.text) {
                      var n = new w(this.dCtx.ctx).getTextRects(
                        e.config.xaxis.title.text,
                        e.config.xaxis.title.style.fontSize
                      );
                      (t = n.width), (i = n.height);
                    }
                    return { width: t, height: i };
                  },
                },
                {
                  key: "getxAxisTimeScaleLabelsCoords",
                  value: function () {
                    var e,
                      t = this.w;
                    this.dCtx.timescaleLabels =
                      t.globals.timescaleLabels.slice();
                    var i = this.dCtx.timescaleLabels.map(function (e) {
                        return e.value;
                      }),
                      n = i.reduce(function (e, t) {
                        return void 0 === e
                          ? (console.error(
                              "You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"
                            ),
                            0)
                          : e.length > t.length
                          ? e
                          : t;
                      }, 0);
                    return (
                      1.05 *
                        (e = new w(this.dCtx.ctx).getTextRects(
                          n,
                          t.config.xaxis.labels.style.fontSize
                        )).width *
                        i.length >
                        t.globals.gridWidth &&
                        0 !== t.config.xaxis.labels.rotate &&
                        (t.globals.overlappingXLabels = !0),
                      e
                    );
                  },
                },
                {
                  key: "additionalPaddingXLabels",
                  value: function (e) {
                    var t = this,
                      i = this.w,
                      n = i.globals,
                      r = i.config,
                      a = r.xaxis.type,
                      o = e.width;
                    (n.skipLastTimelinelabel = !1),
                      (n.skipFirstTimelinelabel = !1);
                    var s =
                        i.config.yaxis[0].opposite && i.globals.isBarHorizontal,
                      l = function (e, s) {
                        (function (e) {
                          return -1 !== n.collapsedSeriesIndices.indexOf(e);
                        })(s) ||
                          (function (e) {
                            if (
                              t.dCtx.timescaleLabels &&
                              t.dCtx.timescaleLabels.length
                            ) {
                              var s = t.dCtx.timescaleLabels[0],
                                l =
                                  t.dCtx.timescaleLabels[
                                    t.dCtx.timescaleLabels.length - 1
                                  ].position +
                                  o / 1.75 -
                                  t.dCtx.yAxisWidthRight,
                                c =
                                  s.position - o / 1.75 + t.dCtx.yAxisWidthLeft,
                                u =
                                  "right" === i.config.legend.position &&
                                  t.dCtx.lgRect.width > 0
                                    ? t.dCtx.lgRect.width
                                    : 0;
                              l > n.svgWidth - n.translateX - u &&
                                (n.skipLastTimelinelabel = !0),
                                c <
                                  -((e.show && !e.floating) ||
                                  ("bar" !== r.chart.type &&
                                    "candlestick" !== r.chart.type &&
                                    "rangeBar" !== r.chart.type &&
                                    "boxPlot" !== r.chart.type)
                                    ? 10
                                    : o / 1.75) &&
                                  (n.skipFirstTimelinelabel = !0);
                            } else
                              "datetime" === a
                                ? t.dCtx.gridPad.right < o &&
                                  !n.rotateXLabels &&
                                  (n.skipLastTimelinelabel = !0)
                                : "datetime" !== a &&
                                  t.dCtx.gridPad.right <
                                    o / 2 - t.dCtx.yAxisWidthRight &&
                                  !n.rotateXLabels &&
                                  !i.config.xaxis.labels.trim &&
                                  ("between" !== i.config.xaxis.tickPlacement ||
                                    i.globals.isBarHorizontal) &&
                                  (t.dCtx.xPadRight = o / 2 + 1);
                          })(e);
                      };
                    r.yaxis.forEach(function (e, i) {
                      s
                        ? (t.dCtx.gridPad.left < o &&
                            (t.dCtx.xPadLeft = o / 2 + 1),
                          (t.dCtx.xPadRight = o / 2 + 1))
                        : l(e, i);
                    });
                  },
                },
              ]),
              e
            );
          })(),
          oe = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.dCtx = t);
            }
            return (
              c(e, [
                {
                  key: "getyAxisLabelsCoords",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = [],
                      n = 10,
                      r = new W(this.dCtx.ctx);
                    return (
                      t.config.yaxis.map(function (a, o) {
                        var s = t.globals.yAxisScale[o],
                          l = 0;
                        if (
                          (!r.isYAxisHidden(o) &&
                            a.labels.show &&
                            void 0 !== a.labels.minWidth &&
                            (l = a.labels.minWidth),
                          !r.isYAxisHidden(o) &&
                            a.labels.show &&
                            s.result.length)
                        ) {
                          var c = t.globals.yLabelFormatters[o],
                            u = s.niceMin === Number.MIN_VALUE ? 0 : s.niceMin,
                            d =
                              String(u).length > String(s.niceMax).length
                                ? u
                                : s.niceMax,
                            h = c(d, {
                              seriesIndex: o,
                              dataPointIndex: -1,
                              w: t,
                            }),
                            f = h;
                          if (
                            ((void 0 !== h && 0 !== h.length) || (h = d),
                            t.globals.isBarHorizontal)
                          ) {
                            n = 0;
                            var p = t.globals.labels.slice();
                            (h = c((h = b.getLargestStringFromArr(p)), {
                              seriesIndex: o,
                              dataPointIndex: -1,
                              w: t,
                            })),
                              (f =
                                e.dCtx.dimHelpers.getLargestStringFromMultiArr(
                                  h,
                                  p
                                ));
                          }
                          var g = new w(e.dCtx.ctx),
                            m = "rotate(".concat(a.labels.rotate, " 0 0)"),
                            v = g.getTextRects(
                              h,
                              a.labels.style.fontSize,
                              a.labels.style.fontFamily,
                              m,
                              !1
                            ),
                            y = v;
                          h !== f &&
                            (y = g.getTextRects(
                              f,
                              a.labels.style.fontSize,
                              a.labels.style.fontFamily,
                              m,
                              !1
                            )),
                            i.push({
                              width:
                                (l > y.width || l > v.width
                                  ? l
                                  : y.width > v.width
                                  ? y.width
                                  : v.width) + n,
                              height: y.height > v.height ? y.height : v.height,
                            });
                        } else i.push({ width: 0, height: 0 });
                      }),
                      i
                    );
                  },
                },
                {
                  key: "getyAxisTitleCoords",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = [];
                    return (
                      t.config.yaxis.map(function (t, n) {
                        if (t.show && void 0 !== t.title.text) {
                          var r = new w(e.dCtx.ctx),
                            a = "rotate(".concat(t.title.rotate, " 0 0)"),
                            o = r.getTextRects(
                              t.title.text,
                              t.title.style.fontSize,
                              t.title.style.fontFamily,
                              a,
                              !1
                            );
                          i.push({ width: o.width, height: o.height });
                        } else i.push({ width: 0, height: 0 });
                      }),
                      i
                    );
                  },
                },
                {
                  key: "getTotalYAxisWidth",
                  value: function () {
                    var e = this.w,
                      t = 0,
                      i = 0,
                      n = 0,
                      r = e.globals.yAxisScale.length > 1 ? 10 : 0,
                      a = new W(this.dCtx.ctx),
                      o = function (o, s) {
                        var l = e.config.yaxis[s].floating,
                          c = 0;
                        o.width > 0 && !l
                          ? ((c = o.width + r),
                            (function (t) {
                              return (
                                e.globals.ignoreYAxisIndexes.indexOf(t) > -1
                              );
                            })(s) && (c = c - o.width - r))
                          : (c = l || a.isYAxisHidden(s) ? 0 : 5),
                          e.config.yaxis[s].opposite ? (n += c) : (i += c),
                          (t += c);
                      };
                    return (
                      e.globals.yLabelsCoords.map(function (e, t) {
                        o(e, t);
                      }),
                      e.globals.yTitleCoords.map(function (e, t) {
                        o(e, t);
                      }),
                      e.globals.isBarHorizontal &&
                        !e.config.yaxis[0].floating &&
                        (t =
                          e.globals.yLabelsCoords[0].width +
                          e.globals.yTitleCoords[0].width +
                          15),
                      (this.dCtx.yAxisWidthLeft = i),
                      (this.dCtx.yAxisWidthRight = n),
                      t
                    );
                  },
                },
              ]),
              e
            );
          })(),
          se = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.dCtx = t);
            }
            return (
              c(e, [
                {
                  key: "gridPadForColumnsInNumericAxis",
                  value: function (e) {
                    var t = this.w;
                    if (t.globals.noData || t.globals.allSeriesCollapsed)
                      return 0;
                    var i = function (e) {
                        return (
                          "bar" === e ||
                          "rangeBar" === e ||
                          "candlestick" === e ||
                          "boxPlot" === e
                        );
                      },
                      n = t.config.chart.type,
                      r = 0,
                      a = i(n) ? t.config.series.length : 1;
                    if (
                      (t.globals.comboBarCount > 0 &&
                        (a = t.globals.comboBarCount),
                      t.globals.collapsedSeries.forEach(function (e) {
                        i(e.type) && (a -= 1);
                      }),
                      t.config.chart.stacked && (a = 1),
                      (i(n) || t.globals.comboBarCount > 0) &&
                        t.globals.isXNumeric &&
                        !t.globals.isBarHorizontal &&
                        a > 0)
                    ) {
                      var o,
                        s,
                        l = Math.abs(
                          t.globals.initialMaxX - t.globals.initialMinX
                        );
                      l <= 3 && (l = t.globals.dataPoints),
                        (o = l / e),
                        t.globals.minXDiff &&
                          t.globals.minXDiff / o > 0 &&
                          (s = t.globals.minXDiff / o),
                        s > e / 2 && (s /= 2),
                        (r =
                          ((s / a) *
                            parseInt(
                              t.config.plotOptions.bar.columnWidth,
                              10
                            )) /
                          100) < 1 && (r = 1),
                        (r = r / (a > 1 ? 1 : 1.5) + 5),
                        (t.globals.barPadForNumericAxis = r);
                    }
                    return r;
                  },
                },
                {
                  key: "gridPadFortitleSubtitle",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = t.globals,
                      n =
                        this.dCtx.isSparkline || !t.globals.axisCharts ? 0 : 10;
                    ["title", "subtitle"].forEach(function (i) {
                      void 0 !== t.config[i].text
                        ? (n += t.config[i].margin)
                        : (n +=
                            e.dCtx.isSparkline || !t.globals.axisCharts
                              ? 0
                              : 5);
                    }),
                      !t.config.legend.show ||
                        "bottom" !== t.config.legend.position ||
                        t.config.legend.floating ||
                        t.globals.axisCharts ||
                        (n += 10);
                    var r =
                        this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),
                      a =
                        this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");
                    (i.gridHeight = i.gridHeight - r.height - a.height - n),
                      (i.translateY = i.translateY + r.height + a.height + n);
                  },
                },
                {
                  key: "setGridXPosForDualYAxis",
                  value: function (e, t) {
                    var i = this.w,
                      n = new W(this.dCtx.ctx);
                    i.config.yaxis.map(function (r, a) {
                      -1 !== i.globals.ignoreYAxisIndexes.indexOf(a) ||
                        r.floating ||
                        n.isYAxisHidden(a) ||
                        (r.opposite &&
                          (i.globals.translateX =
                            i.globals.translateX -
                            (t[a].width + e[a].width) -
                            parseInt(
                              i.config.yaxis[a].labels.style.fontSize,
                              10
                            ) /
                              1.2 -
                            12),
                        i.globals.translateX < 2 && (i.globals.translateX = 2));
                    });
                  },
                },
              ]),
              e
            );
          })(),
          le = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.lgRect = {}),
                (this.yAxisWidth = 0),
                (this.yAxisWidthLeft = 0),
                (this.yAxisWidthRight = 0),
                (this.xAxisHeight = 0),
                (this.isSparkline = this.w.config.chart.sparkline.enabled),
                (this.dimHelpers = new re(this)),
                (this.dimYAxis = new oe(this)),
                (this.dimXAxis = new ae(this)),
                (this.dimGrid = new se(this)),
                (this.lgWidthForSideLegends = 0),
                (this.gridPad = this.w.config.grid.padding),
                (this.xPadRight = 0),
                (this.xPadLeft = 0);
            }
            return (
              c(e, [
                {
                  key: "plotCoords",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = t.globals;
                    (this.lgRect = this.dimHelpers.getLegendsRect()),
                      this.isSparkline &&
                        (t.config.markers.discrete.length > 0 ||
                          t.config.markers.size > 0) &&
                        Object.entries(this.gridPad).forEach(function (t) {
                          var i = (function (e, t) {
                              return (
                                (function (e) {
                                  if (Array.isArray(e)) return e;
                                })(e) ||
                                (function (e, t) {
                                  var i =
                                    null == e
                                      ? null
                                      : ("undefined" != typeof Symbol &&
                                          e[Symbol.iterator]) ||
                                        e["@@iterator"];
                                  if (null != i) {
                                    var n,
                                      r,
                                      a = [],
                                      o = !0,
                                      s = !1;
                                    try {
                                      for (
                                        i = i.call(e);
                                        !(o = (n = i.next()).done) &&
                                        (a.push(n.value), !t || a.length !== t);
                                        o = !0
                                      );
                                    } catch (e) {
                                      (s = !0), (r = e);
                                    } finally {
                                      try {
                                        o || null == i.return || i.return();
                                      } finally {
                                        if (s) throw r;
                                      }
                                    }
                                    return a;
                                  }
                                })(e, t) ||
                                m(e, t) ||
                                (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."
                                  );
                                })()
                              );
                            })(t, 2),
                            n = i[0],
                            r = i[1];
                          e.gridPad[n] = Math.max(
                            r,
                            e.w.globals.markers.largestSize / 1.5
                          );
                        }),
                      i.axisCharts
                        ? this.setDimensionsForAxisCharts()
                        : this.setDimensionsForNonAxisCharts(),
                      this.dimGrid.gridPadFortitleSubtitle(),
                      (i.gridHeight =
                        i.gridHeight - this.gridPad.top - this.gridPad.bottom),
                      (i.gridWidth =
                        i.gridWidth -
                        this.gridPad.left -
                        this.gridPad.right -
                        this.xPadRight -
                        this.xPadLeft);
                    var n = this.dimGrid.gridPadForColumnsInNumericAxis(
                      i.gridWidth
                    );
                    (i.gridWidth = i.gridWidth - 2 * n),
                      (i.translateX =
                        i.translateX +
                        this.gridPad.left +
                        this.xPadLeft +
                        (n > 0 ? n + 4 : 0)),
                      (i.translateY = i.translateY + this.gridPad.top);
                  },
                },
                {
                  key: "setDimensionsForAxisCharts",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = t.globals,
                      n = this.dimYAxis.getyAxisLabelsCoords(),
                      r = this.dimYAxis.getyAxisTitleCoords();
                    (t.globals.yLabelsCoords = []),
                      (t.globals.yTitleCoords = []),
                      t.config.yaxis.map(function (e, i) {
                        t.globals.yLabelsCoords.push({
                          width: n[i].width,
                          index: i,
                        }),
                          t.globals.yTitleCoords.push({
                            width: r[i].width,
                            index: i,
                          });
                      }),
                      (this.yAxisWidth = this.dimYAxis.getTotalYAxisWidth());
                    var a = this.dimXAxis.getxAxisLabelsCoords(),
                      o = this.dimXAxis.getxAxisGroupLabelsCoords(),
                      s = this.dimXAxis.getxAxisTitleCoords();
                    this.conditionalChecksForAxisCoords(a, s, o),
                      (i.translateXAxisY = t.globals.rotateXLabels
                        ? this.xAxisHeight / 8
                        : -4),
                      (i.translateXAxisX =
                        t.globals.rotateXLabels &&
                        t.globals.isXNumeric &&
                        t.config.xaxis.labels.rotate <= -45
                          ? -this.xAxisWidth / 4
                          : 0),
                      t.globals.isBarHorizontal &&
                        ((i.rotateXLabels = !1),
                        (i.translateXAxisY =
                          (parseInt(t.config.xaxis.labels.style.fontSize, 10) /
                            1.5) *
                          -1)),
                      (i.translateXAxisY =
                        i.translateXAxisY + t.config.xaxis.labels.offsetY),
                      (i.translateXAxisX =
                        i.translateXAxisX + t.config.xaxis.labels.offsetX);
                    var l = this.yAxisWidth,
                      c = this.xAxisHeight;
                    (i.xAxisLabelsHeight = this.xAxisHeight - s.height),
                      (i.xAxisGroupLabelsHeight =
                        i.xAxisLabelsHeight - a.height),
                      (i.xAxisLabelsWidth = this.xAxisWidth),
                      (i.xAxisHeight = this.xAxisHeight);
                    var u = 10;
                    ("radar" === t.config.chart.type || this.isSparkline) &&
                      ((l = 0), (c = i.goldenPadding)),
                      this.isSparkline &&
                        (this.lgRect = { height: 0, width: 0 }),
                      (this.isSparkline || "treemap" === t.config.chart.type) &&
                        ((l = 0), (c = 0), (u = 0)),
                      this.isSparkline ||
                        this.dimXAxis.additionalPaddingXLabels(a);
                    var d = function () {
                      (i.translateX = l),
                        (i.gridHeight =
                          i.svgHeight -
                          e.lgRect.height -
                          c -
                          (e.isSparkline || "treemap" === t.config.chart.type
                            ? 0
                            : t.globals.rotateXLabels
                            ? 10
                            : 15)),
                        (i.gridWidth = i.svgWidth - l);
                    };
                    switch (
                      ("top" === t.config.xaxis.position &&
                        (u =
                          i.xAxisHeight - t.config.xaxis.axisTicks.height - 5),
                      t.config.legend.position)
                    ) {
                      case "bottom":
                        (i.translateY = u), d();
                        break;
                      case "top":
                        (i.translateY = this.lgRect.height + u), d();
                        break;
                      case "left":
                        (i.translateY = u),
                          (i.translateX = this.lgRect.width + l),
                          (i.gridHeight = i.svgHeight - c - 12),
                          (i.gridWidth = i.svgWidth - this.lgRect.width - l);
                        break;
                      case "right":
                        (i.translateY = u),
                          (i.translateX = l),
                          (i.gridHeight = i.svgHeight - c - 12),
                          (i.gridWidth =
                            i.svgWidth - this.lgRect.width - l - 5);
                        break;
                      default:
                        throw new Error("Legend position not supported");
                    }
                    this.dimGrid.setGridXPosForDualYAxis(r, n),
                      new Z(this.ctx).setYAxisXPosition(n, r);
                  },
                },
                {
                  key: "setDimensionsForNonAxisCharts",
                  value: function () {
                    var e = this.w,
                      t = e.globals,
                      i = e.config,
                      n = 0;
                    e.config.legend.show &&
                      !e.config.legend.floating &&
                      (n = 20);
                    var r =
                        "pie" === i.chart.type ||
                        "polarArea" === i.chart.type ||
                        "donut" === i.chart.type
                          ? "pie"
                          : "radialBar",
                      a = i.plotOptions[r].offsetY,
                      o = i.plotOptions[r].offsetX;
                    if (!i.legend.show || i.legend.floating)
                      return (
                        (t.gridHeight =
                          t.svgHeight -
                          i.grid.padding.left +
                          i.grid.padding.right),
                        (t.gridWidth = t.gridHeight),
                        (t.translateY = a),
                        void (t.translateX = o + (t.svgWidth - t.gridWidth) / 2)
                      );
                    switch (i.legend.position) {
                      case "bottom":
                        (t.gridHeight =
                          t.svgHeight - this.lgRect.height - t.goldenPadding),
                          (t.gridWidth = t.svgWidth),
                          (t.translateY = a - 10),
                          (t.translateX = o + (t.svgWidth - t.gridWidth) / 2);
                        break;
                      case "top":
                        (t.gridHeight =
                          t.svgHeight - this.lgRect.height - t.goldenPadding),
                          (t.gridWidth = t.svgWidth),
                          (t.translateY = this.lgRect.height + a + 10),
                          (t.translateX = o + (t.svgWidth - t.gridWidth) / 2);
                        break;
                      case "left":
                        (t.gridWidth = t.svgWidth - this.lgRect.width - n),
                          (t.gridHeight =
                            "auto" !== i.chart.height
                              ? t.svgHeight
                              : t.gridWidth),
                          (t.translateY = a),
                          (t.translateX = o + this.lgRect.width + n);
                        break;
                      case "right":
                        (t.gridWidth = t.svgWidth - this.lgRect.width - n - 5),
                          (t.gridHeight =
                            "auto" !== i.chart.height
                              ? t.svgHeight
                              : t.gridWidth),
                          (t.translateY = a),
                          (t.translateX = o + 10);
                        break;
                      default:
                        throw new Error("Legend position not supported");
                    }
                  },
                },
                {
                  key: "conditionalChecksForAxisCoords",
                  value: function (e, t, i) {
                    var n = this.w,
                      r = n.globals.hasGroups ? 2 : 1,
                      a = i.height + e.height + t.height,
                      o = n.globals.isMultiLineX
                        ? 1.2
                        : n.globals.LINE_HEIGHT_RATIO,
                      s = n.globals.rotateXLabels ? 22 : 10,
                      l =
                        n.globals.rotateXLabels &&
                        "bottom" === n.config.legend.position
                          ? 10
                          : 0;
                    (this.xAxisHeight = a * o + r * s + l),
                      (this.xAxisWidth = e.width),
                      this.xAxisHeight - t.height >
                        n.config.xaxis.labels.maxHeight &&
                        (this.xAxisHeight = n.config.xaxis.labels.maxHeight),
                      n.config.xaxis.labels.minHeight &&
                        this.xAxisHeight < n.config.xaxis.labels.minHeight &&
                        (this.xAxisHeight = n.config.xaxis.labels.minHeight),
                      n.config.xaxis.floating && (this.xAxisHeight = 0);
                    var c = 0,
                      u = 0;
                    n.config.yaxis.forEach(function (e) {
                      (c += e.labels.minWidth), (u += e.labels.maxWidth);
                    }),
                      this.yAxisWidth < c && (this.yAxisWidth = c),
                      this.yAxisWidth > u && (this.yAxisWidth = u);
                  },
                },
              ]),
              e
            );
          })(),
          ce = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.lgCtx = t);
            }
            return (
              c(e, [
                {
                  key: "getLegendStyles",
                  value: function () {
                    var e = document.createElement("style");
                    e.setAttribute("type", "text/css");
                    var t = document.createTextNode(
                      "\t\n    \t\n      .apexcharts-legend {\t\n        display: flex;\t\n        overflow: auto;\t\n        padding: 0 10px;\t\n      }\t\n      .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\t\n        flex-wrap: wrap\t\n      }\t\n      .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n        flex-direction: column;\t\n        bottom: 0;\t\n      }\t\n      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n        justify-content: flex-start;\t\n      }\t\n      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\t\n        justify-content: center;  \t\n      }\t\n      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\t\n        justify-content: flex-end;\t\n      }\t\n      .apexcharts-legend-series {\t\n        cursor: pointer;\t\n        line-height: normal;\t\n      }\t\n      .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\t\n        display: flex;\t\n        align-items: center;\t\n      }\t\n      .apexcharts-legend-text {\t\n        position: relative;\t\n        font-size: 14px;\t\n      }\t\n      .apexcharts-legend-text *, .apexcharts-legend-marker * {\t\n        pointer-events: none;\t\n      }\t\n      .apexcharts-legend-marker {\t\n        position: relative;\t\n        display: inline-block;\t\n        cursor: pointer;\t\n        margin-right: 3px;\t\n        border-style: solid;\n      }\t\n      \t\n      .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\t\n        display: inline-block;\t\n      }\t\n      .apexcharts-legend-series.apexcharts-no-click {\t\n        cursor: auto;\t\n      }\t\n      .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\t\n        display: none !important;\t\n      }\t\n      .apexcharts-inactive-legend {\t\n        opacity: 0.45;\t\n      }"
                    );
                    return e.appendChild(t), e;
                  },
                },
                {
                  key: "getLegendBBox",
                  value: function () {
                    var e = this.w.globals.dom.baseEl
                        .querySelector(".apexcharts-legend")
                        .getBoundingClientRect(),
                      t = e.width;
                    return { clwh: e.height, clww: t };
                  },
                },
                {
                  key: "appendToForeignObject",
                  value: function () {
                    var e = this.w.globals;
                    e.dom.elLegendForeign = document.createElementNS(
                      e.SVGNS,
                      "foreignObject"
                    );
                    var t = e.dom.elLegendForeign;
                    t.setAttribute("x", 0),
                      t.setAttribute("y", 0),
                      t.setAttribute("width", e.svgWidth),
                      t.setAttribute("height", e.svgHeight),
                      e.dom.elLegendWrap.setAttribute(
                        "xmlns",
                        "http://www.w3.org/1999/xhtml"
                      ),
                      t.appendChild(e.dom.elLegendWrap),
                      t.appendChild(this.getLegendStyles()),
                      e.dom.Paper.node.insertBefore(t, e.dom.elGraphical.node);
                  },
                },
                {
                  key: "toggleDataSeries",
                  value: function (e, t) {
                    var i = this,
                      n = this.w;
                    if (
                      n.globals.axisCharts ||
                      "radialBar" === n.config.chart.type
                    ) {
                      n.globals.resized = !0;
                      var r = null,
                        a = null;
                      (n.globals.risingSeries = []),
                        n.globals.axisCharts
                          ? ((r = n.globals.dom.baseEl.querySelector(
                              ".apexcharts-series[data\\:realIndex='".concat(
                                e,
                                "']"
                              )
                            )),
                            (a = parseInt(
                              r.getAttribute("data:realIndex"),
                              10
                            )))
                          : ((r = n.globals.dom.baseEl.querySelector(
                              ".apexcharts-series[rel='".concat(e + 1, "']")
                            )),
                            (a = parseInt(r.getAttribute("rel"), 10) - 1)),
                        t
                          ? [
                              {
                                cs: n.globals.collapsedSeries,
                                csi: n.globals.collapsedSeriesIndices,
                              },
                              {
                                cs: n.globals.ancillaryCollapsedSeries,
                                csi: n.globals.ancillaryCollapsedSeriesIndices,
                              },
                            ].forEach(function (e) {
                              i.riseCollapsedSeries(e.cs, e.csi, a);
                            })
                          : this.hideSeries({ seriesEl: r, realIndex: a });
                    } else {
                      var o = n.globals.dom.Paper.select(
                          " .apexcharts-series[rel='".concat(e + 1, "'] path")
                        ),
                        s = n.config.chart.type;
                      if ("pie" === s || "polarArea" === s || "donut" === s) {
                        var l = n.config.plotOptions.pie.donut.labels;
                        new w(this.lgCtx.ctx).pathMouseDown(o.members[0], null),
                          this.lgCtx.ctx.pie.printDataLabelsInner(
                            o.members[0].node,
                            l
                          );
                      }
                      o.fire("click");
                    }
                  },
                },
                {
                  key: "hideSeries",
                  value: function (e) {
                    var t = e.seriesEl,
                      i = e.realIndex,
                      n = this.w,
                      r = b.clone(n.config.series);
                    if (n.globals.axisCharts) {
                      var a = !1;
                      if (
                        (n.config.yaxis[i] &&
                          n.config.yaxis[i].show &&
                          n.config.yaxis[i].showAlways &&
                          ((a = !0),
                          n.globals.ancillaryCollapsedSeriesIndices.indexOf(i) <
                            0 &&
                            (n.globals.ancillaryCollapsedSeries.push({
                              index: i,
                              data: r[i].data.slice(),
                              type: t.parentNode.className.baseVal.split(
                                "-"
                              )[1],
                            }),
                            n.globals.ancillaryCollapsedSeriesIndices.push(i))),
                        !a)
                      ) {
                        n.globals.collapsedSeries.push({
                          index: i,
                          data: r[i].data.slice(),
                          type: t.parentNode.className.baseVal.split("-")[1],
                        }),
                          n.globals.collapsedSeriesIndices.push(i);
                        var o = n.globals.risingSeries.indexOf(i);
                        n.globals.risingSeries.splice(o, 1);
                      }
                    } else
                      n.globals.collapsedSeries.push({ index: i, data: r[i] }),
                        n.globals.collapsedSeriesIndices.push(i);
                    for (var s = t.childNodes, l = 0; l < s.length; l++)
                      s[l].classList.contains(
                        "apexcharts-series-markers-wrap"
                      ) &&
                        (s[l].classList.contains("apexcharts-hide")
                          ? s[l].classList.remove("apexcharts-hide")
                          : s[l].classList.add("apexcharts-hide"));
                    (n.globals.allSeriesCollapsed =
                      n.globals.collapsedSeries.length ===
                      n.config.series.length),
                      (r = this._getSeriesBasedOnCollapsedState(r)),
                      this.lgCtx.ctx.updateHelpers._updateSeries(
                        r,
                        n.config.chart.animations.dynamicAnimation.enabled
                      );
                  },
                },
                {
                  key: "riseCollapsedSeries",
                  value: function (e, t, i) {
                    var n = this.w,
                      r = b.clone(n.config.series);
                    if (e.length > 0) {
                      for (var a = 0; a < e.length; a++)
                        e[a].index === i &&
                          (n.globals.axisCharts
                            ? ((r[i].data = e[a].data.slice()),
                              e.splice(a, 1),
                              t.splice(a, 1),
                              n.globals.risingSeries.push(i))
                            : ((r[i] = e[a].data),
                              e.splice(a, 1),
                              t.splice(a, 1),
                              n.globals.risingSeries.push(i)));
                      (r = this._getSeriesBasedOnCollapsedState(r)),
                        this.lgCtx.ctx.updateHelpers._updateSeries(
                          r,
                          n.config.chart.animations.dynamicAnimation.enabled
                        );
                    }
                  },
                },
                {
                  key: "_getSeriesBasedOnCollapsedState",
                  value: function (e) {
                    var t = this.w;
                    return (
                      t.globals.axisCharts
                        ? e.forEach(function (i, n) {
                            t.globals.collapsedSeriesIndices.indexOf(n) > -1 &&
                              (e[n].data = []);
                          })
                        : e.forEach(function (i, n) {
                            t.globals.collapsedSeriesIndices.indexOf(n) > -1 &&
                              (e[n] = 0);
                          }),
                      e
                    );
                  },
                },
              ]),
              e
            );
          })(),
          ue = (function () {
            function e(t, i) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.onLegendClick = this.onLegendClick.bind(this)),
                (this.onLegendHovered = this.onLegendHovered.bind(this)),
                (this.isBarsDistributed =
                  "bar" === this.w.config.chart.type &&
                  this.w.config.plotOptions.bar.distributed &&
                  1 === this.w.config.series.length),
                (this.legendHelpers = new ce(this));
            }
            return (
              c(e, [
                {
                  key: "init",
                  value: function () {
                    var e = this.w,
                      t = e.globals,
                      i = e.config;
                    if (
                      ((i.legend.showForSingleSeries &&
                        1 === t.series.length) ||
                        this.isBarsDistributed ||
                        t.series.length > 1 ||
                        !t.axisCharts) &&
                      i.legend.show
                    ) {
                      for (; t.dom.elLegendWrap.firstChild; )
                        t.dom.elLegendWrap.removeChild(
                          t.dom.elLegendWrap.firstChild
                        );
                      this.drawLegends(),
                        b.isIE11()
                          ? document
                              .getElementsByTagName("head")[0]
                              .appendChild(this.legendHelpers.getLegendStyles())
                          : this.legendHelpers.appendToForeignObject(),
                        "bottom" === i.legend.position ||
                        "top" === i.legend.position
                          ? this.legendAlignHorizontal()
                          : ("right" !== i.legend.position &&
                              "left" !== i.legend.position) ||
                            this.legendAlignVertical();
                    }
                  },
                },
                {
                  key: "drawLegends",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = t.config.legend.fontFamily,
                      n = t.globals.seriesNames,
                      r = t.globals.colors.slice();
                    if ("heatmap" === t.config.chart.type) {
                      var a = t.config.plotOptions.heatmap.colorScale.ranges;
                      (n = a.map(function (e) {
                        return e.name ? e.name : e.from + " - " + e.to;
                      })),
                        (r = a.map(function (e) {
                          return e.color;
                        }));
                    } else
                      this.isBarsDistributed && (n = t.globals.labels.slice());
                    t.config.legend.customLegendItems.length &&
                      (n = t.config.legend.customLegendItems);
                    for (
                      var o = t.globals.legendFormatter,
                        s = t.config.legend.inverseOrder,
                        l = s ? n.length - 1 : 0;
                      s ? l >= 0 : l <= n.length - 1;
                      s ? l-- : l++
                    ) {
                      var c = o(n[l], { seriesIndex: l, w: t }),
                        u = !1,
                        d = !1;
                      if (t.globals.collapsedSeries.length > 0)
                        for (
                          var h = 0;
                          h < t.globals.collapsedSeries.length;
                          h++
                        )
                          t.globals.collapsedSeries[h].index === l && (u = !0);
                      if (t.globals.ancillaryCollapsedSeriesIndices.length > 0)
                        for (
                          var f = 0;
                          f < t.globals.ancillaryCollapsedSeriesIndices.length;
                          f++
                        )
                          t.globals.ancillaryCollapsedSeriesIndices[f] === l &&
                            (d = !0);
                      var p = document.createElement("span");
                      p.classList.add("apexcharts-legend-marker");
                      var g = t.config.legend.markers.offsetX,
                        m = t.config.legend.markers.offsetY,
                        v = t.config.legend.markers.height,
                        y = t.config.legend.markers.width,
                        x = t.config.legend.markers.strokeWidth,
                        _ = t.config.legend.markers.strokeColor,
                        S = t.config.legend.markers.radius,
                        A = p.style;
                      (A.background = r[l]),
                        (A.color = r[l]),
                        A.setProperty("background", r[l], "important"),
                        t.config.legend.markers.fillColors &&
                          t.config.legend.markers.fillColors[l] &&
                          (A.background =
                            t.config.legend.markers.fillColors[l]),
                        void 0 !== t.globals.seriesColors[l] &&
                          ((A.background = t.globals.seriesColors[l]),
                          (A.color = t.globals.seriesColors[l])),
                        (A.height = Array.isArray(v)
                          ? parseFloat(v[l]) + "px"
                          : parseFloat(v) + "px"),
                        (A.width = Array.isArray(y)
                          ? parseFloat(y[l]) + "px"
                          : parseFloat(y) + "px"),
                        (A.left =
                          (Array.isArray(g)
                            ? parseFloat(g[l])
                            : parseFloat(g)) + "px"),
                        (A.top =
                          (Array.isArray(m)
                            ? parseFloat(m[l])
                            : parseFloat(m)) + "px"),
                        (A.borderWidth = Array.isArray(x) ? x[l] : x),
                        (A.borderColor = Array.isArray(_) ? _[l] : _),
                        (A.borderRadius = Array.isArray(S)
                          ? parseFloat(S[l]) + "px"
                          : parseFloat(S) + "px"),
                        t.config.legend.markers.customHTML &&
                          (Array.isArray(t.config.legend.markers.customHTML)
                            ? t.config.legend.markers.customHTML[l] &&
                              (p.innerHTML =
                                t.config.legend.markers.customHTML[l]())
                            : (p.innerHTML =
                                t.config.legend.markers.customHTML())),
                        w.setAttrs(p, { rel: l + 1, "data:collapsed": u || d }),
                        (u || d) &&
                          p.classList.add("apexcharts-inactive-legend");
                      var k = document.createElement("div"),
                        T = document.createElement("span");
                      T.classList.add("apexcharts-legend-text"),
                        (T.innerHTML = Array.isArray(c) ? c.join(" ") : c);
                      var C = t.config.legend.labels.useSeriesColors
                        ? t.globals.colors[l]
                        : t.config.legend.labels.colors;
                      C || (C = t.config.chart.foreColor),
                        (T.style.color = C),
                        (T.style.fontSize =
                          parseFloat(t.config.legend.fontSize) + "px"),
                        (T.style.fontWeight = t.config.legend.fontWeight),
                        (T.style.fontFamily = i || t.config.chart.fontFamily),
                        w.setAttrs(T, {
                          rel: l + 1,
                          i: l,
                          "data:default-text": encodeURIComponent(c),
                          "data:collapsed": u || d,
                        }),
                        k.appendChild(p),
                        k.appendChild(T);
                      var O = new E(this.ctx);
                      t.config.legend.showForZeroSeries ||
                        (0 === O.getSeriesTotalByIndex(l) &&
                          O.seriesHaveSameValues(l) &&
                          !O.isSeriesNull(l) &&
                          -1 === t.globals.collapsedSeriesIndices.indexOf(l) &&
                          -1 ===
                            t.globals.ancillaryCollapsedSeriesIndices.indexOf(
                              l
                            ) &&
                          k.classList.add("apexcharts-hidden-zero-series")),
                        t.config.legend.showForNullSeries ||
                          (O.isSeriesNull(l) &&
                            -1 ===
                              t.globals.collapsedSeriesIndices.indexOf(l) &&
                            -1 ===
                              t.globals.ancillaryCollapsedSeriesIndices.indexOf(
                                l
                              ) &&
                            k.classList.add("apexcharts-hidden-null-series")),
                        t.globals.dom.elLegendWrap.appendChild(k),
                        t.globals.dom.elLegendWrap.classList.add(
                          "apexcharts-align-".concat(
                            t.config.legend.horizontalAlign
                          )
                        ),
                        t.globals.dom.elLegendWrap.classList.add(
                          "apx-legend-position-" + t.config.legend.position
                        ),
                        k.classList.add("apexcharts-legend-series"),
                        (k.style.margin = ""
                          .concat(t.config.legend.itemMargin.vertical, "px ")
                          .concat(t.config.legend.itemMargin.horizontal, "px")),
                        (t.globals.dom.elLegendWrap.style.width = t.config
                          .legend.width
                          ? t.config.legend.width + "px"
                          : ""),
                        (t.globals.dom.elLegendWrap.style.height = t.config
                          .legend.height
                          ? t.config.legend.height + "px"
                          : ""),
                        w.setAttrs(k, {
                          rel: l + 1,
                          seriesName: b.escapeString(n[l]),
                          "data:collapsed": u || d,
                        }),
                        (u || d) &&
                          k.classList.add("apexcharts-inactive-legend"),
                        t.config.legend.onItemClick.toggleDataSeries ||
                          k.classList.add("apexcharts-no-click");
                    }
                    t.globals.dom.elWrap.addEventListener(
                      "click",
                      e.onLegendClick,
                      !0
                    ),
                      t.config.legend.onItemHover.highlightDataSeries &&
                        0 === t.config.legend.customLegendItems.length &&
                        (t.globals.dom.elWrap.addEventListener(
                          "mousemove",
                          e.onLegendHovered,
                          !0
                        ),
                        t.globals.dom.elWrap.addEventListener(
                          "mouseout",
                          e.onLegendHovered,
                          !0
                        ));
                  },
                },
                {
                  key: "setLegendWrapXY",
                  value: function (e, t) {
                    var i = this.w,
                      n =
                        i.globals.dom.baseEl.querySelector(
                          ".apexcharts-legend"
                        ),
                      r = n.getBoundingClientRect(),
                      a = 0,
                      o = 0;
                    if ("bottom" === i.config.legend.position)
                      o += i.globals.svgHeight - r.height / 2;
                    else if ("top" === i.config.legend.position) {
                      var s = new le(this.ctx),
                        l = s.dimHelpers.getTitleSubtitleCoords("title").height,
                        c =
                          s.dimHelpers.getTitleSubtitleCoords(
                            "subtitle"
                          ).height;
                      o = o + (l > 0 ? l - 10 : 0) + (c > 0 ? c - 10 : 0);
                    }
                    (n.style.position = "absolute"),
                      (a = a + e + i.config.legend.offsetX),
                      (o = o + t + i.config.legend.offsetY),
                      (n.style.left = a + "px"),
                      (n.style.top = o + "px"),
                      "bottom" === i.config.legend.position
                        ? ((n.style.top = "auto"),
                          (n.style.bottom = 5 - i.config.legend.offsetY + "px"))
                        : "right" === i.config.legend.position &&
                          ((n.style.left = "auto"),
                          (n.style.right =
                            25 + i.config.legend.offsetX + "px")),
                      ["width", "height"].forEach(function (e) {
                        n.style[e] &&
                          (n.style[e] =
                            parseInt(i.config.legend[e], 10) + "px");
                      });
                  },
                },
                {
                  key: "legendAlignHorizontal",
                  value: function () {
                    var e = this.w;
                    e.globals.dom.baseEl.querySelector(
                      ".apexcharts-legend"
                    ).style.right = 0;
                    var t = this.legendHelpers.getLegendBBox(),
                      i = new le(this.ctx),
                      n = i.dimHelpers.getTitleSubtitleCoords("title"),
                      r = i.dimHelpers.getTitleSubtitleCoords("subtitle"),
                      a = 0;
                    "bottom" === e.config.legend.position
                      ? (a = -t.clwh / 1.8)
                      : "top" === e.config.legend.position &&
                        (a =
                          n.height +
                          r.height +
                          e.config.title.margin +
                          e.config.subtitle.margin -
                          10),
                      this.setLegendWrapXY(20, a);
                  },
                },
                {
                  key: "legendAlignVertical",
                  value: function () {
                    var e = this.w,
                      t = this.legendHelpers.getLegendBBox(),
                      i = 0;
                    "left" === e.config.legend.position && (i = 20),
                      "right" === e.config.legend.position &&
                        (i = e.globals.svgWidth - t.clww - 10),
                      this.setLegendWrapXY(i, 20);
                  },
                },
                {
                  key: "onLegendHovered",
                  value: function (e) {
                    var t = this.w,
                      i =
                        e.target.classList.contains("apexcharts-legend-text") ||
                        e.target.classList.contains("apexcharts-legend-marker");
                    if (
                      "heatmap" === t.config.chart.type ||
                      this.isBarsDistributed
                    ) {
                      if (i) {
                        var n = parseInt(e.target.getAttribute("rel"), 10) - 1;
                        this.ctx.events.fireEvent("legendHover", [
                          this.ctx,
                          n,
                          this.w,
                        ]),
                          new Y(this.ctx).highlightRangeInSeries(e, e.target);
                      }
                    } else
                      !e.target.classList.contains(
                        "apexcharts-inactive-legend"
                      ) &&
                        i &&
                        new Y(this.ctx).toggleSeriesOnHover(e, e.target);
                  },
                },
                {
                  key: "onLegendClick",
                  value: function (e) {
                    var t = this.w;
                    if (
                      !t.config.legend.customLegendItems.length &&
                      (e.target.classList.contains("apexcharts-legend-text") ||
                        e.target.classList.contains("apexcharts-legend-marker"))
                    ) {
                      var i = parseInt(e.target.getAttribute("rel"), 10) - 1,
                        n = "true" === e.target.getAttribute("data:collapsed"),
                        r = this.w.config.chart.events.legendClick;
                      "function" == typeof r && r(this.ctx, i, this.w),
                        this.ctx.events.fireEvent("legendClick", [
                          this.ctx,
                          i,
                          this.w,
                        ]);
                      var a = this.w.config.legend.markers.onClick;
                      "function" == typeof a &&
                        e.target.classList.contains(
                          "apexcharts-legend-marker"
                        ) &&
                        (a(this.ctx, i, this.w),
                        this.ctx.events.fireEvent("legendMarkerClick", [
                          this.ctx,
                          i,
                          this.w,
                        ])),
                        "treemap" !== t.config.chart.type &&
                          "heatmap" !== t.config.chart.type &&
                          !this.isBarsDistributed &&
                          t.config.legend.onItemClick.toggleDataSeries &&
                          this.legendHelpers.toggleDataSeries(i, n);
                    }
                  },
                },
              ]),
              e
            );
          })(),
          de = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
              var i = this.w;
              (this.ev = this.w.config.chart.events),
                (this.selectedClass = "apexcharts-selected"),
                (this.localeValues = this.w.globals.locale.toolbar),
                (this.minX = i.globals.minX),
                (this.maxX = i.globals.maxX);
            }
            return (
              c(e, [
                {
                  key: "createToolbar",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = function () {
                        return document.createElement("div");
                      },
                      n = i();
                    if (
                      (n.setAttribute("class", "apexcharts-toolbar"),
                      (n.style.top = t.config.chart.toolbar.offsetY + "px"),
                      (n.style.right =
                        3 - t.config.chart.toolbar.offsetX + "px"),
                      t.globals.dom.elWrap.appendChild(n),
                      (this.elZoom = i()),
                      (this.elZoomIn = i()),
                      (this.elZoomOut = i()),
                      (this.elPan = i()),
                      (this.elSelection = i()),
                      (this.elZoomReset = i()),
                      (this.elMenuIcon = i()),
                      (this.elMenu = i()),
                      (this.elCustomIcons = []),
                      (this.t = t.config.chart.toolbar.tools),
                      Array.isArray(this.t.customIcons))
                    )
                      for (var r = 0; r < this.t.customIcons.length; r++)
                        this.elCustomIcons.push(i());
                    var a = [],
                      o = function (i, n, r) {
                        var o = i.toLowerCase();
                        e.t[o] &&
                          t.config.chart.zoom.enabled &&
                          a.push({
                            el: n,
                            icon: "string" == typeof e.t[o] ? e.t[o] : r,
                            title: e.localeValues[i],
                            class: "apexcharts-".concat(o, "-icon"),
                          });
                      };
                    o(
                      "zoomIn",
                      this.elZoomIn,
                      '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'
                    ),
                      o(
                        "zoomOut",
                        this.elZoomOut,
                        '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'
                      );
                    var s = function (i) {
                      e.t[i] &&
                        t.config.chart[i].enabled &&
                        a.push({
                          el: "zoom" === i ? e.elZoom : e.elSelection,
                          icon:
                            "string" == typeof e.t[i]
                              ? e.t[i]
                              : "zoom" === i
                              ? '<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n    <path d="M0 0h24v24H0V0z" fill="none"/>\n    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>'
                              : '<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',
                          title:
                            e.localeValues[
                              "zoom" === i ? "selectionZoom" : "selection"
                            ],
                          class: t.globals.isTouchDevice
                            ? "apexcharts-element-hidden"
                            : "apexcharts-".concat(i, "-icon"),
                        });
                    };
                    s("zoom"),
                      s("selection"),
                      this.t.pan &&
                        t.config.chart.zoom.enabled &&
                        a.push({
                          el: this.elPan,
                          icon:
                            "string" == typeof this.t.pan
                              ? this.t.pan
                              : '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <defs>\n        <path d="M0 0h24v24H0z" id="a"/>\n    </defs>\n    <clipPath id="b">\n        <use overflow="visible" xlink:href="#a"/>\n    </clipPath>\n    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',
                          title: this.localeValues.pan,
                          class: t.globals.isTouchDevice
                            ? "apexcharts-element-hidden"
                            : "apexcharts-pan-icon",
                        }),
                      o(
                        "reset",
                        this.elZoomReset,
                        '<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n    <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'
                      ),
                      this.t.download &&
                        a.push({
                          el: this.elMenuIcon,
                          icon:
                            "string" == typeof this.t.download
                              ? this.t.download
                              : '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',
                          title: this.localeValues.menu,
                          class: "apexcharts-menu-icon",
                        });
                    for (var l = 0; l < this.elCustomIcons.length; l++)
                      a.push({
                        el: this.elCustomIcons[l],
                        icon: this.t.customIcons[l].icon,
                        title: this.t.customIcons[l].title,
                        index: this.t.customIcons[l].index,
                        class:
                          "apexcharts-toolbar-custom-icon " +
                          this.t.customIcons[l].class,
                      });
                    a.forEach(function (e, t) {
                      e.index && b.moveIndexInArray(a, t, e.index);
                    });
                    for (var c = 0; c < a.length; c++)
                      w.setAttrs(a[c].el, {
                        class: a[c].class,
                        title: a[c].title,
                      }),
                        (a[c].el.innerHTML = a[c].icon),
                        n.appendChild(a[c].el);
                    this._createHamburgerMenu(n),
                      t.globals.zoomEnabled
                        ? this.elZoom.classList.add(this.selectedClass)
                        : t.globals.panEnabled
                        ? this.elPan.classList.add(this.selectedClass)
                        : t.globals.selectionEnabled &&
                          this.elSelection.classList.add(this.selectedClass),
                      this.addToolbarEventListeners();
                  },
                },
                {
                  key: "_createHamburgerMenu",
                  value: function (e) {
                    (this.elMenuItems = []),
                      e.appendChild(this.elMenu),
                      w.setAttrs(this.elMenu, { class: "apexcharts-menu" });
                    var t = [
                      {
                        name: "exportSVG",
                        title: this.localeValues.exportToSVG,
                      },
                      {
                        name: "exportPNG",
                        title: this.localeValues.exportToPNG,
                      },
                      {
                        name: "exportCSV",
                        title: this.localeValues.exportToCSV,
                      },
                    ];
                    this.w.globals.allSeriesHasEqualX || t.splice(2, 1);
                    for (var i = 0; i < t.length; i++)
                      this.elMenuItems.push(document.createElement("div")),
                        (this.elMenuItems[i].innerHTML = t[i].title),
                        w.setAttrs(this.elMenuItems[i], {
                          class: "apexcharts-menu-item ".concat(t[i].name),
                          title: t[i].title,
                        }),
                        this.elMenu.appendChild(this.elMenuItems[i]);
                  },
                },
                {
                  key: "addToolbarEventListeners",
                  value: function () {
                    var e = this;
                    this.elZoomReset.addEventListener(
                      "click",
                      this.handleZoomReset.bind(this)
                    ),
                      this.elSelection.addEventListener(
                        "click",
                        this.toggleZoomSelection.bind(this, "selection")
                      ),
                      this.elZoom.addEventListener(
                        "click",
                        this.toggleZoomSelection.bind(this, "zoom")
                      ),
                      this.elZoomIn.addEventListener(
                        "click",
                        this.handleZoomIn.bind(this)
                      ),
                      this.elZoomOut.addEventListener(
                        "click",
                        this.handleZoomOut.bind(this)
                      ),
                      this.elPan.addEventListener(
                        "click",
                        this.togglePanning.bind(this)
                      ),
                      this.elMenuIcon.addEventListener(
                        "click",
                        this.toggleMenu.bind(this)
                      ),
                      this.elMenuItems.forEach(function (t) {
                        t.classList.contains("exportSVG")
                          ? t.addEventListener(
                              "click",
                              e.handleDownload.bind(e, "svg")
                            )
                          : t.classList.contains("exportPNG")
                          ? t.addEventListener(
                              "click",
                              e.handleDownload.bind(e, "png")
                            )
                          : t.classList.contains("exportCSV") &&
                            t.addEventListener(
                              "click",
                              e.handleDownload.bind(e, "csv")
                            );
                      });
                    for (var t = 0; t < this.t.customIcons.length; t++)
                      this.elCustomIcons[t].addEventListener(
                        "click",
                        this.t.customIcons[t].click.bind(
                          this,
                          this.ctx,
                          this.ctx.w
                        )
                      );
                  },
                },
                {
                  key: "toggleZoomSelection",
                  value: function (e) {
                    this.ctx.getSyncedCharts().forEach(function (t) {
                      t.ctx.toolbar.toggleOtherControls();
                      var i =
                          "selection" === e
                            ? t.ctx.toolbar.elSelection
                            : t.ctx.toolbar.elZoom,
                        n =
                          "selection" === e
                            ? "selectionEnabled"
                            : "zoomEnabled";
                      (t.w.globals[n] = !t.w.globals[n]),
                        i.classList.contains(t.ctx.toolbar.selectedClass)
                          ? i.classList.remove(t.ctx.toolbar.selectedClass)
                          : i.classList.add(t.ctx.toolbar.selectedClass);
                    });
                  },
                },
                {
                  key: "getToolbarIconsReference",
                  value: function () {
                    var e = this.w;
                    this.elZoom ||
                      (this.elZoom = e.globals.dom.baseEl.querySelector(
                        ".apexcharts-zoom-icon"
                      )),
                      this.elPan ||
                        (this.elPan = e.globals.dom.baseEl.querySelector(
                          ".apexcharts-pan-icon"
                        )),
                      this.elSelection ||
                        (this.elSelection = e.globals.dom.baseEl.querySelector(
                          ".apexcharts-selection-icon"
                        ));
                  },
                },
                {
                  key: "enableZoomPanFromToolbar",
                  value: function (e) {
                    this.toggleOtherControls(),
                      "pan" === e
                        ? (this.w.globals.panEnabled = !0)
                        : (this.w.globals.zoomEnabled = !0);
                    var t = "pan" === e ? this.elPan : this.elZoom,
                      i = "pan" === e ? this.elZoom : this.elPan;
                    t && t.classList.add(this.selectedClass),
                      i && i.classList.remove(this.selectedClass);
                  },
                },
                {
                  key: "togglePanning",
                  value: function () {
                    this.ctx.getSyncedCharts().forEach(function (e) {
                      e.ctx.toolbar.toggleOtherControls(),
                        (e.w.globals.panEnabled = !e.w.globals.panEnabled),
                        e.ctx.toolbar.elPan.classList.contains(
                          e.ctx.toolbar.selectedClass
                        )
                          ? e.ctx.toolbar.elPan.classList.remove(
                              e.ctx.toolbar.selectedClass
                            )
                          : e.ctx.toolbar.elPan.classList.add(
                              e.ctx.toolbar.selectedClass
                            );
                    });
                  },
                },
                {
                  key: "toggleOtherControls",
                  value: function () {
                    var e = this,
                      t = this.w;
                    (t.globals.panEnabled = !1),
                      (t.globals.zoomEnabled = !1),
                      (t.globals.selectionEnabled = !1),
                      this.getToolbarIconsReference(),
                      [this.elPan, this.elSelection, this.elZoom].forEach(
                        function (t) {
                          t && t.classList.remove(e.selectedClass);
                        }
                      );
                  },
                },
                {
                  key: "handleZoomIn",
                  value: function () {
                    var e = this.w;
                    e.globals.isRangeBar &&
                      ((this.minX = e.globals.minY),
                      (this.maxX = e.globals.maxY));
                    var t = (this.minX + this.maxX) / 2,
                      i = (this.minX + t) / 2,
                      n = (this.maxX + t) / 2,
                      r = this._getNewMinXMaxX(i, n);
                    e.globals.disableZoomIn ||
                      this.zoomUpdateOptions(r.minX, r.maxX);
                  },
                },
                {
                  key: "handleZoomOut",
                  value: function () {
                    var e = this.w;
                    if (
                      (e.globals.isRangeBar &&
                        ((this.minX = e.globals.minY),
                        (this.maxX = e.globals.maxY)),
                      !(
                        "datetime" === e.config.xaxis.type &&
                        new Date(this.minX).getUTCFullYear() < 1e3
                      ))
                    ) {
                      var t = (this.minX + this.maxX) / 2,
                        i = this.minX - (t - this.minX),
                        n = this.maxX - (t - this.maxX),
                        r = this._getNewMinXMaxX(i, n);
                      e.globals.disableZoomOut ||
                        this.zoomUpdateOptions(r.minX, r.maxX);
                    }
                  },
                },
                {
                  key: "_getNewMinXMaxX",
                  value: function (e, t) {
                    var i = this.w.config.xaxis.convertedCatToNumeric;
                    return {
                      minX: i ? Math.floor(e) : e,
                      maxX: i ? Math.floor(t) : t,
                    };
                  },
                },
                {
                  key: "zoomUpdateOptions",
                  value: function (e, t) {
                    var i = this.w;
                    if (void 0 !== e || void 0 !== t) {
                      if (
                        !(
                          i.config.xaxis.convertedCatToNumeric &&
                          (e < 1 && ((e = 1), (t = i.globals.dataPoints)),
                          t - e < 2)
                        )
                      ) {
                        var n = { min: e, max: t },
                          r = this.getBeforeZoomRange(n);
                        r && (n = r.xaxis);
                        var a = { xaxis: n },
                          o = b.clone(i.globals.initialConfig.yaxis);
                        i.config.chart.zoom.autoScaleYaxis &&
                          (o = new U(this.ctx).autoScaleY(this.ctx, o, {
                            xaxis: n,
                          })),
                          i.config.chart.group || (a.yaxis = o),
                          (this.w.globals.zoomed = !0),
                          this.ctx.updateHelpers._updateOptions(
                            a,
                            !1,
                            this.w.config.chart.animations.dynamicAnimation
                              .enabled
                          ),
                          this.zoomCallback(n, o);
                      }
                    } else this.handleZoomReset();
                  },
                },
                {
                  key: "zoomCallback",
                  value: function (e, t) {
                    "function" == typeof this.ev.zoomed &&
                      this.ev.zoomed(this.ctx, { xaxis: e, yaxis: t });
                  },
                },
                {
                  key: "getBeforeZoomRange",
                  value: function (e, t) {
                    var i = null;
                    return (
                      "function" == typeof this.ev.beforeZoom &&
                        (i = this.ev.beforeZoom(this, { xaxis: e, yaxis: t })),
                      i
                    );
                  },
                },
                {
                  key: "toggleMenu",
                  value: function () {
                    var e = this;
                    window.setTimeout(function () {
                      e.elMenu.classList.contains("apexcharts-menu-open")
                        ? e.elMenu.classList.remove("apexcharts-menu-open")
                        : e.elMenu.classList.add("apexcharts-menu-open");
                    }, 0);
                  },
                },
                {
                  key: "handleDownload",
                  value: function (e) {
                    var t = this.w,
                      i = new G(this.ctx);
                    switch (e) {
                      case "svg":
                        i.exportToSVG(this.ctx);
                        break;
                      case "png":
                        i.exportToPng(this.ctx);
                        break;
                      case "csv":
                        i.exportToCSV({
                          series: t.config.series,
                          columnDelimiter:
                            t.config.chart.toolbar.export.csv.columnDelimiter,
                        });
                    }
                  },
                },
                {
                  key: "handleZoomReset",
                  value: function (e) {
                    this.ctx.getSyncedCharts().forEach(function (e) {
                      var t = e.w;
                      if (
                        ((t.globals.lastXAxis.min = void 0),
                        (t.globals.lastXAxis.max = void 0),
                        e.updateHelpers.revertDefaultAxisMinMax(),
                        "function" ==
                          typeof t.config.chart.events.beforeResetZoom)
                      ) {
                        var i = t.config.chart.events.beforeResetZoom(e, t);
                        i && e.updateHelpers.revertDefaultAxisMinMax(i);
                      }
                      "function" == typeof t.config.chart.events.zoomed &&
                        e.ctx.toolbar.zoomCallback({
                          min: t.config.xaxis.min,
                          max: t.config.xaxis.max,
                        }),
                        (t.globals.zoomed = !1);
                      var n = e.ctx.series.emptyCollapsedSeries(
                        b.clone(t.globals.initialSeries)
                      );
                      e.updateHelpers._updateSeries(
                        n,
                        t.config.chart.animations.dynamicAnimation.enabled
                      );
                    });
                  },
                },
                {
                  key: "destroy",
                  value: function () {
                    (this.elZoom = null),
                      (this.elZoomIn = null),
                      (this.elZoomOut = null),
                      (this.elPan = null),
                      (this.elSelection = null),
                      (this.elZoomReset = null),
                      (this.elMenuIcon = null);
                  },
                },
              ]),
              e
            );
          })(),
          he = (function (e) {
            d(i, de);
            var t = p(i);
            function i(e) {
              var n;
              return (
                s(this, i),
                ((n = t.call(this, e)).ctx = e),
                (n.w = e.w),
                (n.dragged = !1),
                (n.graphics = new w(n.ctx)),
                (n.eventList = [
                  "mousedown",
                  "mouseleave",
                  "mousemove",
                  "touchstart",
                  "touchmove",
                  "mouseup",
                  "touchend",
                ]),
                (n.clientX = 0),
                (n.clientY = 0),
                (n.startX = 0),
                (n.endX = 0),
                (n.dragX = 0),
                (n.startY = 0),
                (n.endY = 0),
                (n.dragY = 0),
                (n.moveDirection = "none"),
                n
              );
            }
            return (
              c(i, [
                {
                  key: "init",
                  value: function (e) {
                    var t = this,
                      i = e.xyRatios,
                      n = this.w,
                      r = this;
                    (this.xyRatios = i),
                      (this.zoomRect = this.graphics.drawRect(0, 0, 0, 0)),
                      (this.selectionRect = this.graphics.drawRect(0, 0, 0, 0)),
                      (this.gridRect =
                        n.globals.dom.baseEl.querySelector(".apexcharts-grid")),
                      this.zoomRect.node.classList.add("apexcharts-zoom-rect"),
                      this.selectionRect.node.classList.add(
                        "apexcharts-selection-rect"
                      ),
                      n.globals.dom.elGraphical.add(this.zoomRect),
                      n.globals.dom.elGraphical.add(this.selectionRect),
                      "x" === n.config.chart.selection.type
                        ? (this.slDraggableRect = this.selectionRect
                            .draggable({
                              minX: 0,
                              minY: 0,
                              maxX: n.globals.gridWidth,
                              maxY: n.globals.gridHeight,
                            })
                            .on(
                              "dragmove",
                              this.selectionDragging.bind(this, "dragging")
                            ))
                        : "y" === n.config.chart.selection.type
                        ? (this.slDraggableRect = this.selectionRect
                            .draggable({ minX: 0, maxX: n.globals.gridWidth })
                            .on(
                              "dragmove",
                              this.selectionDragging.bind(this, "dragging")
                            ))
                        : (this.slDraggableRect = this.selectionRect
                            .draggable()
                            .on(
                              "dragmove",
                              this.selectionDragging.bind(this, "dragging")
                            )),
                      this.preselectedSelection(),
                      (this.hoverArea = n.globals.dom.baseEl.querySelector(
                        "".concat(n.globals.chartClass, " .apexcharts-svg")
                      )),
                      this.hoverArea.classList.add("apexcharts-zoomable"),
                      this.eventList.forEach(function (e) {
                        t.hoverArea.addEventListener(
                          e,
                          r.svgMouseEvents.bind(r, i),
                          { capture: !1, passive: !0 }
                        );
                      });
                  },
                },
                {
                  key: "destroy",
                  value: function () {
                    this.slDraggableRect &&
                      (this.slDraggableRect.draggable(!1),
                      this.slDraggableRect.off(),
                      this.selectionRect.off()),
                      (this.selectionRect = null),
                      (this.zoomRect = null),
                      (this.gridRect = null);
                  },
                },
                {
                  key: "svgMouseEvents",
                  value: function (e, t) {
                    var i = this.w,
                      n = this,
                      r = this.ctx.toolbar,
                      a = i.globals.zoomEnabled
                        ? i.config.chart.zoom.type
                        : i.config.chart.selection.type,
                      o = i.config.chart.toolbar.autoSelected;
                    if (
                      (t.shiftKey
                        ? ((this.shiftWasPressed = !0),
                          r.enableZoomPanFromToolbar(
                            "pan" === o ? "zoom" : "pan"
                          ))
                        : this.shiftWasPressed &&
                          (r.enableZoomPanFromToolbar(o),
                          (this.shiftWasPressed = !1)),
                      t.target)
                    ) {
                      var s,
                        l = t.target.classList;
                      if (
                        (t.target.parentNode &&
                          null !== t.target.parentNode &&
                          (s = t.target.parentNode.classList),
                        !(
                          l.contains("apexcharts-selection-rect") ||
                          l.contains("apexcharts-legend-marker") ||
                          l.contains("apexcharts-legend-text") ||
                          (s && s.contains("apexcharts-toolbar"))
                        ))
                      ) {
                        if (
                          ((n.clientX =
                            "touchmove" === t.type || "touchstart" === t.type
                              ? t.touches[0].clientX
                              : "touchend" === t.type
                              ? t.changedTouches[0].clientX
                              : t.clientX),
                          (n.clientY =
                            "touchmove" === t.type || "touchstart" === t.type
                              ? t.touches[0].clientY
                              : "touchend" === t.type
                              ? t.changedTouches[0].clientY
                              : t.clientY),
                          "mousedown" === t.type && 1 === t.which)
                        ) {
                          var c = n.gridRect.getBoundingClientRect();
                          (n.startX = n.clientX - c.left),
                            (n.startY = n.clientY - c.top),
                            (n.dragged = !1),
                            (n.w.globals.mousedown = !0);
                        }
                        if (
                          ((("mousemove" === t.type && 1 === t.which) ||
                            "touchmove" === t.type) &&
                            ((n.dragged = !0),
                            i.globals.panEnabled
                              ? ((i.globals.selection = null),
                                n.w.globals.mousedown &&
                                  n.panDragging({
                                    context: n,
                                    zoomtype: a,
                                    xyRatios: e,
                                  }))
                              : ((n.w.globals.mousedown &&
                                  i.globals.zoomEnabled) ||
                                  (n.w.globals.mousedown &&
                                    i.globals.selectionEnabled)) &&
                                (n.selection = n.selectionDrawing({
                                  context: n,
                                  zoomtype: a,
                                }))),
                          "mouseup" === t.type ||
                            "touchend" === t.type ||
                            "mouseleave" === t.type)
                        ) {
                          var u = n.gridRect.getBoundingClientRect();
                          n.w.globals.mousedown &&
                            ((n.endX = n.clientX - u.left),
                            (n.endY = n.clientY - u.top),
                            (n.dragX = Math.abs(n.endX - n.startX)),
                            (n.dragY = Math.abs(n.endY - n.startY)),
                            (i.globals.zoomEnabled ||
                              i.globals.selectionEnabled) &&
                              n.selectionDrawn({ context: n, zoomtype: a }),
                            i.globals.panEnabled &&
                              i.config.xaxis.convertedCatToNumeric &&
                              n.delayedPanScrolled()),
                            i.globals.zoomEnabled &&
                              n.hideSelectionRect(this.selectionRect),
                            (n.dragged = !1),
                            (n.w.globals.mousedown = !1);
                        }
                        this.makeSelectionRectDraggable();
                      }
                    }
                  },
                },
                {
                  key: "makeSelectionRectDraggable",
                  value: function () {
                    var e = this.w;
                    if (this.selectionRect) {
                      var t = this.selectionRect.node.getBoundingClientRect();
                      t.width > 0 &&
                        t.height > 0 &&
                        this.slDraggableRect
                          .selectize({
                            points: "l, r",
                            pointSize: 8,
                            pointType: "rect",
                          })
                          .resize({
                            constraint: {
                              minX: 0,
                              minY: 0,
                              maxX: e.globals.gridWidth,
                              maxY: e.globals.gridHeight,
                            },
                          })
                          .on(
                            "resizing",
                            this.selectionDragging.bind(this, "resizing")
                          );
                    }
                  },
                },
                {
                  key: "preselectedSelection",
                  value: function () {
                    var e = this.w,
                      t = this.xyRatios;
                    if (!e.globals.zoomEnabled)
                      if (
                        void 0 !== e.globals.selection &&
                        null !== e.globals.selection
                      )
                        this.drawSelectionRect(e.globals.selection);
                      else if (
                        void 0 !== e.config.chart.selection.xaxis.min &&
                        void 0 !== e.config.chart.selection.xaxis.max
                      ) {
                        var i =
                            (e.config.chart.selection.xaxis.min -
                              e.globals.minX) /
                            t.xRatio,
                          n = {
                            x: i,
                            y: 0,
                            width:
                              e.globals.gridWidth -
                              (e.globals.maxX -
                                e.config.chart.selection.xaxis.max) /
                                t.xRatio -
                              i,
                            height: e.globals.gridHeight,
                            translateX: 0,
                            translateY: 0,
                            selectionEnabled: !0,
                          };
                        this.drawSelectionRect(n),
                          this.makeSelectionRectDraggable(),
                          "function" ==
                            typeof e.config.chart.events.selection &&
                            e.config.chart.events.selection(this.ctx, {
                              xaxis: {
                                min: e.config.chart.selection.xaxis.min,
                                max: e.config.chart.selection.xaxis.max,
                              },
                              yaxis: {},
                            });
                      }
                  },
                },
                {
                  key: "drawSelectionRect",
                  value: function (e) {
                    var t = e.x,
                      i = e.y,
                      n = e.width,
                      r = e.height,
                      a = e.translateX,
                      o = void 0 === a ? 0 : a,
                      s = e.translateY,
                      l = void 0 === s ? 0 : s,
                      c = this.w,
                      u = this.zoomRect,
                      d = this.selectionRect;
                    if (this.dragged || null !== c.globals.selection) {
                      var h = { transform: "translate(" + o + ", " + l + ")" };
                      c.globals.zoomEnabled &&
                        this.dragged &&
                        (n < 0 && (n = 1),
                        u.attr({
                          x: t,
                          y: i,
                          width: n,
                          height: r,
                          fill: c.config.chart.zoom.zoomedArea.fill.color,
                          "fill-opacity":
                            c.config.chart.zoom.zoomedArea.fill.opacity,
                          stroke: c.config.chart.zoom.zoomedArea.stroke.color,
                          "stroke-width":
                            c.config.chart.zoom.zoomedArea.stroke.width,
                          "stroke-opacity":
                            c.config.chart.zoom.zoomedArea.stroke.opacity,
                        }),
                        w.setAttrs(u.node, h)),
                        c.globals.selectionEnabled &&
                          (d.attr({
                            x: t,
                            y: i,
                            width: n > 0 ? n : 0,
                            height: r > 0 ? r : 0,
                            fill: c.config.chart.selection.fill.color,
                            "fill-opacity":
                              c.config.chart.selection.fill.opacity,
                            stroke: c.config.chart.selection.stroke.color,
                            "stroke-width":
                              c.config.chart.selection.stroke.width,
                            "stroke-dasharray":
                              c.config.chart.selection.stroke.dashArray,
                            "stroke-opacity":
                              c.config.chart.selection.stroke.opacity,
                          }),
                          w.setAttrs(d.node, h));
                    }
                  },
                },
                {
                  key: "hideSelectionRect",
                  value: function (e) {
                    e && e.attr({ x: 0, y: 0, width: 0, height: 0 });
                  },
                },
                {
                  key: "selectionDrawing",
                  value: function (e) {
                    var t,
                      i = e.context,
                      n = e.zoomtype,
                      r = this.w,
                      a = i,
                      o = this.gridRect.getBoundingClientRect(),
                      s = a.startX - 1,
                      l = a.startY,
                      c = !1,
                      u = !1,
                      d = a.clientX - o.left - s,
                      h = a.clientY - o.top - l;
                    return (
                      Math.abs(d + s) > r.globals.gridWidth
                        ? (d = r.globals.gridWidth - s)
                        : a.clientX - o.left < 0 && (d = s),
                      s > a.clientX - o.left && ((c = !0), (d = Math.abs(d))),
                      l > a.clientY - o.top && ((u = !0), (h = Math.abs(h))),
                      (t =
                        "x" === n
                          ? {
                              x: c ? s - d : s,
                              y: 0,
                              width: d,
                              height: r.globals.gridHeight,
                            }
                          : "y" === n
                          ? {
                              x: 0,
                              y: u ? l - h : l,
                              width: r.globals.gridWidth,
                              height: h,
                            }
                          : {
                              x: c ? s - d : s,
                              y: u ? l - h : l,
                              width: d,
                              height: h,
                            }),
                      a.drawSelectionRect(t),
                      a.selectionDragging("resizing"),
                      t
                    );
                  },
                },
                {
                  key: "selectionDragging",
                  value: function (e, t) {
                    var i = this,
                      n = this.w,
                      r = this.xyRatios,
                      a = this.selectionRect,
                      o = 0;
                    "resizing" === e && (o = 30);
                    var s = function (e) {
                        return parseFloat(a.node.getAttribute(e));
                      },
                      l = {
                        x: s("x"),
                        y: s("y"),
                        width: s("width"),
                        height: s("height"),
                      };
                    (n.globals.selection = l),
                      "function" == typeof n.config.chart.events.selection &&
                        n.globals.selectionEnabled &&
                        (clearTimeout(this.w.globals.selectionResizeTimer),
                        (this.w.globals.selectionResizeTimer =
                          window.setTimeout(function () {
                            var e = i.gridRect.getBoundingClientRect(),
                              t = a.node.getBoundingClientRect(),
                              o = {
                                xaxis: {
                                  min:
                                    n.globals.xAxisScale.niceMin +
                                    (t.left - e.left) * r.xRatio,
                                  max:
                                    n.globals.xAxisScale.niceMin +
                                    (t.right - e.left) * r.xRatio,
                                },
                                yaxis: {
                                  min:
                                    n.globals.yAxisScale[0].niceMin +
                                    (e.bottom - t.bottom) * r.yRatio[0],
                                  max:
                                    n.globals.yAxisScale[0].niceMax -
                                    (t.top - e.top) * r.yRatio[0],
                                },
                              };
                            n.config.chart.events.selection(i.ctx, o),
                              n.config.chart.brush.enabled &&
                                void 0 !==
                                  n.config.chart.events.brushScrolled &&
                                n.config.chart.events.brushScrolled(i.ctx, o);
                          }, o)));
                  },
                },
                {
                  key: "selectionDrawn",
                  value: function (e) {
                    var t = e.context,
                      i = e.zoomtype,
                      n = this.w,
                      r = t,
                      a = this.xyRatios,
                      o = this.ctx.toolbar;
                    if (r.startX > r.endX) {
                      var s = r.startX;
                      (r.startX = r.endX), (r.endX = s);
                    }
                    if (r.startY > r.endY) {
                      var l = r.startY;
                      (r.startY = r.endY), (r.endY = l);
                    }
                    var c = void 0,
                      u = void 0;
                    n.globals.isRangeBar
                      ? ((c =
                          n.globals.yAxisScale[0].niceMin +
                          r.startX * a.invertedYRatio),
                        (u =
                          n.globals.yAxisScale[0].niceMin +
                          r.endX * a.invertedYRatio))
                      : ((c =
                          n.globals.xAxisScale.niceMin + r.startX * a.xRatio),
                        (u = n.globals.xAxisScale.niceMin + r.endX * a.xRatio));
                    var d = [],
                      h = [];
                    if (
                      (n.config.yaxis.forEach(function (e, t) {
                        d.push(
                          n.globals.yAxisScale[t].niceMax -
                            a.yRatio[t] * r.startY
                        ),
                          h.push(
                            n.globals.yAxisScale[t].niceMax -
                              a.yRatio[t] * r.endY
                          );
                      }),
                      r.dragged && (r.dragX > 10 || r.dragY > 10) && c !== u)
                    )
                      if (n.globals.zoomEnabled) {
                        var f = b.clone(n.globals.initialConfig.yaxis),
                          p = b.clone(n.globals.initialConfig.xaxis);
                        if (
                          ((n.globals.zoomed = !0),
                          n.config.xaxis.convertedCatToNumeric &&
                            ((c = Math.floor(c)),
                            (u = Math.floor(u)),
                            c < 1 && ((c = 1), (u = n.globals.dataPoints)),
                            u - c < 2 && (u = c + 1)),
                          ("xy" !== i && "x" !== i) || (p = { min: c, max: u }),
                          ("xy" !== i && "y" !== i) ||
                            f.forEach(function (e, t) {
                              (f[t].min = h[t]), (f[t].max = d[t]);
                            }),
                          n.config.chart.zoom.autoScaleYaxis)
                        ) {
                          var g = new U(r.ctx);
                          f = g.autoScaleY(r.ctx, f, { xaxis: p });
                        }
                        if (o) {
                          var m = o.getBeforeZoomRange(p, f);
                          m &&
                            ((p = m.xaxis ? m.xaxis : p),
                            (f = m.yaxis ? m.yaxis : f));
                        }
                        var v = { xaxis: p };
                        n.config.chart.group || (v.yaxis = f),
                          r.ctx.updateHelpers._updateOptions(
                            v,
                            !1,
                            r.w.config.chart.animations.dynamicAnimation.enabled
                          ),
                          "function" == typeof n.config.chart.events.zoomed &&
                            o.zoomCallback(p, f);
                      } else if (n.globals.selectionEnabled) {
                        var y,
                          x = null;
                        (y = { min: c, max: u }),
                          ("xy" !== i && "y" !== i) ||
                            (x = b.clone(n.config.yaxis)).forEach(function (
                              e,
                              t
                            ) {
                              (x[t].min = h[t]), (x[t].max = d[t]);
                            }),
                          (n.globals.selection = r.selection),
                          "function" ==
                            typeof n.config.chart.events.selection &&
                            n.config.chart.events.selection(r.ctx, {
                              xaxis: y,
                              yaxis: x,
                            });
                      }
                  },
                },
                {
                  key: "panDragging",
                  value: function (e) {
                    var t = e.context,
                      i = this.w,
                      n = t;
                    if (void 0 !== i.globals.lastClientPosition.x) {
                      var r = i.globals.lastClientPosition.x - n.clientX,
                        a = i.globals.lastClientPosition.y - n.clientY;
                      Math.abs(r) > Math.abs(a) && r > 0
                        ? (this.moveDirection = "left")
                        : Math.abs(r) > Math.abs(a) && r < 0
                        ? (this.moveDirection = "right")
                        : Math.abs(a) > Math.abs(r) && a > 0
                        ? (this.moveDirection = "up")
                        : Math.abs(a) > Math.abs(r) &&
                          a < 0 &&
                          (this.moveDirection = "down");
                    }
                    i.globals.lastClientPosition = {
                      x: n.clientX,
                      y: n.clientY,
                    };
                    var o = i.globals.isRangeBar
                        ? i.globals.minY
                        : i.globals.minX,
                      s = i.globals.isRangeBar
                        ? i.globals.maxY
                        : i.globals.maxX;
                    i.config.xaxis.convertedCatToNumeric || n.panScrolled(o, s);
                  },
                },
                {
                  key: "delayedPanScrolled",
                  value: function () {
                    var e = this.w,
                      t = e.globals.minX,
                      i = e.globals.maxX,
                      n = (e.globals.maxX - e.globals.minX) / 2;
                    "left" === this.moveDirection
                      ? ((t = e.globals.minX + n), (i = e.globals.maxX + n))
                      : "right" === this.moveDirection &&
                        ((t = e.globals.minX - n), (i = e.globals.maxX - n)),
                      (t = Math.floor(t)),
                      (i = Math.floor(i)),
                      this.updateScrolledChart(
                        { xaxis: { min: t, max: i } },
                        t,
                        i
                      );
                  },
                },
                {
                  key: "panScrolled",
                  value: function (e, t) {
                    var i = this.w,
                      n = this.xyRatios,
                      r = b.clone(i.globals.initialConfig.yaxis),
                      a = n.xRatio,
                      o = i.globals.minX,
                      s = i.globals.maxX;
                    i.globals.isRangeBar &&
                      ((a = n.invertedYRatio),
                      (o = i.globals.minY),
                      (s = i.globals.maxY)),
                      "left" === this.moveDirection
                        ? ((e = o + (i.globals.gridWidth / 15) * a),
                          (t = s + (i.globals.gridWidth / 15) * a))
                        : "right" === this.moveDirection &&
                          ((e = o - (i.globals.gridWidth / 15) * a),
                          (t = s - (i.globals.gridWidth / 15) * a)),
                      i.globals.isRangeBar ||
                        ((e < i.globals.initialMinX ||
                          t > i.globals.initialMaxX) &&
                          ((e = o), (t = s)));
                    var l = { min: e, max: t };
                    i.config.chart.zoom.autoScaleYaxis &&
                      (r = new U(this.ctx).autoScaleY(this.ctx, r, {
                        xaxis: l,
                      }));
                    var c = { xaxis: { min: e, max: t } };
                    i.config.chart.group || (c.yaxis = r),
                      this.updateScrolledChart(c, e, t);
                  },
                },
                {
                  key: "updateScrolledChart",
                  value: function (e, t, i) {
                    var n = this.w;
                    this.ctx.updateHelpers._updateOptions(e, !1, !1),
                      "function" == typeof n.config.chart.events.scrolled &&
                        n.config.chart.events.scrolled(this.ctx, {
                          xaxis: { min: t, max: i },
                        });
                  },
                },
              ]),
              i
            );
          })(),
          fe = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.ttCtx = t), (this.ctx = t.ctx);
            }
            return (
              c(e, [
                {
                  key: "getNearestValues",
                  value: function (e) {
                    var t = e.hoverArea,
                      i = e.elGrid,
                      n = e.clientX,
                      r = e.clientY,
                      a = this.w,
                      o = i.getBoundingClientRect(),
                      s = o.width,
                      l = o.height,
                      c = s / (a.globals.dataPoints - 1),
                      u = l / a.globals.dataPoints,
                      d = this.hasBars();
                    (!a.globals.comboCharts && !d) ||
                      a.config.xaxis.convertedCatToNumeric ||
                      (c = s / a.globals.dataPoints);
                    var h = n - o.left - a.globals.barPadForNumericAxis,
                      f = r - o.top;
                    h < 0 || f < 0 || h > s || f > l
                      ? (t.classList.remove("hovering-zoom"),
                        t.classList.remove("hovering-pan"))
                      : a.globals.zoomEnabled
                      ? (t.classList.remove("hovering-pan"),
                        t.classList.add("hovering-zoom"))
                      : a.globals.panEnabled &&
                        (t.classList.remove("hovering-zoom"),
                        t.classList.add("hovering-pan"));
                    var p = Math.round(h / c),
                      g = Math.floor(f / u);
                    d &&
                      !a.config.xaxis.convertedCatToNumeric &&
                      ((p = Math.ceil(h / c)), (p -= 1));
                    var m = null,
                      v = null,
                      y = [],
                      x = [];
                    if (
                      (a.globals.seriesXvalues.forEach(function (e) {
                        y.push([e[0] + 1e-6].concat(e));
                      }),
                      a.globals.seriesYvalues.forEach(function (e) {
                        x.push([e[0] + 1e-6].concat(e));
                      }),
                      (y = y.map(function (e) {
                        return e.filter(function (e) {
                          return b.isNumber(e);
                        });
                      })),
                      (x = x.map(function (e) {
                        return e.filter(function (e) {
                          return b.isNumber(e);
                        });
                      })),
                      a.globals.isXNumeric)
                    ) {
                      var w = this.ttCtx.getElGrid().getBoundingClientRect(),
                        E = h * (w.width / s),
                        _ = f * (w.height / l);
                      (m = (v = this.closestInMultiArray(E, _, y, x)).index),
                        (p = v.j),
                        null !== m &&
                          ((y = a.globals.seriesXvalues[m]),
                          (p = (v = this.closestInArray(E, y)).index));
                    }
                    return (
                      (a.globals.capturedSeriesIndex = null === m ? -1 : m),
                      (!p || p < 1) && (p = 0),
                      a.globals.isBarHorizontal
                        ? (a.globals.capturedDataPointIndex = g)
                        : (a.globals.capturedDataPointIndex = p),
                      {
                        capturedSeries: m,
                        j: a.globals.isBarHorizontal ? g : p,
                        hoverX: h,
                        hoverY: f,
                      }
                    );
                  },
                },
                {
                  key: "closestInMultiArray",
                  value: function (e, t, i, n) {
                    var r = this.w,
                      a = 0,
                      o = null,
                      s = -1;
                    r.globals.series.length > 1
                      ? (a = this.getFirstActiveXArray(i))
                      : (o = 0);
                    var l = i[a][0],
                      c = Math.abs(e - l);
                    if (
                      (i.forEach(function (t) {
                        t.forEach(function (t, i) {
                          var n = Math.abs(e - t);
                          n < c && ((c = n), (s = i));
                        });
                      }),
                      -1 !== s)
                    ) {
                      var u = n[a][s],
                        d = Math.abs(t - u);
                      (o = a),
                        n.forEach(function (e, i) {
                          var n = Math.abs(t - e[s]);
                          n < d && ((d = n), (o = i));
                        });
                    }
                    return { index: o, j: s };
                  },
                },
                {
                  key: "getFirstActiveXArray",
                  value: function (e) {
                    for (
                      var t = this.w,
                        i = 0,
                        n = e.map(function (e, t) {
                          return e.length > 0 ? t : -1;
                        }),
                        r = 0;
                      r < n.length;
                      r++
                    )
                      if (
                        -1 !== n[r] &&
                        -1 === t.globals.collapsedSeriesIndices.indexOf(r) &&
                        -1 ===
                          t.globals.ancillaryCollapsedSeriesIndices.indexOf(r)
                      ) {
                        i = n[r];
                        break;
                      }
                    return i;
                  },
                },
                {
                  key: "closestInArray",
                  value: function (e, t) {
                    for (
                      var i = t[0], n = null, r = Math.abs(e - i), a = 0;
                      a < t.length;
                      a++
                    ) {
                      var o = Math.abs(e - t[a]);
                      o < r && ((r = o), (n = a));
                    }
                    return { index: n };
                  },
                },
                {
                  key: "isXoverlap",
                  value: function (e) {
                    var t = [],
                      i = this.w.globals.seriesX.filter(function (e) {
                        return void 0 !== e[0];
                      });
                    if (i.length > 0)
                      for (var n = 0; n < i.length - 1; n++)
                        void 0 !== i[n][e] &&
                          void 0 !== i[n + 1][e] &&
                          i[n][e] !== i[n + 1][e] &&
                          t.push("unEqual");
                    return 0 === t.length;
                  },
                },
                {
                  key: "isInitialSeriesSameLen",
                  value: function () {
                    for (
                      var e = !0, t = this.w.globals.initialSeries, i = 0;
                      i < t.length - 1;
                      i++
                    )
                      if (t[i].data.length !== t[i + 1].data.length) {
                        e = !1;
                        break;
                      }
                    return e;
                  },
                },
                {
                  key: "getBarsHeight",
                  value: function (e) {
                    return g(e).reduce(function (e, t) {
                      return e + t.getBBox().height;
                    }, 0);
                  },
                },
                {
                  key: "getElMarkers",
                  value: function () {
                    return this.w.globals.dom.baseEl.querySelectorAll(
                      " .apexcharts-series-markers"
                    );
                  },
                },
                {
                  key: "getAllMarkers",
                  value: function () {
                    var e = this.w.globals.dom.baseEl.querySelectorAll(
                      ".apexcharts-series-markers-wrap"
                    );
                    (e = g(e)).sort(function (e, t) {
                      var i = Number(e.getAttribute("data:realIndex")),
                        n = Number(t.getAttribute("data:realIndex"));
                      return n < i ? 1 : n > i ? -1 : 0;
                    });
                    var t = [];
                    return (
                      e.forEach(function (e) {
                        t.push(e.querySelector(".apexcharts-marker"));
                      }),
                      t
                    );
                  },
                },
                {
                  key: "hasMarkers",
                  value: function () {
                    return this.getElMarkers().length > 0;
                  },
                },
                {
                  key: "getElBars",
                  value: function () {
                    return this.w.globals.dom.baseEl.querySelectorAll(
                      ".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series"
                    );
                  },
                },
                {
                  key: "hasBars",
                  value: function () {
                    return this.getElBars().length > 0;
                  },
                },
                {
                  key: "getHoverMarkerSize",
                  value: function (e) {
                    var t = this.w,
                      i = t.config.markers.hover.size;
                    return (
                      void 0 === i &&
                        (i =
                          t.globals.markers.size[e] +
                          t.config.markers.hover.sizeOffset),
                      i
                    );
                  },
                },
                {
                  key: "toggleAllTooltipSeriesGroups",
                  value: function (e) {
                    var t = this.w,
                      i = this.ttCtx;
                    0 === i.allTooltipSeriesGroups.length &&
                      (i.allTooltipSeriesGroups =
                        t.globals.dom.baseEl.querySelectorAll(
                          ".apexcharts-tooltip-series-group"
                        ));
                    for (
                      var n = i.allTooltipSeriesGroups, r = 0;
                      r < n.length;
                      r++
                    )
                      "enable" === e
                        ? (n[r].classList.add("apexcharts-active"),
                          (n[r].style.display = t.config.tooltip.items.display))
                        : (n[r].classList.remove("apexcharts-active"),
                          (n[r].style.display = "none"));
                  },
                },
              ]),
              e
            );
          })(),
          pe = (function () {
            function e(t) {
              s(this, e),
                (this.w = t.w),
                (this.ctx = t.ctx),
                (this.ttCtx = t),
                (this.tooltipUtil = new fe(t));
            }
            return (
              c(e, [
                {
                  key: "drawSeriesTexts",
                  value: function (e) {
                    var t = e.shared,
                      i = void 0 === t || t,
                      n = e.ttItems,
                      r = e.i,
                      a = void 0 === r ? 0 : r,
                      o = e.j,
                      s = void 0 === o ? null : o,
                      l = e.y1,
                      c = e.y2,
                      u = e.e,
                      d = this.w;
                    void 0 !== d.config.tooltip.custom
                      ? this.handleCustomTooltip({
                          i: a,
                          j: s,
                          y1: l,
                          y2: c,
                          w: d,
                        })
                      : this.toggleActiveInactiveSeries(i);
                    var h = this.getValuesToPrint({ i: a, j: s });
                    this.printLabels({
                      i: a,
                      j: s,
                      values: h,
                      ttItems: n,
                      shared: i,
                      e: u,
                    });
                    var f = this.ttCtx.getElTooltip();
                    (this.ttCtx.tooltipRect.ttWidth =
                      f.getBoundingClientRect().width),
                      (this.ttCtx.tooltipRect.ttHeight =
                        f.getBoundingClientRect().height);
                  },
                },
                {
                  key: "printLabels",
                  value: function (e) {
                    var t,
                      i = this,
                      n = e.i,
                      r = e.j,
                      o = e.values,
                      s = e.ttItems,
                      l = e.shared,
                      c = e.e,
                      u = this.w,
                      d = [],
                      h = function (e) {
                        return (
                          u.globals.seriesGoals[e] &&
                          u.globals.seriesGoals[e][r] &&
                          Array.isArray(u.globals.seriesGoals[e][r])
                        );
                      },
                      f = o.xVal,
                      p = o.zVal,
                      g = o.xAxisTTVal,
                      m = "",
                      v = u.globals.colors[n];
                    null !== r &&
                      u.config.plotOptions.bar.distributed &&
                      (v = u.globals.colors[r]);
                    for (
                      var b = function (e, o) {
                          var b = i.getFormatters(n);
                          (m = i.getSeriesName({
                            fn: b.yLbTitleFormatter,
                            index: n,
                            seriesIndex: n,
                            j: r,
                          })),
                            "treemap" === u.config.chart.type &&
                              (m = b.yLbTitleFormatter(
                                String(u.config.series[n].data[r].x),
                                {
                                  series: u.globals.series,
                                  seriesIndex: n,
                                  dataPointIndex: r,
                                  w: u,
                                }
                              ));
                          var y = u.config.tooltip.inverseOrder ? o : e;
                          if (u.globals.axisCharts) {
                            var x = function (e) {
                              var t,
                                i,
                                n = "";
                              return (
                                u.globals.isRangeData &&
                                  (n +=
                                    b.yLbFormatter(
                                      null ===
                                        (t = u.globals.seriesRangeStart) ||
                                        void 0 === t ||
                                        null === (i = t[e]) ||
                                        void 0 === i
                                        ? void 0
                                        : i[r],
                                      {
                                        series: u.globals.seriesRangeStart,
                                        seriesIndex: e,
                                        dataPointIndex: r,
                                        w: u,
                                      }
                                    ) + " - "),
                                n +
                                  b.yLbFormatter(u.globals.series[e][r], {
                                    series: u.globals.series,
                                    seriesIndex: e,
                                    dataPointIndex: r,
                                    w: u,
                                  })
                              );
                            };
                            if (l)
                              (b = i.getFormatters(y)),
                                (m = i.getSeriesName({
                                  fn: b.yLbTitleFormatter,
                                  index: y,
                                  seriesIndex: n,
                                  j: r,
                                })),
                                (v = u.globals.colors[y]),
                                (t = x(y)),
                                h(y) &&
                                  (d = u.globals.seriesGoals[y][r].map(
                                    function (e) {
                                      return {
                                        attrs: e,
                                        val: b.yLbFormatter(e.value, {
                                          seriesIndex: y,
                                          dataPointIndex: r,
                                          w: u,
                                        }),
                                      };
                                    }
                                  ));
                            else {
                              var w,
                                E =
                                  null == c ||
                                  null === (w = c.target) ||
                                  void 0 === w
                                    ? void 0
                                    : w.getAttribute("fill");
                              E &&
                                (v =
                                  -1 !== E.indexOf("url")
                                    ? document
                                        .querySelector(E.substr(4).slice(0, -1))
                                        .childNodes[0].getAttribute("stroke")
                                    : E),
                                (t = x(n)),
                                h(n) &&
                                  Array.isArray(u.globals.seriesGoals[n][r]) &&
                                  (d = u.globals.seriesGoals[n][r].map(
                                    function (e) {
                                      return {
                                        attrs: e,
                                        val: b.yLbFormatter(e.value, {
                                          seriesIndex: n,
                                          dataPointIndex: r,
                                          w: u,
                                        }),
                                      };
                                    }
                                  ));
                            }
                          }
                          null === r &&
                            (t = b.yLbFormatter(
                              u.globals.series[n],
                              a(
                                a({}, u),
                                {},
                                { seriesIndex: n, dataPointIndex: n }
                              )
                            )),
                            i.DOMHandling({
                              i: n,
                              t: y,
                              j: r,
                              ttItems: s,
                              values: {
                                val: t,
                                goalVals: d,
                                xVal: f,
                                xAxisTTVal: g,
                                zVal: p,
                              },
                              seriesName: m,
                              shared: l,
                              pColor: v,
                            });
                        },
                        y = 0,
                        x = u.globals.series.length - 1;
                      y < u.globals.series.length;
                      y++, x--
                    )
                      b(y, x);
                  },
                },
                {
                  key: "getFormatters",
                  value: function (e) {
                    var t,
                      i = this.w,
                      n = i.globals.yLabelFormatters[e];
                    return (
                      void 0 !== i.globals.ttVal
                        ? Array.isArray(i.globals.ttVal)
                          ? ((n =
                              i.globals.ttVal[e] &&
                              i.globals.ttVal[e].formatter),
                            (t =
                              i.globals.ttVal[e] &&
                              i.globals.ttVal[e].title &&
                              i.globals.ttVal[e].title.formatter))
                          : ((n = i.globals.ttVal.formatter),
                            "function" ==
                              typeof i.globals.ttVal.title.formatter &&
                              (t = i.globals.ttVal.title.formatter))
                        : (t = i.config.tooltip.y.title.formatter),
                      "function" != typeof n &&
                        (n = i.globals.yLabelFormatters[0]
                          ? i.globals.yLabelFormatters[0]
                          : function (e) {
                              return e;
                            }),
                      "function" != typeof t &&
                        (t = function (e) {
                          return e;
                        }),
                      { yLbFormatter: n, yLbTitleFormatter: t }
                    );
                  },
                },
                {
                  key: "getSeriesName",
                  value: function (e) {
                    var t = e.fn,
                      i = e.index,
                      n = e.seriesIndex,
                      r = e.j,
                      a = this.w;
                    return t(String(a.globals.seriesNames[i]), {
                      series: a.globals.series,
                      seriesIndex: n,
                      dataPointIndex: r,
                      w: a,
                    });
                  },
                },
                {
                  key: "DOMHandling",
                  value: function (e) {
                    e.i;
                    var t = e.t,
                      i = e.j,
                      n = e.ttItems,
                      r = e.values,
                      a = e.seriesName,
                      o = e.shared,
                      s = e.pColor,
                      l = this.w,
                      c = this.ttCtx,
                      u = r.val,
                      d = r.goalVals,
                      h = r.xVal,
                      f = r.xAxisTTVal,
                      p = r.zVal,
                      g = null;
                    (g = n[t].children),
                      l.config.tooltip.fillSeriesColor &&
                        ((n[t].style.backgroundColor = s),
                        (g[0].style.display = "none")),
                      c.showTooltipTitle &&
                        (null === c.tooltipTitle &&
                          (c.tooltipTitle = l.globals.dom.baseEl.querySelector(
                            ".apexcharts-tooltip-title"
                          )),
                        (c.tooltipTitle.innerHTML = h)),
                      c.isXAxisTooltipEnabled &&
                        (c.xaxisTooltipText.innerHTML = "" !== f ? f : h);
                    var m = n[t].querySelector(
                      ".apexcharts-tooltip-text-y-label"
                    );
                    m && (m.innerHTML = a || "");
                    var v = n[t].querySelector(
                      ".apexcharts-tooltip-text-y-value"
                    );
                    v && (v.innerHTML = void 0 !== u ? u : ""),
                      g[0] &&
                        g[0].classList.contains("apexcharts-tooltip-marker") &&
                        (l.config.tooltip.marker.fillColors &&
                          Array.isArray(l.config.tooltip.marker.fillColors) &&
                          (s = l.config.tooltip.marker.fillColors[t]),
                        (g[0].style.backgroundColor = s)),
                      l.config.tooltip.marker.show ||
                        (g[0].style.display = "none");
                    var b = n[t].querySelector(
                        ".apexcharts-tooltip-text-goals-label"
                      ),
                      y = n[t].querySelector(
                        ".apexcharts-tooltip-text-goals-value"
                      );
                    if (d.length && l.globals.seriesGoals[t]) {
                      var x = function () {
                        var e = "<div >",
                          t = "<div>";
                        d.forEach(function (i, n) {
                          (e +=
                            ' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '
                              .concat(
                                i.attrs.strokeColor,
                                '; height: 3px; border-radius: 0; top: 5px;"></span> '
                              )
                              .concat(i.attrs.name, "</div>")),
                            (t += "<div>".concat(i.val, "</div>"));
                        }),
                          (b.innerHTML = e + "</div>"),
                          (y.innerHTML = t + "</div>");
                      };
                      o
                        ? l.globals.seriesGoals[t][i] &&
                          Array.isArray(l.globals.seriesGoals[t][i])
                          ? x()
                          : ((b.innerHTML = ""), (y.innerHTML = ""))
                        : x();
                    } else (b.innerHTML = ""), (y.innerHTML = "");
                    null !== p &&
                      ((n[t].querySelector(
                        ".apexcharts-tooltip-text-z-label"
                      ).innerHTML = l.config.tooltip.z.title),
                      (n[t].querySelector(
                        ".apexcharts-tooltip-text-z-value"
                      ).innerHTML = void 0 !== p ? p : "")),
                      o &&
                        g[0] &&
                        (null == u ||
                        l.globals.ancillaryCollapsedSeriesIndices.indexOf(t) >
                          -1 ||
                        l.globals.collapsedSeriesIndices.indexOf(t) > -1
                          ? (g[0].parentNode.style.display = "none")
                          : (g[0].parentNode.style.display =
                              l.config.tooltip.items.display));
                  },
                },
                {
                  key: "toggleActiveInactiveSeries",
                  value: function (e) {
                    var t = this.w;
                    if (e)
                      this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");
                    else {
                      this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");
                      var i = t.globals.dom.baseEl.querySelector(
                        ".apexcharts-tooltip-series-group"
                      );
                      i &&
                        (i.classList.add("apexcharts-active"),
                        (i.style.display = t.config.tooltip.items.display));
                    }
                  },
                },
                {
                  key: "getValuesToPrint",
                  value: function (e) {
                    var t = e.i,
                      i = e.j,
                      n = this.w,
                      r = this.ctx.series.filteredSeriesX(),
                      a = "",
                      o = "",
                      s = null,
                      l = null,
                      c = {
                        series: n.globals.series,
                        seriesIndex: t,
                        dataPointIndex: i,
                        w: n,
                      },
                      u = n.globals.ttZFormatter;
                    null === i
                      ? (l = n.globals.series[t])
                      : n.globals.isXNumeric &&
                        "treemap" !== n.config.chart.type
                      ? ((a = r[t][i]),
                        0 === r[t].length &&
                          (a = r[this.tooltipUtil.getFirstActiveXArray(r)][i]))
                      : (a =
                          void 0 !== n.globals.labels[i]
                            ? n.globals.labels[i]
                            : "");
                    var d = a;
                    return (
                      (a =
                        n.globals.isXNumeric &&
                        "datetime" === n.config.xaxis.type
                          ? new M(this.ctx).xLabelFormat(
                              n.globals.ttKeyFormatter,
                              d,
                              d,
                              {
                                i: void 0,
                                dateFormatter: new I(this.ctx).formatDate,
                                w: this.w,
                              }
                            )
                          : n.globals.isBarHorizontal
                          ? n.globals.yLabelFormatters[0](d, c)
                          : n.globals.xLabelFormatter(d, c)),
                      void 0 !== n.config.tooltip.x.formatter &&
                        (a = n.globals.ttKeyFormatter(d, c)),
                      n.globals.seriesZ.length > 0 &&
                        n.globals.seriesZ[t].length > 0 &&
                        (s = u(n.globals.seriesZ[t][i], n)),
                      (o =
                        "function" == typeof n.config.xaxis.tooltip.formatter
                          ? n.globals.xaxisTooltipFormatter(d, c)
                          : a),
                      {
                        val: Array.isArray(l) ? l.join(" ") : l,
                        xVal: Array.isArray(a) ? a.join(" ") : a,
                        xAxisTTVal: Array.isArray(o) ? o.join(" ") : o,
                        zVal: s,
                      }
                    );
                  },
                },
                {
                  key: "handleCustomTooltip",
                  value: function (e) {
                    var t = e.i,
                      i = e.j,
                      n = e.y1,
                      r = e.y2,
                      a = e.w,
                      o = this.ttCtx.getElTooltip(),
                      s = a.config.tooltip.custom;
                    Array.isArray(s) && s[t] && (s = s[t]),
                      (o.innerHTML = s({
                        ctx: this.ctx,
                        series: a.globals.series,
                        seriesIndex: t,
                        dataPointIndex: i,
                        y1: n,
                        y2: r,
                        w: a,
                      }));
                  },
                },
              ]),
              e
            );
          })(),
          ge = (function () {
            function e(t) {
              s(this, e), (this.ttCtx = t), (this.ctx = t.ctx), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "moveXCrosshairs",
                  value: function (e) {
                    var t =
                        arguments.length > 1 && void 0 !== arguments[1]
                          ? arguments[1]
                          : null,
                      i = this.ttCtx,
                      n = this.w,
                      r = i.getElXCrosshairs(),
                      a = e - i.xcrosshairsWidth / 2,
                      o = n.globals.labels.slice().length;
                    if (
                      (null !== t && (a = (n.globals.gridWidth / o) * t),
                      null === r ||
                        n.globals.isBarHorizontal ||
                        (r.setAttribute("x", a),
                        r.setAttribute("x1", a),
                        r.setAttribute("x2", a),
                        r.setAttribute("y2", n.globals.gridHeight),
                        r.classList.add("apexcharts-active")),
                      a < 0 && (a = 0),
                      a > n.globals.gridWidth && (a = n.globals.gridWidth),
                      i.isXAxisTooltipEnabled)
                    ) {
                      var s = a;
                      ("tickWidth" !== n.config.xaxis.crosshairs.width &&
                        "barWidth" !== n.config.xaxis.crosshairs.width) ||
                        (s = a + i.xcrosshairsWidth / 2),
                        this.moveXAxisTooltip(s);
                    }
                  },
                },
                {
                  key: "moveYCrosshairs",
                  value: function (e) {
                    var t = this.ttCtx;
                    null !== t.ycrosshairs &&
                      w.setAttrs(t.ycrosshairs, { y1: e, y2: e }),
                      null !== t.ycrosshairsHidden &&
                        w.setAttrs(t.ycrosshairsHidden, { y1: e, y2: e });
                  },
                },
                {
                  key: "moveXAxisTooltip",
                  value: function (e) {
                    var t = this.w,
                      i = this.ttCtx;
                    if (null !== i.xaxisTooltip && 0 !== i.xcrosshairsWidth) {
                      i.xaxisTooltip.classList.add("apexcharts-active");
                      var n,
                        r =
                          i.xaxisOffY +
                          t.config.xaxis.tooltip.offsetY +
                          t.globals.translateY +
                          1 +
                          t.config.xaxis.offsetY;
                      if (
                        ((e -=
                          i.xaxisTooltip.getBoundingClientRect().width / 2),
                        !isNaN(e))
                      )
                        (e += t.globals.translateX),
                          (n = new w(this.ctx).getTextRects(
                            i.xaxisTooltipText.innerHTML
                          )),
                          (i.xaxisTooltipText.style.minWidth = n.width + "px"),
                          (i.xaxisTooltip.style.left = e + "px"),
                          (i.xaxisTooltip.style.top = r + "px");
                    }
                  },
                },
                {
                  key: "moveYAxisTooltip",
                  value: function (e) {
                    var t = this.w,
                      i = this.ttCtx;
                    null === i.yaxisTTEls &&
                      (i.yaxisTTEls = t.globals.dom.baseEl.querySelectorAll(
                        ".apexcharts-yaxistooltip"
                      ));
                    var n = parseInt(
                        i.ycrosshairsHidden.getAttribute("y1"),
                        10
                      ),
                      r = t.globals.translateY + n,
                      a = i.yaxisTTEls[e].getBoundingClientRect().height,
                      o = t.globals.translateYAxisX[e] - 2;
                    t.config.yaxis[e].opposite && (o -= 26),
                      (r -= a / 2),
                      -1 === t.globals.ignoreYAxisIndexes.indexOf(e)
                        ? (i.yaxisTTEls[e].classList.add("apexcharts-active"),
                          (i.yaxisTTEls[e].style.top = r + "px"),
                          (i.yaxisTTEls[e].style.left =
                            o + t.config.yaxis[e].tooltip.offsetX + "px"))
                        : i.yaxisTTEls[e].classList.remove("apexcharts-active");
                  },
                },
                {
                  key: "moveTooltip",
                  value: function (e, t) {
                    var i =
                        arguments.length > 2 && void 0 !== arguments[2]
                          ? arguments[2]
                          : null,
                      n = this.w,
                      r = this.ttCtx,
                      a = r.getElTooltip(),
                      o = r.tooltipRect,
                      s = null !== i ? parseFloat(i) : 1,
                      l = parseFloat(e) + s + 5,
                      c = parseFloat(t) + s / 2;
                    if (
                      (l > n.globals.gridWidth / 2 &&
                        (l = l - o.ttWidth - s - 10),
                      l > n.globals.gridWidth - o.ttWidth - 10 &&
                        (l = n.globals.gridWidth - o.ttWidth),
                      l < -20 && (l = -20),
                      n.config.tooltip.followCursor)
                    ) {
                      var u = r.getElGrid().getBoundingClientRect();
                      c =
                        r.e.clientY +
                        n.globals.translateY -
                        u.top -
                        o.ttHeight / 2;
                    } else
                      n.globals.isBarHorizontal ||
                        (o.ttHeight / 2 + c > n.globals.gridHeight &&
                          (c =
                            n.globals.gridHeight -
                            o.ttHeight +
                            n.globals.translateY),
                        c < 0 && (c = 0));
                    isNaN(l) ||
                      ((l += n.globals.translateX),
                      (a.style.left = l + "px"),
                      (a.style.top = c + "px"));
                  },
                },
                {
                  key: "moveMarkers",
                  value: function (e, t) {
                    var i = this.w,
                      n = this.ttCtx;
                    if (i.globals.markers.size[e] > 0)
                      for (
                        var r = i.globals.dom.baseEl.querySelectorAll(
                            " .apexcharts-series[data\\:realIndex='".concat(
                              e,
                              "'] .apexcharts-marker"
                            )
                          ),
                          a = 0;
                        a < r.length;
                        a++
                      )
                        parseInt(r[a].getAttribute("rel"), 10) === t &&
                          (n.marker.resetPointsSize(),
                          n.marker.enlargeCurrentPoint(t, r[a]));
                    else
                      n.marker.resetPointsSize(),
                        this.moveDynamicPointOnHover(t, e);
                  },
                },
                {
                  key: "moveDynamicPointOnHover",
                  value: function (e, t) {
                    var i,
                      n,
                      r = this.w,
                      a = this.ttCtx,
                      o = r.globals.pointsArray,
                      s = a.tooltipUtil.getHoverMarkerSize(t),
                      l = r.config.series[t].type;
                    if (
                      !l ||
                      ("column" !== l && "candlestick" !== l && "boxPlot" !== l)
                    ) {
                      (i = o[t][e][0]), (n = o[t][e][1] ? o[t][e][1] : 0);
                      var c = r.globals.dom.baseEl.querySelector(
                        ".apexcharts-series[data\\:realIndex='".concat(
                          t,
                          "'] .apexcharts-series-markers circle"
                        )
                      );
                      c &&
                        n < r.globals.gridHeight &&
                        n > 0 &&
                        (c.setAttribute("r", s),
                        c.setAttribute("cx", i),
                        c.setAttribute("cy", n)),
                        this.moveXCrosshairs(i),
                        a.fixedTooltip || this.moveTooltip(i, n, s);
                    }
                  },
                },
                {
                  key: "moveDynamicPointsOnHover",
                  value: function (e) {
                    var t,
                      i = this.ttCtx,
                      n = i.w,
                      r = 0,
                      a = 0,
                      o = n.globals.pointsArray;
                    t = new Y(this.ctx).getActiveConfigSeriesIndex("asc", [
                      "line",
                      "area",
                      "scatter",
                      "bubble",
                    ]);
                    var s = i.tooltipUtil.getHoverMarkerSize(t);
                    o[t] && ((r = o[t][e][0]), (a = o[t][e][1]));
                    var l = i.tooltipUtil.getAllMarkers();
                    if (null !== l)
                      for (var c = 0; c < n.globals.series.length; c++) {
                        var u = o[c];
                        if (
                          (n.globals.comboCharts &&
                            void 0 === u &&
                            l.splice(c, 0, null),
                          u && u.length)
                        ) {
                          var d = o[c][e][1],
                            h = void 0;
                          if (
                            (l[c].setAttribute("cx", r),
                            "rangeArea" === n.config.chart.type &&
                              !n.globals.comboCharts)
                          ) {
                            var f = e + n.globals.series[c].length;
                            (h = o[c][f][1]), (d -= Math.abs(d - h) / 2);
                          }
                          null !== d &&
                          !isNaN(d) &&
                          d < n.globals.gridHeight + s &&
                          d + s > 0
                            ? (l[c] && l[c].setAttribute("r", s),
                              l[c] && l[c].setAttribute("cy", d))
                            : l[c] && l[c].setAttribute("r", 0);
                        }
                      }
                    if ((this.moveXCrosshairs(r), !i.fixedTooltip)) {
                      var p = a || n.globals.gridHeight;
                      this.moveTooltip(r, p, s);
                    }
                  },
                },
                {
                  key: "moveStickyTooltipOverBars",
                  value: function (e) {
                    var t = this.w,
                      i = this.ttCtx,
                      n = t.globals.columnSeries
                        ? t.globals.columnSeries.length
                        : t.globals.series.length,
                      r =
                        n >= 2 && n % 2 == 0
                          ? Math.floor(n / 2)
                          : Math.floor(n / 2) + 1;
                    t.globals.isBarHorizontal &&
                      (r =
                        new Y(this.ctx).getActiveConfigSeriesIndex("desc") + 1);
                    var a = t.globals.dom.baseEl.querySelector(
                        ".apexcharts-bar-series .apexcharts-series[rel='"
                          .concat(r, "'] path[j='")
                          .concat(
                            e,
                            "'], .apexcharts-candlestick-series .apexcharts-series[rel='"
                          )
                          .concat(r, "'] path[j='")
                          .concat(
                            e,
                            "'], .apexcharts-boxPlot-series .apexcharts-series[rel='"
                          )
                          .concat(r, "'] path[j='")
                          .concat(
                            e,
                            "'], .apexcharts-rangebar-series .apexcharts-series[rel='"
                          )
                          .concat(r, "'] path[j='")
                          .concat(e, "']")
                      ),
                      o = a ? parseFloat(a.getAttribute("cx")) : 0,
                      s = a ? parseFloat(a.getAttribute("cy")) : 0,
                      l = a ? parseFloat(a.getAttribute("barWidth")) : 0,
                      c = a ? parseFloat(a.getAttribute("barHeight")) : 0,
                      u = i.getElGrid().getBoundingClientRect(),
                      d =
                        a.classList.contains("apexcharts-candlestick-area") ||
                        a.classList.contains("apexcharts-boxPlot-area");
                    if (
                      (t.globals.isXNumeric
                        ? (a && !d && (o -= n % 2 != 0 ? l / 2 : 0),
                          a && d && t.globals.comboCharts && (o -= l / 2))
                        : t.globals.isBarHorizontal ||
                          ((o =
                            i.xAxisTicksPositions[e - 1] +
                            i.dataPointsDividedWidth / 2),
                          isNaN(o) &&
                            (o =
                              i.xAxisTicksPositions[e] -
                              i.dataPointsDividedWidth / 2)),
                      t.globals.isBarHorizontal
                        ? (s > t.globals.gridHeight / 2 &&
                            (s -= i.tooltipRect.ttHeight),
                          (s = s + t.config.grid.padding.top + c / 3) + c >
                            t.globals.gridHeight &&
                            (s = t.globals.gridHeight - c))
                        : t.config.tooltip.followCursor
                        ? (s = i.e.clientY - u.top - i.tooltipRect.ttHeight / 2)
                        : s + i.tooltipRect.ttHeight + 15 >
                            t.globals.gridHeight && (s = t.globals.gridHeight),
                      s < -10 && (s = -10),
                      t.globals.isBarHorizontal || this.moveXCrosshairs(o),
                      !i.fixedTooltip)
                    ) {
                      var h = s || t.globals.gridHeight;
                      this.moveTooltip(o, h);
                    }
                  },
                },
              ]),
              e
            );
          })(),
          me = (function () {
            function e(t) {
              s(this, e),
                (this.w = t.w),
                (this.ttCtx = t),
                (this.ctx = t.ctx),
                (this.tooltipPosition = new ge(t));
            }
            return (
              c(e, [
                {
                  key: "drawDynamicPoints",
                  value: function () {
                    var e = this.w,
                      t = new w(this.ctx),
                      i = new z(this.ctx),
                      n =
                        e.globals.dom.baseEl.querySelectorAll(
                          ".apexcharts-series"
                        );
                    (n = g(n)),
                      e.config.chart.stacked &&
                        n.sort(function (e, t) {
                          return (
                            parseFloat(e.getAttribute("data:realIndex")) -
                            parseFloat(t.getAttribute("data:realIndex"))
                          );
                        });
                    for (var r = 0; r < n.length; r++) {
                      var a = n[r].querySelector(
                        ".apexcharts-series-markers-wrap"
                      );
                      if (null !== a) {
                        var o = void 0,
                          s = "apexcharts-marker w".concat(
                            (Math.random() + 1).toString(36).substring(4)
                          );
                        ("line" !== e.config.chart.type &&
                          "area" !== e.config.chart.type) ||
                          e.globals.comboCharts ||
                          e.config.tooltip.intersect ||
                          (s += " no-pointer-events");
                        var l = i.getMarkerConfig({
                          cssClass: s,
                          seriesIndex: Number(a.getAttribute("data:realIndex")),
                        });
                        (o = t.drawMarker(0, 0, l)).node.setAttribute(
                          "default-marker-size",
                          0
                        );
                        var c = document.createElementNS(e.globals.SVGNS, "g");
                        c.classList.add("apexcharts-series-markers"),
                          c.appendChild(o.node),
                          a.appendChild(c);
                      }
                    }
                  },
                },
                {
                  key: "enlargeCurrentPoint",
                  value: function (e, t) {
                    var i =
                        arguments.length > 2 && void 0 !== arguments[2]
                          ? arguments[2]
                          : null,
                      n =
                        arguments.length > 3 && void 0 !== arguments[3]
                          ? arguments[3]
                          : null,
                      r = this.w;
                    "bubble" !== r.config.chart.type && this.newPointSize(e, t);
                    var a = t.getAttribute("cx"),
                      o = t.getAttribute("cy");
                    if (
                      (null !== i && null !== n && ((a = i), (o = n)),
                      this.tooltipPosition.moveXCrosshairs(a),
                      !this.fixedTooltip)
                    ) {
                      if ("radar" === r.config.chart.type) {
                        var s = this.ttCtx.getElGrid().getBoundingClientRect();
                        a = this.ttCtx.e.clientX - s.left;
                      }
                      this.tooltipPosition.moveTooltip(
                        a,
                        o,
                        r.config.markers.hover.size
                      );
                    }
                  },
                },
                {
                  key: "enlargePoints",
                  value: function (e) {
                    for (
                      var t = this.w,
                        i = this,
                        n = this.ttCtx,
                        r = e,
                        a = t.globals.dom.baseEl.querySelectorAll(
                          ".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"
                        ),
                        o = t.config.markers.hover.size,
                        s = 0;
                      s < a.length;
                      s++
                    ) {
                      var l = a[s].getAttribute("rel"),
                        c = a[s].getAttribute("index");
                      if (
                        (void 0 === o &&
                          (o =
                            t.globals.markers.size[c] +
                            t.config.markers.hover.sizeOffset),
                        r === parseInt(l, 10))
                      ) {
                        i.newPointSize(r, a[s]);
                        var u = a[s].getAttribute("cx"),
                          d = a[s].getAttribute("cy");
                        i.tooltipPosition.moveXCrosshairs(u),
                          n.fixedTooltip ||
                            i.tooltipPosition.moveTooltip(u, d, o);
                      } else i.oldPointSize(a[s]);
                    }
                  },
                },
                {
                  key: "newPointSize",
                  value: function (e, t) {
                    var i = this.w,
                      n = i.config.markers.hover.size,
                      r =
                        0 === e
                          ? t.parentNode.firstChild
                          : t.parentNode.lastChild;
                    if ("0" !== r.getAttribute("default-marker-size")) {
                      var a = parseInt(r.getAttribute("index"), 10);
                      void 0 === n &&
                        (n =
                          i.globals.markers.size[a] +
                          i.config.markers.hover.sizeOffset),
                        n < 0 && (n = 0),
                        r.setAttribute("r", n);
                    }
                  },
                },
                {
                  key: "oldPointSize",
                  value: function (e) {
                    var t = parseFloat(e.getAttribute("default-marker-size"));
                    e.setAttribute("r", t);
                  },
                },
                {
                  key: "resetPointsSize",
                  value: function () {
                    for (
                      var e = this.w.globals.dom.baseEl.querySelectorAll(
                          ".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"
                        ),
                        t = 0;
                      t < e.length;
                      t++
                    ) {
                      var i = parseFloat(
                        e[t].getAttribute("default-marker-size")
                      );
                      b.isNumber(i) && i >= 0
                        ? e[t].setAttribute("r", i)
                        : e[t].setAttribute("r", 0);
                    }
                  },
                },
              ]),
              e
            );
          })(),
          ve = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.ttCtx = t);
            }
            return (
              c(e, [
                {
                  key: "getAttr",
                  value: function (e, t) {
                    return parseFloat(e.target.getAttribute(t));
                  },
                },
                {
                  key: "handleHeatTreeTooltip",
                  value: function (e) {
                    var t = e.e,
                      i = e.opt,
                      n = e.x,
                      r = e.y,
                      a = e.type,
                      o = this.ttCtx,
                      s = this.w;
                    if (
                      t.target.classList.contains(
                        "apexcharts-".concat(a, "-rect")
                      )
                    ) {
                      var l = this.getAttr(t, "i"),
                        c = this.getAttr(t, "j"),
                        u = this.getAttr(t, "cx"),
                        d = this.getAttr(t, "cy"),
                        h = this.getAttr(t, "width"),
                        f = this.getAttr(t, "height");
                      if (
                        (o.tooltipLabels.drawSeriesTexts({
                          ttItems: i.ttItems,
                          i: l,
                          j: c,
                          shared: !1,
                          e: t,
                        }),
                        (s.globals.capturedSeriesIndex = l),
                        (s.globals.capturedDataPointIndex = c),
                        (n = u + o.tooltipRect.ttWidth / 2 + h),
                        (r = d + o.tooltipRect.ttHeight / 2 - f / 2),
                        o.tooltipPosition.moveXCrosshairs(u + h / 2),
                        n > s.globals.gridWidth / 2 &&
                          (n = u - o.tooltipRect.ttWidth / 2 + h),
                        o.w.config.tooltip.followCursor)
                      ) {
                        var p = s.globals.dom.elWrap.getBoundingClientRect();
                        (n =
                          s.globals.clientX -
                          p.left -
                          (n > s.globals.gridWidth / 2
                            ? o.tooltipRect.ttWidth
                            : 0)),
                          (r =
                            s.globals.clientY -
                            p.top -
                            (r > s.globals.gridHeight / 2
                              ? o.tooltipRect.ttHeight
                              : 0));
                      }
                    }
                    return { x: n, y: r };
                  },
                },
                {
                  key: "handleMarkerTooltip",
                  value: function (e) {
                    var t,
                      i,
                      n = e.e,
                      r = e.opt,
                      a = e.x,
                      o = e.y,
                      s = this.w,
                      l = this.ttCtx;
                    if (n.target.classList.contains("apexcharts-marker")) {
                      var c = parseInt(r.paths.getAttribute("cx"), 10),
                        u = parseInt(r.paths.getAttribute("cy"), 10),
                        d = parseFloat(r.paths.getAttribute("val"));
                      if (
                        ((i = parseInt(r.paths.getAttribute("rel"), 10)),
                        (t =
                          parseInt(
                            r.paths.parentNode.parentNode.parentNode.getAttribute(
                              "rel"
                            ),
                            10
                          ) - 1),
                        l.intersect)
                      ) {
                        var h = b.findAncestor(r.paths, "apexcharts-series");
                        h &&
                          (t = parseInt(h.getAttribute("data:realIndex"), 10));
                      }
                      if (
                        (l.tooltipLabels.drawSeriesTexts({
                          ttItems: r.ttItems,
                          i: t,
                          j: i,
                          shared: !l.showOnIntersect && s.config.tooltip.shared,
                          e: n,
                        }),
                        "mouseup" === n.type && l.markerClick(n, t, i),
                        (s.globals.capturedSeriesIndex = t),
                        (s.globals.capturedDataPointIndex = i),
                        (a = c),
                        (o =
                          u +
                          s.globals.translateY -
                          1.4 * l.tooltipRect.ttHeight),
                        l.w.config.tooltip.followCursor)
                      ) {
                        var f = l.getElGrid().getBoundingClientRect();
                        o = l.e.clientY + s.globals.translateY - f.top;
                      }
                      d < 0 && (o = u),
                        l.marker.enlargeCurrentPoint(i, r.paths, a, o);
                    }
                    return { x: a, y: o };
                  },
                },
                {
                  key: "handleBarTooltip",
                  value: function (e) {
                    var t,
                      i,
                      n = e.e,
                      r = e.opt,
                      a = this.w,
                      o = this.ttCtx,
                      s = o.getElTooltip(),
                      l = 0,
                      c = 0,
                      u = 0,
                      d = this.getBarTooltipXY({ e: n, opt: r });
                    t = d.i;
                    var h = d.barHeight,
                      f = d.j;
                    (a.globals.capturedSeriesIndex = t),
                      (a.globals.capturedDataPointIndex = f),
                      (a.globals.isBarHorizontal && o.tooltipUtil.hasBars()) ||
                      !a.config.tooltip.shared
                        ? ((c = d.x),
                          (u = d.y),
                          (i = Array.isArray(a.config.stroke.width)
                            ? a.config.stroke.width[t]
                            : a.config.stroke.width),
                          (l = c))
                        : a.globals.comboCharts ||
                          a.config.tooltip.shared ||
                          (l /= 2),
                      isNaN(u)
                        ? (u = a.globals.svgHeight - o.tooltipRect.ttHeight)
                        : u < 0 && (u = 0);
                    var p = parseInt(
                        r.paths.parentNode.getAttribute("data:realIndex"),
                        10
                      ),
                      g = a.globals.isMultipleYAxis
                        ? a.config.yaxis[p] && a.config.yaxis[p].reversed
                        : a.config.yaxis[0].reversed;
                    if (
                      (c + o.tooltipRect.ttWidth > a.globals.gridWidth && !g
                        ? (c -= o.tooltipRect.ttWidth)
                        : c < 0 && (c = 0),
                      o.w.config.tooltip.followCursor)
                    ) {
                      var m = o.getElGrid().getBoundingClientRect();
                      u = o.e.clientY - m.top;
                    }
                    null === o.tooltip &&
                      (o.tooltip = a.globals.dom.baseEl.querySelector(
                        ".apexcharts-tooltip"
                      )),
                      a.config.tooltip.shared ||
                        (a.globals.comboBarCount > 0
                          ? o.tooltipPosition.moveXCrosshairs(l + i / 2)
                          : o.tooltipPosition.moveXCrosshairs(l)),
                      !o.fixedTooltip &&
                        (!a.config.tooltip.shared ||
                          (a.globals.isBarHorizontal &&
                            o.tooltipUtil.hasBars())) &&
                        (g && (c -= o.tooltipRect.ttWidth) < 0 && (c = 0),
                        !g ||
                          (a.globals.isBarHorizontal &&
                            o.tooltipUtil.hasBars()) ||
                          (u =
                            u + h - 2 * (a.globals.series[t][f] < 0 ? h : 0)),
                        o.tooltipRect.ttHeight + u > a.globals.gridHeight
                          ? (u =
                              a.globals.gridHeight -
                              o.tooltipRect.ttHeight +
                              a.globals.translateY)
                          : (u =
                              u +
                              a.globals.translateY -
                              o.tooltipRect.ttHeight / 2) < 0 && (u = 0),
                        (s.style.left = c + a.globals.translateX + "px"),
                        (s.style.top = u + "px"));
                  },
                },
                {
                  key: "getBarTooltipXY",
                  value: function (e) {
                    var t = e.e,
                      i = e.opt,
                      n = this.w,
                      r = null,
                      a = this.ttCtx,
                      o = 0,
                      s = 0,
                      l = 0,
                      c = 0,
                      u = 0,
                      d = t.target.classList;
                    if (
                      d.contains("apexcharts-bar-area") ||
                      d.contains("apexcharts-candlestick-area") ||
                      d.contains("apexcharts-boxPlot-area") ||
                      d.contains("apexcharts-rangebar-area")
                    ) {
                      var h = t.target,
                        f = h.getBoundingClientRect(),
                        p = i.elGrid.getBoundingClientRect(),
                        g = f.height;
                      u = f.height;
                      var m = f.width,
                        v = parseInt(h.getAttribute("cx"), 10),
                        b = parseInt(h.getAttribute("cy"), 10);
                      c = parseFloat(h.getAttribute("barWidth"));
                      var y =
                        "touchmove" === t.type
                          ? t.touches[0].clientX
                          : t.clientX;
                      (r = parseInt(h.getAttribute("j"), 10)),
                        (o =
                          parseInt(h.parentNode.getAttribute("rel"), 10) - 1);
                      var x = h.getAttribute("data-range-y1"),
                        w = h.getAttribute("data-range-y2");
                      n.globals.comboCharts &&
                        (o = parseInt(
                          h.parentNode.getAttribute("data:realIndex"),
                          10
                        )),
                        a.tooltipLabels.drawSeriesTexts({
                          ttItems: i.ttItems,
                          i: o,
                          j: r,
                          y1: x ? parseInt(x, 10) : null,
                          y2: w ? parseInt(w, 10) : null,
                          shared: !a.showOnIntersect && n.config.tooltip.shared,
                          e: t,
                        }),
                        n.config.tooltip.followCursor
                          ? n.globals.isBarHorizontal
                            ? ((s = y - p.left + 15),
                              (l =
                                b -
                                a.dataPointsDividedHeight +
                                g / 2 -
                                a.tooltipRect.ttHeight / 2))
                            : ((s = n.globals.isXNumeric
                                ? v - m / 2
                                : v - a.dataPointsDividedWidth + m / 2),
                              (l =
                                t.clientY -
                                p.top -
                                a.tooltipRect.ttHeight / 2 -
                                15))
                          : n.globals.isBarHorizontal
                          ? ((s = v) < a.xyRatios.baseLineInvertedY &&
                              (s = v - a.tooltipRect.ttWidth),
                            (l =
                              b -
                              a.dataPointsDividedHeight +
                              g / 2 -
                              a.tooltipRect.ttHeight / 2))
                          : ((s = n.globals.isXNumeric
                              ? v - m / 2
                              : v - a.dataPointsDividedWidth + m / 2),
                            (l = b));
                    }
                    return {
                      x: s,
                      y: l,
                      barHeight: u,
                      barWidth: c,
                      i: o,
                      j: r,
                    };
                  },
                },
              ]),
              e
            );
          })(),
          be = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.ttCtx = t);
            }
            return (
              c(e, [
                {
                  key: "drawXaxisTooltip",
                  value: function () {
                    var e = this.w,
                      t = this.ttCtx,
                      i = "bottom" === e.config.xaxis.position;
                    t.xaxisOffY = i
                      ? e.globals.gridHeight + 1
                      : -e.globals.xAxisHeight -
                        e.config.xaxis.axisTicks.height +
                        3;
                    var n = i
                        ? "apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom"
                        : "apexcharts-xaxistooltip apexcharts-xaxistooltip-top",
                      r = e.globals.dom.elWrap;
                    t.isXAxisTooltipEnabled &&
                      null ===
                        e.globals.dom.baseEl.querySelector(
                          ".apexcharts-xaxistooltip"
                        ) &&
                      ((t.xaxisTooltip = document.createElement("div")),
                      t.xaxisTooltip.setAttribute(
                        "class",
                        n + " apexcharts-theme-" + e.config.tooltip.theme
                      ),
                      r.appendChild(t.xaxisTooltip),
                      (t.xaxisTooltipText = document.createElement("div")),
                      t.xaxisTooltipText.classList.add(
                        "apexcharts-xaxistooltip-text"
                      ),
                      (t.xaxisTooltipText.style.fontFamily =
                        e.config.xaxis.tooltip.style.fontFamily ||
                        e.config.chart.fontFamily),
                      (t.xaxisTooltipText.style.fontSize =
                        e.config.xaxis.tooltip.style.fontSize),
                      t.xaxisTooltip.appendChild(t.xaxisTooltipText));
                  },
                },
                {
                  key: "drawYaxisTooltip",
                  value: function () {
                    for (
                      var e = this.w,
                        t = this.ttCtx,
                        i = function (i) {
                          var n =
                            e.config.yaxis[i].opposite ||
                            e.config.yaxis[i].crosshairs.opposite;
                          t.yaxisOffX = n ? e.globals.gridWidth + 1 : 1;
                          var r =
                            "apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(
                              i,
                              n
                                ? " apexcharts-yaxistooltip-right"
                                : " apexcharts-yaxistooltip-left"
                            );
                          e.globals.yAxisSameScaleIndices.map(function (t, n) {
                            t.map(function (t, n) {
                              n === i &&
                                (r += e.config.yaxis[n].show
                                  ? " "
                                  : " apexcharts-yaxistooltip-hidden");
                            });
                          });
                          var a = e.globals.dom.elWrap;
                          null ===
                            e.globals.dom.baseEl.querySelector(
                              ".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(
                                i
                              )
                            ) &&
                            ((t.yaxisTooltip = document.createElement("div")),
                            t.yaxisTooltip.setAttribute(
                              "class",
                              r + " apexcharts-theme-" + e.config.tooltip.theme
                            ),
                            a.appendChild(t.yaxisTooltip),
                            0 === i && (t.yaxisTooltipText = []),
                            (t.yaxisTooltipText[i] =
                              document.createElement("div")),
                            t.yaxisTooltipText[i].classList.add(
                              "apexcharts-yaxistooltip-text"
                            ),
                            t.yaxisTooltip.appendChild(t.yaxisTooltipText[i]));
                        },
                        n = 0;
                      n < e.config.yaxis.length;
                      n++
                    )
                      i(n);
                  },
                },
                {
                  key: "setXCrosshairWidth",
                  value: function () {
                    var e = this.w,
                      t = this.ttCtx,
                      i = t.getElXCrosshairs();
                    if (
                      ((t.xcrosshairsWidth = parseInt(
                        e.config.xaxis.crosshairs.width,
                        10
                      )),
                      e.globals.comboCharts)
                    ) {
                      var n = e.globals.dom.baseEl.querySelector(
                        ".apexcharts-bar-area"
                      );
                      if (
                        null !== n &&
                        "barWidth" === e.config.xaxis.crosshairs.width
                      ) {
                        var r = parseFloat(n.getAttribute("barWidth"));
                        t.xcrosshairsWidth = r;
                      } else if (
                        "tickWidth" === e.config.xaxis.crosshairs.width
                      ) {
                        var a = e.globals.labels.length;
                        t.xcrosshairsWidth = e.globals.gridWidth / a;
                      }
                    } else if (
                      "tickWidth" === e.config.xaxis.crosshairs.width
                    ) {
                      var o = e.globals.labels.length;
                      t.xcrosshairsWidth = e.globals.gridWidth / o;
                    } else if ("barWidth" === e.config.xaxis.crosshairs.width) {
                      var s = e.globals.dom.baseEl.querySelector(
                        ".apexcharts-bar-area"
                      );
                      if (null !== s) {
                        var l = parseFloat(s.getAttribute("barWidth"));
                        t.xcrosshairsWidth = l;
                      } else t.xcrosshairsWidth = 1;
                    }
                    e.globals.isBarHorizontal && (t.xcrosshairsWidth = 0),
                      null !== i &&
                        t.xcrosshairsWidth > 0 &&
                        i.setAttribute("width", t.xcrosshairsWidth);
                  },
                },
                {
                  key: "handleYCrosshair",
                  value: function () {
                    var e = this.w,
                      t = this.ttCtx;
                    (t.ycrosshairs = e.globals.dom.baseEl.querySelector(
                      ".apexcharts-ycrosshairs"
                    )),
                      (t.ycrosshairsHidden = e.globals.dom.baseEl.querySelector(
                        ".apexcharts-ycrosshairs-hidden"
                      ));
                  },
                },
                {
                  key: "drawYaxisTooltipText",
                  value: function (e, t, i) {
                    var n = this.ttCtx,
                      r = this.w,
                      a = r.globals.yLabelFormatters[e];
                    if (n.yaxisTooltips[e]) {
                      var o = n.getElGrid().getBoundingClientRect(),
                        s = (t - o.top) * i.yRatio[e],
                        l = r.globals.maxYArr[e] - r.globals.minYArr[e],
                        c = r.globals.minYArr[e] + (l - s);
                      n.tooltipPosition.moveYCrosshairs(t - o.top),
                        (n.yaxisTooltipText[e].innerHTML = a(c)),
                        n.tooltipPosition.moveYAxisTooltip(e);
                    }
                  },
                },
              ]),
              e
            );
          })(),
          ye = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
              var i = this.w;
              (this.tConfig = i.config.tooltip),
                (this.tooltipUtil = new fe(this)),
                (this.tooltipLabels = new pe(this)),
                (this.tooltipPosition = new ge(this)),
                (this.marker = new me(this)),
                (this.intersect = new ve(this)),
                (this.axesTooltip = new be(this)),
                (this.showOnIntersect = this.tConfig.intersect),
                (this.showTooltipTitle = this.tConfig.x.show),
                (this.fixedTooltip = this.tConfig.fixed.enabled),
                (this.xaxisTooltip = null),
                (this.yaxisTTEls = null),
                (this.isBarShared =
                  !i.globals.isBarHorizontal && this.tConfig.shared),
                (this.lastHoverTime = Date.now());
            }
            return (
              c(e, [
                {
                  key: "getElTooltip",
                  value: function (e) {
                    return (
                      e || (e = this),
                      e.w.globals.dom.baseEl
                        ? e.w.globals.dom.baseEl.querySelector(
                            ".apexcharts-tooltip"
                          )
                        : null
                    );
                  },
                },
                {
                  key: "getElXCrosshairs",
                  value: function () {
                    return this.w.globals.dom.baseEl.querySelector(
                      ".apexcharts-xcrosshairs"
                    );
                  },
                },
                {
                  key: "getElGrid",
                  value: function () {
                    return this.w.globals.dom.baseEl.querySelector(
                      ".apexcharts-grid"
                    );
                  },
                },
                {
                  key: "drawTooltip",
                  value: function (e) {
                    var t = this.w;
                    (this.xyRatios = e),
                      (this.isXAxisTooltipEnabled =
                        t.config.xaxis.tooltip.enabled && t.globals.axisCharts),
                      (this.yaxisTooltips = t.config.yaxis.map(function (e, i) {
                        return !!(
                          e.show &&
                          e.tooltip.enabled &&
                          t.globals.axisCharts
                        );
                      })),
                      (this.allTooltipSeriesGroups = []),
                      t.globals.axisCharts || (this.showTooltipTitle = !1);
                    var i = document.createElement("div");
                    if (
                      (i.classList.add("apexcharts-tooltip"),
                      t.config.tooltip.cssClass &&
                        i.classList.add(t.config.tooltip.cssClass),
                      i.classList.add(
                        "apexcharts-theme-".concat(this.tConfig.theme)
                      ),
                      t.globals.dom.elWrap.appendChild(i),
                      t.globals.axisCharts)
                    ) {
                      this.axesTooltip.drawXaxisTooltip(),
                        this.axesTooltip.drawYaxisTooltip(),
                        this.axesTooltip.setXCrosshairWidth(),
                        this.axesTooltip.handleYCrosshair();
                      var n = new q(this.ctx);
                      this.xAxisTicksPositions = n.getXAxisTicksPositions();
                    }
                    if (
                      ((!t.globals.comboCharts &&
                        !this.tConfig.intersect &&
                        "rangeBar" !== t.config.chart.type) ||
                        this.tConfig.shared ||
                        (this.showOnIntersect = !0),
                      (0 !== t.config.markers.size &&
                        0 !== t.globals.markers.largestSize) ||
                        this.marker.drawDynamicPoints(this),
                      t.globals.collapsedSeries.length !==
                        t.globals.series.length)
                    ) {
                      (this.dataPointsDividedHeight =
                        t.globals.gridHeight / t.globals.dataPoints),
                        (this.dataPointsDividedWidth =
                          t.globals.gridWidth / t.globals.dataPoints),
                        this.showTooltipTitle &&
                          ((this.tooltipTitle = document.createElement("div")),
                          this.tooltipTitle.classList.add(
                            "apexcharts-tooltip-title"
                          ),
                          (this.tooltipTitle.style.fontFamily =
                            this.tConfig.style.fontFamily ||
                            t.config.chart.fontFamily),
                          (this.tooltipTitle.style.fontSize =
                            this.tConfig.style.fontSize),
                          i.appendChild(this.tooltipTitle));
                      var r = t.globals.series.length;
                      (t.globals.xyCharts || t.globals.comboCharts) &&
                        this.tConfig.shared &&
                        (r = this.showOnIntersect
                          ? 1
                          : t.globals.series.length),
                        (this.legendLabels =
                          t.globals.dom.baseEl.querySelectorAll(
                            ".apexcharts-legend-text"
                          )),
                        (this.ttItems = this.createTTElements(r)),
                        this.addSVGEvents();
                    }
                  },
                },
                {
                  key: "createTTElements",
                  value: function (e) {
                    for (
                      var t = this,
                        i = this.w,
                        n = [],
                        r = this.getElTooltip(),
                        a = function (a) {
                          var o = document.createElement("div");
                          o.classList.add("apexcharts-tooltip-series-group"),
                            (o.style.order = i.config.tooltip.inverseOrder
                              ? e - a
                              : a + 1),
                            t.tConfig.shared &&
                              t.tConfig.enabledOnSeries &&
                              Array.isArray(t.tConfig.enabledOnSeries) &&
                              t.tConfig.enabledOnSeries.indexOf(a) < 0 &&
                              o.classList.add(
                                "apexcharts-tooltip-series-group-hidden"
                              );
                          var s = document.createElement("span");
                          s.classList.add("apexcharts-tooltip-marker"),
                            (s.style.backgroundColor = i.globals.colors[a]),
                            o.appendChild(s);
                          var l = document.createElement("div");
                          l.classList.add("apexcharts-tooltip-text"),
                            (l.style.fontFamily =
                              t.tConfig.style.fontFamily ||
                              i.config.chart.fontFamily),
                            (l.style.fontSize = t.tConfig.style.fontSize),
                            ["y", "goals", "z"].forEach(function (e) {
                              var t = document.createElement("div");
                              t.classList.add(
                                "apexcharts-tooltip-".concat(e, "-group")
                              );
                              var i = document.createElement("span");
                              i.classList.add(
                                "apexcharts-tooltip-text-".concat(e, "-label")
                              ),
                                t.appendChild(i);
                              var n = document.createElement("span");
                              n.classList.add(
                                "apexcharts-tooltip-text-".concat(e, "-value")
                              ),
                                t.appendChild(n),
                                l.appendChild(t);
                            }),
                            o.appendChild(l),
                            r.appendChild(o),
                            n.push(o);
                        },
                        o = 0;
                      o < e;
                      o++
                    )
                      a(o);
                    return n;
                  },
                },
                {
                  key: "addSVGEvents",
                  value: function () {
                    var e = this.w,
                      t = e.config.chart.type,
                      i = this.getElTooltip(),
                      n = !(
                        "bar" !== t &&
                        "candlestick" !== t &&
                        "boxPlot" !== t &&
                        "rangeBar" !== t
                      ),
                      r =
                        "area" === t ||
                        "line" === t ||
                        "scatter" === t ||
                        "bubble" === t ||
                        "radar" === t,
                      a = e.globals.dom.Paper.node,
                      o = this.getElGrid();
                    o && (this.seriesBound = o.getBoundingClientRect());
                    var s,
                      l = [],
                      c = [],
                      u = {
                        hoverArea: a,
                        elGrid: o,
                        tooltipEl: i,
                        tooltipY: l,
                        tooltipX: c,
                        ttItems: this.ttItems,
                      };
                    if (
                      e.globals.axisCharts &&
                      (r
                        ? (s = e.globals.dom.baseEl.querySelectorAll(
                            ".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"
                          ))
                        : n
                        ? (s = e.globals.dom.baseEl.querySelectorAll(
                            ".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"
                          ))
                        : ("heatmap" !== t && "treemap" !== t) ||
                          (s = e.globals.dom.baseEl.querySelectorAll(
                            ".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap"
                          )),
                      s && s.length)
                    )
                      for (var d = 0; d < s.length; d++)
                        l.push(s[d].getAttribute("cy")),
                          c.push(s[d].getAttribute("cx"));
                    if (
                      (e.globals.xyCharts && !this.showOnIntersect) ||
                      (e.globals.comboCharts && !this.showOnIntersect) ||
                      (n && this.tooltipUtil.hasBars() && this.tConfig.shared)
                    )
                      this.addPathsEventListeners([a], u);
                    else if (
                      (n && !e.globals.comboCharts) ||
                      (r && this.showOnIntersect)
                    )
                      this.addDatapointEventsListeners(u);
                    else if (
                      !e.globals.axisCharts ||
                      "heatmap" === t ||
                      "treemap" === t
                    ) {
                      var h =
                        e.globals.dom.baseEl.querySelectorAll(
                          ".apexcharts-series"
                        );
                      this.addPathsEventListeners(h, u);
                    }
                    if (this.showOnIntersect) {
                      var f = e.globals.dom.baseEl.querySelectorAll(
                        ".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker"
                      );
                      f.length > 0 && this.addPathsEventListeners(f, u),
                        this.tooltipUtil.hasBars() &&
                          !this.tConfig.shared &&
                          this.addDatapointEventsListeners(u);
                    }
                  },
                },
                {
                  key: "drawFixedTooltipRect",
                  value: function () {
                    var e = this.w,
                      t = this.getElTooltip(),
                      i = t.getBoundingClientRect(),
                      n = i.width + 10,
                      r = i.height + 10,
                      a = this.tConfig.fixed.offsetX,
                      o = this.tConfig.fixed.offsetY,
                      s = this.tConfig.fixed.position.toLowerCase();
                    return (
                      s.indexOf("right") > -1 &&
                        (a = a + e.globals.svgWidth - n + 10),
                      s.indexOf("bottom") > -1 &&
                        (o = o + e.globals.svgHeight - r - 10),
                      (t.style.left = a + "px"),
                      (t.style.top = o + "px"),
                      { x: a, y: o, ttWidth: n, ttHeight: r }
                    );
                  },
                },
                {
                  key: "addDatapointEventsListeners",
                  value: function (e) {
                    var t = this.w.globals.dom.baseEl.querySelectorAll(
                      ".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area"
                    );
                    this.addPathsEventListeners(t, e);
                  },
                },
                {
                  key: "addPathsEventListeners",
                  value: function (e, t) {
                    for (
                      var i = this,
                        n = function (n) {
                          var r = {
                            paths: e[n],
                            tooltipEl: t.tooltipEl,
                            tooltipY: t.tooltipY,
                            tooltipX: t.tooltipX,
                            elGrid: t.elGrid,
                            hoverArea: t.hoverArea,
                            ttItems: t.ttItems,
                          };
                          [
                            "mousemove",
                            "mouseup",
                            "touchmove",
                            "mouseout",
                            "touchend",
                          ].map(function (t) {
                            return e[n].addEventListener(
                              t,
                              i.onSeriesHover.bind(i, r),
                              { capture: !1, passive: !0 }
                            );
                          });
                        },
                        r = 0;
                      r < e.length;
                      r++
                    )
                      n(r);
                  },
                },
                {
                  key: "onSeriesHover",
                  value: function (e, t) {
                    var i = this,
                      n = Date.now() - this.lastHoverTime;
                    n >= 100
                      ? this.seriesHover(e, t)
                      : (clearTimeout(this.seriesHoverTimeout),
                        (this.seriesHoverTimeout = setTimeout(function () {
                          i.seriesHover(e, t);
                        }, 100 - n)));
                  },
                },
                {
                  key: "seriesHover",
                  value: function (e, t) {
                    var i = this;
                    this.lastHoverTime = Date.now();
                    var n = [],
                      r = this.w;
                    r.config.chart.group && (n = this.ctx.getGroupedCharts()),
                      (r.globals.axisCharts &&
                        ((r.globals.minX === -1 / 0 &&
                          r.globals.maxX === 1 / 0) ||
                          0 === r.globals.dataPoints)) ||
                        (n.length
                          ? n.forEach(function (n) {
                              var r = i.getElTooltip(n),
                                a = {
                                  paths: e.paths,
                                  tooltipEl: r,
                                  tooltipY: e.tooltipY,
                                  tooltipX: e.tooltipX,
                                  elGrid: e.elGrid,
                                  hoverArea: e.hoverArea,
                                  ttItems: n.w.globals.tooltip.ttItems,
                                };
                              n.w.globals.minX === i.w.globals.minX &&
                                n.w.globals.maxX === i.w.globals.maxX &&
                                n.w.globals.tooltip.seriesHoverByContext({
                                  chartCtx: n,
                                  ttCtx: n.w.globals.tooltip,
                                  opt: a,
                                  e: t,
                                });
                            })
                          : this.seriesHoverByContext({
                              chartCtx: this.ctx,
                              ttCtx: this.w.globals.tooltip,
                              opt: e,
                              e: t,
                            }));
                  },
                },
                {
                  key: "seriesHoverByContext",
                  value: function (e) {
                    var t = e.chartCtx,
                      i = e.ttCtx,
                      n = e.opt,
                      r = e.e,
                      a = t.w,
                      o = this.getElTooltip();
                    o &&
                      ((i.tooltipRect = {
                        x: 0,
                        y: 0,
                        ttWidth: o.getBoundingClientRect().width,
                        ttHeight: o.getBoundingClientRect().height,
                      }),
                      (i.e = r),
                      !i.tooltipUtil.hasBars() ||
                        a.globals.comboCharts ||
                        i.isBarShared ||
                        (this.tConfig.onDatasetHover.highlightDataSeries &&
                          new Y(t).toggleSeriesOnHover(r, r.target.parentNode)),
                      i.fixedTooltip && i.drawFixedTooltipRect(),
                      a.globals.axisCharts
                        ? i.axisChartsTooltips({
                            e: r,
                            opt: n,
                            tooltipRect: i.tooltipRect,
                          })
                        : i.nonAxisChartsTooltips({
                            e: r,
                            opt: n,
                            tooltipRect: i.tooltipRect,
                          }));
                  },
                },
                {
                  key: "axisChartsTooltips",
                  value: function (e) {
                    var t,
                      i,
                      n = e.e,
                      r = e.opt,
                      a = this.w,
                      o = r.elGrid.getBoundingClientRect(),
                      s =
                        "touchmove" === n.type
                          ? n.touches[0].clientX
                          : n.clientX,
                      l =
                        "touchmove" === n.type
                          ? n.touches[0].clientY
                          : n.clientY;
                    if (
                      ((this.clientY = l),
                      (this.clientX = s),
                      (a.globals.capturedSeriesIndex = -1),
                      (a.globals.capturedDataPointIndex = -1),
                      l < o.top || l > o.top + o.height)
                    )
                      this.handleMouseOut(r);
                    else {
                      if (
                        Array.isArray(this.tConfig.enabledOnSeries) &&
                        !a.config.tooltip.shared
                      ) {
                        var c = parseInt(r.paths.getAttribute("index"), 10);
                        if (this.tConfig.enabledOnSeries.indexOf(c) < 0)
                          return void this.handleMouseOut(r);
                      }
                      var u = this.getElTooltip(),
                        d = this.getElXCrosshairs(),
                        h =
                          a.globals.xyCharts ||
                          ("bar" === a.config.chart.type &&
                            !a.globals.isBarHorizontal &&
                            this.tooltipUtil.hasBars() &&
                            this.tConfig.shared) ||
                          (a.globals.comboCharts && this.tooltipUtil.hasBars());
                      if (
                        "mousemove" === n.type ||
                        "touchmove" === n.type ||
                        "mouseup" === n.type
                      ) {
                        if (
                          a.globals.collapsedSeries.length +
                            a.globals.ancillaryCollapsedSeries.length ===
                          a.globals.series.length
                        )
                          return;
                        null !== d && d.classList.add("apexcharts-active");
                        var f = this.yaxisTooltips.filter(function (e) {
                          return !0 === e;
                        });
                        if (
                          (null !== this.ycrosshairs &&
                            f.length &&
                            this.ycrosshairs.classList.add("apexcharts-active"),
                          h && !this.showOnIntersect)
                        )
                          this.handleStickyTooltip(n, s, l, r);
                        else if (
                          "heatmap" === a.config.chart.type ||
                          "treemap" === a.config.chart.type
                        ) {
                          var p = this.intersect.handleHeatTreeTooltip({
                            e: n,
                            opt: r,
                            x: t,
                            y: i,
                            type: a.config.chart.type,
                          });
                          (t = p.x),
                            (i = p.y),
                            (u.style.left = t + "px"),
                            (u.style.top = i + "px");
                        } else
                          this.tooltipUtil.hasBars() &&
                            this.intersect.handleBarTooltip({ e: n, opt: r }),
                            this.tooltipUtil.hasMarkers() &&
                              this.intersect.handleMarkerTooltip({
                                e: n,
                                opt: r,
                                x: t,
                                y: i,
                              });
                        if (this.yaxisTooltips.length)
                          for (var g = 0; g < a.config.yaxis.length; g++)
                            this.axesTooltip.drawYaxisTooltipText(
                              g,
                              l,
                              this.xyRatios
                            );
                        r.tooltipEl.classList.add("apexcharts-active");
                      } else
                        ("mouseout" !== n.type && "touchend" !== n.type) ||
                          this.handleMouseOut(r);
                    }
                  },
                },
                {
                  key: "nonAxisChartsTooltips",
                  value: function (e) {
                    var t = e.e,
                      i = e.opt,
                      n = e.tooltipRect,
                      r = this.w,
                      a = i.paths.getAttribute("rel"),
                      o = this.getElTooltip(),
                      s = r.globals.dom.elWrap.getBoundingClientRect();
                    if ("mousemove" === t.type || "touchmove" === t.type) {
                      o.classList.add("apexcharts-active"),
                        this.tooltipLabels.drawSeriesTexts({
                          ttItems: i.ttItems,
                          i: parseInt(a, 10) - 1,
                          shared: !1,
                        });
                      var l = r.globals.clientX - s.left - n.ttWidth / 2,
                        c = r.globals.clientY - s.top - n.ttHeight - 10;
                      if (
                        ((o.style.left = l + "px"),
                        (o.style.top = c + "px"),
                        r.config.legend.tooltipHoverFormatter)
                      ) {
                        var u = a - 1,
                          d = (0, r.config.legend.tooltipHoverFormatter)(
                            this.legendLabels[u].getAttribute(
                              "data:default-text"
                            ),
                            { seriesIndex: u, dataPointIndex: u, w: r }
                          );
                        this.legendLabels[u].innerHTML = d;
                      }
                    } else
                      ("mouseout" !== t.type && "touchend" !== t.type) ||
                        (o.classList.remove("apexcharts-active"),
                        r.config.legend.tooltipHoverFormatter &&
                          this.legendLabels.forEach(function (e) {
                            var t = e.getAttribute("data:default-text");
                            e.innerHTML = decodeURIComponent(t);
                          }));
                  },
                },
                {
                  key: "handleStickyTooltip",
                  value: function (e, t, i, n) {
                    var r = this.w,
                      a = this.tooltipUtil.getNearestValues({
                        context: this,
                        hoverArea: n.hoverArea,
                        elGrid: n.elGrid,
                        clientX: t,
                        clientY: i,
                      }),
                      o = a.j,
                      s = a.capturedSeries,
                      l = n.elGrid.getBoundingClientRect();
                    a.hoverX < 0 || a.hoverX > l.width
                      ? this.handleMouseOut(n)
                      : null !== s
                      ? this.handleStickyCapturedSeries(e, s, n, o)
                      : (this.tooltipUtil.isXoverlap(o) ||
                          r.globals.isBarHorizontal) &&
                        this.create(e, this, 0, o, n.ttItems);
                  },
                },
                {
                  key: "handleStickyCapturedSeries",
                  value: function (e, t, i, n) {
                    var r = this.w;
                    this.tConfig.shared || null !== r.globals.series[t][n]
                      ? void 0 !== r.globals.series[t][n]
                        ? this.tConfig.shared &&
                          this.tooltipUtil.isXoverlap(n) &&
                          this.tooltipUtil.isInitialSeriesSameLen()
                          ? this.create(e, this, t, n, i.ttItems)
                          : this.create(e, this, t, n, i.ttItems, !1)
                        : this.tooltipUtil.isXoverlap(n) &&
                          this.create(e, this, 0, n, i.ttItems)
                      : this.handleMouseOut(i);
                  },
                },
                {
                  key: "deactivateHoverFilter",
                  value: function () {
                    for (
                      var e = this.w,
                        t = new w(this.ctx),
                        i = e.globals.dom.Paper.select(".apexcharts-bar-area"),
                        n = 0;
                      n < i.length;
                      n++
                    )
                      t.pathMouseLeave(i[n]);
                  },
                },
                {
                  key: "handleMouseOut",
                  value: function (e) {
                    var t = this.w,
                      i = this.getElXCrosshairs();
                    if (
                      (e.tooltipEl.classList.remove("apexcharts-active"),
                      this.deactivateHoverFilter(),
                      "bubble" !== t.config.chart.type &&
                        this.marker.resetPointsSize(),
                      null !== i && i.classList.remove("apexcharts-active"),
                      null !== this.ycrosshairs &&
                        this.ycrosshairs.classList.remove("apexcharts-active"),
                      this.isXAxisTooltipEnabled &&
                        this.xaxisTooltip.classList.remove("apexcharts-active"),
                      this.yaxisTooltips.length)
                    ) {
                      null === this.yaxisTTEls &&
                        (this.yaxisTTEls =
                          t.globals.dom.baseEl.querySelectorAll(
                            ".apexcharts-yaxistooltip"
                          ));
                      for (var n = 0; n < this.yaxisTTEls.length; n++)
                        this.yaxisTTEls[n].classList.remove(
                          "apexcharts-active"
                        );
                    }
                    t.config.legend.tooltipHoverFormatter &&
                      this.legendLabels.forEach(function (e) {
                        var t = e.getAttribute("data:default-text");
                        e.innerHTML = decodeURIComponent(t);
                      });
                  },
                },
                {
                  key: "markerClick",
                  value: function (e, t, i) {
                    var n = this.w;
                    "function" == typeof n.config.chart.events.markerClick &&
                      n.config.chart.events.markerClick(e, this.ctx, {
                        seriesIndex: t,
                        dataPointIndex: i,
                        w: n,
                      }),
                      this.ctx.events.fireEvent("markerClick", [
                        e,
                        this.ctx,
                        { seriesIndex: t, dataPointIndex: i, w: n },
                      ]);
                  },
                },
                {
                  key: "create",
                  value: function (e, t, i, n, r) {
                    var o,
                      s,
                      l,
                      c,
                      u,
                      d,
                      h,
                      f,
                      p,
                      g,
                      m,
                      v,
                      b,
                      y,
                      x,
                      E,
                      _ =
                        arguments.length > 5 && void 0 !== arguments[5]
                          ? arguments[5]
                          : null,
                      S = this.w,
                      A = t;
                    "mouseup" === e.type && this.markerClick(e, i, n),
                      null === _ && (_ = this.tConfig.shared);
                    var k = this.tooltipUtil.hasMarkers(),
                      T = this.tooltipUtil.getElBars();
                    if (S.config.legend.tooltipHoverFormatter) {
                      var C = S.config.legend.tooltipHoverFormatter,
                        O = Array.from(this.legendLabels);
                      O.forEach(function (e) {
                        var t = e.getAttribute("data:default-text");
                        e.innerHTML = decodeURIComponent(t);
                      });
                      for (var I = 0; I < O.length; I++) {
                        var M = O[I],
                          L = parseInt(M.getAttribute("i"), 10),
                          P = decodeURIComponent(
                            M.getAttribute("data:default-text")
                          ),
                          D = C(P, {
                            seriesIndex: _ ? L : i,
                            dataPointIndex: n,
                            w: S,
                          });
                        if (_)
                          M.innerHTML =
                            S.globals.collapsedSeriesIndices.indexOf(L) < 0
                              ? D
                              : P;
                        else if (((M.innerHTML = L === i ? D : P), i === L))
                          break;
                      }
                    }
                    var R = a(
                      a(
                        { ttItems: r, i, j: n },
                        void 0 !==
                          (null === (o = S.globals.seriesRange) ||
                          void 0 === o ||
                          null === (s = o[i]) ||
                          void 0 === s ||
                          null === (l = s[n]) ||
                          void 0 === l ||
                          null === (c = l.y[0]) ||
                          void 0 === c
                            ? void 0
                            : c.y1) && {
                          y1:
                            null === (u = S.globals.seriesRange) ||
                            void 0 === u ||
                            null === (d = u[i]) ||
                            void 0 === d ||
                            null === (h = d[n]) ||
                            void 0 === h ||
                            null === (f = h.y[0]) ||
                            void 0 === f
                              ? void 0
                              : f.y1,
                        }
                      ),
                      void 0 !==
                        (null === (p = S.globals.seriesRange) ||
                        void 0 === p ||
                        null === (g = p[i]) ||
                        void 0 === g ||
                        null === (m = g[n]) ||
                        void 0 === m ||
                        null === (v = m.y[0]) ||
                        void 0 === v
                          ? void 0
                          : v.y2) && {
                        y2:
                          null === (b = S.globals.seriesRange) ||
                          void 0 === b ||
                          null === (y = b[i]) ||
                          void 0 === y ||
                          null === (x = y[n]) ||
                          void 0 === x ||
                          null === (E = x.y[0]) ||
                          void 0 === E
                            ? void 0
                            : E.y2,
                      }
                    );
                    if (_) {
                      if (
                        (A.tooltipLabels.drawSeriesTexts(
                          a(
                            a({}, R),
                            {},
                            {
                              shared:
                                !this.showOnIntersect && this.tConfig.shared,
                            }
                          )
                        ),
                        k &&
                          (S.globals.markers.largestSize > 0
                            ? A.marker.enlargePoints(n)
                            : A.tooltipPosition.moveDynamicPointsOnHover(n)),
                        this.tooltipUtil.hasBars() &&
                          ((this.barSeriesHeight =
                            this.tooltipUtil.getBarsHeight(T)),
                          this.barSeriesHeight > 0))
                      ) {
                        var N = new w(this.ctx),
                          F = S.globals.dom.Paper.select(
                            ".apexcharts-bar-area[j='".concat(n, "']")
                          );
                        this.deactivateHoverFilter(),
                          this.tooltipPosition.moveStickyTooltipOverBars(n);
                        for (var B = 0; B < F.length; B++)
                          N.pathMouseEnter(F[B]);
                      }
                    } else
                      A.tooltipLabels.drawSeriesTexts(a({ shared: !1 }, R)),
                        this.tooltipUtil.hasBars() &&
                          A.tooltipPosition.moveStickyTooltipOverBars(n),
                        k && A.tooltipPosition.moveMarkers(i, n);
                  },
                },
              ]),
              e
            );
          })(),
          xe = (function () {
            function e(t) {
              s(this, e),
                (this.w = t.w),
                (this.barCtx = t),
                (this.totalFormatter =
                  this.w.config.plotOptions.bar.dataLabels.total.formatter),
                this.totalFormatter ||
                  (this.totalFormatter = this.w.config.dataLabels.formatter);
            }
            return (
              c(e, [
                {
                  key: "handleBarDataLabels",
                  value: function (e) {
                    var t = e.x,
                      i = e.y,
                      n = e.y1,
                      r = e.y2,
                      a = e.i,
                      o = e.j,
                      s = e.realIndex,
                      l = e.series,
                      c = e.barHeight,
                      u = e.barWidth,
                      d = e.barYPosition,
                      h = e.visibleSeries,
                      f = e.renderedPath,
                      p = this.w,
                      g = new w(this.barCtx.ctx),
                      m = Array.isArray(this.barCtx.strokeWidth)
                        ? this.barCtx.strokeWidth[s]
                        : this.barCtx.strokeWidth,
                      v = t + parseFloat(u * h),
                      b = i + parseFloat(c * h);
                    p.globals.isXNumeric &&
                      !p.globals.isBarHorizontal &&
                      ((v = t + parseFloat(u * (h + 1))),
                      (b = i + parseFloat(c * (h + 1)) - m));
                    var y,
                      x,
                      E = null,
                      _ = t,
                      S = i,
                      A = p.config.dataLabels,
                      k = this.barCtx.barOptions.dataLabels,
                      T = this.barCtx.barOptions.dataLabels.total;
                    void 0 !== d &&
                      this.barCtx.isRangeBar &&
                      ((b = d), (S = d));
                    var C = A.offsetX,
                      O = A.offsetY,
                      I = { width: 0, height: 0 };
                    if (p.config.dataLabels.enabled) {
                      var M = this.barCtx.series[a][o];
                      I = g.getTextRects(
                        p.globals.yLabelFormatters[0](M),
                        parseFloat(A.style.fontSize)
                      );
                    }
                    var L = {
                      x: t,
                      y: i,
                      i: a,
                      j: o,
                      realIndex: s,
                      renderedPath: f,
                      bcx: v,
                      bcy: b,
                      barHeight: c,
                      barWidth: u,
                      textRects: I,
                      strokeWidth: m,
                      dataLabelsX: _,
                      dataLabelsY: S,
                      dataLabelsConfig: A,
                      barDataLabelsConfig: k,
                      barTotalDataLabelsConfig: T,
                      offX: C,
                      offY: O,
                    };
                    return (
                      (x = this.barCtx.isHorizontal
                        ? this.calculateBarsDataLabelsPosition(L)
                        : this.calculateColumnsDataLabelsPosition(L)),
                      f.attr({
                        cy: x.bcy,
                        cx: x.bcx,
                        j: o,
                        val: l[a][o],
                        barHeight: c,
                        barWidth: u,
                      }),
                      (y = this.drawCalculatedDataLabels({
                        x: x.dataLabelsX,
                        y: x.dataLabelsY,
                        val: this.barCtx.isRangeBar ? [n, r] : l[a][o],
                        i: s,
                        j: o,
                        barWidth: u,
                        barHeight: c,
                        textRects: I,
                        dataLabelsConfig: A,
                      })),
                      p.config.chart.stacked &&
                        T.enabled &&
                        (E = this.drawTotalDataLabels({
                          x: x.totalDataLabelsX,
                          y: x.totalDataLabelsY,
                          realIndex: s,
                          textAnchor: x.totalDataLabelsAnchor,
                          val: this.getStackedTotalDataLabel({
                            realIndex: s,
                            j: o,
                          }),
                          dataLabelsConfig: A,
                          barTotalDataLabelsConfig: T,
                        })),
                      { dataLabels: y, totalDataLabels: E }
                    );
                  },
                },
                {
                  key: "getStackedTotalDataLabel",
                  value: function (e) {
                    var t = e.realIndex,
                      i = e.j,
                      n = this.w,
                      r = this.barCtx.stackedSeriesTotals[i];
                    return (
                      this.totalFormatter &&
                        (r = this.totalFormatter(
                          r,
                          a(
                            a({}, n),
                            {},
                            { seriesIndex: t, dataPointIndex: i, w: n }
                          )
                        )),
                      r
                    );
                  },
                },
                {
                  key: "calculateColumnsDataLabelsPosition",
                  value: function (e) {
                    var t,
                      i,
                      n,
                      r = this.w,
                      a = e.i,
                      o = e.j,
                      s = e.realIndex,
                      l = e.y,
                      c = e.bcx,
                      u = e.barWidth,
                      d = e.barHeight,
                      h = e.textRects,
                      f = e.dataLabelsY,
                      p = e.dataLabelsConfig,
                      g = e.barDataLabelsConfig,
                      m = e.barTotalDataLabelsConfig,
                      v = e.strokeWidth,
                      b = e.offX,
                      y = e.offY;
                    d = Math.abs(d);
                    var x =
                      "vertical" ===
                      r.config.plotOptions.bar.dataLabels.orientation;
                    c -= v / 2;
                    var E = r.globals.gridWidth / r.globals.dataPoints;
                    (t = r.globals.isXNumeric
                      ? c - u / 2 + b
                      : c - E + u / 2 + b),
                      x && (t = t + h.height / 2 - v / 2 - 2);
                    var _ = this.barCtx.series[a][o] < 0,
                      S = l;
                    switch (
                      (this.barCtx.isReversed &&
                        ((S = l - d + (_ ? 2 * d : 0)), (l -= d)),
                      g.position)
                    ) {
                      case "center":
                        f = x
                          ? _
                            ? S + d / 2 + y
                            : S + d / 2 - y
                          : _
                          ? S - d / 2 + h.height / 2 + y
                          : S + d / 2 + h.height / 2 - y;
                        break;
                      case "bottom":
                        f = x
                          ? _
                            ? S + d + y
                            : S + d - y
                          : _
                          ? S - d + h.height + v + y
                          : S + d - h.height / 2 + v - y;
                        break;
                      case "top":
                        f = x
                          ? _
                            ? S + y
                            : S - y
                          : _
                          ? S - h.height / 2 - y
                          : S + h.height + y;
                    }
                    if (
                      this.barCtx.lastActiveBarSerieIndex === s &&
                      m.enabled
                    ) {
                      var A = new w(this.barCtx.ctx).getTextRects(
                        this.getStackedTotalDataLabel({ realIndex: s, j: o }),
                        p.fontSize
                      );
                      (i = _
                        ? S - A.height / 2 - y - m.offsetY + 18
                        : S + A.height + y + m.offsetY - 18),
                        (n = t + m.offsetX);
                    }
                    return (
                      r.config.chart.stacked ||
                        (f < 0
                          ? (f = 0 + v)
                          : f + h.height / 3 > r.globals.gridHeight &&
                            (f = r.globals.gridHeight - v)),
                      {
                        bcx: c,
                        bcy: l,
                        dataLabelsX: t,
                        dataLabelsY: f,
                        totalDataLabelsX: n,
                        totalDataLabelsY: i,
                        totalDataLabelsAnchor: "middle",
                      }
                    );
                  },
                },
                {
                  key: "calculateBarsDataLabelsPosition",
                  value: function (e) {
                    var t = this.w,
                      i = e.x,
                      n = e.i,
                      r = e.j,
                      a = e.realIndex,
                      o = e.bcy,
                      s = e.barHeight,
                      l = e.barWidth,
                      c = e.textRects,
                      u = e.dataLabelsX,
                      d = e.strokeWidth,
                      h = e.dataLabelsConfig,
                      f = e.barDataLabelsConfig,
                      p = e.barTotalDataLabelsConfig,
                      g = e.offX,
                      m = e.offY,
                      v = t.globals.gridHeight / t.globals.dataPoints;
                    l = Math.abs(l);
                    var b,
                      y,
                      x =
                        o -
                        (this.barCtx.isRangeBar ? 0 : v) +
                        s / 2 +
                        c.height / 2 +
                        m -
                        3,
                      E = "start",
                      _ = this.barCtx.series[n][r] < 0,
                      S = i;
                    switch (
                      (this.barCtx.isReversed &&
                        ((S = i + l - (_ ? 2 * l : 0)),
                        (i = t.globals.gridWidth - l)),
                      f.position)
                    ) {
                      case "center":
                        u = _
                          ? S + l / 2 - g
                          : Math.max(c.width / 2, S - l / 2) + g;
                        break;
                      case "bottom":
                        u = _
                          ? S + l - d - Math.round(c.width / 2) - g
                          : S - l + d + Math.round(c.width / 2) + g;
                        break;
                      case "top":
                        u = _
                          ? S - d + Math.round(c.width / 2) - g
                          : S - d - Math.round(c.width / 2) + g;
                    }
                    if (
                      this.barCtx.lastActiveBarSerieIndex === a &&
                      p.enabled
                    ) {
                      var A = new w(this.barCtx.ctx).getTextRects(
                        this.getStackedTotalDataLabel({ realIndex: a, j: r }),
                        h.fontSize
                      );
                      _
                        ? ((b =
                            S -
                            d +
                            Math.round(A.width / 2) -
                            g -
                            p.offsetX -
                            15),
                          (E = "end"))
                        : (b =
                            S -
                            d -
                            Math.round(A.width / 2) +
                            g +
                            p.offsetX +
                            15),
                        (y = x + p.offsetY);
                    }
                    return (
                      t.config.chart.stacked ||
                        (u < 0
                          ? (u = u + c.width + d)
                          : u + c.width / 2 > t.globals.gridWidth &&
                            (u = t.globals.gridWidth - c.width - d)),
                      {
                        bcx: i,
                        bcy: o,
                        dataLabelsX: u,
                        dataLabelsY: x,
                        totalDataLabelsX: b,
                        totalDataLabelsY: y,
                        totalDataLabelsAnchor: E,
                      }
                    );
                  },
                },
                {
                  key: "drawCalculatedDataLabels",
                  value: function (e) {
                    var t = e.x,
                      i = e.y,
                      n = e.val,
                      r = e.i,
                      o = e.j,
                      s = e.textRects,
                      l = e.barHeight,
                      c = e.barWidth,
                      u = e.dataLabelsConfig,
                      d = this.w,
                      h = "rotate(0)";
                    "vertical" ===
                      d.config.plotOptions.bar.dataLabels.orientation &&
                      (h = "rotate(-90, ".concat(t, ", ").concat(i, ")"));
                    var f = new H(this.barCtx.ctx),
                      p = new w(this.barCtx.ctx),
                      g = u.formatter,
                      m = null,
                      v = d.globals.collapsedSeriesIndices.indexOf(r) > -1;
                    if (u.enabled && !v) {
                      m = p.group({
                        class: "apexcharts-data-labels",
                        transform: h,
                      });
                      var b = "";
                      void 0 !== n &&
                        (b = g(
                          n,
                          a(
                            a({}, d),
                            {},
                            { seriesIndex: r, dataPointIndex: o, w: d }
                          )
                        ));
                      var y = d.globals.series[r][o] < 0,
                        x = d.config.plotOptions.bar.dataLabels.position;
                      "vertical" ===
                        d.config.plotOptions.bar.dataLabels.orientation &&
                        ("top" === x && (u.textAnchor = y ? "end" : "start"),
                        "center" === x && (u.textAnchor = "middle"),
                        "bottom" === x && (u.textAnchor = y ? "end" : "start")),
                        this.barCtx.isRangeBar &&
                          this.barCtx.barOptions.dataLabels
                            .hideOverflowingLabels &&
                          c <
                            p.getTextRects(b, parseFloat(u.style.fontSize))
                              .width &&
                          (b = ""),
                        d.config.chart.stacked &&
                          this.barCtx.barOptions.dataLabels
                            .hideOverflowingLabels &&
                          (this.barCtx.isHorizontal
                            ? s.width / 1.6 > Math.abs(c) && (b = "")
                            : s.height / 1.6 > Math.abs(l) && (b = ""));
                      var E = a({}, u);
                      this.barCtx.isHorizontal &&
                        n < 0 &&
                        ("start" === u.textAnchor
                          ? (E.textAnchor = "end")
                          : "end" === u.textAnchor && (E.textAnchor = "start")),
                        f.plotDataLabelsText({
                          x: t,
                          y: i,
                          text: b,
                          i: r,
                          j: o,
                          parent: m,
                          dataLabelsConfig: E,
                          alwaysDrawDataLabel: !0,
                          offsetCorrection: !0,
                        });
                    }
                    return m;
                  },
                },
                {
                  key: "drawTotalDataLabels",
                  value: function (e) {
                    var t,
                      i = e.x,
                      n = e.y,
                      r = e.val,
                      a = e.realIndex,
                      o = e.textAnchor,
                      s = e.barTotalDataLabelsConfig,
                      l = new w(this.barCtx.ctx);
                    return (
                      s.enabled &&
                        void 0 !== i &&
                        void 0 !== n &&
                        this.barCtx.lastActiveBarSerieIndex === a &&
                        (t = l.drawText({
                          x: i,
                          y: n,
                          foreColor: s.style.color,
                          text: r,
                          textAnchor: o,
                          fontFamily: s.style.fontFamily,
                          fontSize: s.style.fontSize,
                          fontWeight: s.style.fontWeight,
                        })),
                      t
                    );
                  },
                },
              ]),
              e
            );
          })(),
          we = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.barCtx = t);
            }
            return (
              c(e, [
                {
                  key: "initVariables",
                  value: function (e) {
                    var t = this.w;
                    (this.barCtx.series = e),
                      (this.barCtx.totalItems = 0),
                      (this.barCtx.seriesLen = 0),
                      (this.barCtx.visibleI = -1),
                      (this.barCtx.visibleItems = 1);
                    for (var i = 0; i < e.length; i++)
                      if (
                        (e[i].length > 0 &&
                          ((this.barCtx.seriesLen = this.barCtx.seriesLen + 1),
                          (this.barCtx.totalItems += e[i].length)),
                        t.globals.isXNumeric)
                      )
                        for (var n = 0; n < e[i].length; n++)
                          t.globals.seriesX[i][n] > t.globals.minX &&
                            t.globals.seriesX[i][n] < t.globals.maxX &&
                            this.barCtx.visibleItems++;
                      else this.barCtx.visibleItems = t.globals.dataPoints;
                    0 === this.barCtx.seriesLen && (this.barCtx.seriesLen = 1),
                      (this.barCtx.zeroSerieses = []),
                      (this.barCtx.radiusOnSeriesNumber = e.length - 1),
                      t.globals.comboCharts ||
                        this.checkZeroSeries({ series: e });
                  },
                },
                {
                  key: "initialPositions",
                  value: function () {
                    var e,
                      t,
                      i,
                      n,
                      r,
                      a,
                      o,
                      s,
                      l = this.w,
                      c = l.globals.dataPoints;
                    this.barCtx.isRangeBar && (c = l.globals.labels.length);
                    var u = this.barCtx.seriesLen;
                    if (
                      (l.config.plotOptions.bar.rangeBarGroupRows && (u = 1),
                      this.barCtx.isHorizontal)
                    )
                      (r = (i = l.globals.gridHeight / c) / u),
                        l.globals.isXNumeric &&
                          (r =
                            (i =
                              l.globals.gridHeight / this.barCtx.totalItems) /
                            this.barCtx.seriesLen),
                        (r =
                          (r * parseInt(this.barCtx.barOptions.barHeight, 10)) /
                          100),
                        (s =
                          this.barCtx.baseLineInvertedY +
                          l.globals.padHorizontal +
                          (this.barCtx.isReversed ? l.globals.gridWidth : 0) -
                          (this.barCtx.isReversed
                            ? 2 * this.barCtx.baseLineInvertedY
                            : 0)),
                        (t = (i - r * this.barCtx.seriesLen) / 2);
                    else {
                      if (
                        ((n = l.globals.gridWidth / this.barCtx.visibleItems),
                        l.config.xaxis.convertedCatToNumeric &&
                          (n = l.globals.gridWidth / l.globals.dataPoints),
                        (a =
                          ((n / this.barCtx.seriesLen) *
                            parseInt(this.barCtx.barOptions.columnWidth, 10)) /
                          100),
                        l.globals.isXNumeric)
                      ) {
                        var d = this.barCtx.xRatio;
                        l.config.xaxis.convertedCatToNumeric &&
                          (d = this.barCtx.initialXRatio),
                          l.globals.minXDiff &&
                            0.5 !== l.globals.minXDiff &&
                            l.globals.minXDiff / d > 0 &&
                            (n = l.globals.minXDiff / d),
                          (a =
                            ((n / this.barCtx.seriesLen) *
                              parseInt(
                                this.barCtx.barOptions.columnWidth,
                                10
                              )) /
                            100) < 1 && (a = 1);
                      }
                      (o =
                        l.globals.gridHeight -
                        this.barCtx.baseLineY[this.barCtx.yaxisIndex] -
                        (this.barCtx.isReversed ? l.globals.gridHeight : 0) +
                        (this.barCtx.isReversed
                          ? 2 * this.barCtx.baseLineY[this.barCtx.yaxisIndex]
                          : 0)),
                        (e =
                          l.globals.padHorizontal +
                          (n - a * this.barCtx.seriesLen) / 2);
                    }
                    return {
                      x: e,
                      y: t,
                      yDivision: i,
                      xDivision: n,
                      barHeight: r,
                      barWidth: a,
                      zeroH: o,
                      zeroW: s,
                    };
                  },
                },
                {
                  key: "getPathFillColor",
                  value: function (e, t, i, n) {
                    var r,
                      a,
                      o,
                      s,
                      l = this.w,
                      c = new B(this.barCtx.ctx),
                      u = null,
                      d = this.barCtx.barOptions.distributed ? i : t;
                    return (
                      this.barCtx.barOptions.colors.ranges.length > 0 &&
                        this.barCtx.barOptions.colors.ranges.map(function (n) {
                          e[t][i] >= n.from && e[t][i] <= n.to && (u = n.color);
                        }),
                      l.config.series[t].data[i] &&
                        l.config.series[t].data[i].fillColor &&
                        (u = l.config.series[t].data[i].fillColor),
                      c.fillPath({
                        seriesNumber: this.barCtx.barOptions.distributed
                          ? d
                          : n,
                        dataPointIndex: i,
                        color: u,
                        value: e[t][i],
                        fillConfig:
                          null === (r = l.config.series[t].data[i]) ||
                          void 0 === r
                            ? void 0
                            : r.fill,
                        fillType:
                          null !== (a = l.config.series[t].data[i]) &&
                          void 0 !== a &&
                          null !== (o = a.fill) &&
                          void 0 !== o &&
                          o.type
                            ? null === (s = l.config.series[t].data[i]) ||
                              void 0 === s
                              ? void 0
                              : s.fill.type
                            : l.config.fill.type,
                      })
                    );
                  },
                },
                {
                  key: "getStrokeWidth",
                  value: function (e, t, i) {
                    var n = 0,
                      r = this.w;
                    return (
                      void 0 === this.barCtx.series[e][t] ||
                      null === this.barCtx.series[e][t]
                        ? (this.barCtx.isNullValue = !0)
                        : (this.barCtx.isNullValue = !1),
                      r.config.stroke.show &&
                        (this.barCtx.isNullValue ||
                          (n = Array.isArray(this.barCtx.strokeWidth)
                            ? this.barCtx.strokeWidth[i]
                            : this.barCtx.strokeWidth)),
                      n
                    );
                  },
                },
                {
                  key: "shouldApplyRadius",
                  value: function (e) {
                    var t = this.w,
                      i = !1;
                    return (
                      t.config.plotOptions.bar.borderRadius > 0 &&
                        (t.config.chart.stacked &&
                        "last" ===
                          t.config.plotOptions.bar.borderRadiusWhenStacked
                          ? this.barCtx.lastActiveBarSerieIndex === e &&
                            (i = !0)
                          : (i = !0)),
                      i
                    );
                  },
                },
                {
                  key: "barBackground",
                  value: function (e) {
                    var t = e.j,
                      i = e.i,
                      n = e.x1,
                      r = e.x2,
                      a = e.y1,
                      o = e.y2,
                      s = e.elSeries,
                      l = this.w,
                      c = new w(this.barCtx.ctx),
                      u = new Y(this.barCtx.ctx).getActiveConfigSeriesIndex();
                    if (
                      this.barCtx.barOptions.colors.backgroundBarColors.length >
                        0 &&
                      u === i
                    ) {
                      t >=
                        this.barCtx.barOptions.colors.backgroundBarColors
                          .length &&
                        (t %=
                          this.barCtx.barOptions.colors.backgroundBarColors
                            .length);
                      var d =
                          this.barCtx.barOptions.colors.backgroundBarColors[t],
                        h = c.drawRect(
                          void 0 !== n ? n : 0,
                          void 0 !== a ? a : 0,
                          void 0 !== r ? r : l.globals.gridWidth,
                          void 0 !== o ? o : l.globals.gridHeight,
                          this.barCtx.barOptions.colors.backgroundBarRadius,
                          d,
                          this.barCtx.barOptions.colors.backgroundBarOpacity
                        );
                      s.add(h),
                        h.node.classList.add("apexcharts-backgroundBar");
                    }
                  },
                },
                {
                  key: "getColumnPaths",
                  value: function (e) {
                    var t,
                      i = e.barWidth,
                      n = e.barXPosition,
                      r = e.y1,
                      a = e.y2,
                      o = e.strokeWidth,
                      s = e.realIndex,
                      l = e.i,
                      c = e.j,
                      u = e.w,
                      d = new w(this.barCtx.ctx);
                    (o = Array.isArray(o) ? o[s] : o) || (o = 0);
                    var h = i,
                      f = n;
                    null !== (t = u.config.series[s].data[c]) &&
                      void 0 !== t &&
                      t.columnWidthOffset &&
                      ((f =
                        n - u.config.series[s].data[c].columnWidthOffset / 2),
                      (h = i + u.config.series[s].data[c].columnWidthOffset));
                    var p = f,
                      g = f + h;
                    (r += 0.001), (a += 0.001);
                    var m = d.move(p, r),
                      v = d.move(p, r),
                      b = d.line(g - o, r);
                    return (
                      u.globals.previousPaths.length > 0 &&
                        (v = this.barCtx.getPreviousPath(s, c, !1)),
                      (m =
                        m +
                        d.line(p, a) +
                        d.line(g - o, a) +
                        d.line(g - o, r) +
                        ("around" ===
                        u.config.plotOptions.bar.borderRadiusApplication
                          ? " Z"
                          : " z")),
                      (v =
                        v +
                        d.line(p, r) +
                        b +
                        b +
                        b +
                        b +
                        b +
                        d.line(p, r) +
                        ("around" ===
                        u.config.plotOptions.bar.borderRadiusApplication
                          ? " Z"
                          : " z")),
                      this.shouldApplyRadius(s) &&
                        (m = d.roundPathCorners(
                          m,
                          u.config.plotOptions.bar.borderRadius
                        )),
                      u.config.chart.stacked &&
                        (this.barCtx.yArrj.push(a),
                        this.barCtx.yArrjF.push(Math.abs(r - a)),
                        this.barCtx.yArrjVal.push(this.barCtx.series[l][c])),
                      { pathTo: m, pathFrom: v }
                    );
                  },
                },
                {
                  key: "getBarpaths",
                  value: function (e) {
                    var t,
                      i = e.barYPosition,
                      n = e.barHeight,
                      r = e.x1,
                      a = e.x2,
                      o = e.strokeWidth,
                      s = e.realIndex,
                      l = e.i,
                      c = e.j,
                      u = e.w,
                      d = new w(this.barCtx.ctx);
                    (o = Array.isArray(o) ? o[s] : o) || (o = 0);
                    var h = i,
                      f = n;
                    null !== (t = u.config.series[s].data[c]) &&
                      void 0 !== t &&
                      t.barHeightOffset &&
                      ((h = i - u.config.series[s].data[c].barHeightOffset / 2),
                      (f = n + u.config.series[s].data[c].barHeightOffset));
                    var p = h,
                      g = h + f;
                    (r += 0.001), (a += 0.001);
                    var m = d.move(r, p),
                      v = d.move(r, p);
                    u.globals.previousPaths.length > 0 &&
                      (v = this.barCtx.getPreviousPath(s, c, !1));
                    var b = d.line(r, g - o);
                    return (
                      (m =
                        m +
                        d.line(a, p) +
                        d.line(a, g - o) +
                        b +
                        ("around" ===
                        u.config.plotOptions.bar.borderRadiusApplication
                          ? " Z"
                          : " z")),
                      (v =
                        v +
                        d.line(r, p) +
                        b +
                        b +
                        b +
                        b +
                        b +
                        d.line(r, p) +
                        ("around" ===
                        u.config.plotOptions.bar.borderRadiusApplication
                          ? " Z"
                          : " z")),
                      this.shouldApplyRadius(s) &&
                        (m = d.roundPathCorners(
                          m,
                          u.config.plotOptions.bar.borderRadius
                        )),
                      u.config.chart.stacked &&
                        (this.barCtx.xArrj.push(a),
                        this.barCtx.xArrjF.push(Math.abs(r - a)),
                        this.barCtx.xArrjVal.push(this.barCtx.series[l][c])),
                      { pathTo: m, pathFrom: v }
                    );
                  },
                },
                {
                  key: "checkZeroSeries",
                  value: function (e) {
                    for (
                      var t = e.series, i = this.w, n = 0;
                      n < t.length;
                      n++
                    ) {
                      for (
                        var r = 0, a = 0;
                        a < t[i.globals.maxValsInArrayIndex].length;
                        a++
                      )
                        r += t[n][a];
                      0 === r && this.barCtx.zeroSerieses.push(n);
                    }
                    for (var o = t.length - 1; o >= 0; o--)
                      this.barCtx.zeroSerieses.indexOf(o) > -1 &&
                        o === this.radiusOnSeriesNumber &&
                        (this.barCtx.radiusOnSeriesNumber -= 1);
                    for (var s = t.length - 1; s >= 0; s--)
                      i.globals.collapsedSeriesIndices.indexOf(
                        this.barCtx.radiusOnSeriesNumber
                      ) > -1 && (this.barCtx.radiusOnSeriesNumber -= 1);
                  },
                },
                {
                  key: "getXForValue",
                  value: function (e, t) {
                    var i =
                      !(arguments.length > 2 && void 0 !== arguments[2]) ||
                      arguments[2]
                        ? t
                        : null;
                    return (
                      null != e &&
                        (i =
                          t +
                          e / this.barCtx.invertedYRatio -
                          2 *
                            (this.barCtx.isReversed
                              ? e / this.barCtx.invertedYRatio
                              : 0)),
                      i
                    );
                  },
                },
                {
                  key: "getYForValue",
                  value: function (e, t) {
                    var i =
                      !(arguments.length > 2 && void 0 !== arguments[2]) ||
                      arguments[2]
                        ? t
                        : null;
                    return (
                      null != e &&
                        (i =
                          t -
                          e / this.barCtx.yRatio[this.barCtx.yaxisIndex] +
                          2 *
                            (this.barCtx.isReversed
                              ? e / this.barCtx.yRatio[this.barCtx.yaxisIndex]
                              : 0)),
                      i
                    );
                  },
                },
                {
                  key: "getGoalValues",
                  value: function (e, t, i, n, r) {
                    var a = this,
                      o = this.w,
                      s = [];
                    return (
                      o.globals.seriesGoals[n] &&
                        o.globals.seriesGoals[n][r] &&
                        Array.isArray(o.globals.seriesGoals[n][r]) &&
                        o.globals.seriesGoals[n][r].forEach(function (n) {
                          var r;
                          s.push(
                            (u(
                              (r = {}),
                              e,
                              "x" === e
                                ? a.getXForValue(n.value, t, !1)
                                : a.getYForValue(n.value, i, !1)
                            ),
                            u(r, "attrs", n),
                            r)
                          );
                        }),
                      s
                    );
                  },
                },
                {
                  key: "drawGoalLine",
                  value: function (e) {
                    var t = e.barXPosition,
                      i = e.barYPosition,
                      n = e.goalX,
                      r = e.goalY,
                      a = e.barWidth,
                      o = e.barHeight,
                      s = new w(this.barCtx.ctx),
                      l = s.group({ className: "apexcharts-bar-goals-groups" }),
                      c = null;
                    return (
                      this.barCtx.isHorizontal
                        ? Array.isArray(n) &&
                          n.forEach(function (e) {
                            var t =
                                void 0 !== e.attrs.strokeHeight
                                  ? e.attrs.strokeHeight
                                  : o / 2,
                              n = i + t + o / 2;
                            (c = s.drawLine(
                              e.x,
                              n - 2 * t,
                              e.x,
                              n,
                              e.attrs.strokeColor
                                ? e.attrs.strokeColor
                                : void 0,
                              e.attrs.strokeDashArray,
                              e.attrs.strokeWidth ? e.attrs.strokeWidth : 2,
                              e.attrs.strokeLineCap
                            )),
                              l.add(c);
                          })
                        : Array.isArray(r) &&
                          r.forEach(function (e) {
                            var i =
                                void 0 !== e.attrs.strokeWidth
                                  ? e.attrs.strokeWidth
                                  : a / 2,
                              n = t + i + a / 2;
                            (c = s.drawLine(
                              n - 2 * i,
                              e.y,
                              n,
                              e.y,
                              e.attrs.strokeColor
                                ? e.attrs.strokeColor
                                : void 0,
                              e.attrs.strokeDashArray,
                              e.attrs.strokeHeight ? e.attrs.strokeHeight : 2,
                              e.attrs.strokeLineCap
                            )),
                              l.add(c);
                          }),
                      l
                    );
                  },
                },
              ]),
              e
            );
          })(),
          Ee = (function () {
            function e(t, i) {
              s(this, e), (this.ctx = t), (this.w = t.w);
              var n = this.w;
              (this.barOptions = n.config.plotOptions.bar),
                (this.isHorizontal = this.barOptions.horizontal),
                (this.strokeWidth = n.config.stroke.width),
                (this.isNullValue = !1),
                (this.isRangeBar =
                  n.globals.seriesRange.length && this.isHorizontal),
                (this.xyRatios = i),
                null !== this.xyRatios &&
                  ((this.xRatio = i.xRatio),
                  (this.initialXRatio = i.initialXRatio),
                  (this.yRatio = i.yRatio),
                  (this.invertedXRatio = i.invertedXRatio),
                  (this.invertedYRatio = i.invertedYRatio),
                  (this.baseLineY = i.baseLineY),
                  (this.baseLineInvertedY = i.baseLineInvertedY)),
                (this.yaxisIndex = 0),
                (this.seriesLen = 0);
              var r = new Y(this.ctx);
              this.lastActiveBarSerieIndex = r.getActiveConfigSeriesIndex(
                "desc",
                ["bar", "column"]
              );
              var a = r.getBarSeriesIndices(),
                o = new E(this.ctx);
              (this.stackedSeriesTotals = o.getStackedSeriesTotals(
                this.w.config.series
                  .map(function (e, t) {
                    return -1 === a.indexOf(t) ? t : -1;
                  })
                  .filter(function (e) {
                    return -1 !== e;
                  })
              )),
                (this.barHelpers = new we(this));
            }
            return (
              c(e, [
                {
                  key: "draw",
                  value: function (e, t) {
                    var i = this.w,
                      n = new w(this.ctx),
                      r = new E(this.ctx, i);
                    (e = r.getLogSeries(e)),
                      (this.series = e),
                      (this.yRatio = r.getLogYRatios(this.yRatio)),
                      this.barHelpers.initVariables(e);
                    var o = n.group({
                      class: "apexcharts-bar-series apexcharts-plot-series",
                    });
                    i.config.dataLabels.enabled &&
                      this.totalItems > this.barOptions.dataLabels.maxItems &&
                      console.warn(
                        "WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering."
                      );
                    for (var s = 0, l = 0; s < e.length; s++, l++) {
                      var c,
                        u,
                        d,
                        h,
                        f = void 0,
                        p = void 0,
                        g = [],
                        m = [],
                        v = i.globals.comboCharts ? t[s] : s,
                        y = n.group({
                          class: "apexcharts-series",
                          rel: s + 1,
                          seriesName: b.escapeString(i.globals.seriesNames[v]),
                          "data:realIndex": v,
                        });
                      this.ctx.series.addCollapsedClassToSeries(y, v),
                        e[s].length > 0 && (this.visibleI = this.visibleI + 1);
                      var x = 0,
                        _ = 0;
                      this.yRatio.length > 1 && (this.yaxisIndex = v),
                        (this.isReversed =
                          i.config.yaxis[this.yaxisIndex] &&
                          i.config.yaxis[this.yaxisIndex].reversed);
                      var S = this.barHelpers.initialPositions();
                      (p = S.y),
                        (x = S.barHeight),
                        (u = S.yDivision),
                        (h = S.zeroW),
                        (f = S.x),
                        (_ = S.barWidth),
                        (c = S.xDivision),
                        (d = S.zeroH),
                        this.horizontal || m.push(f + _ / 2);
                      for (
                        var A = n.group({
                            class: "apexcharts-datalabels",
                            "data:realIndex": v,
                          }),
                          k = n.group({
                            class: "apexcharts-bar-goals-markers",
                            style: "pointer-events: none",
                          }),
                          T = 0;
                        T < i.globals.dataPoints;
                        T++
                      ) {
                        var C = this.barHelpers.getStrokeWidth(s, T, v),
                          O = null,
                          I = {
                            indexes: { i: s, j: T, realIndex: v, bc: l },
                            x: f,
                            y: p,
                            strokeWidth: C,
                            elSeries: y,
                          };
                        this.isHorizontal
                          ? ((O = this.drawBarPaths(
                              a(
                                a({}, I),
                                {},
                                { barHeight: x, zeroW: h, yDivision: u }
                              )
                            )),
                            (_ = this.series[s][T] / this.invertedYRatio))
                          : ((O = this.drawColumnPaths(
                              a(
                                a({}, I),
                                {},
                                { xDivision: c, barWidth: _, zeroH: d }
                              )
                            )),
                            (x =
                              this.series[s][T] /
                              this.yRatio[this.yaxisIndex]));
                        var M = this.barHelpers.drawGoalLine({
                          barXPosition: O.barXPosition,
                          barYPosition: O.barYPosition,
                          goalX: O.goalX,
                          goalY: O.goalY,
                          barHeight: x,
                          barWidth: _,
                        });
                        M && k.add(M),
                          (p = O.y),
                          (f = O.x),
                          T > 0 && m.push(f + _ / 2),
                          g.push(p);
                        var L = this.barHelpers.getPathFillColor(e, s, T, v);
                        this.renderSeries({
                          realIndex: v,
                          pathFill: L,
                          j: T,
                          i: s,
                          pathFrom: O.pathFrom,
                          pathTo: O.pathTo,
                          strokeWidth: C,
                          elSeries: y,
                          x: f,
                          y: p,
                          series: e,
                          barHeight: x,
                          barWidth: _,
                          elDataLabelsWrap: A,
                          elGoalsMarkers: k,
                          visibleSeries: this.visibleI,
                          type: "bar",
                        });
                      }
                      (i.globals.seriesXvalues[v] = m),
                        (i.globals.seriesYvalues[v] = g),
                        o.add(y);
                    }
                    return o;
                  },
                },
                {
                  key: "renderSeries",
                  value: function (e) {
                    var t = e.realIndex,
                      i = e.pathFill,
                      n = e.lineFill,
                      r = e.j,
                      a = e.i,
                      o = e.pathFrom,
                      s = e.pathTo,
                      l = e.strokeWidth,
                      c = e.elSeries,
                      u = e.x,
                      d = e.y,
                      h = e.y1,
                      f = e.y2,
                      p = e.series,
                      g = e.barHeight,
                      m = e.barWidth,
                      v = e.barYPosition,
                      b = e.elDataLabelsWrap,
                      y = e.elGoalsMarkers,
                      E = e.visibleSeries,
                      _ = e.type,
                      S = this.w,
                      A = new w(this.ctx);
                    n ||
                      (n = this.barOptions.distributed
                        ? S.globals.stroke.colors[r]
                        : S.globals.stroke.colors[t]),
                      S.config.series[a].data[r] &&
                        S.config.series[a].data[r].strokeColor &&
                        (n = S.config.series[a].data[r].strokeColor),
                      this.isNullValue && (i = "none");
                    var k =
                        ((r /
                          S.config.chart.animations.animateGradually.delay) *
                          (S.config.chart.animations.speed /
                            S.globals.dataPoints)) /
                        2.4,
                      T = A.renderPaths({
                        i: a,
                        j: r,
                        realIndex: t,
                        pathFrom: o,
                        pathTo: s,
                        stroke: n,
                        strokeWidth: l,
                        strokeLineCap: S.config.stroke.lineCap,
                        fill: i,
                        animationDelay: k,
                        initialSpeed: S.config.chart.animations.speed,
                        dataChangeSpeed:
                          S.config.chart.animations.dynamicAnimation.speed,
                        className: "apexcharts-".concat(_, "-area"),
                      });
                    T.attr(
                      "clip-path",
                      "url(#gridRectMask".concat(S.globals.cuid, ")")
                    );
                    var C = S.config.forecastDataPoints;
                    C.count > 0 &&
                      r >= S.globals.dataPoints - C.count &&
                      (T.node.setAttribute("stroke-dasharray", C.dashArray),
                      T.node.setAttribute("stroke-width", C.strokeWidth),
                      T.node.setAttribute("fill-opacity", C.fillOpacity)),
                      void 0 !== h &&
                        void 0 !== f &&
                        (T.attr("data-range-y1", h),
                        T.attr("data-range-y2", f)),
                      new x(this.ctx).setSelectionFilter(T, t, r),
                      c.add(T);
                    var O = new xe(this).handleBarDataLabels({
                      x: u,
                      y: d,
                      y1: h,
                      y2: f,
                      i: a,
                      j: r,
                      series: p,
                      realIndex: t,
                      barHeight: g,
                      barWidth: m,
                      barYPosition: v,
                      renderedPath: T,
                      visibleSeries: E,
                    });
                    return (
                      null !== O.dataLabels && b.add(O.dataLabels),
                      O.totalDataLabels && b.add(O.totalDataLabels),
                      c.add(b),
                      y && c.add(y),
                      c
                    );
                  },
                },
                {
                  key: "drawBarPaths",
                  value: function (e) {
                    var t = e.indexes,
                      i = e.barHeight,
                      n = e.strokeWidth,
                      r = e.zeroW,
                      a = e.x,
                      o = e.y,
                      s = e.yDivision,
                      l = e.elSeries,
                      c = this.w,
                      u = t.i,
                      d = t.j;
                    c.globals.isXNumeric &&
                      (o =
                        (c.globals.seriesX[u][d] - c.globals.minX) /
                          this.invertedXRatio -
                        i);
                    var h = o + i * this.visibleI;
                    a = this.barHelpers.getXForValue(this.series[u][d], r);
                    var f = this.barHelpers.getBarpaths({
                      barYPosition: h,
                      barHeight: i,
                      x1: r,
                      x2: a,
                      strokeWidth: n,
                      series: this.series,
                      realIndex: t.realIndex,
                      i: u,
                      j: d,
                      w: c,
                    });
                    return (
                      c.globals.isXNumeric || (o += s),
                      this.barHelpers.barBackground({
                        j: d,
                        i: u,
                        y1: h - i * this.visibleI,
                        y2: i * this.seriesLen,
                        elSeries: l,
                      }),
                      {
                        pathTo: f.pathTo,
                        pathFrom: f.pathFrom,
                        x: a,
                        y: o,
                        goalX: this.barHelpers.getGoalValues(
                          "x",
                          r,
                          null,
                          u,
                          d
                        ),
                        barYPosition: h,
                      }
                    );
                  },
                },
                {
                  key: "drawColumnPaths",
                  value: function (e) {
                    var t = e.indexes,
                      i = e.x,
                      n = e.y,
                      r = e.xDivision,
                      a = e.barWidth,
                      o = e.zeroH,
                      s = e.strokeWidth,
                      l = e.elSeries,
                      c = this.w,
                      u = t.realIndex,
                      d = t.i,
                      h = t.j,
                      f = t.bc;
                    if (c.globals.isXNumeric) {
                      var p = u;
                      c.globals.seriesX[u].length ||
                        (p = c.globals.maxValsInArrayIndex),
                        c.globals.seriesX[p][h] &&
                          (i =
                            (c.globals.seriesX[p][h] - c.globals.minX) /
                              this.xRatio -
                            (a * this.seriesLen) / 2);
                    }
                    var g = i + a * this.visibleI;
                    n = this.barHelpers.getYForValue(this.series[d][h], o);
                    var m = this.barHelpers.getColumnPaths({
                      barXPosition: g,
                      barWidth: a,
                      y1: o,
                      y2: n,
                      strokeWidth: s,
                      series: this.series,
                      realIndex: t.realIndex,
                      i: d,
                      j: h,
                      w: c,
                    });
                    return (
                      c.globals.isXNumeric || (i += r),
                      this.barHelpers.barBackground({
                        bc: f,
                        j: h,
                        i: d,
                        x1: g - s / 2 - a * this.visibleI,
                        x2: a * this.seriesLen + s / 2,
                        elSeries: l,
                      }),
                      {
                        pathTo: m.pathTo,
                        pathFrom: m.pathFrom,
                        x: i,
                        y: n,
                        goalY: this.barHelpers.getGoalValues(
                          "y",
                          null,
                          o,
                          d,
                          h
                        ),
                        barXPosition: g,
                      }
                    );
                  },
                },
                {
                  key: "getPreviousPath",
                  value: function (e, t) {
                    for (
                      var i, n = this.w, r = 0;
                      r < n.globals.previousPaths.length;
                      r++
                    ) {
                      var a = n.globals.previousPaths[r];
                      a.paths &&
                        a.paths.length > 0 &&
                        parseInt(a.realIndex, 10) === parseInt(e, 10) &&
                        void 0 !== n.globals.previousPaths[r].paths[t] &&
                        (i = n.globals.previousPaths[r].paths[t].d);
                    }
                    return i;
                  },
                },
              ]),
              e
            );
          })(),
          _e = (function (e) {
            d(i, Ee);
            var t = p(i);
            function i() {
              return s(this, i), t.apply(this, arguments);
            }
            return (
              c(i, [
                {
                  key: "draw",
                  value: function (e, t) {
                    var i = this,
                      n = this.w;
                    (this.graphics = new w(this.ctx)),
                      (this.bar = new Ee(this.ctx, this.xyRatios));
                    var r = new E(this.ctx, n);
                    (e = r.getLogSeries(e)),
                      (this.yRatio = r.getLogYRatios(this.yRatio)),
                      this.barHelpers.initVariables(e),
                      "100%" === n.config.chart.stackType &&
                        (e = n.globals.seriesPercent.slice()),
                      (this.series = e),
                      (this.totalItems = 0),
                      (this.prevY = []),
                      (this.prevX = []),
                      (this.prevYF = []),
                      (this.prevXF = []),
                      (this.prevYVal = []),
                      (this.prevXVal = []),
                      (this.xArrj = []),
                      (this.xArrjF = []),
                      (this.xArrjVal = []),
                      (this.yArrj = []),
                      (this.yArrjF = []),
                      (this.yArrjVal = []);
                    for (var o = 0; o < e.length; o++)
                      e[o].length > 0 && (this.totalItems += e[o].length);
                    for (
                      var s = this.graphics.group({
                          class: "apexcharts-bar-series apexcharts-plot-series",
                        }),
                        l = 0,
                        c = 0,
                        u = function (r, o) {
                          var u = void 0,
                            d = void 0,
                            h = void 0,
                            f = void 0,
                            p = [],
                            g = [],
                            m = n.globals.comboCharts ? t[r] : r;
                          i.yRatio.length > 1 && (i.yaxisIndex = m),
                            (i.isReversed =
                              n.config.yaxis[i.yaxisIndex] &&
                              n.config.yaxis[i.yaxisIndex].reversed);
                          var v = i.graphics.group({
                            class: "apexcharts-series",
                            seriesName: b.escapeString(
                              n.globals.seriesNames[m]
                            ),
                            rel: r + 1,
                            "data:realIndex": m,
                          });
                          i.ctx.series.addCollapsedClassToSeries(v, m);
                          var y = i.graphics.group({
                              class: "apexcharts-datalabels",
                              "data:realIndex": m,
                            }),
                            x = i.graphics.group({
                              class: "apexcharts-bar-goals-markers",
                              style: "pointer-events: none",
                            }),
                            w = 0,
                            E = 0,
                            _ = i.initialPositions(l, c, u, d, h, f);
                          (c = _.y),
                            (w = _.barHeight),
                            (d = _.yDivision),
                            (f = _.zeroW),
                            (l = _.x),
                            (E = _.barWidth),
                            (u = _.xDivision),
                            (h = _.zeroH),
                            (i.yArrj = []),
                            (i.yArrjF = []),
                            (i.yArrjVal = []),
                            (i.xArrj = []),
                            (i.xArrjF = []),
                            (i.xArrjVal = []),
                            1 === i.prevY.length &&
                              i.prevY[0].every(function (e) {
                                return isNaN(e);
                              }) &&
                              ((i.prevY[0] = i.prevY[0].map(function (e) {
                                return h;
                              })),
                              (i.prevYF[0] = i.prevYF[0].map(function (e) {
                                return 0;
                              })));
                          for (var S = 0; S < n.globals.dataPoints; S++) {
                            var A = i.barHelpers.getStrokeWidth(r, S, m),
                              k = {
                                indexes: { i: r, j: S, realIndex: m, bc: o },
                                strokeWidth: A,
                                x: l,
                                y: c,
                                elSeries: v,
                              },
                              T = null;
                            i.isHorizontal
                              ? ((T = i.drawStackedBarPaths(
                                  a(
                                    a({}, k),
                                    {},
                                    { zeroW: f, barHeight: w, yDivision: d }
                                  )
                                )),
                                (E = i.series[r][S] / i.invertedYRatio))
                              : ((T = i.drawStackedColumnPaths(
                                  a(
                                    a({}, k),
                                    {},
                                    { xDivision: u, barWidth: E, zeroH: h }
                                  )
                                )),
                                (w = i.series[r][S] / i.yRatio[i.yaxisIndex]));
                            var C = i.barHelpers.drawGoalLine({
                              barXPosition: T.barXPosition,
                              barYPosition: T.barYPosition,
                              goalX: T.goalX,
                              goalY: T.goalY,
                              barHeight: w,
                              barWidth: E,
                            });
                            C && x.add(C),
                              (c = T.y),
                              (l = T.x),
                              p.push(l),
                              g.push(c);
                            var O = i.barHelpers.getPathFillColor(e, r, S, m);
                            v = i.renderSeries({
                              realIndex: m,
                              pathFill: O,
                              j: S,
                              i: r,
                              pathFrom: T.pathFrom,
                              pathTo: T.pathTo,
                              strokeWidth: A,
                              elSeries: v,
                              x: l,
                              y: c,
                              series: e,
                              barHeight: w,
                              barWidth: E,
                              elDataLabelsWrap: y,
                              elGoalsMarkers: x,
                              type: "bar",
                              visibleSeries: 0,
                            });
                          }
                          (n.globals.seriesXvalues[m] = p),
                            (n.globals.seriesYvalues[m] = g),
                            i.prevY.push(i.yArrj),
                            i.prevYF.push(i.yArrjF),
                            i.prevYVal.push(i.yArrjVal),
                            i.prevX.push(i.xArrj),
                            i.prevXF.push(i.xArrjF),
                            i.prevXVal.push(i.xArrjVal),
                            s.add(v);
                        },
                        d = 0,
                        h = 0;
                      d < e.length;
                      d++, h++
                    )
                      u(d, h);
                    return s;
                  },
                },
                {
                  key: "initialPositions",
                  value: function (e, t, i, n, r, a) {
                    var o,
                      s,
                      l = this.w;
                    return (
                      this.isHorizontal
                        ? ((o =
                            ((o = n =
                              l.globals.gridHeight / l.globals.dataPoints) *
                              parseInt(
                                l.config.plotOptions.bar.barHeight,
                                10
                              )) /
                            100),
                          (a =
                            this.baseLineInvertedY +
                            l.globals.padHorizontal +
                            (this.isReversed ? l.globals.gridWidth : 0) -
                            (this.isReversed ? 2 * this.baseLineInvertedY : 0)),
                          (t = (n - o) / 2))
                        : ((s = i = l.globals.gridWidth / l.globals.dataPoints),
                          (s =
                            l.globals.isXNumeric && l.globals.dataPoints > 1
                              ? ((i = l.globals.minXDiff / this.xRatio) *
                                  parseInt(this.barOptions.columnWidth, 10)) /
                                100
                              : (s *
                                  parseInt(
                                    l.config.plotOptions.bar.columnWidth,
                                    10
                                  )) /
                                100),
                          (r =
                            l.globals.gridHeight -
                            this.baseLineY[this.yaxisIndex] -
                            (this.isReversed ? l.globals.gridHeight : 0) +
                            (this.isReversed
                              ? 2 * this.baseLineY[this.yaxisIndex]
                              : 0)),
                          (e = l.globals.padHorizontal + (i - s) / 2)),
                      {
                        x: e,
                        y: t,
                        yDivision: n,
                        xDivision: i,
                        barHeight: o,
                        barWidth: s,
                        zeroH: r,
                        zeroW: a,
                      }
                    );
                  },
                },
                {
                  key: "drawStackedBarPaths",
                  value: function (e) {
                    for (
                      var t,
                        i = e.indexes,
                        n = e.barHeight,
                        r = e.strokeWidth,
                        a = e.zeroW,
                        o = e.x,
                        s = e.y,
                        l = e.yDivision,
                        c = e.elSeries,
                        u = this.w,
                        d = s,
                        h = i.i,
                        f = i.j,
                        p = 0,
                        g = 0;
                      g < this.prevXF.length;
                      g++
                    )
                      p += this.prevXF[g][f];
                    if (h > 0) {
                      var m = a;
                      this.prevXVal[h - 1][f] < 0
                        ? (m =
                            this.series[h][f] >= 0
                              ? this.prevX[h - 1][f] +
                                p -
                                2 * (this.isReversed ? p : 0)
                              : this.prevX[h - 1][f])
                        : this.prevXVal[h - 1][f] >= 0 &&
                          (m =
                            this.series[h][f] >= 0
                              ? this.prevX[h - 1][f]
                              : this.prevX[h - 1][f] -
                                p +
                                2 * (this.isReversed ? p : 0)),
                        (t = m);
                    } else t = a;
                    o =
                      null === this.series[h][f]
                        ? t
                        : t +
                          this.series[h][f] / this.invertedYRatio -
                          2 *
                            (this.isReversed
                              ? this.series[h][f] / this.invertedYRatio
                              : 0);
                    var v = this.barHelpers.getBarpaths({
                      barYPosition: d,
                      barHeight: n,
                      x1: t,
                      x2: o,
                      strokeWidth: r,
                      series: this.series,
                      realIndex: i.realIndex,
                      i: h,
                      j: f,
                      w: u,
                    });
                    return (
                      this.barHelpers.barBackground({
                        j: f,
                        i: h,
                        y1: d,
                        y2: n,
                        elSeries: c,
                      }),
                      (s += l),
                      {
                        pathTo: v.pathTo,
                        pathFrom: v.pathFrom,
                        goalX: this.barHelpers.getGoalValues(
                          "x",
                          a,
                          null,
                          h,
                          f
                        ),
                        barYPosition: d,
                        x: o,
                        y: s,
                      }
                    );
                  },
                },
                {
                  key: "drawStackedColumnPaths",
                  value: function (e) {
                    var t = e.indexes,
                      i = e.x,
                      n = e.y,
                      r = e.xDivision,
                      a = e.barWidth,
                      o = e.zeroH;
                    e.strokeWidth;
                    var s = e.elSeries,
                      l = this.w,
                      c = t.i,
                      u = t.j,
                      d = t.bc;
                    if (l.globals.isXNumeric) {
                      var h = l.globals.seriesX[c][u];
                      h || (h = 0),
                        (i = (h - l.globals.minX) / this.xRatio - a / 2);
                    }
                    for (
                      var f, p = i, g = 0, m = 0;
                      m < this.prevYF.length;
                      m++
                    )
                      g += isNaN(this.prevYF[m][u]) ? 0 : this.prevYF[m][u];
                    if (
                      (c > 0 && !l.globals.isXNumeric) ||
                      (c > 0 &&
                        l.globals.isXNumeric &&
                        l.globals.seriesX[c - 1][u] === l.globals.seriesX[c][u])
                    ) {
                      var v,
                        b,
                        y = Math.min(this.yRatio.length + 1, c + 1);
                      if (void 0 !== this.prevY[c - 1])
                        for (var x = 1; x < y; x++)
                          if (!isNaN(this.prevY[c - x][u])) {
                            b = this.prevY[c - x][u];
                            break;
                          }
                      for (var w = 1; w < y; w++) {
                        if (this.prevYVal[c - w][u] < 0) {
                          v =
                            this.series[c][u] >= 0
                              ? b - g + 2 * (this.isReversed ? g : 0)
                              : b;
                          break;
                        }
                        if (this.prevYVal[c - w][u] >= 0) {
                          v =
                            this.series[c][u] >= 0
                              ? b
                              : b + g - 2 * (this.isReversed ? g : 0);
                          break;
                        }
                      }
                      void 0 === v && (v = l.globals.gridHeight),
                        (f =
                          this.prevYF[0].every(function (e) {
                            return 0 === e;
                          }) &&
                          this.prevYF.slice(1, c).every(function (e) {
                            return e.every(function (e) {
                              return isNaN(e);
                            });
                          })
                            ? o
                            : v);
                    } else f = o;
                    n = this.series[c][u]
                      ? f -
                        this.series[c][u] / this.yRatio[this.yaxisIndex] +
                        2 *
                          (this.isReversed
                            ? this.series[c][u] / this.yRatio[this.yaxisIndex]
                            : 0)
                      : f;
                    var E = this.barHelpers.getColumnPaths({
                      barXPosition: p,
                      barWidth: a,
                      y1: f,
                      y2: n,
                      yRatio: this.yRatio[this.yaxisIndex],
                      strokeWidth: this.strokeWidth,
                      series: this.series,
                      realIndex: t.realIndex,
                      i: c,
                      j: u,
                      w: l,
                    });
                    return (
                      this.barHelpers.barBackground({
                        bc: d,
                        j: u,
                        i: c,
                        x1: p,
                        x2: a,
                        elSeries: s,
                      }),
                      (i += r),
                      {
                        pathTo: E.pathTo,
                        pathFrom: E.pathFrom,
                        goalY: this.barHelpers.getGoalValues(
                          "y",
                          null,
                          o,
                          c,
                          u
                        ),
                        barXPosition: p,
                        x: l.globals.isXNumeric ? i - r : i,
                        y: n,
                      }
                    );
                  },
                },
              ]),
              i
            );
          })(),
          Se = (function (e) {
            d(i, Ee);
            var t = p(i);
            function i() {
              return s(this, i), t.apply(this, arguments);
            }
            return (
              c(i, [
                {
                  key: "draw",
                  value: function (e, t) {
                    var i = this,
                      n = this.w,
                      r = new w(this.ctx),
                      o = new B(this.ctx);
                    (this.candlestickOptions =
                      this.w.config.plotOptions.candlestick),
                      (this.boxOptions = this.w.config.plotOptions.boxPlot),
                      (this.isHorizontal = n.config.plotOptions.bar.horizontal);
                    var s = new E(this.ctx, n);
                    (e = s.getLogSeries(e)),
                      (this.series = e),
                      (this.yRatio = s.getLogYRatios(this.yRatio)),
                      this.barHelpers.initVariables(e);
                    for (
                      var l = r.group({
                          class: "apexcharts-".concat(
                            n.config.chart.type,
                            "-series apexcharts-plot-series"
                          ),
                        }),
                        c = function (s) {
                          i.isBoxPlot =
                            "boxPlot" === n.config.chart.type ||
                            "boxPlot" === n.config.series[s].type;
                          var c,
                            u,
                            d,
                            h,
                            f,
                            p,
                            g = void 0,
                            m = void 0,
                            v = [],
                            y = [],
                            x = n.globals.comboCharts ? t[s] : s,
                            w = r.group({
                              class: "apexcharts-series",
                              seriesName: b.escapeString(
                                n.globals.seriesNames[x]
                              ),
                              rel: s + 1,
                              "data:realIndex": x,
                            });
                          i.ctx.series.addCollapsedClassToSeries(w, x),
                            e[s].length > 0 && (i.visibleI = i.visibleI + 1),
                            i.yRatio.length > 1 && (i.yaxisIndex = x);
                          var E = i.barHelpers.initialPositions();
                          (m = E.y),
                            (f = E.barHeight),
                            (u = E.yDivision),
                            (h = E.zeroW),
                            (g = E.x),
                            (p = E.barWidth),
                            (c = E.xDivision),
                            (d = E.zeroH),
                            y.push(g + p / 2);
                          for (
                            var _ = r.group({
                                class: "apexcharts-datalabels",
                                "data:realIndex": x,
                              }),
                              S = function (t) {
                                var r = i.barHelpers.getStrokeWidth(s, t, x),
                                  l = null,
                                  b = {
                                    indexes: { i: s, j: t, realIndex: x },
                                    x: g,
                                    y: m,
                                    strokeWidth: r,
                                    elSeries: w,
                                  };
                                (l = i.isHorizontal
                                  ? i.drawHorizontalBoxPaths(
                                      a(
                                        a({}, b),
                                        {},
                                        { yDivision: u, barHeight: f, zeroW: h }
                                      )
                                    )
                                  : i.drawVerticalBoxPaths(
                                      a(
                                        a({}, b),
                                        {},
                                        { xDivision: c, barWidth: p, zeroH: d }
                                      )
                                    )),
                                  (m = l.y),
                                  (g = l.x),
                                  t > 0 && y.push(g + p / 2),
                                  v.push(m),
                                  l.pathTo.forEach(function (a, c) {
                                    var u =
                                        !i.isBoxPlot &&
                                        i.candlestickOptions.wick.useFillColor
                                          ? l.color[c]
                                          : n.globals.stroke.colors[s],
                                      d = o.fillPath({
                                        seriesNumber: x,
                                        dataPointIndex: t,
                                        color: l.color[c],
                                        value: e[s][t],
                                      });
                                    i.renderSeries({
                                      realIndex: x,
                                      pathFill: d,
                                      lineFill: u,
                                      j: t,
                                      i: s,
                                      pathFrom: l.pathFrom,
                                      pathTo: a,
                                      strokeWidth: r,
                                      elSeries: w,
                                      x: g,
                                      y: m,
                                      series: e,
                                      barHeight: f,
                                      barWidth: p,
                                      elDataLabelsWrap: _,
                                      visibleSeries: i.visibleI,
                                      type: n.config.chart.type,
                                    });
                                  });
                              },
                              A = 0;
                            A < n.globals.dataPoints;
                            A++
                          )
                            S(A);
                          (n.globals.seriesXvalues[x] = y),
                            (n.globals.seriesYvalues[x] = v),
                            l.add(w);
                        },
                        u = 0;
                      u < e.length;
                      u++
                    )
                      c(u);
                    return l;
                  },
                },
                {
                  key: "drawVerticalBoxPaths",
                  value: function (e) {
                    var t = e.indexes,
                      i = e.x;
                    e.y;
                    var n = e.xDivision,
                      r = e.barWidth,
                      a = e.zeroH,
                      o = e.strokeWidth,
                      s = this.w,
                      l = new w(this.ctx),
                      c = t.i,
                      u = t.j,
                      d = !0,
                      h = s.config.plotOptions.candlestick.colors.upward,
                      f = s.config.plotOptions.candlestick.colors.downward,
                      p = "";
                    this.isBoxPlot &&
                      (p = [
                        this.boxOptions.colors.lower,
                        this.boxOptions.colors.upper,
                      ]);
                    var g = this.yRatio[this.yaxisIndex],
                      m = t.realIndex,
                      v = this.getOHLCValue(m, u),
                      b = a,
                      y = a;
                    v.o > v.c && (d = !1);
                    var x = Math.min(v.o, v.c),
                      E = Math.max(v.o, v.c),
                      _ = v.m;
                    s.globals.isXNumeric &&
                      (i =
                        (s.globals.seriesX[m][u] - s.globals.minX) /
                          this.xRatio -
                        r / 2);
                    var S = i + r * this.visibleI;
                    void 0 === this.series[c][u] || null === this.series[c][u]
                      ? ((x = a), (E = a))
                      : ((x = a - x / g),
                        (E = a - E / g),
                        (b = a - v.h / g),
                        (y = a - v.l / g),
                        (_ = a - v.m / g));
                    var A = l.move(S, a),
                      k = l.move(S + r / 2, x);
                    return (
                      s.globals.previousPaths.length > 0 &&
                        (k = this.getPreviousPath(m, u, !0)),
                      (A = this.isBoxPlot
                        ? [
                            l.move(S, x) +
                              l.line(S + r / 2, x) +
                              l.line(S + r / 2, b) +
                              l.line(S + r / 4, b) +
                              l.line(S + r - r / 4, b) +
                              l.line(S + r / 2, b) +
                              l.line(S + r / 2, x) +
                              l.line(S + r, x) +
                              l.line(S + r, _) +
                              l.line(S, _) +
                              l.line(S, x + o / 2),
                            l.move(S, _) +
                              l.line(S + r, _) +
                              l.line(S + r, E) +
                              l.line(S + r / 2, E) +
                              l.line(S + r / 2, y) +
                              l.line(S + r - r / 4, y) +
                              l.line(S + r / 4, y) +
                              l.line(S + r / 2, y) +
                              l.line(S + r / 2, E) +
                              l.line(S, E) +
                              l.line(S, _) +
                              "z",
                          ]
                        : [
                            l.move(S, E) +
                              l.line(S + r / 2, E) +
                              l.line(S + r / 2, b) +
                              l.line(S + r / 2, E) +
                              l.line(S + r, E) +
                              l.line(S + r, x) +
                              l.line(S + r / 2, x) +
                              l.line(S + r / 2, y) +
                              l.line(S + r / 2, x) +
                              l.line(S, x) +
                              l.line(S, E - o / 2),
                          ]),
                      (k += l.move(S, x)),
                      s.globals.isXNumeric || (i += n),
                      {
                        pathTo: A,
                        pathFrom: k,
                        x: i,
                        y: E,
                        barXPosition: S,
                        color: this.isBoxPlot ? p : d ? [h] : [f],
                      }
                    );
                  },
                },
                {
                  key: "drawHorizontalBoxPaths",
                  value: function (e) {
                    var t = e.indexes;
                    e.x;
                    var i = e.y,
                      n = e.yDivision,
                      r = e.barHeight,
                      a = e.zeroW,
                      o = e.strokeWidth,
                      s = this.w,
                      l = new w(this.ctx),
                      c = t.i,
                      u = t.j,
                      d = this.boxOptions.colors.lower;
                    this.isBoxPlot &&
                      (d = [
                        this.boxOptions.colors.lower,
                        this.boxOptions.colors.upper,
                      ]);
                    var h = this.invertedYRatio,
                      f = t.realIndex,
                      p = this.getOHLCValue(f, u),
                      g = a,
                      m = a,
                      v = Math.min(p.o, p.c),
                      b = Math.max(p.o, p.c),
                      y = p.m;
                    s.globals.isXNumeric &&
                      (i =
                        (s.globals.seriesX[f][u] - s.globals.minX) /
                          this.invertedXRatio -
                        r / 2);
                    var x = i + r * this.visibleI;
                    void 0 === this.series[c][u] || null === this.series[c][u]
                      ? ((v = a), (b = a))
                      : ((v = a + v / h),
                        (b = a + b / h),
                        (g = a + p.h / h),
                        (m = a + p.l / h),
                        (y = a + p.m / h));
                    var E = l.move(a, x),
                      _ = l.move(v, x + r / 2);
                    return (
                      s.globals.previousPaths.length > 0 &&
                        (_ = this.getPreviousPath(f, u, !0)),
                      (E = [
                        l.move(v, x) +
                          l.line(v, x + r / 2) +
                          l.line(g, x + r / 2) +
                          l.line(g, x + r / 2 - r / 4) +
                          l.line(g, x + r / 2 + r / 4) +
                          l.line(g, x + r / 2) +
                          l.line(v, x + r / 2) +
                          l.line(v, x + r) +
                          l.line(y, x + r) +
                          l.line(y, x) +
                          l.line(v + o / 2, x),
                        l.move(y, x) +
                          l.line(y, x + r) +
                          l.line(b, x + r) +
                          l.line(b, x + r / 2) +
                          l.line(m, x + r / 2) +
                          l.line(m, x + r - r / 4) +
                          l.line(m, x + r / 4) +
                          l.line(m, x + r / 2) +
                          l.line(b, x + r / 2) +
                          l.line(b, x) +
                          l.line(y, x) +
                          "z",
                      ]),
                      (_ += l.move(v, x)),
                      s.globals.isXNumeric || (i += n),
                      {
                        pathTo: E,
                        pathFrom: _,
                        x: b,
                        y: i,
                        barYPosition: x,
                        color: d,
                      }
                    );
                  },
                },
                {
                  key: "getOHLCValue",
                  value: function (e, t) {
                    var i = this.w;
                    return {
                      o: this.isBoxPlot
                        ? i.globals.seriesCandleH[e][t]
                        : i.globals.seriesCandleO[e][t],
                      h: this.isBoxPlot
                        ? i.globals.seriesCandleO[e][t]
                        : i.globals.seriesCandleH[e][t],
                      m: i.globals.seriesCandleM[e][t],
                      l: this.isBoxPlot
                        ? i.globals.seriesCandleC[e][t]
                        : i.globals.seriesCandleL[e][t],
                      c: this.isBoxPlot
                        ? i.globals.seriesCandleL[e][t]
                        : i.globals.seriesCandleC[e][t],
                    };
                  },
                },
              ]),
              i
            );
          })(),
          Ae = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "checkColorRange",
                  value: function () {
                    var e = this.w,
                      t = !1,
                      i = e.config.plotOptions[e.config.chart.type];
                    return (
                      i.colorScale.ranges.length > 0 &&
                        i.colorScale.ranges.map(function (e, i) {
                          e.from <= 0 && (t = !0);
                        }),
                      t
                    );
                  },
                },
                {
                  key: "getShadeColor",
                  value: function (e, t, i, n) {
                    var r = this.w,
                      a = 1,
                      o = r.config.plotOptions[e].shadeIntensity,
                      s = this.determineColor(e, t, i);
                    r.globals.hasNegs || n
                      ? (a = r.config.plotOptions[e].reverseNegativeShade
                          ? s.percent < 0
                            ? (s.percent / 100) * (1.25 * o)
                            : (1 - s.percent / 100) * (1.25 * o)
                          : s.percent <= 0
                          ? 1 - (1 + s.percent / 100) * o
                          : (1 - s.percent / 100) * o)
                      : ((a = 1 - s.percent / 100),
                        "treemap" === e &&
                          (a = (1 - s.percent / 100) * (1.25 * o)));
                    var l = s.color,
                      c = new b();
                    return (
                      r.config.plotOptions[e].enableShades &&
                        (l =
                          "dark" === this.w.config.theme.mode
                            ? b.hexToRgba(
                                c.shadeColor(-1 * a, s.color),
                                r.config.fill.opacity
                              )
                            : b.hexToRgba(
                                c.shadeColor(a, s.color),
                                r.config.fill.opacity
                              )),
                      { color: l, colorProps: s }
                    );
                  },
                },
                {
                  key: "determineColor",
                  value: function (e, t, i) {
                    var n = this.w,
                      r = n.globals.series[t][i],
                      a = n.config.plotOptions[e],
                      o = a.colorScale.inverse ? i : t;
                    a.distributed &&
                      "treemap" === n.config.chart.type &&
                      (o = i);
                    var s = n.globals.colors[o],
                      l = null,
                      c = Math.min.apply(Math, g(n.globals.series[t])),
                      u = Math.max.apply(Math, g(n.globals.series[t]));
                    a.distributed ||
                      "heatmap" !== e ||
                      ((c = n.globals.minY), (u = n.globals.maxY)),
                      void 0 !== a.colorScale.min &&
                        ((c =
                          a.colorScale.min < n.globals.minY
                            ? a.colorScale.min
                            : n.globals.minY),
                        (u =
                          a.colorScale.max > n.globals.maxY
                            ? a.colorScale.max
                            : n.globals.maxY));
                    var d = Math.abs(u) + Math.abs(c),
                      h = (100 * r) / (0 === d ? d - 1e-6 : d);
                    return (
                      a.colorScale.ranges.length > 0 &&
                        a.colorScale.ranges.map(function (e, t) {
                          if (r >= e.from && r <= e.to) {
                            (s = e.color),
                              (l = e.foreColor ? e.foreColor : null),
                              (c = e.from),
                              (u = e.to);
                            var i = Math.abs(u) + Math.abs(c);
                            h = (100 * r) / (0 === i ? i - 1e-6 : i);
                          }
                        }),
                      { color: s, foreColor: l, percent: h }
                    );
                  },
                },
                {
                  key: "calculateDataLabels",
                  value: function (e) {
                    var t = e.text,
                      i = e.x,
                      n = e.y,
                      r = e.i,
                      a = e.j,
                      o = e.colorProps,
                      s = e.fontSize,
                      l = this.w.config.dataLabels,
                      c = new w(this.ctx),
                      u = new H(this.ctx),
                      d = null;
                    if (l.enabled) {
                      d = c.group({ class: "apexcharts-data-labels" });
                      var h = l.offsetX,
                        f = l.offsetY,
                        p = i + h,
                        g = n + parseFloat(l.style.fontSize) / 3 + f;
                      u.plotDataLabelsText({
                        x: p,
                        y: g,
                        text: t,
                        i: r,
                        j: a,
                        color: o.foreColor,
                        parent: d,
                        fontSize: s,
                        dataLabelsConfig: l,
                      });
                    }
                    return d;
                  },
                },
                {
                  key: "addListeners",
                  value: function (e) {
                    var t = new w(this.ctx);
                    e.node.addEventListener(
                      "mouseenter",
                      t.pathMouseEnter.bind(this, e)
                    ),
                      e.node.addEventListener(
                        "mouseleave",
                        t.pathMouseLeave.bind(this, e)
                      ),
                      e.node.addEventListener(
                        "mousedown",
                        t.pathMouseDown.bind(this, e)
                      );
                  },
                },
              ]),
              e
            );
          })(),
          ke = (function () {
            function e(t, i) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.xRatio = i.xRatio),
                (this.yRatio = i.yRatio),
                (this.dynamicAnim =
                  this.w.config.chart.animations.dynamicAnimation),
                (this.helpers = new Ae(t)),
                (this.rectRadius = this.w.config.plotOptions.heatmap.radius),
                (this.strokeWidth = this.w.config.stroke.show
                  ? this.w.config.stroke.width
                  : 0);
            }
            return (
              c(e, [
                {
                  key: "draw",
                  value: function (e) {
                    var t = this.w,
                      i = new w(this.ctx),
                      n = i.group({ class: "apexcharts-heatmap" });
                    n.attr(
                      "clip-path",
                      "url(#gridRectMask".concat(t.globals.cuid, ")")
                    );
                    var r = t.globals.gridWidth / t.globals.dataPoints,
                      a = t.globals.gridHeight / t.globals.series.length,
                      o = 0,
                      s = !1;
                    this.negRange = this.helpers.checkColorRange();
                    var l = e.slice();
                    t.config.yaxis[0].reversed && ((s = !0), l.reverse());
                    for (
                      var c = s ? 0 : l.length - 1;
                      s ? c < l.length : c >= 0;
                      s ? c++ : c--
                    ) {
                      var u = i.group({
                        class: "apexcharts-series apexcharts-heatmap-series",
                        seriesName: b.escapeString(t.globals.seriesNames[c]),
                        rel: c + 1,
                        "data:realIndex": c,
                      });
                      if (
                        (this.ctx.series.addCollapsedClassToSeries(u, c),
                        t.config.chart.dropShadow.enabled)
                      ) {
                        var d = t.config.chart.dropShadow;
                        new x(this.ctx).dropShadow(u, d, c);
                      }
                      for (
                        var h = 0,
                          f = t.config.plotOptions.heatmap.shadeIntensity,
                          p = 0;
                        p < l[c].length;
                        p++
                      ) {
                        var g = this.helpers.getShadeColor(
                            t.config.chart.type,
                            c,
                            p,
                            this.negRange
                          ),
                          m = g.color,
                          v = g.colorProps;
                        "image" === t.config.fill.type &&
                          (m = new B(this.ctx).fillPath({
                            seriesNumber: c,
                            dataPointIndex: p,
                            opacity: t.globals.hasNegs
                              ? v.percent < 0
                                ? 1 - (1 + v.percent / 100)
                                : f + v.percent / 100
                              : v.percent / 100,
                            patternID: b.randomId(),
                            width: t.config.fill.image.width
                              ? t.config.fill.image.width
                              : r,
                            height: t.config.fill.image.height
                              ? t.config.fill.image.height
                              : a,
                          }));
                        var y = this.rectRadius,
                          E = i.drawRect(h, o, r, a, y);
                        if (
                          (E.attr({ cx: h, cy: o }),
                          E.node.classList.add("apexcharts-heatmap-rect"),
                          u.add(E),
                          E.attr({
                            fill: m,
                            i: c,
                            index: c,
                            j: p,
                            val: l[c][p],
                            "stroke-width": this.strokeWidth,
                            stroke: t.config.plotOptions.heatmap
                              .useFillColorAsStroke
                              ? m
                              : t.globals.stroke.colors[0],
                            color: m,
                          }),
                          this.helpers.addListeners(E),
                          t.config.chart.animations.enabled &&
                            !t.globals.dataChanged)
                        ) {
                          var _ = 1;
                          t.globals.resized ||
                            (_ = t.config.chart.animations.speed),
                            this.animateHeatMap(E, h, o, r, a, _);
                        }
                        if (t.globals.dataChanged) {
                          var S = 1;
                          if (
                            this.dynamicAnim.enabled &&
                            t.globals.shouldAnimate
                          ) {
                            S = this.dynamicAnim.speed;
                            var A =
                              t.globals.previousPaths[c] &&
                              t.globals.previousPaths[c][p] &&
                              t.globals.previousPaths[c][p].color;
                            A || (A = "rgba(255, 255, 255, 0)"),
                              this.animateHeatColor(
                                E,
                                b.isColorHex(A) ? A : b.rgb2hex(A),
                                b.isColorHex(m) ? m : b.rgb2hex(m),
                                S
                              );
                          }
                        }
                        var k = (0, t.config.dataLabels.formatter)(
                            t.globals.series[c][p],
                            {
                              value: t.globals.series[c][p],
                              seriesIndex: c,
                              dataPointIndex: p,
                              w: t,
                            }
                          ),
                          T = this.helpers.calculateDataLabels({
                            text: k,
                            x: h + r / 2,
                            y: o + a / 2,
                            i: c,
                            j: p,
                            colorProps: v,
                            series: l,
                          });
                        null !== T && u.add(T), (h += r);
                      }
                      (o += a), n.add(u);
                    }
                    var C = t.globals.yAxisScale[0].result.slice();
                    t.config.yaxis[0].reversed ? C.unshift("") : C.push(""),
                      (t.globals.yAxisScale[0].result = C);
                    var O = t.globals.gridHeight / t.globals.series.length;
                    return (t.config.yaxis[0].labels.offsetY = -O / 2), n;
                  },
                },
                {
                  key: "animateHeatMap",
                  value: function (e, t, i, n, r, a) {
                    var o = new y(this.ctx);
                    o.animateRect(
                      e,
                      { x: t + n / 2, y: i + r / 2, width: 0, height: 0 },
                      { x: t, y: i, width: n, height: r },
                      a,
                      function () {
                        o.animationCompleted(e);
                      }
                    );
                  },
                },
                {
                  key: "animateHeatColor",
                  value: function (e, t, i, n) {
                    e.attr({ fill: t }).animate(n).attr({ fill: i });
                  },
                },
              ]),
              e
            );
          })(),
          Te = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "drawYAxisTexts",
                  value: function (e, t, i, n) {
                    var r = this.w,
                      a = r.config.yaxis[0],
                      o = r.globals.yLabelFormatters[0];
                    return new w(this.ctx).drawText({
                      x: e + a.labels.offsetX,
                      y: t + a.labels.offsetY,
                      text: o(n, i),
                      textAnchor: "middle",
                      fontSize: a.labels.style.fontSize,
                      fontFamily: a.labels.style.fontFamily,
                      foreColor: Array.isArray(a.labels.style.colors)
                        ? a.labels.style.colors[i]
                        : a.labels.style.colors,
                    });
                  },
                },
              ]),
              e
            );
          })(),
          Ce = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
              var i = this.w;
              (this.chartType = this.w.config.chart.type),
                (this.initialAnim = this.w.config.chart.animations.enabled),
                (this.dynamicAnim =
                  this.initialAnim &&
                  this.w.config.chart.animations.dynamicAnimation.enabled),
                (this.animBeginArr = [0]),
                (this.animDur = 0),
                (this.donutDataLabels =
                  this.w.config.plotOptions.pie.donut.labels),
                (this.lineColorArr =
                  void 0 !== i.globals.stroke.colors
                    ? i.globals.stroke.colors
                    : i.globals.colors),
                (this.defaultSize = Math.min(
                  i.globals.gridWidth,
                  i.globals.gridHeight
                )),
                (this.centerY = this.defaultSize / 2),
                (this.centerX = i.globals.gridWidth / 2),
                "radialBar" === i.config.chart.type
                  ? (this.fullAngle = 360)
                  : (this.fullAngle = Math.abs(
                      i.config.plotOptions.pie.endAngle -
                        i.config.plotOptions.pie.startAngle
                    )),
                (this.initialAngle =
                  i.config.plotOptions.pie.startAngle % this.fullAngle),
                (i.globals.radialSize =
                  this.defaultSize / 2.05 -
                  i.config.stroke.width -
                  (i.config.chart.sparkline.enabled
                    ? 0
                    : i.config.chart.dropShadow.blur)),
                (this.donutSize =
                  (i.globals.radialSize *
                    parseInt(i.config.plotOptions.pie.donut.size, 10)) /
                  100),
                (this.maxY = 0),
                (this.sliceLabels = []),
                (this.sliceSizes = []),
                (this.prevSectorAngleArr = []);
            }
            return (
              c(e, [
                {
                  key: "draw",
                  value: function (e) {
                    var t = this,
                      i = this.w,
                      n = new w(this.ctx);
                    if (
                      ((this.ret = n.group({ class: "apexcharts-pie" })),
                      i.globals.noData)
                    )
                      return this.ret;
                    for (var r = 0, a = 0; a < e.length; a++)
                      r += b.negToZero(e[a]);
                    var o = [],
                      s = n.group();
                    0 === r && (r = 1e-5),
                      e.forEach(function (e) {
                        t.maxY = Math.max(t.maxY, e);
                      }),
                      i.config.yaxis[0].max &&
                        (this.maxY = i.config.yaxis[0].max),
                      "back" === i.config.grid.position &&
                        "polarArea" === this.chartType &&
                        this.drawPolarElements(this.ret);
                    for (var l = 0; l < e.length; l++) {
                      var c = (this.fullAngle * b.negToZero(e[l])) / r;
                      o.push(c),
                        "polarArea" === this.chartType
                          ? ((o[l] = this.fullAngle / e.length),
                            this.sliceSizes.push(
                              (i.globals.radialSize * e[l]) / this.maxY
                            ))
                          : this.sliceSizes.push(i.globals.radialSize);
                    }
                    if (i.globals.dataChanged) {
                      for (
                        var u, d = 0, h = 0;
                        h < i.globals.previousPaths.length;
                        h++
                      )
                        d += b.negToZero(i.globals.previousPaths[h]);
                      for (var f = 0; f < i.globals.previousPaths.length; f++)
                        (u =
                          (this.fullAngle *
                            b.negToZero(i.globals.previousPaths[f])) /
                          d),
                          this.prevSectorAngleArr.push(u);
                    }
                    this.donutSize < 0 && (this.donutSize = 0);
                    var p = i.config.plotOptions.pie.customScale,
                      g = i.globals.gridWidth / 2,
                      m = i.globals.gridHeight / 2,
                      v = g - (i.globals.gridWidth / 2) * p,
                      y = m - (i.globals.gridHeight / 2) * p;
                    if ("donut" === this.chartType) {
                      var x = n.drawCircle(this.donutSize);
                      x.attr({
                        cx: this.centerX,
                        cy: this.centerY,
                        fill: i.config.plotOptions.pie.donut.background
                          ? i.config.plotOptions.pie.donut.background
                          : "transparent",
                      }),
                        s.add(x);
                    }
                    var E = this.drawArcs(o, e);
                    if (
                      (this.sliceLabels.forEach(function (e) {
                        E.add(e);
                      }),
                      s.attr({
                        transform: "translate("
                          .concat(v, ", ")
                          .concat(y, ") scale(")
                          .concat(p, ")"),
                      }),
                      s.add(E),
                      this.ret.add(s),
                      this.donutDataLabels.show)
                    ) {
                      var _ = this.renderInnerDataLabels(this.donutDataLabels, {
                        hollowSize: this.donutSize,
                        centerX: this.centerX,
                        centerY: this.centerY,
                        opacity: this.donutDataLabels.show,
                        translateX: v,
                        translateY: y,
                      });
                      this.ret.add(_);
                    }
                    return (
                      "front" === i.config.grid.position &&
                        "polarArea" === this.chartType &&
                        this.drawPolarElements(this.ret),
                      this.ret
                    );
                  },
                },
                {
                  key: "drawArcs",
                  value: function (e, t) {
                    var i = this.w,
                      n = new x(this.ctx),
                      r = new w(this.ctx),
                      a = new B(this.ctx),
                      o = r.group({ class: "apexcharts-slices" }),
                      s = this.initialAngle,
                      l = this.initialAngle,
                      c = this.initialAngle,
                      u = this.initialAngle;
                    this.strokeWidth = i.config.stroke.show
                      ? i.config.stroke.width
                      : 0;
                    for (var d = 0; d < e.length; d++) {
                      var h = r.group({
                        class: "apexcharts-series apexcharts-pie-series",
                        seriesName: b.escapeString(i.globals.seriesNames[d]),
                        rel: d + 1,
                        "data:realIndex": d,
                      });
                      o.add(h),
                        (l = u),
                        (c = (s = c) + e[d]),
                        (u = l + this.prevSectorAngleArr[d]);
                      var f = c < s ? this.fullAngle + c - s : c - s,
                        p = a.fillPath({
                          seriesNumber: d,
                          size: this.sliceSizes[d],
                          value: t[d],
                        }),
                        g = this.getChangedPath(l, u),
                        m = r.drawPath({
                          d: g,
                          stroke: Array.isArray(this.lineColorArr)
                            ? this.lineColorArr[d]
                            : this.lineColorArr,
                          strokeWidth: 0,
                          fill: p,
                          fillOpacity: i.config.fill.opacity,
                          classes: "apexcharts-pie-area apexcharts-"
                            .concat(this.chartType.toLowerCase(), "-slice-")
                            .concat(d),
                        });
                      if (
                        (m.attr({ index: 0, j: d }),
                        n.setSelectionFilter(m, 0, d),
                        i.config.chart.dropShadow.enabled)
                      ) {
                        var v = i.config.chart.dropShadow;
                        n.dropShadow(m, v, d);
                      }
                      this.addListeners(m, this.donutDataLabels),
                        w.setAttrs(m.node, {
                          "data:angle": f,
                          "data:startAngle": s,
                          "data:strokeWidth": this.strokeWidth,
                          "data:value": t[d],
                        });
                      var y = { x: 0, y: 0 };
                      "pie" === this.chartType || "polarArea" === this.chartType
                        ? (y = b.polarToCartesian(
                            this.centerX,
                            this.centerY,
                            i.globals.radialSize / 1.25 +
                              i.config.plotOptions.pie.dataLabels.offset,
                            (s + f / 2) % this.fullAngle
                          ))
                        : "donut" === this.chartType &&
                          (y = b.polarToCartesian(
                            this.centerX,
                            this.centerY,
                            (i.globals.radialSize + this.donutSize) / 2 +
                              i.config.plotOptions.pie.dataLabels.offset,
                            (s + f / 2) % this.fullAngle
                          )),
                        h.add(m);
                      var E = 0;
                      if (
                        (!this.initialAnim ||
                        i.globals.resized ||
                        i.globals.dataChanged
                          ? this.animBeginArr.push(0)
                          : (0 ==
                              (E =
                                (f / this.fullAngle) *
                                i.config.chart.animations.speed) && (E = 1),
                            (this.animDur = E + this.animDur),
                            this.animBeginArr.push(this.animDur)),
                        this.dynamicAnim && i.globals.dataChanged
                          ? this.animatePaths(m, {
                              size: this.sliceSizes[d],
                              endAngle: c,
                              startAngle: s,
                              prevStartAngle: l,
                              prevEndAngle: u,
                              animateStartingPos: !0,
                              i: d,
                              animBeginArr: this.animBeginArr,
                              shouldSetPrevPaths: !0,
                              dur: i.config.chart.animations.dynamicAnimation
                                .speed,
                            })
                          : this.animatePaths(m, {
                              size: this.sliceSizes[d],
                              endAngle: c,
                              startAngle: s,
                              i: d,
                              totalItems: e.length - 1,
                              animBeginArr: this.animBeginArr,
                              dur: E,
                            }),
                        i.config.plotOptions.pie.expandOnClick &&
                          "polarArea" !== this.chartType &&
                          m.click(this.pieClicked.bind(this, d)),
                        void 0 !== i.globals.selectedDataPoints[0] &&
                          i.globals.selectedDataPoints[0].indexOf(d) > -1 &&
                          this.pieClicked(d),
                        i.config.dataLabels.enabled)
                      ) {
                        var _ = y.x,
                          S = y.y,
                          A = (100 * f) / this.fullAngle + "%";
                        if (
                          0 !== f &&
                          i.config.plotOptions.pie.dataLabels
                            .minAngleToShowLabel < e[d]
                        ) {
                          var k = i.config.dataLabels.formatter;
                          void 0 !== k &&
                            (A = k(i.globals.seriesPercent[d][0], {
                              seriesIndex: d,
                              w: i,
                            }));
                          var T = i.globals.dataLabels.style.colors[d],
                            C = r.group({ class: "apexcharts-datalabels" }),
                            O = r.drawText({
                              x: _,
                              y: S,
                              text: A,
                              textAnchor: "middle",
                              fontSize: i.config.dataLabels.style.fontSize,
                              fontFamily: i.config.dataLabels.style.fontFamily,
                              fontWeight: i.config.dataLabels.style.fontWeight,
                              foreColor: T,
                            });
                          if (
                            (C.add(O), i.config.dataLabels.dropShadow.enabled)
                          ) {
                            var I = i.config.dataLabels.dropShadow;
                            n.dropShadow(O, I);
                          }
                          O.node.classList.add("apexcharts-pie-label"),
                            i.config.chart.animations.animate &&
                              !1 === i.globals.resized &&
                              (O.node.classList.add(
                                "apexcharts-pie-label-delay"
                              ),
                              (O.node.style.animationDelay =
                                i.config.chart.animations.speed / 940 + "s")),
                            this.sliceLabels.push(C);
                        }
                      }
                    }
                    return o;
                  },
                },
                {
                  key: "addListeners",
                  value: function (e, t) {
                    var i = new w(this.ctx);
                    e.node.addEventListener(
                      "mouseenter",
                      i.pathMouseEnter.bind(this, e)
                    ),
                      e.node.addEventListener(
                        "mouseleave",
                        i.pathMouseLeave.bind(this, e)
                      ),
                      e.node.addEventListener(
                        "mouseleave",
                        this.revertDataLabelsInner.bind(this, e.node, t)
                      ),
                      e.node.addEventListener(
                        "mousedown",
                        i.pathMouseDown.bind(this, e)
                      ),
                      this.donutDataLabels.total.showAlways ||
                        (e.node.addEventListener(
                          "mouseenter",
                          this.printDataLabelsInner.bind(this, e.node, t)
                        ),
                        e.node.addEventListener(
                          "mousedown",
                          this.printDataLabelsInner.bind(this, e.node, t)
                        ));
                  },
                },
                {
                  key: "animatePaths",
                  value: function (e, t) {
                    var i = this.w,
                      n =
                        t.endAngle < t.startAngle
                          ? this.fullAngle + t.endAngle - t.startAngle
                          : t.endAngle - t.startAngle,
                      r = n,
                      a = t.startAngle,
                      o = t.startAngle;
                    void 0 !== t.prevStartAngle &&
                      void 0 !== t.prevEndAngle &&
                      ((a = t.prevEndAngle),
                      (r =
                        t.prevEndAngle < t.prevStartAngle
                          ? this.fullAngle + t.prevEndAngle - t.prevStartAngle
                          : t.prevEndAngle - t.prevStartAngle)),
                      t.i === i.config.series.length - 1 &&
                        (n + o > this.fullAngle
                          ? (t.endAngle = t.endAngle - (n + o))
                          : n + o < this.fullAngle &&
                            (t.endAngle =
                              t.endAngle + (this.fullAngle - (n + o)))),
                      n === this.fullAngle && (n = this.fullAngle - 0.01),
                      this.animateArc(e, a, o, n, r, t);
                  },
                },
                {
                  key: "animateArc",
                  value: function (e, t, i, n, r, a) {
                    var o,
                      s = this,
                      l = this.w,
                      c = new y(this.ctx),
                      u = a.size;
                    (isNaN(t) || isNaN(r)) && ((t = i), (r = n), (a.dur = 0));
                    var d = n,
                      h = i,
                      f = t < i ? this.fullAngle + t - i : t - i;
                    l.globals.dataChanged &&
                      a.shouldSetPrevPaths &&
                      a.prevEndAngle &&
                      ((o = s.getPiePath({
                        me: s,
                        startAngle: a.prevStartAngle,
                        angle:
                          a.prevEndAngle < a.prevStartAngle
                            ? this.fullAngle + a.prevEndAngle - a.prevStartAngle
                            : a.prevEndAngle - a.prevStartAngle,
                        size: u,
                      })),
                      e.attr({ d: o })),
                      0 !== a.dur
                        ? e
                            .animate(
                              a.dur,
                              l.globals.easing,
                              a.animBeginArr[a.i]
                            )
                            .afterAll(function () {
                              ("pie" !== s.chartType &&
                                "donut" !== s.chartType &&
                                "polarArea" !== s.chartType) ||
                                this.animate(
                                  l.config.chart.animations.dynamicAnimation
                                    .speed
                                ).attr({ "stroke-width": s.strokeWidth }),
                                a.i === l.config.series.length - 1 &&
                                  c.animationCompleted(e);
                            })
                            .during(function (l) {
                              (d = f + (n - f) * l),
                                a.animateStartingPos &&
                                  ((d = r + (n - r) * l),
                                  (h = t - r + (i - (t - r)) * l)),
                                (o = s.getPiePath({
                                  me: s,
                                  startAngle: h,
                                  angle: d,
                                  size: u,
                                })),
                                e.node.setAttribute("data:pathOrig", o),
                                e.attr({ d: o });
                            })
                        : ((o = s.getPiePath({
                            me: s,
                            startAngle: h,
                            angle: n,
                            size: u,
                          })),
                          a.isTrack || (l.globals.animationEnded = !0),
                          e.node.setAttribute("data:pathOrig", o),
                          e.attr({ d: o, "stroke-width": s.strokeWidth }));
                  },
                },
                {
                  key: "pieClicked",
                  value: function (e) {
                    var t,
                      i = this.w,
                      n = this,
                      r =
                        n.sliceSizes[e] +
                        (i.config.plotOptions.pie.expandOnClick ? 4 : 0),
                      a = i.globals.dom.Paper.select(
                        ".apexcharts-"
                          .concat(n.chartType.toLowerCase(), "-slice-")
                          .concat(e)
                      ).members[0];
                    if ("true" !== a.attr("data:pieClicked")) {
                      var o = i.globals.dom.baseEl.getElementsByClassName(
                        "apexcharts-pie-area"
                      );
                      Array.prototype.forEach.call(o, function (e) {
                        e.setAttribute("data:pieClicked", "false");
                        var t = e.getAttribute("data:pathOrig");
                        e.setAttribute("d", t);
                      }),
                        a.attr("data:pieClicked", "true");
                      var s = parseInt(a.attr("data:startAngle"), 10),
                        l = parseInt(a.attr("data:angle"), 10);
                      (t = n.getPiePath({
                        me: n,
                        startAngle: s,
                        angle: l,
                        size: r,
                      })),
                        360 !== l && a.plot(t);
                    } else {
                      a.attr({ "data:pieClicked": "false" }),
                        this.revertDataLabelsInner(
                          a.node,
                          this.donutDataLabels
                        );
                      var c = a.attr("data:pathOrig");
                      a.attr({ d: c });
                    }
                  },
                },
                {
                  key: "getChangedPath",
                  value: function (e, t) {
                    var i = "";
                    return (
                      this.dynamicAnim &&
                        this.w.globals.dataChanged &&
                        (i = this.getPiePath({
                          me: this,
                          startAngle: e,
                          angle: t - e,
                          size: this.size,
                        })),
                      i
                    );
                  },
                },
                {
                  key: "getPiePath",
                  value: function (e) {
                    var t = e.me,
                      i = e.startAngle,
                      n = e.angle,
                      r = e.size,
                      a = i,
                      o = (Math.PI * (a - 90)) / 180,
                      s = n + i;
                    Math.ceil(s) >=
                      this.fullAngle +
                        (this.w.config.plotOptions.pie.startAngle %
                          this.fullAngle) &&
                      (s =
                        this.fullAngle +
                        (this.w.config.plotOptions.pie.startAngle %
                          this.fullAngle) -
                        0.01),
                      Math.ceil(s) > this.fullAngle && (s -= this.fullAngle);
                    var l = (Math.PI * (s - 90)) / 180,
                      c = t.centerX + r * Math.cos(o),
                      u = t.centerY + r * Math.sin(o),
                      d = t.centerX + r * Math.cos(l),
                      h = t.centerY + r * Math.sin(l),
                      f = b.polarToCartesian(
                        t.centerX,
                        t.centerY,
                        t.donutSize,
                        s
                      ),
                      p = b.polarToCartesian(
                        t.centerX,
                        t.centerY,
                        t.donutSize,
                        a
                      ),
                      g = n > 180 ? 1 : 0,
                      m = ["M", c, u, "A", r, r, 0, g, 1, d, h];
                    return "donut" === t.chartType
                      ? []
                          .concat(m, [
                            "L",
                            f.x,
                            f.y,
                            "A",
                            t.donutSize,
                            t.donutSize,
                            0,
                            g,
                            0,
                            p.x,
                            p.y,
                            "L",
                            c,
                            u,
                            "z",
                          ])
                          .join(" ")
                      : "pie" === t.chartType || "polarArea" === t.chartType
                      ? []
                          .concat(m, ["L", t.centerX, t.centerY, "L", c, u])
                          .join(" ")
                      : [].concat(m).join(" ");
                  },
                },
                {
                  key: "drawPolarElements",
                  value: function (e) {
                    var t = this.w,
                      i = new U(this.ctx),
                      n = new w(this.ctx),
                      r = new Te(this.ctx),
                      a = n.group(),
                      o = n.group(),
                      s = i.niceScale(
                        0,
                        Math.ceil(this.maxY),
                        t.config.yaxis[0].tickAmount,
                        0,
                        !0
                      ),
                      l = s.result.reverse(),
                      c = s.result.length;
                    this.maxY = s.niceMax;
                    for (
                      var u = t.globals.radialSize, d = u / (c - 1), h = 0;
                      h < c - 1;
                      h++
                    ) {
                      var f = n.drawCircle(u);
                      if (
                        (f.attr({
                          cx: this.centerX,
                          cy: this.centerY,
                          fill: "none",
                          "stroke-width":
                            t.config.plotOptions.polarArea.rings.strokeWidth,
                          stroke:
                            t.config.plotOptions.polarArea.rings.strokeColor,
                        }),
                        t.config.yaxis[0].show)
                      ) {
                        var p = r.drawYAxisTexts(
                          this.centerX,
                          this.centerY -
                            u +
                            parseInt(
                              t.config.yaxis[0].labels.style.fontSize,
                              10
                            ) /
                              2,
                          h,
                          l[h]
                        );
                        o.add(p);
                      }
                      a.add(f), (u -= d);
                    }
                    this.drawSpokes(e), e.add(a), e.add(o);
                  },
                },
                {
                  key: "renderInnerDataLabels",
                  value: function (e, t) {
                    var i = this.w,
                      n = new w(this.ctx),
                      r = n.group({
                        class: "apexcharts-datalabels-group",
                        transform: "translate("
                          .concat(t.translateX ? t.translateX : 0, ", ")
                          .concat(t.translateY ? t.translateY : 0, ") scale(")
                          .concat(i.config.plotOptions.pie.customScale, ")"),
                      }),
                      a = e.total.show;
                    r.node.style.opacity = t.opacity;
                    var o,
                      s,
                      l = t.centerX,
                      c = t.centerY;
                    o =
                      void 0 === e.name.color
                        ? i.globals.colors[0]
                        : e.name.color;
                    var u = e.name.fontSize,
                      d = e.name.fontFamily,
                      h = e.name.fontWeight;
                    s =
                      void 0 === e.value.color
                        ? i.config.chart.foreColor
                        : e.value.color;
                    var f = e.value.formatter,
                      p = "",
                      g = "";
                    if (
                      (a
                        ? ((o = e.total.color),
                          (u = e.total.fontSize),
                          (d = e.total.fontFamily),
                          (h = e.total.fontWeight),
                          (g = e.total.label),
                          (p = e.total.formatter(i)))
                        : 1 === i.globals.series.length &&
                          ((p = f(i.globals.series[0], i)),
                          (g = i.globals.seriesNames[0])),
                      g && (g = e.name.formatter(g, e.total.show, i)),
                      e.name.show)
                    ) {
                      var m = n.drawText({
                        x: l,
                        y: c + parseFloat(e.name.offsetY),
                        text: g,
                        textAnchor: "middle",
                        foreColor: o,
                        fontSize: u,
                        fontWeight: h,
                        fontFamily: d,
                      });
                      m.node.classList.add("apexcharts-datalabel-label"),
                        r.add(m);
                    }
                    if (e.value.show) {
                      var v = e.name.show
                          ? parseFloat(e.value.offsetY) + 16
                          : e.value.offsetY,
                        b = n.drawText({
                          x: l,
                          y: c + v,
                          text: p,
                          textAnchor: "middle",
                          foreColor: s,
                          fontWeight: e.value.fontWeight,
                          fontSize: e.value.fontSize,
                          fontFamily: e.value.fontFamily,
                        });
                      b.node.classList.add("apexcharts-datalabel-value"),
                        r.add(b);
                    }
                    return r;
                  },
                },
                {
                  key: "printInnerLabels",
                  value: function (e, t, i, n) {
                    var r,
                      a = this.w;
                    n
                      ? (r =
                          void 0 === e.name.color
                            ? a.globals.colors[
                                parseInt(n.parentNode.getAttribute("rel"), 10) -
                                  1
                              ]
                            : e.name.color)
                      : a.globals.series.length > 1 &&
                        e.total.show &&
                        (r = e.total.color);
                    var o = a.globals.dom.baseEl.querySelector(
                        ".apexcharts-datalabel-label"
                      ),
                      s = a.globals.dom.baseEl.querySelector(
                        ".apexcharts-datalabel-value"
                      );
                    (i = (0, e.value.formatter)(i, a)),
                      n ||
                        "function" != typeof e.total.formatter ||
                        (i = e.total.formatter(a));
                    var l = t === e.total.label;
                    (t = e.name.formatter(t, l, a)),
                      null !== o && (o.textContent = t),
                      null !== s && (s.textContent = i),
                      null !== o && (o.style.fill = r);
                  },
                },
                {
                  key: "printDataLabelsInner",
                  value: function (e, t) {
                    var i = this.w,
                      n = e.getAttribute("data:value"),
                      r =
                        i.globals.seriesNames[
                          parseInt(e.parentNode.getAttribute("rel"), 10) - 1
                        ];
                    i.globals.series.length > 1 &&
                      this.printInnerLabels(t, r, n, e);
                    var a = i.globals.dom.baseEl.querySelector(
                      ".apexcharts-datalabels-group"
                    );
                    null !== a && (a.style.opacity = 1);
                  },
                },
                {
                  key: "drawSpokes",
                  value: function (e) {
                    var t = this,
                      i = this.w,
                      n = new w(this.ctx),
                      r = i.config.plotOptions.polarArea.spokes;
                    if (0 !== r.strokeWidth) {
                      for (
                        var a = [], o = 360 / i.globals.series.length, s = 0;
                        s < i.globals.series.length;
                        s++
                      )
                        a.push(
                          b.polarToCartesian(
                            this.centerX,
                            this.centerY,
                            i.globals.radialSize,
                            i.config.plotOptions.pie.startAngle + o * s
                          )
                        );
                      a.forEach(function (i, a) {
                        var o = n.drawLine(
                          i.x,
                          i.y,
                          t.centerX,
                          t.centerY,
                          Array.isArray(r.connectorColors)
                            ? r.connectorColors[a]
                            : r.connectorColors
                        );
                        e.add(o);
                      });
                    }
                  },
                },
                {
                  key: "revertDataLabelsInner",
                  value: function (e, t, i) {
                    var n = this,
                      r = this.w,
                      a = r.globals.dom.baseEl.querySelector(
                        ".apexcharts-datalabels-group"
                      ),
                      o = !1,
                      s = r.globals.dom.baseEl.getElementsByClassName(
                        "apexcharts-pie-area"
                      ),
                      l = function (e) {
                        var i = e.makeSliceOut,
                          r = e.printLabel;
                        Array.prototype.forEach.call(s, function (e) {
                          "true" === e.getAttribute("data:pieClicked") &&
                            (i && (o = !0), r && n.printDataLabelsInner(e, t));
                        });
                      };
                    if (
                      (l({ makeSliceOut: !0, printLabel: !1 }),
                      t.total.show && r.globals.series.length > 1)
                    )
                      o && !t.total.showAlways
                        ? l({ makeSliceOut: !1, printLabel: !0 })
                        : this.printInnerLabels(
                            t,
                            t.total.label,
                            t.total.formatter(r)
                          );
                    else if ((l({ makeSliceOut: !1, printLabel: !0 }), !o))
                      if (
                        r.globals.selectedDataPoints.length &&
                        r.globals.series.length > 1
                      )
                        if (r.globals.selectedDataPoints[0].length > 0) {
                          var c = r.globals.selectedDataPoints[0],
                            u = r.globals.dom.baseEl.querySelector(
                              ".apexcharts-"
                                .concat(this.chartType.toLowerCase(), "-slice-")
                                .concat(c)
                            );
                          this.printDataLabelsInner(u, t);
                        } else
                          a &&
                            r.globals.selectedDataPoints.length &&
                            0 === r.globals.selectedDataPoints[0].length &&
                            (a.style.opacity = 0);
                      else
                        a &&
                          r.globals.series.length > 1 &&
                          (a.style.opacity = 0);
                  },
                },
              ]),
              e
            );
          })(),
          Oe = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.chartType = this.w.config.chart.type),
                (this.initialAnim = this.w.config.chart.animations.enabled),
                (this.dynamicAnim =
                  this.initialAnim &&
                  this.w.config.chart.animations.dynamicAnimation.enabled),
                (this.animDur = 0);
              var i = this.w;
              (this.graphics = new w(this.ctx)),
                (this.lineColorArr =
                  void 0 !== i.globals.stroke.colors
                    ? i.globals.stroke.colors
                    : i.globals.colors),
                (this.defaultSize =
                  i.globals.svgHeight < i.globals.svgWidth
                    ? i.globals.gridHeight + 1.5 * i.globals.goldenPadding
                    : i.globals.gridWidth),
                (this.isLog = i.config.yaxis[0].logarithmic),
                (this.coreUtils = new E(this.ctx)),
                (this.maxValue = this.isLog
                  ? this.coreUtils.getLogVal(i.globals.maxY, 0)
                  : i.globals.maxY),
                (this.minValue = this.isLog
                  ? this.coreUtils.getLogVal(this.w.globals.minY, 0)
                  : i.globals.minY),
                (this.polygons = i.config.plotOptions.radar.polygons),
                (this.strokeWidth = i.config.stroke.show
                  ? i.config.stroke.width
                  : 0),
                (this.size =
                  this.defaultSize / 2.1 -
                  this.strokeWidth -
                  i.config.chart.dropShadow.blur),
                i.config.xaxis.labels.show &&
                  (this.size = this.size - i.globals.xAxisLabelsWidth / 1.75),
                void 0 !== i.config.plotOptions.radar.size &&
                  (this.size = i.config.plotOptions.radar.size),
                (this.dataRadiusOfPercent = []),
                (this.dataRadius = []),
                (this.angleArr = []),
                (this.yaxisLabelsTextsPos = []);
            }
            return (
              c(e, [
                {
                  key: "draw",
                  value: function (e) {
                    var t = this,
                      i = this.w,
                      n = new B(this.ctx),
                      r = [],
                      o = new H(this.ctx);
                    e.length &&
                      (this.dataPointsLen =
                        e[i.globals.maxValsInArrayIndex].length),
                      (this.disAngle = (2 * Math.PI) / this.dataPointsLen);
                    var s = i.globals.gridWidth / 2,
                      l = i.globals.gridHeight / 2,
                      c = s + i.config.plotOptions.radar.offsetX,
                      u = l + i.config.plotOptions.radar.offsetY,
                      d = this.graphics.group({
                        class: "apexcharts-radar-series apexcharts-plot-series",
                        transform: "translate("
                          .concat(c || 0, ", ")
                          .concat(u || 0, ")"),
                      }),
                      h = [],
                      f = null,
                      p = null;
                    if (
                      ((this.yaxisLabels = this.graphics.group({
                        class: "apexcharts-yaxis",
                      })),
                      e.forEach(function (e, s) {
                        var l = e.length === i.globals.dataPoints,
                          c = t.graphics.group().attr({
                            class: "apexcharts-series",
                            "data:longestSeries": l,
                            seriesName: b.escapeString(
                              i.globals.seriesNames[s]
                            ),
                            rel: s + 1,
                            "data:realIndex": s,
                          });
                        (t.dataRadiusOfPercent[s] = []),
                          (t.dataRadius[s] = []),
                          (t.angleArr[s] = []),
                          e.forEach(function (e, i) {
                            var n = Math.abs(t.maxValue - t.minValue);
                            (e += Math.abs(t.minValue)),
                              t.isLog && (e = t.coreUtils.getLogVal(e, 0)),
                              (t.dataRadiusOfPercent[s][i] = e / n),
                              (t.dataRadius[s][i] =
                                t.dataRadiusOfPercent[s][i] * t.size),
                              (t.angleArr[s][i] = i * t.disAngle);
                          }),
                          (h = t.getDataPointsPos(
                            t.dataRadius[s],
                            t.angleArr[s]
                          ));
                        var u = t.createPaths(h, { x: 0, y: 0 });
                        (f = t.graphics.group({
                          class:
                            "apexcharts-series-markers-wrap apexcharts-element-hidden",
                        })),
                          (p = t.graphics.group({
                            class: "apexcharts-datalabels",
                            "data:realIndex": s,
                          })),
                          i.globals.delayedElements.push({
                            el: f.node,
                            index: s,
                          });
                        var d = {
                            i: s,
                            realIndex: s,
                            animationDelay: s,
                            initialSpeed: i.config.chart.animations.speed,
                            dataChangeSpeed:
                              i.config.chart.animations.dynamicAnimation.speed,
                            className: "apexcharts-radar",
                            shouldClipToGrid: !1,
                            bindEventsOnPaths: !1,
                            stroke: i.globals.stroke.colors[s],
                            strokeLineCap: i.config.stroke.lineCap,
                          },
                          g = null;
                        i.globals.previousPaths.length > 0 &&
                          (g = t.getPreviousPath(s));
                        for (var m = 0; m < u.linePathsTo.length; m++) {
                          var v = t.graphics.renderPaths(
                            a(
                              a({}, d),
                              {},
                              {
                                pathFrom: null === g ? u.linePathsFrom[m] : g,
                                pathTo: u.linePathsTo[m],
                                strokeWidth: Array.isArray(t.strokeWidth)
                                  ? t.strokeWidth[s]
                                  : t.strokeWidth,
                                fill: "none",
                                drawShadow: !1,
                              }
                            )
                          );
                          c.add(v);
                          var y = n.fillPath({ seriesNumber: s }),
                            w = t.graphics.renderPaths(
                              a(
                                a({}, d),
                                {},
                                {
                                  pathFrom: null === g ? u.areaPathsFrom[m] : g,
                                  pathTo: u.areaPathsTo[m],
                                  strokeWidth: 0,
                                  fill: y,
                                  drawShadow: !1,
                                }
                              )
                            );
                          if (i.config.chart.dropShadow.enabled) {
                            var E = new x(t.ctx),
                              _ = i.config.chart.dropShadow;
                            E.dropShadow(
                              w,
                              Object.assign({}, _, { noUserSpaceOnUse: !0 }),
                              s
                            );
                          }
                          c.add(w);
                        }
                        e.forEach(function (e, n) {
                          var r = new z(t.ctx).getMarkerConfig({
                              cssClass: "apexcharts-marker",
                              seriesIndex: s,
                              dataPointIndex: n,
                            }),
                            l = t.graphics.drawMarker(h[n].x, h[n].y, r);
                          l.attr("rel", n),
                            l.attr("j", n),
                            l.attr("index", s),
                            l.node.setAttribute("default-marker-size", r.pSize);
                          var u = t.graphics.group({
                            class: "apexcharts-series-markers",
                          });
                          u && u.add(l), f.add(u), c.add(f);
                          var d = i.config.dataLabels;
                          if (d.enabled) {
                            var g = d.formatter(i.globals.series[s][n], {
                              seriesIndex: s,
                              dataPointIndex: n,
                              w: i,
                            });
                            o.plotDataLabelsText({
                              x: h[n].x,
                              y: h[n].y,
                              text: g,
                              textAnchor: "middle",
                              i: s,
                              j: s,
                              parent: p,
                              offsetCorrection: !1,
                              dataLabelsConfig: a({}, d),
                            });
                          }
                          c.add(p);
                        }),
                          r.push(c);
                      }),
                      this.drawPolygons({ parent: d }),
                      i.config.xaxis.labels.show)
                    ) {
                      var g = this.drawXAxisTexts();
                      d.add(g);
                    }
                    return (
                      r.forEach(function (e) {
                        d.add(e);
                      }),
                      d.add(this.yaxisLabels),
                      d
                    );
                  },
                },
                {
                  key: "drawPolygons",
                  value: function (e) {
                    for (
                      var t = this,
                        i = this.w,
                        n = e.parent,
                        r = new Te(this.ctx),
                        a = i.globals.yAxisScale[0].result.reverse(),
                        o = a.length,
                        s = [],
                        l = this.size / (o - 1),
                        c = 0;
                      c < o;
                      c++
                    )
                      s[c] = l * c;
                    s.reverse();
                    var u = [],
                      d = [];
                    s.forEach(function (e, i) {
                      var n = b.getPolygonPos(e, t.dataPointsLen),
                        r = "";
                      n.forEach(function (e, n) {
                        if (0 === i) {
                          var a = t.graphics.drawLine(
                            e.x,
                            e.y,
                            0,
                            0,
                            Array.isArray(t.polygons.connectorColors)
                              ? t.polygons.connectorColors[n]
                              : t.polygons.connectorColors
                          );
                          d.push(a);
                        }
                        0 === n &&
                          t.yaxisLabelsTextsPos.push({ x: e.x, y: e.y }),
                          (r += e.x + "," + e.y + " ");
                      }),
                        u.push(r);
                    }),
                      u.forEach(function (e, r) {
                        var a = t.polygons.strokeColors,
                          o = t.polygons.strokeWidth,
                          s = t.graphics.drawPolygon(
                            e,
                            Array.isArray(a) ? a[r] : a,
                            Array.isArray(o) ? o[r] : o,
                            i.globals.radarPolygons.fill.colors[r]
                          );
                        n.add(s);
                      }),
                      d.forEach(function (e) {
                        n.add(e);
                      }),
                      i.config.yaxis[0].show &&
                        this.yaxisLabelsTextsPos.forEach(function (e, i) {
                          var n = r.drawYAxisTexts(e.x, e.y, i, a[i]);
                          t.yaxisLabels.add(n);
                        });
                  },
                },
                {
                  key: "drawXAxisTexts",
                  value: function () {
                    var e = this,
                      t = this.w,
                      i = t.config.xaxis.labels,
                      n = this.graphics.group({ class: "apexcharts-xaxis" }),
                      r = b.getPolygonPos(this.size, this.dataPointsLen);
                    return (
                      t.globals.labels.forEach(function (o, s) {
                        var l = t.config.xaxis.labels.formatter,
                          c = new H(e.ctx);
                        if (r[s]) {
                          var u = e.getTextPos(r[s], e.size),
                            d = l(o, {
                              seriesIndex: -1,
                              dataPointIndex: s,
                              w: t,
                            });
                          c.plotDataLabelsText({
                            x: u.newX,
                            y: u.newY,
                            text: d,
                            textAnchor: u.textAnchor,
                            i: s,
                            j: s,
                            parent: n,
                            color:
                              Array.isArray(i.style.colors) && i.style.colors[s]
                                ? i.style.colors[s]
                                : "#a8a8a8",
                            dataLabelsConfig: a(
                              {
                                textAnchor: u.textAnchor,
                                dropShadow: { enabled: !1 },
                              },
                              i
                            ),
                            offsetCorrection: !1,
                          });
                        }
                      }),
                      n
                    );
                  },
                },
                {
                  key: "createPaths",
                  value: function (e, t) {
                    var i = this,
                      n = [],
                      r = [],
                      a = [],
                      o = [];
                    if (e.length) {
                      (r = [this.graphics.move(t.x, t.y)]),
                        (o = [this.graphics.move(t.x, t.y)]);
                      var s = this.graphics.move(e[0].x, e[0].y),
                        l = this.graphics.move(e[0].x, e[0].y);
                      e.forEach(function (t, n) {
                        (s += i.graphics.line(t.x, t.y)),
                          (l += i.graphics.line(t.x, t.y)),
                          n === e.length - 1 && ((s += "Z"), (l += "Z"));
                      }),
                        n.push(s),
                        a.push(l);
                    }
                    return {
                      linePathsFrom: r,
                      linePathsTo: n,
                      areaPathsFrom: o,
                      areaPathsTo: a,
                    };
                  },
                },
                {
                  key: "getTextPos",
                  value: function (e, t) {
                    var i = "middle",
                      n = e.x,
                      r = e.y;
                    return (
                      Math.abs(e.x) >= 10
                        ? e.x > 0
                          ? ((i = "start"), (n += 10))
                          : e.x < 0 && ((i = "end"), (n -= 10))
                        : (i = "middle"),
                      Math.abs(e.y) >= t - 10 &&
                        (e.y < 0 ? (r -= 10) : e.y > 0 && (r += 10)),
                      { textAnchor: i, newX: n, newY: r }
                    );
                  },
                },
                {
                  key: "getPreviousPath",
                  value: function (e) {
                    for (
                      var t = this.w, i = null, n = 0;
                      n < t.globals.previousPaths.length;
                      n++
                    ) {
                      var r = t.globals.previousPaths[n];
                      r.paths.length > 0 &&
                        parseInt(r.realIndex, 10) === parseInt(e, 10) &&
                        void 0 !== t.globals.previousPaths[n].paths[0] &&
                        (i = t.globals.previousPaths[n].paths[0].d);
                    }
                    return i;
                  },
                },
                {
                  key: "getDataPointsPos",
                  value: function (e, t) {
                    var i =
                      arguments.length > 2 && void 0 !== arguments[2]
                        ? arguments[2]
                        : this.dataPointsLen;
                    (e = e || []), (t = t || []);
                    for (var n = [], r = 0; r < i; r++) {
                      var a = {};
                      (a.x = e[r] * Math.sin(t[r])),
                        (a.y = -e[r] * Math.cos(t[r])),
                        n.push(a);
                    }
                    return n;
                  },
                },
              ]),
              e
            );
          })(),
          Ie = (function (e) {
            d(i, Ce);
            var t = p(i);
            function i(e) {
              var n;
              s(this, i),
                ((n = t.call(this, e)).ctx = e),
                (n.w = e.w),
                (n.animBeginArr = [0]),
                (n.animDur = 0);
              var r = n.w;
              return (
                (n.startAngle = r.config.plotOptions.radialBar.startAngle),
                (n.endAngle = r.config.plotOptions.radialBar.endAngle),
                (n.totalAngle = Math.abs(
                  r.config.plotOptions.radialBar.endAngle -
                    r.config.plotOptions.radialBar.startAngle
                )),
                (n.trackStartAngle =
                  r.config.plotOptions.radialBar.track.startAngle),
                (n.trackEndAngle =
                  r.config.plotOptions.radialBar.track.endAngle),
                (n.donutDataLabels =
                  n.w.config.plotOptions.radialBar.dataLabels),
                (n.radialDataLabels = n.donutDataLabels),
                n.trackStartAngle || (n.trackStartAngle = n.startAngle),
                n.trackEndAngle || (n.trackEndAngle = n.endAngle),
                360 === n.endAngle && (n.endAngle = 359.99),
                (n.margin = parseInt(
                  r.config.plotOptions.radialBar.track.margin,
                  10
                )),
                n
              );
            }
            return (
              c(i, [
                {
                  key: "draw",
                  value: function (e) {
                    var t = this.w,
                      i = new w(this.ctx),
                      n = i.group({ class: "apexcharts-radialbar" });
                    if (t.globals.noData) return n;
                    var r = i.group(),
                      a = this.defaultSize / 2,
                      o = t.globals.gridWidth / 2,
                      s = this.defaultSize / 2.05;
                    t.config.chart.sparkline.enabled ||
                      (s =
                        s -
                        t.config.stroke.width -
                        t.config.chart.dropShadow.blur);
                    var l = t.globals.fill.colors;
                    if (t.config.plotOptions.radialBar.track.show) {
                      var c = this.drawTracks({
                        size: s,
                        centerX: o,
                        centerY: a,
                        colorArr: l,
                        series: e,
                      });
                      r.add(c);
                    }
                    var u = this.drawArcs({
                        size: s,
                        centerX: o,
                        centerY: a,
                        colorArr: l,
                        series: e,
                      }),
                      d = 360;
                    t.config.plotOptions.radialBar.startAngle < 0 &&
                      (d = this.totalAngle);
                    var h = (360 - d) / 360;
                    if (
                      ((t.globals.radialSize = s - s * h),
                      this.radialDataLabels.value.show)
                    ) {
                      var f = Math.max(
                        this.radialDataLabels.value.offsetY,
                        this.radialDataLabels.name.offsetY
                      );
                      t.globals.radialSize += f * h;
                    }
                    return (
                      r.add(u.g),
                      "front" ===
                        t.config.plotOptions.radialBar.hollow.position &&
                        (u.g.add(u.elHollow),
                        u.dataLabels && u.g.add(u.dataLabels)),
                      n.add(r),
                      n
                    );
                  },
                },
                {
                  key: "drawTracks",
                  value: function (e) {
                    var t = this.w,
                      i = new w(this.ctx),
                      n = i.group({ class: "apexcharts-tracks" }),
                      r = new x(this.ctx),
                      a = new B(this.ctx),
                      o = this.getStrokeWidth(e);
                    e.size = e.size - o / 2;
                    for (var s = 0; s < e.series.length; s++) {
                      var l = i.group({
                        class: "apexcharts-radialbar-track apexcharts-track",
                      });
                      n.add(l),
                        l.attr({ rel: s + 1 }),
                        (e.size = e.size - o - this.margin);
                      var c = t.config.plotOptions.radialBar.track,
                        u = a.fillPath({
                          seriesNumber: 0,
                          size: e.size,
                          fillColors: Array.isArray(c.background)
                            ? c.background[s]
                            : c.background,
                          solid: !0,
                        }),
                        d = this.trackStartAngle,
                        h = this.trackEndAngle;
                      Math.abs(h) + Math.abs(d) >= 360 &&
                        (h = 360 - Math.abs(this.startAngle) - 0.1);
                      var f = i.drawPath({
                        d: "",
                        stroke: u,
                        strokeWidth: (o * parseInt(c.strokeWidth, 10)) / 100,
                        fill: "none",
                        strokeOpacity: c.opacity,
                        classes: "apexcharts-radialbar-area",
                      });
                      if (c.dropShadow.enabled) {
                        var p = c.dropShadow;
                        r.dropShadow(f, p);
                      }
                      l.add(f),
                        f.attr("id", "apexcharts-radialbarTrack-" + s),
                        this.animatePaths(f, {
                          centerX: e.centerX,
                          centerY: e.centerY,
                          endAngle: h,
                          startAngle: d,
                          size: e.size,
                          i: s,
                          totalItems: 2,
                          animBeginArr: 0,
                          dur: 0,
                          isTrack: !0,
                          easing: t.globals.easing,
                        });
                    }
                    return n;
                  },
                },
                {
                  key: "drawArcs",
                  value: function (e) {
                    var t = this.w,
                      i = new w(this.ctx),
                      n = new B(this.ctx),
                      r = new x(this.ctx),
                      a = i.group(),
                      o = this.getStrokeWidth(e);
                    e.size = e.size - o / 2;
                    var s = t.config.plotOptions.radialBar.hollow.background,
                      l =
                        e.size -
                        o * e.series.length -
                        this.margin * e.series.length -
                        (o *
                          parseInt(
                            t.config.plotOptions.radialBar.track.strokeWidth,
                            10
                          )) /
                          100 /
                          2,
                      c = l - t.config.plotOptions.radialBar.hollow.margin;
                    void 0 !== t.config.plotOptions.radialBar.hollow.image &&
                      (s = this.drawHollowImage(e, a, l, s));
                    var u = this.drawHollow({
                      size: c,
                      centerX: e.centerX,
                      centerY: e.centerY,
                      fill: s || "transparent",
                    });
                    if (
                      t.config.plotOptions.radialBar.hollow.dropShadow.enabled
                    ) {
                      var d = t.config.plotOptions.radialBar.hollow.dropShadow;
                      r.dropShadow(u, d);
                    }
                    var h = 1;
                    !this.radialDataLabels.total.show &&
                      t.globals.series.length > 1 &&
                      (h = 0);
                    var f = null;
                    this.radialDataLabels.show &&
                      (f = this.renderInnerDataLabels(this.radialDataLabels, {
                        hollowSize: l,
                        centerX: e.centerX,
                        centerY: e.centerY,
                        opacity: h,
                      })),
                      "back" ===
                        t.config.plotOptions.radialBar.hollow.position &&
                        (a.add(u), f && a.add(f));
                    var p = !1;
                    t.config.plotOptions.radialBar.inverseOrder && (p = !0);
                    for (
                      var g = p ? e.series.length - 1 : 0;
                      p ? g >= 0 : g < e.series.length;
                      p ? g-- : g++
                    ) {
                      var m = i.group({
                        class: "apexcharts-series apexcharts-radial-series",
                        seriesName: b.escapeString(t.globals.seriesNames[g]),
                      });
                      a.add(m),
                        m.attr({ rel: g + 1, "data:realIndex": g }),
                        this.ctx.series.addCollapsedClassToSeries(m, g),
                        (e.size = e.size - o - this.margin);
                      var v = n.fillPath({
                          seriesNumber: g,
                          size: e.size,
                          value: e.series[g],
                        }),
                        y = this.startAngle,
                        E = void 0,
                        _ =
                          b.negToZero(e.series[g] > 100 ? 100 : e.series[g]) /
                          100,
                        S = Math.round(this.totalAngle * _) + this.startAngle,
                        A = void 0;
                      t.globals.dataChanged &&
                        ((E = this.startAngle),
                        (A =
                          Math.round(
                            (this.totalAngle *
                              b.negToZero(t.globals.previousPaths[g])) /
                              100
                          ) + E)),
                        Math.abs(S) + Math.abs(y) >= 360 && (S -= 0.01),
                        Math.abs(A) + Math.abs(E) >= 360 && (A -= 0.01);
                      var k = S - y,
                        T = Array.isArray(t.config.stroke.dashArray)
                          ? t.config.stroke.dashArray[g]
                          : t.config.stroke.dashArray,
                        C = i.drawPath({
                          d: "",
                          stroke: v,
                          strokeWidth: o,
                          fill: "none",
                          fillOpacity: t.config.fill.opacity,
                          classes:
                            "apexcharts-radialbar-area apexcharts-radialbar-slice-" +
                            g,
                          strokeDashArray: T,
                        });
                      if (
                        (w.setAttrs(C.node, {
                          "data:angle": k,
                          "data:value": e.series[g],
                        }),
                        t.config.chart.dropShadow.enabled)
                      ) {
                        var O = t.config.chart.dropShadow;
                        r.dropShadow(C, O, g);
                      }
                      r.setSelectionFilter(C, 0, g),
                        this.addListeners(C, this.radialDataLabels),
                        m.add(C),
                        C.attr({ index: 0, j: g });
                      var I = 0;
                      !this.initialAnim ||
                        t.globals.resized ||
                        t.globals.dataChanged ||
                        (I = t.config.chart.animations.speed),
                        t.globals.dataChanged &&
                          (I =
                            t.config.chart.animations.dynamicAnimation.speed),
                        (this.animDur =
                          I / (1.2 * e.series.length) + this.animDur),
                        this.animBeginArr.push(this.animDur),
                        this.animatePaths(C, {
                          centerX: e.centerX,
                          centerY: e.centerY,
                          endAngle: S,
                          startAngle: y,
                          prevEndAngle: A,
                          prevStartAngle: E,
                          size: e.size,
                          i: g,
                          totalItems: 2,
                          animBeginArr: this.animBeginArr,
                          dur: I,
                          shouldSetPrevPaths: !0,
                          easing: t.globals.easing,
                        });
                    }
                    return { g: a, elHollow: u, dataLabels: f };
                  },
                },
                {
                  key: "drawHollow",
                  value: function (e) {
                    var t = new w(this.ctx).drawCircle(2 * e.size);
                    return (
                      t.attr({
                        class: "apexcharts-radialbar-hollow",
                        cx: e.centerX,
                        cy: e.centerY,
                        r: e.size,
                        fill: e.fill,
                      }),
                      t
                    );
                  },
                },
                {
                  key: "drawHollowImage",
                  value: function (e, t, i, n) {
                    var r = this.w,
                      a = new B(this.ctx),
                      o = b.randomId(),
                      s = r.config.plotOptions.radialBar.hollow.image;
                    if (r.config.plotOptions.radialBar.hollow.imageClipped)
                      a.clippedImgArea({
                        width: i,
                        height: i,
                        image: s,
                        patternID: "pattern".concat(r.globals.cuid).concat(o),
                      }),
                        (n = "url(#pattern"
                          .concat(r.globals.cuid)
                          .concat(o, ")"));
                    else {
                      var l = r.config.plotOptions.radialBar.hollow.imageWidth,
                        c = r.config.plotOptions.radialBar.hollow.imageHeight;
                      if (void 0 === l && void 0 === c) {
                        var u = r.globals.dom.Paper.image(s).loaded(function (
                          t
                        ) {
                          this.move(
                            e.centerX -
                              t.width / 2 +
                              r.config.plotOptions.radialBar.hollow
                                .imageOffsetX,
                            e.centerY -
                              t.height / 2 +
                              r.config.plotOptions.radialBar.hollow.imageOffsetY
                          );
                        });
                        t.add(u);
                      } else {
                        var d = r.globals.dom.Paper.image(s).loaded(function (
                          t
                        ) {
                          this.move(
                            e.centerX -
                              l / 2 +
                              r.config.plotOptions.radialBar.hollow
                                .imageOffsetX,
                            e.centerY -
                              c / 2 +
                              r.config.plotOptions.radialBar.hollow.imageOffsetY
                          ),
                            this.size(l, c);
                        });
                        t.add(d);
                      }
                    }
                    return n;
                  },
                },
                {
                  key: "getStrokeWidth",
                  value: function (e) {
                    var t = this.w;
                    return (
                      (e.size *
                        (100 -
                          parseInt(
                            t.config.plotOptions.radialBar.hollow.size,
                            10
                          ))) /
                        100 /
                        (e.series.length + 1) -
                      this.margin
                    );
                  },
                },
              ]),
              i
            );
          })(),
          Me = (function (e) {
            d(i, Ee);
            var t = p(i);
            function i() {
              return s(this, i), t.apply(this, arguments);
            }
            return (
              c(i, [
                {
                  key: "draw",
                  value: function (e, t) {
                    var i = this.w,
                      n = new w(this.ctx);
                    (this.rangeBarOptions = this.w.config.plotOptions.rangeBar),
                      (this.series = e),
                      (this.seriesRangeStart = i.globals.seriesRangeStart),
                      (this.seriesRangeEnd = i.globals.seriesRangeEnd),
                      this.barHelpers.initVariables(e);
                    for (
                      var r = n.group({
                          class:
                            "apexcharts-rangebar-series apexcharts-plot-series",
                        }),
                        o = 0;
                      o < e.length;
                      o++
                    ) {
                      var s,
                        l,
                        c,
                        u = void 0,
                        d = void 0,
                        h = void 0,
                        f = i.globals.comboCharts ? t[o] : o,
                        p = n.group({
                          class: "apexcharts-series",
                          seriesName: b.escapeString(i.globals.seriesNames[f]),
                          rel: o + 1,
                          "data:realIndex": f,
                        });
                      this.ctx.series.addCollapsedClassToSeries(p, f),
                        e[o].length > 0 && (this.visibleI = this.visibleI + 1);
                      var g = 0,
                        m = 0;
                      this.yRatio.length > 1 && (this.yaxisIndex = f);
                      var v = this.barHelpers.initialPositions();
                      (d = v.y),
                        (c = v.zeroW),
                        (u = v.x),
                        (m = v.barWidth),
                        (s = v.xDivision),
                        (l = v.zeroH);
                      for (
                        var y = n.group({
                            class: "apexcharts-datalabels",
                            "data:realIndex": f,
                          }),
                          x = n.group({
                            class: "apexcharts-rangebar-goals-markers",
                            style: "pointer-events: none",
                          }),
                          E = 0;
                        E < i.globals.dataPoints;
                        E++
                      ) {
                        var _ = this.barHelpers.getStrokeWidth(o, E, f),
                          S = this.seriesRangeStart[o][E],
                          A = this.seriesRangeEnd[o][E],
                          k = null,
                          T = null,
                          C = { x: u, y: d, strokeWidth: _, elSeries: p };
                        if (
                          ((h = v.yDivision),
                          (g = v.barHeight),
                          this.isHorizontal)
                        ) {
                          T = d + g * this.visibleI;
                          var O = this.seriesLen;
                          i.config.plotOptions.bar.rangeBarGroupRows && (O = 1);
                          var I = (h - g * O) / 2;
                          if (void 0 === i.config.series[o].data[E]) break;
                          if (i.config.series[o].data[E].x) {
                            var M = this.detectOverlappingBars({
                              i: o,
                              j: E,
                              barYPosition: T,
                              srty: I,
                              barHeight: g,
                              yDivision: h,
                              initPositions: v,
                            });
                            (g = M.barHeight), (T = M.barYPosition);
                          }
                          m = (k = this.drawRangeBarPaths(
                            a(
                              {
                                indexes: { i: o, j: E, realIndex: f },
                                barHeight: g,
                                barYPosition: T,
                                zeroW: c,
                                yDivision: h,
                                y1: S,
                                y2: A,
                              },
                              C
                            )
                          )).barWidth;
                        } else
                          g = (k = this.drawRangeColumnPaths(
                            a(
                              {
                                indexes: { i: o, j: E, realIndex: f },
                                zeroH: l,
                                barWidth: m,
                                xDivision: s,
                              },
                              C
                            )
                          )).barHeight;
                        var L = this.barHelpers.drawGoalLine({
                          barXPosition: k.barXPosition,
                          barYPosition: T,
                          goalX: k.goalX,
                          goalY: k.goalY,
                          barHeight: g,
                          barWidth: m,
                        });
                        L && x.add(L), (d = k.y), (u = k.x);
                        var P = this.barHelpers.getPathFillColor(e, o, E, f),
                          D = i.globals.stroke.colors[f];
                        this.renderSeries({
                          realIndex: f,
                          pathFill: P,
                          lineFill: D,
                          j: E,
                          i: o,
                          x: u,
                          y: d,
                          y1: S,
                          y2: A,
                          pathFrom: k.pathFrom,
                          pathTo: k.pathTo,
                          strokeWidth: _,
                          elSeries: p,
                          series: e,
                          barHeight: g,
                          barYPosition: T,
                          barWidth: m,
                          elDataLabelsWrap: y,
                          elGoalsMarkers: x,
                          visibleSeries: this.visibleI,
                          type: "rangebar",
                        });
                      }
                      r.add(p);
                    }
                    return r;
                  },
                },
                {
                  key: "detectOverlappingBars",
                  value: function (e) {
                    var t = e.i,
                      i = e.j,
                      n = e.barYPosition,
                      r = e.srty,
                      a = e.barHeight,
                      o = e.yDivision,
                      s = e.initPositions,
                      l = this.w,
                      c = [],
                      u = l.config.series[t].data[i].rangeName,
                      d = l.config.series[t].data[i].x,
                      h = l.globals.labels.indexOf(d),
                      f = l.globals.seriesRange[t].findIndex(function (e) {
                        return e.x === d && e.overlaps.length > 0;
                      });
                    return (
                      (n = l.config.plotOptions.bar.rangeBarGroupRows
                        ? r + o * h
                        : r + a * this.visibleI + o * h),
                      f > -1 &&
                        !l.config.plotOptions.bar.rangeBarOverlap &&
                        (c = l.globals.seriesRange[t][f].overlaps).indexOf(u) >
                          -1 &&
                        (n =
                          (a = s.barHeight / c.length) * this.visibleI +
                          (o *
                            (100 - parseInt(this.barOptions.barHeight, 10))) /
                            100 /
                            2 +
                          a * (this.visibleI + c.indexOf(u)) +
                          o * h),
                      { barYPosition: n, barHeight: a }
                    );
                  },
                },
                {
                  key: "drawRangeColumnPaths",
                  value: function (e) {
                    var t = e.indexes,
                      i = e.x;
                    e.strokeWidth;
                    var n = e.xDivision,
                      r = e.barWidth,
                      a = e.zeroH,
                      o = this.w,
                      s = t.i,
                      l = t.j,
                      c = this.yRatio[this.yaxisIndex],
                      u = t.realIndex,
                      d = this.getRangeValue(u, l),
                      h = Math.min(d.start, d.end),
                      f = Math.max(d.start, d.end);
                    o.globals.isXNumeric &&
                      (i =
                        (o.globals.seriesX[s][l] - o.globals.minX) /
                          this.xRatio -
                        r / 2);
                    var p = i + r * this.visibleI;
                    void 0 === this.series[s][l] || null === this.series[s][l]
                      ? (h = a)
                      : ((h = a - h / c), (f = a - f / c));
                    var g = Math.abs(f - h),
                      m = this.barHelpers.getColumnPaths({
                        barXPosition: p,
                        barWidth: r,
                        y1: h,
                        y2: f,
                        strokeWidth: this.strokeWidth,
                        series: this.seriesRangeEnd,
                        realIndex: t.realIndex,
                        i: u,
                        j: l,
                        w: o,
                      });
                    return (
                      o.globals.isXNumeric || (i += n),
                      {
                        pathTo: m.pathTo,
                        pathFrom: m.pathFrom,
                        barHeight: g,
                        x: i,
                        y: f,
                        goalY: this.barHelpers.getGoalValues(
                          "y",
                          null,
                          a,
                          s,
                          l
                        ),
                        barXPosition: p,
                      }
                    );
                  },
                },
                {
                  key: "drawRangeBarPaths",
                  value: function (e) {
                    var t = e.indexes,
                      i = e.y,
                      n = e.y1,
                      r = e.y2,
                      a = e.yDivision,
                      o = e.barHeight,
                      s = e.barYPosition,
                      l = e.zeroW,
                      c = this.w,
                      u = l + n / this.invertedYRatio,
                      d = l + r / this.invertedYRatio,
                      h = Math.abs(d - u),
                      f = this.barHelpers.getBarpaths({
                        barYPosition: s,
                        barHeight: o,
                        x1: u,
                        x2: d,
                        strokeWidth: this.strokeWidth,
                        series: this.seriesRangeEnd,
                        i: t.realIndex,
                        realIndex: t.realIndex,
                        j: t.j,
                        w: c,
                      });
                    return (
                      c.globals.isXNumeric || (i += a),
                      {
                        pathTo: f.pathTo,
                        pathFrom: f.pathFrom,
                        barWidth: h,
                        x: d,
                        goalX: this.barHelpers.getGoalValues(
                          "x",
                          l,
                          null,
                          t.realIndex,
                          t.j
                        ),
                        y: i,
                      }
                    );
                  },
                },
                {
                  key: "getRangeValue",
                  value: function (e, t) {
                    var i = this.w;
                    return {
                      start: i.globals.seriesRangeStart[e][t],
                      end: i.globals.seriesRangeEnd[e][t],
                    };
                  },
                },
              ]),
              i
            );
          })(),
          Le = (function () {
            function e(t) {
              s(this, e), (this.w = t.w), (this.lineCtx = t);
            }
            return (
              c(e, [
                {
                  key: "sameValueSeriesFix",
                  value: function (e, t) {
                    var i = this.w;
                    if (
                      ("gradient" === i.config.fill.type ||
                        "gradient" === i.config.fill.type[e]) &&
                      new E(this.lineCtx.ctx, i).seriesHaveSameValues(e)
                    ) {
                      var n = t[e].slice();
                      (n[n.length - 1] = n[n.length - 1] + 1e-6), (t[e] = n);
                    }
                    return t;
                  },
                },
                {
                  key: "calculatePoints",
                  value: function (e) {
                    var t = e.series,
                      i = e.realIndex,
                      n = e.x,
                      r = e.y,
                      a = e.i,
                      o = e.j,
                      s = e.prevY,
                      l = this.w,
                      c = [],
                      u = [];
                    if (0 === o) {
                      var d =
                        this.lineCtx.categoryAxisCorrection +
                        l.config.markers.offsetX;
                      l.globals.isXNumeric &&
                        (d =
                          (l.globals.seriesX[i][0] - l.globals.minX) /
                            this.lineCtx.xRatio +
                          l.config.markers.offsetX),
                        c.push(d),
                        u.push(
                          b.isNumber(t[a][0])
                            ? s + l.config.markers.offsetY
                            : null
                        ),
                        c.push(n + l.config.markers.offsetX),
                        u.push(
                          b.isNumber(t[a][o + 1])
                            ? r + l.config.markers.offsetY
                            : null
                        );
                    } else
                      c.push(n + l.config.markers.offsetX),
                        u.push(
                          b.isNumber(t[a][o + 1])
                            ? r + l.config.markers.offsetY
                            : null
                        );
                    return { x: c, y: u };
                  },
                },
                {
                  key: "checkPreviousPaths",
                  value: function (e) {
                    for (
                      var t = e.pathFromLine,
                        i = e.pathFromArea,
                        n = e.realIndex,
                        r = this.w,
                        a = 0;
                      a < r.globals.previousPaths.length;
                      a++
                    ) {
                      var o = r.globals.previousPaths[a];
                      ("line" === o.type || "area" === o.type) &&
                        o.paths.length > 0 &&
                        parseInt(o.realIndex, 10) === parseInt(n, 10) &&
                        ("line" === o.type
                          ? ((this.lineCtx.appendPathFrom = !1),
                            (t = r.globals.previousPaths[a].paths[0].d))
                          : "area" === o.type &&
                            ((this.lineCtx.appendPathFrom = !1),
                            (i = r.globals.previousPaths[a].paths[0].d),
                            r.config.stroke.show &&
                              r.globals.previousPaths[a].paths[1] &&
                              (t = r.globals.previousPaths[a].paths[1].d)));
                    }
                    return { pathFromLine: t, pathFromArea: i };
                  },
                },
                {
                  key: "determineFirstPrevY",
                  value: function (e) {
                    var t,
                      i = e.i,
                      n = e.series,
                      r = e.prevY,
                      a = e.lineYPosition,
                      o = this.w;
                    if (
                      void 0 !==
                      (null === (t = n[i]) || void 0 === t ? void 0 : t[0])
                    )
                      r =
                        (a =
                          o.config.chart.stacked && i > 0
                            ? this.lineCtx.prevSeriesY[i - 1][0]
                            : this.lineCtx.zeroY) -
                        n[i][0] / this.lineCtx.yRatio[this.lineCtx.yaxisIndex] +
                        2 *
                          (this.lineCtx.isReversed
                            ? n[i][0] /
                              this.lineCtx.yRatio[this.lineCtx.yaxisIndex]
                            : 0);
                    else if (
                      o.config.chart.stacked &&
                      i > 0 &&
                      void 0 === n[i][0]
                    )
                      for (var s = i - 1; s >= 0; s--)
                        if (null !== n[s][0] && void 0 !== n[s][0]) {
                          r = a = this.lineCtx.prevSeriesY[s][0];
                          break;
                        }
                    return { prevY: r, lineYPosition: a };
                  },
                },
              ]),
              e
            );
          })(),
          Pe = (function () {
            function e(t, i, n) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.xyRatios = i),
                (this.pointsChart =
                  !(
                    "bubble" !== this.w.config.chart.type &&
                    "scatter" !== this.w.config.chart.type
                  ) || n),
                (this.scatter = new j(this.ctx)),
                (this.noNegatives = this.w.globals.minX === Number.MAX_VALUE),
                (this.lineHelpers = new Le(this)),
                (this.markers = new z(this.ctx)),
                (this.prevSeriesY = []),
                (this.categoryAxisCorrection = 0),
                (this.yaxisIndex = 0);
            }
            return (
              c(e, [
                {
                  key: "draw",
                  value: function (e, t, i, n) {
                    var r = this.w,
                      o = new w(this.ctx),
                      s = r.globals.comboCharts ? t : r.config.chart.type,
                      l = o.group({
                        class: "apexcharts-".concat(
                          s,
                          "-series apexcharts-plot-series"
                        ),
                      }),
                      c = new E(this.ctx, r);
                    (this.yRatio = this.xyRatios.yRatio),
                      (this.zRatio = this.xyRatios.zRatio),
                      (this.xRatio = this.xyRatios.xRatio),
                      (this.baseLineY = this.xyRatios.baseLineY),
                      (e = c.getLogSeries(e)),
                      (this.yRatio = c.getLogYRatios(this.yRatio));
                    for (var u = [], d = 0; d < e.length; d++) {
                      e = this.lineHelpers.sameValueSeriesFix(d, e);
                      var h = r.globals.comboCharts ? i[d] : d;
                      this._initSerieVariables(e, d, h);
                      var f = [],
                        p = [],
                        g =
                          r.globals.padHorizontal + this.categoryAxisCorrection;
                      this.ctx.series.addCollapsedClassToSeries(
                        this.elSeries,
                        h
                      ),
                        r.globals.isXNumeric &&
                          r.globals.seriesX.length > 0 &&
                          (g =
                            (r.globals.seriesX[h][0] - r.globals.minX) /
                            this.xRatio),
                        p.push(g);
                      var m,
                        v = g,
                        b = void 0,
                        y = v,
                        x = this.zeroY,
                        _ = this.zeroY;
                      (x = this.lineHelpers.determineFirstPrevY({
                        i: d,
                        series: e,
                        prevY: x,
                        lineYPosition: 0,
                      }).prevY),
                        f.push(x),
                        (m = x),
                        "rangeArea" === s &&
                          (b = _ =
                            this.lineHelpers.determineFirstPrevY({
                              i: d,
                              series: n,
                              prevY: _,
                              lineYPosition: 0,
                            }).prevY);
                      var S = {
                          type: s,
                          series: e,
                          realIndex: h,
                          i: d,
                          x: g,
                          y: 1,
                          pX: v,
                          pY: m,
                          pathsFrom: this._calculatePathsFrom({
                            type: s,
                            series: e,
                            i: d,
                            realIndex: h,
                            prevX: y,
                            prevY: x,
                            prevY2: _,
                          }),
                          linePaths: [],
                          areaPaths: [],
                          seriesIndex: i,
                          lineYPosition: 0,
                          xArrj: p,
                          yArrj: f,
                          seriesRangeEnd: n,
                        },
                        A = this._iterateOverDataPoints(
                          a(
                            a({}, S),
                            {},
                            {
                              iterations:
                                "rangeArea" === s ? e[d].length - 1 : void 0,
                              isRangeStart: !0,
                            }
                          )
                        );
                      if ("rangeArea" === s) {
                        var k = this._calculatePathsFrom({
                            series: n,
                            i: d,
                            realIndex: h,
                            prevX: y,
                            prevY: _,
                          }),
                          T = this._iterateOverDataPoints(
                            a(
                              a({}, S),
                              {},
                              {
                                series: n,
                                pY: b,
                                pathsFrom: k,
                                iterations: n[d].length - 1,
                                isRangeStart: !1,
                              }
                            )
                          );
                        (A.linePaths[0] = T.linePath + A.linePath),
                          (A.pathFromLine = T.pathFromLine + A.pathFromLine);
                      }
                      this._handlePaths({
                        type: s,
                        realIndex: h,
                        i: d,
                        paths: A,
                      }),
                        this.elSeries.add(this.elPointsMain),
                        this.elSeries.add(this.elDataLabelsWrap),
                        u.push(this.elSeries);
                    }
                    if (r.config.chart.stacked)
                      for (var C = u.length; C > 0; C--) l.add(u[C - 1]);
                    else for (var O = 0; O < u.length; O++) l.add(u[O]);
                    return l;
                  },
                },
                {
                  key: "_initSerieVariables",
                  value: function (e, t, i) {
                    var n = this.w,
                      r = new w(this.ctx);
                    (this.xDivision =
                      n.globals.gridWidth /
                      (n.globals.dataPoints -
                        ("on" === n.config.xaxis.tickPlacement ? 1 : 0))),
                      (this.strokeWidth = Array.isArray(n.config.stroke.width)
                        ? n.config.stroke.width[i]
                        : n.config.stroke.width),
                      this.yRatio.length > 1 && (this.yaxisIndex = i),
                      (this.isReversed =
                        n.config.yaxis[this.yaxisIndex] &&
                        n.config.yaxis[this.yaxisIndex].reversed),
                      (this.zeroY =
                        n.globals.gridHeight -
                        this.baseLineY[this.yaxisIndex] -
                        (this.isReversed ? n.globals.gridHeight : 0) +
                        (this.isReversed
                          ? 2 * this.baseLineY[this.yaxisIndex]
                          : 0)),
                      (this.areaBottomY = this.zeroY),
                      (this.zeroY > n.globals.gridHeight ||
                        "end" === n.config.plotOptions.area.fillTo) &&
                        (this.areaBottomY = n.globals.gridHeight),
                      (this.categoryAxisCorrection = this.xDivision / 2),
                      (this.elSeries = r.group({
                        class: "apexcharts-series",
                        seriesName: b.escapeString(n.globals.seriesNames[i]),
                      })),
                      (this.elPointsMain = r.group({
                        class: "apexcharts-series-markers-wrap",
                        "data:realIndex": i,
                      })),
                      (this.elDataLabelsWrap = r.group({
                        class: "apexcharts-datalabels",
                        "data:realIndex": i,
                      }));
                    var a = e[t].length === n.globals.dataPoints;
                    this.elSeries.attr({
                      "data:longestSeries": a,
                      rel: t + 1,
                      "data:realIndex": i,
                    }),
                      (this.appendPathFrom = !0);
                  },
                },
                {
                  key: "_calculatePathsFrom",
                  value: function (e) {
                    var t,
                      i,
                      n,
                      r,
                      a = e.type,
                      o = e.series,
                      s = e.i,
                      l = e.realIndex,
                      c = e.prevX,
                      u = e.prevY,
                      d = e.prevY2,
                      h = this.w,
                      f = new w(this.ctx);
                    if (null === o[s][0]) {
                      for (var p = 0; p < o[s].length; p++)
                        if (null !== o[s][p]) {
                          (c = this.xDivision * p),
                            (u =
                              this.zeroY -
                              o[s][p] / this.yRatio[this.yaxisIndex]),
                            (t = f.move(c, u)),
                            (i = f.move(c, this.areaBottomY));
                          break;
                        }
                    } else
                      (t = f.move(c, u)),
                        "rangeArea" === a && (t = f.move(c, d) + f.line(c, u)),
                        (i = f.move(c, this.areaBottomY) + f.line(c, u));
                    if (
                      ((n = f.move(-1, this.zeroY) + f.line(-1, this.zeroY)),
                      (r = f.move(-1, this.zeroY) + f.line(-1, this.zeroY)),
                      h.globals.previousPaths.length > 0)
                    ) {
                      var g = this.lineHelpers.checkPreviousPaths({
                        pathFromLine: n,
                        pathFromArea: r,
                        realIndex: l,
                      });
                      (n = g.pathFromLine), (r = g.pathFromArea);
                    }
                    return {
                      prevX: c,
                      prevY: u,
                      linePath: t,
                      areaPath: i,
                      pathFromLine: n,
                      pathFromArea: r,
                    };
                  },
                },
                {
                  key: "_handlePaths",
                  value: function (e) {
                    var t = e.type,
                      i = e.realIndex,
                      n = e.i,
                      r = e.paths,
                      o = this.w,
                      s = new w(this.ctx),
                      l = new B(this.ctx);
                    this.prevSeriesY.push(r.yArrj),
                      (o.globals.seriesXvalues[i] = r.xArrj),
                      (o.globals.seriesYvalues[i] = r.yArrj);
                    var c = o.config.forecastDataPoints;
                    if (c.count > 0 && "rangeArea" !== t) {
                      var u =
                          o.globals.seriesXvalues[i][
                            o.globals.seriesXvalues[i].length - c.count - 1
                          ],
                        d = s.drawRect(
                          u,
                          0,
                          o.globals.gridWidth,
                          o.globals.gridHeight,
                          0
                        );
                      o.globals.dom.elForecastMask.appendChild(d.node);
                      var h = s.drawRect(0, 0, u, o.globals.gridHeight, 0);
                      o.globals.dom.elNonForecastMask.appendChild(h.node);
                    }
                    this.pointsChart ||
                      o.globals.delayedElements.push({
                        el: this.elPointsMain.node,
                        index: i,
                      });
                    var f = {
                      i: n,
                      realIndex: i,
                      animationDelay: n,
                      initialSpeed: o.config.chart.animations.speed,
                      dataChangeSpeed:
                        o.config.chart.animations.dynamicAnimation.speed,
                      className: "apexcharts-".concat(t),
                    };
                    if ("area" === t)
                      for (
                        var p = l.fillPath({ seriesNumber: i }), g = 0;
                        g < r.areaPaths.length;
                        g++
                      ) {
                        var m = s.renderPaths(
                          a(
                            a({}, f),
                            {},
                            {
                              pathFrom: r.pathFromArea,
                              pathTo: r.areaPaths[g],
                              stroke: "none",
                              strokeWidth: 0,
                              strokeLineCap: null,
                              fill: p,
                            }
                          )
                        );
                        this.elSeries.add(m);
                      }
                    if (o.config.stroke.show && !this.pointsChart) {
                      var v = null;
                      if ("line" === t)
                        v = l.fillPath({ seriesNumber: i, i: n });
                      else if ("solid" === o.config.stroke.fill.type)
                        v = o.globals.stroke.colors[i];
                      else {
                        var b = o.config.fill;
                        (o.config.fill = o.config.stroke.fill),
                          (v = l.fillPath({ seriesNumber: i, i: n })),
                          (o.config.fill = b);
                      }
                      for (var y = 0; y < r.linePaths.length; y++) {
                        var x = v;
                        "rangeArea" === t &&
                          (x = l.fillPath({ seriesNumber: i }));
                        var E = a(
                            a({}, f),
                            {},
                            {
                              pathFrom: r.pathFromLine,
                              pathTo: r.linePaths[y],
                              stroke: v,
                              strokeWidth: this.strokeWidth,
                              strokeLineCap: o.config.stroke.lineCap,
                              fill: "rangeArea" === t ? x : "none",
                            }
                          ),
                          _ = s.renderPaths(E);
                        if (
                          (this.elSeries.add(_),
                          _.attr("fill-rule", "evenodd"),
                          c.count > 0 && "rangeArea" !== t)
                        ) {
                          var S = s.renderPaths(E);
                          S.node.setAttribute("stroke-dasharray", c.dashArray),
                            c.strokeWidth &&
                              S.node.setAttribute(
                                "stroke-width",
                                c.strokeWidth
                              ),
                            this.elSeries.add(S),
                            S.attr(
                              "clip-path",
                              "url(#forecastMask".concat(o.globals.cuid, ")")
                            ),
                            _.attr(
                              "clip-path",
                              "url(#nonForecastMask".concat(o.globals.cuid, ")")
                            );
                        }
                      }
                    }
                  },
                },
                {
                  key: "_iterateOverDataPoints",
                  value: function (e) {
                    var t = e.type,
                      i = e.series,
                      n = e.iterations,
                      r = e.realIndex,
                      a = e.i,
                      o = e.x,
                      s = e.y,
                      l = e.pX,
                      c = e.pY,
                      u = e.pathsFrom,
                      d = e.linePaths,
                      h = e.areaPaths,
                      f = e.seriesIndex,
                      p = e.lineYPosition,
                      g = e.xArrj,
                      m = e.yArrj,
                      v = e.isRangeStart,
                      y = e.seriesRangeEnd,
                      x = this.w,
                      E = new w(this.ctx),
                      _ = this.yRatio,
                      S = u.prevY,
                      A = u.linePath,
                      k = u.areaPath,
                      T = u.pathFromLine,
                      C = u.pathFromArea,
                      O = b.isNumber(x.globals.minYArr[r])
                        ? x.globals.minYArr[r]
                        : x.globals.minY;
                    n ||
                      (n =
                        x.globals.dataPoints > 1
                          ? x.globals.dataPoints - 1
                          : x.globals.dataPoints);
                    for (var I = s, M = 0; M < n; M++) {
                      var L = void 0 === i[a][M + 1] || null === i[a][M + 1];
                      if (x.globals.isXNumeric) {
                        var P = x.globals.seriesX[r][M + 1];
                        void 0 === x.globals.seriesX[r][M + 1] &&
                          (P = x.globals.seriesX[r][n - 1]),
                          (o = (P - x.globals.minX) / this.xRatio);
                      } else o += this.xDivision;
                      (p =
                        x.config.chart.stacked &&
                        a > 0 &&
                        x.globals.collapsedSeries.length <
                          x.config.series.length - 1
                          ? this.prevSeriesY[
                              (function (e) {
                                for (
                                  var t = e, i = 0;
                                  i < x.globals.series.length;
                                  i++
                                )
                                  if (
                                    x.globals.collapsedSeriesIndices.indexOf(
                                      e
                                    ) > -1
                                  ) {
                                    t--;
                                    break;
                                  }
                                return t >= 0 ? t : 0;
                              })(a - 1)
                            ][M + 1]
                          : this.zeroY),
                        L
                          ? (s =
                              p -
                              O / _[this.yaxisIndex] +
                              2 *
                                (this.isReversed ? O / _[this.yaxisIndex] : 0))
                          : ((s =
                              p -
                              i[a][M + 1] / _[this.yaxisIndex] +
                              2 *
                                (this.isReversed
                                  ? i[a][M + 1] / _[this.yaxisIndex]
                                  : 0)),
                            "rangeArea" === t &&
                              (I =
                                p -
                                y[a][M + 1] / _[this.yaxisIndex] +
                                2 *
                                  (this.isReversed
                                    ? y[a][M + 1] / _[this.yaxisIndex]
                                    : 0))),
                        g.push(o),
                        m.push(s);
                      var D = this.lineHelpers.calculatePoints({
                          series: i,
                          x: o,
                          y: s,
                          realIndex: r,
                          i: a,
                          j: M,
                          prevY: S,
                        }),
                        R = this._createPaths({
                          type: t,
                          series: i,
                          i: a,
                          realIndex: r,
                          j: M,
                          x: o,
                          y: s,
                          y2: I,
                          pX: l,
                          pY: c,
                          linePath: A,
                          areaPath: k,
                          linePaths: d,
                          areaPaths: h,
                          seriesIndex: f,
                          isRangeStart: v,
                        });
                      (h = R.areaPaths),
                        (d = R.linePaths),
                        (l = R.pX),
                        (c = R.pY),
                        (k = R.areaPath),
                        (A = R.linePath),
                        this.appendPathFrom &&
                          ((T += E.line(o, this.zeroY)),
                          (C += E.line(o, this.zeroY))),
                        this.handleNullDataPoints(i, D, a, M, r),
                        this._handleMarkersAndLabels({
                          type: t,
                          pointsPos: D,
                          i: a,
                          j: M,
                          realIndex: r,
                          isRangeStart: v,
                        });
                    }
                    return {
                      yArrj: m,
                      xArrj: g,
                      pathFromArea: C,
                      areaPaths: h,
                      pathFromLine: T,
                      linePaths: d,
                      linePath: A,
                      areaPath: k,
                    };
                  },
                },
                {
                  key: "_handleMarkersAndLabels",
                  value: function (e) {
                    var t = e.type,
                      i = e.pointsPos,
                      n = e.isRangeStart,
                      r = e.i,
                      a = e.j,
                      o = e.realIndex,
                      s = this.w,
                      l = new H(this.ctx);
                    if (this.pointsChart)
                      this.scatter.draw(this.elSeries, a, {
                        realIndex: o,
                        pointsPos: i,
                        zRatio: this.zRatio,
                        elParent: this.elPointsMain,
                      });
                    else {
                      s.globals.series[r].length > 1 &&
                        this.elPointsMain.node.classList.add(
                          "apexcharts-element-hidden"
                        );
                      var c = this.markers.plotChartMarkers(i, o, a + 1);
                      null !== c && this.elPointsMain.add(c);
                    }
                    var u = l.drawDataLabel({
                      type: t,
                      isRangeStart: n,
                      pos: i,
                      i: o,
                      j: a + 1,
                    });
                    null !== u && this.elDataLabelsWrap.add(u);
                  },
                },
                {
                  key: "_createPaths",
                  value: function (e) {
                    var t = e.type,
                      i = e.series,
                      n = e.i,
                      r = e.realIndex,
                      a = e.j,
                      o = e.x,
                      s = e.y,
                      l = e.y2,
                      c = e.pX,
                      u = e.pY,
                      d = e.linePath,
                      h = e.areaPath,
                      f = e.linePaths,
                      p = e.areaPaths,
                      g = e.seriesIndex,
                      m = e.isRangeStart,
                      v = this.w,
                      b = new w(this.ctx),
                      y = v.config.stroke.curve,
                      x = this.areaBottomY;
                    if (
                      (Array.isArray(v.config.stroke.curve) &&
                        (y = Array.isArray(g)
                          ? v.config.stroke.curve[g[n]]
                          : v.config.stroke.curve[n]),
                      "smooth" === y)
                    ) {
                      var E = 0.35 * (o - c);
                      v.globals.hasNullValues
                        ? (null !== i[n][a] &&
                            (null !== i[n][a + 1]
                              ? ((d =
                                  b.move(c, u) +
                                  b.curve(c + E, u, o - E, s, o + 1, s)),
                                (h =
                                  b.move(c + 1, u) +
                                  b.curve(c + E, u, o - E, s, o + 1, s) +
                                  b.line(o, x) +
                                  b.line(c, x) +
                                  "z"))
                              : ((d = b.move(c, u)), (h = b.move(c, u) + "z"))),
                          f.push(d),
                          p.push(h))
                        : ((d += b.curve(c + E, u, o - E, s, o, s)),
                          (h += b.curve(c + E, u, o - E, s, o, s))),
                        (c = o),
                        (u = s),
                        a === i[n].length - 2 &&
                          ((h =
                            h + b.curve(c, u, o, s, o, x) + b.move(o, s) + "z"),
                          "rangeArea" === t && m
                            ? (d =
                                d +
                                b.curve(c, u, o, s, o, l) +
                                b.move(o, l) +
                                "z")
                            : v.globals.hasNullValues ||
                              (f.push(d), p.push(h)));
                    } else {
                      if (null === i[n][a + 1]) {
                        d += b.move(o, s);
                        var _ = v.globals.isXNumeric
                          ? (v.globals.seriesX[r][a] - v.globals.minX) /
                            this.xRatio
                          : o - this.xDivision;
                        h = h + b.line(_, x) + b.move(o, s) + "z";
                      }
                      null === i[n][a] &&
                        ((d += b.move(o, s)), (h += b.move(o, x))),
                        "stepline" === y
                          ? ((d =
                              d + b.line(o, null, "H") + b.line(null, s, "V")),
                            (h =
                              h + b.line(o, null, "H") + b.line(null, s, "V")))
                          : "straight" === y &&
                            ((d += b.line(o, s)), (h += b.line(o, s))),
                        a === i[n].length - 2 &&
                          ((h = h + b.line(o, x) + b.move(o, s) + "z"),
                          "rangeArea" === t && m
                            ? (d = d + b.line(o, l) + b.move(o, l) + "z")
                            : (f.push(d), p.push(h)));
                    }
                    return {
                      linePaths: f,
                      areaPaths: p,
                      pX: c,
                      pY: u,
                      linePath: d,
                      areaPath: h,
                    };
                  },
                },
                {
                  key: "handleNullDataPoints",
                  value: function (e, t, i, n, r) {
                    var a = this.w;
                    if (
                      (null === e[i][n] &&
                        a.config.markers.showNullDataPoints) ||
                      1 === e[i].length
                    ) {
                      var o = this.markers.plotChartMarkers(
                        t,
                        r,
                        n + 1,
                        this.strokeWidth - a.config.markers.strokeWidth / 2,
                        !0
                      );
                      null !== o && this.elPointsMain.add(o);
                    }
                  },
                },
              ]),
              e
            );
          })();
        (window.TreemapSquared = {}),
          (window.TreemapSquared.generate = (function () {
            function e(t, i, n, r) {
              (this.xoffset = t),
                (this.yoffset = i),
                (this.height = r),
                (this.width = n),
                (this.shortestEdge = function () {
                  return Math.min(this.height, this.width);
                }),
                (this.getCoordinates = function (e) {
                  var t,
                    i = [],
                    n = this.xoffset,
                    r = this.yoffset,
                    o = a(e) / this.height,
                    s = a(e) / this.width;
                  if (this.width >= this.height)
                    for (t = 0; t < e.length; t++)
                      i.push([n, r, n + o, r + e[t] / o]), (r += e[t] / o);
                  else
                    for (t = 0; t < e.length; t++)
                      i.push([n, r, n + e[t] / s, r + s]), (n += e[t] / s);
                  return i;
                }),
                (this.cutArea = function (t) {
                  var i;
                  if (this.width >= this.height) {
                    var n = t / this.height,
                      r = this.width - n;
                    i = new e(this.xoffset + n, this.yoffset, r, this.height);
                  } else {
                    var a = t / this.width,
                      o = this.height - a;
                    i = new e(this.xoffset, this.yoffset + a, this.width, o);
                  }
                  return i;
                });
            }
            function t(t, n, r, o, s) {
              (o = void 0 === o ? 0 : o), (s = void 0 === s ? 0 : s);
              var l = i(
                (function (e, t) {
                  var i,
                    n = [],
                    r = t / a(e);
                  for (i = 0; i < e.length; i++) n[i] = e[i] * r;
                  return n;
                })(t, n * r),
                [],
                new e(o, s, n, r),
                []
              );
              return (function (e) {
                var t,
                  i,
                  n = [];
                for (t = 0; t < e.length; t++)
                  for (i = 0; i < e[t].length; i++) n.push(e[t][i]);
                return n;
              })(l);
            }
            function i(e, t, r, o) {
              var s, l, c;
              if (0 !== e.length)
                return (
                  (s = r.shortestEdge()),
                  (function (e, t, i) {
                    var r;
                    return (
                      0 === e.length ||
                      ((r = e.slice()).push(t), n(e, i) >= n(r, i))
                    );
                  })(t, (l = e[0]), s)
                    ? (t.push(l), i(e.slice(1), t, r, o))
                    : ((c = r.cutArea(a(t), o)),
                      o.push(r.getCoordinates(t)),
                      i(e, [], c, o)),
                  o
                );
              o.push(r.getCoordinates(t));
            }
            function n(e, t) {
              var i = Math.min.apply(Math, e),
                n = Math.max.apply(Math, e),
                r = a(e);
              return Math.max(
                (Math.pow(t, 2) * n) / Math.pow(r, 2),
                Math.pow(r, 2) / (Math.pow(t, 2) * i)
              );
            }
            function r(e) {
              return e && e.constructor === Array;
            }
            function a(e) {
              var t,
                i = 0;
              for (t = 0; t < e.length; t++) i += e[t];
              return i;
            }
            function o(e) {
              var t,
                i = 0;
              if (r(e[0])) for (t = 0; t < e.length; t++) i += o(e[t]);
              else i = a(e);
              return i;
            }
            return function e(i, n, a, s, l) {
              (s = void 0 === s ? 0 : s), (l = void 0 === l ? 0 : l);
              var c,
                u,
                d = [],
                h = [];
              if (r(i[0])) {
                for (u = 0; u < i.length; u++) d[u] = o(i[u]);
                for (c = t(d, n, a, s, l), u = 0; u < i.length; u++)
                  h.push(
                    e(
                      i[u],
                      c[u][2] - c[u][0],
                      c[u][3] - c[u][1],
                      c[u][0],
                      c[u][1]
                    )
                  );
              } else h = t(i, n, a, s, l);
              return h;
            };
          })());
        var De,
          Re,
          Ne = (function () {
            function e(t, i) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.strokeWidth = this.w.config.stroke.width),
                (this.helpers = new Ae(t)),
                (this.dynamicAnim =
                  this.w.config.chart.animations.dynamicAnimation),
                (this.labels = []);
            }
            return (
              c(e, [
                {
                  key: "draw",
                  value: function (e) {
                    var t = this,
                      i = this.w,
                      n = new w(this.ctx),
                      r = new B(this.ctx),
                      a = n.group({ class: "apexcharts-treemap" });
                    if (i.globals.noData) return a;
                    var o = [];
                    return (
                      e.forEach(function (e) {
                        var t = e.map(function (e) {
                          return Math.abs(e);
                        });
                        o.push(t);
                      }),
                      (this.negRange = this.helpers.checkColorRange()),
                      i.config.series.forEach(function (e, i) {
                        e.data.forEach(function (e) {
                          Array.isArray(t.labels[i]) || (t.labels[i] = []),
                            t.labels[i].push(e.x);
                        });
                      }),
                      window.TreemapSquared.generate(
                        o,
                        i.globals.gridWidth,
                        i.globals.gridHeight
                      ).forEach(function (o, s) {
                        var l = n.group({
                          class: "apexcharts-series apexcharts-treemap-series",
                          seriesName: b.escapeString(i.globals.seriesNames[s]),
                          rel: s + 1,
                          "data:realIndex": s,
                        });
                        if (i.config.chart.dropShadow.enabled) {
                          var c = i.config.chart.dropShadow;
                          new x(t.ctx).dropShadow(a, c, s);
                        }
                        var u = n.group({ class: "apexcharts-data-labels" });
                        o.forEach(function (a, o) {
                          var c = a[0],
                            u = a[1],
                            d = a[2],
                            h = a[3],
                            f = n.drawRect(
                              c,
                              u,
                              d - c,
                              h - u,
                              0,
                              "#fff",
                              1,
                              t.strokeWidth,
                              i.config.plotOptions.treemap.useFillColorAsStroke
                                ? g
                                : i.globals.stroke.colors[s]
                            );
                          f.attr({
                            cx: c,
                            cy: u,
                            index: s,
                            i: s,
                            j: o,
                            width: d - c,
                            height: h - u,
                          });
                          var p = t.helpers.getShadeColor(
                              i.config.chart.type,
                              s,
                              o,
                              t.negRange
                            ),
                            g = p.color;
                          void 0 !== i.config.series[s].data[o] &&
                            i.config.series[s].data[o].fillColor &&
                            (g = i.config.series[s].data[o].fillColor);
                          var m = r.fillPath({
                            color: g,
                            seriesNumber: s,
                            dataPointIndex: o,
                          });
                          f.node.classList.add("apexcharts-treemap-rect"),
                            f.attr({ fill: m }),
                            t.helpers.addListeners(f);
                          var v = {
                              x: c + (d - c) / 2,
                              y: u + (h - u) / 2,
                              width: 0,
                              height: 0,
                            },
                            b = { x: c, y: u, width: d - c, height: h - u };
                          if (
                            i.config.chart.animations.enabled &&
                            !i.globals.dataChanged
                          ) {
                            var y = 1;
                            i.globals.resized ||
                              (y = i.config.chart.animations.speed),
                              t.animateTreemap(f, v, b, y);
                          }
                          if (i.globals.dataChanged) {
                            var x = 1;
                            t.dynamicAnim.enabled &&
                              i.globals.shouldAnimate &&
                              ((x = t.dynamicAnim.speed),
                              i.globals.previousPaths[s] &&
                                i.globals.previousPaths[s][o] &&
                                i.globals.previousPaths[s][o].rect &&
                                (v = i.globals.previousPaths[s][o].rect),
                              t.animateTreemap(f, v, b, x));
                          }
                          var w = t.getFontSize(a),
                            E = i.config.dataLabels.formatter(t.labels[s][o], {
                              value: i.globals.series[s][o],
                              seriesIndex: s,
                              dataPointIndex: o,
                              w: i,
                            }),
                            _ = t.helpers.calculateDataLabels({
                              text: E,
                              x: (c + d) / 2,
                              y: (u + h) / 2 + t.strokeWidth / 2 + w / 3,
                              i: s,
                              j: o,
                              colorProps: p,
                              fontSize: w,
                              series: e,
                            });
                          i.config.dataLabels.enabled &&
                            _ &&
                            t.rotateToFitLabel(_, w, E, c, u, d, h),
                            l.add(f),
                            null !== _ && l.add(_);
                        }),
                          l.add(u),
                          a.add(l);
                      }),
                      a
                    );
                  },
                },
                {
                  key: "getFontSize",
                  value: function (e) {
                    var t,
                      i,
                      n = this.w,
                      r =
                        (function e(t) {
                          var i,
                            n = 0;
                          if (Array.isArray(t[0]))
                            for (i = 0; i < t.length; i++) n += e(t[i]);
                          else for (i = 0; i < t.length; i++) n += t[i].length;
                          return n;
                        })(this.labels) /
                        (function e(t) {
                          var i,
                            n = 0;
                          if (Array.isArray(t[0]))
                            for (i = 0; i < t.length; i++) n += e(t[i]);
                          else for (i = 0; i < t.length; i++) n += 1;
                          return n;
                        })(this.labels);
                    return (
                      (t = (e[2] - e[0]) * (e[3] - e[1])),
                      (i = Math.pow(t, 0.5)),
                      Math.min(
                        i / r,
                        parseInt(n.config.dataLabels.style.fontSize, 10)
                      )
                    );
                  },
                },
                {
                  key: "rotateToFitLabel",
                  value: function (e, t, i, n, r, a, o) {
                    var s = new w(this.ctx),
                      l = s.getTextRects(i, t);
                    if (
                      l.width + this.w.config.stroke.width + 5 > a - n &&
                      l.width <= o - r
                    ) {
                      var c = s.rotateAroundCenter(e.node);
                      e.node.setAttribute(
                        "transform",
                        "rotate(-90 ".concat(c.x, " ").concat(c.y, ")")
                      );
                    }
                  },
                },
                {
                  key: "animateTreemap",
                  value: function (e, t, i, n) {
                    var r = new y(this.ctx);
                    r.animateRect(
                      e,
                      { x: t.x, y: t.y, width: t.width, height: t.height },
                      { x: i.x, y: i.y, width: i.width, height: i.height },
                      n,
                      function () {
                        r.animationCompleted(e);
                      }
                    );
                  },
                },
              ]),
              e
            );
          })(),
          Fe = (function () {
            function e(t) {
              s(this, e),
                (this.ctx = t),
                (this.w = t.w),
                (this.timeScaleArray = []),
                (this.utc = this.w.config.xaxis.labels.datetimeUTC);
            }
            return (
              c(e, [
                {
                  key: "calculateTimeScaleTicks",
                  value: function (e, t) {
                    var i = this,
                      n = this.w;
                    if (n.globals.allSeriesCollapsed)
                      return (
                        (n.globals.labels = []),
                        (n.globals.timescaleLabels = []),
                        []
                      );
                    var r = new I(this.ctx),
                      o = (t - e) / 864e5;
                    this.determineInterval(o),
                      (n.globals.disableZoomIn = !1),
                      (n.globals.disableZoomOut = !1),
                      o < 0.00011574074074074075
                        ? (n.globals.disableZoomIn = !0)
                        : o > 5e4 && (n.globals.disableZoomOut = !0);
                    var s = r.getTimeUnitsfromTimestamp(e, t, this.utc),
                      l = n.globals.gridWidth / o,
                      c = l / 24,
                      u = c / 60,
                      d = u / 60,
                      h = Math.floor(24 * o),
                      f = Math.floor(1440 * o),
                      p = Math.floor(86400 * o),
                      g = Math.floor(o),
                      m = Math.floor(o / 30),
                      v = Math.floor(o / 365),
                      b = {
                        minMillisecond: s.minMillisecond,
                        minSecond: s.minSecond,
                        minMinute: s.minMinute,
                        minHour: s.minHour,
                        minDate: s.minDate,
                        minMonth: s.minMonth,
                        minYear: s.minYear,
                      },
                      y = {
                        firstVal: b,
                        currentMillisecond: b.minMillisecond,
                        currentSecond: b.minSecond,
                        currentMinute: b.minMinute,
                        currentHour: b.minHour,
                        currentMonthDate: b.minDate,
                        currentDate: b.minDate,
                        currentMonth: b.minMonth,
                        currentYear: b.minYear,
                        daysWidthOnXAxis: l,
                        hoursWidthOnXAxis: c,
                        minutesWidthOnXAxis: u,
                        secondsWidthOnXAxis: d,
                        numberOfSeconds: p,
                        numberOfMinutes: f,
                        numberOfHours: h,
                        numberOfDays: g,
                        numberOfMonths: m,
                        numberOfYears: v,
                      };
                    switch (this.tickInterval) {
                      case "years":
                        this.generateYearScale(y);
                        break;
                      case "months":
                      case "half_year":
                        this.generateMonthScale(y);
                        break;
                      case "months_days":
                      case "months_fortnight":
                      case "days":
                      case "week_days":
                        this.generateDayScale(y);
                        break;
                      case "hours":
                        this.generateHourScale(y);
                        break;
                      case "minutes_fives":
                      case "minutes":
                        this.generateMinuteScale(y);
                        break;
                      case "seconds_tens":
                      case "seconds_fives":
                      case "seconds":
                        this.generateSecondScale(y);
                    }
                    var x = this.timeScaleArray.map(function (e) {
                      var t = {
                        position: e.position,
                        unit: e.unit,
                        year: e.year,
                        day: e.day ? e.day : 1,
                        hour: e.hour ? e.hour : 0,
                        month: e.month + 1,
                      };
                      return "month" === e.unit
                        ? a(a({}, t), {}, { day: 1, value: e.value + 1 })
                        : "day" === e.unit || "hour" === e.unit
                        ? a(a({}, t), {}, { value: e.value })
                        : "minute" === e.unit
                        ? a(a({}, t), {}, { value: e.value, minute: e.value })
                        : "second" === e.unit
                        ? a(
                            a({}, t),
                            {},
                            {
                              value: e.value,
                              minute: e.minute,
                              second: e.second,
                            }
                          )
                        : e;
                    });
                    return x.filter(function (e) {
                      var t = 1,
                        r = Math.ceil(n.globals.gridWidth / 120),
                        a = e.value;
                      void 0 !== n.config.xaxis.tickAmount &&
                        (r = n.config.xaxis.tickAmount),
                        x.length > r && (t = Math.floor(x.length / r));
                      var o = !1,
                        s = !1;
                      switch (i.tickInterval) {
                        case "years":
                          "year" === e.unit && (o = !0);
                          break;
                        case "half_year":
                          (t = 7), "year" === e.unit && (o = !0);
                          break;
                        case "months":
                          (t = 1), "year" === e.unit && (o = !0);
                          break;
                        case "months_fortnight":
                          (t = 15),
                            ("year" !== e.unit && "month" !== e.unit) ||
                              (o = !0),
                            30 === a && (s = !0);
                          break;
                        case "months_days":
                          (t = 10),
                            "month" === e.unit && (o = !0),
                            30 === a && (s = !0);
                          break;
                        case "week_days":
                          (t = 8), "month" === e.unit && (o = !0);
                          break;
                        case "days":
                          (t = 1), "month" === e.unit && (o = !0);
                          break;
                        case "hours":
                          "day" === e.unit && (o = !0);
                          break;
                        case "minutes_fives":
                        case "seconds_fives":
                          a % 5 != 0 && (s = !0);
                          break;
                        case "seconds_tens":
                          a % 10 != 0 && (s = !0);
                      }
                      if (
                        "hours" === i.tickInterval ||
                        "minutes_fives" === i.tickInterval ||
                        "seconds_tens" === i.tickInterval ||
                        "seconds_fives" === i.tickInterval
                      ) {
                        if (!s) return !0;
                      } else if ((a % t == 0 || o) && !s) return !0;
                    });
                  },
                },
                {
                  key: "recalcDimensionsBasedOnFormat",
                  value: function (e, t) {
                    var i = this.w,
                      n = this.formatDates(e),
                      r = this.removeOverlappingTS(n);
                    (i.globals.timescaleLabels = r.slice()),
                      new le(this.ctx).plotCoords();
                  },
                },
                {
                  key: "determineInterval",
                  value: function (e) {
                    var t = 24 * e,
                      i = 60 * t;
                    switch (!0) {
                      case e / 365 > 5:
                        this.tickInterval = "years";
                        break;
                      case e > 800:
                        this.tickInterval = "half_year";
                        break;
                      case e > 180:
                        this.tickInterval = "months";
                        break;
                      case e > 90:
                        this.tickInterval = "months_fortnight";
                        break;
                      case e > 60:
                        this.tickInterval = "months_days";
                        break;
                      case e > 30:
                        this.tickInterval = "week_days";
                        break;
                      case e > 2:
                        this.tickInterval = "days";
                        break;
                      case t > 2.4:
                        this.tickInterval = "hours";
                        break;
                      case i > 15:
                        this.tickInterval = "minutes_fives";
                        break;
                      case i > 5:
                        this.tickInterval = "minutes";
                        break;
                      case i > 1:
                        this.tickInterval = "seconds_tens";
                        break;
                      case 60 * i > 20:
                        this.tickInterval = "seconds_fives";
                        break;
                      default:
                        this.tickInterval = "seconds";
                    }
                  },
                },
                {
                  key: "generateYearScale",
                  value: function (e) {
                    var t = e.firstVal,
                      i = e.currentMonth,
                      n = e.currentYear,
                      r = e.daysWidthOnXAxis,
                      a = e.numberOfYears,
                      o = t.minYear,
                      s = 0,
                      l = new I(this.ctx),
                      c = "year";
                    if (t.minDate > 1 || t.minMonth > 0) {
                      var u = l.determineRemainingDaysOfYear(
                        t.minYear,
                        t.minMonth,
                        t.minDate
                      );
                      (s = (l.determineDaysOfYear(t.minYear) - u + 1) * r),
                        (o = t.minYear + 1),
                        this.timeScaleArray.push({
                          position: s,
                          value: o,
                          unit: c,
                          year: o,
                          month: b.monthMod(i + 1),
                        });
                    } else
                      1 === t.minDate &&
                        0 === t.minMonth &&
                        this.timeScaleArray.push({
                          position: s,
                          value: o,
                          unit: c,
                          year: n,
                          month: b.monthMod(i + 1),
                        });
                    for (var d = o, h = s, f = 0; f < a; f++)
                      d++,
                        (h = l.determineDaysOfYear(d - 1) * r + h),
                        this.timeScaleArray.push({
                          position: h,
                          value: d,
                          unit: c,
                          year: d,
                          month: 1,
                        });
                  },
                },
                {
                  key: "generateMonthScale",
                  value: function (e) {
                    var t = e.firstVal,
                      i = e.currentMonthDate,
                      n = e.currentMonth,
                      r = e.currentYear,
                      a = e.daysWidthOnXAxis,
                      o = e.numberOfMonths,
                      s = n,
                      l = 0,
                      c = new I(this.ctx),
                      u = "month",
                      d = 0;
                    if (t.minDate > 1) {
                      (l =
                        (c.determineDaysOfMonths(n + 1, t.minYear) - i + 1) *
                        a),
                        (s = b.monthMod(n + 1));
                      var h = r + d,
                        f = b.monthMod(s),
                        p = s;
                      0 === s &&
                        ((u = "year"), (p = h), (f = 1), (h += d += 1)),
                        this.timeScaleArray.push({
                          position: l,
                          value: p,
                          unit: u,
                          year: h,
                          month: f,
                        });
                    } else
                      this.timeScaleArray.push({
                        position: l,
                        value: s,
                        unit: u,
                        year: r,
                        month: b.monthMod(n),
                      });
                    for (var g = s + 1, m = l, v = 0, y = 1; v < o; v++, y++) {
                      0 === (g = b.monthMod(g))
                        ? ((u = "year"), (d += 1))
                        : (u = "month");
                      var x = this._getYear(r, g, d);
                      m = c.determineDaysOfMonths(g, x) * a + m;
                      var w = 0 === g ? x : g;
                      this.timeScaleArray.push({
                        position: m,
                        value: w,
                        unit: u,
                        year: x,
                        month: 0 === g ? 1 : g,
                      }),
                        g++;
                    }
                  },
                },
                {
                  key: "generateDayScale",
                  value: function (e) {
                    var t = e.firstVal,
                      i = e.currentMonth,
                      n = e.currentYear,
                      r = e.hoursWidthOnXAxis,
                      a = e.numberOfDays,
                      o = new I(this.ctx),
                      s = "day",
                      l = t.minDate + 1,
                      c = l,
                      u = function (e, t, i) {
                        return e > o.determineDaysOfMonths(t + 1, i)
                          ? ((c = 1), (s = "month"), (h = t += 1), t)
                          : t;
                      },
                      d = (24 - t.minHour) * r,
                      h = l,
                      f = u(c, i, n);
                    0 === t.minHour && 1 === t.minDate
                      ? ((d = 0),
                        (h = b.monthMod(t.minMonth)),
                        (s = "month"),
                        (c = t.minDate),
                        a++)
                      : 1 !== t.minDate &&
                        0 === t.minHour &&
                        0 === t.minMinute &&
                        ((d = 0),
                        (l = t.minDate),
                        (h = l),
                        (f = u((c = l), i, n))),
                      this.timeScaleArray.push({
                        position: d,
                        value: h,
                        unit: s,
                        year: this._getYear(n, f, 0),
                        month: b.monthMod(f),
                        day: c,
                      });
                    for (var p = d, g = 0; g < a; g++) {
                      (s = "day"), (f = u((c += 1), f, this._getYear(n, f, 0)));
                      var m = this._getYear(n, f, 0);
                      p = 24 * r + p;
                      var v = 1 === c ? b.monthMod(f) : c;
                      this.timeScaleArray.push({
                        position: p,
                        value: v,
                        unit: s,
                        year: m,
                        month: b.monthMod(f),
                        day: v,
                      });
                    }
                  },
                },
                {
                  key: "generateHourScale",
                  value: function (e) {
                    var t = e.firstVal,
                      i = e.currentDate,
                      n = e.currentMonth,
                      r = e.currentYear,
                      a = e.minutesWidthOnXAxis,
                      o = e.numberOfHours,
                      s = new I(this.ctx),
                      l = "hour",
                      c = function (e, t) {
                        return (
                          e > s.determineDaysOfMonths(t + 1, r) &&
                            ((g = 1), (t += 1)),
                          { month: t, date: g }
                        );
                      },
                      u = function (e, t) {
                        return e > s.determineDaysOfMonths(t + 1, r)
                          ? (t += 1)
                          : t;
                      },
                      d = 60 - (t.minMinute + t.minSecond / 60),
                      h = d * a,
                      f = t.minHour + 1,
                      p = f + 1;
                    60 === d && ((h = 0), (p = (f = t.minHour) + 1));
                    var g = i,
                      m = u(g, n);
                    this.timeScaleArray.push({
                      position: h,
                      value: f,
                      unit: l,
                      day: g,
                      hour: p,
                      year: r,
                      month: b.monthMod(m),
                    });
                    for (var v = h, y = 0; y < o; y++) {
                      (l = "hour"),
                        p >= 24 &&
                          ((p = 0),
                          (l = "day"),
                          (m = c((g += 1), m).month),
                          (m = u(g, m)));
                      var x = this._getYear(r, m, 0);
                      v = 60 * a + v;
                      var w = 0 === p ? g : p;
                      this.timeScaleArray.push({
                        position: v,
                        value: w,
                        unit: l,
                        hour: p,
                        day: g,
                        year: x,
                        month: b.monthMod(m),
                      }),
                        p++;
                    }
                  },
                },
                {
                  key: "generateMinuteScale",
                  value: function (e) {
                    for (
                      var t = e.currentMillisecond,
                        i = e.currentSecond,
                        n = e.currentMinute,
                        r = e.currentHour,
                        a = e.currentDate,
                        o = e.currentMonth,
                        s = e.currentYear,
                        l = e.minutesWidthOnXAxis,
                        c = e.secondsWidthOnXAxis,
                        u = e.numberOfMinutes,
                        d = n + 1,
                        h = a,
                        f = o,
                        p = s,
                        g = r,
                        m = (60 - i - t / 1e3) * c,
                        v = 0;
                      v < u;
                      v++
                    )
                      d >= 60 && ((d = 0), 24 === (g += 1) && (g = 0)),
                        this.timeScaleArray.push({
                          position: m,
                          value: d,
                          unit: "minute",
                          hour: g,
                          minute: d,
                          day: h,
                          year: this._getYear(p, f, 0),
                          month: b.monthMod(f),
                        }),
                        (m += l),
                        d++;
                  },
                },
                {
                  key: "generateSecondScale",
                  value: function (e) {
                    for (
                      var t = e.currentMillisecond,
                        i = e.currentSecond,
                        n = e.currentMinute,
                        r = e.currentHour,
                        a = e.currentDate,
                        o = e.currentMonth,
                        s = e.currentYear,
                        l = e.secondsWidthOnXAxis,
                        c = e.numberOfSeconds,
                        u = i + 1,
                        d = n,
                        h = a,
                        f = o,
                        p = s,
                        g = r,
                        m = ((1e3 - t) / 1e3) * l,
                        v = 0;
                      v < c;
                      v++
                    )
                      u >= 60 &&
                        ((u = 0), ++d >= 60 && ((d = 0), 24 == ++g && (g = 0))),
                        this.timeScaleArray.push({
                          position: m,
                          value: u,
                          unit: "second",
                          hour: g,
                          minute: d,
                          second: u,
                          day: h,
                          year: this._getYear(p, f, 0),
                          month: b.monthMod(f),
                        }),
                        (m += l),
                        u++;
                  },
                },
                {
                  key: "createRawDateString",
                  value: function (e, t) {
                    var i = e.year;
                    return (
                      0 === e.month && (e.month = 1),
                      (i += "-" + ("0" + e.month.toString()).slice(-2)),
                      "day" === e.unit
                        ? (i +=
                            "day" === e.unit
                              ? "-" + ("0" + t).slice(-2)
                              : "-01")
                        : (i += "-" + ("0" + (e.day ? e.day : "1")).slice(-2)),
                      "hour" === e.unit
                        ? (i +=
                            "hour" === e.unit
                              ? "T" + ("0" + t).slice(-2)
                              : "T00")
                        : (i +=
                            "T" + ("0" + (e.hour ? e.hour : "0")).slice(-2)),
                      "minute" === e.unit
                        ? (i += ":" + ("0" + t).slice(-2))
                        : (i +=
                            ":" +
                            (e.minute ? ("0" + e.minute).slice(-2) : "00")),
                      "second" === e.unit
                        ? (i += ":" + ("0" + t).slice(-2))
                        : (i += ":00"),
                      this.utc && (i += ".000Z"),
                      i
                    );
                  },
                },
                {
                  key: "formatDates",
                  value: function (e) {
                    var t = this,
                      i = this.w;
                    return e.map(function (e) {
                      var n = e.value.toString(),
                        r = new I(t.ctx),
                        a = t.createRawDateString(e, n),
                        o = r.getDate(r.parseDate(a));
                      if (
                        (t.utc || (o = r.getDate(r.parseDateWithTimezone(a))),
                        void 0 === i.config.xaxis.labels.format)
                      ) {
                        var s = "dd MMM",
                          l = i.config.xaxis.labels.datetimeFormatter;
                        "year" === e.unit && (s = l.year),
                          "month" === e.unit && (s = l.month),
                          "day" === e.unit && (s = l.day),
                          "hour" === e.unit && (s = l.hour),
                          "minute" === e.unit && (s = l.minute),
                          "second" === e.unit && (s = l.second),
                          (n = r.formatDate(o, s));
                      } else n = r.formatDate(o, i.config.xaxis.labels.format);
                      return {
                        dateString: a,
                        position: e.position,
                        value: n,
                        unit: e.unit,
                        year: e.year,
                        month: e.month,
                      };
                    });
                  },
                },
                {
                  key: "removeOverlappingTS",
                  value: function (e) {
                    var t,
                      i = this,
                      n = new w(this.ctx),
                      r = !1;
                    e.length > 0 &&
                      e[0].value &&
                      e.every(function (t) {
                        return t.value.length === e[0].value.length;
                      }) &&
                      ((r = !0), (t = n.getTextRects(e[0].value).width));
                    var a = 0,
                      o = e.map(function (o, s) {
                        if (
                          s > 0 &&
                          i.w.config.xaxis.labels.hideOverlappingLabels
                        ) {
                          var l = r ? t : n.getTextRects(e[a].value).width,
                            c = e[a].position;
                          return o.position > c + l + 10 ? ((a = s), o) : null;
                        }
                        return o;
                      });
                    return o.filter(function (e) {
                      return null !== e;
                    });
                  },
                },
                {
                  key: "_getYear",
                  value: function (e, t, i) {
                    return e + Math.floor(t / 12) + i;
                  },
                },
              ]),
              e
            );
          })(),
          Be = (function () {
            function e(t, i) {
              s(this, e), (this.ctx = i), (this.w = i.w), (this.el = t);
            }
            return (
              c(e, [
                {
                  key: "setupElements",
                  value: function () {
                    var e = this.w.globals,
                      t = this.w.config,
                      i = t.chart.type;
                    (e.axisCharts =
                      [
                        "line",
                        "area",
                        "bar",
                        "rangeBar",
                        "rangeArea",
                        "candlestick",
                        "boxPlot",
                        "scatter",
                        "bubble",
                        "radar",
                        "heatmap",
                        "treemap",
                      ].indexOf(i) > -1),
                      (e.xyCharts =
                        [
                          "line",
                          "area",
                          "bar",
                          "rangeBar",
                          "rangeArea",
                          "candlestick",
                          "boxPlot",
                          "scatter",
                          "bubble",
                        ].indexOf(i) > -1),
                      (e.isBarHorizontal =
                        ("bar" === t.chart.type ||
                          "rangeBar" === t.chart.type ||
                          "boxPlot" === t.chart.type) &&
                        t.plotOptions.bar.horizontal),
                      (e.chartClass = ".apexcharts" + e.chartID),
                      (e.dom.baseEl = this.el),
                      (e.dom.elWrap = document.createElement("div")),
                      w.setAttrs(e.dom.elWrap, {
                        id: e.chartClass.substring(1),
                        class: "apexcharts-canvas " + e.chartClass.substring(1),
                      }),
                      this.el.appendChild(e.dom.elWrap),
                      (e.dom.Paper = new window.SVG.Doc(e.dom.elWrap)),
                      e.dom.Paper.attr({
                        class: "apexcharts-svg",
                        "xmlns:data": "ApexChartsNS",
                        transform: "translate("
                          .concat(t.chart.offsetX, ", ")
                          .concat(t.chart.offsetY, ")"),
                      }),
                      (e.dom.Paper.node.style.background = t.chart.background),
                      this.setSVGDimensions(),
                      (e.dom.elGraphical = e.dom.Paper.group().attr({
                        class: "apexcharts-inner apexcharts-graphical",
                      })),
                      (e.dom.elAnnotations = e.dom.Paper.group().attr({
                        class: "apexcharts-annotations",
                      })),
                      (e.dom.elDefs = e.dom.Paper.defs()),
                      (e.dom.elLegendWrap = document.createElement("div")),
                      e.dom.elLegendWrap.classList.add("apexcharts-legend"),
                      e.dom.elWrap.appendChild(e.dom.elLegendWrap),
                      e.dom.Paper.add(e.dom.elGraphical),
                      e.dom.elGraphical.add(e.dom.elDefs);
                  },
                },
                {
                  key: "plotChartType",
                  value: function (e, t) {
                    var i = this.w,
                      n = i.config,
                      r = i.globals,
                      a = { series: [], i: [] },
                      o = { series: [], i: [] },
                      s = { series: [], i: [] },
                      l = { series: [], i: [] },
                      c = { series: [], i: [] },
                      u = { series: [], i: [] },
                      d = { series: [], i: [] },
                      h = { series: [], i: [] },
                      f = { series: [], seriesRangeEnd: [], i: [] };
                    r.series.map(function (t, p) {
                      var g = 0;
                      void 0 !== e[p].type
                        ? ("column" === e[p].type || "bar" === e[p].type
                            ? (r.series.length > 1 &&
                                n.plotOptions.bar.horizontal &&
                                console.warn(
                                  "Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"
                                ),
                              c.series.push(t),
                              c.i.push(p),
                              g++,
                              (i.globals.columnSeries = c.series))
                            : "area" === e[p].type
                            ? (o.series.push(t), o.i.push(p), g++)
                            : "line" === e[p].type
                            ? (a.series.push(t), a.i.push(p), g++)
                            : "scatter" === e[p].type
                            ? (s.series.push(t), s.i.push(p))
                            : "bubble" === e[p].type
                            ? (l.series.push(t), l.i.push(p), g++)
                            : "candlestick" === e[p].type
                            ? (u.series.push(t), u.i.push(p), g++)
                            : "boxPlot" === e[p].type
                            ? (d.series.push(t), d.i.push(p), g++)
                            : "rangeBar" === e[p].type
                            ? (h.series.push(t), h.i.push(p), g++)
                            : "rangeArea" === e[p].type
                            ? (f.series.push(r.seriesRangeStart[p]),
                              f.seriesRangeEnd.push(r.seriesRangeEnd[p]),
                              f.i.push(p),
                              g++)
                            : console.warn(
                                "You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"
                              ),
                          g > 1 && (r.comboCharts = !0))
                        : (a.series.push(t), a.i.push(p));
                    });
                    var p = new Pe(this.ctx, t),
                      g = new Se(this.ctx, t);
                    this.ctx.pie = new Ce(this.ctx);
                    var m = new Ie(this.ctx);
                    this.ctx.rangeBar = new Me(this.ctx, t);
                    var v = new Oe(this.ctx),
                      b = [];
                    if (r.comboCharts) {
                      if (
                        (o.series.length > 0 &&
                          b.push(p.draw(o.series, "area", o.i)),
                        c.series.length > 0)
                      )
                        if (i.config.chart.stacked) {
                          var y = new _e(this.ctx, t);
                          b.push(y.draw(c.series, c.i));
                        } else
                          (this.ctx.bar = new Ee(this.ctx, t)),
                            b.push(this.ctx.bar.draw(c.series, c.i));
                      if (
                        (f.series.length > 0 &&
                          b.push(
                            p.draw(f.series, "rangeArea", f.i, f.seriesRangeEnd)
                          ),
                        a.series.length > 0 &&
                          b.push(p.draw(a.series, "line", a.i)),
                        u.series.length > 0 && b.push(g.draw(u.series, u.i)),
                        d.series.length > 0 && b.push(g.draw(d.series, d.i)),
                        h.series.length > 0 &&
                          b.push(this.ctx.rangeBar.draw(h.series, h.i)),
                        s.series.length > 0)
                      ) {
                        var x = new Pe(this.ctx, t, !0);
                        b.push(x.draw(s.series, "scatter", s.i));
                      }
                      if (l.series.length > 0) {
                        var w = new Pe(this.ctx, t, !0);
                        b.push(w.draw(l.series, "bubble", l.i));
                      }
                    } else
                      switch (n.chart.type) {
                        case "line":
                          b = p.draw(r.series, "line");
                          break;
                        case "area":
                          b = p.draw(r.series, "area");
                          break;
                        case "bar":
                          n.chart.stacked
                            ? (b = new _e(this.ctx, t).draw(r.series))
                            : ((this.ctx.bar = new Ee(this.ctx, t)),
                              (b = this.ctx.bar.draw(r.series)));
                          break;
                        case "candlestick":
                        case "boxPlot":
                          b = new Se(this.ctx, t).draw(r.series);
                          break;
                        case "rangeBar":
                          b = this.ctx.rangeBar.draw(r.series);
                          break;
                        case "rangeArea":
                          b = p.draw(
                            r.seriesRangeStart,
                            "rangeArea",
                            void 0,
                            r.seriesRangeEnd
                          );
                          break;
                        case "heatmap":
                          b = new ke(this.ctx, t).draw(r.series);
                          break;
                        case "treemap":
                          b = new Ne(this.ctx, t).draw(r.series);
                          break;
                        case "pie":
                        case "donut":
                        case "polarArea":
                          b = this.ctx.pie.draw(r.series);
                          break;
                        case "radialBar":
                          b = m.draw(r.series);
                          break;
                        case "radar":
                          b = v.draw(r.series);
                          break;
                        default:
                          b = p.draw(r.series);
                      }
                    return b;
                  },
                },
                {
                  key: "setSVGDimensions",
                  value: function () {
                    var e = this.w.globals,
                      t = this.w.config;
                    (e.svgWidth = t.chart.width),
                      (e.svgHeight = t.chart.height);
                    var i = b.getDimensions(this.el),
                      n = t.chart.width
                        .toString()
                        .split(/[0-9]+/g)
                        .pop();
                    "%" === n
                      ? b.isNumber(i[0]) &&
                        (0 === i[0].width &&
                          (i = b.getDimensions(this.el.parentNode)),
                        (e.svgWidth =
                          (i[0] * parseInt(t.chart.width, 10)) / 100))
                      : ("px" !== n && "" !== n) ||
                        (e.svgWidth = parseInt(t.chart.width, 10));
                    var r = t.chart.height
                      .toString()
                      .split(/[0-9]+/g)
                      .pop();
                    if ("auto" !== e.svgHeight && "" !== e.svgHeight)
                      if ("%" === r) {
                        var a = b.getDimensions(this.el.parentNode);
                        e.svgHeight =
                          (a[1] * parseInt(t.chart.height, 10)) / 100;
                      } else e.svgHeight = parseInt(t.chart.height, 10);
                    else
                      e.axisCharts
                        ? (e.svgHeight = e.svgWidth / 1.61)
                        : (e.svgHeight = e.svgWidth / 1.2);
                    if (
                      (e.svgWidth < 0 && (e.svgWidth = 0),
                      e.svgHeight < 0 && (e.svgHeight = 0),
                      w.setAttrs(e.dom.Paper.node, {
                        width: e.svgWidth,
                        height: e.svgHeight,
                      }),
                      "%" !== r)
                    ) {
                      var o = t.chart.sparkline.enabled
                        ? 0
                        : e.axisCharts
                        ? t.chart.parentHeightOffset
                        : 0;
                      e.dom.Paper.node.parentNode.parentNode.style.minHeight =
                        e.svgHeight + o + "px";
                    }
                    (e.dom.elWrap.style.width = e.svgWidth + "px"),
                      (e.dom.elWrap.style.height = e.svgHeight + "px");
                  },
                },
                {
                  key: "shiftGraphPosition",
                  value: function () {
                    var e = this.w.globals,
                      t = e.translateY,
                      i = {
                        transform: "translate(" + e.translateX + ", " + t + ")",
                      };
                    w.setAttrs(e.dom.elGraphical.node, i);
                  },
                },
                {
                  key: "resizeNonAxisCharts",
                  value: function () {
                    var e = this.w,
                      t = e.globals,
                      i = 0,
                      n = e.config.chart.sparkline.enabled ? 1 : 15;
                    (n += e.config.grid.padding.bottom),
                      ("top" !== e.config.legend.position &&
                        "bottom" !== e.config.legend.position) ||
                        !e.config.legend.show ||
                        e.config.legend.floating ||
                        (i =
                          new ue(this.ctx).legendHelpers.getLegendBBox().clwh +
                          10);
                    var r = e.globals.dom.baseEl.querySelector(
                        ".apexcharts-radialbar, .apexcharts-pie"
                      ),
                      a = 2.05 * e.globals.radialSize;
                    if (
                      r &&
                      !e.config.chart.sparkline.enabled &&
                      0 !== e.config.plotOptions.radialBar.startAngle
                    ) {
                      var o = b.getBoundingClientRect(r);
                      a = o.bottom;
                      var s = o.bottom - o.top;
                      a = Math.max(2.05 * e.globals.radialSize, s);
                    }
                    var l = a + t.translateY + i + n;
                    t.dom.elLegendForeign &&
                      t.dom.elLegendForeign.setAttribute("height", l),
                      (e.config.chart.height &&
                        String(e.config.chart.height).indexOf("%") > 0) ||
                        ((t.dom.elWrap.style.height = l + "px"),
                        w.setAttrs(t.dom.Paper.node, { height: l }),
                        (t.dom.Paper.node.parentNode.parentNode.style.minHeight =
                          l + "px"));
                  },
                },
                {
                  key: "coreCalculations",
                  value: function () {
                    new $(this.ctx).init();
                  },
                },
                {
                  key: "resetGlobals",
                  value: function () {
                    var e = this,
                      t = function () {
                        return e.w.config.series.map(function (e) {
                          return [];
                        });
                      },
                      i = new N(),
                      n = this.w.globals;
                    i.initGlobalVars(n),
                      (n.seriesXvalues = t()),
                      (n.seriesYvalues = t());
                  },
                },
                {
                  key: "isMultipleY",
                  value: function () {
                    if (
                      this.w.config.yaxis.constructor === Array &&
                      this.w.config.yaxis.length > 1
                    )
                      return (this.w.globals.isMultipleYAxis = !0), !0;
                  },
                },
                {
                  key: "xySettings",
                  value: function () {
                    var e = null,
                      t = this.w;
                    if (t.globals.axisCharts) {
                      if (
                        ("back" === t.config.xaxis.crosshairs.position &&
                          new ee(this.ctx).drawXCrosshairs(),
                        "back" === t.config.yaxis[0].crosshairs.position &&
                          new ee(this.ctx).drawYCrosshairs(),
                        "datetime" === t.config.xaxis.type &&
                          void 0 === t.config.xaxis.labels.formatter)
                      ) {
                        this.ctx.timeScale = new Fe(this.ctx);
                        var i = [];
                        isFinite(t.globals.minX) &&
                        isFinite(t.globals.maxX) &&
                        !t.globals.isBarHorizontal
                          ? (i = this.ctx.timeScale.calculateTimeScaleTicks(
                              t.globals.minX,
                              t.globals.maxX
                            ))
                          : t.globals.isBarHorizontal &&
                            (i = this.ctx.timeScale.calculateTimeScaleTicks(
                              t.globals.minY,
                              t.globals.maxY
                            )),
                          this.ctx.timeScale.recalcDimensionsBasedOnFormat(i);
                      }
                      e = new E(this.ctx).getCalculatedRatios();
                    }
                    return e;
                  },
                },
                {
                  key: "updateSourceChart",
                  value: function (e) {
                    (this.ctx.w.globals.selection = void 0),
                      this.ctx.updateHelpers._updateOptions(
                        {
                          chart: {
                            selection: {
                              xaxis: {
                                min: e.w.globals.minX,
                                max: e.w.globals.maxX,
                              },
                            },
                          },
                        },
                        !1,
                        !1
                      );
                  },
                },
                {
                  key: "setupBrushHandler",
                  value: function () {
                    var e = this,
                      t = this.w;
                    if (
                      t.config.chart.brush.enabled &&
                      "function" != typeof t.config.chart.events.selection
                    ) {
                      var i = t.config.chart.brush.targets || [
                        t.config.chart.brush.target,
                      ];
                      i.forEach(function (t) {
                        var i = ApexCharts.getChartByID(t);
                        (i.w.globals.brushSource = e.ctx),
                          "function" != typeof i.w.config.chart.events.zoomed &&
                            (i.w.config.chart.events.zoomed = function () {
                              e.updateSourceChart(i);
                            }),
                          "function" !=
                            typeof i.w.config.chart.events.scrolled &&
                            (i.w.config.chart.events.scrolled = function () {
                              e.updateSourceChart(i);
                            });
                      }),
                        (t.config.chart.events.selection = function (e, n) {
                          i.forEach(function (e) {
                            var i = ApexCharts.getChartByID(e),
                              r = b.clone(t.config.yaxis);
                            if (
                              t.config.chart.brush.autoScaleYaxis &&
                              1 === i.w.globals.series.length
                            ) {
                              var o = new U(i);
                              r = o.autoScaleY(i, r, n);
                            }
                            var s = i.w.config.yaxis.reduce(function (e, t, n) {
                              return [].concat(g(e), [
                                a(
                                  a({}, i.w.config.yaxis[n]),
                                  {},
                                  { min: r[0].min, max: r[0].max }
                                ),
                              ]);
                            }, []);
                            i.ctx.updateHelpers._updateOptions(
                              {
                                xaxis: { min: n.xaxis.min, max: n.xaxis.max },
                                yaxis: s,
                              },
                              !1,
                              !1,
                              !1,
                              !1
                            );
                          });
                        });
                    }
                  },
                },
              ]),
              e
            );
          })(),
          ze = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "_updateOptions",
                  value: function (e) {
                    var t = this,
                      i =
                        arguments.length > 1 &&
                        void 0 !== arguments[1] &&
                        arguments[1],
                      n =
                        !(arguments.length > 2 && void 0 !== arguments[2]) ||
                        arguments[2],
                      r =
                        !(arguments.length > 3 && void 0 !== arguments[3]) ||
                        arguments[3],
                      a =
                        arguments.length > 4 &&
                        void 0 !== arguments[4] &&
                        arguments[4];
                    return new Promise(function (s) {
                      var l = [t.ctx];
                      r && (l = t.ctx.getSyncedCharts()),
                        t.ctx.w.globals.isExecCalled &&
                          ((l = [t.ctx]), (t.ctx.w.globals.isExecCalled = !1)),
                        l.forEach(function (r, c) {
                          var u = r.w;
                          if (
                            ((u.globals.shouldAnimate = n),
                            i ||
                              ((u.globals.resized = !0),
                              (u.globals.dataChanged = !0),
                              n && r.series.getPreviousPaths()),
                            e &&
                              "object" === o(e) &&
                              ((r.config = new R(e)),
                              (e = E.extendArrayProps(r.config, e, u)),
                              r.w.globals.chartID !== t.ctx.w.globals.chartID &&
                                delete e.series,
                              (u.config = b.extend(u.config, e)),
                              a &&
                                ((u.globals.lastXAxis = e.xaxis
                                  ? b.clone(e.xaxis)
                                  : []),
                                (u.globals.lastYAxis = e.yaxis
                                  ? b.clone(e.yaxis)
                                  : []),
                                (u.globals.initialConfig = b.extend(
                                  {},
                                  u.config
                                )),
                                (u.globals.initialSeries = b.clone(
                                  u.config.series
                                )),
                                e.series)))
                          ) {
                            for (
                              var d = 0;
                              d < u.globals.collapsedSeriesIndices.length;
                              d++
                            ) {
                              var h =
                                u.config.series[
                                  u.globals.collapsedSeriesIndices[d]
                                ];
                              u.globals.collapsedSeries[d].data = u.globals
                                .axisCharts
                                ? h.data.slice()
                                : h;
                            }
                            for (
                              var f = 0;
                              f <
                              u.globals.ancillaryCollapsedSeriesIndices.length;
                              f++
                            ) {
                              var p =
                                u.config.series[
                                  u.globals.ancillaryCollapsedSeriesIndices[f]
                                ];
                              u.globals.ancillaryCollapsedSeries[f].data = u
                                .globals.axisCharts
                                ? p.data.slice()
                                : p;
                            }
                            r.series.emptyCollapsedSeries(u.config.series);
                          }
                          return r.update(e).then(function () {
                            c === l.length - 1 && s(r);
                          });
                        });
                    });
                  },
                },
                {
                  key: "_updateSeries",
                  value: function (e, t) {
                    var i = this,
                      n =
                        arguments.length > 2 &&
                        void 0 !== arguments[2] &&
                        arguments[2];
                    return new Promise(function (r) {
                      var a,
                        o = i.w;
                      return (
                        (o.globals.shouldAnimate = t),
                        (o.globals.dataChanged = !0),
                        t && i.ctx.series.getPreviousPaths(),
                        o.globals.axisCharts
                          ? (0 ===
                              (a = e.map(function (e, t) {
                                return i._extendSeries(e, t);
                              })).length && (a = [{ data: [] }]),
                            (o.config.series = a))
                          : (o.config.series = e.slice()),
                        n &&
                          ((o.globals.initialConfig.series = b.clone(
                            o.config.series
                          )),
                          (o.globals.initialSeries = b.clone(o.config.series))),
                        i.ctx.update().then(function () {
                          r(i.ctx);
                        })
                      );
                    });
                  },
                },
                {
                  key: "_extendSeries",
                  value: function (e, t) {
                    var i = this.w,
                      n = i.config.series[t];
                    return a(
                      a({}, i.config.series[t]),
                      {},
                      {
                        name: e.name ? e.name : n && n.name,
                        color: e.color ? e.color : n && n.color,
                        type: e.type ? e.type : n && n.type,
                        data: e.data ? e.data : n && n.data,
                      }
                    );
                  },
                },
                {
                  key: "toggleDataPointSelection",
                  value: function (e, t) {
                    var i = this.w,
                      n = null,
                      r = ".apexcharts-series[data\\:realIndex='".concat(
                        e,
                        "']"
                      );
                    return (
                      i.globals.axisCharts
                        ? (n = i.globals.dom.Paper.select(
                            ""
                              .concat(r, " path[j='")
                              .concat(t, "'], ")
                              .concat(r, " circle[j='")
                              .concat(t, "'], ")
                              .concat(r, " rect[j='")
                              .concat(t, "']")
                          ).members[0])
                        : void 0 === t &&
                          ((n = i.globals.dom.Paper.select(
                            "".concat(r, " path[j='").concat(e, "']")
                          ).members[0]),
                          ("pie" !== i.config.chart.type &&
                            "polarArea" !== i.config.chart.type &&
                            "donut" !== i.config.chart.type) ||
                            this.ctx.pie.pieClicked(e)),
                      n
                        ? (new w(this.ctx).pathMouseDown(n, null),
                          n.node ? n.node : null)
                        : (console.warn(
                            "toggleDataPointSelection: Element not found"
                          ),
                          null)
                    );
                  },
                },
                {
                  key: "forceXAxisUpdate",
                  value: function (e) {
                    var t = this.w;
                    if (
                      (["min", "max"].forEach(function (i) {
                        void 0 !== e.xaxis[i] &&
                          ((t.config.xaxis[i] = e.xaxis[i]),
                          (t.globals.lastXAxis[i] = e.xaxis[i]));
                      }),
                      e.xaxis.categories &&
                        e.xaxis.categories.length &&
                        (t.config.xaxis.categories = e.xaxis.categories),
                      t.config.xaxis.convertedCatToNumeric)
                    ) {
                      var i = new D(e);
                      e = i.convertCatToNumericXaxis(e, this.ctx);
                    }
                    return e;
                  },
                },
                {
                  key: "forceYAxisUpdate",
                  value: function (e) {
                    return (
                      e.chart &&
                        e.chart.stacked &&
                        "100%" === e.chart.stackType &&
                        (Array.isArray(e.yaxis)
                          ? e.yaxis.forEach(function (t, i) {
                              (e.yaxis[i].min = 0), (e.yaxis[i].max = 100);
                            })
                          : ((e.yaxis.min = 0), (e.yaxis.max = 100))),
                      e
                    );
                  },
                },
                {
                  key: "revertDefaultAxisMinMax",
                  value: function (e) {
                    var t = this,
                      i = this.w,
                      n = i.globals.lastXAxis,
                      r = i.globals.lastYAxis;
                    e && e.xaxis && (n = e.xaxis),
                      e && e.yaxis && (r = e.yaxis),
                      (i.config.xaxis.min = n.min),
                      (i.config.xaxis.max = n.max);
                    i.config.yaxis.map(function (e, n) {
                      i.globals.zoomed || void 0 !== r[n]
                        ? (function (e) {
                            void 0 !== r[e] &&
                              ((i.config.yaxis[e].min = r[e].min),
                              (i.config.yaxis[e].max = r[e].max));
                          })(n)
                        : void 0 !== t.ctx.opts.yaxis[n] &&
                          ((e.min = t.ctx.opts.yaxis[n].min),
                          (e.max = t.ctx.opts.yaxis[n].max));
                    });
                  },
                },
              ]),
              e
            );
          })();
        (De = "undefined" != typeof window ? window : void 0),
          (Re = function (e, t) {
            var i = ((void 0 !== this ? this : e).SVG = function (e) {
              if (i.supported)
                return (e = new i.Doc(e)), i.parser.draw || i.prepare(), e;
            });
            if (
              ((i.ns = "http://www.w3.org/2000/svg"),
              (i.xmlns = "http://www.w3.org/2000/xmlns/"),
              (i.xlink = "http://www.w3.org/1999/xlink"),
              (i.svgjs = "http://svgjs.dev"),
              (i.supported = !0),
              !i.supported)
            )
              return !1;
            (i.did = 1e3),
              (i.eid = function (e) {
                return "Svgjs" + d(e) + i.did++;
              }),
              (i.create = function (e) {
                var i = t.createElementNS(this.ns, e);
                return i.setAttribute("id", this.eid(e)), i;
              }),
              (i.extend = function () {
                var e, t;
                t = (e = [].slice.call(arguments)).pop();
                for (var n = e.length - 1; n >= 0; n--)
                  if (e[n]) for (var r in t) e[n].prototype[r] = t[r];
                i.Set && i.Set.inherit && i.Set.inherit();
              }),
              (i.invent = function (e) {
                var t =
                  "function" == typeof e.create
                    ? e.create
                    : function () {
                        this.constructor.call(this, i.create(e.create));
                      };
                return (
                  e.inherit && (t.prototype = new e.inherit()),
                  e.extend && i.extend(t, e.extend),
                  e.construct && i.extend(e.parent || i.Container, e.construct),
                  t
                );
              }),
              (i.adopt = function (t) {
                return t
                  ? t.instance
                    ? t.instance
                    : (((n =
                        "svg" == t.nodeName
                          ? t.parentNode instanceof e.SVGElement
                            ? new i.Nested()
                            : new i.Doc()
                          : "linearGradient" == t.nodeName
                          ? new i.Gradient("linear")
                          : "radialGradient" == t.nodeName
                          ? new i.Gradient("radial")
                          : i[d(t.nodeName)]
                          ? new i[d(t.nodeName)]()
                          : new i.Element(t)).type = t.nodeName),
                      (n.node = t),
                      (t.instance = n),
                      n instanceof i.Doc && n.namespace().defs(),
                      n.setData(JSON.parse(t.getAttribute("svgjs:data")) || {}),
                      n)
                  : null;
                var n;
              }),
              (i.prepare = function () {
                var e = t.getElementsByTagName("body")[0],
                  n = (
                    e ? new i.Doc(e) : i.adopt(t.documentElement).nested()
                  ).size(2, 0);
                i.parser = {
                  body: e || t.documentElement,
                  draw: n.style(
                    "opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden"
                  ).node,
                  poly: n.polyline().node,
                  path: n.path().node,
                  native: i.create("svg"),
                };
              }),
              (i.parser = { native: i.create("svg") }),
              t.addEventListener(
                "DOMContentLoaded",
                function () {
                  i.parser.draw || i.prepare();
                },
                !1
              ),
              (i.regex = {
                numberAndUnit:
                  /^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,
                hex: /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,
                rgb: /rgb\((\d+),(\d+),(\d+)\)/,
                reference: /#([a-z0-9\-_]+)/i,
                transforms: /\)\s*,?\s*/,
                whitespace: /\s/g,
                isHex: /^#[a-f0-9]{3,6}$/i,
                isRgb: /^rgb\(/,
                isCss: /[^:]+:[^;]+;?/,
                isBlank: /^(\s+)?$/,
                isNumber: /^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,
                isPercent: /^-?[\d\.]+%$/,
                isImage: /\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,
                delimiter: /[\s,]+/,
                hyphen: /([^e])\-/gi,
                pathLetters: /[MLHVCSQTAZ]/gi,
                isPathLetter: /[MLHVCSQTAZ]/i,
                numbersWithDots:
                  /((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,
                dots: /\./g,
              }),
              (i.utils = {
                map: function (e, t) {
                  for (var i = e.length, n = [], r = 0; r < i; r++)
                    n.push(t(e[r]));
                  return n;
                },
                filter: function (e, t) {
                  for (var i = e.length, n = [], r = 0; r < i; r++)
                    t(e[r]) && n.push(e[r]);
                  return n;
                },
                filterSVGElements: function (t) {
                  return this.filter(t, function (t) {
                    return t instanceof e.SVGElement;
                  });
                },
              }),
              (i.defaults = {
                attrs: {
                  "fill-opacity": 1,
                  "stroke-opacity": 1,
                  "stroke-width": 0,
                  "stroke-linejoin": "miter",
                  "stroke-linecap": "butt",
                  fill: "#000000",
                  stroke: "#000000",
                  opacity: 1,
                  x: 0,
                  y: 0,
                  cx: 0,
                  cy: 0,
                  width: 0,
                  height: 0,
                  r: 0,
                  rx: 0,
                  ry: 0,
                  offset: 0,
                  "stop-opacity": 1,
                  "stop-color": "#000000",
                  "font-size": 16,
                  "font-family": "Helvetica, Arial, sans-serif",
                  "text-anchor": "start",
                },
              }),
              (i.Color = function (e) {
                var t, n;
                (this.r = 0),
                  (this.g = 0),
                  (this.b = 0),
                  e &&
                    ("string" == typeof e
                      ? i.regex.isRgb.test(e)
                        ? ((t = i.regex.rgb.exec(
                            e.replace(i.regex.whitespace, "")
                          )),
                          (this.r = parseInt(t[1])),
                          (this.g = parseInt(t[2])),
                          (this.b = parseInt(t[3])))
                        : i.regex.isHex.test(e) &&
                          ((t = i.regex.hex.exec(
                            4 == (n = e).length
                              ? [
                                  "#",
                                  n.substring(1, 2),
                                  n.substring(1, 2),
                                  n.substring(2, 3),
                                  n.substring(2, 3),
                                  n.substring(3, 4),
                                  n.substring(3, 4),
                                ].join("")
                              : n
                          )),
                          (this.r = parseInt(t[1], 16)),
                          (this.g = parseInt(t[2], 16)),
                          (this.b = parseInt(t[3], 16)))
                      : "object" === o(e) &&
                        ((this.r = e.r), (this.g = e.g), (this.b = e.b)));
              }),
              i.extend(i.Color, {
                toString: function () {
                  return this.toHex();
                },
                toHex: function () {
                  return "#" + h(this.r) + h(this.g) + h(this.b);
                },
                toRgb: function () {
                  return "rgb(" + [this.r, this.g, this.b].join() + ")";
                },
                brightness: function () {
                  return (
                    (this.r / 255) * 0.3 +
                    (this.g / 255) * 0.59 +
                    (this.b / 255) * 0.11
                  );
                },
                morph: function (e) {
                  return (this.destination = new i.Color(e)), this;
                },
                at: function (e) {
                  return this.destination
                    ? ((e = e < 0 ? 0 : e > 1 ? 1 : e),
                      new i.Color({
                        r: ~~(this.r + (this.destination.r - this.r) * e),
                        g: ~~(this.g + (this.destination.g - this.g) * e),
                        b: ~~(this.b + (this.destination.b - this.b) * e),
                      }))
                    : this;
                },
              }),
              (i.Color.test = function (e) {
                return (
                  (e += ""), i.regex.isHex.test(e) || i.regex.isRgb.test(e)
                );
              }),
              (i.Color.isRgb = function (e) {
                return (
                  e &&
                  "number" == typeof e.r &&
                  "number" == typeof e.g &&
                  "number" == typeof e.b
                );
              }),
              (i.Color.isColor = function (e) {
                return i.Color.isRgb(e) || i.Color.test(e);
              }),
              (i.Array = function (e, t) {
                0 == (e = (e || []).valueOf()).length && t && (e = t.valueOf()),
                  (this.value = this.parse(e));
              }),
              i.extend(i.Array, {
                toString: function () {
                  return this.value.join(" ");
                },
                valueOf: function () {
                  return this.value;
                },
                parse: function (e) {
                  return (
                    (e = e.valueOf()), Array.isArray(e) ? e : this.split(e)
                  );
                },
              }),
              (i.PointArray = function (e, t) {
                i.Array.call(this, e, t || [[0, 0]]);
              }),
              (i.PointArray.prototype = new i.Array()),
              (i.PointArray.prototype.constructor = i.PointArray);
            for (
              var n = {
                  M: function (e, t, i) {
                    return (
                      (t.x = i.x = e[0]), (t.y = i.y = e[1]), ["M", t.x, t.y]
                    );
                  },
                  L: function (e, t) {
                    return (t.x = e[0]), (t.y = e[1]), ["L", e[0], e[1]];
                  },
                  H: function (e, t) {
                    return (t.x = e[0]), ["H", e[0]];
                  },
                  V: function (e, t) {
                    return (t.y = e[0]), ["V", e[0]];
                  },
                  C: function (e, t) {
                    return (
                      (t.x = e[4]),
                      (t.y = e[5]),
                      ["C", e[0], e[1], e[2], e[3], e[4], e[5]]
                    );
                  },
                  Q: function (e, t) {
                    return (
                      (t.x = e[2]), (t.y = e[3]), ["Q", e[0], e[1], e[2], e[3]]
                    );
                  },
                  Z: function (e, t, i) {
                    return (t.x = i.x), (t.y = i.y), ["Z"];
                  },
                },
                r = "mlhvqtcsaz".split(""),
                a = 0,
                s = r.length;
              a < s;
              ++a
            )
              n[r[a]] = (function (e) {
                return function (t, i, r) {
                  if ("H" == e) t[0] = t[0] + i.x;
                  else if ("V" == e) t[0] = t[0] + i.y;
                  else if ("A" == e) (t[5] = t[5] + i.x), (t[6] = t[6] + i.y);
                  else
                    for (var a = 0, o = t.length; a < o; ++a)
                      t[a] = t[a] + (a % 2 ? i.y : i.x);
                  if (n && "function" == typeof n[e]) return n[e](t, i, r);
                };
              })(r[a].toUpperCase());
            (i.PathArray = function (e, t) {
              i.Array.call(this, e, t || [["M", 0, 0]]);
            }),
              (i.PathArray.prototype = new i.Array()),
              (i.PathArray.prototype.constructor = i.PathArray),
              i.extend(i.PathArray, {
                toString: function () {
                  return (function (e) {
                    for (var t = 0, i = e.length, n = ""; t < i; t++)
                      (n += e[t][0]),
                        null != e[t][1] &&
                          ((n += e[t][1]),
                          null != e[t][2] &&
                            ((n += " "),
                            (n += e[t][2]),
                            null != e[t][3] &&
                              ((n += " "),
                              (n += e[t][3]),
                              (n += " "),
                              (n += e[t][4]),
                              null != e[t][5] &&
                                ((n += " "),
                                (n += e[t][5]),
                                (n += " "),
                                (n += e[t][6]),
                                null != e[t][7] &&
                                  ((n += " "), (n += e[t][7]))))));
                    return n + " ";
                  })(this.value);
                },
                move: function (e, t) {
                  var i = this.bbox();
                  return i.x, i.y, this;
                },
                at: function (e) {
                  if (!this.destination) return this;
                  for (
                    var t = this.value,
                      n = this.destination.value,
                      r = [],
                      a = new i.PathArray(),
                      o = 0,
                      s = t.length;
                    o < s;
                    o++
                  ) {
                    r[o] = [t[o][0]];
                    for (var l = 1, c = t[o].length; l < c; l++)
                      r[o][l] = t[o][l] + (n[o][l] - t[o][l]) * e;
                    "A" === r[o][0] &&
                      ((r[o][4] = +(0 != r[o][4])),
                      (r[o][5] = +(0 != r[o][5])));
                  }
                  return (a.value = r), a;
                },
                parse: function (e) {
                  if (e instanceof i.PathArray) return e.valueOf();
                  var t,
                    r = {
                      M: 2,
                      L: 2,
                      H: 1,
                      V: 1,
                      C: 6,
                      S: 4,
                      Q: 4,
                      T: 2,
                      A: 7,
                      Z: 0,
                    };
                  e =
                    "string" == typeof e
                      ? e
                          .replace(i.regex.numbersWithDots, c)
                          .replace(i.regex.pathLetters, " $& ")
                          .replace(i.regex.hyphen, "$1 -")
                          .trim()
                          .split(i.regex.delimiter)
                      : e.reduce(function (e, t) {
                          return [].concat.call(e, t);
                        }, []);
                  var a = [],
                    o = new i.Point(),
                    s = new i.Point(),
                    l = 0,
                    u = e.length;
                  do {
                    i.regex.isPathLetter.test(e[l])
                      ? ((t = e[l]), ++l)
                      : "M" == t
                      ? (t = "L")
                      : "m" == t && (t = "l"),
                      a.push(
                        n[t].call(
                          null,
                          e.slice(l, (l += r[t.toUpperCase()])).map(parseFloat),
                          o,
                          s
                        )
                      );
                  } while (u > l);
                  return a;
                },
                bbox: function () {
                  return (
                    i.parser.draw || i.prepare(),
                    i.parser.path.setAttribute("d", this.toString()),
                    i.parser.path.getBBox()
                  );
                },
              }),
              (i.Number = i.invent({
                create: function (e, t) {
                  (this.value = 0),
                    (this.unit = t || ""),
                    "number" == typeof e
                      ? (this.value = isNaN(e)
                          ? 0
                          : isFinite(e)
                          ? e
                          : e < 0
                          ? -34e37
                          : 34e37)
                      : "string" == typeof e
                      ? (t = e.match(i.regex.numberAndUnit)) &&
                        ((this.value = parseFloat(t[1])),
                        "%" == t[5]
                          ? (this.value /= 100)
                          : "s" == t[5] && (this.value *= 1e3),
                        (this.unit = t[5]))
                      : e instanceof i.Number &&
                        ((this.value = e.valueOf()), (this.unit = e.unit));
                },
                extend: {
                  toString: function () {
                    return (
                      ("%" == this.unit
                        ? ~~(1e8 * this.value) / 1e6
                        : "s" == this.unit
                        ? this.value / 1e3
                        : this.value) + this.unit
                    );
                  },
                  toJSON: function () {
                    return this.toString();
                  },
                  valueOf: function () {
                    return this.value;
                  },
                  plus: function (e) {
                    return (
                      (e = new i.Number(e)),
                      new i.Number(this + e, this.unit || e.unit)
                    );
                  },
                  minus: function (e) {
                    return (
                      (e = new i.Number(e)),
                      new i.Number(this - e, this.unit || e.unit)
                    );
                  },
                  times: function (e) {
                    return (
                      (e = new i.Number(e)),
                      new i.Number(this * e, this.unit || e.unit)
                    );
                  },
                  divide: function (e) {
                    return (
                      (e = new i.Number(e)),
                      new i.Number(this / e, this.unit || e.unit)
                    );
                  },
                  to: function (e) {
                    var t = new i.Number(this);
                    return "string" == typeof e && (t.unit = e), t;
                  },
                  morph: function (e) {
                    return (
                      (this.destination = new i.Number(e)),
                      e.relative && (this.destination.value += this.value),
                      this
                    );
                  },
                  at: function (e) {
                    return this.destination
                      ? new i.Number(this.destination)
                          .minus(this)
                          .times(e)
                          .plus(this)
                      : this;
                  },
                },
              })),
              (i.Element = i.invent({
                create: function (e) {
                  (this._stroke = i.defaults.attrs.stroke),
                    (this._event = null),
                    (this.dom = {}),
                    (this.node = e) &&
                      ((this.type = e.nodeName),
                      (this.node.instance = this),
                      (this._stroke =
                        e.getAttribute("stroke") || this._stroke));
                },
                extend: {
                  x: function (e) {
                    return this.attr("x", e);
                  },
                  y: function (e) {
                    return this.attr("y", e);
                  },
                  cx: function (e) {
                    return null == e
                      ? this.x() + this.width() / 2
                      : this.x(e - this.width() / 2);
                  },
                  cy: function (e) {
                    return null == e
                      ? this.y() + this.height() / 2
                      : this.y(e - this.height() / 2);
                  },
                  move: function (e, t) {
                    return this.x(e).y(t);
                  },
                  center: function (e, t) {
                    return this.cx(e).cy(t);
                  },
                  width: function (e) {
                    return this.attr("width", e);
                  },
                  height: function (e) {
                    return this.attr("height", e);
                  },
                  size: function (e, t) {
                    var n = f(this, e, t);
                    return this.width(new i.Number(n.width)).height(
                      new i.Number(n.height)
                    );
                  },
                  clone: function (e) {
                    this.writeDataToDom();
                    var t = m(this.node.cloneNode(!0));
                    return e ? e.add(t) : this.after(t), t;
                  },
                  remove: function () {
                    return (
                      this.parent() && this.parent().removeElement(this), this
                    );
                  },
                  replace: function (e) {
                    return this.after(e).remove(), e;
                  },
                  addTo: function (e) {
                    return e.put(this);
                  },
                  putIn: function (e) {
                    return e.add(this);
                  },
                  id: function (e) {
                    return this.attr("id", e);
                  },
                  show: function () {
                    return this.style("display", "");
                  },
                  hide: function () {
                    return this.style("display", "none");
                  },
                  visible: function () {
                    return "none" != this.style("display");
                  },
                  toString: function () {
                    return this.attr("id");
                  },
                  classes: function () {
                    var e = this.attr("class");
                    return null == e ? [] : e.trim().split(i.regex.delimiter);
                  },
                  hasClass: function (e) {
                    return -1 != this.classes().indexOf(e);
                  },
                  addClass: function (e) {
                    if (!this.hasClass(e)) {
                      var t = this.classes();
                      t.push(e), this.attr("class", t.join(" "));
                    }
                    return this;
                  },
                  removeClass: function (e) {
                    return (
                      this.hasClass(e) &&
                        this.attr(
                          "class",
                          this.classes()
                            .filter(function (t) {
                              return t != e;
                            })
                            .join(" ")
                        ),
                      this
                    );
                  },
                  toggleClass: function (e) {
                    return this.hasClass(e)
                      ? this.removeClass(e)
                      : this.addClass(e);
                  },
                  reference: function (e) {
                    return i.get(this.attr(e));
                  },
                  parent: function (t) {
                    var n = this;
                    if (!n.node.parentNode) return null;
                    if (((n = i.adopt(n.node.parentNode)), !t)) return n;
                    for (; n && n.node instanceof e.SVGElement; ) {
                      if ("string" == typeof t ? n.matches(t) : n instanceof t)
                        return n;
                      if (
                        !n.node.parentNode ||
                        "#document" == n.node.parentNode.nodeName
                      )
                        return null;
                      n = i.adopt(n.node.parentNode);
                    }
                  },
                  doc: function () {
                    return this instanceof i.Doc ? this : this.parent(i.Doc);
                  },
                  parents: function (e) {
                    var t = [],
                      i = this;
                    do {
                      if (!(i = i.parent(e)) || !i.node) break;
                      t.push(i);
                    } while (i.parent);
                    return t;
                  },
                  matches: function (e) {
                    return (function (e, t) {
                      return (
                        e.matches ||
                        e.matchesSelector ||
                        e.msMatchesSelector ||
                        e.mozMatchesSelector ||
                        e.webkitMatchesSelector ||
                        e.oMatchesSelector
                      ).call(e, t);
                    })(this.node, e);
                  },
                  native: function () {
                    return this.node;
                  },
                  svg: function (e) {
                    var n = t.createElement("svg");
                    if (!(e && this instanceof i.Parent))
                      return (
                        n.appendChild((e = t.createElement("svg"))),
                        this.writeDataToDom(),
                        e.appendChild(this.node.cloneNode(!0)),
                        n.innerHTML
                          .replace(/^<svg>/, "")
                          .replace(/<\/svg>$/, "")
                      );
                    n.innerHTML =
                      "<svg>" +
                      e
                        .replace(/\n/, "")
                        .replace(/<([\w:-]+)([^<]+?)\/>/g, "<$1$2></$1>") +
                      "</svg>";
                    for (
                      var r = 0, a = n.firstChild.childNodes.length;
                      r < a;
                      r++
                    )
                      this.node.appendChild(n.firstChild.firstChild);
                    return this;
                  },
                  writeDataToDom: function () {
                    return (
                      (this.each || this.lines) &&
                        (this.each ? this : this.lines()).each(function () {
                          this.writeDataToDom();
                        }),
                      this.node.removeAttribute("svgjs:data"),
                      Object.keys(this.dom).length &&
                        this.node.setAttribute(
                          "svgjs:data",
                          JSON.stringify(this.dom)
                        ),
                      this
                    );
                  },
                  setData: function (e) {
                    return (this.dom = e), this;
                  },
                  is: function (e) {
                    return (function (e, t) {
                      return e instanceof t;
                    })(this, e);
                  },
                },
              })),
              (i.easing = {
                "-": function (e) {
                  return e;
                },
                "<>": function (e) {
                  return -Math.cos(e * Math.PI) / 2 + 0.5;
                },
                ">": function (e) {
                  return Math.sin((e * Math.PI) / 2);
                },
                "<": function (e) {
                  return 1 - Math.cos((e * Math.PI) / 2);
                },
              }),
              (i.morph = function (e) {
                return function (t, n) {
                  return new i.MorphObj(t, n).at(e);
                };
              }),
              (i.Situation = i.invent({
                create: function (e) {
                  (this.init = !1),
                    (this.reversed = !1),
                    (this.reversing = !1),
                    (this.duration = new i.Number(e.duration).valueOf()),
                    (this.delay = new i.Number(e.delay).valueOf()),
                    (this.start = +new Date() + this.delay),
                    (this.finish = this.start + this.duration),
                    (this.ease = e.ease),
                    (this.loop = 0),
                    (this.loops = !1),
                    (this.animations = {}),
                    (this.attrs = {}),
                    (this.styles = {}),
                    (this.transforms = []),
                    (this.once = {});
                },
              })),
              (i.FX = i.invent({
                create: function (e) {
                  (this._target = e),
                    (this.situations = []),
                    (this.active = !1),
                    (this.situation = null),
                    (this.paused = !1),
                    (this.lastPos = 0),
                    (this.pos = 0),
                    (this.absPos = 0),
                    (this._speed = 1);
                },
                extend: {
                  animate: function (e, t, n) {
                    "object" === o(e) &&
                      ((t = e.ease), (n = e.delay), (e = e.duration));
                    var r = new i.Situation({
                      duration: e || 1e3,
                      delay: n || 0,
                      ease: i.easing[t || "-"] || t,
                    });
                    return this.queue(r), this;
                  },
                  target: function (e) {
                    return e && e instanceof i.Element
                      ? ((this._target = e), this)
                      : this._target;
                  },
                  timeToAbsPos: function (e) {
                    return (
                      (e - this.situation.start) /
                      (this.situation.duration / this._speed)
                    );
                  },
                  absPosToTime: function (e) {
                    return (
                      (this.situation.duration / this._speed) * e +
                      this.situation.start
                    );
                  },
                  startAnimFrame: function () {
                    this.stopAnimFrame(),
                      (this.animationFrame = e.requestAnimationFrame(
                        function () {
                          this.step();
                        }.bind(this)
                      ));
                  },
                  stopAnimFrame: function () {
                    e.cancelAnimationFrame(this.animationFrame);
                  },
                  start: function () {
                    return (
                      !this.active &&
                        this.situation &&
                        ((this.active = !0), this.startCurrent()),
                      this
                    );
                  },
                  startCurrent: function () {
                    return (
                      (this.situation.start =
                        +new Date() + this.situation.delay / this._speed),
                      (this.situation.finish =
                        this.situation.start +
                        this.situation.duration / this._speed),
                      this.initAnimations().step()
                    );
                  },
                  queue: function (e) {
                    return (
                      ("function" == typeof e || e instanceof i.Situation) &&
                        this.situations.push(e),
                      this.situation ||
                        (this.situation = this.situations.shift()),
                      this
                    );
                  },
                  dequeue: function () {
                    return (
                      this.stop(),
                      (this.situation = this.situations.shift()),
                      this.situation &&
                        (this.situation instanceof i.Situation
                          ? this.start()
                          : this.situation.call(this)),
                      this
                    );
                  },
                  initAnimations: function () {
                    var e,
                      t = this.situation;
                    if (t.init) return this;
                    for (var n in t.animations) {
                      (e = this.target()[n]()),
                        Array.isArray(e) || (e = [e]),
                        Array.isArray(t.animations[n]) ||
                          (t.animations[n] = [t.animations[n]]);
                      for (var r = e.length; r--; )
                        t.animations[n][r] instanceof i.Number &&
                          (e[r] = new i.Number(e[r])),
                          (t.animations[n][r] = e[r].morph(t.animations[n][r]));
                    }
                    for (var n in t.attrs)
                      t.attrs[n] = new i.MorphObj(
                        this.target().attr(n),
                        t.attrs[n]
                      );
                    for (var n in t.styles)
                      t.styles[n] = new i.MorphObj(
                        this.target().style(n),
                        t.styles[n]
                      );
                    return (
                      (t.initialTransformation = this.target().matrixify()),
                      (t.init = !0),
                      this
                    );
                  },
                  clearQueue: function () {
                    return (this.situations = []), this;
                  },
                  clearCurrent: function () {
                    return (this.situation = null), this;
                  },
                  stop: function (e, t) {
                    var i = this.active;
                    return (
                      (this.active = !1),
                      t && this.clearQueue(),
                      e &&
                        this.situation &&
                        (!i && this.startCurrent(), this.atEnd()),
                      this.stopAnimFrame(),
                      this.clearCurrent()
                    );
                  },
                  after: function (e) {
                    var t = this.last();
                    return (
                      this.target().on("finished.fx", function i(n) {
                        n.detail.situation == t &&
                          (e.call(this, t), this.off("finished.fx", i));
                      }),
                      this._callStart()
                    );
                  },
                  during: function (e) {
                    var t = this.last(),
                      n = function (n) {
                        n.detail.situation == t &&
                          e.call(
                            this,
                            n.detail.pos,
                            i.morph(n.detail.pos),
                            n.detail.eased,
                            t
                          );
                      };
                    return (
                      this.target().off("during.fx", n).on("during.fx", n),
                      this.after(function () {
                        this.off("during.fx", n);
                      }),
                      this._callStart()
                    );
                  },
                  afterAll: function (e) {
                    var t = function t(i) {
                      e.call(this), this.off("allfinished.fx", t);
                    };
                    return (
                      this.target()
                        .off("allfinished.fx", t)
                        .on("allfinished.fx", t),
                      this._callStart()
                    );
                  },
                  last: function () {
                    return this.situations.length
                      ? this.situations[this.situations.length - 1]
                      : this.situation;
                  },
                  add: function (e, t, i) {
                    return (
                      (this.last()[i || "animations"][e] = t), this._callStart()
                    );
                  },
                  step: function (e) {
                    var t, i, n;
                    e || (this.absPos = this.timeToAbsPos(+new Date())),
                      !1 !== this.situation.loops
                        ? ((t = Math.max(this.absPos, 0)),
                          (i = Math.floor(t)),
                          !0 === this.situation.loops ||
                          i < this.situation.loops
                            ? ((this.pos = t - i),
                              (n = this.situation.loop),
                              (this.situation.loop = i))
                            : ((this.absPos = this.situation.loops),
                              (this.pos = 1),
                              (n = this.situation.loop - 1),
                              (this.situation.loop = this.situation.loops)),
                          this.situation.reversing &&
                            (this.situation.reversed =
                              this.situation.reversed !=
                              Boolean((this.situation.loop - n) % 2)))
                        : ((this.absPos = Math.min(this.absPos, 1)),
                          (this.pos = this.absPos)),
                      this.pos < 0 && (this.pos = 0),
                      this.situation.reversed && (this.pos = 1 - this.pos);
                    var r = this.situation.ease(this.pos);
                    for (var a in this.situation.once)
                      a > this.lastPos &&
                        a <= r &&
                        (this.situation.once[a].call(
                          this.target(),
                          this.pos,
                          r
                        ),
                        delete this.situation.once[a]);
                    return (
                      this.active &&
                        this.target().fire("during", {
                          pos: this.pos,
                          eased: r,
                          fx: this,
                          situation: this.situation,
                        }),
                      this.situation
                        ? (this.eachAt(),
                          (1 == this.pos && !this.situation.reversed) ||
                          (this.situation.reversed && 0 == this.pos)
                            ? (this.stopAnimFrame(),
                              this.target().fire("finished", {
                                fx: this,
                                situation: this.situation,
                              }),
                              this.situations.length ||
                                (this.target().fire("allfinished"),
                                this.situations.length ||
                                  (this.target().off(".fx"),
                                  (this.active = !1))),
                              this.active
                                ? this.dequeue()
                                : this.clearCurrent())
                            : !this.paused &&
                              this.active &&
                              this.startAnimFrame(),
                          (this.lastPos = r),
                          this)
                        : this
                    );
                  },
                  eachAt: function () {
                    var e,
                      t = this,
                      n = this.target(),
                      r = this.situation;
                    for (var a in r.animations)
                      (e = [].concat(r.animations[a]).map(function (e) {
                        return "string" != typeof e && e.at
                          ? e.at(r.ease(t.pos), t.pos)
                          : e;
                      })),
                        n[a].apply(n, e);
                    for (var a in r.attrs)
                      (e = [a].concat(r.attrs[a]).map(function (e) {
                        return "string" != typeof e && e.at
                          ? e.at(r.ease(t.pos), t.pos)
                          : e;
                      })),
                        n.attr.apply(n, e);
                    for (var a in r.styles)
                      (e = [a].concat(r.styles[a]).map(function (e) {
                        return "string" != typeof e && e.at
                          ? e.at(r.ease(t.pos), t.pos)
                          : e;
                      })),
                        n.style.apply(n, e);
                    if (r.transforms.length) {
                      (e = r.initialTransformation), (a = 0);
                      for (var o = r.transforms.length; a < o; a++) {
                        var s = r.transforms[a];
                        s instanceof i.Matrix
                          ? (e = s.relative
                              ? e.multiply(
                                  new i.Matrix().morph(s).at(r.ease(this.pos))
                                )
                              : e.morph(s).at(r.ease(this.pos)))
                          : (s.relative || s.undo(e.extract()),
                            (e = e.multiply(s.at(r.ease(this.pos)))));
                      }
                      n.matrix(e);
                    }
                    return this;
                  },
                  once: function (e, t, i) {
                    var n = this.last();
                    return i || (e = n.ease(e)), (n.once[e] = t), this;
                  },
                  _callStart: function () {
                    return (
                      setTimeout(
                        function () {
                          this.start();
                        }.bind(this),
                        0
                      ),
                      this
                    );
                  },
                },
                parent: i.Element,
                construct: {
                  animate: function (e, t, n) {
                    return (this.fx || (this.fx = new i.FX(this))).animate(
                      e,
                      t,
                      n
                    );
                  },
                  delay: function (e) {
                    return (this.fx || (this.fx = new i.FX(this))).delay(e);
                  },
                  stop: function (e, t) {
                    return this.fx && this.fx.stop(e, t), this;
                  },
                  finish: function () {
                    return this.fx && this.fx.finish(), this;
                  },
                },
              })),
              (i.MorphObj = i.invent({
                create: function (e, t) {
                  return i.Color.isColor(t)
                    ? new i.Color(e).morph(t)
                    : i.regex.delimiter.test(e)
                    ? i.regex.pathLetters.test(e)
                      ? new i.PathArray(e).morph(t)
                      : new i.Array(e).morph(t)
                    : i.regex.numberAndUnit.test(t)
                    ? new i.Number(e).morph(t)
                    : ((this.value = e), void (this.destination = t));
                },
                extend: {
                  at: function (e, t) {
                    return t < 1 ? this.value : this.destination;
                  },
                  valueOf: function () {
                    return this.value;
                  },
                },
              })),
              i.extend(i.FX, {
                attr: function (e, t, i) {
                  if ("object" === o(e)) for (var n in e) this.attr(n, e[n]);
                  else this.add(e, t, "attrs");
                  return this;
                },
                plot: function (e, t, i, n) {
                  return 4 == arguments.length
                    ? this.plot([e, t, i, n])
                    : this.add("plot", new (this.target().morphArray)(e));
                },
              }),
              (i.Box = i.invent({
                create: function (e, t, n, r) {
                  if (!("object" !== o(e) || e instanceof i.Element))
                    return i.Box.call(
                      this,
                      null != e.left ? e.left : e.x,
                      null != e.top ? e.top : e.y,
                      e.width,
                      e.height
                    );
                  4 == arguments.length &&
                    ((this.x = e),
                    (this.y = t),
                    (this.width = n),
                    (this.height = r)),
                    (function (e) {
                      null == e.x &&
                        ((e.x = 0), (e.y = 0), (e.width = 0), (e.height = 0)),
                        (e.w = e.width),
                        (e.h = e.height),
                        (e.x2 = e.x + e.width),
                        (e.y2 = e.y + e.height),
                        (e.cx = e.x + e.width / 2),
                        (e.cy = e.y + e.height / 2);
                    })(this);
                },
              })),
              (i.BBox = i.invent({
                create: function (e) {
                  if (
                    (i.Box.apply(this, [].slice.call(arguments)),
                    e instanceof i.Element)
                  ) {
                    var n;
                    try {
                      if (!t.documentElement.contains) {
                        for (var r = e.node; r.parentNode; ) r = r.parentNode;
                        if (r != t) throw new Error("Element not in the dom");
                      }
                      n = e.node.getBBox();
                    } catch (t) {
                      if (e instanceof i.Shape) {
                        i.parser.draw || i.prepare();
                        var a = e.clone(i.parser.draw.instance).show();
                        a &&
                          a.node &&
                          "function" == typeof a.node.getBBox &&
                          (n = a.node.getBBox()),
                          a && "function" == typeof a.remove && a.remove();
                      } else
                        n = {
                          x: e.node.clientLeft,
                          y: e.node.clientTop,
                          width: e.node.clientWidth,
                          height: e.node.clientHeight,
                        };
                    }
                    i.Box.call(this, n);
                  }
                },
                inherit: i.Box,
                parent: i.Element,
                construct: {
                  bbox: function () {
                    return new i.BBox(this);
                  },
                },
              })),
              (i.BBox.prototype.constructor = i.BBox),
              (i.Matrix = i.invent({
                create: function (e) {
                  var t = g([1, 0, 0, 1, 0, 0]);
                  e =
                    null === e
                      ? t
                      : e instanceof i.Element
                      ? e.matrixify()
                      : "string" == typeof e
                      ? g(e.split(i.regex.delimiter).map(parseFloat))
                      : 6 == arguments.length
                      ? g([].slice.call(arguments))
                      : Array.isArray(e)
                      ? g(e)
                      : e && "object" === o(e)
                      ? e
                      : t;
                  for (var n = b.length - 1; n >= 0; --n)
                    this[b[n]] = null != e[b[n]] ? e[b[n]] : t[b[n]];
                },
                extend: {
                  extract: function () {
                    var e = p(this, 0, 1);
                    p(this, 1, 0);
                    var t = (180 / Math.PI) * Math.atan2(e.y, e.x) - 90;
                    return {
                      x: this.e,
                      y: this.f,
                      transformedX:
                        (this.e * Math.cos((t * Math.PI) / 180) +
                          this.f * Math.sin((t * Math.PI) / 180)) /
                        Math.sqrt(this.a * this.a + this.b * this.b),
                      transformedY:
                        (this.f * Math.cos((t * Math.PI) / 180) +
                          this.e * Math.sin((-t * Math.PI) / 180)) /
                        Math.sqrt(this.c * this.c + this.d * this.d),
                      rotation: t,
                      a: this.a,
                      b: this.b,
                      c: this.c,
                      d: this.d,
                      e: this.e,
                      f: this.f,
                      matrix: new i.Matrix(this),
                    };
                  },
                  clone: function () {
                    return new i.Matrix(this);
                  },
                  morph: function (e) {
                    return (this.destination = new i.Matrix(e)), this;
                  },
                  multiply: function (e) {
                    return new i.Matrix(
                      this.native().multiply(
                        (function (e) {
                          return (
                            e instanceof i.Matrix || (e = new i.Matrix(e)), e
                          );
                        })(e).native()
                      )
                    );
                  },
                  inverse: function () {
                    return new i.Matrix(this.native().inverse());
                  },
                  translate: function (e, t) {
                    return new i.Matrix(
                      this.native().translate(e || 0, t || 0)
                    );
                  },
                  native: function () {
                    for (
                      var e = i.parser.native.createSVGMatrix(),
                        t = b.length - 1;
                      t >= 0;
                      t--
                    )
                      e[b[t]] = this[b[t]];
                    return e;
                  },
                  toString: function () {
                    return (
                      "matrix(" +
                      v(this.a) +
                      "," +
                      v(this.b) +
                      "," +
                      v(this.c) +
                      "," +
                      v(this.d) +
                      "," +
                      v(this.e) +
                      "," +
                      v(this.f) +
                      ")"
                    );
                  },
                },
                parent: i.Element,
                construct: {
                  ctm: function () {
                    return new i.Matrix(this.node.getCTM());
                  },
                  screenCTM: function () {
                    if (this instanceof i.Nested) {
                      var e = this.rect(1, 1),
                        t = e.node.getScreenCTM();
                      return e.remove(), new i.Matrix(t);
                    }
                    return new i.Matrix(this.node.getScreenCTM());
                  },
                },
              })),
              (i.Point = i.invent({
                create: function (e, t) {
                  var i;
                  (i = Array.isArray(e)
                    ? { x: e[0], y: e[1] }
                    : "object" === o(e)
                    ? { x: e.x, y: e.y }
                    : null != e
                    ? { x: e, y: null != t ? t : e }
                    : { x: 0, y: 0 }),
                    (this.x = i.x),
                    (this.y = i.y);
                },
                extend: {
                  clone: function () {
                    return new i.Point(this);
                  },
                  morph: function (e, t) {
                    return (this.destination = new i.Point(e, t)), this;
                  },
                },
              })),
              i.extend(i.Element, {
                point: function (e, t) {
                  return new i.Point(e, t).transform(
                    this.screenCTM().inverse()
                  );
                },
              }),
              i.extend(i.Element, {
                attr: function (e, t, n) {
                  if (null == e) {
                    for (
                      e = {}, n = (t = this.node.attributes).length - 1;
                      n >= 0;
                      n--
                    )
                      e[t[n].nodeName] = i.regex.isNumber.test(t[n].nodeValue)
                        ? parseFloat(t[n].nodeValue)
                        : t[n].nodeValue;
                    return e;
                  }
                  if ("object" === o(e)) for (var r in e) this.attr(r, e[r]);
                  else if (null === t) this.node.removeAttribute(e);
                  else {
                    if (null == t)
                      return null == (t = this.node.getAttribute(e))
                        ? i.defaults.attrs[e]
                        : i.regex.isNumber.test(t)
                        ? parseFloat(t)
                        : t;
                    "stroke-width" == e
                      ? this.attr(
                          "stroke",
                          parseFloat(t) > 0 ? this._stroke : null
                        )
                      : "stroke" == e && (this._stroke = t),
                      ("fill" != e && "stroke" != e) ||
                        (i.regex.isImage.test(t) &&
                          (t = this.doc().defs().image(t, 0, 0)),
                        t instanceof i.Image &&
                          (t = this.doc()
                            .defs()
                            .pattern(0, 0, function () {
                              this.add(t);
                            }))),
                      "number" == typeof t
                        ? (t = new i.Number(t))
                        : i.Color.isColor(t)
                        ? (t = new i.Color(t))
                        : Array.isArray(t) && (t = new i.Array(t)),
                      "leading" == e
                        ? this.leading && this.leading(t)
                        : "string" == typeof n
                        ? this.node.setAttributeNS(n, e, t.toString())
                        : this.node.setAttribute(e, t.toString()),
                      !this.rebuild ||
                        ("font-size" != e && "x" != e) ||
                        this.rebuild(e, t);
                  }
                  return this;
                },
              }),
              i.extend(i.Element, {
                transform: function (e, t) {
                  var n;
                  return "object" !== o(e)
                    ? ((n = new i.Matrix(this).extract()),
                      "string" == typeof e ? n[e] : n)
                    : ((n = new i.Matrix(this)),
                      (t = !!t || !!e.relative),
                      null != e.a &&
                        (n = t ? n.multiply(new i.Matrix(e)) : new i.Matrix(e)),
                      this.attr("transform", n));
                },
              }),
              i.extend(i.Element, {
                untransform: function () {
                  return this.attr("transform", null);
                },
                matrixify: function () {
                  return (this.attr("transform") || "")
                    .split(i.regex.transforms)
                    .slice(0, -1)
                    .map(function (e) {
                      var t = e.trim().split("(");
                      return [
                        t[0],
                        t[1].split(i.regex.delimiter).map(function (e) {
                          return parseFloat(e);
                        }),
                      ];
                    })
                    .reduce(function (e, t) {
                      return "matrix" == t[0]
                        ? e.multiply(g(t[1]))
                        : e[t[0]].apply(e, t[1]);
                    }, new i.Matrix());
                },
                toParent: function (e) {
                  if (this == e) return this;
                  var t = this.screenCTM(),
                    i = e.screenCTM().inverse();
                  return (
                    this.addTo(e).untransform().transform(i.multiply(t)), this
                  );
                },
                toDoc: function () {
                  return this.toParent(this.doc());
                },
              }),
              (i.Transformation = i.invent({
                create: function (e, t) {
                  if (arguments.length > 1 && "boolean" != typeof t)
                    return this.constructor.call(
                      this,
                      [].slice.call(arguments)
                    );
                  if (Array.isArray(e))
                    for (var i = 0, n = this.arguments.length; i < n; ++i)
                      this[this.arguments[i]] = e[i];
                  else if (e && "object" === o(e))
                    for (i = 0, n = this.arguments.length; i < n; ++i)
                      this[this.arguments[i]] = e[this.arguments[i]];
                  (this.inversed = !1), !0 === t && (this.inversed = !0);
                },
              })),
              (i.Translate = i.invent({
                parent: i.Matrix,
                inherit: i.Transformation,
                create: function (e, t) {
                  this.constructor.apply(this, [].slice.call(arguments));
                },
                extend: {
                  arguments: ["transformedX", "transformedY"],
                  method: "translate",
                },
              })),
              i.extend(i.Element, {
                style: function (e, t) {
                  if (0 == arguments.length)
                    return this.node.style.cssText || "";
                  if (arguments.length < 2)
                    if ("object" === o(e)) for (var n in e) this.style(n, e[n]);
                    else {
                      if (!i.regex.isCss.test(e)) return this.node.style[u(e)];
                      for (
                        e = e
                          .split(/\s*;\s*/)
                          .filter(function (e) {
                            return !!e;
                          })
                          .map(function (e) {
                            return e.split(/\s*:\s*/);
                          });
                        (t = e.pop());

                      )
                        this.style(t[0], t[1]);
                    }
                  else
                    this.node.style[u(e)] =
                      null === t || i.regex.isBlank.test(t) ? "" : t;
                  return this;
                },
              }),
              (i.Parent = i.invent({
                create: function (e) {
                  this.constructor.call(this, e);
                },
                inherit: i.Element,
                extend: {
                  children: function () {
                    return i.utils.map(
                      i.utils.filterSVGElements(this.node.childNodes),
                      function (e) {
                        return i.adopt(e);
                      }
                    );
                  },
                  add: function (e, t) {
                    return (
                      null == t
                        ? this.node.appendChild(e.node)
                        : e.node != this.node.childNodes[t] &&
                          this.node.insertBefore(
                            e.node,
                            this.node.childNodes[t]
                          ),
                      this
                    );
                  },
                  put: function (e, t) {
                    return this.add(e, t), e;
                  },
                  has: function (e) {
                    return this.index(e) >= 0;
                  },
                  index: function (e) {
                    return [].slice.call(this.node.childNodes).indexOf(e.node);
                  },
                  get: function (e) {
                    return i.adopt(this.node.childNodes[e]);
                  },
                  first: function () {
                    return this.get(0);
                  },
                  last: function () {
                    return this.get(this.node.childNodes.length - 1);
                  },
                  each: function (e, t) {
                    for (
                      var n = this.children(), r = 0, a = n.length;
                      r < a;
                      r++
                    )
                      n[r] instanceof i.Element && e.apply(n[r], [r, n]),
                        t && n[r] instanceof i.Container && n[r].each(e, t);
                    return this;
                  },
                  removeElement: function (e) {
                    return this.node.removeChild(e.node), this;
                  },
                  clear: function () {
                    for (; this.node.hasChildNodes(); )
                      this.node.removeChild(this.node.lastChild);
                    return delete this._defs, this;
                  },
                  defs: function () {
                    return this.doc().defs();
                  },
                },
              })),
              i.extend(i.Parent, {
                ungroup: function (e, t) {
                  return (
                    0 === t ||
                      this instanceof i.Defs ||
                      this.node == i.parser.draw ||
                      ((e =
                        e ||
                        (this instanceof i.Doc ? this : this.parent(i.Parent))),
                      (t = t || 1 / 0),
                      this.each(function () {
                        return this instanceof i.Defs
                          ? this
                          : this instanceof i.Parent
                          ? this.ungroup(e, t - 1)
                          : this.toParent(e);
                      }),
                      this.node.firstChild || this.remove()),
                    this
                  );
                },
                flatten: function (e, t) {
                  return this.ungroup(e, t);
                },
              }),
              (i.Container = i.invent({
                create: function (e) {
                  this.constructor.call(this, e);
                },
                inherit: i.Parent,
              })),
              (i.ViewBox = i.invent({ parent: i.Container, construct: {} })),
              [
                "click",
                "dblclick",
                "mousedown",
                "mouseup",
                "mouseover",
                "mouseout",
                "mousemove",
                "touchstart",
                "touchmove",
                "touchleave",
                "touchend",
                "touchcancel",
              ].forEach(function (e) {
                i.Element.prototype[e] = function (t) {
                  return i.on(this.node, e, t), this;
                };
              }),
              (i.listeners = []),
              (i.handlerMap = []),
              (i.listenerId = 0),
              (i.on = function (e, t, n, r, a) {
                var o = n.bind(r || e.instance || e),
                  s = (i.handlerMap.indexOf(e) + 1 || i.handlerMap.push(e)) - 1,
                  l = t.split(".")[0],
                  c = t.split(".")[1] || "*";
                (i.listeners[s] = i.listeners[s] || {}),
                  (i.listeners[s][l] = i.listeners[s][l] || {}),
                  (i.listeners[s][l][c] = i.listeners[s][l][c] || {}),
                  n._svgjsListenerId || (n._svgjsListenerId = ++i.listenerId),
                  (i.listeners[s][l][c][n._svgjsListenerId] = o),
                  e.addEventListener(l, o, a || { passive: !0 });
              }),
              (i.off = function (e, t, n) {
                var r = i.handlerMap.indexOf(e),
                  a = t && t.split(".")[0],
                  o = t && t.split(".")[1],
                  s = "";
                if (-1 != r)
                  if (n) {
                    if (
                      ("function" == typeof n && (n = n._svgjsListenerId), !n)
                    )
                      return;
                    i.listeners[r][a] &&
                      i.listeners[r][a][o || "*"] &&
                      (e.removeEventListener(
                        a,
                        i.listeners[r][a][o || "*"][n],
                        !1
                      ),
                      delete i.listeners[r][a][o || "*"][n]);
                  } else if (o && a) {
                    if (i.listeners[r][a] && i.listeners[r][a][o]) {
                      for (var l in i.listeners[r][a][o])
                        i.off(e, [a, o].join("."), l);
                      delete i.listeners[r][a][o];
                    }
                  } else if (o)
                    for (var c in i.listeners[r])
                      for (var s in i.listeners[r][c])
                        o === s && i.off(e, [c, o].join("."));
                  else if (a) {
                    if (i.listeners[r][a]) {
                      for (var s in i.listeners[r][a])
                        i.off(e, [a, s].join("."));
                      delete i.listeners[r][a];
                    }
                  } else {
                    for (var c in i.listeners[r]) i.off(e, c);
                    delete i.listeners[r], delete i.handlerMap[r];
                  }
              }),
              i.extend(i.Element, {
                on: function (e, t, n, r) {
                  return i.on(this.node, e, t, n, r), this;
                },
                off: function (e, t) {
                  return i.off(this.node, e, t), this;
                },
                fire: function (t, n) {
                  return (
                    t instanceof e.Event
                      ? this.node.dispatchEvent(t)
                      : this.node.dispatchEvent(
                          (t = new i.CustomEvent(t, {
                            detail: n,
                            cancelable: !0,
                          }))
                        ),
                    (this._event = t),
                    this
                  );
                },
                event: function () {
                  return this._event;
                },
              }),
              (i.Defs = i.invent({ create: "defs", inherit: i.Container })),
              (i.G = i.invent({
                create: "g",
                inherit: i.Container,
                extend: {
                  x: function (e) {
                    return null == e
                      ? this.transform("x")
                      : this.transform({ x: e - this.x() }, !0);
                  },
                },
                construct: {
                  group: function () {
                    return this.put(new i.G());
                  },
                },
              })),
              (i.Doc = i.invent({
                create: function (e) {
                  e &&
                    ("svg" ==
                    (e = "string" == typeof e ? t.getElementById(e) : e)
                      .nodeName
                      ? this.constructor.call(this, e)
                      : (this.constructor.call(this, i.create("svg")),
                        e.appendChild(this.node),
                        this.size("100%", "100%")),
                    this.namespace().defs());
                },
                inherit: i.Container,
                extend: {
                  namespace: function () {
                    return this.attr({ xmlns: i.ns, version: "1.1" })
                      .attr("xmlns:xlink", i.xlink, i.xmlns)
                      .attr("xmlns:svgjs", i.svgjs, i.xmlns);
                  },
                  defs: function () {
                    var e;
                    return (
                      this._defs ||
                        ((e = this.node.getElementsByTagName("defs")[0])
                          ? (this._defs = i.adopt(e))
                          : (this._defs = new i.Defs()),
                        this.node.appendChild(this._defs.node)),
                      this._defs
                    );
                  },
                  parent: function () {
                    return this.node.parentNode &&
                      "#document" != this.node.parentNode.nodeName
                      ? this.node.parentNode
                      : null;
                  },
                  remove: function () {
                    return (
                      this.parent() && this.parent().removeChild(this.node),
                      this
                    );
                  },
                  clear: function () {
                    for (; this.node.hasChildNodes(); )
                      this.node.removeChild(this.node.lastChild);
                    return (
                      delete this._defs,
                      i.parser.draw &&
                        !i.parser.draw.parentNode &&
                        this.node.appendChild(i.parser.draw),
                      this
                    );
                  },
                  clone: function (e) {
                    this.writeDataToDom();
                    var t = this.node,
                      i = m(t.cloneNode(!0));
                    return (
                      e
                        ? (e.node || e).appendChild(i.node)
                        : t.parentNode.insertBefore(i.node, t.nextSibling),
                      i
                    );
                  },
                },
              })),
              i.extend(i.Element, {}),
              (i.Gradient = i.invent({
                create: function (e) {
                  this.constructor.call(this, i.create(e + "Gradient")),
                    (this.type = e);
                },
                inherit: i.Container,
                extend: {
                  at: function (e, t, n) {
                    return this.put(new i.Stop()).update(e, t, n);
                  },
                  update: function (e) {
                    return (
                      this.clear(),
                      "function" == typeof e && e.call(this, this),
                      this
                    );
                  },
                  fill: function () {
                    return "url(#" + this.id() + ")";
                  },
                  toString: function () {
                    return this.fill();
                  },
                  attr: function (e, t, n) {
                    return (
                      "transform" == e && (e = "gradientTransform"),
                      i.Container.prototype.attr.call(this, e, t, n)
                    );
                  },
                },
                construct: {
                  gradient: function (e, t) {
                    return this.defs().gradient(e, t);
                  },
                },
              })),
              i.extend(i.Gradient, i.FX, {
                from: function (e, t) {
                  return "radial" == (this._target || this).type
                    ? this.attr({ fx: new i.Number(e), fy: new i.Number(t) })
                    : this.attr({ x1: new i.Number(e), y1: new i.Number(t) });
                },
                to: function (e, t) {
                  return "radial" == (this._target || this).type
                    ? this.attr({ cx: new i.Number(e), cy: new i.Number(t) })
                    : this.attr({ x2: new i.Number(e), y2: new i.Number(t) });
                },
              }),
              i.extend(i.Defs, {
                gradient: function (e, t) {
                  return this.put(new i.Gradient(e)).update(t);
                },
              }),
              (i.Stop = i.invent({
                create: "stop",
                inherit: i.Element,
                extend: {
                  update: function (e) {
                    return (
                      ("number" == typeof e || e instanceof i.Number) &&
                        (e = {
                          offset: arguments[0],
                          color: arguments[1],
                          opacity: arguments[2],
                        }),
                      null != e.opacity && this.attr("stop-opacity", e.opacity),
                      null != e.color && this.attr("stop-color", e.color),
                      null != e.offset &&
                        this.attr("offset", new i.Number(e.offset)),
                      this
                    );
                  },
                },
              })),
              (i.Pattern = i.invent({
                create: "pattern",
                inherit: i.Container,
                extend: {
                  fill: function () {
                    return "url(#" + this.id() + ")";
                  },
                  update: function (e) {
                    return (
                      this.clear(),
                      "function" == typeof e && e.call(this, this),
                      this
                    );
                  },
                  toString: function () {
                    return this.fill();
                  },
                  attr: function (e, t, n) {
                    return (
                      "transform" == e && (e = "patternTransform"),
                      i.Container.prototype.attr.call(this, e, t, n)
                    );
                  },
                },
                construct: {
                  pattern: function (e, t, i) {
                    return this.defs().pattern(e, t, i);
                  },
                },
              })),
              i.extend(i.Defs, {
                pattern: function (e, t, n) {
                  return this.put(new i.Pattern()).update(n).attr({
                    x: 0,
                    y: 0,
                    width: e,
                    height: t,
                    patternUnits: "userSpaceOnUse",
                  });
                },
              }),
              (i.Shape = i.invent({
                create: function (e) {
                  this.constructor.call(this, e);
                },
                inherit: i.Element,
              })),
              (i.Symbol = i.invent({
                create: "symbol",
                inherit: i.Container,
                construct: {
                  symbol: function () {
                    return this.put(new i.Symbol());
                  },
                },
              })),
              (i.Use = i.invent({
                create: "use",
                inherit: i.Shape,
                extend: {
                  element: function (e, t) {
                    return this.attr("href", (t || "") + "#" + e, i.xlink);
                  },
                },
                construct: {
                  use: function (e, t) {
                    return this.put(new i.Use()).element(e, t);
                  },
                },
              })),
              (i.Rect = i.invent({
                create: "rect",
                inherit: i.Shape,
                construct: {
                  rect: function (e, t) {
                    return this.put(new i.Rect()).size(e, t);
                  },
                },
              })),
              (i.Circle = i.invent({
                create: "circle",
                inherit: i.Shape,
                construct: {
                  circle: function (e) {
                    return this.put(new i.Circle())
                      .rx(new i.Number(e).divide(2))
                      .move(0, 0);
                  },
                },
              })),
              i.extend(i.Circle, i.FX, {
                rx: function (e) {
                  return this.attr("r", e);
                },
                ry: function (e) {
                  return this.rx(e);
                },
              }),
              (i.Ellipse = i.invent({
                create: "ellipse",
                inherit: i.Shape,
                construct: {
                  ellipse: function (e, t) {
                    return this.put(new i.Ellipse()).size(e, t).move(0, 0);
                  },
                },
              })),
              i.extend(i.Ellipse, i.Rect, i.FX, {
                rx: function (e) {
                  return this.attr("rx", e);
                },
                ry: function (e) {
                  return this.attr("ry", e);
                },
              }),
              i.extend(i.Circle, i.Ellipse, {
                x: function (e) {
                  return null == e
                    ? this.cx() - this.rx()
                    : this.cx(e + this.rx());
                },
                y: function (e) {
                  return null == e
                    ? this.cy() - this.ry()
                    : this.cy(e + this.ry());
                },
                cx: function (e) {
                  return null == e ? this.attr("cx") : this.attr("cx", e);
                },
                cy: function (e) {
                  return null == e ? this.attr("cy") : this.attr("cy", e);
                },
                width: function (e) {
                  return null == e
                    ? 2 * this.rx()
                    : this.rx(new i.Number(e).divide(2));
                },
                height: function (e) {
                  return null == e
                    ? 2 * this.ry()
                    : this.ry(new i.Number(e).divide(2));
                },
                size: function (e, t) {
                  var n = f(this, e, t);
                  return this.rx(new i.Number(n.width).divide(2)).ry(
                    new i.Number(n.height).divide(2)
                  );
                },
              }),
              (i.Line = i.invent({
                create: "line",
                inherit: i.Shape,
                extend: {
                  array: function () {
                    return new i.PointArray([
                      [this.attr("x1"), this.attr("y1")],
                      [this.attr("x2"), this.attr("y2")],
                    ]);
                  },
                  plot: function (e, t, n, r) {
                    return null == e
                      ? this.array()
                      : ((e =
                          void 0 !== t
                            ? { x1: e, y1: t, x2: n, y2: r }
                            : new i.PointArray(e).toLine()),
                        this.attr(e));
                  },
                  move: function (e, t) {
                    return this.attr(this.array().move(e, t).toLine());
                  },
                  size: function (e, t) {
                    var i = f(this, e, t);
                    return this.attr(
                      this.array().size(i.width, i.height).toLine()
                    );
                  },
                },
                construct: {
                  line: function (e, t, n, r) {
                    return i.Line.prototype.plot.apply(
                      this.put(new i.Line()),
                      null != e ? [e, t, n, r] : [0, 0, 0, 0]
                    );
                  },
                },
              })),
              (i.Polyline = i.invent({
                create: "polyline",
                inherit: i.Shape,
                construct: {
                  polyline: function (e) {
                    return this.put(new i.Polyline()).plot(
                      e || new i.PointArray()
                    );
                  },
                },
              })),
              (i.Polygon = i.invent({
                create: "polygon",
                inherit: i.Shape,
                construct: {
                  polygon: function (e) {
                    return this.put(new i.Polygon()).plot(
                      e || new i.PointArray()
                    );
                  },
                },
              })),
              i.extend(i.Polyline, i.Polygon, {
                array: function () {
                  return (
                    this._array ||
                    (this._array = new i.PointArray(this.attr("points")))
                  );
                },
                plot: function (e) {
                  return null == e
                    ? this.array()
                    : this.clear().attr(
                        "points",
                        "string" == typeof e
                          ? e
                          : (this._array = new i.PointArray(e))
                      );
                },
                clear: function () {
                  return delete this._array, this;
                },
                move: function (e, t) {
                  return this.attr("points", this.array().move(e, t));
                },
                size: function (e, t) {
                  var i = f(this, e, t);
                  return this.attr(
                    "points",
                    this.array().size(i.width, i.height)
                  );
                },
              }),
              i.extend(i.Line, i.Polyline, i.Polygon, {
                morphArray: i.PointArray,
                x: function (e) {
                  return null == e
                    ? this.bbox().x
                    : this.move(e, this.bbox().y);
                },
                y: function (e) {
                  return null == e
                    ? this.bbox().y
                    : this.move(this.bbox().x, e);
                },
                width: function (e) {
                  var t = this.bbox();
                  return null == e ? t.width : this.size(e, t.height);
                },
                height: function (e) {
                  var t = this.bbox();
                  return null == e ? t.height : this.size(t.width, e);
                },
              }),
              (i.Path = i.invent({
                create: "path",
                inherit: i.Shape,
                extend: {
                  morphArray: i.PathArray,
                  array: function () {
                    return (
                      this._array ||
                      (this._array = new i.PathArray(this.attr("d")))
                    );
                  },
                  plot: function (e) {
                    return null == e
                      ? this.array()
                      : this.clear().attr(
                          "d",
                          "string" == typeof e
                            ? e
                            : (this._array = new i.PathArray(e))
                        );
                  },
                  clear: function () {
                    return delete this._array, this;
                  },
                },
                construct: {
                  path: function (e) {
                    return this.put(new i.Path()).plot(e || new i.PathArray());
                  },
                },
              })),
              (i.Image = i.invent({
                create: "image",
                inherit: i.Shape,
                extend: {
                  load: function (t) {
                    if (!t) return this;
                    var n = this,
                      r = new e.Image();
                    return (
                      i.on(r, "load", function () {
                        i.off(r);
                        var e = n.parent(i.Pattern);
                        null !== e &&
                          (0 == n.width() &&
                            0 == n.height() &&
                            n.size(r.width, r.height),
                          e &&
                            0 == e.width() &&
                            0 == e.height() &&
                            e.size(n.width(), n.height()),
                          "function" == typeof n._loaded &&
                            n._loaded.call(n, {
                              width: r.width,
                              height: r.height,
                              ratio: r.width / r.height,
                              url: t,
                            }));
                      }),
                      i.on(r, "error", function (e) {
                        i.off(r),
                          "function" == typeof n._error && n._error.call(n, e);
                      }),
                      this.attr("href", (r.src = this.src = t), i.xlink)
                    );
                  },
                  loaded: function (e) {
                    return (this._loaded = e), this;
                  },
                  error: function (e) {
                    return (this._error = e), this;
                  },
                },
                construct: {
                  image: function (e, t, n) {
                    return this.put(new i.Image())
                      .load(e)
                      .size(t || 0, n || t || 0);
                  },
                },
              })),
              (i.Text = i.invent({
                create: function () {
                  this.constructor.call(this, i.create("text")),
                    (this.dom.leading = new i.Number(1.3)),
                    (this._rebuild = !0),
                    (this._build = !1),
                    this.attr("font-family", i.defaults.attrs["font-family"]);
                },
                inherit: i.Shape,
                extend: {
                  x: function (e) {
                    return null == e ? this.attr("x") : this.attr("x", e);
                  },
                  text: function (e) {
                    if (void 0 === e) {
                      e = "";
                      for (
                        var t = this.node.childNodes, n = 0, r = t.length;
                        n < r;
                        ++n
                      )
                        0 != n &&
                          3 != t[n].nodeType &&
                          1 == i.adopt(t[n]).dom.newLined &&
                          (e += "\n"),
                          (e += t[n].textContent);
                      return e;
                    }
                    if ((this.clear().build(!0), "function" == typeof e))
                      e.call(this, this);
                    else {
                      n = 0;
                      for (var a = (e = e.split("\n")).length; n < a; n++)
                        this.tspan(e[n]).newLine();
                    }
                    return this.build(!1).rebuild();
                  },
                  size: function (e) {
                    return this.attr("font-size", e).rebuild();
                  },
                  leading: function (e) {
                    return null == e
                      ? this.dom.leading
                      : ((this.dom.leading = new i.Number(e)), this.rebuild());
                  },
                  lines: function () {
                    var e = ((this.textPath && this.textPath()) || this).node,
                      t = i.utils.map(
                        i.utils.filterSVGElements(e.childNodes),
                        function (e) {
                          return i.adopt(e);
                        }
                      );
                    return new i.Set(t);
                  },
                  rebuild: function (e) {
                    if (
                      ("boolean" == typeof e && (this._rebuild = e),
                      this._rebuild)
                    ) {
                      var t = this,
                        n = 0,
                        r =
                          this.dom.leading *
                          new i.Number(this.attr("font-size"));
                      this.lines().each(function () {
                        this.dom.newLined &&
                          (t.textPath() || this.attr("x", t.attr("x")),
                          "\n" == this.text()
                            ? (n += r)
                            : (this.attr("dy", r + n), (n = 0)));
                      }),
                        this.fire("rebuild");
                    }
                    return this;
                  },
                  build: function (e) {
                    return (this._build = !!e), this;
                  },
                  setData: function (e) {
                    return (
                      (this.dom = e),
                      (this.dom.leading = new i.Number(e.leading || 1.3)),
                      this
                    );
                  },
                },
                construct: {
                  text: function (e) {
                    return this.put(new i.Text()).text(e);
                  },
                  plain: function (e) {
                    return this.put(new i.Text()).plain(e);
                  },
                },
              })),
              (i.Tspan = i.invent({
                create: "tspan",
                inherit: i.Shape,
                extend: {
                  text: function (e) {
                    return null == e
                      ? this.node.textContent + (this.dom.newLined ? "\n" : "")
                      : ("function" == typeof e
                          ? e.call(this, this)
                          : this.plain(e),
                        this);
                  },
                  dx: function (e) {
                    return this.attr("dx", e);
                  },
                  dy: function (e) {
                    return this.attr("dy", e);
                  },
                  newLine: function () {
                    var e = this.parent(i.Text);
                    return (
                      (this.dom.newLined = !0),
                      this.dy(e.dom.leading * e.attr("font-size")).attr(
                        "x",
                        e.x()
                      )
                    );
                  },
                },
              })),
              i.extend(i.Text, i.Tspan, {
                plain: function (e) {
                  return (
                    !1 === this._build && this.clear(),
                    this.node.appendChild(t.createTextNode(e)),
                    this
                  );
                },
                tspan: function (e) {
                  var t = ((this.textPath && this.textPath()) || this).node,
                    n = new i.Tspan();
                  return (
                    !1 === this._build && this.clear(),
                    t.appendChild(n.node),
                    n.text(e)
                  );
                },
                clear: function () {
                  for (
                    var e = ((this.textPath && this.textPath()) || this).node;
                    e.hasChildNodes();

                  )
                    e.removeChild(e.lastChild);
                  return this;
                },
                length: function () {
                  return this.node.getComputedTextLength();
                },
              }),
              (i.TextPath = i.invent({
                create: "textPath",
                inherit: i.Parent,
                parent: i.Text,
                construct: {
                  morphArray: i.PathArray,
                  array: function () {
                    var e = this.track();
                    return e ? e.array() : null;
                  },
                  plot: function (e) {
                    var t = this.track(),
                      i = null;
                    return t && (i = t.plot(e)), null == e ? i : this;
                  },
                  track: function () {
                    var e = this.textPath();
                    if (e) return e.reference("href");
                  },
                  textPath: function () {
                    if (
                      this.node.firstChild &&
                      "textPath" == this.node.firstChild.nodeName
                    )
                      return i.adopt(this.node.firstChild);
                  },
                },
              })),
              (i.Nested = i.invent({
                create: function () {
                  this.constructor.call(this, i.create("svg")),
                    this.style("overflow", "visible");
                },
                inherit: i.Container,
                construct: {
                  nested: function () {
                    return this.put(new i.Nested());
                  },
                },
              }));
            var l = {
              stroke: [
                "color",
                "width",
                "opacity",
                "linecap",
                "linejoin",
                "miterlimit",
                "dasharray",
                "dashoffset",
              ],
              fill: ["color", "opacity", "rule"],
              prefix: function (e, t) {
                return "color" == t ? e : e + "-" + t;
              },
            };
            function c(e, t, n, r) {
              return n + r.replace(i.regex.dots, " .");
            }
            function u(e) {
              return e.toLowerCase().replace(/-(.)/g, function (e, t) {
                return t.toUpperCase();
              });
            }
            function d(e) {
              return e.charAt(0).toUpperCase() + e.slice(1);
            }
            function h(e) {
              var t = e.toString(16);
              return 1 == t.length ? "0" + t : t;
            }
            function f(e, t, i) {
              if (null == t || null == i) {
                var n = e.bbox();
                null == t
                  ? (t = (n.width / n.height) * i)
                  : null == i && (i = (n.height / n.width) * t);
              }
              return { width: t, height: i };
            }
            function p(e, t, i) {
              return { x: t * e.a + i * e.c + 0, y: t * e.b + i * e.d + 0 };
            }
            function g(e) {
              return { a: e[0], b: e[1], c: e[2], d: e[3], e: e[4], f: e[5] };
            }
            function m(t) {
              for (var n = t.childNodes.length - 1; n >= 0; n--)
                t.childNodes[n] instanceof e.SVGElement && m(t.childNodes[n]);
              return i.adopt(t).id(i.eid(t.nodeName));
            }
            function v(e) {
              return Math.abs(e) > 1e-37 ? e : 0;
            }
            ["fill", "stroke"].forEach(function (e) {
              var t = {};
              (t[e] = function (t) {
                if (void 0 === t) return this;
                if (
                  "string" == typeof t ||
                  i.Color.isRgb(t) ||
                  (t && "function" == typeof t.fill)
                )
                  this.attr(e, t);
                else
                  for (var n = l[e].length - 1; n >= 0; n--)
                    null != t[l[e][n]] &&
                      this.attr(l.prefix(e, l[e][n]), t[l[e][n]]);
                return this;
              }),
                i.extend(i.Element, i.FX, t);
            }),
              i.extend(i.Element, i.FX, {
                translate: function (e, t) {
                  return this.transform({ x: e, y: t });
                },
                matrix: function (e) {
                  return this.attr(
                    "transform",
                    new i.Matrix(
                      6 == arguments.length ? [].slice.call(arguments) : e
                    )
                  );
                },
                opacity: function (e) {
                  return this.attr("opacity", e);
                },
                dx: function (e) {
                  return this.x(
                    new i.Number(e).plus(this instanceof i.FX ? 0 : this.x()),
                    !0
                  );
                },
                dy: function (e) {
                  return this.y(
                    new i.Number(e).plus(this instanceof i.FX ? 0 : this.y()),
                    !0
                  );
                },
              }),
              i.extend(i.Path, {
                length: function () {
                  return this.node.getTotalLength();
                },
                pointAt: function (e) {
                  return this.node.getPointAtLength(e);
                },
              }),
              (i.Set = i.invent({
                create: function (e) {
                  Array.isArray(e) ? (this.members = e) : this.clear();
                },
                extend: {
                  add: function () {
                    for (
                      var e = [].slice.call(arguments), t = 0, i = e.length;
                      t < i;
                      t++
                    )
                      this.members.push(e[t]);
                    return this;
                  },
                  remove: function (e) {
                    var t = this.index(e);
                    return t > -1 && this.members.splice(t, 1), this;
                  },
                  each: function (e) {
                    for (var t = 0, i = this.members.length; t < i; t++)
                      e.apply(this.members[t], [t, this.members]);
                    return this;
                  },
                  clear: function () {
                    return (this.members = []), this;
                  },
                  length: function () {
                    return this.members.length;
                  },
                  has: function (e) {
                    return this.index(e) >= 0;
                  },
                  index: function (e) {
                    return this.members.indexOf(e);
                  },
                  get: function (e) {
                    return this.members[e];
                  },
                  first: function () {
                    return this.get(0);
                  },
                  last: function () {
                    return this.get(this.members.length - 1);
                  },
                  valueOf: function () {
                    return this.members;
                  },
                },
                construct: {
                  set: function (e) {
                    return new i.Set(e);
                  },
                },
              })),
              (i.FX.Set = i.invent({
                create: function (e) {
                  this.set = e;
                },
              })),
              (i.Set.inherit = function () {
                var e = [];
                for (var t in i.Shape.prototype)
                  "function" == typeof i.Shape.prototype[t] &&
                    "function" != typeof i.Set.prototype[t] &&
                    e.push(t);
                for (var t in (e.forEach(function (e) {
                  i.Set.prototype[e] = function () {
                    for (var t = 0, n = this.members.length; t < n; t++)
                      this.members[t] &&
                        "function" == typeof this.members[t][e] &&
                        this.members[t][e].apply(this.members[t], arguments);
                    return "animate" == e
                      ? this.fx || (this.fx = new i.FX.Set(this))
                      : this;
                  };
                }),
                (e = []),
                i.FX.prototype))
                  "function" == typeof i.FX.prototype[t] &&
                    "function" != typeof i.FX.Set.prototype[t] &&
                    e.push(t);
                e.forEach(function (e) {
                  i.FX.Set.prototype[e] = function () {
                    for (var t = 0, i = this.set.members.length; t < i; t++)
                      this.set.members[t].fx[e].apply(
                        this.set.members[t].fx,
                        arguments
                      );
                    return this;
                  };
                });
              }),
              i.extend(i.Element, {}),
              i.extend(i.Element, {
                remember: function (e, t) {
                  if ("object" === o(arguments[0]))
                    for (var i in e) this.remember(i, e[i]);
                  else {
                    if (1 == arguments.length) return this.memory()[e];
                    this.memory()[e] = t;
                  }
                  return this;
                },
                forget: function () {
                  if (0 == arguments.length) this._memory = {};
                  else
                    for (var e = arguments.length - 1; e >= 0; e--)
                      delete this.memory()[arguments[e]];
                  return this;
                },
                memory: function () {
                  return this._memory || (this._memory = {});
                },
              }),
              (i.get = function (e) {
                var n = t.getElementById(
                  (function (e) {
                    var t = (e || "").toString().match(i.regex.reference);
                    if (t) return t[1];
                  })(e) || e
                );
                return i.adopt(n);
              }),
              (i.select = function (e, n) {
                return new i.Set(
                  i.utils.map((n || t).querySelectorAll(e), function (e) {
                    return i.adopt(e);
                  })
                );
              }),
              i.extend(i.Parent, {
                select: function (e) {
                  return i.select(e, this.node);
                },
              });
            var b = "abcdef".split("");
            if ("function" != typeof e.CustomEvent) {
              var y = function (e, i) {
                i = i || { bubbles: !1, cancelable: !1, detail: void 0 };
                var n = t.createEvent("CustomEvent");
                return (
                  n.initCustomEvent(e, i.bubbles, i.cancelable, i.detail), n
                );
              };
              (y.prototype = e.Event.prototype), (i.CustomEvent = y);
            } else i.CustomEvent = e.CustomEvent;
            return i;
          }),
          void 0 !==
            (n = function () {
              return Re(De, De.document);
            }.call(t, i, t, e)) && (e.exports = n),
          function () {
            (SVG.Filter = SVG.invent({
              create: "filter",
              inherit: SVG.Parent,
              extend: {
                source: "SourceGraphic",
                sourceAlpha: "SourceAlpha",
                background: "BackgroundImage",
                backgroundAlpha: "BackgroundAlpha",
                fill: "FillPaint",
                stroke: "StrokePaint",
                autoSetIn: !0,
                put: function (e, t) {
                  return (
                    this.add(e, t),
                    !e.attr("in") &&
                      this.autoSetIn &&
                      e.attr("in", this.source),
                    e.attr("result") || e.attr("result", e),
                    e
                  );
                },
                blend: function (e, t, i) {
                  return this.put(new SVG.BlendEffect(e, t, i));
                },
                colorMatrix: function (e, t) {
                  return this.put(new SVG.ColorMatrixEffect(e, t));
                },
                convolveMatrix: function (e) {
                  return this.put(new SVG.ConvolveMatrixEffect(e));
                },
                componentTransfer: function (e) {
                  return this.put(new SVG.ComponentTransferEffect(e));
                },
                composite: function (e, t, i) {
                  return this.put(new SVG.CompositeEffect(e, t, i));
                },
                flood: function (e, t) {
                  return this.put(new SVG.FloodEffect(e, t));
                },
                offset: function (e, t) {
                  return this.put(new SVG.OffsetEffect(e, t));
                },
                image: function (e) {
                  return this.put(new SVG.ImageEffect(e));
                },
                merge: function () {
                  var e = [void 0];
                  for (var t in arguments) e.push(arguments[t]);
                  return this.put(
                    new (SVG.MergeEffect.bind.apply(SVG.MergeEffect, e))()
                  );
                },
                gaussianBlur: function (e, t) {
                  return this.put(new SVG.GaussianBlurEffect(e, t));
                },
                morphology: function (e, t) {
                  return this.put(new SVG.MorphologyEffect(e, t));
                },
                diffuseLighting: function (e, t, i) {
                  return this.put(new SVG.DiffuseLightingEffect(e, t, i));
                },
                displacementMap: function (e, t, i, n, r) {
                  return this.put(new SVG.DisplacementMapEffect(e, t, i, n, r));
                },
                specularLighting: function (e, t, i, n) {
                  return this.put(new SVG.SpecularLightingEffect(e, t, i, n));
                },
                tile: function () {
                  return this.put(new SVG.TileEffect());
                },
                turbulence: function (e, t, i, n, r) {
                  return this.put(new SVG.TurbulenceEffect(e, t, i, n, r));
                },
                toString: function () {
                  return "url(#" + this.attr("id") + ")";
                },
              },
            })),
              SVG.extend(SVG.Defs, {
                filter: function (e) {
                  var t = this.put(new SVG.Filter());
                  return "function" == typeof e && e.call(t, t), t;
                },
              }),
              SVG.extend(SVG.Container, {
                filter: function (e) {
                  return this.defs().filter(e);
                },
              }),
              SVG.extend(SVG.Element, SVG.G, SVG.Nested, {
                filter: function (e) {
                  return (
                    (this.filterer =
                      e instanceof SVG.Element ? e : this.doc().filter(e)),
                    this.doc() &&
                      this.filterer.doc() !== this.doc() &&
                      this.doc().defs().add(this.filterer),
                    this.attr("filter", this.filterer),
                    this.filterer
                  );
                },
                unfilter: function (e) {
                  return (
                    this.filterer && !0 === e && this.filterer.remove(),
                    delete this.filterer,
                    this.attr("filter", null)
                  );
                },
              }),
              (SVG.Effect = SVG.invent({
                create: function () {
                  this.constructor.call(this);
                },
                inherit: SVG.Element,
                extend: {
                  in: function (e) {
                    return null == e
                      ? (this.parent() &&
                          this.parent()
                            .select('[result="' + this.attr("in") + '"]')
                            .get(0)) ||
                          this.attr("in")
                      : this.attr("in", e);
                  },
                  result: function (e) {
                    return null == e
                      ? this.attr("result")
                      : this.attr("result", e);
                  },
                  toString: function () {
                    return this.result();
                  },
                },
              })),
              (SVG.ParentEffect = SVG.invent({
                create: function () {
                  this.constructor.call(this);
                },
                inherit: SVG.Parent,
                extend: {
                  in: function (e) {
                    return null == e
                      ? (this.parent() &&
                          this.parent()
                            .select('[result="' + this.attr("in") + '"]')
                            .get(0)) ||
                          this.attr("in")
                      : this.attr("in", e);
                  },
                  result: function (e) {
                    return null == e
                      ? this.attr("result")
                      : this.attr("result", e);
                  },
                  toString: function () {
                    return this.result();
                  },
                },
              }));
            var e = {
              blend: function (e, t) {
                return this.parent() && this.parent().blend(this, e, t);
              },
              colorMatrix: function (e, t) {
                return (
                  this.parent() && this.parent().colorMatrix(e, t).in(this)
                );
              },
              convolveMatrix: function (e) {
                return (
                  this.parent() && this.parent().convolveMatrix(e).in(this)
                );
              },
              componentTransfer: function (e) {
                return (
                  this.parent() && this.parent().componentTransfer(e).in(this)
                );
              },
              composite: function (e, t) {
                return this.parent() && this.parent().composite(this, e, t);
              },
              flood: function (e, t) {
                return this.parent() && this.parent().flood(e, t);
              },
              offset: function (e, t) {
                return this.parent() && this.parent().offset(e, t).in(this);
              },
              image: function (e) {
                return this.parent() && this.parent().image(e);
              },
              merge: function () {
                return (
                  this.parent() &&
                  this.parent().merge.apply(
                    this.parent(),
                    [this].concat(arguments)
                  )
                );
              },
              gaussianBlur: function (e, t) {
                return (
                  this.parent() && this.parent().gaussianBlur(e, t).in(this)
                );
              },
              morphology: function (e, t) {
                return this.parent() && this.parent().morphology(e, t).in(this);
              },
              diffuseLighting: function (e, t, i) {
                return (
                  this.parent() &&
                  this.parent().diffuseLighting(e, t, i).in(this)
                );
              },
              displacementMap: function (e, t, i, n) {
                return (
                  this.parent() &&
                  this.parent().displacementMap(this, e, t, i, n)
                );
              },
              specularLighting: function (e, t, i, n) {
                return (
                  this.parent() &&
                  this.parent().specularLighting(e, t, i, n).in(this)
                );
              },
              tile: function () {
                return this.parent() && this.parent().tile().in(this);
              },
              turbulence: function (e, t, i, n, r) {
                return (
                  this.parent() &&
                  this.parent().turbulence(e, t, i, n, r).in(this)
                );
              },
            };
            SVG.extend(SVG.Effect, e),
              SVG.extend(SVG.ParentEffect, e),
              (SVG.ChildEffect = SVG.invent({
                create: function () {
                  this.constructor.call(this);
                },
                inherit: SVG.Element,
                extend: {
                  in: function (e) {
                    this.attr("in", e);
                  },
                },
              }));
            var t = {
                blend: function (e, t, i) {
                  this.attr({ in: e, in2: t, mode: i || "normal" });
                },
                colorMatrix: function (e, t) {
                  "matrix" == e && (t = r(t)),
                    this.attr({ type: e, values: void 0 === t ? null : t });
                },
                convolveMatrix: function (e) {
                  (e = r(e)),
                    this.attr({
                      order: Math.sqrt(e.split(" ").length),
                      kernelMatrix: e,
                    });
                },
                composite: function (e, t, i) {
                  this.attr({ in: e, in2: t, operator: i });
                },
                flood: function (e, t) {
                  this.attr("flood-color", e),
                    null != t && this.attr("flood-opacity", t);
                },
                offset: function (e, t) {
                  this.attr({ dx: e, dy: t });
                },
                image: function (e) {
                  this.attr("href", e, SVG.xlink);
                },
                displacementMap: function (e, t, i, n, r) {
                  this.attr({
                    in: e,
                    in2: t,
                    scale: i,
                    xChannelSelector: n,
                    yChannelSelector: r,
                  });
                },
                gaussianBlur: function (e, t) {
                  null != e || null != t
                    ? this.attr(
                        "stdDeviation",
                        (function (e) {
                          if (!Array.isArray(e)) return e;
                          for (var t = 0, i = e.length, n = []; t < i; t++)
                            n.push(e[t]);
                          return n.join(" ");
                        })(Array.prototype.slice.call(arguments))
                      )
                    : this.attr("stdDeviation", "0 0");
                },
                morphology: function (e, t) {
                  this.attr({ operator: e, radius: t });
                },
                tile: function () {},
                turbulence: function (e, t, i, n, r) {
                  this.attr({
                    numOctaves: t,
                    seed: i,
                    stitchTiles: n,
                    baseFrequency: e,
                    type: r,
                  });
                },
              },
              i = {
                merge: function () {
                  var e;
                  if (arguments[0] instanceof SVG.Set) {
                    var t = this;
                    arguments[0].each(function (e) {
                      this instanceof SVG.MergeNode
                        ? t.put(this)
                        : (this instanceof SVG.Effect ||
                            this instanceof SVG.ParentEffect) &&
                          t.put(new SVG.MergeNode(this));
                    });
                  } else {
                    e = Array.isArray(arguments[0]) ? arguments[0] : arguments;
                    for (var i = 0; i < e.length; i++)
                      e[i] instanceof SVG.MergeNode
                        ? this.put(e[i])
                        : this.put(new SVG.MergeNode(e[i]));
                  }
                },
                componentTransfer: function (e) {
                  if (
                    ((this.rgb = new SVG.Set()),
                    ["r", "g", "b", "a"].forEach(
                      function (e) {
                        (this[e] = new SVG["Func" + e.toUpperCase()](
                          "identity"
                        )),
                          this.rgb.add(this[e]),
                          this.node.appendChild(this[e].node);
                      }.bind(this)
                    ),
                    e)
                  )
                    for (var t in (e.rgb &&
                      (["r", "g", "b"].forEach(
                        function (t) {
                          this[t].attr(e.rgb);
                        }.bind(this)
                      ),
                      delete e.rgb),
                    e))
                      this[t].attr(e[t]);
                },
                diffuseLighting: function (e, t, i) {
                  this.attr({
                    surfaceScale: e,
                    diffuseConstant: t,
                    kernelUnitLength: i,
                  });
                },
                specularLighting: function (e, t, i, n) {
                  this.attr({
                    surfaceScale: e,
                    diffuseConstant: t,
                    specularExponent: i,
                    kernelUnitLength: n,
                  });
                },
              },
              n = {
                distantLight: function (e, t) {
                  this.attr({ azimuth: e, elevation: t });
                },
                pointLight: function (e, t, i) {
                  this.attr({ x: e, y: t, z: i });
                },
                spotLight: function (e, t, i, n, r, a) {
                  this.attr({
                    x: e,
                    y: t,
                    z: i,
                    pointsAtX: n,
                    pointsAtY: r,
                    pointsAtZ: a,
                  });
                },
                mergeNode: function (e) {
                  this.attr("in", e);
                },
              };
            function r(e) {
              return (
                Array.isArray(e) && (e = new SVG.Array(e)),
                e
                  .toString()
                  .replace(/^\s+/, "")
                  .replace(/\s+$/, "")
                  .replace(/\s+/g, " ")
              );
            }
            function a() {
              var e = function () {};
              for (var t in ("function" ==
                typeof arguments[arguments.length - 1] &&
                ((e = arguments[arguments.length - 1]),
                Array.prototype.splice.call(
                  arguments,
                  arguments.length - 1,
                  1
                )),
              arguments))
                for (var i in arguments[t]) e(arguments[t][i], i, arguments[t]);
            }
            ["r", "g", "b", "a"].forEach(function (e) {
              n["Func" + e.toUpperCase()] = function (e) {
                switch ((this.attr("type", e), e)) {
                  case "table":
                    this.attr("tableValues", arguments[1]);
                    break;
                  case "linear":
                    this.attr("slope", arguments[1]),
                      this.attr("intercept", arguments[2]);
                    break;
                  case "gamma":
                    this.attr("amplitude", arguments[1]),
                      this.attr("exponent", arguments[2]),
                      this.attr("offset", arguments[2]);
                }
              };
            }),
              a(t, function (e, t) {
                var i = t.charAt(0).toUpperCase() + t.slice(1);
                SVG[i + "Effect"] = SVG.invent({
                  create: function () {
                    this.constructor.call(this, SVG.create("fe" + i)),
                      e.apply(this, arguments),
                      this.result(this.attr("id") + "Out");
                  },
                  inherit: SVG.Effect,
                  extend: {},
                });
              }),
              a(i, function (e, t) {
                var i = t.charAt(0).toUpperCase() + t.slice(1);
                SVG[i + "Effect"] = SVG.invent({
                  create: function () {
                    this.constructor.call(this, SVG.create("fe" + i)),
                      e.apply(this, arguments),
                      this.result(this.attr("id") + "Out");
                  },
                  inherit: SVG.ParentEffect,
                  extend: {},
                });
              }),
              a(n, function (e, t) {
                var i = t.charAt(0).toUpperCase() + t.slice(1);
                SVG[i] = SVG.invent({
                  create: function () {
                    this.constructor.call(this, SVG.create("fe" + i)),
                      e.apply(this, arguments);
                  },
                  inherit: SVG.ChildEffect,
                  extend: {},
                });
              }),
              SVG.extend(SVG.MergeEffect, {
                in: function (e) {
                  return (
                    e instanceof SVG.MergeNode
                      ? this.add(e, 0)
                      : this.add(new SVG.MergeNode(e), 0),
                    this
                  );
                },
              }),
              SVG.extend(
                SVG.CompositeEffect,
                SVG.BlendEffect,
                SVG.DisplacementMapEffect,
                {
                  in2: function (e) {
                    return null == e
                      ? (this.parent() &&
                          this.parent()
                            .select('[result="' + this.attr("in2") + '"]')
                            .get(0)) ||
                          this.attr("in2")
                      : this.attr("in2", e);
                  },
                }
              ),
              (SVG.filter = {
                sepiatone: [
                  0.343, 0.669, 0.119, 0, 0, 0.249, 0.626, 0.13, 0, 0, 0.172,
                  0.334, 0.111, 0, 0, 0, 0, 0, 1, 0,
                ],
              });
          }.call(void 0),
          (function () {
            function e(e, r, a, o, s, l, c) {
              for (
                var u = e.slice(r, a || c),
                  d = o.slice(s, l || c),
                  h = 0,
                  f = { pos: [0, 0], start: [0, 0] },
                  p = { pos: [0, 0], start: [0, 0] };
                (u[h] = t.call(f, u[h])),
                  (d[h] = t.call(p, d[h])),
                  u[h][0] != d[h][0] ||
                  "M" == u[h][0] ||
                  ("A" == u[h][0] && (u[h][4] != d[h][4] || u[h][5] != d[h][5]))
                    ? (Array.prototype.splice.apply(
                        u,
                        [h, 1].concat(n.call(f, u[h]))
                      ),
                      Array.prototype.splice.apply(
                        d,
                        [h, 1].concat(n.call(p, d[h]))
                      ))
                    : ((u[h] = i.call(f, u[h])), (d[h] = i.call(p, d[h]))),
                  ++h != u.length || h != d.length;

              )
                h == u.length &&
                  u.push([
                    "C",
                    f.pos[0],
                    f.pos[1],
                    f.pos[0],
                    f.pos[1],
                    f.pos[0],
                    f.pos[1],
                  ]),
                  h == d.length &&
                    d.push([
                      "C",
                      p.pos[0],
                      p.pos[1],
                      p.pos[0],
                      p.pos[1],
                      p.pos[0],
                      p.pos[1],
                    ]);
              return { start: u, dest: d };
            }
            function t(e) {
              switch (e[0]) {
                case "z":
                case "Z":
                  (e[0] = "L"), (e[1] = this.start[0]), (e[2] = this.start[1]);
                  break;
                case "H":
                  (e[0] = "L"), (e[2] = this.pos[1]);
                  break;
                case "V":
                  (e[0] = "L"), (e[2] = e[1]), (e[1] = this.pos[0]);
                  break;
                case "T":
                  (e[0] = "Q"),
                    (e[3] = e[1]),
                    (e[4] = e[2]),
                    (e[1] = this.reflection[1]),
                    (e[2] = this.reflection[0]);
                  break;
                case "S":
                  (e[0] = "C"),
                    (e[6] = e[4]),
                    (e[5] = e[3]),
                    (e[4] = e[2]),
                    (e[3] = e[1]),
                    (e[2] = this.reflection[1]),
                    (e[1] = this.reflection[0]);
              }
              return e;
            }
            function i(e) {
              var t = e.length;
              return (
                (this.pos = [e[t - 2], e[t - 1]]),
                -1 != "SCQT".indexOf(e[0]) &&
                  (this.reflection = [
                    2 * this.pos[0] - e[t - 4],
                    2 * this.pos[1] - e[t - 3],
                  ]),
                e
              );
            }
            function n(e) {
              var t = [e];
              switch (e[0]) {
                case "M":
                  return (this.pos = this.start = [e[1], e[2]]), t;
                case "L":
                  (e[5] = e[3] = e[1]),
                    (e[6] = e[4] = e[2]),
                    (e[1] = this.pos[0]),
                    (e[2] = this.pos[1]);
                  break;
                case "Q":
                  (e[6] = e[4]),
                    (e[5] = e[3]),
                    (e[4] = (1 * e[4]) / 3 + (2 * e[2]) / 3),
                    (e[3] = (1 * e[3]) / 3 + (2 * e[1]) / 3),
                    (e[2] = (1 * this.pos[1]) / 3 + (2 * e[2]) / 3),
                    (e[1] = (1 * this.pos[0]) / 3 + (2 * e[1]) / 3);
                  break;
                case "A":
                  (t = (function (e, t) {
                    var i,
                      n,
                      r,
                      a,
                      o,
                      s,
                      l,
                      c,
                      u,
                      d,
                      h,
                      f,
                      p,
                      g,
                      m,
                      v,
                      b,
                      y,
                      x,
                      w,
                      E,
                      _,
                      S,
                      A,
                      k,
                      T,
                      C = Math.abs(t[1]),
                      O = Math.abs(t[2]),
                      I = t[3] % 360,
                      M = t[4],
                      L = t[5],
                      P = t[6],
                      D = t[7],
                      R = new SVG.Point(e),
                      N = new SVG.Point(P, D),
                      F = [];
                    if (0 === C || 0 === O || (R.x === N.x && R.y === N.y))
                      return [["C", R.x, R.y, N.x, N.y, N.x, N.y]];
                    for (
                      (n =
                        ((i = new SVG.Point(
                          (R.x - N.x) / 2,
                          (R.y - N.y) / 2
                        ).transform(new SVG.Matrix().rotate(I))).x *
                          i.x) /
                          (C * C) +
                        (i.y * i.y) / (O * O)) > 1 &&
                        ((C *= n = Math.sqrt(n)), (O *= n)),
                        r = new SVG.Matrix()
                          .rotate(I)
                          .scale(1 / C, 1 / O)
                          .rotate(-I),
                        R = R.transform(r),
                        s =
                          (a = [(N = N.transform(r)).x - R.x, N.y - R.y])[0] *
                            a[0] +
                          a[1] * a[1],
                        o = Math.sqrt(s),
                        a[0] /= o,
                        a[1] /= o,
                        l = s < 4 ? Math.sqrt(1 - s / 4) : 0,
                        M === L && (l *= -1),
                        c = new SVG.Point(
                          (N.x + R.x) / 2 + l * -a[1],
                          (N.y + R.y) / 2 + l * a[0]
                        ),
                        u = new SVG.Point(R.x - c.x, R.y - c.y),
                        d = new SVG.Point(N.x - c.x, N.y - c.y),
                        h = Math.acos(u.x / Math.sqrt(u.x * u.x + u.y * u.y)),
                        u.y < 0 && (h *= -1),
                        f = Math.acos(d.x / Math.sqrt(d.x * d.x + d.y * d.y)),
                        d.y < 0 && (f *= -1),
                        L && h > f && (f += 2 * Math.PI),
                        !L && h < f && (f -= 2 * Math.PI),
                        v = [],
                        b = h,
                        p =
                          (f - h) /
                          (g = Math.ceil((2 * Math.abs(h - f)) / Math.PI)),
                        m = (4 * Math.tan(p / 4)) / 3,
                        E = 0;
                      E <= g;
                      E++
                    )
                      (x = Math.cos(b)),
                        (y = Math.sin(b)),
                        (w = new SVG.Point(c.x + x, c.y + y)),
                        (v[E] = [
                          new SVG.Point(w.x + m * y, w.y - m * x),
                          w,
                          new SVG.Point(w.x - m * y, w.y + m * x),
                        ]),
                        (b += p);
                    for (
                      v[0][0] = v[0][1].clone(),
                        v[v.length - 1][2] = v[v.length - 1][1].clone(),
                        r = new SVG.Matrix().rotate(I).scale(C, O).rotate(-I),
                        E = 0,
                        _ = v.length;
                      E < _;
                      E++
                    )
                      (v[E][0] = v[E][0].transform(r)),
                        (v[E][1] = v[E][1].transform(r)),
                        (v[E][2] = v[E][2].transform(r));
                    for (E = 1, _ = v.length; E < _; E++)
                      (S = (w = v[E - 1][2]).x),
                        (A = w.y),
                        (k = (w = v[E][0]).x),
                        (T = w.y),
                        (P = (w = v[E][1]).x),
                        (D = w.y),
                        F.push(["C", S, A, k, T, P, D]);
                    return F;
                  })(this.pos, e)),
                    (e = t[0]);
              }
              return (
                (e[0] = "C"),
                (this.pos = [e[5], e[6]]),
                (this.reflection = [2 * e[5] - e[3], 2 * e[6] - e[4]]),
                t
              );
            }
            function r(e, t) {
              if (!1 === t) return !1;
              for (var i = t, n = e.length; i < n; ++i)
                if ("M" == e[i][0]) return i;
              return !1;
            }
            SVG.extend(SVG.PathArray, {
              morph: function (t) {
                for (
                  var i = this.value,
                    n = this.parse(t),
                    a = 0,
                    o = 0,
                    s = !1,
                    l = !1;
                  !1 !== a || !1 !== o;

                ) {
                  var c;
                  (s = r(i, !1 !== a && a + 1)),
                    (l = r(n, !1 !== o && o + 1)),
                    !1 === a &&
                      (a =
                        0 == (c = new SVG.PathArray(u.start).bbox()).height ||
                        0 == c.width
                          ? i.push(i[0]) - 1
                          : i.push([
                              "M",
                              c.x + c.width / 2,
                              c.y + c.height / 2,
                            ]) - 1),
                    !1 === o &&
                      (o =
                        0 == (c = new SVG.PathArray(u.dest).bbox()).height ||
                        0 == c.width
                          ? n.push(n[0]) - 1
                          : n.push([
                              "M",
                              c.x + c.width / 2,
                              c.y + c.height / 2,
                            ]) - 1);
                  var u = e(i, a, s, n, o, l);
                  (i = i
                    .slice(0, a)
                    .concat(u.start, !1 === s ? [] : i.slice(s))),
                    (n = n
                      .slice(0, o)
                      .concat(u.dest, !1 === l ? [] : n.slice(l))),
                    (a = !1 !== s && a + u.start.length),
                    (o = !1 !== l && o + u.dest.length);
                }
                return (
                  (this.value = i),
                  (this.destination = new SVG.PathArray()),
                  (this.destination.value = n),
                  this
                );
              },
            });
          })(),
          function () {
            function e(e) {
              e.remember("_draggable", this), (this.el = e);
            }
            (e.prototype.init = function (e, t) {
              var i = this;
              (this.constraint = e),
                (this.value = t),
                this.el.on("mousedown.drag", function (e) {
                  i.start(e);
                }),
                this.el.on("touchstart.drag", function (e) {
                  i.start(e);
                });
            }),
              (e.prototype.transformPoint = function (e, t) {
                var i =
                  ((e = e || window.event).changedTouches &&
                    e.changedTouches[0]) ||
                  e;
                return (
                  (this.p.x = i.clientX - (t || 0)),
                  (this.p.y = i.clientY),
                  this.p.matrixTransform(this.m)
                );
              }),
              (e.prototype.getBBox = function () {
                var e = this.el.bbox();
                return (
                  this.el instanceof SVG.Nested && (e = this.el.rbox()),
                  (this.el instanceof SVG.G ||
                    this.el instanceof SVG.Use ||
                    this.el instanceof SVG.Nested) &&
                    ((e.x = this.el.x()), (e.y = this.el.y())),
                  e
                );
              }),
              (e.prototype.start = function (e) {
                if (
                  ("click" != e.type &&
                    "mousedown" != e.type &&
                    "mousemove" != e.type) ||
                  1 == (e.which || e.buttons)
                ) {
                  var t = this;
                  if (
                    (this.el.fire("beforedrag", { event: e, handler: this }),
                    !this.el.event().defaultPrevented)
                  ) {
                    e.preventDefault(),
                      e.stopPropagation(),
                      (this.parent =
                        this.parent ||
                        this.el.parent(SVG.Nested) ||
                        this.el.parent(SVG.Doc)),
                      (this.p = this.parent.node.createSVGPoint()),
                      (this.m = this.el.node.getScreenCTM().inverse());
                    var i,
                      n = this.getBBox();
                    if (this.el instanceof SVG.Text)
                      switch (
                        ((i = this.el.node.getComputedTextLength()),
                        this.el.attr("text-anchor"))
                      ) {
                        case "middle":
                          i /= 2;
                          break;
                        case "start":
                          i = 0;
                      }
                    (this.startPoints = {
                      point: this.transformPoint(e, i),
                      box: n,
                      transform: this.el.transform(),
                    }),
                      SVG.on(window, "mousemove.drag", function (e) {
                        t.drag(e);
                      }),
                      SVG.on(window, "touchmove.drag", function (e) {
                        t.drag(e);
                      }),
                      SVG.on(window, "mouseup.drag", function (e) {
                        t.end(e);
                      }),
                      SVG.on(window, "touchend.drag", function (e) {
                        t.end(e);
                      }),
                      this.el.fire("dragstart", {
                        event: e,
                        p: this.startPoints.point,
                        m: this.m,
                        handler: this,
                      });
                  }
                }
              }),
              (e.prototype.drag = function (e) {
                var t = this.getBBox(),
                  i = this.transformPoint(e),
                  n = this.startPoints.box.x + i.x - this.startPoints.point.x,
                  r = this.startPoints.box.y + i.y - this.startPoints.point.y,
                  a = this.constraint,
                  o = i.x - this.startPoints.point.x,
                  s = i.y - this.startPoints.point.y;
                if (
                  (this.el.fire("dragmove", {
                    event: e,
                    p: i,
                    m: this.m,
                    handler: this,
                  }),
                  this.el.event().defaultPrevented)
                )
                  return i;
                if ("function" == typeof a) {
                  var l = a.call(this.el, n, r, this.m);
                  "boolean" == typeof l && (l = { x: l, y: l }),
                    !0 === l.x ? this.el.x(n) : !1 !== l.x && this.el.x(l.x),
                    !0 === l.y ? this.el.y(r) : !1 !== l.y && this.el.y(l.y);
                } else
                  "object" == typeof a &&
                    (null != a.minX && n < a.minX
                      ? (o = (n = a.minX) - this.startPoints.box.x)
                      : null != a.maxX &&
                        n > a.maxX - t.width &&
                        (o = (n = a.maxX - t.width) - this.startPoints.box.x),
                    null != a.minY && r < a.minY
                      ? (s = (r = a.minY) - this.startPoints.box.y)
                      : null != a.maxY &&
                        r > a.maxY - t.height &&
                        (s = (r = a.maxY - t.height) - this.startPoints.box.y),
                    null != a.snapToGrid &&
                      ((n -= n % a.snapToGrid),
                      (r -= r % a.snapToGrid),
                      (o -= o % a.snapToGrid),
                      (s -= s % a.snapToGrid)),
                    this.el instanceof SVG.G
                      ? this.el
                          .matrix(this.startPoints.transform)
                          .transform({ x: o, y: s }, !0)
                      : this.el.move(n, r));
                return i;
              }),
              (e.prototype.end = function (e) {
                var t = this.drag(e);
                this.el.fire("dragend", {
                  event: e,
                  p: t,
                  m: this.m,
                  handler: this,
                }),
                  SVG.off(window, "mousemove.drag"),
                  SVG.off(window, "touchmove.drag"),
                  SVG.off(window, "mouseup.drag"),
                  SVG.off(window, "touchend.drag");
              }),
              SVG.extend(SVG.Element, {
                draggable: function (t, i) {
                  ("function" != typeof t && "object" != typeof t) ||
                    ((i = t), (t = !0));
                  var n = this.remember("_draggable") || new e(this);
                  return (
                    (t = void 0 === t || t)
                      ? n.init(i || {}, t)
                      : (this.off("mousedown.drag"),
                        this.off("touchstart.drag")),
                    this
                  );
                },
              });
          }.call(void 0),
          (function () {
            function e(e) {
              (this.el = e),
                e.remember("_selectHandler", this),
                (this.pointSelection = { isSelected: !1 }),
                (this.rectSelection = { isSelected: !1 }),
                (this.pointsList = {
                  lt: [0, 0],
                  rt: ["width", 0],
                  rb: ["width", "height"],
                  lb: [0, "height"],
                  t: ["width", 0],
                  r: ["width", "height"],
                  b: ["width", "height"],
                  l: [0, "height"],
                }),
                (this.pointCoord = function (e, t, i) {
                  var n = "string" != typeof e ? e : t[e];
                  return i ? n / 2 : n;
                }),
                (this.pointCoords = function (e, t) {
                  var i = this.pointsList[e];
                  return {
                    x: this.pointCoord(i[0], t, "t" === e || "b" === e),
                    y: this.pointCoord(i[1], t, "r" === e || "l" === e),
                  };
                });
            }
            (e.prototype.init = function (e, t) {
              var i = this.el.bbox();
              this.options = {};
              var n = this.el.selectize.defaults.points;
              for (var r in this.el.selectize.defaults)
                (this.options[r] = this.el.selectize.defaults[r]),
                  void 0 !== t[r] && (this.options[r] = t[r]);
              var a = ["points", "pointsExclude"];
              for (var r in a) {
                var o = this.options[a[r]];
                "string" == typeof o
                  ? (o = o.length > 0 ? o.split(/\s*,\s*/i) : [])
                  : "boolean" == typeof o &&
                    "points" === a[r] &&
                    (o = o ? n : []),
                  (this.options[a[r]] = o);
              }
              (this.options.points = [n, this.options.points].reduce(function (
                e,
                t
              ) {
                return e.filter(function (e) {
                  return t.indexOf(e) > -1;
                });
              })),
                (this.options.points = [
                  this.options.points,
                  this.options.pointsExclude,
                ].reduce(function (e, t) {
                  return e.filter(function (e) {
                    return t.indexOf(e) < 0;
                  });
                })),
                (this.parent = this.el.parent()),
                (this.nested = this.nested || this.parent.group()),
                this.nested.matrix(new SVG.Matrix(this.el).translate(i.x, i.y)),
                this.options.deepSelect &&
                -1 !== ["line", "polyline", "polygon"].indexOf(this.el.type)
                  ? this.selectPoints(e)
                  : this.selectRect(e),
                this.observe(),
                this.cleanup();
            }),
              (e.prototype.selectPoints = function (e) {
                return (
                  (this.pointSelection.isSelected = e),
                  this.pointSelection.set ||
                    ((this.pointSelection.set = this.parent.set()),
                    this.drawPoints()),
                  this
                );
              }),
              (e.prototype.getPointArray = function () {
                var e = this.el.bbox();
                return this.el
                  .array()
                  .valueOf()
                  .map(function (t) {
                    return [t[0] - e.x, t[1] - e.y];
                  });
              }),
              (e.prototype.drawPoints = function () {
                for (
                  var e = this, t = this.getPointArray(), i = 0, n = t.length;
                  i < n;
                  ++i
                ) {
                  var r = (function (t) {
                      return function (i) {
                        (i = i || window.event).preventDefault
                          ? i.preventDefault()
                          : (i.returnValue = !1),
                          i.stopPropagation();
                        var n = i.pageX || i.touches[0].pageX,
                          r = i.pageY || i.touches[0].pageY;
                        e.el.fire("point", { x: n, y: r, i: t, event: i });
                      };
                    })(i),
                    a = this.drawPoint(t[i][0], t[i][1])
                      .addClass(this.options.classPoints)
                      .addClass(this.options.classPoints + "_point")
                      .on("touchstart", r)
                      .on("mousedown", r);
                  this.pointSelection.set.add(a);
                }
              }),
              (e.prototype.drawPoint = function (e, t) {
                var i = this.options.pointType;
                switch (i) {
                  case "circle":
                    return this.drawCircle(e, t);
                  case "rect":
                    return this.drawRect(e, t);
                  default:
                    if ("function" == typeof i) return i.call(this, e, t);
                    throw new Error("Unknown " + i + " point type!");
                }
              }),
              (e.prototype.drawCircle = function (e, t) {
                return this.nested.circle(this.options.pointSize).center(e, t);
              }),
              (e.prototype.drawRect = function (e, t) {
                return this.nested
                  .rect(this.options.pointSize, this.options.pointSize)
                  .center(e, t);
              }),
              (e.prototype.updatePointSelection = function () {
                var e = this.getPointArray();
                this.pointSelection.set.each(function (t) {
                  (this.cx() === e[t][0] && this.cy() === e[t][1]) ||
                    this.center(e[t][0], e[t][1]);
                });
              }),
              (e.prototype.updateRectSelection = function () {
                var e = this,
                  t = this.el.bbox();
                if (
                  (this.rectSelection.set
                    .get(0)
                    .attr({ width: t.width, height: t.height }),
                  this.options.points.length &&
                    this.options.points.map(function (i, n) {
                      var r = e.pointCoords(i, t);
                      e.rectSelection.set.get(n + 1).center(r.x, r.y);
                    }),
                  this.options.rotationPoint)
                ) {
                  var i = this.rectSelection.set.length();
                  this.rectSelection.set.get(i - 1).center(t.width / 2, 20);
                }
              }),
              (e.prototype.selectRect = function (e) {
                var t = this,
                  i = this.el.bbox();
                function n(e) {
                  return function (i) {
                    (i = i || window.event).preventDefault
                      ? i.preventDefault()
                      : (i.returnValue = !1),
                      i.stopPropagation();
                    var n = i.pageX || i.touches[0].pageX,
                      r = i.pageY || i.touches[0].pageY;
                    t.el.fire(e, { x: n, y: r, event: i });
                  };
                }
                if (
                  ((this.rectSelection.isSelected = e),
                  (this.rectSelection.set =
                    this.rectSelection.set || this.parent.set()),
                  this.rectSelection.set.get(0) ||
                    this.rectSelection.set.add(
                      this.nested
                        .rect(i.width, i.height)
                        .addClass(this.options.classRect)
                    ),
                  this.options.points.length &&
                    this.rectSelection.set.length() < 2 &&
                    (this.options.points.map(function (e, r) {
                      var a = t.pointCoords(e, i),
                        o = t
                          .drawPoint(a.x, a.y)
                          .attr("class", t.options.classPoints + "_" + e)
                          .on("mousedown", n(e))
                          .on("touchstart", n(e));
                      t.rectSelection.set.add(o);
                    }),
                    this.rectSelection.set.each(function () {
                      this.addClass(t.options.classPoints);
                    })),
                  this.options.rotationPoint &&
                    ((this.options.points && !this.rectSelection.set.get(9)) ||
                      (!this.options.points && !this.rectSelection.set.get(1))))
                ) {
                  var r = function (e) {
                      (e = e || window.event).preventDefault
                        ? e.preventDefault()
                        : (e.returnValue = !1),
                        e.stopPropagation();
                      var i = e.pageX || e.touches[0].pageX,
                        n = e.pageY || e.touches[0].pageY;
                      t.el.fire("rot", { x: i, y: n, event: e });
                    },
                    a = this.drawPoint(i.width / 2, 20)
                      .attr("class", this.options.classPoints + "_rot")
                      .on("touchstart", r)
                      .on("mousedown", r);
                  this.rectSelection.set.add(a);
                }
              }),
              (e.prototype.handler = function () {
                var e = this.el.bbox();
                this.nested.matrix(new SVG.Matrix(this.el).translate(e.x, e.y)),
                  this.rectSelection.isSelected && this.updateRectSelection(),
                  this.pointSelection.isSelected && this.updatePointSelection();
              }),
              (e.prototype.observe = function () {
                var e = this;
                if (MutationObserver)
                  if (
                    this.rectSelection.isSelected ||
                    this.pointSelection.isSelected
                  )
                    (this.observerInst =
                      this.observerInst ||
                      new MutationObserver(function () {
                        e.handler();
                      })),
                      this.observerInst.observe(this.el.node, {
                        attributes: !0,
                      });
                  else
                    try {
                      this.observerInst.disconnect(), delete this.observerInst;
                    } catch (e) {}
                else
                  this.el.off("DOMAttrModified.select"),
                    (this.rectSelection.isSelected ||
                      this.pointSelection.isSelected) &&
                      this.el.on("DOMAttrModified.select", function () {
                        e.handler();
                      });
              }),
              (e.prototype.cleanup = function () {
                !this.rectSelection.isSelected &&
                  this.rectSelection.set &&
                  (this.rectSelection.set.each(function () {
                    this.remove();
                  }),
                  this.rectSelection.set.clear(),
                  delete this.rectSelection.set),
                  !this.pointSelection.isSelected &&
                    this.pointSelection.set &&
                    (this.pointSelection.set.each(function () {
                      this.remove();
                    }),
                    this.pointSelection.set.clear(),
                    delete this.pointSelection.set),
                  this.pointSelection.isSelected ||
                    this.rectSelection.isSelected ||
                    (this.nested.remove(), delete this.nested);
              }),
              SVG.extend(SVG.Element, {
                selectize: function (t, i) {
                  return (
                    "object" == typeof t && ((i = t), (t = !0)),
                    (this.remember("_selectHandler") || new e(this)).init(
                      void 0 === t || t,
                      i || {}
                    ),
                    this
                  );
                },
              }),
              (SVG.Element.prototype.selectize.defaults = {
                points: ["lt", "rt", "rb", "lb", "t", "r", "b", "l"],
                pointsExclude: [],
                classRect: "svg_select_boundingRect",
                classPoints: "svg_select_points",
                pointSize: 7,
                rotationPoint: !0,
                deepSelect: !1,
                pointType: "circle",
              });
          })(),
          (function () {
            (function () {
              function e(e) {
                e.remember("_resizeHandler", this),
                  (this.el = e),
                  (this.parameters = {}),
                  (this.lastUpdateCall = null),
                  (this.p = e.doc().node.createSVGPoint());
              }
              (e.prototype.transformPoint = function (e, t, i) {
                return (
                  (this.p.x = e - (this.offset.x - window.pageXOffset)),
                  (this.p.y = t - (this.offset.y - window.pageYOffset)),
                  this.p.matrixTransform(i || this.m)
                );
              }),
                (e.prototype._extractPosition = function (e) {
                  return {
                    x: null != e.clientX ? e.clientX : e.touches[0].clientX,
                    y: null != e.clientY ? e.clientY : e.touches[0].clientY,
                  };
                }),
                (e.prototype.init = function (e) {
                  var t = this;
                  if ((this.stop(), "stop" !== e)) {
                    for (var i in ((this.options = {}),
                    this.el.resize.defaults))
                      (this.options[i] = this.el.resize.defaults[i]),
                        void 0 !== e[i] && (this.options[i] = e[i]);
                    this.el.on("lt.resize", function (e) {
                      t.resize(e || window.event);
                    }),
                      this.el.on("rt.resize", function (e) {
                        t.resize(e || window.event);
                      }),
                      this.el.on("rb.resize", function (e) {
                        t.resize(e || window.event);
                      }),
                      this.el.on("lb.resize", function (e) {
                        t.resize(e || window.event);
                      }),
                      this.el.on("t.resize", function (e) {
                        t.resize(e || window.event);
                      }),
                      this.el.on("r.resize", function (e) {
                        t.resize(e || window.event);
                      }),
                      this.el.on("b.resize", function (e) {
                        t.resize(e || window.event);
                      }),
                      this.el.on("l.resize", function (e) {
                        t.resize(e || window.event);
                      }),
                      this.el.on("rot.resize", function (e) {
                        t.resize(e || window.event);
                      }),
                      this.el.on("point.resize", function (e) {
                        t.resize(e || window.event);
                      }),
                      this.update();
                  }
                }),
                (e.prototype.stop = function () {
                  return (
                    this.el.off("lt.resize"),
                    this.el.off("rt.resize"),
                    this.el.off("rb.resize"),
                    this.el.off("lb.resize"),
                    this.el.off("t.resize"),
                    this.el.off("r.resize"),
                    this.el.off("b.resize"),
                    this.el.off("l.resize"),
                    this.el.off("rot.resize"),
                    this.el.off("point.resize"),
                    this
                  );
                }),
                (e.prototype.resize = function (e) {
                  var t = this;
                  (this.m = this.el.node.getScreenCTM().inverse()),
                    (this.offset = {
                      x: window.pageXOffset,
                      y: window.pageYOffset,
                    });
                  var i = this._extractPosition(e.detail.event);
                  if (
                    ((this.parameters = {
                      type: this.el.type,
                      p: this.transformPoint(i.x, i.y),
                      x: e.detail.x,
                      y: e.detail.y,
                      box: this.el.bbox(),
                      rotation: this.el.transform().rotation,
                    }),
                    "text" === this.el.type &&
                      (this.parameters.fontSize = this.el.attr()["font-size"]),
                    void 0 !== e.detail.i)
                  ) {
                    var n = this.el.array().valueOf();
                    (this.parameters.i = e.detail.i),
                      (this.parameters.pointCoords = [
                        n[e.detail.i][0],
                        n[e.detail.i][1],
                      ]);
                  }
                  switch (e.type) {
                    case "lt":
                      this.calc = function (e, t) {
                        var i = this.snapToGrid(e, t);
                        if (
                          this.parameters.box.width - i[0] > 0 &&
                          this.parameters.box.height - i[1] > 0
                        ) {
                          if ("text" === this.parameters.type)
                            return (
                              this.el.move(
                                this.parameters.box.x + i[0],
                                this.parameters.box.y
                              ),
                              void this.el.attr(
                                "font-size",
                                this.parameters.fontSize - i[0]
                              )
                            );
                          (i = this.checkAspectRatio(i)),
                            this.el
                              .move(
                                this.parameters.box.x + i[0],
                                this.parameters.box.y + i[1]
                              )
                              .size(
                                this.parameters.box.width - i[0],
                                this.parameters.box.height - i[1]
                              );
                        }
                      };
                      break;
                    case "rt":
                      this.calc = function (e, t) {
                        var i = this.snapToGrid(e, t, 2);
                        if (
                          this.parameters.box.width + i[0] > 0 &&
                          this.parameters.box.height - i[1] > 0
                        ) {
                          if ("text" === this.parameters.type)
                            return (
                              this.el.move(
                                this.parameters.box.x - i[0],
                                this.parameters.box.y
                              ),
                              void this.el.attr(
                                "font-size",
                                this.parameters.fontSize + i[0]
                              )
                            );
                          (i = this.checkAspectRatio(i, !0)),
                            this.el
                              .move(
                                this.parameters.box.x,
                                this.parameters.box.y + i[1]
                              )
                              .size(
                                this.parameters.box.width + i[0],
                                this.parameters.box.height - i[1]
                              );
                        }
                      };
                      break;
                    case "rb":
                      this.calc = function (e, t) {
                        var i = this.snapToGrid(e, t, 0);
                        if (
                          this.parameters.box.width + i[0] > 0 &&
                          this.parameters.box.height + i[1] > 0
                        ) {
                          if ("text" === this.parameters.type)
                            return (
                              this.el.move(
                                this.parameters.box.x - i[0],
                                this.parameters.box.y
                              ),
                              void this.el.attr(
                                "font-size",
                                this.parameters.fontSize + i[0]
                              )
                            );
                          (i = this.checkAspectRatio(i)),
                            this.el
                              .move(
                                this.parameters.box.x,
                                this.parameters.box.y
                              )
                              .size(
                                this.parameters.box.width + i[0],
                                this.parameters.box.height + i[1]
                              );
                        }
                      };
                      break;
                    case "lb":
                      this.calc = function (e, t) {
                        var i = this.snapToGrid(e, t, 1);
                        if (
                          this.parameters.box.width - i[0] > 0 &&
                          this.parameters.box.height + i[1] > 0
                        ) {
                          if ("text" === this.parameters.type)
                            return (
                              this.el.move(
                                this.parameters.box.x + i[0],
                                this.parameters.box.y
                              ),
                              void this.el.attr(
                                "font-size",
                                this.parameters.fontSize - i[0]
                              )
                            );
                          (i = this.checkAspectRatio(i, !0)),
                            this.el
                              .move(
                                this.parameters.box.x + i[0],
                                this.parameters.box.y
                              )
                              .size(
                                this.parameters.box.width - i[0],
                                this.parameters.box.height + i[1]
                              );
                        }
                      };
                      break;
                    case "t":
                      this.calc = function (e, t) {
                        var i = this.snapToGrid(e, t, 2);
                        if (this.parameters.box.height - i[1] > 0) {
                          if ("text" === this.parameters.type) return;
                          this.el
                            .move(
                              this.parameters.box.x,
                              this.parameters.box.y + i[1]
                            )
                            .height(this.parameters.box.height - i[1]);
                        }
                      };
                      break;
                    case "r":
                      this.calc = function (e, t) {
                        var i = this.snapToGrid(e, t, 0);
                        if (this.parameters.box.width + i[0] > 0) {
                          if ("text" === this.parameters.type) return;
                          this.el
                            .move(this.parameters.box.x, this.parameters.box.y)
                            .width(this.parameters.box.width + i[0]);
                        }
                      };
                      break;
                    case "b":
                      this.calc = function (e, t) {
                        var i = this.snapToGrid(e, t, 0);
                        if (this.parameters.box.height + i[1] > 0) {
                          if ("text" === this.parameters.type) return;
                          this.el
                            .move(this.parameters.box.x, this.parameters.box.y)
                            .height(this.parameters.box.height + i[1]);
                        }
                      };
                      break;
                    case "l":
                      this.calc = function (e, t) {
                        var i = this.snapToGrid(e, t, 1);
                        if (this.parameters.box.width - i[0] > 0) {
                          if ("text" === this.parameters.type) return;
                          this.el
                            .move(
                              this.parameters.box.x + i[0],
                              this.parameters.box.y
                            )
                            .width(this.parameters.box.width - i[0]);
                        }
                      };
                      break;
                    case "rot":
                      this.calc = function (e, t) {
                        var i = e + this.parameters.p.x,
                          n = t + this.parameters.p.y,
                          r = Math.atan2(
                            this.parameters.p.y -
                              this.parameters.box.y -
                              this.parameters.box.height / 2,
                            this.parameters.p.x -
                              this.parameters.box.x -
                              this.parameters.box.width / 2
                          ),
                          a = Math.atan2(
                            n -
                              this.parameters.box.y -
                              this.parameters.box.height / 2,
                            i -
                              this.parameters.box.x -
                              this.parameters.box.width / 2
                          ),
                          o =
                            this.parameters.rotation +
                            (180 * (a - r)) / Math.PI +
                            this.options.snapToAngle / 2;
                        this.el
                          .center(
                            this.parameters.box.cx,
                            this.parameters.box.cy
                          )
                          .rotate(
                            o - (o % this.options.snapToAngle),
                            this.parameters.box.cx,
                            this.parameters.box.cy
                          );
                      };
                      break;
                    case "point":
                      this.calc = function (e, t) {
                        var i = this.snapToGrid(
                            e,
                            t,
                            this.parameters.pointCoords[0],
                            this.parameters.pointCoords[1]
                          ),
                          n = this.el.array().valueOf();
                        (n[this.parameters.i][0] =
                          this.parameters.pointCoords[0] + i[0]),
                          (n[this.parameters.i][1] =
                            this.parameters.pointCoords[1] + i[1]),
                          this.el.plot(n);
                      };
                  }
                  this.el.fire("resizestart", {
                    dx: this.parameters.x,
                    dy: this.parameters.y,
                    event: e,
                  }),
                    SVG.on(window, "touchmove.resize", function (e) {
                      t.update(e || window.event);
                    }),
                    SVG.on(window, "touchend.resize", function () {
                      t.done();
                    }),
                    SVG.on(window, "mousemove.resize", function (e) {
                      t.update(e || window.event);
                    }),
                    SVG.on(window, "mouseup.resize", function () {
                      t.done();
                    });
                }),
                (e.prototype.update = function (e) {
                  if (e) {
                    var t = this._extractPosition(e),
                      i = this.transformPoint(t.x, t.y),
                      n = i.x - this.parameters.p.x,
                      r = i.y - this.parameters.p.y;
                    (this.lastUpdateCall = [n, r]),
                      this.calc(n, r),
                      this.el.fire("resizing", { dx: n, dy: r, event: e });
                  } else
                    this.lastUpdateCall &&
                      this.calc(this.lastUpdateCall[0], this.lastUpdateCall[1]);
                }),
                (e.prototype.done = function () {
                  (this.lastUpdateCall = null),
                    SVG.off(window, "mousemove.resize"),
                    SVG.off(window, "mouseup.resize"),
                    SVG.off(window, "touchmove.resize"),
                    SVG.off(window, "touchend.resize"),
                    this.el.fire("resizedone");
                }),
                (e.prototype.snapToGrid = function (e, t, i, n) {
                  var r;
                  return (
                    void 0 !== n
                      ? (r = [
                          (i + e) % this.options.snapToGrid,
                          (n + t) % this.options.snapToGrid,
                        ])
                      : ((i = null == i ? 3 : i),
                        (r = [
                          (this.parameters.box.x +
                            e +
                            (1 & i ? 0 : this.parameters.box.width)) %
                            this.options.snapToGrid,
                          (this.parameters.box.y +
                            t +
                            (2 & i ? 0 : this.parameters.box.height)) %
                            this.options.snapToGrid,
                        ])),
                    e < 0 && (r[0] -= this.options.snapToGrid),
                    t < 0 && (r[1] -= this.options.snapToGrid),
                    (e -=
                      Math.abs(r[0]) < this.options.snapToGrid / 2
                        ? r[0]
                        : r[0] -
                          (e < 0
                            ? -this.options.snapToGrid
                            : this.options.snapToGrid)),
                    (t -=
                      Math.abs(r[1]) < this.options.snapToGrid / 2
                        ? r[1]
                        : r[1] -
                          (t < 0
                            ? -this.options.snapToGrid
                            : this.options.snapToGrid)),
                    this.constraintToBox(e, t, i, n)
                  );
                }),
                (e.prototype.constraintToBox = function (e, t, i, n) {
                  var r,
                    a,
                    o = this.options.constraint || {};
                  return (
                    void 0 !== n
                      ? ((r = i), (a = n))
                      : ((r =
                          this.parameters.box.x +
                          (1 & i ? 0 : this.parameters.box.width)),
                        (a =
                          this.parameters.box.y +
                          (2 & i ? 0 : this.parameters.box.height))),
                    void 0 !== o.minX && r + e < o.minX && (e = o.minX - r),
                    void 0 !== o.maxX && r + e > o.maxX && (e = o.maxX - r),
                    void 0 !== o.minY && a + t < o.minY && (t = o.minY - a),
                    void 0 !== o.maxY && a + t > o.maxY && (t = o.maxY - a),
                    [e, t]
                  );
                }),
                (e.prototype.checkAspectRatio = function (e, t) {
                  if (!this.options.saveAspectRatio) return e;
                  var i = e.slice(),
                    n = this.parameters.box.width / this.parameters.box.height,
                    r = this.parameters.box.width + e[0],
                    a = this.parameters.box.height - e[1],
                    o = r / a;
                  return (
                    o < n
                      ? ((i[1] = r / n - this.parameters.box.height),
                        t && (i[1] = -i[1]))
                      : o > n &&
                        ((i[0] = this.parameters.box.width - a * n),
                        t && (i[0] = -i[0])),
                    i
                  );
                }),
                SVG.extend(SVG.Element, {
                  resize: function (t) {
                    return (
                      (this.remember("_resizeHandler") || new e(this)).init(
                        t || {}
                      ),
                      this
                    );
                  },
                }),
                (SVG.Element.prototype.resize.defaults = {
                  snapToAngle: 0.1,
                  snapToGrid: 1,
                  constraint: {},
                  saveAspectRatio: !1,
                });
            }).call(this);
          })(),
          void 0 === window.Apex && (window.Apex = {});
        var je = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "initModules",
                  value: function () {
                    (this.ctx.publicMethods = [
                      "updateOptions",
                      "updateSeries",
                      "appendData",
                      "appendSeries",
                      "toggleSeries",
                      "showSeries",
                      "hideSeries",
                      "setLocale",
                      "resetSeries",
                      "zoomX",
                      "toggleDataPointSelection",
                      "dataURI",
                      "exportToCSV",
                      "addXaxisAnnotation",
                      "addYaxisAnnotation",
                      "addPointAnnotation",
                      "clearAnnotations",
                      "removeAnnotation",
                      "paper",
                      "destroy",
                    ]),
                      (this.ctx.eventList = [
                        "click",
                        "mousedown",
                        "mousemove",
                        "mouseleave",
                        "touchstart",
                        "touchmove",
                        "touchleave",
                        "mouseup",
                        "touchend",
                      ]),
                      (this.ctx.animations = new y(this.ctx)),
                      (this.ctx.axes = new Q(this.ctx)),
                      (this.ctx.core = new Be(this.ctx.el, this.ctx)),
                      (this.ctx.config = new R({})),
                      (this.ctx.data = new X(this.ctx)),
                      (this.ctx.grid = new V(this.ctx)),
                      (this.ctx.graphics = new w(this.ctx)),
                      (this.ctx.coreUtils = new E(this.ctx)),
                      (this.ctx.crosshairs = new ee(this.ctx)),
                      (this.ctx.events = new K(this.ctx)),
                      (this.ctx.exports = new G(this.ctx)),
                      (this.ctx.localization = new J(this.ctx)),
                      (this.ctx.options = new C()),
                      (this.ctx.responsive = new te(this.ctx)),
                      (this.ctx.series = new Y(this.ctx)),
                      (this.ctx.theme = new ie(this.ctx)),
                      (this.ctx.formatters = new M(this.ctx)),
                      (this.ctx.titleSubtitle = new ne(this.ctx)),
                      (this.ctx.legend = new ue(this.ctx)),
                      (this.ctx.toolbar = new de(this.ctx)),
                      (this.ctx.tooltip = new ye(this.ctx)),
                      (this.ctx.dimensions = new le(this.ctx)),
                      (this.ctx.updateHelpers = new ze(this.ctx)),
                      (this.ctx.zoomPanSelection = new he(this.ctx)),
                      (this.ctx.w.globals.tooltip = new ye(this.ctx));
                  },
                },
              ]),
              e
            );
          })(),
          He = (function () {
            function e(t) {
              s(this, e), (this.ctx = t), (this.w = t.w);
            }
            return (
              c(e, [
                {
                  key: "clear",
                  value: function (e) {
                    var t = e.isUpdating;
                    this.ctx.zoomPanSelection &&
                      this.ctx.zoomPanSelection.destroy(),
                      this.ctx.toolbar && this.ctx.toolbar.destroy(),
                      (this.ctx.animations = null),
                      (this.ctx.axes = null),
                      (this.ctx.annotations = null),
                      (this.ctx.core = null),
                      (this.ctx.data = null),
                      (this.ctx.grid = null),
                      (this.ctx.series = null),
                      (this.ctx.responsive = null),
                      (this.ctx.theme = null),
                      (this.ctx.formatters = null),
                      (this.ctx.titleSubtitle = null),
                      (this.ctx.legend = null),
                      (this.ctx.dimensions = null),
                      (this.ctx.options = null),
                      (this.ctx.crosshairs = null),
                      (this.ctx.zoomPanSelection = null),
                      (this.ctx.updateHelpers = null),
                      (this.ctx.toolbar = null),
                      (this.ctx.localization = null),
                      (this.ctx.w.globals.tooltip = null),
                      this.clearDomElements({ isUpdating: t });
                  },
                },
                {
                  key: "killSVG",
                  value: function (e) {
                    e.each(function (e, t) {
                      this.removeClass("*"), this.off(), this.stop();
                    }, !0),
                      e.ungroup(),
                      e.clear();
                  },
                },
                {
                  key: "clearDomElements",
                  value: function (e) {
                    var t = this,
                      i = e.isUpdating,
                      n = this.w.globals.dom.Paper.node;
                    n.parentNode &&
                      n.parentNode.parentNode &&
                      !i &&
                      (n.parentNode.parentNode.style.minHeight = "unset");
                    var r = this.w.globals.dom.baseEl;
                    r &&
                      this.ctx.eventList.forEach(function (e) {
                        r.removeEventListener(e, t.ctx.events.documentEvent);
                      });
                    var a = this.w.globals.dom;
                    if (null !== this.ctx.el)
                      for (; this.ctx.el.firstChild; )
                        this.ctx.el.removeChild(this.ctx.el.firstChild);
                    this.killSVG(a.Paper),
                      a.Paper.remove(),
                      (a.elWrap = null),
                      (a.elGraphical = null),
                      (a.elAnnotations = null),
                      (a.elLegendWrap = null),
                      (a.baseEl = null),
                      (a.elGridRect = null),
                      (a.elGridRectMask = null),
                      (a.elGridRectMarkerMask = null),
                      (a.elForecastMask = null),
                      (a.elNonForecastMask = null),
                      (a.elDefs = null);
                  },
                },
              ]),
              e
            );
          })(),
          Ye = new WeakMap(),
          Xe = (function () {
            function e(t, i) {
              s(this, e),
                (this.opts = i),
                (this.ctx = this),
                (this.w = new F(i).init()),
                (this.el = t),
                (this.w.globals.cuid = b.randomId()),
                (this.w.globals.chartID = this.w.config.chart.id
                  ? b.escapeString(this.w.config.chart.id)
                  : this.w.globals.cuid),
                new je(this).initModules(),
                (this.create = b.bind(this.create, this)),
                (this.windowResizeHandler =
                  this._windowResizeHandler.bind(this)),
                (this.parentResizeHandler =
                  this._parentResizeCallback.bind(this));
            }
            return (
              c(
                e,
                [
                  {
                    key: "render",
                    value: function () {
                      var e = this;
                      return new Promise(function (t, i) {
                        if (null !== e.el) {
                          void 0 === Apex._chartInstances &&
                            (Apex._chartInstances = []),
                            e.w.config.chart.id &&
                              Apex._chartInstances.push({
                                id: e.w.globals.chartID,
                                group: e.w.config.chart.group,
                                chart: e,
                              }),
                            e.setLocale(e.w.config.chart.defaultLocale);
                          var n = e.w.config.chart.events.beforeMount;
                          if (
                            ("function" == typeof n && n(e, e.w),
                            e.events.fireEvent("beforeMount", [e, e.w]),
                            window.addEventListener(
                              "resize",
                              e.windowResizeHandler
                            ),
                            (function (e, t) {
                              var i = !1;
                              if (e.nodeType !== Node.DOCUMENT_FRAGMENT_NODE) {
                                var n = e.getBoundingClientRect();
                                ("none" !== e.style.display && 0 !== n.width) ||
                                  (i = !0);
                              }
                              var r = new ResizeObserver(function (n) {
                                i && t.call(e, n), (i = !0);
                              });
                              e.nodeType === Node.DOCUMENT_FRAGMENT_NODE
                                ? Array.from(e.children).forEach(function (e) {
                                    return r.observe(e);
                                  })
                                : r.observe(e),
                                Ye.set(t, r);
                            })(e.el.parentNode, e.parentResizeHandler),
                            !e.css)
                          ) {
                            var r = e.el.getRootNode && e.el.getRootNode(),
                              a = b.is("ShadowRoot", r),
                              o = e.el.ownerDocument,
                              s = o.getElementById("apexcharts-css");
                            (!a && s) ||
                              ((e.css = document.createElement("style")),
                              (e.css.id = "apexcharts-css"),
                              (e.css.textContent =
                                '@keyframes opaque {\n  0% {\n      opacity: 0\n  }\n\n  to {\n      opacity: 1\n  }\n}\n\n@keyframes resizeanim {\n  0%,to {\n      opacity: 0\n  }\n}\n\n.apexcharts-canvas {\n  position: relative;\n  user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n  -webkit-appearance: none;\n  width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n  border-radius: 4px;\n  background-color: rgba(0,0,0,.5);\n  box-shadow: 0 0 1px rgba(255,255,255,.5);\n  -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)\n}\n\n.apexcharts-inner {\n  position: relative\n}\n\n.apexcharts-text tspan {\n  font-family: inherit\n}\n\n.legend-mouseover-inactive {\n  transition: .15s ease all;\n  opacity: .2\n}\n\n.apexcharts-legend-text {\n  padding-left: 15px;\n  margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n  opacity: 0\n}\n\n.apexcharts-tooltip {\n  border-radius: 5px;\n  box-shadow: 2px 2px 6px -4px #999;\n  cursor: default;\n  font-size: 14px;\n  left: 62px;\n  opacity: 0;\n  pointer-events: none;\n  position: absolute;\n  top: 20px;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  white-space: nowrap;\n  z-index: 12;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n  border: 1px solid #e3e3e3;\n  background: rgba(255,255,255,.96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n  color: #fff;\n  background: rgba(30,30,30,.8)\n}\n\n.apexcharts-tooltip * {\n  font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n  padding: 6px;\n  font-size: 15px;\n  margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n  background: #eceff1;\n  border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n  background: rgba(0,0,0,.7);\n  border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {\n  display: inline-block;\n  margin-left: 5px;\n  font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {\n  display: none\n}\n\n.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n  padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n  display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {\n  margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n  width: 12px;\n  height: 12px;\n  position: relative;\n  top: 0;\n  margin-right: 10px;\n  border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n  padding: 0 10px;\n  display: none;\n  text-align: left;\n  justify-content: left;\n  align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n  opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {\n  padding-bottom: 4px\n}\n\n.apexcharts-tooltip-series-group-hidden {\n  opacity: 0;\n  height: 0;\n  line-height: 0;\n  padding: 0!important\n}\n\n.apexcharts-tooltip-y-group {\n  padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,.apexcharts-tooltip-box {\n  padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n  display: flex;\n  flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n  margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n  font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n  padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n  font-weight: 600;\n  color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n  font-weight: 700;\n  display: block;\n  margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {\n  opacity: 0;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #eceff1;\n  border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n  padding: 9px 10px;\n  transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n  background: rgba(0,0,0,.7);\n  border: 1px solid rgba(0,0,0,.5);\n  color: #fff\n}\n\n.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {\n  left: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {\n  bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {\n  top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n  border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n  border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n  border-bottom-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n  border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n  border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n  border-top-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n  padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n  background: rgba(0,0,0,.7);\n  border: 1px solid rgba(0,0,0,.5);\n  color: #fff\n}\n\n.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {\n  top: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {\n  left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {\n  right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n  border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n  border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n  border-left-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n  border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n  border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n  border-right-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n  opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n  display: none\n}\n\n.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {\n  pointer-events: none;\n  opacity: 0;\n  transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n  opacity: 0\n}\n\n.apexcharts-selection-rect {\n  cursor: move\n}\n\n.svg_select_boundingRect,.svg_select_points_rot {\n  pointer-events: none;\n  opacity: 0;\n  visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {\n  opacity: 0;\n  visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {\n  cursor: ew-resize;\n  opacity: 1;\n  visibility: visible\n}\n\n.svg_select_points {\n  fill: #efefef;\n  stroke: #333;\n  rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n  cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n  cursor: move\n}\n\n.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n  cursor: pointer;\n  width: 20px;\n  height: 20px;\n  line-height: 24px;\n  color: #6e8192;\n  text-align: center\n}\n\n.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {\n  fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n  fill: #444;\n  transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n  fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n  fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n  fill: #333\n}\n\n.apexcharts-menu-icon,.apexcharts-selection-icon {\n  position: relative\n}\n\n.apexcharts-reset-icon {\n  margin-left: 5px\n}\n\n.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {\n  transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n  transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n  margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n  transform: scale(.62);\n  position: relative;\n  left: 1px;\n  top: 0\n}\n\n.apexcharts-pan-icon svg {\n  fill: #fff;\n  stroke: #6e8192;\n  stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n  stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n  stroke: #333\n}\n\n.apexcharts-toolbar {\n  position: absolute;\n  z-index: 11;\n  max-width: 176px;\n  text-align: right;\n  border-radius: 3px;\n  padding: 0 6px 2px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center\n}\n\n.apexcharts-menu {\n  background: #fff;\n  position: absolute;\n  top: 100%;\n  border: 1px solid #ddd;\n  border-radius: 3px;\n  padding: 3px;\n  right: 10px;\n  opacity: 0;\n  min-width: 110px;\n  transition: .15s ease all;\n  pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n  opacity: 1;\n  pointer-events: all;\n  transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n  padding: 6px 7px;\n  font-size: 12px;\n  cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n  background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n  background: rgba(0,0,0,.7);\n  color: #fff\n}\n\n@media screen and (min-width:768px) {\n  .apexcharts-canvas:hover .apexcharts-toolbar {\n      opacity: 1\n  }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {\n  opacity: 0\n}\n\n.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {\n  cursor: default;\n  pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n  opacity: 0;\n  animation-name: opaque;\n  animation-duration: .3s;\n  animation-fill-mode: forwards;\n  animation-timing-function: ease\n}\n\n.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {\n  pointer-events: none\n}\n\n.apexcharts-marker {\n  transition: .15s ease all\n}\n\n.resize-triggers {\n  animation: 1ms resizeanim;\n  visibility: hidden;\n  opacity: 0;\n  height: 100%;\n  width: 100%;\n  overflow: hidden\n}\n\n.contract-trigger:before,.resize-triggers,.resize-triggers>div {\n  content: " ";\n  display: block;\n  position: absolute;\n  top: 0;\n  left: 0\n}\n\n.resize-triggers>div {\n  height: 100%;\n  width: 100%;\n  background: #eee;\n  overflow: auto\n}\n\n.contract-trigger:before {\n  overflow: hidden;\n  width: 200%;\n  height: 200%\n}\n'),
                              a ? r.prepend(e.css) : o.head.appendChild(e.css));
                          }
                          var l = e.create(e.w.config.series, {});
                          if (!l) return t(e);
                          e.mount(l)
                            .then(function () {
                              "function" ==
                                typeof e.w.config.chart.events.mounted &&
                                e.w.config.chart.events.mounted(e, e.w),
                                e.events.fireEvent("mounted", [e, e.w]),
                                t(l);
                            })
                            .catch(function (e) {
                              i(e);
                            });
                        } else i(new Error("Element not found"));
                      });
                    },
                  },
                  {
                    key: "create",
                    value: function (e, t) {
                      var i = this.w;
                      new je(this).initModules();
                      var n = this.w.globals;
                      if (
                        ((n.noData = !1),
                        (n.animationEnded = !1),
                        this.responsive.checkResponsiveConfig(t),
                        i.config.xaxis.convertedCatToNumeric &&
                          new D(i.config).convertCatToNumericXaxis(
                            i.config,
                            this.ctx
                          ),
                        null === this.el)
                      )
                        return (n.animationEnded = !0), null;
                      if (
                        (this.core.setupElements(),
                        "treemap" === i.config.chart.type &&
                          ((i.config.grid.show = !1),
                          (i.config.yaxis[0].show = !1)),
                        0 === n.svgWidth)
                      )
                        return (n.animationEnded = !0), null;
                      var r = E.checkComboSeries(e);
                      (n.comboCharts = r.comboCharts),
                        (n.comboBarCount = r.comboBarCount);
                      var a = e.every(function (e) {
                        return e.data && 0 === e.data.length;
                      });
                      (0 === e.length || a) && this.series.handleNoData(),
                        this.events.setupEventHandlers(),
                        this.data.parseData(e),
                        this.theme.init(),
                        new z(this).setGlobalMarkerSize(),
                        this.formatters.setLabelFormatters(),
                        this.titleSubtitle.draw(),
                        (n.noData &&
                          n.collapsedSeries.length !== n.series.length &&
                          !i.config.legend.showForSingleSeries) ||
                          this.legend.init(),
                        this.series.hasAllSeriesEqualX(),
                        n.axisCharts &&
                          (this.core.coreCalculations(),
                          "category" !== i.config.xaxis.type &&
                            this.formatters.setLabelFormatters(),
                          (this.ctx.toolbar.minX = i.globals.minX),
                          (this.ctx.toolbar.maxX = i.globals.maxX)),
                        this.formatters.heatmapLabelFormatters(),
                        new E(this).getLargestMarkerSize(),
                        this.dimensions.plotCoords();
                      var o = this.core.xySettings();
                      this.grid.createGridMask();
                      var s = this.core.plotChartType(e, o),
                        l = new H(this);
                      l.bringForward(),
                        i.config.dataLabels.background.enabled &&
                          l.dataLabelsBackground(),
                        this.core.shiftGraphPosition();
                      var c = {
                        plot: {
                          left: i.globals.translateX,
                          top: i.globals.translateY,
                          width: i.globals.gridWidth,
                          height: i.globals.gridHeight,
                        },
                      };
                      return {
                        elGraph: s,
                        xyRatios: o,
                        elInner: i.globals.dom.elGraphical,
                        dimensions: c,
                      };
                    },
                  },
                  {
                    key: "mount",
                    value: function () {
                      var e = this,
                        t =
                          arguments.length > 0 && void 0 !== arguments[0]
                            ? arguments[0]
                            : null,
                        i = this,
                        n = i.w;
                      return new Promise(function (r, a) {
                        if (null === i.el)
                          return a(
                            new Error(
                              "Not enough data to display or target element not found"
                            )
                          );
                        (null === t || n.globals.allSeriesCollapsed) &&
                          i.series.handleNoData(),
                          (i.grid = new V(i));
                        var o = i.grid.drawGrid();
                        if (
                          ((i.annotations = new O(i)),
                          i.annotations.drawImageAnnos(),
                          i.annotations.drawTextAnnos(),
                          "back" === n.config.grid.position &&
                            o &&
                            (n.globals.dom.elGraphical.add(o.el),
                            o &&
                              o.elGridBorders &&
                              o.elGridBorders.node &&
                              n.globals.dom.elGraphical.add(o.elGridBorders)),
                          Array.isArray(t.elGraph))
                        )
                          for (var s = 0; s < t.elGraph.length; s++)
                            n.globals.dom.elGraphical.add(t.elGraph[s]);
                        else n.globals.dom.elGraphical.add(t.elGraph);
                        "front" === n.config.grid.position &&
                          o &&
                          (n.globals.dom.elGraphical.add(o.el),
                          o &&
                            o.elGridBorders &&
                            o.elGridBorders.node &&
                            n.globals.dom.elGraphical.add(o.elGridBorders)),
                          "front" === n.config.xaxis.crosshairs.position &&
                            i.crosshairs.drawXCrosshairs(),
                          "front" === n.config.yaxis[0].crosshairs.position &&
                            i.crosshairs.drawYCrosshairs(),
                          "front" === n.config.annotations.position &&
                            (n.globals.dom.Paper.add(
                              n.globals.dom.elAnnotations
                            ),
                            i.annotations.drawAxesAnnotations()),
                          "treemap" !== n.config.chart.type &&
                            i.axes.drawAxis(n.config.chart.type, o);
                        var l = new q(e.ctx, o),
                          c = new Z(e.ctx, o);
                        if (
                          (null !== o &&
                            (l.xAxisLabelCorrections(o.xAxisTickWidth),
                            c.setYAxisTextAlignments(),
                            n.config.yaxis.map(function (e, t) {
                              -1 === n.globals.ignoreYAxisIndexes.indexOf(t) &&
                                c.yAxisTitleRotate(t, e.opposite);
                            })),
                          "back" === n.config.annotations.position &&
                            (n.globals.dom.Paper.add(
                              n.globals.dom.elAnnotations
                            ),
                            i.annotations.drawAxesAnnotations()),
                          !n.globals.noData)
                        ) {
                          if (
                            (n.config.tooltip.enabled &&
                              !n.globals.noData &&
                              i.w.globals.tooltip.drawTooltip(t.xyRatios),
                            n.globals.axisCharts &&
                              (n.globals.isXNumeric ||
                                n.config.xaxis.convertedCatToNumeric ||
                                n.globals.isRangeBar))
                          )
                            (n.config.chart.zoom.enabled ||
                              (n.config.chart.selection &&
                                n.config.chart.selection.enabled) ||
                              (n.config.chart.pan &&
                                n.config.chart.pan.enabled)) &&
                              i.zoomPanSelection.init({ xyRatios: t.xyRatios });
                          else {
                            var u = n.config.chart.toolbar.tools;
                            [
                              "zoom",
                              "zoomin",
                              "zoomout",
                              "selection",
                              "pan",
                              "reset",
                            ].forEach(function (e) {
                              u[e] = !1;
                            });
                          }
                          n.config.chart.toolbar.show &&
                            !n.globals.allSeriesCollapsed &&
                            i.toolbar.createToolbar();
                        }
                        n.globals.memory.methodsToExec.length > 0 &&
                          n.globals.memory.methodsToExec.forEach(function (e) {
                            e.method(e.params, !1, e.context);
                          }),
                          n.globals.axisCharts ||
                            n.globals.noData ||
                            i.core.resizeNonAxisCharts(),
                          r(i);
                      });
                    },
                  },
                  {
                    key: "destroy",
                    value: function () {
                      var e, t;
                      window.removeEventListener(
                        "resize",
                        this.windowResizeHandler
                      ),
                        this.el.parentNode,
                        (e = this.parentResizeHandler),
                        (t = Ye.get(e)) && (t.disconnect(), Ye.delete(e));
                      var i = this.w.config.chart.id;
                      i &&
                        Apex._chartInstances.forEach(function (e, t) {
                          e.id === b.escapeString(i) &&
                            Apex._chartInstances.splice(t, 1);
                        }),
                        new He(this.ctx).clear({ isUpdating: !1 });
                    },
                  },
                  {
                    key: "updateOptions",
                    value: function (e) {
                      var t = this,
                        i =
                          arguments.length > 1 &&
                          void 0 !== arguments[1] &&
                          arguments[1],
                        n =
                          !(arguments.length > 2 && void 0 !== arguments[2]) ||
                          arguments[2],
                        r =
                          !(arguments.length > 3 && void 0 !== arguments[3]) ||
                          arguments[3],
                        a =
                          !(arguments.length > 4 && void 0 !== arguments[4]) ||
                          arguments[4],
                        o = this.w;
                      return (
                        (o.globals.selection = void 0),
                        e.series &&
                          (this.series.resetSeries(!1, !0, !1),
                          e.series.length &&
                            e.series[0].data &&
                            (e.series = e.series.map(function (e, i) {
                              return t.updateHelpers._extendSeries(e, i);
                            })),
                          this.updateHelpers.revertDefaultAxisMinMax()),
                        e.xaxis && (e = this.updateHelpers.forceXAxisUpdate(e)),
                        e.yaxis && (e = this.updateHelpers.forceYAxisUpdate(e)),
                        o.globals.collapsedSeriesIndices.length > 0 &&
                          this.series.clearPreviousPaths(),
                        e.theme && (e = this.theme.updateThemeOptions(e)),
                        this.updateHelpers._updateOptions(e, i, n, r, a)
                      );
                    },
                  },
                  {
                    key: "updateSeries",
                    value: function () {
                      var e =
                          arguments.length > 0 && void 0 !== arguments[0]
                            ? arguments[0]
                            : [],
                        t =
                          !(arguments.length > 1 && void 0 !== arguments[1]) ||
                          arguments[1],
                        i =
                          !(arguments.length > 2 && void 0 !== arguments[2]) ||
                          arguments[2];
                      return (
                        this.series.resetSeries(!1),
                        this.updateHelpers.revertDefaultAxisMinMax(),
                        this.updateHelpers._updateSeries(e, t, i)
                      );
                    },
                  },
                  {
                    key: "appendSeries",
                    value: function (e) {
                      var t =
                          !(arguments.length > 1 && void 0 !== arguments[1]) ||
                          arguments[1],
                        i =
                          !(arguments.length > 2 && void 0 !== arguments[2]) ||
                          arguments[2],
                        n = this.w.config.series.slice();
                      return (
                        n.push(e),
                        this.series.resetSeries(!1),
                        this.updateHelpers.revertDefaultAxisMinMax(),
                        this.updateHelpers._updateSeries(n, t, i)
                      );
                    },
                  },
                  {
                    key: "appendData",
                    value: function (e) {
                      var t =
                          !(arguments.length > 1 && void 0 !== arguments[1]) ||
                          arguments[1],
                        i = this;
                      (i.w.globals.dataChanged = !0),
                        i.series.getPreviousPaths();
                      for (
                        var n = i.w.config.series.slice(), r = 0;
                        r < n.length;
                        r++
                      )
                        if (null !== e[r] && void 0 !== e[r])
                          for (var a = 0; a < e[r].data.length; a++)
                            n[r].data.push(e[r].data[a]);
                      return (
                        (i.w.config.series = n),
                        t &&
                          (i.w.globals.initialSeries = b.clone(
                            i.w.config.series
                          )),
                        this.update()
                      );
                    },
                  },
                  {
                    key: "update",
                    value: function (e) {
                      var t = this;
                      return new Promise(function (i, n) {
                        new He(t.ctx).clear({ isUpdating: !0 });
                        var r = t.create(t.w.config.series, e);
                        if (!r) return i(t);
                        t.mount(r)
                          .then(function () {
                            "function" ==
                              typeof t.w.config.chart.events.updated &&
                              t.w.config.chart.events.updated(t, t.w),
                              t.events.fireEvent("updated", [t, t.w]),
                              (t.w.globals.isDirty = !0),
                              i(t);
                          })
                          .catch(function (e) {
                            n(e);
                          });
                      });
                    },
                  },
                  {
                    key: "getSyncedCharts",
                    value: function () {
                      var e = this.getGroupedCharts(),
                        t = [this];
                      return (
                        e.length &&
                          ((t = []),
                          e.forEach(function (e) {
                            t.push(e);
                          })),
                        t
                      );
                    },
                  },
                  {
                    key: "getGroupedCharts",
                    value: function () {
                      var e = this;
                      return Apex._chartInstances
                        .filter(function (e) {
                          if (e.group) return !0;
                        })
                        .map(function (t) {
                          return e.w.config.chart.group === t.group
                            ? t.chart
                            : e;
                        });
                    },
                  },
                  {
                    key: "toggleSeries",
                    value: function (e) {
                      return this.series.toggleSeries(e);
                    },
                  },
                  {
                    key: "highlightSeriesOnLegendHover",
                    value: function (e, t) {
                      return this.series.toggleSeriesOnHover(e, t);
                    },
                  },
                  {
                    key: "showSeries",
                    value: function (e) {
                      this.series.showSeries(e);
                    },
                  },
                  {
                    key: "hideSeries",
                    value: function (e) {
                      this.series.hideSeries(e);
                    },
                  },
                  {
                    key: "resetSeries",
                    value: function () {
                      var e =
                          !(arguments.length > 0 && void 0 !== arguments[0]) ||
                          arguments[0],
                        t =
                          !(arguments.length > 1 && void 0 !== arguments[1]) ||
                          arguments[1];
                      this.series.resetSeries(e, t);
                    },
                  },
                  {
                    key: "addEventListener",
                    value: function (e, t) {
                      this.events.addEventListener(e, t);
                    },
                  },
                  {
                    key: "removeEventListener",
                    value: function (e, t) {
                      this.events.removeEventListener(e, t);
                    },
                  },
                  {
                    key: "addXaxisAnnotation",
                    value: function (e) {
                      var t =
                          !(arguments.length > 1 && void 0 !== arguments[1]) ||
                          arguments[1],
                        i =
                          arguments.length > 2 && void 0 !== arguments[2]
                            ? arguments[2]
                            : void 0,
                        n = this;
                      i && (n = i),
                        n.annotations.addXaxisAnnotationExternal(e, t, n);
                    },
                  },
                  {
                    key: "addYaxisAnnotation",
                    value: function (e) {
                      var t =
                          !(arguments.length > 1 && void 0 !== arguments[1]) ||
                          arguments[1],
                        i =
                          arguments.length > 2 && void 0 !== arguments[2]
                            ? arguments[2]
                            : void 0,
                        n = this;
                      i && (n = i),
                        n.annotations.addYaxisAnnotationExternal(e, t, n);
                    },
                  },
                  {
                    key: "addPointAnnotation",
                    value: function (e) {
                      var t =
                          !(arguments.length > 1 && void 0 !== arguments[1]) ||
                          arguments[1],
                        i =
                          arguments.length > 2 && void 0 !== arguments[2]
                            ? arguments[2]
                            : void 0,
                        n = this;
                      i && (n = i),
                        n.annotations.addPointAnnotationExternal(e, t, n);
                    },
                  },
                  {
                    key: "clearAnnotations",
                    value: function () {
                      var e =
                          arguments.length > 0 && void 0 !== arguments[0]
                            ? arguments[0]
                            : void 0,
                        t = this;
                      e && (t = e), t.annotations.clearAnnotations(t);
                    },
                  },
                  {
                    key: "removeAnnotation",
                    value: function (e) {
                      var t =
                          arguments.length > 1 && void 0 !== arguments[1]
                            ? arguments[1]
                            : void 0,
                        i = this;
                      t && (i = t), i.annotations.removeAnnotation(i, e);
                    },
                  },
                  {
                    key: "getChartArea",
                    value: function () {
                      return this.w.globals.dom.baseEl.querySelector(
                        ".apexcharts-inner"
                      );
                    },
                  },
                  {
                    key: "getSeriesTotalXRange",
                    value: function (e, t) {
                      return this.coreUtils.getSeriesTotalsXRange(e, t);
                    },
                  },
                  {
                    key: "getHighestValueInSeries",
                    value: function () {
                      var e =
                        arguments.length > 0 && void 0 !== arguments[0]
                          ? arguments[0]
                          : 0;
                      return new $(this.ctx).getMinYMaxY(e).highestY;
                    },
                  },
                  {
                    key: "getLowestValueInSeries",
                    value: function () {
                      var e =
                        arguments.length > 0 && void 0 !== arguments[0]
                          ? arguments[0]
                          : 0;
                      return new $(this.ctx).getMinYMaxY(e).lowestY;
                    },
                  },
                  {
                    key: "getSeriesTotal",
                    value: function () {
                      return this.w.globals.seriesTotals;
                    },
                  },
                  {
                    key: "toggleDataPointSelection",
                    value: function (e, t) {
                      return this.updateHelpers.toggleDataPointSelection(e, t);
                    },
                  },
                  {
                    key: "zoomX",
                    value: function (e, t) {
                      this.ctx.toolbar.zoomUpdateOptions(e, t);
                    },
                  },
                  {
                    key: "setLocale",
                    value: function (e) {
                      this.localization.setCurrentLocaleValues(e);
                    },
                  },
                  {
                    key: "dataURI",
                    value: function (e) {
                      return new G(this.ctx).dataURI(e);
                    },
                  },
                  {
                    key: "exportToCSV",
                    value: function () {
                      var e =
                        arguments.length > 0 && void 0 !== arguments[0]
                          ? arguments[0]
                          : {};
                      return new G(this.ctx).exportToCSV(e);
                    },
                  },
                  {
                    key: "paper",
                    value: function () {
                      return this.w.globals.dom.Paper;
                    },
                  },
                  {
                    key: "_parentResizeCallback",
                    value: function () {
                      this.w.globals.animationEnded &&
                        this.w.config.chart.redrawOnParentResize &&
                        this._windowResize();
                    },
                  },
                  {
                    key: "_windowResize",
                    value: function () {
                      var e = this;
                      clearTimeout(this.w.globals.resizeTimer),
                        (this.w.globals.resizeTimer = window.setTimeout(
                          function () {
                            (e.w.globals.resized = !0),
                              (e.w.globals.dataChanged = !1),
                              e.ctx.update();
                          },
                          150
                        ));
                    },
                  },
                  {
                    key: "_windowResizeHandler",
                    value: function () {
                      var e = this.w.config.chart.redrawOnWindowResize;
                      "function" == typeof e && (e = e()),
                        e && this._windowResize();
                    },
                  },
                ],
                [
                  {
                    key: "getChartByID",
                    value: function (e) {
                      var t = b.escapeString(e),
                        i = Apex._chartInstances.filter(function (e) {
                          return e.id === t;
                        })[0];
                      return i && i.chart;
                    },
                  },
                  {
                    key: "initOnLoad",
                    value: function () {
                      for (
                        var t = document.querySelectorAll("[data-apexcharts]"),
                          i = 0;
                        i < t.length;
                        i++
                      )
                        new e(
                          t[i],
                          JSON.parse(t[i].getAttribute("data-options"))
                        ).render();
                    },
                  },
                  {
                    key: "exec",
                    value: function (e, t) {
                      var i = this.getChartByID(e);
                      if (i) {
                        i.w.globals.isExecCalled = !0;
                        var n = null;
                        if (-1 !== i.publicMethods.indexOf(t)) {
                          for (
                            var r = arguments.length,
                              a = new Array(r > 2 ? r - 2 : 0),
                              o = 2;
                            o < r;
                            o++
                          )
                            a[o - 2] = arguments[o];
                          n = i[t].apply(i, a);
                        }
                        return n;
                      }
                    },
                  },
                  {
                    key: "merge",
                    value: function (e, t) {
                      return b.extend(e, t);
                    },
                  },
                ]
              ),
              e
            );
          })();
        e.exports = Xe;
      },
      155: (e, t) => {
        "use strict";
        (t.byteLength = function (e) {
          var t = l(e),
            i = t[0],
            n = t[1];
          return (3 * (i + n)) / 4 - n;
        }),
          (t.toByteArray = function (e) {
            var t,
              i,
              a = l(e),
              o = a[0],
              s = a[1],
              c = new r(
                (function (e, t, i) {
                  return (3 * (t + i)) / 4 - i;
                })(0, o, s)
              ),
              u = 0,
              d = s > 0 ? o - 4 : o;
            for (i = 0; i < d; i += 4)
              (t =
                (n[e.charCodeAt(i)] << 18) |
                (n[e.charCodeAt(i + 1)] << 12) |
                (n[e.charCodeAt(i + 2)] << 6) |
                n[e.charCodeAt(i + 3)]),
                (c[u++] = (t >> 16) & 255),
                (c[u++] = (t >> 8) & 255),
                (c[u++] = 255 & t);
            2 === s &&
              ((t = (n[e.charCodeAt(i)] << 2) | (n[e.charCodeAt(i + 1)] >> 4)),
              (c[u++] = 255 & t));
            1 === s &&
              ((t =
                (n[e.charCodeAt(i)] << 10) |
                (n[e.charCodeAt(i + 1)] << 4) |
                (n[e.charCodeAt(i + 2)] >> 2)),
              (c[u++] = (t >> 8) & 255),
              (c[u++] = 255 & t));
            return c;
          }),
          (t.fromByteArray = function (e) {
            for (
              var t,
                n = e.length,
                r = n % 3,
                a = [],
                o = 16383,
                s = 0,
                l = n - r;
              s < l;
              s += o
            )
              a.push(c(e, s, s + o > l ? l : s + o));
            1 === r
              ? ((t = e[n - 1]), a.push(i[t >> 2] + i[(t << 4) & 63] + "=="))
              : 2 === r &&
                ((t = (e[n - 2] << 8) + e[n - 1]),
                a.push(i[t >> 10] + i[(t >> 4) & 63] + i[(t << 2) & 63] + "="));
            return a.join("");
          });
        for (
          var i = [],
            n = [],
            r = "undefined" != typeof Uint8Array ? Uint8Array : Array,
            a =
              "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
            o = 0,
            s = a.length;
          o < s;
          ++o
        )
          (i[o] = a[o]), (n[a.charCodeAt(o)] = o);
        function l(e) {
          var t = e.length;
          if (t % 4 > 0)
            throw new Error("Invalid string. Length must be a multiple of 4");
          var i = e.indexOf("=");
          return -1 === i && (i = t), [i, i === t ? 0 : 4 - (i % 4)];
        }
        function c(e, t, n) {
          for (var r, a, o = [], s = t; s < n; s += 3)
            (r =
              ((e[s] << 16) & 16711680) +
              ((e[s + 1] << 8) & 65280) +
              (255 & e[s + 2])),
              o.push(
                i[((a = r) >> 18) & 63] +
                  i[(a >> 12) & 63] +
                  i[(a >> 6) & 63] +
                  i[63 & a]
              );
          return o.join("");
        }
        (n["-".charCodeAt(0)] = 62), (n["_".charCodeAt(0)] = 63);
      },
      486: (e, t, i) => {
        "use strict";
        var n = i(155),
          r = i(525),
          a = i(955);
        function o() {
          return l.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
        }
        function s(e, t) {
          if (o() < t) throw new RangeError("Invalid typed array length");
          return (
            l.TYPED_ARRAY_SUPPORT
              ? ((e = new Uint8Array(t)).__proto__ = l.prototype)
              : (null === e && (e = new l(t)), (e.length = t)),
            e
          );
        }
        function l(e, t, i) {
          if (!(l.TYPED_ARRAY_SUPPORT || this instanceof l))
            return new l(e, t, i);
          if ("number" == typeof e) {
            if ("string" == typeof t)
              throw new Error(
                "If encoding is specified then the first argument must be a string"
              );
            return d(this, e);
          }
          return c(this, e, t, i);
        }
        function c(e, t, i, n) {
          if ("number" == typeof t)
            throw new TypeError('"value" argument must not be a number');
          return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer
            ? (function (e, t, i, n) {
                if ((t.byteLength, i < 0 || t.byteLength < i))
                  throw new RangeError("'offset' is out of bounds");
                if (t.byteLength < i + (n || 0))
                  throw new RangeError("'length' is out of bounds");
                t =
                  void 0 === i && void 0 === n
                    ? new Uint8Array(t)
                    : void 0 === n
                    ? new Uint8Array(t, i)
                    : new Uint8Array(t, i, n);
                l.TYPED_ARRAY_SUPPORT
                  ? ((e = t).__proto__ = l.prototype)
                  : (e = h(e, t));
                return e;
              })(e, t, i, n)
            : "string" == typeof t
            ? (function (e, t, i) {
                ("string" == typeof i && "" !== i) || (i = "utf8");
                if (!l.isEncoding(i))
                  throw new TypeError(
                    '"encoding" must be a valid string encoding'
                  );
                var n = 0 | p(t, i);
                e = s(e, n);
                var r = e.write(t, i);
                r !== n && (e = e.slice(0, r));
                return e;
              })(e, t, i)
            : (function (e, t) {
                if (l.isBuffer(t)) {
                  var i = 0 | f(t.length);
                  return 0 === (e = s(e, i)).length || t.copy(e, 0, 0, i), e;
                }
                if (t) {
                  if (
                    ("undefined" != typeof ArrayBuffer &&
                      t.buffer instanceof ArrayBuffer) ||
                    "length" in t
                  )
                    return "number" != typeof t.length || (n = t.length) != n
                      ? s(e, 0)
                      : h(e, t);
                  if ("Buffer" === t.type && a(t.data)) return h(e, t.data);
                }
                var n;
                throw new TypeError(
                  "First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object."
                );
              })(e, t);
        }
        function u(e) {
          if ("number" != typeof e)
            throw new TypeError('"size" argument must be a number');
          if (e < 0)
            throw new RangeError('"size" argument must not be negative');
        }
        function d(e, t) {
          if ((u(t), (e = s(e, t < 0 ? 0 : 0 | f(t))), !l.TYPED_ARRAY_SUPPORT))
            for (var i = 0; i < t; ++i) e[i] = 0;
          return e;
        }
        function h(e, t) {
          var i = t.length < 0 ? 0 : 0 | f(t.length);
          e = s(e, i);
          for (var n = 0; n < i; n += 1) e[n] = 255 & t[n];
          return e;
        }
        function f(e) {
          if (e >= o())
            throw new RangeError(
              "Attempt to allocate Buffer larger than maximum size: 0x" +
                o().toString(16) +
                " bytes"
            );
          return 0 | e;
        }
        function p(e, t) {
          if (l.isBuffer(e)) return e.length;
          if (
            "undefined" != typeof ArrayBuffer &&
            "function" == typeof ArrayBuffer.isView &&
            (ArrayBuffer.isView(e) || e instanceof ArrayBuffer)
          )
            return e.byteLength;
          "string" != typeof e && (e = "" + e);
          var i = e.length;
          if (0 === i) return 0;
          for (var n = !1; ; )
            switch (t) {
              case "ascii":
              case "latin1":
              case "binary":
                return i;
              case "utf8":
              case "utf-8":
              case void 0:
                return H(e).length;
              case "ucs2":
              case "ucs-2":
              case "utf16le":
              case "utf-16le":
                return 2 * i;
              case "hex":
                return i >>> 1;
              case "base64":
                return Y(e).length;
              default:
                if (n) return H(e).length;
                (t = ("" + t).toLowerCase()), (n = !0);
            }
        }
        function g(e, t, i) {
          var n = !1;
          if (((void 0 === t || t < 0) && (t = 0), t > this.length)) return "";
          if (((void 0 === i || i > this.length) && (i = this.length), i <= 0))
            return "";
          if ((i >>>= 0) <= (t >>>= 0)) return "";
          for (e || (e = "utf8"); ; )
            switch (e) {
              case "hex":
                return I(this, t, i);
              case "utf8":
              case "utf-8":
                return k(this, t, i);
              case "ascii":
                return C(this, t, i);
              case "latin1":
              case "binary":
                return O(this, t, i);
              case "base64":
                return A(this, t, i);
              case "ucs2":
              case "ucs-2":
              case "utf16le":
              case "utf-16le":
                return M(this, t, i);
              default:
                if (n) throw new TypeError("Unknown encoding: " + e);
                (e = (e + "").toLowerCase()), (n = !0);
            }
        }
        function m(e, t, i) {
          var n = e[t];
          (e[t] = e[i]), (e[i] = n);
        }
        function v(e, t, i, n, r) {
          if (0 === e.length) return -1;
          if (
            ("string" == typeof i
              ? ((n = i), (i = 0))
              : i > 2147483647
              ? (i = 2147483647)
              : i < -2147483648 && (i = -2147483648),
            (i = +i),
            isNaN(i) && (i = r ? 0 : e.length - 1),
            i < 0 && (i = e.length + i),
            i >= e.length)
          ) {
            if (r) return -1;
            i = e.length - 1;
          } else if (i < 0) {
            if (!r) return -1;
            i = 0;
          }
          if (("string" == typeof t && (t = l.from(t, n)), l.isBuffer(t)))
            return 0 === t.length ? -1 : b(e, t, i, n, r);
          if ("number" == typeof t)
            return (
              (t &= 255),
              l.TYPED_ARRAY_SUPPORT &&
              "function" == typeof Uint8Array.prototype.indexOf
                ? r
                  ? Uint8Array.prototype.indexOf.call(e, t, i)
                  : Uint8Array.prototype.lastIndexOf.call(e, t, i)
                : b(e, [t], i, n, r)
            );
          throw new TypeError("val must be string, number or Buffer");
        }
        function b(e, t, i, n, r) {
          var a,
            o = 1,
            s = e.length,
            l = t.length;
          if (
            void 0 !== n &&
            ("ucs2" === (n = String(n).toLowerCase()) ||
              "ucs-2" === n ||
              "utf16le" === n ||
              "utf-16le" === n)
          ) {
            if (e.length < 2 || t.length < 2) return -1;
            (o = 2), (s /= 2), (l /= 2), (i /= 2);
          }
          function c(e, t) {
            return 1 === o ? e[t] : e.readUInt16BE(t * o);
          }
          if (r) {
            var u = -1;
            for (a = i; a < s; a++)
              if (c(e, a) === c(t, -1 === u ? 0 : a - u)) {
                if ((-1 === u && (u = a), a - u + 1 === l)) return u * o;
              } else -1 !== u && (a -= a - u), (u = -1);
          } else
            for (i + l > s && (i = s - l), a = i; a >= 0; a--) {
              for (var d = !0, h = 0; h < l; h++)
                if (c(e, a + h) !== c(t, h)) {
                  d = !1;
                  break;
                }
              if (d) return a;
            }
          return -1;
        }
        function y(e, t, i, n) {
          i = Number(i) || 0;
          var r = e.length - i;
          n ? (n = Number(n)) > r && (n = r) : (n = r);
          var a = t.length;
          if (a % 2 != 0) throw new TypeError("Invalid hex string");
          n > a / 2 && (n = a / 2);
          for (var o = 0; o < n; ++o) {
            var s = parseInt(t.substr(2 * o, 2), 16);
            if (isNaN(s)) return o;
            e[i + o] = s;
          }
          return o;
        }
        function x(e, t, i, n) {
          return X(H(t, e.length - i), e, i, n);
        }
        function w(e, t, i, n) {
          return X(
            (function (e) {
              for (var t = [], i = 0; i < e.length; ++i)
                t.push(255 & e.charCodeAt(i));
              return t;
            })(t),
            e,
            i,
            n
          );
        }
        function E(e, t, i, n) {
          return w(e, t, i, n);
        }
        function _(e, t, i, n) {
          return X(Y(t), e, i, n);
        }
        function S(e, t, i, n) {
          return X(
            (function (e, t) {
              for (
                var i, n, r, a = [], o = 0;
                o < e.length && !((t -= 2) < 0);
                ++o
              )
                (n = (i = e.charCodeAt(o)) >> 8),
                  (r = i % 256),
                  a.push(r),
                  a.push(n);
              return a;
            })(t, e.length - i),
            e,
            i,
            n
          );
        }
        function A(e, t, i) {
          return 0 === t && i === e.length
            ? n.fromByteArray(e)
            : n.fromByteArray(e.slice(t, i));
        }
        function k(e, t, i) {
          i = Math.min(e.length, i);
          for (var n = [], r = t; r < i; ) {
            var a,
              o,
              s,
              l,
              c = e[r],
              u = null,
              d = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
            if (r + d <= i)
              switch (d) {
                case 1:
                  c < 128 && (u = c);
                  break;
                case 2:
                  128 == (192 & (a = e[r + 1])) &&
                    (l = ((31 & c) << 6) | (63 & a)) > 127 &&
                    (u = l);
                  break;
                case 3:
                  (a = e[r + 1]),
                    (o = e[r + 2]),
                    128 == (192 & a) &&
                      128 == (192 & o) &&
                      (l = ((15 & c) << 12) | ((63 & a) << 6) | (63 & o)) >
                        2047 &&
                      (l < 55296 || l > 57343) &&
                      (u = l);
                  break;
                case 4:
                  (a = e[r + 1]),
                    (o = e[r + 2]),
                    (s = e[r + 3]),
                    128 == (192 & a) &&
                      128 == (192 & o) &&
                      128 == (192 & s) &&
                      (l =
                        ((15 & c) << 18) |
                        ((63 & a) << 12) |
                        ((63 & o) << 6) |
                        (63 & s)) > 65535 &&
                      l < 1114112 &&
                      (u = l);
              }
            null === u
              ? ((u = 65533), (d = 1))
              : u > 65535 &&
                ((u -= 65536),
                n.push(((u >>> 10) & 1023) | 55296),
                (u = 56320 | (1023 & u))),
              n.push(u),
              (r += d);
          }
          return (function (e) {
            var t = e.length;
            if (t <= T) return String.fromCharCode.apply(String, e);
            var i = "",
              n = 0;
            for (; n < t; )
              i += String.fromCharCode.apply(String, e.slice(n, (n += T)));
            return i;
          })(n);
        }
        (t.lW = l),
          (t.h2 = 50),
          (l.TYPED_ARRAY_SUPPORT =
            void 0 !== i.g.TYPED_ARRAY_SUPPORT
              ? i.g.TYPED_ARRAY_SUPPORT
              : (function () {
                  try {
                    var e = new Uint8Array(1);
                    return (
                      (e.__proto__ = {
                        __proto__: Uint8Array.prototype,
                        foo: function () {
                          return 42;
                        },
                      }),
                      42 === e.foo() &&
                        "function" == typeof e.subarray &&
                        0 === e.subarray(1, 1).byteLength
                    );
                  } catch (e) {
                    return !1;
                  }
                })()),
          o(),
          (l.poolSize = 8192),
          (l._augment = function (e) {
            return (e.__proto__ = l.prototype), e;
          }),
          (l.from = function (e, t, i) {
            return c(null, e, t, i);
          }),
          l.TYPED_ARRAY_SUPPORT &&
            ((l.prototype.__proto__ = Uint8Array.prototype),
            (l.__proto__ = Uint8Array),
            "undefined" != typeof Symbol &&
              Symbol.species &&
              l[Symbol.species] === l &&
              Object.defineProperty(l, Symbol.species, {
                value: null,
                configurable: !0,
              })),
          (l.alloc = function (e, t, i) {
            return (function (e, t, i, n) {
              return (
                u(t),
                t <= 0
                  ? s(e, t)
                  : void 0 !== i
                  ? "string" == typeof n
                    ? s(e, t).fill(i, n)
                    : s(e, t).fill(i)
                  : s(e, t)
              );
            })(null, e, t, i);
          }),
          (l.allocUnsafe = function (e) {
            return d(null, e);
          }),
          (l.allocUnsafeSlow = function (e) {
            return d(null, e);
          }),
          (l.isBuffer = function (e) {
            return !(null == e || !e._isBuffer);
          }),
          (l.compare = function (e, t) {
            if (!l.isBuffer(e) || !l.isBuffer(t))
              throw new TypeError("Arguments must be Buffers");
            if (e === t) return 0;
            for (
              var i = e.length, n = t.length, r = 0, a = Math.min(i, n);
              r < a;
              ++r
            )
              if (e[r] !== t[r]) {
                (i = e[r]), (n = t[r]);
                break;
              }
            return i < n ? -1 : n < i ? 1 : 0;
          }),
          (l.isEncoding = function (e) {
            switch (String(e).toLowerCase()) {
              case "hex":
              case "utf8":
              case "utf-8":
              case "ascii":
              case "latin1":
              case "binary":
              case "base64":
              case "ucs2":
              case "ucs-2":
              case "utf16le":
              case "utf-16le":
                return !0;
              default:
                return !1;
            }
          }),
          (l.concat = function (e, t) {
            if (!a(e))
              throw new TypeError(
                '"list" argument must be an Array of Buffers'
              );
            if (0 === e.length) return l.alloc(0);
            var i;
            if (void 0 === t)
              for (t = 0, i = 0; i < e.length; ++i) t += e[i].length;
            var n = l.allocUnsafe(t),
              r = 0;
            for (i = 0; i < e.length; ++i) {
              var o = e[i];
              if (!l.isBuffer(o))
                throw new TypeError(
                  '"list" argument must be an Array of Buffers'
                );
              o.copy(n, r), (r += o.length);
            }
            return n;
          }),
          (l.byteLength = p),
          (l.prototype._isBuffer = !0),
          (l.prototype.swap16 = function () {
            var e = this.length;
            if (e % 2 != 0)
              throw new RangeError("Buffer size must be a multiple of 16-bits");
            for (var t = 0; t < e; t += 2) m(this, t, t + 1);
            return this;
          }),
          (l.prototype.swap32 = function () {
            var e = this.length;
            if (e % 4 != 0)
              throw new RangeError("Buffer size must be a multiple of 32-bits");
            for (var t = 0; t < e; t += 4)
              m(this, t, t + 3), m(this, t + 1, t + 2);
            return this;
          }),
          (l.prototype.swap64 = function () {
            var e = this.length;
            if (e % 8 != 0)
              throw new RangeError("Buffer size must be a multiple of 64-bits");
            for (var t = 0; t < e; t += 8)
              m(this, t, t + 7),
                m(this, t + 1, t + 6),
                m(this, t + 2, t + 5),
                m(this, t + 3, t + 4);
            return this;
          }),
          (l.prototype.toString = function () {
            var e = 0 | this.length;
            return 0 === e
              ? ""
              : 0 === arguments.length
              ? k(this, 0, e)
              : g.apply(this, arguments);
          }),
          (l.prototype.equals = function (e) {
            if (!l.isBuffer(e))
              throw new TypeError("Argument must be a Buffer");
            return this === e || 0 === l.compare(this, e);
          }),
          (l.prototype.inspect = function () {
            var e = "",
              i = t.h2;
            return (
              this.length > 0 &&
                ((e = this.toString("hex", 0, i).match(/.{2}/g).join(" ")),
                this.length > i && (e += " ... ")),
              "<Buffer " + e + ">"
            );
          }),
          (l.prototype.compare = function (e, t, i, n, r) {
            if (!l.isBuffer(e))
              throw new TypeError("Argument must be a Buffer");
            if (
              (void 0 === t && (t = 0),
              void 0 === i && (i = e ? e.length : 0),
              void 0 === n && (n = 0),
              void 0 === r && (r = this.length),
              t < 0 || i > e.length || n < 0 || r > this.length)
            )
              throw new RangeError("out of range index");
            if (n >= r && t >= i) return 0;
            if (n >= r) return -1;
            if (t >= i) return 1;
            if (this === e) return 0;
            for (
              var a = (r >>>= 0) - (n >>>= 0),
                o = (i >>>= 0) - (t >>>= 0),
                s = Math.min(a, o),
                c = this.slice(n, r),
                u = e.slice(t, i),
                d = 0;
              d < s;
              ++d
            )
              if (c[d] !== u[d]) {
                (a = c[d]), (o = u[d]);
                break;
              }
            return a < o ? -1 : o < a ? 1 : 0;
          }),
          (l.prototype.includes = function (e, t, i) {
            return -1 !== this.indexOf(e, t, i);
          }),
          (l.prototype.indexOf = function (e, t, i) {
            return v(this, e, t, i, !0);
          }),
          (l.prototype.lastIndexOf = function (e, t, i) {
            return v(this, e, t, i, !1);
          }),
          (l.prototype.write = function (e, t, i, n) {
            if (void 0 === t) (n = "utf8"), (i = this.length), (t = 0);
            else if (void 0 === i && "string" == typeof t)
              (n = t), (i = this.length), (t = 0);
            else {
              if (!isFinite(t))
                throw new Error(
                  "Buffer.write(string, encoding, offset[, length]) is no longer supported"
                );
              (t |= 0),
                isFinite(i)
                  ? ((i |= 0), void 0 === n && (n = "utf8"))
                  : ((n = i), (i = void 0));
            }
            var r = this.length - t;
            if (
              ((void 0 === i || i > r) && (i = r),
              (e.length > 0 && (i < 0 || t < 0)) || t > this.length)
            )
              throw new RangeError("Attempt to write outside buffer bounds");
            n || (n = "utf8");
            for (var a = !1; ; )
              switch (n) {
                case "hex":
                  return y(this, e, t, i);
                case "utf8":
                case "utf-8":
                  return x(this, e, t, i);
                case "ascii":
                  return w(this, e, t, i);
                case "latin1":
                case "binary":
                  return E(this, e, t, i);
                case "base64":
                  return _(this, e, t, i);
                case "ucs2":
                case "ucs-2":
                case "utf16le":
                case "utf-16le":
                  return S(this, e, t, i);
                default:
                  if (a) throw new TypeError("Unknown encoding: " + n);
                  (n = ("" + n).toLowerCase()), (a = !0);
              }
          }),
          (l.prototype.toJSON = function () {
            return {
              type: "Buffer",
              data: Array.prototype.slice.call(this._arr || this, 0),
            };
          });
        var T = 4096;
        function C(e, t, i) {
          var n = "";
          i = Math.min(e.length, i);
          for (var r = t; r < i; ++r) n += String.fromCharCode(127 & e[r]);
          return n;
        }
        function O(e, t, i) {
          var n = "";
          i = Math.min(e.length, i);
          for (var r = t; r < i; ++r) n += String.fromCharCode(e[r]);
          return n;
        }
        function I(e, t, i) {
          var n = e.length;
          (!t || t < 0) && (t = 0), (!i || i < 0 || i > n) && (i = n);
          for (var r = "", a = t; a < i; ++a) r += j(e[a]);
          return r;
        }
        function M(e, t, i) {
          for (var n = e.slice(t, i), r = "", a = 0; a < n.length; a += 2)
            r += String.fromCharCode(n[a] + 256 * n[a + 1]);
          return r;
        }
        function L(e, t, i) {
          if (e % 1 != 0 || e < 0) throw new RangeError("offset is not uint");
          if (e + t > i)
            throw new RangeError("Trying to access beyond buffer length");
        }
        function P(e, t, i, n, r, a) {
          if (!l.isBuffer(e))
            throw new TypeError('"buffer" argument must be a Buffer instance');
          if (t > r || t < a)
            throw new RangeError('"value" argument is out of bounds');
          if (i + n > e.length) throw new RangeError("Index out of range");
        }
        function D(e, t, i, n) {
          t < 0 && (t = 65535 + t + 1);
          for (var r = 0, a = Math.min(e.length - i, 2); r < a; ++r)
            e[i + r] =
              (t & (255 << (8 * (n ? r : 1 - r)))) >>> (8 * (n ? r : 1 - r));
        }
        function R(e, t, i, n) {
          t < 0 && (t = 4294967295 + t + 1);
          for (var r = 0, a = Math.min(e.length - i, 4); r < a; ++r)
            e[i + r] = (t >>> (8 * (n ? r : 3 - r))) & 255;
        }
        function N(e, t, i, n, r, a) {
          if (i + n > e.length) throw new RangeError("Index out of range");
          if (i < 0) throw new RangeError("Index out of range");
        }
        function F(e, t, i, n, a) {
          return a || N(e, 0, i, 4), r.write(e, t, i, n, 23, 4), i + 4;
        }
        function B(e, t, i, n, a) {
          return a || N(e, 0, i, 8), r.write(e, t, i, n, 52, 8), i + 8;
        }
        (l.prototype.slice = function (e, t) {
          var i,
            n = this.length;
          if (
            ((e = ~~e) < 0 ? (e += n) < 0 && (e = 0) : e > n && (e = n),
            (t = void 0 === t ? n : ~~t) < 0
              ? (t += n) < 0 && (t = 0)
              : t > n && (t = n),
            t < e && (t = e),
            l.TYPED_ARRAY_SUPPORT)
          )
            (i = this.subarray(e, t)).__proto__ = l.prototype;
          else {
            var r = t - e;
            i = new l(r, void 0);
            for (var a = 0; a < r; ++a) i[a] = this[a + e];
          }
          return i;
        }),
          (l.prototype.readUIntLE = function (e, t, i) {
            (e |= 0), (t |= 0), i || L(e, t, this.length);
            for (var n = this[e], r = 1, a = 0; ++a < t && (r *= 256); )
              n += this[e + a] * r;
            return n;
          }),
          (l.prototype.readUIntBE = function (e, t, i) {
            (e |= 0), (t |= 0), i || L(e, t, this.length);
            for (var n = this[e + --t], r = 1; t > 0 && (r *= 256); )
              n += this[e + --t] * r;
            return n;
          }),
          (l.prototype.readUInt8 = function (e, t) {
            return t || L(e, 1, this.length), this[e];
          }),
          (l.prototype.readUInt16LE = function (e, t) {
            return t || L(e, 2, this.length), this[e] | (this[e + 1] << 8);
          }),
          (l.prototype.readUInt16BE = function (e, t) {
            return t || L(e, 2, this.length), (this[e] << 8) | this[e + 1];
          }),
          (l.prototype.readUInt32LE = function (e, t) {
            return (
              t || L(e, 4, this.length),
              (this[e] | (this[e + 1] << 8) | (this[e + 2] << 16)) +
                16777216 * this[e + 3]
            );
          }),
          (l.prototype.readUInt32BE = function (e, t) {
            return (
              t || L(e, 4, this.length),
              16777216 * this[e] +
                ((this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3])
            );
          }),
          (l.prototype.readIntLE = function (e, t, i) {
            (e |= 0), (t |= 0), i || L(e, t, this.length);
            for (var n = this[e], r = 1, a = 0; ++a < t && (r *= 256); )
              n += this[e + a] * r;
            return n >= (r *= 128) && (n -= Math.pow(2, 8 * t)), n;
          }),
          (l.prototype.readIntBE = function (e, t, i) {
            (e |= 0), (t |= 0), i || L(e, t, this.length);
            for (var n = t, r = 1, a = this[e + --n]; n > 0 && (r *= 256); )
              a += this[e + --n] * r;
            return a >= (r *= 128) && (a -= Math.pow(2, 8 * t)), a;
          }),
          (l.prototype.readInt8 = function (e, t) {
            return (
              t || L(e, 1, this.length),
              128 & this[e] ? -1 * (255 - this[e] + 1) : this[e]
            );
          }),
          (l.prototype.readInt16LE = function (e, t) {
            t || L(e, 2, this.length);
            var i = this[e] | (this[e + 1] << 8);
            return 32768 & i ? 4294901760 | i : i;
          }),
          (l.prototype.readInt16BE = function (e, t) {
            t || L(e, 2, this.length);
            var i = this[e + 1] | (this[e] << 8);
            return 32768 & i ? 4294901760 | i : i;
          }),
          (l.prototype.readInt32LE = function (e, t) {
            return (
              t || L(e, 4, this.length),
              this[e] |
                (this[e + 1] << 8) |
                (this[e + 2] << 16) |
                (this[e + 3] << 24)
            );
          }),
          (l.prototype.readInt32BE = function (e, t) {
            return (
              t || L(e, 4, this.length),
              (this[e] << 24) |
                (this[e + 1] << 16) |
                (this[e + 2] << 8) |
                this[e + 3]
            );
          }),
          (l.prototype.readFloatLE = function (e, t) {
            return t || L(e, 4, this.length), r.read(this, e, !0, 23, 4);
          }),
          (l.prototype.readFloatBE = function (e, t) {
            return t || L(e, 4, this.length), r.read(this, e, !1, 23, 4);
          }),
          (l.prototype.readDoubleLE = function (e, t) {
            return t || L(e, 8, this.length), r.read(this, e, !0, 52, 8);
          }),
          (l.prototype.readDoubleBE = function (e, t) {
            return t || L(e, 8, this.length), r.read(this, e, !1, 52, 8);
          }),
          (l.prototype.writeUIntLE = function (e, t, i, n) {
            ((e = +e), (t |= 0), (i |= 0), n) ||
              P(this, e, t, i, Math.pow(2, 8 * i) - 1, 0);
            var r = 1,
              a = 0;
            for (this[t] = 255 & e; ++a < i && (r *= 256); )
              this[t + a] = (e / r) & 255;
            return t + i;
          }),
          (l.prototype.writeUIntBE = function (e, t, i, n) {
            ((e = +e), (t |= 0), (i |= 0), n) ||
              P(this, e, t, i, Math.pow(2, 8 * i) - 1, 0);
            var r = i - 1,
              a = 1;
            for (this[t + r] = 255 & e; --r >= 0 && (a *= 256); )
              this[t + r] = (e / a) & 255;
            return t + i;
          }),
          (l.prototype.writeUInt8 = function (e, t, i) {
            return (
              (e = +e),
              (t |= 0),
              i || P(this, e, t, 1, 255, 0),
              l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)),
              (this[t] = 255 & e),
              t + 1
            );
          }),
          (l.prototype.writeUInt16LE = function (e, t, i) {
            return (
              (e = +e),
              (t |= 0),
              i || P(this, e, t, 2, 65535, 0),
              l.TYPED_ARRAY_SUPPORT
                ? ((this[t] = 255 & e), (this[t + 1] = e >>> 8))
                : D(this, e, t, !0),
              t + 2
            );
          }),
          (l.prototype.writeUInt16BE = function (e, t, i) {
            return (
              (e = +e),
              (t |= 0),
              i || P(this, e, t, 2, 65535, 0),
              l.TYPED_ARRAY_SUPPORT
                ? ((this[t] = e >>> 8), (this[t + 1] = 255 & e))
                : D(this, e, t, !1),
              t + 2
            );
          }),
          (l.prototype.writeUInt32LE = function (e, t, i) {
            return (
              (e = +e),
              (t |= 0),
              i || P(this, e, t, 4, 4294967295, 0),
              l.TYPED_ARRAY_SUPPORT
                ? ((this[t + 3] = e >>> 24),
                  (this[t + 2] = e >>> 16),
                  (this[t + 1] = e >>> 8),
                  (this[t] = 255 & e))
                : R(this, e, t, !0),
              t + 4
            );
          }),
          (l.prototype.writeUInt32BE = function (e, t, i) {
            return (
              (e = +e),
              (t |= 0),
              i || P(this, e, t, 4, 4294967295, 0),
              l.TYPED_ARRAY_SUPPORT
                ? ((this[t] = e >>> 24),
                  (this[t + 1] = e >>> 16),
                  (this[t + 2] = e >>> 8),
                  (this[t + 3] = 255 & e))
                : R(this, e, t, !1),
              t + 4
            );
          }),
          (l.prototype.writeIntLE = function (e, t, i, n) {
            if (((e = +e), (t |= 0), !n)) {
              var r = Math.pow(2, 8 * i - 1);
              P(this, e, t, i, r - 1, -r);
            }
            var a = 0,
              o = 1,
              s = 0;
            for (this[t] = 255 & e; ++a < i && (o *= 256); )
              e < 0 && 0 === s && 0 !== this[t + a - 1] && (s = 1),
                (this[t + a] = (((e / o) >> 0) - s) & 255);
            return t + i;
          }),
          (l.prototype.writeIntBE = function (e, t, i, n) {
            if (((e = +e), (t |= 0), !n)) {
              var r = Math.pow(2, 8 * i - 1);
              P(this, e, t, i, r - 1, -r);
            }
            var a = i - 1,
              o = 1,
              s = 0;
            for (this[t + a] = 255 & e; --a >= 0 && (o *= 256); )
              e < 0 && 0 === s && 0 !== this[t + a + 1] && (s = 1),
                (this[t + a] = (((e / o) >> 0) - s) & 255);
            return t + i;
          }),
          (l.prototype.writeInt8 = function (e, t, i) {
            return (
              (e = +e),
              (t |= 0),
              i || P(this, e, t, 1, 127, -128),
              l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)),
              e < 0 && (e = 255 + e + 1),
              (this[t] = 255 & e),
              t + 1
            );
          }),
          (l.prototype.writeInt16LE = function (e, t, i) {
            return (
              (e = +e),
              (t |= 0),
              i || P(this, e, t, 2, 32767, -32768),
              l.TYPED_ARRAY_SUPPORT
                ? ((this[t] = 255 & e), (this[t + 1] = e >>> 8))
                : D(this, e, t, !0),
              t + 2
            );
          }),
          (l.prototype.writeInt16BE = function (e, t, i) {
            return (
              (e = +e),
              (t |= 0),
              i || P(this, e, t, 2, 32767, -32768),
              l.TYPED_ARRAY_SUPPORT
                ? ((this[t] = e >>> 8), (this[t + 1] = 255 & e))
                : D(this, e, t, !1),
              t + 2
            );
          }),
          (l.prototype.writeInt32LE = function (e, t, i) {
            return (
              (e = +e),
              (t |= 0),
              i || P(this, e, t, 4, 2147483647, -2147483648),
              l.TYPED_ARRAY_SUPPORT
                ? ((this[t] = 255 & e),
                  (this[t + 1] = e >>> 8),
                  (this[t + 2] = e >>> 16),
                  (this[t + 3] = e >>> 24))
                : R(this, e, t, !0),
              t + 4
            );
          }),
          (l.prototype.writeInt32BE = function (e, t, i) {
            return (
              (e = +e),
              (t |= 0),
              i || P(this, e, t, 4, 2147483647, -2147483648),
              e < 0 && (e = 4294967295 + e + 1),
              l.TYPED_ARRAY_SUPPORT
                ? ((this[t] = e >>> 24),
                  (this[t + 1] = e >>> 16),
                  (this[t + 2] = e >>> 8),
                  (this[t + 3] = 255 & e))
                : R(this, e, t, !1),
              t + 4
            );
          }),
          (l.prototype.writeFloatLE = function (e, t, i) {
            return F(this, e, t, !0, i);
          }),
          (l.prototype.writeFloatBE = function (e, t, i) {
            return F(this, e, t, !1, i);
          }),
          (l.prototype.writeDoubleLE = function (e, t, i) {
            return B(this, e, t, !0, i);
          }),
          (l.prototype.writeDoubleBE = function (e, t, i) {
            return B(this, e, t, !1, i);
          }),
          (l.prototype.copy = function (e, t, i, n) {
            if (
              (i || (i = 0),
              n || 0 === n || (n = this.length),
              t >= e.length && (t = e.length),
              t || (t = 0),
              n > 0 && n < i && (n = i),
              n === i)
            )
              return 0;
            if (0 === e.length || 0 === this.length) return 0;
            if (t < 0) throw new RangeError("targetStart out of bounds");
            if (i < 0 || i >= this.length)
              throw new RangeError("sourceStart out of bounds");
            if (n < 0) throw new RangeError("sourceEnd out of bounds");
            n > this.length && (n = this.length),
              e.length - t < n - i && (n = e.length - t + i);
            var r,
              a = n - i;
            if (this === e && i < t && t < n)
              for (r = a - 1; r >= 0; --r) e[r + t] = this[r + i];
            else if (a < 1e3 || !l.TYPED_ARRAY_SUPPORT)
              for (r = 0; r < a; ++r) e[r + t] = this[r + i];
            else Uint8Array.prototype.set.call(e, this.subarray(i, i + a), t);
            return a;
          }),
          (l.prototype.fill = function (e, t, i, n) {
            if ("string" == typeof e) {
              if (
                ("string" == typeof t
                  ? ((n = t), (t = 0), (i = this.length))
                  : "string" == typeof i && ((n = i), (i = this.length)),
                1 === e.length)
              ) {
                var r = e.charCodeAt(0);
                r < 256 && (e = r);
              }
              if (void 0 !== n && "string" != typeof n)
                throw new TypeError("encoding must be a string");
              if ("string" == typeof n && !l.isEncoding(n))
                throw new TypeError("Unknown encoding: " + n);
            } else "number" == typeof e && (e &= 255);
            if (t < 0 || this.length < t || this.length < i)
              throw new RangeError("Out of range index");
            if (i <= t) return this;
            var a;
            if (
              ((t >>>= 0),
              (i = void 0 === i ? this.length : i >>> 0),
              e || (e = 0),
              "number" == typeof e)
            )
              for (a = t; a < i; ++a) this[a] = e;
            else {
              var o = l.isBuffer(e) ? e : H(new l(e, n).toString()),
                s = o.length;
              for (a = 0; a < i - t; ++a) this[a + t] = o[a % s];
            }
            return this;
          });
        var z = /[^+\/0-9A-Za-z-_]/g;
        function j(e) {
          return e < 16 ? "0" + e.toString(16) : e.toString(16);
        }
        function H(e, t) {
          var i;
          t = t || 1 / 0;
          for (var n = e.length, r = null, a = [], o = 0; o < n; ++o) {
            if ((i = e.charCodeAt(o)) > 55295 && i < 57344) {
              if (!r) {
                if (i > 56319) {
                  (t -= 3) > -1 && a.push(239, 191, 189);
                  continue;
                }
                if (o + 1 === n) {
                  (t -= 3) > -1 && a.push(239, 191, 189);
                  continue;
                }
                r = i;
                continue;
              }
              if (i < 56320) {
                (t -= 3) > -1 && a.push(239, 191, 189), (r = i);
                continue;
              }
              i = 65536 + (((r - 55296) << 10) | (i - 56320));
            } else r && (t -= 3) > -1 && a.push(239, 191, 189);
            if (((r = null), i < 128)) {
              if ((t -= 1) < 0) break;
              a.push(i);
            } else if (i < 2048) {
              if ((t -= 2) < 0) break;
              a.push((i >> 6) | 192, (63 & i) | 128);
            } else if (i < 65536) {
              if ((t -= 3) < 0) break;
              a.push((i >> 12) | 224, ((i >> 6) & 63) | 128, (63 & i) | 128);
            } else {
              if (!(i < 1114112)) throw new Error("Invalid code point");
              if ((t -= 4) < 0) break;
              a.push(
                (i >> 18) | 240,
                ((i >> 12) & 63) | 128,
                ((i >> 6) & 63) | 128,
                (63 & i) | 128
              );
            }
          }
          return a;
        }
        function Y(e) {
          return n.toByteArray(
            (function (e) {
              if (
                (e = (function (e) {
                  return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "");
                })(e).replace(z, "")).length < 2
              )
                return "";
              for (; e.length % 4 != 0; ) e += "=";
              return e;
            })(e)
          );
        }
        function X(e, t, i, n) {
          for (var r = 0; r < n && !(r + i >= t.length || r >= e.length); ++r)
            t[r + i] = e[r];
          return r;
        }
      },
      358: (e) => {
        var t = !(
          "undefined" == typeof window ||
          !window.document ||
          !window.document.createElement
        );
        e.exports = t;
      },
      877: function (e) {
        e.exports = (function (e) {
          function t(n) {
            if (i[n]) return i[n].exports;
            var r = (i[n] = { exports: {}, id: n, loaded: !1 });
            return (
              e[n].call(r.exports, r, r.exports, t), (r.loaded = !0), r.exports
            );
          }
          var i = {};
          return (t.m = e), (t.c = i), (t.p = ""), t(0);
        })([
          function (e, t, i) {
            (function (t) {
              "use strict";
              var n = function (e, t) {
                var i = this,
                  r = !1;
                if (
                  ("string" == typeof e
                    ? ((i.element = document.querySelector(e)),
                      (r = document.querySelectorAll(e).length > 1))
                    : void 0 !== e.length && e.length > 0
                    ? ((i.element = e[0]), (r = e.length > 1))
                    : (i.element = e),
                  !i.element)
                )
                  throw new Error("[cleave.js] Please check the element");
                if (r)
                  try {
                    console.warn(
                      "[cleave.js] Multiple input fields matched, cleave.js will only take the first one."
                    );
                  } catch (e) {}
                (t.initValue = i.element.value),
                  (i.properties = n.DefaultProperties.assign({}, t)),
                  i.init();
              };
              (n.prototype = {
                init: function () {
                  var e = this,
                    t = e.properties;
                  return t.numeral ||
                    t.phone ||
                    t.creditCard ||
                    t.time ||
                    t.date ||
                    0 !== t.blocksLength ||
                    t.prefix
                    ? ((t.maxLength = n.Util.getMaxLength(t.blocks)),
                      (e.isAndroid = n.Util.isAndroid()),
                      (e.lastInputValue = ""),
                      (e.isBackward = ""),
                      (e.onChangeListener = e.onChange.bind(e)),
                      (e.onKeyDownListener = e.onKeyDown.bind(e)),
                      (e.onFocusListener = e.onFocus.bind(e)),
                      (e.onCutListener = e.onCut.bind(e)),
                      (e.onCopyListener = e.onCopy.bind(e)),
                      e.initSwapHiddenInput(),
                      e.element.addEventListener("input", e.onChangeListener),
                      e.element.addEventListener(
                        "keydown",
                        e.onKeyDownListener
                      ),
                      e.element.addEventListener("focus", e.onFocusListener),
                      e.element.addEventListener("cut", e.onCutListener),
                      e.element.addEventListener("copy", e.onCopyListener),
                      e.initPhoneFormatter(),
                      e.initDateFormatter(),
                      e.initTimeFormatter(),
                      e.initNumeralFormatter(),
                      void (
                        (t.initValue || (t.prefix && !t.noImmediatePrefix)) &&
                        e.onInput(t.initValue)
                      ))
                    : void e.onInput(t.initValue);
                },
                initSwapHiddenInput: function () {
                  var e = this;
                  if (e.properties.swapHiddenInput) {
                    var t = e.element.cloneNode(!0);
                    e.element.parentNode.insertBefore(t, e.element),
                      (e.elementSwapHidden = e.element),
                      (e.elementSwapHidden.type = "hidden"),
                      (e.element = t),
                      (e.element.id = "");
                  }
                },
                initNumeralFormatter: function () {
                  var e = this.properties;
                  e.numeral &&
                    (e.numeralFormatter = new n.NumeralFormatter(
                      e.numeralDecimalMark,
                      e.numeralIntegerScale,
                      e.numeralDecimalScale,
                      e.numeralThousandsGroupStyle,
                      e.numeralPositiveOnly,
                      e.stripLeadingZeroes,
                      e.prefix,
                      e.signBeforePrefix,
                      e.tailPrefix,
                      e.delimiter
                    ));
                },
                initTimeFormatter: function () {
                  var e = this.properties;
                  e.time &&
                    ((e.timeFormatter = new n.TimeFormatter(
                      e.timePattern,
                      e.timeFormat
                    )),
                    (e.blocks = e.timeFormatter.getBlocks()),
                    (e.blocksLength = e.blocks.length),
                    (e.maxLength = n.Util.getMaxLength(e.blocks)));
                },
                initDateFormatter: function () {
                  var e = this.properties;
                  e.date &&
                    ((e.dateFormatter = new n.DateFormatter(
                      e.datePattern,
                      e.dateMin,
                      e.dateMax
                    )),
                    (e.blocks = e.dateFormatter.getBlocks()),
                    (e.blocksLength = e.blocks.length),
                    (e.maxLength = n.Util.getMaxLength(e.blocks)));
                },
                initPhoneFormatter: function () {
                  var e = this.properties;
                  if (e.phone)
                    try {
                      e.phoneFormatter = new n.PhoneFormatter(
                        new e.root.Cleave.AsYouTypeFormatter(e.phoneRegionCode),
                        e.delimiter
                      );
                    } catch (e) {
                      throw new Error(
                        "[cleave.js] Please include phone-type-formatter.{country}.js lib"
                      );
                    }
                },
                onKeyDown: function (e) {
                  var t = this,
                    i = e.which || e.keyCode;
                  (t.lastInputValue = t.element.value),
                    (t.isBackward = 8 === i);
                },
                onChange: function (e) {
                  var t = this,
                    i = t.properties,
                    r = n.Util;
                  t.isBackward =
                    t.isBackward || "deleteContentBackward" === e.inputType;
                  var a = r.getPostDelimiter(
                    t.lastInputValue,
                    i.delimiter,
                    i.delimiters
                  );
                  t.isBackward && a
                    ? (i.postDelimiterBackspace = a)
                    : (i.postDelimiterBackspace = !1),
                    this.onInput(this.element.value);
                },
                onFocus: function () {
                  var e = this,
                    t = e.properties;
                  (e.lastInputValue = e.element.value),
                    t.prefix &&
                      t.noImmediatePrefix &&
                      !e.element.value &&
                      this.onInput(t.prefix),
                    n.Util.fixPrefixCursor(
                      e.element,
                      t.prefix,
                      t.delimiter,
                      t.delimiters
                    );
                },
                onCut: function (e) {
                  n.Util.checkFullSelection(this.element.value) &&
                    (this.copyClipboardData(e), this.onInput(""));
                },
                onCopy: function (e) {
                  n.Util.checkFullSelection(this.element.value) &&
                    this.copyClipboardData(e);
                },
                copyClipboardData: function (e) {
                  var t = this,
                    i = t.properties,
                    r = n.Util,
                    a = t.element.value,
                    o = "";
                  o = i.copyDelimiter
                    ? a
                    : r.stripDelimiters(a, i.delimiter, i.delimiters);
                  try {
                    e.clipboardData
                      ? e.clipboardData.setData("Text", o)
                      : window.clipboardData.setData("Text", o),
                      e.preventDefault();
                  } catch (e) {}
                },
                onInput: function (e) {
                  var t = this,
                    i = t.properties,
                    r = n.Util,
                    a = r.getPostDelimiter(e, i.delimiter, i.delimiters);
                  return (
                    i.numeral ||
                      !i.postDelimiterBackspace ||
                      a ||
                      (e = r.headStr(
                        e,
                        e.length - i.postDelimiterBackspace.length
                      )),
                    i.phone
                      ? (!i.prefix || (i.noImmediatePrefix && !e.length)
                          ? (i.result = i.phoneFormatter.format(e))
                          : (i.result =
                              i.prefix +
                              i.phoneFormatter
                                .format(e)
                                .slice(i.prefix.length)),
                        void t.updateValueState())
                      : i.numeral
                      ? (i.prefix && i.noImmediatePrefix && 0 === e.length
                          ? (i.result = "")
                          : (i.result = i.numeralFormatter.format(e)),
                        void t.updateValueState())
                      : (i.date && (e = i.dateFormatter.getValidatedDate(e)),
                        i.time && (e = i.timeFormatter.getValidatedTime(e)),
                        (e = r.stripDelimiters(e, i.delimiter, i.delimiters)),
                        (e = r.getPrefixStrippedValue(
                          e,
                          i.prefix,
                          i.prefixLength,
                          i.result,
                          i.delimiter,
                          i.delimiters,
                          i.noImmediatePrefix,
                          i.tailPrefix,
                          i.signBeforePrefix
                        )),
                        (e = i.numericOnly ? r.strip(e, /[^\d]/g) : e),
                        (e = i.uppercase ? e.toUpperCase() : e),
                        (e = i.lowercase ? e.toLowerCase() : e),
                        i.prefix &&
                        (i.tailPrefix ? (e += i.prefix) : (e = i.prefix + e),
                        0 === i.blocksLength)
                          ? ((i.result = e), void t.updateValueState())
                          : (i.creditCard && t.updateCreditCardPropsByValue(e),
                            (e = r.headStr(e, i.maxLength)),
                            (i.result = r.getFormattedValue(
                              e,
                              i.blocks,
                              i.blocksLength,
                              i.delimiter,
                              i.delimiters,
                              i.delimiterLazyShow
                            )),
                            void t.updateValueState()))
                  );
                },
                updateCreditCardPropsByValue: function (e) {
                  var t,
                    i = this,
                    r = i.properties,
                    a = n.Util;
                  a.headStr(r.result, 4) !== a.headStr(e, 4) &&
                    ((t = n.CreditCardDetector.getInfo(
                      e,
                      r.creditCardStrictMode
                    )),
                    (r.blocks = t.blocks),
                    (r.blocksLength = r.blocks.length),
                    (r.maxLength = a.getMaxLength(r.blocks)),
                    r.creditCardType !== t.type &&
                      ((r.creditCardType = t.type),
                      r.onCreditCardTypeChanged.call(i, r.creditCardType)));
                },
                updateValueState: function () {
                  var e = this,
                    t = n.Util,
                    i = e.properties;
                  if (e.element) {
                    var r = e.element.selectionEnd,
                      a = e.element.value,
                      o = i.result;
                    if (
                      ((r = t.getNextCursorPosition(
                        r,
                        a,
                        o,
                        i.delimiter,
                        i.delimiters
                      )),
                      e.isAndroid)
                    )
                      return void window.setTimeout(function () {
                        (e.element.value = o),
                          t.setSelection(e.element, r, i.document, !1),
                          e.callOnValueChanged();
                      }, 1);
                    (e.element.value = o),
                      i.swapHiddenInput &&
                        (e.elementSwapHidden.value = e.getRawValue()),
                      t.setSelection(e.element, r, i.document, !1),
                      e.callOnValueChanged();
                  }
                },
                callOnValueChanged: function () {
                  var e = this,
                    t = e.properties;
                  t.onValueChanged.call(e, {
                    target: {
                      name: e.element.name,
                      value: t.result,
                      rawValue: e.getRawValue(),
                    },
                  });
                },
                setPhoneRegionCode: function (e) {
                  var t = this;
                  (t.properties.phoneRegionCode = e),
                    t.initPhoneFormatter(),
                    t.onChange();
                },
                setRawValue: function (e) {
                  var t = this,
                    i = t.properties;
                  (e = null != e ? e.toString() : ""),
                    i.numeral && (e = e.replace(".", i.numeralDecimalMark)),
                    (i.postDelimiterBackspace = !1),
                    (t.element.value = e),
                    t.onInput(e);
                },
                getRawValue: function () {
                  var e = this,
                    t = e.properties,
                    i = n.Util,
                    r = e.element.value;
                  return (
                    t.rawValueTrimPrefix &&
                      (r = i.getPrefixStrippedValue(
                        r,
                        t.prefix,
                        t.prefixLength,
                        t.result,
                        t.delimiter,
                        t.delimiters,
                        t.noImmediatePrefix,
                        t.tailPrefix,
                        t.signBeforePrefix
                      )),
                    t.numeral
                      ? t.numeralFormatter.getRawValue(r)
                      : i.stripDelimiters(r, t.delimiter, t.delimiters)
                  );
                },
                getISOFormatDate: function () {
                  var e = this.properties;
                  return e.date ? e.dateFormatter.getISOFormatDate() : "";
                },
                getISOFormatTime: function () {
                  var e = this.properties;
                  return e.time ? e.timeFormatter.getISOFormatTime() : "";
                },
                getFormattedValue: function () {
                  return this.element.value;
                },
                destroy: function () {
                  var e = this;
                  e.element.removeEventListener("input", e.onChangeListener),
                    e.element.removeEventListener(
                      "keydown",
                      e.onKeyDownListener
                    ),
                    e.element.removeEventListener("focus", e.onFocusListener),
                    e.element.removeEventListener("cut", e.onCutListener),
                    e.element.removeEventListener("copy", e.onCopyListener);
                },
                toString: function () {
                  return "[Cleave Object]";
                },
              }),
                (n.NumeralFormatter = i(1)),
                (n.DateFormatter = i(2)),
                (n.TimeFormatter = i(3)),
                (n.PhoneFormatter = i(4)),
                (n.CreditCardDetector = i(5)),
                (n.Util = i(6)),
                (n.DefaultProperties = i(7)),
                (("object" == typeof t && t ? t : window).Cleave = n),
                (e.exports = n);
            }).call(
              t,
              (function () {
                return this;
              })()
            );
          },
          function (e, t) {
            "use strict";
            var i = function (e, t, n, r, a, o, s, l, c, u) {
              var d = this;
              (d.numeralDecimalMark = e || "."),
                (d.numeralIntegerScale = t > 0 ? t : 0),
                (d.numeralDecimalScale = n >= 0 ? n : 2),
                (d.numeralThousandsGroupStyle = r || i.groupStyle.thousand),
                (d.numeralPositiveOnly = !!a),
                (d.stripLeadingZeroes = !1 !== o),
                (d.prefix = s || "" === s ? s : ""),
                (d.signBeforePrefix = !!l),
                (d.tailPrefix = !!c),
                (d.delimiter = u || "" === u ? u : ","),
                (d.delimiterRE = u ? new RegExp("\\" + u, "g") : "");
            };
            (i.groupStyle = {
              thousand: "thousand",
              lakh: "lakh",
              wan: "wan",
              none: "none",
            }),
              (i.prototype = {
                getRawValue: function (e) {
                  return e
                    .replace(this.delimiterRE, "")
                    .replace(this.numeralDecimalMark, ".");
                },
                format: function (e) {
                  var t,
                    n,
                    r,
                    a,
                    o = this,
                    s = "";
                  switch (
                    ((e = e
                      .replace(/[A-Za-z]/g, "")
                      .replace(o.numeralDecimalMark, "M")
                      .replace(/[^\dM-]/g, "")
                      .replace(/^\-/, "N")
                      .replace(/\-/g, "")
                      .replace("N", o.numeralPositiveOnly ? "" : "-")
                      .replace("M", o.numeralDecimalMark)),
                    o.stripLeadingZeroes &&
                      (e = e.replace(/^(-)?0+(?=\d)/, "$1")),
                    (n = "-" === e.slice(0, 1) ? "-" : ""),
                    (r =
                      void 0 !== o.prefix
                        ? o.signBeforePrefix
                          ? n + o.prefix
                          : o.prefix + n
                        : n),
                    (a = e),
                    e.indexOf(o.numeralDecimalMark) >= 0 &&
                      ((a = (t = e.split(o.numeralDecimalMark))[0]),
                      (s =
                        o.numeralDecimalMark +
                        t[1].slice(0, o.numeralDecimalScale))),
                    "-" === n && (a = a.slice(1)),
                    o.numeralIntegerScale > 0 &&
                      (a = a.slice(0, o.numeralIntegerScale)),
                    o.numeralThousandsGroupStyle)
                  ) {
                    case i.groupStyle.lakh:
                      a = a.replace(/(\d)(?=(\d\d)+\d$)/g, "$1" + o.delimiter);
                      break;
                    case i.groupStyle.wan:
                      a = a.replace(/(\d)(?=(\d{4})+$)/g, "$1" + o.delimiter);
                      break;
                    case i.groupStyle.thousand:
                      a = a.replace(/(\d)(?=(\d{3})+$)/g, "$1" + o.delimiter);
                  }
                  return o.tailPrefix
                    ? n +
                        a.toString() +
                        (o.numeralDecimalScale > 0 ? s.toString() : "") +
                        o.prefix
                    : r +
                        a.toString() +
                        (o.numeralDecimalScale > 0 ? s.toString() : "");
                },
              }),
              (e.exports = i);
          },
          function (e, t) {
            "use strict";
            var i = function (e, t, i) {
              var n = this;
              (n.date = []),
                (n.blocks = []),
                (n.datePattern = e),
                (n.dateMin = t
                  .split("-")
                  .reverse()
                  .map(function (e) {
                    return parseInt(e, 10);
                  })),
                2 === n.dateMin.length && n.dateMin.unshift(0),
                (n.dateMax = i
                  .split("-")
                  .reverse()
                  .map(function (e) {
                    return parseInt(e, 10);
                  })),
                2 === n.dateMax.length && n.dateMax.unshift(0),
                n.initBlocks();
            };
            (i.prototype = {
              initBlocks: function () {
                var e = this;
                e.datePattern.forEach(function (t) {
                  "Y" === t ? e.blocks.push(4) : e.blocks.push(2);
                });
              },
              getISOFormatDate: function () {
                var e = this,
                  t = e.date;
                return t[2]
                  ? t[2] +
                      "-" +
                      e.addLeadingZero(t[1]) +
                      "-" +
                      e.addLeadingZero(t[0])
                  : "";
              },
              getBlocks: function () {
                return this.blocks;
              },
              getValidatedDate: function (e) {
                var t = this,
                  i = "";
                return (
                  (e = e.replace(/[^\d]/g, "")),
                  t.blocks.forEach(function (n, r) {
                    if (e.length > 0) {
                      var a = e.slice(0, n),
                        o = a.slice(0, 1),
                        s = e.slice(n);
                      switch (t.datePattern[r]) {
                        case "d":
                          "00" === a
                            ? (a = "01")
                            : parseInt(o, 10) > 3
                            ? (a = "0" + o)
                            : parseInt(a, 10) > 31 && (a = "31");
                          break;
                        case "m":
                          "00" === a
                            ? (a = "01")
                            : parseInt(o, 10) > 1
                            ? (a = "0" + o)
                            : parseInt(a, 10) > 12 && (a = "12");
                      }
                      (i += a), (e = s);
                    }
                  }),
                  this.getFixedDateString(i)
                );
              },
              getFixedDateString: function (e) {
                var t,
                  i,
                  n,
                  r = this,
                  a = r.datePattern,
                  o = [],
                  s = 0,
                  l = 0,
                  c = 0,
                  u = 0,
                  d = 0,
                  h = 0,
                  f = !1;
                4 === e.length &&
                  "y" !== a[0].toLowerCase() &&
                  "y" !== a[1].toLowerCase() &&
                  ((d = 2 - (u = "d" === a[0] ? 0 : 2)),
                  (t = parseInt(e.slice(u, u + 2), 10)),
                  (i = parseInt(e.slice(d, d + 2), 10)),
                  (o = this.getFixedDate(t, i, 0))),
                  8 === e.length &&
                    (a.forEach(function (e, t) {
                      switch (e) {
                        case "d":
                          s = t;
                          break;
                        case "m":
                          l = t;
                          break;
                        default:
                          c = t;
                      }
                    }),
                    (h = 2 * c),
                    (u = s <= c ? 2 * s : 2 * s + 2),
                    (d = l <= c ? 2 * l : 2 * l + 2),
                    (t = parseInt(e.slice(u, u + 2), 10)),
                    (i = parseInt(e.slice(d, d + 2), 10)),
                    (n = parseInt(e.slice(h, h + 4), 10)),
                    (f = 4 === e.slice(h, h + 4).length),
                    (o = this.getFixedDate(t, i, n))),
                  4 !== e.length ||
                    ("y" !== a[0] && "y" !== a[1]) ||
                    ((h = 2 - (d = "m" === a[0] ? 0 : 2)),
                    (i = parseInt(e.slice(d, d + 2), 10)),
                    (n = parseInt(e.slice(h, h + 2), 10)),
                    (f = 2 === e.slice(h, h + 2).length),
                    (o = [0, i, n])),
                  6 !== e.length ||
                    ("Y" !== a[0] && "Y" !== a[1]) ||
                    ((h = 2 - 0.5 * (d = "m" === a[0] ? 0 : 4)),
                    (i = parseInt(e.slice(d, d + 2), 10)),
                    (n = parseInt(e.slice(h, h + 4), 10)),
                    (f = 4 === e.slice(h, h + 4).length),
                    (o = [0, i, n])),
                  (o = r.getRangeFixedDate(o)),
                  (r.date = o);
                var p =
                  0 === o.length
                    ? e
                    : a.reduce(function (e, t) {
                        switch (t) {
                          case "d":
                            return (
                              e + (0 === o[0] ? "" : r.addLeadingZero(o[0]))
                            );
                          case "m":
                            return (
                              e + (0 === o[1] ? "" : r.addLeadingZero(o[1]))
                            );
                          case "y":
                            return (
                              e + (f ? r.addLeadingZeroForYear(o[2], !1) : "")
                            );
                          case "Y":
                            return (
                              e + (f ? r.addLeadingZeroForYear(o[2], !0) : "")
                            );
                        }
                      }, "");
                return p;
              },
              getRangeFixedDate: function (e) {
                var t = this,
                  i = t.datePattern,
                  n = t.dateMin || [],
                  r = t.dateMax || [];
                return !e.length ||
                  (n.length < 3 && r.length < 3) ||
                  (i.find(function (e) {
                    return "y" === e.toLowerCase();
                  }) &&
                    0 === e[2])
                  ? e
                  : r.length &&
                    (r[2] < e[2] ||
                      (r[2] === e[2] &&
                        (r[1] < e[1] || (r[1] === e[1] && r[0] < e[0]))))
                  ? r
                  : n.length &&
                    (n[2] > e[2] ||
                      (n[2] === e[2] &&
                        (n[1] > e[1] || (n[1] === e[1] && n[0] > e[0]))))
                  ? n
                  : e;
              },
              getFixedDate: function (e, t, i) {
                return (
                  (e = Math.min(e, 31)),
                  (t = Math.min(t, 12)),
                  (i = parseInt(i || 0, 10)),
                  ((t < 7 && t % 2 == 0) || (t > 8 && t % 2 == 1)) &&
                    (e = Math.min(
                      e,
                      2 === t ? (this.isLeapYear(i) ? 29 : 28) : 30
                    )),
                  [e, t, i]
                );
              },
              isLeapYear: function (e) {
                return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0;
              },
              addLeadingZero: function (e) {
                return (e < 10 ? "0" : "") + e;
              },
              addLeadingZeroForYear: function (e, t) {
                return t
                  ? (e < 10 ? "000" : e < 100 ? "00" : e < 1e3 ? "0" : "") + e
                  : (e < 10 ? "0" : "") + e;
              },
            }),
              (e.exports = i);
          },
          function (e, t) {
            "use strict";
            var i = function (e, t) {
              var i = this;
              (i.time = []),
                (i.blocks = []),
                (i.timePattern = e),
                (i.timeFormat = t),
                i.initBlocks();
            };
            (i.prototype = {
              initBlocks: function () {
                var e = this;
                e.timePattern.forEach(function () {
                  e.blocks.push(2);
                });
              },
              getISOFormatTime: function () {
                var e = this,
                  t = e.time;
                return t[2]
                  ? e.addLeadingZero(t[0]) +
                      ":" +
                      e.addLeadingZero(t[1]) +
                      ":" +
                      e.addLeadingZero(t[2])
                  : "";
              },
              getBlocks: function () {
                return this.blocks;
              },
              getTimeFormatOptions: function () {
                return "12" === String(this.timeFormat)
                  ? {
                      maxHourFirstDigit: 1,
                      maxHours: 12,
                      maxMinutesFirstDigit: 5,
                      maxMinutes: 60,
                    }
                  : {
                      maxHourFirstDigit: 2,
                      maxHours: 23,
                      maxMinutesFirstDigit: 5,
                      maxMinutes: 60,
                    };
              },
              getValidatedTime: function (e) {
                var t = this,
                  i = "";
                e = e.replace(/[^\d]/g, "");
                var n = t.getTimeFormatOptions();
                return (
                  t.blocks.forEach(function (r, a) {
                    if (e.length > 0) {
                      var o = e.slice(0, r),
                        s = o.slice(0, 1),
                        l = e.slice(r);
                      switch (t.timePattern[a]) {
                        case "h":
                          parseInt(s, 10) > n.maxHourFirstDigit
                            ? (o = "0" + s)
                            : parseInt(o, 10) > n.maxHours &&
                              (o = n.maxHours + "");
                          break;
                        case "m":
                        case "s":
                          parseInt(s, 10) > n.maxMinutesFirstDigit
                            ? (o = "0" + s)
                            : parseInt(o, 10) > n.maxMinutes &&
                              (o = n.maxMinutes + "");
                      }
                      (i += o), (e = l);
                    }
                  }),
                  this.getFixedTimeString(i)
                );
              },
              getFixedTimeString: function (e) {
                var t,
                  i,
                  n,
                  r = this,
                  a = r.timePattern,
                  o = [],
                  s = 0,
                  l = 0,
                  c = 0,
                  u = 0,
                  d = 0,
                  h = 0;
                return (
                  6 === e.length &&
                    (a.forEach(function (e, t) {
                      switch (e) {
                        case "s":
                          s = 2 * t;
                          break;
                        case "m":
                          l = 2 * t;
                          break;
                        case "h":
                          c = 2 * t;
                      }
                    }),
                    (h = c),
                    (d = l),
                    (u = s),
                    (t = parseInt(e.slice(u, u + 2), 10)),
                    (i = parseInt(e.slice(d, d + 2), 10)),
                    (n = parseInt(e.slice(h, h + 2), 10)),
                    (o = this.getFixedTime(n, i, t))),
                  4 === e.length &&
                    r.timePattern.indexOf("s") < 0 &&
                    (a.forEach(function (e, t) {
                      switch (e) {
                        case "m":
                          l = 2 * t;
                          break;
                        case "h":
                          c = 2 * t;
                      }
                    }),
                    (h = c),
                    (d = l),
                    (t = 0),
                    (i = parseInt(e.slice(d, d + 2), 10)),
                    (n = parseInt(e.slice(h, h + 2), 10)),
                    (o = this.getFixedTime(n, i, t))),
                  (r.time = o),
                  0 === o.length
                    ? e
                    : a.reduce(function (e, t) {
                        switch (t) {
                          case "s":
                            return e + r.addLeadingZero(o[2]);
                          case "m":
                            return e + r.addLeadingZero(o[1]);
                          case "h":
                            return e + r.addLeadingZero(o[0]);
                        }
                      }, "")
                );
              },
              getFixedTime: function (e, t, i) {
                return (
                  (i = Math.min(parseInt(i || 0, 10), 60)),
                  (t = Math.min(t, 60)),
                  [(e = Math.min(e, 60)), t, i]
                );
              },
              addLeadingZero: function (e) {
                return (e < 10 ? "0" : "") + e;
              },
            }),
              (e.exports = i);
          },
          function (e, t) {
            "use strict";
            var i = function (e, t) {
              var i = this;
              (i.delimiter = t || "" === t ? t : " "),
                (i.delimiterRE = t ? new RegExp("\\" + t, "g") : ""),
                (i.formatter = e);
            };
            (i.prototype = {
              setFormatter: function (e) {
                this.formatter = e;
              },
              format: function (e) {
                var t = this;
                t.formatter.clear();
                for (
                  var i,
                    n = "",
                    r = !1,
                    a = 0,
                    o = (e = (e = (e = e.replace(/[^\d+]/g, ""))
                      .replace(/^\+/, "B")
                      .replace(/\+/g, "")
                      .replace("B", "+")).replace(t.delimiterRE, "")).length;
                  a < o;
                  a++
                )
                  (i = t.formatter.inputDigit(e.charAt(a))),
                    /[\s()-]/g.test(i) ? ((n = i), (r = !0)) : r || (n = i);
                return (n = n.replace(/[()]/g, "")).replace(
                  /[\s-]/g,
                  t.delimiter
                );
              },
            }),
              (e.exports = i);
          },
          function (e, t) {
            "use strict";
            var i = {
              blocks: {
                uatp: [4, 5, 6],
                amex: [4, 6, 5],
                diners: [4, 6, 4],
                discover: [4, 4, 4, 4],
                mastercard: [4, 4, 4, 4],
                dankort: [4, 4, 4, 4],
                instapayment: [4, 4, 4, 4],
                jcb15: [4, 6, 5],
                jcb: [4, 4, 4, 4],
                maestro: [4, 4, 4, 4],
                visa: [4, 4, 4, 4],
                mir: [4, 4, 4, 4],
                unionPay: [4, 4, 4, 4],
                general: [4, 4, 4, 4],
              },
              re: {
                uatp: /^(?!1800)1\d{0,14}/,
                amex: /^3[47]\d{0,13}/,
                discover: /^(?:6011|65\d{0,2}|64[4-9]\d?)\d{0,12}/,
                diners: /^3(?:0([0-5]|9)|[689]\d?)\d{0,11}/,
                mastercard:
                  /^(5[1-5]\d{0,2}|22[2-9]\d{0,1}|2[3-7]\d{0,2})\d{0,12}/,
                dankort: /^(5019|4175|4571)\d{0,12}/,
                instapayment: /^63[7-9]\d{0,13}/,
                jcb15: /^(?:2131|1800)\d{0,11}/,
                jcb: /^(?:35\d{0,2})\d{0,12}/,
                maestro: /^(?:5[0678]\d{0,2}|6304|67\d{0,2})\d{0,12}/,
                mir: /^220[0-4]\d{0,12}/,
                visa: /^4\d{0,15}/,
                unionPay: /^(62|81)\d{0,14}/,
              },
              getStrictBlocks: function (e) {
                var t = e.reduce(function (e, t) {
                  return e + t;
                }, 0);
                return e.concat(19 - t);
              },
              getInfo: function (e, t) {
                var n = i.blocks,
                  r = i.re;
                for (var a in ((t = !!t), r))
                  if (r[a].test(e)) {
                    var o = n[a];
                    return { type: a, blocks: t ? this.getStrictBlocks(o) : o };
                  }
                return {
                  type: "unknown",
                  blocks: t ? this.getStrictBlocks(n.general) : n.general,
                };
              },
            };
            e.exports = i;
          },
          function (e, t) {
            "use strict";
            var i = {
              noop: function () {},
              strip: function (e, t) {
                return e.replace(t, "");
              },
              getPostDelimiter: function (e, t, i) {
                if (0 === i.length) return e.slice(-t.length) === t ? t : "";
                var n = "";
                return (
                  i.forEach(function (t) {
                    e.slice(-t.length) === t && (n = t);
                  }),
                  n
                );
              },
              getDelimiterREByDelimiter: function (e) {
                return new RegExp(
                  e.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"),
                  "g"
                );
              },
              getNextCursorPosition: function (e, t, i, n, r) {
                return t.length === e
                  ? i.length
                  : e + this.getPositionOffset(e, t, i, n, r);
              },
              getPositionOffset: function (e, t, i, n, r) {
                var a, o, s;
                return (
                  (a = this.stripDelimiters(t.slice(0, e), n, r)),
                  (o = this.stripDelimiters(i.slice(0, e), n, r)),
                  0 != (s = a.length - o.length) ? s / Math.abs(s) : 0
                );
              },
              stripDelimiters: function (e, t, i) {
                var n = this;
                if (0 === i.length) {
                  var r = t ? n.getDelimiterREByDelimiter(t) : "";
                  return e.replace(r, "");
                }
                return (
                  i.forEach(function (t) {
                    t.split("").forEach(function (t) {
                      e = e.replace(n.getDelimiterREByDelimiter(t), "");
                    });
                  }),
                  e
                );
              },
              headStr: function (e, t) {
                return e.slice(0, t);
              },
              getMaxLength: function (e) {
                return e.reduce(function (e, t) {
                  return e + t;
                }, 0);
              },
              getPrefixStrippedValue: function (e, t, i, n, r, a, o, s, l) {
                if (0 === i) return e;
                if (e === t && "" !== e) return "";
                if (l && "-" == e.slice(0, 1)) {
                  var c = "-" == n.slice(0, 1) ? n.slice(1) : n;
                  return (
                    "-" +
                    this.getPrefixStrippedValue(
                      e.slice(1),
                      t,
                      i,
                      c,
                      r,
                      a,
                      o,
                      s,
                      l
                    )
                  );
                }
                if (n.slice(0, i) !== t && !s) return o && !n && e ? e : "";
                if (n.slice(-i) !== t && s) return o && !n && e ? e : "";
                var u = this.stripDelimiters(n, r, a);
                return e.slice(0, i) === t || s
                  ? e.slice(-i) !== t && s
                    ? u.slice(0, -i - 1)
                    : s
                    ? e.slice(0, -i)
                    : e.slice(i)
                  : u.slice(i);
              },
              getFirstDiffIndex: function (e, t) {
                for (var i = 0; e.charAt(i) === t.charAt(i); )
                  if ("" === e.charAt(i++)) return -1;
                return i;
              },
              getFormattedValue: function (e, t, i, n, r, a) {
                var o = "",
                  s = r.length > 0,
                  l = "";
                return 0 === i
                  ? e
                  : (t.forEach(function (t, c) {
                      if (e.length > 0) {
                        var u = e.slice(0, t),
                          d = e.slice(t);
                        (l = s ? r[a ? c - 1 : c] || l : n),
                          a
                            ? (c > 0 && (o += l), (o += u))
                            : ((o += u),
                              u.length === t && c < i - 1 && (o += l)),
                          (e = d);
                      }
                    }),
                    o);
              },
              fixPrefixCursor: function (e, t, i, n) {
                if (e) {
                  var r = e.value,
                    a = i || n[0] || " ";
                  if (
                    e.setSelectionRange &&
                    t &&
                    !(t.length + a.length <= r.length)
                  ) {
                    var o = 2 * r.length;
                    setTimeout(function () {
                      e.setSelectionRange(o, o);
                    }, 1);
                  }
                }
              },
              checkFullSelection: function (e) {
                try {
                  return (
                    (
                      window.getSelection() ||
                      document.getSelection() ||
                      {}
                    ).toString().length === e.length
                  );
                } catch (e) {}
                return !1;
              },
              setSelection: function (e, t, i) {
                if (
                  e === this.getActiveElement(i) &&
                  !(e && e.value.length <= t)
                )
                  if (e.createTextRange) {
                    var n = e.createTextRange();
                    n.move("character", t), n.select();
                  } else
                    try {
                      e.setSelectionRange(t, t);
                    } catch (e) {
                      console.warn(
                        "The input element type does not support selection"
                      );
                    }
              },
              getActiveElement: function (e) {
                var t = e.activeElement;
                return t && t.shadowRoot
                  ? this.getActiveElement(t.shadowRoot)
                  : t;
              },
              isAndroid: function () {
                return navigator && /android/i.test(navigator.userAgent);
              },
              isAndroidBackspaceKeydown: function (e, t) {
                return !!(this.isAndroid() && e && t) && t === e.slice(0, -1);
              },
            };
            e.exports = i;
          },
          function (e, t) {
            (function (t) {
              "use strict";
              var i = {
                assign: function (e, i) {
                  return (
                    (i = i || {}),
                    ((e = e || {}).creditCard = !!i.creditCard),
                    (e.creditCardStrictMode = !!i.creditCardStrictMode),
                    (e.creditCardType = ""),
                    (e.onCreditCardTypeChanged =
                      i.onCreditCardTypeChanged || function () {}),
                    (e.phone = !!i.phone),
                    (e.phoneRegionCode = i.phoneRegionCode || "AU"),
                    (e.phoneFormatter = {}),
                    (e.time = !!i.time),
                    (e.timePattern = i.timePattern || ["h", "m", "s"]),
                    (e.timeFormat = i.timeFormat || "24"),
                    (e.timeFormatter = {}),
                    (e.date = !!i.date),
                    (e.datePattern = i.datePattern || ["d", "m", "Y"]),
                    (e.dateMin = i.dateMin || ""),
                    (e.dateMax = i.dateMax || ""),
                    (e.dateFormatter = {}),
                    (e.numeral = !!i.numeral),
                    (e.numeralIntegerScale =
                      i.numeralIntegerScale > 0 ? i.numeralIntegerScale : 0),
                    (e.numeralDecimalScale =
                      i.numeralDecimalScale >= 0 ? i.numeralDecimalScale : 2),
                    (e.numeralDecimalMark = i.numeralDecimalMark || "."),
                    (e.numeralThousandsGroupStyle =
                      i.numeralThousandsGroupStyle || "thousand"),
                    (e.numeralPositiveOnly = !!i.numeralPositiveOnly),
                    (e.stripLeadingZeroes = !1 !== i.stripLeadingZeroes),
                    (e.signBeforePrefix = !!i.signBeforePrefix),
                    (e.tailPrefix = !!i.tailPrefix),
                    (e.swapHiddenInput = !!i.swapHiddenInput),
                    (e.numericOnly = e.creditCard || e.date || !!i.numericOnly),
                    (e.uppercase = !!i.uppercase),
                    (e.lowercase = !!i.lowercase),
                    (e.prefix = e.creditCard || e.date ? "" : i.prefix || ""),
                    (e.noImmediatePrefix = !!i.noImmediatePrefix),
                    (e.prefixLength = e.prefix.length),
                    (e.rawValueTrimPrefix = !!i.rawValueTrimPrefix),
                    (e.copyDelimiter = !!i.copyDelimiter),
                    (e.initValue =
                      void 0 !== i.initValue && null !== i.initValue
                        ? i.initValue.toString()
                        : ""),
                    (e.delimiter =
                      i.delimiter || "" === i.delimiter
                        ? i.delimiter
                        : i.date
                        ? "/"
                        : i.time
                        ? ":"
                        : i.numeral
                        ? ","
                        : (i.phone, " ")),
                    (e.delimiterLength = e.delimiter.length),
                    (e.delimiterLazyShow = !!i.delimiterLazyShow),
                    (e.delimiters = i.delimiters || []),
                    (e.blocks = i.blocks || []),
                    (e.blocksLength = e.blocks.length),
                    (e.root = "object" == typeof t && t ? t : window),
                    (e.document = i.document || e.root.document),
                    (e.maxLength = 0),
                    (e.backspace = !1),
                    (e.result = ""),
                    (e.onValueChanged = i.onValueChanged || function () {}),
                    e
                  );
                },
              };
              e.exports = i;
            }).call(
              t,
              (function () {
                return this;
              })()
            );
          },
        ]);
      },
      322: function (e) {
        e.exports = (function () {
          "use strict";
          var e = 1e3,
            t = 6e4,
            i = 36e5,
            n = "millisecond",
            r = "second",
            a = "minute",
            o = "hour",
            s = "day",
            l = "week",
            c = "month",
            u = "quarter",
            d = "year",
            h = "date",
            f = "Invalid Date",
            p =
              /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
            g =
              /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
            m = {
              name: "en",
              weekdays:
                "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split(
                  "_"
                ),
              months:
                "January_February_March_April_May_June_July_August_September_October_November_December".split(
                  "_"
                ),
              ordinal: function (e) {
                var t = ["th", "st", "nd", "rd"],
                  i = e % 100;
                return "[" + e + (t[(i - 20) % 10] || t[i] || t[0]) + "]";
              },
            },
            v = function (e, t, i) {
              var n = String(e);
              return !n || n.length >= t
                ? e
                : "" + Array(t + 1 - n.length).join(i) + e;
            },
            b = {
              s: v,
              z: function (e) {
                var t = -e.utcOffset(),
                  i = Math.abs(t),
                  n = Math.floor(i / 60),
                  r = i % 60;
                return (t <= 0 ? "+" : "-") + v(n, 2, "0") + ":" + v(r, 2, "0");
              },
              m: function e(t, i) {
                if (t.date() < i.date()) return -e(i, t);
                var n = 12 * (i.year() - t.year()) + (i.month() - t.month()),
                  r = t.clone().add(n, c),
                  a = i - r < 0,
                  o = t.clone().add(n + (a ? -1 : 1), c);
                return +(-(n + (i - r) / (a ? r - o : o - r)) || 0);
              },
              a: function (e) {
                return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
              },
              p: function (e) {
                return (
                  {
                    M: c,
                    y: d,
                    w: l,
                    d: s,
                    D: h,
                    h: o,
                    m: a,
                    s: r,
                    ms: n,
                    Q: u,
                  }[e] ||
                  String(e || "")
                    .toLowerCase()
                    .replace(/s$/, "")
                );
              },
              u: function (e) {
                return void 0 === e;
              },
            },
            y = "en",
            x = {};
          x[y] = m;
          var w = function (e) {
              return e instanceof A;
            },
            E = function e(t, i, n) {
              var r;
              if (!t) return y;
              if ("string" == typeof t) {
                var a = t.toLowerCase();
                x[a] && (r = a), i && ((x[a] = i), (r = a));
                var o = t.split("-");
                if (!r && o.length > 1) return e(o[0]);
              } else {
                var s = t.name;
                (x[s] = t), (r = s);
              }
              return !n && r && (y = r), r || (!n && y);
            },
            _ = function (e, t) {
              if (w(e)) return e.clone();
              var i = "object" == typeof t ? t : {};
              return (i.date = e), (i.args = arguments), new A(i);
            },
            S = b;
          (S.l = E),
            (S.i = w),
            (S.w = function (e, t) {
              return _(e, {
                locale: t.$L,
                utc: t.$u,
                x: t.$x,
                $offset: t.$offset,
              });
            });
          var A = (function () {
              function m(e) {
                (this.$L = E(e.locale, null, !0)), this.parse(e);
              }
              var v = m.prototype;
              return (
                (v.parse = function (e) {
                  (this.$d = (function (e) {
                    var t = e.date,
                      i = e.utc;
                    if (null === t) return new Date(NaN);
                    if (S.u(t)) return new Date();
                    if (t instanceof Date) return new Date(t);
                    if ("string" == typeof t && !/Z$/i.test(t)) {
                      var n = t.match(p);
                      if (n) {
                        var r = n[2] - 1 || 0,
                          a = (n[7] || "0").substring(0, 3);
                        return i
                          ? new Date(
                              Date.UTC(
                                n[1],
                                r,
                                n[3] || 1,
                                n[4] || 0,
                                n[5] || 0,
                                n[6] || 0,
                                a
                              )
                            )
                          : new Date(
                              n[1],
                              r,
                              n[3] || 1,
                              n[4] || 0,
                              n[5] || 0,
                              n[6] || 0,
                              a
                            );
                      }
                    }
                    return new Date(t);
                  })(e)),
                    (this.$x = e.x || {}),
                    this.init();
                }),
                (v.init = function () {
                  var e = this.$d;
                  (this.$y = e.getFullYear()),
                    (this.$M = e.getMonth()),
                    (this.$D = e.getDate()),
                    (this.$W = e.getDay()),
                    (this.$H = e.getHours()),
                    (this.$m = e.getMinutes()),
                    (this.$s = e.getSeconds()),
                    (this.$ms = e.getMilliseconds());
                }),
                (v.$utils = function () {
                  return S;
                }),
                (v.isValid = function () {
                  return !(this.$d.toString() === f);
                }),
                (v.isSame = function (e, t) {
                  var i = _(e);
                  return this.startOf(t) <= i && i <= this.endOf(t);
                }),
                (v.isAfter = function (e, t) {
                  return _(e) < this.startOf(t);
                }),
                (v.isBefore = function (e, t) {
                  return this.endOf(t) < _(e);
                }),
                (v.$g = function (e, t, i) {
                  return S.u(e) ? this[t] : this.set(i, e);
                }),
                (v.unix = function () {
                  return Math.floor(this.valueOf() / 1e3);
                }),
                (v.valueOf = function () {
                  return this.$d.getTime();
                }),
                (v.startOf = function (e, t) {
                  var i = this,
                    n = !!S.u(t) || t,
                    u = S.p(e),
                    f = function (e, t) {
                      var r = S.w(
                        i.$u ? Date.UTC(i.$y, t, e) : new Date(i.$y, t, e),
                        i
                      );
                      return n ? r : r.endOf(s);
                    },
                    p = function (e, t) {
                      return S.w(
                        i
                          .toDate()
                          [e].apply(
                            i.toDate("s"),
                            (n ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(t)
                          ),
                        i
                      );
                    },
                    g = this.$W,
                    m = this.$M,
                    v = this.$D,
                    b = "set" + (this.$u ? "UTC" : "");
                  switch (u) {
                    case d:
                      return n ? f(1, 0) : f(31, 11);
                    case c:
                      return n ? f(1, m) : f(0, m + 1);
                    case l:
                      var y = this.$locale().weekStart || 0,
                        x = (g < y ? g + 7 : g) - y;
                      return f(n ? v - x : v + (6 - x), m);
                    case s:
                    case h:
                      return p(b + "Hours", 0);
                    case o:
                      return p(b + "Minutes", 1);
                    case a:
                      return p(b + "Seconds", 2);
                    case r:
                      return p(b + "Milliseconds", 3);
                    default:
                      return this.clone();
                  }
                }),
                (v.endOf = function (e) {
                  return this.startOf(e, !1);
                }),
                (v.$set = function (e, t) {
                  var i,
                    l = S.p(e),
                    u = "set" + (this.$u ? "UTC" : ""),
                    f = ((i = {}),
                    (i[s] = u + "Date"),
                    (i[h] = u + "Date"),
                    (i[c] = u + "Month"),
                    (i[d] = u + "FullYear"),
                    (i[o] = u + "Hours"),
                    (i[a] = u + "Minutes"),
                    (i[r] = u + "Seconds"),
                    (i[n] = u + "Milliseconds"),
                    i)[l],
                    p = l === s ? this.$D + (t - this.$W) : t;
                  if (l === c || l === d) {
                    var g = this.clone().set(h, 1);
                    g.$d[f](p),
                      g.init(),
                      (this.$d = g.set(
                        h,
                        Math.min(this.$D, g.daysInMonth())
                      ).$d);
                  } else f && this.$d[f](p);
                  return this.init(), this;
                }),
                (v.set = function (e, t) {
                  return this.clone().$set(e, t);
                }),
                (v.get = function (e) {
                  return this[S.p(e)]();
                }),
                (v.add = function (n, u) {
                  var h,
                    f = this;
                  n = Number(n);
                  var p = S.p(u),
                    g = function (e) {
                      var t = _(f);
                      return S.w(t.date(t.date() + Math.round(e * n)), f);
                    };
                  if (p === c) return this.set(c, this.$M + n);
                  if (p === d) return this.set(d, this.$y + n);
                  if (p === s) return g(1);
                  if (p === l) return g(7);
                  var m =
                      ((h = {}), (h[a] = t), (h[o] = i), (h[r] = e), h)[p] || 1,
                    v = this.$d.getTime() + n * m;
                  return S.w(v, this);
                }),
                (v.subtract = function (e, t) {
                  return this.add(-1 * e, t);
                }),
                (v.format = function (e) {
                  var t = this,
                    i = this.$locale();
                  if (!this.isValid()) return i.invalidDate || f;
                  var n = e || "YYYY-MM-DDTHH:mm:ssZ",
                    r = S.z(this),
                    a = this.$H,
                    o = this.$m,
                    s = this.$M,
                    l = i.weekdays,
                    c = i.months,
                    u = function (e, i, r, a) {
                      return (e && (e[i] || e(t, n))) || r[i].slice(0, a);
                    },
                    d = function (e) {
                      return S.s(a % 12 || 12, e, "0");
                    },
                    h =
                      i.meridiem ||
                      function (e, t, i) {
                        var n = e < 12 ? "AM" : "PM";
                        return i ? n.toLowerCase() : n;
                      },
                    p = {
                      YY: String(this.$y).slice(-2),
                      YYYY: this.$y,
                      M: s + 1,
                      MM: S.s(s + 1, 2, "0"),
                      MMM: u(i.monthsShort, s, c, 3),
                      MMMM: u(c, s),
                      D: this.$D,
                      DD: S.s(this.$D, 2, "0"),
                      d: String(this.$W),
                      dd: u(i.weekdaysMin, this.$W, l, 2),
                      ddd: u(i.weekdaysShort, this.$W, l, 3),
                      dddd: l[this.$W],
                      H: String(a),
                      HH: S.s(a, 2, "0"),
                      h: d(1),
                      hh: d(2),
                      a: h(a, o, !0),
                      A: h(a, o, !1),
                      m: String(o),
                      mm: S.s(o, 2, "0"),
                      s: String(this.$s),
                      ss: S.s(this.$s, 2, "0"),
                      SSS: S.s(this.$ms, 3, "0"),
                      Z: r,
                    };
                  return n.replace(g, function (e, t) {
                    return t || p[e] || r.replace(":", "");
                  });
                }),
                (v.utcOffset = function () {
                  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
                }),
                (v.diff = function (n, h, f) {
                  var p,
                    g = S.p(h),
                    m = _(n),
                    v = (m.utcOffset() - this.utcOffset()) * t,
                    b = this - m,
                    y = S.m(this, m);
                  return (
                    (y =
                      ((p = {}),
                      (p[d] = y / 12),
                      (p[c] = y),
                      (p[u] = y / 3),
                      (p[l] = (b - v) / 6048e5),
                      (p[s] = (b - v) / 864e5),
                      (p[o] = b / i),
                      (p[a] = b / t),
                      (p[r] = b / e),
                      p)[g] || b),
                    f ? y : S.a(y)
                  );
                }),
                (v.daysInMonth = function () {
                  return this.endOf(c).$D;
                }),
                (v.$locale = function () {
                  return x[this.$L];
                }),
                (v.locale = function (e, t) {
                  if (!e) return this.$L;
                  var i = this.clone(),
                    n = E(e, t, !0);
                  return n && (i.$L = n), i;
                }),
                (v.clone = function () {
                  return S.w(this.$d, this);
                }),
                (v.toDate = function () {
                  return new Date(this.valueOf());
                }),
                (v.toJSON = function () {
                  return this.isValid() ? this.toISOString() : null;
                }),
                (v.toISOString = function () {
                  return this.$d.toISOString();
                }),
                (v.toString = function () {
                  return this.$d.toUTCString();
                }),
                m
              );
            })(),
            k = A.prototype;
          return (
            (_.prototype = k),
            [
              ["$ms", n],
              ["$s", r],
              ["$m", a],
              ["$H", o],
              ["$W", s],
              ["$M", c],
              ["$y", d],
              ["$D", h],
            ].forEach(function (e) {
              k[e[1]] = function (t) {
                return this.$g(t, e[0], e[1]);
              };
            }),
            (_.extend = function (e, t) {
              return e.$i || (e(t, A, _), (e.$i = !0)), _;
            }),
            (_.locale = E),
            (_.isDayjs = w),
            (_.unix = function (e) {
              return _(1e3 * e);
            }),
            (_.en = x[y]),
            (_.Ls = x),
            (_.p = {}),
            _
          );
        })();
      },
      974: function (e) {
        e.exports = (function () {
          "use strict";
          var e = function (e) {
            return /^image/.test(e.type);
          };
          function t(e) {
            this.wrapped = e;
          }
          function i(e) {
            var i, n;
            function r(e, t) {
              return new Promise(function (r, o) {
                var s = { key: e, arg: t, resolve: r, reject: o, next: null };
                n ? (n = n.next = s) : ((i = n = s), a(e, t));
              });
            }
            function a(i, n) {
              try {
                var r = e[i](n),
                  s = r.value,
                  l = s instanceof t;
                Promise.resolve(l ? s.wrapped : s).then(
                  function (e) {
                    l ? a("next", e) : o(r.done ? "return" : "normal", e);
                  },
                  function (e) {
                    a("throw", e);
                  }
                );
              } catch (e) {
                o("throw", e);
              }
            }
            function o(e, t) {
              switch (e) {
                case "return":
                  i.resolve({ value: t, done: !0 });
                  break;
                case "throw":
                  i.reject(t);
                  break;
                default:
                  i.resolve({ value: t, done: !1 });
              }
              (i = i.next) ? a(i.key, i.arg) : (n = null);
            }
            (this._invoke = r),
              "function" != typeof e.return && (this.return = void 0);
          }
          function n(e, t) {
            return r(e) || a(e, t) || o();
          }
          function r(e) {
            if (Array.isArray(e)) return e;
          }
          function a(e, t) {
            var i = [],
              n = !0,
              r = !1,
              a = void 0;
            try {
              for (
                var o, s = e[Symbol.iterator]();
                !(n = (o = s.next()).done) &&
                (i.push(o.value), !t || i.length !== t);
                n = !0
              );
            } catch (e) {
              (r = !0), (a = e);
            } finally {
              try {
                n || null == s.return || s.return();
              } finally {
                if (r) throw a;
              }
            }
            return i;
          }
          function o() {
            throw new TypeError(
              "Invalid attempt to destructure non-iterable instance"
            );
          }
          "function" == typeof Symbol &&
            Symbol.asyncIterator &&
            (i.prototype[Symbol.asyncIterator] = function () {
              return this;
            }),
            (i.prototype.next = function (e) {
              return this._invoke("next", e);
            }),
            (i.prototype.throw = function (e) {
              return this._invoke("throw", e);
            }),
            (i.prototype.return = function (e) {
              return this._invoke("return", e);
            });
          var s = function (e, t) {
              return d(e.x * t, e.y * t);
            },
            l = function (e, t) {
              return d(e.x + t.x, e.y + t.y);
            },
            c = function (e) {
              var t = Math.sqrt(e.x * e.x + e.y * e.y);
              return 0 === t ? { x: 0, y: 0 } : d(e.x / t, e.y / t);
            },
            u = function (e, t, i) {
              var n = Math.cos(t),
                r = Math.sin(t),
                a = d(e.x - i.x, e.y - i.y);
              return d(i.x + n * a.x - r * a.y, i.y + r * a.x + n * a.y);
            },
            d = function () {
              return {
                x:
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : 0,
                y:
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : 0,
              };
            },
            h = function (e, t) {
              var i =
                  arguments.length > 2 && void 0 !== arguments[2]
                    ? arguments[2]
                    : 1,
                n = arguments.length > 3 ? arguments[3] : void 0;
              return "string" == typeof e
                ? parseFloat(e) * i
                : "number" == typeof e
                ? e * (n ? t[n] : Math.min(t.width, t.height))
                : void 0;
            },
            f = function (e, t, i) {
              var n = e.borderStyle || e.lineStyle || "solid",
                r = e.backgroundColor || e.fontColor || "transparent",
                a = e.borderColor || e.lineColor || "transparent",
                o = h(e.borderWidth || e.lineWidth, t, i);
              return {
                "stroke-linecap": e.lineCap || "round",
                "stroke-linejoin": e.lineJoin || "round",
                "stroke-width": o || 0,
                "stroke-dasharray":
                  "string" == typeof n
                    ? ""
                    : n
                        .map(function (e) {
                          return h(e, t, i);
                        })
                        .join(","),
                stroke: a,
                fill: r,
                opacity: e.opacity || 1,
              };
            },
            p = function (e) {
              return null != e;
            },
            g = function (e, t) {
              var i =
                  arguments.length > 2 && void 0 !== arguments[2]
                    ? arguments[2]
                    : 1,
                n = h(e.x, t, i, "width") || h(e.left, t, i, "width"),
                r = h(e.y, t, i, "height") || h(e.top, t, i, "height"),
                a = h(e.width, t, i, "width"),
                o = h(e.height, t, i, "height"),
                s = h(e.right, t, i, "width"),
                l = h(e.bottom, t, i, "height");
              return (
                p(r) || (r = p(o) && p(l) ? t.height - o - l : l),
                p(n) || (n = p(a) && p(s) ? t.width - a - s : s),
                p(a) || (a = p(n) && p(s) ? t.width - n - s : 0),
                p(o) || (o = p(r) && p(l) ? t.height - r - l : 0),
                { x: n || 0, y: r || 0, width: a || 0, height: o || 0 }
              );
            },
            m = function (e) {
              return e
                .map(function (e, t) {
                  return ""
                    .concat(0 === t ? "M" : "L", " ")
                    .concat(e.x, " ")
                    .concat(e.y);
                })
                .join(" ");
            },
            v = function (e, t) {
              return Object.keys(t).forEach(function (i) {
                return e.setAttribute(i, t[i]);
              });
            },
            b = "http://www.w3.org/2000/svg",
            y = function (e, t) {
              var i = document.createElementNS(b, e);
              return t && v(i, t), i;
            },
            x = function (e) {
              return v(e, Object.assign({}, e.rect, e.styles));
            },
            w = function (e) {
              var t = e.rect.x + 0.5 * e.rect.width,
                i = e.rect.y + 0.5 * e.rect.height,
                n = 0.5 * e.rect.width,
                r = 0.5 * e.rect.height;
              return v(
                e,
                Object.assign({ cx: t, cy: i, rx: n, ry: r }, e.styles)
              );
            },
            E = { contain: "xMidYMid meet", cover: "xMidYMid slice" },
            _ = function (e, t) {
              v(
                e,
                Object.assign({}, e.rect, e.styles, {
                  preserveAspectRatio: E[t.fit] || "none",
                })
              );
            },
            S = { left: "start", center: "middle", right: "end" },
            A = function (e, t, i, n) {
              var r = h(t.fontSize, i, n),
                a = t.fontFamily || "sans-serif",
                o = t.fontWeight || "normal",
                s = S[t.textAlign] || "start";
              v(
                e,
                Object.assign({}, e.rect, e.styles, {
                  "stroke-width": 0,
                  "font-weight": o,
                  "font-size": r,
                  "font-family": a,
                  "text-anchor": s,
                })
              ),
                e.text !== t.text &&
                  ((e.text = t.text),
                  (e.textContent = t.text.length ? t.text : " "));
            },
            k = function (e, t, i, n) {
              v(e, Object.assign({}, e.rect, e.styles, { fill: "none" }));
              var r = e.childNodes[0],
                a = e.childNodes[1],
                o = e.childNodes[2],
                d = e.rect,
                f = { x: e.rect.x + e.rect.width, y: e.rect.y + e.rect.height };
              if (
                (v(r, { x1: d.x, y1: d.y, x2: f.x, y2: f.y }), t.lineDecoration)
              ) {
                (a.style.display = "none"), (o.style.display = "none");
                var p = c({ x: f.x - d.x, y: f.y - d.y }),
                  g = h(0.05, i, n);
                if (-1 !== t.lineDecoration.indexOf("arrow-begin")) {
                  var m = s(p, g),
                    b = l(d, m),
                    y = u(d, 2, b),
                    x = u(d, -2, b);
                  v(a, {
                    style: "display:block;",
                    d: "M"
                      .concat(y.x, ",")
                      .concat(y.y, " L")
                      .concat(d.x, ",")
                      .concat(d.y, " L")
                      .concat(x.x, ",")
                      .concat(x.y),
                  });
                }
                if (-1 !== t.lineDecoration.indexOf("arrow-end")) {
                  var w = s(p, -g),
                    E = l(f, w),
                    _ = u(f, 2, E),
                    S = u(f, -2, E);
                  v(o, {
                    style: "display:block;",
                    d: "M"
                      .concat(_.x, ",")
                      .concat(_.y, " L")
                      .concat(f.x, ",")
                      .concat(f.y, " L")
                      .concat(S.x, ",")
                      .concat(S.y),
                  });
                }
              }
            },
            T = function (e, t, i, n) {
              v(
                e,
                Object.assign({}, e.styles, {
                  fill: "none",
                  d: m(
                    t.points.map(function (e) {
                      return {
                        x: h(e.x, i, n, "width"),
                        y: h(e.y, i, n, "height"),
                      };
                    })
                  ),
                })
              );
            },
            C = function (e) {
              return function (t) {
                return y(e, { id: t.id });
              };
            },
            O = function (e) {
              var t = y("g", {
                  id: e.id,
                  "stroke-linecap": "round",
                  "stroke-linejoin": "round",
                }),
                i = y("line");
              t.appendChild(i);
              var n = y("path");
              t.appendChild(n);
              var r = y("path");
              return t.appendChild(r), t;
            },
            I = {
              image: function (e) {
                var t = y("image", {
                  id: e.id,
                  "stroke-linecap": "round",
                  "stroke-linejoin": "round",
                  opacity: "0",
                });
                return (
                  (t.onload = function () {
                    t.setAttribute("opacity", e.opacity || 1);
                  }),
                  t.setAttributeNS(
                    "http://www.w3.org/1999/xlink",
                    "xlink:href",
                    e.src
                  ),
                  t
                );
              },
              rect: C("rect"),
              ellipse: C("ellipse"),
              text: C("text"),
              path: C("path"),
              line: O,
            },
            M = { rect: x, ellipse: w, image: _, text: A, path: T, line: k },
            L = function (e, t) {
              return I[e](t);
            },
            P = function (e, t, i, n, r) {
              "path" !== t && (e.rect = g(i, n, r)),
                (e.styles = f(i, n, r)),
                M[t](e, i, n, r);
            },
            D = ["x", "y", "left", "top", "right", "bottom", "width", "height"],
            R = function (e) {
              return "string" == typeof e && /%/.test(e)
                ? parseFloat(e) / 100
                : e;
            },
            N = function (e) {
              var t = n(e, 2),
                i = t[0],
                r = t[1],
                a = r.points
                  ? {}
                  : D.reduce(function (e, t) {
                      return (e[t] = R(r[t])), e;
                    }, {});
              return [i, Object.assign({ zIndex: 0 }, r, a)];
            },
            F = function (e, t) {
              return e[1].zIndex > t[1].zIndex
                ? 1
                : e[1].zIndex < t[1].zIndex
                ? -1
                : 0;
            },
            B = function (e) {
              return e.utils.createView({
                name: "image-preview-markup",
                tag: "svg",
                ignoreRect: !0,
                mixins: {
                  apis: [
                    "width",
                    "height",
                    "crop",
                    "markup",
                    "resize",
                    "dirty",
                  ],
                },
                write: function (e) {
                  var t = e.root,
                    i = e.props;
                  if (i.dirty) {
                    var r = i.crop,
                      a = i.resize,
                      o = i.markup,
                      s = i.width,
                      l = i.height,
                      c = r.width,
                      u = r.height;
                    if (a) {
                      var d = a.size,
                        h = d && d.width,
                        f = d && d.height,
                        p = a.mode,
                        g = a.upscale;
                      h && !f && (f = h), f && !h && (h = f);
                      var m = c < h && u < f;
                      if (!m || (m && g)) {
                        var v,
                          b = h / c,
                          y = f / u;
                        "force" === p
                          ? ((c = h), (u = f))
                          : ("cover" === p
                              ? (v = Math.max(b, y))
                              : "contain" === p && (v = Math.min(b, y)),
                            (c *= v),
                            (u *= v));
                      }
                    }
                    var x = { width: s, height: l };
                    t.element.setAttribute("width", x.width),
                      t.element.setAttribute("height", x.height);
                    var w = Math.min(s / c, l / u);
                    t.element.innerHTML = "";
                    var E = t.query("GET_IMAGE_PREVIEW_MARKUP_FILTER");
                    o.filter(E)
                      .map(N)
                      .sort(F)
                      .forEach(function (e) {
                        var i = n(e, 2),
                          r = i[0],
                          a = i[1],
                          o = L(r, a);
                        P(o, r, a, x, w), t.element.appendChild(o);
                      });
                  }
                },
              });
            },
            z = function (e, t) {
              return { x: e, y: t };
            },
            j = function (e, t) {
              return e.x * t.x + e.y * t.y;
            },
            H = function (e, t) {
              return z(e.x - t.x, e.y - t.y);
            },
            Y = function (e, t) {
              return j(H(e, t), H(e, t));
            },
            X = function (e, t) {
              return Math.sqrt(Y(e, t));
            },
            W = function (e, t) {
              var i = e,
                n = 1.5707963267948966,
                r = t,
                a = 1.5707963267948966 - t,
                o = Math.sin(n),
                s = Math.sin(r),
                l = Math.sin(a),
                c = Math.cos(a),
                u = i / o;
              return z(c * (u * s), c * (u * l));
            },
            G = function (e, t) {
              var i = e.width,
                n = e.height,
                r = W(i, t),
                a = W(n, t),
                o = z(e.x + Math.abs(r.x), e.y - Math.abs(r.y)),
                s = z(e.x + e.width + Math.abs(a.y), e.y + Math.abs(a.x)),
                l = z(e.x - Math.abs(a.y), e.y + e.height - Math.abs(a.x));
              return { width: X(o, s), height: X(o, l) };
            },
            q = function (e, t) {
              var i =
                  arguments.length > 2 && void 0 !== arguments[2]
                    ? arguments[2]
                    : 1,
                n = e.height / e.width,
                r = 1,
                a = t,
                o = 1,
                s = n;
              s > a && (o = (s = a) / n);
              var l = Math.max(r / o, a / s),
                c = e.width / (i * l * o);
              return { width: c, height: c * t };
            },
            V = function (e, t, i, n) {
              var r = n.x > 0.5 ? 1 - n.x : n.x,
                a = n.y > 0.5 ? 1 - n.y : n.y,
                o = 2 * r * e.width,
                s = 2 * a * e.height,
                l = G(t, i);
              return Math.max(l.width / o, l.height / s);
            },
            U = function (e, t) {
              var i = e.width,
                n = i * t;
              return (
                n > e.height && (i = (n = e.height) / t),
                {
                  x: 0.5 * (e.width - i),
                  y: 0.5 * (e.height - n),
                  width: i,
                  height: n,
                }
              );
            },
            $ = function (e) {
              var t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : {},
                i = t.zoom,
                n = t.rotation,
                r = t.center,
                a = t.aspectRatio;
              a || (a = e.height / e.width);
              var o = q(e, a, i),
                s = { x: 0.5 * o.width, y: 0.5 * o.height },
                l = { x: 0, y: 0, width: o.width, height: o.height, center: s },
                c = void 0 === t.scaleToFit || t.scaleToFit,
                u = i * V(e, U(l, a), n, c ? r : { x: 0.5, y: 0.5 });
              return {
                widthFloat: o.width / u,
                heightFloat: o.height / u,
                width: Math.round(o.width / u),
                height: Math.round(o.height / u),
              };
            },
            Z = { type: "spring", stiffness: 0.5, damping: 0.45, mass: 10 },
            K = function (e) {
              return e.utils.createView({
                name: "image-bitmap",
                ignoreRect: !0,
                mixins: { styles: ["scaleX", "scaleY"] },
                create: function (e) {
                  var t = e.root,
                    i = e.props;
                  t.appendChild(i.image);
                },
              });
            },
            J = function (e) {
              return e.utils.createView({
                name: "image-canvas-wrapper",
                tag: "div",
                ignoreRect: !0,
                mixins: {
                  apis: ["crop", "width", "height"],
                  styles: [
                    "originX",
                    "originY",
                    "translateX",
                    "translateY",
                    "scaleX",
                    "scaleY",
                    "rotateZ",
                  ],
                  animations: {
                    originX: Z,
                    originY: Z,
                    scaleX: Z,
                    scaleY: Z,
                    translateX: Z,
                    translateY: Z,
                    rotateZ: Z,
                  },
                },
                create: function (t) {
                  var i = t.root,
                    n = t.props;
                  (n.width = n.image.width),
                    (n.height = n.image.height),
                    (i.ref.bitmap = i.appendChildView(
                      i.createChildView(K(e), { image: n.image })
                    ));
                },
                write: function (e) {
                  var t = e.root,
                    i = e.props.crop.flip,
                    n = t.ref.bitmap;
                  (n.scaleX = i.horizontal ? -1 : 1),
                    (n.scaleY = i.vertical ? -1 : 1);
                },
              });
            },
            Q = function (e) {
              return e.utils.createView({
                name: "image-clip",
                tag: "div",
                ignoreRect: !0,
                mixins: {
                  apis: [
                    "crop",
                    "markup",
                    "resize",
                    "width",
                    "height",
                    "dirty",
                    "background",
                  ],
                  styles: ["width", "height", "opacity"],
                  animations: { opacity: { type: "tween", duration: 250 } },
                },
                didWriteView: function (e) {
                  var t = e.root,
                    i = e.props;
                  i.background &&
                    (t.element.style.backgroundColor = i.background);
                },
                create: function (t) {
                  var i = t.root,
                    n = t.props;
                  (i.ref.image = i.appendChildView(
                    i.createChildView(J(e), Object.assign({}, n))
                  )),
                    (i.ref.createMarkup = function () {
                      i.ref.markup ||
                        (i.ref.markup = i.appendChildView(
                          i.createChildView(B(e), Object.assign({}, n))
                        ));
                    }),
                    (i.ref.destroyMarkup = function () {
                      i.ref.markup &&
                        (i.removeChildView(i.ref.markup),
                        (i.ref.markup = null));
                    });
                  var r = i.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");
                  null !== r &&
                    (i.element.dataset.transparencyIndicator =
                      "grid" === r ? r : "color");
                },
                write: function (e) {
                  var t = e.root,
                    i = e.props,
                    n = e.shouldOptimize,
                    r = i.crop,
                    a = i.markup,
                    o = i.resize,
                    s = i.dirty,
                    l = i.width,
                    c = i.height;
                  t.ref.image.crop = r;
                  var u = {
                      x: 0,
                      y: 0,
                      width: l,
                      height: c,
                      center: { x: 0.5 * l, y: 0.5 * c },
                    },
                    d = {
                      width: t.ref.image.width,
                      height: t.ref.image.height,
                    },
                    h = { x: r.center.x * d.width, y: r.center.y * d.height },
                    f = {
                      x: u.center.x - d.width * r.center.x,
                      y: u.center.y - d.height * r.center.y,
                    },
                    p = 2 * Math.PI + (r.rotation % (2 * Math.PI)),
                    g = r.aspectRatio || d.height / d.width,
                    m = void 0 === r.scaleToFit || r.scaleToFit,
                    v = V(d, U(u, g), p, m ? r.center : { x: 0.5, y: 0.5 }),
                    b = r.zoom * v;
                  a && a.length
                    ? (t.ref.createMarkup(),
                      (t.ref.markup.width = l),
                      (t.ref.markup.height = c),
                      (t.ref.markup.resize = o),
                      (t.ref.markup.dirty = s),
                      (t.ref.markup.markup = a),
                      (t.ref.markup.crop = $(d, r)))
                    : t.ref.markup && t.ref.destroyMarkup();
                  var y = t.ref.image;
                  if (n)
                    return (
                      (y.originX = null),
                      (y.originY = null),
                      (y.translateX = null),
                      (y.translateY = null),
                      (y.rotateZ = null),
                      (y.scaleX = null),
                      void (y.scaleY = null)
                    );
                  (y.originX = h.x),
                    (y.originY = h.y),
                    (y.translateX = f.x),
                    (y.translateY = f.y),
                    (y.rotateZ = p),
                    (y.scaleX = b),
                    (y.scaleY = b);
                },
              });
            },
            ee = function (e) {
              return e.utils.createView({
                name: "image-preview",
                tag: "div",
                ignoreRect: !0,
                mixins: {
                  apis: [
                    "image",
                    "crop",
                    "markup",
                    "resize",
                    "dirty",
                    "background",
                  ],
                  styles: ["translateY", "scaleX", "scaleY", "opacity"],
                  animations: {
                    scaleX: Z,
                    scaleY: Z,
                    translateY: Z,
                    opacity: { type: "tween", duration: 400 },
                  },
                },
                create: function (t) {
                  var i = t.root,
                    n = t.props;
                  i.ref.clip = i.appendChildView(
                    i.createChildView(Q(e), {
                      id: n.id,
                      image: n.image,
                      crop: n.crop,
                      markup: n.markup,
                      resize: n.resize,
                      dirty: n.dirty,
                      background: n.background,
                    })
                  );
                },
                write: function (e) {
                  var t = e.root,
                    i = e.props,
                    n = e.shouldOptimize,
                    r = t.ref.clip,
                    a = i.image,
                    o = i.crop,
                    s = i.markup,
                    l = i.resize,
                    c = i.dirty;
                  if (
                    ((r.crop = o),
                    (r.markup = s),
                    (r.resize = l),
                    (r.dirty = c),
                    (r.opacity = n ? 0 : 1),
                    !n && !t.rect.element.hidden)
                  ) {
                    var u = a.height / a.width,
                      d = o.aspectRatio || u,
                      h = t.rect.inner.width,
                      f = t.rect.inner.height,
                      p = t.query("GET_IMAGE_PREVIEW_HEIGHT"),
                      g = t.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),
                      m = t.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),
                      v = t.query("GET_PANEL_ASPECT_RATIO"),
                      b = t.query("GET_ALLOW_MULTIPLE");
                    v && !b && ((p = h * v), (d = v));
                    var y = null !== p ? p : Math.max(g, Math.min(h * d, m)),
                      x = y / d;
                    x > h && (y = (x = h) * d),
                      y > f && ((y = f), (x = f / d)),
                      (r.width = x),
                      (r.height = y);
                  }
                },
              });
            },
            te =
              '<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none">\n    <defs>\n        <radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15">\n            <stop offset=\'50%\' stop-color=\'#000000\'/>\n            <stop offset=\'56%\' stop-color=\'#0a0a0a\'/>\n            <stop offset=\'63%\' stop-color=\'#262626\'/>\n            <stop offset=\'69%\' stop-color=\'#4f4f4f\'/>\n            <stop offset=\'75%\' stop-color=\'#808080\'/>\n            <stop offset=\'81%\' stop-color=\'#b1b1b1\'/>\n            <stop offset=\'88%\' stop-color=\'#dadada\'/>\n            <stop offset=\'94%\' stop-color=\'#f6f6f6\'/>\n            <stop offset=\'100%\' stop-color=\'#ffffff\'/>\n        </radialGradient>\n        <mask id="mask-__UID__">\n            <rect x="0" y="0" width="500" height="200" fill="url(#gradient-__UID__)"></rect>\n        </mask>\n    </defs>\n    <rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect>\n</svg>',
            ie = 0,
            ne = function (e) {
              return e.utils.createView({
                name: "image-preview-overlay",
                tag: "div",
                ignoreRect: !0,
                create: function (e) {
                  var t = e.root,
                    i = e.props,
                    n = te;
                  if (document.querySelector("base")) {
                    var r = new URL(
                      window.location.href.replace(window.location.hash, "")
                    ).href;
                    n = n.replace(/url\(\#/g, "url(" + r + "#");
                  }
                  ie++,
                    t.element.classList.add(
                      "filepond--image-preview-overlay-".concat(i.status)
                    ),
                    (t.element.innerHTML = n.replace(/__UID__/g, ie));
                },
                mixins: {
                  styles: ["opacity"],
                  animations: { opacity: { type: "spring", mass: 25 } },
                },
              });
            },
            re = function () {
              self.onmessage = function (e) {
                createImageBitmap(e.data.message.file).then(function (t) {
                  self.postMessage({ id: e.data.id, message: t }, [t]);
                });
              };
            },
            ae = function () {
              self.onmessage = function (e) {
                for (
                  var t = e.data.message.imageData,
                    i = e.data.message.colorMatrix,
                    n = t.data,
                    r = n.length,
                    a = i[0],
                    o = i[1],
                    s = i[2],
                    l = i[3],
                    c = i[4],
                    u = i[5],
                    d = i[6],
                    h = i[7],
                    f = i[8],
                    p = i[9],
                    g = i[10],
                    m = i[11],
                    v = i[12],
                    b = i[13],
                    y = i[14],
                    x = i[15],
                    w = i[16],
                    E = i[17],
                    _ = i[18],
                    S = i[19],
                    A = 0,
                    k = 0,
                    T = 0,
                    C = 0,
                    O = 0;
                  A < r;
                  A += 4
                )
                  (k = n[A] / 255),
                    (T = n[A + 1] / 255),
                    (C = n[A + 2] / 255),
                    (O = n[A + 3] / 255),
                    (n[A] = Math.max(
                      0,
                      Math.min(255 * (k * a + T * o + C * s + O * l + c), 255)
                    )),
                    (n[A + 1] = Math.max(
                      0,
                      Math.min(255 * (k * u + T * d + C * h + O * f + p), 255)
                    )),
                    (n[A + 2] = Math.max(
                      0,
                      Math.min(255 * (k * g + T * m + C * v + O * b + y), 255)
                    )),
                    (n[A + 3] = Math.max(
                      0,
                      Math.min(255 * (k * x + T * w + C * E + O * _ + S), 255)
                    ));
                self.postMessage({ id: e.data.id, message: t }, [
                  t.data.buffer,
                ]);
              };
            },
            oe = function (e, t) {
              var i = new Image();
              (i.onload = function () {
                var e = i.naturalWidth,
                  n = i.naturalHeight;
                (i = null), t(e, n);
              }),
                (i.src = e);
            },
            se = {
              1: function () {
                return [1, 0, 0, 1, 0, 0];
              },
              2: function (e) {
                return [-1, 0, 0, 1, e, 0];
              },
              3: function (e, t) {
                return [-1, 0, 0, -1, e, t];
              },
              4: function (e, t) {
                return [1, 0, 0, -1, 0, t];
              },
              5: function () {
                return [0, 1, 1, 0, 0, 0];
              },
              6: function (e, t) {
                return [0, 1, -1, 0, t, 0];
              },
              7: function (e, t) {
                return [0, -1, -1, 0, t, e];
              },
              8: function (e) {
                return [0, -1, 1, 0, 0, e];
              },
            },
            le = function (e, t, i, n) {
              -1 !== n && e.transform.apply(e, se[n](t, i));
            },
            ce = function (e, t, i, n) {
              (t = Math.round(t)), (i = Math.round(i));
              var r = document.createElement("canvas");
              (r.width = t), (r.height = i);
              var a = r.getContext("2d");
              if (n >= 5 && n <= 8) {
                var o = [i, t];
                (t = o[0]), (i = o[1]);
              }
              return le(a, t, i, n), a.drawImage(e, 0, 0, t, i), r;
            },
            ue = function (e) {
              return /^image/.test(e.type) && !/svg/.test(e.type);
            },
            de = 10,
            he = 10,
            fe = function (e) {
              var t = Math.min(de / e.width, he / e.height),
                i = document.createElement("canvas"),
                n = i.getContext("2d"),
                r = (i.width = Math.ceil(e.width * t)),
                a = (i.height = Math.ceil(e.height * t));
              n.drawImage(e, 0, 0, r, a);
              var o = null;
              try {
                o = n.getImageData(0, 0, r, a).data;
              } catch (e) {
                return null;
              }
              for (var s = o.length, l = 0, c = 0, u = 0, d = 0; d < s; d += 4)
                (l += o[d] * o[d]),
                  (c += o[d + 1] * o[d + 1]),
                  (u += o[d + 2] * o[d + 2]);
              return {
                r: (l = pe(l, s)),
                g: (c = pe(c, s)),
                b: (u = pe(u, s)),
              };
            },
            pe = function (e, t) {
              return Math.floor(Math.sqrt(e / (t / 4)));
            },
            ge = function (e, t) {
              return (
                ((t = t || document.createElement("canvas")).width = e.width),
                (t.height = e.height),
                t.getContext("2d").drawImage(e, 0, 0),
                t
              );
            },
            me = function (e) {
              var t;
              try {
                t = new ImageData(e.width, e.height);
              } catch (i) {
                t = document
                  .createElement("canvas")
                  .getContext("2d")
                  .createImageData(e.width, e.height);
              }
              return t.data.set(new Uint8ClampedArray(e.data)), t;
            },
            ve = function (e) {
              return new Promise(function (t, i) {
                var n = new Image();
                (n.crossOrigin = "Anonymous"),
                  (n.onload = function () {
                    t(n);
                  }),
                  (n.onerror = function (e) {
                    i(e);
                  }),
                  (n.src = e);
              });
            },
            be = function (e) {
              var t = ne(e),
                i = ee(e),
                n = e.utils.createWorker,
                r = function (e, t, i) {
                  return new Promise(function (r) {
                    e.ref.imageData ||
                      (e.ref.imageData = i
                        .getContext("2d")
                        .getImageData(0, 0, i.width, i.height));
                    var a = me(e.ref.imageData);
                    if (!t || 20 !== t.length)
                      return i.getContext("2d").putImageData(a, 0, 0), r();
                    var o = n(ae);
                    o.post(
                      { imageData: a, colorMatrix: t },
                      function (e) {
                        i.getContext("2d").putImageData(e, 0, 0),
                          o.terminate(),
                          r();
                      },
                      [a.data.buffer]
                    );
                  });
                },
                a = function (e, t) {
                  e.removeChildView(t),
                    (t.image.width = 1),
                    (t.image.height = 1),
                    t._destroy();
                },
                o = function (e) {
                  var t = e.root,
                    i = t.ref.images.shift();
                  return (
                    (i.opacity = 0),
                    (i.translateY = -15),
                    t.ref.imageViewBin.push(i),
                    i
                  );
                },
                s = function (e) {
                  var t = e.root,
                    n = e.props,
                    r = e.image,
                    a = n.id,
                    o = t.query("GET_ITEM", { id: a });
                  if (o) {
                    var s,
                      l,
                      c = o.getMetadata("crop") || {
                        center: { x: 0.5, y: 0.5 },
                        flip: { horizontal: !1, vertical: !1 },
                        zoom: 1,
                        rotation: 0,
                        aspectRatio: null,
                      },
                      u = t.query(
                        "GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"
                      ),
                      d = !1;
                    t.query("GET_IMAGE_PREVIEW_MARKUP_SHOW") &&
                      ((s = o.getMetadata("markup") || []),
                      (l = o.getMetadata("resize")),
                      (d = !0));
                    var h = t.appendChildView(
                      t.createChildView(i, {
                        id: a,
                        image: r,
                        crop: c,
                        resize: l,
                        markup: s,
                        dirty: d,
                        background: u,
                        opacity: 0,
                        scaleX: 1.15,
                        scaleY: 1.15,
                        translateY: 15,
                      }),
                      t.childViews.length
                    );
                    t.ref.images.push(h),
                      (h.opacity = 1),
                      (h.scaleX = 1),
                      (h.scaleY = 1),
                      (h.translateY = 0),
                      setTimeout(function () {
                        t.dispatch("DID_IMAGE_PREVIEW_SHOW", { id: a });
                      }, 250);
                  }
                },
                l = function (e) {
                  var t = e.root,
                    i = e.props,
                    n = t.query("GET_ITEM", { id: i.id });
                  if (n) {
                    var r = t.ref.images[t.ref.images.length - 1];
                    (r.crop = n.getMetadata("crop")),
                      (r.background = t.query(
                        "GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"
                      )),
                      t.query("GET_IMAGE_PREVIEW_MARKUP_SHOW") &&
                        ((r.dirty = !0),
                        (r.resize = n.getMetadata("resize")),
                        (r.markup = n.getMetadata("markup")));
                  }
                },
                c = function (e) {
                  var t = e.root,
                    i = e.props,
                    n = e.action;
                  if (
                    /crop|filter|markup|resize/.test(n.change.key) &&
                    t.ref.images.length
                  ) {
                    var a = t.query("GET_ITEM", { id: i.id });
                    if (a)
                      if (/filter/.test(n.change.key)) {
                        var c = t.ref.images[t.ref.images.length - 1];
                        r(t, n.change.value, c.image);
                      } else if (/crop|markup|resize/.test(n.change.key)) {
                        var u = a.getMetadata("crop"),
                          d = t.ref.images[t.ref.images.length - 1];
                        if (
                          u &&
                          u.aspectRatio &&
                          d.crop &&
                          d.crop.aspectRatio &&
                          Math.abs(u.aspectRatio - d.crop.aspectRatio) > 1e-5
                        ) {
                          var h = o({ root: t });
                          s({ root: t, props: i, image: ge(h.image) });
                        } else l({ root: t, props: i });
                      }
                  }
                },
                u = function (e) {
                  var t =
                    window.navigator.userAgent.match(/Firefox\/([0-9]+)\./);
                  return (
                    !((t ? parseInt(t[1]) : null) <= 58) &&
                    "createImageBitmap" in window &&
                    ue(e)
                  );
                },
                d = function (e) {
                  var t = e.root,
                    i = e.props.id,
                    n = t.query("GET_ITEM", i);
                  if (n) {
                    var r = URL.createObjectURL(n.file);
                    oe(r, function (e, n) {
                      t.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE", {
                        id: i,
                        width: e,
                        height: n,
                      });
                    });
                  }
                },
                h = function (e) {
                  var t = e.root,
                    i = e.props,
                    a = i.id,
                    o = t.query("GET_ITEM", a);
                  if (o) {
                    var l = URL.createObjectURL(o.file),
                      c = function () {
                        ve(l).then(d);
                      },
                      d = function (e) {
                        URL.revokeObjectURL(l);
                        var n = (o.getMetadata("exif") || {}).orientation || -1,
                          a = e.width,
                          c = e.height;
                        if (a && c) {
                          if (n >= 5 && n <= 8) {
                            var u = [c, a];
                            (a = u[0]), (c = u[1]);
                          }
                          var d = Math.max(1, 0.75 * window.devicePixelRatio),
                            h = t.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR") * d,
                            f = c / a,
                            p = t.rect.element.width,
                            g = t.rect.element.height,
                            m = p,
                            v = m * f;
                          f > 1
                            ? (v = (m = Math.min(a, p * h)) * f)
                            : (m = (v = Math.min(c, g * h)) / f);
                          var b = ce(e, m, v, n),
                            y = function () {
                              var n = t.query(
                                "GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR"
                              )
                                ? fe(data)
                                : null;
                              o.setMetadata("color", n, !0),
                                "close" in e && e.close(),
                                (t.ref.overlayShadow.opacity = 1),
                                s({ root: t, props: i, image: b });
                            },
                            x = o.getMetadata("filter");
                          x ? r(t, x, b).then(y) : y();
                        }
                      };
                    if (u(o.file)) {
                      var h = n(re);
                      h.post({ file: o.file }, function (e) {
                        h.terminate(), e ? d(e) : c();
                      });
                    } else c();
                  }
                },
                f = function (e) {
                  var t = e.root,
                    i = t.ref.images[t.ref.images.length - 1];
                  (i.translateY = 0),
                    (i.scaleX = 1),
                    (i.scaleY = 1),
                    (i.opacity = 1);
                },
                p = function (e) {
                  var t = e.root;
                  (t.ref.overlayShadow.opacity = 1),
                    (t.ref.overlayError.opacity = 0),
                    (t.ref.overlaySuccess.opacity = 0);
                },
                g = function (e) {
                  var t = e.root;
                  (t.ref.overlayShadow.opacity = 0.25),
                    (t.ref.overlayError.opacity = 1);
                },
                m = function (e) {
                  var t = e.root;
                  (t.ref.overlayShadow.opacity = 0.25),
                    (t.ref.overlaySuccess.opacity = 1);
                },
                v = function (e) {
                  var i = e.root;
                  (i.ref.images = []),
                    (i.ref.imageData = null),
                    (i.ref.imageViewBin = []),
                    (i.ref.overlayShadow = i.appendChildView(
                      i.createChildView(t, { opacity: 0, status: "idle" })
                    )),
                    (i.ref.overlaySuccess = i.appendChildView(
                      i.createChildView(t, { opacity: 0, status: "success" })
                    )),
                    (i.ref.overlayError = i.appendChildView(
                      i.createChildView(t, { opacity: 0, status: "failure" })
                    ));
                };
              return e.utils.createView({
                name: "image-preview-wrapper",
                create: v,
                styles: ["height"],
                apis: ["height"],
                destroy: function (e) {
                  e.root.ref.images.forEach(function (e) {
                    (e.image.width = 1), (e.image.height = 1);
                  });
                },
                didWriteView: function (e) {
                  e.root.ref.images.forEach(function (e) {
                    e.dirty = !1;
                  });
                },
                write: e.utils.createRoute(
                  {
                    DID_IMAGE_PREVIEW_DRAW: f,
                    DID_IMAGE_PREVIEW_CONTAINER_CREATE: d,
                    DID_FINISH_CALCULATE_PREVIEWSIZE: h,
                    DID_UPDATE_ITEM_METADATA: c,
                    DID_THROW_ITEM_LOAD_ERROR: g,
                    DID_THROW_ITEM_PROCESSING_ERROR: g,
                    DID_THROW_ITEM_INVALID: g,
                    DID_COMPLETE_ITEM_PROCESSING: m,
                    DID_START_ITEM_PROCESSING: p,
                    DID_REVERT_ITEM_PROCESSING: p,
                  },
                  function (e) {
                    var t = e.root,
                      i = t.ref.imageViewBin.filter(function (e) {
                        return 0 === e.opacity;
                      });
                    (t.ref.imageViewBin = t.ref.imageViewBin.filter(function (
                      e
                    ) {
                      return e.opacity > 0;
                    })),
                      i.forEach(function (e) {
                        return a(t, e);
                      }),
                      (i.length = 0);
                  }
                ),
              });
            },
            ye = function (t) {
              var i = t.addFilter,
                n = t.utils,
                r = n.Type,
                a = n.createRoute,
                o = n.isFile,
                s = be(t);
              return (
                i("CREATE_VIEW", function (t) {
                  var i = t.is,
                    n = t.view,
                    r = t.query;
                  if (i("file") && r("GET_ALLOW_IMAGE_PREVIEW")) {
                    var l = function (t) {
                        var i = t.root,
                          a = t.props.id,
                          l = r("GET_ITEM", a);
                        if (l && o(l.file) && !l.archived) {
                          var c = l.file;
                          if (e(c) && r("GET_IMAGE_PREVIEW_FILTER_ITEM")(l)) {
                            var u = "createImageBitmap" in (window || {}),
                              d = r("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");
                            if (!(!u && d && c.size > d)) {
                              i.ref.imagePreview = n.appendChildView(
                                n.createChildView(s, { id: a })
                              );
                              var h = i.query("GET_IMAGE_PREVIEW_HEIGHT");
                              h &&
                                i.dispatch("DID_UPDATE_PANEL_HEIGHT", {
                                  id: l.id,
                                  height: h,
                                });
                              var f =
                                !u &&
                                c.size >
                                  r(
                                    "GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE"
                                  );
                              i.dispatch(
                                "DID_IMAGE_PREVIEW_CONTAINER_CREATE",
                                { id: a },
                                f
                              );
                            }
                          }
                        }
                      },
                      c = function (e, t) {
                        if (e.ref.imagePreview) {
                          var i = t.id,
                            n = e.query("GET_ITEM", { id: i });
                          if (n) {
                            var r = e.query("GET_PANEL_ASPECT_RATIO"),
                              a = e.query("GET_ITEM_PANEL_ASPECT_RATIO"),
                              o = e.query("GET_IMAGE_PREVIEW_HEIGHT");
                            if (!(r || a || o)) {
                              var s = e.ref,
                                l = s.imageWidth,
                                c = s.imageHeight;
                              if (l && c) {
                                var u = e.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),
                                  d = e.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),
                                  h =
                                    (n.getMetadata("exif") || {}).orientation ||
                                    -1;
                                if (h >= 5 && h <= 8) {
                                  var f = [c, l];
                                  (l = f[0]), (c = f[1]);
                                }
                                if (
                                  !ue(n.file) ||
                                  e.query("GET_IMAGE_PREVIEW_UPSCALE")
                                ) {
                                  var p = 2048 / l;
                                  (l *= p), (c *= p);
                                }
                                var g = c / l,
                                  m =
                                    (n.getMetadata("crop") || {}).aspectRatio ||
                                    g,
                                  v = Math.max(u, Math.min(c, d)),
                                  b = e.rect.element.width,
                                  y = Math.min(b * m, v);
                                e.dispatch("DID_UPDATE_PANEL_HEIGHT", {
                                  id: n.id,
                                  height: y,
                                });
                              }
                            }
                          }
                        }
                      },
                      u = function (e) {
                        e.root.ref.shouldRescale = !0;
                      },
                      d = function (e) {
                        var t = e.root;
                        "crop" === e.action.change.key &&
                          (t.ref.shouldRescale = !0);
                      },
                      h = function (e) {
                        var t = e.root,
                          i = e.action;
                        (t.ref.imageWidth = i.width),
                          (t.ref.imageHeight = i.height),
                          (t.ref.shouldRescale = !0),
                          (t.ref.shouldDrawPreview = !0),
                          t.dispatch("KICK");
                      };
                    n.registerWriter(
                      a(
                        {
                          DID_RESIZE_ROOT: u,
                          DID_STOP_RESIZE: u,
                          DID_LOAD_ITEM: l,
                          DID_IMAGE_PREVIEW_CALCULATE_SIZE: h,
                          DID_UPDATE_ITEM_METADATA: d,
                        },
                        function (e) {
                          var t = e.root,
                            i = e.props;
                          t.ref.imagePreview &&
                            (t.rect.element.hidden ||
                              (t.ref.shouldRescale &&
                                (c(t, i), (t.ref.shouldRescale = !1)),
                              t.ref.shouldDrawPreview &&
                                (requestAnimationFrame(function () {
                                  requestAnimationFrame(function () {
                                    t.dispatch(
                                      "DID_FINISH_CALCULATE_PREVIEWSIZE",
                                      { id: i.id }
                                    );
                                  });
                                }),
                                (t.ref.shouldDrawPreview = !1))));
                        }
                      )
                    );
                  }
                }),
                {
                  options: {
                    allowImagePreview: [!0, r.BOOLEAN],
                    imagePreviewFilterItem: [
                      function () {
                        return !0;
                      },
                      r.FUNCTION,
                    ],
                    imagePreviewHeight: [null, r.INT],
                    imagePreviewMinHeight: [44, r.INT],
                    imagePreviewMaxHeight: [256, r.INT],
                    imagePreviewMaxFileSize: [null, r.INT],
                    imagePreviewZoomFactor: [2, r.INT],
                    imagePreviewUpscale: [!1, r.BOOLEAN],
                    imagePreviewMaxInstantPreviewFileSize: [1e6, r.INT],
                    imagePreviewTransparencyIndicator: [null, r.STRING],
                    imagePreviewCalculateAverageImageColor: [!1, r.BOOLEAN],
                    imagePreviewMarkupShow: [!0, r.BOOLEAN],
                    imagePreviewMarkupFilter: [
                      function () {
                        return !0;
                      },
                      r.FUNCTION,
                    ],
                  },
                }
              );
            };
          return (
            "undefined" != typeof window &&
              void 0 !== window.document &&
              document.dispatchEvent(
                new CustomEvent("FilePond:pluginloaded", { detail: ye })
              ),
            ye
          );
        })();
      },
      391: function (e, t) {
        !(function (e) {
          "use strict";
          var t = function (e) {
              return e instanceof HTMLElement;
            },
            i = function (e) {
              var t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : [],
                i =
                  arguments.length > 2 && void 0 !== arguments[2]
                    ? arguments[2]
                    : [],
                n = Object.assign({}, e),
                r = [],
                a = [],
                o = function () {
                  var e = [].concat(a);
                  (a.length = 0),
                    e.forEach(function (e) {
                      var t = e.type,
                        i = e.data;
                      s(t, i);
                    });
                },
                s = function (e, t, i) {
                  !i || document.hidden
                    ? (d[e] && d[e](t), r.push({ type: e, data: t }))
                    : a.push({ type: e, data: t });
                },
                l = function (e) {
                  for (
                    var t,
                      i = arguments.length,
                      n = new Array(i > 1 ? i - 1 : 0),
                      r = 1;
                    r < i;
                    r++
                  )
                    n[r - 1] = arguments[r];
                  return u[e] ? (t = u)[e].apply(t, n) : null;
                },
                c = {
                  getState: function () {
                    return Object.assign({}, n);
                  },
                  processActionQueue: function () {
                    var e = [].concat(r);
                    return (r.length = 0), e;
                  },
                  processDispatchQueue: o,
                  dispatch: s,
                  query: l,
                },
                u = {};
              t.forEach(function (e) {
                u = Object.assign({}, e(n), {}, u);
              });
              var d = {};
              return (
                i.forEach(function (e) {
                  d = Object.assign({}, e(s, l, n), {}, d);
                }),
                c
              );
            },
            n = function (e, t, i) {
              "function" != typeof i
                ? Object.defineProperty(e, t, Object.assign({}, i))
                : (e[t] = i);
            },
            r = function (e, t) {
              for (var i in e) e.hasOwnProperty(i) && t(i, e[i]);
            },
            a = function (e) {
              var t = {};
              return (
                r(e, function (i) {
                  n(t, i, e[i]);
                }),
                t
              );
            },
            o = function (e, t) {
              var i =
                arguments.length > 2 && void 0 !== arguments[2]
                  ? arguments[2]
                  : null;
              if (null === i) return e.getAttribute(t) || e.hasAttribute(t);
              e.setAttribute(t, i);
            },
            s = "http://www.w3.org/2000/svg",
            l = ["svg", "path"],
            c = function (e) {
              return l.includes(e);
            },
            u = function (e, t) {
              var i =
                arguments.length > 2 && void 0 !== arguments[2]
                  ? arguments[2]
                  : {};
              "object" == typeof t && ((i = t), (t = null));
              var n = c(e)
                ? document.createElementNS(s, e)
                : document.createElement(e);
              return (
                t && (c(e) ? o(n, "class", t) : (n.className = t)),
                r(i, function (e, t) {
                  o(n, e, t);
                }),
                n
              );
            },
            d = function (e) {
              return function (t, i) {
                void 0 !== i && e.children[i]
                  ? e.insertBefore(t, e.children[i])
                  : e.appendChild(t);
              };
            },
            h = function (e, t) {
              return function (e, i) {
                return void 0 !== i ? t.splice(i, 0, e) : t.push(e), e;
              };
            },
            f = function (e, t) {
              return function (i) {
                return (
                  t.splice(t.indexOf(i), 1),
                  i.element.parentNode && e.removeChild(i.element),
                  i
                );
              };
            },
            p = "undefined" != typeof window && void 0 !== window.document,
            g = function () {
              return p;
            },
            m =
              "children" in (g() ? u("svg") : {})
                ? function (e) {
                    return e.children.length;
                  }
                : function (e) {
                    return e.childNodes.length;
                  },
            v = function (e, t, i, n) {
              var r = i[0] || e.left,
                a = i[1] || e.top,
                o = r + e.width,
                s = a + e.height * (n[1] || 1),
                l = {
                  element: Object.assign({}, e),
                  inner: {
                    left: e.left,
                    top: e.top,
                    right: e.right,
                    bottom: e.bottom,
                  },
                  outer: { left: r, top: a, right: o, bottom: s },
                };
              return (
                t
                  .filter(function (e) {
                    return !e.isRectIgnored();
                  })
                  .map(function (e) {
                    return e.rect;
                  })
                  .forEach(function (e) {
                    b(l.inner, Object.assign({}, e.inner)),
                      b(l.outer, Object.assign({}, e.outer));
                  }),
                y(l.inner),
                (l.outer.bottom += l.element.marginBottom),
                (l.outer.right += l.element.marginRight),
                y(l.outer),
                l
              );
            },
            b = function (e, t) {
              (t.top += e.top),
                (t.right += e.left),
                (t.bottom += e.top),
                (t.left += e.left),
                t.bottom > e.bottom && (e.bottom = t.bottom),
                t.right > e.right && (e.right = t.right);
            },
            y = function (e) {
              (e.width = e.right - e.left), (e.height = e.bottom - e.top);
            },
            x = function (e) {
              return "number" == typeof e;
            },
            w = function (e, t, i) {
              var n =
                arguments.length > 3 && void 0 !== arguments[3]
                  ? arguments[3]
                  : 0.001;
              return Math.abs(e - t) < n && Math.abs(i) < n;
            },
            E = function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : {},
                t = e.stiffness,
                i = void 0 === t ? 0.5 : t,
                n = e.damping,
                r = void 0 === n ? 0.75 : n,
                o = e.mass,
                s = void 0 === o ? 10 : o,
                l = null,
                c = null,
                u = 0,
                d = !1,
                h = a({
                  interpolate: function (e, t) {
                    if (!d) {
                      if (!x(l) || !x(c)) return (d = !0), void (u = 0);
                      w((c += u += (-(c - l) * i) / s), l, (u *= r)) || t
                        ? ((c = l),
                          (u = 0),
                          (d = !0),
                          h.onupdate(c),
                          h.oncomplete(c))
                        : h.onupdate(c);
                    }
                  },
                  target: {
                    set: function (e) {
                      if (
                        (x(e) && !x(c) && (c = e),
                        null === l && ((l = e), (c = e)),
                        c === (l = e) || void 0 === l)
                      )
                        return (
                          (d = !0), (u = 0), h.onupdate(c), void h.oncomplete(c)
                        );
                      d = !1;
                    },
                    get: function () {
                      return l;
                    },
                  },
                  resting: {
                    get: function () {
                      return d;
                    },
                  },
                  onupdate: function (e) {},
                  oncomplete: function (e) {},
                });
              return h;
            },
            _ = function (e) {
              return e < 0.5 ? 2 * e * e : (4 - 2 * e) * e - 1;
            },
            S = function () {
              var e,
                t,
                i =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : {},
                n = i.duration,
                r = void 0 === n ? 500 : n,
                o = i.easing,
                s = void 0 === o ? _ : o,
                l = i.delay,
                c = void 0 === l ? 0 : l,
                u = null,
                d = !0,
                h = !1,
                f = null,
                p = a({
                  interpolate: function (i, n) {
                    d ||
                      null === f ||
                      (null === u && (u = i),
                      i - u < c ||
                        ((e = i - u - c) >= r || n
                          ? ((e = 1),
                            (t = h ? 0 : 1),
                            p.onupdate(t * f),
                            p.oncomplete(t * f),
                            (d = !0))
                          : ((t = e / r),
                            p.onupdate((e >= 0 ? s(h ? 1 - t : t) : 0) * f))));
                  },
                  target: {
                    get: function () {
                      return h ? 0 : f;
                    },
                    set: function (e) {
                      if (null === f)
                        return (f = e), p.onupdate(e), void p.oncomplete(e);
                      e < f ? ((f = 1), (h = !0)) : ((h = !1), (f = e)),
                        (d = !1),
                        (u = null);
                    },
                  },
                  resting: {
                    get: function () {
                      return d;
                    },
                  },
                  onupdate: function (e) {},
                  oncomplete: function (e) {},
                });
              return p;
            },
            A = { spring: E, tween: S },
            k = function (e, t, i) {
              var n = e[t] && "object" == typeof e[t][i] ? e[t][i] : e[t] || e,
                r = "string" == typeof n ? n : n.type,
                a = "object" == typeof n ? Object.assign({}, n) : {};
              return A[r] ? A[r](a) : null;
            },
            T = function (e, t, i) {
              var n =
                arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
              (t = Array.isArray(t) ? t : [t]).forEach(function (t) {
                e.forEach(function (e) {
                  var r = e,
                    a = function () {
                      return i[e];
                    },
                    o = function (t) {
                      return (i[e] = t);
                    };
                  "object" == typeof e &&
                    ((r = e.key), (a = e.getter || a), (o = e.setter || o)),
                    (t[r] && !n) || (t[r] = { get: a, set: o });
                });
              });
            },
            C = function (e) {
              return function (t, i) {
                e.addEventListener(t, i);
              };
            },
            O = function (e) {
              return function (t, i) {
                e.removeEventListener(t, i);
              };
            },
            I = function (e) {
              return null != e;
            },
            M = {
              opacity: 1,
              scaleX: 1,
              scaleY: 1,
              translateX: 0,
              translateY: 0,
              rotateX: 0,
              rotateY: 0,
              rotateZ: 0,
              originX: 0,
              originY: 0,
            },
            L = function (e) {
              var t = e.mixinConfig,
                i = e.viewProps,
                n = e.viewInternalAPI,
                r = e.viewExternalAPI,
                a = e.view,
                o = Object.assign({}, i),
                s = {};
              T(t, [n, r], i);
              var l = function () {
                  return [i.translateX || 0, i.translateY || 0];
                },
                c = function () {
                  return [i.scaleX || 0, i.scaleY || 0];
                },
                u = function () {
                  return a.rect ? v(a.rect, a.childViews, l(), c()) : null;
                };
              return (
                (n.rect = { get: u }),
                (r.rect = { get: u }),
                t.forEach(function (e) {
                  i[e] = void 0 === o[e] ? M[e] : o[e];
                }),
                {
                  write: function () {
                    if (P(s, i))
                      return (
                        D(a.element, i),
                        Object.assign(s, Object.assign({}, i)),
                        !0
                      );
                  },
                  destroy: function () {},
                }
              );
            },
            P = function (e, t) {
              if (Object.keys(e).length !== Object.keys(t).length) return !0;
              for (var i in t) if (t[i] !== e[i]) return !0;
              return !1;
            },
            D = function (e, t) {
              var i = t.opacity,
                n = t.perspective,
                r = t.translateX,
                a = t.translateY,
                o = t.scaleX,
                s = t.scaleY,
                l = t.rotateX,
                c = t.rotateY,
                u = t.rotateZ,
                d = t.originX,
                h = t.originY,
                f = t.width,
                p = t.height,
                g = "",
                m = "";
              (I(d) || I(h)) &&
                (m +=
                  "transform-origin: " + (d || 0) + "px " + (h || 0) + "px;"),
                I(n) && (g += "perspective(" + n + "px) "),
                (I(r) || I(a)) &&
                  (g +=
                    "translate3d(" + (r || 0) + "px, " + (a || 0) + "px, 0) "),
                (I(o) || I(s)) &&
                  (g +=
                    "scale3d(" +
                    (I(o) ? o : 1) +
                    ", " +
                    (I(s) ? s : 1) +
                    ", 1) "),
                I(u) && (g += "rotateZ(" + u + "rad) "),
                I(l) && (g += "rotateX(" + l + "rad) "),
                I(c) && (g += "rotateY(" + c + "rad) "),
                g.length && (m += "transform:" + g + ";"),
                I(i) &&
                  ((m += "opacity:" + i + ";"),
                  0 === i && (m += "visibility:hidden;"),
                  i < 1 && (m += "pointer-events:none;")),
                I(p) && (m += "height:" + p + "px;"),
                I(f) && (m += "width:" + f + "px;");
              var v = e.elementCurrentStyle || "";
              (m.length === v.length && m === v) ||
                ((e.style.cssText = m), (e.elementCurrentStyle = m));
            },
            R = {
              styles: L,
              listeners: function (e) {
                e.mixinConfig, e.viewProps, e.viewInternalAPI;
                var t = e.viewExternalAPI,
                  i = (e.viewState, e.view),
                  n = [],
                  r = C(i.element),
                  a = O(i.element);
                return (
                  (t.on = function (e, t) {
                    n.push({ type: e, fn: t }), r(e, t);
                  }),
                  (t.off = function (e, t) {
                    n.splice(
                      n.findIndex(function (i) {
                        return i.type === e && i.fn === t;
                      }),
                      1
                    ),
                      a(e, t);
                  }),
                  {
                    write: function () {
                      return !0;
                    },
                    destroy: function () {
                      n.forEach(function (e) {
                        a(e.type, e.fn);
                      });
                    },
                  }
                );
              },
              animations: function (e) {
                var t = e.mixinConfig,
                  i = e.viewProps,
                  n = e.viewInternalAPI,
                  a = e.viewExternalAPI,
                  o = Object.assign({}, i),
                  s = [];
                return (
                  r(t, function (e, t) {
                    var r = k(t);
                    r &&
                      ((r.onupdate = function (t) {
                        i[e] = t;
                      }),
                      (r.target = o[e]),
                      T(
                        [
                          {
                            key: e,
                            setter: function (e) {
                              r.target !== e && (r.target = e);
                            },
                            getter: function () {
                              return i[e];
                            },
                          },
                        ],
                        [n, a],
                        i,
                        !0
                      ),
                      s.push(r));
                  }),
                  {
                    write: function (e) {
                      var t = document.hidden,
                        i = !0;
                      return (
                        s.forEach(function (n) {
                          n.resting || (i = !1), n.interpolate(e, t);
                        }),
                        i
                      );
                    },
                    destroy: function () {},
                  }
                );
              },
              apis: function (e) {
                var t = e.mixinConfig,
                  i = e.viewProps,
                  n = e.viewExternalAPI;
                T(t, n, i);
              },
            },
            N = function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : {},
                t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : {},
                i =
                  arguments.length > 2 && void 0 !== arguments[2]
                    ? arguments[2]
                    : {};
              return (
                t.layoutCalculated ||
                  ((e.paddingTop = parseInt(i.paddingTop, 10) || 0),
                  (e.marginTop = parseInt(i.marginTop, 10) || 0),
                  (e.marginRight = parseInt(i.marginRight, 10) || 0),
                  (e.marginBottom = parseInt(i.marginBottom, 10) || 0),
                  (e.marginLeft = parseInt(i.marginLeft, 10) || 0),
                  (t.layoutCalculated = !0)),
                (e.left = t.offsetLeft || 0),
                (e.top = t.offsetTop || 0),
                (e.width = t.offsetWidth || 0),
                (e.height = t.offsetHeight || 0),
                (e.right = e.left + e.width),
                (e.bottom = e.top + e.height),
                (e.scrollTop = t.scrollTop),
                (e.hidden = null === t.offsetParent),
                e
              );
            },
            F = function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : {},
                t = e.tag,
                i = void 0 === t ? "div" : t,
                n = e.name,
                r = void 0 === n ? null : n,
                o = e.attributes,
                s = void 0 === o ? {} : o,
                l = e.read,
                c = void 0 === l ? function () {} : l,
                p = e.write,
                g = void 0 === p ? function () {} : p,
                b = e.create,
                y = void 0 === b ? function () {} : b,
                x = e.destroy,
                w = void 0 === x ? function () {} : x,
                E = e.filterFrameActionsForChild,
                _ =
                  void 0 === E
                    ? function (e, t) {
                        return t;
                      }
                    : E,
                S = e.didCreateView,
                A = void 0 === S ? function () {} : S,
                k = e.didWriteView,
                T = void 0 === k ? function () {} : k,
                C = e.ignoreRect,
                O = void 0 !== C && C,
                I = e.ignoreRectUpdate,
                M = void 0 !== I && I,
                L = e.mixins,
                P = void 0 === L ? [] : L;
              return function (e) {
                var t =
                    arguments.length > 1 && void 0 !== arguments[1]
                      ? arguments[1]
                      : {},
                  n = u(i, "filepond--" + r, s),
                  o = window.getComputedStyle(n, null),
                  l = N(),
                  p = null,
                  b = !1,
                  x = [],
                  E = [],
                  S = {},
                  k = {},
                  C = [g],
                  I = [c],
                  L = [w],
                  D = function () {
                    return n;
                  },
                  F = function () {
                    return x.concat();
                  },
                  B = function () {
                    return S;
                  },
                  z = function (e) {
                    return function (t, i) {
                      return t(e, i);
                    };
                  },
                  j = function () {
                    return p || (p = v(l, x, [0, 0], [1, 1]));
                  },
                  H = function () {
                    (p = null),
                      x.forEach(function (e) {
                        return e._read();
                      }),
                      !(M && l.width && l.height) && N(l, n, o);
                    var e = { root: U, props: t, rect: l };
                    I.forEach(function (t) {
                      return t(e);
                    });
                  },
                  Y = function (e, i, n) {
                    var r = 0 === i.length;
                    return (
                      C.forEach(function (a) {
                        !1 ===
                          a({
                            props: t,
                            root: U,
                            actions: i,
                            timestamp: e,
                            shouldOptimize: n,
                          }) && (r = !1);
                      }),
                      E.forEach(function (t) {
                        !1 === t.write(e) && (r = !1);
                      }),
                      x
                        .filter(function (e) {
                          return !!e.element.parentNode;
                        })
                        .forEach(function (t) {
                          t._write(e, _(t, i), n) || (r = !1);
                        }),
                      x.forEach(function (t, a) {
                        t.element.parentNode ||
                          (U.appendChild(t.element, a),
                          t._read(),
                          t._write(e, _(t, i), n),
                          (r = !1));
                      }),
                      (b = r),
                      T({ props: t, root: U, actions: i, timestamp: e }),
                      r
                    );
                  },
                  X = function () {
                    E.forEach(function (e) {
                      return e.destroy();
                    }),
                      L.forEach(function (e) {
                        e({ root: U, props: t });
                      }),
                      x.forEach(function (e) {
                        return e._destroy();
                      });
                  },
                  W = {
                    element: { get: D },
                    style: {
                      get: function () {
                        return o;
                      },
                    },
                    childViews: { get: F },
                  },
                  G = Object.assign({}, W, {
                    rect: { get: j },
                    ref: { get: B },
                    is: function (e) {
                      return r === e;
                    },
                    appendChild: d(n),
                    createChildView: z(e),
                    linkView: function (e) {
                      return x.push(e), e;
                    },
                    unlinkView: function (e) {
                      x.splice(x.indexOf(e), 1);
                    },
                    appendChildView: h(n, x),
                    removeChildView: f(n, x),
                    registerWriter: function (e) {
                      return C.push(e);
                    },
                    registerReader: function (e) {
                      return I.push(e);
                    },
                    registerDestroyer: function (e) {
                      return L.push(e);
                    },
                    invalidateLayout: function () {
                      return (n.layoutCalculated = !1);
                    },
                    dispatch: e.dispatch,
                    query: e.query,
                  }),
                  q = {
                    element: { get: D },
                    childViews: { get: F },
                    rect: { get: j },
                    resting: {
                      get: function () {
                        return b;
                      },
                    },
                    isRectIgnored: function () {
                      return O;
                    },
                    _read: H,
                    _write: Y,
                    _destroy: X,
                  },
                  V = Object.assign({}, W, {
                    rect: {
                      get: function () {
                        return l;
                      },
                    },
                  });
                Object.keys(P)
                  .sort(function (e, t) {
                    return "styles" === e ? 1 : "styles" === t ? -1 : 0;
                  })
                  .forEach(function (e) {
                    var i = R[e]({
                      mixinConfig: P[e],
                      viewProps: t,
                      viewState: k,
                      viewInternalAPI: G,
                      viewExternalAPI: q,
                      view: a(V),
                    });
                    i && E.push(i);
                  });
                var U = a(G);
                y({ root: U, props: t });
                var $ = m(n);
                return (
                  x.forEach(function (e, t) {
                    U.appendChild(e.element, $ + t);
                  }),
                  A(U),
                  a(q)
                );
              };
            },
            B = function (e, t) {
              var i =
                  arguments.length > 2 && void 0 !== arguments[2]
                    ? arguments[2]
                    : 60,
                n = "__framePainter";
              if (window[n])
                return (
                  window[n].readers.push(e), void window[n].writers.push(t)
                );
              window[n] = { readers: [e], writers: [t] };
              var r = window[n],
                a = 1e3 / i,
                o = null,
                s = null,
                l = null,
                c = null,
                u = function () {
                  document.hidden
                    ? ((l = function () {
                        return window.setTimeout(function () {
                          return d(performance.now());
                        }, a);
                      }),
                      (c = function () {
                        return window.clearTimeout(s);
                      }))
                    : ((l = function () {
                        return window.requestAnimationFrame(d);
                      }),
                      (c = function () {
                        return window.cancelAnimationFrame(s);
                      }));
                };
              document.addEventListener("visibilitychange", function () {
                c && c(), u(), d(performance.now());
              });
              var d = function e(t) {
                (s = l(e)), o || (o = t);
                var i = t - o;
                i <= a ||
                  ((o = t - (i % a)),
                  r.readers.forEach(function (e) {
                    return e();
                  }),
                  r.writers.forEach(function (e) {
                    return e(t);
                  }));
              };
              return (
                u(),
                d(performance.now()),
                {
                  pause: function () {
                    c(s);
                  },
                }
              );
            },
            z = function (e, t) {
              return function (i) {
                var n = i.root,
                  r = i.props,
                  a = i.actions,
                  o = void 0 === a ? [] : a,
                  s = i.timestamp,
                  l = i.shouldOptimize;
                o
                  .filter(function (t) {
                    return e[t.type];
                  })
                  .forEach(function (t) {
                    return e[t.type]({
                      root: n,
                      props: r,
                      action: t.data,
                      timestamp: s,
                      shouldOptimize: l,
                    });
                  }),
                  t &&
                    t({
                      root: n,
                      props: r,
                      actions: o,
                      timestamp: s,
                      shouldOptimize: l,
                    });
              };
            },
            j = function (e, t) {
              return t.parentNode.insertBefore(e, t);
            },
            H = function (e, t) {
              return t.parentNode.insertBefore(e, t.nextSibling);
            },
            Y = function (e) {
              return Array.isArray(e);
            },
            X = function (e) {
              return null == e;
            },
            W = function (e) {
              return e.trim();
            },
            G = function (e) {
              return "" + e;
            },
            q = function (e) {
              var t =
                arguments.length > 1 && void 0 !== arguments[1]
                  ? arguments[1]
                  : ",";
              return X(e)
                ? []
                : Y(e)
                ? e
                : G(e)
                    .split(t)
                    .map(W)
                    .filter(function (e) {
                      return e.length;
                    });
            },
            V = function (e) {
              return "boolean" == typeof e;
            },
            U = function (e) {
              return V(e) ? e : "true" === e;
            },
            $ = function (e) {
              return "string" == typeof e;
            },
            Z = function (e) {
              return x(e) ? e : $(e) ? G(e).replace(/[a-z]+/gi, "") : 0;
            },
            K = function (e) {
              return parseInt(Z(e), 10);
            },
            J = function (e) {
              return parseFloat(Z(e));
            },
            Q = function (e) {
              return x(e) && isFinite(e) && Math.floor(e) === e;
            },
            ee = function (e) {
              var t =
                arguments.length > 1 && void 0 !== arguments[1]
                  ? arguments[1]
                  : 1e3;
              if (Q(e)) return e;
              var i = G(e).trim();
              return /MB$/i.test(i)
                ? ((i = i.replace(/MB$i/, "").trim()), K(i) * t * t)
                : /KB/i.test(i)
                ? ((i = i.replace(/KB$i/, "").trim()), K(i) * t)
                : K(i);
            },
            te = function (e) {
              return "function" == typeof e;
            },
            ie = function (e) {
              for (var t = self, i = e.split("."), n = null; (n = i.shift()); )
                if (!(t = t[n])) return null;
              return t;
            },
            ne = {
              process: "POST",
              patch: "PATCH",
              revert: "DELETE",
              fetch: "GET",
              restore: "GET",
              load: "GET",
            },
            re = function (e) {
              var t = {};
              return (
                (t.url = $(e) ? e : e.url || ""),
                (t.timeout = e.timeout ? parseInt(e.timeout, 10) : 0),
                (t.headers = e.headers ? e.headers : {}),
                r(ne, function (i) {
                  t[i] = ae(i, e[i], ne[i], t.timeout, t.headers);
                }),
                (t.process = e.process || $(e) || e.url ? t.process : null),
                (t.remove = e.remove || null),
                delete t.headers,
                t
              );
            },
            ae = function (e, t, i, n, r) {
              if (null === t) return null;
              if ("function" == typeof t) return t;
              var a = {
                url: "GET" === i || "PATCH" === i ? "?" + e + "=" : "",
                method: i,
                headers: r,
                withCredentials: !1,
                timeout: n,
                onload: null,
                ondata: null,
                onerror: null,
              };
              if ($(t)) return (a.url = t), a;
              if ((Object.assign(a, t), $(a.headers))) {
                var o = a.headers.split(/:(.+)/);
                a.headers = { header: o[0], value: o[1] };
              }
              return (a.withCredentials = U(a.withCredentials)), a;
            },
            oe = function (e) {
              return null === e;
            },
            se = function (e) {
              return "object" == typeof e && null !== e;
            },
            le = function (e) {
              return (
                se(e) &&
                $(e.url) &&
                se(e.process) &&
                se(e.revert) &&
                se(e.restore) &&
                se(e.fetch)
              );
            },
            ce = function (e) {
              return Y(e)
                ? "array"
                : oe(e)
                ? "null"
                : Q(e)
                ? "int"
                : /^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)
                ? "bytes"
                : le(e)
                ? "api"
                : typeof e;
            },
            ue = function (e) {
              return e
                .replace(/{\s*'/g, '{"')
                .replace(/'\s*}/g, '"}')
                .replace(/'\s*:/g, '":')
                .replace(/:\s*'/g, ':"')
                .replace(/,\s*'/g, ',"')
                .replace(/'\s*,/g, '",');
            },
            de = {
              array: q,
              boolean: U,
              int: function (e) {
                return "bytes" === ce(e) ? ee(e) : K(e);
              },
              number: J,
              float: J,
              bytes: ee,
              string: function (e) {
                return te(e) ? e : G(e);
              },
              function: function (e) {
                return ie(e);
              },
              serverapi: function (e) {
                return re(e);
              },
              object: function (e) {
                try {
                  return JSON.parse(ue(e));
                } catch (e) {
                  return null;
                }
              },
            },
            he = function (e, t) {
              return de[t](e);
            },
            fe = function (e, t, i) {
              if (e === t) return e;
              var n = ce(e);
              if (n !== i) {
                var r = he(e, i);
                if (((n = ce(r)), null === r))
                  throw (
                    'Trying to assign value with incorrect type to "' +
                    option +
                    '", allowed type: "' +
                    i +
                    '"'
                  );
                e = r;
              }
              return e;
            },
            pe = function (e, t) {
              var i = e;
              return {
                enumerable: !0,
                get: function () {
                  return i;
                },
                set: function (n) {
                  i = fe(n, e, t);
                },
              };
            },
            ge = function (e) {
              var t = {};
              return (
                r(e, function (i) {
                  var n = e[i];
                  t[i] = pe(n[0], n[1]);
                }),
                a(t)
              );
            },
            me = function (e) {
              return {
                items: [],
                listUpdateTimeout: null,
                itemUpdateTimeout: null,
                processingQueue: [],
                options: ge(e),
              };
            },
            ve = function (e) {
              var t =
                arguments.length > 1 && void 0 !== arguments[1]
                  ? arguments[1]
                  : "-";
              return e
                .split(/(?=[A-Z])/)
                .map(function (e) {
                  return e.toLowerCase();
                })
                .join(t);
            },
            be = function (e, t) {
              var i = {};
              return (
                r(t, function (t) {
                  i[t] = {
                    get: function () {
                      return e.getState().options[t];
                    },
                    set: function (i) {
                      e.dispatch("SET_" + ve(t, "_").toUpperCase(), {
                        value: i,
                      });
                    },
                  };
                }),
                i
              );
            },
            ye = function (e) {
              return function (t, i, n) {
                var a = {};
                return (
                  r(e, function (e) {
                    var i = ve(e, "_").toUpperCase();
                    a["SET_" + i] = function (r) {
                      try {
                        n.options[e] = r.value;
                      } catch (e) {}
                      t("DID_SET_" + i, { value: n.options[e] });
                    };
                  }),
                  a
                );
              };
            },
            xe = function (e) {
              return function (t) {
                var i = {};
                return (
                  r(e, function (e) {
                    i["GET_" + ve(e, "_").toUpperCase()] = function (i) {
                      return t.options[e];
                    };
                  }),
                  i
                );
              };
            },
            we = { API: 1, DROP: 2, BROWSE: 3, PASTE: 4, NONE: 5 },
            Ee = function () {
              return Math.random().toString(36).substring(2, 11);
            };
          function _e(e) {
            this.wrapped = e;
          }
          function Se(e) {
            var t, i;
            function n(e, n) {
              return new Promise(function (a, o) {
                var s = { key: e, arg: n, resolve: a, reject: o, next: null };
                i ? (i = i.next = s) : ((t = i = s), r(e, n));
              });
            }
            function r(t, i) {
              try {
                var n = e[t](i),
                  o = n.value,
                  s = o instanceof _e;
                Promise.resolve(s ? o.wrapped : o).then(
                  function (e) {
                    s ? r("next", e) : a(n.done ? "return" : "normal", e);
                  },
                  function (e) {
                    r("throw", e);
                  }
                );
              } catch (e) {
                a("throw", e);
              }
            }
            function a(e, n) {
              switch (e) {
                case "return":
                  t.resolve({ value: n, done: !0 });
                  break;
                case "throw":
                  t.reject(n);
                  break;
                default:
                  t.resolve({ value: n, done: !1 });
              }
              (t = t.next) ? r(t.key, t.arg) : (i = null);
            }
            (this._invoke = n),
              "function" != typeof e.return && (this.return = void 0);
          }
          function Ae(e, t) {
            if (null == e) return {};
            var i,
              n,
              r = {},
              a = Object.keys(e);
            for (n = 0; n < a.length; n++)
              (i = a[n]), t.indexOf(i) >= 0 || (r[i] = e[i]);
            return r;
          }
          function ke(e, t) {
            if (null == e) return {};
            var i,
              n,
              r = Ae(e, t);
            if (Object.getOwnPropertySymbols) {
              var a = Object.getOwnPropertySymbols(e);
              for (n = 0; n < a.length; n++)
                (i = a[n]),
                  t.indexOf(i) >= 0 ||
                    (Object.prototype.propertyIsEnumerable.call(e, i) &&
                      (r[i] = e[i]));
            }
            return r;
          }
          function Te(e) {
            return Ce(e) || Oe(e) || Ie();
          }
          function Ce(e) {
            if (Array.isArray(e)) {
              for (var t = 0, i = new Array(e.length); t < e.length; t++)
                i[t] = e[t];
              return i;
            }
          }
          function Oe(e) {
            if (
              Symbol.iterator in Object(e) ||
              "[object Arguments]" === Object.prototype.toString.call(e)
            )
              return Array.from(e);
          }
          function Ie() {
            throw new TypeError(
              "Invalid attempt to spread non-iterable instance"
            );
          }
          "function" == typeof Symbol &&
            Symbol.asyncIterator &&
            (Se.prototype[Symbol.asyncIterator] = function () {
              return this;
            }),
            (Se.prototype.next = function (e) {
              return this._invoke("next", e);
            }),
            (Se.prototype.throw = function (e) {
              return this._invoke("throw", e);
            }),
            (Se.prototype.return = function (e) {
              return this._invoke("return", e);
            });
          var Me = function (e, t) {
              return e.splice(t, 1);
            },
            Le = function (e, t) {
              t
                ? e()
                : document.hidden
                ? Promise.resolve(1).then(e)
                : setTimeout(e, 0);
            },
            Pe = function () {
              var e = [],
                t = function (t, i) {
                  Me(
                    e,
                    e.findIndex(function (e) {
                      return e.event === t && (e.cb === i || !i);
                    })
                  );
                },
                i = function (t, i, n) {
                  e.filter(function (e) {
                    return e.event === t;
                  })
                    .map(function (e) {
                      return e.cb;
                    })
                    .forEach(function (e) {
                      return Le(function () {
                        return e.apply(void 0, Te(i));
                      }, n);
                    });
                };
              return {
                fireSync: 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(e, n, !0);
                },
                fire: 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(e, n, !1);
                },
                on: function (t, i) {
                  e.push({ event: t, cb: i });
                },
                onOnce: function (i, n) {
                  e.push({
                    event: i,
                    cb: function () {
                      t(i, n), n.apply(void 0, arguments);
                    },
                  });
                },
                off: t,
              };
            },
            De = function (e, t, i) {
              Object.getOwnPropertyNames(e)
                .filter(function (e) {
                  return !i.includes(e);
                })
                .forEach(function (i) {
                  return Object.defineProperty(
                    t,
                    i,
                    Object.getOwnPropertyDescriptor(e, i)
                  );
                });
            },
            Re = [
              "fire",
              "process",
              "revert",
              "load",
              "on",
              "off",
              "onOnce",
              "retryLoad",
              "extend",
              "archive",
              "archived",
              "release",
              "released",
              "requestProcessing",
              "freeze",
            ],
            Ne = function (e) {
              var t = {};
              return De(e, t, Re), t;
            },
            Fe = function (e) {
              e.forEach(function (t, i) {
                t.released && Me(e, i);
              });
            },
            Be = {
              INIT: 1,
              IDLE: 2,
              PROCESSING_QUEUED: 9,
              PROCESSING: 3,
              PROCESSING_COMPLETE: 5,
              PROCESSING_ERROR: 6,
              PROCESSING_REVERT_ERROR: 10,
              LOADING: 7,
              LOAD_ERROR: 8,
            },
            ze = { INPUT: 1, LIMBO: 2, LOCAL: 3 },
            je = function (e) {
              return /[^0-9]+/.exec(e);
            },
            He = function () {
              return je((1.1).toLocaleString())[0];
            },
            Ye = function () {
              var e = He(),
                t = (1e3).toLocaleString();
              return t !== (1e3).toString() ? je(t)[0] : "." === e ? "," : ".";
            },
            Xe = {
              BOOLEAN: "boolean",
              INT: "int",
              NUMBER: "number",
              STRING: "string",
              ARRAY: "array",
              OBJECT: "object",
              FUNCTION: "function",
              ACTION: "action",
              SERVER_API: "serverapi",
              REGEX: "regex",
            },
            We = [],
            Ge = function (e, t, i) {
              return new Promise(function (n, r) {
                var a = We.filter(function (t) {
                  return t.key === e;
                }).map(function (e) {
                  return e.cb;
                });
                if (0 !== a.length) {
                  var o = a.shift();
                  a.reduce(function (e, t) {
                    return e.then(function (e) {
                      return t(e, i);
                    });
                  }, o(t, i))
                    .then(function (e) {
                      return n(e);
                    })
                    .catch(function (e) {
                      return r(e);
                    });
                } else n(t);
              });
            },
            qe = function (e, t, i) {
              return We.filter(function (t) {
                return t.key === e;
              }).map(function (e) {
                return e.cb(t, i);
              });
            },
            Ve = function (e, t) {
              return We.push({ key: e, cb: t });
            },
            Ue = function (e) {
              return Object.assign(Ke, e);
            },
            $e = function () {
              return Object.assign({}, Ke);
            },
            Ze = function (e) {
              r(e, function (e, t) {
                Ke[e] && (Ke[e][0] = fe(t, Ke[e][0], Ke[e][1]));
              });
            },
            Ke = {
              id: [null, Xe.STRING],
              name: ["filepond", Xe.STRING],
              disabled: [!1, Xe.BOOLEAN],
              className: [null, Xe.STRING],
              required: [!1, Xe.BOOLEAN],
              captureMethod: [null, Xe.STRING],
              allowSyncAcceptAttribute: [!0, Xe.BOOLEAN],
              allowDrop: [!0, Xe.BOOLEAN],
              allowBrowse: [!0, Xe.BOOLEAN],
              allowPaste: [!0, Xe.BOOLEAN],
              allowMultiple: [!1, Xe.BOOLEAN],
              allowReplace: [!0, Xe.BOOLEAN],
              allowRevert: [!0, Xe.BOOLEAN],
              allowRemove: [!0, Xe.BOOLEAN],
              allowProcess: [!0, Xe.BOOLEAN],
              allowReorder: [!1, Xe.BOOLEAN],
              allowDirectoriesOnly: [!1, Xe.BOOLEAN],
              storeAsFile: [!1, Xe.BOOLEAN],
              forceRevert: [!1, Xe.BOOLEAN],
              maxFiles: [null, Xe.INT],
              checkValidity: [!1, Xe.BOOLEAN],
              itemInsertLocationFreedom: [!0, Xe.BOOLEAN],
              itemInsertLocation: ["before", Xe.STRING],
              itemInsertInterval: [75, Xe.INT],
              dropOnPage: [!1, Xe.BOOLEAN],
              dropOnElement: [!0, Xe.BOOLEAN],
              dropValidation: [!1, Xe.BOOLEAN],
              ignoredFiles: [
                [".ds_store", "thumbs.db", "desktop.ini"],
                Xe.ARRAY,
              ],
              instantUpload: [!0, Xe.BOOLEAN],
              maxParallelUploads: [2, Xe.INT],
              allowMinimumUploadDuration: [!0, Xe.BOOLEAN],
              chunkUploads: [!1, Xe.BOOLEAN],
              chunkForce: [!1, Xe.BOOLEAN],
              chunkSize: [5e6, Xe.INT],
              chunkRetryDelays: [[500, 1e3, 3e3], Xe.ARRAY],
              server: [null, Xe.SERVER_API],
              fileSizeBase: [1e3, Xe.INT],
              labelFileSizeBytes: ["bytes", Xe.STRING],
              labelFileSizeKilobytes: ["KB", Xe.STRING],
              labelFileSizeMegabytes: ["MB", Xe.STRING],
              labelFileSizeGigabytes: ["GB", Xe.STRING],
              labelDecimalSeparator: [He(), Xe.STRING],
              labelThousandsSeparator: [Ye(), Xe.STRING],
              labelIdle: [
                'Drag & Drop your files or <span class="filepond--label-action">Browse</span>',
                Xe.STRING,
              ],
              labelInvalidField: ["Field contains invalid files", Xe.STRING],
              labelFileWaitingForSize: ["Waiting for size", Xe.STRING],
              labelFileSizeNotAvailable: ["Size not available", Xe.STRING],
              labelFileCountSingular: ["file in list", Xe.STRING],
              labelFileCountPlural: ["files in list", Xe.STRING],
              labelFileLoading: ["Loading", Xe.STRING],
              labelFileAdded: ["Added", Xe.STRING],
              labelFileLoadError: ["Error during load", Xe.STRING],
              labelFileRemoved: ["Removed", Xe.STRING],
              labelFileRemoveError: ["Error during remove", Xe.STRING],
              labelFileProcessing: ["Uploading", Xe.STRING],
              labelFileProcessingComplete: ["Upload complete", Xe.STRING],
              labelFileProcessingAborted: ["Upload cancelled", Xe.STRING],
              labelFileProcessingError: ["Error during upload", Xe.STRING],
              labelFileProcessingRevertError: [
                "Error during revert",
                Xe.STRING,
              ],
              labelTapToCancel: ["tap to cancel", Xe.STRING],
              labelTapToRetry: ["tap to retry", Xe.STRING],
              labelTapToUndo: ["tap to undo", Xe.STRING],
              labelButtonRemoveItem: ["Remove", Xe.STRING],
              labelButtonAbortItemLoad: ["Abort", Xe.STRING],
              labelButtonRetryItemLoad: ["Retry", Xe.STRING],
              labelButtonAbortItemProcessing: ["Cancel", Xe.STRING],
              labelButtonUndoItemProcessing: ["Undo", Xe.STRING],
              labelButtonRetryItemProcessing: ["Retry", Xe.STRING],
              labelButtonProcessItem: ["Upload", Xe.STRING],
              iconRemove: [
                '<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',
                Xe.STRING,
              ],
              iconProcess: [
                '<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',
                Xe.STRING,
              ],
              iconRetry: [
                '<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',
                Xe.STRING,
              ],
              iconUndo: [
                '<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',
                Xe.STRING,
              ],
              iconDone: [
                '<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',
                Xe.STRING,
              ],
              oninit: [null, Xe.FUNCTION],
              onwarning: [null, Xe.FUNCTION],
              onerror: [null, Xe.FUNCTION],
              onactivatefile: [null, Xe.FUNCTION],
              oninitfile: [null, Xe.FUNCTION],
              onaddfilestart: [null, Xe.FUNCTION],
              onaddfileprogress: [null, Xe.FUNCTION],
              onaddfile: [null, Xe.FUNCTION],
              onprocessfilestart: [null, Xe.FUNCTION],
              onprocessfileprogress: [null, Xe.FUNCTION],
              onprocessfileabort: [null, Xe.FUNCTION],
              onprocessfilerevert: [null, Xe.FUNCTION],
              onprocessfile: [null, Xe.FUNCTION],
              onprocessfiles: [null, Xe.FUNCTION],
              onremovefile: [null, Xe.FUNCTION],
              onpreparefile: [null, Xe.FUNCTION],
              onupdatefiles: [null, Xe.FUNCTION],
              onreorderfiles: [null, Xe.FUNCTION],
              beforeDropFile: [null, Xe.FUNCTION],
              beforeAddFile: [null, Xe.FUNCTION],
              beforeRemoveFile: [null, Xe.FUNCTION],
              beforePrepareFile: [null, Xe.FUNCTION],
              stylePanelLayout: [null, Xe.STRING],
              stylePanelAspectRatio: [null, Xe.STRING],
              styleItemPanelAspectRatio: [null, Xe.STRING],
              styleButtonRemoveItemPosition: ["left", Xe.STRING],
              styleButtonProcessItemPosition: ["right", Xe.STRING],
              styleLoadIndicatorPosition: ["right", Xe.STRING],
              styleProgressIndicatorPosition: ["right", Xe.STRING],
              styleButtonRemoveItemAlign: [!1, Xe.BOOLEAN],
              files: [[], Xe.ARRAY],
              credits: [["https://pqina.nl/", "Powered by PQINA"], Xe.ARRAY],
            },
            Je = function (e, t) {
              return X(t)
                ? e[0] || null
                : Q(t)
                ? e[t] || null
                : ("object" == typeof t && (t = t.id),
                  e.find(function (e) {
                    return e.id === t;
                  }) || null);
            },
            Qe = function (e) {
              if (X(e)) return e;
              if (/:/.test(e)) {
                var t = e.split(":");
                return t[1] / t[0];
              }
              return parseFloat(e);
            },
            et = function (e) {
              return e.filter(function (e) {
                return !e.archived;
              });
            },
            tt = { EMPTY: 0, IDLE: 1, ERROR: 2, BUSY: 3, READY: 4 },
            it = null,
            nt = function () {
              if (null === it)
                try {
                  var e = new DataTransfer();
                  e.items.add(new File(["hello world"], "This_Works.txt"));
                  var t = document.createElement("input");
                  t.setAttribute("type", "file"),
                    (t.files = e.files),
                    (it = 1 === t.files.length);
                } catch (e) {
                  it = !1;
                }
              return it;
            },
            rt = [
              Be.LOAD_ERROR,
              Be.PROCESSING_ERROR,
              Be.PROCESSING_REVERT_ERROR,
            ],
            at = [Be.LOADING, Be.PROCESSING, Be.PROCESSING_QUEUED, Be.INIT],
            ot = [Be.PROCESSING_COMPLETE],
            st = function (e) {
              return rt.includes(e.status);
            },
            lt = function (e) {
              return at.includes(e.status);
            },
            ct = function (e) {
              return ot.includes(e.status);
            },
            ut = function (e) {
              return (
                se(e.options.server) &&
                (se(e.options.server.process) || te(e.options.server.process))
              );
            },
            dt = function (e) {
              return {
                GET_STATUS: function () {
                  var t = et(e.items),
                    i = tt.EMPTY,
                    n = tt.ERROR,
                    r = tt.BUSY,
                    a = tt.IDLE,
                    o = tt.READY;
                  return 0 === t.length
                    ? i
                    : t.some(st)
                    ? n
                    : t.some(lt)
                    ? r
                    : t.some(ct)
                    ? o
                    : a;
                },
                GET_ITEM: function (t) {
                  return Je(e.items, t);
                },
                GET_ACTIVE_ITEM: function (t) {
                  return Je(et(e.items), t);
                },
                GET_ACTIVE_ITEMS: function () {
                  return et(e.items);
                },
                GET_ITEMS: function () {
                  return e.items;
                },
                GET_ITEM_NAME: function (t) {
                  var i = Je(e.items, t);
                  return i ? i.filename : null;
                },
                GET_ITEM_SIZE: function (t) {
                  var i = Je(e.items, t);
                  return i ? i.fileSize : null;
                },
                GET_STYLES: function () {
                  return Object.keys(e.options)
                    .filter(function (e) {
                      return /^style/.test(e);
                    })
                    .map(function (t) {
                      return { name: t, value: e.options[t] };
                    });
                },
                GET_PANEL_ASPECT_RATIO: function () {
                  return /circle/.test(e.options.stylePanelLayout)
                    ? 1
                    : Qe(e.options.stylePanelAspectRatio);
                },
                GET_ITEM_PANEL_ASPECT_RATIO: function () {
                  return e.options.styleItemPanelAspectRatio;
                },
                GET_ITEMS_BY_STATUS: function (t) {
                  return et(e.items).filter(function (e) {
                    return e.status === t;
                  });
                },
                GET_TOTAL_ITEMS: function () {
                  return et(e.items).length;
                },
                SHOULD_UPDATE_FILE_INPUT: function () {
                  return e.options.storeAsFile && nt() && !ut(e);
                },
                IS_ASYNC: function () {
                  return ut(e);
                },
                GET_FILE_SIZE_LABELS: function (e) {
                  return {
                    labelBytes: e("GET_LABEL_FILE_SIZE_BYTES") || void 0,
                    labelKilobytes:
                      e("GET_LABEL_FILE_SIZE_KILOBYTES") || void 0,
                    labelMegabytes:
                      e("GET_LABEL_FILE_SIZE_MEGABYTES") || void 0,
                    labelGigabytes:
                      e("GET_LABEL_FILE_SIZE_GIGABYTES") || void 0,
                  };
                },
              };
            },
            ht = function (e) {
              var t = et(e.items).length;
              if (!e.options.allowMultiple) return 0 === t;
              var i = e.options.maxFiles;
              return null === i || t < i;
            },
            ft = function (e, t, i) {
              return Math.max(Math.min(i, e), t);
            },
            pt = function (e, t, i) {
              return e.splice(t, 0, i);
            },
            gt = function (e, t, i) {
              return X(t)
                ? null
                : void 0 === i
                ? (e.push(t), t)
                : ((i = ft(i, 0, e.length)), pt(e, i, t), t);
            },
            mt = function (e) {
              return /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(
                e
              );
            },
            vt = function (e) {
              return e.split("/").pop().split("?").shift();
            },
            bt = function (e) {
              return e.split(".").pop();
            },
            yt = function (e) {
              if ("string" != typeof e) return "";
              var t = e.split("/").pop();
              return /svg/.test(t)
                ? "svg"
                : /zip|compressed/.test(t)
                ? "zip"
                : /plain/.test(t)
                ? "txt"
                : /msword/.test(t)
                ? "doc"
                : /[a-z]+/.test(t)
                ? "jpeg" === t
                  ? "jpg"
                  : t
                : "";
            },
            xt = function (e) {
              var t =
                arguments.length > 1 && void 0 !== arguments[1]
                  ? arguments[1]
                  : "";
              return (t + e).slice(-t.length);
            },
            wt = function () {
              var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : new Date();
              return (
                e.getFullYear() +
                "-" +
                xt(e.getMonth() + 1, "00") +
                "-" +
                xt(e.getDate(), "00") +
                "_" +
                xt(e.getHours(), "00") +
                "-" +
                xt(e.getMinutes(), "00") +
                "-" +
                xt(e.getSeconds(), "00")
              );
            },
            Et = function (e, t) {
              var i =
                  arguments.length > 2 && void 0 !== arguments[2]
                    ? arguments[2]
                    : null,
                n =
                  arguments.length > 3 && void 0 !== arguments[3]
                    ? arguments[3]
                    : null,
                r =
                  "string" == typeof i
                    ? e.slice(0, e.size, i)
                    : e.slice(0, e.size, e.type);
              return (
                (r.lastModifiedDate = new Date()),
                e._relativePath && (r._relativePath = e._relativePath),
                $(t) || (t = wt()),
                t && null === n && bt(t)
                  ? (r.name = t)
                  : ((n = n || yt(r.type)), (r.name = t + (n ? "." + n : ""))),
                r
              );
            },
            _t = function () {
              return (window.BlobBuilder =
                window.BlobBuilder ||
                window.WebKitBlobBuilder ||
                window.MozBlobBuilder ||
                window.MSBlobBuilder);
            },
            St = function (e, t) {
              var i = _t();
              if (i) {
                var n = new i();
                return n.append(e), n.getBlob(t);
              }
              return new Blob([e], { type: t });
            },
            At = function (e, t) {
              for (
                var i = new ArrayBuffer(e.length), n = new Uint8Array(i), r = 0;
                r < e.length;
                r++
              )
                n[r] = e.charCodeAt(r);
              return St(i, t);
            },
            kt = function (e) {
              return (/^data:(.+);/.exec(e) || [])[1] || null;
            },
            Tt = function (e) {
              return e.split(",")[1].replace(/\s/g, "");
            },
            Ct = function (e) {
              return atob(Tt(e));
            },
            Ot = function (e) {
              var t = kt(e),
                i = Ct(e);
              return At(i, t);
            },
            It = function (e, t, i) {
              return Et(Ot(e), t, null, i);
            },
            Mt = function (e) {
              if (!/^content-disposition:/i.test(e)) return null;
              var t = e
                .split(/filename=|filename\*=.+''/)
                .splice(1)
                .map(function (e) {
                  return e.trim().replace(/^["']|[;"']{0,2}$/g, "");
                })
                .filter(function (e) {
                  return e.length;
                });
              return t.length ? decodeURI(t[t.length - 1]) : null;
            },
            Lt = function (e) {
              if (/content-length:/i.test(e)) {
                var t = e.match(/[0-9]+/)[0];
                return t ? parseInt(t, 10) : null;
              }
              return null;
            },
            Pt = function (e) {
              return (
                (/x-content-transfer-id:/i.test(e) &&
                  (e.split(":")[1] || "").trim()) ||
                null
              );
            },
            Dt = function (e) {
              var t = { source: null, name: null, size: null },
                i = e.split("\n"),
                n = !0,
                r = !1,
                a = void 0;
              try {
                for (
                  var o, s = i[Symbol.iterator]();
                  !(n = (o = s.next()).done);
                  n = !0
                ) {
                  var l = o.value,
                    c = Mt(l);
                  if (c) t.name = c;
                  else {
                    var u = Lt(l);
                    if (u) t.size = u;
                    else {
                      var d = Pt(l);
                      d && (t.source = d);
                    }
                  }
                }
              } catch (e) {
                (r = !0), (a = e);
              } finally {
                try {
                  n || null == s.return || s.return();
                } finally {
                  if (r) throw a;
                }
              }
              return t;
            },
            Rt = function (e) {
              var t = {
                  source: null,
                  complete: !1,
                  progress: 0,
                  size: null,
                  timestamp: null,
                  duration: 0,
                  request: null,
                },
                i = function () {
                  return t.progress;
                },
                n = function () {
                  t.request && t.request.abort && t.request.abort();
                },
                r = function () {
                  var e = t.source;
                  o.fire("init", e),
                    e instanceof File
                      ? o.fire("load", e)
                      : e instanceof Blob
                      ? o.fire("load", Et(e, e.name))
                      : mt(e)
                      ? o.fire("load", It(e))
                      : a(e);
                },
                a = function (i) {
                  e
                    ? ((t.timestamp = Date.now()),
                      (t.request = e(
                        i,
                        function (e) {
                          (t.duration = Date.now() - t.timestamp),
                            (t.complete = !0),
                            e instanceof Blob && (e = Et(e, e.name || vt(i))),
                            o.fire(
                              "load",
                              e instanceof Blob ? e : e ? e.body : null
                            );
                        },
                        function (e) {
                          o.fire(
                            "error",
                            "string" == typeof e
                              ? { type: "error", code: 0, body: e }
                              : e
                          );
                        },
                        function (e, i, n) {
                          n && (t.size = n),
                            (t.duration = Date.now() - t.timestamp),
                            e
                              ? ((t.progress = i / n),
                                o.fire("progress", t.progress))
                              : (t.progress = null);
                        },
                        function () {
                          o.fire("abort");
                        },
                        function (e) {
                          var i = Dt("string" == typeof e ? e : e.headers);
                          o.fire("meta", {
                            size: t.size || i.size,
                            filename: i.name,
                            source: i.source,
                          });
                        }
                      )))
                    : o.fire("error", {
                        type: "error",
                        body: "Can't load URL",
                        code: 400,
                      });
                },
                o = Object.assign({}, Pe(), {
                  setSource: function (e) {
                    return (t.source = e);
                  },
                  getProgress: i,
                  abort: n,
                  load: r,
                });
              return o;
            },
            Nt = function (e) {
              return /GET|HEAD/.test(e);
            },
            Ft = function (e, t, i) {
              var n = {
                  onheaders: function () {},
                  onprogress: function () {},
                  onload: function () {},
                  ontimeout: function () {},
                  onerror: function () {},
                  onabort: function () {},
                  abort: function () {
                    (r = !0), o.abort();
                  },
                },
                r = !1,
                a = !1;
              (i = Object.assign(
                { method: "POST", headers: {}, withCredentials: !1 },
                i
              )),
                (t = encodeURI(t)),
                Nt(i.method) &&
                  e &&
                  (t =
                    "" +
                    t +
                    encodeURIComponent(
                      "string" == typeof e ? e : JSON.stringify(e)
                    ));
              var o = new XMLHttpRequest();
              return (
                ((Nt(i.method) ? o : o.upload).onprogress = function (e) {
                  r || n.onprogress(e.lengthComputable, e.loaded, e.total);
                }),
                (o.onreadystatechange = function () {
                  o.readyState < 2 ||
                    (4 === o.readyState && 0 === o.status) ||
                    a ||
                    ((a = !0), n.onheaders(o));
                }),
                (o.onload = function () {
                  o.status >= 200 && o.status < 300
                    ? n.onload(o)
                    : n.onerror(o);
                }),
                (o.onerror = function () {
                  return n.onerror(o);
                }),
                (o.onabort = function () {
                  (r = !0), n.onabort();
                }),
                (o.ontimeout = function () {
                  return n.ontimeout(o);
                }),
                o.open(i.method, t, !0),
                Q(i.timeout) && (o.timeout = i.timeout),
                Object.keys(i.headers).forEach(function (e) {
                  var t = unescape(encodeURIComponent(i.headers[e]));
                  o.setRequestHeader(e, t);
                }),
                i.responseType && (o.responseType = i.responseType),
                i.withCredentials && (o.withCredentials = !0),
                o.send(e),
                n
              );
            },
            Bt = function (e, t, i, n) {
              return { type: e, code: t, body: i, headers: n };
            },
            zt = function (e) {
              return function (t) {
                e(Bt("error", 0, "Timeout", t.getAllResponseHeaders()));
              };
            },
            jt = function (e) {
              return /\?/.test(e);
            },
            Ht = function () {
              for (
                var e = "", t = arguments.length, i = new Array(t), n = 0;
                n < t;
                n++
              )
                i[n] = arguments[n];
              return (
                i.forEach(function (t) {
                  e += jt(e) && jt(t) ? t.replace(/\?/, "&") : t;
                }),
                e
              );
            },
            Yt = function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : "",
                t = arguments.length > 1 ? arguments[1] : void 0;
              if ("function" == typeof t) return t;
              if (!t || !$(t.url)) return null;
              var i =
                  t.onload ||
                  function (e) {
                    return e;
                  },
                n =
                  t.onerror ||
                  function (e) {
                    return null;
                  };
              return function (r, a, o, s, l, c) {
                var u = Ft(
                  r,
                  Ht(e, t.url),
                  Object.assign({}, t, { responseType: "blob" })
                );
                return (
                  (u.onload = function (e) {
                    var n = e.getAllResponseHeaders(),
                      o = Dt(n).name || vt(r);
                    a(
                      Bt(
                        "load",
                        e.status,
                        "HEAD" === t.method ? null : Et(i(e.response), o),
                        n
                      )
                    );
                  }),
                  (u.onerror = function (e) {
                    o(
                      Bt(
                        "error",
                        e.status,
                        n(e.response) || e.statusText,
                        e.getAllResponseHeaders()
                      )
                    );
                  }),
                  (u.onheaders = function (e) {
                    c(Bt("headers", e.status, null, e.getAllResponseHeaders()));
                  }),
                  (u.ontimeout = zt(o)),
                  (u.onprogress = s),
                  (u.onabort = l),
                  u
                );
              };
            },
            Xt = {
              QUEUED: 0,
              COMPLETE: 1,
              PROCESSING: 2,
              ERROR: 3,
              WAITING: 4,
            },
            Wt = function (e, t, i, n, r, a, o, s, l, c, u) {
              for (
                var d = [],
                  h = u.chunkTransferId,
                  f = u.chunkServer,
                  p = u.chunkSize,
                  g = u.chunkRetryDelays,
                  m = { serverId: h, aborted: !1 },
                  v =
                    t.ondata ||
                    function (e) {
                      return e;
                    },
                  b =
                    t.onload ||
                    function (e, t) {
                      return "HEAD" === t
                        ? e.getResponseHeader("Upload-Offset")
                        : e.response;
                    },
                  y =
                    t.onerror ||
                    function (e) {
                      return null;
                    },
                  x = function (a) {
                    var s = new FormData();
                    se(r) && s.append(i, JSON.stringify(r));
                    var l =
                        "function" == typeof t.headers
                          ? t.headers(n, r)
                          : Object.assign({}, t.headers, {
                              "Upload-Length": n.size,
                            }),
                      c = Object.assign({}, t, { headers: l }),
                      u = Ft(v(s), Ht(e, t.url), c);
                    (u.onload = function (e) {
                      return a(b(e, c.method));
                    }),
                      (u.onerror = function (e) {
                        return o(
                          Bt(
                            "error",
                            e.status,
                            y(e.response) || e.statusText,
                            e.getAllResponseHeaders()
                          )
                        );
                      }),
                      (u.ontimeout = zt(o));
                  },
                  w = function (i) {
                    var n = Ht(e, f.url, m.serverId),
                      r = {
                        headers:
                          "function" == typeof t.headers
                            ? t.headers(m.serverId)
                            : Object.assign({}, t.headers),
                        method: "HEAD",
                      },
                      a = Ft(null, n, r);
                    (a.onload = function (e) {
                      return i(b(e, r.method));
                    }),
                      (a.onerror = function (e) {
                        return o(
                          Bt(
                            "error",
                            e.status,
                            y(e.response) || e.statusText,
                            e.getAllResponseHeaders()
                          )
                        );
                      }),
                      (a.ontimeout = zt(o));
                  },
                  E = Math.floor(n.size / p),
                  _ = 0;
                _ <= E;
                _++
              ) {
                var S = _ * p,
                  A = n.slice(S, S + p, "application/offset+octet-stream");
                d[_] = {
                  index: _,
                  size: A.size,
                  offset: S,
                  data: A,
                  file: n,
                  progress: 0,
                  retries: Te(g),
                  status: Xt.QUEUED,
                  error: null,
                  request: null,
                  timeout: null,
                };
              }
              var k = function () {
                  return a(m.serverId);
                },
                T = function (e) {
                  return e.status === Xt.QUEUED || e.status === Xt.ERROR;
                },
                C = function (t) {
                  if (!m.aborted)
                    if ((t = t || d.find(T))) {
                      (t.status = Xt.PROCESSING), (t.progress = null);
                      var i =
                          f.ondata ||
                          function (e) {
                            return e;
                          },
                        r =
                          f.onerror ||
                          function (e) {
                            return null;
                          },
                        a = Ht(e, f.url, m.serverId),
                        s =
                          "function" == typeof f.headers
                            ? f.headers(t)
                            : Object.assign({}, f.headers, {
                                "Content-Type":
                                  "application/offset+octet-stream",
                                "Upload-Offset": t.offset,
                                "Upload-Length": n.size,
                                "Upload-Name": n.name,
                              }),
                        c = (t.request = Ft(
                          i(t.data),
                          a,
                          Object.assign({}, f, { headers: s })
                        ));
                      (c.onload = function () {
                        (t.status = Xt.COMPLETE), (t.request = null), M();
                      }),
                        (c.onprogress = function (e, i, n) {
                          (t.progress = e ? i : null), I();
                        }),
                        (c.onerror = function (e) {
                          (t.status = Xt.ERROR),
                            (t.request = null),
                            (t.error = r(e.response) || e.statusText),
                            O(t) ||
                              o(
                                Bt(
                                  "error",
                                  e.status,
                                  r(e.response) || e.statusText,
                                  e.getAllResponseHeaders()
                                )
                              );
                        }),
                        (c.ontimeout = function (e) {
                          (t.status = Xt.ERROR),
                            (t.request = null),
                            O(t) || zt(o)(e);
                        }),
                        (c.onabort = function () {
                          (t.status = Xt.QUEUED), (t.request = null), l();
                        });
                    } else
                      d.every(function (e) {
                        return e.status === Xt.COMPLETE;
                      }) && k();
                },
                O = function (e) {
                  return (
                    0 !== e.retries.length &&
                    ((e.status = Xt.WAITING),
                    clearTimeout(e.timeout),
                    (e.timeout = setTimeout(function () {
                      C(e);
                    }, e.retries.shift())),
                    !0)
                  );
                },
                I = function () {
                  var e = d.reduce(function (e, t) {
                    return null === e || null === t.progress
                      ? null
                      : e + t.progress;
                  }, 0);
                  if (null === e) return s(!1, 0, 0);
                  var t = d.reduce(function (e, t) {
                    return e + t.size;
                  }, 0);
                  s(!0, e, t);
                },
                M = function () {
                  d.filter(function (e) {
                    return e.status === Xt.PROCESSING;
                  }).length >= 1 || C();
                },
                L = function () {
                  d.forEach(function (e) {
                    clearTimeout(e.timeout), e.request && e.request.abort();
                  });
                };
              return (
                m.serverId
                  ? w(function (e) {
                      m.aborted ||
                        (d
                          .filter(function (t) {
                            return t.offset < e;
                          })
                          .forEach(function (e) {
                            (e.status = Xt.COMPLETE), (e.progress = e.size);
                          }),
                        M());
                    })
                  : x(function (e) {
                      m.aborted || (c(e), (m.serverId = e), M());
                    }),
                {
                  abort: function () {
                    (m.aborted = !0), L();
                  },
                }
              );
            },
            Gt = function (e, t, i, n) {
              return function (r, a, o, s, l, c, u) {
                if (r) {
                  var d = n.chunkUploads,
                    h = d && r.size > n.chunkSize,
                    f = d && (h || n.chunkForce);
                  if (r instanceof Blob && f)
                    return Wt(e, t, i, r, a, o, s, l, c, u, n);
                  var p =
                      t.ondata ||
                      function (e) {
                        return e;
                      },
                    g =
                      t.onload ||
                      function (e) {
                        return e;
                      },
                    m =
                      t.onerror ||
                      function (e) {
                        return null;
                      },
                    v =
                      "function" == typeof t.headers
                        ? t.headers(r, a) || {}
                        : Object.assign({}, t.headers),
                    b = Object.assign({}, t, { headers: v }),
                    y = new FormData();
                  se(a) && y.append(i, JSON.stringify(a)),
                    (r instanceof Blob ? [{ name: null, file: r }] : r).forEach(
                      function (e) {
                        y.append(
                          i,
                          e.file,
                          null === e.name
                            ? e.file.name
                            : "" + e.name + e.file.name
                        );
                      }
                    );
                  var x = Ft(p(y), Ht(e, t.url), b);
                  return (
                    (x.onload = function (e) {
                      o(
                        Bt(
                          "load",
                          e.status,
                          g(e.response),
                          e.getAllResponseHeaders()
                        )
                      );
                    }),
                    (x.onerror = function (e) {
                      s(
                        Bt(
                          "error",
                          e.status,
                          m(e.response) || e.statusText,
                          e.getAllResponseHeaders()
                        )
                      );
                    }),
                    (x.ontimeout = zt(s)),
                    (x.onprogress = l),
                    (x.onabort = c),
                    x
                  );
                }
              };
            },
            qt = function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : "",
                t = arguments.length > 1 ? arguments[1] : void 0,
                i = arguments.length > 2 ? arguments[2] : void 0,
                n = arguments.length > 3 ? arguments[3] : void 0;
              return "function" == typeof t
                ? function () {
                    for (
                      var e = arguments.length, r = new Array(e), a = 0;
                      a < e;
                      a++
                    )
                      r[a] = arguments[a];
                    return t.apply(void 0, [i].concat(r, [n]));
                  }
                : t && $(t.url)
                ? Gt(e, t, i, n)
                : null;
            },
            Vt = function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : "",
                t = arguments.length > 1 ? arguments[1] : void 0;
              if ("function" == typeof t) return t;
              if (!t || !$(t.url))
                return function (e, t) {
                  return t();
                };
              var i =
                  t.onload ||
                  function (e) {
                    return e;
                  },
                n =
                  t.onerror ||
                  function (e) {
                    return null;
                  };
              return function (r, a, o) {
                var s = Ft(r, e + t.url, t);
                return (
                  (s.onload = function (e) {
                    a(
                      Bt(
                        "load",
                        e.status,
                        i(e.response),
                        e.getAllResponseHeaders()
                      )
                    );
                  }),
                  (s.onerror = function (e) {
                    o(
                      Bt(
                        "error",
                        e.status,
                        n(e.response) || e.statusText,
                        e.getAllResponseHeaders()
                      )
                    );
                  }),
                  (s.ontimeout = zt(o)),
                  s
                );
              };
            },
            Ut = function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : 0,
                t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : 1;
              return e + Math.random() * (t - e);
            },
            $t = function (e) {
              var t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : 1e3,
                i =
                  arguments.length > 3 && void 0 !== arguments[3]
                    ? arguments[3]
                    : 25,
                n =
                  arguments.length > 4 && void 0 !== arguments[4]
                    ? arguments[4]
                    : 250,
                r = null,
                a = Date.now();
              return (
                t > 0 &&
                  (function o() {
                    var s = Date.now() - a,
                      l = Ut(i, n);
                    s + l > t && (l = s + l - t);
                    var c = s / t;
                    c >= 1 || document.hidden
                      ? e(1)
                      : (e(c), (r = setTimeout(o, l)));
                  })(),
                {
                  clear: function () {
                    clearTimeout(r);
                  },
                }
              );
            },
            Zt = function (e, t) {
              var i = {
                  complete: !1,
                  perceivedProgress: 0,
                  perceivedPerformanceUpdater: null,
                  progress: null,
                  timestamp: null,
                  perceivedDuration: 0,
                  duration: 0,
                  request: null,
                  response: null,
                },
                n = t.allowMinimumUploadDuration,
                r = function (t, r) {
                  var a = function () {
                      0 !== i.duration &&
                        null !== i.progress &&
                        c.fire("progress", c.getProgress());
                    },
                    o = function () {
                      (i.complete = !0),
                        c.fire("load-perceived", i.response.body);
                    };
                  c.fire("start"),
                    (i.timestamp = Date.now()),
                    (i.perceivedPerformanceUpdater = $t(
                      function (e) {
                        (i.perceivedProgress = e),
                          (i.perceivedDuration = Date.now() - i.timestamp),
                          a(),
                          i.response &&
                            1 === i.perceivedProgress &&
                            !i.complete &&
                            o();
                      },
                      n ? Ut(750, 1500) : 0
                    )),
                    (i.request = e(
                      t,
                      r,
                      function (e) {
                        (i.response = se(e)
                          ? e
                          : {
                              type: "load",
                              code: 200,
                              body: "" + e,
                              headers: {},
                            }),
                          (i.duration = Date.now() - i.timestamp),
                          (i.progress = 1),
                          c.fire("load", i.response.body),
                          (!n || (n && 1 === i.perceivedProgress)) && o();
                      },
                      function (e) {
                        i.perceivedPerformanceUpdater.clear(),
                          c.fire(
                            "error",
                            se(e) ? e : { type: "error", code: 0, body: "" + e }
                          );
                      },
                      function (e, t, n) {
                        (i.duration = Date.now() - i.timestamp),
                          (i.progress = e ? t / n : null),
                          a();
                      },
                      function () {
                        i.perceivedPerformanceUpdater.clear(),
                          c.fire("abort", i.response ? i.response.body : null);
                      },
                      function (e) {
                        c.fire("transfer", e);
                      }
                    ));
                },
                a = function () {
                  i.request &&
                    (i.perceivedPerformanceUpdater.clear(),
                    i.request.abort && i.request.abort(),
                    (i.complete = !0));
                },
                o = function () {
                  a(),
                    (i.complete = !1),
                    (i.perceivedProgress = 0),
                    (i.progress = 0),
                    (i.timestamp = null),
                    (i.perceivedDuration = 0),
                    (i.duration = 0),
                    (i.request = null),
                    (i.response = null);
                },
                s = n
                  ? function () {
                      return i.progress
                        ? Math.min(i.progress, i.perceivedProgress)
                        : null;
                    }
                  : function () {
                      return i.progress || null;
                    },
                l = n
                  ? function () {
                      return Math.min(i.duration, i.perceivedDuration);
                    }
                  : function () {
                      return i.duration;
                    },
                c = Object.assign({}, Pe(), {
                  process: r,
                  abort: a,
                  getProgress: s,
                  getDuration: l,
                  reset: o,
                });
              return c;
            },
            Kt = function (e) {
              return e.substring(0, e.lastIndexOf(".")) || e;
            },
            Jt = function (e) {
              var t = [e.name, e.size, e.type];
              return (
                e instanceof Blob || mt(e)
                  ? (t[0] = e.name || wt())
                  : mt(e)
                  ? ((t[1] = e.length), (t[2] = kt(e)))
                  : $(e) &&
                    ((t[0] = vt(e)),
                    (t[1] = 0),
                    (t[2] = "application/octet-stream")),
                { name: t[0], size: t[1], type: t[2] }
              );
            },
            Qt = function (e) {
              return !!(e instanceof File || (e instanceof Blob && e.name));
            },
            ei = function e(t) {
              if (!se(t)) return t;
              var i = Y(t) ? [] : {};
              for (var n in t)
                if (t.hasOwnProperty(n)) {
                  var r = t[n];
                  i[n] = r && se(r) ? e(r) : r;
                }
              return i;
            },
            ti = function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : null,
                t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : null,
                i =
                  arguments.length > 2 && void 0 !== arguments[2]
                    ? arguments[2]
                    : null,
                n = Ee(),
                r = {
                  archived: !1,
                  frozen: !1,
                  released: !1,
                  source: null,
                  file: i,
                  serverFileReference: t,
                  transferId: null,
                  processingAborted: !1,
                  status: t ? Be.PROCESSING_COMPLETE : Be.INIT,
                  activeLoader: null,
                  activeProcessor: null,
                },
                o = null,
                s = {},
                l = function (e) {
                  return (r.status = e);
                },
                c = function (e) {
                  if (!r.released && !r.frozen) {
                    for (
                      var t = arguments.length,
                        i = new Array(t > 1 ? t - 1 : 0),
                        n = 1;
                      n < t;
                      n++
                    )
                      i[n - 1] = arguments[n];
                    _.fire.apply(_, [e].concat(i));
                  }
                },
                u = function () {
                  return bt(r.file.name);
                },
                d = function () {
                  return r.file.type;
                },
                h = function () {
                  return r.file.size;
                },
                f = function () {
                  return r.file;
                },
                p = function (t, i, n) {
                  (r.source = t),
                    _.fireSync("init"),
                    r.file
                      ? _.fireSync("load-skip")
                      : ((r.file = Jt(t)),
                        i.on("init", function () {
                          c("load-init");
                        }),
                        i.on("meta", function (t) {
                          (r.file.size = t.size),
                            (r.file.filename = t.filename),
                            t.source &&
                              ((e = ze.LIMBO),
                              (r.serverFileReference = t.source),
                              (r.status = Be.PROCESSING_COMPLETE)),
                            c("load-meta");
                        }),
                        i.on("progress", function (e) {
                          l(Be.LOADING), c("load-progress", e);
                        }),
                        i.on("error", function (e) {
                          l(Be.LOAD_ERROR), c("load-request-error", e);
                        }),
                        i.on("abort", function () {
                          l(Be.INIT), c("load-abort");
                        }),
                        i.on("load", function (t) {
                          r.activeLoader = null;
                          var i = function (t) {
                              (r.file = Qt(t) ? t : r.file),
                                e === ze.LIMBO && r.serverFileReference
                                  ? l(Be.PROCESSING_COMPLETE)
                                  : l(Be.IDLE),
                                c("load");
                            },
                            a = function (e) {
                              (r.file = t),
                                c("load-meta"),
                                l(Be.LOAD_ERROR),
                                c("load-file-error", e);
                            };
                          r.serverFileReference ? i(t) : n(t, i, a);
                        }),
                        i.setSource(t),
                        (r.activeLoader = i),
                        i.load());
                },
                g = function () {
                  r.activeLoader && r.activeLoader.load();
                },
                m = function () {
                  r.activeLoader
                    ? r.activeLoader.abort()
                    : (l(Be.INIT), c("load-abort"));
                },
                v = function e(t, i) {
                  if (r.processingAborted) r.processingAborted = !1;
                  else if (
                    (l(Be.PROCESSING), (o = null), r.file instanceof Blob)
                  ) {
                    t.on("load", function (e) {
                      (r.transferId = null), (r.serverFileReference = e);
                    }),
                      t.on("transfer", function (e) {
                        r.transferId = e;
                      }),
                      t.on("load-perceived", function (e) {
                        (r.activeProcessor = null),
                          (r.transferId = null),
                          (r.serverFileReference = e),
                          l(Be.PROCESSING_COMPLETE),
                          c("process-complete", e);
                      }),
                      t.on("start", function () {
                        c("process-start");
                      }),
                      t.on("error", function (e) {
                        (r.activeProcessor = null),
                          l(Be.PROCESSING_ERROR),
                          c("process-error", e);
                      }),
                      t.on("abort", function (e) {
                        (r.activeProcessor = null),
                          (r.serverFileReference = e),
                          l(Be.IDLE),
                          c("process-abort"),
                          o && o();
                      }),
                      t.on("progress", function (e) {
                        c("process-progress", e);
                      });
                    var n = function (e) {
                        r.archived || t.process(e, Object.assign({}, s));
                      },
                      a = console.error;
                    i(r.file, n, a), (r.activeProcessor = t);
                  } else
                    _.on("load", function () {
                      e(t, i);
                    });
                },
                b = function () {
                  (r.processingAborted = !1), l(Be.PROCESSING_QUEUED);
                },
                y = function () {
                  return new Promise(function (e) {
                    if (!r.activeProcessor)
                      return (
                        (r.processingAborted = !0),
                        l(Be.IDLE),
                        c("process-abort"),
                        void e()
                      );
                    (o = function () {
                      e();
                    }),
                      r.activeProcessor.abort();
                  });
                },
                x = function (e, t) {
                  return new Promise(function (i, n) {
                    var a =
                      null !== r.serverFileReference
                        ? r.serverFileReference
                        : r.transferId;
                    null !== a
                      ? (e(
                          a,
                          function () {
                            (r.serverFileReference = null),
                              (r.transferId = null),
                              i();
                          },
                          function (e) {
                            t
                              ? (l(Be.PROCESSING_REVERT_ERROR),
                                c("process-revert-error"),
                                n(e))
                              : i();
                          }
                        ),
                        l(Be.IDLE),
                        c("process-revert"))
                      : i();
                  });
                },
                w = function (e, t, i) {
                  var n = e.split("."),
                    r = n[0],
                    a = n.pop(),
                    o = s;
                  n.forEach(function (e) {
                    return (o = o[e]);
                  }),
                    JSON.stringify(o[a]) !== JSON.stringify(t) &&
                      ((o[a] = t),
                      c("metadata-update", { key: r, value: s[r], silent: i }));
                },
                E = function (e) {
                  return ei(e ? s[e] : s);
                },
                _ = Object.assign(
                  {
                    id: {
                      get: function () {
                        return n;
                      },
                    },
                    origin: {
                      get: function () {
                        return e;
                      },
                      set: function (t) {
                        return (e = t);
                      },
                    },
                    serverId: {
                      get: function () {
                        return r.serverFileReference;
                      },
                    },
                    transferId: {
                      get: function () {
                        return r.transferId;
                      },
                    },
                    status: {
                      get: function () {
                        return r.status;
                      },
                    },
                    filename: {
                      get: function () {
                        return r.file.name;
                      },
                    },
                    filenameWithoutExtension: {
                      get: function () {
                        return Kt(r.file.name);
                      },
                    },
                    fileExtension: { get: u },
                    fileType: { get: d },
                    fileSize: { get: h },
                    file: { get: f },
                    relativePath: {
                      get: function () {
                        return r.file._relativePath;
                      },
                    },
                    source: {
                      get: function () {
                        return r.source;
                      },
                    },
                    getMetadata: E,
                    setMetadata: function (e, t, i) {
                      if (se(e)) {
                        var n = e;
                        return (
                          Object.keys(n).forEach(function (e) {
                            w(e, n[e], t);
                          }),
                          e
                        );
                      }
                      return w(e, t, i), t;
                    },
                    extend: function (e, t) {
                      return (S[e] = t);
                    },
                    abortLoad: m,
                    retryLoad: g,
                    requestProcessing: b,
                    abortProcessing: y,
                    load: p,
                    process: v,
                    revert: x,
                  },
                  Pe(),
                  {
                    freeze: function () {
                      return (r.frozen = !0);
                    },
                    release: function () {
                      return (r.released = !0);
                    },
                    released: {
                      get: function () {
                        return r.released;
                      },
                    },
                    archive: function () {
                      return (r.archived = !0);
                    },
                    archived: {
                      get: function () {
                        return r.archived;
                      },
                    },
                  }
                ),
                S = a(_);
              return S;
            },
            ii = function (e, t) {
              return X(t)
                ? 0
                : $(t)
                ? e.findIndex(function (e) {
                    return e.id === t;
                  })
                : -1;
            },
            ni = function (e, t) {
              var i = ii(e, t);
              if (!(i < 0)) return e[i] || null;
            },
            ri = function (e, t, i, n, r, a) {
              var o = Ft(null, e, { method: "GET", responseType: "blob" });
              return (
                (o.onload = function (i) {
                  var n = i.getAllResponseHeaders(),
                    r = Dt(n).name || vt(e);
                  t(Bt("load", i.status, Et(i.response, r), n));
                }),
                (o.onerror = function (e) {
                  i(
                    Bt(
                      "error",
                      e.status,
                      e.statusText,
                      e.getAllResponseHeaders()
                    )
                  );
                }),
                (o.onheaders = function (e) {
                  a(Bt("headers", e.status, null, e.getAllResponseHeaders()));
                }),
                (o.ontimeout = zt(i)),
                (o.onprogress = n),
                (o.onabort = r),
                o
              );
            },
            ai = function (e) {
              return (
                0 === e.indexOf("//") && (e = location.protocol + e),
                e
                  .toLowerCase()
                  .replace("blob:", "")
                  .replace(/([a-z])?:\/\//, "$1")
                  .split("/")[0]
              );
            },
            oi = function (e) {
              return (
                (e.indexOf(":") > -1 || e.indexOf("//") > -1) &&
                ai(location.href) !== ai(e)
              );
            },
            si = function (e) {
              return function () {
                return te(e) ? e.apply(void 0, arguments) : e;
              };
            },
            li = function (e) {
              return !Qt(e.file);
            },
            ci = function (e, t) {
              clearTimeout(t.listUpdateTimeout),
                (t.listUpdateTimeout = setTimeout(function () {
                  e("DID_UPDATE_ITEMS", { items: et(t.items) });
                }, 0));
            },
            ui = function (e) {
              for (
                var t = arguments.length,
                  i = new Array(t > 1 ? t - 1 : 0),
                  n = 1;
                n < t;
                n++
              )
                i[n - 1] = arguments[n];
              return new Promise(function (t) {
                if (!e) return t(!0);
                var n = e.apply(void 0, i);
                return null == n
                  ? t(!0)
                  : "boolean" == typeof n
                  ? t(n)
                  : void ("function" == typeof n.then && n.then(t));
              });
            },
            di = function (e, t) {
              e.items.sort(function (e, i) {
                return t(Ne(e), Ne(i));
              });
            },
            hi = function (e, t) {
              return function () {
                var i =
                    arguments.length > 0 && void 0 !== arguments[0]
                      ? arguments[0]
                      : {},
                  n = i.query,
                  r = i.success,
                  a = void 0 === r ? function () {} : r,
                  o = i.failure,
                  s = void 0 === o ? function () {} : o,
                  l = ke(i, ["query", "success", "failure"]),
                  c = Je(e.items, n);
                c
                  ? t(c, a, s, l || {})
                  : s({ error: Bt("error", 0, "Item not found"), file: null });
              };
            },
            fi = function (e, t, i) {
              return {
                ABORT_ALL: function () {
                  et(i.items).forEach(function (e) {
                    e.freeze(), e.abortLoad(), e.abortProcessing();
                  });
                },
                DID_SET_FILES: function (t) {
                  var n = t.value,
                    r = (void 0 === n ? [] : n).map(function (e) {
                      return {
                        source: e.source ? e.source : e,
                        options: e.options,
                      };
                    }),
                    a = et(i.items);
                  a.forEach(function (t) {
                    r.find(function (e) {
                      return e.source === t.source || e.source === t.file;
                    }) || e("REMOVE_ITEM", { query: t, remove: !1 });
                  }),
                    (a = et(i.items)),
                    r.forEach(function (t, i) {
                      a.find(function (e) {
                        return e.source === t.source || e.file === t.source;
                      }) ||
                        e(
                          "ADD_ITEM",
                          Object.assign({}, t, {
                            interactionMethod: we.NONE,
                            index: i,
                          })
                        );
                    });
                },
                DID_UPDATE_ITEM_METADATA: function (n) {
                  var r = n.id,
                    a = n.action,
                    o = n.change;
                  o.silent ||
                    (clearTimeout(i.itemUpdateTimeout),
                    (i.itemUpdateTimeout = setTimeout(function () {
                      var n = ni(i.items, r);
                      if (t("IS_ASYNC")) {
                        n.origin === ze.LOCAL &&
                          e("DID_LOAD_ITEM", {
                            id: n.id,
                            error: null,
                            serverFileReference: n.source,
                          });
                        var s = function () {
                            setTimeout(function () {
                              e("REQUEST_ITEM_PROCESSING", { query: r });
                            }, 32);
                          },
                          l = function (e) {
                            n.revert(
                              Vt(i.options.server.url, i.options.server.revert),
                              t("GET_FORCE_REVERT")
                            )
                              .then(e ? s : function () {})
                              .catch(function () {});
                          },
                          c = function (e) {
                            n.abortProcessing().then(e ? s : function () {});
                          };
                        return n.status === Be.PROCESSING_COMPLETE
                          ? l(i.options.instantUpload)
                          : n.status === Be.PROCESSING
                          ? c(i.options.instantUpload)
                          : void (i.options.instantUpload && s());
                      }
                      Ge("SHOULD_PREPARE_OUTPUT", !1, {
                        item: n,
                        query: t,
                        action: a,
                        change: o,
                      }).then(function (i) {
                        var a = t("GET_BEFORE_PREPARE_FILE");
                        a && (i = a(n, i)),
                          i &&
                            e(
                              "REQUEST_PREPARE_OUTPUT",
                              {
                                query: r,
                                item: n,
                                success: function (t) {
                                  e("DID_PREPARE_OUTPUT", { id: r, file: t });
                                },
                              },
                              !0
                            );
                      });
                    }, 0)));
                },
                MOVE_ITEM: function (e) {
                  var t = e.query,
                    n = e.index,
                    r = Je(i.items, t);
                  if (r) {
                    var a = i.items.indexOf(r);
                    a !== (n = ft(n, 0, i.items.length - 1)) &&
                      i.items.splice(n, 0, i.items.splice(a, 1)[0]);
                  }
                },
                SORT: function (n) {
                  var r = n.compare;
                  di(i, r),
                    e("DID_SORT_ITEMS", { items: t("GET_ACTIVE_ITEMS") });
                },
                ADD_ITEMS: function (i) {
                  var n = i.items,
                    r = i.index,
                    a = i.interactionMethod,
                    o = i.success,
                    s = void 0 === o ? function () {} : o,
                    l = i.failure,
                    c = void 0 === l ? function () {} : l,
                    u = r;
                  if (-1 === r || void 0 === r) {
                    var d = t("GET_ITEM_INSERT_LOCATION"),
                      h = t("GET_TOTAL_ITEMS");
                    u = "before" === d ? 0 : h;
                  }
                  var f = t("GET_IGNORED_FILES"),
                    p = function (e) {
                      return Qt(e) ? !f.includes(e.name.toLowerCase()) : !X(e);
                    },
                    g = n.filter(p).map(function (t) {
                      return new Promise(function (i, n) {
                        e("ADD_ITEM", {
                          interactionMethod: a,
                          source: t.source || t,
                          success: i,
                          failure: n,
                          index: u++,
                          options: t.options || {},
                        });
                      });
                    });
                  Promise.all(g).then(s).catch(c);
                },
                ADD_ITEM: function (n) {
                  var r = n.source,
                    a = n.index,
                    o = void 0 === a ? -1 : a,
                    s = n.interactionMethod,
                    l = n.success,
                    c = void 0 === l ? function () {} : l,
                    u = n.failure,
                    d = void 0 === u ? function () {} : u,
                    h = n.options,
                    f = void 0 === h ? {} : h;
                  if (X(r))
                    d({ error: Bt("error", 0, "No source"), file: null });
                  else if (
                    !Qt(r) ||
                    !i.options.ignoredFiles.includes(r.name.toLowerCase())
                  ) {
                    if (!ht(i)) {
                      if (
                        i.options.allowMultiple ||
                        (!i.options.allowMultiple && !i.options.allowReplace)
                      ) {
                        var p = Bt("warning", 0, "Max files");
                        return (
                          e("DID_THROW_MAX_FILES", { source: r, error: p }),
                          void d({ error: p, file: null })
                        );
                      }
                      var g = et(i.items)[0];
                      if (
                        g.status === Be.PROCESSING_COMPLETE ||
                        g.status === Be.PROCESSING_REVERT_ERROR
                      ) {
                        var m = t("GET_FORCE_REVERT");
                        if (
                          (g
                            .revert(
                              Vt(i.options.server.url, i.options.server.revert),
                              m
                            )
                            .then(function () {
                              m &&
                                e("ADD_ITEM", {
                                  source: r,
                                  index: o,
                                  interactionMethod: s,
                                  success: c,
                                  failure: d,
                                  options: f,
                                });
                            })
                            .catch(function () {}),
                          m)
                        )
                          return;
                      }
                      e("REMOVE_ITEM", { query: g.id });
                    }
                    var v =
                        "local" === f.type
                          ? ze.LOCAL
                          : "limbo" === f.type
                          ? ze.LIMBO
                          : ze.INPUT,
                      b = ti(v, v === ze.INPUT ? null : r, f.file);
                    Object.keys(f.metadata || {}).forEach(function (e) {
                      b.setMetadata(e, f.metadata[e]);
                    }),
                      qe("DID_CREATE_ITEM", b, { query: t, dispatch: e });
                    var y = t("GET_ITEM_INSERT_LOCATION");
                    i.options.itemInsertLocationFreedom ||
                      (o = "before" === y ? -1 : i.items.length),
                      gt(i.items, b, o),
                      te(y) && r && di(i, y);
                    var x = b.id;
                    b.on("init", function () {
                      e("DID_INIT_ITEM", { id: x });
                    }),
                      b.on("load-init", function () {
                        e("DID_START_ITEM_LOAD", { id: x });
                      }),
                      b.on("load-meta", function () {
                        e("DID_UPDATE_ITEM_META", { id: x });
                      }),
                      b.on("load-progress", function (t) {
                        e("DID_UPDATE_ITEM_LOAD_PROGRESS", {
                          id: x,
                          progress: t,
                        });
                      }),
                      b.on("load-request-error", function (t) {
                        var n = si(i.options.labelFileLoadError)(t);
                        if (t.code >= 400 && t.code < 500)
                          return (
                            e("DID_THROW_ITEM_INVALID", {
                              id: x,
                              error: t,
                              status: {
                                main: n,
                                sub: t.code + " (" + t.body + ")",
                              },
                            }),
                            void d({ error: t, file: Ne(b) })
                          );
                        e("DID_THROW_ITEM_LOAD_ERROR", {
                          id: x,
                          error: t,
                          status: { main: n, sub: i.options.labelTapToRetry },
                        });
                      }),
                      b.on("load-file-error", function (t) {
                        e("DID_THROW_ITEM_INVALID", {
                          id: x,
                          error: t.status,
                          status: t.status,
                        }),
                          d({ error: t.status, file: Ne(b) });
                      }),
                      b.on("load-abort", function () {
                        e("REMOVE_ITEM", { query: x });
                      }),
                      b.on("load-skip", function () {
                        e("COMPLETE_LOAD_ITEM", {
                          query: x,
                          item: b,
                          data: { source: r, success: c },
                        });
                      }),
                      b.on("load", function () {
                        var n = function (n) {
                          n
                            ? (b.on("metadata-update", function (t) {
                                e("DID_UPDATE_ITEM_METADATA", {
                                  id: x,
                                  change: t,
                                });
                              }),
                              Ge("SHOULD_PREPARE_OUTPUT", !1, {
                                item: b,
                                query: t,
                              }).then(function (n) {
                                var a = t("GET_BEFORE_PREPARE_FILE");
                                a && (n = a(b, n));
                                var o = function () {
                                  e("COMPLETE_LOAD_ITEM", {
                                    query: x,
                                    item: b,
                                    data: { source: r, success: c },
                                  }),
                                    ci(e, i);
                                };
                                n
                                  ? e(
                                      "REQUEST_PREPARE_OUTPUT",
                                      {
                                        query: x,
                                        item: b,
                                        success: function (t) {
                                          e("DID_PREPARE_OUTPUT", {
                                            id: x,
                                            file: t,
                                          }),
                                            o();
                                        },
                                      },
                                      !0
                                    )
                                  : o();
                              }))
                            : e("REMOVE_ITEM", { query: x });
                        };
                        Ge("DID_LOAD_ITEM", b, { query: t, dispatch: e })
                          .then(function () {
                            ui(t("GET_BEFORE_ADD_FILE"), Ne(b)).then(n);
                          })
                          .catch(function (t) {
                            if (!t || !t.error || !t.status) return n(!1);
                            e("DID_THROW_ITEM_INVALID", {
                              id: x,
                              error: t.error,
                              status: t.status,
                            });
                          });
                      }),
                      b.on("process-start", function () {
                        e("DID_START_ITEM_PROCESSING", { id: x });
                      }),
                      b.on("process-progress", function (t) {
                        e("DID_UPDATE_ITEM_PROCESS_PROGRESS", {
                          id: x,
                          progress: t,
                        });
                      }),
                      b.on("process-error", function (t) {
                        e("DID_THROW_ITEM_PROCESSING_ERROR", {
                          id: x,
                          error: t,
                          status: {
                            main: si(i.options.labelFileProcessingError)(t),
                            sub: i.options.labelTapToRetry,
                          },
                        });
                      }),
                      b.on("process-revert-error", function (t) {
                        e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR", {
                          id: x,
                          error: t,
                          status: {
                            main: si(i.options.labelFileProcessingRevertError)(
                              t
                            ),
                            sub: i.options.labelTapToRetry,
                          },
                        });
                      }),
                      b.on("process-complete", function (t) {
                        e("DID_COMPLETE_ITEM_PROCESSING", {
                          id: x,
                          error: null,
                          serverFileReference: t,
                        }),
                          e("DID_DEFINE_VALUE", { id: x, value: t });
                      }),
                      b.on("process-abort", function () {
                        e("DID_ABORT_ITEM_PROCESSING", { id: x });
                      }),
                      b.on("process-revert", function () {
                        e("DID_REVERT_ITEM_PROCESSING", { id: x }),
                          e("DID_DEFINE_VALUE", { id: x, value: null });
                      }),
                      e("DID_ADD_ITEM", {
                        id: x,
                        index: o,
                        interactionMethod: s,
                      }),
                      ci(e, i);
                    var w = i.options.server || {},
                      E = w.url,
                      _ = w.load,
                      S = w.restore,
                      A = w.fetch;
                    b.load(
                      r,
                      Rt(
                        v === ze.INPUT
                          ? $(r) && oi(r) && A
                            ? Yt(E, A)
                            : ri
                          : v === ze.LIMBO
                          ? Yt(E, S)
                          : Yt(E, _)
                      ),
                      function (e, i, n) {
                        Ge("LOAD_FILE", e, { query: t }).then(i).catch(n);
                      }
                    );
                  }
                },
                REQUEST_PREPARE_OUTPUT: function (e) {
                  var i = e.item,
                    n = e.success,
                    r = e.failure,
                    a = void 0 === r ? function () {} : r,
                    o = { error: Bt("error", 0, "Item not found"), file: null };
                  if (i.archived) return a(o);
                  Ge("PREPARE_OUTPUT", i.file, { query: t, item: i }).then(
                    function (e) {
                      Ge("COMPLETE_PREPARE_OUTPUT", e, {
                        query: t,
                        item: i,
                      }).then(function (e) {
                        if (i.archived) return a(o);
                        n(e);
                      });
                    }
                  );
                },
                COMPLETE_LOAD_ITEM: function (n) {
                  var r = n.item,
                    a = n.data,
                    o = a.success,
                    s = a.source,
                    l = t("GET_ITEM_INSERT_LOCATION");
                  if (
                    (te(l) && s && di(i, l),
                    e("DID_LOAD_ITEM", {
                      id: r.id,
                      error: null,
                      serverFileReference: r.origin === ze.INPUT ? null : s,
                    }),
                    o(Ne(r)),
                    r.origin !== ze.LOCAL)
                  )
                    return r.origin === ze.LIMBO
                      ? (e("DID_COMPLETE_ITEM_PROCESSING", {
                          id: r.id,
                          error: null,
                          serverFileReference: s,
                        }),
                        void e("DID_DEFINE_VALUE", {
                          id: r.id,
                          value: r.serverId || s,
                        }))
                      : void (
                          t("IS_ASYNC") &&
                          i.options.instantUpload &&
                          e("REQUEST_ITEM_PROCESSING", { query: r.id })
                        );
                  e("DID_LOAD_LOCAL_ITEM", { id: r.id });
                },
                RETRY_ITEM_LOAD: hi(i, function (e) {
                  e.retryLoad();
                }),
                REQUEST_ITEM_PREPARE: hi(i, function (t, i, n) {
                  e(
                    "REQUEST_PREPARE_OUTPUT",
                    {
                      query: t.id,
                      item: t,
                      success: function (n) {
                        e("DID_PREPARE_OUTPUT", { id: t.id, file: n }),
                          i({ file: t, output: n });
                      },
                      failure: n,
                    },
                    !0
                  );
                }),
                REQUEST_ITEM_PROCESSING: hi(i, function (n, r, a) {
                  if (n.status === Be.IDLE || n.status === Be.PROCESSING_ERROR)
                    n.status !== Be.PROCESSING_QUEUED &&
                      (n.requestProcessing(),
                      e("DID_REQUEST_ITEM_PROCESSING", { id: n.id }),
                      e(
                        "PROCESS_ITEM",
                        { query: n, success: r, failure: a },
                        !0
                      ));
                  else {
                    var o = function () {
                        return e("REQUEST_ITEM_PROCESSING", {
                          query: n,
                          success: r,
                          failure: a,
                        });
                      },
                      s = function () {
                        return document.hidden ? o() : setTimeout(o, 32);
                      };
                    n.status === Be.PROCESSING_COMPLETE ||
                    n.status === Be.PROCESSING_REVERT_ERROR
                      ? n
                          .revert(
                            Vt(i.options.server.url, i.options.server.revert),
                            t("GET_FORCE_REVERT")
                          )
                          .then(s)
                          .catch(function () {})
                      : n.status === Be.PROCESSING &&
                        n.abortProcessing().then(s);
                  }
                }),
                PROCESS_ITEM: hi(i, function (n, r, a) {
                  var o = t("GET_MAX_PARALLEL_UPLOADS");
                  if (t("GET_ITEMS_BY_STATUS", Be.PROCESSING).length !== o) {
                    if (n.status !== Be.PROCESSING) {
                      var s = function t() {
                        var n = i.processingQueue.shift();
                        if (n) {
                          var r = n.id,
                            a = n.success,
                            o = n.failure,
                            s = Je(i.items, r);
                          s && !s.archived
                            ? e(
                                "PROCESS_ITEM",
                                { query: r, success: a, failure: o },
                                !0
                              )
                            : t();
                        }
                      };
                      n.onOnce("process-complete", function () {
                        r(Ne(n)), s();
                        var a = i.options.server;
                        if (
                          i.options.instantUpload &&
                          n.origin === ze.LOCAL &&
                          te(a.remove)
                        ) {
                          var o = function () {};
                          (n.origin = ze.LIMBO),
                            i.options.server.remove(n.source, o, o);
                        }
                        t("GET_ITEMS_BY_STATUS", Be.PROCESSING_COMPLETE)
                          .length === i.items.length &&
                          e("DID_COMPLETE_ITEM_PROCESSING_ALL");
                      }),
                        n.onOnce("process-error", function (e) {
                          a({ error: e, file: Ne(n) }), s();
                        });
                      var l = i.options;
                      n.process(
                        Zt(
                          qt(l.server.url, l.server.process, l.name, {
                            chunkTransferId: n.transferId,
                            chunkServer: l.server.patch,
                            chunkUploads: l.chunkUploads,
                            chunkForce: l.chunkForce,
                            chunkSize: l.chunkSize,
                            chunkRetryDelays: l.chunkRetryDelays,
                          }),
                          {
                            allowMinimumUploadDuration: t(
                              "GET_ALLOW_MINIMUM_UPLOAD_DURATION"
                            ),
                          }
                        ),
                        function (i, r, a) {
                          Ge("PREPARE_OUTPUT", i, { query: t, item: n })
                            .then(function (t) {
                              e("DID_PREPARE_OUTPUT", { id: n.id, file: t }),
                                r(t);
                            })
                            .catch(a);
                        }
                      );
                    }
                  } else i.processingQueue.push({ id: n.id, success: r, failure: a });
                }),
                RETRY_ITEM_PROCESSING: hi(i, function (t) {
                  e("REQUEST_ITEM_PROCESSING", { query: t });
                }),
                REQUEST_REMOVE_ITEM: hi(i, function (i) {
                  ui(t("GET_BEFORE_REMOVE_FILE"), Ne(i)).then(function (t) {
                    t && e("REMOVE_ITEM", { query: i });
                  });
                }),
                RELEASE_ITEM: hi(i, function (e) {
                  e.release();
                }),
                REMOVE_ITEM: hi(i, function (n, r, a, o) {
                  var s = function () {
                      var t = n.id;
                      ni(i.items, t).archive(),
                        e("DID_REMOVE_ITEM", { error: null, id: t, item: n }),
                        ci(e, i),
                        r(Ne(n));
                    },
                    l = i.options.server;
                  n.origin === ze.LOCAL && l && te(l.remove) && !1 !== o.remove
                    ? (e("DID_START_ITEM_REMOVE", { id: n.id }),
                      l.remove(
                        n.source,
                        function () {
                          return s();
                        },
                        function (t) {
                          e("DID_THROW_ITEM_REMOVE_ERROR", {
                            id: n.id,
                            error: Bt("error", 0, t, null),
                            status: {
                              main: si(i.options.labelFileRemoveError)(t),
                              sub: i.options.labelTapToRetry,
                            },
                          });
                        }
                      ))
                    : (((o.revert &&
                        n.origin !== ze.LOCAL &&
                        null !== n.serverId) ||
                        (i.options.chunkUploads &&
                          n.file.size > i.options.chunkSize) ||
                        (i.options.chunkUploads && i.options.chunkForce)) &&
                        n.revert(
                          Vt(i.options.server.url, i.options.server.revert),
                          t("GET_FORCE_REVERT")
                        ),
                      s());
                }),
                ABORT_ITEM_LOAD: hi(i, function (e) {
                  e.abortLoad();
                }),
                ABORT_ITEM_PROCESSING: hi(i, function (t) {
                  t.serverId
                    ? e("REVERT_ITEM_PROCESSING", { id: t.id })
                    : t.abortProcessing().then(function () {
                        i.options.instantUpload &&
                          e("REMOVE_ITEM", { query: t.id });
                      });
                }),
                REQUEST_REVERT_ITEM_PROCESSING: hi(i, function (n) {
                  if (i.options.instantUpload) {
                    var r = function (t) {
                        t && e("REVERT_ITEM_PROCESSING", { query: n });
                      },
                      a = t("GET_BEFORE_REMOVE_FILE");
                    if (!a) return r(!0);
                    var o = a(Ne(n));
                    return null == o
                      ? r(!0)
                      : "boolean" == typeof o
                      ? r(o)
                      : void ("function" == typeof o.then && o.then(r));
                  }
                  e("REVERT_ITEM_PROCESSING", { query: n });
                }),
                REVERT_ITEM_PROCESSING: hi(i, function (n) {
                  n.revert(
                    Vt(i.options.server.url, i.options.server.revert),
                    t("GET_FORCE_REVERT")
                  )
                    .then(function () {
                      (i.options.instantUpload || li(n)) &&
                        e("REMOVE_ITEM", { query: n.id });
                    })
                    .catch(function () {});
                }),
                SET_OPTIONS: function (t) {
                  var i = t.options,
                    n = Object.keys(i),
                    r = pi.filter(function (e) {
                      return n.includes(e);
                    });
                  []
                    .concat(
                      Te(r),
                      Te(
                        Object.keys(i).filter(function (e) {
                          return !r.includes(e);
                        })
                      )
                    )
                    .forEach(function (t) {
                      e("SET_" + ve(t, "_").toUpperCase(), { value: i[t] });
                    });
                },
              };
            },
            pi = ["server"],
            gi = function (e) {
              return e;
            },
            mi = function (e) {
              return document.createElement(e);
            },
            vi = function (e, t) {
              var i = e.childNodes[0];
              i
                ? t !== i.nodeValue && (i.nodeValue = t)
                : ((i = document.createTextNode(t)), e.appendChild(i));
            },
            bi = function (e, t, i, n) {
              var r = (((n % 360) - 90) * Math.PI) / 180;
              return { x: e + i * Math.cos(r), y: t + i * Math.sin(r) };
            },
            yi = function (e, t, i, n, r, a) {
              var o = bi(e, t, i, r),
                s = bi(e, t, i, n);
              return ["M", o.x, o.y, "A", i, i, 0, a, 0, s.x, s.y].join(" ");
            },
            xi = function (e, t, i, n, r) {
              var a = 1;
              return (
                r > n && r - n <= 0.5 && (a = 0),
                n > r && n - r >= 0.5 && (a = 0),
                yi(
                  e,
                  t,
                  i,
                  360 * Math.min(0.9999, n),
                  360 * Math.min(0.9999, r),
                  a
                )
              );
            },
            wi = F({
              tag: "div",
              name: "progress-indicator",
              ignoreRectUpdate: !0,
              ignoreRect: !0,
              create: function (e) {
                var t = e.root,
                  i = e.props;
                (i.spin = !1), (i.progress = 0), (i.opacity = 0);
                var n = u("svg");
                (t.ref.path = u("path", {
                  "stroke-width": 2,
                  "stroke-linecap": "round",
                })),
                  n.appendChild(t.ref.path),
                  (t.ref.svg = n),
                  t.appendChild(n);
              },
              write: function (e) {
                var t = e.root,
                  i = e.props;
                if (0 !== i.opacity) {
                  i.align && (t.element.dataset.align = i.align);
                  var n = parseInt(o(t.ref.path, "stroke-width"), 10),
                    r = 0.5 * t.rect.element.width,
                    a = 0,
                    s = 0;
                  i.spin ? ((a = 0), (s = 0.5)) : ((a = 0), (s = i.progress));
                  var l = xi(r, r, r - n, a, s);
                  o(t.ref.path, "d", l),
                    o(
                      t.ref.path,
                      "stroke-opacity",
                      i.spin || i.progress > 0 ? 1 : 0
                    );
                }
              },
              mixins: {
                apis: ["progress", "spin", "align"],
                styles: ["opacity"],
                animations: {
                  opacity: { type: "tween", duration: 500 },
                  progress: {
                    type: "spring",
                    stiffness: 0.95,
                    damping: 0.65,
                    mass: 10,
                  },
                },
              },
            }),
            Ei = F({
              tag: "button",
              attributes: { type: "button" },
              ignoreRect: !0,
              ignoreRectUpdate: !0,
              name: "file-action-button",
              mixins: {
                apis: ["label"],
                styles: [
                  "translateX",
                  "translateY",
                  "scaleX",
                  "scaleY",
                  "opacity",
                ],
                animations: {
                  scaleX: "spring",
                  scaleY: "spring",
                  translateX: "spring",
                  translateY: "spring",
                  opacity: { type: "tween", duration: 250 },
                },
                listeners: !0,
              },
              create: function (e) {
                var t = e.root,
                  i = e.props;
                (t.element.innerHTML =
                  (i.icon || "") + "<span>" + i.label + "</span>"),
                  (i.isDisabled = !1);
              },
              write: function (e) {
                var t = e.root,
                  i = e.props,
                  n = i.isDisabled,
                  r = t.query("GET_DISABLED") || 0 === i.opacity;
                r && !n
                  ? ((i.isDisabled = !0), o(t.element, "disabled", "disabled"))
                  : !r &&
                    n &&
                    ((i.isDisabled = !1),
                    t.element.removeAttribute("disabled"));
              },
            }),
            _i = function (e) {
              var t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : ".",
                i =
                  arguments.length > 2 && void 0 !== arguments[2]
                    ? arguments[2]
                    : 1e3,
                n =
                  arguments.length > 3 && void 0 !== arguments[3]
                    ? arguments[3]
                    : {},
                r = n.labelBytes,
                a = void 0 === r ? "bytes" : r,
                o = n.labelKilobytes,
                s = void 0 === o ? "KB" : o,
                l = n.labelMegabytes,
                c = void 0 === l ? "MB" : l,
                u = n.labelGigabytes,
                d = void 0 === u ? "GB" : u,
                h = i,
                f = i * i,
                p = i * i * i;
              return (e = Math.round(Math.abs(e))) < h
                ? e + " " + a
                : e < f
                ? Math.floor(e / h) + " " + s
                : e < p
                ? Si(e / f, 1, t) + " " + c
                : Si(e / p, 2, t) + " " + d;
            },
            Si = function (e, t, i) {
              return e
                .toFixed(t)
                .split(".")
                .filter(function (e) {
                  return "0" !== e;
                })
                .join(i);
            },
            Ai = function (e) {
              var t = e.root,
                i = e.props,
                n = mi("span");
              (n.className = "filepond--file-info-main"),
                o(n, "aria-hidden", "true"),
                t.appendChild(n),
                (t.ref.fileName = n);
              var r = mi("span");
              (r.className = "filepond--file-info-sub"),
                t.appendChild(r),
                (t.ref.fileSize = r),
                vi(r, t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),
                vi(n, gi(t.query("GET_ITEM_NAME", i.id)));
            },
            ki = function (e) {
              var t = e.root,
                i = e.props;
              vi(
                t.ref.fileSize,
                _i(
                  t.query("GET_ITEM_SIZE", i.id),
                  ".",
                  t.query("GET_FILE_SIZE_BASE"),
                  t.query("GET_FILE_SIZE_LABELS", t.query)
                )
              ),
                vi(t.ref.fileName, gi(t.query("GET_ITEM_NAME", i.id)));
            },
            Ti = function (e) {
              var t = e.root,
                i = e.props;
              Q(t.query("GET_ITEM_SIZE", i.id))
                ? ki({ root: t, props: i })
                : vi(
                    t.ref.fileSize,
                    t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE")
                  );
            },
            Ci = F({
              name: "file-info",
              ignoreRect: !0,
              ignoreRectUpdate: !0,
              write: z({
                DID_LOAD_ITEM: ki,
                DID_UPDATE_ITEM_META: ki,
                DID_THROW_ITEM_LOAD_ERROR: Ti,
                DID_THROW_ITEM_INVALID: Ti,
              }),
              didCreateView: function (e) {
                qe("CREATE_VIEW", Object.assign({}, e, { view: e }));
              },
              create: Ai,
              mixins: {
                styles: ["translateX", "translateY"],
                animations: { translateX: "spring", translateY: "spring" },
              },
            }),
            Oi = function (e) {
              return Math.round(100 * e);
            },
            Ii = function (e) {
              var t = e.root,
                i = mi("span");
              (i.className = "filepond--file-status-main"),
                t.appendChild(i),
                (t.ref.main = i);
              var n = mi("span");
              (n.className = "filepond--file-status-sub"),
                t.appendChild(n),
                (t.ref.sub = n),
                Mi({ root: t, action: { progress: null } });
            },
            Mi = function (e) {
              var t = e.root,
                i = e.action,
                n =
                  null === i.progress
                    ? t.query("GET_LABEL_FILE_LOADING")
                    : t.query("GET_LABEL_FILE_LOADING") +
                      " " +
                      Oi(i.progress) +
                      "%";
              vi(t.ref.main, n),
                vi(t.ref.sub, t.query("GET_LABEL_TAP_TO_CANCEL"));
            },
            Li = function (e) {
              var t = e.root;
              vi(t.ref.main, ""), vi(t.ref.sub, "");
            },
            Pi = function (e) {
              var t = e.root,
                i = e.action;
              vi(t.ref.main, i.status.main), vi(t.ref.sub, i.status.sub);
            },
            Di = F({
              name: "file-status",
              ignoreRect: !0,
              ignoreRectUpdate: !0,
              write: z({
                DID_LOAD_ITEM: Li,
                DID_REVERT_ITEM_PROCESSING: Li,
                DID_REQUEST_ITEM_PROCESSING: function (e) {
                  var t = e.root;
                  vi(t.ref.main, t.query("GET_LABEL_FILE_PROCESSING")),
                    vi(t.ref.sub, t.query("GET_LABEL_TAP_TO_CANCEL"));
                },
                DID_ABORT_ITEM_PROCESSING: function (e) {
                  var t = e.root;
                  vi(t.ref.main, t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),
                    vi(t.ref.sub, t.query("GET_LABEL_TAP_TO_RETRY"));
                },
                DID_COMPLETE_ITEM_PROCESSING: function (e) {
                  var t = e.root;
                  vi(t.ref.main, t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),
                    vi(t.ref.sub, t.query("GET_LABEL_TAP_TO_UNDO"));
                },
                DID_UPDATE_ITEM_PROCESS_PROGRESS: function (e) {
                  var t = e.root,
                    i = e.action,
                    n =
                      null === i.progress
                        ? t.query("GET_LABEL_FILE_PROCESSING")
                        : t.query("GET_LABEL_FILE_PROCESSING") +
                          " " +
                          Oi(i.progress) +
                          "%";
                  vi(t.ref.main, n),
                    vi(t.ref.sub, t.query("GET_LABEL_TAP_TO_CANCEL"));
                },
                DID_UPDATE_ITEM_LOAD_PROGRESS: Mi,
                DID_THROW_ITEM_LOAD_ERROR: Pi,
                DID_THROW_ITEM_INVALID: Pi,
                DID_THROW_ITEM_PROCESSING_ERROR: Pi,
                DID_THROW_ITEM_PROCESSING_REVERT_ERROR: Pi,
                DID_THROW_ITEM_REMOVE_ERROR: Pi,
              }),
              didCreateView: function (e) {
                qe("CREATE_VIEW", Object.assign({}, e, { view: e }));
              },
              create: Ii,
              mixins: {
                styles: ["translateX", "translateY", "opacity"],
                animations: {
                  opacity: { type: "tween", duration: 250 },
                  translateX: "spring",
                  translateY: "spring",
                },
              },
            }),
            Ri = {
              AbortItemLoad: {
                label: "GET_LABEL_BUTTON_ABORT_ITEM_LOAD",
                action: "ABORT_ITEM_LOAD",
                className: "filepond--action-abort-item-load",
                align: "LOAD_INDICATOR_POSITION",
              },
              RetryItemLoad: {
                label: "GET_LABEL_BUTTON_RETRY_ITEM_LOAD",
                action: "RETRY_ITEM_LOAD",
                icon: "GET_ICON_RETRY",
                className: "filepond--action-retry-item-load",
                align: "BUTTON_PROCESS_ITEM_POSITION",
              },
              RemoveItem: {
                label: "GET_LABEL_BUTTON_REMOVE_ITEM",
                action: "REQUEST_REMOVE_ITEM",
                icon: "GET_ICON_REMOVE",
                className: "filepond--action-remove-item",
                align: "BUTTON_REMOVE_ITEM_POSITION",
              },
              ProcessItem: {
                label: "GET_LABEL_BUTTON_PROCESS_ITEM",
                action: "REQUEST_ITEM_PROCESSING",
                icon: "GET_ICON_PROCESS",
                className: "filepond--action-process-item",
                align: "BUTTON_PROCESS_ITEM_POSITION",
              },
              AbortItemProcessing: {
                label: "GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",
                action: "ABORT_ITEM_PROCESSING",
                className: "filepond--action-abort-item-processing",
                align: "BUTTON_PROCESS_ITEM_POSITION",
              },
              RetryItemProcessing: {
                label: "GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",
                action: "RETRY_ITEM_PROCESSING",
                icon: "GET_ICON_RETRY",
                className: "filepond--action-retry-item-processing",
                align: "BUTTON_PROCESS_ITEM_POSITION",
              },
              RevertItemProcessing: {
                label: "GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",
                action: "REQUEST_REVERT_ITEM_PROCESSING",
                icon: "GET_ICON_UNDO",
                className: "filepond--action-revert-item-processing",
                align: "BUTTON_PROCESS_ITEM_POSITION",
              },
            },
            Ni = [];
          r(Ri, function (e) {
            Ni.push(e);
          });
          var Fi,
            Bi = function (e) {
              if ("right" === Yi(e)) return 0;
              var t = e.ref.buttonRemoveItem.rect.element;
              return t.hidden ? null : t.width + t.left;
            },
            zi = function (e) {
              return e.ref.buttonAbortItemLoad.rect.element.width;
            },
            ji = function (e) {
              return Math.floor(e.ref.buttonRemoveItem.rect.element.height / 4);
            },
            Hi = function (e) {
              return Math.floor(e.ref.buttonRemoveItem.rect.element.left / 2);
            },
            Yi = function (e) {
              return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION");
            },
            Xi = {
              buttonAbortItemLoad: { opacity: 0 },
              buttonRetryItemLoad: { opacity: 0 },
              buttonRemoveItem: { opacity: 0 },
              buttonProcessItem: { opacity: 0 },
              buttonAbortItemProcessing: { opacity: 0 },
              buttonRetryItemProcessing: { opacity: 0 },
              buttonRevertItemProcessing: { opacity: 0 },
              loadProgressIndicator: {
                opacity: 0,
                align: function (e) {
                  return e.query("GET_STYLE_LOAD_INDICATOR_POSITION");
                },
              },
              processProgressIndicator: {
                opacity: 0,
                align: function (e) {
                  return e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION");
                },
              },
              processingCompleteIndicator: {
                opacity: 0,
                scaleX: 0.75,
                scaleY: 0.75,
              },
              info: { translateX: 0, translateY: 0, opacity: 0 },
              status: { translateX: 0, translateY: 0, opacity: 0 },
            },
            Wi = {
              buttonRemoveItem: { opacity: 1 },
              buttonProcessItem: { opacity: 1 },
              info: { translateX: Bi },
              status: { translateX: Bi },
            },
            Gi = {
              buttonAbortItemProcessing: { opacity: 1 },
              processProgressIndicator: { opacity: 1 },
              status: { opacity: 1 },
            },
            qi = {
              DID_THROW_ITEM_INVALID: {
                buttonRemoveItem: { opacity: 1 },
                info: { translateX: Bi },
                status: { translateX: Bi, opacity: 1 },
              },
              DID_START_ITEM_LOAD: {
                buttonAbortItemLoad: { opacity: 1 },
                loadProgressIndicator: { opacity: 1 },
                status: { opacity: 1 },
              },
              DID_THROW_ITEM_LOAD_ERROR: {
                buttonRetryItemLoad: { opacity: 1 },
                buttonRemoveItem: { opacity: 1 },
                info: { translateX: Bi },
                status: { opacity: 1 },
              },
              DID_START_ITEM_REMOVE: {
                processProgressIndicator: { opacity: 1, align: Yi },
                info: { translateX: Bi },
                status: { opacity: 0 },
              },
              DID_THROW_ITEM_REMOVE_ERROR: {
                processProgressIndicator: { opacity: 0, align: Yi },
                buttonRemoveItem: { opacity: 1 },
                info: { translateX: Bi },
                status: { opacity: 1, translateX: Bi },
              },
              DID_LOAD_ITEM: Wi,
              DID_LOAD_LOCAL_ITEM: {
                buttonRemoveItem: { opacity: 1 },
                info: { translateX: Bi },
                status: { translateX: Bi },
              },
              DID_START_ITEM_PROCESSING: Gi,
              DID_REQUEST_ITEM_PROCESSING: Gi,
              DID_UPDATE_ITEM_PROCESS_PROGRESS: Gi,
              DID_COMPLETE_ITEM_PROCESSING: {
                buttonRevertItemProcessing: { opacity: 1 },
                info: { opacity: 1 },
                status: { opacity: 1 },
              },
              DID_THROW_ITEM_PROCESSING_ERROR: {
                buttonRemoveItem: { opacity: 1 },
                buttonRetryItemProcessing: { opacity: 1 },
                status: { opacity: 1 },
                info: { translateX: Bi },
              },
              DID_THROW_ITEM_PROCESSING_REVERT_ERROR: {
                buttonRevertItemProcessing: { opacity: 1 },
                status: { opacity: 1 },
                info: { opacity: 1 },
              },
              DID_ABORT_ITEM_PROCESSING: {
                buttonRemoveItem: { opacity: 1 },
                buttonProcessItem: { opacity: 1 },
                info: { translateX: Bi },
                status: { opacity: 1 },
              },
              DID_REVERT_ITEM_PROCESSING: Wi,
            },
            Vi = F({
              create: function (e) {
                var t = e.root;
                t.element.innerHTML = t.query("GET_ICON_DONE");
              },
              name: "processing-complete-indicator",
              ignoreRect: !0,
              mixins: {
                styles: ["scaleX", "scaleY", "opacity"],
                animations: {
                  scaleX: "spring",
                  scaleY: "spring",
                  opacity: { type: "tween", duration: 250 },
                },
              },
            }),
            Ui = function (e) {
              var t,
                i = e.root,
                n = e.props,
                a = Object.keys(Ri).reduce(function (e, t) {
                  return (e[t] = Object.assign({}, Ri[t])), e;
                }, {}),
                o = n.id,
                s = i.query("GET_ALLOW_REVERT"),
                l = i.query("GET_ALLOW_REMOVE"),
                c = i.query("GET_ALLOW_PROCESS"),
                u = i.query("GET_INSTANT_UPLOAD"),
                d = i.query("IS_ASYNC"),
                h = i.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");
              d
                ? c && !s
                  ? (t = function (e) {
                      return !/RevertItemProcessing/.test(e);
                    })
                  : !c && s
                  ? (t = function (e) {
                      return !/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(
                        e
                      );
                    })
                  : c ||
                    s ||
                    (t = function (e) {
                      return !/Process/.test(e);
                    })
                : (t = function (e) {
                    return !/Process/.test(e);
                  });
              var f = t ? Ni.filter(t) : Ni.concat();
              if (
                (u &&
                  s &&
                  ((a.RevertItemProcessing.label =
                    "GET_LABEL_BUTTON_REMOVE_ITEM"),
                  (a.RevertItemProcessing.icon = "GET_ICON_REMOVE")),
                d && !s)
              ) {
                var p = qi.DID_COMPLETE_ITEM_PROCESSING;
                (p.info.translateX = Hi),
                  (p.info.translateY = ji),
                  (p.status.translateY = ji),
                  (p.processingCompleteIndicator = {
                    opacity: 1,
                    scaleX: 1,
                    scaleY: 1,
                  });
              }
              if (
                (d &&
                  !c &&
                  ([
                    "DID_START_ITEM_PROCESSING",
                    "DID_REQUEST_ITEM_PROCESSING",
                    "DID_UPDATE_ITEM_PROCESS_PROGRESS",
                    "DID_THROW_ITEM_PROCESSING_ERROR",
                  ].forEach(function (e) {
                    qi[e].status.translateY = ji;
                  }),
                  (qi.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX = zi)),
                h && s)
              ) {
                a.RevertItemProcessing.align = "BUTTON_REMOVE_ITEM_POSITION";
                var g = qi.DID_COMPLETE_ITEM_PROCESSING;
                (g.info.translateX = Bi),
                  (g.status.translateY = ji),
                  (g.processingCompleteIndicator = {
                    opacity: 1,
                    scaleX: 1,
                    scaleY: 1,
                  });
              }
              l || (a.RemoveItem.disabled = !0),
                r(a, function (e, t) {
                  var n = i.createChildView(Ei, {
                    label: i.query(t.label),
                    icon: i.query(t.icon),
                    opacity: 0,
                  });
                  f.includes(e) && i.appendChildView(n),
                    t.disabled &&
                      (n.element.setAttribute("disabled", "disabled"),
                      n.element.setAttribute("hidden", "hidden")),
                    (n.element.dataset.align = i.query("GET_STYLE_" + t.align)),
                    n.element.classList.add(t.className),
                    n.on("click", function (e) {
                      e.stopPropagation(),
                        t.disabled || i.dispatch(t.action, { query: o });
                    }),
                    (i.ref["button" + e] = n);
                }),
                (i.ref.processingCompleteIndicator = i.appendChildView(
                  i.createChildView(Vi)
                )),
                (i.ref.processingCompleteIndicator.element.dataset.align =
                  i.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION")),
                (i.ref.info = i.appendChildView(
                  i.createChildView(Ci, { id: o })
                )),
                (i.ref.status = i.appendChildView(
                  i.createChildView(Di, { id: o })
                ));
              var m = i.appendChildView(
                i.createChildView(wi, {
                  opacity: 0,
                  align: i.query("GET_STYLE_LOAD_INDICATOR_POSITION"),
                })
              );
              m.element.classList.add("filepond--load-indicator"),
                (i.ref.loadProgressIndicator = m);
              var v = i.appendChildView(
                i.createChildView(wi, {
                  opacity: 0,
                  align: i.query("GET_STYLE_PROGRESS_INDICATOR_POSITION"),
                })
              );
              v.element.classList.add("filepond--process-indicator"),
                (i.ref.processProgressIndicator = v),
                (i.ref.activeStyles = []);
            },
            $i = function (e) {
              var t = e.root,
                i = e.actions,
                n = e.props;
              Zi({ root: t, actions: i, props: n });
              var a = i
                .concat()
                .filter(function (e) {
                  return /^DID_/.test(e.type);
                })
                .reverse()
                .find(function (e) {
                  return qi[e.type];
                });
              if (a) {
                t.ref.activeStyles = [];
                var o = qi[a.type];
                r(Xi, function (e, i) {
                  var n = t.ref[e];
                  r(i, function (i, r) {
                    var a = o[e] && void 0 !== o[e][i] ? o[e][i] : r;
                    t.ref.activeStyles.push({ control: n, key: i, value: a });
                  });
                });
              }
              t.ref.activeStyles.forEach(function (e) {
                var i = e.control,
                  n = e.key,
                  r = e.value;
                i[n] = "function" == typeof r ? r(t) : r;
              });
            },
            Zi = z({
              DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING: function (e) {
                var t = e.root,
                  i = e.action;
                t.ref.buttonAbortItemProcessing.label = i.value;
              },
              DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD: function (e) {
                var t = e.root,
                  i = e.action;
                t.ref.buttonAbortItemLoad.label = i.value;
              },
              DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL: function (e) {
                var t = e.root,
                  i = e.action;
                t.ref.buttonAbortItemRemoval.label = i.value;
              },
              DID_REQUEST_ITEM_PROCESSING: function (e) {
                var t = e.root;
                (t.ref.processProgressIndicator.spin = !0),
                  (t.ref.processProgressIndicator.progress = 0);
              },
              DID_START_ITEM_LOAD: function (e) {
                var t = e.root;
                (t.ref.loadProgressIndicator.spin = !0),
                  (t.ref.loadProgressIndicator.progress = 0);
              },
              DID_START_ITEM_REMOVE: function (e) {
                var t = e.root;
                (t.ref.processProgressIndicator.spin = !0),
                  (t.ref.processProgressIndicator.progress = 0);
              },
              DID_UPDATE_ITEM_LOAD_PROGRESS: function (e) {
                var t = e.root,
                  i = e.action;
                (t.ref.loadProgressIndicator.spin = !1),
                  (t.ref.loadProgressIndicator.progress = i.progress);
              },
              DID_UPDATE_ITEM_PROCESS_PROGRESS: function (e) {
                var t = e.root,
                  i = e.action;
                (t.ref.processProgressIndicator.spin = !1),
                  (t.ref.processProgressIndicator.progress = i.progress);
              },
            }),
            Ki = F({
              create: Ui,
              write: $i,
              didCreateView: function (e) {
                qe("CREATE_VIEW", Object.assign({}, e, { view: e }));
              },
              name: "file",
            }),
            Ji = F({
              create: function (e) {
                var t = e.root,
                  i = e.props;
                (t.ref.fileName = mi("legend")),
                  t.appendChild(t.ref.fileName),
                  (t.ref.file = t.appendChildView(
                    t.createChildView(Ki, { id: i.id })
                  )),
                  (t.ref.data = !1);
              },
              ignoreRect: !0,
              write: z({
                DID_LOAD_ITEM: function (e) {
                  var t = e.root,
                    i = e.props;
                  vi(t.ref.fileName, gi(t.query("GET_ITEM_NAME", i.id)));
                },
              }),
              didCreateView: function (e) {
                qe("CREATE_VIEW", Object.assign({}, e, { view: e }));
              },
              tag: "fieldset",
              name: "file-wrapper",
            }),
            Qi = { type: "spring", damping: 0.6, mass: 7 },
            en = function (e) {
              var t = e.root,
                i = e.props;
              [
                { name: "top" },
                {
                  name: "center",
                  props: { translateY: null, scaleY: null },
                  mixins: {
                    animations: { scaleY: Qi },
                    styles: ["translateY", "scaleY"],
                  },
                },
                {
                  name: "bottom",
                  props: { translateY: null },
                  mixins: {
                    animations: { translateY: Qi },
                    styles: ["translateY"],
                  },
                },
              ].forEach(function (e) {
                tn(t, e, i.name);
              }),
                t.element.classList.add("filepond--" + i.name),
                (t.ref.scalable = null);
            },
            tn = function (e, t, i) {
              var n = F({
                  name: "panel-" + t.name + " filepond--" + i,
                  mixins: t.mixins,
                  ignoreRectUpdate: !0,
                }),
                r = e.createChildView(n, t.props);
              e.ref[t.name] = e.appendChildView(r);
            },
            nn = F({
              name: "panel",
              read: function (e) {
                var t = e.root;
                return (e.props.heightCurrent = t.ref.bottom.translateY);
              },
              write: function (e) {
                var t = e.root,
                  i = e.props;
                if (
                  ((null !== t.ref.scalable && i.scalable === t.ref.scalable) ||
                    ((t.ref.scalable = !V(i.scalable) || i.scalable),
                    (t.element.dataset.scalable = t.ref.scalable)),
                  i.height)
                ) {
                  var n = t.ref.top.rect.element,
                    r = t.ref.bottom.rect.element,
                    a = Math.max(n.height + r.height, i.height);
                  (t.ref.center.translateY = n.height),
                    (t.ref.center.scaleY = (a - n.height - r.height) / 100),
                    (t.ref.bottom.translateY = a - r.height);
                }
              },
              create: en,
              ignoreRect: !0,
              mixins: { apis: ["height", "heightCurrent", "scalable"] },
            }),
            rn = function (e) {
              var t = e.map(function (e) {
                  return e.id;
                }),
                i = void 0;
              return {
                setIndex: function (e) {
                  i = e;
                },
                getIndex: function () {
                  return i;
                },
                getItemIndex: function (e) {
                  return t.indexOf(e.id);
                },
              };
            },
            an = { type: "spring", stiffness: 0.75, damping: 0.45, mass: 10 },
            on = "spring",
            sn = {
              DID_START_ITEM_LOAD: "busy",
              DID_UPDATE_ITEM_LOAD_PROGRESS: "loading",
              DID_THROW_ITEM_INVALID: "load-invalid",
              DID_THROW_ITEM_LOAD_ERROR: "load-error",
              DID_LOAD_ITEM: "idle",
              DID_THROW_ITEM_REMOVE_ERROR: "remove-error",
              DID_START_ITEM_REMOVE: "busy",
              DID_START_ITEM_PROCESSING: "busy processing",
              DID_REQUEST_ITEM_PROCESSING: "busy processing",
              DID_UPDATE_ITEM_PROCESS_PROGRESS: "processing",
              DID_COMPLETE_ITEM_PROCESSING: "processing-complete",
              DID_THROW_ITEM_PROCESSING_ERROR: "processing-error",
              DID_THROW_ITEM_PROCESSING_REVERT_ERROR: "processing-revert-error",
              DID_ABORT_ITEM_PROCESSING: "cancelled",
              DID_REVERT_ITEM_PROCESSING: "idle",
            },
            ln = function (e) {
              var t = e.root,
                i = e.props;
              if (
                ((t.ref.handleClick = function (e) {
                  return t.dispatch("DID_ACTIVATE_ITEM", { id: i.id });
                }),
                (t.element.id = "filepond--item-" + i.id),
                t.element.addEventListener("click", t.ref.handleClick),
                (t.ref.container = t.appendChildView(
                  t.createChildView(Ji, { id: i.id })
                )),
                (t.ref.panel = t.appendChildView(
                  t.createChildView(nn, { name: "item-panel" })
                )),
                (t.ref.panel.height = null),
                (i.markedForRemoval = !1),
                t.query("GET_ALLOW_REORDER"))
              ) {
                t.element.dataset.dragState = "idle";
                var n = function (e) {
                  if (e.isPrimary) {
                    var n = !1,
                      r = { x: e.pageX, y: e.pageY };
                    (i.dragOrigin = { x: t.translateX, y: t.translateY }),
                      (i.dragCenter = { x: e.offsetX, y: e.offsetY });
                    var a = rn(t.query("GET_ACTIVE_ITEMS"));
                    t.dispatch("DID_GRAB_ITEM", { id: i.id, dragState: a });
                    var o = function (e) {
                        e.isPrimary &&
                          (e.stopPropagation(),
                          e.preventDefault(),
                          (i.dragOffset = {
                            x: e.pageX - r.x,
                            y: e.pageY - r.y,
                          }),
                          i.dragOffset.x * i.dragOffset.x +
                            i.dragOffset.y * i.dragOffset.y >
                            16 &&
                            !n &&
                            ((n = !0),
                            t.element.removeEventListener(
                              "click",
                              t.ref.handleClick
                            )),
                          t.dispatch("DID_DRAG_ITEM", {
                            id: i.id,
                            dragState: a,
                          }));
                      },
                      s = function e(s) {
                        s.isPrimary &&
                          (document.removeEventListener("pointermove", o),
                          document.removeEventListener("pointerup", e),
                          (i.dragOffset = {
                            x: s.pageX - r.x,
                            y: s.pageY - r.y,
                          }),
                          t.dispatch("DID_DROP_ITEM", {
                            id: i.id,
                            dragState: a,
                          }),
                          n &&
                            setTimeout(function () {
                              return t.element.addEventListener(
                                "click",
                                t.ref.handleClick
                              );
                            }, 0));
                      };
                    document.addEventListener("pointermove", o),
                      document.addEventListener("pointerup", s);
                  }
                };
                t.element.addEventListener("pointerdown", n);
              }
            },
            cn = z({
              DID_UPDATE_PANEL_HEIGHT: function (e) {
                var t = e.root,
                  i = e.action;
                t.height = i.height;
              },
            }),
            un = z(
              {
                DID_GRAB_ITEM: function (e) {
                  var t = e.root;
                  e.props.dragOrigin = { x: t.translateX, y: t.translateY };
                },
                DID_DRAG_ITEM: function (e) {
                  e.root.element.dataset.dragState = "drag";
                },
                DID_DROP_ITEM: function (e) {
                  var t = e.root,
                    i = e.props;
                  (i.dragOffset = null),
                    (i.dragOrigin = null),
                    (t.element.dataset.dragState = "drop");
                },
              },
              function (e) {
                var t = e.root,
                  i = e.actions,
                  n = e.props,
                  r = e.shouldOptimize;
                "drop" === t.element.dataset.dragState &&
                  t.scaleX <= 1 &&
                  (t.element.dataset.dragState = "idle");
                var a = i
                  .concat()
                  .filter(function (e) {
                    return /^DID_/.test(e.type);
                  })
                  .reverse()
                  .find(function (e) {
                    return sn[e.type];
                  });
                a &&
                  a.type !== n.currentState &&
                  ((n.currentState = a.type),
                  (t.element.dataset.filepondItemState =
                    sn[n.currentState] || ""));
                var o =
                  t.query("GET_ITEM_PANEL_ASPECT_RATIO") ||
                  t.query("GET_PANEL_ASPECT_RATIO");
                o
                  ? r || (t.height = t.rect.element.width * o)
                  : (cn({ root: t, actions: i, props: n }),
                    !t.height &&
                      t.ref.container.rect.element.height > 0 &&
                      (t.height = t.ref.container.rect.element.height)),
                  r && (t.ref.panel.height = null),
                  (t.ref.panel.height = t.height);
              }
            ),
            dn = F({
              create: ln,
              write: un,
              destroy: function (e) {
                var t = e.root,
                  i = e.props;
                t.element.removeEventListener("click", t.ref.handleClick),
                  t.dispatch("RELEASE_ITEM", { query: i.id });
              },
              tag: "li",
              name: "item",
              mixins: {
                apis: [
                  "id",
                  "interactionMethod",
                  "markedForRemoval",
                  "spawnDate",
                  "dragCenter",
                  "dragOrigin",
                  "dragOffset",
                ],
                styles: [
                  "translateX",
                  "translateY",
                  "scaleX",
                  "scaleY",
                  "opacity",
                  "height",
                ],
                animations: {
                  scaleX: on,
                  scaleY: on,
                  translateX: an,
                  translateY: an,
                  opacity: { type: "tween", duration: 150 },
                },
              },
            }),
            hn = function (e, t) {
              return Math.max(1, Math.floor((e + 1) / t));
            },
            fn = function (e, t, i) {
              if (i) {
                var n = e.rect.element.width,
                  r = t.length,
                  a = null;
                if (0 === r || i.top < t[0].rect.element.top) return -1;
                var o = t[0].rect.element,
                  s = o.marginLeft + o.marginRight,
                  l = o.width + s,
                  c = hn(n, l);
                if (1 === c) {
                  for (var u = 0; u < r; u++) {
                    var d = t[u],
                      h = d.rect.outer.top + 0.5 * d.rect.element.height;
                    if (i.top < h) return u;
                  }
                  return r;
                }
                for (
                  var f = o.marginTop + o.marginBottom, p = o.height + f, g = 0;
                  g < r;
                  g++
                ) {
                  var m = (g % c) * l,
                    v = Math.floor(g / c) * p,
                    b = v - o.marginTop,
                    y = m + l,
                    x = v + p + o.marginBottom;
                  if (i.top < x && i.top > b) {
                    if (i.left < y) return g;
                    a = g !== r - 1 ? g : null;
                  }
                }
                return null !== a ? a : r;
              }
            },
            pn = {
              height: 0,
              width: 0,
              get getHeight() {
                return this.height;
              },
              set setHeight(e) {
                (0 !== this.height && 0 !== e) || (this.height = e);
              },
              get getWidth() {
                return this.width;
              },
              set setWidth(e) {
                (0 !== this.width && 0 !== e) || (this.width = e);
              },
              setDimensions: function (e, t) {
                (0 !== this.height && 0 !== e) || (this.height = e),
                  (0 !== this.width && 0 !== t) || (this.width = t);
              },
            },
            gn = function (e) {
              var t = e.root;
              o(t.element, "role", "list"),
                (t.ref.lastItemSpanwDate = Date.now());
            },
            mn = function (e, t, i) {
              var n =
                  arguments.length > 3 && void 0 !== arguments[3]
                    ? arguments[3]
                    : 0,
                r =
                  arguments.length > 4 && void 0 !== arguments[4]
                    ? arguments[4]
                    : 1;
              e.dragOffset
                ? ((e.translateX = null),
                  (e.translateY = null),
                  (e.translateX = e.dragOrigin.x + e.dragOffset.x),
                  (e.translateY = e.dragOrigin.y + e.dragOffset.y),
                  (e.scaleX = 1.025),
                  (e.scaleY = 1.025))
                : ((e.translateX = t),
                  (e.translateY = i),
                  Date.now() > e.spawnDate &&
                    (0 === e.opacity && vn(e, t, i, n, r),
                    (e.scaleX = 1),
                    (e.scaleY = 1),
                    (e.opacity = 1)));
            },
            vn = function (e, t, i, n, r) {
              e.interactionMethod === we.NONE
                ? ((e.translateX = null),
                  (e.translateX = t),
                  (e.translateY = null),
                  (e.translateY = i))
                : e.interactionMethod === we.DROP
                ? ((e.translateX = null),
                  (e.translateX = t - 20 * n),
                  (e.translateY = null),
                  (e.translateY = i - 10 * r),
                  (e.scaleX = 0.8),
                  (e.scaleY = 0.8))
                : e.interactionMethod === we.BROWSE
                ? ((e.translateY = null), (e.translateY = i - 30))
                : e.interactionMethod === we.API &&
                  ((e.translateX = null),
                  (e.translateX = t - 30),
                  (e.translateY = null));
            },
            bn = function (e) {
              return (
                e.rect.element.height +
                0.5 * e.rect.element.marginBottom +
                0.5 * e.rect.element.marginTop
              );
            },
            yn = function (e) {
              return (
                e.rect.element.width +
                0.5 * e.rect.element.marginLeft +
                0.5 * e.rect.element.marginRight
              );
            },
            xn = z({
              DID_ADD_ITEM: function (e) {
                var t = e.root,
                  i = e.action,
                  n = i.id,
                  r = i.index,
                  a = i.interactionMethod;
                t.ref.addIndex = r;
                var o = Date.now(),
                  s = o,
                  l = 1;
                if (a !== we.NONE) {
                  l = 0;
                  var c = t.query("GET_ITEM_INSERT_INTERVAL"),
                    u = o - t.ref.lastItemSpanwDate;
                  s = u < c ? o + (c - u) : o;
                }
                (t.ref.lastItemSpanwDate = s),
                  t.appendChildView(
                    t.createChildView(dn, {
                      spawnDate: s,
                      id: n,
                      opacity: l,
                      interactionMethod: a,
                    }),
                    r
                  );
              },
              DID_REMOVE_ITEM: function (e) {
                var t = e.root,
                  i = e.action.id,
                  n = t.childViews.find(function (e) {
                    return e.id === i;
                  });
                n &&
                  ((n.scaleX = 0.9),
                  (n.scaleY = 0.9),
                  (n.opacity = 0),
                  (n.markedForRemoval = !0));
              },
              DID_DRAG_ITEM: function (e) {
                var t = e.root,
                  i = e.action,
                  n = i.id,
                  r = i.dragState,
                  a = t.query("GET_ITEM", { id: n }),
                  o = t.childViews.find(function (e) {
                    return e.id === n;
                  }),
                  s = t.childViews.length,
                  l = r.getItemIndex(a);
                if (o) {
                  var c = {
                      x: o.dragOrigin.x + o.dragOffset.x + o.dragCenter.x,
                      y: o.dragOrigin.y + o.dragOffset.y + o.dragCenter.y,
                    },
                    u = bn(o),
                    d = yn(o),
                    h = Math.floor(t.rect.outer.width / d);
                  h > s && (h = s);
                  var f = Math.floor(s / h + 1);
                  (pn.setHeight = u * f), (pn.setWidth = d * h);
                  var p = {
                      y: Math.floor(c.y / u),
                      x: Math.floor(c.x / d),
                      getGridIndex: function () {
                        return c.y > pn.getHeight ||
                          c.y < 0 ||
                          c.x > pn.getWidth ||
                          c.x < 0
                          ? l
                          : this.y * h + this.x;
                      },
                      getColIndex: function () {
                        for (
                          var e = t.query("GET_ACTIVE_ITEMS"),
                            i = t.childViews.filter(function (e) {
                              return e.rect.element.height;
                            }),
                            n = e.map(function (e) {
                              return i.find(function (t) {
                                return t.id === e.id;
                              });
                            }),
                            r = n.findIndex(function (e) {
                              return e === o;
                            }),
                            a = bn(o),
                            s = n.length,
                            l = s,
                            u = 0,
                            d = 0,
                            h = 0;
                          h < s;
                          h++
                        )
                          if (((u = (d = u) + bn(n[h])), c.y < u)) {
                            if (r > h) {
                              if (c.y < d + a) {
                                l = h;
                                break;
                              }
                              continue;
                            }
                            l = h;
                            break;
                          }
                        return l;
                      },
                    },
                    g = h > 1 ? p.getGridIndex() : p.getColIndex();
                  t.dispatch("MOVE_ITEM", { query: o, index: g });
                  var m = r.getIndex();
                  if (void 0 === m || m !== g) {
                    if ((r.setIndex(g), void 0 === m)) return;
                    t.dispatch("DID_REORDER_ITEMS", {
                      items: t.query("GET_ACTIVE_ITEMS"),
                      origin: l,
                      target: g,
                    });
                  }
                }
              },
            }),
            wn = F({
              create: gn,
              write: function (e) {
                var t = e.root,
                  i = e.props,
                  n = e.actions,
                  r = e.shouldOptimize;
                xn({ root: t, props: i, actions: n });
                var a = i.dragCoordinates,
                  o = t.rect.element.width,
                  s = t.childViews.filter(function (e) {
                    return e.rect.element.height;
                  }),
                  l = t
                    .query("GET_ACTIVE_ITEMS")
                    .map(function (e) {
                      return s.find(function (t) {
                        return t.id === e.id;
                      });
                    })
                    .filter(function (e) {
                      return e;
                    }),
                  c = a ? fn(t, l, a) : null,
                  u = t.ref.addIndex || null;
                t.ref.addIndex = null;
                var d = 0,
                  h = 0,
                  f = 0;
                if (0 !== l.length) {
                  var p = l[0].rect.element,
                    g = p.marginTop + p.marginBottom,
                    m = p.marginLeft + p.marginRight,
                    v = p.width + m,
                    b = p.height + g,
                    y = hn(o, v);
                  if (1 === y) {
                    var x = 0,
                      w = 0;
                    l.forEach(function (e, t) {
                      if (c) {
                        var i = t - c;
                        w =
                          -2 === i
                            ? 0.25 * -g
                            : -1 === i
                            ? 0.75 * -g
                            : 0 === i
                            ? 0.75 * g
                            : 1 === i
                            ? 0.25 * g
                            : 0;
                      }
                      r && ((e.translateX = null), (e.translateY = null)),
                        e.markedForRemoval || mn(e, 0, x + w);
                      var n =
                        (e.rect.element.height + g) *
                        (e.markedForRemoval ? e.opacity : 1);
                      x += n;
                    });
                  } else {
                    var E = 0,
                      _ = 0;
                    l.forEach(function (e, t) {
                      t === c && (d = 1),
                        t === u && (f += 1),
                        e.markedForRemoval && e.opacity < 0.5 && (h -= 1);
                      var i = t + f + d + h,
                        n = i % y,
                        a = Math.floor(i / y),
                        o = n * v,
                        s = a * b,
                        l = Math.sign(o - E),
                        p = Math.sign(s - _);
                      (E = o),
                        (_ = s),
                        e.markedForRemoval ||
                          (r && ((e.translateX = null), (e.translateY = null)),
                          mn(e, o, s, l, p));
                    });
                  }
                }
              },
              tag: "ul",
              name: "list",
              didWriteView: function (e) {
                var t = e.root;
                t.childViews
                  .filter(function (e) {
                    return e.markedForRemoval && 0 === e.opacity && e.resting;
                  })
                  .forEach(function (e) {
                    e._destroy(), t.removeChildView(e);
                  });
              },
              filterFrameActionsForChild: function (e, t) {
                return t.filter(function (t) {
                  return !t.data || !t.data.id || e.id === t.data.id;
                });
              },
              mixins: { apis: ["dragCoordinates"] },
            }),
            En = function (e) {
              var t = e.root,
                i = e.props;
              (t.ref.list = t.appendChildView(t.createChildView(wn))),
                (i.dragCoordinates = null),
                (i.overflowing = !1);
            },
            _n = z({
              DID_DRAG: function (e) {
                var t = e.root,
                  i = e.props,
                  n = e.action;
                t.query("GET_ITEM_INSERT_LOCATION_FREEDOM") &&
                  (i.dragCoordinates = {
                    left: n.position.scopeLeft - t.ref.list.rect.element.left,
                    top:
                      n.position.scopeTop -
                      (t.rect.outer.top +
                        t.rect.element.marginTop +
                        t.rect.element.scrollTop),
                  });
              },
              DID_END_DRAG: function (e) {
                e.props.dragCoordinates = null;
              },
            }),
            Sn = F({
              create: En,
              write: function (e) {
                var t = e.root,
                  i = e.props,
                  n = e.actions;
                if (
                  (_n({ root: t, props: i, actions: n }),
                  (t.ref.list.dragCoordinates = i.dragCoordinates),
                  i.overflowing &&
                    !i.overflow &&
                    ((i.overflowing = !1),
                    (t.element.dataset.state = ""),
                    (t.height = null)),
                  i.overflow)
                ) {
                  var r = Math.round(i.overflow);
                  r !== t.height &&
                    ((i.overflowing = !0),
                    (t.element.dataset.state = "overflow"),
                    (t.height = r));
                }
              },
              name: "list-scroller",
              mixins: {
                apis: ["overflow", "dragCoordinates"],
                styles: ["height", "translateY"],
                animations: { translateY: "spring" },
              },
            }),
            An = function (e, t, i) {
              i
                ? o(
                    e,
                    t,
                    arguments.length > 3 && void 0 !== arguments[3]
                      ? arguments[3]
                      : ""
                  )
                : e.removeAttribute(t);
            },
            kn = function (e) {
              if (e && "" !== e.value) {
                try {
                  e.value = "";
                } catch (e) {}
                if (e.value) {
                  var t = mi("form"),
                    i = e.parentNode,
                    n = e.nextSibling;
                  t.appendChild(e),
                    t.reset(),
                    n ? i.insertBefore(e, n) : i.appendChild(e);
                }
              }
            },
            Tn = function (e) {
              var t = e.root,
                i = e.props;
              (t.element.id = "filepond--browser-" + i.id),
                o(t.element, "name", t.query("GET_NAME")),
                o(t.element, "aria-controls", "filepond--assistant-" + i.id),
                o(t.element, "aria-labelledby", "filepond--drop-label-" + i.id),
                Cn({
                  root: t,
                  action: { value: t.query("GET_ACCEPTED_FILE_TYPES") },
                }),
                On({
                  root: t,
                  action: { value: t.query("GET_ALLOW_MULTIPLE") },
                }),
                In({
                  root: t,
                  action: { value: t.query("GET_ALLOW_DIRECTORIES_ONLY") },
                }),
                Mn({ root: t }),
                Ln({ root: t, action: { value: t.query("GET_REQUIRED") } }),
                Pn({
                  root: t,
                  action: { value: t.query("GET_CAPTURE_METHOD") },
                }),
                (t.ref.handleChange = function (e) {
                  if (t.element.value) {
                    var n = Array.from(t.element.files).map(function (e) {
                      return (e._relativePath = e.webkitRelativePath), e;
                    });
                    setTimeout(function () {
                      i.onload(n), kn(t.element);
                    }, 250);
                  }
                }),
                t.element.addEventListener("change", t.ref.handleChange);
            },
            Cn = function (e) {
              var t = e.root,
                i = e.action;
              t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE") &&
                An(
                  t.element,
                  "accept",
                  !!i.value,
                  i.value ? i.value.join(",") : ""
                );
            },
            On = function (e) {
              var t = e.root,
                i = e.action;
              An(t.element, "multiple", i.value);
            },
            In = function (e) {
              var t = e.root,
                i = e.action;
              An(t.element, "webkitdirectory", i.value);
            },
            Mn = function (e) {
              var t = e.root,
                i = t.query("GET_DISABLED"),
                n = t.query("GET_ALLOW_BROWSE"),
                r = i || !n;
              An(t.element, "disabled", r);
            },
            Ln = function (e) {
              var t = e.root;
              e.action.value
                ? 0 === t.query("GET_TOTAL_ITEMS") &&
                  An(t.element, "required", !0)
                : An(t.element, "required", !1);
            },
            Pn = function (e) {
              var t = e.root,
                i = e.action;
              An(
                t.element,
                "capture",
                !!i.value,
                !0 === i.value ? "" : i.value
              );
            },
            Dn = function (e) {
              var t = e.root,
                i = t.element;
              t.query("GET_TOTAL_ITEMS") > 0
                ? (An(i, "required", !1), An(i, "name", !1))
                : (An(i, "name", !0, t.query("GET_NAME")),
                  t.query("GET_CHECK_VALIDITY") && i.setCustomValidity(""),
                  t.query("GET_REQUIRED") && An(i, "required", !0));
            },
            Rn = F({
              tag: "input",
              name: "browser",
              ignoreRect: !0,
              ignoreRectUpdate: !0,
              attributes: { type: "file" },
              create: Tn,
              destroy: function (e) {
                var t = e.root;
                t.element.removeEventListener("change", t.ref.handleChange);
              },
              write: z({
                DID_LOAD_ITEM: Dn,
                DID_REMOVE_ITEM: Dn,
                DID_THROW_ITEM_INVALID: function (e) {
                  var t = e.root;
                  t.query("GET_CHECK_VALIDITY") &&
                    t.element.setCustomValidity(
                      t.query("GET_LABEL_INVALID_FIELD")
                    );
                },
                DID_SET_DISABLED: Mn,
                DID_SET_ALLOW_BROWSE: Mn,
                DID_SET_ALLOW_DIRECTORIES_ONLY: In,
                DID_SET_ALLOW_MULTIPLE: On,
                DID_SET_ACCEPTED_FILE_TYPES: Cn,
                DID_SET_CAPTURE_METHOD: Pn,
                DID_SET_REQUIRED: Ln,
              }),
            }),
            Nn = { ENTER: 13, SPACE: 32 },
            Fn = function (e) {
              var t = e.root,
                i = e.props,
                n = mi("label");
              o(n, "for", "filepond--browser-" + i.id),
                o(n, "id", "filepond--drop-label-" + i.id),
                o(n, "aria-hidden", "true"),
                (t.ref.handleKeyDown = function (e) {
                  (e.keyCode === Nn.ENTER || e.keyCode === Nn.SPACE) &&
                    (e.preventDefault(), t.ref.label.click());
                }),
                (t.ref.handleClick = function (e) {
                  e.target === n || n.contains(e.target) || t.ref.label.click();
                }),
                n.addEventListener("keydown", t.ref.handleKeyDown),
                t.element.addEventListener("click", t.ref.handleClick),
                Bn(n, i.caption),
                t.appendChild(n),
                (t.ref.label = n);
            },
            Bn = function (e, t) {
              e.innerHTML = t;
              var i = e.querySelector(".filepond--label-action");
              return i && o(i, "tabindex", "0"), t;
            },
            zn = F({
              name: "drop-label",
              ignoreRect: !0,
              create: Fn,
              destroy: function (e) {
                var t = e.root;
                t.ref.label.addEventListener("keydown", t.ref.handleKeyDown),
                  t.element.removeEventListener("click", t.ref.handleClick);
              },
              write: z({
                DID_SET_LABEL_IDLE: function (e) {
                  var t = e.root,
                    i = e.action;
                  Bn(t.ref.label, i.value);
                },
              }),
              mixins: {
                styles: ["opacity", "translateX", "translateY"],
                animations: {
                  opacity: { type: "tween", duration: 150 },
                  translateX: "spring",
                  translateY: "spring",
                },
              },
            }),
            jn = F({
              name: "drip-blob",
              ignoreRect: !0,
              mixins: {
                styles: [
                  "translateX",
                  "translateY",
                  "scaleX",
                  "scaleY",
                  "opacity",
                ],
                animations: {
                  scaleX: "spring",
                  scaleY: "spring",
                  translateX: "spring",
                  translateY: "spring",
                  opacity: { type: "tween", duration: 250 },
                },
              },
            }),
            Hn = function (e) {
              var t = e.root,
                i = 0.5 * t.rect.element.width,
                n = 0.5 * t.rect.element.height;
              t.ref.blob = t.appendChildView(
                t.createChildView(jn, {
                  opacity: 0,
                  scaleX: 2.5,
                  scaleY: 2.5,
                  translateX: i,
                  translateY: n,
                })
              );
            },
            Yn = function (e) {
              var t = e.root,
                i = e.props,
                n = e.actions;
              Xn({ root: t, props: i, actions: n });
              var r = t.ref.blob;
              0 === n.length &&
                r &&
                0 === r.opacity &&
                (t.removeChildView(r), (t.ref.blob = null));
            },
            Xn = z({
              DID_DRAG: function (e) {
                var t = e.root,
                  i = e.action;
                t.ref.blob
                  ? ((t.ref.blob.translateX = i.position.scopeLeft),
                    (t.ref.blob.translateY = i.position.scopeTop),
                    (t.ref.blob.scaleX = 1),
                    (t.ref.blob.scaleY = 1),
                    (t.ref.blob.opacity = 1))
                  : Hn({ root: t });
              },
              DID_DROP: function (e) {
                var t = e.root;
                t.ref.blob &&
                  ((t.ref.blob.scaleX = 2.5),
                  (t.ref.blob.scaleY = 2.5),
                  (t.ref.blob.opacity = 0));
              },
              DID_END_DRAG: function (e) {
                var t = e.root;
                t.ref.blob && (t.ref.blob.opacity = 0);
              },
            }),
            Wn = F({
              ignoreRect: !0,
              ignoreRectUpdate: !0,
              name: "drip",
              write: Yn,
            }),
            Gn = function (e, t) {
              try {
                var i = new DataTransfer();
                t.forEach(function (e) {
                  e instanceof File
                    ? i.items.add(e)
                    : i.items.add(new File([e], e.name, { type: e.type }));
                }),
                  (e.files = i.files);
              } catch (e) {
                return !1;
              }
              return !0;
            },
            qn = function (e) {
              return (e.root.ref.fields = {});
            },
            Vn = function (e, t) {
              return e.ref.fields[t];
            },
            Un = function (e) {
              e.query("GET_ACTIVE_ITEMS").forEach(function (t) {
                e.ref.fields[t.id] && e.element.appendChild(e.ref.fields[t.id]);
              });
            },
            $n = function (e) {
              var t = e.root;
              return Un(t);
            },
            Zn = z({
              DID_SET_DISABLED: function (e) {
                var t = e.root;
                t.element.disabled = t.query("GET_DISABLED");
              },
              DID_ADD_ITEM: function (e) {
                var t = e.root,
                  i = e.action,
                  n =
                    !(t.query("GET_ITEM", i.id).origin === ze.LOCAL) &&
                    t.query("SHOULD_UPDATE_FILE_INPUT"),
                  r = mi("input");
                (r.type = n ? "file" : "hidden"),
                  (r.name = t.query("GET_NAME")),
                  (r.disabled = t.query("GET_DISABLED")),
                  (t.ref.fields[i.id] = r),
                  Un(t);
              },
              DID_LOAD_ITEM: function (e) {
                var t = e.root,
                  i = e.action,
                  n = Vn(t, i.id);
                if (
                  n &&
                  (null !== i.serverFileReference &&
                    (n.value = i.serverFileReference),
                  t.query("SHOULD_UPDATE_FILE_INPUT"))
                ) {
                  var r = t.query("GET_ITEM", i.id);
                  Gn(n, [r.file]);
                }
              },
              DID_REMOVE_ITEM: function (e) {
                var t = e.root,
                  i = e.action,
                  n = Vn(t, i.id);
                n &&
                  (n.parentNode && n.parentNode.removeChild(n),
                  delete t.ref.fields[i.id]);
              },
              DID_DEFINE_VALUE: function (e) {
                var t = e.root,
                  i = e.action,
                  n = Vn(t, i.id);
                n &&
                  (null === i.value
                    ? n.removeAttribute("value")
                    : (n.value = i.value),
                  Un(t));
              },
              DID_PREPARE_OUTPUT: function (e) {
                var t = e.root,
                  i = e.action;
                t.query("SHOULD_UPDATE_FILE_INPUT") &&
                  setTimeout(function () {
                    var e = Vn(t, i.id);
                    e && Gn(e, [i.file]);
                  }, 0);
              },
              DID_REORDER_ITEMS: $n,
              DID_SORT_ITEMS: $n,
            }),
            Kn = F({
              tag: "fieldset",
              name: "data",
              create: qn,
              write: Zn,
              ignoreRect: !0,
            }),
            Jn = function (e) {
              return "getRootNode" in e ? e.getRootNode() : document;
            },
            Qn = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "tiff"],
            er = ["css", "csv", "html", "txt"],
            tr = { zip: "zip|compressed", epub: "application/epub+zip" },
            ir = function () {
              var e =
                arguments.length > 0 && void 0 !== arguments[0]
                  ? arguments[0]
                  : "";
              return (
                (e = e.toLowerCase()),
                Qn.includes(e)
                  ? "image/" +
                    ("jpg" === e ? "jpeg" : "svg" === e ? "svg+xml" : e)
                  : er.includes(e)
                  ? "text/" + e
                  : tr[e] || ""
              );
            },
            nr = function (e) {
              return new Promise(function (t, i) {
                var n = fr(e);
                if (n.length && !rr(e)) return t(n);
                ar(e).then(t);
              });
            },
            rr = function (e) {
              return !!e.files && e.files.length > 0;
            },
            ar = function (e) {
              return new Promise(function (t, i) {
                var n = (e.items ? Array.from(e.items) : [])
                  .filter(function (e) {
                    return or(e);
                  })
                  .map(function (e) {
                    return sr(e);
                  });
                n.length
                  ? Promise.all(n)
                      .then(function (e) {
                        var i = [];
                        e.forEach(function (e) {
                          i.push.apply(i, e);
                        }),
                          t(
                            i
                              .filter(function (e) {
                                return e;
                              })
                              .map(function (e) {
                                return (
                                  e._relativePath ||
                                    (e._relativePath = e.webkitRelativePath),
                                  e
                                );
                              })
                          );
                      })
                      .catch(console.error)
                  : t(e.files ? Array.from(e.files) : []);
              });
            },
            or = function (e) {
              if (dr(e)) {
                var t = hr(e);
                if (t) return t.isFile || t.isDirectory;
              }
              return "file" === e.kind;
            },
            sr = function (e) {
              return new Promise(function (t, i) {
                ur(e) ? lr(hr(e)).then(t).catch(i) : t([e.getAsFile()]);
              });
            },
            lr = function (e) {
              return new Promise(function (t, i) {
                var n = [],
                  r = 0,
                  a = 0,
                  o = function () {
                    0 === a && 0 === r && t(n);
                  },
                  s = function e(t) {
                    r++;
                    var s = t.createReader(),
                      l = function t() {
                        s.readEntries(function (i) {
                          if (0 === i.length) return r--, void o();
                          i.forEach(function (t) {
                            t.isDirectory
                              ? e(t)
                              : (a++,
                                t.file(function (e) {
                                  var i = cr(e);
                                  t.fullPath && (i._relativePath = t.fullPath),
                                    n.push(i),
                                    a--,
                                    o();
                                }));
                          }),
                            t();
                        }, i);
                      };
                    l();
                  };
                s(e);
              });
            },
            cr = function (e) {
              if (e.type.length) return e;
              var t = e.lastModifiedDate,
                i = e.name,
                n = ir(bt(e.name));
              return n.length
                ? (((e = e.slice(0, e.size, n)).name = i),
                  (e.lastModifiedDate = t),
                  e)
                : e;
            },
            ur = function (e) {
              return dr(e) && (hr(e) || {}).isDirectory;
            },
            dr = function (e) {
              return "webkitGetAsEntry" in e;
            },
            hr = function (e) {
              return e.webkitGetAsEntry();
            },
            fr = function (e) {
              var t = [];
              try {
                if ((t = gr(e)).length) return t;
                t = pr(e);
              } catch (e) {}
              return t;
            },
            pr = function (e) {
              var t = e.getData("url");
              return "string" == typeof t && t.length ? [t] : [];
            },
            gr = function (e) {
              var t = e.getData("text/html");
              if ("string" == typeof t && t.length) {
                var i = t.match(/src\s*=\s*"(.+?)"/);
                if (i) return [i[1]];
              }
              return [];
            },
            mr = [],
            vr = function (e) {
              return {
                pageLeft: e.pageX,
                pageTop: e.pageY,
                scopeLeft: e.offsetX || e.layerX,
                scopeTop: e.offsetY || e.layerY,
              };
            },
            br = function (e, t, i) {
              var n = yr(t),
                r = {
                  element: e,
                  filterElement: i,
                  state: null,
                  ondrop: function () {},
                  onenter: function () {},
                  ondrag: function () {},
                  onexit: function () {},
                  onload: function () {},
                  allowdrop: function () {},
                };
              return (r.destroy = n.addListener(r)), r;
            },
            yr = function (e) {
              var t = mr.find(function (t) {
                return t.element === e;
              });
              if (t) return t;
              var i = xr(e);
              return mr.push(i), i;
            },
            xr = function (e) {
              var t = [],
                i = { dragenter: Ar, dragover: kr, dragleave: Cr, drop: Tr },
                n = {};
              r(i, function (i, r) {
                (n[i] = r(e, t)), e.addEventListener(i, n[i], !1);
              });
              var a = {
                element: e,
                addListener: function (o) {
                  return (
                    t.push(o),
                    function () {
                      t.splice(t.indexOf(o), 1),
                        0 === t.length &&
                          (mr.splice(mr.indexOf(a), 1),
                          r(i, function (t) {
                            e.removeEventListener(t, n[t], !1);
                          }));
                    }
                  );
                },
              };
              return a;
            },
            wr = function (e, t) {
              return (
                "elementFromPoint" in e || (e = document),
                e.elementFromPoint(t.x, t.y)
              );
            },
            Er = function (e, t) {
              var i = Jn(t),
                n = wr(i, {
                  x: e.pageX - window.pageXOffset,
                  y: e.pageY - window.pageYOffset,
                });
              return n === t || t.contains(n);
            },
            _r = null,
            Sr = function (e, t) {
              try {
                e.dropEffect = t;
              } catch (e) {}
            },
            Ar = function (e, t) {
              return function (e) {
                e.preventDefault(),
                  (_r = e.target),
                  t.forEach(function (t) {
                    var i = t.element,
                      n = t.onenter;
                    Er(e, i) && ((t.state = "enter"), n(vr(e)));
                  });
              };
            },
            kr = function (e, t) {
              return function (e) {
                e.preventDefault();
                var i = e.dataTransfer;
                nr(i).then(function (n) {
                  var r = !1;
                  t.some(function (t) {
                    var a = t.filterElement,
                      o = t.element,
                      s = t.onenter,
                      l = t.onexit,
                      c = t.ondrag,
                      u = t.allowdrop;
                    Sr(i, "copy");
                    var d = u(n);
                    if (d)
                      if (Er(e, o)) {
                        if (((r = !0), null === t.state))
                          return (t.state = "enter"), void s(vr(e));
                        if (((t.state = "over"), a && !d))
                          return void Sr(i, "none");
                        c(vr(e));
                      } else
                        a && !r && Sr(i, "none"),
                          t.state && ((t.state = null), l(vr(e)));
                    else Sr(i, "none");
                  });
                });
              };
            },
            Tr = function (e, t) {
              return function (e) {
                e.preventDefault();
                var i = e.dataTransfer;
                nr(i).then(function (i) {
                  t.forEach(function (t) {
                    var n = t.filterElement,
                      r = t.element,
                      a = t.ondrop,
                      o = t.onexit,
                      s = t.allowdrop;
                    if (((t.state = null), !n || Er(e, r)))
                      return s(i) ? void a(vr(e), i) : o(vr(e));
                  });
                });
              };
            },
            Cr = function (e, t) {
              return function (e) {
                _r === e.target &&
                  t.forEach(function (t) {
                    var i = t.onexit;
                    (t.state = null), i(vr(e));
                  });
              };
            },
            Or = function (e, t, i) {
              e.classList.add("filepond--hopper");
              var n = i.catchesDropsOnPage,
                r = i.requiresDropOnElement,
                a = i.filterItems,
                o =
                  void 0 === a
                    ? function (e) {
                        return e;
                      }
                    : a,
                s = br(e, n ? document.documentElement : e, r),
                l = "",
                c = "";
              (s.allowdrop = function (e) {
                return t(o(e));
              }),
                (s.ondrop = function (e, i) {
                  var n = o(i);
                  t(n) ? ((c = "drag-drop"), u.onload(n, e)) : u.ondragend(e);
                }),
                (s.ondrag = function (e) {
                  u.ondrag(e);
                }),
                (s.onenter = function (e) {
                  (c = "drag-over"), u.ondragstart(e);
                }),
                (s.onexit = function (e) {
                  (c = "drag-exit"), u.ondragend(e);
                });
              var u = {
                updateHopperState: function () {
                  l !== c && ((e.dataset.hopperState = c), (l = c));
                },
                onload: function () {},
                ondragstart: function () {},
                ondrag: function () {},
                ondragend: function () {},
                destroy: function () {
                  s.destroy();
                },
              };
              return u;
            },
            Ir = !1,
            Mr = [],
            Lr = function (e) {
              var t = document.activeElement;
              if (t && /textarea|input/i.test(t.nodeName)) {
                for (var i = !1, n = t; n !== document.body; ) {
                  if (n.classList.contains("filepond--root")) {
                    i = !0;
                    break;
                  }
                  n = n.parentNode;
                }
                if (!i) return;
              }
              nr(e.clipboardData).then(function (e) {
                e.length &&
                  Mr.forEach(function (t) {
                    return t(e);
                  });
              });
            },
            Pr = function (e) {
              Mr.includes(e) ||
                (Mr.push(e),
                Ir || ((Ir = !0), document.addEventListener("paste", Lr)));
            },
            Dr = function (e) {
              Me(Mr, Mr.indexOf(e)),
                0 === Mr.length &&
                  (document.removeEventListener("paste", Lr), (Ir = !1));
            },
            Rr = function () {
              var e = function (e) {
                  t.onload(e);
                },
                t = {
                  destroy: function () {
                    Dr(e);
                  },
                  onload: function () {},
                };
              return Pr(e), t;
            },
            Nr = null,
            Fr = null,
            Br = [],
            zr = function (e, t) {
              e.element.textContent = t;
            },
            jr = function (e) {
              e.element.textContent = "";
            },
            Hr = function (e, t, i) {
              var n = e.query("GET_TOTAL_ITEMS");
              zr(
                e,
                i +
                  " " +
                  t +
                  ", " +
                  n +
                  " " +
                  (1 === n
                    ? e.query("GET_LABEL_FILE_COUNT_SINGULAR")
                    : e.query("GET_LABEL_FILE_COUNT_PLURAL"))
              ),
                clearTimeout(Fr),
                (Fr = setTimeout(function () {
                  jr(e);
                }, 1500));
            },
            Yr = function (e) {
              return e.element.parentNode.contains(document.activeElement);
            },
            Xr = function (e) {
              var t = e.root,
                i = e.action,
                n = t.query("GET_ITEM", i.id).filename,
                r = t.query("GET_LABEL_FILE_PROCESSING_ABORTED");
              zr(t, n + " " + r);
            },
            Wr = function (e) {
              var t = e.root,
                i = e.action,
                n = t.query("GET_ITEM", i.id).filename;
              zr(t, i.status.main + " " + n + " " + i.status.sub);
            },
            Gr = F({
              create: function (e) {
                var t = e.root,
                  i = e.props;
                (t.element.id = "filepond--assistant-" + i.id),
                  o(t.element, "role", "status"),
                  o(t.element, "aria-live", "polite"),
                  o(t.element, "aria-relevant", "additions");
              },
              ignoreRect: !0,
              ignoreRectUpdate: !0,
              write: z({
                DID_LOAD_ITEM: function (e) {
                  var t = e.root,
                    i = e.action;
                  if (Yr(t)) {
                    t.element.textContent = "";
                    var n = t.query("GET_ITEM", i.id);
                    Br.push(n.filename),
                      clearTimeout(Nr),
                      (Nr = setTimeout(function () {
                        Hr(t, Br.join(", "), t.query("GET_LABEL_FILE_ADDED")),
                          (Br.length = 0);
                      }, 750));
                  }
                },
                DID_REMOVE_ITEM: function (e) {
                  var t = e.root,
                    i = e.action;
                  if (Yr(t)) {
                    var n = i.item;
                    Hr(t, n.filename, t.query("GET_LABEL_FILE_REMOVED"));
                  }
                },
                DID_COMPLETE_ITEM_PROCESSING: function (e) {
                  var t = e.root,
                    i = e.action,
                    n = t.query("GET_ITEM", i.id).filename,
                    r = t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");
                  zr(t, n + " " + r);
                },
                DID_ABORT_ITEM_PROCESSING: Xr,
                DID_REVERT_ITEM_PROCESSING: Xr,
                DID_THROW_ITEM_REMOVE_ERROR: Wr,
                DID_THROW_ITEM_LOAD_ERROR: Wr,
                DID_THROW_ITEM_INVALID: Wr,
                DID_THROW_ITEM_PROCESSING_ERROR: Wr,
              }),
              tag: "span",
              name: "assistant",
            }),
            qr = function (e) {
              var t =
                arguments.length > 1 && void 0 !== arguments[1]
                  ? arguments[1]
                  : "-";
              return e.replace(new RegExp(t + ".", "g"), function (e) {
                return e.charAt(1).toUpperCase();
              });
            },
            Vr = function (e) {
              var t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : 16,
                i =
                  !(arguments.length > 2 && void 0 !== arguments[2]) ||
                  arguments[2],
                n = Date.now(),
                r = null;
              return function () {
                for (
                  var a = arguments.length, o = new Array(a), s = 0;
                  s < a;
                  s++
                )
                  o[s] = arguments[s];
                clearTimeout(r);
                var l = Date.now() - n,
                  c = function () {
                    (n = Date.now()), e.apply(void 0, o);
                  };
                l < t ? i || (r = setTimeout(c, t - l)) : c();
              };
            },
            Ur = 1e6,
            $r = function (e) {
              return e.preventDefault();
            },
            Zr = function (e) {
              var t = e.root,
                i = e.props,
                n = t.query("GET_ID");
              n && (t.element.id = n);
              var r = t.query("GET_CLASS_NAME");
              r &&
                r
                  .split(" ")
                  .filter(function (e) {
                    return e.length;
                  })
                  .forEach(function (e) {
                    t.element.classList.add(e);
                  }),
                (t.ref.label = t.appendChildView(
                  t.createChildView(
                    zn,
                    Object.assign({}, i, {
                      translateY: null,
                      caption: t.query("GET_LABEL_IDLE"),
                    })
                  )
                )),
                (t.ref.list = t.appendChildView(
                  t.createChildView(Sn, { translateY: null })
                )),
                (t.ref.panel = t.appendChildView(
                  t.createChildView(nn, { name: "panel-root" })
                )),
                (t.ref.assistant = t.appendChildView(
                  t.createChildView(Gr, Object.assign({}, i))
                )),
                (t.ref.data = t.appendChildView(
                  t.createChildView(Kn, Object.assign({}, i))
                )),
                (t.ref.measure = mi("div")),
                (t.ref.measure.style.height = "100%"),
                t.element.appendChild(t.ref.measure),
                (t.ref.bounds = null),
                t
                  .query("GET_STYLES")
                  .filter(function (e) {
                    return !X(e.value);
                  })
                  .map(function (e) {
                    var i = e.name,
                      n = e.value;
                    t.element.dataset[i] = n;
                  }),
                (t.ref.widthPrevious = null),
                (t.ref.widthUpdated = Vr(function () {
                  (t.ref.updateHistory = []), t.dispatch("DID_RESIZE_ROOT");
                }, 250)),
                (t.ref.previousAspectRatio = null),
                (t.ref.updateHistory = []);
              var a = window.matchMedia(
                  "(pointer: fine) and (hover: hover)"
                ).matches,
                o = "PointerEvent" in window;
              t.query("GET_ALLOW_REORDER") &&
                o &&
                !a &&
                (t.element.addEventListener("touchmove", $r, { passive: !1 }),
                t.element.addEventListener("gesturestart", $r));
              var s = t.query("GET_CREDITS");
              if (2 === s.length) {
                var l = document.createElement("a");
                (l.className = "filepond--credits"),
                  l.setAttribute("aria-hidden", "true"),
                  (l.href = s[0]),
                  (l.tabindex = -1),
                  (l.target = "_blank"),
                  (l.rel = "noopener noreferrer"),
                  (l.textContent = s[1]),
                  t.element.appendChild(l),
                  (t.ref.credits = l);
              }
            },
            Kr = function (e) {
              var t = e.root,
                i = e.props,
                n = e.actions;
              if (
                (oa({ root: t, props: i, actions: n }),
                n
                  .filter(function (e) {
                    return /^DID_SET_STYLE_/.test(e.type);
                  })
                  .filter(function (e) {
                    return !X(e.data.value);
                  })
                  .map(function (e) {
                    var i = e.type,
                      n = e.data,
                      r = qr(i.substring(8).toLowerCase(), "_");
                    (t.element.dataset[r] = n.value), t.invalidateLayout();
                  }),
                !t.rect.element.hidden)
              ) {
                t.rect.element.width !== t.ref.widthPrevious &&
                  ((t.ref.widthPrevious = t.rect.element.width),
                  t.ref.widthUpdated());
                var r = t.ref.bounds;
                r ||
                  ((r = t.ref.bounds = ea(t)),
                  t.element.removeChild(t.ref.measure),
                  (t.ref.measure = null));
                var a = t.ref,
                  o = a.hopper,
                  s = a.label,
                  l = a.list,
                  c = a.panel;
                o && o.updateHopperState();
                var u = t.query("GET_PANEL_ASPECT_RATIO"),
                  d = t.query("GET_ALLOW_MULTIPLE"),
                  h = t.query("GET_TOTAL_ITEMS"),
                  f = h === (d ? t.query("GET_MAX_FILES") || Ur : 1),
                  p = n.find(function (e) {
                    return "DID_ADD_ITEM" === e.type;
                  });
                if (f && p) {
                  var g = p.data.interactionMethod;
                  (s.opacity = 0),
                    d
                      ? (s.translateY = -40)
                      : g === we.API
                      ? (s.translateX = 40)
                      : g === we.BROWSE
                      ? (s.translateY = 40)
                      : (s.translateY = 30);
                } else
                  f ||
                    ((s.opacity = 1), (s.translateX = 0), (s.translateY = 0));
                var m = Jr(t),
                  v = Qr(t),
                  b = s.rect.element.height,
                  y = !d || f ? 0 : b,
                  x = f ? l.rect.element.marginTop : 0,
                  w = 0 === h ? 0 : l.rect.element.marginBottom,
                  E = y + x + v.visual + w,
                  _ = y + x + v.bounds + w;
                if (
                  ((l.translateY =
                    Math.max(0, y - l.rect.element.marginTop) - m.top),
                  u)
                ) {
                  var S = t.rect.element.width,
                    A = S * u;
                  u !== t.ref.previousAspectRatio &&
                    ((t.ref.previousAspectRatio = u),
                    (t.ref.updateHistory = []));
                  var k = t.ref.updateHistory;
                  k.push(S);
                  var T = 2;
                  if (k.length > 2 * T)
                    for (
                      var C = k.length, O = C - 10, I = 0, M = C;
                      M >= O;
                      M--
                    )
                      if ((k[M] === k[M - 2] && I++, I >= T)) return;
                  (c.scalable = !1), (c.height = A);
                  var L = A - y - (w - m.bottom) - (f ? x : 0);
                  v.visual > L ? (l.overflow = L) : (l.overflow = null),
                    (t.height = A);
                } else if (r.fixedHeight) {
                  c.scalable = !1;
                  var P = r.fixedHeight - y - (w - m.bottom) - (f ? x : 0);
                  v.visual > P ? (l.overflow = P) : (l.overflow = null);
                } else if (r.cappedHeight) {
                  var D = E >= r.cappedHeight,
                    R = Math.min(r.cappedHeight, E);
                  (c.scalable = !0), (c.height = D ? R : R - m.top - m.bottom);
                  var N = R - y - (w - m.bottom) - (f ? x : 0);
                  E > r.cappedHeight && v.visual > N
                    ? (l.overflow = N)
                    : (l.overflow = null),
                    (t.height = Math.min(r.cappedHeight, _ - m.top - m.bottom));
                } else {
                  var F = h > 0 ? m.top + m.bottom : 0;
                  (c.scalable = !0),
                    (c.height = Math.max(b, E - F)),
                    (t.height = Math.max(b, _ - F));
                }
                t.ref.credits &&
                  c.heightCurrent &&
                  (t.ref.credits.style.transform =
                    "translateY(" + c.heightCurrent + "px)");
              }
            },
            Jr = function (e) {
              var t = e.ref.list.childViews[0].childViews[0];
              return t
                ? {
                    top: t.rect.element.marginTop,
                    bottom: t.rect.element.marginBottom,
                  }
                : { top: 0, bottom: 0 };
            },
            Qr = function (e) {
              var t = 0,
                i = 0,
                n = e.ref.list,
                r = n.childViews[0],
                a = r.childViews.filter(function (e) {
                  return e.rect.element.height;
                }),
                o = e
                  .query("GET_ACTIVE_ITEMS")
                  .map(function (e) {
                    return a.find(function (t) {
                      return t.id === e.id;
                    });
                  })
                  .filter(function (e) {
                    return e;
                  });
              if (0 === o.length) return { visual: t, bounds: i };
              var s = r.rect.element.width,
                l = fn(r, o, n.dragCoordinates),
                c = o[0].rect.element,
                u = c.marginTop + c.marginBottom,
                d = c.marginLeft + c.marginRight,
                h = c.width + d,
                f = c.height + u,
                p = void 0 !== l && l >= 0 ? 1 : 0,
                g = o.find(function (e) {
                  return e.markedForRemoval && e.opacity < 0.45;
                })
                  ? -1
                  : 0,
                m = o.length + p + g,
                v = hn(s, h);
              return (
                1 === v
                  ? o.forEach(function (e) {
                      var n = e.rect.element.height + u;
                      (i += n), (t += n * e.opacity);
                    })
                  : ((i = Math.ceil(m / v) * f), (t = i)),
                { visual: t, bounds: i }
              );
            },
            ea = function (e) {
              var t = e.ref.measureHeight || null;
              return {
                cappedHeight: parseInt(e.style.maxHeight, 10) || null,
                fixedHeight: 0 === t ? null : t,
              };
            },
            ta = function (e, t) {
              var i = e.query("GET_ALLOW_REPLACE"),
                n = e.query("GET_ALLOW_MULTIPLE"),
                r = e.query("GET_TOTAL_ITEMS"),
                a = e.query("GET_MAX_FILES"),
                o = t.length;
              return !n && o > 1
                ? (e.dispatch("DID_THROW_MAX_FILES", {
                    source: t,
                    error: Bt("warning", 0, "Max files"),
                  }),
                  !0)
                : !(
                    (!n && i) ||
                    !(Q((a = n ? a : 1)) && r + o > a) ||
                    (e.dispatch("DID_THROW_MAX_FILES", {
                      source: t,
                      error: Bt("warning", 0, "Max files"),
                    }),
                    0)
                  );
            },
            ia = function (e, t, i) {
              var n = e.childViews[0];
              return fn(n, t, {
                left: i.scopeLeft - n.rect.element.left,
                top:
                  i.scopeTop -
                  (e.rect.outer.top +
                    e.rect.element.marginTop +
                    e.rect.element.scrollTop),
              });
            },
            na = function (e) {
              var t = e.query("GET_ALLOW_DROP"),
                i = e.query("GET_DISABLED"),
                n = t && !i;
              if (n && !e.ref.hopper) {
                var r = Or(
                  e.element,
                  function (t) {
                    var i =
                      e.query("GET_BEFORE_DROP_FILE") ||
                      function () {
                        return !0;
                      };
                    return (
                      !e.query("GET_DROP_VALIDATION") ||
                      t.every(function (t) {
                        return (
                          qe("ALLOW_HOPPER_ITEM", t, { query: e.query }).every(
                            function (e) {
                              return !0 === e;
                            }
                          ) && i(t)
                        );
                      })
                    );
                  },
                  {
                    filterItems: function (t) {
                      var i = e.query("GET_IGNORED_FILES");
                      return t.filter(function (e) {
                        return !Qt(e) || !i.includes(e.name.toLowerCase());
                      });
                    },
                    catchesDropsOnPage: e.query("GET_DROP_ON_PAGE"),
                    requiresDropOnElement: e.query("GET_DROP_ON_ELEMENT"),
                  }
                );
                (r.onload = function (t, i) {
                  var n = e.ref.list.childViews[0].childViews.filter(function (
                      e
                    ) {
                      return e.rect.element.height;
                    }),
                    r = e
                      .query("GET_ACTIVE_ITEMS")
                      .map(function (e) {
                        return n.find(function (t) {
                          return t.id === e.id;
                        });
                      })
                      .filter(function (e) {
                        return e;
                      });
                  Ge("ADD_ITEMS", t, { dispatch: e.dispatch }).then(function (
                    t
                  ) {
                    if (ta(e, t)) return !1;
                    e.dispatch("ADD_ITEMS", {
                      items: t,
                      index: ia(e.ref.list, r, i),
                      interactionMethod: we.DROP,
                    });
                  }),
                    e.dispatch("DID_DROP", { position: i }),
                    e.dispatch("DID_END_DRAG", { position: i });
                }),
                  (r.ondragstart = function (t) {
                    e.dispatch("DID_START_DRAG", { position: t });
                  }),
                  (r.ondrag = Vr(function (t) {
                    e.dispatch("DID_DRAG", { position: t });
                  })),
                  (r.ondragend = function (t) {
                    e.dispatch("DID_END_DRAG", { position: t });
                  }),
                  (e.ref.hopper = r),
                  (e.ref.drip = e.appendChildView(e.createChildView(Wn)));
              } else
                !n &&
                  e.ref.hopper &&
                  (e.ref.hopper.destroy(),
                  (e.ref.hopper = null),
                  e.removeChildView(e.ref.drip));
            },
            ra = function (e, t) {
              var i = e.query("GET_ALLOW_BROWSE"),
                n = e.query("GET_DISABLED"),
                r = i && !n;
              r && !e.ref.browser
                ? (e.ref.browser = e.appendChildView(
                    e.createChildView(
                      Rn,
                      Object.assign({}, t, {
                        onload: function (t) {
                          Ge("ADD_ITEMS", t, { dispatch: e.dispatch }).then(
                            function (t) {
                              if (ta(e, t)) return !1;
                              e.dispatch("ADD_ITEMS", {
                                items: t,
                                index: -1,
                                interactionMethod: we.BROWSE,
                              });
                            }
                          );
                        },
                      })
                    ),
                    0
                  ))
                : !r &&
                  e.ref.browser &&
                  (e.removeChildView(e.ref.browser), (e.ref.browser = null));
            },
            aa = function (e) {
              var t = e.query("GET_ALLOW_PASTE"),
                i = e.query("GET_DISABLED"),
                n = t && !i;
              n && !e.ref.paster
                ? ((e.ref.paster = Rr()),
                  (e.ref.paster.onload = function (t) {
                    Ge("ADD_ITEMS", t, { dispatch: e.dispatch }).then(function (
                      t
                    ) {
                      if (ta(e, t)) return !1;
                      e.dispatch("ADD_ITEMS", {
                        items: t,
                        index: -1,
                        interactionMethod: we.PASTE,
                      });
                    });
                  }))
                : !n &&
                  e.ref.paster &&
                  (e.ref.paster.destroy(), (e.ref.paster = null));
            },
            oa = z({
              DID_SET_ALLOW_BROWSE: function (e) {
                var t = e.root,
                  i = e.props;
                ra(t, i);
              },
              DID_SET_ALLOW_DROP: function (e) {
                var t = e.root;
                na(t);
              },
              DID_SET_ALLOW_PASTE: function (e) {
                var t = e.root;
                aa(t);
              },
              DID_SET_DISABLED: function (e) {
                var t = e.root,
                  i = e.props;
                na(t),
                  aa(t),
                  ra(t, i),
                  t.query("GET_DISABLED")
                    ? (t.element.dataset.disabled = "disabled")
                    : t.element.removeAttribute("data-disabled");
              },
            }),
            sa = F({
              name: "root",
              read: function (e) {
                var t = e.root;
                t.ref.measure &&
                  (t.ref.measureHeight = t.ref.measure.offsetHeight);
              },
              create: Zr,
              write: Kr,
              destroy: function (e) {
                var t = e.root;
                t.ref.paster && t.ref.paster.destroy(),
                  t.ref.hopper && t.ref.hopper.destroy(),
                  t.element.removeEventListener("touchmove", $r),
                  t.element.removeEventListener("gesturestart", $r);
              },
              mixins: { styles: ["height"] },
            }),
            la = function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : {},
                t = null,
                n = $e(),
                r = i(me(n), [dt, xe(n)], [fi, ye(n)]);
              r.dispatch("SET_OPTIONS", { options: e });
              var o = function () {
                document.hidden || r.dispatch("KICK");
              };
              document.addEventListener("visibilitychange", o);
              var s = null,
                l = !1,
                c = !1,
                u = null,
                d = null,
                h = function () {
                  l || (l = !0),
                    clearTimeout(s),
                    (s = setTimeout(function () {
                      (l = !1),
                        (u = null),
                        (d = null),
                        c && ((c = !1), r.dispatch("DID_STOP_RESIZE"));
                    }, 500));
                };
              window.addEventListener("resize", h);
              var f = sa(r, { id: Ee() }),
                p = !1,
                g = !1,
                m = {
                  _read: function () {
                    l &&
                      ((d = window.innerWidth),
                      u || (u = d),
                      c ||
                        d === u ||
                        (r.dispatch("DID_START_RESIZE"), (c = !0))),
                      g && p && (p = null === f.element.offsetParent),
                      p || (f._read(), (g = f.rect.element.hidden));
                  },
                  _write: function (e) {
                    var t = r.processActionQueue().filter(function (e) {
                      return !/^SET_/.test(e.type);
                    });
                    (p && !t.length) ||
                      (w(t),
                      (p = f._write(e, t, c)),
                      Fe(r.query("GET_ITEMS")),
                      p && r.processDispatchQueue());
                  },
                },
                v = function (e) {
                  return function (t) {
                    var i = { type: e };
                    if (!t) return i;
                    if (
                      (t.hasOwnProperty("error") &&
                        (i.error = t.error ? Object.assign({}, t.error) : null),
                      t.status && (i.status = Object.assign({}, t.status)),
                      t.file && (i.output = t.file),
                      t.source)
                    )
                      i.file = t.source;
                    else if (t.item || t.id) {
                      var n = t.item ? t.item : r.query("GET_ITEM", t.id);
                      i.file = n ? Ne(n) : null;
                    }
                    return (
                      t.items && (i.items = t.items.map(Ne)),
                      /progress/.test(e) && (i.progress = t.progress),
                      t.hasOwnProperty("origin") &&
                        t.hasOwnProperty("target") &&
                        ((i.origin = t.origin), (i.target = t.target)),
                      i
                    );
                  };
                },
                b = {
                  DID_DESTROY: v("destroy"),
                  DID_INIT: v("init"),
                  DID_THROW_MAX_FILES: v("warning"),
                  DID_INIT_ITEM: v("initfile"),
                  DID_START_ITEM_LOAD: v("addfilestart"),
                  DID_UPDATE_ITEM_LOAD_PROGRESS: v("addfileprogress"),
                  DID_LOAD_ITEM: v("addfile"),
                  DID_THROW_ITEM_INVALID: [v("error"), v("addfile")],
                  DID_THROW_ITEM_LOAD_ERROR: [v("error"), v("addfile")],
                  DID_THROW_ITEM_REMOVE_ERROR: [v("error"), v("removefile")],
                  DID_PREPARE_OUTPUT: v("preparefile"),
                  DID_START_ITEM_PROCESSING: v("processfilestart"),
                  DID_UPDATE_ITEM_PROCESS_PROGRESS: v("processfileprogress"),
                  DID_ABORT_ITEM_PROCESSING: v("processfileabort"),
                  DID_COMPLETE_ITEM_PROCESSING: v("processfile"),
                  DID_COMPLETE_ITEM_PROCESSING_ALL: v("processfiles"),
                  DID_REVERT_ITEM_PROCESSING: v("processfilerevert"),
                  DID_THROW_ITEM_PROCESSING_ERROR: [
                    v("error"),
                    v("processfile"),
                  ],
                  DID_REMOVE_ITEM: v("removefile"),
                  DID_UPDATE_ITEMS: v("updatefiles"),
                  DID_ACTIVATE_ITEM: v("activatefile"),
                  DID_REORDER_ITEMS: v("reorderfiles"),
                },
                y = function (e) {
                  var t = Object.assign({ pond: D }, e);
                  delete t.type,
                    f.element.dispatchEvent(
                      new CustomEvent("FilePond:" + e.type, {
                        detail: t,
                        bubbles: !0,
                        cancelable: !0,
                        composed: !0,
                      })
                    );
                  var i = [];
                  e.hasOwnProperty("error") && i.push(e.error),
                    e.hasOwnProperty("file") && i.push(e.file);
                  var n = ["type", "error", "file"];
                  Object.keys(e)
                    .filter(function (e) {
                      return !n.includes(e);
                    })
                    .forEach(function (t) {
                      return i.push(e[t]);
                    }),
                    D.fire.apply(D, [e.type].concat(i));
                  var a = r.query("GET_ON" + e.type.toUpperCase());
                  a && a.apply(void 0, i);
                },
                w = function (e) {
                  e.length &&
                    e
                      .filter(function (e) {
                        return b[e.type];
                      })
                      .forEach(function (e) {
                        var t = b[e.type];
                        (Array.isArray(t) ? t : [t]).forEach(function (t) {
                          "DID_INIT_ITEM" === e.type
                            ? y(t(e.data))
                            : setTimeout(function () {
                                y(t(e.data));
                              }, 0);
                        });
                      });
                },
                E = function (e) {
                  return r.dispatch("SET_OPTIONS", { options: e });
                },
                _ = function (e) {
                  return r.query("GET_ACTIVE_ITEM", e);
                },
                S = function (e) {
                  return new Promise(function (t, i) {
                    r.dispatch("REQUEST_ITEM_PREPARE", {
                      query: e,
                      success: function (e) {
                        t(e);
                      },
                      failure: function (e) {
                        i(e);
                      },
                    });
                  });
                },
                A = function (e) {
                  var t =
                    arguments.length > 1 && void 0 !== arguments[1]
                      ? arguments[1]
                      : {};
                  return new Promise(function (i, n) {
                    C([{ source: e, options: t }], { index: t.index })
                      .then(function (e) {
                        return i(e && e[0]);
                      })
                      .catch(n);
                  });
                },
                k = function (e) {
                  return e.file && e.id;
                },
                T = function (e, t) {
                  return (
                    "object" != typeof e ||
                      k(e) ||
                      t ||
                      ((t = e), (e = void 0)),
                    r.dispatch(
                      "REMOVE_ITEM",
                      Object.assign({}, t, { query: e })
                    ),
                    null === r.query("GET_ACTIVE_ITEM", e)
                  );
                },
                C = function () {
                  for (
                    var e = arguments.length, t = new Array(e), i = 0;
                    i < e;
                    i++
                  )
                    t[i] = arguments[i];
                  return new Promise(function (e, i) {
                    var n = [],
                      a = {};
                    if (Y(t[0]))
                      n.push.apply(n, t[0]), Object.assign(a, t[1] || {});
                    else {
                      var o = t[t.length - 1];
                      "object" != typeof o ||
                        o instanceof Blob ||
                        Object.assign(a, t.pop()),
                        n.push.apply(n, t);
                    }
                    r.dispatch("ADD_ITEMS", {
                      items: n,
                      index: a.index,
                      interactionMethod: we.API,
                      success: e,
                      failure: i,
                    });
                  });
                },
                O = function () {
                  return r.query("GET_ACTIVE_ITEMS");
                },
                I = function (e) {
                  return new Promise(function (t, i) {
                    r.dispatch("REQUEST_ITEM_PROCESSING", {
                      query: e,
                      success: function (e) {
                        t(e);
                      },
                      failure: function (e) {
                        i(e);
                      },
                    });
                  });
                },
                M = function () {
                  for (
                    var e = arguments.length, t = new Array(e), i = 0;
                    i < e;
                    i++
                  )
                    t[i] = arguments[i];
                  var n = Array.isArray(t[0]) ? t[0] : t,
                    r = n.length ? n : O();
                  return Promise.all(r.map(S));
                },
                L = function () {
                  for (
                    var e = arguments.length, t = new Array(e), i = 0;
                    i < e;
                    i++
                  )
                    t[i] = arguments[i];
                  var n = Array.isArray(t[0]) ? t[0] : t;
                  if (!n.length) {
                    var r = O().filter(function (e) {
                      return (
                        !(e.status === Be.IDLE && e.origin === ze.LOCAL) &&
                        e.status !== Be.PROCESSING &&
                        e.status !== Be.PROCESSING_COMPLETE &&
                        e.status !== Be.PROCESSING_REVERT_ERROR
                      );
                    });
                    return Promise.all(r.map(I));
                  }
                  return Promise.all(n.map(I));
                },
                P = function () {
                  for (
                    var e = arguments.length, t = new Array(e), i = 0;
                    i < e;
                    i++
                  )
                    t[i] = arguments[i];
                  var n,
                    r = Array.isArray(t[0]) ? t[0] : t;
                  "object" == typeof r[r.length - 1]
                    ? (n = r.pop())
                    : Array.isArray(t[0]) && (n = t[1]);
                  var a = O();
                  return r.length
                    ? r
                        .map(function (e) {
                          return x(e) ? (a[e] ? a[e].id : null) : e;
                        })
                        .filter(function (e) {
                          return e;
                        })
                        .map(function (e) {
                          return T(e, n);
                        })
                    : Promise.all(
                        a.map(function (e) {
                          return T(e, n);
                        })
                      );
                },
                D = Object.assign({}, Pe(), {}, m, {}, be(r, n), {
                  setOptions: E,
                  addFile: A,
                  addFiles: C,
                  getFile: _,
                  processFile: I,
                  prepareFile: S,
                  removeFile: T,
                  moveFile: function (e, t) {
                    return r.dispatch("MOVE_ITEM", { query: e, index: t });
                  },
                  getFiles: O,
                  processFiles: L,
                  removeFiles: P,
                  prepareFiles: M,
                  sort: function (e) {
                    return r.dispatch("SORT", { compare: e });
                  },
                  browse: function () {
                    var e = f.element.querySelector("input[type=file]");
                    e && e.click();
                  },
                  destroy: function () {
                    D.fire("destroy", f.element),
                      r.dispatch("ABORT_ALL"),
                      f._destroy(),
                      window.removeEventListener("resize", h),
                      document.removeEventListener("visibilitychange", o),
                      r.dispatch("DID_DESTROY");
                  },
                  insertBefore: function (e) {
                    return j(f.element, e);
                  },
                  insertAfter: function (e) {
                    return H(f.element, e);
                  },
                  appendTo: function (e) {
                    return e.appendChild(f.element);
                  },
                  replaceElement: function (e) {
                    j(f.element, e), e.parentNode.removeChild(e), (t = e);
                  },
                  restoreElement: function () {
                    t &&
                      (H(t, f.element),
                      f.element.parentNode.removeChild(f.element),
                      (t = null));
                  },
                  isAttachedTo: function (e) {
                    return f.element === e || t === e;
                  },
                  element: {
                    get: function () {
                      return f.element;
                    },
                  },
                  status: {
                    get: function () {
                      return r.query("GET_STATUS");
                    },
                  },
                });
              return r.dispatch("DID_INIT"), a(D);
            },
            ca = function () {
              var e =
                  arguments.length > 0 && void 0 !== arguments[0]
                    ? arguments[0]
                    : {},
                t = {};
              return (
                r($e(), function (e, i) {
                  t[e] = i[0];
                }),
                la(Object.assign({}, t, {}, e))
              );
            },
            ua = function (e) {
              return e.charAt(0).toLowerCase() + e.slice(1);
            },
            da = function (e) {
              return qr(e.replace(/^data-/, ""));
            },
            ha = function e(t, i) {
              r(i, function (i, n) {
                r(t, function (e, r) {
                  var a = new RegExp(i);
                  if (a.test(e) && (delete t[e], !1 !== n))
                    if ($(n)) t[n] = r;
                    else {
                      var o = n.group;
                      se(n) && !t[o] && (t[o] = {}),
                        (t[o][ua(e.replace(a, ""))] = r);
                    }
                }),
                  n.mapping && e(t[n.group], n.mapping);
              });
            },
            fa = function (e) {
              var t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : {},
                i = [];
              r(e.attributes, function (t) {
                i.push(e.attributes[t]);
              });
              var n = i
                .filter(function (e) {
                  return e.name;
                })
                .reduce(function (t, i) {
                  var n = o(e, i.name);
                  return (t[da(i.name)] = n === i.name || n), t;
                }, {});
              return ha(n, t), n;
            },
            pa = function (e) {
              var t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : {},
                i = {
                  "^class$": "className",
                  "^multiple$": "allowMultiple",
                  "^capture$": "captureMethod",
                  "^webkitdirectory$": "allowDirectoriesOnly",
                  "^server": {
                    group: "server",
                    mapping: {
                      "^process": { group: "process" },
                      "^revert": { group: "revert" },
                      "^fetch": { group: "fetch" },
                      "^restore": { group: "restore" },
                      "^load": { group: "load" },
                    },
                  },
                  "^type$": !1,
                  "^files$": !1,
                };
              qe("SET_ATTRIBUTE_TO_OPTION_MAP", i);
              var n = Object.assign({}, t),
                r = fa(
                  "FIELDSET" === e.nodeName
                    ? e.querySelector("input[type=file]")
                    : e,
                  i
                );
              Object.keys(r).forEach(function (e) {
                se(r[e])
                  ? (se(n[e]) || (n[e] = {}), Object.assign(n[e], r[e]))
                  : (n[e] = r[e]);
              }),
                (n.files = (t.files || []).concat(
                  Array.from(e.querySelectorAll("input:not([type=file])")).map(
                    function (e) {
                      return {
                        source: e.value,
                        options: { type: e.dataset.type },
                      };
                    }
                  )
                ));
              var a = ca(n);
              return (
                e.files &&
                  Array.from(e.files).forEach(function (e) {
                    a.addFile(e);
                  }),
                a.replaceElement(e),
                a
              );
            },
            ga = function () {
              return t(arguments.length <= 0 ? void 0 : arguments[0])
                ? pa.apply(void 0, arguments)
                : ca.apply(void 0, arguments);
            },
            ma = ["fire", "_read", "_write"],
            va = function (e) {
              var t = {};
              return De(e, t, ma), t;
            },
            ba = function (e, t) {
              return e.replace(/(?:{([a-zA-Z]+)})/g, function (e, i) {
                return t[i];
              });
            },
            ya = function (e) {
              var t = new Blob(["(", e.toString(), ")()"], {
                  type: "application/javascript",
                }),
                i = URL.createObjectURL(t),
                n = new Worker(i);
              return {
                transfer: function (e, t) {},
                post: function (e, t, i) {
                  var r = Ee();
                  (n.onmessage = function (e) {
                    e.data.id === r && t(e.data.message);
                  }),
                    n.postMessage({ id: r, message: e }, i);
                },
                terminate: function () {
                  n.terminate(), URL.revokeObjectURL(i);
                },
              };
            },
            xa = function (e) {
              return new Promise(function (t, i) {
                var n = new Image();
                (n.onload = function () {
                  t(n);
                }),
                  (n.onerror = function (e) {
                    i(e);
                  }),
                  (n.src = e);
              });
            },
            wa = function (e, t) {
              var i = e.slice(0, e.size, e.type);
              return (i.lastModifiedDate = e.lastModifiedDate), (i.name = t), i;
            },
            Ea = function (e) {
              return wa(e, e.name);
            },
            _a = [],
            Sa = function (e) {
              if (!_a.includes(e)) {
                _a.push(e);
                var t = e({
                  addFilter: Ve,
                  utils: {
                    Type: Xe,
                    forin: r,
                    isString: $,
                    isFile: Qt,
                    toNaturalFileSize: _i,
                    replaceInString: ba,
                    getExtensionFromFilename: bt,
                    getFilenameWithoutExtension: Kt,
                    guesstimateMimeType: ir,
                    getFileFromBlob: Et,
                    getFilenameFromURL: vt,
                    createRoute: z,
                    createWorker: ya,
                    createView: F,
                    createItemAPI: Ne,
                    loadImage: xa,
                    copyFile: Ea,
                    renameFile: wa,
                    createBlob: St,
                    applyFilterChain: Ge,
                    text: vi,
                    getNumericAspectRatioFromString: Qe,
                  },
                  views: { fileActionButton: Ei },
                });
                Ue(t.options);
              }
            },
            Aa = function () {
              return (
                "[object OperaMini]" ===
                Object.prototype.toString.call(window.operamini)
              );
            },
            ka = function () {
              return "Promise" in window;
            },
            Ta = function () {
              return "slice" in Blob.prototype;
            },
            Ca = function () {
              return "URL" in window && "createObjectURL" in window.URL;
            },
            Oa = function () {
              return "visibilityState" in document;
            },
            Ia = function () {
              return "performance" in window;
            },
            Ma = function () {
              return "supports" in (window.CSS || {});
            },
            La = function () {
              return /MSIE|Trident/.test(window.navigator.userAgent);
            },
            Pa =
              ((Fi =
                g() &&
                !Aa() &&
                Oa() &&
                ka() &&
                Ta() &&
                Ca() &&
                Ia() &&
                (Ma() || La())),
              function () {
                return Fi;
              }),
            Da = { apps: [] },
            Ra = "filepond",
            Na = function () {};
          if (
            ((e.Status = {}),
            (e.FileStatus = {}),
            (e.FileOrigin = {}),
            (e.OptionTypes = {}),
            (e.create = Na),
            (e.destroy = Na),
            (e.parse = Na),
            (e.find = Na),
            (e.registerPlugin = Na),
            (e.getOptions = Na),
            (e.setOptions = Na),
            Pa())
          ) {
            B(
              function () {
                Da.apps.forEach(function (e) {
                  return e._read();
                });
              },
              function (e) {
                Da.apps.forEach(function (t) {
                  return t._write(e);
                });
              }
            );
            var Fa = function t() {
              document.dispatchEvent(
                new CustomEvent("FilePond:loaded", {
                  detail: {
                    supported: Pa,
                    create: e.create,
                    destroy: e.destroy,
                    parse: e.parse,
                    find: e.find,
                    registerPlugin: e.registerPlugin,
                    setOptions: e.setOptions,
                  },
                })
              ),
                document.removeEventListener("DOMContentLoaded", t);
            };
            "loading" !== document.readyState
              ? setTimeout(function () {
                  return Fa();
                }, 0)
              : document.addEventListener("DOMContentLoaded", Fa);
            var Ba = function () {
              return r($e(), function (t, i) {
                e.OptionTypes[t] = i[1];
              });
            };
            (e.Status = Object.assign({}, tt)),
              (e.FileOrigin = Object.assign({}, ze)),
              (e.FileStatus = Object.assign({}, Be)),
              (e.OptionTypes = {}),
              Ba(),
              (e.create = function () {
                var t = ga.apply(void 0, arguments);
                return t.on("destroy", e.destroy), Da.apps.push(t), va(t);
              }),
              (e.destroy = function (e) {
                var t = Da.apps.findIndex(function (t) {
                  return t.isAttachedTo(e);
                });
                return t >= 0 && (Da.apps.splice(t, 1)[0].restoreElement(), !0);
              }),
              (e.parse = function (t) {
                return Array.from(t.querySelectorAll("." + Ra))
                  .filter(function (e) {
                    return !Da.apps.find(function (t) {
                      return t.isAttachedTo(e);
                    });
                  })
                  .map(function (t) {
                    return e.create(t);
                  });
              }),
              (e.find = function (e) {
                var t = Da.apps.find(function (t) {
                  return t.isAttachedTo(e);
                });
                return t ? va(t) : null;
              }),
              (e.registerPlugin = function () {
                for (
                  var e = arguments.length, t = new Array(e), i = 0;
                  i < e;
                  i++
                )
                  t[i] = arguments[i];
                t.forEach(Sa), Ba();
              }),
              (e.getOptions = function () {
                var e = {};
                return (
                  r($e(), function (t, i) {
                    e[t] = i[0];
                  }),
                  e
                );
              }),
              (e.setOptions = function (t) {
                return (
                  se(t) &&
                    (Da.apps.forEach(function (e) {
                      e.setOptions(t);
                    }),
                    Ze(t)),
                  e.getOptions()
                );
              });
          }
          (e.supported = Pa),
            Object.defineProperty(e, "__esModule", { value: !0 });
        })(t);
      },
      25: () => {
        "use strict";
        "function" != typeof Object.assign &&
          (Object.assign = function (e) {
            for (var t = [], i = 1; i < arguments.length; i++)
              t[i - 1] = arguments[i];
            if (!e)
              throw TypeError("Cannot convert undefined or null to object");
            for (
              var n = function (t) {
                  t &&
                    Object.keys(t).forEach(function (i) {
                      return (e[i] = t[i]);
                    });
                },
                r = 0,
                a = t;
              r < a.length;
              r++
            ) {
              n(a[r]);
            }
            return e;
          });
      },
      525: (e, t) => {
        (t.read = function (e, t, i, n, r) {
          var a,
            o,
            s = 8 * r - n - 1,
            l = (1 << s) - 1,
            c = l >> 1,
            u = -7,
            d = i ? r - 1 : 0,
            h = i ? -1 : 1,
            f = e[t + d];
          for (
            d += h, a = f & ((1 << -u) - 1), f >>= -u, u += s;
            u > 0;
            a = 256 * a + e[t + d], d += h, u -= 8
          );
          for (
            o = a & ((1 << -u) - 1), a >>= -u, u += n;
            u > 0;
            o = 256 * o + e[t + d], d += h, u -= 8
          );
          if (0 === a) a = 1 - c;
          else {
            if (a === l) return o ? NaN : (1 / 0) * (f ? -1 : 1);
            (o += Math.pow(2, n)), (a -= c);
          }
          return (f ? -1 : 1) * o * Math.pow(2, a - n);
        }),
          (t.write = function (e, t, i, n, r, a) {
            var o,
              s,
              l,
              c = 8 * a - r - 1,
              u = (1 << c) - 1,
              d = u >> 1,
              h = 23 === r ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
              f = n ? 0 : a - 1,
              p = n ? 1 : -1,
              g = t < 0 || (0 === t && 1 / t < 0) ? 1 : 0;
            for (
              t = Math.abs(t),
                isNaN(t) || t === 1 / 0
                  ? ((s = isNaN(t) ? 1 : 0), (o = u))
                  : ((o = Math.floor(Math.log(t) / Math.LN2)),
                    t * (l = Math.pow(2, -o)) < 1 && (o--, (l *= 2)),
                    (t += o + d >= 1 ? h / l : h * Math.pow(2, 1 - d)) * l >=
                      2 && (o++, (l /= 2)),
                    o + d >= u
                      ? ((s = 0), (o = u))
                      : o + d >= 1
                      ? ((s = (t * l - 1) * Math.pow(2, r)), (o += d))
                      : ((s = t * Math.pow(2, d - 1) * Math.pow(2, r)),
                        (o = 0)));
              r >= 8;
              e[i + f] = 255 & s, f += p, s /= 256, r -= 8
            );
            for (
              o = (o << r) | s, c += r;
              c > 0;
              e[i + f] = 255 & o, f += p, o /= 256, c -= 8
            );
            e[i + f - p] |= 128 * g;
          });
      },
      955: (e) => {
        var t = {}.toString;
        e.exports =
          Array.isArray ||
          function (e) {
            return "[object Array]" == t.call(e);
          };
      },
      945: function (e, t, i) {
        var n = i(486).lW;
        "undefined" != typeof self && self,
          (e.exports = (function (e) {
            function t(n) {
              if (i[n]) return i[n].exports;
              var r = (i[n] = { i: n, l: !1, exports: {} });
              return (
                e[n].call(r.exports, r, r.exports, t), (r.l = !0), r.exports
              );
            }
            var i = {};
            return (
              (t.m = e),
              (t.c = i),
              (t.d = function (e, i, n) {
                t.o(e, i) ||
                  Object.defineProperty(e, i, {
                    configurable: !1,
                    enumerable: !0,
                    get: n,
                  });
              }),
              (t.n = function (e) {
                var i =
                  e && e.__esModule
                    ? function () {
                        return e.default;
                      }
                    : function () {
                        return e;
                      };
                return t.d(i, "a", i), i;
              }),
              (t.o = function (e, t) {
                return Object.prototype.hasOwnProperty.call(e, t);
              }),
              (t.p = ""),
              t((t.s = 45))
            );
          })([
            function (e, t, i) {
              "use strict";
              Object.defineProperty(t, "__esModule", { value: !0 });
              var n = i(17),
                r = i(18),
                a = i(19),
                o = i(48),
                s = i(49),
                l = i(50),
                c = i(51),
                u = i(52),
                d = i(11),
                h = i(29),
                f = i(30),
                p = i(28),
                g = i(1),
                m = {
                  Scope: g.Scope,
                  create: g.create,
                  find: g.find,
                  query: g.query,
                  register: g.register,
                  Container: n.default,
                  Format: r.default,
                  Leaf: a.default,
                  Embed: c.default,
                  Scroll: o.default,
                  Block: l.default,
                  Inline: s.default,
                  Text: u.default,
                  Attributor: {
                    Attribute: d.default,
                    Class: h.default,
                    Style: f.default,
                    Store: p.default,
                  },
                };
              t.default = m;
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                var i = a(e);
                if (null == i) throw new l("Unable to create " + e + " blot");
                var n = i;
                return new n(
                  e instanceof Node || e.nodeType === Node.TEXT_NODE
                    ? e
                    : n.create(t),
                  t
                );
              }
              function r(e, i) {
                return (
                  void 0 === i && (i = !1),
                  null == e
                    ? null
                    : null != e[t.DATA_KEY]
                    ? e[t.DATA_KEY].blot
                    : i
                    ? r(e.parentNode, i)
                    : null
                );
              }
              function a(e, t) {
                var i;
                if ((void 0 === t && (t = c.ANY), "string" == typeof e))
                  i = f[e] || u[e];
                else if (e instanceof Text || e.nodeType === Node.TEXT_NODE)
                  i = f.text;
                else if ("number" == typeof e)
                  e & c.LEVEL & c.BLOCK
                    ? (i = f.block)
                    : e & c.LEVEL & c.INLINE && (i = f.inline);
                else if (e instanceof HTMLElement) {
                  var n = (e.getAttribute("class") || "").split(/\s+/);
                  for (var r in n) if ((i = d[n[r]])) break;
                  i = i || h[e.tagName];
                }
                return null == i
                  ? null
                  : t & c.LEVEL & i.scope && t & c.TYPE & i.scope
                  ? i
                  : null;
              }
              function o() {
                for (var e = [], t = 0; t < arguments.length; t++)
                  e[t] = arguments[t];
                if (e.length > 1)
                  return e.map(function (e) {
                    return o(e);
                  });
                var i = e[0];
                if (
                  "string" != typeof i.blotName &&
                  "string" != typeof i.attrName
                )
                  throw new l("Invalid definition");
                if ("abstract" === i.blotName)
                  throw new l("Cannot register abstract class");
                return (
                  (f[i.blotName || i.attrName] = i),
                  "string" == typeof i.keyName
                    ? (u[i.keyName] = i)
                    : (null != i.className && (d[i.className] = i),
                      null != i.tagName &&
                        (Array.isArray(i.tagName)
                          ? (i.tagName = i.tagName.map(function (e) {
                              return e.toUpperCase();
                            }))
                          : (i.tagName = i.tagName.toUpperCase()),
                        (Array.isArray(i.tagName)
                          ? i.tagName
                          : [i.tagName]
                        ).forEach(function (e) {
                          (null != h[e] && null != i.className) || (h[e] = i);
                        }))),
                  i
                );
              }
              var s =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var l = (function (e) {
                function t(t) {
                  var i = this;
                  return (
                    (t = "[Parchment] " + t),
                    ((i = e.call(this, t) || this).message = t),
                    (i.name = i.constructor.name),
                    i
                  );
                }
                return s(t, e), t;
              })(Error);
              t.ParchmentError = l;
              var c,
                u = {},
                d = {},
                h = {},
                f = {};
              (t.DATA_KEY = "__blot"),
                (function (e) {
                  (e[(e.TYPE = 3)] = "TYPE"),
                    (e[(e.LEVEL = 12)] = "LEVEL"),
                    (e[(e.ATTRIBUTE = 13)] = "ATTRIBUTE"),
                    (e[(e.BLOT = 14)] = "BLOT"),
                    (e[(e.INLINE = 7)] = "INLINE"),
                    (e[(e.BLOCK = 11)] = "BLOCK"),
                    (e[(e.BLOCK_BLOT = 10)] = "BLOCK_BLOT"),
                    (e[(e.INLINE_BLOT = 6)] = "INLINE_BLOT"),
                    (e[(e.BLOCK_ATTRIBUTE = 9)] = "BLOCK_ATTRIBUTE"),
                    (e[(e.INLINE_ATTRIBUTE = 5)] = "INLINE_ATTRIBUTE"),
                    (e[(e.ANY = 15)] = "ANY");
                })((c = t.Scope || (t.Scope = {}))),
                (t.create = n),
                (t.find = r),
                (t.query = a),
                (t.register = o);
            },
            function (e, t) {
              "use strict";
              var i = Object.prototype.hasOwnProperty,
                n = Object.prototype.toString,
                r = Object.defineProperty,
                a = Object.getOwnPropertyDescriptor,
                o = function (e) {
                  return "function" == typeof Array.isArray
                    ? Array.isArray(e)
                    : "[object Array]" === n.call(e);
                },
                s = function (e) {
                  if (!e || "[object Object]" !== n.call(e)) return !1;
                  var t,
                    r = i.call(e, "constructor"),
                    a =
                      e.constructor &&
                      e.constructor.prototype &&
                      i.call(e.constructor.prototype, "isPrototypeOf");
                  if (e.constructor && !r && !a) return !1;
                  for (t in e);
                  return void 0 === t || i.call(e, t);
                },
                l = function (e, t) {
                  r && "__proto__" === t.name
                    ? r(e, t.name, {
                        enumerable: !0,
                        configurable: !0,
                        value: t.newValue,
                        writable: !0,
                      })
                    : (e[t.name] = t.newValue);
                },
                c = function (e, t) {
                  if ("__proto__" === t) {
                    if (!i.call(e, t)) return;
                    if (a) return a(e, t).value;
                  }
                  return e[t];
                };
              e.exports = function e() {
                var t,
                  i,
                  n,
                  r,
                  a,
                  u,
                  d = arguments[0],
                  h = 1,
                  f = arguments.length,
                  p = !1;
                for (
                  "boolean" == typeof d &&
                    ((p = d), (d = arguments[1] || {}), (h = 2)),
                    (null == d ||
                      ("object" != typeof d && "function" != typeof d)) &&
                      (d = {});
                  h < f;
                  ++h
                )
                  if (null != (t = arguments[h]))
                    for (i in t)
                      (n = c(d, i)),
                        d !== (r = c(t, i)) &&
                          (p && r && (s(r) || (a = o(r)))
                            ? (a
                                ? ((a = !1), (u = n && o(n) ? n : []))
                                : (u = n && s(n) ? n : {}),
                              l(d, { name: i, newValue: e(p, u, r) }))
                            : void 0 !== r && l(d, { name: i, newValue: r }));
                return d;
              };
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              function s(e) {
                var t =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : {};
                return null == e
                  ? t
                  : ("function" == typeof e.formats &&
                      (t = (0, u.default)(t, e.formats())),
                    null == e.parent ||
                    "scroll" == e.parent.blotName ||
                    e.parent.statics.scope !== e.statics.scope
                      ? t
                      : s(e.parent, t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.default = t.BlockEmbed = t.bubbleFormats = void 0);
              var l = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                c = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                u = n(i(2)),
                d = n(i(4)),
                h = n(i(0)),
                f = n(i(14)),
                p = n(i(5)),
                g = n(i(8)),
                m = (function (e) {
                  function t() {
                    return (
                      r(this, t),
                      a(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    o(t, e),
                    l(t, [
                      {
                        key: "attach",
                        value: function () {
                          c(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "attach",
                            this
                          ).call(this),
                            (this.attributes = new h.default.Attributor.Store(
                              this.domNode
                            ));
                        },
                      },
                      {
                        key: "delta",
                        value: function () {
                          return new d.default().insert(
                            this.value(),
                            (0, u.default)(
                              this.formats(),
                              this.attributes.values()
                            )
                          );
                        },
                      },
                      {
                        key: "format",
                        value: function (e, t) {
                          var i = h.default.query(
                            e,
                            h.default.Scope.BLOCK_ATTRIBUTE
                          );
                          null != i && this.attributes.attribute(i, t);
                        },
                      },
                      {
                        key: "formatAt",
                        value: function (e, t, i, n) {
                          this.format(i, n);
                        },
                      },
                      {
                        key: "insertAt",
                        value: function (e, i, n) {
                          if ("string" == typeof i && i.endsWith("\n")) {
                            var r = h.default.create(v.blotName);
                            this.parent.insertBefore(
                              r,
                              0 === e ? this : this.next
                            ),
                              r.insertAt(0, i.slice(0, -1));
                          } else
                            c(
                              t.prototype.__proto__ ||
                                Object.getPrototypeOf(t.prototype),
                              "insertAt",
                              this
                            ).call(this, e, i, n);
                        },
                      },
                    ]),
                    t
                  );
                })(h.default.Embed);
              m.scope = h.default.Scope.BLOCK_BLOT;
              var v = (function (e) {
                function t(e) {
                  r(this, t);
                  var i = a(
                    this,
                    (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)
                  );
                  return (i.cache = {}), i;
                }
                return (
                  o(t, e),
                  l(t, [
                    {
                      key: "delta",
                      value: function () {
                        return (
                          null == this.cache.delta &&
                            (this.cache.delta = this.descendants(h.default.Leaf)
                              .reduce(function (e, t) {
                                return 0 === t.length()
                                  ? e
                                  : e.insert(t.value(), s(t));
                              }, new d.default())
                              .insert("\n", s(this))),
                          this.cache.delta
                        );
                      },
                    },
                    {
                      key: "deleteAt",
                      value: function (e, i) {
                        c(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "deleteAt",
                          this
                        ).call(this, e, i),
                          (this.cache = {});
                      },
                    },
                    {
                      key: "formatAt",
                      value: function (e, i, n, r) {
                        i <= 0 ||
                          (h.default.query(n, h.default.Scope.BLOCK)
                            ? e + i === this.length() && this.format(n, r)
                            : c(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "formatAt",
                                this
                              ).call(
                                this,
                                e,
                                Math.min(i, this.length() - e - 1),
                                n,
                                r
                              ),
                          (this.cache = {}));
                      },
                    },
                    {
                      key: "insertAt",
                      value: function (e, i, n) {
                        if (null != n)
                          return c(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "insertAt",
                            this
                          ).call(this, e, i, n);
                        if (0 !== i.length) {
                          var r = i.split("\n"),
                            a = r.shift();
                          a.length > 0 &&
                            (e < this.length() - 1 || null == this.children.tail
                              ? c(
                                  t.prototype.__proto__ ||
                                    Object.getPrototypeOf(t.prototype),
                                  "insertAt",
                                  this
                                ).call(this, Math.min(e, this.length() - 1), a)
                              : this.children.tail.insertAt(
                                  this.children.tail.length(),
                                  a
                                ),
                            (this.cache = {}));
                          var o = this;
                          r.reduce(function (e, t) {
                            return (
                              (o = o.split(e, !0)).insertAt(0, t), t.length
                            );
                          }, e + a.length);
                        }
                      },
                    },
                    {
                      key: "insertBefore",
                      value: function (e, i) {
                        var n = this.children.head;
                        c(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "insertBefore",
                          this
                        ).call(this, e, i),
                          n instanceof f.default && n.remove(),
                          (this.cache = {});
                      },
                    },
                    {
                      key: "length",
                      value: function () {
                        return (
                          null == this.cache.length &&
                            (this.cache.length =
                              c(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "length",
                                this
                              ).call(this) + 1),
                          this.cache.length
                        );
                      },
                    },
                    {
                      key: "moveChildren",
                      value: function (e, i) {
                        c(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "moveChildren",
                          this
                        ).call(this, e, i),
                          (this.cache = {});
                      },
                    },
                    {
                      key: "optimize",
                      value: function (e) {
                        c(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "optimize",
                          this
                        ).call(this, e),
                          (this.cache = {});
                      },
                    },
                    {
                      key: "path",
                      value: function (e) {
                        return c(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "path",
                          this
                        ).call(this, e, !0);
                      },
                    },
                    {
                      key: "removeChild",
                      value: function (e) {
                        c(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "removeChild",
                          this
                        ).call(this, e),
                          (this.cache = {});
                      },
                    },
                    {
                      key: "split",
                      value: function (e) {
                        var i =
                          arguments.length > 1 &&
                          void 0 !== arguments[1] &&
                          arguments[1];
                        if (i && (0 === e || e >= this.length() - 1)) {
                          var n = this.clone();
                          return 0 === e
                            ? (this.parent.insertBefore(n, this), this)
                            : (this.parent.insertBefore(n, this.next), n);
                        }
                        var r = c(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "split",
                          this
                        ).call(this, e, i);
                        return (this.cache = {}), r;
                      },
                    },
                  ]),
                  t
                );
              })(h.default.Block);
              (v.blotName = "block"),
                (v.tagName = "P"),
                (v.defaultChild = "break"),
                (v.allowedChildren = [p.default, h.default.Embed, g.default]),
                (t.bubbleFormats = s),
                (t.BlockEmbed = m),
                (t.default = v);
            },
            function (e, t, i) {
              var n = i(54),
                r = i(12),
                a = i(2),
                o = i(20),
                s = String.fromCharCode(0),
                l = function (e) {
                  Array.isArray(e)
                    ? (this.ops = e)
                    : null != e && Array.isArray(e.ops)
                    ? (this.ops = e.ops)
                    : (this.ops = []);
                };
              (l.prototype.insert = function (e, t) {
                var i = {};
                return 0 === e.length
                  ? this
                  : ((i.insert = e),
                    null != t &&
                      "object" == typeof t &&
                      Object.keys(t).length > 0 &&
                      (i.attributes = t),
                    this.push(i));
              }),
                (l.prototype.delete = function (e) {
                  return e <= 0 ? this : this.push({ delete: e });
                }),
                (l.prototype.retain = function (e, t) {
                  if (e <= 0) return this;
                  var i = { retain: e };
                  return (
                    null != t &&
                      "object" == typeof t &&
                      Object.keys(t).length > 0 &&
                      (i.attributes = t),
                    this.push(i)
                  );
                }),
                (l.prototype.push = function (e) {
                  var t = this.ops.length,
                    i = this.ops[t - 1];
                  if (((e = a(!0, {}, e)), "object" == typeof i)) {
                    if (
                      "number" == typeof e.delete &&
                      "number" == typeof i.delete
                    )
                      return (
                        (this.ops[t - 1] = { delete: i.delete + e.delete }),
                        this
                      );
                    if (
                      "number" == typeof i.delete &&
                      null != e.insert &&
                      ((t -= 1), "object" != typeof (i = this.ops[t - 1]))
                    )
                      return this.ops.unshift(e), this;
                    if (r(e.attributes, i.attributes)) {
                      if (
                        "string" == typeof e.insert &&
                        "string" == typeof i.insert
                      )
                        return (
                          (this.ops[t - 1] = { insert: i.insert + e.insert }),
                          "object" == typeof e.attributes &&
                            (this.ops[t - 1].attributes = e.attributes),
                          this
                        );
                      if (
                        "number" == typeof e.retain &&
                        "number" == typeof i.retain
                      )
                        return (
                          (this.ops[t - 1] = { retain: i.retain + e.retain }),
                          "object" == typeof e.attributes &&
                            (this.ops[t - 1].attributes = e.attributes),
                          this
                        );
                    }
                  }
                  return (
                    t === this.ops.length
                      ? this.ops.push(e)
                      : this.ops.splice(t, 0, e),
                    this
                  );
                }),
                (l.prototype.chop = function () {
                  var e = this.ops[this.ops.length - 1];
                  return e && e.retain && !e.attributes && this.ops.pop(), this;
                }),
                (l.prototype.filter = function (e) {
                  return this.ops.filter(e);
                }),
                (l.prototype.forEach = function (e) {
                  this.ops.forEach(e);
                }),
                (l.prototype.map = function (e) {
                  return this.ops.map(e);
                }),
                (l.prototype.partition = function (e) {
                  var t = [],
                    i = [];
                  return (
                    this.forEach(function (n) {
                      (e(n) ? t : i).push(n);
                    }),
                    [t, i]
                  );
                }),
                (l.prototype.reduce = function (e, t) {
                  return this.ops.reduce(e, t);
                }),
                (l.prototype.changeLength = function () {
                  return this.reduce(function (e, t) {
                    return t.insert
                      ? e + o.length(t)
                      : t.delete
                      ? e - t.delete
                      : e;
                  }, 0);
                }),
                (l.prototype.length = function () {
                  return this.reduce(function (e, t) {
                    return e + o.length(t);
                  }, 0);
                }),
                (l.prototype.slice = function (e, t) {
                  (e = e || 0), "number" != typeof t && (t = 1 / 0);
                  for (
                    var i = [], n = o.iterator(this.ops), r = 0;
                    r < t && n.hasNext();

                  ) {
                    var a;
                    r < e
                      ? (a = n.next(e - r))
                      : ((a = n.next(t - r)), i.push(a)),
                      (r += o.length(a));
                  }
                  return new l(i);
                }),
                (l.prototype.compose = function (e) {
                  var t = o.iterator(this.ops),
                    i = o.iterator(e.ops),
                    n = [],
                    a = i.peek();
                  if (
                    null != a &&
                    "number" == typeof a.retain &&
                    null == a.attributes
                  ) {
                    for (
                      var s = a.retain;
                      "insert" === t.peekType() && t.peekLength() <= s;

                    )
                      (s -= t.peekLength()), n.push(t.next());
                    a.retain - s > 0 && i.next(a.retain - s);
                  }
                  for (var c = new l(n); t.hasNext() || i.hasNext(); )
                    if ("insert" === i.peekType()) c.push(i.next());
                    else if ("delete" === t.peekType()) c.push(t.next());
                    else {
                      var u = Math.min(t.peekLength(), i.peekLength()),
                        d = t.next(u),
                        h = i.next(u);
                      if ("number" == typeof h.retain) {
                        var f = {};
                        "number" == typeof d.retain
                          ? (f.retain = u)
                          : (f.insert = d.insert);
                        var p = o.attributes.compose(
                          d.attributes,
                          h.attributes,
                          "number" == typeof d.retain
                        );
                        if (
                          (p && (f.attributes = p),
                          c.push(f),
                          !i.hasNext() && r(c.ops[c.ops.length - 1], f))
                        ) {
                          var g = new l(t.rest());
                          return c.concat(g).chop();
                        }
                      } else
                        "number" == typeof h.delete &&
                          "number" == typeof d.retain &&
                          c.push(h);
                    }
                  return c.chop();
                }),
                (l.prototype.concat = function (e) {
                  var t = new l(this.ops.slice());
                  return (
                    e.ops.length > 0 &&
                      (t.push(e.ops[0]),
                      (t.ops = t.ops.concat(e.ops.slice(1)))),
                    t
                  );
                }),
                (l.prototype.diff = function (e, t) {
                  if (this.ops === e.ops) return new l();
                  var i = [this, e].map(function (t) {
                      return t
                        .map(function (i) {
                          if (null != i.insert)
                            return "string" == typeof i.insert ? i.insert : s;
                          throw new Error(
                            "diff() called " +
                              (t === e ? "on" : "with") +
                              " non-document"
                          );
                        })
                        .join("");
                    }),
                    a = new l(),
                    c = n(i[0], i[1], t),
                    u = o.iterator(this.ops),
                    d = o.iterator(e.ops);
                  return (
                    c.forEach(function (e) {
                      for (var t = e[1].length; t > 0; ) {
                        var i = 0;
                        switch (e[0]) {
                          case n.INSERT:
                            (i = Math.min(d.peekLength(), t)),
                              a.push(d.next(i));
                            break;
                          case n.DELETE:
                            (i = Math.min(t, u.peekLength())),
                              u.next(i),
                              a.delete(i);
                            break;
                          case n.EQUAL:
                            i = Math.min(u.peekLength(), d.peekLength(), t);
                            var s = u.next(i),
                              l = d.next(i);
                            r(s.insert, l.insert)
                              ? a.retain(
                                  i,
                                  o.attributes.diff(s.attributes, l.attributes)
                                )
                              : a.push(l).delete(i);
                        }
                        t -= i;
                      }
                    }),
                    a.chop()
                  );
                }),
                (l.prototype.eachLine = function (e, t) {
                  t = t || "\n";
                  for (
                    var i = o.iterator(this.ops), n = new l(), r = 0;
                    i.hasNext();

                  ) {
                    if ("insert" !== i.peekType()) return;
                    var a = i.peek(),
                      s = o.length(a) - i.peekLength(),
                      c =
                        "string" == typeof a.insert
                          ? a.insert.indexOf(t, s) - s
                          : -1;
                    if (c < 0) n.push(i.next());
                    else if (c > 0) n.push(i.next(c));
                    else {
                      if (!1 === e(n, i.next(1).attributes || {}, r)) return;
                      (r += 1), (n = new l());
                    }
                  }
                  n.length() > 0 && e(n, {}, r);
                }),
                (l.prototype.transform = function (e, t) {
                  if (((t = !!t), "number" == typeof e))
                    return this.transformPosition(e, t);
                  for (
                    var i = o.iterator(this.ops),
                      n = o.iterator(e.ops),
                      r = new l();
                    i.hasNext() || n.hasNext();

                  )
                    if (
                      "insert" !== i.peekType() ||
                      (!t && "insert" === n.peekType())
                    )
                      if ("insert" === n.peekType()) r.push(n.next());
                      else {
                        var a = Math.min(i.peekLength(), n.peekLength()),
                          s = i.next(a),
                          c = n.next(a);
                        if (s.delete) continue;
                        c.delete
                          ? r.push(c)
                          : r.retain(
                              a,
                              o.attributes.transform(
                                s.attributes,
                                c.attributes,
                                t
                              )
                            );
                      }
                    else r.retain(o.length(i.next()));
                  return r.chop();
                }),
                (l.prototype.transformPosition = function (e, t) {
                  t = !!t;
                  for (
                    var i = o.iterator(this.ops), n = 0;
                    i.hasNext() && n <= e;

                  ) {
                    var r = i.peekLength(),
                      a = i.peekType();
                    i.next(),
                      "delete" !== a
                        ? ("insert" === a && (n < e || !t) && (e += r),
                          (n += r))
                        : (e -= Math.min(r, e - n));
                  }
                  return e;
                }),
                (e.exports = l);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var s = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                l = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                c = n(i(8)),
                u = n(i(0)),
                d = (function (e) {
                  function t() {
                    return (
                      r(this, t),
                      a(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    o(t, e),
                    s(
                      t,
                      [
                        {
                          key: "formatAt",
                          value: function (e, i, n, r) {
                            if (
                              t.compare(this.statics.blotName, n) < 0 &&
                              u.default.query(n, u.default.Scope.BLOT)
                            ) {
                              var a = this.isolate(e, i);
                              r && a.wrap(n, r);
                            } else
                              l(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "formatAt",
                                this
                              ).call(this, e, i, n, r);
                          },
                        },
                        {
                          key: "optimize",
                          value: function (e) {
                            if (
                              (l(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "optimize",
                                this
                              ).call(this, e),
                              this.parent instanceof t &&
                                t.compare(
                                  this.statics.blotName,
                                  this.parent.statics.blotName
                                ) > 0)
                            ) {
                              var i = this.parent.isolate(
                                this.offset(),
                                this.length()
                              );
                              this.moveChildren(i), i.wrap(this);
                            }
                          },
                        },
                      ],
                      [
                        {
                          key: "compare",
                          value: function (e, i) {
                            var n = t.order.indexOf(e),
                              r = t.order.indexOf(i);
                            return n >= 0 || r >= 0
                              ? n - r
                              : e === i
                              ? 0
                              : e < i
                              ? -1
                              : 1;
                          },
                        },
                      ]
                    ),
                    t
                  );
                })(u.default.Inline);
              (d.allowedChildren = [d, u.default.Embed, c.default]),
                (d.order = [
                  "cursor",
                  "inline",
                  "underline",
                  "strike",
                  "italic",
                  "bold",
                  "script",
                  "link",
                  "code",
                ]),
                (t.default = d);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t, i) {
                return (
                  t in e
                    ? Object.defineProperty(e, t, {
                        value: i,
                        enumerable: !0,
                        configurable: !0,
                        writable: !0,
                      })
                    : (e[t] = i),
                  e
                );
              }
              function a(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function o(e, t) {
                if (
                  (t = (0, x.default)(
                    !0,
                    {
                      container: e,
                      modules: { clipboard: !0, keyboard: !0, history: !0 },
                    },
                    t
                  )).theme &&
                  t.theme !== S.DEFAULTS.theme
                ) {
                  if (
                    ((t.theme = S.import("themes/" + t.theme)), null == t.theme)
                  )
                    throw new Error(
                      "Invalid theme " + t.theme + ". Did you register it?"
                    );
                } else t.theme = E.default;
                var i = (0, x.default)(!0, {}, t.theme.DEFAULTS);
                [i, t].forEach(function (e) {
                  (e.modules = e.modules || {}),
                    Object.keys(e.modules).forEach(function (t) {
                      !0 === e.modules[t] && (e.modules[t] = {});
                    });
                });
                var n = Object.keys(i.modules)
                  .concat(Object.keys(t.modules))
                  .reduce(function (e, t) {
                    var i = S.import("modules/" + t);
                    return (
                      null == i
                        ? _.error(
                            "Cannot load " +
                              t +
                              " module. Are you sure you registered it?"
                          )
                        : (e[t] = i.DEFAULTS || {}),
                      e
                    );
                  }, {});
                return (
                  null != t.modules &&
                    t.modules.toolbar &&
                    t.modules.toolbar.constructor !== Object &&
                    (t.modules.toolbar = { container: t.modules.toolbar }),
                  (t = (0, x.default)(
                    !0,
                    {},
                    S.DEFAULTS,
                    { modules: n },
                    i,
                    t
                  )),
                  ["bounds", "container", "scrollingContainer"].forEach(
                    function (e) {
                      "string" == typeof t[e] &&
                        (t[e] = document.querySelector(t[e]));
                    }
                  ),
                  (t.modules = Object.keys(t.modules).reduce(function (e, i) {
                    return t.modules[i] && (e[i] = t.modules[i]), e;
                  }, {})),
                  t
                );
              }
              function s(e, t, i, n) {
                if (
                  this.options.strict &&
                  !this.isEnabled() &&
                  t === g.default.sources.USER
                )
                  return new f.default();
                var r = null == i ? null : this.getSelection(),
                  a = this.editor.delta,
                  o = e();
                if (
                  (null != r &&
                    (!0 === i && (i = r.index),
                    null == n
                      ? (r = c(r, o, t))
                      : 0 !== n && (r = c(r, i, n, t)),
                    this.setSelection(r, g.default.sources.SILENT)),
                  o.length() > 0)
                ) {
                  var s,
                    l,
                    u = [g.default.events.TEXT_CHANGE, o, a, t];
                  (s = this.emitter).emit.apply(
                    s,
                    [g.default.events.EDITOR_CHANGE].concat(u)
                  ),
                    t !== g.default.sources.SILENT &&
                      (l = this.emitter).emit.apply(l, u);
                }
                return o;
              }
              function l(e, t, i, n, r) {
                var a = {};
                return (
                  "number" == typeof e.index && "number" == typeof e.length
                    ? "number" != typeof t
                      ? ((r = n),
                        (n = i),
                        (i = t),
                        (t = e.length),
                        (e = e.index))
                      : ((t = e.length), (e = e.index))
                    : "number" != typeof t &&
                      ((r = n), (n = i), (i = t), (t = 0)),
                  "object" === (void 0 === i ? "undefined" : u(i))
                    ? ((a = i), (r = n))
                    : "string" == typeof i &&
                      (null != n ? (a[i] = n) : (r = i)),
                  [e, t, a, (r = r || g.default.sources.API)]
                );
              }
              function c(e, t, i, n) {
                if (null == e) return null;
                var r = void 0,
                  a = void 0;
                if (t instanceof f.default) {
                  var o = [e.index, e.index + e.length].map(function (e) {
                      return t.transformPosition(
                        e,
                        n !== g.default.sources.USER
                      );
                    }),
                    s = d(o, 2);
                  (r = s[0]), (a = s[1]);
                } else {
                  var l = [e.index, e.index + e.length].map(function (e) {
                      return e < t || (e === t && n === g.default.sources.USER)
                        ? e
                        : i >= 0
                        ? e + i
                        : Math.max(t, e + i);
                    }),
                    c = d(l, 2);
                  (r = c[0]), (a = c[1]);
                }
                return new b.Range(r, a - r);
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.default = t.overload = t.expandConfig = void 0);
              var u =
                  "function" == typeof Symbol &&
                  "symbol" == typeof Symbol.iterator
                    ? function (e) {
                        return typeof e;
                      }
                    : function (e) {
                        return e &&
                          "function" == typeof Symbol &&
                          e.constructor === Symbol &&
                          e !== Symbol.prototype
                          ? "symbol"
                          : typeof e;
                      },
                d = (function () {
                  function e(e, t) {
                    var i = [],
                      n = !0,
                      r = !1,
                      a = void 0;
                    try {
                      for (
                        var o, s = e[Symbol.iterator]();
                        !(n = (o = s.next()).done) &&
                        (i.push(o.value), !t || i.length !== t);
                        n = !0
                      );
                    } catch (e) {
                      (r = !0), (a = e);
                    } finally {
                      try {
                        !n && s.return && s.return();
                      } finally {
                        if (r) throw a;
                      }
                    }
                    return i;
                  }
                  return function (t, i) {
                    if (Array.isArray(t)) return t;
                    if (Symbol.iterator in Object(t)) return e(t, i);
                    throw new TypeError(
                      "Invalid attempt to destructure non-iterable instance"
                    );
                  };
                })(),
                h = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })();
              i(53);
              var f = n(i(4)),
                p = n(i(57)),
                g = n(i(9)),
                m = n(i(7)),
                v = n(i(0)),
                b = i(22),
                y = n(b),
                x = n(i(2)),
                w = n(i(10)),
                E = n(i(32)),
                _ = (0, w.default)("quill"),
                S = (function () {
                  function e(t) {
                    var i = this,
                      n =
                        arguments.length > 1 && void 0 !== arguments[1]
                          ? arguments[1]
                          : {};
                    if (
                      (a(this, e),
                      (this.options = o(t, n)),
                      (this.container = this.options.container),
                      null == this.container)
                    )
                      return _.error("Invalid Quill container", t);
                    this.options.debug && e.debug(this.options.debug);
                    var r = this.container.innerHTML.trim();
                    this.container.classList.add("ql-container"),
                      (this.container.innerHTML = ""),
                      (this.container.__quill = this),
                      (this.root = this.addContainer("ql-editor")),
                      this.root.classList.add("ql-blank"),
                      this.root.setAttribute("data-gramm", !1),
                      (this.scrollingContainer =
                        this.options.scrollingContainer || this.root),
                      (this.emitter = new g.default()),
                      (this.scroll = v.default.create(this.root, {
                        emitter: this.emitter,
                        whitelist: this.options.formats,
                      })),
                      (this.editor = new p.default(this.scroll)),
                      (this.selection = new y.default(
                        this.scroll,
                        this.emitter
                      )),
                      (this.theme = new this.options.theme(this, this.options)),
                      (this.keyboard = this.theme.addModule("keyboard")),
                      (this.clipboard = this.theme.addModule("clipboard")),
                      (this.history = this.theme.addModule("history")),
                      this.theme.init(),
                      this.emitter.on(
                        g.default.events.EDITOR_CHANGE,
                        function (e) {
                          e === g.default.events.TEXT_CHANGE &&
                            i.root.classList.toggle(
                              "ql-blank",
                              i.editor.isBlank()
                            );
                        }
                      ),
                      this.emitter.on(
                        g.default.events.SCROLL_UPDATE,
                        function (e, t) {
                          var n = i.selection.lastRange,
                            r = n && 0 === n.length ? n.index : void 0;
                          s.call(
                            i,
                            function () {
                              return i.editor.update(null, t, r);
                            },
                            e
                          );
                        }
                      );
                    var l = this.clipboard.convert(
                      "<div class='ql-editor' style=\"white-space: normal;\">" +
                        r +
                        "<p><br></p></div>"
                    );
                    this.setContents(l),
                      this.history.clear(),
                      this.options.placeholder &&
                        this.root.setAttribute(
                          "data-placeholder",
                          this.options.placeholder
                        ),
                      this.options.readOnly && this.disable();
                  }
                  return (
                    h(e, null, [
                      {
                        key: "debug",
                        value: function (e) {
                          !0 === e && (e = "log"), w.default.level(e);
                        },
                      },
                      {
                        key: "find",
                        value: function (e) {
                          return e.__quill || v.default.find(e);
                        },
                      },
                      {
                        key: "import",
                        value: function (e) {
                          return (
                            null == this.imports[e] &&
                              _.error(
                                "Cannot import " +
                                  e +
                                  ". Are you sure it was registered?"
                              ),
                            this.imports[e]
                          );
                        },
                      },
                      {
                        key: "register",
                        value: function (e, t) {
                          var i = this,
                            n =
                              arguments.length > 2 &&
                              void 0 !== arguments[2] &&
                              arguments[2];
                          if ("string" != typeof e) {
                            var r = e.attrName || e.blotName;
                            "string" == typeof r
                              ? this.register("formats/" + r, e, t)
                              : Object.keys(e).forEach(function (n) {
                                  i.register(n, e[n], t);
                                });
                          } else
                            null == this.imports[e] ||
                              n ||
                              _.warn("Overwriting " + e + " with", t),
                              (this.imports[e] = t),
                              (e.startsWith("blots/") ||
                                e.startsWith("formats/")) &&
                              "abstract" !== t.blotName
                                ? v.default.register(t)
                                : e.startsWith("modules") &&
                                  "function" == typeof t.register &&
                                  t.register();
                        },
                      },
                    ]),
                    h(e, [
                      {
                        key: "addContainer",
                        value: function (e) {
                          var t =
                            arguments.length > 1 && void 0 !== arguments[1]
                              ? arguments[1]
                              : null;
                          if ("string" == typeof e) {
                            var i = e;
                            (e = document.createElement("div")).classList.add(
                              i
                            );
                          }
                          return this.container.insertBefore(e, t), e;
                        },
                      },
                      {
                        key: "blur",
                        value: function () {
                          this.selection.setRange(null);
                        },
                      },
                      {
                        key: "deleteText",
                        value: function (e, t, i) {
                          var n = this,
                            r = l(e, t, i),
                            a = d(r, 4);
                          return (
                            (e = a[0]),
                            (t = a[1]),
                            (i = a[3]),
                            s.call(
                              this,
                              function () {
                                return n.editor.deleteText(e, t);
                              },
                              i,
                              e,
                              -1 * t
                            )
                          );
                        },
                      },
                      {
                        key: "disable",
                        value: function () {
                          this.enable(!1);
                        },
                      },
                      {
                        key: "enable",
                        value: function () {
                          var e =
                            !(
                              arguments.length > 0 && void 0 !== arguments[0]
                            ) || arguments[0];
                          this.scroll.enable(e),
                            this.container.classList.toggle("ql-disabled", !e);
                        },
                      },
                      {
                        key: "focus",
                        value: function () {
                          var e = this.scrollingContainer.scrollTop;
                          this.selection.focus(),
                            (this.scrollingContainer.scrollTop = e),
                            this.scrollIntoView();
                        },
                      },
                      {
                        key: "format",
                        value: function (e, t) {
                          var i = this,
                            n =
                              arguments.length > 2 && void 0 !== arguments[2]
                                ? arguments[2]
                                : g.default.sources.API;
                          return s.call(
                            this,
                            function () {
                              var n = i.getSelection(!0),
                                a = new f.default();
                              if (null == n) return a;
                              if (v.default.query(e, v.default.Scope.BLOCK))
                                a = i.editor.formatLine(
                                  n.index,
                                  n.length,
                                  r({}, e, t)
                                );
                              else {
                                if (0 === n.length)
                                  return i.selection.format(e, t), a;
                                a = i.editor.formatText(
                                  n.index,
                                  n.length,
                                  r({}, e, t)
                                );
                              }
                              return (
                                i.setSelection(n, g.default.sources.SILENT), a
                              );
                            },
                            n
                          );
                        },
                      },
                      {
                        key: "formatLine",
                        value: function (e, t, i, n, r) {
                          var a = this,
                            o = void 0,
                            c = l(e, t, i, n, r),
                            u = d(c, 4);
                          return (
                            (e = u[0]),
                            (t = u[1]),
                            (o = u[2]),
                            (r = u[3]),
                            s.call(
                              this,
                              function () {
                                return a.editor.formatLine(e, t, o);
                              },
                              r,
                              e,
                              0
                            )
                          );
                        },
                      },
                      {
                        key: "formatText",
                        value: function (e, t, i, n, r) {
                          var a = this,
                            o = void 0,
                            c = l(e, t, i, n, r),
                            u = d(c, 4);
                          return (
                            (e = u[0]),
                            (t = u[1]),
                            (o = u[2]),
                            (r = u[3]),
                            s.call(
                              this,
                              function () {
                                return a.editor.formatText(e, t, o);
                              },
                              r,
                              e,
                              0
                            )
                          );
                        },
                      },
                      {
                        key: "getBounds",
                        value: function (e) {
                          var t =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : 0,
                            i = void 0;
                          i =
                            "number" == typeof e
                              ? this.selection.getBounds(e, t)
                              : this.selection.getBounds(e.index, e.length);
                          var n = this.container.getBoundingClientRect();
                          return {
                            bottom: i.bottom - n.top,
                            height: i.height,
                            left: i.left - n.left,
                            right: i.right - n.left,
                            top: i.top - n.top,
                            width: i.width,
                          };
                        },
                      },
                      {
                        key: "getContents",
                        value: function () {
                          var e =
                              arguments.length > 0 && void 0 !== arguments[0]
                                ? arguments[0]
                                : 0,
                            t =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : this.getLength() - e,
                            i = l(e, t),
                            n = d(i, 2);
                          return (
                            (e = n[0]),
                            (t = n[1]),
                            this.editor.getContents(e, t)
                          );
                        },
                      },
                      {
                        key: "getFormat",
                        value: function () {
                          var e =
                              arguments.length > 0 && void 0 !== arguments[0]
                                ? arguments[0]
                                : this.getSelection(!0),
                            t =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : 0;
                          return "number" == typeof e
                            ? this.editor.getFormat(e, t)
                            : this.editor.getFormat(e.index, e.length);
                        },
                      },
                      {
                        key: "getIndex",
                        value: function (e) {
                          return e.offset(this.scroll);
                        },
                      },
                      {
                        key: "getLength",
                        value: function () {
                          return this.scroll.length();
                        },
                      },
                      {
                        key: "getLeaf",
                        value: function (e) {
                          return this.scroll.leaf(e);
                        },
                      },
                      {
                        key: "getLine",
                        value: function (e) {
                          return this.scroll.line(e);
                        },
                      },
                      {
                        key: "getLines",
                        value: function () {
                          var e =
                              arguments.length > 0 && void 0 !== arguments[0]
                                ? arguments[0]
                                : 0,
                            t =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : Number.MAX_VALUE;
                          return "number" != typeof e
                            ? this.scroll.lines(e.index, e.length)
                            : this.scroll.lines(e, t);
                        },
                      },
                      {
                        key: "getModule",
                        value: function (e) {
                          return this.theme.modules[e];
                        },
                      },
                      {
                        key: "getSelection",
                        value: function () {
                          return (
                            arguments.length > 0 &&
                              void 0 !== arguments[0] &&
                              arguments[0] &&
                              this.focus(),
                            this.update(),
                            this.selection.getRange()[0]
                          );
                        },
                      },
                      {
                        key: "getText",
                        value: function () {
                          var e =
                              arguments.length > 0 && void 0 !== arguments[0]
                                ? arguments[0]
                                : 0,
                            t =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : this.getLength() - e,
                            i = l(e, t),
                            n = d(i, 2);
                          return (
                            (e = n[0]), (t = n[1]), this.editor.getText(e, t)
                          );
                        },
                      },
                      {
                        key: "hasFocus",
                        value: function () {
                          return this.selection.hasFocus();
                        },
                      },
                      {
                        key: "insertEmbed",
                        value: function (t, i, n) {
                          var r = this,
                            a =
                              arguments.length > 3 && void 0 !== arguments[3]
                                ? arguments[3]
                                : e.sources.API;
                          return s.call(
                            this,
                            function () {
                              return r.editor.insertEmbed(t, i, n);
                            },
                            a,
                            t
                          );
                        },
                      },
                      {
                        key: "insertText",
                        value: function (e, t, i, n, r) {
                          var a = this,
                            o = void 0,
                            c = l(e, 0, i, n, r),
                            u = d(c, 4);
                          return (
                            (e = u[0]),
                            (o = u[2]),
                            (r = u[3]),
                            s.call(
                              this,
                              function () {
                                return a.editor.insertText(e, t, o);
                              },
                              r,
                              e,
                              t.length
                            )
                          );
                        },
                      },
                      {
                        key: "isEnabled",
                        value: function () {
                          return !this.container.classList.contains(
                            "ql-disabled"
                          );
                        },
                      },
                      {
                        key: "off",
                        value: function () {
                          return this.emitter.off.apply(
                            this.emitter,
                            arguments
                          );
                        },
                      },
                      {
                        key: "on",
                        value: function () {
                          return this.emitter.on.apply(this.emitter, arguments);
                        },
                      },
                      {
                        key: "once",
                        value: function () {
                          return this.emitter.once.apply(
                            this.emitter,
                            arguments
                          );
                        },
                      },
                      {
                        key: "pasteHTML",
                        value: function (e, t, i) {
                          this.clipboard.dangerouslyPasteHTML(e, t, i);
                        },
                      },
                      {
                        key: "removeFormat",
                        value: function (e, t, i) {
                          var n = this,
                            r = l(e, t, i),
                            a = d(r, 4);
                          return (
                            (e = a[0]),
                            (t = a[1]),
                            (i = a[3]),
                            s.call(
                              this,
                              function () {
                                return n.editor.removeFormat(e, t);
                              },
                              i,
                              e
                            )
                          );
                        },
                      },
                      {
                        key: "scrollIntoView",
                        value: function () {
                          this.selection.scrollIntoView(
                            this.scrollingContainer
                          );
                        },
                      },
                      {
                        key: "setContents",
                        value: function (e) {
                          var t = this,
                            i =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : g.default.sources.API;
                          return s.call(
                            this,
                            function () {
                              e = new f.default(e);
                              var i = t.getLength(),
                                n = t.editor.deleteText(0, i),
                                r = t.editor.applyDelta(e),
                                a = r.ops[r.ops.length - 1];
                              return (
                                null != a &&
                                  "string" == typeof a.insert &&
                                  "\n" === a.insert[a.insert.length - 1] &&
                                  (t.editor.deleteText(t.getLength() - 1, 1),
                                  r.delete(1)),
                                n.compose(r)
                              );
                            },
                            i
                          );
                        },
                      },
                      {
                        key: "setSelection",
                        value: function (t, i, n) {
                          if (null == t)
                            this.selection.setRange(null, i || e.sources.API);
                          else {
                            var r = l(t, i, n),
                              a = d(r, 4);
                            (t = a[0]),
                              (i = a[1]),
                              (n = a[3]),
                              this.selection.setRange(new b.Range(t, i), n),
                              n !== g.default.sources.SILENT &&
                                this.selection.scrollIntoView(
                                  this.scrollingContainer
                                );
                          }
                        },
                      },
                      {
                        key: "setText",
                        value: function (e) {
                          var t =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : g.default.sources.API,
                            i = new f.default().insert(e);
                          return this.setContents(i, t);
                        },
                      },
                      {
                        key: "update",
                        value: function () {
                          var e =
                              arguments.length > 0 && void 0 !== arguments[0]
                                ? arguments[0]
                                : g.default.sources.USER,
                            t = this.scroll.update(e);
                          return this.selection.update(e), t;
                        },
                      },
                      {
                        key: "updateContents",
                        value: function (e) {
                          var t = this,
                            i =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : g.default.sources.API;
                          return s.call(
                            this,
                            function () {
                              return (
                                (e = new f.default(e)),
                                t.editor.applyDelta(e, i)
                              );
                            },
                            i,
                            !0
                          );
                        },
                      },
                    ]),
                    e
                  );
                })();
              (S.DEFAULTS = {
                bounds: null,
                formats: null,
                modules: {},
                placeholder: "",
                readOnly: !1,
                scrollingContainer: null,
                strict: !0,
                theme: "default",
              }),
                (S.events = g.default.events),
                (S.sources = g.default.sources),
                (S.version = "1.3.7"),
                (S.imports = {
                  delta: f.default,
                  parchment: v.default,
                  "core/module": m.default,
                  "core/theme": E.default,
                }),
                (t.expandConfig = o),
                (t.overload = l),
                (t.default = S);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = function e(t) {
                var i =
                  arguments.length > 1 && void 0 !== arguments[1]
                    ? arguments[1]
                    : {};
                n(this, e), (this.quill = t), (this.options = i);
              };
              (r.DEFAULTS = {}), (t.default = r);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(0)),
                s = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return a(t, e), t;
                })(o.default.Text);
              t.default = s;
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var s = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                l = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                c = n(i(58)),
                u = (0, n(i(10)).default)("quill:events");
              ["selectionchange", "mousedown", "mouseup", "click"].forEach(
                function (e) {
                  document.addEventListener(e, function () {
                    for (
                      var e = arguments.length, t = Array(e), i = 0;
                      i < e;
                      i++
                    )
                      t[i] = arguments[i];
                    [].slice
                      .call(document.querySelectorAll(".ql-container"))
                      .forEach(function (e) {
                        var i;
                        e.__quill &&
                          e.__quill.emitter &&
                          (i = e.__quill.emitter).handleDOM.apply(i, t);
                      });
                  });
                }
              );
              var d = (function (e) {
                function t() {
                  r(this, t);
                  var e = a(
                    this,
                    (t.__proto__ || Object.getPrototypeOf(t)).call(this)
                  );
                  return (e.listeners = {}), e.on("error", u.error), e;
                }
                return (
                  o(t, e),
                  s(t, [
                    {
                      key: "emit",
                      value: function () {
                        u.log.apply(u, arguments),
                          l(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "emit",
                            this
                          ).apply(this, arguments);
                      },
                    },
                    {
                      key: "handleDOM",
                      value: function (e) {
                        for (
                          var t = arguments.length,
                            i = Array(t > 1 ? t - 1 : 0),
                            n = 1;
                          n < t;
                          n++
                        )
                          i[n - 1] = arguments[n];
                        (this.listeners[e.type] || []).forEach(function (t) {
                          var n = t.node,
                            r = t.handler;
                          (e.target === n || n.contains(e.target)) &&
                            r.apply(void 0, [e].concat(i));
                        });
                      },
                    },
                    {
                      key: "listenDOM",
                      value: function (e, t, i) {
                        this.listeners[e] || (this.listeners[e] = []),
                          this.listeners[e].push({ node: t, handler: i });
                      },
                    },
                  ]),
                  t
                );
              })(c.default);
              (d.events = {
                EDITOR_CHANGE: "editor-change",
                SCROLL_BEFORE_UPDATE: "scroll-before-update",
                SCROLL_OPTIMIZE: "scroll-optimize",
                SCROLL_UPDATE: "scroll-update",
                SELECTION_CHANGE: "selection-change",
                TEXT_CHANGE: "text-change",
              }),
                (d.sources = { API: "api", SILENT: "silent", USER: "user" }),
                (t.default = d);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                if (a.indexOf(e) <= a.indexOf(o)) {
                  for (
                    var t,
                      i = arguments.length,
                      n = Array(i > 1 ? i - 1 : 0),
                      r = 1;
                    r < i;
                    r++
                  )
                    n[r - 1] = arguments[r];
                  (t = console)[e].apply(t, n);
                }
              }
              function r(e) {
                return a.reduce(function (t, i) {
                  return (t[i] = n.bind(console, i, e)), t;
                }, {});
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var a = ["error", "warn", "log", "info"],
                o = "warn";
              (n.level = r.level =
                function (e) {
                  o = e;
                }),
                (t.default = r);
            },
            function (e, t, i) {
              "use strict";
              Object.defineProperty(t, "__esModule", { value: !0 });
              var n = i(1),
                r = (function () {
                  function e(e, t, i) {
                    void 0 === i && (i = {}),
                      (this.attrName = e),
                      (this.keyName = t);
                    var r = n.Scope.TYPE & n.Scope.ATTRIBUTE;
                    null != i.scope
                      ? (this.scope = (i.scope & n.Scope.LEVEL) | r)
                      : (this.scope = n.Scope.ATTRIBUTE),
                      null != i.whitelist && (this.whitelist = i.whitelist);
                  }
                  return (
                    (e.keys = function (e) {
                      return [].map.call(e.attributes, function (e) {
                        return e.name;
                      });
                    }),
                    (e.prototype.add = function (e, t) {
                      return (
                        !!this.canAdd(e, t) &&
                        (e.setAttribute(this.keyName, t), !0)
                      );
                    }),
                    (e.prototype.canAdd = function (e, t) {
                      return (
                        null !=
                          n.query(
                            e,
                            n.Scope.BLOT & (this.scope | n.Scope.TYPE)
                          ) &&
                        (null == this.whitelist ||
                          ("string" == typeof t
                            ? this.whitelist.indexOf(t.replace(/["']/g, "")) >
                              -1
                            : this.whitelist.indexOf(t) > -1))
                      );
                    }),
                    (e.prototype.remove = function (e) {
                      e.removeAttribute(this.keyName);
                    }),
                    (e.prototype.value = function (e) {
                      var t = e.getAttribute(this.keyName);
                      return this.canAdd(e, t) && t ? t : "";
                    }),
                    e
                  );
                })();
              t.default = r;
            },
            function (e, t, i) {
              function n(e) {
                return null == e;
              }
              function r(e) {
                return !(
                  !e ||
                  "object" != typeof e ||
                  "number" != typeof e.length ||
                  "function" != typeof e.copy ||
                  "function" != typeof e.slice ||
                  (e.length > 0 && "number" != typeof e[0])
                );
              }
              function a(e, t, i) {
                var a, u;
                if (n(e) || n(t)) return !1;
                if (e.prototype !== t.prototype) return !1;
                if (l(e))
                  return (
                    !!l(t) && ((e = o.call(e)), (t = o.call(t)), c(e, t, i))
                  );
                if (r(e)) {
                  if (!r(t)) return !1;
                  if (e.length !== t.length) return !1;
                  for (a = 0; a < e.length; a++) if (e[a] !== t[a]) return !1;
                  return !0;
                }
                try {
                  var d = s(e),
                    h = s(t);
                } catch (e) {
                  return !1;
                }
                if (d.length != h.length) return !1;
                for (d.sort(), h.sort(), a = d.length - 1; a >= 0; a--)
                  if (d[a] != h[a]) return !1;
                for (a = d.length - 1; a >= 0; a--)
                  if (((u = d[a]), !c(e[u], t[u], i))) return !1;
                return typeof e == typeof t;
              }
              var o = Array.prototype.slice,
                s = i(55),
                l = i(56),
                c = (e.exports = function (e, t, i) {
                  return (
                    i || (i = {}),
                    e === t ||
                      (e instanceof Date && t instanceof Date
                        ? e.getTime() === t.getTime()
                        : !e ||
                          !t ||
                          ("object" != typeof e && "object" != typeof t)
                        ? i.strict
                          ? e === t
                          : e == t
                        : a(e, t, i))
                  );
                });
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.default = t.Code = void 0);
              var s = (function () {
                  function e(e, t) {
                    var i = [],
                      n = !0,
                      r = !1,
                      a = void 0;
                    try {
                      for (
                        var o, s = e[Symbol.iterator]();
                        !(n = (o = s.next()).done) &&
                        (i.push(o.value), !t || i.length !== t);
                        n = !0
                      );
                    } catch (e) {
                      (r = !0), (a = e);
                    } finally {
                      try {
                        !n && s.return && s.return();
                      } finally {
                        if (r) throw a;
                      }
                    }
                    return i;
                  }
                  return function (t, i) {
                    if (Array.isArray(t)) return t;
                    if (Symbol.iterator in Object(t)) return e(t, i);
                    throw new TypeError(
                      "Invalid attempt to destructure non-iterable instance"
                    );
                  };
                })(),
                l = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                c = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                u = n(i(4)),
                d = n(i(0)),
                h = n(i(3)),
                f = n(i(5)),
                p = n(i(8)),
                g = (function (e) {
                  function t() {
                    return (
                      r(this, t),
                      a(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return o(t, e), t;
                })(f.default);
              (g.blotName = "code"), (g.tagName = "CODE");
              var m = (function (e) {
                function t() {
                  return (
                    r(this, t),
                    a(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).apply(
                        this,
                        arguments
                      )
                    )
                  );
                }
                return (
                  o(t, e),
                  l(
                    t,
                    [
                      {
                        key: "delta",
                        value: function () {
                          var e = this,
                            t = this.domNode.textContent;
                          return (
                            t.endsWith("\n") && (t = t.slice(0, -1)),
                            t.split("\n").reduce(function (t, i) {
                              return t.insert(i).insert("\n", e.formats());
                            }, new u.default())
                          );
                        },
                      },
                      {
                        key: "format",
                        value: function (e, i) {
                          if (e !== this.statics.blotName || !i) {
                            var n = this.descendant(
                                p.default,
                                this.length() - 1
                              ),
                              r = s(n, 1)[0];
                            null != r && r.deleteAt(r.length() - 1, 1),
                              c(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "format",
                                this
                              ).call(this, e, i);
                          }
                        },
                      },
                      {
                        key: "formatAt",
                        value: function (e, i, n, r) {
                          if (
                            0 !== i &&
                            null != d.default.query(n, d.default.Scope.BLOCK) &&
                            (n !== this.statics.blotName ||
                              r !== this.statics.formats(this.domNode))
                          ) {
                            var a = this.newlineIndex(e);
                            if (!(a < 0 || a >= e + i)) {
                              var o = this.newlineIndex(e, !0) + 1,
                                s = a - o + 1,
                                l = this.isolate(o, s),
                                c = l.next;
                              l.format(n, r),
                                c instanceof t &&
                                  c.formatAt(0, e - o + i - s, n, r);
                            }
                          }
                        },
                      },
                      {
                        key: "insertAt",
                        value: function (e, t, i) {
                          if (null == i) {
                            var n = this.descendant(p.default, e),
                              r = s(n, 2),
                              a = r[0],
                              o = r[1];
                            a.insertAt(o, t);
                          }
                        },
                      },
                      {
                        key: "length",
                        value: function () {
                          var e = this.domNode.textContent.length;
                          return this.domNode.textContent.endsWith("\n")
                            ? e
                            : e + 1;
                        },
                      },
                      {
                        key: "newlineIndex",
                        value: function (e) {
                          if (
                            arguments.length > 1 &&
                            void 0 !== arguments[1] &&
                            arguments[1]
                          )
                            return this.domNode.textContent
                              .slice(0, e)
                              .lastIndexOf("\n");
                          var t = this.domNode.textContent
                            .slice(e)
                            .indexOf("\n");
                          return t > -1 ? e + t : -1;
                        },
                      },
                      {
                        key: "optimize",
                        value: function (e) {
                          this.domNode.textContent.endsWith("\n") ||
                            this.appendChild(d.default.create("text", "\n")),
                            c(
                              t.prototype.__proto__ ||
                                Object.getPrototypeOf(t.prototype),
                              "optimize",
                              this
                            ).call(this, e);
                          var i = this.next;
                          null != i &&
                            i.prev === this &&
                            i.statics.blotName === this.statics.blotName &&
                            this.statics.formats(this.domNode) ===
                              i.statics.formats(i.domNode) &&
                            (i.optimize(e), i.moveChildren(this), i.remove());
                        },
                      },
                      {
                        key: "replace",
                        value: function (e) {
                          c(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "replace",
                            this
                          ).call(this, e),
                            [].slice
                              .call(this.domNode.querySelectorAll("*"))
                              .forEach(function (e) {
                                var t = d.default.find(e);
                                null == t
                                  ? e.parentNode.removeChild(e)
                                  : t instanceof d.default.Embed
                                  ? t.remove()
                                  : t.unwrap();
                              });
                        },
                      },
                    ],
                    [
                      {
                        key: "create",
                        value: function (e) {
                          var i = c(
                            t.__proto__ || Object.getPrototypeOf(t),
                            "create",
                            this
                          ).call(this, e);
                          return i.setAttribute("spellcheck", !1), i;
                        },
                      },
                      {
                        key: "formats",
                        value: function () {
                          return !0;
                        },
                      },
                    ]
                  ),
                  t
                );
              })(h.default);
              (m.blotName = "code-block"),
                (m.tagName = "PRE"),
                (m.TAB = "  "),
                (t.Code = g),
                (t.default = m);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(0)),
                c = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    a(t, e),
                    o(
                      t,
                      [
                        {
                          key: "insertInto",
                          value: function (e, i) {
                            0 === e.children.length
                              ? s(
                                  t.prototype.__proto__ ||
                                    Object.getPrototypeOf(t.prototype),
                                  "insertInto",
                                  this
                                ).call(this, e, i)
                              : this.remove();
                          },
                        },
                        {
                          key: "length",
                          value: function () {
                            return 0;
                          },
                        },
                        {
                          key: "value",
                          value: function () {
                            return "";
                          },
                        },
                      ],
                      [{ key: "value", value: function () {} }]
                    ),
                    t
                  );
                })(l.default.Embed);
              (c.blotName = "break"), (c.tagName = "BR"), (t.default = c);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              function o(e, t) {
                var i = document.createElement("a");
                i.href = e;
                var n = i.href.slice(0, i.href.indexOf(":"));
                return t.indexOf(n) > -1;
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.sanitize = t.default = void 0);
              var s = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                l = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                c = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(5)),
                u = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    a(t, e),
                    s(
                      t,
                      [
                        {
                          key: "format",
                          value: function (e, i) {
                            if (e !== this.statics.blotName || !i)
                              return l(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "format",
                                this
                              ).call(this, e, i);
                            (i = this.constructor.sanitize(i)),
                              this.domNode.setAttribute("href", i);
                          },
                        },
                      ],
                      [
                        {
                          key: "create",
                          value: function (e) {
                            var i = l(
                              t.__proto__ || Object.getPrototypeOf(t),
                              "create",
                              this
                            ).call(this, e);
                            return (
                              (e = this.sanitize(e)),
                              i.setAttribute("href", e),
                              i.setAttribute("rel", "noopener noreferrer"),
                              i.setAttribute("target", "_blank"),
                              i
                            );
                          },
                        },
                        {
                          key: "formats",
                          value: function (e) {
                            return e.getAttribute("href");
                          },
                        },
                        {
                          key: "sanitize",
                          value: function (e) {
                            return o(e, this.PROTOCOL_WHITELIST)
                              ? e
                              : this.SANITIZED_URL;
                          },
                        },
                      ]
                    ),
                    t
                  );
                })(c.default);
              (u.blotName = "link"),
                (u.tagName = "A"),
                (u.SANITIZED_URL = "about:blank"),
                (u.PROTOCOL_WHITELIST = ["http", "https", "mailto", "tel"]),
                (t.default = u),
                (t.sanitize = o);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                e.setAttribute(t, !("true" === e.getAttribute(t)));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o =
                  "function" == typeof Symbol &&
                  "symbol" == typeof Symbol.iterator
                    ? function (e) {
                        return typeof e;
                      }
                    : function (e) {
                        return e &&
                          "function" == typeof Symbol &&
                          e.constructor === Symbol &&
                          e !== Symbol.prototype
                          ? "symbol"
                          : typeof e;
                      },
                s = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                l = n(i(25)),
                c = n(i(106)),
                u = 0,
                d = (function () {
                  function e(t) {
                    var i = this;
                    r(this, e),
                      (this.select = t),
                      (this.container = document.createElement("span")),
                      this.buildPicker(),
                      (this.select.style.display = "none"),
                      this.select.parentNode.insertBefore(
                        this.container,
                        this.select
                      ),
                      this.label.addEventListener("mousedown", function () {
                        i.togglePicker();
                      }),
                      this.label.addEventListener("keydown", function (e) {
                        switch (e.keyCode) {
                          case l.default.keys.ENTER:
                            i.togglePicker();
                            break;
                          case l.default.keys.ESCAPE:
                            i.escape(), e.preventDefault();
                        }
                      }),
                      this.select.addEventListener(
                        "change",
                        this.update.bind(this)
                      );
                  }
                  return (
                    s(e, [
                      {
                        key: "togglePicker",
                        value: function () {
                          this.container.classList.toggle("ql-expanded"),
                            a(this.label, "aria-expanded"),
                            a(this.options, "aria-hidden");
                        },
                      },
                      {
                        key: "buildItem",
                        value: function (e) {
                          var t = this,
                            i = document.createElement("span");
                          return (
                            (i.tabIndex = "0"),
                            i.setAttribute("role", "button"),
                            i.classList.add("ql-picker-item"),
                            e.hasAttribute("value") &&
                              i.setAttribute(
                                "data-value",
                                e.getAttribute("value")
                              ),
                            e.textContent &&
                              i.setAttribute("data-label", e.textContent),
                            i.addEventListener("click", function () {
                              t.selectItem(i, !0);
                            }),
                            i.addEventListener("keydown", function (e) {
                              switch (e.keyCode) {
                                case l.default.keys.ENTER:
                                  t.selectItem(i, !0), e.preventDefault();
                                  break;
                                case l.default.keys.ESCAPE:
                                  t.escape(), e.preventDefault();
                              }
                            }),
                            i
                          );
                        },
                      },
                      {
                        key: "buildLabel",
                        value: function () {
                          var e = document.createElement("span");
                          return (
                            e.classList.add("ql-picker-label"),
                            (e.innerHTML = c.default),
                            (e.tabIndex = "0"),
                            e.setAttribute("role", "button"),
                            e.setAttribute("aria-expanded", "false"),
                            this.container.appendChild(e),
                            e
                          );
                        },
                      },
                      {
                        key: "buildOptions",
                        value: function () {
                          var e = this,
                            t = document.createElement("span");
                          t.classList.add("ql-picker-options"),
                            t.setAttribute("aria-hidden", "true"),
                            (t.tabIndex = "-1"),
                            (t.id = "ql-picker-options-" + u),
                            (u += 1),
                            this.label.setAttribute("aria-controls", t.id),
                            (this.options = t),
                            [].slice
                              .call(this.select.options)
                              .forEach(function (i) {
                                var n = e.buildItem(i);
                                t.appendChild(n),
                                  !0 === i.selected && e.selectItem(n);
                              }),
                            this.container.appendChild(t);
                        },
                      },
                      {
                        key: "buildPicker",
                        value: function () {
                          var e = this;
                          [].slice
                            .call(this.select.attributes)
                            .forEach(function (t) {
                              e.container.setAttribute(t.name, t.value);
                            }),
                            this.container.classList.add("ql-picker"),
                            (this.label = this.buildLabel()),
                            this.buildOptions();
                        },
                      },
                      {
                        key: "escape",
                        value: function () {
                          var e = this;
                          this.close(),
                            setTimeout(function () {
                              return e.label.focus();
                            }, 1);
                        },
                      },
                      {
                        key: "close",
                        value: function () {
                          this.container.classList.remove("ql-expanded"),
                            this.label.setAttribute("aria-expanded", "false"),
                            this.options.setAttribute("aria-hidden", "true");
                        },
                      },
                      {
                        key: "selectItem",
                        value: function (e) {
                          var t =
                              arguments.length > 1 &&
                              void 0 !== arguments[1] &&
                              arguments[1],
                            i = this.container.querySelector(".ql-selected");
                          if (
                            e !== i &&
                            (null != i && i.classList.remove("ql-selected"),
                            null != e &&
                              (e.classList.add("ql-selected"),
                              (this.select.selectedIndex = [].indexOf.call(
                                e.parentNode.children,
                                e
                              )),
                              e.hasAttribute("data-value")
                                ? this.label.setAttribute(
                                    "data-value",
                                    e.getAttribute("data-value")
                                  )
                                : this.label.removeAttribute("data-value"),
                              e.hasAttribute("data-label")
                                ? this.label.setAttribute(
                                    "data-label",
                                    e.getAttribute("data-label")
                                  )
                                : this.label.removeAttribute("data-label"),
                              t))
                          ) {
                            if ("function" == typeof Event)
                              this.select.dispatchEvent(new Event("change"));
                            else if (
                              "object" ===
                              ("undefined" == typeof Event
                                ? "undefined"
                                : o(Event))
                            ) {
                              var n = document.createEvent("Event");
                              n.initEvent("change", !0, !0),
                                this.select.dispatchEvent(n);
                            }
                            this.close();
                          }
                        },
                      },
                      {
                        key: "update",
                        value: function () {
                          var e = void 0;
                          if (this.select.selectedIndex > -1) {
                            var t =
                              this.container.querySelector(".ql-picker-options")
                                .children[this.select.selectedIndex];
                            (e =
                              this.select.options[this.select.selectedIndex]),
                              this.selectItem(t);
                          } else this.selectItem(null);
                          var i =
                            null != e &&
                            e !== this.select.querySelector("option[selected]");
                          this.label.classList.toggle("ql-active", i);
                        },
                      },
                    ]),
                    e
                  );
                })();
              t.default = d;
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                var t = s.find(e);
                if (null == t)
                  try {
                    t = s.create(e);
                  } catch (i) {
                    (t = s.create(s.Scope.INLINE)),
                      [].slice.call(e.childNodes).forEach(function (e) {
                        t.domNode.appendChild(e);
                      }),
                      e.parentNode && e.parentNode.replaceChild(t.domNode, e),
                      t.attach();
                  }
                return t;
              }
              var r =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var a = i(47),
                o = i(27),
                s = i(1),
                l = (function (e) {
                  function t(t) {
                    var i = e.call(this, t) || this;
                    return i.build(), i;
                  }
                  return (
                    r(t, e),
                    (t.prototype.appendChild = function (e) {
                      this.insertBefore(e);
                    }),
                    (t.prototype.attach = function () {
                      e.prototype.attach.call(this),
                        this.children.forEach(function (e) {
                          e.attach();
                        });
                    }),
                    (t.prototype.build = function () {
                      var e = this;
                      (this.children = new a.default()),
                        [].slice
                          .call(this.domNode.childNodes)
                          .reverse()
                          .forEach(function (t) {
                            try {
                              var i = n(t);
                              e.insertBefore(i, e.children.head || void 0);
                            } catch (e) {
                              if (e instanceof s.ParchmentError) return;
                              throw e;
                            }
                          });
                    }),
                    (t.prototype.deleteAt = function (e, t) {
                      if (0 === e && t === this.length()) return this.remove();
                      this.children.forEachAt(e, t, function (e, t, i) {
                        e.deleteAt(t, i);
                      });
                    }),
                    (t.prototype.descendant = function (e, i) {
                      var n = this.children.find(i),
                        r = n[0],
                        a = n[1];
                      return (null == e.blotName && e(r)) ||
                        (null != e.blotName && r instanceof e)
                        ? [r, a]
                        : r instanceof t
                        ? r.descendant(e, a)
                        : [null, -1];
                    }),
                    (t.prototype.descendants = function (e, i, n) {
                      void 0 === i && (i = 0),
                        void 0 === n && (n = Number.MAX_VALUE);
                      var r = [],
                        a = n;
                      return (
                        this.children.forEachAt(i, n, function (i, n, o) {
                          ((null == e.blotName && e(i)) ||
                            (null != e.blotName && i instanceof e)) &&
                            r.push(i),
                            i instanceof t &&
                              (r = r.concat(i.descendants(e, n, a))),
                            (a -= o);
                        }),
                        r
                      );
                    }),
                    (t.prototype.detach = function () {
                      this.children.forEach(function (e) {
                        e.detach();
                      }),
                        e.prototype.detach.call(this);
                    }),
                    (t.prototype.formatAt = function (e, t, i, n) {
                      this.children.forEachAt(e, t, function (e, t, r) {
                        e.formatAt(t, r, i, n);
                      });
                    }),
                    (t.prototype.insertAt = function (e, t, i) {
                      var n = this.children.find(e),
                        r = n[0],
                        a = n[1];
                      if (r) r.insertAt(a, t, i);
                      else {
                        var o =
                          null == i ? s.create("text", t) : s.create(t, i);
                        this.appendChild(o);
                      }
                    }),
                    (t.prototype.insertBefore = function (e, t) {
                      if (
                        null != this.statics.allowedChildren &&
                        !this.statics.allowedChildren.some(function (t) {
                          return e instanceof t;
                        })
                      )
                        throw new s.ParchmentError(
                          "Cannot insert " +
                            e.statics.blotName +
                            " into " +
                            this.statics.blotName
                        );
                      e.insertInto(this, t);
                    }),
                    (t.prototype.length = function () {
                      return this.children.reduce(function (e, t) {
                        return e + t.length();
                      }, 0);
                    }),
                    (t.prototype.moveChildren = function (e, t) {
                      this.children.forEach(function (i) {
                        e.insertBefore(i, t);
                      });
                    }),
                    (t.prototype.optimize = function (t) {
                      if (
                        (e.prototype.optimize.call(this, t),
                        0 === this.children.length)
                      )
                        if (null != this.statics.defaultChild) {
                          var i = s.create(this.statics.defaultChild);
                          this.appendChild(i), i.optimize(t);
                        } else this.remove();
                    }),
                    (t.prototype.path = function (e, i) {
                      void 0 === i && (i = !1);
                      var n = this.children.find(e, i),
                        r = n[0],
                        a = n[1],
                        o = [[this, e]];
                      return r instanceof t
                        ? o.concat(r.path(a, i))
                        : (null != r && o.push([r, a]), o);
                    }),
                    (t.prototype.removeChild = function (e) {
                      this.children.remove(e);
                    }),
                    (t.prototype.replace = function (i) {
                      i instanceof t && i.moveChildren(this),
                        e.prototype.replace.call(this, i);
                    }),
                    (t.prototype.split = function (e, t) {
                      if ((void 0 === t && (t = !1), !t)) {
                        if (0 === e) return this;
                        if (e === this.length()) return this.next;
                      }
                      var i = this.clone();
                      return (
                        this.parent.insertBefore(i, this.next),
                        this.children.forEachAt(
                          e,
                          this.length(),
                          function (e, n, r) {
                            (e = e.split(n, t)), i.appendChild(e);
                          }
                        ),
                        i
                      );
                    }),
                    (t.prototype.unwrap = function () {
                      this.moveChildren(this.parent, this.next), this.remove();
                    }),
                    (t.prototype.update = function (e, t) {
                      var i = this,
                        r = [],
                        a = [];
                      e.forEach(function (e) {
                        e.target === i.domNode &&
                          "childList" === e.type &&
                          (r.push.apply(r, e.addedNodes),
                          a.push.apply(a, e.removedNodes));
                      }),
                        a.forEach(function (e) {
                          if (
                            !(
                              null != e.parentNode &&
                              "IFRAME" !== e.tagName &&
                              document.body.compareDocumentPosition(e) &
                                Node.DOCUMENT_POSITION_CONTAINED_BY
                            )
                          ) {
                            var t = s.find(e);
                            null != t &&
                              ((null != t.domNode.parentNode &&
                                t.domNode.parentNode !== i.domNode) ||
                                t.detach());
                          }
                        }),
                        r
                          .filter(function (e) {
                            return e.parentNode == i.domNode;
                          })
                          .sort(function (e, t) {
                            return e === t
                              ? 0
                              : e.compareDocumentPosition(t) &
                                Node.DOCUMENT_POSITION_FOLLOWING
                              ? 1
                              : -1;
                          })
                          .forEach(function (e) {
                            var t = null;
                            null != e.nextSibling &&
                              (t = s.find(e.nextSibling));
                            var r = n(e);
                            (r.next == t && null != r.next) ||
                              (null != r.parent && r.parent.removeChild(i),
                              i.insertBefore(r, t || void 0));
                          });
                    }),
                    t
                  );
                })(o.default);
              t.default = l;
            },
            function (e, t, i) {
              "use strict";
              var n =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = i(11),
                a = i(28),
                o = i(17),
                s = i(1),
                l = (function (e) {
                  function t(t) {
                    var i = e.call(this, t) || this;
                    return (i.attributes = new a.default(i.domNode)), i;
                  }
                  return (
                    n(t, e),
                    (t.formats = function (e) {
                      return (
                        "string" == typeof this.tagName ||
                        (Array.isArray(this.tagName)
                          ? e.tagName.toLowerCase()
                          : void 0)
                      );
                    }),
                    (t.prototype.format = function (e, t) {
                      var i = s.query(e);
                      i instanceof r.default
                        ? this.attributes.attribute(i, t)
                        : t &&
                          (null == i ||
                            (e === this.statics.blotName &&
                              this.formats()[e] === t) ||
                            this.replaceWith(e, t));
                    }),
                    (t.prototype.formats = function () {
                      var e = this.attributes.values(),
                        t = this.statics.formats(this.domNode);
                      return null != t && (e[this.statics.blotName] = t), e;
                    }),
                    (t.prototype.replaceWith = function (t, i) {
                      var n = e.prototype.replaceWith.call(this, t, i);
                      return this.attributes.copy(n), n;
                    }),
                    (t.prototype.update = function (t, i) {
                      var n = this;
                      e.prototype.update.call(this, t, i),
                        t.some(function (e) {
                          return (
                            e.target === n.domNode && "attributes" === e.type
                          );
                        }) && this.attributes.build();
                    }),
                    (t.prototype.wrap = function (i, n) {
                      var r = e.prototype.wrap.call(this, i, n);
                      return (
                        r instanceof t &&
                          r.statics.scope === this.statics.scope &&
                          this.attributes.move(r),
                        r
                      );
                    }),
                    t
                  );
                })(o.default);
              t.default = l;
            },
            function (e, t, i) {
              "use strict";
              var n =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = i(27),
                a = i(1),
                o = (function (e) {
                  function t() {
                    return (null !== e && e.apply(this, arguments)) || this;
                  }
                  return (
                    n(t, e),
                    (t.value = function (e) {
                      return !0;
                    }),
                    (t.prototype.index = function (e, t) {
                      return this.domNode === e ||
                        this.domNode.compareDocumentPosition(e) &
                          Node.DOCUMENT_POSITION_CONTAINED_BY
                        ? Math.min(t, 1)
                        : -1;
                    }),
                    (t.prototype.position = function (e, t) {
                      var i = [].indexOf.call(
                        this.parent.domNode.childNodes,
                        this.domNode
                      );
                      return e > 0 && (i += 1), [this.parent.domNode, i];
                    }),
                    (t.prototype.value = function () {
                      var e;
                      return (
                        ((e = {})[this.statics.blotName] =
                          this.statics.value(this.domNode) || !0),
                        e
                      );
                    }),
                    (t.scope = a.Scope.INLINE_BLOT),
                    t
                  );
                })(r.default);
              t.default = o;
            },
            function (e, t, i) {
              function n(e) {
                (this.ops = e), (this.index = 0), (this.offset = 0);
              }
              var r = i(12),
                a = i(2),
                o = {
                  attributes: {
                    compose: function (e, t, i) {
                      "object" != typeof e && (e = {}),
                        "object" != typeof t && (t = {});
                      var n = a(!0, {}, t);
                      for (var r in (i ||
                        (n = Object.keys(n).reduce(function (e, t) {
                          return null != n[t] && (e[t] = n[t]), e;
                        }, {})),
                      e))
                        void 0 !== e[r] && void 0 === t[r] && (n[r] = e[r]);
                      return Object.keys(n).length > 0 ? n : void 0;
                    },
                    diff: function (e, t) {
                      "object" != typeof e && (e = {}),
                        "object" != typeof t && (t = {});
                      var i = Object.keys(e)
                        .concat(Object.keys(t))
                        .reduce(function (i, n) {
                          return (
                            r(e[n], t[n]) ||
                              (i[n] = void 0 === t[n] ? null : t[n]),
                            i
                          );
                        }, {});
                      return Object.keys(i).length > 0 ? i : void 0;
                    },
                    transform: function (e, t, i) {
                      if ("object" != typeof e) return t;
                      if ("object" == typeof t) {
                        if (!i) return t;
                        var n = Object.keys(t).reduce(function (i, n) {
                          return void 0 === e[n] && (i[n] = t[n]), i;
                        }, {});
                        return Object.keys(n).length > 0 ? n : void 0;
                      }
                    },
                  },
                  iterator: function (e) {
                    return new n(e);
                  },
                  length: function (e) {
                    return "number" == typeof e.delete
                      ? e.delete
                      : "number" == typeof e.retain
                      ? e.retain
                      : "string" == typeof e.insert
                      ? e.insert.length
                      : 1;
                  },
                };
              (n.prototype.hasNext = function () {
                return this.peekLength() < 1 / 0;
              }),
                (n.prototype.next = function (e) {
                  e || (e = 1 / 0);
                  var t = this.ops[this.index];
                  if (t) {
                    var i = this.offset,
                      n = o.length(t);
                    if (
                      (e >= n - i
                        ? ((e = n - i), (this.index += 1), (this.offset = 0))
                        : (this.offset += e),
                      "number" == typeof t.delete)
                    )
                      return { delete: e };
                    var r = {};
                    return (
                      t.attributes && (r.attributes = t.attributes),
                      "number" == typeof t.retain
                        ? (r.retain = e)
                        : "string" == typeof t.insert
                        ? (r.insert = t.insert.substr(i, e))
                        : (r.insert = t.insert),
                      r
                    );
                  }
                  return { retain: 1 / 0 };
                }),
                (n.prototype.peek = function () {
                  return this.ops[this.index];
                }),
                (n.prototype.peekLength = function () {
                  return this.ops[this.index]
                    ? o.length(this.ops[this.index]) - this.offset
                    : 1 / 0;
                }),
                (n.prototype.peekType = function () {
                  return this.ops[this.index]
                    ? "number" == typeof this.ops[this.index].delete
                      ? "delete"
                      : "number" == typeof this.ops[this.index].retain
                      ? "retain"
                      : "insert"
                    : "retain";
                }),
                (n.prototype.rest = function () {
                  if (this.hasNext()) {
                    if (0 === this.offset) return this.ops.slice(this.index);
                    var e = this.offset,
                      t = this.index,
                      i = this.next(),
                      n = this.ops.slice(this.index);
                    return (this.offset = e), (this.index = t), [i].concat(n);
                  }
                  return [];
                }),
                (e.exports = o);
            },
            function (e, t) {
              var i = (function () {
                "use strict";
                function e(e, t) {
                  return null != t && e instanceof t;
                }
                function t(i, r, a, o, d) {
                  function h(i, a) {
                    if (null === i) return null;
                    if (0 === a) return i;
                    var m, v;
                    if ("object" != typeof i) return i;
                    if (e(i, l)) m = new l();
                    else if (e(i, c)) m = new c();
                    else if (e(i, u))
                      m = new u(function (e, t) {
                        i.then(
                          function (t) {
                            e(h(t, a - 1));
                          },
                          function (e) {
                            t(h(e, a - 1));
                          }
                        );
                      });
                    else if (t.__isArray(i)) m = [];
                    else if (t.__isRegExp(i))
                      (m = new RegExp(i.source, s(i))),
                        i.lastIndex && (m.lastIndex = i.lastIndex);
                    else if (t.__isDate(i)) m = new Date(i.getTime());
                    else {
                      if (g && n.isBuffer(i))
                        return (
                          (m = n.allocUnsafe
                            ? n.allocUnsafe(i.length)
                            : new n(i.length)),
                          i.copy(m),
                          m
                        );
                      e(i, Error)
                        ? (m = Object.create(i))
                        : void 0 === o
                        ? ((v = Object.getPrototypeOf(i)),
                          (m = Object.create(v)))
                        : ((m = Object.create(o)), (v = o));
                    }
                    if (r) {
                      var b = f.indexOf(i);
                      if (-1 != b) return p[b];
                      f.push(i), p.push(m);
                    }
                    for (var y in (e(i, l) &&
                      i.forEach(function (e, t) {
                        var i = h(t, a - 1),
                          n = h(e, a - 1);
                        m.set(i, n);
                      }),
                    e(i, c) &&
                      i.forEach(function (e) {
                        var t = h(e, a - 1);
                        m.add(t);
                      }),
                    i)) {
                      var x;
                      v && (x = Object.getOwnPropertyDescriptor(v, y)),
                        (x && null == x.set) || (m[y] = h(i[y], a - 1));
                    }
                    if (Object.getOwnPropertySymbols) {
                      var w = Object.getOwnPropertySymbols(i);
                      for (y = 0; y < w.length; y++) {
                        var E = w[y];
                        (!(S = Object.getOwnPropertyDescriptor(i, E)) ||
                          S.enumerable ||
                          d) &&
                          ((m[E] = h(i[E], a - 1)),
                          S.enumerable ||
                            Object.defineProperty(m, E, { enumerable: !1 }));
                      }
                    }
                    if (d) {
                      var _ = Object.getOwnPropertyNames(i);
                      for (y = 0; y < _.length; y++) {
                        var S,
                          A = _[y];
                        ((S = Object.getOwnPropertyDescriptor(i, A)) &&
                          S.enumerable) ||
                          ((m[A] = h(i[A], a - 1)),
                          Object.defineProperty(m, A, { enumerable: !1 }));
                      }
                    }
                    return m;
                  }
                  "object" == typeof r &&
                    ((a = r.depth),
                    (o = r.prototype),
                    (d = r.includeNonEnumerable),
                    (r = r.circular));
                  var f = [],
                    p = [],
                    g = void 0 !== n;
                  return (
                    void 0 === r && (r = !0),
                    void 0 === a && (a = 1 / 0),
                    h(i, a)
                  );
                }
                function i(e) {
                  return Object.prototype.toString.call(e);
                }
                function r(e) {
                  return "object" == typeof e && "[object Date]" === i(e);
                }
                function a(e) {
                  return "object" == typeof e && "[object Array]" === i(e);
                }
                function o(e) {
                  return "object" == typeof e && "[object RegExp]" === i(e);
                }
                function s(e) {
                  var t = "";
                  return (
                    e.global && (t += "g"),
                    e.ignoreCase && (t += "i"),
                    e.multiline && (t += "m"),
                    t
                  );
                }
                var l, c, u;
                try {
                  l = Map;
                } catch (e) {
                  l = function () {};
                }
                try {
                  c = Set;
                } catch (e) {
                  c = function () {};
                }
                try {
                  u = Promise;
                } catch (e) {
                  u = function () {};
                }
                return (
                  (t.clonePrototype = function (e) {
                    if (null === e) return null;
                    var t = function () {};
                    return (t.prototype = e), new t();
                  }),
                  (t.__objToStr = i),
                  (t.__isDate = r),
                  (t.__isArray = a),
                  (t.__isRegExp = o),
                  (t.__getRegExpFlags = s),
                  t
                );
              })();
              "object" == typeof e && e.exports && (e.exports = i);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e) {
                if (Array.isArray(e)) {
                  for (var t = 0, i = Array(e.length); t < e.length; t++)
                    i[t] = e[t];
                  return i;
                }
                return Array.from(e);
              }
              function a(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function o(e, t) {
                try {
                  t.parentNode;
                } catch (e) {
                  return !1;
                }
                return t instanceof Text && (t = t.parentNode), e.contains(t);
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.default = t.Range = void 0);
              var s = (function () {
                  function e(e, t) {
                    var i = [],
                      n = !0,
                      r = !1,
                      a = void 0;
                    try {
                      for (
                        var o, s = e[Symbol.iterator]();
                        !(n = (o = s.next()).done) &&
                        (i.push(o.value), !t || i.length !== t);
                        n = !0
                      );
                    } catch (e) {
                      (r = !0), (a = e);
                    } finally {
                      try {
                        !n && s.return && s.return();
                      } finally {
                        if (r) throw a;
                      }
                    }
                    return i;
                  }
                  return function (t, i) {
                    if (Array.isArray(t)) return t;
                    if (Symbol.iterator in Object(t)) return e(t, i);
                    throw new TypeError(
                      "Invalid attempt to destructure non-iterable instance"
                    );
                  };
                })(),
                l = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                c = n(i(0)),
                u = n(i(21)),
                d = n(i(12)),
                h = n(i(9)),
                f = (0, n(i(10)).default)("quill:selection"),
                p = function e(t) {
                  var i =
                    arguments.length > 1 && void 0 !== arguments[1]
                      ? arguments[1]
                      : 0;
                  a(this, e), (this.index = t), (this.length = i);
                },
                g = (function () {
                  function e(t, i) {
                    var n = this;
                    a(this, e),
                      (this.emitter = i),
                      (this.scroll = t),
                      (this.composing = !1),
                      (this.mouseDown = !1),
                      (this.root = this.scroll.domNode),
                      (this.cursor = c.default.create("cursor", this)),
                      (this.lastRange = this.savedRange = new p(0, 0)),
                      this.handleComposition(),
                      this.handleDragging(),
                      this.emitter.listenDOM(
                        "selectionchange",
                        document,
                        function () {
                          n.mouseDown ||
                            setTimeout(
                              n.update.bind(n, h.default.sources.USER),
                              1
                            );
                        }
                      ),
                      this.emitter.on(
                        h.default.events.EDITOR_CHANGE,
                        function (e, t) {
                          e === h.default.events.TEXT_CHANGE &&
                            t.length() > 0 &&
                            n.update(h.default.sources.SILENT);
                        }
                      ),
                      this.emitter.on(
                        h.default.events.SCROLL_BEFORE_UPDATE,
                        function () {
                          if (n.hasFocus()) {
                            var e = n.getNativeRange();
                            null != e &&
                              e.start.node !== n.cursor.textNode &&
                              n.emitter.once(
                                h.default.events.SCROLL_UPDATE,
                                function () {
                                  try {
                                    n.setNativeRange(
                                      e.start.node,
                                      e.start.offset,
                                      e.end.node,
                                      e.end.offset
                                    );
                                  } catch (e) {}
                                }
                              );
                          }
                        }
                      ),
                      this.emitter.on(
                        h.default.events.SCROLL_OPTIMIZE,
                        function (e, t) {
                          if (t.range) {
                            var i = t.range,
                              r = i.startNode,
                              a = i.startOffset,
                              o = i.endNode,
                              s = i.endOffset;
                            n.setNativeRange(r, a, o, s);
                          }
                        }
                      ),
                      this.update(h.default.sources.SILENT);
                  }
                  return (
                    l(e, [
                      {
                        key: "handleComposition",
                        value: function () {
                          var e = this;
                          this.root.addEventListener(
                            "compositionstart",
                            function () {
                              e.composing = !0;
                            }
                          ),
                            this.root.addEventListener(
                              "compositionend",
                              function () {
                                if (((e.composing = !1), e.cursor.parent)) {
                                  var t = e.cursor.restore();
                                  if (!t) return;
                                  setTimeout(function () {
                                    e.setNativeRange(
                                      t.startNode,
                                      t.startOffset,
                                      t.endNode,
                                      t.endOffset
                                    );
                                  }, 1);
                                }
                              }
                            );
                        },
                      },
                      {
                        key: "handleDragging",
                        value: function () {
                          var e = this;
                          this.emitter.listenDOM(
                            "mousedown",
                            document.body,
                            function () {
                              e.mouseDown = !0;
                            }
                          ),
                            this.emitter.listenDOM(
                              "mouseup",
                              document.body,
                              function () {
                                (e.mouseDown = !1),
                                  e.update(h.default.sources.USER);
                              }
                            );
                        },
                      },
                      {
                        key: "focus",
                        value: function () {
                          this.hasFocus() ||
                            (this.root.focus(), this.setRange(this.savedRange));
                        },
                      },
                      {
                        key: "format",
                        value: function (e, t) {
                          if (
                            null == this.scroll.whitelist ||
                            this.scroll.whitelist[e]
                          ) {
                            this.scroll.update();
                            var i = this.getNativeRange();
                            if (
                              null != i &&
                              i.native.collapsed &&
                              !c.default.query(e, c.default.Scope.BLOCK)
                            ) {
                              if (i.start.node !== this.cursor.textNode) {
                                var n = c.default.find(i.start.node, !1);
                                if (null == n) return;
                                if (n instanceof c.default.Leaf) {
                                  var r = n.split(i.start.offset);
                                  n.parent.insertBefore(this.cursor, r);
                                } else
                                  n.insertBefore(this.cursor, i.start.node);
                                this.cursor.attach();
                              }
                              this.cursor.format(e, t),
                                this.scroll.optimize(),
                                this.setNativeRange(
                                  this.cursor.textNode,
                                  this.cursor.textNode.data.length
                                ),
                                this.update();
                            }
                          }
                        },
                      },
                      {
                        key: "getBounds",
                        value: function (e) {
                          var t =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : 0,
                            i = this.scroll.length();
                          (e = Math.min(e, i - 1)),
                            (t = Math.min(e + t, i - 1) - e);
                          var n = void 0,
                            r = this.scroll.leaf(e),
                            a = s(r, 2),
                            o = a[0],
                            l = a[1];
                          if (null == o) return null;
                          var c = o.position(l, !0),
                            u = s(c, 2);
                          (n = u[0]), (l = u[1]);
                          var d = document.createRange();
                          if (t > 0) {
                            d.setStart(n, l);
                            var h = this.scroll.leaf(e + t),
                              f = s(h, 2);
                            if (((o = f[0]), (l = f[1]), null == o))
                              return null;
                            var p = o.position(l, !0),
                              g = s(p, 2);
                            return (
                              (n = g[0]),
                              (l = g[1]),
                              d.setEnd(n, l),
                              d.getBoundingClientRect()
                            );
                          }
                          var m = "left",
                            v = void 0;
                          return (
                            n instanceof Text
                              ? (l < n.data.length
                                  ? (d.setStart(n, l), d.setEnd(n, l + 1))
                                  : (d.setStart(n, l - 1),
                                    d.setEnd(n, l),
                                    (m = "right")),
                                (v = d.getBoundingClientRect()))
                              : ((v = o.domNode.getBoundingClientRect()),
                                l > 0 && (m = "right")),
                            {
                              bottom: v.top + v.height,
                              height: v.height,
                              left: v[m],
                              right: v[m],
                              top: v.top,
                              width: 0,
                            }
                          );
                        },
                      },
                      {
                        key: "getNativeRange",
                        value: function () {
                          var e = document.getSelection();
                          if (null == e || e.rangeCount <= 0) return null;
                          var t = e.getRangeAt(0);
                          if (null == t) return null;
                          var i = this.normalizeNative(t);
                          return f.info("getNativeRange", i), i;
                        },
                      },
                      {
                        key: "getRange",
                        value: function () {
                          var e = this.getNativeRange();
                          return null == e
                            ? [null, null]
                            : [this.normalizedToRange(e), e];
                        },
                      },
                      {
                        key: "hasFocus",
                        value: function () {
                          return document.activeElement === this.root;
                        },
                      },
                      {
                        key: "normalizedToRange",
                        value: function (e) {
                          var t = this,
                            i = [[e.start.node, e.start.offset]];
                          e.native.collapsed ||
                            i.push([e.end.node, e.end.offset]);
                          var n = i.map(function (e) {
                              var i = s(e, 2),
                                n = i[0],
                                r = i[1],
                                a = c.default.find(n, !0),
                                o = a.offset(t.scroll);
                              return 0 === r
                                ? o
                                : a instanceof c.default.Container
                                ? o + a.length()
                                : o + a.index(n, r);
                            }),
                            a = Math.min(
                              Math.max.apply(Math, r(n)),
                              this.scroll.length() - 1
                            ),
                            o = Math.min.apply(Math, [a].concat(r(n)));
                          return new p(o, a - o);
                        },
                      },
                      {
                        key: "normalizeNative",
                        value: function (e) {
                          if (
                            !o(this.root, e.startContainer) ||
                            (!e.collapsed && !o(this.root, e.endContainer))
                          )
                            return null;
                          var t = {
                            start: {
                              node: e.startContainer,
                              offset: e.startOffset,
                            },
                            end: { node: e.endContainer, offset: e.endOffset },
                            native: e,
                          };
                          return (
                            [t.start, t.end].forEach(function (e) {
                              for (
                                var t = e.node, i = e.offset;
                                !(t instanceof Text) && t.childNodes.length > 0;

                              )
                                if (t.childNodes.length > i)
                                  (t = t.childNodes[i]), (i = 0);
                                else {
                                  if (t.childNodes.length !== i) break;
                                  i =
                                    (t = t.lastChild) instanceof Text
                                      ? t.data.length
                                      : t.childNodes.length + 1;
                                }
                              (e.node = t), (e.offset = i);
                            }),
                            t
                          );
                        },
                      },
                      {
                        key: "rangeToNative",
                        value: function (e) {
                          var t = this,
                            i = e.collapsed
                              ? [e.index]
                              : [e.index, e.index + e.length],
                            n = [],
                            r = this.scroll.length();
                          return (
                            i.forEach(function (e, i) {
                              e = Math.min(r - 1, e);
                              var a = void 0,
                                o = t.scroll.leaf(e),
                                l = s(o, 2),
                                c = l[0],
                                u = l[1],
                                d = c.position(u, 0 !== i),
                                h = s(d, 2);
                              (a = h[0]), (u = h[1]), n.push(a, u);
                            }),
                            n.length < 2 && (n = n.concat(n)),
                            n
                          );
                        },
                      },
                      {
                        key: "scrollIntoView",
                        value: function (e) {
                          var t = this.lastRange;
                          if (null != t) {
                            var i = this.getBounds(t.index, t.length);
                            if (null != i) {
                              var n = this.scroll.length() - 1,
                                r = this.scroll.line(Math.min(t.index, n)),
                                a = s(r, 1)[0],
                                o = a;
                              if (t.length > 0) {
                                var l = this.scroll.line(
                                  Math.min(t.index + t.length, n)
                                );
                                o = s(l, 1)[0];
                              }
                              if (null != a && null != o) {
                                var c = e.getBoundingClientRect();
                                i.top < c.top
                                  ? (e.scrollTop -= c.top - i.top)
                                  : i.bottom > c.bottom &&
                                    (e.scrollTop += i.bottom - c.bottom);
                              }
                            }
                          }
                        },
                      },
                      {
                        key: "setNativeRange",
                        value: function (e, t) {
                          var i =
                              arguments.length > 2 && void 0 !== arguments[2]
                                ? arguments[2]
                                : e,
                            n =
                              arguments.length > 3 && void 0 !== arguments[3]
                                ? arguments[3]
                                : t,
                            r =
                              arguments.length > 4 &&
                              void 0 !== arguments[4] &&
                              arguments[4];
                          if (
                            (f.info("setNativeRange", e, t, i, n),
                            null == e ||
                              (null != this.root.parentNode &&
                                null != e.parentNode &&
                                null != i.parentNode))
                          ) {
                            var a = document.getSelection();
                            if (null != a)
                              if (null != e) {
                                this.hasFocus() || this.root.focus();
                                var o = (this.getNativeRange() || {}).native;
                                if (
                                  null == o ||
                                  r ||
                                  e !== o.startContainer ||
                                  t !== o.startOffset ||
                                  i !== o.endContainer ||
                                  n !== o.endOffset
                                ) {
                                  "BR" == e.tagName &&
                                    ((t = [].indexOf.call(
                                      e.parentNode.childNodes,
                                      e
                                    )),
                                    (e = e.parentNode)),
                                    "BR" == i.tagName &&
                                      ((n = [].indexOf.call(
                                        i.parentNode.childNodes,
                                        i
                                      )),
                                      (i = i.parentNode));
                                  var s = document.createRange();
                                  s.setStart(e, t),
                                    s.setEnd(i, n),
                                    a.removeAllRanges(),
                                    a.addRange(s);
                                }
                              } else
                                a.removeAllRanges(),
                                  this.root.blur(),
                                  document.body.focus();
                          }
                        },
                      },
                      {
                        key: "setRange",
                        value: function (e) {
                          var t =
                              arguments.length > 1 &&
                              void 0 !== arguments[1] &&
                              arguments[1],
                            i =
                              arguments.length > 2 && void 0 !== arguments[2]
                                ? arguments[2]
                                : h.default.sources.API;
                          if (
                            ("string" == typeof t && ((i = t), (t = !1)),
                            f.info("setRange", e),
                            null != e)
                          ) {
                            var n = this.rangeToNative(e);
                            this.setNativeRange.apply(this, r(n).concat([t]));
                          } else this.setNativeRange(null);
                          this.update(i);
                        },
                      },
                      {
                        key: "update",
                        value: function () {
                          var e =
                              arguments.length > 0 && void 0 !== arguments[0]
                                ? arguments[0]
                                : h.default.sources.USER,
                            t = this.lastRange,
                            i = this.getRange(),
                            n = s(i, 2),
                            r = n[0],
                            a = n[1];
                          if (
                            ((this.lastRange = r),
                            null != this.lastRange &&
                              (this.savedRange = this.lastRange),
                            !(0, d.default)(t, this.lastRange))
                          ) {
                            var o;
                            !this.composing &&
                              null != a &&
                              a.native.collapsed &&
                              a.start.node !== this.cursor.textNode &&
                              this.cursor.restore();
                            var l,
                              c = [
                                h.default.events.SELECTION_CHANGE,
                                (0, u.default)(this.lastRange),
                                (0, u.default)(t),
                                e,
                              ];
                            (o = this.emitter).emit.apply(
                              o,
                              [h.default.events.EDITOR_CHANGE].concat(c)
                            ),
                              e !== h.default.sources.SILENT &&
                                (l = this.emitter).emit.apply(l, c);
                          }
                        },
                      },
                    ]),
                    e
                  );
                })();
              (t.Range = p), (t.default = g);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var s = n(i(0)),
                l = i(3),
                c = n(l),
                u = (function (e) {
                  function t() {
                    return (
                      r(this, t),
                      a(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return o(t, e), t;
                })(s.default.Container);
              (u.allowedChildren = [c.default, l.BlockEmbed, u]),
                (t.default = u);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.ColorStyle = t.ColorClass = t.ColorAttributor = void 0);
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(0)),
                c = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    a(t, e),
                    o(t, [
                      {
                        key: "value",
                        value: function (e) {
                          var i = s(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "value",
                            this
                          ).call(this, e);
                          return i.startsWith("rgb(")
                            ? "#" +
                                (i = i
                                  .replace(/^[^\d]+/, "")
                                  .replace(/[^\d]+$/, ""))
                                  .split(",")
                                  .map(function (e) {
                                    return (
                                      "00" + parseInt(e).toString(16)
                                    ).slice(-2);
                                  })
                                  .join("")
                            : i;
                        },
                      },
                    ]),
                    t
                  );
                })(l.default.Attributor.Style),
                u = new l.default.Attributor.Class("color", "ql-color", {
                  scope: l.default.Scope.INLINE,
                }),
                d = new c("color", "color", { scope: l.default.Scope.INLINE });
              (t.ColorAttributor = c), (t.ColorClass = u), (t.ColorStyle = d);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t, i) {
                return (
                  t in e
                    ? Object.defineProperty(e, t, {
                        value: i,
                        enumerable: !0,
                        configurable: !0,
                        writable: !0,
                      })
                    : (e[t] = i),
                  e
                );
              }
              function a(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function o(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function s(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              function l(e, t) {
                var i,
                  n = e === I.keys.LEFT ? "prefix" : "suffix";
                return (
                  r((i = { key: e, shiftKey: t, altKey: null }), n, /^$/),
                  r(i, "handler", function (i) {
                    var n = i.index;
                    e === I.keys.RIGHT && (n += i.length + 1);
                    var r = this.quill.getLeaf(n);
                    return !(
                      v(r, 1)[0] instanceof S.default.Embed &&
                      (e === I.keys.LEFT
                        ? t
                          ? this.quill.setSelection(
                              i.index - 1,
                              i.length + 1,
                              A.default.sources.USER
                            )
                          : this.quill.setSelection(
                              i.index - 1,
                              A.default.sources.USER
                            )
                        : t
                        ? this.quill.setSelection(
                            i.index,
                            i.length + 1,
                            A.default.sources.USER
                          )
                        : this.quill.setSelection(
                            i.index + i.length + 1,
                            A.default.sources.USER
                          ),
                      1)
                    );
                  }),
                  i
                );
              }
              function c(e, t) {
                if (!(0 === e.index || this.quill.getLength() <= 1)) {
                  var i = this.quill.getLine(e.index),
                    n = v(i, 1)[0],
                    r = {};
                  if (0 === t.offset) {
                    var a = this.quill.getLine(e.index - 1),
                      o = v(a, 1)[0];
                    if (null != o && o.length() > 1) {
                      var s = n.formats(),
                        l = this.quill.getFormat(e.index - 1, 1);
                      r = _.default.attributes.diff(s, l) || {};
                    }
                  }
                  var c = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)
                    ? 2
                    : 1;
                  this.quill.deleteText(e.index - c, c, A.default.sources.USER),
                    Object.keys(r).length > 0 &&
                      this.quill.formatLine(
                        e.index - c,
                        c,
                        r,
                        A.default.sources.USER
                      ),
                    this.quill.focus();
                }
              }
              function u(e, t) {
                var i = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)
                  ? 2
                  : 1;
                if (!(e.index >= this.quill.getLength() - i)) {
                  var n = {},
                    r = 0,
                    a = this.quill.getLine(e.index),
                    o = v(a, 1)[0];
                  if (t.offset >= o.length() - 1) {
                    var s = this.quill.getLine(e.index + 1),
                      l = v(s, 1)[0];
                    if (l) {
                      var c = o.formats(),
                        u = this.quill.getFormat(e.index, 1);
                      (n = _.default.attributes.diff(c, u) || {}),
                        (r = l.length());
                    }
                  }
                  this.quill.deleteText(e.index, i, A.default.sources.USER),
                    Object.keys(n).length > 0 &&
                      this.quill.formatLine(
                        e.index + r - 1,
                        i,
                        n,
                        A.default.sources.USER
                      );
                }
              }
              function d(e) {
                var t = this.quill.getLines(e),
                  i = {};
                if (t.length > 1) {
                  var n = t[0].formats(),
                    r = t[t.length - 1].formats();
                  i = _.default.attributes.diff(r, n) || {};
                }
                this.quill.deleteText(e, A.default.sources.USER),
                  Object.keys(i).length > 0 &&
                    this.quill.formatLine(
                      e.index,
                      1,
                      i,
                      A.default.sources.USER
                    ),
                  this.quill.setSelection(e.index, A.default.sources.SILENT),
                  this.quill.focus();
              }
              function h(e, t) {
                var i = this;
                e.length > 0 && this.quill.scroll.deleteAt(e.index, e.length);
                var n = Object.keys(t.format).reduce(function (e, i) {
                  return (
                    S.default.query(i, S.default.Scope.BLOCK) &&
                      !Array.isArray(t.format[i]) &&
                      (e[i] = t.format[i]),
                    e
                  );
                }, {});
                this.quill.insertText(e.index, "\n", n, A.default.sources.USER),
                  this.quill.setSelection(
                    e.index + 1,
                    A.default.sources.SILENT
                  ),
                  this.quill.focus(),
                  Object.keys(t.format).forEach(function (e) {
                    null == n[e] &&
                      (Array.isArray(t.format[e]) ||
                        ("link" !== e &&
                          i.quill.format(
                            e,
                            t.format[e],
                            A.default.sources.USER
                          )));
                  });
              }
              function f(e) {
                return {
                  key: I.keys.TAB,
                  shiftKey: !e,
                  format: { "code-block": !0 },
                  handler: function (t) {
                    var i = S.default.query("code-block"),
                      n = t.index,
                      r = t.length,
                      a = this.quill.scroll.descendant(i, n),
                      o = v(a, 2),
                      s = o[0],
                      l = o[1];
                    if (null != s) {
                      var c = this.quill.getIndex(s),
                        u = s.newlineIndex(l, !0) + 1,
                        d = s.newlineIndex(c + l + r),
                        h = s.domNode.textContent.slice(u, d).split("\n");
                      (l = 0),
                        h.forEach(function (t, a) {
                          e
                            ? (s.insertAt(u + l, i.TAB),
                              (l += i.TAB.length),
                              0 === a
                                ? (n += i.TAB.length)
                                : (r += i.TAB.length))
                            : t.startsWith(i.TAB) &&
                              (s.deleteAt(u + l, i.TAB.length),
                              (l -= i.TAB.length),
                              0 === a
                                ? (n -= i.TAB.length)
                                : (r -= i.TAB.length)),
                            (l += t.length + 1);
                        }),
                        this.quill.update(A.default.sources.USER),
                        this.quill.setSelection(n, r, A.default.sources.SILENT);
                    }
                  },
                };
              }
              function p(e) {
                return {
                  key: e[0].toUpperCase(),
                  shortKey: !0,
                  handler: function (t, i) {
                    this.quill.format(e, !i.format[e], A.default.sources.USER);
                  },
                };
              }
              function g(e) {
                if ("string" == typeof e || "number" == typeof e)
                  return g({ key: e });
                if (
                  ("object" === (void 0 === e ? "undefined" : m(e)) &&
                    (e = (0, y.default)(e, !1)),
                  "string" == typeof e.key)
                )
                  if (null != I.keys[e.key.toUpperCase()])
                    e.key = I.keys[e.key.toUpperCase()];
                  else {
                    if (1 !== e.key.length) return null;
                    e.key = e.key.toUpperCase().charCodeAt(0);
                  }
                return (
                  e.shortKey && ((e[O] = e.shortKey), delete e.shortKey), e
                );
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.SHORTKEY = t.default = void 0);
              var m =
                  "function" == typeof Symbol &&
                  "symbol" == typeof Symbol.iterator
                    ? function (e) {
                        return typeof e;
                      }
                    : function (e) {
                        return e &&
                          "function" == typeof Symbol &&
                          e.constructor === Symbol &&
                          e !== Symbol.prototype
                          ? "symbol"
                          : typeof e;
                      },
                v = (function () {
                  function e(e, t) {
                    var i = [],
                      n = !0,
                      r = !1,
                      a = void 0;
                    try {
                      for (
                        var o, s = e[Symbol.iterator]();
                        !(n = (o = s.next()).done) &&
                        (i.push(o.value), !t || i.length !== t);
                        n = !0
                      );
                    } catch (e) {
                      (r = !0), (a = e);
                    } finally {
                      try {
                        !n && s.return && s.return();
                      } finally {
                        if (r) throw a;
                      }
                    }
                    return i;
                  }
                  return function (t, i) {
                    if (Array.isArray(t)) return t;
                    if (Symbol.iterator in Object(t)) return e(t, i);
                    throw new TypeError(
                      "Invalid attempt to destructure non-iterable instance"
                    );
                  };
                })(),
                b = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                y = n(i(21)),
                x = n(i(12)),
                w = n(i(2)),
                E = n(i(4)),
                _ = n(i(20)),
                S = n(i(0)),
                A = n(i(6)),
                k = n(i(10)),
                T = n(i(7)),
                C = (0, k.default)("quill:keyboard"),
                O = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey",
                I = (function (e) {
                  function t(e, i) {
                    a(this, t);
                    var n = o(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, i)
                    );
                    return (
                      (n.bindings = {}),
                      Object.keys(n.options.bindings).forEach(function (t) {
                        ("list autofill" !== t ||
                          null == e.scroll.whitelist ||
                          e.scroll.whitelist.list) &&
                          n.options.bindings[t] &&
                          n.addBinding(n.options.bindings[t]);
                      }),
                      n.addBinding({ key: t.keys.ENTER, shiftKey: null }, h),
                      n.addBinding(
                        {
                          key: t.keys.ENTER,
                          metaKey: null,
                          ctrlKey: null,
                          altKey: null,
                        },
                        function () {}
                      ),
                      /Firefox/i.test(navigator.userAgent)
                        ? (n.addBinding(
                            { key: t.keys.BACKSPACE },
                            { collapsed: !0 },
                            c
                          ),
                          n.addBinding(
                            { key: t.keys.DELETE },
                            { collapsed: !0 },
                            u
                          ))
                        : (n.addBinding(
                            { key: t.keys.BACKSPACE },
                            { collapsed: !0, prefix: /^.?$/ },
                            c
                          ),
                          n.addBinding(
                            { key: t.keys.DELETE },
                            { collapsed: !0, suffix: /^.?$/ },
                            u
                          )),
                      n.addBinding(
                        { key: t.keys.BACKSPACE },
                        { collapsed: !1 },
                        d
                      ),
                      n.addBinding(
                        { key: t.keys.DELETE },
                        { collapsed: !1 },
                        d
                      ),
                      n.addBinding(
                        {
                          key: t.keys.BACKSPACE,
                          altKey: null,
                          ctrlKey: null,
                          metaKey: null,
                          shiftKey: null,
                        },
                        { collapsed: !0, offset: 0 },
                        c
                      ),
                      n.listen(),
                      n
                    );
                  }
                  return (
                    s(t, e),
                    b(t, null, [
                      {
                        key: "match",
                        value: function (e, t) {
                          return (
                            (t = g(t)),
                            !["altKey", "ctrlKey", "metaKey", "shiftKey"].some(
                              function (i) {
                                return !!t[i] !== e[i] && null !== t[i];
                              }
                            ) && t.key === (e.which || e.keyCode)
                          );
                        },
                      },
                    ]),
                    b(t, [
                      {
                        key: "addBinding",
                        value: function (e) {
                          var t =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : {},
                            i =
                              arguments.length > 2 && void 0 !== arguments[2]
                                ? arguments[2]
                                : {},
                            n = g(e);
                          if (null == n || null == n.key)
                            return C.warn(
                              "Attempted to add invalid keyboard binding",
                              n
                            );
                          "function" == typeof t && (t = { handler: t }),
                            "function" == typeof i && (i = { handler: i }),
                            (n = (0, w.default)(n, t, i)),
                            (this.bindings[n.key] = this.bindings[n.key] || []),
                            this.bindings[n.key].push(n);
                        },
                      },
                      {
                        key: "listen",
                        value: function () {
                          var e = this;
                          this.quill.root.addEventListener(
                            "keydown",
                            function (i) {
                              if (!i.defaultPrevented) {
                                var n = i.which || i.keyCode,
                                  r = (e.bindings[n] || []).filter(function (
                                    e
                                  ) {
                                    return t.match(i, e);
                                  });
                                if (0 !== r.length) {
                                  var a = e.quill.getSelection();
                                  if (null != a && e.quill.hasFocus()) {
                                    var o = e.quill.getLine(a.index),
                                      s = v(o, 2),
                                      l = s[0],
                                      c = s[1],
                                      u = e.quill.getLeaf(a.index),
                                      d = v(u, 2),
                                      h = d[0],
                                      f = d[1],
                                      p =
                                        0 === a.length
                                          ? [h, f]
                                          : e.quill.getLeaf(a.index + a.length),
                                      g = v(p, 2),
                                      b = g[0],
                                      y = g[1],
                                      w =
                                        h instanceof S.default.Text
                                          ? h.value().slice(0, f)
                                          : "",
                                      E =
                                        b instanceof S.default.Text
                                          ? b.value().slice(y)
                                          : "",
                                      _ = {
                                        collapsed: 0 === a.length,
                                        empty:
                                          0 === a.length && l.length() <= 1,
                                        format: e.quill.getFormat(a),
                                        offset: c,
                                        prefix: w,
                                        suffix: E,
                                      };
                                    r.some(function (t) {
                                      if (
                                        null != t.collapsed &&
                                        t.collapsed !== _.collapsed
                                      )
                                        return !1;
                                      if (
                                        null != t.empty &&
                                        t.empty !== _.empty
                                      )
                                        return !1;
                                      if (
                                        null != t.offset &&
                                        t.offset !== _.offset
                                      )
                                        return !1;
                                      if (Array.isArray(t.format)) {
                                        if (
                                          t.format.every(function (e) {
                                            return null == _.format[e];
                                          })
                                        )
                                          return !1;
                                      } else if (
                                        "object" === m(t.format) &&
                                        !Object.keys(t.format).every(function (
                                          e
                                        ) {
                                          return !0 === t.format[e]
                                            ? null != _.format[e]
                                            : !1 === t.format[e]
                                            ? null == _.format[e]
                                            : (0, x.default)(
                                                t.format[e],
                                                _.format[e]
                                              );
                                        })
                                      )
                                        return !1;
                                      return !(
                                        (null != t.prefix &&
                                          !t.prefix.test(_.prefix)) ||
                                        (null != t.suffix &&
                                          !t.suffix.test(_.suffix)) ||
                                        !0 === t.handler.call(e, a, _)
                                      );
                                    }) && i.preventDefault();
                                  }
                                }
                              }
                            }
                          );
                        },
                      },
                    ]),
                    t
                  );
                })(T.default);
              (I.keys = {
                BACKSPACE: 8,
                TAB: 9,
                ENTER: 13,
                ESCAPE: 27,
                LEFT: 37,
                UP: 38,
                RIGHT: 39,
                DOWN: 40,
                DELETE: 46,
              }),
                (I.DEFAULTS = {
                  bindings: {
                    bold: p("bold"),
                    italic: p("italic"),
                    underline: p("underline"),
                    indent: {
                      key: I.keys.TAB,
                      format: ["blockquote", "indent", "list"],
                      handler: function (e, t) {
                        if (t.collapsed && 0 !== t.offset) return !0;
                        this.quill.format(
                          "indent",
                          "+1",
                          A.default.sources.USER
                        );
                      },
                    },
                    outdent: {
                      key: I.keys.TAB,
                      shiftKey: !0,
                      format: ["blockquote", "indent", "list"],
                      handler: function (e, t) {
                        if (t.collapsed && 0 !== t.offset) return !0;
                        this.quill.format(
                          "indent",
                          "-1",
                          A.default.sources.USER
                        );
                      },
                    },
                    "outdent backspace": {
                      key: I.keys.BACKSPACE,
                      collapsed: !0,
                      shiftKey: null,
                      metaKey: null,
                      ctrlKey: null,
                      altKey: null,
                      format: ["indent", "list"],
                      offset: 0,
                      handler: function (e, t) {
                        null != t.format.indent
                          ? this.quill.format(
                              "indent",
                              "-1",
                              A.default.sources.USER
                            )
                          : null != t.format.list &&
                            this.quill.format(
                              "list",
                              !1,
                              A.default.sources.USER
                            );
                      },
                    },
                    "indent code-block": f(!0),
                    "outdent code-block": f(!1),
                    "remove tab": {
                      key: I.keys.TAB,
                      shiftKey: !0,
                      collapsed: !0,
                      prefix: /\t$/,
                      handler: function (e) {
                        this.quill.deleteText(
                          e.index - 1,
                          1,
                          A.default.sources.USER
                        );
                      },
                    },
                    tab: {
                      key: I.keys.TAB,
                      handler: function (e) {
                        this.quill.history.cutoff();
                        var t = new E.default()
                          .retain(e.index)
                          .delete(e.length)
                          .insert("\t");
                        this.quill.updateContents(t, A.default.sources.USER),
                          this.quill.history.cutoff(),
                          this.quill.setSelection(
                            e.index + 1,
                            A.default.sources.SILENT
                          );
                      },
                    },
                    "list empty enter": {
                      key: I.keys.ENTER,
                      collapsed: !0,
                      format: ["list"],
                      empty: !0,
                      handler: function (e, t) {
                        this.quill.format("list", !1, A.default.sources.USER),
                          t.format.indent &&
                            this.quill.format(
                              "indent",
                              !1,
                              A.default.sources.USER
                            );
                      },
                    },
                    "checklist enter": {
                      key: I.keys.ENTER,
                      collapsed: !0,
                      format: { list: "checked" },
                      handler: function (e) {
                        var t = this.quill.getLine(e.index),
                          i = v(t, 2),
                          n = i[0],
                          r = i[1],
                          a = (0, w.default)({}, n.formats(), {
                            list: "checked",
                          }),
                          o = new E.default()
                            .retain(e.index)
                            .insert("\n", a)
                            .retain(n.length() - r - 1)
                            .retain(1, { list: "unchecked" });
                        this.quill.updateContents(o, A.default.sources.USER),
                          this.quill.setSelection(
                            e.index + 1,
                            A.default.sources.SILENT
                          ),
                          this.quill.scrollIntoView();
                      },
                    },
                    "header enter": {
                      key: I.keys.ENTER,
                      collapsed: !0,
                      format: ["header"],
                      suffix: /^$/,
                      handler: function (e, t) {
                        var i = this.quill.getLine(e.index),
                          n = v(i, 2),
                          r = n[0],
                          a = n[1],
                          o = new E.default()
                            .retain(e.index)
                            .insert("\n", t.format)
                            .retain(r.length() - a - 1)
                            .retain(1, { header: null });
                        this.quill.updateContents(o, A.default.sources.USER),
                          this.quill.setSelection(
                            e.index + 1,
                            A.default.sources.SILENT
                          ),
                          this.quill.scrollIntoView();
                      },
                    },
                    "list autofill": {
                      key: " ",
                      collapsed: !0,
                      format: { list: !1 },
                      prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
                      handler: function (e, t) {
                        var i = t.prefix.length,
                          n = this.quill.getLine(e.index),
                          r = v(n, 2),
                          a = r[0],
                          o = r[1];
                        if (o > i) return !0;
                        var s = void 0;
                        switch (t.prefix.trim()) {
                          case "[]":
                          case "[ ]":
                            s = "unchecked";
                            break;
                          case "[x]":
                            s = "checked";
                            break;
                          case "-":
                          case "*":
                            s = "bullet";
                            break;
                          default:
                            s = "ordered";
                        }
                        this.quill.insertText(
                          e.index,
                          " ",
                          A.default.sources.USER
                        ),
                          this.quill.history.cutoff();
                        var l = new E.default()
                          .retain(e.index - o)
                          .delete(i + 1)
                          .retain(a.length() - 2 - o)
                          .retain(1, { list: s });
                        this.quill.updateContents(l, A.default.sources.USER),
                          this.quill.history.cutoff(),
                          this.quill.setSelection(
                            e.index - i,
                            A.default.sources.SILENT
                          );
                      },
                    },
                    "code exit": {
                      key: I.keys.ENTER,
                      collapsed: !0,
                      format: ["code-block"],
                      prefix: /\n\n$/,
                      suffix: /^\s+$/,
                      handler: function (e) {
                        var t = this.quill.getLine(e.index),
                          i = v(t, 2),
                          n = i[0],
                          r = i[1],
                          a = new E.default()
                            .retain(e.index + n.length() - r - 2)
                            .retain(1, { "code-block": null })
                            .delete(1);
                        this.quill.updateContents(a, A.default.sources.USER);
                      },
                    },
                    "embed left": l(I.keys.LEFT, !1),
                    "embed left shift": l(I.keys.LEFT, !0),
                    "embed right": l(I.keys.RIGHT, !1),
                    "embed right shift": l(I.keys.RIGHT, !0),
                  },
                }),
                (t.default = I),
                (t.SHORTKEY = O);
            },
            function (e, t, i) {
              "use strict";
              e.exports = {
                align: {
                  "": i(75),
                  center: i(76),
                  right: i(77),
                  justify: i(78),
                },
                background: i(79),
                blockquote: i(80),
                bold: i(81),
                clean: i(82),
                code: i(40),
                "code-block": i(40),
                color: i(83),
                direction: { "": i(84), rtl: i(85) },
                float: {
                  center: i(86),
                  full: i(87),
                  left: i(88),
                  right: i(89),
                },
                formula: i(90),
                header: { 1: i(91), 2: i(92) },
                italic: i(93),
                image: i(94),
                indent: { "+1": i(95), "-1": i(96) },
                link: i(97),
                list: { ordered: i(98), bullet: i(99), check: i(100) },
                script: { sub: i(101), super: i(102) },
                strike: i(103),
                underline: i(104),
                video: i(105),
              };
            },
            function (e, t, i) {
              "use strict";
              Object.defineProperty(t, "__esModule", { value: !0 });
              var n = i(1),
                r = (function () {
                  function e(e) {
                    (this.domNode = e),
                      (this.domNode[n.DATA_KEY] = { blot: this });
                  }
                  return (
                    Object.defineProperty(e.prototype, "statics", {
                      get: function () {
                        return this.constructor;
                      },
                      enumerable: !0,
                      configurable: !0,
                    }),
                    (e.create = function (e) {
                      if (null == this.tagName)
                        throw new n.ParchmentError(
                          "Blot definition missing tagName"
                        );
                      var t;
                      return (
                        Array.isArray(this.tagName)
                          ? ("string" == typeof e &&
                              ((e = e.toUpperCase()),
                              parseInt(e).toString() === e &&
                                (e = parseInt(e))),
                            (t =
                              "number" == typeof e
                                ? document.createElement(this.tagName[e - 1])
                                : this.tagName.indexOf(e) > -1
                                ? document.createElement(e)
                                : document.createElement(this.tagName[0])))
                          : (t = document.createElement(this.tagName)),
                        this.className && t.classList.add(this.className),
                        t
                      );
                    }),
                    (e.prototype.attach = function () {
                      null != this.parent && (this.scroll = this.parent.scroll);
                    }),
                    (e.prototype.clone = function () {
                      var e = this.domNode.cloneNode(!1);
                      return n.create(e);
                    }),
                    (e.prototype.detach = function () {
                      null != this.parent && this.parent.removeChild(this),
                        delete this.domNode[n.DATA_KEY];
                    }),
                    (e.prototype.deleteAt = function (e, t) {
                      this.isolate(e, t).remove();
                    }),
                    (e.prototype.formatAt = function (e, t, i, r) {
                      var a = this.isolate(e, t);
                      if (null != n.query(i, n.Scope.BLOT) && r) a.wrap(i, r);
                      else if (null != n.query(i, n.Scope.ATTRIBUTE)) {
                        var o = n.create(this.statics.scope);
                        a.wrap(o), o.format(i, r);
                      }
                    }),
                    (e.prototype.insertAt = function (e, t, i) {
                      var r = null == i ? n.create("text", t) : n.create(t, i),
                        a = this.split(e);
                      this.parent.insertBefore(r, a);
                    }),
                    (e.prototype.insertInto = function (e, t) {
                      void 0 === t && (t = null),
                        null != this.parent &&
                          this.parent.children.remove(this);
                      var i = null;
                      e.children.insertBefore(this, t),
                        null != t && (i = t.domNode),
                        (this.domNode.parentNode == e.domNode &&
                          this.domNode.nextSibling == i) ||
                          e.domNode.insertBefore(this.domNode, i),
                        (this.parent = e),
                        this.attach();
                    }),
                    (e.prototype.isolate = function (e, t) {
                      var i = this.split(e);
                      return i.split(t), i;
                    }),
                    (e.prototype.length = function () {
                      return 1;
                    }),
                    (e.prototype.offset = function (e) {
                      return (
                        void 0 === e && (e = this.parent),
                        null == this.parent || this == e
                          ? 0
                          : this.parent.children.offset(this) +
                            this.parent.offset(e)
                      );
                    }),
                    (e.prototype.optimize = function (e) {
                      null != this.domNode[n.DATA_KEY] &&
                        delete this.domNode[n.DATA_KEY].mutations;
                    }),
                    (e.prototype.remove = function () {
                      null != this.domNode.parentNode &&
                        this.domNode.parentNode.removeChild(this.domNode),
                        this.detach();
                    }),
                    (e.prototype.replace = function (e) {
                      null != e.parent &&
                        (e.parent.insertBefore(this, e.next), e.remove());
                    }),
                    (e.prototype.replaceWith = function (e, t) {
                      var i = "string" == typeof e ? n.create(e, t) : e;
                      return i.replace(this), i;
                    }),
                    (e.prototype.split = function (e, t) {
                      return 0 === e ? this : this.next;
                    }),
                    (e.prototype.update = function (e, t) {}),
                    (e.prototype.wrap = function (e, t) {
                      var i = "string" == typeof e ? n.create(e, t) : e;
                      return (
                        null != this.parent &&
                          this.parent.insertBefore(i, this.next),
                        i.appendChild(this),
                        i
                      );
                    }),
                    (e.blotName = "abstract"),
                    e
                  );
                })();
              t.default = r;
            },
            function (e, t, i) {
              "use strict";
              Object.defineProperty(t, "__esModule", { value: !0 });
              var n = i(11),
                r = i(29),
                a = i(30),
                o = i(1),
                s = (function () {
                  function e(e) {
                    (this.attributes = {}), (this.domNode = e), this.build();
                  }
                  return (
                    (e.prototype.attribute = function (e, t) {
                      t
                        ? e.add(this.domNode, t) &&
                          (null != e.value(this.domNode)
                            ? (this.attributes[e.attrName] = e)
                            : delete this.attributes[e.attrName])
                        : (e.remove(this.domNode),
                          delete this.attributes[e.attrName]);
                    }),
                    (e.prototype.build = function () {
                      var e = this;
                      this.attributes = {};
                      var t = n.default.keys(this.domNode),
                        i = r.default.keys(this.domNode),
                        s = a.default.keys(this.domNode);
                      t.concat(i)
                        .concat(s)
                        .forEach(function (t) {
                          var i = o.query(t, o.Scope.ATTRIBUTE);
                          i instanceof n.default &&
                            (e.attributes[i.attrName] = i);
                        });
                    }),
                    (e.prototype.copy = function (e) {
                      var t = this;
                      Object.keys(this.attributes).forEach(function (i) {
                        var n = t.attributes[i].value(t.domNode);
                        e.format(i, n);
                      });
                    }),
                    (e.prototype.move = function (e) {
                      var t = this;
                      this.copy(e),
                        Object.keys(this.attributes).forEach(function (e) {
                          t.attributes[e].remove(t.domNode);
                        }),
                        (this.attributes = {});
                    }),
                    (e.prototype.values = function () {
                      var e = this;
                      return Object.keys(this.attributes).reduce(function (
                        t,
                        i
                      ) {
                        return (t[i] = e.attributes[i].value(e.domNode)), t;
                      },
                      {});
                    }),
                    e
                  );
                })();
              t.default = s;
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                return (e.getAttribute("class") || "")
                  .split(/\s+/)
                  .filter(function (e) {
                    return 0 === e.indexOf(t + "-");
                  });
              }
              var r =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var a = (function (e) {
                function t() {
                  return (null !== e && e.apply(this, arguments)) || this;
                }
                return (
                  r(t, e),
                  (t.keys = function (e) {
                    return (e.getAttribute("class") || "")
                      .split(/\s+/)
                      .map(function (e) {
                        return e.split("-").slice(0, -1).join("-");
                      });
                  }),
                  (t.prototype.add = function (e, t) {
                    return (
                      !!this.canAdd(e, t) &&
                      (this.remove(e),
                      e.classList.add(this.keyName + "-" + t),
                      !0)
                    );
                  }),
                  (t.prototype.remove = function (e) {
                    n(e, this.keyName).forEach(function (t) {
                      e.classList.remove(t);
                    }),
                      0 === e.classList.length && e.removeAttribute("class");
                  }),
                  (t.prototype.value = function (e) {
                    var t = (n(e, this.keyName)[0] || "").slice(
                      this.keyName.length + 1
                    );
                    return this.canAdd(e, t) ? t : "";
                  }),
                  t
                );
              })(i(11).default);
              t.default = a;
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                var t = e.split("-"),
                  i = t
                    .slice(1)
                    .map(function (e) {
                      return e[0].toUpperCase() + e.slice(1);
                    })
                    .join("");
                return t[0] + i;
              }
              var r =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var a = (function (e) {
                function t() {
                  return (null !== e && e.apply(this, arguments)) || this;
                }
                return (
                  r(t, e),
                  (t.keys = function (e) {
                    return (e.getAttribute("style") || "")
                      .split(";")
                      .map(function (e) {
                        return e.split(":")[0].trim();
                      });
                  }),
                  (t.prototype.add = function (e, t) {
                    return (
                      !!this.canAdd(e, t) &&
                      ((e.style[n(this.keyName)] = t), !0)
                    );
                  }),
                  (t.prototype.remove = function (e) {
                    (e.style[n(this.keyName)] = ""),
                      e.getAttribute("style") || e.removeAttribute("style");
                  }),
                  (t.prototype.value = function (e) {
                    var t = e.style[n(this.keyName)];
                    return this.canAdd(e, t) ? t : "";
                  }),
                  t
                );
              })(i(11).default);
              t.default = a;
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var s = (function () {
                  function e(e, t) {
                    var i = [],
                      n = !0,
                      r = !1,
                      a = void 0;
                    try {
                      for (
                        var o, s = e[Symbol.iterator]();
                        !(n = (o = s.next()).done) &&
                        (i.push(o.value), !t || i.length !== t);
                        n = !0
                      );
                    } catch (e) {
                      (r = !0), (a = e);
                    } finally {
                      try {
                        !n && s.return && s.return();
                      } finally {
                        if (r) throw a;
                      }
                    }
                    return i;
                  }
                  return function (t, i) {
                    if (Array.isArray(t)) return t;
                    if (Symbol.iterator in Object(t)) return e(t, i);
                    throw new TypeError(
                      "Invalid attempt to destructure non-iterable instance"
                    );
                  };
                })(),
                l = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                c = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                u = n(i(0)),
                d = n(i(8)),
                h = (function (e) {
                  function t(e, i) {
                    r(this, t);
                    var n = a(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)
                    );
                    return (
                      (n.selection = i),
                      (n.textNode = document.createTextNode(t.CONTENTS)),
                      n.domNode.appendChild(n.textNode),
                      (n._length = 0),
                      n
                    );
                  }
                  return (
                    o(t, e),
                    c(t, null, [{ key: "value", value: function () {} }]),
                    c(t, [
                      {
                        key: "detach",
                        value: function () {
                          null != this.parent && this.parent.removeChild(this);
                        },
                      },
                      {
                        key: "format",
                        value: function (e, i) {
                          if (0 !== this._length)
                            return l(
                              t.prototype.__proto__ ||
                                Object.getPrototypeOf(t.prototype),
                              "format",
                              this
                            ).call(this, e, i);
                          for (
                            var n = this, r = 0;
                            null != n &&
                            n.statics.scope !== u.default.Scope.BLOCK_BLOT;

                          )
                            (r += n.offset(n.parent)), (n = n.parent);
                          null != n &&
                            ((this._length = t.CONTENTS.length),
                            n.optimize(),
                            n.formatAt(r, t.CONTENTS.length, e, i),
                            (this._length = 0));
                        },
                      },
                      {
                        key: "index",
                        value: function (e, i) {
                          return e === this.textNode
                            ? 0
                            : l(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "index",
                                this
                              ).call(this, e, i);
                        },
                      },
                      {
                        key: "length",
                        value: function () {
                          return this._length;
                        },
                      },
                      {
                        key: "position",
                        value: function () {
                          return [this.textNode, this.textNode.data.length];
                        },
                      },
                      {
                        key: "remove",
                        value: function () {
                          l(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "remove",
                            this
                          ).call(this),
                            (this.parent = null);
                        },
                      },
                      {
                        key: "restore",
                        value: function () {
                          if (
                            !this.selection.composing &&
                            null != this.parent
                          ) {
                            var e = this.textNode,
                              i = this.selection.getNativeRange(),
                              n = void 0,
                              r = void 0,
                              a = void 0;
                            if (
                              null != i &&
                              i.start.node === e &&
                              i.end.node === e
                            ) {
                              var o = [e, i.start.offset, i.end.offset];
                              (n = o[0]), (r = o[1]), (a = o[2]);
                            }
                            for (
                              ;
                              null != this.domNode.lastChild &&
                              this.domNode.lastChild !== this.textNode;

                            )
                              this.domNode.parentNode.insertBefore(
                                this.domNode.lastChild,
                                this.domNode
                              );
                            if (this.textNode.data !== t.CONTENTS) {
                              var l = this.textNode.data
                                .split(t.CONTENTS)
                                .join("");
                              this.next instanceof d.default
                                ? ((n = this.next.domNode),
                                  this.next.insertAt(0, l),
                                  (this.textNode.data = t.CONTENTS))
                                : ((this.textNode.data = l),
                                  this.parent.insertBefore(
                                    u.default.create(this.textNode),
                                    this
                                  ),
                                  (this.textNode = document.createTextNode(
                                    t.CONTENTS
                                  )),
                                  this.domNode.appendChild(this.textNode));
                            }
                            if ((this.remove(), null != r)) {
                              var c = [r, a].map(function (e) {
                                  return Math.max(
                                    0,
                                    Math.min(n.data.length, e - 1)
                                  );
                                }),
                                h = s(c, 2);
                              return (
                                (r = h[0]),
                                (a = h[1]),
                                {
                                  startNode: n,
                                  startOffset: r,
                                  endNode: n,
                                  endOffset: a,
                                }
                              );
                            }
                          }
                        },
                      },
                      {
                        key: "update",
                        value: function (e, t) {
                          var i = this;
                          if (
                            e.some(function (e) {
                              return (
                                "characterData" === e.type &&
                                e.target === i.textNode
                              );
                            })
                          ) {
                            var n = this.restore();
                            n && (t.range = n);
                          }
                        },
                      },
                      {
                        key: "value",
                        value: function () {
                          return "";
                        },
                      },
                    ]),
                    t
                  );
                })(u.default.Embed);
              (h.blotName = "cursor"),
                (h.className = "ql-cursor"),
                (h.tagName = "span"),
                (h.CONTENTS = "\ufeff"),
                (t.default = h);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                a = (function () {
                  function e(t, i) {
                    n(this, e),
                      (this.quill = t),
                      (this.options = i),
                      (this.modules = {});
                  }
                  return (
                    r(e, [
                      {
                        key: "init",
                        value: function () {
                          var e = this;
                          Object.keys(this.options.modules).forEach(function (
                            t
                          ) {
                            null == e.modules[t] && e.addModule(t);
                          });
                        },
                      },
                      {
                        key: "addModule",
                        value: function (e) {
                          var t = this.quill.constructor.import("modules/" + e);
                          return (
                            (this.modules[e] = new t(
                              this.quill,
                              this.options.modules[e] || {}
                            )),
                            this.modules[e]
                          );
                        },
                      },
                    ]),
                    e
                  );
                })();
              (a.DEFAULTS = { modules: {} }),
                (a.themes = { default: a }),
                (t.default = a);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var s = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                l = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                c = n(i(0)),
                u = n(i(8)),
                d = "\ufeff",
                h = (function (e) {
                  function t(e) {
                    r(this, t);
                    var i = a(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)
                    );
                    return (
                      (i.contentNode = document.createElement("span")),
                      i.contentNode.setAttribute("contenteditable", !1),
                      [].slice.call(i.domNode.childNodes).forEach(function (e) {
                        i.contentNode.appendChild(e);
                      }),
                      (i.leftGuard = document.createTextNode(d)),
                      (i.rightGuard = document.createTextNode(d)),
                      i.domNode.appendChild(i.leftGuard),
                      i.domNode.appendChild(i.contentNode),
                      i.domNode.appendChild(i.rightGuard),
                      i
                    );
                  }
                  return (
                    o(t, e),
                    s(t, [
                      {
                        key: "index",
                        value: function (e, i) {
                          return e === this.leftGuard
                            ? 0
                            : e === this.rightGuard
                            ? 1
                            : l(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "index",
                                this
                              ).call(this, e, i);
                        },
                      },
                      {
                        key: "restore",
                        value: function (e) {
                          var t = void 0,
                            i = void 0,
                            n = e.data.split(d).join("");
                          if (e === this.leftGuard)
                            if (this.prev instanceof u.default) {
                              var r = this.prev.length();
                              this.prev.insertAt(r, n),
                                (t = {
                                  startNode: this.prev.domNode,
                                  startOffset: r + n.length,
                                });
                            } else
                              (i = document.createTextNode(n)),
                                this.parent.insertBefore(
                                  c.default.create(i),
                                  this
                                ),
                                (t = { startNode: i, startOffset: n.length });
                          else
                            e === this.rightGuard &&
                              (this.next instanceof u.default
                                ? (this.next.insertAt(0, n),
                                  (t = {
                                    startNode: this.next.domNode,
                                    startOffset: n.length,
                                  }))
                                : ((i = document.createTextNode(n)),
                                  this.parent.insertBefore(
                                    c.default.create(i),
                                    this.next
                                  ),
                                  (t = {
                                    startNode: i,
                                    startOffset: n.length,
                                  })));
                          return (e.data = d), t;
                        },
                      },
                      {
                        key: "update",
                        value: function (e, t) {
                          var i = this;
                          e.forEach(function (e) {
                            if (
                              "characterData" === e.type &&
                              (e.target === i.leftGuard ||
                                e.target === i.rightGuard)
                            ) {
                              var n = i.restore(e.target);
                              n && (t.range = n);
                            }
                          });
                        },
                      },
                    ]),
                    t
                  );
                })(c.default.Embed);
              t.default = h;
            },
            function (e, t, i) {
              "use strict";
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.AlignStyle = t.AlignClass = t.AlignAttribute = void 0);
              var n = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(0)),
                r = {
                  scope: n.default.Scope.BLOCK,
                  whitelist: ["right", "center", "justify"],
                },
                a = new n.default.Attributor.Attribute("align", "align", r),
                o = new n.default.Attributor.Class("align", "ql-align", r),
                s = new n.default.Attributor.Style("align", "text-align", r);
              (t.AlignAttribute = a), (t.AlignClass = o), (t.AlignStyle = s);
            },
            function (e, t, i) {
              "use strict";
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.BackgroundStyle = t.BackgroundClass = void 0);
              var n = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(0)),
                r = i(24),
                a = new n.default.Attributor.Class("background", "ql-bg", {
                  scope: n.default.Scope.INLINE,
                }),
                o = new r.ColorAttributor("background", "background-color", {
                  scope: n.default.Scope.INLINE,
                });
              (t.BackgroundClass = a), (t.BackgroundStyle = o);
            },
            function (e, t, i) {
              "use strict";
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.DirectionStyle =
                  t.DirectionClass =
                  t.DirectionAttribute =
                    void 0);
              var n = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(0)),
                r = { scope: n.default.Scope.BLOCK, whitelist: ["rtl"] },
                a = new n.default.Attributor.Attribute("direction", "dir", r),
                o = new n.default.Attributor.Class(
                  "direction",
                  "ql-direction",
                  r
                ),
                s = new n.default.Attributor.Style("direction", "direction", r);
              (t.DirectionAttribute = a),
                (t.DirectionClass = o),
                (t.DirectionStyle = s);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.FontClass = t.FontStyle = void 0);
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(0)),
                c = {
                  scope: l.default.Scope.INLINE,
                  whitelist: ["serif", "monospace"],
                },
                u = new l.default.Attributor.Class("font", "ql-font", c),
                d = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    a(t, e),
                    o(t, [
                      {
                        key: "value",
                        value: function (e) {
                          return s(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "value",
                            this
                          )
                            .call(this, e)
                            .replace(/["']/g, "");
                        },
                      },
                    ]),
                    t
                  );
                })(l.default.Attributor.Style),
                h = new d("font", "font-family", c);
              (t.FontStyle = h), (t.FontClass = u);
            },
            function (e, t, i) {
              "use strict";
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.SizeStyle = t.SizeClass = void 0);
              var n = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(0)),
                r = new n.default.Attributor.Class("size", "ql-size", {
                  scope: n.default.Scope.INLINE,
                  whitelist: ["small", "large", "huge"],
                }),
                a = new n.default.Attributor.Style("size", "font-size", {
                  scope: n.default.Scope.INLINE,
                  whitelist: ["10px", "18px", "32px"],
                });
              (t.SizeClass = r), (t.SizeStyle = a);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(5)),
                c = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    a(t, e),
                    o(
                      t,
                      [
                        {
                          key: "optimize",
                          value: function (e) {
                            s(
                              t.prototype.__proto__ ||
                                Object.getPrototypeOf(t.prototype),
                              "optimize",
                              this
                            ).call(this, e),
                              this.domNode.tagName !==
                                this.statics.tagName[0] &&
                                this.replaceWith(this.statics.blotName);
                          },
                        },
                      ],
                      [
                        {
                          key: "create",
                          value: function () {
                            return s(
                              t.__proto__ || Object.getPrototypeOf(t),
                              "create",
                              this
                            ).call(this);
                          },
                        },
                        {
                          key: "formats",
                          value: function () {
                            return !0;
                          },
                        },
                      ]
                    ),
                    t
                  );
                })(l.default);
              (c.blotName = "bold"),
                (c.tagName = ["STRONG", "B"]),
                (t.default = c);
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>';
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(16)),
                c = (function (e) {
                  function t(e, i) {
                    n(this, t);
                    var a = r(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)
                    );
                    return (
                      (a.label.innerHTML = i),
                      a.container.classList.add("ql-color-picker"),
                      [].slice
                        .call(
                          a.container.querySelectorAll(".ql-picker-item"),
                          0,
                          7
                        )
                        .forEach(function (e) {
                          e.classList.add("ql-primary");
                        }),
                      a
                    );
                  }
                  return (
                    a(t, e),
                    o(t, [
                      {
                        key: "buildItem",
                        value: function (e) {
                          var i = s(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "buildItem",
                            this
                          ).call(this, e);
                          return (
                            (i.style.backgroundColor =
                              e.getAttribute("value") || ""),
                            i
                          );
                        },
                      },
                      {
                        key: "selectItem",
                        value: function (e, i) {
                          s(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "selectItem",
                            this
                          ).call(this, e, i);
                          var n = this.label.querySelector(".ql-color-label"),
                            r = (e && e.getAttribute("data-value")) || "";
                          n &&
                            ("line" === n.tagName
                              ? (n.style.stroke = r)
                              : (n.style.fill = r));
                        },
                      },
                    ]),
                    t
                  );
                })(l.default);
              t.default = c;
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(16)),
                c = (function (e) {
                  function t(e, i) {
                    n(this, t);
                    var a = r(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)
                    );
                    return (
                      a.container.classList.add("ql-icon-picker"),
                      [].forEach.call(
                        a.container.querySelectorAll(".ql-picker-item"),
                        function (e) {
                          e.innerHTML = i[e.getAttribute("data-value") || ""];
                        }
                      ),
                      (a.defaultItem =
                        a.container.querySelector(".ql-selected")),
                      a.selectItem(a.defaultItem),
                      a
                    );
                  }
                  return (
                    a(t, e),
                    o(t, [
                      {
                        key: "selectItem",
                        value: function (e, i) {
                          s(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "selectItem",
                            this
                          ).call(this, e, i),
                            (e = e || this.defaultItem),
                            (this.label.innerHTML = e.innerHTML);
                        },
                      },
                    ]),
                    t
                  );
                })(l.default);
              t.default = c;
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                a = (function () {
                  function e(t, i) {
                    var r = this;
                    n(this, e),
                      (this.quill = t),
                      (this.boundsContainer = i || document.body),
                      (this.root = t.addContainer("ql-tooltip")),
                      (this.root.innerHTML = this.constructor.TEMPLATE),
                      this.quill.root === this.quill.scrollingContainer &&
                        this.quill.root.addEventListener("scroll", function () {
                          r.root.style.marginTop =
                            -1 * r.quill.root.scrollTop + "px";
                        }),
                      this.hide();
                  }
                  return (
                    r(e, [
                      {
                        key: "hide",
                        value: function () {
                          this.root.classList.add("ql-hidden");
                        },
                      },
                      {
                        key: "position",
                        value: function (e) {
                          var t =
                              e.left + e.width / 2 - this.root.offsetWidth / 2,
                            i = e.bottom + this.quill.root.scrollTop;
                          (this.root.style.left = t + "px"),
                            (this.root.style.top = i + "px"),
                            this.root.classList.remove("ql-flip");
                          var n = this.boundsContainer.getBoundingClientRect(),
                            r = this.root.getBoundingClientRect(),
                            a = 0;
                          if (
                            (r.right > n.right &&
                              ((a = n.right - r.right),
                              (this.root.style.left = t + a + "px")),
                            r.left < n.left &&
                              ((a = n.left - r.left),
                              (this.root.style.left = t + a + "px")),
                            r.bottom > n.bottom)
                          ) {
                            var o = r.bottom - r.top,
                              s = e.bottom - e.top + o;
                            (this.root.style.top = i - s + "px"),
                              this.root.classList.add("ql-flip");
                          }
                          return a;
                        },
                      },
                      {
                        key: "show",
                        value: function () {
                          this.root.classList.remove("ql-editing"),
                            this.root.classList.remove("ql-hidden");
                        },
                      },
                    ]),
                    e
                  );
                })();
              t.default = a;
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              function s(e) {
                var t =
                  e.match(
                    /^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/
                  ) ||
                  e.match(
                    /^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/
                  );
                return t
                  ? (t[1] || "https") +
                      "://www.youtube.com/embed/" +
                      t[2] +
                      "?showinfo=0"
                  : (t = e.match(
                      /^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/
                    ))
                  ? (t[1] || "https") +
                    "://player.vimeo.com/video/" +
                    t[2] +
                    "/"
                  : e;
              }
              function l(e, t) {
                var i =
                  arguments.length > 2 &&
                  void 0 !== arguments[2] &&
                  arguments[2];
                t.forEach(function (t) {
                  var n = document.createElement("option");
                  t === i
                    ? n.setAttribute("selected", "selected")
                    : n.setAttribute("value", t),
                    e.appendChild(n);
                });
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.default = t.BaseTooltip = void 0);
              var c = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                u = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                d = n(i(2)),
                h = n(i(4)),
                f = n(i(9)),
                p = n(i(25)),
                g = n(i(32)),
                m = n(i(41)),
                v = n(i(42)),
                b = n(i(16)),
                y = n(i(43)),
                x = [!1, "center", "right", "justify"],
                w = [
                  "#000000",
                  "#e60000",
                  "#ff9900",
                  "#ffff00",
                  "#008a00",
                  "#0066cc",
                  "#9933ff",
                  "#ffffff",
                  "#facccc",
                  "#ffebcc",
                  "#ffffcc",
                  "#cce8cc",
                  "#cce0f5",
                  "#ebd6ff",
                  "#bbbbbb",
                  "#f06666",
                  "#ffc266",
                  "#ffff66",
                  "#66b966",
                  "#66a3e0",
                  "#c285ff",
                  "#888888",
                  "#a10000",
                  "#b26b00",
                  "#b2b200",
                  "#006100",
                  "#0047b2",
                  "#6b24b2",
                  "#444444",
                  "#5c0000",
                  "#663d00",
                  "#666600",
                  "#003700",
                  "#002966",
                  "#3d1466",
                ],
                E = [!1, "serif", "monospace"],
                _ = ["1", "2", "3", !1],
                S = ["small", !1, "large", "huge"],
                A = (function (e) {
                  function t(e, i) {
                    r(this, t);
                    var n = a(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).call(
                          this,
                          e,
                          i
                        )
                      ),
                      o = function t(i) {
                        if (!document.body.contains(e.root))
                          return document.body.removeEventListener("click", t);
                        null == n.tooltip ||
                          n.tooltip.root.contains(i.target) ||
                          document.activeElement === n.tooltip.textbox ||
                          n.quill.hasFocus() ||
                          n.tooltip.hide(),
                          null != n.pickers &&
                            n.pickers.forEach(function (e) {
                              e.container.contains(i.target) || e.close();
                            });
                      };
                    return e.emitter.listenDOM("click", document.body, o), n;
                  }
                  return (
                    o(t, e),
                    c(t, [
                      {
                        key: "addModule",
                        value: function (e) {
                          var i = u(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "addModule",
                            this
                          ).call(this, e);
                          return "toolbar" === e && this.extendToolbar(i), i;
                        },
                      },
                      {
                        key: "buildButtons",
                        value: function (e, t) {
                          e.forEach(function (e) {
                            (e.getAttribute("class") || "")
                              .split(/\s+/)
                              .forEach(function (i) {
                                if (
                                  i.startsWith("ql-") &&
                                  ((i = i.slice("ql-".length)), null != t[i])
                                )
                                  if ("direction" === i)
                                    e.innerHTML = t[i][""] + t[i].rtl;
                                  else if ("string" == typeof t[i])
                                    e.innerHTML = t[i];
                                  else {
                                    var n = e.value || "";
                                    null != n &&
                                      t[i][n] &&
                                      (e.innerHTML = t[i][n]);
                                  }
                              });
                          });
                        },
                      },
                      {
                        key: "buildPickers",
                        value: function (e, t) {
                          var i = this;
                          this.pickers = e.map(function (e) {
                            if (e.classList.contains("ql-align"))
                              return (
                                null == e.querySelector("option") && l(e, x),
                                new v.default(e, t.align)
                              );
                            if (
                              e.classList.contains("ql-background") ||
                              e.classList.contains("ql-color")
                            ) {
                              var i = e.classList.contains("ql-background")
                                ? "background"
                                : "color";
                              return (
                                null == e.querySelector("option") &&
                                  l(
                                    e,
                                    w,
                                    "background" === i ? "#ffffff" : "#000000"
                                  ),
                                new m.default(e, t[i])
                              );
                            }
                            return (
                              null == e.querySelector("option") &&
                                (e.classList.contains("ql-font")
                                  ? l(e, E)
                                  : e.classList.contains("ql-header")
                                  ? l(e, _)
                                  : e.classList.contains("ql-size") && l(e, S)),
                              new b.default(e)
                            );
                          });
                          var n = function () {
                            i.pickers.forEach(function (e) {
                              e.update();
                            });
                          };
                          this.quill.on(f.default.events.EDITOR_CHANGE, n);
                        },
                      },
                    ]),
                    t
                  );
                })(g.default);
              A.DEFAULTS = (0, d.default)(!0, {}, g.default.DEFAULTS, {
                modules: {
                  toolbar: {
                    handlers: {
                      formula: function () {
                        this.quill.theme.tooltip.edit("formula");
                      },
                      image: function () {
                        var e = this,
                          t = this.container.querySelector(
                            "input.ql-image[type=file]"
                          );
                        null == t &&
                          ((t = document.createElement("input")).setAttribute(
                            "type",
                            "file"
                          ),
                          t.setAttribute(
                            "accept",
                            "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"
                          ),
                          t.classList.add("ql-image"),
                          t.addEventListener("change", function () {
                            if (null != t.files && null != t.files[0]) {
                              var i = new FileReader();
                              (i.onload = function (i) {
                                var n = e.quill.getSelection(!0);
                                e.quill.updateContents(
                                  new h.default()
                                    .retain(n.index)
                                    .delete(n.length)
                                    .insert({ image: i.target.result }),
                                  f.default.sources.USER
                                ),
                                  e.quill.setSelection(
                                    n.index + 1,
                                    f.default.sources.SILENT
                                  ),
                                  (t.value = "");
                              }),
                                i.readAsDataURL(t.files[0]);
                            }
                          }),
                          this.container.appendChild(t)),
                          t.click();
                      },
                      video: function () {
                        this.quill.theme.tooltip.edit("video");
                      },
                    },
                  },
                },
              });
              var k = (function (e) {
                function t(e, i) {
                  r(this, t);
                  var n = a(
                    this,
                    (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, i)
                  );
                  return (
                    (n.textbox = n.root.querySelector('input[type="text"]')),
                    n.listen(),
                    n
                  );
                }
                return (
                  o(t, e),
                  c(t, [
                    {
                      key: "listen",
                      value: function () {
                        var e = this;
                        this.textbox.addEventListener("keydown", function (t) {
                          p.default.match(t, "enter")
                            ? (e.save(), t.preventDefault())
                            : p.default.match(t, "escape") &&
                              (e.cancel(), t.preventDefault());
                        });
                      },
                    },
                    {
                      key: "cancel",
                      value: function () {
                        this.hide();
                      },
                    },
                    {
                      key: "edit",
                      value: function () {
                        var e =
                            arguments.length > 0 && void 0 !== arguments[0]
                              ? arguments[0]
                              : "link",
                          t =
                            arguments.length > 1 && void 0 !== arguments[1]
                              ? arguments[1]
                              : null;
                        this.root.classList.remove("ql-hidden"),
                          this.root.classList.add("ql-editing"),
                          null != t
                            ? (this.textbox.value = t)
                            : e !== this.root.getAttribute("data-mode") &&
                              (this.textbox.value = ""),
                          this.position(
                            this.quill.getBounds(
                              this.quill.selection.savedRange
                            )
                          ),
                          this.textbox.select(),
                          this.textbox.setAttribute(
                            "placeholder",
                            this.textbox.getAttribute("data-" + e) || ""
                          ),
                          this.root.setAttribute("data-mode", e);
                      },
                    },
                    {
                      key: "restoreFocus",
                      value: function () {
                        var e = this.quill.scrollingContainer.scrollTop;
                        this.quill.focus(),
                          (this.quill.scrollingContainer.scrollTop = e);
                      },
                    },
                    {
                      key: "save",
                      value: function () {
                        var e = this.textbox.value;
                        switch (this.root.getAttribute("data-mode")) {
                          case "link":
                            var t = this.quill.root.scrollTop;
                            this.linkRange
                              ? (this.quill.formatText(
                                  this.linkRange,
                                  "link",
                                  e,
                                  f.default.sources.USER
                                ),
                                delete this.linkRange)
                              : (this.restoreFocus(),
                                this.quill.format(
                                  "link",
                                  e,
                                  f.default.sources.USER
                                )),
                              (this.quill.root.scrollTop = t);
                            break;
                          case "video":
                            e = s(e);
                          case "formula":
                            if (!e) break;
                            var i = this.quill.getSelection(!0);
                            if (null != i) {
                              var n = i.index + i.length;
                              this.quill.insertEmbed(
                                n,
                                this.root.getAttribute("data-mode"),
                                e,
                                f.default.sources.USER
                              ),
                                "formula" ===
                                  this.root.getAttribute("data-mode") &&
                                  this.quill.insertText(
                                    n + 1,
                                    " ",
                                    f.default.sources.USER
                                  ),
                                this.quill.setSelection(
                                  n + 2,
                                  f.default.sources.USER
                                );
                            }
                        }
                        (this.textbox.value = ""), this.hide();
                      },
                    },
                  ]),
                  t
                );
              })(y.default);
              (t.BaseTooltip = k), (t.default = A);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = n(i(46)),
                a = i(34),
                o = i(36),
                s = i(62),
                l = n(i(63)),
                c = n(i(64)),
                u = i(65),
                d = n(u),
                h = i(35),
                f = i(24),
                p = i(37),
                g = i(38),
                m = n(i(39)),
                v = n(i(66)),
                b = n(i(15)),
                y = n(i(67)),
                x = n(i(68)),
                w = n(i(69)),
                E = n(i(70)),
                _ = n(i(71)),
                S = i(13),
                A = n(S),
                k = n(i(72)),
                T = n(i(73)),
                C = n(i(74)),
                O = n(i(26)),
                I = n(i(16)),
                M = n(i(41)),
                L = n(i(42)),
                P = n(i(43)),
                D = n(i(107)),
                R = n(i(108));
              r.default.register(
                {
                  "attributors/attribute/direction": o.DirectionAttribute,
                  "attributors/class/align": a.AlignClass,
                  "attributors/class/background": h.BackgroundClass,
                  "attributors/class/color": f.ColorClass,
                  "attributors/class/direction": o.DirectionClass,
                  "attributors/class/font": p.FontClass,
                  "attributors/class/size": g.SizeClass,
                  "attributors/style/align": a.AlignStyle,
                  "attributors/style/background": h.BackgroundStyle,
                  "attributors/style/color": f.ColorStyle,
                  "attributors/style/direction": o.DirectionStyle,
                  "attributors/style/font": p.FontStyle,
                  "attributors/style/size": g.SizeStyle,
                },
                !0
              ),
                r.default.register(
                  {
                    "formats/align": a.AlignClass,
                    "formats/direction": o.DirectionClass,
                    "formats/indent": s.IndentClass,
                    "formats/background": h.BackgroundStyle,
                    "formats/color": f.ColorStyle,
                    "formats/font": p.FontClass,
                    "formats/size": g.SizeClass,
                    "formats/blockquote": l.default,
                    "formats/code-block": A.default,
                    "formats/header": c.default,
                    "formats/list": d.default,
                    "formats/bold": m.default,
                    "formats/code": S.Code,
                    "formats/italic": v.default,
                    "formats/link": b.default,
                    "formats/script": y.default,
                    "formats/strike": x.default,
                    "formats/underline": w.default,
                    "formats/image": E.default,
                    "formats/video": _.default,
                    "formats/list/item": u.ListItem,
                    "modules/formula": k.default,
                    "modules/syntax": T.default,
                    "modules/toolbar": C.default,
                    "themes/bubble": D.default,
                    "themes/snow": R.default,
                    "ui/icons": O.default,
                    "ui/picker": I.default,
                    "ui/icon-picker": L.default,
                    "ui/color-picker": M.default,
                    "ui/tooltip": P.default,
                  },
                  !0
                ),
                (t.default = r.default);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = n(i(0)),
                a = n(i(6)),
                o = i(3),
                s = n(o),
                l = n(i(14)),
                c = n(i(23)),
                u = n(i(31)),
                d = n(i(33)),
                h = n(i(5)),
                f = n(i(59)),
                p = n(i(8)),
                g = n(i(60)),
                m = n(i(61)),
                v = n(i(25));
              a.default.register({
                "blots/block": s.default,
                "blots/block/embed": o.BlockEmbed,
                "blots/break": l.default,
                "blots/container": c.default,
                "blots/cursor": u.default,
                "blots/embed": d.default,
                "blots/inline": h.default,
                "blots/scroll": f.default,
                "blots/text": p.default,
                "modules/clipboard": g.default,
                "modules/history": m.default,
                "modules/keyboard": v.default,
              }),
                r.default.register(
                  s.default,
                  l.default,
                  u.default,
                  h.default,
                  f.default,
                  p.default
                ),
                (t.default = a.default);
            },
            function (e, t, i) {
              "use strict";
              Object.defineProperty(t, "__esModule", { value: !0 });
              var n = (function () {
                function e() {
                  (this.head = this.tail = null), (this.length = 0);
                }
                return (
                  (e.prototype.append = function () {
                    for (var e = [], t = 0; t < arguments.length; t++)
                      e[t] = arguments[t];
                    this.insertBefore(e[0], null),
                      e.length > 1 && this.append.apply(this, e.slice(1));
                  }),
                  (e.prototype.contains = function (e) {
                    for (var t, i = this.iterator(); (t = i()); )
                      if (t === e) return !0;
                    return !1;
                  }),
                  (e.prototype.insertBefore = function (e, t) {
                    e &&
                      ((e.next = t),
                      null != t
                        ? ((e.prev = t.prev),
                          null != t.prev && (t.prev.next = e),
                          (t.prev = e),
                          t === this.head && (this.head = e))
                        : null != this.tail
                        ? ((this.tail.next = e),
                          (e.prev = this.tail),
                          (this.tail = e))
                        : ((e.prev = null), (this.head = this.tail = e)),
                      (this.length += 1));
                  }),
                  (e.prototype.offset = function (e) {
                    for (var t = 0, i = this.head; null != i; ) {
                      if (i === e) return t;
                      (t += i.length()), (i = i.next);
                    }
                    return -1;
                  }),
                  (e.prototype.remove = function (e) {
                    this.contains(e) &&
                      (null != e.prev && (e.prev.next = e.next),
                      null != e.next && (e.next.prev = e.prev),
                      e === this.head && (this.head = e.next),
                      e === this.tail && (this.tail = e.prev),
                      (this.length -= 1));
                  }),
                  (e.prototype.iterator = function (e) {
                    return (
                      void 0 === e && (e = this.head),
                      function () {
                        var t = e;
                        return null != e && (e = e.next), t;
                      }
                    );
                  }),
                  (e.prototype.find = function (e, t) {
                    void 0 === t && (t = !1);
                    for (var i, n = this.iterator(); (i = n()); ) {
                      var r = i.length();
                      if (
                        e < r ||
                        (t &&
                          e === r &&
                          (null == i.next || 0 !== i.next.length()))
                      )
                        return [i, e];
                      e -= r;
                    }
                    return [null, 0];
                  }),
                  (e.prototype.forEach = function (e) {
                    for (var t, i = this.iterator(); (t = i()); ) e(t);
                  }),
                  (e.prototype.forEachAt = function (e, t, i) {
                    if (!(t <= 0))
                      for (
                        var n,
                          r = this.find(e),
                          a = r[0],
                          o = e - r[1],
                          s = this.iterator(a);
                        (n = s()) && o < e + t;

                      ) {
                        var l = n.length();
                        e > o
                          ? i(n, e - o, Math.min(t, o + l - e))
                          : i(n, 0, Math.min(l, e + t - o)),
                          (o += l);
                      }
                  }),
                  (e.prototype.map = function (e) {
                    return this.reduce(function (t, i) {
                      return t.push(e(i)), t;
                    }, []);
                  }),
                  (e.prototype.reduce = function (e, t) {
                    for (var i, n = this.iterator(); (i = n()); ) t = e(t, i);
                    return t;
                  }),
                  e
                );
              })();
              t.default = n;
            },
            function (e, t, i) {
              "use strict";
              var n =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = i(17),
                a = i(1),
                o = {
                  attributes: !0,
                  characterData: !0,
                  characterDataOldValue: !0,
                  childList: !0,
                  subtree: !0,
                },
                s = (function (e) {
                  function t(t) {
                    var i = e.call(this, t) || this;
                    return (
                      (i.scroll = i),
                      (i.observer = new MutationObserver(function (e) {
                        i.update(e);
                      })),
                      i.observer.observe(i.domNode, o),
                      i.attach(),
                      i
                    );
                  }
                  return (
                    n(t, e),
                    (t.prototype.detach = function () {
                      e.prototype.detach.call(this), this.observer.disconnect();
                    }),
                    (t.prototype.deleteAt = function (t, i) {
                      this.update(),
                        0 === t && i === this.length()
                          ? this.children.forEach(function (e) {
                              e.remove();
                            })
                          : e.prototype.deleteAt.call(this, t, i);
                    }),
                    (t.prototype.formatAt = function (t, i, n, r) {
                      this.update(),
                        e.prototype.formatAt.call(this, t, i, n, r);
                    }),
                    (t.prototype.insertAt = function (t, i, n) {
                      this.update(), e.prototype.insertAt.call(this, t, i, n);
                    }),
                    (t.prototype.optimize = function (t, i) {
                      var n = this;
                      void 0 === t && (t = []),
                        void 0 === i && (i = {}),
                        e.prototype.optimize.call(this, i);
                      for (
                        var o = [].slice.call(this.observer.takeRecords());
                        o.length > 0;

                      )
                        t.push(o.pop());
                      for (
                        var s = function (e, t) {
                            void 0 === t && (t = !0),
                              null != e &&
                                e !== n &&
                                null != e.domNode.parentNode &&
                                (null == e.domNode[a.DATA_KEY].mutations &&
                                  (e.domNode[a.DATA_KEY].mutations = []),
                                t && s(e.parent));
                          },
                          l = function (e) {
                            null != e.domNode[a.DATA_KEY] &&
                              null != e.domNode[a.DATA_KEY].mutations &&
                              (e instanceof r.default && e.children.forEach(l),
                              e.optimize(i));
                          },
                          c = t,
                          u = 0;
                        c.length > 0;
                        u += 1
                      ) {
                        if (u >= 100)
                          throw new Error(
                            "[Parchment] Maximum optimize iterations reached"
                          );
                        for (
                          c.forEach(function (e) {
                            var t = a.find(e.target, !0);
                            null != t &&
                              (t.domNode === e.target &&
                                ("childList" === e.type
                                  ? (s(a.find(e.previousSibling, !1)),
                                    [].forEach.call(e.addedNodes, function (e) {
                                      var t = a.find(e, !1);
                                      s(t, !1),
                                        t instanceof r.default &&
                                          t.children.forEach(function (e) {
                                            s(e, !1);
                                          });
                                    }))
                                  : "attributes" === e.type && s(t.prev)),
                              s(t));
                          }),
                            this.children.forEach(l),
                            o = (c = [].slice.call(
                              this.observer.takeRecords()
                            )).slice();
                          o.length > 0;

                        )
                          t.push(o.pop());
                      }
                    }),
                    (t.prototype.update = function (t, i) {
                      var n = this;
                      void 0 === i && (i = {}),
                        (t = t || this.observer.takeRecords())
                          .map(function (e) {
                            var t = a.find(e.target, !0);
                            return null == t
                              ? null
                              : null == t.domNode[a.DATA_KEY].mutations
                              ? ((t.domNode[a.DATA_KEY].mutations = [e]), t)
                              : (t.domNode[a.DATA_KEY].mutations.push(e), null);
                          })
                          .forEach(function (e) {
                            null != e &&
                              e !== n &&
                              null != e.domNode[a.DATA_KEY] &&
                              e.update(
                                e.domNode[a.DATA_KEY].mutations || [],
                                i
                              );
                          }),
                        null != this.domNode[a.DATA_KEY].mutations &&
                          e.prototype.update.call(
                            this,
                            this.domNode[a.DATA_KEY].mutations,
                            i
                          ),
                        this.optimize(t, i);
                    }),
                    (t.blotName = "scroll"),
                    (t.defaultChild = "block"),
                    (t.scope = a.Scope.BLOCK_BLOT),
                    (t.tagName = "DIV"),
                    t
                  );
                })(r.default);
              t.default = s;
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (Object.keys(e).length !== Object.keys(t).length) return !1;
                for (var i in e) if (e[i] !== t[i]) return !1;
                return !0;
              }
              var r =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var a = i(18),
                o = i(1),
                s = (function (e) {
                  function t() {
                    return (null !== e && e.apply(this, arguments)) || this;
                  }
                  return (
                    r(t, e),
                    (t.formats = function (i) {
                      if (i.tagName !== t.tagName)
                        return e.formats.call(this, i);
                    }),
                    (t.prototype.format = function (i, n) {
                      var r = this;
                      i !== this.statics.blotName || n
                        ? e.prototype.format.call(this, i, n)
                        : (this.children.forEach(function (e) {
                            e instanceof a.default ||
                              (e = e.wrap(t.blotName, !0)),
                              r.attributes.copy(e);
                          }),
                          this.unwrap());
                    }),
                    (t.prototype.formatAt = function (t, i, n, r) {
                      null != this.formats()[n] || o.query(n, o.Scope.ATTRIBUTE)
                        ? this.isolate(t, i).format(n, r)
                        : e.prototype.formatAt.call(this, t, i, n, r);
                    }),
                    (t.prototype.optimize = function (i) {
                      e.prototype.optimize.call(this, i);
                      var r = this.formats();
                      if (0 === Object.keys(r).length) return this.unwrap();
                      var a = this.next;
                      a instanceof t &&
                        a.prev === this &&
                        n(r, a.formats()) &&
                        (a.moveChildren(this), a.remove());
                    }),
                    (t.blotName = "inline"),
                    (t.scope = o.Scope.INLINE_BLOT),
                    (t.tagName = "SPAN"),
                    t
                  );
                })(a.default);
              t.default = s;
            },
            function (e, t, i) {
              "use strict";
              var n =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = i(18),
                a = i(1),
                o = (function (e) {
                  function t() {
                    return (null !== e && e.apply(this, arguments)) || this;
                  }
                  return (
                    n(t, e),
                    (t.formats = function (i) {
                      var n = a.query(t.blotName).tagName;
                      if (i.tagName !== n) return e.formats.call(this, i);
                    }),
                    (t.prototype.format = function (i, n) {
                      null != a.query(i, a.Scope.BLOCK) &&
                        (i !== this.statics.blotName || n
                          ? e.prototype.format.call(this, i, n)
                          : this.replaceWith(t.blotName));
                    }),
                    (t.prototype.formatAt = function (t, i, n, r) {
                      null != a.query(n, a.Scope.BLOCK)
                        ? this.format(n, r)
                        : e.prototype.formatAt.call(this, t, i, n, r);
                    }),
                    (t.prototype.insertAt = function (t, i, n) {
                      if (null == n || null != a.query(i, a.Scope.INLINE))
                        e.prototype.insertAt.call(this, t, i, n);
                      else {
                        var r = this.split(t),
                          o = a.create(i, n);
                        r.parent.insertBefore(o, r);
                      }
                    }),
                    (t.prototype.update = function (t, i) {
                      navigator.userAgent.match(/Trident/)
                        ? this.build()
                        : e.prototype.update.call(this, t, i);
                    }),
                    (t.blotName = "block"),
                    (t.scope = a.Scope.BLOCK_BLOT),
                    (t.tagName = "P"),
                    t
                  );
                })(r.default);
              t.default = o;
            },
            function (e, t, i) {
              "use strict";
              var n =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = (function (e) {
                function t() {
                  return (null !== e && e.apply(this, arguments)) || this;
                }
                return (
                  n(t, e),
                  (t.formats = function (e) {}),
                  (t.prototype.format = function (t, i) {
                    e.prototype.formatAt.call(this, 0, this.length(), t, i);
                  }),
                  (t.prototype.formatAt = function (t, i, n, r) {
                    0 === t && i === this.length()
                      ? this.format(n, r)
                      : e.prototype.formatAt.call(this, t, i, n, r);
                  }),
                  (t.prototype.formats = function () {
                    return this.statics.formats(this.domNode);
                  }),
                  t
                );
              })(i(19).default);
              t.default = r;
            },
            function (e, t, i) {
              "use strict";
              var n =
                (this && this.__extends) ||
                (function () {
                  var e =
                    Object.setPrototypeOf ||
                    ({ __proto__: [] } instanceof Array &&
                      function (e, t) {
                        e.__proto__ = t;
                      }) ||
                    function (e, t) {
                      for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]);
                    };
                  return function (t, i) {
                    function n() {
                      this.constructor = t;
                    }
                    e(t, i),
                      (t.prototype =
                        null === i
                          ? Object.create(i)
                          : ((n.prototype = i.prototype), new n()));
                  };
                })();
              Object.defineProperty(t, "__esModule", { value: !0 });
              var r = i(19),
                a = i(1),
                o = (function (e) {
                  function t(t) {
                    var i = e.call(this, t) || this;
                    return (i.text = i.statics.value(i.domNode)), i;
                  }
                  return (
                    n(t, e),
                    (t.create = function (e) {
                      return document.createTextNode(e);
                    }),
                    (t.value = function (e) {
                      var t = e.data;
                      return t.normalize && (t = t.normalize()), t;
                    }),
                    (t.prototype.deleteAt = function (e, t) {
                      this.domNode.data = this.text =
                        this.text.slice(0, e) + this.text.slice(e + t);
                    }),
                    (t.prototype.index = function (e, t) {
                      return this.domNode === e ? t : -1;
                    }),
                    (t.prototype.insertAt = function (t, i, n) {
                      null == n
                        ? ((this.text =
                            this.text.slice(0, t) + i + this.text.slice(t)),
                          (this.domNode.data = this.text))
                        : e.prototype.insertAt.call(this, t, i, n);
                    }),
                    (t.prototype.length = function () {
                      return this.text.length;
                    }),
                    (t.prototype.optimize = function (i) {
                      e.prototype.optimize.call(this, i),
                        (this.text = this.statics.value(this.domNode)),
                        0 === this.text.length
                          ? this.remove()
                          : this.next instanceof t &&
                            this.next.prev === this &&
                            (this.insertAt(this.length(), this.next.value()),
                            this.next.remove());
                    }),
                    (t.prototype.position = function (e, t) {
                      return void 0 === t && (t = !1), [this.domNode, e];
                    }),
                    (t.prototype.split = function (e, t) {
                      if ((void 0 === t && (t = !1), !t)) {
                        if (0 === e) return this;
                        if (e === this.length()) return this.next;
                      }
                      var i = a.create(this.domNode.splitText(e));
                      return (
                        this.parent.insertBefore(i, this.next),
                        (this.text = this.statics.value(this.domNode)),
                        i
                      );
                    }),
                    (t.prototype.update = function (e, t) {
                      var i = this;
                      e.some(function (e) {
                        return (
                          "characterData" === e.type && e.target === i.domNode
                        );
                      }) && (this.text = this.statics.value(this.domNode));
                    }),
                    (t.prototype.value = function () {
                      return this.text;
                    }),
                    (t.blotName = "text"),
                    (t.scope = a.Scope.INLINE_BLOT),
                    t
                  );
                })(r.default);
              t.default = o;
            },
            function (e, t, i) {
              "use strict";
              var n = document.createElement("div");
              if (
                (n.classList.toggle("test-class", !1),
                n.classList.contains("test-class"))
              ) {
                var r = DOMTokenList.prototype.toggle;
                DOMTokenList.prototype.toggle = function (e, t) {
                  return arguments.length > 1 && !this.contains(e) == !t
                    ? t
                    : r.call(this, e);
                };
              }
              String.prototype.startsWith ||
                (String.prototype.startsWith = function (e, t) {
                  return (t = t || 0), this.substr(t, e.length) === e;
                }),
                String.prototype.endsWith ||
                  (String.prototype.endsWith = function (e, t) {
                    var i = this.toString();
                    ("number" != typeof t ||
                      !isFinite(t) ||
                      Math.floor(t) !== t ||
                      t > i.length) &&
                      (t = i.length),
                      (t -= e.length);
                    var n = i.indexOf(e, t);
                    return -1 !== n && n === t;
                  }),
                Array.prototype.find ||
                  Object.defineProperty(Array.prototype, "find", {
                    value: function (e) {
                      if (null === this)
                        throw new TypeError(
                          "Array.prototype.find called on null or undefined"
                        );
                      if ("function" != typeof e)
                        throw new TypeError("predicate must be a function");
                      for (
                        var t,
                          i = Object(this),
                          n = i.length >>> 0,
                          r = arguments[1],
                          a = 0;
                        a < n;
                        a++
                      )
                        if (((t = i[a]), e.call(r, t, a, i))) return t;
                    },
                  }),
                document.addEventListener("DOMContentLoaded", function () {
                  document.execCommand("enableObjectResizing", !1, !1),
                    document.execCommand("autoUrlDetect", !1, !1);
                });
            },
            function (e, t) {
              function i(e, t, i) {
                if (e == t) return e ? [[m, e]] : [];
                (i < 0 || e.length < i) && (i = null);
                var r = o(e, t),
                  a = e.substring(0, r);
                r = s((e = e.substring(r)), (t = t.substring(r)));
                var l = e.substring(e.length - r),
                  u = n(
                    (e = e.substring(0, e.length - r)),
                    (t = t.substring(0, t.length - r))
                  );
                return (
                  a && u.unshift([m, a]),
                  l && u.push([m, l]),
                  c(u),
                  null != i && (u = d(u, i)),
                  h(u)
                );
              }
              function n(e, t) {
                var n;
                if (!e) return [[g, t]];
                if (!t) return [[p, e]];
                var a = e.length > t.length ? e : t,
                  o = e.length > t.length ? t : e,
                  s = a.indexOf(o);
                if (-1 != s)
                  return (
                    (n = [
                      [g, a.substring(0, s)],
                      [m, o],
                      [g, a.substring(s + o.length)],
                    ]),
                    e.length > t.length && (n[0][0] = n[2][0] = p),
                    n
                  );
                if (1 == o.length)
                  return [
                    [p, e],
                    [g, t],
                  ];
                var c = l(e, t);
                if (c) {
                  var u = c[0],
                    d = c[1],
                    h = c[2],
                    f = c[3],
                    v = c[4],
                    b = i(u, h),
                    y = i(d, f);
                  return b.concat([[m, v]], y);
                }
                return r(e, t);
              }
              function r(e, t) {
                for (
                  var i = e.length,
                    n = t.length,
                    r = Math.ceil((i + n) / 2),
                    o = r,
                    s = 2 * r,
                    l = new Array(s),
                    c = new Array(s),
                    u = 0;
                  u < s;
                  u++
                )
                  (l[u] = -1), (c[u] = -1);
                (l[o + 1] = 0), (c[o + 1] = 0);
                for (
                  var d = i - n,
                    h = d % 2 != 0,
                    f = 0,
                    m = 0,
                    v = 0,
                    b = 0,
                    y = 0;
                  y < r;
                  y++
                ) {
                  for (var x = -y + f; x <= y - m; x += 2) {
                    for (
                      var w = o + x,
                        E =
                          (T =
                            x == -y || (x != y && l[w - 1] < l[w + 1])
                              ? l[w + 1]
                              : l[w - 1] + 1) - x;
                      T < i && E < n && e.charAt(T) == t.charAt(E);

                    )
                      T++, E++;
                    if (((l[w] = T), T > i)) m += 2;
                    else if (E > n) f += 2;
                    else if (
                      h &&
                      (A = o + d - x) >= 0 &&
                      A < s &&
                      -1 != c[A] &&
                      T >= (S = i - c[A])
                    )
                      return a(e, t, T, E);
                  }
                  for (var _ = -y + v; _ <= y - b; _ += 2) {
                    for (
                      var S,
                        A = o + _,
                        k =
                          (S =
                            _ == -y || (_ != y && c[A - 1] < c[A + 1])
                              ? c[A + 1]
                              : c[A - 1] + 1) - _;
                      S < i &&
                      k < n &&
                      e.charAt(i - S - 1) == t.charAt(n - k - 1);

                    )
                      S++, k++;
                    if (((c[A] = S), S > i)) b += 2;
                    else if (k > n) v += 2;
                    else if (!h) {
                      var T;
                      if (
                        (w = o + d - _) >= 0 &&
                        w < s &&
                        -1 != l[w] &&
                        ((E = o + (T = l[w]) - w), T >= (S = i - S))
                      )
                        return a(e, t, T, E);
                    }
                  }
                }
                return [
                  [p, e],
                  [g, t],
                ];
              }
              function a(e, t, n, r) {
                var a = e.substring(0, n),
                  o = t.substring(0, r),
                  s = e.substring(n),
                  l = t.substring(r),
                  c = i(a, o),
                  u = i(s, l);
                return c.concat(u);
              }
              function o(e, t) {
                if (!e || !t || e.charAt(0) != t.charAt(0)) return 0;
                for (
                  var i = 0, n = Math.min(e.length, t.length), r = n, a = 0;
                  i < r;

                )
                  e.substring(a, r) == t.substring(a, r)
                    ? (a = i = r)
                    : (n = r),
                    (r = Math.floor((n - i) / 2 + i));
                return r;
              }
              function s(e, t) {
                if (
                  !e ||
                  !t ||
                  e.charAt(e.length - 1) != t.charAt(t.length - 1)
                )
                  return 0;
                for (
                  var i = 0, n = Math.min(e.length, t.length), r = n, a = 0;
                  i < r;

                )
                  e.substring(e.length - r, e.length - a) ==
                  t.substring(t.length - r, t.length - a)
                    ? (a = i = r)
                    : (n = r),
                    (r = Math.floor((n - i) / 2 + i));
                return r;
              }
              function l(e, t) {
                function i(e, t, i) {
                  for (
                    var n,
                      r,
                      a,
                      l,
                      c = e.substring(i, i + Math.floor(e.length / 4)),
                      u = -1,
                      d = "";
                    -1 != (u = t.indexOf(c, u + 1));

                  ) {
                    var h = o(e.substring(i), t.substring(u)),
                      f = s(e.substring(0, i), t.substring(0, u));
                    d.length < f + h &&
                      ((d = t.substring(u - f, u) + t.substring(u, u + h)),
                      (n = e.substring(0, i - f)),
                      (r = e.substring(i + h)),
                      (a = t.substring(0, u - f)),
                      (l = t.substring(u + h)));
                  }
                  return 2 * d.length >= e.length ? [n, r, a, l, d] : null;
                }
                var n = e.length > t.length ? e : t,
                  r = e.length > t.length ? t : e;
                if (n.length < 4 || 2 * r.length < n.length) return null;
                var a,
                  l,
                  c,
                  u,
                  d,
                  h = i(n, r, Math.ceil(n.length / 4)),
                  f = i(n, r, Math.ceil(n.length / 2));
                return h || f
                  ? ((a = f ? (h && h[4].length > f[4].length ? h : f) : h),
                    e.length > t.length
                      ? ((l = a[0]), (c = a[1]), (u = a[2]), (d = a[3]))
                      : ((u = a[0]), (d = a[1]), (l = a[2]), (c = a[3])),
                    [l, c, u, d, a[4]])
                  : null;
              }
              function c(e) {
                e.push([m, ""]);
                for (var t, i = 0, n = 0, r = 0, a = "", l = ""; i < e.length; )
                  switch (e[i][0]) {
                    case g:
                      r++, (l += e[i][1]), i++;
                      break;
                    case p:
                      n++, (a += e[i][1]), i++;
                      break;
                    case m:
                      n + r > 1
                        ? (0 !== n &&
                            0 !== r &&
                            (0 !== (t = o(l, a)) &&
                              (i - n - r > 0 && e[i - n - r - 1][0] == m
                                ? (e[i - n - r - 1][1] += l.substring(0, t))
                                : (e.splice(0, 0, [m, l.substring(0, t)]), i++),
                              (l = l.substring(t)),
                              (a = a.substring(t))),
                            0 !== (t = s(l, a)) &&
                              ((e[i][1] = l.substring(l.length - t) + e[i][1]),
                              (l = l.substring(0, l.length - t)),
                              (a = a.substring(0, a.length - t)))),
                          0 === n
                            ? e.splice(i - r, n + r, [g, l])
                            : 0 === r
                            ? e.splice(i - n, n + r, [p, a])
                            : e.splice(i - n - r, n + r, [p, a], [g, l]),
                          (i = i - n - r + (n ? 1 : 0) + (r ? 1 : 0) + 1))
                        : 0 !== i && e[i - 1][0] == m
                        ? ((e[i - 1][1] += e[i][1]), e.splice(i, 1))
                        : i++,
                        (r = 0),
                        (n = 0),
                        (a = ""),
                        (l = "");
                  }
                "" === e[e.length - 1][1] && e.pop();
                var u = !1;
                for (i = 1; i < e.length - 1; )
                  e[i - 1][0] == m &&
                    e[i + 1][0] == m &&
                    (e[i][1].substring(e[i][1].length - e[i - 1][1].length) ==
                    e[i - 1][1]
                      ? ((e[i][1] =
                          e[i - 1][1] +
                          e[i][1].substring(
                            0,
                            e[i][1].length - e[i - 1][1].length
                          )),
                        (e[i + 1][1] = e[i - 1][1] + e[i + 1][1]),
                        e.splice(i - 1, 1),
                        (u = !0))
                      : e[i][1].substring(0, e[i + 1][1].length) ==
                          e[i + 1][1] &&
                        ((e[i - 1][1] += e[i + 1][1]),
                        (e[i][1] =
                          e[i][1].substring(e[i + 1][1].length) + e[i + 1][1]),
                        e.splice(i + 1, 1),
                        (u = !0))),
                    i++;
                u && c(e);
              }
              function u(e, t) {
                if (0 === t) return [m, e];
                for (var i = 0, n = 0; n < e.length; n++) {
                  var r = e[n];
                  if (r[0] === p || r[0] === m) {
                    var a = i + r[1].length;
                    if (t === a) return [n + 1, e];
                    if (t < a) {
                      e = e.slice();
                      var o = t - i,
                        s = [r[0], r[1].slice(0, o)],
                        l = [r[0], r[1].slice(o)];
                      return e.splice(n, 1, s, l), [n + 1, e];
                    }
                    i = a;
                  }
                }
                throw new Error("cursor_pos is out of bounds!");
              }
              function d(e, t) {
                var i = u(e, t),
                  n = i[1],
                  r = i[0],
                  a = n[r],
                  o = n[r + 1];
                if (null == a) return e;
                if (a[0] !== m) return e;
                if (null != o && a[1] + o[1] === o[1] + a[1])
                  return n.splice(r, 2, o, a), f(n, r, 2);
                if (null != o && 0 === o[1].indexOf(a[1])) {
                  n.splice(r, 2, [o[0], a[1]], [0, a[1]]);
                  var s = o[1].slice(a[1].length);
                  return (
                    s.length > 0 && n.splice(r + 2, 0, [o[0], s]), f(n, r, 3)
                  );
                }
                return e;
              }
              function h(e) {
                for (
                  var t = !1,
                    i = function (e) {
                      return (
                        e.charCodeAt(0) >= 56320 && e.charCodeAt(0) <= 57343
                      );
                    },
                    n = 2;
                  n < e.length;
                  n += 1
                )
                  e[n - 2][0] === m &&
                    (function (e) {
                      return (
                        e.charCodeAt(e.length - 1) >= 55296 &&
                        e.charCodeAt(e.length - 1) <= 56319
                      );
                    })(e[n - 2][1]) &&
                    e[n - 1][0] === p &&
                    i(e[n - 1][1]) &&
                    e[n][0] === g &&
                    i(e[n][1]) &&
                    ((t = !0),
                    (e[n - 1][1] = e[n - 2][1].slice(-1) + e[n - 1][1]),
                    (e[n][1] = e[n - 2][1].slice(-1) + e[n][1]),
                    (e[n - 2][1] = e[n - 2][1].slice(0, -1)));
                if (!t) return e;
                var r = [];
                for (n = 0; n < e.length; n += 1)
                  e[n][1].length > 0 && r.push(e[n]);
                return r;
              }
              function f(e, t, i) {
                for (var n = t + i - 1; n >= 0 && n >= t - 1; n--)
                  if (n + 1 < e.length) {
                    var r = e[n],
                      a = e[n + 1];
                    r[0] === a[1] && e.splice(n, 2, [r[0], r[1] + a[1]]);
                  }
                return e;
              }
              var p = -1,
                g = 1,
                m = 0,
                v = i;
              (v.INSERT = g), (v.DELETE = p), (v.EQUAL = m), (e.exports = v);
            },
            function (e, t) {
              function i(e) {
                var t = [];
                for (var i in e) t.push(i);
                return t;
              }
              (e.exports =
                "function" == typeof Object.keys ? Object.keys : i).shim = i;
            },
            function (e, t) {
              function i(e) {
                return (
                  "[object Arguments]" == Object.prototype.toString.call(e)
                );
              }
              function n(e) {
                return (
                  (e &&
                    "object" == typeof e &&
                    "number" == typeof e.length &&
                    Object.prototype.hasOwnProperty.call(e, "callee") &&
                    !Object.prototype.propertyIsEnumerable.call(e, "callee")) ||
                  !1
                );
              }
              var r =
                "[object Arguments]" ==
                (function () {
                  return Object.prototype.toString.call(arguments);
                })();
              ((t = e.exports = r ? i : n).supported = i), (t.unsupported = n);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t, i) {
                return (
                  t in e
                    ? Object.defineProperty(e, t, {
                        value: i,
                        enumerable: !0,
                        configurable: !0,
                        writable: !0,
                      })
                    : (e[t] = i),
                  e
                );
              }
              function a(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function o(e, t) {
                return Object.keys(t).reduce(function (i, n) {
                  return (
                    null == e[n] ||
                      (t[n] === e[n]
                        ? (i[n] = t[n])
                        : Array.isArray(t[n])
                        ? t[n].indexOf(e[n]) < 0 && (i[n] = t[n].concat([e[n]]))
                        : (i[n] = [t[n], e[n]])),
                    i
                  );
                }, {});
              }
              function s(e) {
                return e.reduce(function (e, t) {
                  if (1 === t.insert) {
                    var i = (0, y.default)(t.attributes);
                    return (
                      delete i.image, e.insert({ image: t.attributes.image }, i)
                    );
                  }
                  if (
                    (null == t.attributes ||
                      (!0 !== t.attributes.list &&
                        !0 !== t.attributes.bullet) ||
                      ((t = (0, y.default)(t)).attributes.list
                        ? (t.attributes.list = "ordered")
                        : ((t.attributes.list = "bullet"),
                          delete t.attributes.bullet)),
                    "string" == typeof t.insert)
                  ) {
                    var n = t.insert
                      .replace(/\r\n/g, "\n")
                      .replace(/\r/g, "\n");
                    return e.insert(n, t.attributes);
                  }
                  return e.push(t);
                }, new d.default());
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var l =
                  "function" == typeof Symbol &&
                  "symbol" == typeof Symbol.iterator
                    ? function (e) {
                        return typeof e;
                      }
                    : function (e) {
                        return e &&
                          "function" == typeof Symbol &&
                          e.constructor === Symbol &&
                          e !== Symbol.prototype
                          ? "symbol"
                          : typeof e;
                      },
                c = (function () {
                  function e(e, t) {
                    var i = [],
                      n = !0,
                      r = !1,
                      a = void 0;
                    try {
                      for (
                        var o, s = e[Symbol.iterator]();
                        !(n = (o = s.next()).done) &&
                        (i.push(o.value), !t || i.length !== t);
                        n = !0
                      );
                    } catch (e) {
                      (r = !0), (a = e);
                    } finally {
                      try {
                        !n && s.return && s.return();
                      } finally {
                        if (r) throw a;
                      }
                    }
                    return i;
                  }
                  return function (t, i) {
                    if (Array.isArray(t)) return t;
                    if (Symbol.iterator in Object(t)) return e(t, i);
                    throw new TypeError(
                      "Invalid attempt to destructure non-iterable instance"
                    );
                  };
                })(),
                u = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                d = n(i(4)),
                h = n(i(20)),
                f = n(i(0)),
                p = n(i(13)),
                g = n(i(31)),
                m = i(3),
                v = n(m),
                b = n(i(14)),
                y = n(i(21)),
                x = n(i(12)),
                w = n(i(2)),
                E = /^[ -~]*$/,
                _ = (function () {
                  function e(t) {
                    a(this, e),
                      (this.scroll = t),
                      (this.delta = this.getDelta());
                  }
                  return (
                    u(e, [
                      {
                        key: "applyDelta",
                        value: function (e) {
                          var t = this,
                            i = !1;
                          this.scroll.update();
                          var n = this.scroll.length();
                          return (
                            this.scroll.batchStart(),
                            (e = s(e)).reduce(function (e, r) {
                              var a =
                                  r.retain || r.delete || r.insert.length || 1,
                                o = r.attributes || {};
                              if (null != r.insert) {
                                if ("string" == typeof r.insert) {
                                  var s = r.insert;
                                  s.endsWith("\n") &&
                                    i &&
                                    ((i = !1), (s = s.slice(0, -1))),
                                    e >= n && !s.endsWith("\n") && (i = !0),
                                    t.scroll.insertAt(e, s);
                                  var u = t.scroll.line(e),
                                    d = c(u, 2),
                                    p = d[0],
                                    g = d[1],
                                    b = (0, w.default)(
                                      {},
                                      (0, m.bubbleFormats)(p)
                                    );
                                  if (p instanceof v.default) {
                                    var y = p.descendant(f.default.Leaf, g),
                                      x = c(y, 1)[0];
                                    b = (0, w.default)(
                                      b,
                                      (0, m.bubbleFormats)(x)
                                    );
                                  }
                                  o = h.default.attributes.diff(b, o) || {};
                                } else if ("object" === l(r.insert)) {
                                  var E = Object.keys(r.insert)[0];
                                  if (null == E) return e;
                                  t.scroll.insertAt(e, E, r.insert[E]);
                                }
                                n += a;
                              }
                              return (
                                Object.keys(o).forEach(function (i) {
                                  t.scroll.formatAt(e, a, i, o[i]);
                                }),
                                e + a
                              );
                            }, 0),
                            e.reduce(function (e, i) {
                              return "number" == typeof i.delete
                                ? (t.scroll.deleteAt(e, i.delete), e)
                                : e + (i.retain || i.insert.length || 1);
                            }, 0),
                            this.scroll.batchEnd(),
                            this.update(e)
                          );
                        },
                      },
                      {
                        key: "deleteText",
                        value: function (e, t) {
                          return (
                            this.scroll.deleteAt(e, t),
                            this.update(new d.default().retain(e).delete(t))
                          );
                        },
                      },
                      {
                        key: "formatLine",
                        value: function (e, t) {
                          var i = this,
                            n =
                              arguments.length > 2 && void 0 !== arguments[2]
                                ? arguments[2]
                                : {};
                          return (
                            this.scroll.update(),
                            Object.keys(n).forEach(function (r) {
                              if (
                                null == i.scroll.whitelist ||
                                i.scroll.whitelist[r]
                              ) {
                                var a = i.scroll.lines(e, Math.max(t, 1)),
                                  o = t;
                                a.forEach(function (t) {
                                  var a = t.length();
                                  if (t instanceof p.default) {
                                    var s = e - t.offset(i.scroll),
                                      l = t.newlineIndex(s + o) - s + 1;
                                    t.formatAt(s, l, r, n[r]);
                                  } else t.format(r, n[r]);
                                  o -= a;
                                });
                              }
                            }),
                            this.scroll.optimize(),
                            this.update(
                              new d.default()
                                .retain(e)
                                .retain(t, (0, y.default)(n))
                            )
                          );
                        },
                      },
                      {
                        key: "formatText",
                        value: function (e, t) {
                          var i = this,
                            n =
                              arguments.length > 2 && void 0 !== arguments[2]
                                ? arguments[2]
                                : {};
                          return (
                            Object.keys(n).forEach(function (r) {
                              i.scroll.formatAt(e, t, r, n[r]);
                            }),
                            this.update(
                              new d.default()
                                .retain(e)
                                .retain(t, (0, y.default)(n))
                            )
                          );
                        },
                      },
                      {
                        key: "getContents",
                        value: function (e, t) {
                          return this.delta.slice(e, e + t);
                        },
                      },
                      {
                        key: "getDelta",
                        value: function () {
                          return this.scroll.lines().reduce(function (e, t) {
                            return e.concat(t.delta());
                          }, new d.default());
                        },
                      },
                      {
                        key: "getFormat",
                        value: function (e) {
                          var t =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : 0,
                            i = [],
                            n = [];
                          0 === t
                            ? this.scroll.path(e).forEach(function (e) {
                                var t = c(e, 1)[0];
                                t instanceof v.default
                                  ? i.push(t)
                                  : t instanceof f.default.Leaf && n.push(t);
                              })
                            : ((i = this.scroll.lines(e, t)),
                              (n = this.scroll.descendants(
                                f.default.Leaf,
                                e,
                                t
                              )));
                          var r = [i, n].map(function (e) {
                            if (0 === e.length) return {};
                            for (
                              var t = (0, m.bubbleFormats)(e.shift());
                              Object.keys(t).length > 0;

                            ) {
                              var i = e.shift();
                              if (null == i) return t;
                              t = o((0, m.bubbleFormats)(i), t);
                            }
                            return t;
                          });
                          return w.default.apply(w.default, r);
                        },
                      },
                      {
                        key: "getText",
                        value: function (e, t) {
                          return this.getContents(e, t)
                            .filter(function (e) {
                              return "string" == typeof e.insert;
                            })
                            .map(function (e) {
                              return e.insert;
                            })
                            .join("");
                        },
                      },
                      {
                        key: "insertEmbed",
                        value: function (e, t, i) {
                          return (
                            this.scroll.insertAt(e, t, i),
                            this.update(
                              new d.default().retain(e).insert(r({}, t, i))
                            )
                          );
                        },
                      },
                      {
                        key: "insertText",
                        value: function (e, t) {
                          var i = this,
                            n =
                              arguments.length > 2 && void 0 !== arguments[2]
                                ? arguments[2]
                                : {};
                          return (
                            (t = t.replace(/\r\n/g, "\n").replace(/\r/g, "\n")),
                            this.scroll.insertAt(e, t),
                            Object.keys(n).forEach(function (r) {
                              i.scroll.formatAt(e, t.length, r, n[r]);
                            }),
                            this.update(
                              new d.default()
                                .retain(e)
                                .insert(t, (0, y.default)(n))
                            )
                          );
                        },
                      },
                      {
                        key: "isBlank",
                        value: function () {
                          if (0 == this.scroll.children.length) return !0;
                          if (this.scroll.children.length > 1) return !1;
                          var e = this.scroll.children.head;
                          return (
                            e.statics.blotName === v.default.blotName &&
                            !(e.children.length > 1) &&
                            e.children.head instanceof b.default
                          );
                        },
                      },
                      {
                        key: "removeFormat",
                        value: function (e, t) {
                          var i = this.getText(e, t),
                            n = this.scroll.line(e + t),
                            r = c(n, 2),
                            a = r[0],
                            o = r[1],
                            s = 0,
                            l = new d.default();
                          null != a &&
                            ((s =
                              a instanceof p.default
                                ? a.newlineIndex(o) - o + 1
                                : a.length() - o),
                            (l = a
                              .delta()
                              .slice(o, o + s - 1)
                              .insert("\n")));
                          var u = this.getContents(e, t + s).diff(
                              new d.default().insert(i).concat(l)
                            ),
                            h = new d.default().retain(e).concat(u);
                          return this.applyDelta(h);
                        },
                      },
                      {
                        key: "update",
                        value: function (e) {
                          var t =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : [],
                            i =
                              arguments.length > 2 && void 0 !== arguments[2]
                                ? arguments[2]
                                : void 0,
                            n = this.delta;
                          if (
                            1 === t.length &&
                            "characterData" === t[0].type &&
                            t[0].target.data.match(E) &&
                            f.default.find(t[0].target)
                          ) {
                            var r = f.default.find(t[0].target),
                              a = (0, m.bubbleFormats)(r),
                              o = r.offset(this.scroll),
                              s = t[0].oldValue.replace(g.default.CONTENTS, ""),
                              l = new d.default().insert(s),
                              c = new d.default().insert(r.value());
                            (e = new d.default()
                              .retain(o)
                              .concat(l.diff(c, i))
                              .reduce(function (e, t) {
                                return t.insert
                                  ? e.insert(t.insert, a)
                                  : e.push(t);
                              }, new d.default())),
                              (this.delta = n.compose(e));
                          } else
                            (this.delta = this.getDelta()),
                              (e && (0, x.default)(n.compose(e), this.delta)) ||
                                (e = n.diff(this.delta, i));
                          return e;
                        },
                      },
                    ]),
                    e
                  );
                })();
              t.default = _;
            },
            function (e, t) {
              "use strict";
              function i() {}
              function n(e, t, i) {
                (this.fn = e), (this.context = t), (this.once = i || !1);
              }
              function r() {
                (this._events = new i()), (this._eventsCount = 0);
              }
              var a = Object.prototype.hasOwnProperty,
                o = "~";
              Object.create &&
                ((i.prototype = Object.create(null)),
                new i().__proto__ || (o = !1)),
                (r.prototype.eventNames = function () {
                  var e,
                    t,
                    i = [];
                  if (0 === this._eventsCount) return i;
                  for (t in (e = this._events))
                    a.call(e, t) && i.push(o ? t.slice(1) : t);
                  return Object.getOwnPropertySymbols
                    ? i.concat(Object.getOwnPropertySymbols(e))
                    : i;
                }),
                (r.prototype.listeners = function (e, t) {
                  var i = o ? o + e : e,
                    n = this._events[i];
                  if (t) return !!n;
                  if (!n) return [];
                  if (n.fn) return [n.fn];
                  for (var r = 0, a = n.length, s = new Array(a); r < a; r++)
                    s[r] = n[r].fn;
                  return s;
                }),
                (r.prototype.emit = function (e, t, i, n, r, a) {
                  var s = o ? o + e : e;
                  if (!this._events[s]) return !1;
                  var l,
                    c,
                    u = this._events[s],
                    d = arguments.length;
                  if (u.fn) {
                    switch (
                      (u.once && this.removeListener(e, u.fn, void 0, !0), d)
                    ) {
                      case 1:
                        return u.fn.call(u.context), !0;
                      case 2:
                        return u.fn.call(u.context, t), !0;
                      case 3:
                        return u.fn.call(u.context, t, i), !0;
                      case 4:
                        return u.fn.call(u.context, t, i, n), !0;
                      case 5:
                        return u.fn.call(u.context, t, i, n, r), !0;
                      case 6:
                        return u.fn.call(u.context, t, i, n, r, a), !0;
                    }
                    for (c = 1, l = new Array(d - 1); c < d; c++)
                      l[c - 1] = arguments[c];
                    u.fn.apply(u.context, l);
                  } else {
                    var h,
                      f = u.length;
                    for (c = 0; c < f; c++)
                      switch (
                        (u[c].once &&
                          this.removeListener(e, u[c].fn, void 0, !0),
                        d)
                      ) {
                        case 1:
                          u[c].fn.call(u[c].context);
                          break;
                        case 2:
                          u[c].fn.call(u[c].context, t);
                          break;
                        case 3:
                          u[c].fn.call(u[c].context, t, i);
                          break;
                        case 4:
                          u[c].fn.call(u[c].context, t, i, n);
                          break;
                        default:
                          if (!l)
                            for (h = 1, l = new Array(d - 1); h < d; h++)
                              l[h - 1] = arguments[h];
                          u[c].fn.apply(u[c].context, l);
                      }
                  }
                  return !0;
                }),
                (r.prototype.on = function (e, t, i) {
                  var r = new n(t, i || this),
                    a = o ? o + e : e;
                  return (
                    this._events[a]
                      ? this._events[a].fn
                        ? (this._events[a] = [this._events[a], r])
                        : this._events[a].push(r)
                      : ((this._events[a] = r), this._eventsCount++),
                    this
                  );
                }),
                (r.prototype.once = function (e, t, i) {
                  var r = new n(t, i || this, !0),
                    a = o ? o + e : e;
                  return (
                    this._events[a]
                      ? this._events[a].fn
                        ? (this._events[a] = [this._events[a], r])
                        : this._events[a].push(r)
                      : ((this._events[a] = r), this._eventsCount++),
                    this
                  );
                }),
                (r.prototype.removeListener = function (e, t, n, r) {
                  var a = o ? o + e : e;
                  if (!this._events[a]) return this;
                  if (!t)
                    return (
                      0 == --this._eventsCount
                        ? (this._events = new i())
                        : delete this._events[a],
                      this
                    );
                  var s = this._events[a];
                  if (s.fn)
                    s.fn !== t ||
                      (r && !s.once) ||
                      (n && s.context !== n) ||
                      (0 == --this._eventsCount
                        ? (this._events = new i())
                        : delete this._events[a]);
                  else {
                    for (var l = 0, c = [], u = s.length; l < u; l++)
                      (s[l].fn !== t ||
                        (r && !s[l].once) ||
                        (n && s[l].context !== n)) &&
                        c.push(s[l]);
                    c.length
                      ? (this._events[a] = 1 === c.length ? c[0] : c)
                      : 0 == --this._eventsCount
                      ? (this._events = new i())
                      : delete this._events[a];
                  }
                  return this;
                }),
                (r.prototype.removeAllListeners = function (e) {
                  var t;
                  return (
                    e
                      ? ((t = o ? o + e : e),
                        this._events[t] &&
                          (0 == --this._eventsCount
                            ? (this._events = new i())
                            : delete this._events[t]))
                      : ((this._events = new i()), (this._eventsCount = 0)),
                    this
                  );
                }),
                (r.prototype.off = r.prototype.removeListener),
                (r.prototype.addListener = r.prototype.on),
                (r.prototype.setMaxListeners = function () {
                  return this;
                }),
                (r.prefixed = o),
                (r.EventEmitter = r),
                void 0 !== e && (e.exports = r);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              function s(e) {
                return e instanceof p.default || e instanceof f.BlockEmbed;
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var l = (function () {
                  function e(e, t) {
                    var i = [],
                      n = !0,
                      r = !1,
                      a = void 0;
                    try {
                      for (
                        var o, s = e[Symbol.iterator]();
                        !(n = (o = s.next()).done) &&
                        (i.push(o.value), !t || i.length !== t);
                        n = !0
                      );
                    } catch (e) {
                      (r = !0), (a = e);
                    } finally {
                      try {
                        !n && s.return && s.return();
                      } finally {
                        if (r) throw a;
                      }
                    }
                    return i;
                  }
                  return function (t, i) {
                    if (Array.isArray(t)) return t;
                    if (Symbol.iterator in Object(t)) return e(t, i);
                    throw new TypeError(
                      "Invalid attempt to destructure non-iterable instance"
                    );
                  };
                })(),
                c = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                u = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                d = n(i(0)),
                h = n(i(9)),
                f = i(3),
                p = n(f),
                g = n(i(14)),
                m = n(i(13)),
                v = n(i(23)),
                b = (function (e) {
                  function t(e, i) {
                    r(this, t);
                    var n = a(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)
                    );
                    return (
                      (n.emitter = i.emitter),
                      Array.isArray(i.whitelist) &&
                        (n.whitelist = i.whitelist.reduce(function (e, t) {
                          return (e[t] = !0), e;
                        }, {})),
                      n.domNode.addEventListener(
                        "DOMNodeInserted",
                        function () {}
                      ),
                      n.optimize(),
                      n.enable(),
                      n
                    );
                  }
                  return (
                    o(t, e),
                    c(t, [
                      {
                        key: "batchStart",
                        value: function () {
                          this.batch = !0;
                        },
                      },
                      {
                        key: "batchEnd",
                        value: function () {
                          (this.batch = !1), this.optimize();
                        },
                      },
                      {
                        key: "deleteAt",
                        value: function (e, i) {
                          var n = this.line(e),
                            r = l(n, 2),
                            a = r[0],
                            o = r[1],
                            s = this.line(e + i),
                            c = l(s, 1)[0];
                          if (
                            (u(
                              t.prototype.__proto__ ||
                                Object.getPrototypeOf(t.prototype),
                              "deleteAt",
                              this
                            ).call(this, e, i),
                            null != c && a !== c && o > 0)
                          ) {
                            if (
                              a instanceof f.BlockEmbed ||
                              c instanceof f.BlockEmbed
                            )
                              return void this.optimize();
                            if (a instanceof m.default) {
                              var d = a.newlineIndex(a.length(), !0);
                              if (d > -1 && (a = a.split(d + 1)) === c)
                                return void this.optimize();
                            } else if (c instanceof m.default) {
                              var h = c.newlineIndex(0);
                              h > -1 && c.split(h + 1);
                            }
                            var p =
                              c.children.head instanceof g.default
                                ? null
                                : c.children.head;
                            a.moveChildren(c, p), a.remove();
                          }
                          this.optimize();
                        },
                      },
                      {
                        key: "enable",
                        value: function () {
                          var e =
                            !(
                              arguments.length > 0 && void 0 !== arguments[0]
                            ) || arguments[0];
                          this.domNode.setAttribute("contenteditable", e);
                        },
                      },
                      {
                        key: "formatAt",
                        value: function (e, i, n, r) {
                          (null == this.whitelist || this.whitelist[n]) &&
                            (u(
                              t.prototype.__proto__ ||
                                Object.getPrototypeOf(t.prototype),
                              "formatAt",
                              this
                            ).call(this, e, i, n, r),
                            this.optimize());
                        },
                      },
                      {
                        key: "insertAt",
                        value: function (e, i, n) {
                          if (
                            null == n ||
                            null == this.whitelist ||
                            this.whitelist[i]
                          ) {
                            if (e >= this.length())
                              if (
                                null == n ||
                                null ==
                                  d.default.query(i, d.default.Scope.BLOCK)
                              ) {
                                var r = d.default.create(
                                  this.statics.defaultChild
                                );
                                this.appendChild(r),
                                  null == n &&
                                    i.endsWith("\n") &&
                                    (i = i.slice(0, -1)),
                                  r.insertAt(0, i, n);
                              } else {
                                var a = d.default.create(i, n);
                                this.appendChild(a);
                              }
                            else
                              u(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "insertAt",
                                this
                              ).call(this, e, i, n);
                            this.optimize();
                          }
                        },
                      },
                      {
                        key: "insertBefore",
                        value: function (e, i) {
                          if (e.statics.scope === d.default.Scope.INLINE_BLOT) {
                            var n = d.default.create(this.statics.defaultChild);
                            n.appendChild(e), (e = n);
                          }
                          u(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "insertBefore",
                            this
                          ).call(this, e, i);
                        },
                      },
                      {
                        key: "leaf",
                        value: function (e) {
                          return this.path(e).pop() || [null, -1];
                        },
                      },
                      {
                        key: "line",
                        value: function (e) {
                          return e === this.length()
                            ? this.line(e - 1)
                            : this.descendant(s, e);
                        },
                      },
                      {
                        key: "lines",
                        value: function () {
                          return (function e(t, i, n) {
                            var r = [],
                              a = n;
                            return (
                              t.children.forEachAt(i, n, function (t, i, n) {
                                s(t)
                                  ? r.push(t)
                                  : t instanceof d.default.Container &&
                                    (r = r.concat(e(t, i, a))),
                                  (a -= n);
                              }),
                              r
                            );
                          })(
                            this,
                            arguments.length > 0 && void 0 !== arguments[0]
                              ? arguments[0]
                              : 0,
                            arguments.length > 1 && void 0 !== arguments[1]
                              ? arguments[1]
                              : Number.MAX_VALUE
                          );
                        },
                      },
                      {
                        key: "optimize",
                        value: function () {
                          var e =
                              arguments.length > 0 && void 0 !== arguments[0]
                                ? arguments[0]
                                : [],
                            i =
                              arguments.length > 1 && void 0 !== arguments[1]
                                ? arguments[1]
                                : {};
                          !0 !== this.batch &&
                            (u(
                              t.prototype.__proto__ ||
                                Object.getPrototypeOf(t.prototype),
                              "optimize",
                              this
                            ).call(this, e, i),
                            e.length > 0 &&
                              this.emitter.emit(
                                h.default.events.SCROLL_OPTIMIZE,
                                e,
                                i
                              ));
                        },
                      },
                      {
                        key: "path",
                        value: function (e) {
                          return u(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "path",
                            this
                          )
                            .call(this, e)
                            .slice(1);
                        },
                      },
                      {
                        key: "update",
                        value: function (e) {
                          if (!0 !== this.batch) {
                            var i = h.default.sources.USER;
                            "string" == typeof e && (i = e),
                              Array.isArray(e) ||
                                (e = this.observer.takeRecords()),
                              e.length > 0 &&
                                this.emitter.emit(
                                  h.default.events.SCROLL_BEFORE_UPDATE,
                                  i,
                                  e
                                ),
                              u(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "update",
                                this
                              ).call(this, e.concat([])),
                              e.length > 0 &&
                                this.emitter.emit(
                                  h.default.events.SCROLL_UPDATE,
                                  i,
                                  e
                                );
                          }
                        },
                      },
                    ]),
                    t
                  );
                })(d.default.Scroll);
              (b.blotName = "scroll"),
                (b.className = "ql-editor"),
                (b.tagName = "DIV"),
                (b.defaultChild = "block"),
                (b.allowedChildren = [p.default, f.BlockEmbed, v.default]),
                (t.default = b);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t, i) {
                return (
                  t in e
                    ? Object.defineProperty(e, t, {
                        value: i,
                        enumerable: !0,
                        configurable: !0,
                        writable: !0,
                      })
                    : (e[t] = i),
                  e
                );
              }
              function a(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function o(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function s(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              function l(e, t, i) {
                return "object" === (void 0 === t ? "undefined" : _(t))
                  ? Object.keys(t).reduce(function (e, i) {
                      return l(e, i, t[i]);
                    }, e)
                  : e.reduce(function (e, n) {
                      return n.attributes && n.attributes[t]
                        ? e.push(n)
                        : e.insert(
                            n.insert,
                            (0, k.default)({}, r({}, t, i), n.attributes)
                          );
                    }, new T.default());
              }
              function c(e) {
                return e.nodeType !== Node.ELEMENT_NODE
                  ? {}
                  : e["__ql-computed-style"] ||
                      (e["__ql-computed-style"] = window.getComputedStyle(e));
              }
              function u(e, t) {
                for (
                  var i = "", n = e.ops.length - 1;
                  n >= 0 && i.length < t.length;
                  --n
                ) {
                  var r = e.ops[n];
                  if ("string" != typeof r.insert) break;
                  i = r.insert + i;
                }
                return i.slice(-1 * t.length) === t;
              }
              function d(e) {
                return (
                  0 !== e.childNodes.length &&
                  ["block", "list-item"].indexOf(c(e).display) > -1
                );
              }
              function h(e, t, i) {
                return e.nodeType === e.TEXT_NODE
                  ? i.reduce(function (t, i) {
                      return i(e, t);
                    }, new T.default())
                  : e.nodeType === e.ELEMENT_NODE
                  ? [].reduce.call(
                      e.childNodes || [],
                      function (n, r) {
                        var a = h(r, t, i);
                        return (
                          r.nodeType === e.ELEMENT_NODE &&
                            ((a = t.reduce(function (e, t) {
                              return t(r, e);
                            }, a)),
                            (a = (r[j] || []).reduce(function (e, t) {
                              return t(r, e);
                            }, a))),
                          n.concat(a)
                        );
                      },
                      new T.default()
                    )
                  : new T.default();
              }
              function f(e, t, i) {
                return l(i, e, !0);
              }
              function p(e, t) {
                var i = C.default.Attributor.Attribute.keys(e),
                  n = C.default.Attributor.Class.keys(e),
                  r = C.default.Attributor.Style.keys(e),
                  a = {};
                return (
                  i
                    .concat(n)
                    .concat(r)
                    .forEach(function (t) {
                      var i = C.default.query(t, C.default.Scope.ATTRIBUTE);
                      (null != i &&
                        ((a[i.attrName] = i.value(e)), a[i.attrName])) ||
                        (null == (i = Y[t]) ||
                          (i.attrName !== t && i.keyName !== t) ||
                          (a[i.attrName] = i.value(e) || void 0),
                        null == (i = X[t]) ||
                          (i.attrName !== t && i.keyName !== t) ||
                          ((i = X[t]), (a[i.attrName] = i.value(e) || void 0)));
                    }),
                  Object.keys(a).length > 0 && (t = l(t, a)),
                  t
                );
              }
              function g(e, t) {
                var i = C.default.query(e);
                if (null == i) return t;
                if (i.prototype instanceof C.default.Embed) {
                  var n = {},
                    r = i.value(e);
                  null != r &&
                    ((n[i.blotName] = r),
                    (t = new T.default().insert(n, i.formats(e))));
                } else
                  "function" == typeof i.formats &&
                    (t = l(t, i.blotName, i.formats(e)));
                return t;
              }
              function m(e, t) {
                return u(t, "\n") || t.insert("\n"), t;
              }
              function v() {
                return new T.default();
              }
              function b(e, t) {
                var i = C.default.query(e);
                if (null == i || "list-item" !== i.blotName || !u(t, "\n"))
                  return t;
                for (
                  var n = -1, r = e.parentNode;
                  !r.classList.contains("ql-clipboard");

                )
                  "list" === (C.default.query(r) || {}).blotName && (n += 1),
                    (r = r.parentNode);
                return n <= 0
                  ? t
                  : t.compose(
                      new T.default()
                        .retain(t.length() - 1)
                        .retain(1, { indent: n })
                    );
              }
              function y(e, t) {
                return (
                  u(t, "\n") ||
                    ((d(e) ||
                      (t.length() > 0 && e.nextSibling && d(e.nextSibling))) &&
                      t.insert("\n")),
                  t
                );
              }
              function x(e, t) {
                if (d(e) && null != e.nextElementSibling && !u(t, "\n\n")) {
                  var i =
                    e.offsetHeight +
                    parseFloat(c(e).marginTop) +
                    parseFloat(c(e).marginBottom);
                  e.nextElementSibling.offsetTop > e.offsetTop + 1.5 * i &&
                    t.insert("\n");
                }
                return t;
              }
              function w(e, t) {
                var i = {},
                  n = e.style || {};
                return (
                  n.fontStyle && "italic" === c(e).fontStyle && (i.italic = !0),
                  n.fontWeight &&
                    (c(e).fontWeight.startsWith("bold") ||
                      parseInt(c(e).fontWeight) >= 700) &&
                    (i.bold = !0),
                  Object.keys(i).length > 0 && (t = l(t, i)),
                  parseFloat(n.textIndent || 0) > 0 &&
                    (t = new T.default().insert("\t").concat(t)),
                  t
                );
              }
              function E(e, t) {
                var i = e.data;
                if ("O:P" === e.parentNode.tagName) return t.insert(i.trim());
                if (
                  0 === i.trim().length &&
                  e.parentNode.classList.contains("ql-clipboard")
                )
                  return t;
                if (!c(e.parentNode).whiteSpace.startsWith("pre")) {
                  var n = function (e, t) {
                    return (t = t.replace(/[^\u00a0]/g, "")).length < 1 && e
                      ? " "
                      : t;
                  };
                  (i = (i = i
                    .replace(/\r\n/g, " ")
                    .replace(/\n/g, " ")).replace(/\s\s+/g, n.bind(n, !0))),
                    ((null == e.previousSibling && d(e.parentNode)) ||
                      (null != e.previousSibling && d(e.previousSibling))) &&
                      (i = i.replace(/^\s+/, n.bind(n, !1))),
                    ((null == e.nextSibling && d(e.parentNode)) ||
                      (null != e.nextSibling && d(e.nextSibling))) &&
                      (i = i.replace(/\s+$/, n.bind(n, !1)));
                }
                return t.insert(i);
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.matchText =
                  t.matchSpacing =
                  t.matchNewline =
                  t.matchBlot =
                  t.matchAttributor =
                  t.default =
                    void 0);
              var _ =
                  "function" == typeof Symbol &&
                  "symbol" == typeof Symbol.iterator
                    ? function (e) {
                        return typeof e;
                      }
                    : function (e) {
                        return e &&
                          "function" == typeof Symbol &&
                          e.constructor === Symbol &&
                          e !== Symbol.prototype
                          ? "symbol"
                          : typeof e;
                      },
                S = (function () {
                  function e(e, t) {
                    var i = [],
                      n = !0,
                      r = !1,
                      a = void 0;
                    try {
                      for (
                        var o, s = e[Symbol.iterator]();
                        !(n = (o = s.next()).done) &&
                        (i.push(o.value), !t || i.length !== t);
                        n = !0
                      );
                    } catch (e) {
                      (r = !0), (a = e);
                    } finally {
                      try {
                        !n && s.return && s.return();
                      } finally {
                        if (r) throw a;
                      }
                    }
                    return i;
                  }
                  return function (t, i) {
                    if (Array.isArray(t)) return t;
                    if (Symbol.iterator in Object(t)) return e(t, i);
                    throw new TypeError(
                      "Invalid attempt to destructure non-iterable instance"
                    );
                  };
                })(),
                A = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                k = n(i(2)),
                T = n(i(4)),
                C = n(i(0)),
                O = n(i(6)),
                I = n(i(10)),
                M = n(i(7)),
                L = i(34),
                P = i(35),
                D = n(i(13)),
                R = i(24),
                N = i(36),
                F = i(37),
                B = i(38),
                z = (0, I.default)("quill:clipboard"),
                j = "__ql-matcher",
                H = [
                  [Node.TEXT_NODE, E],
                  [Node.TEXT_NODE, y],
                  ["br", m],
                  [Node.ELEMENT_NODE, y],
                  [Node.ELEMENT_NODE, g],
                  [Node.ELEMENT_NODE, x],
                  [Node.ELEMENT_NODE, p],
                  [Node.ELEMENT_NODE, w],
                  ["li", b],
                  ["b", f.bind(f, "bold")],
                  ["i", f.bind(f, "italic")],
                  ["style", v],
                ],
                Y = [L.AlignAttribute, N.DirectionAttribute].reduce(function (
                  e,
                  t
                ) {
                  return (e[t.keyName] = t), e;
                },
                {}),
                X = [
                  L.AlignStyle,
                  P.BackgroundStyle,
                  R.ColorStyle,
                  N.DirectionStyle,
                  F.FontStyle,
                  B.SizeStyle,
                ].reduce(function (e, t) {
                  return (e[t.keyName] = t), e;
                }, {}),
                W = (function (e) {
                  function t(e, i) {
                    a(this, t);
                    var n = o(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, i)
                    );
                    return (
                      n.quill.root.addEventListener("paste", n.onPaste.bind(n)),
                      (n.container = n.quill.addContainer("ql-clipboard")),
                      n.container.setAttribute("contenteditable", !0),
                      n.container.setAttribute("tabindex", -1),
                      (n.matchers = []),
                      H.concat(n.options.matchers).forEach(function (e) {
                        var t = S(e, 2),
                          r = t[0],
                          a = t[1];
                        (i.matchVisual || a !== x) && n.addMatcher(r, a);
                      }),
                      n
                    );
                  }
                  return (
                    s(t, e),
                    A(t, [
                      {
                        key: "addMatcher",
                        value: function (e, t) {
                          this.matchers.push([e, t]);
                        },
                      },
                      {
                        key: "convert",
                        value: function (e) {
                          if ("string" == typeof e)
                            return (
                              (this.container.innerHTML = e.replace(
                                /\>\r?\n +\</g,
                                "><"
                              )),
                              this.convert()
                            );
                          var t = this.quill.getFormat(
                            this.quill.selection.savedRange.index
                          );
                          if (t[D.default.blotName]) {
                            var i = this.container.innerText;
                            return (
                              (this.container.innerHTML = ""),
                              new T.default().insert(
                                i,
                                r({}, D.default.blotName, t[D.default.blotName])
                              )
                            );
                          }
                          var n = this.prepareMatching(),
                            a = S(n, 2),
                            o = a[0],
                            s = a[1],
                            l = h(this.container, o, s);
                          return (
                            u(l, "\n") &&
                              null == l.ops[l.ops.length - 1].attributes &&
                              (l = l.compose(
                                new T.default().retain(l.length() - 1).delete(1)
                              )),
                            z.log("convert", this.container.innerHTML, l),
                            (this.container.innerHTML = ""),
                            l
                          );
                        },
                      },
                      {
                        key: "dangerouslyPasteHTML",
                        value: function (e, t) {
                          var i =
                            arguments.length > 2 && void 0 !== arguments[2]
                              ? arguments[2]
                              : O.default.sources.API;
                          if ("string" == typeof e)
                            this.quill.setContents(this.convert(e), t),
                              this.quill.setSelection(
                                0,
                                O.default.sources.SILENT
                              );
                          else {
                            var n = this.convert(t);
                            this.quill.updateContents(
                              new T.default().retain(e).concat(n),
                              i
                            ),
                              this.quill.setSelection(
                                e + n.length(),
                                O.default.sources.SILENT
                              );
                          }
                        },
                      },
                      {
                        key: "onPaste",
                        value: function (e) {
                          var t = this;
                          if (!e.defaultPrevented && this.quill.isEnabled()) {
                            var i = this.quill.getSelection(),
                              n = new T.default().retain(i.index),
                              r = this.quill.scrollingContainer.scrollTop;
                            this.container.focus(),
                              this.quill.selection.update(
                                O.default.sources.SILENT
                              ),
                              setTimeout(function () {
                                (n = n.concat(t.convert()).delete(i.length)),
                                  t.quill.updateContents(
                                    n,
                                    O.default.sources.USER
                                  ),
                                  t.quill.setSelection(
                                    n.length() - i.length,
                                    O.default.sources.SILENT
                                  ),
                                  (t.quill.scrollingContainer.scrollTop = r),
                                  t.quill.focus();
                              }, 1);
                          }
                        },
                      },
                      {
                        key: "prepareMatching",
                        value: function () {
                          var e = this,
                            t = [],
                            i = [];
                          return (
                            this.matchers.forEach(function (n) {
                              var r = S(n, 2),
                                a = r[0],
                                o = r[1];
                              switch (a) {
                                case Node.TEXT_NODE:
                                  i.push(o);
                                  break;
                                case Node.ELEMENT_NODE:
                                  t.push(o);
                                  break;
                                default:
                                  [].forEach.call(
                                    e.container.querySelectorAll(a),
                                    function (e) {
                                      (e[j] = e[j] || []), e[j].push(o);
                                    }
                                  );
                              }
                            }),
                            [t, i]
                          );
                        },
                      },
                    ]),
                    t
                  );
                })(M.default);
              (W.DEFAULTS = { matchers: [], matchVisual: !0 }),
                (t.default = W),
                (t.matchAttributor = p),
                (t.matchBlot = g),
                (t.matchNewline = y),
                (t.matchSpacing = x),
                (t.matchText = E);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              function s(e) {
                var t = e.ops[e.ops.length - 1];
                return (
                  null != t &&
                  (null != t.insert
                    ? "string" == typeof t.insert && t.insert.endsWith("\n")
                    : null != t.attributes &&
                      Object.keys(t.attributes).some(function (e) {
                        return (
                          null != u.default.query(e, u.default.Scope.BLOCK)
                        );
                      }))
                );
              }
              function l(e) {
                var t = e.reduce(function (e, t) {
                    return e + (t.delete || 0);
                  }, 0),
                  i = e.length() - t;
                return s(e) && (i -= 1), i;
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.getLastChangeIndex = t.default = void 0);
              var c = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                u = n(i(0)),
                d = n(i(6)),
                h = (function (e) {
                  function t(e, i) {
                    r(this, t);
                    var n = a(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, i)
                    );
                    return (
                      (n.lastRecorded = 0),
                      (n.ignoreChange = !1),
                      n.clear(),
                      n.quill.on(
                        d.default.events.EDITOR_CHANGE,
                        function (e, t, i, r) {
                          e !== d.default.events.TEXT_CHANGE ||
                            n.ignoreChange ||
                            (n.options.userOnly && r !== d.default.sources.USER
                              ? n.transform(t)
                              : n.record(t, i));
                        }
                      ),
                      n.quill.keyboard.addBinding(
                        { key: "Z", shortKey: !0 },
                        n.undo.bind(n)
                      ),
                      n.quill.keyboard.addBinding(
                        { key: "Z", shortKey: !0, shiftKey: !0 },
                        n.redo.bind(n)
                      ),
                      /Win/i.test(navigator.platform) &&
                        n.quill.keyboard.addBinding(
                          { key: "Y", shortKey: !0 },
                          n.redo.bind(n)
                        ),
                      n
                    );
                  }
                  return (
                    o(t, e),
                    c(t, [
                      {
                        key: "change",
                        value: function (e, t) {
                          if (0 !== this.stack[e].length) {
                            var i = this.stack[e].pop();
                            this.stack[t].push(i),
                              (this.lastRecorded = 0),
                              (this.ignoreChange = !0),
                              this.quill.updateContents(
                                i[e],
                                d.default.sources.USER
                              ),
                              (this.ignoreChange = !1);
                            var n = l(i[e]);
                            this.quill.setSelection(n);
                          }
                        },
                      },
                      {
                        key: "clear",
                        value: function () {
                          this.stack = { undo: [], redo: [] };
                        },
                      },
                      {
                        key: "cutoff",
                        value: function () {
                          this.lastRecorded = 0;
                        },
                      },
                      {
                        key: "record",
                        value: function (e, t) {
                          if (0 !== e.ops.length) {
                            this.stack.redo = [];
                            var i = this.quill.getContents().diff(t),
                              n = Date.now();
                            if (
                              this.lastRecorded + this.options.delay > n &&
                              this.stack.undo.length > 0
                            ) {
                              var r = this.stack.undo.pop();
                              (i = i.compose(r.undo)), (e = r.redo.compose(e));
                            } else this.lastRecorded = n;
                            this.stack.undo.push({ redo: e, undo: i }),
                              this.stack.undo.length > this.options.maxStack &&
                                this.stack.undo.shift();
                          }
                        },
                      },
                      {
                        key: "redo",
                        value: function () {
                          this.change("redo", "undo");
                        },
                      },
                      {
                        key: "transform",
                        value: function (e) {
                          this.stack.undo.forEach(function (t) {
                            (t.undo = e.transform(t.undo, !0)),
                              (t.redo = e.transform(t.redo, !0));
                          }),
                            this.stack.redo.forEach(function (t) {
                              (t.undo = e.transform(t.undo, !0)),
                                (t.redo = e.transform(t.redo, !0));
                            });
                        },
                      },
                      {
                        key: "undo",
                        value: function () {
                          this.change("undo", "redo");
                        },
                      },
                    ]),
                    t
                  );
                })(n(i(7)).default);
              (h.DEFAULTS = { delay: 1e3, maxStack: 100, userOnly: !1 }),
                (t.default = h),
                (t.getLastChangeIndex = l);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.IndentClass = void 0);
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(0)),
                c = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    a(t, e),
                    o(t, [
                      {
                        key: "add",
                        value: function (e, i) {
                          if ("+1" === i || "-1" === i) {
                            var n = this.value(e) || 0;
                            i = "+1" === i ? n + 1 : n - 1;
                          }
                          return 0 === i
                            ? (this.remove(e), !0)
                            : s(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "add",
                                this
                              ).call(this, e, i);
                        },
                      },
                      {
                        key: "canAdd",
                        value: function (e, i) {
                          return (
                            s(
                              t.prototype.__proto__ ||
                                Object.getPrototypeOf(t.prototype),
                              "canAdd",
                              this
                            ).call(this, e, i) ||
                            s(
                              t.prototype.__proto__ ||
                                Object.getPrototypeOf(t.prototype),
                              "canAdd",
                              this
                            ).call(this, e, parseInt(i))
                          );
                        },
                      },
                      {
                        key: "value",
                        value: function (e) {
                          return (
                            parseInt(
                              s(
                                t.prototype.__proto__ ||
                                  Object.getPrototypeOf(t.prototype),
                                "value",
                                this
                              ).call(this, e)
                            ) || void 0
                          );
                        },
                      },
                    ]),
                    t
                  );
                })(l.default.Attributor.Class),
                u = new c("indent", "ql-indent", {
                  scope: l.default.Scope.BLOCK,
                  whitelist: [1, 2, 3, 4, 5, 6, 7, 8],
                });
              t.IndentClass = u;
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(3)),
                s = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return a(t, e), t;
                })(o.default);
              (s.blotName = "blockquote"),
                (s.tagName = "blockquote"),
                (t.default = s);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(3)),
                l = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    a(t, e),
                    o(t, null, [
                      {
                        key: "formats",
                        value: function (e) {
                          return this.tagName.indexOf(e.tagName) + 1;
                        },
                      },
                    ]),
                    t
                  );
                })(s.default);
              (l.blotName = "header"),
                (l.tagName = ["H1", "H2", "H3", "H4", "H5", "H6"]),
                (t.default = l);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t, i) {
                return (
                  t in e
                    ? Object.defineProperty(e, t, {
                        value: i,
                        enumerable: !0,
                        configurable: !0,
                        writable: !0,
                      })
                    : (e[t] = i),
                  e
                );
              }
              function a(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function o(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function s(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.default = t.ListItem = void 0);
              var l = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                c = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                u = n(i(0)),
                d = n(i(3)),
                h = n(i(23)),
                f = (function (e) {
                  function t() {
                    return (
                      a(this, t),
                      o(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    s(t, e),
                    l(
                      t,
                      [
                        {
                          key: "format",
                          value: function (e, i) {
                            e !== p.blotName || i
                              ? c(
                                  t.prototype.__proto__ ||
                                    Object.getPrototypeOf(t.prototype),
                                  "format",
                                  this
                                ).call(this, e, i)
                              : this.replaceWith(
                                  u.default.create(this.statics.scope)
                                );
                          },
                        },
                        {
                          key: "remove",
                          value: function () {
                            null == this.prev && null == this.next
                              ? this.parent.remove()
                              : c(
                                  t.prototype.__proto__ ||
                                    Object.getPrototypeOf(t.prototype),
                                  "remove",
                                  this
                                ).call(this);
                          },
                        },
                        {
                          key: "replaceWith",
                          value: function (e, i) {
                            return (
                              this.parent.isolate(
                                this.offset(this.parent),
                                this.length()
                              ),
                              e === this.parent.statics.blotName
                                ? (this.parent.replaceWith(e, i), this)
                                : (this.parent.unwrap(),
                                  c(
                                    t.prototype.__proto__ ||
                                      Object.getPrototypeOf(t.prototype),
                                    "replaceWith",
                                    this
                                  ).call(this, e, i))
                            );
                          },
                        },
                      ],
                      [
                        {
                          key: "formats",
                          value: function (e) {
                            return e.tagName === this.tagName
                              ? void 0
                              : c(
                                  t.__proto__ || Object.getPrototypeOf(t),
                                  "formats",
                                  this
                                ).call(this, e);
                          },
                        },
                      ]
                    ),
                    t
                  );
                })(d.default);
              (f.blotName = "list-item"), (f.tagName = "LI");
              var p = (function (e) {
                function t(e) {
                  a(this, t);
                  var i = o(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e)
                    ),
                    n = function (t) {
                      if (t.target.parentNode === e) {
                        var n = i.statics.formats(e),
                          r = u.default.find(t.target);
                        "checked" === n
                          ? r.format("list", "unchecked")
                          : "unchecked" === n && r.format("list", "checked");
                      }
                    };
                  return (
                    e.addEventListener("touchstart", n),
                    e.addEventListener("mousedown", n),
                    i
                  );
                }
                return (
                  s(t, e),
                  l(t, null, [
                    {
                      key: "create",
                      value: function (e) {
                        var i = "ordered" === e ? "OL" : "UL",
                          n = c(
                            t.__proto__ || Object.getPrototypeOf(t),
                            "create",
                            this
                          ).call(this, i);
                        return (
                          ("checked" !== e && "unchecked" !== e) ||
                            n.setAttribute("data-checked", "checked" === e),
                          n
                        );
                      },
                    },
                    {
                      key: "formats",
                      value: function (e) {
                        return "OL" === e.tagName
                          ? "ordered"
                          : "UL" === e.tagName
                          ? e.hasAttribute("data-checked")
                            ? "true" === e.getAttribute("data-checked")
                              ? "checked"
                              : "unchecked"
                            : "bullet"
                          : void 0;
                      },
                    },
                  ]),
                  l(t, [
                    {
                      key: "format",
                      value: function (e, t) {
                        this.children.length > 0 &&
                          this.children.tail.format(e, t);
                      },
                    },
                    {
                      key: "formats",
                      value: function () {
                        return r(
                          {},
                          this.statics.blotName,
                          this.statics.formats(this.domNode)
                        );
                      },
                    },
                    {
                      key: "insertBefore",
                      value: function (e, i) {
                        if (e instanceof f)
                          c(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "insertBefore",
                            this
                          ).call(this, e, i);
                        else {
                          var n = null == i ? this.length() : i.offset(this),
                            r = this.split(n);
                          r.parent.insertBefore(e, r);
                        }
                      },
                    },
                    {
                      key: "optimize",
                      value: function (e) {
                        c(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "optimize",
                          this
                        ).call(this, e);
                        var i = this.next;
                        null != i &&
                          i.prev === this &&
                          i.statics.blotName === this.statics.blotName &&
                          i.domNode.tagName === this.domNode.tagName &&
                          i.domNode.getAttribute("data-checked") ===
                            this.domNode.getAttribute("data-checked") &&
                          (i.moveChildren(this), i.remove());
                      },
                    },
                    {
                      key: "replace",
                      value: function (e) {
                        if (e.statics.blotName !== this.statics.blotName) {
                          var i = u.default.create(this.statics.defaultChild);
                          e.moveChildren(i), this.appendChild(i);
                        }
                        c(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "replace",
                          this
                        ).call(this, e);
                      },
                    },
                  ]),
                  t
                );
              })(h.default);
              (p.blotName = "list"),
                (p.scope = u.default.Scope.BLOCK_BLOT),
                (p.tagName = ["OL", "UL"]),
                (p.defaultChild = "list-item"),
                (p.allowedChildren = [f]),
                (t.ListItem = f),
                (t.default = p);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(39)),
                s = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return a(t, e), t;
                })(o.default);
              (s.blotName = "italic"),
                (s.tagName = ["EM", "I"]),
                (t.default = s);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(5)),
                c = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    a(t, e),
                    o(t, null, [
                      {
                        key: "create",
                        value: function (e) {
                          return "super" === e
                            ? document.createElement("sup")
                            : "sub" === e
                            ? document.createElement("sub")
                            : s(
                                t.__proto__ || Object.getPrototypeOf(t),
                                "create",
                                this
                              ).call(this, e);
                        },
                      },
                      {
                        key: "formats",
                        value: function (e) {
                          return "SUB" === e.tagName
                            ? "sub"
                            : "SUP" === e.tagName
                            ? "super"
                            : void 0;
                        },
                      },
                    ]),
                    t
                  );
                })(l.default);
              (c.blotName = "script"),
                (c.tagName = ["SUB", "SUP"]),
                (t.default = c);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(5)),
                s = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return a(t, e), t;
                })(o.default);
              (s.blotName = "strike"), (s.tagName = "S"), (t.default = s);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(5)),
                s = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return a(t, e), t;
                })(o.default);
              (s.blotName = "underline"), (s.tagName = "U"), (t.default = s);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(0)),
                c = i(15),
                u = ["alt", "height", "width"],
                d = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    a(t, e),
                    o(
                      t,
                      [
                        {
                          key: "format",
                          value: function (e, i) {
                            u.indexOf(e) > -1
                              ? i
                                ? this.domNode.setAttribute(e, i)
                                : this.domNode.removeAttribute(e)
                              : s(
                                  t.prototype.__proto__ ||
                                    Object.getPrototypeOf(t.prototype),
                                  "format",
                                  this
                                ).call(this, e, i);
                          },
                        },
                      ],
                      [
                        {
                          key: "create",
                          value: function (e) {
                            var i = s(
                              t.__proto__ || Object.getPrototypeOf(t),
                              "create",
                              this
                            ).call(this, e);
                            return (
                              "string" == typeof e &&
                                i.setAttribute("src", this.sanitize(e)),
                              i
                            );
                          },
                        },
                        {
                          key: "formats",
                          value: function (e) {
                            return u.reduce(function (t, i) {
                              return (
                                e.hasAttribute(i) && (t[i] = e.getAttribute(i)),
                                t
                              );
                            }, {});
                          },
                        },
                        {
                          key: "match",
                          value: function (e) {
                            return (
                              /\.(jpe?g|gif|png)$/.test(e) ||
                              /^data:image\/.+;base64/.test(e)
                            );
                          },
                        },
                        {
                          key: "sanitize",
                          value: function (e) {
                            return (0, c.sanitize)(e, ["http", "https", "data"])
                              ? e
                              : "//:0";
                          },
                        },
                        {
                          key: "value",
                          value: function (e) {
                            return e.getAttribute("src");
                          },
                        },
                      ]
                    ),
                    t
                  );
                })(l.default.Embed);
              (d.blotName = "image"), (d.tagName = "IMG"), (t.default = d);
            },
            function (e, t, i) {
              "use strict";
              function n(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function r(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function a(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var o = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = i(3),
                c = (function (e) {
                  return e && e.__esModule ? e : { default: e };
                })(i(15)),
                u = ["height", "width"],
                d = (function (e) {
                  function t() {
                    return (
                      n(this, t),
                      r(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    a(t, e),
                    o(
                      t,
                      [
                        {
                          key: "format",
                          value: function (e, i) {
                            u.indexOf(e) > -1
                              ? i
                                ? this.domNode.setAttribute(e, i)
                                : this.domNode.removeAttribute(e)
                              : s(
                                  t.prototype.__proto__ ||
                                    Object.getPrototypeOf(t.prototype),
                                  "format",
                                  this
                                ).call(this, e, i);
                          },
                        },
                      ],
                      [
                        {
                          key: "create",
                          value: function (e) {
                            var i = s(
                              t.__proto__ || Object.getPrototypeOf(t),
                              "create",
                              this
                            ).call(this, e);
                            return (
                              i.setAttribute("frameborder", "0"),
                              i.setAttribute("allowfullscreen", !0),
                              i.setAttribute("src", this.sanitize(e)),
                              i
                            );
                          },
                        },
                        {
                          key: "formats",
                          value: function (e) {
                            return u.reduce(function (t, i) {
                              return (
                                e.hasAttribute(i) && (t[i] = e.getAttribute(i)),
                                t
                              );
                            }, {});
                          },
                        },
                        {
                          key: "sanitize",
                          value: function (e) {
                            return c.default.sanitize(e);
                          },
                        },
                        {
                          key: "value",
                          value: function (e) {
                            return e.getAttribute("src");
                          },
                        },
                      ]
                    ),
                    t
                  );
                })(l.BlockEmbed);
              (d.blotName = "video"),
                (d.className = "ql-video"),
                (d.tagName = "IFRAME"),
                (t.default = d);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.default = t.FormulaBlot = void 0);
              var s = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                l = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                c = n(i(33)),
                u = n(i(6)),
                d = n(i(7)),
                h = (function (e) {
                  function t() {
                    return (
                      r(this, t),
                      a(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    o(t, e),
                    s(t, null, [
                      {
                        key: "create",
                        value: function (e) {
                          var i = l(
                            t.__proto__ || Object.getPrototypeOf(t),
                            "create",
                            this
                          ).call(this, e);
                          return (
                            "string" == typeof e &&
                              (window.katex.render(e, i, {
                                throwOnError: !1,
                                errorColor: "#f00",
                              }),
                              i.setAttribute("data-value", e)),
                            i
                          );
                        },
                      },
                      {
                        key: "value",
                        value: function (e) {
                          return e.getAttribute("data-value");
                        },
                      },
                    ]),
                    t
                  );
                })(c.default);
              (h.blotName = "formula"),
                (h.className = "ql-formula"),
                (h.tagName = "SPAN");
              var f = (function (e) {
                function t() {
                  r(this, t);
                  var e = a(
                    this,
                    (t.__proto__ || Object.getPrototypeOf(t)).call(this)
                  );
                  if (null == window.katex)
                    throw new Error("Formula module requires KaTeX.");
                  return e;
                }
                return (
                  o(t, e),
                  s(t, null, [
                    {
                      key: "register",
                      value: function () {
                        u.default.register(h, !0);
                      },
                    },
                  ]),
                  t
                );
              })(d.default);
              (t.FormulaBlot = h), (t.default = f);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.default = t.CodeToken = t.CodeBlock = void 0);
              var s = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                l = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                c = n(i(0)),
                u = n(i(6)),
                d = n(i(7)),
                h = (function (e) {
                  function t() {
                    return (
                      r(this, t),
                      a(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).apply(
                          this,
                          arguments
                        )
                      )
                    );
                  }
                  return (
                    o(t, e),
                    s(t, [
                      {
                        key: "replaceWith",
                        value: function (e) {
                          (this.domNode.textContent = this.domNode.textContent),
                            this.attach(),
                            l(
                              t.prototype.__proto__ ||
                                Object.getPrototypeOf(t.prototype),
                              "replaceWith",
                              this
                            ).call(this, e);
                        },
                      },
                      {
                        key: "highlight",
                        value: function (e) {
                          var t = this.domNode.textContent;
                          this.cachedText !== t &&
                            ((t.trim().length > 0 || null == this.cachedText) &&
                              ((this.domNode.innerHTML = e(t)),
                              this.domNode.normalize(),
                              this.attach()),
                            (this.cachedText = t));
                        },
                      },
                    ]),
                    t
                  );
                })(n(i(13)).default);
              h.className = "ql-syntax";
              var f = new c.default.Attributor.Class("token", "hljs", {
                  scope: c.default.Scope.INLINE,
                }),
                p = (function (e) {
                  function t(e, i) {
                    r(this, t);
                    var n = a(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, i)
                    );
                    if ("function" != typeof n.options.highlight)
                      throw new Error(
                        "Syntax module requires highlight.js. Please include the library on the page before Quill."
                      );
                    var o = null;
                    return (
                      n.quill.on(u.default.events.SCROLL_OPTIMIZE, function () {
                        clearTimeout(o),
                          (o = setTimeout(function () {
                            n.highlight(), (o = null);
                          }, n.options.interval));
                      }),
                      n.highlight(),
                      n
                    );
                  }
                  return (
                    o(t, e),
                    s(t, null, [
                      {
                        key: "register",
                        value: function () {
                          u.default.register(f, !0), u.default.register(h, !0);
                        },
                      },
                    ]),
                    s(t, [
                      {
                        key: "highlight",
                        value: function () {
                          var e = this;
                          if (!this.quill.selection.composing) {
                            this.quill.update(u.default.sources.USER);
                            var t = this.quill.getSelection();
                            this.quill.scroll
                              .descendants(h)
                              .forEach(function (t) {
                                t.highlight(e.options.highlight);
                              }),
                              this.quill.update(u.default.sources.SILENT),
                              null != t &&
                                this.quill.setSelection(
                                  t,
                                  u.default.sources.SILENT
                                );
                          }
                        },
                      },
                    ]),
                    t
                  );
                })(d.default);
              (p.DEFAULTS = {
                highlight:
                  null == window.hljs
                    ? null
                    : function (e) {
                        return window.hljs.highlightAuto(e).value;
                      },
                interval: 1e3,
              }),
                (t.CodeBlock = h),
                (t.CodeToken = f),
                (t.default = p);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t, i) {
                return (
                  t in e
                    ? Object.defineProperty(e, t, {
                        value: i,
                        enumerable: !0,
                        configurable: !0,
                        writable: !0,
                      })
                    : (e[t] = i),
                  e
                );
              }
              function a(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function o(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function s(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              function l(e, t, i) {
                var n = document.createElement("button");
                n.setAttribute("type", "button"),
                  n.classList.add("ql-" + t),
                  null != i && (n.value = i),
                  e.appendChild(n);
              }
              function c(e, t) {
                Array.isArray(t[0]) || (t = [t]),
                  t.forEach(function (t) {
                    var i = document.createElement("span");
                    i.classList.add("ql-formats"),
                      t.forEach(function (e) {
                        if ("string" == typeof e) l(i, e);
                        else {
                          var t = Object.keys(e)[0],
                            n = e[t];
                          Array.isArray(n) ? u(i, t, n) : l(i, t, n);
                        }
                      }),
                      e.appendChild(i);
                  });
              }
              function u(e, t, i) {
                var n = document.createElement("select");
                n.classList.add("ql-" + t),
                  i.forEach(function (e) {
                    var t = document.createElement("option");
                    !1 !== e
                      ? t.setAttribute("value", e)
                      : t.setAttribute("selected", "selected"),
                      n.appendChild(t);
                  }),
                  e.appendChild(n);
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.addControls = t.default = void 0);
              var d = (function () {
                  function e(e, t) {
                    var i = [],
                      n = !0,
                      r = !1,
                      a = void 0;
                    try {
                      for (
                        var o, s = e[Symbol.iterator]();
                        !(n = (o = s.next()).done) &&
                        (i.push(o.value), !t || i.length !== t);
                        n = !0
                      );
                    } catch (e) {
                      (r = !0), (a = e);
                    } finally {
                      try {
                        !n && s.return && s.return();
                      } finally {
                        if (r) throw a;
                      }
                    }
                    return i;
                  }
                  return function (t, i) {
                    if (Array.isArray(t)) return t;
                    if (Symbol.iterator in Object(t)) return e(t, i);
                    throw new TypeError(
                      "Invalid attempt to destructure non-iterable instance"
                    );
                  };
                })(),
                h = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                f = n(i(4)),
                p = n(i(0)),
                g = n(i(6)),
                m = n(i(10)),
                v = n(i(7)),
                b = (0, m.default)("quill:toolbar"),
                y = (function (e) {
                  function t(e, i) {
                    a(this, t);
                    var n,
                      r = o(
                        this,
                        (t.__proto__ || Object.getPrototypeOf(t)).call(
                          this,
                          e,
                          i
                        )
                      );
                    if (Array.isArray(r.options.container)) {
                      var s = document.createElement("div");
                      c(s, r.options.container),
                        e.container.parentNode.insertBefore(s, e.container),
                        (r.container = s);
                    } else
                      "string" == typeof r.options.container
                        ? (r.container = document.querySelector(
                            r.options.container
                          ))
                        : (r.container = r.options.container);
                    return r.container instanceof HTMLElement
                      ? (r.container.classList.add("ql-toolbar"),
                        (r.controls = []),
                        (r.handlers = {}),
                        Object.keys(r.options.handlers).forEach(function (e) {
                          r.addHandler(e, r.options.handlers[e]);
                        }),
                        [].forEach.call(
                          r.container.querySelectorAll("button, select"),
                          function (e) {
                            r.attach(e);
                          }
                        ),
                        r.quill.on(
                          g.default.events.EDITOR_CHANGE,
                          function (e, t) {
                            e === g.default.events.SELECTION_CHANGE &&
                              r.update(t);
                          }
                        ),
                        r.quill.on(
                          g.default.events.SCROLL_OPTIMIZE,
                          function () {
                            var e = r.quill.selection.getRange(),
                              t = d(e, 1)[0];
                            r.update(t);
                          }
                        ),
                        r)
                      : ((n = b.error(
                          "Container required for toolbar",
                          r.options
                        )),
                        o(r, n));
                  }
                  return (
                    s(t, e),
                    h(t, [
                      {
                        key: "addHandler",
                        value: function (e, t) {
                          this.handlers[e] = t;
                        },
                      },
                      {
                        key: "attach",
                        value: function (e) {
                          var t = this,
                            i = [].find.call(e.classList, function (e) {
                              return 0 === e.indexOf("ql-");
                            });
                          if (i) {
                            if (
                              ((i = i.slice("ql-".length)),
                              "BUTTON" === e.tagName &&
                                e.setAttribute("type", "button"),
                              null == this.handlers[i])
                            ) {
                              if (
                                null != this.quill.scroll.whitelist &&
                                null == this.quill.scroll.whitelist[i]
                              )
                                return void b.warn(
                                  "ignoring attaching to disabled format",
                                  i,
                                  e
                                );
                              if (null == p.default.query(i))
                                return void b.warn(
                                  "ignoring attaching to nonexistent format",
                                  i,
                                  e
                                );
                            }
                            var n = "SELECT" === e.tagName ? "change" : "click";
                            e.addEventListener(n, function (n) {
                              var a = void 0;
                              if ("SELECT" === e.tagName) {
                                if (e.selectedIndex < 0) return;
                                var o = e.options[e.selectedIndex];
                                a =
                                  !o.hasAttribute("selected") &&
                                  (o.value || !1);
                              } else (a = !e.classList.contains("ql-active") && (e.value || !e.hasAttribute("value"))), n.preventDefault();
                              t.quill.focus();
                              var s = t.quill.selection.getRange(),
                                l = d(s, 1)[0];
                              if (null != t.handlers[i])
                                t.handlers[i].call(t, a);
                              else if (
                                p.default.query(i).prototype instanceof
                                p.default.Embed
                              ) {
                                if (!(a = prompt("Enter " + i))) return;
                                t.quill.updateContents(
                                  new f.default()
                                    .retain(l.index)
                                    .delete(l.length)
                                    .insert(r({}, i, a)),
                                  g.default.sources.USER
                                );
                              } else
                                t.quill.format(i, a, g.default.sources.USER);
                              t.update(l);
                            }),
                              this.controls.push([i, e]);
                          }
                        },
                      },
                      {
                        key: "update",
                        value: function (e) {
                          var t = null == e ? {} : this.quill.getFormat(e);
                          this.controls.forEach(function (i) {
                            var n = d(i, 2),
                              r = n[0],
                              a = n[1];
                            if ("SELECT" === a.tagName) {
                              var o = void 0;
                              if (null == e) o = null;
                              else if (null == t[r])
                                o = a.querySelector("option[selected]");
                              else if (!Array.isArray(t[r])) {
                                var s = t[r];
                                "string" == typeof s &&
                                  (s = s.replace(/\"/g, '\\"')),
                                  (o = a.querySelector(
                                    'option[value="' + s + '"]'
                                  ));
                              }
                              null == o
                                ? ((a.value = ""), (a.selectedIndex = -1))
                                : (o.selected = !0);
                            } else if (null == e)
                              a.classList.remove("ql-active");
                            else if (a.hasAttribute("value")) {
                              var l =
                                t[r] === a.getAttribute("value") ||
                                (null != t[r] &&
                                  t[r].toString() ===
                                    a.getAttribute("value")) ||
                                (null == t[r] && !a.getAttribute("value"));
                              a.classList.toggle("ql-active", l);
                            } else
                              a.classList.toggle("ql-active", null != t[r]);
                          });
                        },
                      },
                    ]),
                    t
                  );
                })(v.default);
              (y.DEFAULTS = {}),
                (y.DEFAULTS = {
                  container: null,
                  handlers: {
                    clean: function () {
                      var e = this,
                        t = this.quill.getSelection();
                      if (null != t)
                        if (0 == t.length) {
                          var i = this.quill.getFormat();
                          Object.keys(i).forEach(function (t) {
                            null !=
                              p.default.query(t, p.default.Scope.INLINE) &&
                              e.quill.format(t, !1);
                          });
                        } else
                          this.quill.removeFormat(t, g.default.sources.USER);
                    },
                    direction: function (e) {
                      var t = this.quill.getFormat().align;
                      "rtl" === e && null == t
                        ? this.quill.format(
                            "align",
                            "right",
                            g.default.sources.USER
                          )
                        : e ||
                          "right" !== t ||
                          this.quill.format(
                            "align",
                            !1,
                            g.default.sources.USER
                          ),
                        this.quill.format(
                          "direction",
                          e,
                          g.default.sources.USER
                        );
                    },
                    indent: function (e) {
                      var t = this.quill.getSelection(),
                        i = this.quill.getFormat(t),
                        n = parseInt(i.indent || 0);
                      if ("+1" === e || "-1" === e) {
                        var r = "+1" === e ? 1 : -1;
                        "rtl" === i.direction && (r *= -1),
                          this.quill.format(
                            "indent",
                            n + r,
                            g.default.sources.USER
                          );
                      }
                    },
                    link: function (e) {
                      !0 === e && (e = prompt("Enter link URL:")),
                        this.quill.format("link", e, g.default.sources.USER);
                    },
                    list: function (e) {
                      var t = this.quill.getSelection(),
                        i = this.quill.getFormat(t);
                      "check" === e
                        ? "checked" === i.list || "unchecked" === i.list
                          ? this.quill.format(
                              "list",
                              !1,
                              g.default.sources.USER
                            )
                          : this.quill.format(
                              "list",
                              "unchecked",
                              g.default.sources.USER
                            )
                        : this.quill.format("list", e, g.default.sources.USER);
                    },
                  },
                }),
                (t.default = y),
                (t.addControls = c);
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>';
            },
            function (e, t) {
              e.exports =
                '<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>';
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 }),
                (t.default = t.BubbleTooltip = void 0);
              var s = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                l = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                c = n(i(2)),
                u = n(i(9)),
                d = i(44),
                h = n(d),
                f = i(22),
                p = n(i(26)),
                g = [
                  ["bold", "italic", "link"],
                  [{ header: 1 }, { header: 2 }, "blockquote"],
                ],
                m = (function (e) {
                  function t(e, i) {
                    r(this, t),
                      null != i.modules.toolbar &&
                        null == i.modules.toolbar.container &&
                        (i.modules.toolbar.container = g);
                    var n = a(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, i)
                    );
                    return n.quill.container.classList.add("ql-bubble"), n;
                  }
                  return (
                    o(t, e),
                    l(t, [
                      {
                        key: "extendToolbar",
                        value: function (e) {
                          (this.tooltip = new v(
                            this.quill,
                            this.options.bounds
                          )),
                            this.tooltip.root.appendChild(e.container),
                            this.buildButtons(
                              [].slice.call(
                                e.container.querySelectorAll("button")
                              ),
                              p.default
                            ),
                            this.buildPickers(
                              [].slice.call(
                                e.container.querySelectorAll("select")
                              ),
                              p.default
                            );
                        },
                      },
                    ]),
                    t
                  );
                })(h.default);
              m.DEFAULTS = (0, c.default)(!0, {}, h.default.DEFAULTS, {
                modules: {
                  toolbar: {
                    handlers: {
                      link: function (e) {
                        e
                          ? this.quill.theme.tooltip.edit()
                          : this.quill.format("link", !1);
                      },
                    },
                  },
                },
              });
              var v = (function (e) {
                function t(e, i) {
                  r(this, t);
                  var n = a(
                    this,
                    (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, i)
                  );
                  return (
                    n.quill.on(
                      u.default.events.EDITOR_CHANGE,
                      function (e, t, i, r) {
                        if (e === u.default.events.SELECTION_CHANGE)
                          if (
                            null != t &&
                            t.length > 0 &&
                            r === u.default.sources.USER
                          ) {
                            n.show(),
                              (n.root.style.left = "0px"),
                              (n.root.style.width = ""),
                              (n.root.style.width = n.root.offsetWidth + "px");
                            var a = n.quill.getLines(t.index, t.length);
                            if (1 === a.length)
                              n.position(n.quill.getBounds(t));
                            else {
                              var o = a[a.length - 1],
                                s = n.quill.getIndex(o),
                                l = Math.min(
                                  o.length() - 1,
                                  t.index + t.length - s
                                ),
                                c = n.quill.getBounds(new f.Range(s, l));
                              n.position(c);
                            }
                          } else
                            document.activeElement !== n.textbox &&
                              n.quill.hasFocus() &&
                              n.hide();
                      }
                    ),
                    n
                  );
                }
                return (
                  o(t, e),
                  l(t, [
                    {
                      key: "listen",
                      value: function () {
                        var e = this;
                        s(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "listen",
                          this
                        ).call(this),
                          this.root
                            .querySelector(".ql-close")
                            .addEventListener("click", function () {
                              e.root.classList.remove("ql-editing");
                            }),
                          this.quill.on(
                            u.default.events.SCROLL_OPTIMIZE,
                            function () {
                              setTimeout(function () {
                                if (!e.root.classList.contains("ql-hidden")) {
                                  var t = e.quill.getSelection();
                                  null != t && e.position(e.quill.getBounds(t));
                                }
                              }, 1);
                            }
                          );
                      },
                    },
                    {
                      key: "cancel",
                      value: function () {
                        this.show();
                      },
                    },
                    {
                      key: "position",
                      value: function (e) {
                        var i = s(
                            t.prototype.__proto__ ||
                              Object.getPrototypeOf(t.prototype),
                            "position",
                            this
                          ).call(this, e),
                          n = this.root.querySelector(".ql-tooltip-arrow");
                        if (((n.style.marginLeft = ""), 0 === i)) return i;
                        n.style.marginLeft = -1 * i - n.offsetWidth / 2 + "px";
                      },
                    },
                  ]),
                  t
                );
              })(d.BaseTooltip);
              (v.TEMPLATE = [
                '<span class="ql-tooltip-arrow"></span>',
                '<div class="ql-tooltip-editor">',
                '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">',
                '<a class="ql-close"></a>',
                "</div>",
              ].join("")),
                (t.BubbleTooltip = v),
                (t.default = m);
            },
            function (e, t, i) {
              "use strict";
              function n(e) {
                return e && e.__esModule ? e : { default: e };
              }
              function r(e, t) {
                if (!(e instanceof t))
                  throw new TypeError("Cannot call a class as a function");
              }
              function a(e, t) {
                if (!e)
                  throw new ReferenceError(
                    "this hasn't been initialised - super() hasn't been called"
                  );
                return !t || ("object" != typeof t && "function" != typeof t)
                  ? e
                  : t;
              }
              function o(e, t) {
                if ("function" != typeof t && null !== t)
                  throw new TypeError(
                    "Super expression must either be null or a function, not " +
                      typeof t
                  );
                (e.prototype = Object.create(t && t.prototype, {
                  constructor: {
                    value: e,
                    enumerable: !1,
                    writable: !0,
                    configurable: !0,
                  },
                })),
                  t &&
                    (Object.setPrototypeOf
                      ? Object.setPrototypeOf(e, t)
                      : (e.__proto__ = t));
              }
              Object.defineProperty(t, "__esModule", { value: !0 });
              var s = (function () {
                  function e(e, t) {
                    var i = [],
                      n = !0,
                      r = !1,
                      a = void 0;
                    try {
                      for (
                        var o, s = e[Symbol.iterator]();
                        !(n = (o = s.next()).done) &&
                        (i.push(o.value), !t || i.length !== t);
                        n = !0
                      );
                    } catch (e) {
                      (r = !0), (a = e);
                    } finally {
                      try {
                        !n && s.return && s.return();
                      } finally {
                        if (r) throw a;
                      }
                    }
                    return i;
                  }
                  return function (t, i) {
                    if (Array.isArray(t)) return t;
                    if (Symbol.iterator in Object(t)) return e(t, i);
                    throw new TypeError(
                      "Invalid attempt to destructure non-iterable instance"
                    );
                  };
                })(),
                l = function e(t, i, n) {
                  null === t && (t = Function.prototype);
                  var r = Object.getOwnPropertyDescriptor(t, i);
                  if (void 0 === r) {
                    var a = Object.getPrototypeOf(t);
                    return null === a ? void 0 : e(a, i, n);
                  }
                  if ("value" in r) return r.value;
                  var o = r.get;
                  return void 0 !== o ? o.call(n) : void 0;
                },
                c = (function () {
                  function e(e, t) {
                    for (var i = 0; i < t.length; i++) {
                      var n = t[i];
                      (n.enumerable = n.enumerable || !1),
                        (n.configurable = !0),
                        "value" in n && (n.writable = !0),
                        Object.defineProperty(e, n.key, n);
                    }
                  }
                  return function (t, i, n) {
                    return i && e(t.prototype, i), n && e(t, n), t;
                  };
                })(),
                u = n(i(2)),
                d = n(i(9)),
                h = i(44),
                f = n(h),
                p = n(i(15)),
                g = i(22),
                m = n(i(26)),
                v = [
                  [{ header: ["1", "2", "3", !1] }],
                  ["bold", "italic", "underline", "link"],
                  [{ list: "ordered" }, { list: "bullet" }],
                  ["clean"],
                ],
                b = (function (e) {
                  function t(e, i) {
                    r(this, t),
                      null != i.modules.toolbar &&
                        null == i.modules.toolbar.container &&
                        (i.modules.toolbar.container = v);
                    var n = a(
                      this,
                      (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, i)
                    );
                    return n.quill.container.classList.add("ql-snow"), n;
                  }
                  return (
                    o(t, e),
                    c(t, [
                      {
                        key: "extendToolbar",
                        value: function (e) {
                          e.container.classList.add("ql-snow"),
                            this.buildButtons(
                              [].slice.call(
                                e.container.querySelectorAll("button")
                              ),
                              m.default
                            ),
                            this.buildPickers(
                              [].slice.call(
                                e.container.querySelectorAll("select")
                              ),
                              m.default
                            ),
                            (this.tooltip = new y(
                              this.quill,
                              this.options.bounds
                            )),
                            e.container.querySelector(".ql-link") &&
                              this.quill.keyboard.addBinding(
                                { key: "K", shortKey: !0 },
                                function (t, i) {
                                  e.handlers.link.call(e, !i.format.link);
                                }
                              );
                        },
                      },
                    ]),
                    t
                  );
                })(f.default);
              b.DEFAULTS = (0, u.default)(!0, {}, f.default.DEFAULTS, {
                modules: {
                  toolbar: {
                    handlers: {
                      link: function (e) {
                        if (e) {
                          var t = this.quill.getSelection();
                          if (null == t || 0 == t.length) return;
                          var i = this.quill.getText(t);
                          /^\S+@\S+\.\S+$/.test(i) &&
                            0 !== i.indexOf("mailto:") &&
                            (i = "mailto:" + i),
                            this.quill.theme.tooltip.edit("link", i);
                        } else this.quill.format("link", !1);
                      },
                    },
                  },
                },
              });
              var y = (function (e) {
                function t(e, i) {
                  r(this, t);
                  var n = a(
                    this,
                    (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, i)
                  );
                  return (n.preview = n.root.querySelector("a.ql-preview")), n;
                }
                return (
                  o(t, e),
                  c(t, [
                    {
                      key: "listen",
                      value: function () {
                        var e = this;
                        l(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "listen",
                          this
                        ).call(this),
                          this.root
                            .querySelector("a.ql-action")
                            .addEventListener("click", function (t) {
                              e.root.classList.contains("ql-editing")
                                ? e.save()
                                : e.edit("link", e.preview.textContent),
                                t.preventDefault();
                            }),
                          this.root
                            .querySelector("a.ql-remove")
                            .addEventListener("click", function (t) {
                              if (null != e.linkRange) {
                                var i = e.linkRange;
                                e.restoreFocus(),
                                  e.quill.formatText(
                                    i,
                                    "link",
                                    !1,
                                    d.default.sources.USER
                                  ),
                                  delete e.linkRange;
                              }
                              t.preventDefault(), e.hide();
                            }),
                          this.quill.on(
                            d.default.events.SELECTION_CHANGE,
                            function (t, i, n) {
                              if (null != t) {
                                if (
                                  0 === t.length &&
                                  n === d.default.sources.USER
                                ) {
                                  var r = e.quill.scroll.descendant(
                                      p.default,
                                      t.index
                                    ),
                                    a = s(r, 2),
                                    o = a[0],
                                    l = a[1];
                                  if (null != o) {
                                    e.linkRange = new g.Range(
                                      t.index - l,
                                      o.length()
                                    );
                                    var c = p.default.formats(o.domNode);
                                    return (
                                      (e.preview.textContent = c),
                                      e.preview.setAttribute("href", c),
                                      e.show(),
                                      void e.position(
                                        e.quill.getBounds(e.linkRange)
                                      )
                                    );
                                  }
                                } else delete e.linkRange;
                                e.hide();
                              }
                            }
                          );
                      },
                    },
                    {
                      key: "show",
                      value: function () {
                        l(
                          t.prototype.__proto__ ||
                            Object.getPrototypeOf(t.prototype),
                          "show",
                          this
                        ).call(this),
                          this.root.removeAttribute("data-mode");
                      },
                    },
                  ]),
                  t
                );
              })(h.BaseTooltip);
              (y.TEMPLATE = [
                '<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>',
                '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">',
                '<a class="ql-action"></a>',
                '<a class="ql-remove"></a>',
              ].join("")),
                (t.default = b);
            },
          ]).default);
      },
      374: function (e) {
        var t, i;
        (t = this),
          (i = function (e) {
            var t = function (e) {
              return new t.lib.init(e);
            };
            function i(e, t) {
              return t.offset[e]
                ? isNaN(t.offset[e])
                  ? t.offset[e]
                  : t.offset[e] + "px"
                : "0px";
            }
            function n(e, t) {
              return !(
                !e ||
                "string" != typeof t ||
                !(
                  e.className &&
                  e.className.trim().split(/\s+/gi).indexOf(t) > -1
                )
              );
            }
            return (
              (t.defaults = {
                oldestFirst: !0,
                text: "Toastify is awesome!",
                node: void 0,
                duration: 3e3,
                selector: void 0,
                callback: function () {},
                destination: void 0,
                newWindow: !1,
                close: !1,
                gravity: "toastify-top",
                positionLeft: !1,
                position: "",
                backgroundColor: "",
                avatar: "",
                className: "",
                stopOnFocus: !0,
                onClick: function () {},
                offset: { x: 0, y: 0 },
                escapeMarkup: !0,
                ariaLive: "polite",
                style: { background: "" },
              }),
              (t.lib = t.prototype =
                {
                  toastify: "1.12.0",
                  constructor: t,
                  init: function (e) {
                    return (
                      e || (e = {}),
                      (this.options = {}),
                      (this.toastElement = null),
                      (this.options.text = e.text || t.defaults.text),
                      (this.options.node = e.node || t.defaults.node),
                      (this.options.duration =
                        0 === e.duration
                          ? 0
                          : e.duration || t.defaults.duration),
                      (this.options.selector =
                        e.selector || t.defaults.selector),
                      (this.options.callback =
                        e.callback || t.defaults.callback),
                      (this.options.destination =
                        e.destination || t.defaults.destination),
                      (this.options.newWindow =
                        e.newWindow || t.defaults.newWindow),
                      (this.options.close = e.close || t.defaults.close),
                      (this.options.gravity =
                        "bottom" === e.gravity
                          ? "toastify-bottom"
                          : t.defaults.gravity),
                      (this.options.positionLeft =
                        e.positionLeft || t.defaults.positionLeft),
                      (this.options.position =
                        e.position || t.defaults.position),
                      (this.options.backgroundColor =
                        e.backgroundColor || t.defaults.backgroundColor),
                      (this.options.avatar = e.avatar || t.defaults.avatar),
                      (this.options.className =
                        e.className || t.defaults.className),
                      (this.options.stopOnFocus =
                        void 0 === e.stopOnFocus
                          ? t.defaults.stopOnFocus
                          : e.stopOnFocus),
                      (this.options.onClick = e.onClick || t.defaults.onClick),
                      (this.options.offset = e.offset || t.defaults.offset),
                      (this.options.escapeMarkup =
                        void 0 !== e.escapeMarkup
                          ? e.escapeMarkup
                          : t.defaults.escapeMarkup),
                      (this.options.ariaLive =
                        e.ariaLive || t.defaults.ariaLive),
                      (this.options.style = e.style || t.defaults.style),
                      e.backgroundColor &&
                        (this.options.style.background = e.backgroundColor),
                      this
                    );
                  },
                  buildToast: function () {
                    if (!this.options) throw "Toastify is not initialized";
                    var e = document.createElement("div");
                    for (var t in ((e.className =
                      "toastify on " + this.options.className),
                    this.options.position
                      ? (e.className += " toastify-" + this.options.position)
                      : !0 === this.options.positionLeft
                      ? ((e.className += " toastify-left"),
                        console.warn(
                          "Property `positionLeft` will be depreciated in further versions. Please use `position` instead."
                        ))
                      : (e.className += " toastify-right"),
                    (e.className += " " + this.options.gravity),
                    this.options.backgroundColor &&
                      console.warn(
                        'DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.'
                      ),
                    this.options.style))
                      e.style[t] = this.options.style[t];
                    if (
                      (this.options.ariaLive &&
                        e.setAttribute("aria-live", this.options.ariaLive),
                      this.options.node &&
                        this.options.node.nodeType === Node.ELEMENT_NODE)
                    )
                      e.appendChild(this.options.node);
                    else if (
                      (this.options.escapeMarkup
                        ? (e.innerText = this.options.text)
                        : (e.innerHTML = this.options.text),
                      "" !== this.options.avatar)
                    ) {
                      var n = document.createElement("img");
                      (n.src = this.options.avatar),
                        (n.className = "toastify-avatar"),
                        "left" == this.options.position ||
                        !0 === this.options.positionLeft
                          ? e.appendChild(n)
                          : e.insertAdjacentElement("afterbegin", n);
                    }
                    if (!0 === this.options.close) {
                      var r = document.createElement("button");
                      (r.type = "button"),
                        r.setAttribute("aria-label", "Close"),
                        (r.className = "toast-close"),
                        (r.innerHTML = "&#10006;"),
                        r.addEventListener(
                          "click",
                          function (e) {
                            e.stopPropagation(),
                              this.removeElement(this.toastElement),
                              window.clearTimeout(
                                this.toastElement.timeOutValue
                              );
                          }.bind(this)
                        );
                      var a =
                        window.innerWidth > 0
                          ? window.innerWidth
                          : screen.width;
                      ("left" == this.options.position ||
                        !0 === this.options.positionLeft) &&
                      a > 360
                        ? e.insertAdjacentElement("afterbegin", r)
                        : e.appendChild(r);
                    }
                    if (this.options.stopOnFocus && this.options.duration > 0) {
                      var o = this;
                      e.addEventListener("mouseover", function (t) {
                        window.clearTimeout(e.timeOutValue);
                      }),
                        e.addEventListener("mouseleave", function () {
                          e.timeOutValue = window.setTimeout(function () {
                            o.removeElement(e);
                          }, o.options.duration);
                        });
                    }
                    if (
                      (void 0 !== this.options.destination &&
                        e.addEventListener(
                          "click",
                          function (e) {
                            e.stopPropagation(),
                              !0 === this.options.newWindow
                                ? window.open(
                                    this.options.destination,
                                    "_blank"
                                  )
                                : (window.location = this.options.destination);
                          }.bind(this)
                        ),
                      "function" == typeof this.options.onClick &&
                        void 0 === this.options.destination &&
                        e.addEventListener(
                          "click",
                          function (e) {
                            e.stopPropagation(), this.options.onClick();
                          }.bind(this)
                        ),
                      "object" == typeof this.options.offset)
                    ) {
                      var s = i("x", this.options),
                        l = i("y", this.options),
                        c = "left" == this.options.position ? s : "-" + s,
                        u =
                          "toastify-top" == this.options.gravity ? l : "-" + l;
                      e.style.transform = "translate(" + c + "," + u + ")";
                    }
                    return e;
                  },
                  showToast: function () {
                    var e;
                    if (
                      ((this.toastElement = this.buildToast()),
                      !(e =
                        "string" == typeof this.options.selector
                          ? document.getElementById(this.options.selector)
                          : this.options.selector instanceof HTMLElement ||
                            ("undefined" != typeof ShadowRoot &&
                              this.options.selector instanceof ShadowRoot)
                          ? this.options.selector
                          : document.body))
                    )
                      throw "Root element is not defined";
                    var i = t.defaults.oldestFirst ? e.firstChild : e.lastChild;
                    return (
                      e.insertBefore(this.toastElement, i),
                      t.reposition(),
                      this.options.duration > 0 &&
                        (this.toastElement.timeOutValue = window.setTimeout(
                          function () {
                            this.removeElement(this.toastElement);
                          }.bind(this),
                          this.options.duration
                        )),
                      this
                    );
                  },
                  hideToast: function () {
                    this.toastElement.timeOutValue &&
                      clearTimeout(this.toastElement.timeOutValue),
                      this.removeElement(this.toastElement);
                  },
                  removeElement: function (e) {
                    (e.className = e.className.replace(" on", "")),
                      window.setTimeout(
                        function () {
                          this.options.node &&
                            this.options.node.parentNode &&
                            this.options.node.parentNode.removeChild(
                              this.options.node
                            ),
                            e.parentNode && e.parentNode.removeChild(e),
                            this.options.callback.call(e),
                            t.reposition();
                        }.bind(this),
                        400
                      );
                  },
                }),
              (t.reposition = function () {
                for (
                  var e,
                    t = { top: 15, bottom: 15 },
                    i = { top: 15, bottom: 15 },
                    r = { top: 15, bottom: 15 },
                    a = document.getElementsByClassName("toastify"),
                    o = 0;
                  o < a.length;
                  o++
                ) {
                  e =
                    !0 === n(a[o], "toastify-top")
                      ? "toastify-top"
                      : "toastify-bottom";
                  var s = a[o].offsetHeight;
                  (e = e.substr(9, e.length - 1)),
                    (window.innerWidth > 0
                      ? window.innerWidth
                      : screen.width) <= 360
                      ? ((a[o].style[e] = r[e] + "px"), (r[e] += s + 15))
                      : !0 === n(a[o], "toastify-left")
                      ? ((a[o].style[e] = t[e] + "px"), (t[e] += s + 15))
                      : ((a[o].style[e] = i[e] + "px"), (i[e] += s + 15));
                }
                return this;
              }),
              (t.lib.init.prototype = t.lib),
              t
            );
          }),
          e.exports ? (e.exports = i()) : (t.Toastify = i());
      },
      488: function (e) {
        e.exports = (function () {
          "use strict";
          function e(e, t) {
            e.split(/\s+/).forEach((e) => {
              t(e);
            });
          }
          class t {
            constructor() {
              (this._events = void 0), (this._events = {});
            }
            on(t, i) {
              e(t, (e) => {
                const t = this._events[e] || [];
                t.push(i), (this._events[e] = t);
              });
            }
            off(t, i) {
              var n = arguments.length;
              0 !== n
                ? e(t, (e) => {
                    if (1 === n) return void delete this._events[e];
                    const t = this._events[e];
                    void 0 !== t &&
                      (t.splice(t.indexOf(i), 1), (this._events[e] = t));
                  })
                : (this._events = {});
            }
            trigger(t, ...i) {
              var n = this;
              e(t, (e) => {
                const t = n._events[e];
                void 0 !== t &&
                  t.forEach((e) => {
                    e.apply(n, i);
                  });
              });
            }
          }
          const i = (e) =>
              (e = e.filter(Boolean)).length < 2
                ? e[0] || ""
                : 1 == s(e)
                ? "[" + e.join("") + "]"
                : "(?:" + e.join("|") + ")",
            n = (e) => {
              if (!a(e)) return e.join("");
              let t = "",
                i = 0;
              const n = () => {
                i > 1 && (t += "{" + i + "}");
              };
              return (
                e.forEach((r, a) => {
                  r !== e[a - 1] ? (n(), (t += r), (i = 1)) : i++;
                }),
                n(),
                t
              );
            },
            r = (e) => {
              let t = c(e);
              return i(t);
            },
            a = (e) => new Set(e).size !== e.length,
            o = (e) =>
              (e + "").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu, "\\$1"),
            s = (e) => e.reduce((e, t) => Math.max(e, l(t)), 0),
            l = (e) => c(e).length,
            c = (e) => Array.from(e),
            u = (e) => {
              if (1 === e.length) return [[e]];
              let t = [];
              const i = e.substring(1);
              return (
                u(i).forEach(function (i) {
                  let n = i.slice(0);
                  (n[0] = e.charAt(0) + n[0]),
                    t.push(n),
                    (n = i.slice(0)),
                    n.unshift(e.charAt(0)),
                    t.push(n);
                }),
                t
              );
            },
            d = [[0, 65535]];
          let h, f;
          const p = {},
            g = {
              "/": "⁄∕",
              0: "߀",
              a: "ⱥɐɑ",
              aa: "ꜳ",
              ae: "æǽǣ",
              ao: "ꜵ",
              au: "ꜷ",
              av: "ꜹꜻ",
              ay: "ꜽ",
              b: "ƀɓƃ",
              c: "ꜿƈȼↄ",
              d: "đɗɖᴅƌꮷԁɦ",
              e: "ɛǝᴇɇ",
              f: "ꝼƒ",
              g: "ǥɠꞡᵹꝿɢ",
              h: "ħⱨⱶɥ",
              i: "ɨı",
              j: "ɉȷ",
              k: "ƙⱪꝁꝃꝅꞣ",
              l: "łƚɫⱡꝉꝇꞁɭ",
              m: "ɱɯϻ",
              n: "ꞥƞɲꞑᴎлԉ",
              o: "øǿɔɵꝋꝍᴑ",
              oe: "œ",
              oi: "ƣ",
              oo: "ꝏ",
              ou: "ȣ",
              p: "ƥᵽꝑꝓꝕρ",
              q: "ꝗꝙɋ",
              r: "ɍɽꝛꞧꞃ",
              s: "ßȿꞩꞅʂ",
              t: "ŧƭʈⱦꞇ",
              th: "þ",
              tz: "ꜩ",
              u: "ʉ",
              v: "ʋꝟʌ",
              vy: "ꝡ",
              w: "ⱳ",
              y: "ƴɏỿ",
              z: "ƶȥɀⱬꝣ",
              hv: "ƕ",
            };
          for (let e in g) {
            let t = g[e] || "";
            for (let i = 0; i < t.length; i++) {
              let n = t.substring(i, i + 1);
              p[n] = e;
            }
          }
          const m = new RegExp(Object.keys(p).join("|") + "|[̀-ͯ·ʾʼ]", "gu"),
            v = (e, t = "NFKD") => e.normalize(t),
            b = (e) => c(e).reduce((e, t) => e + y(t), ""),
            y = (e) => (
              (e = v(e)
                .toLowerCase()
                .replace(m, (e) => p[e] || "")),
              v(e, "NFC")
            ),
            x = (e) => {
              const t = {},
                i = (e, i) => {
                  const n = t[e] || new Set(),
                    a = new RegExp("^" + r(n) + "$", "iu");
                  i.match(a) || (n.add(o(i)), (t[e] = n));
                };
              for (let t of (function* (e) {
                for (const [t, i] of e)
                  for (let e = t; e <= i; e++) {
                    let t = String.fromCharCode(e),
                      i = b(t);
                    i != t.toLowerCase() &&
                      (i.length > 3 ||
                        (0 != i.length &&
                          (yield { folded: i, composed: t, code_point: e })));
                  }
              })(e))
                i(t.folded, t.folded), i(t.folded, t.composed);
              return t;
            },
            w = (e) => {
              const t = x(e),
                n = {};
              let a = [];
              for (let e in t) {
                let i = t[e];
                i && (n[e] = r(i)), e.length > 1 && a.push(o(e));
              }
              a.sort((e, t) => t.length - e.length);
              const s = i(a);
              return (f = new RegExp("^" + s, "u")), n;
            },
            E = (e, t = 1) => (
              (t = Math.max(t, e.length - 1)),
              i(
                u(e).map((e) =>
                  ((e, t = 1) => {
                    let i = 0;
                    return (
                      (e = e.map((e) => (h[e] && (i += e.length), h[e] || e))),
                      i >= t ? n(e) : ""
                    );
                  })(e, t)
                )
              )
            ),
            _ = (e, t = !0) => {
              let r = e.length > 1 ? 1 : 0;
              return i(
                e.map((e) => {
                  let i = [];
                  const a = t ? e.length() : e.length() - 1;
                  for (let t = 0; t < a; t++) i.push(E(e.substrs[t] || "", r));
                  return n(i);
                })
              );
            },
            S = (e, t) => {
              for (const i of t) {
                if (i.start != e.start || i.end != e.end) continue;
                if (i.substrs.join("") !== e.substrs.join("")) continue;
                let t = e.parts;
                const n = (e) => {
                  for (const i of t) {
                    if (i.start === e.start && i.substr === e.substr) return !1;
                    if (1 != e.length && 1 != i.length) {
                      if (e.start < i.start && e.end > i.start) return !0;
                      if (i.start < e.start && i.end > e.start) return !0;
                    }
                  }
                  return !1;
                };
                if (!(i.parts.filter(n).length > 0)) return !0;
              }
              return !1;
            };
          class A {
            constructor() {
              (this.parts = []),
                (this.substrs = []),
                (this.start = 0),
                (this.end = 0);
            }
            add(e) {
              e &&
                (this.parts.push(e),
                this.substrs.push(e.substr),
                (this.start = Math.min(e.start, this.start)),
                (this.end = Math.max(e.end, this.end)));
            }
            last() {
              return this.parts[this.parts.length - 1];
            }
            length() {
              return this.parts.length;
            }
            clone(e, t) {
              let i = new A(),
                n = JSON.parse(JSON.stringify(this.parts)),
                r = n.pop();
              for (const e of n) i.add(e);
              let a = t.substr.substring(0, e - r.start),
                o = a.length;
              return (
                i.add({
                  start: r.start,
                  end: r.start + o,
                  length: o,
                  substr: a,
                }),
                i
              );
            }
          }
          const k = (e) => {
              var t;
              void 0 === h && (h = w(t || d)), (e = b(e));
              let i = "",
                n = [new A()];
              for (let t = 0; t < e.length; t++) {
                let r = e.substring(t).match(f);
                const a = e.substring(t, t + 1),
                  o = r ? r[0] : null;
                let s = [],
                  l = new Set();
                for (const e of n) {
                  const i = e.last();
                  if (!i || 1 == i.length || i.end <= t)
                    if (o) {
                      const i = o.length;
                      e.add({ start: t, end: t + i, length: i, substr: o }),
                        l.add("1");
                    } else
                      e.add({ start: t, end: t + 1, length: 1, substr: a }),
                        l.add("2");
                  else if (o) {
                    let n = e.clone(t, i);
                    const r = o.length;
                    n.add({ start: t, end: t + r, length: r, substr: o }),
                      s.push(n);
                  } else l.add("3");
                }
                if (s.length > 0) {
                  s = s.sort((e, t) => e.length() - t.length());
                  for (let e of s) S(e, n) || n.push(e);
                } else if (t > 0 && 1 == l.size && !l.has("3")) {
                  i += _(n, !1);
                  let e = new A();
                  const t = n[0];
                  t && e.add(t.last()), (n = [e]);
                }
              }
              return (i += _(n, !0)), i;
            },
            T = (e, t) => {
              if (e) return e[t];
            },
            C = (e, t) => {
              if (e) {
                for (var i, n = t.split("."); (i = n.shift()) && (e = e[i]); );
                return e;
              }
            },
            O = (e, t, i) => {
              var n, r;
              return e
                ? ((e += ""),
                  null == t.regex || -1 === (r = e.search(t.regex))
                    ? 0
                    : ((n = t.string.length / e.length),
                      0 === r && (n += 0.5),
                      n * i))
                : 0;
            },
            I = (e, t) => {
              var i = e[t];
              if ("function" == typeof i) return i;
              i && !Array.isArray(i) && (e[t] = [i]);
            },
            M = (e, t) => {
              if (Array.isArray(e)) e.forEach(t);
              else for (var i in e) e.hasOwnProperty(i) && t(e[i], i);
            },
            L = (e, t) =>
              "number" == typeof e && "number" == typeof t
                ? e > t
                  ? 1
                  : e < t
                  ? -1
                  : 0
                : (e = b(e + "").toLowerCase()) > (t = b(t + "").toLowerCase())
                ? 1
                : t > e
                ? -1
                : 0;
          class P {
            constructor(e, t) {
              (this.items = void 0),
                (this.settings = void 0),
                (this.items = e),
                (this.settings = t || { diacritics: !0 });
            }
            tokenize(e, t, i) {
              if (!e || !e.length) return [];
              const n = [],
                r = e.split(/\s+/);
              var a;
              return (
                i &&
                  (a = new RegExp(
                    "^(" + Object.keys(i).map(o).join("|") + "):(.*)$"
                  )),
                r.forEach((e) => {
                  let i,
                    r = null,
                    s = null;
                  a && (i = e.match(a)) && ((r = i[1]), (e = i[2])),
                    e.length > 0 &&
                      ((s = this.settings.diacritics ? k(e) || null : o(e)),
                      s && t && (s = "\\b" + s)),
                    n.push({
                      string: e,
                      regex: s ? new RegExp(s, "iu") : null,
                      field: r,
                    });
                }),
                n
              );
            }
            getScoreFunction(e, t) {
              var i = this.prepareSearch(e, t);
              return this._getScoreFunction(i);
            }
            _getScoreFunction(e) {
              const t = e.tokens,
                i = t.length;
              if (!i)
                return function () {
                  return 0;
                };
              const n = e.options.fields,
                r = e.weights,
                a = n.length,
                o = e.getAttrFn;
              if (!a)
                return function () {
                  return 1;
                };
              const s =
                1 === a
                  ? function (e, t) {
                      const i = n[0].field;
                      return O(o(t, i), e, r[i] || 1);
                    }
                  : function (e, t) {
                      var i = 0;
                      if (e.field) {
                        const n = o(t, e.field);
                        !e.regex && n ? (i += 1 / a) : (i += O(n, e, 1));
                      } else
                        M(r, (n, r) => {
                          i += O(o(t, r), e, n);
                        });
                      return i / a;
                    };
              return 1 === i
                ? function (e) {
                    return s(t[0], e);
                  }
                : "and" === e.options.conjunction
                ? function (e) {
                    var n,
                      r = 0;
                    for (let i of t) {
                      if ((n = s(i, e)) <= 0) return 0;
                      r += n;
                    }
                    return r / i;
                  }
                : function (e) {
                    var n = 0;
                    return (
                      M(t, (t) => {
                        n += s(t, e);
                      }),
                      n / i
                    );
                  };
            }
            getSortFunction(e, t) {
              var i = this.prepareSearch(e, t);
              return this._getSortFunction(i);
            }
            _getSortFunction(e) {
              var t,
                i = [];
              const n = this,
                r = e.options,
                a = !e.query && r.sort_empty ? r.sort_empty : r.sort;
              if ("function" == typeof a) return a.bind(this);
              const o = function (t, i) {
                return "$score" === t ? i.score : e.getAttrFn(n.items[i.id], t);
              };
              if (a)
                for (let t of a) (e.query || "$score" !== t.field) && i.push(t);
              if (e.query) {
                t = !0;
                for (let e of i)
                  if ("$score" === e.field) {
                    t = !1;
                    break;
                  }
                t && i.unshift({ field: "$score", direction: "desc" });
              } else i = i.filter((e) => "$score" !== e.field);
              return i.length
                ? function (e, t) {
                    var n, r;
                    for (let a of i)
                      if (
                        ((r = a.field),
                        (n =
                          ("desc" === a.direction ? -1 : 1) *
                          L(o(r, e), o(r, t))))
                      )
                        return n;
                    return 0;
                  }
                : null;
            }
            prepareSearch(e, t) {
              const i = {};
              var n = Object.assign({}, t);
              if ((I(n, "sort"), I(n, "sort_empty"), n.fields)) {
                I(n, "fields");
                const e = [];
                n.fields.forEach((t) => {
                  "string" == typeof t && (t = { field: t, weight: 1 }),
                    e.push(t),
                    (i[t.field] = "weight" in t ? t.weight : 1);
                }),
                  (n.fields = e);
              }
              return {
                options: n,
                query: e.toLowerCase().trim(),
                tokens: this.tokenize(e, n.respect_word_boundaries, i),
                total: 0,
                items: [],
                weights: i,
                getAttrFn: n.nesting ? C : T,
              };
            }
            search(e, t) {
              var i,
                n,
                r = this;
              (n = this.prepareSearch(e, t)), (t = n.options), (e = n.query);
              const a = t.score || r._getScoreFunction(n);
              e.length
                ? M(r.items, (e, r) => {
                    (i = a(e)),
                      (!1 === t.filter || i > 0) &&
                        n.items.push({ score: i, id: r });
                  })
                : M(r.items, (e, t) => {
                    n.items.push({ score: 1, id: t });
                  });
              const o = r._getSortFunction(n);
              return (
                o && n.items.sort(o),
                (n.total = n.items.length),
                "number" == typeof t.limit &&
                  (n.items = n.items.slice(0, t.limit)),
                n
              );
            }
          }
          const D = (e, t) => {
              if (Array.isArray(e)) e.forEach(t);
              else for (var i in e) e.hasOwnProperty(i) && t(e[i], i);
            },
            R = (e) => {
              if (e.jquery) return e[0];
              if (e instanceof HTMLElement) return e;
              if (N(e)) {
                var t = document.createElement("template");
                return (t.innerHTML = e.trim()), t.content.firstChild;
              }
              return document.querySelector(e);
            },
            N = (e) => "string" == typeof e && e.indexOf("<") > -1,
            F = (e, t) => {
              var i = document.createEvent("HTMLEvents");
              i.initEvent(t, !0, !1), e.dispatchEvent(i);
            },
            B = (e, t) => {
              Object.assign(e.style, t);
            },
            z = (e, ...t) => {
              var i = H(t);
              (e = Y(e)).map((e) => {
                i.map((t) => {
                  e.classList.add(t);
                });
              });
            },
            j = (e, ...t) => {
              var i = H(t);
              (e = Y(e)).map((e) => {
                i.map((t) => {
                  e.classList.remove(t);
                });
              });
            },
            H = (e) => {
              var t = [];
              return (
                D(e, (e) => {
                  "string" == typeof e &&
                    (e = e.trim().split(/[\11\12\14\15\40]/)),
                    Array.isArray(e) && (t = t.concat(e));
                }),
                t.filter(Boolean)
              );
            },
            Y = (e) => (Array.isArray(e) || (e = [e]), e),
            X = (e, t, i) => {
              if (!i || i.contains(e))
                for (; e && e.matches; ) {
                  if (e.matches(t)) return e;
                  e = e.parentNode;
                }
            },
            W = (e, t = 0) => (t > 0 ? e[e.length - 1] : e[0]),
            G = (e, t) => {
              if (!e) return -1;
              t = t || e.nodeName;
              for (var i = 0; (e = e.previousElementSibling); )
                e.matches(t) && i++;
              return i;
            },
            q = (e, t) => {
              D(t, (t, i) => {
                null == t ? e.removeAttribute(i) : e.setAttribute(i, "" + t);
              });
            },
            V = (e, t) => {
              e.parentNode && e.parentNode.replaceChild(t, e);
            },
            U = (e, t) => {
              if (null === t) return;
              if ("string" == typeof t) {
                if (!t.length) return;
                t = new RegExp(t, "i");
              }
              const i = (e) =>
                3 === e.nodeType
                  ? ((e) => {
                      var i = e.data.match(t);
                      if (i && e.data.length > 0) {
                        var n = document.createElement("span");
                        n.className = "highlight";
                        var r = e.splitText(i.index);
                        r.splitText(i[0].length);
                        var a = r.cloneNode(!0);
                        return n.appendChild(a), V(r, n), 1;
                      }
                      return 0;
                    })(e)
                  : (((e) => {
                      1 !== e.nodeType ||
                        !e.childNodes ||
                        /(script|style)/i.test(e.tagName) ||
                        ("highlight" === e.className && "SPAN" === e.tagName) ||
                        Array.from(e.childNodes).forEach((e) => {
                          i(e);
                        });
                    })(e),
                    0);
              i(e);
            },
            Z =
              "undefined" != typeof navigator && /Mac/.test(navigator.userAgent)
                ? "metaKey"
                : "ctrlKey";
          var K = {
            options: [],
            optgroups: [],
            plugins: [],
            delimiter: ",",
            splitOn: null,
            persist: !0,
            diacritics: !0,
            create: null,
            createOnBlur: !1,
            createFilter: null,
            highlight: !0,
            openOnFocus: !0,
            shouldOpen: null,
            maxOptions: 50,
            maxItems: null,
            hideSelected: null,
            duplicates: !1,
            addPrecedence: !1,
            selectOnTab: !1,
            preload: null,
            allowEmptyOption: !1,
            loadThrottle: 300,
            loadingClass: "loading",
            dataAttr: null,
            optgroupField: "optgroup",
            valueField: "value",
            labelField: "text",
            disabledField: "disabled",
            optgroupLabelField: "label",
            optgroupValueField: "value",
            lockOptgroupOrder: !1,
            sortField: "$order",
            searchField: ["text"],
            searchConjunction: "and",
            mode: null,
            wrapperClass: "ts-wrapper",
            controlClass: "ts-control",
            dropdownClass: "ts-dropdown",
            dropdownContentClass: "ts-dropdown-content",
            itemClass: "item",
            optionClass: "option",
            dropdownParent: null,
            controlInput: '<input type="text" autocomplete="off" size="1" />',
            copyClassesToDropdown: !1,
            placeholder: null,
            hidePlaceholder: null,
            shouldLoad: function (e) {
              return e.length > 0;
            },
            render: {},
          };
          const J = (e) => (null == e ? null : Q(e)),
            Q = (e) => ("boolean" == typeof e ? (e ? "1" : "0") : e + ""),
            ee = (e) =>
              (e + "")
                .replace(/&/g, "&amp;")
                .replace(/</g, "&lt;")
                .replace(/>/g, "&gt;")
                .replace(/"/g, "&quot;"),
            te = (e, t) => {
              var i;
              return function (n, r) {
                var a = this;
                i &&
                  ((a.loading = Math.max(a.loading - 1, 0)), clearTimeout(i)),
                  (i = setTimeout(function () {
                    (i = null), (a.loadedSearches[n] = !0), e.call(a, n, r);
                  }, t));
              };
            },
            ie = (e, t, i) => {
              var n,
                r = e.trigger,
                a = {};
              for (n of ((e.trigger = function () {
                var i = arguments[0];
                if (-1 === t.indexOf(i)) return r.apply(e, arguments);
                a[i] = arguments;
              }),
              i.apply(e, []),
              (e.trigger = r),
              t))
                n in a && r.apply(e, a[n]);
            },
            ne = (e, t = !1) => {
              e && (e.preventDefault(), t && e.stopPropagation());
            },
            re = (e, t, i, n) => {
              e.addEventListener(t, i, n);
            },
            ae = (e, t) =>
              !!t &&
              !!t[e] &&
              1 ==
                (t.altKey ? 1 : 0) +
                  (t.ctrlKey ? 1 : 0) +
                  (t.shiftKey ? 1 : 0) +
                  (t.metaKey ? 1 : 0),
            oe = (e, t) => e.getAttribute("id") || (e.setAttribute("id", t), t),
            se = (e) => e.replace(/[\\"']/g, "\\$&"),
            le = (e, t) => {
              t && e.append(t);
            };
          function ce(e, t) {
            var i = Object.assign({}, K, t),
              n = i.dataAttr,
              r = i.labelField,
              a = i.valueField,
              o = i.disabledField,
              s = i.optgroupField,
              l = i.optgroupLabelField,
              c = i.optgroupValueField,
              u = e.tagName.toLowerCase(),
              d =
                e.getAttribute("placeholder") ||
                e.getAttribute("data-placeholder");
            if (!d && !i.allowEmptyOption) {
              let t = e.querySelector('option[value=""]');
              t && (d = t.textContent);
            }
            var h,
              f,
              p,
              g,
              m,
              v,
              b = {
                placeholder: d,
                options: [],
                optgroups: [],
                items: [],
                maxItems: null,
              };
            return (
              "select" === u
                ? ((f = b.options),
                  (p = {}),
                  (g = 1),
                  (m = (e) => {
                    var t = Object.assign({}, e.dataset),
                      i = n && t[n];
                    return (
                      "string" == typeof i &&
                        i.length &&
                        (t = Object.assign(t, JSON.parse(i))),
                      t
                    );
                  }),
                  (v = (e, t) => {
                    var n = J(e.value);
                    if (null != n && (n || i.allowEmptyOption)) {
                      if (p.hasOwnProperty(n)) {
                        if (t) {
                          var l = p[n][s];
                          l
                            ? Array.isArray(l)
                              ? l.push(t)
                              : (p[n][s] = [l, t])
                            : (p[n][s] = t);
                        }
                      } else {
                        var c = m(e);
                        (c[r] = c[r] || e.textContent),
                          (c[a] = c[a] || n),
                          (c[o] = c[o] || e.disabled),
                          (c[s] = c[s] || t),
                          (c.$option = e),
                          (p[n] = c),
                          f.push(c);
                      }
                      e.selected && b.items.push(n);
                    }
                  }),
                  (b.maxItems = e.hasAttribute("multiple") ? null : 1),
                  D(e.children, (e) => {
                    var t, i, n;
                    "optgroup" === (h = e.tagName.toLowerCase())
                      ? (((n = m((t = e)))[l] =
                          n[l] || t.getAttribute("label") || ""),
                        (n[c] = n[c] || g++),
                        (n[o] = n[o] || t.disabled),
                        b.optgroups.push(n),
                        (i = n[c]),
                        D(t.children, (e) => {
                          v(e, i);
                        }))
                      : "option" === h && v(e);
                  }))
                : (() => {
                    const t = e.getAttribute(n);
                    if (t)
                      (b.options = JSON.parse(t)),
                        D(b.options, (e) => {
                          b.items.push(e[a]);
                        });
                    else {
                      var o = e.value.trim() || "";
                      if (!i.allowEmptyOption && !o.length) return;
                      const t = o.split(i.delimiter);
                      D(t, (e) => {
                        const t = {};
                        (t[r] = e), (t[a] = e), b.options.push(t);
                      }),
                        (b.items = t);
                    }
                  })(),
              Object.assign({}, K, b, t)
            );
          }
          var ue = 0;
          class de extends (function (e) {
            return (
              (e.plugins = {}),
              class extends e {
                constructor(...e) {
                  super(...e),
                    (this.plugins = {
                      names: [],
                      settings: {},
                      requested: {},
                      loaded: {},
                    });
                }
                static define(t, i) {
                  e.plugins[t] = { name: t, fn: i };
                }
                initializePlugins(e) {
                  var t, i;
                  const n = this,
                    r = [];
                  if (Array.isArray(e))
                    e.forEach((e) => {
                      "string" == typeof e
                        ? r.push(e)
                        : ((n.plugins.settings[e.name] = e.options),
                          r.push(e.name));
                    });
                  else if (e)
                    for (t in e)
                      e.hasOwnProperty(t) &&
                        ((n.plugins.settings[t] = e[t]), r.push(t));
                  for (; (i = r.shift()); ) n.require(i);
                }
                loadPlugin(t) {
                  var i = this,
                    n = i.plugins,
                    r = e.plugins[t];
                  if (!e.plugins.hasOwnProperty(t))
                    throw new Error('Unable to find "' + t + '" plugin');
                  (n.requested[t] = !0),
                    (n.loaded[t] = r.fn.apply(i, [
                      i.plugins.settings[t] || {},
                    ])),
                    n.names.push(t);
                }
                require(e) {
                  var t = this,
                    i = t.plugins;
                  if (!t.plugins.loaded.hasOwnProperty(e)) {
                    if (i.requested[e])
                      throw new Error(
                        'Plugin has circular dependency ("' + e + '")'
                      );
                    t.loadPlugin(e);
                  }
                  return i.loaded[e];
                }
              }
            );
          })(t) {
            constructor(e, t) {
              var i;
              super(),
                (this.control_input = void 0),
                (this.wrapper = void 0),
                (this.dropdown = void 0),
                (this.control = void 0),
                (this.dropdown_content = void 0),
                (this.focus_node = void 0),
                (this.order = 0),
                (this.settings = void 0),
                (this.input = void 0),
                (this.tabIndex = void 0),
                (this.is_select_tag = void 0),
                (this.rtl = void 0),
                (this.inputId = void 0),
                (this._destroy = void 0),
                (this.sifter = void 0),
                (this.isOpen = !1),
                (this.isDisabled = !1),
                (this.isRequired = void 0),
                (this.isInvalid = !1),
                (this.isValid = !0),
                (this.isLocked = !1),
                (this.isFocused = !1),
                (this.isInputHidden = !1),
                (this.isSetup = !1),
                (this.ignoreFocus = !1),
                (this.ignoreHover = !1),
                (this.hasOptions = !1),
                (this.currentResults = void 0),
                (this.lastValue = ""),
                (this.caretPos = 0),
                (this.loading = 0),
                (this.loadedSearches = {}),
                (this.activeOption = null),
                (this.activeItems = []),
                (this.optgroups = {}),
                (this.options = {}),
                (this.userOptions = {}),
                (this.items = []),
                ue++;
              var n = R(e);
              if (n.tomselect)
                throw new Error(
                  "Tom Select already initialized on this element"
                );
              (n.tomselect = this),
                (i = (
                  window.getComputedStyle && window.getComputedStyle(n, null)
                ).getPropertyValue("direction"));
              const r = ce(n, t);
              (this.settings = r),
                (this.input = n),
                (this.tabIndex = n.tabIndex || 0),
                (this.is_select_tag = "select" === n.tagName.toLowerCase()),
                (this.rtl = /rtl/i.test(i)),
                (this.inputId = oe(n, "tomselect-" + ue)),
                (this.isRequired = n.required),
                (this.sifter = new P(this.options, {
                  diacritics: r.diacritics,
                })),
                (r.mode = r.mode || (1 === r.maxItems ? "single" : "multi")),
                "boolean" != typeof r.hideSelected &&
                  (r.hideSelected = "multi" === r.mode),
                "boolean" != typeof r.hidePlaceholder &&
                  (r.hidePlaceholder = "multi" !== r.mode);
              var a = r.createFilter;
              "function" != typeof a &&
                ("string" == typeof a && (a = new RegExp(a)),
                a instanceof RegExp
                  ? (r.createFilter = (e) => a.test(e))
                  : (r.createFilter = (e) =>
                      this.settings.duplicates || !this.options[e])),
                this.initializePlugins(r.plugins),
                this.setupCallbacks(),
                this.setupTemplates();
              const o = R("<div>"),
                s = R("<div>"),
                l = this._render("dropdown"),
                c = R('<div role="listbox" tabindex="-1">'),
                u = this.input.getAttribute("class") || "",
                d = r.mode;
              var h;
              z(o, r.wrapperClass, u, d),
                z(s, r.controlClass),
                le(o, s),
                z(l, r.dropdownClass, d),
                r.copyClassesToDropdown && z(l, u),
                z(c, r.dropdownContentClass),
                le(l, c),
                R(r.dropdownParent || o).appendChild(l),
                N(r.controlInput)
                  ? ((h = R(r.controlInput)),
                    M(
                      ["autocorrect", "autocapitalize", "autocomplete"],
                      (e) => {
                        n.getAttribute(e) && q(h, { [e]: n.getAttribute(e) });
                      }
                    ),
                    (h.tabIndex = -1),
                    s.appendChild(h),
                    (this.focus_node = h))
                  : r.controlInput
                  ? ((h = R(r.controlInput)), (this.focus_node = h))
                  : ((h = R("<input/>")), (this.focus_node = s)),
                (this.wrapper = o),
                (this.dropdown = l),
                (this.dropdown_content = c),
                (this.control = s),
                (this.control_input = h),
                this.setup();
            }
            setup() {
              const e = this,
                t = e.settings,
                i = e.control_input,
                n = e.dropdown,
                r = e.dropdown_content,
                a = e.wrapper,
                s = e.control,
                l = e.input,
                c = e.focus_node,
                u = { passive: !0 },
                d = e.inputId + "-ts-dropdown";
              q(r, { id: d }),
                q(c, {
                  role: "combobox",
                  "aria-haspopup": "listbox",
                  "aria-expanded": "false",
                  "aria-controls": d,
                });
              const h = oe(c, e.inputId + "-ts-control"),
                f =
                  "label[for='" +
                  ((e) => e.replace(/['"\\]/g, "\\$&"))(e.inputId) +
                  "']",
                p = document.querySelector(f),
                g = e.focus.bind(e);
              if (p) {
                re(p, "click", g), q(p, { for: h });
                const t = oe(p, e.inputId + "-ts-label");
                q(c, { "aria-labelledby": t }), q(r, { "aria-labelledby": t });
              }
              if (((a.style.width = l.style.width), e.plugins.names.length)) {
                const t = "plugin-" + e.plugins.names.join(" plugin-");
                z([a, n], t);
              }
              (null === t.maxItems || t.maxItems > 1) &&
                e.is_select_tag &&
                q(l, { multiple: "multiple" }),
                t.placeholder && q(i, { placeholder: t.placeholder }),
                !t.splitOn &&
                  t.delimiter &&
                  (t.splitOn = new RegExp("\\s*" + o(t.delimiter) + "+\\s*")),
                t.load &&
                  t.loadThrottle &&
                  (t.load = te(t.load, t.loadThrottle)),
                (e.control_input.type = l.type),
                re(n, "mousemove", () => {
                  e.ignoreHover = !1;
                }),
                re(
                  n,
                  "mouseenter",
                  (t) => {
                    var i = X(t.target, "[data-selectable]", n);
                    i && e.onOptionHover(t, i);
                  },
                  { capture: !0 }
                ),
                re(n, "click", (t) => {
                  const i = X(t.target, "[data-selectable]");
                  i && (e.onOptionSelect(t, i), ne(t, !0));
                }),
                re(s, "click", (t) => {
                  var n = X(t.target, "[data-ts-item]", s);
                  n && e.onItemSelect(t, n)
                    ? ne(t, !0)
                    : "" == i.value && (e.onClick(), ne(t, !0));
                }),
                re(c, "keydown", (t) => e.onKeyDown(t)),
                re(i, "keypress", (t) => e.onKeyPress(t)),
                re(i, "input", (t) => e.onInput(t)),
                re(c, "blur", (t) => e.onBlur(t)),
                re(c, "focus", (t) => e.onFocus(t)),
                re(i, "paste", (t) => e.onPaste(t));
              const m = (t) => {
                  const r = t.composedPath()[0];
                  if (!a.contains(r) && !n.contains(r))
                    return e.isFocused && e.blur(), void e.inputState();
                  r == i && e.isOpen ? t.stopPropagation() : ne(t, !0);
                },
                v = () => {
                  e.isOpen && e.positionDropdown();
                };
              re(document, "mousedown", m),
                re(window, "scroll", v, u),
                re(window, "resize", v, u),
                (this._destroy = () => {
                  document.removeEventListener("mousedown", m),
                    window.removeEventListener("scroll", v),
                    window.removeEventListener("resize", v),
                    p && p.removeEventListener("click", g);
                }),
                (this.revertSettings = {
                  innerHTML: l.innerHTML,
                  tabIndex: l.tabIndex,
                }),
                (l.tabIndex = -1),
                l.insertAdjacentElement("afterend", e.wrapper),
                e.sync(!1),
                (t.items = []),
                delete t.optgroups,
                delete t.options,
                re(l, "invalid", () => {
                  e.isValid &&
                    ((e.isValid = !1), (e.isInvalid = !0), e.refreshState());
                }),
                e.updateOriginalInput(),
                e.refreshItems(),
                e.close(!1),
                e.inputState(),
                (e.isSetup = !0),
                l.disabled ? e.disable() : e.enable(),
                e.on("change", this.onChange),
                z(l, "tomselected", "ts-hidden-accessible"),
                e.trigger("initialize"),
                !0 === t.preload && e.preload();
            }
            setupOptions(e = [], t = []) {
              this.addOptions(e),
                M(t, (e) => {
                  this.registerOptionGroup(e);
                });
            }
            setupTemplates() {
              var e = this,
                t = e.settings.labelField,
                i = e.settings.optgroupLabelField,
                n = {
                  optgroup: (e) => {
                    let t = document.createElement("div");
                    return (
                      (t.className = "optgroup"), t.appendChild(e.options), t
                    );
                  },
                  optgroup_header: (e, t) =>
                    '<div class="optgroup-header">' + t(e[i]) + "</div>",
                  option: (e, i) => "<div>" + i(e[t]) + "</div>",
                  item: (e, i) => "<div>" + i(e[t]) + "</div>",
                  option_create: (e, t) =>
                    '<div class="create">Add <strong>' +
                    t(e.input) +
                    "</strong>&hellip;</div>",
                  no_results: () =>
                    '<div class="no-results">No results found</div>',
                  loading: () => '<div class="spinner"></div>',
                  not_loading: () => {},
                  dropdown: () => "<div></div>",
                };
              e.settings.render = Object.assign({}, n, e.settings.render);
            }
            setupCallbacks() {
              var e,
                t,
                i = {
                  initialize: "onInitialize",
                  change: "onChange",
                  item_add: "onItemAdd",
                  item_remove: "onItemRemove",
                  item_select: "onItemSelect",
                  clear: "onClear",
                  option_add: "onOptionAdd",
                  option_remove: "onOptionRemove",
                  option_clear: "onOptionClear",
                  optgroup_add: "onOptionGroupAdd",
                  optgroup_remove: "onOptionGroupRemove",
                  optgroup_clear: "onOptionGroupClear",
                  dropdown_open: "onDropdownOpen",
                  dropdown_close: "onDropdownClose",
                  type: "onType",
                  load: "onLoad",
                  focus: "onFocus",
                  blur: "onBlur",
                };
              for (e in i) (t = this.settings[i[e]]) && this.on(e, t);
            }
            sync(e = !0) {
              const t = this,
                i = e
                  ? ce(t.input, { delimiter: t.settings.delimiter })
                  : t.settings;
              t.setupOptions(i.options, i.optgroups),
                t.setValue(i.items || [], !0),
                (t.lastQuery = null);
            }
            onClick() {
              var e = this;
              if (e.activeItems.length > 0)
                return e.clearActiveItems(), void e.focus();
              e.isFocused && e.isOpen ? e.blur() : e.focus();
            }
            onMouseDown() {}
            onChange() {
              F(this.input, "input"), F(this.input, "change");
            }
            onPaste(e) {
              var t = this;
              t.isInputHidden || t.isLocked
                ? ne(e)
                : t.settings.splitOn &&
                  setTimeout(() => {
                    var e = t.inputValue();
                    if (e.match(t.settings.splitOn)) {
                      var i = e.trim().split(t.settings.splitOn);
                      M(i, (e) => {
                        J(e) &&
                          (this.options[e] ? t.addItem(e) : t.createItem(e));
                      });
                    }
                  }, 0);
            }
            onKeyPress(e) {
              var t = this;
              if (!t.isLocked) {
                var i = String.fromCharCode(e.keyCode || e.which);
                return t.settings.create &&
                  "multi" === t.settings.mode &&
                  i === t.settings.delimiter
                  ? (t.createItem(), void ne(e))
                  : void 0;
              }
              ne(e);
            }
            onKeyDown(e) {
              var t = this;
              if (((t.ignoreHover = !0), t.isLocked)) 9 !== e.keyCode && ne(e);
              else {
                switch (e.keyCode) {
                  case 65:
                    if (ae(Z, e) && "" == t.control_input.value)
                      return ne(e), void t.selectAll();
                    break;
                  case 27:
                    return (
                      t.isOpen && (ne(e, !0), t.close()),
                      void t.clearActiveItems()
                    );
                  case 40:
                    if (!t.isOpen && t.hasOptions) t.open();
                    else if (t.activeOption) {
                      let e = t.getAdjacent(t.activeOption, 1);
                      e && t.setActiveOption(e);
                    }
                    return void ne(e);
                  case 38:
                    if (t.activeOption) {
                      let e = t.getAdjacent(t.activeOption, -1);
                      e && t.setActiveOption(e);
                    }
                    return void ne(e);
                  case 13:
                    return void (t.canSelect(t.activeOption)
                      ? (t.onOptionSelect(e, t.activeOption), ne(e))
                      : ((t.settings.create && t.createItem()) ||
                          (document.activeElement == t.control_input &&
                            t.isOpen)) &&
                        ne(e));
                  case 37:
                    return void t.advanceSelection(-1, e);
                  case 39:
                    return void t.advanceSelection(1, e);
                  case 9:
                    return void (
                      t.settings.selectOnTab &&
                      (t.canSelect(t.activeOption) &&
                        (t.onOptionSelect(e, t.activeOption), ne(e)),
                      t.settings.create && t.createItem() && ne(e))
                    );
                  case 8:
                  case 46:
                    return void t.deleteSelection(e);
                }
                t.isInputHidden && !ae(Z, e) && ne(e);
              }
            }
            onInput(e) {
              var t = this;
              if (!t.isLocked) {
                var i = t.inputValue();
                t.lastValue !== i &&
                  ((t.lastValue = i),
                  t.settings.shouldLoad.call(t, i) && t.load(i),
                  t.refreshOptions(),
                  t.trigger("type", i));
              }
            }
            onOptionHover(e, t) {
              this.ignoreHover || this.setActiveOption(t, !1);
            }
            onFocus(e) {
              var t = this,
                i = t.isFocused;
              if (t.isDisabled) return t.blur(), void ne(e);
              t.ignoreFocus ||
                ((t.isFocused = !0),
                "focus" === t.settings.preload && t.preload(),
                i || t.trigger("focus"),
                t.activeItems.length ||
                  (t.showInput(), t.refreshOptions(!!t.settings.openOnFocus)),
                t.refreshState());
            }
            onBlur(e) {
              if (!1 !== document.hasFocus()) {
                var t = this;
                if (t.isFocused) {
                  (t.isFocused = !1), (t.ignoreFocus = !1);
                  var i = () => {
                    t.close(),
                      t.setActiveItem(),
                      t.setCaret(t.items.length),
                      t.trigger("blur");
                  };
                  t.settings.create && t.settings.createOnBlur
                    ? t.createItem(null, i)
                    : i();
                }
              }
            }
            onOptionSelect(e, t) {
              var i,
                n = this;
              (t.parentElement && t.parentElement.matches("[data-disabled]")) ||
                (t.classList.contains("create")
                  ? n.createItem(null, () => {
                      n.settings.closeAfterSelect && n.close();
                    })
                  : void 0 !== (i = t.dataset.value) &&
                    ((n.lastQuery = null),
                    n.addItem(i),
                    n.settings.closeAfterSelect && n.close(),
                    !n.settings.hideSelected &&
                      e.type &&
                      /click/.test(e.type) &&
                      n.setActiveOption(t)));
            }
            canSelect(e) {
              return !!(this.isOpen && e && this.dropdown_content.contains(e));
            }
            onItemSelect(e, t) {
              var i = this;
              return (
                !i.isLocked &&
                "multi" === i.settings.mode &&
                (ne(e), i.setActiveItem(t, e), !0)
              );
            }
            canLoad(e) {
              return (
                !!this.settings.load && !this.loadedSearches.hasOwnProperty(e)
              );
            }
            load(e) {
              const t = this;
              if (!t.canLoad(e)) return;
              z(t.wrapper, t.settings.loadingClass), t.loading++;
              const i = t.loadCallback.bind(t);
              t.settings.load.call(t, e, i);
            }
            loadCallback(e, t) {
              const i = this;
              (i.loading = Math.max(i.loading - 1, 0)),
                (i.lastQuery = null),
                i.clearActiveOption(),
                i.setupOptions(e, t),
                i.refreshOptions(i.isFocused && !i.isInputHidden),
                i.loading || j(i.wrapper, i.settings.loadingClass),
                i.trigger("load", e, t);
            }
            preload() {
              var e = this.wrapper.classList;
              e.contains("preloaded") || (e.add("preloaded"), this.load(""));
            }
            setTextboxValue(e = "") {
              var t = this.control_input;
              t.value !== e &&
                ((t.value = e), F(t, "update"), (this.lastValue = e));
            }
            getValue() {
              return this.is_select_tag && this.input.hasAttribute("multiple")
                ? this.items
                : this.items.join(this.settings.delimiter);
            }
            setValue(e, t) {
              ie(this, t ? [] : ["change"], () => {
                this.clear(t), this.addItems(e, t);
              });
            }
            setMaxItems(e) {
              0 === e && (e = null),
                (this.settings.maxItems = e),
                this.refreshState();
            }
            setActiveItem(e, t) {
              var i,
                n,
                r,
                a,
                o,
                s,
                l = this;
              if ("single" !== l.settings.mode) {
                if (!e)
                  return (
                    l.clearActiveItems(), void (l.isFocused && l.showInput())
                  );
                if (
                  "click" === (i = t && t.type.toLowerCase()) &&
                  ae("shiftKey", t) &&
                  l.activeItems.length
                ) {
                  for (
                    s = l.getLastActive(),
                      (r = Array.prototype.indexOf.call(
                        l.control.children,
                        s
                      )) >
                        (a = Array.prototype.indexOf.call(
                          l.control.children,
                          e
                        )) && ((o = r), (r = a), (a = o)),
                      n = r;
                    n <= a;
                    n++
                  )
                    (e = l.control.children[n]),
                      -1 === l.activeItems.indexOf(e) &&
                        l.setActiveItemClass(e);
                  ne(t);
                } else
                  ("click" === i && ae(Z, t)) ||
                  ("keydown" === i && ae("shiftKey", t))
                    ? e.classList.contains("active")
                      ? l.removeActiveItem(e)
                      : l.setActiveItemClass(e)
                    : (l.clearActiveItems(), l.setActiveItemClass(e));
                l.hideInput(), l.isFocused || l.focus();
              }
            }
            setActiveItemClass(e) {
              const t = this,
                i = t.control.querySelector(".last-active");
              i && j(i, "last-active"),
                z(e, "active last-active"),
                t.trigger("item_select", e),
                -1 == t.activeItems.indexOf(e) && t.activeItems.push(e);
            }
            removeActiveItem(e) {
              var t = this.activeItems.indexOf(e);
              this.activeItems.splice(t, 1), j(e, "active");
            }
            clearActiveItems() {
              j(this.activeItems, "active"), (this.activeItems = []);
            }
            setActiveOption(e, t = !0) {
              e !== this.activeOption &&
                (this.clearActiveOption(),
                e &&
                  ((this.activeOption = e),
                  q(this.focus_node, {
                    "aria-activedescendant": e.getAttribute("id"),
                  }),
                  q(e, { "aria-selected": "true" }),
                  z(e, "active"),
                  t && this.scrollToOption(e)));
            }
            scrollToOption(e, t) {
              if (!e) return;
              const i = this.dropdown_content,
                n = i.clientHeight,
                r = i.scrollTop || 0,
                a = e.offsetHeight,
                o =
                  e.getBoundingClientRect().top -
                  i.getBoundingClientRect().top +
                  r;
              o + a > n + r
                ? this.scroll(o - n + a, t)
                : o < r && this.scroll(o, t);
            }
            scroll(e, t) {
              const i = this.dropdown_content;
              t && (i.style.scrollBehavior = t),
                (i.scrollTop = e),
                (i.style.scrollBehavior = "");
            }
            clearActiveOption() {
              this.activeOption &&
                (j(this.activeOption, "active"),
                q(this.activeOption, { "aria-selected": null })),
                (this.activeOption = null),
                q(this.focus_node, { "aria-activedescendant": null });
            }
            selectAll() {
              const e = this;
              if ("single" === e.settings.mode) return;
              const t = e.controlChildren();
              t.length &&
                (e.hideInput(),
                e.close(),
                (e.activeItems = t),
                M(t, (t) => {
                  e.setActiveItemClass(t);
                }));
            }
            inputState() {
              var e = this;
              e.control.contains(e.control_input) &&
                (q(e.control_input, { placeholder: e.settings.placeholder }),
                e.activeItems.length > 0 ||
                (!e.isFocused &&
                  e.settings.hidePlaceholder &&
                  e.items.length > 0)
                  ? (e.setTextboxValue(), (e.isInputHidden = !0))
                  : (e.settings.hidePlaceholder &&
                      e.items.length > 0 &&
                      q(e.control_input, { placeholder: "" }),
                    (e.isInputHidden = !1)),
                e.wrapper.classList.toggle("input-hidden", e.isInputHidden));
            }
            hideInput() {
              this.inputState();
            }
            showInput() {
              this.inputState();
            }
            inputValue() {
              return this.control_input.value.trim();
            }
            focus() {
              var e = this;
              e.isDisabled ||
                ((e.ignoreFocus = !0),
                e.control_input.offsetWidth
                  ? e.control_input.focus()
                  : e.focus_node.focus(),
                setTimeout(() => {
                  (e.ignoreFocus = !1), e.onFocus();
                }, 0));
            }
            blur() {
              this.focus_node.blur(), this.onBlur();
            }
            getScoreFunction(e) {
              return this.sifter.getScoreFunction(e, this.getSearchOptions());
            }
            getSearchOptions() {
              var e = this.settings,
                t = e.sortField;
              return (
                "string" == typeof e.sortField &&
                  (t = [{ field: e.sortField }]),
                {
                  fields: e.searchField,
                  conjunction: e.searchConjunction,
                  sort: t,
                  nesting: e.nesting,
                }
              );
            }
            search(e) {
              var t,
                i,
                n = this,
                r = this.getSearchOptions();
              if (
                n.settings.score &&
                "function" != typeof (i = n.settings.score.call(n, e))
              )
                throw new Error(
                  'Tom Select "score" setting must be a function that returns a function'
                );
              return (
                e !== n.lastQuery
                  ? ((n.lastQuery = e),
                    (t = n.sifter.search(e, Object.assign(r, { score: i }))),
                    (n.currentResults = t))
                  : (t = Object.assign({}, n.currentResults)),
                n.settings.hideSelected &&
                  (t.items = t.items.filter((e) => {
                    let t = J(e.id);
                    return !(t && -1 !== n.items.indexOf(t));
                  })),
                t
              );
            }
            refreshOptions(e = !0) {
              var t, i, n, r, a, o, s, l, c, u;
              const d = {},
                h = [];
              var f = this,
                p = f.inputValue();
              const g = p === f.lastQuery || ("" == p && null == f.lastQuery);
              var m,
                v = f.search(p),
                b = null,
                y = f.settings.shouldOpen || !1,
                x = f.dropdown_content;
              for (
                g && (b = f.activeOption) && (c = b.closest("[data-group]")),
                  r = v.items.length,
                  "number" == typeof f.settings.maxOptions &&
                    (r = Math.min(r, f.settings.maxOptions)),
                  r > 0 && (y = !0),
                  t = 0;
                t < r;
                t++
              ) {
                let e = v.items[t];
                if (!e) continue;
                let r = e.id,
                  s = f.options[r];
                if (void 0 === s) continue;
                let l = Q(r),
                  u = f.getOption(l, !0);
                for (
                  f.settings.hideSelected ||
                    u.classList.toggle("selected", f.items.includes(l)),
                    a = s[f.settings.optgroupField] || "",
                    i = 0,
                    n = (o = Array.isArray(a) ? a : [a]) && o.length;
                  i < n;
                  i++
                ) {
                  (a = o[i]), f.optgroups.hasOwnProperty(a) || (a = "");
                  let e = d[a];
                  void 0 === e &&
                    ((e = document.createDocumentFragment()), h.push(a)),
                    i > 0 &&
                      ((u = u.cloneNode(!0)),
                      q(u, {
                        id: s.$id + "-clone-" + i,
                        "aria-selected": null,
                      }),
                      u.classList.add("ts-cloned"),
                      j(u, "active"),
                      f.activeOption &&
                        f.activeOption.dataset.value == r &&
                        c &&
                        c.dataset.group === a.toString() &&
                        (b = u)),
                    e.appendChild(u),
                    (d[a] = e);
                }
              }
              f.settings.lockOptgroupOrder &&
                h.sort((e, t) => {
                  const i = f.optgroups[e],
                    n = f.optgroups[t];
                  return ((i && i.$order) || 0) - ((n && n.$order) || 0);
                }),
                (s = document.createDocumentFragment()),
                M(h, (e) => {
                  let t = d[e];
                  if (!t || !t.children.length) return;
                  let i = f.optgroups[e];
                  if (void 0 !== i) {
                    let e = document.createDocumentFragment(),
                      n = f.render("optgroup_header", i);
                    le(e, n), le(e, t);
                    let r = f.render("optgroup", { group: i, options: e });
                    le(s, r);
                  } else le(s, t);
                }),
                (x.innerHTML = ""),
                le(x, s),
                f.settings.highlight &&
                  ((m = x.querySelectorAll("span.highlight")),
                  Array.prototype.forEach.call(m, function (e) {
                    var t = e.parentNode;
                    t.replaceChild(e.firstChild, e), t.normalize();
                  }),
                  v.query.length &&
                    v.tokens.length &&
                    M(v.tokens, (e) => {
                      U(x, e.regex);
                    }));
              var w = (e) => {
                let t = f.render(e, { input: p });
                return t && ((y = !0), x.insertBefore(t, x.firstChild)), t;
              };
              if (
                (f.loading
                  ? w("loading")
                  : f.settings.shouldLoad.call(f, p)
                  ? 0 === v.items.length && w("no_results")
                  : w("not_loading"),
                (l = f.canCreate(p)) && (u = w("option_create")),
                (f.hasOptions = v.items.length > 0 || l),
                y)
              ) {
                if (v.items.length > 0) {
                  if (
                    (b ||
                      "single" !== f.settings.mode ||
                      null == f.items[0] ||
                      (b = f.getOption(f.items[0])),
                    !x.contains(b))
                  ) {
                    let e = 0;
                    u && !f.settings.addPrecedence && (e = 1),
                      (b = f.selectable()[e]);
                  }
                } else u && (b = u);
                e && !f.isOpen && (f.open(), f.scrollToOption(b, "auto")),
                  f.setActiveOption(b);
              } else f.clearActiveOption(), e && f.isOpen && f.close(!1);
            }
            selectable() {
              return this.dropdown_content.querySelectorAll(
                "[data-selectable]"
              );
            }
            addOption(e, t = !1) {
              const i = this;
              if (Array.isArray(e)) return i.addOptions(e, t), !1;
              const n = J(e[i.settings.valueField]);
              return (
                null !== n &&
                !i.options.hasOwnProperty(n) &&
                ((e.$order = e.$order || ++i.order),
                (e.$id = i.inputId + "-opt-" + e.$order),
                (i.options[n] = e),
                (i.lastQuery = null),
                t && ((i.userOptions[n] = t), i.trigger("option_add", n, e)),
                n)
              );
            }
            addOptions(e, t = !1) {
              M(e, (e) => {
                this.addOption(e, t);
              });
            }
            registerOption(e) {
              return this.addOption(e);
            }
            registerOptionGroup(e) {
              var t = J(e[this.settings.optgroupValueField]);
              return (
                null !== t &&
                ((e.$order = e.$order || ++this.order),
                (this.optgroups[t] = e),
                t)
              );
            }
            addOptionGroup(e, t) {
              var i;
              (t[this.settings.optgroupValueField] = e),
                (i = this.registerOptionGroup(t)) &&
                  this.trigger("optgroup_add", i, t);
            }
            removeOptionGroup(e) {
              this.optgroups.hasOwnProperty(e) &&
                (delete this.optgroups[e],
                this.clearCache(),
                this.trigger("optgroup_remove", e));
            }
            clearOptionGroups() {
              (this.optgroups = {}),
                this.clearCache(),
                this.trigger("optgroup_clear");
            }
            updateOption(e, t) {
              const i = this;
              var n, r;
              const a = J(e),
                o = J(t[i.settings.valueField]);
              if (null === a) return;
              const s = i.options[a];
              if (null == s) return;
              if ("string" != typeof o)
                throw new Error("Value must be set in option data");
              const l = i.getOption(a),
                c = i.getItem(a);
              if (
                ((t.$order = t.$order || s.$order),
                delete i.options[a],
                i.uncacheValue(o),
                (i.options[o] = t),
                l)
              ) {
                if (i.dropdown_content.contains(l)) {
                  const e = i._render("option", t);
                  V(l, e), i.activeOption === l && i.setActiveOption(e);
                }
                l.remove();
              }
              c &&
                (-1 !== (r = i.items.indexOf(a)) && i.items.splice(r, 1, o),
                (n = i._render("item", t)),
                c.classList.contains("active") && z(n, "active"),
                V(c, n)),
                (i.lastQuery = null);
            }
            removeOption(e, t) {
              const i = this;
              (e = Q(e)),
                i.uncacheValue(e),
                delete i.userOptions[e],
                delete i.options[e],
                (i.lastQuery = null),
                i.trigger("option_remove", e),
                i.removeItem(e, t);
            }
            clearOptions(e) {
              const t = (e || this.clearFilter).bind(this);
              (this.loadedSearches = {}),
                (this.userOptions = {}),
                this.clearCache();
              const i = {};
              M(this.options, (e, n) => {
                t(e, n) && (i[n] = e);
              }),
                (this.options = this.sifter.items = i),
                (this.lastQuery = null),
                this.trigger("option_clear");
            }
            clearFilter(e, t) {
              return this.items.indexOf(t) >= 0;
            }
            getOption(e, t = !1) {
              const i = J(e);
              if (null === i) return null;
              const n = this.options[i];
              if (null != n) {
                if (n.$div) return n.$div;
                if (t) return this._render("option", n);
              }
              return null;
            }
            getAdjacent(e, t, i = "option") {
              var n;
              if (!e) return null;
              n =
                "item" == i
                  ? this.controlChildren()
                  : this.dropdown_content.querySelectorAll("[data-selectable]");
              for (let i = 0; i < n.length; i++)
                if (n[i] == e) return t > 0 ? n[i + 1] : n[i - 1];
              return null;
            }
            getItem(e) {
              if ("object" == typeof e) return e;
              var t = J(e);
              return null !== t
                ? this.control.querySelector(`[data-value="${se(t)}"]`)
                : null;
            }
            addItems(e, t) {
              var i = this,
                n = Array.isArray(e) ? e : [e];
              const r = (n = n.filter((e) => -1 === i.items.indexOf(e)))[
                n.length - 1
              ];
              n.forEach((e) => {
                (i.isPending = e !== r), i.addItem(e, t);
              });
            }
            addItem(e, t) {
              ie(this, t ? [] : ["change", "dropdown_close"], () => {
                var i, n;
                const r = this,
                  a = r.settings.mode,
                  o = J(e);
                if (
                  (!o ||
                    -1 === r.items.indexOf(o) ||
                    ("single" === a && r.close(),
                    "single" !== a && r.settings.duplicates)) &&
                  null !== o &&
                  r.options.hasOwnProperty(o) &&
                  ("single" === a && r.clear(t), "multi" !== a || !r.isFull())
                ) {
                  if (
                    ((i = r._render("item", r.options[o])),
                    r.control.contains(i) && (i = i.cloneNode(!0)),
                    (n = r.isFull()),
                    r.items.splice(r.caretPos, 0, o),
                    r.insertAtCaret(i),
                    r.isSetup)
                  ) {
                    if (!r.isPending && r.settings.hideSelected) {
                      let e = r.getOption(o),
                        t = r.getAdjacent(e, 1);
                      t && r.setActiveOption(t);
                    }
                    r.isPending ||
                      r.settings.closeAfterSelect ||
                      r.refreshOptions(r.isFocused && "single" !== a),
                      0 != r.settings.closeAfterSelect && r.isFull()
                        ? r.close()
                        : r.isPending || r.positionDropdown(),
                      r.trigger("item_add", o, i),
                      r.isPending || r.updateOriginalInput({ silent: t });
                  }
                  (!r.isPending || (!n && r.isFull())) &&
                    (r.inputState(), r.refreshState());
                }
              });
            }
            removeItem(e = null, t) {
              const i = this;
              if (!(e = i.getItem(e))) return;
              var n, r;
              const a = e.dataset.value;
              (n = G(e)),
                e.remove(),
                e.classList.contains("active") &&
                  ((r = i.activeItems.indexOf(e)),
                  i.activeItems.splice(r, 1),
                  j(e, "active")),
                i.items.splice(n, 1),
                (i.lastQuery = null),
                !i.settings.persist &&
                  i.userOptions.hasOwnProperty(a) &&
                  i.removeOption(a, t),
                n < i.caretPos && i.setCaret(i.caretPos - 1),
                i.updateOriginalInput({ silent: t }),
                i.refreshState(),
                i.positionDropdown(),
                i.trigger("item_remove", a, e);
            }
            createItem(e = null, t = () => {}) {
              3 === arguments.length && (t = arguments[2]),
                "function" != typeof t && (t = () => {});
              var i,
                n = this,
                r = n.caretPos;
              if (((e = e || n.inputValue()), !n.canCreate(e))) return t(), !1;
              n.lock();
              var a = !1,
                o = (e) => {
                  if ((n.unlock(), !e || "object" != typeof e)) return t();
                  var i = J(e[n.settings.valueField]);
                  if ("string" != typeof i) return t();
                  n.setTextboxValue(),
                    n.addOption(e, !0),
                    n.setCaret(r),
                    n.addItem(i),
                    t(e),
                    (a = !0);
                };
              return (
                (i =
                  "function" == typeof n.settings.create
                    ? n.settings.create.call(this, e, o)
                    : {
                        [n.settings.labelField]: e,
                        [n.settings.valueField]: e,
                      }),
                a || o(i),
                !0
              );
            }
            refreshItems() {
              var e = this;
              (e.lastQuery = null),
                e.isSetup && e.addItems(e.items),
                e.updateOriginalInput(),
                e.refreshState();
            }
            refreshState() {
              const e = this;
              e.refreshValidityState();
              const t = e.isFull(),
                i = e.isLocked;
              e.wrapper.classList.toggle("rtl", e.rtl);
              const n = e.wrapper.classList;
              var r;
              n.toggle("focus", e.isFocused),
                n.toggle("disabled", e.isDisabled),
                n.toggle("required", e.isRequired),
                n.toggle("invalid", !e.isValid),
                n.toggle("locked", i),
                n.toggle("full", t),
                n.toggle("input-active", e.isFocused && !e.isInputHidden),
                n.toggle("dropdown-active", e.isOpen),
                n.toggle(
                  "has-options",
                  ((r = e.options), 0 === Object.keys(r).length)
                ),
                n.toggle("has-items", e.items.length > 0);
            }
            refreshValidityState() {
              var e = this;
              e.input.validity &&
                ((e.isValid = e.input.validity.valid),
                (e.isInvalid = !e.isValid));
            }
            isFull() {
              return (
                null !== this.settings.maxItems &&
                this.items.length >= this.settings.maxItems
              );
            }
            updateOriginalInput(e = {}) {
              const t = this;
              var i, n;
              const r = t.input.querySelector('option[value=""]');
              if (t.is_select_tag) {
                const a = [],
                  o = t.input.querySelectorAll("option:checked").length;
                function s(e, i, n) {
                  return (
                    e ||
                      (e = R(
                        '<option value="' + ee(i) + '">' + ee(n) + "</option>"
                      )),
                    e != r && t.input.append(e),
                    a.push(e),
                    (e != r || o > 0) && (e.selected = !0),
                    e
                  );
                }
                t.input.querySelectorAll("option:checked").forEach((e) => {
                  e.selected = !1;
                }),
                  0 == t.items.length && "single" == t.settings.mode
                    ? s(r, "", "")
                    : t.items.forEach((e) => {
                        (i = t.options[e]),
                          (n = i[t.settings.labelField] || ""),
                          a.includes(i.$option)
                            ? s(
                                t.input.querySelector(
                                  `option[value="${se(e)}"]:not(:checked)`
                                ),
                                e,
                                n
                              )
                            : (i.$option = s(i.$option, e, n));
                      });
              } else t.input.value = t.getValue();
              t.isSetup && (e.silent || t.trigger("change", t.getValue()));
            }
            open() {
              var e = this;
              e.isLocked ||
                e.isOpen ||
                ("multi" === e.settings.mode && e.isFull()) ||
                ((e.isOpen = !0),
                q(e.focus_node, { "aria-expanded": "true" }),
                e.refreshState(),
                B(e.dropdown, { visibility: "hidden", display: "block" }),
                e.positionDropdown(),
                B(e.dropdown, { visibility: "visible", display: "block" }),
                e.focus(),
                e.trigger("dropdown_open", e.dropdown));
            }
            close(e = !0) {
              var t = this,
                i = t.isOpen;
              e &&
                (t.setTextboxValue(),
                "single" === t.settings.mode &&
                  t.items.length &&
                  t.hideInput()),
                (t.isOpen = !1),
                q(t.focus_node, { "aria-expanded": "false" }),
                B(t.dropdown, { display: "none" }),
                t.settings.hideSelected && t.clearActiveOption(),
                t.refreshState(),
                i && t.trigger("dropdown_close", t.dropdown);
            }
            positionDropdown() {
              if ("body" === this.settings.dropdownParent) {
                var e = this.control,
                  t = e.getBoundingClientRect(),
                  i = e.offsetHeight + t.top + window.scrollY,
                  n = t.left + window.scrollX;
                B(this.dropdown, {
                  width: t.width + "px",
                  top: i + "px",
                  left: n + "px",
                });
              }
            }
            clear(e) {
              var t = this;
              if (t.items.length) {
                var i = t.controlChildren();
                M(i, (e) => {
                  t.removeItem(e, !0);
                }),
                  t.showInput(),
                  e || t.updateOriginalInput(),
                  t.trigger("clear");
              }
            }
            insertAtCaret(e) {
              const t = this,
                i = t.caretPos,
                n = t.control;
              n.insertBefore(e, n.children[i] || null), t.setCaret(i + 1);
            }
            deleteSelection(e) {
              var t,
                i,
                n,
                r,
                a,
                o = this;
              (t = e && 8 === e.keyCode ? -1 : 1),
                (i = {
                  start: (a = o.control_input).selectionStart || 0,
                  length: (a.selectionEnd || 0) - (a.selectionStart || 0),
                });
              const s = [];
              if (o.activeItems.length)
                (r = W(o.activeItems, t)),
                  (n = G(r)),
                  t > 0 && n++,
                  M(o.activeItems, (e) => s.push(e));
              else if (
                (o.isFocused || "single" === o.settings.mode) &&
                o.items.length
              ) {
                const e = o.controlChildren();
                let n;
                t < 0 && 0 === i.start && 0 === i.length
                  ? (n = e[o.caretPos - 1])
                  : t > 0 &&
                    i.start === o.inputValue().length &&
                    (n = e[o.caretPos]),
                  void 0 !== n && s.push(n);
              }
              if (!o.shouldDelete(s, e)) return !1;
              for (ne(e, !0), void 0 !== n && o.setCaret(n); s.length; )
                o.removeItem(s.pop());
              return (
                o.showInput(), o.positionDropdown(), o.refreshOptions(!1), !0
              );
            }
            shouldDelete(e, t) {
              const i = e.map((e) => e.dataset.value);
              return !(
                !i.length ||
                ("function" == typeof this.settings.onDelete &&
                  !1 === this.settings.onDelete(i, t))
              );
            }
            advanceSelection(e, t) {
              var i,
                n,
                r = this;
              r.rtl && (e *= -1),
                r.inputValue().length ||
                  (ae(Z, t) || ae("shiftKey", t)
                    ? (n = (i = r.getLastActive(e))
                        ? i.classList.contains("active")
                          ? r.getAdjacent(i, e, "item")
                          : i
                        : e > 0
                        ? r.control_input.nextElementSibling
                        : r.control_input.previousElementSibling) &&
                      (n.classList.contains("active") && r.removeActiveItem(i),
                      r.setActiveItemClass(n))
                    : r.moveCaret(e));
            }
            moveCaret(e) {}
            getLastActive(e) {
              let t = this.control.querySelector(".last-active");
              if (t) return t;
              var i = this.control.querySelectorAll(".active");
              return i ? W(i, e) : void 0;
            }
            setCaret(e) {
              this.caretPos = this.items.length;
            }
            controlChildren() {
              return Array.from(
                this.control.querySelectorAll("[data-ts-item]")
              );
            }
            lock() {
              (this.isLocked = !0), this.refreshState();
            }
            unlock() {
              (this.isLocked = !1), this.refreshState();
            }
            disable() {
              var e = this;
              (e.input.disabled = !0),
                (e.control_input.disabled = !0),
                (e.focus_node.tabIndex = -1),
                (e.isDisabled = !0),
                this.close(),
                e.lock();
            }
            enable() {
              var e = this;
              (e.input.disabled = !1),
                (e.control_input.disabled = !1),
                (e.focus_node.tabIndex = e.tabIndex),
                (e.isDisabled = !1),
                e.unlock();
            }
            destroy() {
              var e = this,
                t = e.revertSettings;
              e.trigger("destroy"),
                e.off(),
                e.wrapper.remove(),
                e.dropdown.remove(),
                (e.input.innerHTML = t.innerHTML),
                (e.input.tabIndex = t.tabIndex),
                j(e.input, "tomselected", "ts-hidden-accessible"),
                e._destroy(),
                delete e.input.tomselect;
            }
            render(e, t) {
              var i, n;
              const r = this;
              if ("function" != typeof this.settings.render[e]) return null;
              if (!(n = r.settings.render[e].call(this, t, ee))) return null;
              if (
                ((n = R(n)),
                "option" === e || "option_create" === e
                  ? t[r.settings.disabledField]
                    ? q(n, { "aria-disabled": "true" })
                    : q(n, { "data-selectable": "" })
                  : "optgroup" === e &&
                    ((i = t.group[r.settings.optgroupValueField]),
                    q(n, { "data-group": i }),
                    t.group[r.settings.disabledField] &&
                      q(n, { "data-disabled": "" })),
                "option" === e || "item" === e)
              ) {
                const i = Q(t[r.settings.valueField]);
                q(n, { "data-value": i }),
                  "item" === e
                    ? (z(n, r.settings.itemClass), q(n, { "data-ts-item": "" }))
                    : (z(n, r.settings.optionClass),
                      q(n, { role: "option", id: t.$id }),
                      (t.$div = n),
                      (r.options[i] = t));
              }
              return n;
            }
            _render(e, t) {
              const i = this.render(e, t);
              if (null == i) throw "HTMLElement expected";
              return i;
            }
            clearCache() {
              M(this.options, (e) => {
                e.$div && (e.$div.remove(), delete e.$div);
              });
            }
            uncacheValue(e) {
              const t = this.getOption(e);
              t && t.remove();
            }
            canCreate(e) {
              return (
                this.settings.create &&
                e.length > 0 &&
                this.settings.createFilter.call(this, e)
              );
            }
            hook(e, t, i) {
              var n = this,
                r = n[t];
              n[t] = function () {
                var t, a;
                return (
                  "after" === e && (t = r.apply(n, arguments)),
                  (a = i.apply(n, arguments)),
                  "instead" === e
                    ? a
                    : ("before" === e && (t = r.apply(n, arguments)), t)
                );
              };
            }
          }
          return (
            de.define("change_listener", function () {
              re(this.input, "change", () => {
                this.sync();
              });
            }),
            de.define("checkbox_options", function () {
              var e = this,
                t = e.onOptionSelect;
              e.settings.hideSelected = !1;
              var i = function (e) {
                setTimeout(() => {
                  var t = e.querySelector("input");
                  t instanceof HTMLInputElement &&
                    (e.classList.contains("selected")
                      ? (t.checked = !0)
                      : (t.checked = !1));
                }, 1);
              };
              e.hook("after", "setupTemplates", () => {
                var t = e.settings.render.option;
                e.settings.render.option = (i, n) => {
                  var r = R(t.call(e, i, n)),
                    a = document.createElement("input");
                  a.addEventListener("click", function (e) {
                    ne(e);
                  }),
                    (a.type = "checkbox");
                  const o = J(i[e.settings.valueField]);
                  return (
                    o && e.items.indexOf(o) > -1 && (a.checked = !0),
                    r.prepend(a),
                    r
                  );
                };
              }),
                e.on("item_remove", (t) => {
                  var n = e.getOption(t);
                  n && (n.classList.remove("selected"), i(n));
                }),
                e.on("item_add", (t) => {
                  var n = e.getOption(t);
                  n && i(n);
                }),
                e.hook("instead", "onOptionSelect", (n, r) => {
                  if (r.classList.contains("selected"))
                    return (
                      r.classList.remove("selected"),
                      e.removeItem(r.dataset.value),
                      e.refreshOptions(),
                      void ne(n, !0)
                    );
                  t.call(e, n, r), i(r);
                });
            }),
            de.define("clear_button", function (e) {
              const t = this,
                i = Object.assign(
                  {
                    className: "clear-button",
                    title: "Clear All",
                    html: (e) =>
                      `<div class="${e.className}" title="${e.title}">&#10799;</div>`,
                  },
                  e
                );
              t.on("initialize", () => {
                var e = R(i.html(i));
                e.addEventListener("click", (e) => {
                  t.isDisabled ||
                    (t.clear(),
                    "single" === t.settings.mode &&
                      t.settings.allowEmptyOption &&
                      t.addItem(""),
                    e.preventDefault(),
                    e.stopPropagation());
                }),
                  t.control.appendChild(e);
              });
            }),
            de.define("drag_drop", function () {
              var e = this;
              if (!$.fn.sortable)
                throw new Error(
                  'The "drag_drop" plugin requires jQuery UI "sortable".'
                );
              if ("multi" === e.settings.mode) {
                var t = e.lock,
                  i = e.unlock;
                e.hook("instead", "lock", () => {
                  var i = $(e.control).data("sortable");
                  return i && i.disable(), t.call(e);
                }),
                  e.hook("instead", "unlock", () => {
                    var t = $(e.control).data("sortable");
                    return t && t.enable(), i.call(e);
                  }),
                  e.on("initialize", () => {
                    var t = $(e.control).sortable({
                      items: "[data-value]",
                      forcePlaceholderSize: !0,
                      disabled: e.isLocked,
                      start: (e, i) => {
                        i.placeholder.css("width", i.helper.css("width")),
                          t.css({ overflow: "visible" });
                      },
                      stop: () => {
                        t.css({ overflow: "hidden" });
                        var i = [];
                        t.children("[data-value]").each(function () {
                          this.dataset.value && i.push(this.dataset.value);
                        }),
                          e.setValue(i);
                      },
                    });
                  });
              }
            }),
            de.define("dropdown_header", function (e) {
              const t = this,
                i = Object.assign(
                  {
                    title: "Untitled",
                    headerClass: "dropdown-header",
                    titleRowClass: "dropdown-header-title",
                    labelClass: "dropdown-header-label",
                    closeClass: "dropdown-header-close",
                    html: (e) =>
                      '<div class="' +
                      e.headerClass +
                      '"><div class="' +
                      e.titleRowClass +
                      '"><span class="' +
                      e.labelClass +
                      '">' +
                      e.title +
                      '</span><a class="' +
                      e.closeClass +
                      '">&times;</a></div></div>',
                  },
                  e
                );
              t.on("initialize", () => {
                var e = R(i.html(i)),
                  n = e.querySelector("." + i.closeClass);
                n &&
                  n.addEventListener("click", (e) => {
                    ne(e, !0), t.close();
                  }),
                  t.dropdown.insertBefore(e, t.dropdown.firstChild);
              });
            }),
            de.define("caret_position", function () {
              var e = this;
              e.hook("instead", "setCaret", (t) => {
                "single" !== e.settings.mode &&
                e.control.contains(e.control_input)
                  ? (t = Math.max(0, Math.min(e.items.length, t))) ==
                      e.caretPos ||
                    e.isPending ||
                    e.controlChildren().forEach((i, n) => {
                      n < t
                        ? e.control_input.insertAdjacentElement(
                            "beforebegin",
                            i
                          )
                        : e.control.appendChild(i);
                    })
                  : (t = e.items.length),
                  (e.caretPos = t);
              }),
                e.hook("instead", "moveCaret", (t) => {
                  if (!e.isFocused) return;
                  const i = e.getLastActive(t);
                  if (i) {
                    const n = G(i);
                    e.setCaret(t > 0 ? n + 1 : n),
                      e.setActiveItem(),
                      j(i, "last-active");
                  } else e.setCaret(e.caretPos + t);
                });
            }),
            de.define("dropdown_input", function () {
              const e = this;
              (e.settings.shouldOpen = !0),
                e.hook("before", "setup", () => {
                  (e.focus_node = e.control),
                    z(e.control_input, "dropdown-input");
                  const t = R('<div class="dropdown-input-wrap">');
                  t.append(e.control_input),
                    e.dropdown.insertBefore(t, e.dropdown.firstChild);
                  const i = R(
                    '<input class="items-placeholder" tabindex="-1" />'
                  );
                  (i.placeholder = e.settings.placeholder || ""),
                    e.control.append(i);
                }),
                e.on("initialize", () => {
                  e.control_input.addEventListener("keydown", (t) => {
                    switch (t.keyCode) {
                      case 27:
                        return (
                          e.isOpen && (ne(t, !0), e.close()),
                          void e.clearActiveItems()
                        );
                      case 9:
                        e.focus_node.tabIndex = -1;
                    }
                    return e.onKeyDown.call(e, t);
                  }),
                    e.on("blur", () => {
                      e.focus_node.tabIndex = e.isDisabled ? -1 : e.tabIndex;
                    }),
                    e.on("dropdown_open", () => {
                      e.control_input.focus();
                    });
                  const t = e.onBlur;
                  e.hook("instead", "onBlur", (i) => {
                    if (!i || i.relatedTarget != e.control_input)
                      return t.call(e);
                  }),
                    re(e.control_input, "blur", () => e.onBlur()),
                    e.hook("before", "close", () => {
                      e.isOpen && e.focus_node.focus({ preventScroll: !0 });
                    });
                });
            }),
            de.define("input_autogrow", function () {
              var e = this;
              e.on("initialize", () => {
                var t = document.createElement("span"),
                  i = e.control_input;
                (t.style.cssText =
                  "position:absolute; top:-99999px; left:-99999px; width:auto; padding:0; white-space:pre; "),
                  e.wrapper.appendChild(t);
                for (const e of [
                  "letterSpacing",
                  "fontSize",
                  "fontFamily",
                  "fontWeight",
                  "textTransform",
                ])
                  t.style[e] = i.style[e];
                var n = () => {
                  (t.textContent = i.value),
                    (i.style.width = t.clientWidth + "px");
                };
                n(),
                  e.on("update item_add item_remove", n),
                  re(i, "input", n),
                  re(i, "keyup", n),
                  re(i, "blur", n),
                  re(i, "update", n);
              });
            }),
            de.define("no_backspace_delete", function () {
              var e = this,
                t = e.deleteSelection;
              this.hook(
                "instead",
                "deleteSelection",
                (i) => !!e.activeItems.length && t.call(e, i)
              );
            }),
            de.define("no_active_items", function () {
              this.hook("instead", "setActiveItem", () => {}),
                this.hook("instead", "selectAll", () => {});
            }),
            de.define("optgroup_columns", function () {
              var e = this,
                t = e.onKeyDown;
              e.hook("instead", "onKeyDown", (i) => {
                var n, r, a, o;
                if (!e.isOpen || (37 !== i.keyCode && 39 !== i.keyCode))
                  return t.call(e, i);
                (e.ignoreHover = !0),
                  (o = X(e.activeOption, "[data-group]")),
                  (n = G(e.activeOption, "[data-selectable]")),
                  o &&
                    (o =
                      37 === i.keyCode ? o.previousSibling : o.nextSibling) &&
                    (r = (a = o.querySelectorAll("[data-selectable]"))[
                      Math.min(a.length - 1, n)
                    ]) &&
                    e.setActiveOption(r);
              });
            }),
            de.define("remove_button", function (e) {
              const t = Object.assign(
                {
                  label: "&times;",
                  title: "Remove",
                  className: "remove",
                  append: !0,
                },
                e
              );
              var i = this;
              if (t.append) {
                var n =
                  '<a href="javascript:void(0)" class="' +
                  t.className +
                  '" tabindex="-1" title="' +
                  ee(t.title) +
                  '">' +
                  t.label +
                  "</a>";
                i.hook("after", "setupTemplates", () => {
                  var e = i.settings.render.item;
                  i.settings.render.item = (t, r) => {
                    var a = R(e.call(i, t, r)),
                      o = R(n);
                    return (
                      a.appendChild(o),
                      re(o, "mousedown", (e) => {
                        ne(e, !0);
                      }),
                      re(o, "click", (e) => {
                        ne(e, !0),
                          i.isLocked ||
                            (i.shouldDelete([a], e) &&
                              (i.removeItem(a),
                              i.refreshOptions(!1),
                              i.inputState()));
                      }),
                      a
                    );
                  };
                });
              }
            }),
            de.define("restore_on_backspace", function (e) {
              const t = this,
                i = Object.assign({ text: (e) => e[t.settings.labelField] }, e);
              t.on("item_remove", function (e) {
                if (t.isFocused && "" === t.control_input.value.trim()) {
                  var n = t.options[e];
                  n && t.setTextboxValue(i.text.call(t, n));
                }
              });
            }),
            de.define("virtual_scroll", function () {
              const e = this,
                t = e.canLoad,
                i = e.clearActiveOption,
                n = e.loadCallback;
              var r,
                a,
                o = {},
                s = !1,
                l = [];
              if (
                (e.settings.shouldLoadMore ||
                  (e.settings.shouldLoadMore = () => {
                    if (r.clientHeight / (r.scrollHeight - r.scrollTop) > 0.9)
                      return !0;
                    if (e.activeOption) {
                      var t = e.selectable();
                      if (Array.from(t).indexOf(e.activeOption) >= t.length - 2)
                        return !0;
                    }
                    return !1;
                  }),
                !e.settings.firstUrl)
              )
                throw "virtual_scroll plugin requires a firstUrl() method";
              e.settings.sortField = [{ field: "$order" }, { field: "$score" }];
              const c = (t) =>
                  !(
                    ("number" == typeof e.settings.maxOptions &&
                      r.children.length >= e.settings.maxOptions) ||
                    !(t in o) ||
                    !o[t]
                  ),
                u = (t, i) => e.items.indexOf(i) >= 0 || l.indexOf(i) >= 0;
              (e.setNextUrl = (e, t) => {
                o[e] = t;
              }),
                (e.getUrl = (t) => {
                  if (t in o) {
                    const e = o[t];
                    return (o[t] = !1), e;
                  }
                  return (o = {}), e.settings.firstUrl.call(e, t);
                }),
                e.hook("instead", "clearActiveOption", () => {
                  if (!s) return i.call(e);
                }),
                e.hook("instead", "canLoad", (i) =>
                  i in o ? c(i) : t.call(e, i)
                ),
                e.hook("instead", "loadCallback", (t, i) => {
                  if (s) {
                    if (a) {
                      const i = t[0];
                      void 0 !== i &&
                        (a.dataset.value = i[e.settings.valueField]);
                    }
                  } else e.clearOptions(u);
                  n.call(e, t, i), (s = !1);
                }),
                e.hook("after", "refreshOptions", () => {
                  const t = e.lastValue;
                  var i;
                  c(t)
                    ? (i = e.render("loading_more", { query: t })) &&
                      (i.setAttribute("data-selectable", ""), (a = i))
                    : t in o &&
                      !r.querySelector(".no-results") &&
                      (i = e.render("no_more_results", { query: t })),
                    i && (z(i, e.settings.optionClass), r.append(i));
                }),
                e.on("initialize", () => {
                  (l = Object.keys(e.options)),
                    (r = e.dropdown_content),
                    (e.settings.render = Object.assign(
                      {},
                      {
                        loading_more: () =>
                          '<div class="loading-more-results">Loading more results ... </div>',
                        no_more_results: () =>
                          '<div class="no-more-results">No more results</div>',
                      },
                      e.settings.render
                    )),
                    r.addEventListener("scroll", () => {
                      e.settings.shouldLoadMore.call(e) &&
                        c(e.lastValue) &&
                        (s || ((s = !0), e.load.call(e, e.lastValue)));
                    });
                });
            }),
            de
          );
        })();
      },
      324: (e) => {
        var t = { exports: {} };
        function i(e) {
          return (
            e instanceof Map
              ? (e.clear =
                  e.delete =
                  e.set =
                    function () {
                      throw new Error("map is read-only");
                    })
              : e instanceof Set &&
                (e.add =
                  e.clear =
                  e.delete =
                    function () {
                      throw new Error("set is read-only");
                    }),
            Object.freeze(e),
            Object.getOwnPropertyNames(e).forEach(function (t) {
              var n = e[t];
              "object" != typeof n || Object.isFrozen(n) || i(n);
            }),
            e
          );
        }
        (t.exports = i), (t.exports.default = i);
        class n {
          constructor(e) {
            void 0 === e.data && (e.data = {}),
              (this.data = e.data),
              (this.isMatchIgnored = !1);
          }
          ignoreMatch() {
            this.isMatchIgnored = !0;
          }
        }
        function r(e) {
          return e
            .replace(/&/g, "&amp;")
            .replace(/</g, "&lt;")
            .replace(/>/g, "&gt;")
            .replace(/"/g, "&quot;")
            .replace(/'/g, "&#x27;");
        }
        function a(e, ...t) {
          const i = Object.create(null);
          for (const t in e) i[t] = e[t];
          return (
            t.forEach(function (e) {
              for (const t in e) i[t] = e[t];
            }),
            i
          );
        }
        const o = (e) => !!e.scope || (e.sublanguage && e.language);
        class s {
          constructor(e, t) {
            (this.buffer = ""),
              (this.classPrefix = t.classPrefix),
              e.walk(this);
          }
          addText(e) {
            this.buffer += r(e);
          }
          openNode(e) {
            if (!o(e)) return;
            let t = "";
            (t = e.sublanguage
              ? `language-${e.language}`
              : ((e, { prefix: t }) => {
                  if (e.includes(".")) {
                    const i = e.split(".");
                    return [
                      `${t}${i.shift()}`,
                      ...i.map((e, t) => `${e}${"_".repeat(t + 1)}`),
                    ].join(" ");
                  }
                  return `${t}${e}`;
                })(e.scope, { prefix: this.classPrefix })),
              this.span(t);
          }
          closeNode(e) {
            o(e) && (this.buffer += "</span>");
          }
          value() {
            return this.buffer;
          }
          span(e) {
            this.buffer += `<span class="${e}">`;
          }
        }
        const l = (e = {}) => {
          const t = { children: [] };
          return Object.assign(t, e), t;
        };
        class c {
          constructor() {
            (this.rootNode = l()), (this.stack = [this.rootNode]);
          }
          get top() {
            return this.stack[this.stack.length - 1];
          }
          get root() {
            return this.rootNode;
          }
          add(e) {
            this.top.children.push(e);
          }
          openNode(e) {
            const t = l({ scope: e });
            this.add(t), this.stack.push(t);
          }
          closeNode() {
            if (this.stack.length > 1) return this.stack.pop();
          }
          closeAllNodes() {
            for (; this.closeNode(); );
          }
          toJSON() {
            return JSON.stringify(this.rootNode, null, 4);
          }
          walk(e) {
            return this.constructor._walk(e, this.rootNode);
          }
          static _walk(e, t) {
            return (
              "string" == typeof t
                ? e.addText(t)
                : t.children &&
                  (e.openNode(t),
                  t.children.forEach((t) => this._walk(e, t)),
                  e.closeNode(t)),
              e
            );
          }
          static _collapse(e) {
            "string" != typeof e &&
              e.children &&
              (e.children.every((e) => "string" == typeof e)
                ? (e.children = [e.children.join("")])
                : e.children.forEach((e) => {
                    c._collapse(e);
                  }));
          }
        }
        class u extends c {
          constructor(e) {
            super(), (this.options = e);
          }
          addKeyword(e, t) {
            "" !== e && (this.openNode(t), this.addText(e), this.closeNode());
          }
          addText(e) {
            "" !== e && this.add(e);
          }
          addSublanguage(e, t) {
            const i = e.root;
            (i.sublanguage = !0), (i.language = t), this.add(i);
          }
          toHTML() {
            return new s(this, this.options).value();
          }
          finalize() {
            return !0;
          }
        }
        function d(e) {
          return e ? ("string" == typeof e ? e : e.source) : null;
        }
        function h(e) {
          return g("(?=", e, ")");
        }
        function f(e) {
          return g("(?:", e, ")*");
        }
        function p(e) {
          return g("(?:", e, ")?");
        }
        function g(...e) {
          return e.map((e) => d(e)).join("");
        }
        function m(...e) {
          const t = (function (e) {
            const t = e[e.length - 1];
            return "object" == typeof t && t.constructor === Object
              ? (e.splice(e.length - 1, 1), t)
              : {};
          })(e);
          return (
            "(" + (t.capture ? "" : "?:") + e.map((e) => d(e)).join("|") + ")"
          );
        }
        function v(e) {
          return new RegExp(e.toString() + "|").exec("").length - 1;
        }
        const b = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
        function y(e, { joinWith: t }) {
          let i = 0;
          return e
            .map((e) => {
              i += 1;
              const t = i;
              let n = d(e),
                r = "";
              for (; n.length > 0; ) {
                const e = b.exec(n);
                if (!e) {
                  r += n;
                  break;
                }
                (r += n.substring(0, e.index)),
                  (n = n.substring(e.index + e[0].length)),
                  "\\" === e[0][0] && e[1]
                    ? (r += "\\" + String(Number(e[1]) + t))
                    : ((r += e[0]), "(" === e[0] && i++);
              }
              return r;
            })
            .map((e) => `(${e})`)
            .join(t);
        }
        const x = "[a-zA-Z]\\w*",
          w = "[a-zA-Z_]\\w*",
          E = "\\b\\d+(\\.\\d+)?",
          _ =
            "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",
          S = "\\b(0b[01]+)",
          A = { begin: "\\\\[\\s\\S]", relevance: 0 },
          k = {
            scope: "string",
            begin: "'",
            end: "'",
            illegal: "\\n",
            contains: [A],
          },
          T = {
            scope: "string",
            begin: '"',
            end: '"',
            illegal: "\\n",
            contains: [A],
          },
          C = function (e, t, i = {}) {
            const n = a(
              { scope: "comment", begin: e, end: t, contains: [] },
              i
            );
            n.contains.push({
              scope: "doctag",
              begin: "[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
              end: /(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,
              excludeBegin: !0,
              relevance: 0,
            });
            const r = m(
              "I",
              "a",
              "is",
              "so",
              "us",
              "to",
              "at",
              "if",
              "in",
              "it",
              "on",
              /[A-Za-z]+['](d|ve|re|ll|t|s|n)/,
              /[A-Za-z]+[-][a-z]+/,
              /[A-Za-z][a-z]{2,}/
            );
            return (
              n.contains.push({
                begin: g(/[ ]+/, "(", r, /[.]?[:]?([.][ ]|[ ])/, "){3}"),
              }),
              n
            );
          },
          O = C("//", "$"),
          I = C("/\\*", "\\*/"),
          M = C("#", "$"),
          L = { scope: "number", begin: E, relevance: 0 },
          P = { scope: "number", begin: _, relevance: 0 },
          D = { scope: "number", begin: S, relevance: 0 },
          R = {
            begin: /(?=\/[^/\n]*\/)/,
            contains: [
              {
                scope: "regexp",
                begin: /\//,
                end: /\/[gimuy]*/,
                illegal: /\n/,
                contains: [
                  A,
                  { begin: /\[/, end: /\]/, relevance: 0, contains: [A] },
                ],
              },
            ],
          },
          N = { scope: "title", begin: x, relevance: 0 },
          F = { scope: "title", begin: w, relevance: 0 },
          B = { begin: "\\.\\s*" + w, relevance: 0 };
        var z = Object.freeze({
          __proto__: null,
          MATCH_NOTHING_RE: /\b\B/,
          IDENT_RE: x,
          UNDERSCORE_IDENT_RE: w,
          NUMBER_RE: E,
          C_NUMBER_RE: _,
          BINARY_NUMBER_RE: S,
          RE_STARTERS_RE:
            "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
          SHEBANG: (e = {}) => {
            const t = /^#![ ]*\//;
            return (
              e.binary && (e.begin = g(t, /.*\b/, e.binary, /\b.*/)),
              a(
                {
                  scope: "meta",
                  begin: t,
                  end: /$/,
                  relevance: 0,
                  "on:begin": (e, t) => {
                    0 !== e.index && t.ignoreMatch();
                  },
                },
                e
              )
            );
          },
          BACKSLASH_ESCAPE: A,
          APOS_STRING_MODE: k,
          QUOTE_STRING_MODE: T,
          PHRASAL_WORDS_MODE: {
            begin:
              /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/,
          },
          COMMENT: C,
          C_LINE_COMMENT_MODE: O,
          C_BLOCK_COMMENT_MODE: I,
          HASH_COMMENT_MODE: M,
          NUMBER_MODE: L,
          C_NUMBER_MODE: P,
          BINARY_NUMBER_MODE: D,
          REGEXP_MODE: R,
          TITLE_MODE: N,
          UNDERSCORE_TITLE_MODE: F,
          METHOD_GUARD: B,
          END_SAME_AS_BEGIN: function (e) {
            return Object.assign(e, {
              "on:begin": (e, t) => {
                t.data._beginMatch = e[1];
              },
              "on:end": (e, t) => {
                t.data._beginMatch !== e[1] && t.ignoreMatch();
              },
            });
          },
        });
        function j(e, t) {
          "." === e.input[e.index - 1] && t.ignoreMatch();
        }
        function H(e, t) {
          void 0 !== e.className &&
            ((e.scope = e.className), delete e.className);
        }
        function Y(e, t) {
          t &&
            e.beginKeywords &&
            ((e.begin =
              "\\b(" +
              e.beginKeywords.split(" ").join("|") +
              ")(?!\\.)(?=\\b|\\s)"),
            (e.__beforeBegin = j),
            (e.keywords = e.keywords || e.beginKeywords),
            delete e.beginKeywords,
            void 0 === e.relevance && (e.relevance = 0));
        }
        function X(e, t) {
          Array.isArray(e.illegal) && (e.illegal = m(...e.illegal));
        }
        function W(e, t) {
          if (e.match) {
            if (e.begin || e.end)
              throw new Error("begin & end are not supported with match");
            (e.begin = e.match), delete e.match;
          }
        }
        function G(e, t) {
          void 0 === e.relevance && (e.relevance = 1);
        }
        const q = (e, t) => {
            if (!e.beforeMatch) return;
            if (e.starts)
              throw new Error("beforeMatch cannot be used with starts");
            const i = Object.assign({}, e);
            Object.keys(e).forEach((t) => {
              delete e[t];
            }),
              (e.keywords = i.keywords),
              (e.begin = g(i.beforeMatch, h(i.begin))),
              (e.starts = {
                relevance: 0,
                contains: [Object.assign(i, { endsParent: !0 })],
              }),
              (e.relevance = 0),
              delete i.beforeMatch;
          },
          V = [
            "of",
            "and",
            "for",
            "in",
            "not",
            "or",
            "if",
            "then",
            "parent",
            "list",
            "value",
          ],
          U = "keyword";
        function $(e, t, i = U) {
          const n = Object.create(null);
          return (
            "string" == typeof e
              ? r(i, e.split(" "))
              : Array.isArray(e)
              ? r(i, e)
              : Object.keys(e).forEach(function (i) {
                  Object.assign(n, $(e[i], t, i));
                }),
            n
          );
          function r(e, i) {
            t && (i = i.map((e) => e.toLowerCase())),
              i.forEach(function (t) {
                const i = t.split("|");
                n[i[0]] = [e, Z(i[0], i[1])];
              });
          }
        }
        function Z(e, t) {
          return t
            ? Number(t)
            : (function (e) {
                return V.includes(e.toLowerCase());
              })(e)
            ? 0
            : 1;
        }
        const K = {},
          J = (e) => {
            console.error(e);
          },
          Q = (e, ...t) => {
            console.log(`WARN: ${e}`, ...t);
          },
          ee = (e, t) => {
            K[`${e}/${t}`] ||
              (console.log(`Deprecated as of ${e}. ${t}`),
              (K[`${e}/${t}`] = !0));
          },
          te = new Error();
        function ie(e, t, { key: i }) {
          let n = 0;
          const r = e[i],
            a = {},
            o = {};
          for (let e = 1; e <= t.length; e++)
            (o[e + n] = r[e]), (a[e + n] = !0), (n += v(t[e - 1]));
          (e[i] = o), (e[i]._emit = a), (e[i]._multi = !0);
        }
        function ne(e) {
          !(function (e) {
            e.scope &&
              "object" == typeof e.scope &&
              null !== e.scope &&
              ((e.beginScope = e.scope), delete e.scope);
          })(e),
            "string" == typeof e.beginScope &&
              (e.beginScope = { _wrap: e.beginScope }),
            "string" == typeof e.endScope &&
              (e.endScope = { _wrap: e.endScope }),
            (function (e) {
              if (Array.isArray(e.begin)) {
                if (e.skip || e.excludeBegin || e.returnBegin)
                  throw (
                    (J(
                      "skip, excludeBegin, returnBegin not compatible with beginScope: {}"
                    ),
                    te)
                  );
                if ("object" != typeof e.beginScope || null === e.beginScope)
                  throw (J("beginScope must be object"), te);
                ie(e, e.begin, { key: "beginScope" }),
                  (e.begin = y(e.begin, { joinWith: "" }));
              }
            })(e),
            (function (e) {
              if (Array.isArray(e.end)) {
                if (e.skip || e.excludeEnd || e.returnEnd)
                  throw (
                    (J(
                      "skip, excludeEnd, returnEnd not compatible with endScope: {}"
                    ),
                    te)
                  );
                if ("object" != typeof e.endScope || null === e.endScope)
                  throw (J("endScope must be object"), te);
                ie(e, e.end, { key: "endScope" }),
                  (e.end = y(e.end, { joinWith: "" }));
              }
            })(e);
        }
        function re(e) {
          function t(t, i) {
            return new RegExp(
              d(t),
              "m" +
                (e.case_insensitive ? "i" : "") +
                (e.unicodeRegex ? "u" : "") +
                (i ? "g" : "")
            );
          }
          class i {
            constructor() {
              (this.matchIndexes = {}),
                (this.regexes = []),
                (this.matchAt = 1),
                (this.position = 0);
            }
            addRule(e, t) {
              (t.position = this.position++),
                (this.matchIndexes[this.matchAt] = t),
                this.regexes.push([t, e]),
                (this.matchAt += v(e) + 1);
            }
            compile() {
              0 === this.regexes.length && (this.exec = () => null);
              const e = this.regexes.map((e) => e[1]);
              (this.matcherRe = t(y(e, { joinWith: "|" }), !0)),
                (this.lastIndex = 0);
            }
            exec(e) {
              this.matcherRe.lastIndex = this.lastIndex;
              const t = this.matcherRe.exec(e);
              if (!t) return null;
              const i = t.findIndex((e, t) => t > 0 && void 0 !== e),
                n = this.matchIndexes[i];
              return t.splice(0, i), Object.assign(t, n);
            }
          }
          class n {
            constructor() {
              (this.rules = []),
                (this.multiRegexes = []),
                (this.count = 0),
                (this.lastIndex = 0),
                (this.regexIndex = 0);
            }
            getMatcher(e) {
              if (this.multiRegexes[e]) return this.multiRegexes[e];
              const t = new i();
              return (
                this.rules.slice(e).forEach(([e, i]) => t.addRule(e, i)),
                t.compile(),
                (this.multiRegexes[e] = t),
                t
              );
            }
            resumingScanAtSamePosition() {
              return 0 !== this.regexIndex;
            }
            considerAll() {
              this.regexIndex = 0;
            }
            addRule(e, t) {
              this.rules.push([e, t]), "begin" === t.type && this.count++;
            }
            exec(e) {
              const t = this.getMatcher(this.regexIndex);
              t.lastIndex = this.lastIndex;
              let i = t.exec(e);
              if (this.resumingScanAtSamePosition())
                if (i && i.index === this.lastIndex);
                else {
                  const t = this.getMatcher(0);
                  (t.lastIndex = this.lastIndex + 1), (i = t.exec(e));
                }
              return (
                i &&
                  ((this.regexIndex += i.position + 1),
                  this.regexIndex === this.count && this.considerAll()),
                i
              );
            }
          }
          if (
            (e.compilerExtensions || (e.compilerExtensions = []),
            e.contains && e.contains.includes("self"))
          )
            throw new Error(
              "ERR: contains `self` is not supported at the top-level of a language.  See documentation."
            );
          return (
            (e.classNameAliases = a(e.classNameAliases || {})),
            (function i(r, o) {
              const s = r;
              if (r.isCompiled) return s;
              [H, W, ne, q].forEach((e) => e(r, o)),
                e.compilerExtensions.forEach((e) => e(r, o)),
                (r.__beforeBegin = null),
                [Y, X, G].forEach((e) => e(r, o)),
                (r.isCompiled = !0);
              let l = null;
              return (
                "object" == typeof r.keywords &&
                  r.keywords.$pattern &&
                  ((r.keywords = Object.assign({}, r.keywords)),
                  (l = r.keywords.$pattern),
                  delete r.keywords.$pattern),
                (l = l || /\w+/),
                r.keywords && (r.keywords = $(r.keywords, e.case_insensitive)),
                (s.keywordPatternRe = t(l, !0)),
                o &&
                  (r.begin || (r.begin = /\B|\b/),
                  (s.beginRe = t(s.begin)),
                  r.end || r.endsWithParent || (r.end = /\B|\b/),
                  r.end && (s.endRe = t(s.end)),
                  (s.terminatorEnd = d(s.end) || ""),
                  r.endsWithParent &&
                    o.terminatorEnd &&
                    (s.terminatorEnd += (r.end ? "|" : "") + o.terminatorEnd)),
                r.illegal && (s.illegalRe = t(r.illegal)),
                r.contains || (r.contains = []),
                (r.contains = [].concat(
                  ...r.contains.map(function (e) {
                    return (function (e) {
                      e.variants &&
                        !e.cachedVariants &&
                        (e.cachedVariants = e.variants.map(function (t) {
                          return a(e, { variants: null }, t);
                        }));
                      if (e.cachedVariants) return e.cachedVariants;
                      if (ae(e))
                        return a(e, { starts: e.starts ? a(e.starts) : null });
                      if (Object.isFrozen(e)) return a(e);
                      return e;
                    })("self" === e ? r : e);
                  })
                )),
                r.contains.forEach(function (e) {
                  i(e, s);
                }),
                r.starts && i(r.starts, o),
                (s.matcher = (function (e) {
                  const t = new n();
                  return (
                    e.contains.forEach((e) =>
                      t.addRule(e.begin, { rule: e, type: "begin" })
                    ),
                    e.terminatorEnd &&
                      t.addRule(e.terminatorEnd, { type: "end" }),
                    e.illegal && t.addRule(e.illegal, { type: "illegal" }),
                    t
                  );
                })(s)),
                s
              );
            })(e)
          );
        }
        function ae(e) {
          return !!e && (e.endsWithParent || ae(e.starts));
        }
        class oe extends Error {
          constructor(e, t) {
            super(e), (this.name = "HTMLInjectionError"), (this.html = t);
          }
        }
        const se = r,
          le = a,
          ce = Symbol("nomatch"),
          ue = 7;
        var de = (function (e) {
          const i = Object.create(null),
            r = Object.create(null),
            a = [];
          let o = !0;
          const s =
              "Could not find the language '{}', did you forget to load/include a language module?",
            l = { disableAutodetect: !0, name: "Plain text", contains: [] };
          let c = {
            ignoreUnescapedHTML: !1,
            throwUnescapedHTML: !1,
            noHighlightRe: /^(no-?highlight)$/i,
            languageDetectRe: /\blang(?:uage)?-([\w-]+)\b/i,
            classPrefix: "hljs-",
            cssSelector: "pre code",
            languages: null,
            __emitter: u,
          };
          function d(e) {
            return c.noHighlightRe.test(e);
          }
          function v(e, t, i) {
            let n = "",
              r = "";
            "object" == typeof t
              ? ((n = e), (i = t.ignoreIllegals), (r = t.language))
              : (ee(
                  "10.7.0",
                  "highlight(lang, code, ...args) has been deprecated."
                ),
                ee(
                  "10.7.0",
                  "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"
                ),
                (r = e),
                (n = t)),
              void 0 === i && (i = !0);
            const a = { code: n, language: r };
            k("before:highlight", a);
            const o = a.result ? a.result : b(a.language, a.code, i);
            return (o.code = a.code), k("after:highlight", o), o;
          }
          function b(e, t, r, a) {
            const l = Object.create(null);
            function u() {
              if (!A.keywords) return void T.addText(C);
              let e = 0;
              A.keywordPatternRe.lastIndex = 0;
              let t = A.keywordPatternRe.exec(C),
                i = "";
              for (; t; ) {
                i += C.substring(e, t.index);
                const r = w.case_insensitive ? t[0].toLowerCase() : t[0],
                  a = ((n = r), A.keywords[n]);
                if (a) {
                  const [e, n] = a;
                  if (
                    (T.addText(i),
                    (i = ""),
                    (l[r] = (l[r] || 0) + 1),
                    l[r] <= ue && (O += n),
                    e.startsWith("_"))
                  )
                    i += t[0];
                  else {
                    const i = w.classNameAliases[e] || e;
                    T.addKeyword(t[0], i);
                  }
                } else i += t[0];
                (e = A.keywordPatternRe.lastIndex),
                  (t = A.keywordPatternRe.exec(C));
              }
              var n;
              (i += C.substring(e)), T.addText(i);
            }
            function d() {
              null != A.subLanguage
                ? (function () {
                    if ("" === C) return;
                    let e = null;
                    if ("string" == typeof A.subLanguage) {
                      if (!i[A.subLanguage]) return void T.addText(C);
                      (e = b(A.subLanguage, C, !0, k[A.subLanguage])),
                        (k[A.subLanguage] = e._top);
                    } else
                      e = y(C, A.subLanguage.length ? A.subLanguage : null);
                    A.relevance > 0 && (O += e.relevance),
                      T.addSublanguage(e._emitter, e.language);
                  })()
                : u(),
                (C = "");
            }
            function h(e, t) {
              let i = 1;
              const n = t.length - 1;
              for (; i <= n; ) {
                if (!e._emit[i]) {
                  i++;
                  continue;
                }
                const n = w.classNameAliases[e[i]] || e[i],
                  r = t[i];
                n ? T.addKeyword(r, n) : ((C = r), u(), (C = "")), i++;
              }
            }
            function f(e, t) {
              return (
                e.scope &&
                  "string" == typeof e.scope &&
                  T.openNode(w.classNameAliases[e.scope] || e.scope),
                e.beginScope &&
                  (e.beginScope._wrap
                    ? (T.addKeyword(
                        C,
                        w.classNameAliases[e.beginScope._wrap] ||
                          e.beginScope._wrap
                      ),
                      (C = ""))
                    : e.beginScope._multi && (h(e.beginScope, t), (C = ""))),
                (A = Object.create(e, { parent: { value: A } })),
                A
              );
            }
            function p(e, t, i) {
              let r = (function (e, t) {
                const i = e && e.exec(t);
                return i && 0 === i.index;
              })(e.endRe, i);
              if (r) {
                if (e["on:end"]) {
                  const i = new n(e);
                  e["on:end"](t, i), i.isMatchIgnored && (r = !1);
                }
                if (r) {
                  for (; e.endsParent && e.parent; ) e = e.parent;
                  return e;
                }
              }
              if (e.endsWithParent) return p(e.parent, t, i);
            }
            function g(e) {
              return 0 === A.matcher.regexIndex
                ? ((C += e[0]), 1)
                : ((L = !0), 0);
            }
            function m(e) {
              const i = e[0],
                n = t.substring(e.index),
                r = p(A, e, n);
              if (!r) return ce;
              const a = A;
              A.endScope && A.endScope._wrap
                ? (d(), T.addKeyword(i, A.endScope._wrap))
                : A.endScope && A.endScope._multi
                ? (d(), h(A.endScope, e))
                : a.skip
                ? (C += i)
                : (a.returnEnd || a.excludeEnd || (C += i),
                  d(),
                  a.excludeEnd && (C = i));
              do {
                A.scope && T.closeNode(),
                  A.skip || A.subLanguage || (O += A.relevance),
                  (A = A.parent);
              } while (A !== r.parent);
              return r.starts && f(r.starts, e), a.returnEnd ? 0 : i.length;
            }
            let v = {};
            function x(i, a) {
              const s = a && a[0];
              if (((C += i), null == s)) return d(), 0;
              if (
                "begin" === v.type &&
                "end" === a.type &&
                v.index === a.index &&
                "" === s
              ) {
                if (((C += t.slice(a.index, a.index + 1)), !o)) {
                  const t = new Error(`0 width match regex (${e})`);
                  throw ((t.languageName = e), (t.badRule = v.rule), t);
                }
                return 1;
              }
              if (((v = a), "begin" === a.type))
                return (function (e) {
                  const t = e[0],
                    i = e.rule,
                    r = new n(i),
                    a = [i.__beforeBegin, i["on:begin"]];
                  for (const i of a)
                    if (i && (i(e, r), r.isMatchIgnored)) return g(t);
                  return (
                    i.skip
                      ? (C += t)
                      : (i.excludeBegin && (C += t),
                        d(),
                        i.returnBegin || i.excludeBegin || (C = t)),
                    f(i, e),
                    i.returnBegin ? 0 : t.length
                  );
                })(a);
              if ("illegal" === a.type && !r) {
                const e = new Error(
                  'Illegal lexeme "' +
                    s +
                    '" for mode "' +
                    (A.scope || "<unnamed>") +
                    '"'
                );
                throw ((e.mode = A), e);
              }
              if ("end" === a.type) {
                const e = m(a);
                if (e !== ce) return e;
              }
              if ("illegal" === a.type && "" === s) return 1;
              if (M > 1e5 && M > 3 * a.index) {
                throw new Error(
                  "potential infinite loop, way more iterations than matches"
                );
              }
              return (C += s), s.length;
            }
            const w = _(e);
            if (!w)
              throw (
                (J(s.replace("{}", e)),
                new Error('Unknown language: "' + e + '"'))
              );
            const E = re(w);
            let S = "",
              A = a || E;
            const k = {},
              T = new c.__emitter(c);
            !(function () {
              const e = [];
              for (let t = A; t !== w; t = t.parent)
                t.scope && e.unshift(t.scope);
              e.forEach((e) => T.openNode(e));
            })();
            let C = "",
              O = 0,
              I = 0,
              M = 0,
              L = !1;
            try {
              for (A.matcher.considerAll(); ; ) {
                M++,
                  L ? (L = !1) : A.matcher.considerAll(),
                  (A.matcher.lastIndex = I);
                const e = A.matcher.exec(t);
                if (!e) break;
                const i = x(t.substring(I, e.index), e);
                I = e.index + i;
              }
              return (
                x(t.substring(I)),
                T.closeAllNodes(),
                T.finalize(),
                (S = T.toHTML()),
                {
                  language: e,
                  value: S,
                  relevance: O,
                  illegal: !1,
                  _emitter: T,
                  _top: A,
                }
              );
            } catch (i) {
              if (i.message && i.message.includes("Illegal"))
                return {
                  language: e,
                  value: se(t),
                  illegal: !0,
                  relevance: 0,
                  _illegalBy: {
                    message: i.message,
                    index: I,
                    context: t.slice(I - 100, I + 100),
                    mode: i.mode,
                    resultSoFar: S,
                  },
                  _emitter: T,
                };
              if (o)
                return {
                  language: e,
                  value: se(t),
                  illegal: !1,
                  relevance: 0,
                  errorRaised: i,
                  _emitter: T,
                  _top: A,
                };
              throw i;
            }
          }
          function y(e, t) {
            t = t || c.languages || Object.keys(i);
            const n = (function (e) {
                const t = {
                  value: se(e),
                  illegal: !1,
                  relevance: 0,
                  _top: l,
                  _emitter: new c.__emitter(c),
                };
                return t._emitter.addText(e), t;
              })(e),
              r = t
                .filter(_)
                .filter(A)
                .map((t) => b(t, e, !1));
            r.unshift(n);
            const a = r.sort((e, t) => {
                if (e.relevance !== t.relevance)
                  return t.relevance - e.relevance;
                if (e.language && t.language) {
                  if (_(e.language).supersetOf === t.language) return 1;
                  if (_(t.language).supersetOf === e.language) return -1;
                }
                return 0;
              }),
              [o, s] = a,
              u = o;
            return (u.secondBest = s), u;
          }
          function x(e) {
            let t = null;
            const i = (function (e) {
              let t = e.className + " ";
              t += e.parentNode ? e.parentNode.className : "";
              const i = c.languageDetectRe.exec(t);
              if (i) {
                const t = _(i[1]);
                return (
                  t ||
                    (Q(s.replace("{}", i[1])),
                    Q("Falling back to no-highlight mode for this block.", e)),
                  t ? i[1] : "no-highlight"
                );
              }
              return t.split(/\s+/).find((e) => d(e) || _(e));
            })(e);
            if (d(i)) return;
            if (
              (k("before:highlightElement", { el: e, language: i }),
              e.children.length > 0 &&
                (c.ignoreUnescapedHTML ||
                  (console.warn(
                    "One of your code blocks includes unescaped HTML. This is a potentially serious security risk."
                  ),
                  console.warn(
                    "https://github.com/highlightjs/highlight.js/wiki/security"
                  ),
                  console.warn("The element with unescaped HTML:"),
                  console.warn(e)),
                c.throwUnescapedHTML))
            ) {
              throw new oe(
                "One of your code blocks includes unescaped HTML.",
                e.innerHTML
              );
            }
            t = e;
            const n = t.textContent,
              a = i ? v(n, { language: i, ignoreIllegals: !0 }) : y(n);
            (e.innerHTML = a.value),
              (function (e, t, i) {
                const n = (t && r[t]) || i;
                e.classList.add("hljs"), e.classList.add(`language-${n}`);
              })(e, i, a.language),
              (e.result = {
                language: a.language,
                re: a.relevance,
                relevance: a.relevance,
              }),
              a.secondBest &&
                (e.secondBest = {
                  language: a.secondBest.language,
                  relevance: a.secondBest.relevance,
                }),
              k("after:highlightElement", { el: e, result: a, text: n });
          }
          let w = !1;
          function E() {
            if ("loading" === document.readyState) return void (w = !0);
            document.querySelectorAll(c.cssSelector).forEach(x);
          }
          function _(e) {
            return (e = (e || "").toLowerCase()), i[e] || i[r[e]];
          }
          function S(e, { languageName: t }) {
            "string" == typeof e && (e = [e]),
              e.forEach((e) => {
                r[e.toLowerCase()] = t;
              });
          }
          function A(e) {
            const t = _(e);
            return t && !t.disableAutodetect;
          }
          function k(e, t) {
            const i = e;
            a.forEach(function (e) {
              e[i] && e[i](t);
            });
          }
          "undefined" != typeof window &&
            window.addEventListener &&
            window.addEventListener(
              "DOMContentLoaded",
              function () {
                w && E();
              },
              !1
            ),
            Object.assign(e, {
              highlight: v,
              highlightAuto: y,
              highlightAll: E,
              highlightElement: x,
              highlightBlock: function (e) {
                return (
                  ee(
                    "10.7.0",
                    "highlightBlock will be removed entirely in v12.0"
                  ),
                  ee("10.7.0", "Please use highlightElement now."),
                  x(e)
                );
              },
              configure: function (e) {
                c = le(c, e);
              },
              initHighlighting: () => {
                E(),
                  ee(
                    "10.6.0",
                    "initHighlighting() deprecated.  Use highlightAll() now."
                  );
              },
              initHighlightingOnLoad: function () {
                E(),
                  ee(
                    "10.6.0",
                    "initHighlightingOnLoad() deprecated.  Use highlightAll() now."
                  );
              },
              registerLanguage: function (t, n) {
                let r = null;
                try {
                  r = n(e);
                } catch (e) {
                  if (
                    (J(
                      "Language definition for '{}' could not be registered.".replace(
                        "{}",
                        t
                      )
                    ),
                    !o)
                  )
                    throw e;
                  J(e), (r = l);
                }
                r.name || (r.name = t),
                  (i[t] = r),
                  (r.rawDefinition = n.bind(null, e)),
                  r.aliases && S(r.aliases, { languageName: t });
              },
              unregisterLanguage: function (e) {
                delete i[e];
                for (const t of Object.keys(r)) r[t] === e && delete r[t];
              },
              listLanguages: function () {
                return Object.keys(i);
              },
              getLanguage: _,
              registerAliases: S,
              autoDetection: A,
              inherit: le,
              addPlugin: function (e) {
                !(function (e) {
                  e["before:highlightBlock"] &&
                    !e["before:highlightElement"] &&
                    (e["before:highlightElement"] = (t) => {
                      e["before:highlightBlock"](
                        Object.assign({ block: t.el }, t)
                      );
                    }),
                    e["after:highlightBlock"] &&
                      !e["after:highlightElement"] &&
                      (e["after:highlightElement"] = (t) => {
                        e["after:highlightBlock"](
                          Object.assign({ block: t.el }, t)
                        );
                      });
                })(e),
                  a.push(e);
              },
            }),
            (e.debugMode = function () {
              o = !1;
            }),
            (e.safeMode = function () {
              o = !0;
            }),
            (e.versionString = "11.7.0"),
            (e.regex = {
              concat: g,
              lookahead: h,
              either: m,
              optional: p,
              anyNumberOfTimes: f,
            });
          for (const e in z) "object" == typeof z[e] && t.exports(z[e]);
          return Object.assign(e, z), e;
        })({});
        (e.exports = de), (de.HighlightJS = de), (de.default = de);
      },
    },
    i = {};
  function n(e) {
    var r = i[e];
    if (void 0 !== r) return r.exports;
    var a = (i[e] = { exports: {} });
    return t[e].call(a.exports, a, a.exports, n), a.exports;
  }
  (n.m = t),
    (e = []),
    (n.O = (t, i, r, a) => {
      if (!i) {
        var o = 1 / 0;
        for (u = 0; u < e.length; u++) {
          for (var [i, r, a] = e[u], s = !0, l = 0; l < i.length; l++)
            (!1 & a || o >= a) && Object.keys(n.O).every((e) => n.O[e](i[l]))
              ? i.splice(l--, 1)
              : ((s = !1), a < o && (o = a));
          if (s) {
            e.splice(u--, 1);
            var c = r();
            void 0 !== c && (t = c);
          }
        }
        return t;
      }
      a = a || 0;
      for (var u = e.length; u > 0 && e[u - 1][2] > a; u--) e[u] = e[u - 1];
      e[u] = [i, r, a];
    }),
    (n.n = (e) => {
      var t = e && e.__esModule ? () => e.default : () => e;
      return n.d(t, { a: t }), t;
    }),
    (n.d = (e, t) => {
      for (var i in t)
        n.o(t, i) &&
          !n.o(e, i) &&
          Object.defineProperty(e, i, { enumerable: !0, get: t[i] });
    }),
    (n.g = (function () {
      if ("object" == typeof globalThis) return globalThis;
      try {
        return this || new Function("return this")();
      } catch (e) {
        if ("object" == typeof window) return window;
      }
    })()),
    (n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)),
    (n.r = (e) => {
      "undefined" != typeof Symbol &&
        Symbol.toStringTag &&
        Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }),
        Object.defineProperty(e, "__esModule", { value: !0 });
    }),
    (() => {
      var e = { 773: 0, 170: 0 };
      n.O.j = (t) => 0 === e[t];
      var t = (t, i) => {
          var r,
            a,
            [o, s, l] = i,
            c = 0;
          if (o.some((t) => 0 !== e[t])) {
            for (r in s) n.o(s, r) && (n.m[r] = s[r]);
            if (l) var u = l(n);
          }
          for (t && t(i); c < o.length; c++)
            (a = o[c]), n.o(e, a) && e[a] && e[a][0](), (e[a] = 0);
          return n.O(u);
        },
        i = (self.webpackChunklineone = self.webpackChunklineone || []);
      i.forEach(t.bind(null, 0)), (i.push = t.bind(null, i.push.bind(i)));
    })(),
    n.O(void 0, [170], () => n(299));
  var r = n.O(void 0, [170], () => n(141));
  r = n.O(r);
})();
