wpJsonpAmeliaBookingPlugin([7], {
    1000: function (e, t, n) {
        var i = n(67);
        e.exports = function (e, t, n, o) {
            try {
                return o ? t(i(n)[0], n[1]) : t(n);
            } catch (t) {
                var r = e.return;
                throw (void 0 !== r && i(r.call(e)), t);
            }
        };
    },
    1001: function (e, t, n) {
        var i = n(93),
            o = n(53)("iterator"),
            r = Array.prototype;
        e.exports = function (e) {
            return void 0 !== e && (i.Array === e || r[o] === e);
        };
    },
    1002: function (e, t, n) {
        "use strict";
        var i = n(54),
            o = n(68);
        e.exports = function (e, t, n) {
            t in e ? i.f(e, t, o(0, n)) : (e[t] = n);
        };
    },
    1003: function (e, t, n) {
        var i = n(1004),
            o = n(53)("iterator"),
            r = n(93);
        e.exports = n(66).getIteratorMethod = function (e) {
            if (void 0 != e) return e[o] || e["@@iterator"] || r[i(e)];
        };
    },
    1004: function (e, t, n) {
        var i = n(143),
            o = n(53)("toStringTag"),
            r =
                "Arguments" ==
                i(
                    (function () {
                        return arguments;
                    })()
                );
        e.exports = function (e) {
            var t, n, s;
            return void 0 === e
                ? "Undefined"
                : null === e
                ? "Null"
                : "string" ==
                  typeof (n = (function (e, t) {
                      try {
                          return e[t];
                      } catch (e) {}
                  })((t = Object(e)), o))
                ? n
                : r
                ? i(t)
                : "Object" == (s = i(t)) && "function" == typeof t.callee
                ? "Arguments"
                : s;
        };
    },
    1005: function (e, t, n) {
        var i = n(53)("iterator"),
            o = !1;
        try {
            var r = [7][i]();
            (r.return = function () {
                o = !0;
            }),
                Array.from(r, function () {
                    throw 2;
                });
        } catch (e) {}
        e.exports = function (e, t) {
            if (!t && !o) return !1;
            var n = !1;
            try {
                var r = [7],
                    s = r[i]();
                (s.next = function () {
                    return { done: (n = !0) };
                }),
                    (r[i] = function () {
                        return s;
                    }),
                    e(r);
            } catch (e) {}
            return n;
        };
    },
    1006: function (e, t, n) {
        (function (e, n) {
            var i = 200,
                o = "__lodash_hash_undefined__",
                r = 9007199254740991,
                s = "[object Arguments]",
                a = "[object Boolean]",
                l = "[object Date]",
                c = "[object Function]",
                u = "[object GeneratorFunction]",
                d = "[object Map]",
                p = "[object Number]",
                h = "[object Object]",
                f = "[object RegExp]",
                m = "[object Set]",
                g = "[object String]",
                v = "[object Symbol]",
                y = "[object WeakMap]",
                b = "[object ArrayBuffer]",
                w = "[object DataView]",
                _ = "[object Float32Array]",
                D = "[object Float64Array]",
                C = "[object Int8Array]",
                S = "[object Int16Array]",
                x = "[object Int32Array]",
                E = "[object Uint8Array]",
                T = "[object Uint8ClampedArray]",
                R = "[object Uint16Array]",
                k = "[object Uint32Array]",
                I = /\w*$/,
                F = /^\[object .+?Constructor\]$/,
                M = /^(?:0|[1-9]\d*)$/,
                P = {};
            (P[_] = P[D] = P[C] = P[S] = P[x] = P[E] = P[T] = P[R] = P[k] = !0), (P[s] = P["[object Array]"] = P[b] = P[a] = P[w] = P[l] = P["[object Error]"] = P[c] = P[d] = P[p] = P[h] = P[f] = P[m] = P[g] = P[y] = !1);
            var $ = {};
            ($[s] = $["[object Array]"] = $[b] = $[w] = $[a] = $[l] = $[_] = $[D] = $[C] = $[S] = $[x] = $[d] = $[p] = $[h] = $[f] = $[m] = $[g] = $[v] = $[E] = $[T] = $[R] = $[k] = !0), ($["[object Error]"] = $[c] = $[y] = !1);
            var H = "object" == typeof e && e && e.Object === Object && e,
                O = "object" == typeof self && self && self.Object === Object && self,
                A = H || O || Function("return this")(),
                B = "object" == typeof t && t && !t.nodeType && t,
                N = B && "object" == typeof n && n && !n.nodeType && n,
                L = N && N.exports === B,
                j = L && H.process,
                z = (function () {
                    try {
                        return j && j.binding("util");
                    } catch (e) {}
                })(),
                Y = z && z.isTypedArray;
            function U(e, t) {
                return e.set(t[0], t[1]), e;
            }
            function V(e, t) {
                return e.add(t), e;
            }
            function q(e, t, n) {
                switch (n.length) {
                    case 0:
                        return e.call(t);
                    case 1:
                        return e.call(t, n[0]);
                    case 2:
                        return e.call(t, n[0], n[1]);
                    case 3:
                        return e.call(t, n[0], n[1], n[2]);
                }
                return e.apply(t, n);
            }
            function G(e, t) {
                for (var n = -1, i = e ? e.length : 0; ++n < i && !1 !== t(e[n], n, e); );
                return e;
            }
            function W(e, t, n, i) {
                var o = -1,
                    r = e ? e.length : 0;
                for (i && r && (n = e[++o]); ++o < r; ) n = t(n, e[o], o, e);
                return n;
            }
            function J(e) {
                var t = !1;
                if (null != e && "function" != typeof e.toString)
                    try {
                        t = !!(e + "");
                    } catch (e) {}
                return t;
            }
            function X(e) {
                var t = -1,
                    n = Array(e.size);
                return (
                    e.forEach(function (e, i) {
                        n[++t] = [i, e];
                    }),
                    n
                );
            }
            function Z(e, t) {
                return function (n) {
                    return e(t(n));
                };
            }
            function K(e) {
                var t = -1,
                    n = Array(e.size);
                return (
                    e.forEach(function (e) {
                        n[++t] = e;
                    }),
                    n
                );
            }
            var Q,
                ee = Array.prototype,
                te = Function.prototype,
                ne = Object.prototype,
                ie = A["__core-js_shared__"],
                oe = (Q = /[^.]+$/.exec((ie && ie.keys && ie.keys.IE_PROTO) || "")) ? "Symbol(src)_1." + Q : "",
                re = te.toString,
                se = ne.hasOwnProperty,
                ae = re.call(Object),
                le = ne.toString,
                ce = RegExp(
                    "^" +
                        re
                            .call(se)
                            .replace(/[\\^$.*+?()[\]{}|]/g, "\\$&")
                            .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") +
                        "$"
                ),
                ue = L ? A.Buffer : void 0,
                de = A.Symbol,
                pe = A.Uint8Array,
                he = Z(Object.getPrototypeOf, Object),
                fe = Object.create,
                me = ne.propertyIsEnumerable,
                ge = ee.splice,
                ve = Object.getOwnPropertySymbols,
                ye = ue ? ue.isBuffer : void 0,
                be = Z(Object.keys, Object),
                we = Math.max,
                _e = Ze(A, "DataView"),
                De = Ze(A, "Map"),
                Ce = Ze(A, "Promise"),
                Se = Ze(A, "Set"),
                xe = Ze(A, "WeakMap"),
                Ee = Ze(Object, "create"),
                Te = it(_e),
                Re = it(De),
                ke = it(Ce),
                Ie = it(Se),
                Fe = it(xe),
                Me = de ? de.prototype : void 0,
                Pe = Me ? Me.valueOf : void 0;
            function $e(e) {
                var t = -1,
                    n = e ? e.length : 0;
                for (this.clear(); ++t < n; ) {
                    var i = e[t];
                    this.set(i[0], i[1]);
                }
            }
            function He(e) {
                var t = -1,
                    n = e ? e.length : 0;
                for (this.clear(); ++t < n; ) {
                    var i = e[t];
                    this.set(i[0], i[1]);
                }
            }
            function Oe(e) {
                var t = -1,
                    n = e ? e.length : 0;
                for (this.clear(); ++t < n; ) {
                    var i = e[t];
                    this.set(i[0], i[1]);
                }
            }
            function Ae(e) {
                this.__data__ = new He(e);
            }
            function Be(e, t) {
                var n =
                        st(e) || rt(e)
                            ? (function (e, t) {
                                  for (var n = -1, i = Array(e); ++n < e; ) i[n] = t(n);
                                  return i;
                              })(e.length, String)
                            : [],
                    i = n.length,
                    o = !!i;
                for (var r in e) (!t && !se.call(e, r)) || (o && ("length" == r || et(r, i))) || n.push(r);
                return n;
            }
            function Ne(e, t, n) {
                ((void 0 === n || ot(e[t], n)) && ("number" != typeof t || void 0 !== n || t in e)) || (e[t] = n);
            }
            function Le(e, t, n) {
                var i = e[t];
                (se.call(e, t) && ot(i, n) && (void 0 !== n || t in e)) || (e[t] = n);
            }
            function je(e, t) {
                for (var n = e.length; n--; ) if (ot(e[n][0], t)) return n;
                return -1;
            }
            function ze(e, t, n, i, o, r, y) {
                var F;
                if ((i && (F = r ? i(e, o, r, y) : i(e)), void 0 !== F)) return F;
                if (!pt(e)) return e;
                var M = st(e);
                if (M) {
                    if (
                        ((F = (function (e) {
                            var t = e.length,
                                n = e.constructor(t);
                            t && "string" == typeof e[0] && se.call(e, "index") && ((n.index = e.index), (n.input = e.input));
                            return n;
                        })(e)),
                        !t)
                    )
                        return We(e, F);
                } else {
                    var P = Qe(e),
                        H = P == c || P == u;
                    if (ct(e))
                        return (function (e, t) {
                            if (t) return e.slice();
                            var n = new e.constructor(e.length);
                            return e.copy(n), n;
                        })(e, t);
                    if (P == h || P == s || (H && !r)) {
                        if (J(e)) return r ? e : {};
                        if (
                            ((F = (function (e) {
                                return "function" != typeof e.constructor || tt(e) ? {} : ((t = he(e)), pt(t) ? fe(t) : {});
                                var t;
                            })(H ? {} : e)),
                            !t)
                        )
                            return (function (e, t) {
                                return Je(e, Ke(e), t);
                            })(
                                e,
                                (function (e, t) {
                                    return e && Je(t, vt(t), e);
                                })(F, e)
                            );
                    } else {
                        if (!$[P]) return r ? e : {};
                        F = (function (e, t, n, i) {
                            var o = e.constructor;
                            switch (t) {
                                case b:
                                    return Ge(e);
                                case a:
                                case l:
                                    return new o(+e);
                                case w:
                                    return (function (e, t) {
                                        var n = t ? Ge(e.buffer) : e.buffer;
                                        return new e.constructor(n, e.byteOffset, e.byteLength);
                                    })(e, i);
                                case _:
                                case D:
                                case C:
                                case S:
                                case x:
                                case E:
                                case T:
                                case R:
                                case k:
                                    return (function (e, t) {
                                        var n = t ? Ge(e.buffer) : e.buffer;
                                        return new e.constructor(n, e.byteOffset, e.length);
                                    })(e, i);
                                case d:
                                    return (function (e, t, n) {
                                        return W(t ? n(X(e), !0) : X(e), U, new e.constructor());
                                    })(e, i, n);
                                case p:
                                case g:
                                    return new o(e);
                                case f:
                                    return ((c = new (s = e).constructor(s.source, I.exec(s))).lastIndex = s.lastIndex), c;
                                case m:
                                    return (function (e, t, n) {
                                        return W(t ? n(K(e), !0) : K(e), V, new e.constructor());
                                    })(e, i, n);
                                case v:
                                    return (r = e), Pe ? Object(Pe.call(r)) : {};
                            }
                            var r;
                            var s, c;
                        })(e, P, ze, t);
                    }
                }
                y || (y = new Ae());
                var O = y.get(e);
                if (O) return O;
                if ((y.set(e, F), !M))
                    var A = n
                        ? (function (e) {
                              return (function (e, t, n) {
                                  var i = t(e);
                                  return st(e)
                                      ? i
                                      : (function (e, t) {
                                            for (var n = -1, i = t.length, o = e.length; ++n < i; ) e[o + n] = t[n];
                                            return e;
                                        })(i, n(e));
                              })(e, vt, Ke);
                          })(e)
                        : vt(e);
                return (
                    G(A || e, function (o, r) {
                        A && (o = e[(r = o)]), Le(F, r, ze(o, t, n, i, r, e, y));
                    }),
                    F
                );
            }
            function Ye(e) {
                return !(!pt(e) || (oe && oe in e)) && (ut(e) || J(e) ? ce : F).test(it(e));
            }
            function Ue(e) {
                if (!pt(e))
                    return (function (e) {
                        var t = [];
                        if (null != e) for (var n in Object(e)) t.push(n);
                        return t;
                    })(e);
                var t = tt(e),
                    n = [];
                for (var i in e) ("constructor" != i || (!t && se.call(e, i))) && n.push(i);
                return n;
            }
            function Ve(e, t, n, i, o) {
                if (e !== t) {
                    if (!st(t) && !mt(t)) var r = Ue(t);
                    G(r || t, function (s, a) {
                        if ((r && (s = t[(a = s)]), pt(s)))
                            o || (o = new Ae()),
                                (function (e, t, n, i, o, r, s) {
                                    var a = e[n],
                                        l = t[n],
                                        c = s.get(l);
                                    if (c) return void Ne(e, n, c);
                                    var u = r ? r(a, l, n + "", e, t, s) : void 0,
                                        d = void 0 === u;
                                    d &&
                                        ((u = l),
                                        st(l) || mt(l)
                                            ? st(a)
                                                ? (u = a)
                                                : lt(a)
                                                ? (u = We(a))
                                                : ((d = !1), (u = ze(l, !0)))
                                            : (function (e) {
                                                  if (!ht(e) || le.call(e) != h || J(e)) return !1;
                                                  var t = he(e);
                                                  if (null === t) return !0;
                                                  var n = se.call(t, "constructor") && t.constructor;
                                                  return "function" == typeof n && n instanceof n && re.call(n) == ae;
                                              })(l) || rt(l)
                                            ? rt(a)
                                                ? (u = (function (e) {
                                                      return Je(e, ((t = e), at(t) ? Be(t, !0) : Ue(t)));
                                                      var t;
                                                  })(a))
                                                : !pt(a) || (i && ut(a))
                                                ? ((d = !1), (u = ze(l, !0)))
                                                : (u = a)
                                            : (d = !1));
                                    d && (s.set(l, u), o(u, l, i, r, s), s.delete(l));
                                    Ne(e, n, u);
                                })(e, t, a, n, Ve, i, o);
                        else {
                            var l = i ? i(e[a], s, a + "", e, t, o) : void 0;
                            void 0 === l && (l = s), Ne(e, a, l);
                        }
                    });
                }
            }
            function qe(e, t) {
                return (
                    (t = we(void 0 === t ? e.length - 1 : t, 0)),
                    function () {
                        for (var n = arguments, i = -1, o = we(n.length - t, 0), r = Array(o); ++i < o; ) r[i] = n[t + i];
                        i = -1;
                        for (var s = Array(t + 1); ++i < t; ) s[i] = n[i];
                        return (s[t] = r), q(e, this, s);
                    }
                );
            }
            function Ge(e) {
                var t = new e.constructor(e.byteLength);
                return new pe(t).set(new pe(e)), t;
            }
            function We(e, t) {
                var n = -1,
                    i = e.length;
                for (t || (t = Array(i)); ++n < i; ) t[n] = e[n];
                return t;
            }
            function Je(e, t, n, i) {
                n || (n = {});
                for (var o = -1, r = t.length; ++o < r; ) {
                    var s = t[o],
                        a = i ? i(n[s], e[s], s, n, e) : void 0;
                    Le(n, s, void 0 === a ? e[s] : a);
                }
                return n;
            }
            function Xe(e, t) {
                var n,
                    i,
                    o = e.__data__;
                return ("string" == (i = typeof (n = t)) || "number" == i || "symbol" == i || "boolean" == i ? "__proto__" !== n : null === n) ? o["string" == typeof t ? "string" : "hash"] : o.map;
            }
            function Ze(e, t) {
                var n = (function (e, t) {
                    return null == e ? void 0 : e[t];
                })(e, t);
                return Ye(n) ? n : void 0;
            }
            ($e.prototype.clear = function () {
                this.__data__ = Ee ? Ee(null) : {};
            }),
                ($e.prototype.delete = function (e) {
                    return this.has(e) && delete this.__data__[e];
                }),
                ($e.prototype.get = function (e) {
                    var t = this.__data__;
                    if (Ee) {
                        var n = t[e];
                        return n === o ? void 0 : n;
                    }
                    return se.call(t, e) ? t[e] : void 0;
                }),
                ($e.prototype.has = function (e) {
                    var t = this.__data__;
                    return Ee ? void 0 !== t[e] : se.call(t, e);
                }),
                ($e.prototype.set = function (e, t) {
                    return (this.__data__[e] = Ee && void 0 === t ? o : t), this;
                }),
                (He.prototype.clear = function () {
                    this.__data__ = [];
                }),
                (He.prototype.delete = function (e) {
                    var t = this.__data__,
                        n = je(t, e);
                    return !(n < 0 || (n == t.length - 1 ? t.pop() : ge.call(t, n, 1), 0));
                }),
                (He.prototype.get = function (e) {
                    var t = this.__data__,
                        n = je(t, e);
                    return n < 0 ? void 0 : t[n][1];
                }),
                (He.prototype.has = function (e) {
                    return je(this.__data__, e) > -1;
                }),
                (He.prototype.set = function (e, t) {
                    var n = this.__data__,
                        i = je(n, e);
                    return i < 0 ? n.push([e, t]) : (n[i][1] = t), this;
                }),
                (Oe.prototype.clear = function () {
                    this.__data__ = { hash: new $e(), map: new (De || He)(), string: new $e() };
                }),
                (Oe.prototype.delete = function (e) {
                    return Xe(this, e).delete(e);
                }),
                (Oe.prototype.get = function (e) {
                    return Xe(this, e).get(e);
                }),
                (Oe.prototype.has = function (e) {
                    return Xe(this, e).has(e);
                }),
                (Oe.prototype.set = function (e, t) {
                    return Xe(this, e).set(e, t), this;
                }),
                (Ae.prototype.clear = function () {
                    this.__data__ = new He();
                }),
                (Ae.prototype.delete = function (e) {
                    return this.__data__.delete(e);
                }),
                (Ae.prototype.get = function (e) {
                    return this.__data__.get(e);
                }),
                (Ae.prototype.has = function (e) {
                    return this.__data__.has(e);
                }),
                (Ae.prototype.set = function (e, t) {
                    var n = this.__data__;
                    if (n instanceof He) {
                        var o = n.__data__;
                        if (!De || o.length < i - 1) return o.push([e, t]), this;
                        n = this.__data__ = new Oe(o);
                    }
                    return n.set(e, t), this;
                });
            var Ke = ve
                    ? Z(ve, Object)
                    : function () {
                          return [];
                      },
                Qe = function (e) {
                    return le.call(e);
                };
            function et(e, t) {
                return !!(t = null == t ? r : t) && ("number" == typeof e || M.test(e)) && e > -1 && e % 1 == 0 && e < t;
            }
            function tt(e) {
                var t = e && e.constructor;
                return e === (("function" == typeof t && t.prototype) || ne);
            }
            function nt(e, t, n, i, o, r) {
                return pt(e) && pt(t) && (r.set(t, e), Ve(e, t, void 0, nt, r), r.delete(t)), e;
            }
            function it(e) {
                if (null != e) {
                    try {
                        return re.call(e);
                    } catch (e) {}
                    try {
                        return e + "";
                    } catch (e) {}
                }
                return "";
            }
            function ot(e, t) {
                return e === t || (e != e && t != t);
            }
            function rt(e) {
                return lt(e) && se.call(e, "callee") && (!me.call(e, "callee") || le.call(e) == s);
            }
            ((_e && Qe(new _e(new ArrayBuffer(1))) != w) || (De && Qe(new De()) != d) || (Ce && "[object Promise]" != Qe(Ce.resolve())) || (Se && Qe(new Se()) != m) || (xe && Qe(new xe()) != y)) &&
                (Qe = function (e) {
                    var t = le.call(e),
                        n = t == h ? e.constructor : void 0,
                        i = n ? it(n) : void 0;
                    if (i)
                        switch (i) {
                            case Te:
                                return w;
                            case Re:
                                return d;
                            case ke:
                                return "[object Promise]";
                            case Ie:
                                return m;
                            case Fe:
                                return y;
                        }
                    return t;
                });
            var st = Array.isArray;
            function at(e) {
                return null != e && dt(e.length) && !ut(e);
            }
            function lt(e) {
                return ht(e) && at(e);
            }
            var ct =
                ye ||
                function () {
                    return !1;
                };
            function ut(e) {
                var t = pt(e) ? le.call(e) : "";
                return t == c || t == u;
            }
            function dt(e) {
                return "number" == typeof e && e > -1 && e % 1 == 0 && e <= r;
            }
            function pt(e) {
                var t = typeof e;
                return !!e && ("object" == t || "function" == t);
            }
            function ht(e) {
                return !!e && "object" == typeof e;
            }
            var ft,
                mt = Y
                    ? ((ft = Y),
                      function (e) {
                          return ft(e);
                      })
                    : function (e) {
                          return ht(e) && dt(e.length) && !!P[le.call(e)];
                      };
            var gt = qe(function (e) {
                return e.push(void 0, nt), q(bt, void 0, e);
            });
            function vt(e) {
                return at(e)
                    ? Be(e)
                    : (function (e) {
                          if (!tt(e)) return be(e);
                          var t = [];
                          for (var n in Object(e)) se.call(e, n) && "constructor" != n && t.push(n);
                          return t;
                      })(e);
            }
            var yt,
                bt =
                    ((yt = function (e, t, n, i) {
                        Ve(e, t, n, i);
                    }),
                    qe(function (e, t) {
                        var n = -1,
                            i = t.length,
                            o = i > 1 ? t[i - 1] : void 0,
                            r = i > 2 ? t[2] : void 0;
                        for (
                            o = yt.length > 3 && "function" == typeof o ? (i--, o) : void 0,
                                r &&
                                    (function (e, t, n) {
                                        if (!pt(n)) return !1;
                                        var i = typeof t;
                                        return !!("number" == i ? at(n) && et(t, n.length) : "string" == i && (t in n)) && ot(n[t], e);
                                    })(t[0], t[1], r) &&
                                    ((o = i < 3 ? void 0 : o), (i = 1)),
                                e = Object(e);
                            ++n < i;

                        ) {
                            var s = t[n];
                            s && yt(e, s, n, o);
                        }
                        return e;
                    }));
            n.exports = gt;
        }.call(t, n(39), n(344)(e)));
    },
    1007: function (e, t) {
        e.exports = {
            render: function () {
                var e = this.$createElement;
                return (this._self._c || e)("div", { ref: "calendar", attrs: { id: "calendar" } });
            },
            staticRenderFns: [],
        };
    },
    1008: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n("div", { staticClass: "am-wrap" }, [
                    n(
                        "div",
                        { staticClass: "am-body", attrs: { id: "am-calendar" } },
                        [
                            n("page-header", {
                                attrs: { categories: e.options.entities.categories, locations: e.options.entities.locations, params: e.params, fetched: e.appointmentsFetched && e.eventsFetched },
                                on: { newAppointmentBtnClicked: e.showDialogNewAppointment, changeFilter: e.filterData, selectAllInCategory: e.selectAllInCategory },
                            }),
                            e._v(" "),
                            n("div", { staticClass: "am-section am-calendar" }, [
                                !0 === e.$root.settings.capabilities.canReadOthers
                                    ? n(
                                          "div",
                                          { staticClass: "am-calendar-employees" },
                                          [
                                              n("div", { staticClass: "am-calendar-employee", class: { active: 0 === e.params.providers.length }, on: { click: e.filterAllEmployees } }, [
                                                  n("div", { staticClass: "am-profile-photo" }, [n("div", { staticClass: "am-all" }, [e._v(e._s(e.$root.labels.all))])]),
                                                  e._v(" "),
                                                  n("p", [e._v(e._s(e.$root.labels.all_employees))]),
                                              ]),
                                              e._v(" "),
                                              e._l(e.options.entities.employees, function (t) {
                                                  return n(
                                                      "div",
                                                      {
                                                          key: t.id,
                                                          staticClass: "am-calendar-employee",
                                                          class: { active: -1 !== e.params.providers.indexOf(t.id) },
                                                          on: {
                                                              click: function (n) {
                                                                  return e.filterEmployees(t);
                                                              },
                                                          },
                                                      },
                                                      [
                                                          n("div", { staticClass: "am-profile-photo" }, [
                                                              n("img", {
                                                                  attrs: { src: e.pictureLoad(t, !0) },
                                                                  on: {
                                                                      error: function (n) {
                                                                          return e.imageLoadError(t, !0);
                                                                      },
                                                                  },
                                                              }),
                                                          ]),
                                                          e._v(" "),
                                                          n("p", { staticClass: "am-calendar-employee-name" }, [e._v(e._s(t.firstName + " " + t.lastName))]),
                                                      ]
                                                  );
                                              }),
                                          ],
                                          2
                                      )
                                    : e._e(),
                                e._v(" "),
                                n(
                                    "div",
                                    { staticClass: "am-calendar-scroll" },
                                    [
                                        n("v-date-picker", {
                                            staticClass: "am-calendar-picker",
                                            attrs: {
                                                locale: e.$root.locale,
                                                mode: "single",
                                                id: "am-calendar-picker",
                                                "tint-color": "#d52878",
                                                "show-day-popover": !1,
                                                "is-expanded": !1,
                                                "is-inline": !0,
                                                "is-required": !0,
                                                formats: e.vCalendarFormats,
                                            },
                                            on: { input: e.selectDay },
                                            model: {
                                                value: e.selectedDate,
                                                callback: function (t) {
                                                    e.selectedDate = t;
                                                },
                                                expression: "selectedDate",
                                            },
                                        }),
                                        e._v(" "),
                                        n("full-calendar", {
                                            ref: "calendar",
                                            attrs: { events: e.events, config: e.config },
                                            on: { "event-selected": e.eventSelected, "event-render": e.eventRender, "event-drop": e.eventDrop, "event-drag-start": e.eventDragStart, "event-drag-stop": e.eventDragStop },
                                        }),
                                        e._v(" "),
                                        n(
                                            "div",
                                            {
                                                directives: [
                                                    {
                                                        name: "show",
                                                        rawName: "v-show",
                                                        value: e.appointmentsFetched && e.eventsFetched && !e.appointmentsFetchedFiltered && !e.eventsFetchedFiltered,
                                                        expression: "appointmentsFetched && eventsFetched && !appointmentsFetchedFiltered && !eventsFetchedFiltered",
                                                    },
                                                ],
                                                staticClass: "am-spinner am-section",
                                            },
                                            [n("img", { attrs: { src: e.$root.getUrl + "public/img/spinner.svg" } })]
                                        ),
                                    ],
                                    1
                                ),
                            ]),
                            e._v(" "),
                            "customer" !== e.$root.settings.role && e.canWriteAppointments()
                                ? n(
                                      "div",
                                      { staticClass: "am-button-new", attrs: { id: "am-button-new" } },
                                      [
                                          n("el-button", {
                                              attrs: { id: "am-plus-symbol", type: "primary", icon: "el-icon-plus" },
                                              on: {
                                                  click: function (t) {
                                                      return e.showDialogNewAppointment();
                                                  },
                                              },
                                          }),
                                      ],
                                      1
                                  )
                                : e._e(),
                            e._v(" "),
                            n(
                                "transition",
                                { attrs: { name: "slide" } },
                                [
                                    e.dialogEvent
                                        ? n(
                                              "el-dialog",
                                              {
                                                  staticClass: "am-side-dialog am-dialog-event",
                                                  attrs: { "show-close": !1, visible: e.dialogEvent },
                                                  on: {
                                                      "update:visible": function (t) {
                                                          e.dialogEvent = t;
                                                      },
                                                  },
                                              },
                                              [
                                                  n("dialog-event", {
                                                      attrs: { event: e.event, employees: e.options.entities.employees, locations: e.options.entities.locations, tags: e.options.entities.tags },
                                                      on: { closeDialog: e.closeDialogEvent, saveCallback: e.getCalendarOptions },
                                                  }),
                                              ],
                                              1
                                          )
                                        : e._e(),
                                ],
                                1
                            ),
                            e._v(" "),
                            n(
                                "transition",
                                { attrs: { name: "slide" } },
                                [
                                    e.dialogAppointment
                                        ? n(
                                              "el-dialog",
                                              {
                                                  staticClass: "am-side-dialog",
                                                  attrs: { visible: e.dialogAppointment, "show-close": !1 },
                                                  on: {
                                                      "update:visible": function (t) {
                                                          e.dialogAppointment = t;
                                                      },
                                                  },
                                              },
                                              [
                                                  n("dialog-appointment", {
                                                      attrs: { appointment: e.appointment, recurringAppointments: e.recurringAppointments, savedAppointment: e.savedAppointment, bookings: e.bookings, options: e.options },
                                                      on: {
                                                          sortBookings: e.sortBookings,
                                                          saveCallback: e.getCalendarOptions,
                                                          duplicateCallback: e.duplicateAppointmentCallback,
                                                          closeDialog: e.closeDialogAppointment,
                                                          showDialogNewCustomer: e.showDialogNewCustomer,
                                                          editPayment: e.editPayment,
                                                          openRecurringAppointment: e.openRecurringAppointment,
                                                      },
                                                  }),
                                              ],
                                              1
                                          )
                                        : e._e(),
                                ],
                                1
                            ),
                            e._v(" "),
                            n(
                                "transition",
                                { attrs: { name: "slide" } },
                                [
                                    e.dialogCustomer
                                        ? n(
                                              "el-dialog",
                                              {
                                                  staticClass: "am-side-dialog",
                                                  attrs: { size: "full", visible: e.dialogCustomer, "show-close": !1 },
                                                  on: {
                                                      "update:visible": function (t) {
                                                          e.dialogCustomer = t;
                                                      },
                                                  },
                                              },
                                              [
                                                  n("dialog-customer", {
                                                      attrs: { customer: e.customer },
                                                      on: {
                                                          saveCallback: e.saveCustomerCallback,
                                                          closeDialog: function (t) {
                                                              e.dialogCustomer = !1;
                                                          },
                                                      },
                                                  }),
                                              ],
                                              1
                                          )
                                        : e._e(),
                                ],
                                1
                            ),
                            e._v(" "),
                            n(
                                "transition",
                                { attrs: { name: "slide" } },
                                [
                                    e.dialogPayment
                                        ? n(
                                              "el-dialog",
                                              {
                                                  staticClass: "am-side-dialog am-dialog-coupon",
                                                  attrs: { visible: e.dialogPayment, "show-close": !1 },
                                                  on: {
                                                      "update:visible": function (t) {
                                                          e.dialogPayment = t;
                                                      },
                                                  },
                                              },
                                              [
                                                  n("dialog-payment", {
                                                      attrs: { modalData: e.selectedPaymentModalData, appointmentFetched: !0, bookingFetched: !0 },
                                                      on: {
                                                          closeDialogPayment: function (t) {
                                                              e.dialogPayment = !1;
                                                          },
                                                          updatePaymentCallback: e.updatePaymentCallback,
                                                      },
                                                  }),
                                              ],
                                              1
                                          )
                                        : e._e(),
                                ],
                                1
                            ),
                            e._v(" "),
                            n("el-col", { attrs: { md: 6 } }, [
                                n("a", { staticClass: "am-help-button", attrs: { href: "https://wpamelia.com/admin-calendar/", target: "_blank" } }, [
                                    n("i", { staticClass: "el-icon-question" }),
                                    e._v(" " + e._s(e.$root.labels.need_help) + "?\n      "),
                                ]),
                            ]),
                        ],
                        1
                    ),
                ]);
            },
            staticRenderFns: [],
        };
    },
    662: function (e, t, n) {
        var i = n(685)(n(991), n(1008), !1, null, null, null);
        e.exports = i.exports;
    },
    685: function (e, t) {
        e.exports = function (e, t, n, i, o, r) {
            var s,
                a = (e = e || {}),
                l = typeof e.default;
            ("object" !== l && "function" !== l) || ((s = e), (a = e.default));
            var c,
                u = "function" == typeof a ? a.options : a;
            if (
                (t && ((u.render = t.render), (u.staticRenderFns = t.staticRenderFns), (u._compiled = !0)),
                n && (u.functional = !0),
                o && (u._scopeId = o),
                r
                    ? ((c = function (e) {
                          (e = e || (this.$vnode && this.$vnode.ssrContext) || (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext)) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (e = __VUE_SSR_CONTEXT__),
                              i && i.call(this, e),
                              e && e._registeredComponents && e._registeredComponents.add(r);
                      }),
                      (u._ssrRegister = c))
                    : i && (c = i),
                c)
            ) {
                var d = u.functional,
                    p = d ? u.render : u.beforeCreate;
                d
                    ? ((u._injectStyles = c),
                      (u.render = function (e, t) {
                          return c.call(t), p(e, t);
                      }))
                    : (u.beforeCreate = p ? [].concat(p, c) : [c]);
            }
            return { esModule: s, exports: a, options: u };
        };
    },
    686: function (e, t, n) {
        "use strict";
        var i =
            "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;
                  };
        t.a = {
            data: function () {
                return {};
            },
            methods: {
                replaceExistingObjectProperties: function (e, t) {
                    var n = this;
                    Object.keys(e).forEach(function (o) {
                        null !== e[o] && "object" === i(e[o]) && o in t ? n.replaceExistingObjectProperties(e[o], t[o]) : o in t && (e[o] = t[o]);
                    });
                },
                addMissingObjectProperties: function (e, t) {
                    var n = this;
                    Object.keys(t).forEach(function (o) {
                        var r = !1;
                        o in e || ("object" === i(t[o]) ? ((e[o] = {}), (r = !0)) : ((e[o] = null), (r = !0))), null === t[o] || "object" !== i(t[o]) ? r && (e[o] = t[o]) : n.addMissingObjectProperties(e[o], t[o]);
                    });
                },
                scrollView: function (e, t, n) {
                    "undefined" != typeof jQuery && ((void 0 !== n && n) || jQuery(window).width() <= 600) && document.getElementById(e).scrollIntoView({ behavior: "smooth", block: t, inline: "nearest" });
                },
                scrollViewInModal: function (e) {
                    this.$nextTick(function () {
                        document.getElementById(e) && (document.querySelectorAll(".am-dialog-scrollable")[0].scrollTop = document.getElementById(e).offsetTop);
                    });
                },
                getUrlQueryParams: function (e) {
                    var t = e.indexOf("#") > 0 ? e.substring(0, e.indexOf("#")).split("?")[1] : e.split("?")[1];
                    if (t) {
                        var n = [],
                            i = {};
                        return (
                            t.split("&").forEach(function (e) {
                                (n = e.split("=")), (i[n[0]] = decodeURIComponent(n[1]).replace(/\+/g, " "));
                            }),
                            i
                        );
                    }
                },
                getUrlParams: function (e) {
                    var t = {};
                    if (-1 !== e.indexOf("?")) {
                        var n = [];
                        e.split("?")[1]
                            .split("&")
                            .forEach(function (e) {
                                (n = e.split("=")), (t[n[0]] = decodeURIComponent(n[1]).replace(/\+/g, " "));
                            });
                    }
                    return t;
                },
                removeURLParameter: function (e, t) {
                    var n = e.split("?");
                    if (n.length >= 2) {
                        for (var i = encodeURIComponent(t) + "=", o = n[1].split(/[&;]/g), r = o.length; r-- > 0; ) -1 !== o[r].lastIndexOf(i, 0) && o.splice(r, 1);
                        return (e = n[0] + (o.length > 0 ? "?" + o.join("&") : ""));
                    }
                    return e;
                },
                capitalizeFirstLetter: function (e) {
                    return e.charAt(0).toUpperCase() + e.slice(1);
                },
                trimProperty: function (e, t) {
                    e[t] = e[t].trim();
                },
            },
        };
    },
    687: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return { colors: ["1788FB", "4BBEC6", "FBC22D", "FA3C52", "D696B8", "689BCA", "26CC2B", "FD7E35", "E38587", "774DFB", "31CDF3", "6AB76C", "FD5FA1", "A697C5"], usedColors: [] };
            },
            methods: {
                inlineSVG: function () {
                    var e = n(693);
                    e.init({ svgSelector: "img.svg", initClass: "js-inlinesvg" });
                },
                inlineSVGCabinet: function () {
                    setTimeout(function () {
                        n(693).init({ svgSelector: "img.svg-cabinet", initClass: "js-inlinesvg" });
                    }, 100);
                },
                imageFromText: function (e) {
                    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
                        n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
                        i = this.getNameInitials(e),
                        o = Math.floor(Math.random() * this.colors.length),
                        r = this.colors[o];
                    return (
                        this.usedColors.push(this.colors[o]),
                        this.colors.splice(o, 1),
                        0 === this.colors.length && ((this.colors = this.usedColors), (this.usedColors = [])),
                        n
                            ? t.firstName
                                ? this.$root.getUrl + "public/img/default-employee.svg"
                                : t.latitude
                                ? this.$root.getUrl + "public/img/default-location.svg"
                                : this.$root.getUrl + "public/img/default-service.svg"
                            : location.protocol + "//via.placeholder.com/120/" + r + "/fff?text=" + i
                    );
                },
                pictureLoad: function (e, t) {
                    if (null !== e) {
                        var n = !0 === t ? e.firstName + " " + e.lastName : e.name;
                        if (void 0 !== n) return (e.pictureThumbPath = e.pictureThumbPath || this.imageFromText(n)), e.pictureThumbPath;
                    }
                },
                imageLoadError: function (e, t) {
                    var n = !0 === t ? e.firstName + " " + e.lastName : e.name;
                    void 0 !== n && (e.pictureThumbPath = this.imageFromText(n, e, !0));
                },
                getNameInitials: function (e) {
                    return e
                        .split(" ")
                        .map(function (e) {
                            return e.charAt(0);
                        })
                        .join("")
                        .toUpperCase()
                        .substring(0, 3)
                        .replace(/[^\w\s]/g, "");
                },
            },
        };
    },
    688: function (e, t, n) {
        "use strict";
        var i = n(706),
            o = n(343),
            r = Object.prototype.toString;
        function s(e) {
            return "[object Array]" === r.call(e);
        }
        function a(e) {
            return null !== e && "object" == typeof e;
        }
        function l(e) {
            return "[object Function]" === r.call(e);
        }
        function c(e, t) {
            if (null !== e && void 0 !== e)
                if (("object" == typeof e || s(e) || (e = [e]), s(e))) for (var n = 0, i = e.length; n < i; n++) t.call(null, e[n], n, e);
                else for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.call(null, e[o], o, e);
        }
        e.exports = {
            isArray: s,
            isArrayBuffer: function (e) {
                return "[object ArrayBuffer]" === r.call(e);
            },
            isBuffer: o,
            isFormData: function (e) {
                return "undefined" != typeof FormData && e instanceof FormData;
            },
            isArrayBufferView: function (e) {
                return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && e.buffer instanceof ArrayBuffer;
            },
            isString: function (e) {
                return "string" == typeof e;
            },
            isNumber: function (e) {
                return "number" == typeof e;
            },
            isObject: a,
            isUndefined: function (e) {
                return void 0 === e;
            },
            isDate: function (e) {
                return "[object Date]" === r.call(e);
            },
            isFile: function (e) {
                return "[object File]" === r.call(e);
            },
            isBlob: function (e) {
                return "[object Blob]" === r.call(e);
            },
            isFunction: l,
            isStream: function (e) {
                return a(e) && l(e.pipe);
            },
            isURLSearchParams: function (e) {
                return "undefined" != typeof URLSearchParams && e instanceof URLSearchParams;
            },
            isStandardBrowserEnv: function () {
                return ("undefined" == typeof navigator || "ReactNative" !== navigator.product) && "undefined" != typeof window && "undefined" != typeof document;
            },
            forEach: c,
            merge: function e() {
                var t = {};
                function n(n, i) {
                    "object" == typeof t[i] && "object" == typeof n ? (t[i] = e(t[i], n)) : (t[i] = n);
                }
                for (var i = 0, o = arguments.length; i < o; i++) c(arguments[i], n);
                return t;
            },
            extend: function (e, t, n) {
                return (
                    c(t, function (t, o) {
                        e[o] = n && "function" == typeof t ? i(t, n) : t;
                    }),
                    e
                );
            },
            trim: function (e) {
                return e.replace(/^\s*/, "").replace(/\s*$/, "");
            },
        };
    },
    689: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return {
                    currencies: [
                        { symbol: "$", name: "US Dollar", symbol_native: "$", code: "USD", iso: "us" },
                        { symbol: "€", name: "Euro", symbol_native: "€", code: "EUR", iso: "eu" },
                        { symbol: "£", name: "British Pound Sterling", symbol_native: "£", code: "GBP", iso: "gb" },
                        { symbol: "CA$", name: "Canadian Dollar", symbol_native: "$", code: "CAD", iso: "ca" },
                        { symbol: "FCFP", name: "CFP Franc", symbol_native: "FCFP", code: "XPF", iso: "fr" },
                        { symbol: "CHF", name: "Swiss Franc", symbol_native: "CHF", code: "CHF", iso: "ch" },
                        { symbol: "RUB", name: "Russian Ruble", symbol_native: "руб.", code: "RUB", iso: "ru" },
                        { symbol: "¥", name: "Japanese Yen", symbol_native: "￥", code: "JPY", iso: "jp" },
                        { symbol: "Af", name: "Afghan Afghani", symbol_native: "؋", code: "AFN", iso: "af" },
                        { symbol: "ALL", name: "Albanian Lek", symbol_native: "Lek", code: "ALL", iso: "al" },
                        { symbol: "DA", name: "Algerian Dinar", symbol_native: "د.ج.‏", code: "DZD", iso: "dz" },
                        { symbol: "AR$", name: "Argentine Peso", symbol_native: "$", code: "ARS", iso: "ar" },
                        { symbol: "AMD", name: "Armenian Dram", symbol_native: "դր.", code: "AMD", iso: "am" },
                        { symbol: "AU$", name: "Australian Dollar", symbol_native: "$", code: "AUD", iso: "au" },
                        { symbol: "man.", name: "Azerbaijani Manat", symbol_native: "ман.", code: "AZN", iso: "az" },
                        { symbol: "BD", name: "Bahraini Dinar", symbol_native: "د.ب.‏", code: "BHD", iso: "bh" },
                        { symbol: "Tk", name: "Bangladeshi Taka", symbol_native: "৳", code: "BDT", iso: "bd" },
                        { symbol: "BYR", name: "Belarusian Ruble", symbol_native: "BYR", code: "BYR", iso: "by" },
                        { symbol: "BZ$", name: "Belize Dollar", symbol_native: "$", code: "BZD", iso: "bz" },
                        { symbol: "Bs", name: "Bolivian Boliviano", symbol_native: "Bs", code: "BOB", iso: "bo" },
                        { symbol: "KM", name: "Bosnia-Herzegovina Convertible Mark", symbol_native: "KM", code: "BAM", iso: "ba" },
                        { symbol: "BWP", name: "Botswanan Pula", symbol_native: "P", code: "BWP", iso: "bw" },
                        { symbol: "R$", name: "Brazilian Real", symbol_native: "R$", code: "BRL", iso: "br" },
                        { symbol: "BN$", name: "Brunei Dollar", symbol_native: "$", code: "BND", iso: "bn" },
                        { symbol: "BGN", name: "Bulgarian Lev", symbol_native: "лв.", code: "BGN", iso: "bg" },
                        { symbol: "FBu", name: "Burundian Franc", symbol_native: "FBu", code: "BIF", iso: "bi" },
                        { symbol: "CFA", name: "CFA Franc BCEAO", symbol_native: "CFA", code: "XOF", iso: "auto" },
                        { symbol: "FCFA", name: "CFA Franc BEAC", symbol_native: "FCFA", code: "XAF", iso: "auto" },
                        { symbol: "KHR", name: "Cambodian Riel", symbol_native: "៛", code: "KHR", iso: "kh" },
                        { symbol: "CV$", name: "Cape Verdean Escudo", symbol_native: "CV$", code: "CVE", iso: "cv" },
                        { symbol: "CLP", name: "Chilean Peso", symbol_native: "$", code: "CLP", iso: "cl" },
                        { symbol: "CN¥", name: "Chinese Yuan", symbol_native: "CN¥", code: "CNY", iso: "cn" },
                        { symbol: "COP", name: "Colombian Peso", symbol_native: "$", code: "COP", iso: "co" },
                        { symbol: "CF", name: "Comorian Franc", symbol_native: "FC", code: "KMF", iso: "km" },
                        { symbol: "CDF", name: "Congolese Franc", symbol_native: "FrCD", code: "CDF", iso: "cd" },
                        { symbol: "₡", name: "Costa Rican Colón", symbol_native: "₡", code: "CRC", iso: "cr" },
                        { symbol: "kn", name: "Croatian Kuna", symbol_native: "kn", code: "HRK", iso: "hr" },
                        { symbol: "Kč", name: "Czech Republic Koruna", symbol_native: "Kč", code: "CZK", iso: "cz" },
                        { symbol: "Dkk", name: "Danish Krone", symbol_native: "kr", code: "DKK", iso: "dk" },
                        { symbol: "Fdj", name: "Djiboutian Franc", symbol_native: "Fdj", code: "DJF", iso: "dj" },
                        { symbol: "RD$", name: "Dominican Peso", symbol_native: "RD$", code: "DOP", iso: "do" },
                        { symbol: "EGP", name: "Egyptian Pound", symbol_native: "ج.م.‏", code: "EGP", iso: "eg" },
                        { symbol: "Nfk", name: "Eritrean Nakfa", symbol_native: "Nfk", code: "ERN", iso: "er" },
                        { symbol: "Ekr", name: "Estonian Kroon", symbol_native: "kr", code: "EEK", iso: "ee" },
                        { symbol: "Br", name: "Ethiopian Birr", symbol_native: "Br", code: "ETB", iso: "et" },
                        { symbol: "GEL", name: "Georgian Lari", symbol_native: "GEL", code: "GEL", iso: "ge" },
                        { symbol: "GH₵", name: "Ghanaian Cedi", symbol_native: "GH₵", code: "GHS", iso: "gh" },
                        { symbol: "GTQ", name: "Guatemalan Quetzal", symbol_native: "Q", code: "GTQ", iso: "gt" },
                        { symbol: "FG", name: "Guinean Franc", symbol_native: "FG", code: "GNF", iso: "gn" },
                        { symbol: "HNL", name: "Honduran Lempira", symbol_native: "L", code: "HNL", iso: "hn" },
                        { symbol: "HK$", name: "Hong Kong Dollar", symbol_native: "$", code: "HKD", iso: "hk" },
                        { symbol: "Ft", name: "Hungarian Forint", symbol_native: "Ft", code: "HUF", iso: "hu" },
                        { symbol: "kr", name: "Icelandic Króna", symbol_native: "kr", code: "ISK", iso: "is" },
                        { symbol: "INR", name: "Indian Rupee", symbol_native: "টকা", code: "INR", iso: "in" },
                        { symbol: "Rp", name: "Indonesian Rupiah", symbol_native: "Rp", code: "IDR", iso: "id" },
                        { symbol: "IRR", name: "Iranian Rial", symbol_native: "﷼", code: "IRR", iso: "ir" },
                        { symbol: "IQD", name: "Iraqi Dinar", symbol_native: "د.ع.‏", code: "IQD", iso: "iq" },
                        { symbol: "₪", name: "Israeli New Sheqel", symbol_native: "₪", code: "ILS", iso: "il" },
                        { symbol: "J$", name: "Jamaican Dollar", symbol_native: "$", code: "JMD", iso: "jm" },
                        { symbol: "JD", name: "Jordanian Dinar", symbol_native: "د.أ.‏", code: "JOD", iso: "jo" },
                        { symbol: "KZT", name: "Kazakhstani Tenge", symbol_native: "тңг.", code: "KZT", iso: "kz" },
                        { symbol: "Ksh", name: "Kenyan Shilling", symbol_native: "Ksh", code: "KES", iso: "ke" },
                        { symbol: "KD", name: "Kuwaiti Dinar", symbol_native: "د.ك.‏", code: "KWD", iso: "kw" },
                        { symbol: "Ls", name: "Latvian Lats", symbol_native: "Ls", code: "LVL", iso: "lv" },
                        { symbol: "LB£", name: "Lebanese Pound", symbol_native: "ل.ل.‏", code: "LBP", iso: "lb" },
                        { symbol: "LD", name: "Libyan Dinar", symbol_native: "د.ل.‏", code: "LYD", iso: "ly" },
                        { symbol: "Lt", name: "Lithuanian Litas", symbol_native: "Lt", code: "LTL", iso: "lt" },
                        { symbol: "MOP$", name: "Macanese Pataca", symbol_native: "MOP$", code: "MOP", iso: "mo" },
                        { symbol: "MKD", name: "Macedonian Denar", symbol_native: "MKD", code: "MKD", iso: "mk" },
                        { symbol: "MGA", name: "Malagasy Ariary", symbol_native: "MGA", code: "MGA", iso: "mg" },
                        { symbol: "RM", name: "Malaysian Ringgit", symbol_native: "RM", code: "MYR", iso: "my" },
                        { symbol: "MURs", name: "Mauritian Rupee", symbol_native: "MURs", code: "MUR", iso: "mu" },
                        { symbol: "MX$", name: "Mexican Peso", symbol_native: "$", code: "MXN", iso: "mx" },
                        { symbol: "MDL", name: "Moldovan Leu", symbol_native: "MDL", code: "MDL", iso: "md" },
                        { symbol: "MAD", name: "Moroccan Dirham", symbol_native: "د.م.‏", code: "MAD", iso: "ma" },
                        { symbol: "MTn", name: "Mozambican Metical", symbol_native: "MTn", code: "MZN", iso: "mz" },
                        { symbol: "MMK", name: "Myanma Kyat", symbol_native: "K", code: "MMK", iso: "mm" },
                        { symbol: "N$", name: "Namibian Dollar", symbol_native: "N$", code: "NAD", iso: "na" },
                        { symbol: "NPRs", name: "Nepalese Rupee", symbol_native: "नेरू", code: "NPR", iso: "np" },
                        { symbol: "NT$", name: "New Taiwan Dollar", symbol_native: "NT$", code: "TWD", iso: "tw" },
                        { symbol: "NZ$", name: "New Zealand Dollar", symbol_native: "$", code: "NZD", iso: "nz" },
                        { symbol: "C$", name: "Nicaraguan Córdoba", symbol_native: "C$", code: "NIO", iso: "ni" },
                        { symbol: "₦", name: "Nigerian Naira", symbol_native: "₦", code: "NGN", iso: "ng" },
                        { symbol: "kr", name: "Norwegian Krone", symbol_native: "kr", code: "NOK", iso: "no" },
                        { symbol: "OMR", name: "Omani Rial", symbol_native: "ر.ع.‏", code: "OMR", iso: "om" },
                        { symbol: "PKRs", name: "Pakistani Rupee", symbol_native: "₨", code: "PKR", iso: "pk" },
                        { symbol: "B/.", name: "Panamanian Balboa", symbol_native: "B/.", code: "PAB", iso: "pa" },
                        { symbol: "₲", name: "Paraguayan Guarani", symbol_native: "₲", code: "PYG", iso: "py" },
                        { symbol: "S/.", name: "Peruvian Nuevo Sol", symbol_native: "S/.", code: "PEN", iso: "pe" },
                        { symbol: "₱", name: "Philippine Peso", symbol_native: "₱", code: "PHP", iso: "ph" },
                        { symbol: "zł", name: "Polish Zloty", symbol_native: "zł", code: "PLN", iso: "pl" },
                        { symbol: "QR", name: "Qatari Rial", symbol_native: "ر.ق.‏", code: "QAR", iso: "qa" },
                        { symbol: "RON", name: "Romanian Leu", symbol_native: "RON", code: "RON", iso: "ro" },
                        { symbol: "RWF", name: "Rwandan Franc", symbol_native: "FR", code: "RWF", iso: "rw" },
                        { symbol: "SR", name: "Saudi Riyal", symbol_native: "ر.س.‏", code: "SAR", iso: "sa" },
                        { symbol: "rsd.", name: "Serbian Dinar", symbol_native: "дин.", code: "RSD", iso: "rs" },
                        { symbol: "S$", name: "Singapore Dollar", symbol_native: "$", code: "SGD", iso: "sg" },
                        { symbol: "Ssh", name: "Somali Shilling", symbol_native: "Ssh", code: "SOS", iso: "so" },
                        { symbol: "R", name: "South African Rand", symbol_native: "R", code: "ZAR", iso: "za" },
                        { symbol: "₩", name: "South Korean Won", symbol_native: "₩", code: "KRW", iso: "kr" },
                        { symbol: "₭", name: "Lao kip", symbol_native: "₭", code: "LAK", iso: "la" },
                        { symbol: "SLRs", name: "Sri Lankan Rupee", symbol_native: "SL Re", code: "LKR", iso: "lk" },
                        { symbol: "SDG", name: "Sudanese Pound", symbol_native: "SDG", code: "SDG", iso: "sd" },
                        { symbol: "kr", name: "Swedish Krona", symbol_native: "kr", code: "SEK", iso: "se" },
                        { symbol: "SY£", name: "Syrian Pound", symbol_native: "ل.س.‏", code: "SYP", iso: "sy" },
                        { symbol: "TSh", name: "Tanzanian Shilling", symbol_native: "TSh", code: "TZS", iso: "tz" },
                        { symbol: "฿", name: "Thai Baht", symbol_native: "฿", code: "THB", iso: "th" },
                        { symbol: "T$", name: "Tongan Paʻanga", symbol_native: "T$", code: "TOP", iso: "to" },
                        { symbol: "TT$", name: "Trinidad and Tobago Dollar", symbol_native: "$", code: "TTD", iso: "tt" },
                        { symbol: "DT", name: "Tunisian Dinar", symbol_native: "د.ت.‏", code: "TND", iso: "tn" },
                        { symbol: "TL", name: "Turkish Lira", symbol_native: "TL", code: "TRY", iso: "tr" },
                        { symbol: "USh", name: "Ugandan Shilling", symbol_native: "USh", code: "UGX", iso: "ug" },
                        { symbol: "₴", name: "Ukrainian Hryvnia", symbol_native: "₴", code: "UAH", iso: "ua" },
                        { symbol: "AED", name: "United Arab Emirates Dirham", symbol_native: "د.إ.‏", code: "AED", iso: "ae" },
                        { symbol: "$U", name: "Uruguayan Peso", symbol_native: "$", code: "UYU", iso: "uy" },
                        { symbol: "UZS", name: "Uzbekistan Som", symbol_native: "UZS", code: "UZS", iso: "uz" },
                        { symbol: "Bs.S.", name: "Venezuelan Bolívar", symbol_native: "Bs.S.", code: "VES", iso: "ve" },
                        { symbol: "₫", name: "Vietnamese Dong", symbol_native: "₫", code: "VND", iso: "vn" },
                        { symbol: "YR", name: "Yemeni Rial", symbol_native: "ر.ي.‏", code: "YER", iso: "ye" },
                        { symbol: "ZK", name: "Zambian Kwacha", symbol_native: "ZK", code: "ZMK", iso: "zm" },
                    ],
                    thousandSeparatorMap: { 1: ",", 2: ".", 3: " ", 4: " " },
                    decimalSeparatorMap: { 1: ".", 2: ",", 3: ".", 4: "," },
                };
            },
            methods: {
                getCurrencySymbol: function () {
                    var e = this;
                    return this.currencies.find(function (t) {
                        return t.code === e.$root.settings.payments.currency;
                    }).symbol;
                },
                getPriceThousandSeparator: function () {
                    return this.thousandSeparatorMap[this.$root.settings.payments.priceSeparator];
                },
                getPriceDecimalSeparator: function () {
                    return this.decimalSeparatorMap[this.$root.settings.payments.priceSeparator];
                },
                getPriceNumberOfDecimalPlaces: function () {
                    return this.$root.settings.payments.priceNumberOfDecimals;
                },
                getPricePrefix: function () {
                    return "after" === this.$root.settings.payments.priceSymbolPosition || "afterWithSpace" === this.$root.settings.payments.priceSymbolPosition
                        ? ""
                        : "before" === this.$root.settings.payments.priceSymbolPosition
                        ? this.getCurrencySymbol()
                        : this.getCurrencySymbol() + " ";
                },
                getPriceSuffix: function () {
                    return "before" === this.$root.settings.payments.priceSymbolPosition || "beforeWithSpace" === this.$root.settings.payments.priceSymbolPosition
                        ? ""
                        : "after" === this.$root.settings.payments.priceSymbolPosition
                        ? this.getCurrencySymbol()
                        : " " + this.getCurrencySymbol();
                },
                getFormattedPrice: function (e) {
                    var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1],
                        n = this.getPriceNumberOfDecimalPlaces(),
                        i = this.getPriceThousandSeparator(),
                        o = this.getPriceDecimalSeparator(),
                        r = this.getPricePrefix(),
                        s = this.getPriceSuffix(),
                        a = parseInt((e = Math.abs(+e || 0).toFixed(n))) + "",
                        l = a.length > 3 ? a.length % 3 : 0;
                    return (
                        (t ? r : "") +
                        (l ? a.substr(0, l) + i : "") +
                        a.substr(l).replace(/(\d{3})(?=\d)/g, "$1" + i) +
                        (n
                            ? o +
                              Math.abs(e - a)
                                  .toFixed(n)
                                  .slice(2)
                            : "") +
                        (t ? s : "")
                    );
                },
            },
            computed: {
                moneyComponentData: function () {
                    return { decimal: this.getPriceDecimalSeparator(), thousands: this.getPriceThousandSeparator(), prefix: this.getPricePrefix(), suffix: this.getPriceSuffix(), precision: this.getPriceNumberOfDecimalPlaces(), masked: !1 };
                },
            },
        };
    },
    690: function (e, t, n) {
        "use strict";
        var i = n(711);
        t.a = {
            mixins: [i.a],
            data: function () {
                return {};
            },
            methods: {
                getLocationById: function (e) {
                    return (
                        this.options.entities.locations.find(function (t) {
                            return t.id === e;
                        }) || null
                    );
                },
                getCustomerById: function (e) {
                    return (
                        this.options.entities.customers.find(function (t) {
                            return t.id === e;
                        }) || null
                    );
                },
                getProviderById: function (e) {
                    return (
                        this.options.entities.employees.find(function (t) {
                            return t.id === e;
                        }) || null
                    );
                },
                getServiceById: function (e) {
                    return (
                        this.options.entities.services.find(function (t) {
                            return t.id === e;
                        }) || null
                    );
                },
                getPackageById: function (e) {
                    return (
                        this.options.entities.packages.find(function (t) {
                            return t.id === e;
                        }) || null
                    );
                },
                getProviderService: function (e, t) {
                    var n = this.getProviderById(e).serviceList.find(function (e) {
                        return e.id === parseInt(t);
                    });
                    return n ? Object.assign(this.getServiceById(t), n) : null;
                },
                getServiceProviders: function (e, t) {
                    var n = this;
                    return void 0 !== t && t
                        ? this.options.entities.employees.filter(function (t) {
                              return (
                                  -1 !==
                                  t.serviceList
                                      .map(function (e) {
                                          return e.id;
                                      })
                                      .indexOf(e)
                              );
                          })
                        : this.options.entities.employees.filter(function (t) {
                              return (
                                  -1 !==
                                  t.serviceList
                                      .filter(function (e) {
                                          return n.isEmployeeService(t.id, e.id);
                                      })
                                      .map(function (e) {
                                          return e.id;
                                      })
                                      .indexOf(e)
                              );
                          });
                },
                getServiceLocations: function (e, t) {
                    var n = this,
                        i = [];
                    return (
                        this.options.entities.employees
                            .filter(function (t) {
                                return (
                                    -1 !==
                                    t.serviceList
                                        .map(function (e) {
                                            return e.id;
                                        })
                                        .indexOf(e)
                                );
                            })
                            .forEach(function (e) {
                                i = n
                                    .getProviderLocations(e.id, t)
                                    .map(function (e) {
                                        return e.id;
                                    })
                                    .concat(i);
                            }),
                        this.options.entities.locations.filter(function (e) {
                            return -1 !== i.indexOf(e.id);
                        })
                    );
                },
                getProviderLocations: function (e, t) {
                    var n = this,
                        i = [this.getProviderById(e).locationId];
                    if (e in this.options.entitiesRelations) for (var o in this.options.entitiesRelations[e]) this.options.entitiesRelations[e].hasOwnProperty(o) && (i = i.concat(this.options.entitiesRelations[e][o]));
                    return (
                        (i = i.filter(function (e, t, n) {
                            return n.indexOf(e) === t;
                        })),
                        (void 0 !== t && t
                            ? this.options.entities.locations
                            : this.options.entities.locations.filter(function (t) {
                                  return n.isEmployeeLocation(e, t.id);
                              })
                        ).filter(function (e) {
                            return -1 !== i.indexOf(e.id);
                        })
                    );
                },
                getLocationProviders: function (e, t) {
                    var n = this,
                        i = [];
                    return (
                        this.options.entities.employees.forEach(function (o) {
                            -1 !==
                                (void 0 !== t && t
                                    ? n.getProviderLocations(o.id).filter(function (e) {
                                          return n.isEmployeeLocation(o.id, e.id);
                                      })
                                    : n.getProviderLocations(o.id)
                                )
                                    .map(function (e) {
                                        return e.id;
                                    })
                                    .indexOf(e) && i.push(o.id);
                        }),
                        (i = i.filter(function (e, t, n) {
                            return n.indexOf(e) === t;
                        })),
                        this.options.entities.employees.filter(function (e) {
                            return -1 !== i.indexOf(e.id);
                        })
                    );
                },
                getServicesFromCategories: function (e) {
                    var t = [];
                    return (
                        e
                            .map(function (e) {
                                return e.serviceList;
                            })
                            .forEach(function (e) {
                                t = t.concat(e);
                            }),
                        t.sort(this.sortWithNull)
                    );
                },
                getCategoryServices: function (e) {
                    return this.options.entities.categories.find(function (t) {
                        return t.id === e;
                    }).serviceList;
                },
                getCustomerInfo: function (e) {
                    return "info" in e && e.info ? JSON.parse(e.info) : this.getCustomerById(e.customerId);
                },
                isEmployeeServiceLocation: function (e, t, n) {
                    return e in this.options.entitiesRelations && t in this.options.entitiesRelations[e] && -1 !== this.options.entitiesRelations[e][t].indexOf(n);
                },
                isEmployeeService: function (e, t) {
                    return e in this.options.entitiesRelations && t in this.options.entitiesRelations[e];
                },
                isEmployeeLocation: function (e, t) {
                    var n = !1;
                    if (e in this.options.entitiesRelations) for (var i in this.options.entitiesRelations[e]) this.options.entitiesRelations[e].hasOwnProperty(i) && -1 !== this.options.entitiesRelations[e][i].indexOf(t) && (n = !0);
                    return n;
                },
                getAvailableEntitiesIds: function (e, t) {
                    var n = this,
                        i = [],
                        o = [],
                        r = [],
                        s =
                            null !== t.categoryId
                                ? e.categories
                                      .find(function (e) {
                                          return e.id === t.categoryId;
                                      })
                                      .serviceList.map(function (e) {
                                          return e.id;
                                      })
                                : [];
                    if (
                        (null !== t.categoryId && 0 === s.length) ||
                        (null !== t.serviceId && null !== t.employeeId && !this.isEmployeeService(t.employeeId, t.serviceId)) ||
                        (null !== t.serviceId && null !== t.employeeId && null !== t.locationId && !this.isEmployeeServiceLocation(t.employeeId, t.serviceId, t.locationId))
                    )
                        return { services: [], locations: [], employees: [], categories: [] };
                    var a = function (e) {
                        if (!n.options.entitiesRelations.hasOwnProperty(e)) return "continue";
                        var a = parseInt(e);
                        if (
                            (null !== t.employeeId && t.employeeId !== a) ||
                            (null !== t.locationId && !n.isEmployeeLocation(a, t.locationId)) ||
                            (null !== t.serviceId && !n.isEmployeeService(a, t.serviceId)) ||
                            (null !== t.categoryId &&
                                0 ===
                                    s.filter(function (e) {
                                        return n.isEmployeeService(a, e);
                                    }).length) ||
                            (null !== t.categoryId &&
                                null !== t.locationId &&
                                0 ===
                                    s.filter(function (e) {
                                        return n.isEmployeeServiceLocation(a, e, t.locationId);
                                    }).length) ||
                            (null !== t.serviceId && null !== t.locationId && !n.isEmployeeServiceLocation(a, t.serviceId, t.locationId))
                        )
                            return "continue";
                        for (var l in (-1 === o.indexOf(a) && o.push(a), n.options.entitiesRelations[a]))
                            if (n.options.entitiesRelations[a].hasOwnProperty(l)) {
                                var c = parseInt(l);
                                (null !== t.serviceId && t.serviceId !== c) ||
                                    (null !== t.categoryId && -1 === s.indexOf(c)) ||
                                    (null !== t.locationId && !n.isEmployeeServiceLocation(a, c, t.locationId)) ||
                                    (-1 === i.indexOf(c) && i.push(c),
                                    n.options.entitiesRelations[a][c].length &&
                                        n.options.entitiesRelations[a][c].forEach(function (e) {
                                            (null !== t.locationId && t.locationId !== e) || (-1 === r.indexOf(e) && r.push(e));
                                        }));
                            }
                    };
                    for (var l in this.options.entitiesRelations) a(l);
                    return {
                        services: i,
                        locations: r,
                        employees: o,
                        categories: e.categories
                            .filter(function (e) {
                                return (
                                    e.serviceList
                                        .map(function (e) {
                                            return e.id;
                                        })
                                        .filter(function (e) {
                                            return -1 !== i.indexOf(e);
                                        }).length > 0
                                );
                            })
                            .map(function (e) {
                                return e.id;
                            }),
                    };
                },
                filterEntities: function (e, t) {
                    var n = this,
                        i = this.getAvailableEntitiesIds(e, t);
                    if (
                        ((this.options.entities.employees = e.employees.filter(function (e) {
                            return (
                                -1 !== i.employees.indexOf(e.id) &&
                                e.serviceList.filter(function (e) {
                                    return -1 !== i.services.indexOf(e.id);
                                }).length > 0
                            );
                        })),
                        (this.options.entities.categories = e.categories),
                        (this.options.entities.services = this.getServicesFromCategories(this.options.entities.categories).filter(function (e) {
                            return e.show && -1 !== i.services.indexOf(e.id);
                        })),
                        this.options.entities.services.forEach(function (e) {
                            e.extras.forEach(function (e) {
                                e.extraId = e.id;
                            });
                        }),
                        (this.options.entities.locations = e.locations.filter(function (e) {
                            return -1 !== i.locations.indexOf(e.id);
                        })),
                        (this.options.entities.customFields = e.customFields),
                        "packages" in e && (!("show" in t) || "services" !== t.show))
                    ) {
                        var o = e.packages
                                .filter(function (e) {
                                    return "visible" === e.status;
                                })
                                .filter(function (e) {
                                    return (
                                        e.bookable.filter(function (e) {
                                            return (
                                                -1 !==
                                                n.options.entities.services
                                                    .map(function (e) {
                                                        return e.id;
                                                    })
                                                    .indexOf(e.service.id)
                                            );
                                        }).length > 0
                                    );
                                }),
                            r = this.options.entities.locations.map(function (e) {
                                return e.id;
                            }),
                            s = this.options.entities.employees.map(function (e) {
                                return e.id;
                            }),
                            a = [];
                        if (
                            (o.forEach(function (t) {
                                var i = !1;
                                t.bookable.forEach(function (o) {
                                    ((0 === o.minimumScheduled && o.maximumScheduled > 0) || (o.minimumScheduled > 0 && 0 === o.maximumScheduled) || (o.minimumScheduled > 0 && o.maximumScheduled > 0)) && (i = !0);
                                    var l = o.providers.length;
                                    if (!e.locations.length || n.options.entities.locations.length) {
                                        var c = o.locations.length;
                                        !l ||
                                        ((o.providers = o.providers.filter(function (e) {
                                            return -1 !== s.indexOf(e.id) && c
                                                ? o.locations.filter(function (t) {
                                                      return n.isEmployeeServiceLocation(e.id, o.service.id, t.id);
                                                  }).length
                                                : !n.options.entities.locations.length ||
                                                      n.options.entities.locations.filter(function (t) {
                                                          return n.isEmployeeServiceLocation(e.id, o.service.id, t.id);
                                                      }).length;
                                        })),
                                        o.providers.length)
                                            ? c &&
                                              ((o.locations = o.locations.filter(function (e) {
                                                  return (
                                                      -1 !== r.indexOf(e.id) &&
                                                      (l
                                                          ? o.providers.filter(function (t) {
                                                                return n.isEmployeeServiceLocation(t.id, o.service.id, e.id);
                                                            }).length
                                                          : n.options.entities.employees.filter(function (t) {
                                                                return n.isEmployeeServiceLocation(t.id, o.service.id, e.id);
                                                            }).length)
                                                  );
                                              })),
                                              o.locations.length || a.push(t.id))
                                            : a.push(t.id);
                                    } else a.push(t.id);
                                }),
                                    (t.hasSlots = i);
                            }),
                            (this.options.entities.packages = o.filter(function (e) {
                                return -1 === a.indexOf(e.id);
                            })),
                            "show" in t && "packages" === t.show)
                        ) {
                            var l = [];
                            this.options.entities.packages.forEach(function (e) {
                                e.bookable.forEach(function (e) {
                                    l.push(e.service.categoryId);
                                });
                            }),
                                (this.options.entities.categories = this.options.entities.categories.filter(function (e) {
                                    return -1 !== l.indexOf(e.id);
                                }));
                        }
                    }
                },
                processEntities: function (e) {
                    (this.options.entitiesRelations = e.entitiesRelations),
                        this.options.isFrontEnd
                            ? ("packages" in e &&
                                  e.packages.length &&
                                  ((this.responseEntities.employees = e.employees),
                                  (this.responseEntities.categories = e.categories),
                                  (this.responseEntities.locations = e.locations),
                                  (this.responseEntities.customFields = e.customFields),
                                  (this.responseEntities.services = this.getServicesFromCategories(this.responseEntities.categories)),
                                  (this.responseEntities.packages = e.packages
                                      ? e.packages.filter(function (e) {
                                            return e.available;
                                        })
                                      : []),
                                  (e.packages = e.packages.filter(function (e) {
                                      return e.available;
                                  }))),
                              this.filterEntities(e, this.getShortCodeEntityIds()))
                            : ((this.options.entities.employees = e.employees),
                              (this.options.entities.categories = e.categories),
                              (this.options.entities.locations = e.locations),
                              (this.options.entities.customers = e.customers),
                              (this.options.entities.services = this.getServicesFromCategories(this.options.entities.categories)),
                              (this.options.entities.packages = e.packages),
                              (this.options.entities.customFields = e.customFields),
                              (this.options.entities.coupons = e.coupons),
                              this.options.entities.services.forEach(function (e) {
                                  e.extras.forEach(function (e) {
                                      e.extraId = e.id;
                                  });
                              }),
                              (this.options.availableEntitiesIds = this.getAvailableEntitiesIds(e, { categoryId: null, serviceId: null, employeeId: null, locationId: null }))),
                        "settings" in e && (this.options.entities.settings = e.settings),
                        (this.options.entities.tags = "tags" in e ? e.tags : []);
                },
                getShortCodeEntityIds: function () {
                    return this.$root.shortcodeData.booking
                        ? {
                              categoryId: "category" in this.$root.shortcodeData.booking ? this.$root.shortcodeData.booking.category : null,
                              serviceId: "service" in this.$root.shortcodeData.booking ? this.$root.shortcodeData.booking.service : null,
                              employeeId: "employee" in this.$root.shortcodeData.booking ? this.$root.shortcodeData.booking.employee : null,
                              locationId: "location" in this.$root.shortcodeData.booking ? this.$root.shortcodeData.booking.location : null,
                              show: "show" in this.$root.shortcodeData.booking ? this.$root.shortcodeData.booking.show : null,
                          }
                        : { categoryId: null, serviceId: null, employeeId: null, locationId: null, show: null };
                },
                entitiesLoaded: function () {
                    return "ameliaAppointmentEntities" in window || "ameliaEntities" in window;
                },
                fillCachedEntities: function (e) {
                    var t = this.getServicesFromCategories(e.categories);
                    e.employees.forEach(function (e) {
                        e.serviceList.forEach(function (e) {
                            Object.assign(
                                e,
                                t.find(function (t) {
                                    return t.id === e.id;
                                }),
                                { price: e.price, minCapacity: e.minCapacity, maxCapacity: e.maxCapacity }
                            );
                        });
                    }),
                        "packages" in e &&
                            e.packages.forEach(function (e) {
                                e.bookable.forEach(function (e) {
                                    e.service = t.find(function (t) {
                                        return t.id === e.service.id;
                                    });
                                });
                            });
                },
                fetchEntities: function (e, t) {
                    var n = this,
                        i = { params: { types: t.types } };
                    if (
                        (t.page ? (i.params.page = t.page) : "isFrontEnd" in t && t.isFrontEnd && (i.params.page = "booking"),
                        void 0 !== this.$store &&
                            void 0 !== this.$store.state.cabinet &&
                            "provider" === this.$store.state.cabinet.cabinetType &&
                            ((i = Object.assign(i, this.getAuthorizationHeaderObject())), Object.assign(i.params, { source: "cabinet-" + this.$store.state.cabinet.cabinetType })),
                        t.isPanel || (this.$root.hasApiCall && !this.entitiesLoaded()))
                    )
                        this.$http
                            .get(this.$root.getAjaxUrl + "/entities", i)
                            .then(function (i) {
                                (n.options.isFrontEnd = t.isFrontEnd),
                                    (window.ameliaAppointmentEntities = JSON.parse(JSON.stringify(i.data.data))),
                                    n.fillCachedEntities(window.ameliaAppointmentEntities),
                                    n.processEntities(window.ameliaAppointmentEntities),
                                    n.$root.useTranslations && n.translateEntities(window.ameliaAppointmentEntities);
                                e(!0);
                            })
                            .catch(function (t) {
                                console.log(t);
                                e(!1);
                            });
                    else
                        var o = setInterval(function () {
                            if (n.entitiesLoaded()) {
                                if ((clearInterval(o), (n.options.isFrontEnd = t.isFrontEnd), "ameliaEntities" in window)) {
                                    var i = JSON.parse(JSON.stringify(window.ameliaEntities));
                                    n.fillCachedEntities(i), n.processEntities(i), n.$root.useTranslations && n.translateEntities(i);
                                } else {
                                    var r = JSON.parse(JSON.stringify(window.ameliaAppointmentEntities));
                                    n.fillCachedEntities(r), n.processEntities(r);
                                }
                                e(!0);
                            }
                        }, 1e3);
                },
                getFilteredEntities: function (e, t, n) {
                    var i = this,
                        o = this.appointment && this.appointment.id && this.appointment[n] ? this.appointment[n] : null;
                    return (
                        this.options.entities[t].forEach(function (t) {
                            t.disabled = -1 === e.indexOf(t.id);
                        }),
                        this.options.entities[t].filter(function (e) {
                            return -1 !== i.options.availableEntitiesIds[t].indexOf(e.id) || (null !== o && o === e.id);
                        })
                    );
                },
            },
            computed: {
                visibleLocations: function () {
                    return this.options.entities.locations.filter(function (e) {
                        return "visible" === e.status;
                    });
                },
                visibleEmployees: function () {
                    return this.options.entities.employees.filter(function (e) {
                        return "visible" === e.status;
                    });
                },
                visibleCustomers: function () {
                    return this.options.entities.customers.filter(function (e) {
                        return "visible" === e.status;
                    });
                },
                visibleServices: function () {
                    return this.options.entities.services
                        .filter(function (e) {
                            return "visible" === e.status;
                        })
                        .sort(this.sortWithNull);
                },
                employeesFiltered: function () {
                    var e = this,
                        t = this.visibleEmployees.filter(function (t) {
                            return (
                                t.serviceList.filter(function (n) {
                                    return (
                                        "visible" === n.status &&
                                        (!e.appointment.serviceId || (e.isEmployeeService(t.id, n.id) && n.id === e.appointment.serviceId)) &&
                                        (!e.appointment.locationId || e.isEmployeeServiceLocation(t.id, n.id, e.appointment.locationId)) &&
                                        (!e.appointment.categoryId ||
                                            t.serviceList.filter(function (t) {
                                                return "visible" === t.status && t.categoryId === e.appointment.categoryId;
                                            }).length > 0)
                                    );
                                }).length > 0
                            );
                        });
                    return this.options.isFrontEnd
                        ? t
                        : this.getFilteredEntities(
                              t.map(function (e) {
                                  return e.id;
                              }),
                              "employees",
                              "providerId"
                          );
                },
                servicesFiltered: function () {
                    var e = this,
                        t = [];
                    if (this.appointment.providerId) {
                        var n = this.employeesFiltered.find(function (t) {
                            return t.id === e.appointment.providerId;
                        });
                        t =
                            void 0 !== n
                                ? n.serviceList
                                      .filter(function (e) {
                                          return "visible" === e.status;
                                      })
                                      .map(function (e) {
                                          return e.id;
                                      })
                                : [];
                    }
                    var i = this.visibleServices.filter(function (n) {
                        return !(
                            (e.appointment.providerId && -1 === t.indexOf(n.id)) ||
                            (e.appointment.locationId &&
                                !(
                                    e.employeesFiltered.filter(function (t) {
                                        return e.isEmployeeServiceLocation(t.id, n.id, e.appointment.locationId);
                                    }).length > 0
                                )) ||
                            (e.appointment.categoryId && n.categoryId !== e.appointment.categoryId)
                        );
                    });
                    return this.options.isFrontEnd
                        ? i
                        : this.getFilteredEntities(
                              i.map(function (e) {
                                  return e.id;
                              }),
                              "services",
                              "serviceId"
                          );
                },
                sortWithNull: function () {
                    return function (e, t) {
                        return e.position === t.position ? 0 : null === e.position ? 1 : null === t.position ? -1 : e.position < t.position ? -1 : 1;
                    };
                },
                locationsFiltered: function () {
                    var e = this,
                        t = [];
                    if (this.appointment.providerId) {
                        var n = this.employeesFiltered.find(function (t) {
                            return t.id === e.appointment.providerId;
                        });
                        t =
                            void 0 !== n
                                ? n.serviceList.filter(function (e) {
                                      return "visible" === e.status;
                                  })
                                : [];
                    }
                    var i = null;
                    this.appointment.categoryId &&
                        (i = this.categoriesFiltered.find(function (t) {
                            return t.id === e.appointment.categoryId;
                        }));
                    var o = this.visibleLocations.filter(function (n) {
                        return (
                            (!e.appointment.providerId ||
                                t.filter(function (t) {
                                    return e.isEmployeeServiceLocation(e.appointment.providerId, t.id, n.id);
                                }).length > 0) &&
                            (!e.appointment.serviceId ||
                                e.employeesFiltered.filter(function (t) {
                                    return e.isEmployeeServiceLocation(t.id, e.appointment.serviceId, n.id);
                                }).length > 0) &&
                            (!e.appointment.categoryId ||
                                (void 0 !== i &&
                                    e.employeesFiltered.filter(function (t) {
                                        return (
                                            t.serviceList.filter(function (o) {
                                                return "visible" === o.status && o.categoryId === i.id && e.isEmployeeServiceLocation(t.id, o.id, n.id);
                                            }).length > 0
                                        );
                                    }).length > 0))
                        );
                    });
                    return this.options.isFrontEnd
                        ? o
                        : this.getFilteredEntities(
                              o.map(function (e) {
                                  return e.id;
                              }),
                              "locations",
                              "locationId"
                          );
                },
                couponsFilteredService: function () {
                    var e = this,
                        t = [];
                    return this.options.entities.coupons &&
                        ((t = this.options.entities.coupons.filter(function (e) {
                            return e.serviceList.length > 0;
                        })),
                        this.appointment.serviceId)
                        ? t.filter(function (t) {
                              return t.serviceList.find(function (t) {
                                  return t.id === e.appointment.serviceId;
                              });
                          })
                        : t;
                },
                couponsFilteredEvent: function () {
                    var e = this,
                        t = [];
                    return this.options.entities.coupons &&
                        ((t = this.options.entities.coupons.filter(function (e) {
                            return e.eventList.length > 0;
                        })),
                        this.eventId)
                        ? t.filter(function (t) {
                              return t.eventList.find(function (t) {
                                  return t.id === e.eventId;
                              });
                          })
                        : t;
                },
                categoriesFiltered: function () {
                    var e = this,
                        t = null;
                    this.appointment.providerId &&
                        (t = this.employeesFiltered.find(function (t) {
                            return t.id === e.appointment.providerId;
                        }));
                    var n = null;
                    this.appointment.serviceId &&
                        (n = this.servicesFiltered.find(function (t) {
                            return t.id === e.appointment.serviceId;
                        }));
                    var i = this.options.entities.categories.filter(function (i) {
                        return (
                            (!e.appointment.serviceId || (void 0 !== n && n.categoryId === i.id)) &&
                            (!e.appointment.locationId ||
                                i.serviceList.filter(function (t) {
                                    return (
                                        "visible" === t.status &&
                                        e.employeesFiltered.filter(function (n) {
                                            return e.isEmployeeServiceLocation(n.id, t.id, e.appointment.locationId);
                                        }).length > 0
                                    );
                                }).length > 0) &&
                            (!e.appointment.providerId ||
                                (void 0 !== t &&
                                    -1 !==
                                        t.serviceList
                                            .filter(function (t) {
                                                return "visible" === t.status && e.isEmployeeService(e.appointment.providerId, t.id);
                                            })
                                            .map(function (e) {
                                                return e.categoryId;
                                            })
                                            .indexOf(i.id)))
                        );
                    });
                    return this.options.isFrontEnd
                        ? i
                        : this.getFilteredEntities(
                              i.map(function (e) {
                                  return e.id;
                              }),
                              "categories",
                              "categoryId"
                          );
                },
            },
        };
    },
    691: function (e, t, n) {
        "use strict";
        t.a = {
            methods: {
                notify: function (e, t, n, i) {
                    var o = this;
                    void 0 === i && (i = ""),
                        setTimeout(function () {
                            o.$notify({ customClass: i, title: e, message: t, type: n, offset: 50 });
                        }, 700);
                },
            },
        };
    },
    692: function (e, t, n) {
        "use strict";
        var i = n(0),
            o = n.n(i);
        t.a = {
            data: function () {
                return { timeSelectOptions: { start: "00:00", end: "23:59", step: this.secondsToTimeSelectStep(this.getTimeSlotLength()) } };
            },
            methods: {
                convertDateTimeRangeDifferenceToMomentDuration: function (e, t) {
                    return o.a.duration(o()(t).diff(o()(e)));
                },
                convertSecondsToMomentDuration: function (e) {
                    return o.a.duration(e, "seconds");
                },
                momentDurationToNiceDurationWithUnit: function (e) {
                    var t = Math.floor(e.asMinutes() / 60),
                        n = e.asMinutes() % 60;
                    return (t ? t + this.$root.labels.h + " " : "") + " " + (n ? n + this.$root.labels.min : "");
                },
                secondsToNiceDuration: function (e) {
                    var t = Math.floor(e / 3600),
                        n = (e / 60) % 60;
                    return (t ? t + this.$root.labels.h + " " : "") + " " + (n ? n + this.$root.labels.min : "");
                },
                secondsToTimeSelectStep: function (e) {
                    var t = Math.floor(e / 3600),
                        n = Math.floor(e / 60) - 60 * t;
                    return e < 0 ? (t || "00") + ":" + ((n < 9 ? "0" + n : n) || "00") : ((t <= 9 ? "0" + t : t) || "00") + ":" + ((n <= 9 ? "0" + n : n) || "00");
                },
                getTimeSlotLength: function () {
                    return this.$root.settings.general.timeSlotLength;
                },
                getPossibleDurationsInSeconds: function (e) {
                    for (var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 84600, n = [], i = this.getTimeSlotLength(); i <= t; i += this.getTimeSlotLength()) n.push(i);
                    return (
                        e &&
                            -1 === n.indexOf(e) &&
                            (n.push(e),
                            n.sort(function (e, t) {
                                return e - t;
                            })),
                        n
                    );
                },
                getTimeSelectOptionsWithLimits: function (e, t) {
                    return { start: "00:00", end: "24:00", step: this.secondsToTimeSelectStep(this.getTimeSlotLength()), minTime: e, maxTime: t };
                },
                getStringTimeInSeconds: function (e) {
                    return o()(e, "HH:mm").diff(o()().startOf("day"), "seconds");
                },
            },
        };
    },
    693: function (e, t, n) {
        (function (n) {
            var i, o, r, s;
            (s = void 0 !== n ? n : this.window || this.global),
                (o = []),
                (i = (function (e) {
                    var t,
                        n = {},
                        i = !!document.querySelector && !!e.addEventListener,
                        o = { initClass: "js-inlinesvg", svgSelector: "img.svg" },
                        r = function () {
                            var e = {},
                                t = !1,
                                n = 0,
                                i = arguments.length;
                            "[object Boolean]" === Object.prototype.toString.call(arguments[0]) && ((t = arguments[0]), n++);
                            for (
                                var o = function (n) {
                                    for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t && "[object Object]" === Object.prototype.toString.call(n[i]) ? (e[i] = r(!0, e[i], n[i])) : (e[i] = n[i]));
                                };
                                i > n;
                                n++
                            ) {
                                o(arguments[n]);
                            }
                            return e;
                        },
                        s = function (e) {
                            var n = document.querySelectorAll(t.svgSelector),
                                i = (function (e, t) {
                                    return function () {
                                        return --e < 1 ? t.apply(this, arguments) : void 0;
                                    };
                                })(n.length, e);
                            Array.prototype.forEach.call(n, function (e, n) {
                                var o = e.src || e.getAttribute("data-src"),
                                    r = e.attributes,
                                    s = new XMLHttpRequest();
                                s.open("GET", o, !0),
                                    (s.onload = function () {
                                        if (s.status >= 200 && s.status < 400) {
                                            var n = new DOMParser().parseFromString(s.responseText, "text/xml").getElementsByTagName("svg")[0];
                                            if (
                                                (n.removeAttribute("xmlns:a"),
                                                n.removeAttribute("width"),
                                                n.removeAttribute("height"),
                                                n.removeAttribute("x"),
                                                n.removeAttribute("y"),
                                                n.removeAttribute("enable-background"),
                                                n.removeAttribute("xmlns:xlink"),
                                                n.removeAttribute("xml:space"),
                                                n.removeAttribute("version"),
                                                Array.prototype.slice.call(r).forEach(function (e) {
                                                    "src" !== e.name && "alt" !== e.name && n.setAttribute(e.name, e.value);
                                                }),
                                                n.classList ? n.classList.add("inlined-svg") : (n.className += " inlined-svg"),
                                                n.setAttribute("role", "img"),
                                                r.longdesc)
                                            ) {
                                                var o = document.createElementNS("http://www.w3.org/2000/svg", "desc"),
                                                    a = document.createTextNode(r.longdesc.value);
                                                o.appendChild(a), n.insertBefore(o, n.firstChild);
                                            }
                                            if (r.alt) {
                                                n.setAttribute("aria-labelledby", "title");
                                                var l = document.createElementNS("http://www.w3.org/2000/svg", "title"),
                                                    c = document.createTextNode(r.alt.value);
                                                l.appendChild(c), n.insertBefore(l, n.firstChild);
                                            }
                                            e.parentNode.replaceChild(n, e), i(t.svgSelector);
                                        } else console.error("There was an error retrieving the source of the SVG.");
                                    }),
                                    (s.onerror = function () {
                                        console.error("There was an error connecting to the origin server.");
                                    }),
                                    s.send();
                            });
                        };
                    return (
                        (n.init = function (e, n) {
                            i && ((t = r(o, e || {})), s(n || function () {}), (document.documentElement.className += " " + t.initClass));
                        }),
                        n
                    );
                })(s)),
                void 0 === (r = "function" == typeof i ? i.apply(t, o) : i) || (e.exports = r);
        }.call(t, n(39)));
    },
    694: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return {};
            },
            methods: {
                isCustomFieldVisible: function (e, t, n) {
                    switch (t) {
                        case "appointment":
                            return (
                                -1 !==
                                e.services
                                    .map(function (e) {
                                        return e.id;
                                    })
                                    .indexOf(n)
                            );
                        case "event":
                            return (
                                -1 !==
                                e.events
                                    .map(function (e) {
                                        return e.id;
                                    })
                                    .indexOf(n)
                            );
                    }
                    return !1;
                },
                setBookingCustomFields: function () {
                    if (this.appointment && this.appointment.bookings && this.appointment.bookings.length)
                        for (var e = 0; e < this.appointment.bookings.length; e++)
                            for (var t = 0; t < this.options.entities.customFields.length; t++)
                                if (
                                    (null === this.appointment.bookings[e].customFields && (this.appointment.bookings[e].customFields = {}),
                                    void 0 !== this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id] &&
                                        (this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].type = this.options.entities.customFields[t].type),
                                    void 0 !== this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id] &&
                                        "datepicker" === this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].type &&
                                        this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].value &&
                                        (this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].value = this.$moment(
                                            this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id].value
                                        ).toDate()),
                                    "content" !== this.options.entities.customFields[t].type && void 0 === this.appointment.bookings[e].customFields[this.options.entities.customFields[t].id])
                                ) {
                                    var n = "";
                                    "checkbox" === this.options.entities.customFields[t].type && (n = []),
                                        "datepicker" === this.options.entities.customFields[t].type && (n = null),
                                        this.$set(this.appointment.bookings[e].customFields, this.options.entities.customFields[t].id, {
                                            label: this.options.entities.customFields[t].label,
                                            value: n,
                                            type: this.options.entities.customFields[t].type,
                                        });
                                }
                },
                getCustomFieldOptions: function (e) {
                    return e.map(function (e) {
                        return e.label;
                    });
                },
                getCustomFieldValue: function (e, t) {
                    return Array.isArray(e) ? e.join("; ") : "datepicker" !== t ? e : e ? this.getFrontedFormattedDate(e) : null;
                },
                getCustomFieldFileURL: function (e, t, n) {
                    return this.$root.getAjaxUrl + "/fields/" + e + "/" + t + "/" + n + "&source=cabinet-provider";
                },
            },
        };
    },
    695: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return { screenWidth: window.innerWidth };
            },
            mounted: function () {
                var e = this;
                window.onresize = function () {
                    e.screenWidth = window.innerWidth;
                };
            },
        };
    },
    696: function (e, t, n) {
        var i = n(685)(n(703), n(704), !1, null, null, null);
        e.exports = i.exports;
    },
    697: function (e, t, n) {
        "use strict";
        (function (t) {
            var i = n(688),
                o = n(724),
                r = { "Content-Type": "application/x-www-form-urlencoded" };
            function s(e, t) {
                !i.isUndefined(e) && i.isUndefined(e["Content-Type"]) && (e["Content-Type"] = t);
            }
            var a,
                l = {
                    adapter: ("undefined" != typeof XMLHttpRequest ? (a = n(707)) : void 0 !== t && (a = n(707)), a),
                    transformRequest: [
                        function (e, t) {
                            return (
                                o(t, "Content-Type"),
                                i.isFormData(e) || i.isArrayBuffer(e) || i.isBuffer(e) || i.isStream(e) || i.isFile(e) || i.isBlob(e)
                                    ? e
                                    : i.isArrayBufferView(e)
                                    ? e.buffer
                                    : i.isURLSearchParams(e)
                                    ? (s(t, "application/x-www-form-urlencoded;charset=utf-8"), e.toString())
                                    : i.isObject(e)
                                    ? (s(t, "application/json;charset=utf-8"), JSON.stringify(e))
                                    : e
                            );
                        },
                    ],
                    transformResponse: [
                        function (e) {
                            if ("string" == typeof e)
                                try {
                                    e = JSON.parse(e);
                                } catch (e) {}
                            return e;
                        },
                    ],
                    timeout: 0,
                    xsrfCookieName: "XSRF-TOKEN",
                    xsrfHeaderName: "X-XSRF-TOKEN",
                    maxContentLength: -1,
                    validateStatus: function (e) {
                        return e >= 200 && e < 300;
                    },
                };
            (l.headers = { common: { Accept: "application/json, text/plain, */*" } }),
                i.forEach(["delete", "get", "head"], function (e) {
                    l.headers[e] = {};
                }),
                i.forEach(["post", "put", "patch"], function (e) {
                    l.headers[e] = i.merge(r);
                }),
                (e.exports = l);
        }.call(t, n(142)));
    },
    699: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return {
                    defaultFormsData: {
                        stepByStepForm: {
                            selectServiceForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                                itemsStatic: { serviceHeadingFormField: { labels: { please_select_service: { value: "", translations: { x: "" } } }, visibility: !0 } },
                                itemsDraggable: {
                                    serviceFormField: { labels: { service: { value: "", translations: { x: "" } } } },
                                    servicePackageFormField: { labels: { package_available: { value: "", translations: { x: "" } }, package_discount_text: { value: "", translations: { x: "" } } }, visibility: !0 },
                                    locationFormField: { labels: { locations: { value: "", translations: { x: "" } } }, visibility: !0, required: !1 },
                                    employeeFormField: { labels: { employee: { value: "", translations: { x: "" } }, any_employee: { value: "", translations: { x: "" } } }, visibility: !0, required: !1, anyEmployeeVisible: !0 },
                                    bringingFormField: { labels: { bringing_anyone_with_you: { value: "", translations: { x: "" } }, number_of_additional_persons: { value: "", translations: { x: "" } } } },
                                    addExtraFormField: {
                                        labels: {
                                            add_extra: { value: "", translations: { x: "" } },
                                            extra_colon: { value: "", translations: { x: "" } },
                                            qty_colon: { value: "", translations: { x: "" } },
                                            duration_colon: { value: "", translations: { x: "" } },
                                            price_colon: { value: "", translations: { x: "" } },
                                        },
                                        visibility: !0,
                                    },
                                },
                            },
                            calendarDateTimeForm: {
                                globalSettings: { formTextColor: "#ffffff", formGradientColor1: "#d52878", formGradientColor2: "#0454A2", formGradientAngle: 135 },
                                itemsStatic: {
                                    timeZoneFormField: { visibility: !1 },
                                    calendarHeadingFormField: { labels: { pick_date_and_time: { value: "", translations: { x: "" } } }, visibility: !0 },
                                    calendarAppointmentFormField: { endDateVisibility: !0 },
                                    recurringSwitchFormField: { labels: { recurring_active: { value: "", translations: { x: "" } } }, visibility: !0 },
                                },
                            },
                            recurringSetupForm: {
                                globalSettings: {
                                    formTextColor: "#ffffff",
                                    formGradientColor1: "#d52878",
                                    formGradientColor2: "#0454A2",
                                    formGradientAngle: 135,
                                    formInputColor: "rgba(0, 0, 0, 0)",
                                    formInputTextColor: "#ffffff",
                                    formDropdownColor: "#ffffff",
                                    formDropdownTextColor: "#354052",
                                },
                                itemsStatic: {
                                    recurringSetupHeadingFormField: { labels: { recurring_active: { value: "", translations: { x: "" } } }, visibility: !0 },
                                    recurringSettingsFormField: {
                                        labels: {
                                            recurring_repeat: { value: "", translations: { x: "" } },
                                            recurring_every: { value: "", translations: { x: "" } },
                                            recurring_on: { value: "", translations: { x: "" } },
                                            recurring_until: { value: "", translations: { x: "" } },
                                            recurring_times: { value: "", translations: { x: "" } },
                                        },
                                    },
                                },
                            },
                            recurringDatesForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                                itemsStatic: {
                                    recurringDatesHeadingFormField: { labels: { recurring_appointments: { value: "", translations: { x: "" } }, recurring_edit: { value: "", translations: { x: "" } } }, visibility: !0 },
                                    recurringInfoFormField: { labels: { date: { value: "", translations: { x: "" } }, time: { value: "", translations: { x: "" } } } },
                                },
                            },
                            selectPackageForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                                itemsStatic: {
                                    packageHeadingFormField: { labels: { please_select_package: { value: "", translations: { x: "" } } }, visibility: !0 },
                                    packageFormField: { labels: { package_colon: { value: "", translations: { x: "" } } } },
                                },
                            },
                            packageInfoForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052" },
                                itemsStatic: {
                                    packageInfoFormField: { labels: { package_discount_text: { value: "", translations: { x: "" } }, employee: { value: "", translations: { x: "" } }, employees: { value: "", translations: { x: "" } } } },
                                },
                            },
                            packageSetupForm: {
                                globalSettings: {
                                    formTextColor: "#ffffff",
                                    formGradientColor1: "#d52878",
                                    formGradientColor2: "#0454A2",
                                    formGradientAngle: 135,
                                    formInputColor: "rgba(0, 0, 0, 0.1)",
                                    formInputTextColor: "#ffffff",
                                    formDropdownColor: "#ffffff",
                                    formDropdownTextColor: "#354052",
                                },
                                itemsStatic: {
                                    packageEmployeeFormField: { labels: { employee: { value: "", translations: { x: "" } }, any_employee: { value: "", translations: { x: "" } } }, anyEmployeeVisible: !0 },
                                    packageLocationFormField: { labels: { location: { value: "", translations: { x: "" } } } },
                                    packageRulesFormField: { labels: { package_min_book: { value: "", translations: { x: "" } }, package_min_book_plural: { value: "", translations: { x: "" } } } },
                                    packageCalendarFormField: { labels: { no_selected_slot_requirements: { value: "", translations: { x: "" } } }, endDateVisibility: !0, timeZoneVisibility: !0 },
                                },
                            },
                            packageListForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052" },
                                itemsStatic: {
                                    packageListFormField: {
                                        labels: {
                                            package_list_overview: { value: "", translations: { x: "" } },
                                            appointments: { value: "", translations: { x: "" } },
                                            appointment: { value: "", translations: { x: "" } },
                                            date: { value: "", translations: { x: "" } },
                                            time: { value: "", translations: { x: "" } },
                                            employee: { value: "", translations: { x: "" } },
                                            location: { value: "", translations: { x: "" } },
                                        },
                                    },
                                },
                            },
                            confirmBookingForm: {
                                appointment: {
                                    globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                                    itemsStatic: {
                                        confirmServiceHeadingFormField: { visibility: !0 },
                                        confirmHeadingDataFormField: {
                                            labels: {
                                                employee: { value: "", translations: { x: "" } },
                                                date_colon: { value: "", translations: { x: "" } },
                                                time_colon: { value: "", translations: { x: "" } },
                                                location_colon: { value: "", translations: { x: "" } },
                                            },
                                            visibility: !0,
                                        },
                                        recurringStringFormField: { labels: { recurring_active: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        paymentMethodFormField: { labels: { payment_method_colon: { value: "", translations: { x: "" } } } },
                                        stripeCardFormField: { labels: { credit_or_debit_card_colon: { value: "", translations: { x: "" } } } },
                                    },
                                    itemsDraggable: {
                                        firstNameFormField: { labels: { first_name_colon: { value: "", translations: { x: "" } } } },
                                        lastNameFormField: { labels: { last_name_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: !0 },
                                        emailFormField: { labels: { email_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: this.$root.settings.general.requiredEmailField },
                                        phoneFormField: { labels: { phone_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: this.$root.settings.general.requiredPhoneNumberField },
                                    },
                                },
                                package: {
                                    globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                                    itemsStatic: {
                                        paymentMethodFormField: { labels: { payment_method_colon: { value: "", translations: { x: "" } } } },
                                        stripeCardFormField: { labels: { credit_or_debit_card_colon: { value: "", translations: { x: "" } } } },
                                    },
                                    itemsDraggable: {
                                        firstNameFormField: { labels: { first_name_colon: { value: "", translations: { x: "" } } } },
                                        lastNameFormField: { labels: { last_name_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: !0 },
                                        emailFormField: { labels: { email_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: this.$root.settings.general.requiredEmailField },
                                        phoneFormField: { labels: { phone_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: this.$root.settings.general.requiredPhoneNumberField },
                                    },
                                },
                            },
                            congratulationsForm: {
                                appointment: {
                                    globalSettings: {
                                        formBackgroundColor: "#ffffff",
                                        formTextColor: "#354052",
                                        formInputColor: "#ffffff",
                                        formInputTextColor: "#354052",
                                        formDropdownColor: "#ffffff",
                                        formDropdownTextColor: "#354052",
                                        formImageColor: "#d52878",
                                    },
                                    itemsStatic: {
                                        congratulationsHeadingFormField: { labels: { congratulations: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        congratulationsImageFormField: { visibility: !0 },
                                        congratulationsMessagesFormField: { labels: { booking_completed_approved: { value: "", translations: { x: "" } }, booking_completed_pending: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        addToCalendarFormField: { addToCalendarVisibility: !0 },
                                    },
                                },
                                package: {
                                    globalSettings: {
                                        formBackgroundColor: "#ffffff",
                                        formTextColor: "#354052",
                                        formInputColor: "#ffffff",
                                        formInputTextColor: "#354052",
                                        formDropdownColor: "#ffffff",
                                        formDropdownTextColor: "#354052",
                                        formImageColor: "#d52878",
                                    },
                                    itemsStatic: {
                                        congratulationsHeadingFormField: { labels: { congratulations: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        congratulationsImageFormField: { visibility: !0 },
                                        congratulationsMessagesFormField: { labels: { booking_completed_approved: { value: "", translations: { x: "" } }, booking_completed_pending: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        addToCalendarFormField: { addToCalendarVisibility: !0 },
                                    },
                                },
                            },
                        },
                        eventListForm: {
                            globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                            eventFilterForm: { itemsStatic: { eventFilterFormField: { labels: { event_type: { value: "", translations: { x: "" } } } } } },
                            eventDetailsForm: {
                                itemsStatic: {
                                    eventDetailsFormField: {
                                        labels: {
                                            open: { value: "", translations: { x: "" } },
                                            closed: { value: "", translations: { x: "" } },
                                            canceled: { value: "", translations: { x: "" } },
                                            full: { value: "", translations: { x: "" } },
                                            upcoming: { value: "", translations: { x: "" } },
                                            event_capacity: { value: "", translations: { x: "" }, visibility: !0 },
                                            location: { visibility: !0 },
                                            event_date: { visibility: !0 },
                                            time_zone: { visibility: !1 },
                                            event_free: { value: "", translations: { x: "" } },
                                            event_price: { visibility: !0 },
                                            event_about: { value: "", translations: { x: "" } },
                                            event_book: { value: "", translations: { x: "" }, visibility: !0 },
                                            event_book_persons: { value: "", translations: { x: "" } },
                                        },
                                    },
                                },
                            },
                            confirmBookingForm: {
                                event: {
                                    itemsStatic: {
                                        paymentMethodFormField: { labels: { payment_method_colon: { value: "", translations: { x: "" } } } },
                                        stripeCardFormField: { labels: { credit_or_debit_card_colon: { value: "", translations: { x: "" } } } },
                                    },
                                    itemsDraggable: {
                                        firstNameFormField: { labels: { first_name_colon: { value: "", translations: { x: "" } } } },
                                        lastNameFormField: { labels: { last_name_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: !0 },
                                        emailFormField: { labels: { email_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: this.$root.settings.general.requiredEmailField },
                                        phoneFormField: { labels: { phone_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: this.$root.settings.general.requiredPhoneNumberField },
                                    },
                                },
                            },
                            congratulationsForm: {
                                event: {
                                    itemsStatic: {
                                        congratulationsHeadingFormField: { labels: { congratulations: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        congratulationsImageFormField: { visibility: !0 },
                                        congratulationsMessagesFormField: { labels: { booking_completed_approved: { value: "", translations: { x: "" } }, booking_completed_pending: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        addToCalendarFormField: { addToCalendarVisibility: !0 },
                                    },
                                },
                            },
                        },
                        catalogForm: {
                            catalogListForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052" },
                                labels: { categories: { value: "", translations: { x: "" }, visibility: !0 }, services_lower: { value: "", translations: { x: "" }, visibility: !0 } },
                                parts: { service_images_thumbs: { visibility: !0 } },
                            },
                            categoryListForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052" },
                                labels: {
                                    back: { value: "", translations: { x: "" } },
                                    view_more: { value: "", translations: { x: "" } },
                                    price_colon: { value: "", translations: { x: "" } },
                                    services: { value: "", translations: { x: "" } },
                                    package: { value: "", translations: { x: "" } },
                                    package_discount_text: { value: "", translations: { x: "" } },
                                },
                                parts: {
                                    service_badge: { visibility: !0 },
                                    service_price: { visibility: !0 },
                                    service_employees_list: { visibility: !0 },
                                    package_badge: { visibility: !0 },
                                    package_price: { visibility: !0 },
                                    package_services_list: { visibility: !0 },
                                },
                            },
                            categoryServiceForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052" },
                                labels: {
                                    capacity_colon: { value: "", translations: { x: "" } },
                                    duration_colon: { value: "", translations: { x: "" } },
                                    description: { value: "", translations: { x: "" } },
                                    service_info: { value: "", translations: { x: "" } },
                                    category_colon: { value: "", translations: { x: "" } },
                                    extras: { value: "", translations: { x: "" } },
                                    price_colon: { value: "", translations: { x: "" } },
                                    maximum_quantity_colon: { value: "", translations: { x: "" } },
                                    description_colon: { value: "", translations: { x: "" } },
                                    employees: { value: "", translations: { x: "" } },
                                },
                                parts: { capacity_colon: { visibility: !0 }, duration_colon: { visibility: !0 }, description: { visibility: !0 }, service_info: { visibility: !0 }, extras: { visibility: !0 }, employees: { visibility: !0 } },
                            },
                            categoryPackageForm: { globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052" }, parts: { package_rules_description: { visibility: !0 }, selected_services: { visibility: !0 } } },
                            selectServiceForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                                itemsStatic: { serviceHeadingFormField: { labels: { book_appointment: { value: "", translations: { x: "" } } }, visibility: !0 } },
                                itemsDraggable: {
                                    locationFormField: { labels: { locations: { value: "", translations: { x: "" } } }, visibility: !0, required: !1 },
                                    employeeFormField: { labels: { employee: { value: "", translations: { x: "" } }, any_employee: { value: "", translations: { x: "" } } }, visibility: !0, required: !1, anyEmployeeVisible: !0 },
                                    bringingFormField: { labels: { bringing_anyone_with_you: { value: "", translations: { x: "" } }, number_of_additional_persons: { value: "", translations: { x: "" } } } },
                                    addExtraFormField: {
                                        labels: {
                                            add_extra: { value: "", translations: { x: "" } },
                                            extra_colon: { value: "", translations: { x: "" } },
                                            qty_colon: { value: "", translations: { x: "" } },
                                            duration_colon: { value: "", translations: { x: "" } },
                                            price_colon: { value: "", translations: { x: "" } },
                                        },
                                        visibility: !0,
                                    },
                                },
                            },
                            calendarDateTimeForm: {
                                globalSettings: { formTextColor: "#ffffff", formGradientColor1: "#d52878", formGradientColor2: "#0454A2", formGradientAngle: 135 },
                                itemsStatic: {
                                    timeZoneFormField: { visibility: !1 },
                                    calendarHeadingFormField: { labels: { pick_date_and_time: { value: "", translations: { x: "" } } }, visibility: !0 },
                                    calendarAppointmentFormField: { endDateVisibility: !0 },
                                    recurringSwitchFormField: { labels: { recurring_active: { value: "", translations: { x: "" } } }, visibility: !0 },
                                },
                            },
                            recurringSetupForm: {
                                globalSettings: {
                                    formTextColor: "#ffffff",
                                    formGradientColor1: "#d52878",
                                    formGradientColor2: "#0454A2",
                                    formGradientAngle: 135,
                                    formInputColor: "rgba(0, 0, 0, 0)",
                                    formInputTextColor: "#ffffff",
                                    formDropdownColor: "#ffffff",
                                    formDropdownTextColor: "#354052",
                                },
                                itemsStatic: {
                                    recurringSetupHeadingFormField: { labels: { recurring_active: { value: "", translations: { x: "" } } }, visibility: !0 },
                                    recurringSettingsFormField: {
                                        labels: {
                                            recurring_repeat: { value: "", translations: { x: "" } },
                                            recurring_every: { value: "", translations: { x: "" } },
                                            recurring_on: { value: "", translations: { x: "" } },
                                            recurring_until: { value: "", translations: { x: "" } },
                                            recurring_times: { value: "", translations: { x: "" } },
                                        },
                                    },
                                },
                            },
                            recurringDatesForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                                itemsStatic: {
                                    recurringDatesHeadingFormField: { labels: { recurring_appointments: { value: "", translations: { x: "" } }, recurring_edit: { value: "", translations: { x: "" } } }, visibility: !0 },
                                    recurringInfoFormField: { labels: { date: { value: "", translations: { x: "" } }, time: { value: "", translations: { x: "" } } } },
                                },
                            },
                            packageSetupForm: {
                                globalSettings: {
                                    formTextColor: "#ffffff",
                                    formGradientColor1: "#d52878",
                                    formGradientColor2: "#0454A2",
                                    formGradientAngle: 135,
                                    formInputColor: "rgba(0, 0, 0, 0.1)",
                                    formInputTextColor: "#ffffff",
                                    formDropdownColor: "#ffffff",
                                    formDropdownTextColor: "#354052",
                                },
                                itemsStatic: {
                                    packageEmployeeFormField: { labels: { employee: { value: "", translations: { x: "" } }, any_employee: { value: "", translations: { x: "" } } }, anyEmployeeVisible: !0 },
                                    packageLocationFormField: { labels: { location: { value: "", translations: { x: "" } } } },
                                    packageRulesFormField: { labels: { package_min_book: { value: "", translations: { x: "" } }, package_min_book_plural: { value: "", translations: { x: "" } } } },
                                    packageCalendarFormField: { labels: { no_selected_slot_requirements: { value: "", translations: { x: "" } } }, endDateVisibility: !0, timeZoneVisibility: !0 },
                                },
                            },
                            packageListForm: {
                                globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052" },
                                itemsStatic: {
                                    packageListFormField: {
                                        labels: {
                                            appointments: { value: "", translations: { x: "" } },
                                            appointment: { value: "", translations: { x: "" } },
                                            date: { value: "", translations: { x: "" } },
                                            time: { value: "", translations: { x: "" } },
                                            employee: { value: "", translations: { x: "" } },
                                            location: { value: "", translations: { x: "" } },
                                        },
                                    },
                                },
                            },
                            confirmBookingForm: {
                                appointment: {
                                    globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                                    itemsStatic: {
                                        confirmServiceHeadingFormField: { visibility: !0 },
                                        confirmHeadingDataFormField: {
                                            labels: {
                                                employee: { value: "", translations: { x: "" } },
                                                date_colon: { value: "", translations: { x: "" } },
                                                time_colon: { value: "", translations: { x: "" } },
                                                location_colon: { value: "", translations: { x: "" } },
                                            },
                                            visibility: !0,
                                        },
                                        recurringStringFormField: { labels: { recurring_active: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        paymentMethodFormField: { labels: { payment_method_colon: { value: "", translations: { x: "" } } } },
                                        stripeCardFormField: { labels: { credit_or_debit_card_colon: { value: "", translations: { x: "" } } } },
                                    },
                                    itemsDraggable: {
                                        firstNameFormField: { labels: { first_name_colon: { value: "", translations: { x: "" } } } },
                                        lastNameFormField: { labels: { last_name_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: !0 },
                                        emailFormField: { labels: { email_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: this.$root.settings.general.requiredEmailField },
                                        phoneFormField: { labels: { phone_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: this.$root.settings.general.requiredPhoneNumberField },
                                    },
                                },
                                package: {
                                    globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                                    itemsStatic: {
                                        paymentMethodFormField: { labels: { payment_method_colon: { value: "", translations: { x: "" } } } },
                                        stripeCardFormField: { labels: { credit_or_debit_card_colon: { value: "", translations: { x: "" } } } },
                                    },
                                    itemsDraggable: {
                                        firstNameFormField: { labels: { first_name_colon: { value: "", translations: { x: "" } } } },
                                        lastNameFormField: { labels: { last_name_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: !0 },
                                        emailFormField: { labels: { email_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: this.$root.settings.general.requiredEmailField },
                                        phoneFormField: { labels: { phone_colon: { value: "", translations: { x: "" } } }, visibility: !0, required: this.$root.settings.general.requiredPhoneNumberField },
                                    },
                                },
                            },
                            congratulationsForm: {
                                appointment: {
                                    globalSettings: {
                                        formBackgroundColor: "#ffffff",
                                        formTextColor: "#354052",
                                        formInputColor: "#ffffff",
                                        formInputTextColor: "#354052",
                                        formDropdownColor: "#ffffff",
                                        formDropdownTextColor: "#354052",
                                        formImageColor: "#d52878",
                                    },
                                    itemsStatic: {
                                        congratulationsHeadingFormField: { labels: { congratulations: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        congratulationsImageFormField: { visibility: !0 },
                                        congratulationsMessagesFormField: { labels: { booking_completed_approved: { value: "", translations: { x: "" } }, booking_completed_pending: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        addToCalendarFormField: { addToCalendarVisibility: !0 },
                                    },
                                },
                                package: {
                                    globalSettings: {
                                        formBackgroundColor: "#ffffff",
                                        formTextColor: "#354052",
                                        formInputColor: "#ffffff",
                                        formInputTextColor: "#354052",
                                        formDropdownColor: "#ffffff",
                                        formDropdownTextColor: "#354052",
                                        formImageColor: "#d52878",
                                    },
                                    itemsStatic: {
                                        congratulationsHeadingFormField: { labels: { congratulations: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        congratulationsImageFormField: { visibility: !0 },
                                        congratulationsMessagesFormField: { labels: { booking_completed_approved: { value: "", translations: { x: "" } }, booking_completed_pending: { value: "", translations: { x: "" } } }, visibility: !0 },
                                        addToCalendarFormField: { addToCalendarVisibility: !0 },
                                    },
                                },
                            },
                        },
                    },
                };
            },
            methods: {
                getTranslatedForms: function (e) {
                    var t = this,
                        n = this.$root.settings.customization.forms ? this.$root.settings.customization.forms : this.defaultFormsData,
                        i = window.localeLanguage[0];
                    return (
                        Object.keys(n[e]).forEach(function (o) {
                            "labels" in n[e][o]
                                ? t.getTranslatedLabels(n[e][o], i)
                                : "confirmBookingForm" !== o && "globalSettings" !== o && "congratulationsForm" !== o
                                ? (n[e][o] = t.getTranslatedFormScreen(n[e][o], e, o, i))
                                : ("confirmBookingForm" !== o && "congratulationsForm" !== o) ||
                                  Object.keys(n[e][o]).forEach(function (r) {
                                      n[e][o][r] = t.getTranslatedFormScreen(n[e][o][r], e, o, i);
                                  });
                        }),
                        n
                    );
                },
                getTranslatedFormScreen: function (e, t, n, i) {
                    var o = this;
                    return (
                        ["itemsDraggable", "itemsStatic"].forEach(function (t) {
                            t in e &&
                                Object.keys(e[t]).forEach(function (n) {
                                    o.getTranslatedLabels(e[t][n], i);
                                });
                        }),
                        e
                    );
                },
                getTranslatedLabels: function (e, t) {
                    "labels" in e &&
                        Object.keys(e.labels).forEach(function (n) {
                            "translations" in e.labels[n] && t in e.labels[n].translations && (e.labels[n].value = e.labels[n].translations[t]);
                        });
                },
                rgbaToHex: function (e) {
                    if (e.indexOf("#") < 0) {
                        var t = e.indexOf(",") > -1 ? "," : " ";
                        for (var n in ((e = e.substr(5).split(")")[0].split(t)).indexOf("/") > -1 && e.splice(3, 1), e)) {
                            var i = e[n];
                            if (i.indexOf("%") > -1) {
                                var o = i.substr(0, i.length - 1) / 100;
                                e[n] = n < 3 ? Math.round(255 * o) : o;
                            }
                        }
                        var r = (+e[0]).toString(16),
                            s = (+e[1]).toString(16),
                            a = (+e[2]).toString(16),
                            l = Math.round(255 * +e[3]).toString(16);
                        return 1 === r.length && (r = "0" + r), 1 === s.length && (s = "0" + s), 1 === a.length && (a = "0" + a), 1 === l.length && (l = "0" + l), "#" + r + s + a + l;
                    }
                    return e;
                },
                oppositeColor: function (e) {
                    var t = this.rgbaToHex(e);
                    return (t = t.substring(1).slice(0, 6)), (t = parseInt(t, 16)), (t = "#" + (t = ("000000" + (t = (t ^= 16777215).toString(16))).slice(-6)));
                },
            },
        };
    },
    700: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return {
                    countries: [
                        { id: 1, iso: "af", nicename: "Afghanistan", phonecode: 93, format: "070 123 4567" },
                        { id: 2, iso: "al", nicename: "Albania", phonecode: 355, format: "066 123 4567" },
                        { id: 3, iso: "dz", nicename: "Algeria", phonecode: 213, format: "0551 23 45 67" },
                        { id: 4, iso: "as", nicename: "American Samoa", phonecode: 1, format: "(684) 733 1234" },
                        { id: 5, iso: "ad", nicename: "Andorra", phonecode: 376, format: "312 345" },
                        { id: 6, iso: "ao", nicename: "Angola", phonecode: 244, format: "923 123 456" },
                        { id: 7, iso: "ai", nicename: "Anguilla", phonecode: 1, format: "(264) 235 1234" },
                        { id: 8, iso: "ag", nicename: "Antigua and Barbuda", phonecode: 1, format: "(268) 464 1234" },
                        { id: 9, iso: "ar", nicename: "Argentina", phonecode: 54, format: "9 (11) 1234 567" },
                        { id: 10, iso: "am", nicename: "Armenia", phonecode: 374, format: "077 123 456" },
                        { id: 11, iso: "aw", nicename: "Aruba", phonecode: 297, format: "560 1234" },
                        { id: 12, iso: "au", nicename: "Australia", phonecode: 61, format: "0412 345 678" },
                        { id: 13, iso: "at", nicename: "Austria", phonecode: 43, format: "0664 123456" },
                        { id: 14, iso: "az", nicename: "Azerbaijan", phonecode: 994, format: "040 123 45 67" },
                        { id: 15, iso: "bs", nicename: "Bahamas", phonecode: 1, format: "(242) 359 1234" },
                        { id: 16, iso: "bh", nicename: "Bahrain", phonecode: 973, format: "3600 1234" },
                        { id: 17, iso: "bd", nicename: "Bangladesh", phonecode: 880, format: "018 1234 5678" },
                        { id: 18, iso: "bb", nicename: "Barbados", phonecode: 1, format: "(246) 250 1234" },
                        { id: 19, iso: "by", nicename: "Belarus", phonecode: 375, format: "029 491 1911" },
                        { id: 20, iso: "be", nicename: "Belgium", phonecode: 32, format: "0470 123 456" },
                        { id: 21, iso: "bz", nicename: "Belize", phonecode: 501, format: "622 1234" },
                        { id: 22, iso: "bj", nicename: "Benin", phonecode: 229, format: "90 123 456" },
                        { id: 23, iso: "bm", nicename: "Bermuda", phonecode: 1, format: "(441) 370 1234" },
                        { id: 24, iso: "bt", nicename: "Bhutan", phonecode: 975, format: "17 123 456" },
                        { id: 25, iso: "bo", nicename: "Bolivia", phonecode: 591, format: "7 123 4567" },
                        { id: 26, iso: "ba", nicename: "Bosnia and Herzegovina", phonecode: 387, format: "061 123 456" },
                        { id: 27, iso: "bw", nicename: "Botswana", phonecode: 267, format: "71 123 456" },
                        { id: 28, iso: "br", nicename: "Brazil", phonecode: 55, format: "(11) 9 1234 5678" },
                        { id: 29, iso: "vg", nicename: "British Virgin Islands", phonecode: 1, format: "(284) 300 1234" },
                        { id: 30, iso: "bn", nicename: "Brunei", phonecode: 673, format: "712 3456" },
                        { id: 31, iso: "bg", nicename: "Bulgaria", phonecode: 359, format: "087 123 4567" },
                        { id: 32, iso: "bf", nicename: "Burkina Faso", phonecode: 226, format: "70 12 34 56" },
                        { id: 33, iso: "bi", nicename: "Burundi", phonecode: 257, format: "79 56 12 34" },
                        { id: 34, iso: "kh", nicename: "Cambodia", phonecode: 855, format: "091 234 567" },
                        { id: 35, iso: "cm", nicename: "Cameroon", phonecode: 237, format: "6 71 23 45 67" },
                        { id: 36, iso: "ca", nicename: "Canada", phonecode: 1, format: "(204) 123 4567" },
                        { id: 37, iso: "cv", nicename: "Cape Verde", phonecode: 238, format: "991 12 34" },
                        { id: 38, iso: "ky", nicename: "Cayman Islands", phonecode: 1, format: "(345) 323 1234" },
                        { id: 39, iso: "cf", nicename: "Central African Republic", phonecode: 236, format: "70 01 23 45" },
                        { id: 40, iso: "td", nicename: "Chad", phonecode: 235, format: "63 01 23 45" },
                        { id: 41, iso: "cl", nicename: "Chile", phonecode: 56, format: "09 6123 4567" },
                        { id: 42, iso: "cn", nicename: "China", phonecode: 86, format: "131 2345 6789" },
                        { id: 43, iso: "co", nicename: "Colombia", phonecode: 57, format: "321 1234567" },
                        { id: 44, iso: "km", nicename: "Comoros", phonecode: 269, format: "321 23 45" },
                        { id: 45, iso: "cd", nicename: "Congo (DRC)", phonecode: 243, format: "0991 234 567" },
                        { id: 46, iso: "cg", nicename: "Congo (Republic)", phonecode: 242, format: "06 123 4567" },
                        { id: 47, iso: "ck", nicename: "Cook Islands", phonecode: 682, format: "71 234" },
                        { id: 48, iso: "cr", nicename: "Costa Rica", phonecode: 506, format: "8312 3456" },
                        { id: 49, iso: "ci", nicename: "Cote D'Ivoire", phonecode: 225, format: "01 23 45 67" },
                        { id: 50, iso: "hr", nicename: "Croatia", phonecode: 385, format: "091 234 5678" },
                        { id: 51, iso: "cu", nicename: "Cuba", phonecode: 53, format: "05 1234567" },
                        { id: 57, iso: "cy", nicename: "Cyprus", phonecode: 357, format: "96 123456" },
                        { id: 58, iso: "cz", nicename: "Czech Republic", phonecode: 420, format: "601 123 456" },
                        { id: 59, iso: "dk", nicename: "Denmark", phonecode: 45, format: "20 12 34 56" },
                        { id: 60, iso: "dj", nicename: "Djibouti", phonecode: 253, format: "77 83 10 01" },
                        { id: 61, iso: "dm", nicename: "Dominica", phonecode: 1, format: "(767) 225 1234" },
                        { id: 62, iso: "do", nicename: "Dominican Republic", phonecode: 1, format: "(809) 234 5678" },
                        { id: 63, iso: "ec", nicename: "Ecuador", phonecode: 593, format: "099 123 4567" },
                        { id: 64, iso: "eg", nicename: "Egypt", phonecode: 20, format: "0100 123 4567" },
                        { id: 65, iso: "sv", nicename: "El Salvador", phonecode: 503, format: "7012 3456" },
                        { id: 66, iso: "gq", nicename: "Equatorial Guinea", phonecode: 240, format: "222 123 456" },
                        { id: 67, iso: "er", nicename: "Eritrea", phonecode: 291, format: "07 123 456" },
                        { id: 68, iso: "ee", nicename: "Estonia", phonecode: 372, format: "5123 4567" },
                        { id: 69, iso: "et", nicename: "Ethiopia", phonecode: 251, format: "091 123 4567" },
                        { id: 70, iso: "fk", nicename: "Falkland Islands (Malvinas)", phonecode: 500, format: "51234" },
                        { id: 71, iso: "fo", nicename: "Faroe Islands", phonecode: 298, format: "211234" },
                        { id: 72, iso: "fj", nicename: "Fiji", phonecode: 679, format: "701 2345" },
                        { id: 73, iso: "fi", nicename: "Finland", phonecode: 358, format: "041 2345678" },
                        { id: 74, iso: "fr", nicename: "France", phonecode: 33, format: "06 12 34 56 78" },
                        { id: 75, iso: "gf", nicename: "French Guiana", phonecode: 594, format: "0694 20 12 34" },
                        { id: 76, iso: "pf", nicename: "French Polynesia", phonecode: 689, format: "87 12 34 56" },
                        { id: 77, iso: "ga", nicename: "Gabon", phonecode: 241, format: "06 03 12 34" },
                        { id: 78, iso: "gm", nicename: "Gambia", phonecode: 220, format: "301 2345" },
                        { id: 79, iso: "ge", nicename: "Georgia", phonecode: 995, format: "555 12 34 56" },
                        { id: 80, iso: "de", nicename: "Germany", phonecode: 49, format: "01512 3456789" },
                        { id: 81, iso: "gh", nicename: "Ghana", phonecode: 233, format: "023 123 4567" },
                        { id: 82, iso: "gi", nicename: "Gibraltar", phonecode: 350, format: "57123456" },
                        { id: 83, iso: "gr", nicename: "Greece", phonecode: 30, format: "691 234 5678" },
                        { id: 84, iso: "gl", nicename: "Greenland", phonecode: 299, format: "22 12 34" },
                        { id: 85, iso: "gp", nicename: "Guadeloupe", phonecode: 590, format: "690 123 456" },
                        { id: 87, iso: "gu", nicename: "Guam", phonecode: 1, format: "(671) 300 1234" },
                        { id: 88, iso: "gt", nicename: "Guatemala", phonecode: 502, format: "5123 4567" },
                        { id: 89, iso: "gg", nicename: "Guernsey", phonecode: 44, format: "07781 123456" },
                        { id: 90, iso: "gn", nicename: "Guinea", phonecode: 224, format: "601 12 34 56" },
                        { id: 91, iso: "gw", nicename: "Guinea-Bissau", phonecode: 245, format: "955 012 345" },
                        { id: 92, iso: "gy", nicename: "Guyana", phonecode: 592, format: "609 1234" },
                        { id: 93, iso: "ht", nicename: "Haiti", phonecode: 509, format: "34 10 1234" },
                        { id: 94, iso: "hn", nicename: "Honduras", phonecode: 504, format: "9123 4567" },
                        { id: 95, iso: "hk", nicename: "Hong Kong", phonecode: 852, format: "5123 4567" },
                        { id: 96, iso: "hu", nicename: "Hungary", phonecode: 36, format: "(20) 123 4567" },
                        { id: 97, iso: "is", nicename: "Iceland", phonecode: 354, format: "611 1234" },
                        { id: 98, iso: "in", nicename: "India", phonecode: 91, format: "099876 54321" },
                        { id: 99, iso: "id", nicename: "Indonesia", phonecode: 62, format: "0812 345 678" },
                        { id: 100, iso: "ir", nicename: "Iran", phonecode: 98, format: "0912 345 6789" },
                        { id: 101, iso: "iq", nicename: "Iraq", phonecode: 964, format: "0791 234 5678" },
                        { id: 102, iso: "ie", nicename: "Ireland", phonecode: 353, format: "085 012 3456" },
                        { id: 103, iso: "im", nicename: "Isle of Man", phonecode: 44, format: "07924 123456" },
                        { id: 104, iso: "il", nicename: "Israel", phonecode: 972, format: "050 123 4567" },
                        { id: 105, iso: "it", nicename: "Italy", phonecode: 39, format: "312 345 6789" },
                        { id: 106, iso: "jm", nicename: "Jamaica", phonecode: 1, format: "(876) 210 1234" },
                        { id: 107, iso: "jp", nicename: "Japan", phonecode: 81, format: "090 1234 5678" },
                        { id: 108, iso: "je", nicename: "Jersey", phonecode: 44, format: "07797 123456" },
                        { id: 109, iso: "jo", nicename: "Jordan", phonecode: 962, format: "07 9012 3456" },
                        { id: 110, iso: "kz", nicename: "Kazakhstan", phonecode: 7, format: "(771) 123 4567" },
                        { id: 111, iso: "ke", nicename: "Kenya", phonecode: 254, format: "0712 123456" },
                        { id: 112, iso: "ki", nicename: "Kiribati", phonecode: 686, format: "72012345" },
                        { id: 241, iso: "xk", nicename: "Kosovo", phonecode: 383, format: "044 1234567" },
                        { id: 113, iso: "kw", nicename: "Kuwait", phonecode: 965, format: "500 12345" },
                        { id: 114, iso: "kg", nicename: "Kyrgyzstan", phonecode: 996, format: "0700 123 456" },
                        { id: 115, iso: "la", nicename: "Laos", phonecode: 856, format: "020 23 123 456" },
                        { id: 116, iso: "lv", nicename: "Latvia", phonecode: 371, format: "21 234 567" },
                        { id: 117, iso: "lb", nicename: "Lebanon", phonecode: 961, format: "71 123 456" },
                        { id: 118, iso: "ls", nicename: "Lesotho", phonecode: 266, format: "5012 3456" },
                        { id: 119, iso: "lr", nicename: "Liberia", phonecode: 231, format: "077 012 3456" },
                        { id: 120, iso: "ly", nicename: "Libya", phonecode: 218, format: "091 2345678" },
                        { id: 121, iso: "li", nicename: "Liechtenstein", phonecode: 423, format: "660 234 567" },
                        { id: 122, iso: "lt", nicename: "Lithuania", phonecode: 370, format: "612 345 67" },
                        { id: 123, iso: "lu", nicename: "Luxembourg", phonecode: 352, format: "628 123 456" },
                        { id: 124, iso: "mo", nicename: "Macao", phonecode: 853, format: "6612 3456" },
                        { id: 125, iso: "mk", nicename: "Macedonia (FYROM)", phonecode: 389, format: "072 345 678" },
                        { id: 126, iso: "mg", nicename: "Madagascar", phonecode: 261, format: "032 12 345 67" },
                        { id: 127, iso: "mw", nicename: "Malawi", phonecode: 265, format: "0991 23 45 67" },
                        { id: 128, iso: "my", nicename: "Malaysia", phonecode: 60, format: "012 345 6789" },
                        { id: 129, iso: "mv", nicename: "Maldives", phonecode: 960, format: "771 2345" },
                        { id: 130, iso: "ml", nicename: "Mali", phonecode: 223, format: "65 01 23 45" },
                        { id: 131, iso: "mt", nicename: "Malta", phonecode: 356, format: "9696 1234" },
                        { id: 132, iso: "mh", nicename: "Marshall Islands", phonecode: 692, format: "235 1234" },
                        { id: 133, iso: "mq", nicename: "Martinique", phonecode: 596, format: "0696 20 12 34" },
                        { id: 134, iso: "mr", nicename: "Mauritania", phonecode: 222, format: "22 12 34 56" },
                        { id: 135, iso: "mu", nicename: "Mauritius", phonecode: 230, format: "5251 2345" },
                        { id: 136, iso: "yt", nicename: "Mayotte", phonecode: 269, format: "0639 12 34 56" },
                        { id: 137, iso: "mx", nicename: "Mexico", phonecode: 52, format: "044 222 123 4567" },
                        { id: 138, iso: "fm", nicename: "Micronesia", phonecode: 691, format: "350 1234" },
                        { id: 139, iso: "md", nicename: "Moldova", phonecode: 373, format: "0621 12 345" },
                        { id: 140, iso: "mc", nicename: "Monaco", phonecode: 377, format: "06 12 34 56 78" },
                        { id: 141, iso: "mn", nicename: "Mongolia", phonecode: 976, format: "8812 3456" },
                        { id: 142, iso: "me", nicename: "Montenegro", phonecode: 382, format: "067 622 901" },
                        { id: 143, iso: "ms", nicename: "Montserrat", phonecode: 1, format: "(664) 492 3456" },
                        { id: 144, iso: "ma", nicename: "Morocco", phonecode: 212, format: "0650 123456" },
                        { id: 145, iso: "mz", nicename: "Mozambique", phonecode: 258, format: "82 123 4567" },
                        { id: 146, iso: "mm", nicename: "Myanmar", phonecode: 95, format: "09 212 3456" },
                        { id: 147, iso: "na", nicename: "Namibia", phonecode: 264, format: "081 123 4567" },
                        { id: 149, iso: "np", nicename: "Nepal", phonecode: 977, format: "984 1234567" },
                        { id: 150, iso: "nl", nicename: "Netherlands", phonecode: 31, format: "06 12345678" },
                        { id: 151, iso: "nc", nicename: "New Caledonia", phonecode: 687, format: "75 12 34" },
                        { id: 152, iso: "nz", nicename: "New Zealand", phonecode: 64, format: "021 123 4567" },
                        { id: 153, iso: "ni", nicename: "Nicaragua", phonecode: 505, format: "8123 4567" },
                        { id: 154, iso: "ne", nicename: "Niger", phonecode: 227, format: "93 12 34 56" },
                        { id: 155, iso: "ng", nicename: "Nigeria", phonecode: 234, format: "0802 123 4567" },
                        { id: 156, iso: "nu", nicename: "Niue", phonecode: 683, format: "1234" },
                        { id: 157, iso: "nf", nicename: "Norfolk Island", phonecode: 672, format: "3 81234" },
                        { id: 160, iso: "no", nicename: "Norway", phonecode: 47, format: "406 12 345" },
                        { id: 161, iso: "om", nicename: "Oman", phonecode: 968, format: "9212 3456" },
                        { id: 162, iso: "pk", nicename: "Pakistan", phonecode: 92, format: "0301 2345678" },
                        { id: 163, iso: "pw", nicename: "Palau", phonecode: 680, format: "620 1234" },
                        { id: 164, iso: "ps", nicename: "Palestine", phonecode: 970, format: "0599 123 456" },
                        { id: 165, iso: "pa", nicename: "Panama", phonecode: 507, format: "6001 2345" },
                        { id: 166, iso: "pg", nicename: "Papua New Guinea", phonecode: 675, format: "681 2345" },
                        { id: 167, iso: "py", nicename: "Paraguay", phonecode: 595, format: "0961 456789" },
                        { id: 168, iso: "pe", nicename: "Peru", phonecode: 51, format: "912 345 678" },
                        { id: 169, iso: "ph", nicename: "Philippines", phonecode: 63, format: "0905 123 4567" },
                        { id: 170, iso: "pl", nicename: "Poland", phonecode: 48, format: "512 345 678" },
                        { id: 171, iso: "pt", nicename: "Portugal", phonecode: 351, format: "912 345 678" },
                        { id: 172, iso: "pr", nicename: "Puerto Rico", phonecode: 1, format: "(787) 234 5678" },
                        { id: 173, iso: "qa", nicename: "Qatar", phonecode: 974, format: "3312 3456" },
                        { id: 174, iso: "re", nicename: "Réunion", phonecode: 262, format: "639 123456" },
                        { id: 175, iso: "ro", nicename: "Romania", phonecode: 40, format: "0712 345 678" },
                        { id: 176, iso: "ru", nicename: "Russia", phonecode: 7, format: "(912) 123 4567", priority: 1 },
                        { id: 177, iso: "rw", nicename: "Rwanda", phonecode: 250, format: "0720 123 456" },
                        { id: 180, iso: "kn", nicename: "Saint Kitts and Nevis", phonecode: 1, format: "(869) 765 2917" },
                        { id: 181, iso: "lc", nicename: "Saint Lucia", phonecode: 1, format: "(758) 284 5678" },
                        { id: 184, iso: "vc", nicename: "Saint Vincent and the Grenadines", phonecode: 1, format: "(784) 430 1234" },
                        { id: 185, iso: "ws", nicename: "Samoa", phonecode: 684, format: "601234" },
                        { id: 186, iso: "sm", nicename: "San Marino", phonecode: 378, format: "66 66 12 12" },
                        { id: 187, iso: "st", nicename: "Sao Tome and Principe", phonecode: 239, format: "981 2345" },
                        { id: 188, iso: "sa", nicename: "Saudi Arabia", phonecode: 966, format: "051 234 5678" },
                        { id: 189, iso: "sn", nicename: "Senegal", phonecode: 221, format: "70 123 45 67" },
                        { id: 190, iso: "rs", nicename: "Serbia", phonecode: 381, format: "060 1234567" },
                        { id: 191, iso: "sc", nicename: "Seychelles", phonecode: 248, format: "2 510 123" },
                        { id: 192, iso: "sl", nicename: "Sierra Leone", phonecode: 232, format: "(025) 123456" },
                        { id: 193, iso: "sg", nicename: "Singapore", phonecode: 65, format: "8123 4567" },
                        { id: 195, iso: "sk", nicename: "Slovakia", phonecode: 421, format: "0912 123 456" },
                        { id: 196, iso: "si", nicename: "Slovenia", phonecode: 386, format: "031 234 567" },
                        { id: 197, iso: "sb", nicename: "Solomon Islands", phonecode: 677, format: "74 21234" },
                        { id: 198, iso: "so", nicename: "Somalia", phonecode: 252, format: "7 1123456" },
                        { id: 199, iso: "za", nicename: "South Africa", phonecode: 27, format: "071 123 4567" },
                        { id: 200, iso: "kr", nicename: "South Korea", phonecode: 82, format: "010 1234 567" },
                        { id: 201, iso: "ss", nicename: "South Sudan", phonecode: 211, format: "0977 123 456" },
                        { id: 202, iso: "es", nicename: "Spain", phonecode: 34, format: "612 34 56 78" },
                        { id: 203, iso: "lk", nicename: "Sri Lanka", phonecode: 94, format: "071 234 5678" },
                        { id: 204, iso: "sd", nicename: "Sudan", phonecode: 249, format: "091 123 1234" },
                        { id: 205, iso: "sr", nicename: "Suriname", phonecode: 597, format: "741 2345" },
                        { id: 207, iso: "sz", nicename: "Swaziland", phonecode: 268, format: "7612 3456" },
                        { id: 208, iso: "se", nicename: "Sweden", phonecode: 46, format: "070 123 45 67" },
                        { id: 209, iso: "ch", nicename: "Switzerland", phonecode: 41, format: "078 123 45 67" },
                        { id: 210, iso: "sy", nicename: "Syria", phonecode: 963, format: "0944 567 890" },
                        { id: 211, iso: "tw", nicename: "Taiwan", phonecode: 886, format: "0912 345 678" },
                        { id: 212, iso: "tj", nicename: "Tajikistan", phonecode: 992, format: "917 123 456" },
                        { id: 213, iso: "ty", nicename: "Tanzania", phonecode: 255, format: "740 123 456" },
                        { id: 214, iso: "th", nicename: "Thailand", phonecode: 66, format: "081 234 5678" },
                        { id: 215, iso: "tl", nicename: "Timor-Leste", phonecode: 670, format: "7721 2345" },
                        { id: 216, iso: "tg", nicename: "Togo", phonecode: 228, format: "90 11 23 45" },
                        { id: 218, iso: "to", nicename: "Tonga", phonecode: 676, format: "771 5123" },
                        { id: 219, iso: "tt", nicename: "Trinidad and Tobago", phonecode: 868, format: "(868) 291 1234" },
                        { id: 220, iso: "tn", nicename: "Tunisia", phonecode: 216, format: "20 123 456" },
                        { id: 221, iso: "tr", nicename: "Turkey", phonecode: 90, format: "0501 234 56 78" },
                        { id: 222, iso: "tm", nicename: "Turkmenistan", phonecode: 7370, format: "8 66 123456" },
                        { id: 223, iso: "tc", nicename: "Turks and Caicos Islands", phonecode: 1, format: "(649) 231 1234" },
                        { id: 224, iso: "tv", nicename: "Tuvalu", phonecode: 688, format: "901234" },
                        { id: 225, iso: "ug", nicename: "Uganda", phonecode: 256, format: "0712 345678" },
                        { id: 226, iso: "ua", nicename: "Ukraine", phonecode: 380, format: "039 123 4567" },
                        { id: 227, iso: "ae", nicename: "United Arab Emirates", phonecode: 971, format: "050 123 4567" },
                        { id: 228, iso: "gb", nicename: "United Kingdom", phonecode: 44, format: "07400 123456", priority: 1 },
                        { id: 229, iso: "us", nicename: "United States", phonecode: 1, format: "(201) 555 0123", priority: 1 },
                        { id: 230, iso: "uy", nicename: "Uruguay", phonecode: 598, format: "094 231 234" },
                        { id: 231, iso: "uz", nicename: "Uzbekistan", phonecode: 998, format: "8 91 234 56 78" },
                        { id: 232, iso: "vu", nicename: "Vanuatu", phonecode: 678, format: "591 2345" },
                        { id: 234, iso: "ve", nicename: "Venezuela", phonecode: 58, format: "0412 1234567" },
                        { id: 235, iso: "vn", nicename: "Vietnam", phonecode: 84, format: "091 234 56 78" },
                        { id: 236, iso: "vi", nicename: "Virgin Islands, U.S.", phonecode: 1, format: "(340) 642 1234" },
                        { id: 237, iso: "ye", nicename: "Yemen", phonecode: 967, format: "0712 345 678" },
                        { id: 238, iso: "zm", nicename: "Zambia", phonecode: 260, format: "095 5123456" },
                        { id: 239, iso: "zw", nicename: "Zimbabwe", phonecode: 263, format: "071 123 4567" },
                        { id: 240, iso: "ax", nicename: "Åland Islands", phonecode: 358, format: "041 2345678" },
                    ],
                };
            },
        };
    },
    701: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return {
                    timeZone: "",
                    statusesCabinet: [
                        { value: "approved", label: this.$root.labels.approved },
                        { value: "pending", label: this.$root.labels.pending },
                        { value: "canceled", label: this.$root.labels.canceled },
                        { value: "rejected", label: this.$root.labels.rejected },
                    ],
                };
            },
            methods: {
                isPanelActive: function (e) {
                    return (
                        !this.$root.shortcodeData.cabinet ||
                        (!this.$root.shortcodeData.cabinet.appointments && !this.$root.shortcodeData.cabinet.events) ||
                        !("appointments" !== e || !this.$root.shortcodeData.cabinet || !this.$root.shortcodeData.cabinet.appointments) ||
                        ("events" === e && this.$root.shortcodeData.cabinet && this.$root.shortcodeData.cabinet.events)
                    );
                },
                changeRange: function (e) {
                    this.$store.commit("cabinet/setParams", { dates: e }), this.setDatePickerSelectedDaysCount(this.$store.state.cabinet.params.dates.start, this.$store.state.cabinet.params.dates.end), this.$emit("refreshReservations");
                },
                isBookingCancelable: function (e) {
                    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0;
                    return e.cancelable && !("canceled" === e.bookings[t].status || "rejected" === e.bookings[t].status);
                },
                isBookingReschedulable: function (e) {
                    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0;
                    return e.reschedulable && !("canceled" === e.bookings[t].status || "rejected" === e.bookings[t].status);
                },
                disableAuthorizationHeader: function () {
                    return "ameliaBooking" in window && "cabinet" in window.ameliaBooking && "disableAuthorizationHeader" in window.ameliaBooking.cabinet && window.ameliaBooking.cabinet.disableAuthorizationHeader;
                },
                getAuthorizationHeaderObject: function () {
                    return this.$store.state.cabinet.ameliaToken && !this.disableAuthorizationHeader() ? { headers: { Authorization: "Bearer " + this.$store.state.cabinet.ameliaToken } } : {};
                },
            },
        };
    },
    702: function (e, t, n) {
        "use strict";
        var i = (function () {
                function e(e, t) {
                    for (var n = 0; n < t.length; n++) {
                        var i = t[n];
                        (i.enumerable = i.enumerable || !1), (i.configurable = !0), "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i);
                    }
                }
                return function (t, n, i) {
                    return n && e(t.prototype, n), i && e(t, i), t;
                };
            })(),
            o = a(n(721)),
            r = a(n(739)),
            s = a(n(740));
        function a(e) {
            return e && e.__esModule ? e : { default: e };
        }
        var l = (function () {
            function e() {
                var t = this;
                !(function (e, t) {
                    if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
                })(this, e),
                    (this.progress = 0),
                    (this.isPending = !1),
                    (this.errors = new r.default()),
                    ["post", "patch", "put", "delete"].forEach(function (e) {
                        t[e] = function (n, i) {
                            return t.submit(e, n, i);
                        };
                    });
            }
            return (
                i(e, [
                    {
                        key: "submit",
                        value: function (t, n) {
                            var i = this,
                                o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
                            return (
                                (t = t.toLowerCase()),
                                this.hasFiles(o) && ((o = (0, s.default)(o)), "post" !== t && (o.append("_method", t.toUpperCase()), (t = "post"))),
                                (this.progress = 0),
                                this.errors.clear(),
                                (this.isPending = !0),
                                new Promise(function (r, s) {
                                    e.defaults.axios[t](n, o, i.config())
                                        .then(function (e) {
                                            r(e.data);
                                        })
                                        .catch(function (e) {
                                            i.handleError(e), s(e);
                                        })
                                        .then(function () {
                                            return (i.isPending = !1);
                                        });
                                })
                            );
                        },
                    },
                    {
                        key: "hasFiles",
                        value: function (e) {
                            for (var t in e) if (this.fileIsPresent(e[t])) return !0;
                            return !1;
                        },
                    },
                    {
                        key: "fileIsPresent",
                        value: function (e) {
                            return (
                                e instanceof File ||
                                (e instanceof Array &&
                                    e.some(function (e) {
                                        return e instanceof File;
                                    }))
                            );
                        },
                    },
                    {
                        key: "save",
                        value: function (e, t) {
                            var n = "post";
                            return t.hasOwnProperty("id") && ((n = "patch"), (e = this.urlToPatchResource(e, t))), this[n](e, t);
                        },
                    },
                    {
                        key: "urlToPatchResource",
                        value: function (e, t) {
                            return e.replace(/\/+$/, "") + "/" + t.id;
                        },
                    },
                    {
                        key: "config",
                        value: function () {
                            var e = this;
                            return {
                                onUploadProgress: function (t) {
                                    e.progress = Math.round((100 * t.loaded) / t.total);
                                },
                            };
                        },
                    },
                    {
                        key: "handleError",
                        value: function (e) {
                            if (e.response && 422 === e.response.status) {
                                var t = e.response.data.hasOwnProperty("errors") ? e.response.data.errors : e.response.data;
                                this.errors.set(t);
                            }
                        },
                    },
                ]),
                e
            );
        })();
        (l.defaults = { axios: o.default }), (e.exports = l);
    },
    703: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(700);
        t.default = {
            mixins: [i.a],
            template: "#phone-input",
            props: { savedPhone: { default: "", type: String }, disabled: { default: !1, type: Boolean }, countryPhoneIso: null, dropdownClass: { type: String, default: "" } },
            data: function () {
                return { input: "", phone: "", value: this.$root.settings.general.phoneDefaultCountryCode, format: "" };
            },
            mounted: function () {
                "" !== this.value ? (this.savedPhone ? this.fillInputWithSavedPhone() : this.formatPhoneNumber()) : this.savedPhone && this.fillInputWithSavedPhone();
            },
            methods: {
                onClear: function () {
                    (this.value = ""), (this.phone = ""), this.$emit("phoneFormatted", this.phone, this.value);
                },
                changeCountry: function () {
                    "" !== this.value && "" !== this.input && (this.input = ""), this.formatPhoneNumber();
                },
                formatPhoneNumber: function () {
                    var e = this;
                    if ("" !== this.value) {
                        var t = this.countries.find(function (t) {
                            return t.iso === e.value;
                        });
                        this.format = !0 === this.disabled ? "" : t.format;
                    }
                    var n = this.input;
                    if (
                        ("ar" === window.localeLanguage[0] &&
                            (n = n.replace(/[٠-٩]/g, function (e) {
                                return "٠١٢٣٤٥٦٧٨٩".indexOf(e);
                            })),
                        "" !== n)
                    ) {
                        if (n.startsWith("+")) {
                            var i = parseInt(n.slice(1)),
                                o = this.countries.filter(function (e) {
                                    return e.phonecode === i;
                                });
                            if (o.length) {
                                var r = null;
                                1 === i
                                    ? (r = o.find(function (e) {
                                          return 229 === e.id;
                                      }))
                                    : 44 === i
                                    ? (r = o.find(function (e) {
                                          return 228 === e.id;
                                      }))
                                    : 7 === i &&
                                      (r = o.find(function (e) {
                                          return 176 === e.id;
                                      })),
                                    (void 0 !== r && null !== r) || (r = o[0]),
                                    (this.value = r.iso);
                            }
                            this.phone = n;
                        } else this.phone = void 0 !== t ? (!0 === n.startsWith("0") ? "+" + t.phonecode + n.slice(1).replace(/\D/g, "") : "+" + t.phonecode + n.replace(/\D/g, "")) : n;
                        this.$emit("phoneFormatted", this.phone, this.value);
                    } else (this.phone = n), this.$emit("phoneFormatted", this.phone, this.value);
                },
                fillInputWithSavedPhone: function () {
                    var e = this,
                        t = null;
                    null !== this.countryPhoneIso &&
                        void 0 ===
                            (t = this.countries.find(function (t) {
                                return t.iso === e.countryPhoneIso;
                            })) &&
                        (t = null);
                    for (var n = 1; null === t && n < 5; )
                        (t =
                            void 0 !==
                            (t = this.countries.find(function (t) {
                                return t.phonecode === parseInt(e.savedPhone.substr(1, n)) && 1 === t.priority;
                            }))
                                ? t
                                : null),
                            n++;
                    if (!t)
                        for (n = 1; null === t && n < 5; )
                            (t =
                                void 0 !==
                                (t = this.countries.find(function (t) {
                                    return t.phonecode === parseInt(e.savedPhone.substr(1, n));
                                }))
                                    ? t
                                    : null),
                                n++;
                    null !== t && ((this.value = t.iso), (this.input = this.savedPhone.replace("+" + t.phonecode, "")), (this.input = t.format.startsWith("0") ? "0" + this.input : this.input));
                },
            },
            watch: {
                input: function () {
                    this.formatPhoneNumber();
                },
            },
            components: {},
        };
    },
    704: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n(
                    "el-input",
                    {
                        attrs: { placeholder: e.format, disabled: e.disabled, clearable: "" },
                        on: { clear: e.onClear },
                        model: {
                            value: e.input,
                            callback: function (t) {
                                e.input = t;
                            },
                            expression: "input",
                        },
                    },
                    [
                        n(
                            "el-select",
                            {
                                class: "am-selected-flag am-selected-flag-" + e.value,
                                attrs: { slot: "prepend", placeholder: "", "popper-class": e.$root.settings.customization.forms ? e.dropdownClass : "", disabled: e.disabled },
                                on: { change: e.changeCountry },
                                slot: "prepend",
                                model: {
                                    value: e.value,
                                    callback: function (t) {
                                        e.value = t;
                                    },
                                    expression: "value",
                                },
                            },
                            e._l(e.countries, function (t) {
                                return n("el-option", { key: t.id, attrs: { value: t.iso, label: " " } }, [
                                    n("span", { class: "am-flag am-flag-" + t.iso }),
                                    e._v(" "),
                                    n("span", { staticClass: "am-phone-input-nicename" }, [e._v(e._s(t.nicename))]),
                                    e._v(" "),
                                    n("span", { staticClass: "am-phone-input-phonecode" }, [e._v("+" + e._s(t.phonecode))]),
                                ]);
                            }),
                            1
                        ),
                    ],
                    1
                );
            },
            staticRenderFns: [],
        };
    },
    705: function (e, t, n) {
        "use strict";
        var i = n(0),
            o = n.n(i);
        t.a = {
            data: function () {
                return { recurringDates: [] };
            },
            methods: {
                getRecurringAppointmentsData: function () {
                    var e = this,
                        t = [];
                    return (
                        this.recurringData.dates.forEach(function (n) {
                            var i = e.getProviderService(n.providerId, e.appointment.serviceId);
                            t.push({
                                providerId: n.providerId,
                                locationId: n.locationId,
                                bookingStart: o()(n.date).format("YYYY-MM-DD") + " " + n.slot,
                                price: i.price,
                                depositData: "disabled" !== i.depositPayment ? { deposit: i.deposit, depositPayment: i.depositPayment, depositPerPerson: i.depositPerPerson } : null,
                            });
                        }),
                        t.shift(),
                        t
                    );
                },
                toggleRecurringActive: function () {
                    this.appointment.serviceId && "disabled" !== this.getServiceById(this.appointment.serviceId).recurringCycle ? (this.isRecurringAvailable = !0) : ((this.isRecurringAvailable = !1), (this.activeRecurring = !1));
                },
                getDefaultRecurringSettings: function (e, t, n) {
                    var i = this.getAvailableRecurringDates(n),
                        r = "all" === t ? "daily" : t,
                        s = "",
                        a = o()(e, "YYYY-MM-DD"),
                        l = a.format("D");
                    switch (r) {
                        case "daily":
                            s = "day";
                            break;
                        case "weekly":
                            s = "week";
                            break;
                        case "monthly":
                            s = "month";
                    }
                    return {
                        selectedMonthlyWeekDayString: a.format("dddd"),
                        monthDateRule: Math.ceil(l / 7),
                        cycle: r,
                        maxDate: o()(e, "YYYY-MM-DD HH:mm").add(1, "days").toDate(),
                        maxCount: 1,
                        selectedWeekDayIndex: a.isoWeekday() - 1,
                        calendarDates: i,
                        cycleInterval: 1,
                        weekDaysSelected: [],
                        repeatIntervalLabels: this.getRepeatIntervalLabels(this.$root.labels["recurring_" + s], this.$root.labels["recurring_" + s + "s"], o()(i[i.length - 1]).diff(a, "days")),
                    };
                },
                getAvailableRecurringDates: function (e) {
                    var t = [];
                    return (
                        Object.keys(e).forEach(function (e) {
                            t.push(o()(e + " 00:00:00"));
                        }),
                        t
                    );
                },
                getRepeatIntervalLabels: function (e, t, n) {
                    for (var i = [], o = 0; o < n; o++) i.push({ label: 0 === o ? e : o + 1 + " " + t, value: o + 1 });
                    return i;
                },
            },
        };
    },
    706: function (e, t, n) {
        "use strict";
        e.exports = function (e, t) {
            return function () {
                for (var n = new Array(arguments.length), i = 0; i < n.length; i++) n[i] = arguments[i];
                return e.apply(t, n);
            };
        };
    },
    707: function (e, t, n) {
        "use strict";
        var i = n(688),
            o = n(725),
            r = n(727),
            s = n(728),
            a = n(729),
            l = n(708),
            c = ("undefined" != typeof window && window.btoa && window.btoa.bind(window)) || n(730);
        e.exports = function (e) {
            return new Promise(function (t, u) {
                var d = e.data,
                    p = e.headers;
                i.isFormData(d) && delete p["Content-Type"];
                var h = new XMLHttpRequest(),
                    f = "onreadystatechange",
                    m = !1;
                if (
                    ("undefined" == typeof window ||
                        !window.XDomainRequest ||
                        "withCredentials" in h ||
                        a(e.url) ||
                        ((h = new window.XDomainRequest()), (f = "onload"), (m = !0), (h.onprogress = function () {}), (h.ontimeout = function () {})),
                    e.auth)
                ) {
                    var g = e.auth.username || "",
                        v = e.auth.password || "";
                    p.Authorization = "Basic " + c(g + ":" + v);
                }
                if (
                    (h.open(e.method.toUpperCase(), r(e.url, e.params, e.paramsSerializer), !0),
                    (h.timeout = e.timeout),
                    (h[f] = function () {
                        if (h && (4 === h.readyState || m) && (0 !== h.status || (h.responseURL && 0 === h.responseURL.indexOf("file:")))) {
                            var n = "getAllResponseHeaders" in h ? s(h.getAllResponseHeaders()) : null,
                                i = {
                                    data: e.responseType && "text" !== e.responseType ? h.response : h.responseText,
                                    status: 1223 === h.status ? 204 : h.status,
                                    statusText: 1223 === h.status ? "No Content" : h.statusText,
                                    headers: n,
                                    config: e,
                                    request: h,
                                };
                            o(t, u, i), (h = null);
                        }
                    }),
                    (h.onerror = function () {
                        u(l("Network Error", e, null, h)), (h = null);
                    }),
                    (h.ontimeout = function () {
                        u(l("timeout of " + e.timeout + "ms exceeded", e, "ECONNABORTED", h)), (h = null);
                    }),
                    i.isStandardBrowserEnv())
                ) {
                    var y = n(731),
                        b = (e.withCredentials || a(e.url)) && e.xsrfCookieName ? y.read(e.xsrfCookieName) : void 0;
                    b && (p[e.xsrfHeaderName] = b);
                }
                if (
                    ("setRequestHeader" in h &&
                        i.forEach(p, function (e, t) {
                            void 0 === d && "content-type" === t.toLowerCase() ? delete p[t] : h.setRequestHeader(t, e);
                        }),
                    e.withCredentials && (h.withCredentials = !0),
                    e.responseType)
                )
                    try {
                        h.responseType = e.responseType;
                    } catch (t) {
                        if ("json" !== e.responseType) throw t;
                    }
                "function" == typeof e.onDownloadProgress && h.addEventListener("progress", e.onDownloadProgress),
                    "function" == typeof e.onUploadProgress && h.upload && h.upload.addEventListener("progress", e.onUploadProgress),
                    e.cancelToken &&
                        e.cancelToken.promise.then(function (e) {
                            h && (h.abort(), u(e), (h = null));
                        }),
                    void 0 === d && (d = null),
                    h.send(d);
            });
        };
    },
    708: function (e, t, n) {
        "use strict";
        var i = n(726);
        e.exports = function (e, t, n, o, r) {
            var s = new Error(e);
            return i(s, t, n, o, r);
        };
    },
    709: function (e, t, n) {
        "use strict";
        e.exports = function (e) {
            return !(!e || !e.__CANCEL__);
        };
    },
    710: function (e, t, n) {
        "use strict";
        function i(e) {
            this.message = e;
        }
        (i.prototype.toString = function () {
            return "Cancel" + (this.message ? ": " + this.message : "");
        }),
            (i.prototype.__CANCEL__ = !0),
            (e.exports = i);
    },
    711: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return {};
            },
            methods: {
                getNameTranslated: function (e) {
                    if (e.translations && JSON.parse(e.translations).name) {
                        var t = JSON.parse(e.translations).name[window.localeLanguage[0]];
                        if (t && "" !== t) return t;
                    }
                    return e.name;
                },
                getCfLabelTranslated: function (e) {
                    if (e.translations) {
                        var t = JSON.parse(e.translations).name[window.localeLanguage[0]];
                        if (t && "" !== t) return t;
                    }
                    return e.label;
                },
                getCfOptionTranslated: function (e) {
                    if (e.translations) {
                        var t = JSON.parse(e.translations)[window.localeLanguage[0]];
                        if (t && "" !== t) return t;
                    }
                    return e.label;
                },
                getDescriptionTranslated: function (e) {
                    if (e.translations && JSON.parse(e.translations).description) {
                        var t = JSON.parse(e.translations).description;
                        if (t[window.localeLanguage[0]]) return t[window.localeLanguage[0]];
                    }
                    return e.description;
                },
                translateEntities: function (e) {
                    var t = this;
                    e.services &&
                        e.services.length &&
                        e.services.forEach(function (e) {
                            (e.name = t.getNameTranslated(e)),
                                (e.description = t.getDescriptionTranslated(e)),
                                e.extras.forEach(function (e) {
                                    (e.name = t.getNameTranslated(e)), (e.description = t.getDescriptionTranslated(e));
                                });
                        }),
                        e.packages &&
                            e.packages.length &&
                            e.packages.forEach(function (e) {
                                (e.name = t.getNameTranslated(e)),
                                    (e.description = t.getDescriptionTranslated(e)),
                                    e.bookable.forEach(function (e) {
                                        (e.service.name = t.getNameTranslated(e.service)),
                                            (e.service.description = t.getDescriptionTranslated(e.service)),
                                            e.service.extras.forEach(function (e) {
                                                (e.name = t.getNameTranslated(e)), (e.description = t.getDescriptionTranslated(e));
                                            });
                                    });
                            }),
                        e.categories &&
                            e.categories.length &&
                            e.categories.forEach(function (e) {
                                (e.name = t.getNameTranslated(e)),
                                    e.serviceList.forEach(function (e) {
                                        (e.name = t.getNameTranslated(e)),
                                            (e.description = t.getDescriptionTranslated(e)),
                                            e.extras.forEach(function (e) {
                                                (e.name = t.getNameTranslated(e)), (e.description = t.getDescriptionTranslated(e));
                                            });
                                    });
                            }),
                        e.events &&
                            e.events.length &&
                            e.events.forEach(function (e) {
                                (e.name = t.getNameTranslated(e)),
                                    (e.description = t.getDescriptionTranslated(e)),
                                    e.extras.forEach(function (e) {
                                        (e.name = t.getNameTranslated(e)), (e.description = t.getDescriptionTranslated(e));
                                    });
                            }),
                        e.customFields &&
                            e.customFields.length &&
                            e.customFields.forEach(function (e) {
                                (e.label = t.getCfLabelTranslated(e)),
                                    e.options.forEach(function (e) {
                                        e.label = t.getCfOptionTranslated(e);
                                    });
                            }),
                        e.employees &&
                            e.employees.length &&
                            e.employees.forEach(function (e) {
                                e.serviceList.forEach(function (e) {
                                    (e.name = t.getNameTranslated(e)),
                                        (e.description = t.getDescriptionTranslated(e)),
                                        e.extras.forEach(function (e) {
                                            (e.name = t.getNameTranslated(e)), (e.description = t.getDescriptionTranslated(e));
                                        });
                                });
                            });
                },
            },
            computed: {},
        };
    },
    713: function (e, t, n) {
        var i = n(685)(n(744), n(745), !1, null, null, null);
        e.exports = i.exports;
    },
    714: function (e, t, n) {
        "use strict";
        var i = n(686);
        t.a = {
            mixins: [i.a],
            data: function () {
                return {};
            },
            methods: {
                getInitEntitySettings: function (e) {
                    var t = {
                        payments: {
                            onSite: this.$root.settings.payments.onSite,
                            wc: { productId: this.$root.settings.payments.wc.productId },
                            payPal: { enabled: this.$root.settings.payments.payPal.enabled },
                            stripe: { enabled: this.$root.settings.payments.stripe.enabled },
                            mollie: { enabled: this.$root.settings.payments.mollie.enabled },
                        },
                    };
                    switch (e) {
                        case "service":
                            (t.general = { minimumTimeRequirementPriorToCanceling: null, minimumTimeRequirementPriorToRescheduling: null, redirectUrlAfterAppointment: null }),
                                (t.general.defaultAppointmentStatus = null),
                                (t.general.numberOfDaysAvailableForBooking = 0),
                                (t.general.minimumTimeRequirementPriorToBooking = null),
                                (t.zoom = { enabled: this.$root.settings.zoom.enabled });
                            break;
                        case "event":
                            (t.general = { minimumTimeRequirementPriorToCanceling: null, redirectUrlAfterAppointment: null }), (t.zoom = { enabled: this.$root.settings.zoom.enabled });
                    }
                    return t;
                },
                setEntitySettings: function (e, t) {
                    (e.settings = null !== e.settings ? JSON.parse(e.settings) : this.getInitEntitySettings(t)), this.addMissingObjectProperties(e.settings, this.getInitEntitySettings(t));
                },
                updateSettings: function (e) {
                    if (
                        !this.$root.clonedSettings.payments.onSite ||
                        this.$root.clonedSettings.payments.stripe.enabled ||
                        this.$root.clonedSettings.payments.payPal.enabled ||
                        this.$root.clonedSettings.payments.wc.enabled ||
                        this.$root.clonedSettings.payments.mollie.enabled
                    ) {
                        if (!1 === this.$root.clonedSettings.payments.wc.enabled && !1 === this.$root.clonedSettings.payments.mollie.enabled && null !== e) {
                            var t = JSON.parse(e);
                            (t.payments.wc = this.$root.clonedSettings.payments.wc),
                                (t.payments.mollie = this.$root.clonedSettings.payments.mollie),
                                this.$root.clonedSettings.payments.onSite || (t.payments.onSite = this.$root.clonedSettings.payments.onSite),
                                this.$root.clonedSettings.payments.payPal.enabled || (t.payments.payPal = this.$root.clonedSettings.payments.payPal),
                                this.$root.clonedSettings.payments.stripe.enabled || (t.payments.stripe = this.$root.clonedSettings.payments.stripe),
                                t.payments.onSite || t.payments.payPal.enabled || t.payments.stripe.enabled || t.payments.mollie.enabled || (t.payments = this.$root.clonedSettings.payments),
                                (e = JSON.stringify(t));
                        }
                        if (!0 === this.$root.clonedSettings.payments.wc.enabled && null !== e) {
                            var n = JSON.parse(e);
                            "payments" in n || (n.payments = {}),
                                (n.payments.onSite = this.$root.clonedSettings.payments.onSite),
                                (n.payments.stripe = this.$root.clonedSettings.payments.stripe),
                                (n.payments.payPal = this.$root.clonedSettings.payments.payPal),
                                (n.payments.mollie = this.$root.clonedSettings.payments.mollie),
                                (e = JSON.stringify(n));
                        }
                        if (!0 === this.$root.clonedSettings.payments.mollie.enabled && null !== e) {
                            var i = JSON.parse(e);
                            "payments" in i || (i.payments = {}),
                                this.$root.clonedSettings.payments.onSite || ((i.payments.onSite = this.$root.clonedSettings.payments.onSite), (i.payments.mollie = this.$root.clonedSettings.payments.mollie)),
                                (i.payments.stripe = this.$root.clonedSettings.payments.stripe),
                                (i.payments.payPal = this.$root.clonedSettings.payments.payPal),
                                (e = JSON.stringify(i));
                        }
                        this.replaceExistingObjectProperties(this.$root.settings, null !== e ? JSON.parse(e) : this.$root.clonedSettings);
                    }
                },
                prepareEntitySettingsForSave: function (e) {
                    var t = JSON.parse(JSON.stringify(e.settings));
                    return (
                        t.payments.wc.productId === this.$root.settings.payments.wc.productId && delete t.payments.wc,
                        "general" in t &&
                            (t.general.redirectUrlAfterAppointment || delete t.general.redirectUrlAfterAppointment,
                            t.general.defaultAppointmentStatus || delete t.general.defaultAppointmentStatus,
                            ((t.general.minimumTimeRequirementPriorToBooking || this.$root.settings.general.minimumTimeRequirementPriorToBooking) && "" !== t.general.minimumTimeRequirementPriorToBooking) ||
                                delete t.general.minimumTimeRequirementPriorToBooking,
                            ((t.general.minimumTimeRequirementPriorToCanceling || this.$root.settings.general.minimumTimeRequirementPriorToCanceling) && "" !== t.general.minimumTimeRequirementPriorToCanceling) ||
                                delete t.general.minimumTimeRequirementPriorToCanceling,
                            ((t.general.minimumTimeRequirementPriorToRescheduling || this.$root.settings.general.minimumTimeRequirementPriorToRescheduling) && "" !== t.general.minimumTimeRequirementPriorToRescheduling) ||
                                delete t.general.minimumTimeRequirementPriorToRescheduling,
                            t.general.numberOfDaysAvailableForBooking || delete t.general.numberOfDaysAvailableForBooking,
                            0 === Object.keys(t.general).length && delete t.general),
                        0 === Object.keys(t).length && (t = null),
                        t
                    );
                },
            },
            computed: {},
        };
    },
    715: function (e, t, n) {
        "use strict";
        var i = n(0),
            o = n.n(i);
        t.a = {
            methods: {
                entitiesLoaded: function () {
                    return "ameliaEventEntities" in window || "ameliaEntities" in window;
                },
                processEntities: function (e) {
                    this.getCurrentUser(),
                        (this.options.entities.locations = e.locations),
                        (this.options.entities.employees = e.employees),
                        (this.options.entities.customFields = e.customFields),
                        this.options.entities.employees.forEach(function (e) {
                            e.serviceList.forEach(function (e) {
                                "name" in e || Object.assign(e, { extras: [] });
                            });
                        }),
                        this.$root.useTranslations && this.translateEntities(this.options.entities),
                        this.setBookingCustomFields();
                },
                processCalendarEntities: function (e) {
                    this.processEntities(e), (this.options.entities.tags = e.tags);
                    var t = this.getPreselectedTag();
                    if (t) {
                        var n = e.tags.find(function (e) {
                            return e.name === t;
                        });
                        (this.options.entities.tags = n ? [n] : e.tags), (this.eventFilterTag = n ? [n.name] : []);
                    } else this.options.entities.tags = e.tags;
                    (this.entitiesFetched = !0), this.getEvents();
                },
                processListEntities: function (e) {
                    this.processEntities(e), (this.options.entities.tags = this.getPreselectedTag() ? [] : e.tags);
                },
                getEntities: function (e) {
                    var t = this;
                    if (this.$root.hasApiCall && !this.entitiesLoaded())
                        this.$http
                            .get(this.$root.getAjaxUrl + "/entities", { params: { types: ["locations", "tags", "custom_fields", "employees"] } })
                            .then(function (t) {
                                (window.ameliaEventEntities = JSON.parse(JSON.stringify(t.data.data))), e(window.ameliaEventEntities);
                            })
                            .catch(function () {});
                    else
                        var n = setInterval(function () {
                            t.entitiesLoaded() && (clearInterval(n), "ameliaEntities" in window ? e(JSON.parse(JSON.stringify(window.ameliaEntities))) : e(JSON.parse(JSON.stringify(window.ameliaEventEntities))));
                        }, 1e3);
                },
                getPreselectedTag: function () {
                    return "eventTag" in this.$root.shortcodeData.booking ? this.$root.shortcodeData.booking.eventTag : null;
                },
                getPreselectedEventId: function () {
                    return "eventId" in this.$root.shortcodeData.booking ? this.$root.shortcodeData.booking.eventId : null;
                },
                getPreselectedEventRecurring: function () {
                    return "eventRecurring" in this.$root.shortcodeData.booking ? this.$root.shortcodeData.booking.eventRecurring : null;
                },
                getImplodedPeriods: function (e) {
                    var t = null,
                        n = [],
                        i = [];
                    return (
                        e.forEach(function (o, r) {
                            var s = t && t.periodEnd === o.periodStart;
                            s && n.pop(),
                                (t = { periodStart: s ? t.periodStart : o.periodStart, periodEnd: o.periodEnd, isConnected: s }),
                                n.push(t),
                                (e.length === r + 1 || (r + 1 in e && e[r + 1].periodStart !== o.periodEnd)) && ((i = i.concat(JSON.parse(JSON.stringify(n)))), (n = []));
                        }),
                        i
                    );
                },
                getExplodedPeriods: function (e) {
                    var t = [];
                    return (
                        e.forEach(function (e) {
                            if (e.isConnected) t.push(e);
                            else {
                                var n = o()(e.periodStart.split(" ")[0], "YYYY-MM-DD"),
                                    i = o()(e.periodEnd.split(" ")[0], "YYYY-MM-DD"),
                                    r = e.periodStart.split(" ")[1],
                                    s = e.periodEnd.split(" ")[1];
                                "00:00:00" === s && ((s = "24:00:00"), i.subtract(1, "days"));
                                for (var a = []; n.isSameOrBefore(i); ) a.push(n.format("YYYY-MM-DD")), n.add(1, "days");
                                a.forEach(function (n) {
                                    t.push({ periodStart: n + " " + r, periodEnd: n + " " + s, zoomMeeting: e.zoomMeeting });
                                });
                            }
                        }),
                        t
                    );
                },
                getEventStatus: function (e) {
                    switch (e.status) {
                        case "rejected":
                        case "canceled":
                            return { label: this.$root.labels.canceled, class: "canceled" };
                        case "full":
                            return { label: this.$root.labels.full, class: "full" };
                        case "upcoming":
                            return { label: this.$root.labels.upcoming, class: "upcoming" };
                        case "approved":
                            if (e.closed) return { label: this.$root.labels.closed, class: "closed" };
                            if (e.opened && e.places > 0) return { label: this.$root.labels.opened, class: "opened" };
                    }
                    return { label: "", class: "" };
                },
                getEventAddToCalendarData: function (e, t) {
                    t ||
                        this.$http
                            .post(this.$root.getAjaxUrl + "/bookings/success/" + e.booking.id, { type: "event", appointmentStatusChanged: e.appointmentStatusChanged })
                            .then(function (e) {})
                            .catch(function (e) {});
                    var n = "";
                    e.event.location ? (n = e.event.location.address) : e.event.customLocation && (n = e.event.customLocation);
                    var i = [];
                    return (
                        e.utcTime.forEach(function (e) {
                            i.push({ address: n, start: o.a.utc(e.start.replace(/ /g, "T")).toDate(), end: o.a.utc(e.end.replace(/ /g, "T")).toDate() });
                        }),
                        {
                            title: this.$root.useTranslations ? this.getNameTranslated(e.event) : e.event.name,
                            dates: i,
                            address: n,
                            description: this.$root.useTranslations ? this.getDescriptionTranslated(e.event) : e.event.description,
                            id: e.booking.id,
                            status: e.booking.status,
                            active: this.$root.settings.general.addToCalendar,
                            color: e.color,
                            type: e.type,
                            bookableType: e.type,
                            bookable: e.event,
                            booking: e.booking,
                            recurringIds: [],
                        }
                    );
                },
            },
        };
    },
    717: function (e, t, n) {
        var i = n(685)(n(718), n(719), !1, null, null, null);
        e.exports = i.exports;
    },
    718: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(337);
        t.default = {
            mixins: [i.a],
            props: [
                "appointmentsApproved",
                "appointmentsPending",
                "employeesTotal",
                "customersTotal",
                "locationsTotal",
                "packagesTotal",
                "servicesTotal",
                "categoriesTotal",
                "financeTotal",
                "addNewCouponBtnDisplay",
                "addNewCustomFieldBtnDisplay",
                "locations",
                "categories",
                "bookableType",
                "params",
                "fetched",
            ],
            methods: {
                showDialogCustomer: function () {
                    this.$emit("newCustomerBtnClicked", null);
                },
                showDialogAppointment: function () {
                    this.$emit("newAppointmentBtnClicked", null);
                },
                showDialogEvent: function () {
                    this.$emit("newEventBtnClicked", null);
                },
                showDialogEmployee: function () {
                    this.$emit("newEmployeeBtnClicked");
                },
                showDialogLocation: function () {
                    this.$emit("newLocationBtnClicked");
                },
                showDialogService: function () {
                    this.$emit("newServiceBtnClicked");
                },
                showDialogPackage: function () {
                    this.$emit("newPackageBtnClicked");
                },
                showDialogCoupon: function () {
                    this.$emit("newCouponBtnClicked");
                },
                showDialogCustomFields: function () {
                    this.$emit("newCustomFieldBtnClicked");
                },
                selectAllInCategory: function (e) {
                    this.$emit("selectAllInCategory", e);
                },
                changeFilter: function () {
                    this.$emit("changeFilter");
                },
            },
        };
    },
    719: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n(
                    "div",
                    { staticClass: "am-page-header am-section" },
                    [
                        n(
                            "el-row",
                            { attrs: { type: "wpamelia-calendar" === e.$router.currentRoute.name ? "" : "flex", align: "middle" } },
                            [
                                n("el-col", { attrs: { span: "wpamelia-calendar" === e.$router.currentRoute.name ? 6 : 18 } }, [
                                    n("div", { staticClass: "am-logo" }, [
                                        n("img", { staticClass: "logo-big", attrs: { width: "92", src: e.$root.getUrl + "public/img/bellebien-logo-horizontal.svg" } }),
                                        e._v(" "),
                                        n("img", { staticClass: "logo-small", attrs: { width: "28", src: e.$root.getUrl + "public/img/bellebien-logo-symbol.svg" } }),
                                    ]),
                                    e._v(" "),
                                    n("h1", { staticClass: "am-page-title" }, [
                                        e._v("\n        " + e._s("packages" !== e.bookableType ? e.$router.currentRoute.meta.title : e.$root.labels.packages) + "\n\n        "),
                                        e._v(" "),
                                        e.appointmentsApproved >= 0 ? n("span", { staticClass: "am-appointments-number approved" }, [e._v("\n          " + e._s(e.appointmentsApproved) + "\n        ")]) : e._e(),
                                        e._v(" "),
                                        e.appointmentsPending >= 0 ? n("span", { staticClass: "am-appointments-number pending" }, [e._v("\n          " + e._s(e.appointmentsPending) + "\n        ")]) : e._e(),
                                        e._v(" "),
                                        e.employeesTotal >= 0 && !0 === e.$root.settings.capabilities.canReadOthers
                                            ? n("span", [n("span", { staticClass: "total-number" }, [e._v(e._s(e.employeesTotal))]), e._v(" " + e._s(e.$root.labels.total) + "\n        ")])
                                            : e._e(),
                                        e._v(" "),
                                        e.customersTotal >= 0 ? n("span", [n("span", { staticClass: "total-number" }, [e._v(e._s(e.customersTotal))]), e._v(" " + e._s(e.$root.labels.total) + "\n        ")]) : e._e(),
                                        e._v(" "),
                                        e.locationsTotal >= 0 ? n("span", [n("span", { staticClass: "total-number" }, [e._v(e._s(e.locationsTotal))]), e._v(" " + e._s(e.$root.labels.total) + "\n        ")]) : e._e(),
                                        e._v(" "),
                                        e.servicesTotal >= 0 && "services" === e.bookableType
                                            ? n("span", [n("span", { staticClass: "total-number" }, [e._v(e._s(e.servicesTotal))]), e._v(" " + e._s(e.$root.labels.total) + "\n        ")])
                                            : e._e(),
                                        e._v(" "),
                                        e.packagesTotal >= 0 && "packages" === e.bookableType
                                            ? n("span", [n("span", { staticClass: "total-number" }, [e._v(e._s(e.packagesTotal))]), e._v(" " + e._s(e.$root.labels.total) + "\n        ")])
                                            : e._e(),
                                        e._v(" "),
                                        e.financeTotal >= 0 ? n("span", [n("span", { staticClass: "total-number" }, [e._v(e._s(e.financeTotal))]), e._v(" " + e._s(e.$root.labels.total) + "\n        ")]) : e._e(),
                                    ]),
                                ]),
                                e._v(" "),
                                n(
                                    "el-col",
                                    { staticClass: "align-right v-calendar-column", attrs: { span: "wpamelia-calendar" === e.$router.currentRoute.name ? 18 : 6 } },
                                    [
                                        "wpamelia-appointments" === e.$router.currentRoute.name &&
                                        (!0 === e.$root.settings.capabilities.canWriteOthers || ("provider" === this.$root.settings.role && this.$root.settings.roles.allowWriteAppointments))
                                            ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.showDialogAppointment } }, [
                                                  n("i", { staticClass: "el-icon-plus" }),
                                                  e._v(" "),
                                                  n("span", { staticClass: "button-text" }, [e._v(e._s(e.$root.labels.new_appointment))]),
                                              ])
                                            : e._e(),
                                        e._v(" "),
                                        "wpamelia-events" === e.$router.currentRoute.name && (!0 === e.$root.settings.capabilities.canWriteOthers || ("provider" === this.$root.settings.role && this.$root.settings.roles.allowWriteEvents))
                                            ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.showDialogEvent } }, [
                                                  n("i", { staticClass: "el-icon-plus" }),
                                                  e._v(" "),
                                                  n("span", { staticClass: "button-text" }, [e._v(e._s(e.$root.labels.new_event))]),
                                              ])
                                            : e._e(),
                                        e._v(" "),
                                        "wpamelia-employees" === e.$router.currentRoute.name && !0 === e.$root.settings.capabilities.canWrite && !0 === e.$root.settings.capabilities.canWriteOthers
                                            ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.showDialogEmployee } }, [
                                                  n("i", { staticClass: "el-icon-plus" }),
                                                  e._v(" "),
                                                  n("span", { staticClass: "button-text" }, [e._v(e._s(e.$root.labels.add_employee))]),
                                              ])
                                            : e._e(),
                                        e._v(" "),
                                        "wpamelia-customers" === e.$router.currentRoute.name && !0 === e.$root.settings.capabilities.canWrite
                                            ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.showDialogCustomer } }, [
                                                  n("i", { staticClass: "el-icon-plus" }),
                                                  e._v(" "),
                                                  n("span", { staticClass: "button-text" }, [e._v(e._s(e.$root.labels.add_customer))]),
                                              ])
                                            : e._e(),
                                        e._v(" "),
                                        "wpamelia-locations" === e.$router.currentRoute.name && !0 === e.$root.settings.capabilities.canWrite
                                            ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.showDialogLocation } }, [
                                                  n("i", { staticClass: "el-icon-plus" }),
                                                  e._v(" "),
                                                  n("span", { staticClass: "button-text" }, [e._v(e._s(e.$root.labels.add_location))]),
                                              ])
                                            : e._e(),
                                        e._v(" "),
                                        "wpamelia-services" === e.$router.currentRoute.name && e.categoriesTotal > 0 && !0 === e.$root.settings.capabilities.canWrite && "services" === e.bookableType
                                            ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.showDialogService } }, [
                                                  n("i", { staticClass: "el-icon-plus" }),
                                                  e._v(" "),
                                                  n("span", { staticClass: "button-text" }, [e._v(e._s(e.$root.labels.add_service))]),
                                              ])
                                            : e._e(),
                                        e._v(" "),
                                        "wpamelia-services" === e.$router.currentRoute.name && e.servicesTotal > 0 && !0 === e.$root.settings.capabilities.canWrite && "packages" === e.bookableType
                                            ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.showDialogPackage } }, [
                                                  n("i", { staticClass: "el-icon-plus" }),
                                                  e._v(" "),
                                                  n("span", { staticClass: "button-text" }, [e._v(e._s(e.$root.labels.add_package))]),
                                              ])
                                            : e._e(),
                                        e._v(" "),
                                        n(
                                            "transition",
                                            { attrs: { name: "fade" } },
                                            [
                                                "wpamelia-finance" === e.$router.currentRoute.name && e.addNewCouponBtnDisplay && !0 === e.$root.settings.capabilities.canWrite
                                                    ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.showDialogCoupon } }, [
                                                          n("i", { staticClass: "el-icon-plus" }),
                                                          e._v(" "),
                                                          n("span", { staticClass: "button-text" }, [e._v(e._s(e.$root.labels.new_coupon))]),
                                                      ])
                                                    : e._e(),
                                            ],
                                            1
                                        ),
                                        e._v(" "),
                                        n(
                                            "transition",
                                            { attrs: { name: "fade" } },
                                            [
                                                "wpamelia-customize" === e.$router.currentRoute.name && e.addNewCustomFieldBtnDisplay && !0 === e.$root.settings.capabilities.canWrite
                                                    ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.showDialogCustomFields } }, [
                                                          n("i", { staticClass: "el-icon-plus" }),
                                                          e._v(" "),
                                                          n("span", { staticClass: "button-text" }, [e._v(e._s(e.$root.labels.add_custom_field))]),
                                                      ])
                                                    : e._e(),
                                            ],
                                            1
                                        ),
                                        e._v(" "),
                                        "wpamelia-dashboard" === e.$router.currentRoute.name
                                            ? n("div", { staticClass: "v-calendar-column" }, [
                                                  n(
                                                      "div",
                                                      { staticClass: "el-form-item__content" },
                                                      [
                                                          n("v-date-picker", {
                                                              attrs: {
                                                                  mode: "range",
                                                                  "popover-visibility": "focus",
                                                                  "popover-direction": "bottom",
                                                                  "popover-align": "right",
                                                                  "tint-color": "#d52878",
                                                                  "show-day-popover": !1,
                                                                  "input-props": { class: "el-input__inner" },
                                                                  "is-expanded": !1,
                                                                  "is-required": !0,
                                                                  "input-class": "el-input__inner",
                                                                  formats: e.vCalendarFormats,
                                                                  "is-double-paned": !0,
                                                              },
                                                              on: { input: e.changeFilter },
                                                              model: {
                                                                  value: e.params.dates,
                                                                  callback: function (t) {
                                                                      e.$set(e.params, "dates", t);
                                                                  },
                                                                  expression: "params.dates",
                                                              },
                                                          }),
                                                      ],
                                                      1
                                                  ),
                                              ])
                                            : e._e(),
                                        e._v(" "),
                                        "wpamelia-calendar" === e.$router.currentRoute.name
                                            ? n(
                                                  "div",
                                                  { staticClass: "am-calendar-header-filters" },
                                                  [
                                                      n(
                                                          "el-form",
                                                          { staticClass: "demo-form-inline", attrs: { inline: !0 } },
                                                          [
                                                              n(
                                                                  "el-form-item",
                                                                  { attrs: { label: e.$root.labels.services + ":" } },
                                                                  [
                                                                      n(
                                                                          "el-select",
                                                                          {
                                                                              attrs: { multiple: "", filterable: "", "collapse-tags": "", loading: !e.fetched, placeholder: e.$root.labels.all_services },
                                                                              on: { change: e.changeFilter },
                                                                              model: {
                                                                                  value: e.params.services,
                                                                                  callback: function (t) {
                                                                                      e.$set(e.params, "services", t);
                                                                                  },
                                                                                  expression: "params.services",
                                                                              },
                                                                          },
                                                                          e._l(e.categories, function (t) {
                                                                              return n(
                                                                                  "div",
                                                                                  { key: t.id },
                                                                                  [
                                                                                      n(
                                                                                          "div",
                                                                                          {
                                                                                              staticClass: "am-drop-parent",
                                                                                              on: {
                                                                                                  click: function (n) {
                                                                                                      return e.selectAllInCategory(t.id);
                                                                                                  },
                                                                                              },
                                                                                          },
                                                                                          [n("span", [e._v(e._s(t.name))])]
                                                                                      ),
                                                                                      e._v(" "),
                                                                                      e._l(t.serviceList, function (e) {
                                                                                          return n("el-option", { key: e.id, staticClass: "am-drop-child", attrs: { label: e.name, value: e.id } });
                                                                                      }),
                                                                                  ],
                                                                                  2
                                                                              );
                                                                          }),
                                                                          0
                                                                      ),
                                                                  ],
                                                                  1
                                                              ),
                                                              e._v(" "),
                                                              n(
                                                                  "el-form-item",
                                                                  { directives: [{ name: "show", rawName: "v-show", value: e.locations.length, expression: "locations.length" }], attrs: { label: e.$root.labels.locations + ":" } },
                                                                  [
                                                                      n(
                                                                          "el-select",
                                                                          {
                                                                              attrs: { multiple: "", clearable: "", "collapse-tags": "", placeholder: e.$root.labels.all_locations, loading: !e.fetched },
                                                                              on: { change: e.changeFilter },
                                                                              model: {
                                                                                  value: e.params.locations,
                                                                                  callback: function (t) {
                                                                                      e.$set(e.params, "locations", t);
                                                                                  },
                                                                                  expression: "params.locations",
                                                                              },
                                                                          },
                                                                          e._l(e.locations, function (e) {
                                                                              return n("el-option", { key: e.id, attrs: { label: e.name, value: e.id } });
                                                                          }),
                                                                          1
                                                                      ),
                                                                  ],
                                                                  1
                                                              ),
                                                          ],
                                                          1
                                                      ),
                                                      e._v(" "),
                                                      "wpamelia-calendar" === e.$router.currentRoute.name &&
                                                      ("admin" === e.$root.settings.role || "manager" === e.$root.settings.role || ("provider" === e.$root.settings.role && e.$root.settings.roles.allowWriteAppointments))
                                                          ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.showDialogAppointment } }, [
                                                                n("i", { staticClass: "el-icon-plus" }),
                                                                e._v(" "),
                                                                n("span", { staticClass: "button-text" }, [e._v(e._s(e.$root.labels.new_appointment))]),
                                                            ])
                                                          : e._e(),
                                                  ],
                                                  1
                                              )
                                            : e._e(),
                                    ],
                                    1
                                ),
                            ],
                            1
                        ),
                    ],
                    1
                );
            },
            staticRenderFns: [],
        };
    },
    721: function (e, t, n) {
        e.exports = n(722);
    },
    722: function (e, t, n) {
        "use strict";
        var i = n(688),
            o = n(706),
            r = n(723),
            s = n(697);
        function a(e) {
            var t = new r(e),
                n = o(r.prototype.request, t);
            return i.extend(n, r.prototype, t), i.extend(n, t), n;
        }
        var l = a(s);
        (l.Axios = r),
            (l.create = function (e) {
                return a(i.merge(s, e));
            }),
            (l.Cancel = n(710)),
            (l.CancelToken = n(737)),
            (l.isCancel = n(709)),
            (l.all = function (e) {
                return Promise.all(e);
            }),
            (l.spread = n(738)),
            (e.exports = l),
            (e.exports.default = l);
    },
    723: function (e, t, n) {
        "use strict";
        var i = n(697),
            o = n(688),
            r = n(732),
            s = n(733),
            a = n(735),
            l = n(736);
        function c(e) {
            (this.defaults = e), (this.interceptors = { request: new r(), response: new r() });
        }
        (c.prototype.request = function (e) {
            "string" == typeof e && (e = o.merge({ url: arguments[0] }, arguments[1])), ((e = o.merge(i, this.defaults, { method: "get" }, e)).method = e.method.toLowerCase()), e.baseURL && !a(e.url) && (e.url = l(e.baseURL, e.url));
            var t = [s, void 0],
                n = Promise.resolve(e);
            for (
                this.interceptors.request.forEach(function (e) {
                    t.unshift(e.fulfilled, e.rejected);
                }),
                    this.interceptors.response.forEach(function (e) {
                        t.push(e.fulfilled, e.rejected);
                    });
                t.length;

            )
                n = n.then(t.shift(), t.shift());
            return n;
        }),
            o.forEach(["delete", "get", "head", "options"], function (e) {
                c.prototype[e] = function (t, n) {
                    return this.request(o.merge(n || {}, { method: e, url: t }));
                };
            }),
            o.forEach(["post", "put", "patch"], function (e) {
                c.prototype[e] = function (t, n, i) {
                    return this.request(o.merge(i || {}, { method: e, url: t, data: n }));
                };
            }),
            (e.exports = c);
    },
    724: function (e, t, n) {
        "use strict";
        var i = n(688);
        e.exports = function (e, t) {
            i.forEach(e, function (n, i) {
                i !== t && i.toUpperCase() === t.toUpperCase() && ((e[t] = n), delete e[i]);
            });
        };
    },
    725: function (e, t, n) {
        "use strict";
        var i = n(708);
        e.exports = function (e, t, n) {
            var o = n.config.validateStatus;
            n.status && o && !o(n.status) ? t(i("Request failed with status code " + n.status, n.config, null, n.request, n)) : e(n);
        };
    },
    726: function (e, t, n) {
        "use strict";
        e.exports = function (e, t, n, i, o) {
            return (e.config = t), n && (e.code = n), (e.request = i), (e.response = o), e;
        };
    },
    727: function (e, t, n) {
        "use strict";
        var i = n(688);
        function o(e) {
            return encodeURIComponent(e).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
        }
        e.exports = function (e, t, n) {
            if (!t) return e;
            var r;
            if (n) r = n(t);
            else if (i.isURLSearchParams(t)) r = t.toString();
            else {
                var s = [];
                i.forEach(t, function (e, t) {
                    null !== e &&
                        void 0 !== e &&
                        (i.isArray(e) && (t += "[]"),
                        i.isArray(e) || (e = [e]),
                        i.forEach(e, function (e) {
                            i.isDate(e) ? (e = e.toISOString()) : i.isObject(e) && (e = JSON.stringify(e)), s.push(o(t) + "=" + o(e));
                        }));
                }),
                    (r = s.join("&"));
            }
            return r && (e += (-1 === e.indexOf("?") ? "?" : "&") + r), e;
        };
    },
    728: function (e, t, n) {
        "use strict";
        var i = n(688);
        e.exports = function (e) {
            var t,
                n,
                o,
                r = {};
            return e
                ? (i.forEach(e.split("\n"), function (e) {
                      (o = e.indexOf(":")), (t = i.trim(e.substr(0, o)).toLowerCase()), (n = i.trim(e.substr(o + 1))), t && (r[t] = r[t] ? r[t] + ", " + n : n);
                  }),
                  r)
                : r;
        };
    },
    729: function (e, t, n) {
        "use strict";
        var i = n(688);
        e.exports = i.isStandardBrowserEnv()
            ? (function () {
                  var e,
                      t = /(msie|trident)/i.test(navigator.userAgent),
                      n = document.createElement("a");
                  function o(e) {
                      var i = e;
                      return (
                          t && (n.setAttribute("href", i), (i = n.href)),
                          n.setAttribute("href", i),
                          {
                              href: n.href,
                              protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
                              host: n.host,
                              search: n.search ? n.search.replace(/^\?/, "") : "",
                              hash: n.hash ? n.hash.replace(/^#/, "") : "",
                              hostname: n.hostname,
                              port: n.port,
                              pathname: "/" === n.pathname.charAt(0) ? n.pathname : "/" + n.pathname,
                          }
                      );
                  }
                  return (
                      (e = o(window.location.href)),
                      function (t) {
                          var n = i.isString(t) ? o(t) : t;
                          return n.protocol === e.protocol && n.host === e.host;
                      }
                  );
              })()
            : function () {
                  return !0;
              };
    },
    730: function (e, t, n) {
        "use strict";
        var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
        function o() {
            this.message = "String contains an invalid character";
        }
        (o.prototype = new Error()),
            (o.prototype.code = 5),
            (o.prototype.name = "InvalidCharacterError"),
            (e.exports = function (e) {
                for (var t, n, r = String(e), s = "", a = 0, l = i; r.charAt(0 | a) || ((l = "="), a % 1); s += l.charAt(63 & (t >> (8 - (a % 1) * 8)))) {
                    if ((n = r.charCodeAt((a += 0.75))) > 255) throw new o();
                    t = (t << 8) | n;
                }
                return s;
            });
    },
    731: function (e, t, n) {
        "use strict";
        var i = n(688);
        e.exports = i.isStandardBrowserEnv()
            ? {
                  write: function (e, t, n, o, r, s) {
                      var a = [];
                      a.push(e + "=" + encodeURIComponent(t)),
                          i.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()),
                          i.isString(o) && a.push("path=" + o),
                          i.isString(r) && a.push("domain=" + r),
                          !0 === s && a.push("secure"),
                          (document.cookie = a.join("; "));
                  },
                  read: function (e) {
                      var t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
                      return t ? decodeURIComponent(t[3]) : null;
                  },
                  remove: function (e) {
                      this.write(e, "", Date.now() - 864e5);
                  },
              }
            : {
                  write: function () {},
                  read: function () {
                      return null;
                  },
                  remove: function () {},
              };
    },
    732: function (e, t, n) {
        "use strict";
        var i = n(688);
        function o() {
            this.handlers = [];
        }
        (o.prototype.use = function (e, t) {
            return this.handlers.push({ fulfilled: e, rejected: t }), this.handlers.length - 1;
        }),
            (o.prototype.eject = function (e) {
                this.handlers[e] && (this.handlers[e] = null);
            }),
            (o.prototype.forEach = function (e) {
                i.forEach(this.handlers, function (t) {
                    null !== t && e(t);
                });
            }),
            (e.exports = o);
    },
    733: function (e, t, n) {
        "use strict";
        var i = n(688),
            o = n(734),
            r = n(709),
            s = n(697);
        function a(e) {
            e.cancelToken && e.cancelToken.throwIfRequested();
        }
        e.exports = function (e) {
            return (
                a(e),
                (e.headers = e.headers || {}),
                (e.data = o(e.data, e.headers, e.transformRequest)),
                (e.headers = i.merge(e.headers.common || {}, e.headers[e.method] || {}, e.headers || {})),
                i.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function (t) {
                    delete e.headers[t];
                }),
                (e.adapter || s.adapter)(e).then(
                    function (t) {
                        return a(e), (t.data = o(t.data, t.headers, e.transformResponse)), t;
                    },
                    function (t) {
                        return r(t) || (a(e), t && t.response && (t.response.data = o(t.response.data, t.response.headers, e.transformResponse))), Promise.reject(t);
                    }
                )
            );
        };
    },
    734: function (e, t, n) {
        "use strict";
        var i = n(688);
        e.exports = function (e, t, n) {
            return (
                i.forEach(n, function (n) {
                    e = n(e, t);
                }),
                e
            );
        };
    },
    735: function (e, t, n) {
        "use strict";
        e.exports = function (e) {
            return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e);
        };
    },
    736: function (e, t, n) {
        "use strict";
        e.exports = function (e, t) {
            return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
        };
    },
    737: function (e, t, n) {
        "use strict";
        var i = n(710);
        function o(e) {
            if ("function" != typeof e) throw new TypeError("executor must be a function.");
            var t;
            this.promise = new Promise(function (e) {
                t = e;
            });
            var n = this;
            e(function (e) {
                n.reason || ((n.reason = new i(e)), t(n.reason));
            });
        }
        (o.prototype.throwIfRequested = function () {
            if (this.reason) throw this.reason;
        }),
            (o.source = function () {
                var e;
                return {
                    token: new o(function (t) {
                        e = t;
                    }),
                    cancel: e,
                };
            }),
            (e.exports = o);
    },
    738: function (e, t, n) {
        "use strict";
        e.exports = function (e) {
            return function (t) {
                return e.apply(null, t);
            };
        };
    },
    739: function (e, t, n) {
        "use strict";
        var i,
            o = (function () {
                function e(e, t) {
                    for (var n = 0; n < t.length; n++) {
                        var i = t[n];
                        (i.enumerable = i.enumerable || !1), (i.configurable = !0), "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i);
                    }
                }
                return function (t, n, i) {
                    return n && e(t.prototype, n), i && e(t, i), t;
                };
            })(),
            r = n(13),
            s = (i = r) && i.__esModule ? i : { default: i };
        e.exports = (function () {
            function e() {
                !(function (e, t) {
                    if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
                })(this, e),
                    (this.errors = {});
            }
            return (
                o(e, [
                    {
                        key: "set",
                        value: function (e) {
                            this.errors = e;
                        },
                    },
                    {
                        key: "has",
                        value: function (e) {
                            return this.errors.hasOwnProperty(e);
                        },
                    },
                    {
                        key: "get",
                        value: function (e) {
                            if (this.has(e)) return this.errors[e][0];
                        },
                    },
                    {
                        key: "getAll",
                        value: function (e) {
                            if (this.has(e)) return this.errors[e];
                        },
                    },
                    {
                        key: "clear",
                        value: function (e) {
                            e ? s.default.delete(this.errors, e) : (this.errors = {});
                        },
                    },
                    {
                        key: "any",
                        value: function () {
                            return Object.keys(this.errors).length > 0;
                        },
                    },
                ]),
                e
            );
        })();
    },
    740: function (e, t, n) {
        "use strict";
        function i(e) {
            return void 0 === e;
        }
        function o(e) {
            return Array.isArray(e);
        }
        function r(e) {
            return e && "number" == typeof e.size && "string" == typeof e.type && "function" == typeof e.slice;
        }
        e.exports = function e(t, n, s, a) {
            if ((n instanceof FormData && ((a = s), (s = n), (n = null)), ((n = n || {}).indices = !i(n.indices) && n.indices), (n.nulls = !!i(n.nulls) || n.nulls), (s = s || new FormData()), i(t))) return s;
            if (
                (function (e) {
                    return null === e;
                })(t)
            )
                n.nulls && s.append(a, "");
            else if (o(t))
                if (t.length)
                    t.forEach(function (t, i) {
                        var o = a + "[" + (n.indices ? i : "") + "]";
                        e(t, n, s, o);
                    });
                else {
                    var l = a + "[]";
                    s.append(l, "");
                }
            else
                !(function (e) {
                    return e instanceof Date;
                })(t)
                    ? !(function (e) {
                          return e === Object(e);
                      })(t) ||
                      (function (e) {
                          return r(e) && ("object" == typeof e.lastModifiedDate || "number" == typeof e.lastModified) && "string" == typeof e.name;
                      })(t) ||
                      r(t)
                        ? s.append(a, t)
                        : Object.keys(t).forEach(function (i) {
                              var r = t[i];
                              if (o(r)) for (; i.length > 2 && i.lastIndexOf("[]") === i.length - 2; ) i = i.substring(0, i.length - 2);
                              e(r, n, s, a ? a + "[" + i + "]" : i);
                          })
                    : s.append(a, t.toISOString());
            return s;
        };
    },
    741: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return {};
            },
            methods: {
                updateStashEntities: function (e) {
                    this.$root.settings.activation.stash && this.$http.post(this.$root.getAjaxUrl + "/stash", e).then(function (e) {});
                },
            },
        };
    },
    743: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return { searchCounter: 0, loadingCustomers: !1, searchCustomersTimer: null, searchedCustomers: [], dialogCustomer: !1 };
            },
            methods: {
                getInitCustomerObject: function () {
                    return { id: 0, firstName: "", lastName: "", externalId: "", phone: "", countryPhoneIso: null, email: "", gender: "", birthday: null, note: "", status: "visible", type: "customer", countPendingAppointments: 0 };
                },
                setInitialCustomers: function () {
                    var e = this;
                    "customer" !== this.$root.settings.role &&
                        this.searchCustomers("", function () {
                            var t = e.options.entities.customers.map(function (e) {
                                    return parseInt(e.id);
                                }),
                                n = e.options.entities.customers;
                            e.searchedCustomers.forEach(function (e) {
                                -1 === t.indexOf(parseInt(e.id)) && (t.push(e.id), n.push(e));
                            }),
                                (e.options.entities.customers = Object.values(
                                    n.sort(function (e, t) {
                                        return e.firstName.toLowerCase() > t.firstName.toLowerCase() ? 1 : -1;
                                    })
                                ));
                        });
                },
                searchCustomers: function (e, t) {
                    var n = this;
                    clearTimeout(this.searchCustomersTimer),
                        (this.loadingCustomers = !0),
                        this.searchCounter++,
                        (this.searchCustomersTimer = setTimeout(function () {
                            var i = n.searchCounter;
                            n.$http
                                .get(n.$root.getAjaxUrl + "/users/customers", { params: { search: e, page: 1, limit: n.$root.settings.general.customersFilterLimit, skipCount: 1 } })
                                .then(function (e) {
                                    i >= n.searchCounter &&
                                        (n.searchedCustomers = e.data.data.users.sort(function (e, t) {
                                            return e.firstName.toLowerCase() > t.firstName.toLowerCase() ? 1 : -1;
                                        })),
                                        (n.loadingCustomers = !1),
                                        t();
                                })
                                .catch(function (e) {
                                    n.loadingCustomers = !1;
                                });
                        }, 500));
                },
            },
        };
    },
    744: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(702),
            o = n.n(i),
            r = n(691),
            s = n(337),
            a = n(701),
            l = n(741);
        t.default = {
            mixins: [r.a, s.a, a.a, l.a],
            props: {
                formName: "",
                urlName: null,
                isNew: null,
                entity: null,
                getParsedEntity: null,
                updateStash: !1,
                haveSaveConfirmation: null,
                hasApplyGloballyVisibility: !1,
                hasApplyGloballyDeletion: !1,
                hasIcons: !0,
                status: null,
                buttonType: { status: "primary", remove: "danger" },
                action: { haveAdd: !1, haveEdit: !1, haveStatus: !1, haveRemove: !1, haveRemoveEffect: !1, ignoreDeleteEffect: !1, haveDuplicate: !1, haveSaveWarning: !1 },
                message: { success: { save: null, remove: null, show: null, hide: null }, confirm: { remove: null, show: null, hide: null, duplicate: null, save: null } },
                buttonText: null,
            },
            data: function () {
                return {
                    form: new o.a(),
                    allowedDelete: !0,
                    showDeleteConfirmation: !1,
                    showVisibilityConfirmation: !1,
                    showDuplicateConfirmation: !1,
                    showSaveConfirmation: !1,
                    showAddHoursDialog: !1,
                    deleteEffectMessage: null,
                    dialogLoading: !1,
                };
            },
            methods: {
                getButtonType: function (e) {
                    switch (e) {
                        case "status":
                            return this.hasIcons ? null : this.buttonType.status;
                        case "remove":
                            return this.hasIcons ? null : this.buttonType.remove;
                        case "duplicate":
                            return this.hasIcons ? null : this.buttonType.duplicate;
                    }
                },
                closeDialog: function () {
                    this.$parent.$emit("closeDialog");
                },
                onSubmit: function (e) {
                    var t = this,
                        n = this.$root;
                    this.$parent.$refs[this.formName].validate(function (i, o) {
                        if (!i) return "appointment" === t.formName && t.handleAppointmentDialogTabChange(o), t.$emit("validationFailCallback"), !1;
                        (t.dialogLoading = !0), t.isNew ? t.addEntity(e) : t.editEntity(e), (t.$root = n);
                    });
                },
                onSuccess: function (e, t, n) {
                    var i = this;
                    this.$parent.$emit("saveCallback", n),
                        setTimeout(function () {
                            (i.dialogLoading = !1), i.$parent.$emit("closeDialog");
                        }, 300),
                        this.notify(e, t, "success");
                },
                onError: function (e, t) {
                    (this.dialogLoading = !1), this.$emit("errorCallback", t);
                },
                addEntity: function (e) {
                    var t = this,
                        n = null;
                    void 0 !== this.$store &&
                        void 0 !== this.$store.state.cabinet &&
                        "provider" === this.$store.state.cabinet.cabinetType &&
                        (n = Object.assign(this.getAuthorizationHeaderObject(), { params: { source: "cabinet-" + this.$store.state.cabinet.cabinetType } })),
                        this.$http
                            .post(this.$root.getAjaxUrl + "/" + this.urlName, this.getParsedEntity(e), n)
                            .then(function (e) {
                                t.onSuccess(t.$root.labels.success, t.message.success.save, e.data.data), t.updateStash && t.updateStashEntities({});
                            })
                            .catch(function (e) {
                                e.response && t.onError("", e.response.data.data);
                            });
                },
                editEntity: function (e) {
                    var t = this,
                        n = null;
                    void 0 !== this.$store &&
                        void 0 !== this.$store.state.cabinet &&
                        "provider" === this.$store.state.cabinet.cabinetType &&
                        (n = Object.assign(this.getAuthorizationHeaderObject(), { params: { source: "cabinet-" + this.$store.state.cabinet.cabinetType } })),
                        this.$http
                            .post(this.$root.getAjaxUrl + "/" + this.urlName + "/" + this.entity.id, this.getParsedEntity(e), n)
                            .then(function (e) {
                                t.onSuccess(t.$root.labels.success, t.message.success.save, e.data.data), t.updateStash && t.updateStashEntities({});
                            })
                            .catch(function (e) {
                                e.response && t.onError("", e.response.data.data);
                            });
                },
                deleteEntity: function (e) {
                    var t = this;
                    (this.dialogLoading = !0),
                        this.form
                            .post(this.$root.getAjaxUrl + "/" + this.urlName + "/delete/" + this.entity.id, { status: this.status.on, applyGlobally: e })
                            .then(function (e) {
                                t.onSuccess(t.$root.labels.success, t.message.success.remove, e.data.data), t.updateStash && t.updateStashEntities({});
                            })
                            .catch(function (e) {
                                e.response && t.onError("", e.response.data.data.message);
                            });
                },
                showEntity: function (e) {
                    var t = this;
                    (this.dialogLoading = !0),
                        this.form
                            .post(this.$root.getAjaxUrl + "/" + this.urlName + "/status/" + this.entity.id, { status: this.status.on, applyGlobally: e })
                            .then(function (e) {
                                t.onSuccess(t.$root.labels.success, t.message.success.show, null), t.updateStash && t.updateStashEntities({});
                            })
                            .catch(function (e) {
                                e.response && t.onError("", e.response.data.data.message);
                            });
                },
                hideEntity: function (e) {
                    var t = this;
                    (this.dialogLoading = !0),
                        this.form
                            .post(this.$root.getAjaxUrl + "/" + this.urlName + "/status/" + this.entity.id, { status: this.status.off, applyGlobally: e })
                            .then(function () {
                                t.onSuccess(t.$root.labels.success, t.message.success.hide, null), t.updateStash && t.updateStashEntities({});
                            })
                            .catch(function (e) {
                                e.response && t.onError("", e.response.data.data.message);
                            });
                },
                duplicateEntity: function () {
                    var e = this;
                    (this.dialogLoading = !0),
                        this.$parent.$emit("closeDialog", !0),
                        this.$parent.$emit("duplicateCallback", this.entity),
                        setTimeout(function () {
                            (e.showDuplicateConfirmation = !1), (e.dialogLoading = !1);
                        }, 600);
                },
                handleSaveConfirmation: function () {
                    (this.showSaveConfirmation = !this.showSaveConfirmation), (this.showVisibilityConfirmation = !1), (this.showDeleteConfirmation = !1), (this.showDuplicateConfirmation = !1);
                },
                handleDuplicateConfirmation: function () {
                    (this.showDuplicateConfirmation = !this.showDuplicateConfirmation), (this.showSaveConfirmation = !1), (this.showDeleteConfirmation = !1), (this.showVisibilityConfirmation = !1);
                },
                handleVisibilityConfirmation: function () {
                    (this.showVisibilityConfirmation = !this.showVisibilityConfirmation), (this.showSaveConfirmation = !1), (this.showDeleteConfirmation = !1), (this.showDuplicateConfirmation = !1);
                },
                handleDeleteConfirmation: function () {
                    var e = this;
                    (this.showVisibilityConfirmation = !1),
                        (this.showDuplicateConfirmation = !1),
                        (this.showSaveConfirmation = !1),
                        this.action.haveRemoveEffect
                            ? !1 === this.showDeleteConfirmation &&
                              this.$http
                                  .get(this.$root.getAjaxUrl + "/" + this.urlName + "/effect/" + this.entity.id)
                                  .then(function (t) {
                                      (e.allowedDelete = t.data.data.valid || e.ignoreDeleteEffect), (e.deleteEffectMessage = t.data.data.message), (e.showDeleteConfirmation = !e.showDeleteConfirmation);
                                  })
                                  .catch(function (t) {
                                      (e.showDeleteConfirmation = !e.showDeleteConfirmation), (e.deleteEffectMessage = "");
                                  })
                            : (this.showDeleteConfirmation = !this.showDeleteConfirmation);
                },
                handleSaveClick: function () {
                    this.haveSaveConfirmation && this.haveSaveConfirmation() ? this.handleSaveConfirmation() : this.onSubmit(!1);
                },
                getConfirmSaveButtonText: function () {
                    return null !== this.buttonText && this.buttonText.confirm && this.buttonText.confirm.save
                        ? { yes: this.buttonText.confirm.save.yes, no: this.buttonText.confirm.save.no }
                        : { yes: this.$root.labels.yes, no: this.$root.labels.no };
                },
                getConfirmDeleteButtonText: function () {
                    return null !== this.buttonText && this.buttonText.confirm && this.buttonText.confirm.remove
                        ? { yes: this.buttonText.confirm.remove.yes, no: this.buttonText.confirm.remove.no }
                        : { yes: this.$root.labels.yes, no: this.$root.labels.no };
                },
                getConfirmStatusButtonText: function () {
                    return null !== this.buttonText && this.buttonText.confirm && this.buttonText.confirm.status
                        ? { yes: this.buttonText.confirm.status.yes, no: this.buttonText.confirm.status.no }
                        : { yes: this.$root.labels.yes, no: this.$root.labels.no };
                },
                getActionStatusButtonText: function () {
                    return null !== this.buttonText && this.buttonText.action ? this.buttonText.action.status : "";
                },
                getActionRemoveButtonText: function () {
                    return null !== this.buttonText && this.buttonText.action ? this.buttonText.action.remove : "";
                },
                getActionDuplicateButtonText: function () {
                    return null !== this.buttonText && this.buttonText.action ? this.buttonText.action.duplicate : "";
                },
                handleAppointmentDialogTabChange: function (e) {
                    for (var t = Object.keys(e), n = 0, i = 0; i < t.length; i++) n = t[i].startsWith("bookings.") ? n + 1 : n;
                    n === t.length && this.$emit("validationBookingsFailCallback");
                },
                isStatusOn: function () {
                    return this.entity.status === this.status.on;
                },
                isStatusOff: function () {
                    return this.entity.status === this.status.off;
                },
            },
            computed: {},
            components: {},
        };
    },
    745: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n("div", [
                    n("div", { staticClass: "am-dialog-footer" }, [
                        n(
                            "div",
                            { staticClass: "am-dialog-footer-actions" },
                            [
                                n("transition", { attrs: { name: "slide-vertical" } }, [
                                    n(
                                        "div",
                                        { directives: [{ name: "show", rawName: "v-show", value: e.showDeleteConfirmation, expression: "showDeleteConfirmation" }], staticClass: "am-dialog-confirmation" },
                                        [
                                            n("h3", { directives: [{ name: "show", rawName: "v-show", value: e.allowedDelete, expression: "allowedDelete" }] }, [e._v(e._s(e.message.confirm.remove))]),
                                            e._v(" "),
                                            e.action.haveRemoveEffect && e.deleteEffectMessage ? n("el-alert", { attrs: { title: "", type: "warning", description: e.deleteEffectMessage, "show-icon": "", closable: !1 } }) : e._e(),
                                            e._v(" "),
                                            e.hasApplyGloballyDeletion
                                                ? n(
                                                      "div",
                                                      { staticClass: "align-left" },
                                                      [
                                                          n(
                                                              "el-button",
                                                              {
                                                                  attrs: { size: "small", type: "primary" },
                                                                  on: {
                                                                      click: function (t) {
                                                                          return e.deleteEntity(!1);
                                                                      },
                                                                  },
                                                              },
                                                              [e._v("\n              " + e._s(e.getConfirmDeleteButtonText().no) + "\n            ")]
                                                          ),
                                                          e._v(" "),
                                                          n(
                                                              "el-button",
                                                              {
                                                                  attrs: { size: "small", type: "primary" },
                                                                  on: {
                                                                      click: function (t) {
                                                                          return e.deleteEntity(!0);
                                                                      },
                                                                  },
                                                              },
                                                              [e._v("\n              " + e._s(e.getConfirmDeleteButtonText().yes) + "\n            ")]
                                                          ),
                                                      ],
                                                      1
                                                  )
                                                : n(
                                                      "div",
                                                      { staticClass: "align-left" },
                                                      [
                                                          e.allowedDelete
                                                              ? n(
                                                                    "el-button",
                                                                    {
                                                                        attrs: { size: "small" },
                                                                        on: {
                                                                            click: function (t) {
                                                                                e.showDeleteConfirmation = !e.showDeleteConfirmation;
                                                                            },
                                                                        },
                                                                    },
                                                                    [e._v("\n              " + e._s(e.$root.labels.cancel) + "\n            ")]
                                                                )
                                                              : e._e(),
                                                          e._v(" "),
                                                          e.allowedDelete
                                                              ? n(
                                                                    "el-button",
                                                                    {
                                                                        attrs: { size: "small", type: "primary" },
                                                                        on: {
                                                                            click: function (t) {
                                                                                return e.deleteEntity(!1);
                                                                            },
                                                                        },
                                                                    },
                                                                    [e._v("\n              " + e._s(e.$root.labels.delete) + "\n            ")]
                                                                )
                                                              : e._e(),
                                                          e._v(" "),
                                                          e.allowedDelete
                                                              ? e._e()
                                                              : n(
                                                                    "el-button",
                                                                    {
                                                                        attrs: { size: "small" },
                                                                        on: {
                                                                            click: function (t) {
                                                                                e.showDeleteConfirmation = !e.showDeleteConfirmation;
                                                                            },
                                                                        },
                                                                    },
                                                                    [e._v("\n              " + e._s(e.$root.labels.close) + "\n            ")]
                                                                ),
                                                      ],
                                                      1
                                                  ),
                                        ],
                                        1
                                    ),
                                ]),
                                e._v(" "),
                                n("transition", { attrs: { name: "slide-vertical" } }, [
                                    e.status
                                        ? n("div", { directives: [{ name: "show", rawName: "v-show", value: e.showVisibilityConfirmation, expression: "showVisibilityConfirmation" }], staticClass: "am-dialog-confirmation" }, [
                                              e.isStatusOn() ? n("h3", [e._v(e._s(e.message.confirm.hide))]) : e.isStatusOff() ? n("h3", [e._v(e._s(e.message.confirm.show))]) : e._e(),
                                              e._v(" "),
                                              e.hasApplyGloballyVisibility
                                                  ? n(
                                                        "div",
                                                        { staticClass: "align-left" },
                                                        [
                                                            e.isStatusOn()
                                                                ? n(
                                                                      "el-button",
                                                                      {
                                                                          attrs: { size: "small", type: "primary" },
                                                                          on: {
                                                                              click: function (t) {
                                                                                  return e.hideEntity(!1);
                                                                              },
                                                                          },
                                                                      },
                                                                      [e._v("\n              " + e._s(e.getConfirmStatusButtonText().no) + "\n            ")]
                                                                  )
                                                                : e._e(),
                                                            e._v(" "),
                                                            e.isStatusOn()
                                                                ? n(
                                                                      "el-button",
                                                                      {
                                                                          attrs: { size: "small", type: "primary" },
                                                                          on: {
                                                                              click: function (t) {
                                                                                  return e.hideEntity(!0);
                                                                              },
                                                                          },
                                                                      },
                                                                      [e._v("\n              " + e._s(e.getConfirmStatusButtonText().yes) + "\n            ")]
                                                                  )
                                                                : e._e(),
                                                            e._v(" "),
                                                            e.isStatusOff()
                                                                ? n(
                                                                      "el-button",
                                                                      {
                                                                          attrs: { size: "small", type: "primary" },
                                                                          on: {
                                                                              click: function (t) {
                                                                                  return e.showEntity(!1);
                                                                              },
                                                                          },
                                                                      },
                                                                      [e._v("\n              " + e._s(e.getConfirmStatusButtonText().no) + "\n            ")]
                                                                  )
                                                                : e._e(),
                                                            e._v(" "),
                                                            e.isStatusOff()
                                                                ? n(
                                                                      "el-button",
                                                                      {
                                                                          attrs: { size: "small", type: "primary" },
                                                                          on: {
                                                                              click: function (t) {
                                                                                  return e.showEntity(!0);
                                                                              },
                                                                          },
                                                                      },
                                                                      [e._v("\n              " + e._s(e.getConfirmStatusButtonText().yes) + "\n            ")]
                                                                  )
                                                                : e._e(),
                                                        ],
                                                        1
                                                    )
                                                  : n(
                                                        "div",
                                                        { staticClass: "align-left" },
                                                        [
                                                            n(
                                                                "el-button",
                                                                {
                                                                    attrs: { size: "small" },
                                                                    on: {
                                                                        click: function (t) {
                                                                            e.showVisibilityConfirmation = !e.showVisibilityConfirmation;
                                                                        },
                                                                    },
                                                                },
                                                                [e._v("\n              " + e._s(e.$root.labels.cancel) + "\n            ")]
                                                            ),
                                                            e._v(" "),
                                                            e.isStatusOn()
                                                                ? n(
                                                                      "el-button",
                                                                      {
                                                                          attrs: { size: "small", type: "primary" },
                                                                          on: {
                                                                              click: function (t) {
                                                                                  return e.hideEntity(!1);
                                                                              },
                                                                          },
                                                                      },
                                                                      [e._v("\n              " + e._s(e.getConfirmStatusButtonText().yes) + "\n            ")]
                                                                  )
                                                                : e._e(),
                                                            e._v(" "),
                                                            e.isStatusOff()
                                                                ? n(
                                                                      "el-button",
                                                                      {
                                                                          attrs: { size: "small", type: "primary" },
                                                                          on: {
                                                                              click: function (t) {
                                                                                  return e.showEntity(!1);
                                                                              },
                                                                          },
                                                                      },
                                                                      [e._v("\n              " + e._s(e.getConfirmStatusButtonText().yes) + "\n            ")]
                                                                  )
                                                                : e._e(),
                                                        ],
                                                        1
                                                    ),
                                          ])
                                        : e._e(),
                                ]),
                                e._v(" "),
                                n("transition", { attrs: { name: "slide-vertical" } }, [
                                    n("div", { directives: [{ name: "show", rawName: "v-show", value: e.showDuplicateConfirmation, expression: "showDuplicateConfirmation" }], staticClass: "am-dialog-confirmation" }, [
                                        n("h3", [e._v(e._s(e.message.confirm.duplicate))]),
                                        e._v(" "),
                                        n(
                                            "div",
                                            { staticClass: "align-left" },
                                            [
                                                n(
                                                    "el-button",
                                                    {
                                                        attrs: { size: "small" },
                                                        on: {
                                                            click: function (t) {
                                                                e.showDuplicateConfirmation = !e.showDuplicateConfirmation;
                                                            },
                                                        },
                                                    },
                                                    [e._v("\n              " + e._s(e.$root.labels.cancel) + "\n            ")]
                                                ),
                                                e._v(" "),
                                                n("el-button", { attrs: { size: "small", type: "primary" }, on: { click: e.duplicateEntity } }, [e._v("\n              " + e._s(e.$root.labels.duplicate) + "\n            ")]),
                                            ],
                                            1
                                        ),
                                    ]),
                                ]),
                                e._v(" "),
                                n("transition", { attrs: { name: "slide-vertical" } }, [
                                    n(
                                        "div",
                                        { directives: [{ name: "show", rawName: "v-show", value: e.showSaveConfirmation, expression: "showSaveConfirmation" }], staticClass: "am-dialog-confirmation" },
                                        [
                                            e.buttonText ? n("h3", [e._v(e._s(e.message.confirm.save))]) : e._e(),
                                            e._v(" "),
                                            e.buttonText
                                                ? n(
                                                      "div",
                                                      { staticClass: "align-left" },
                                                      [
                                                          n(
                                                              "el-button",
                                                              {
                                                                  attrs: { type: "primary", size: "small" },
                                                                  on: {
                                                                      click: function (t) {
                                                                          return e.onSubmit(!1);
                                                                      },
                                                                  },
                                                              },
                                                              [e._v("\n              " + e._s(e.getConfirmSaveButtonText().no) + "\n            ")]
                                                          ),
                                                          e._v(" "),
                                                          n(
                                                              "el-button",
                                                              {
                                                                  attrs: { type: "primary", size: "small" },
                                                                  on: {
                                                                      click: function (t) {
                                                                          return e.onSubmit(!0);
                                                                      },
                                                                  },
                                                              },
                                                              [e._v("\n              " + e._s(e.getConfirmSaveButtonText().yes) + "\n            ")]
                                                          ),
                                                      ],
                                                      1
                                                  )
                                                : e._e(),
                                            e._v(" "),
                                            e.action.haveSaveWarning
                                                ? n("el-alert", { staticStyle: { "word-break": "break-word" }, attrs: { title: "", type: "warning", description: e.message.confirm.save, "show-icon": "", closable: !1 } })
                                                : e._e(),
                                        ],
                                        1
                                    ),
                                ]),
                                e._v(" "),
                                e.isNew
                                    ? n(
                                          "el-row",
                                          [
                                              n(
                                                  "el-col",
                                                  { staticClass: "align-right", attrs: { sm: 24 } },
                                                  [
                                                      n("el-button", { attrs: { type: "" }, on: { click: e.closeDialog } }, [e._v("\n            " + e._s(e.$root.labels.cancel) + "\n          ")]),
                                                      e._v(" "),
                                                      e.action.haveAdd && e.action.haveEdit
                                                          ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.handleSaveClick } }, [
                                                                e._v("\n            " + e._s(e.$root.labels.save) + "\n          "),
                                                            ])
                                                          : e._e(),
                                                  ],
                                                  1
                                              ),
                                          ],
                                          1
                                      )
                                    : n(
                                          "el-row",
                                          [
                                              n(
                                                  "el-col",
                                                  { staticClass: "align-left", attrs: { sm: 16 } },
                                                  [
                                                      e.action.haveDuplicate
                                                          ? n(
                                                                "el-button",
                                                                { class: { "am-button-icon": e.hasIcons, "am-dialog-create": !e.hasIcons }, attrs: { type: e.getButtonType("duplicate") }, on: { click: e.handleDuplicateConfirmation } },
                                                                [
                                                                    e.hasIcons
                                                                        ? n("img", { staticClass: "svg", attrs: { alt: e.$root.labels.duplicate, src: e.$root.getUrl + "public/img/copy.svg" } })
                                                                        : n("span", [e._v(e._s(e.getActionDuplicateButtonText()))]),
                                                                ]
                                                            )
                                                          : e._e(),
                                                      e._v(" "),
                                                      e.action.haveStatus
                                                          ? n(
                                                                "el-button",
                                                                { class: { "am-button-icon": e.hasIcons, "am-dialog-create": !e.hasIcons }, attrs: { type: e.getButtonType("status") }, on: { click: e.handleVisibilityConfirmation } },
                                                                [
                                                                    e.hasIcons
                                                                        ? n("img", { staticClass: "svg", attrs: { alt: e.$root.labels.hide, src: e.$root.getUrl + (e.isStatusOff() ? "public/img/unhide.svg" : "public/img/hide.svg") } })
                                                                        : n("span", [e._v(e._s(e.getActionStatusButtonText()))]),
                                                                ]
                                                            )
                                                          : e._e(),
                                                      e._v(" "),
                                                      e.action.haveRemove
                                                          ? n(
                                                                "el-button",
                                                                { class: { "am-button-icon": e.hasIcons, "am-dialog-create": !e.hasIcons }, attrs: { type: e.getButtonType("remove") }, on: { click: e.handleDeleteConfirmation } },
                                                                [
                                                                    e.hasIcons
                                                                        ? n("img", { staticClass: "svg", attrs: { alt: e.$root.labels.delete, src: e.$root.getUrl + "public/img/delete.svg" } })
                                                                        : n("span", [e._v(e._s(e.getActionRemoveButtonText()))]),
                                                                ]
                                                            )
                                                          : e._e(),
                                                  ],
                                                  1
                                              ),
                                              e._v(" "),
                                              n(
                                                  "el-col",
                                                  { staticClass: "align-right", attrs: { sm: !1 === e.action.haveRemove && !1 === e.action.haveStatus && !1 === e.action.haveDuplicate ? 24 : 8 } },
                                                  [
                                                      e.action.haveAdd && e.action.haveEdit
                                                          ? n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.handleSaveClick } }, [
                                                                e._v("\n            " + e._s(e.$root.labels.save) + "\n          "),
                                                            ])
                                                          : e._e(),
                                                  ],
                                                  1
                                              ),
                                          ],
                                          1
                                      ),
                            ],
                            1
                        ),
                    ]),
                    e._v(" "),
                    n("div", { directives: [{ name: "show", rawName: "v-show", value: e.dialogLoading, expression: "dialogLoading" }], staticClass: "am-dialog-loader" }, [
                        n("div", { staticClass: "am-dialog-loader-content" }, [n("img", { attrs: { src: e.$root.getUrl + "public/img/spinner.svg" } }), e._v(" "), n("p", [e._v(e._s(e.$root.labels.loader_message))])]),
                    ]),
                ]);
            },
            staticRenderFns: [],
        };
    },
    746: function (e, t, n) {
        var i = n(685)(n(747), n(748), !1, null, null, null);
        e.exports = i.exports;
    },
    747: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(337),
            o = n(692),
            r = n(686),
            s = n(0),
            a = n.n(s);
        t.default = {
            name: "recurringDatesForm",
            mixins: [i.a, o.a, r.a],
            props: { recurringData: null, availableDates: null, calendarTimeSlots: null, isFrontend: !0, selectedExtras: null, service: null, formType: { type: String }, formsData: { type: Object, default: function () {} } },
            data: function () {
                return {
                    currentlyEditingItemIndex: null,
                    recalculatedAvailableDates: null,
                    disabledWeekdays: null,
                    loading: !1,
                    formName: this.$options.name,
                    labelRecurringAppointments: this.formsData[this.$options.name].itemsStatic.recurringDatesHeadingFormField.labels.recurring_appointments.value,
                    labelRecurringEdit: this.formsData[this.$options.name].itemsStatic.recurringDatesHeadingFormField.labels.recurring_edit.value,
                    headingVisibility: this.formsData[this.$options.name].itemsStatic.recurringDatesHeadingFormField.visibility,
                    labelDate: this.formsData[this.$options.name].itemsStatic.recurringInfoFormField.labels.date.value,
                    labelTime: this.formsData[this.$options.name].itemsStatic.recurringInfoFormField.labels.time.value,
                };
            },
            mounted: function () {
                this.scrollView("am-recurring-dates", "start"), this.isFrontend || (this.recurringData.datesCallback = this.setAvailableDates), this.setAvailableDates();
            },
            methods: {
                setUntilDateFormatted: function () {
                    this.recurringData.untilString = this.$root.labels.recurring_until_text + " " + this.getFrontedFormattedDate(a()(this.recurringData.dates[this.recurringData.dates.length - 1].date).format("YYYY-MM-DD"));
                },
                getRowClass: function (e) {
                    var t = "";
                    return (e.isSubstituteDate || e.isSubstituteTime) && (t = "am-recurring-dates-row-substitute"), e.isEditing && (t = "am-recurring-dates-row-editing"), t;
                },
                getAppointmentDate: function (e) {
                    return this.getFrontedFormattedDate(a()(e).format("YYYY-MM-DD"));
                },
                getAppointmentTime: function (e) {
                    return this.getFrontedFormattedTime(e);
                },
                cancelRecurringDates: function () {
                    this.$emit("cancelRecurringDates");
                },
                confirmRecurringDates: function () {
                    this.setUntilDateFormatted(), this.$emit("confirmRecurringDates");
                },
                getRequiredDuration: function () {
                    var e = this.service.duration;
                    return (
                        this.selectedExtras.forEach(function (t) {
                            e += t.duration ? t.duration : 0;
                        }),
                        e
                    );
                },
                getAvailableSlots: function (e, t) {
                    for (var n = {}, i = 0; i < e.length; i++) {
                        for (var o = this.getStringTimeInSeconds(e[i]), r = !0, s = 0; s < t.length; s++) {
                            var a = this.getStringTimeInSeconds(t[s]),
                                l = this.getRequiredDuration(),
                                c = a - l - this.service.timeAfter,
                                u = a + l + this.service.timeBefore;
                            if (o > c && o < u) {
                                r = !1;
                                break;
                            }
                        }
                        r && (n[e[i]] = this.getStringTimeInSeconds(e[i]));
                    }
                    return n;
                },
                inspectDate: function (e, t, n) {
                    var i = a()(e.date).format("YYYY-MM-DD"),
                        o = this.getAvailableSlots(Object.keys(this.calendarTimeSlots[i]), this.getAlreadySelectedDateSlots(i, null));
                    Object.keys(o).length > 0 && (t[a()(e.date).format("YYYY-MM-DD")] = !0), (n[a()(e.date).format("YYYY-MM-DD")] = !0);
                },
                setAvailableDates: function () {
                    var e = this,
                        t = {},
                        n = {};
                    this.inspectDate(this.recurringData.startAppointment, t, n),
                        this.recurringData.dates.forEach(function (i) {
                            e.inspectDate(i, t, n);
                        });
                    var i = [];
                    Object.keys(this.calendarTimeSlots).forEach(function (e) {
                        e in n ? e in t && i.push(a()(e).toDate()) : i.push(a()(e).toDate());
                    }),
                        (this.disabledWeekdays = { weekdays: [] }),
                        (this.disabledWeekdays = 0 === i.length ? { weekdays: [1, 2, 3, 4, 5, 6, 7] } : null),
                        (this.recalculatedAvailableDates = i),
                        this.$emit("datesDefined", this.recurringData.dates);
                },
                setAvailableSlotsForAllDates: function (e) {
                    var t = this,
                        n = a()(e).format("YYYY-MM-DD");
                    this.recurringData.dates.forEach(function (e) {
                        if (a()(e.date).format("YYYY-MM-DD") === n) {
                            var i = t.getAvailableSlots(Object.keys(t.calendarTimeSlots[n]), t.getAlreadySelectedDateSlots(n, e.index));
                            for (var o in ((e.slots = {}), (e.slots[e.slot] = t.calendarTimeSlots[n][e.slot]), i)) e.slots[o] = t.calendarTimeSlots[n][o];
                        }
                    });
                },
                getAlreadySelectedDateSlots: function (e, t) {
                    var n = [];
                    return (
                        this.recurringData.dates.forEach(function (i) {
                            a()(i.date).format("YYYY-MM-DD") === e && i.index !== t && n.push(i.slot);
                        }),
                        e === this.recurringData.startDate.split(" ")[0] && n.push(this.recurringData.startTime),
                        n
                    );
                },
                changedDate: function (e) {
                    if (null !== e.date) {
                        var t = a()(e.date).format("YYYY-MM-DD"),
                            n = this.getAvailableSlots(Object.keys(this.calendarTimeSlots[t]), this.getAlreadySelectedDateSlots(t, e.index));
                        for (var i in ((e.slots = {}), n)) e.slots[i] = this.calendarTimeSlots[t][i];
                        var o = Object.keys(e.slots);
                        -1 === o.indexOf(e.slot) && (e.slot = o[0]), this.isFrontend || this.confirmEditDate(e);
                    } else e.date = e.previousDate;
                },
                editDate: function (e) {
                    var t = this;
                    null !== this.currentlyEditingItemIndex &&
                        this.recurringData.pageRecurringDates.forEach(function (e) {
                            e.index === t.currentlyEditingItemIndex && t.cancelEditDate(e);
                        }),
                        this.recurringData.pageRecurringDates.forEach(function (e) {
                            (e.isEditing = !1), (e.isDeleting = !1);
                        }),
                        (this.currentlyEditingItemIndex = e.index),
                        (e.isEditing = !0);
                },
                cancelEditDate: function (e) {
                    (e.slot = e.previousSlot), a()(e.date).format("YYYY-MM-DD") !== a()(e.previousDate).format("YYYY-MM-DD") && ((e.date = e.previousDate), this.changedDate(e)), (e.isEditing = !1);
                },
                confirmEditDate: function (e) {
                    if (a()(e.date).format("YYYY-MM-DD") !== a()(e.previousDate).format("YYYY-MM-DD")) {
                        var t = e.previousDate;
                        (e.previousDate = e.date), (e.previousSlot = e.slot), this.setAvailableSlotsForAllDates(e.date), this.setAvailableSlotsForAllDates(t), this.setAvailableDates();
                    }
                    (this.currentlyEditingItemIndex = null), (e.isEditing = !1);
                },
                deleteDate: function (e) {
                    this.recurringData.pageRecurringDates.forEach(function (e) {
                        (e.isEditing = !1), (e.isDeleting = !1);
                    }),
                        (e.isDeleting = !0);
                },
                confirmDeleteDate: function (e, t) {
                    var n = this;
                    (this.loading = !0),
                        setTimeout(function () {
                            e.isDeleting = !1;
                            var i = (n.recurringData.pagination.page - 1) * n.recurringData.pagination.show,
                                o = n.recurringData.pagination.page * n.recurringData.pagination.show;
                            n.recurringData.dates.splice(i + t, 1),
                                n.recurringData.pageRecurringDates.splice(t, 1),
                                n.recurringData.dates.length >= n.recurringData.pagination.show && n.recurringData.pageRecurringDates.push(n.recurringData.dates[o - 1]),
                                (n.recurringData.pagination.count = n.recurringData.dates.length),
                                n.setAvailableSlotsForAllDates(e.date),
                                n.setAvailableDates(),
                                (n.loading = !1);
                        }, 500);
                },
                cancelDeleteDate: function (e) {
                    e.isDeleting = !1;
                },
            },
            watch: {
                "recurringData.pagination.page": function () {
                    var e = this;
                    (this.loading = !0),
                        setTimeout(function () {
                            var t = (e.recurringData.pagination.page - 1) * e.recurringData.pagination.show;
                            (e.recurringData.pageRecurringDates = e.recurringData.dates.slice(t, t + e.recurringData.pagination.show)), (e.loading = !1);
                        }, 500);
                },
            },
            computed: {
                substitutesCount: function () {
                    return this.recurringData.dates.filter(function (e) {
                        return e.isSubstituteDate || e.isSubstituteTime;
                    }).length;
                },
            },
        };
    },
    748: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n("div", { staticClass: "am-recurring-dates", class: e.$root.settings.customization.forms ? "am-form-" + e.formType + "-" + e.formName : "", attrs: { id: "am-recurring-dates" } }, [
                    e.substitutesCount > 0
                        ? n("div", { staticClass: "am-recurring-dates-header" }, [
                              e.isFrontend ? n("p", [e._v(e._s(e.$root.labels.recurring_sub_message1))]) : e._e(),
                              e._v(" "),
                              n("p", [e._v(e._s(e.$root.labels.recurring_sub_message2) + e._s(e.substitutesCount))]),
                          ])
                        : n(
                              "div",
                              { staticClass: "am-recurring-dates-header" },
                              [
                                  e.headingVisibility
                                      ? [
                                            e.isFrontend ? n("p", { staticClass: "am-recurring-dates-header-first" }, [e._v(e._s(e.labelRecurringAppointments || e.$root.labels.recurring_appointments))]) : e._e(),
                                            e._v(" "),
                                            e.isFrontend ? n("p", { staticClass: "am-recurring-dates-header-second" }, [e._v(e._s(e.labelRecurringEdit || e.$root.labels.recurring_edit))]) : e._e(),
                                        ]
                                      : e._e(),
                              ],
                              2
                          ),
                    e._v(" "),
                    n(
                        "div",
                        { staticClass: "am-recurring-dates-row-header hide-on-mobile" },
                        [
                            n(
                                "el-row",
                                [
                                    n("el-col", { attrs: { lg: 3, sm: 3 } }, [n("span", { staticStyle: { visibility: "hidden" } }, [e._v("#")])]),
                                    e._v(" "),
                                    n("el-col", { staticClass: "am-recurring-dates-row-header-date", attrs: { lg: 10, sm: 10 } }, [n("span", [e._v(e._s(e.labelDate || e.$root.labels.date))])]),
                                    e._v(" "),
                                    n("el-col", { staticClass: "am-recurring-dates-row-header-time", attrs: { lg: 7, sm: 7 } }, [n("span", [e._v(e._s(e.labelTime || e.$root.labels.time))])]),
                                    e._v(" "),
                                    n("el-col", { attrs: { lg: 4, sm: 4 } }, [n("span")]),
                                ],
                                1
                            ),
                        ],
                        1
                    ),
                    e._v(" "),
                    n(
                        "div",
                        { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], staticClass: "am-recurring-dates-rows", style: { opacity: e.loading ? 0.5 : 1 } },
                        e._l(e.recurringData.pageRecurringDates, function (t, i) {
                            return void 0 !== t
                                ? n(
                                      "el-row",
                                      { key: i, staticClass: "am-recurring-flex-row-middle-align", class: e.getRowClass(t) },
                                      [
                                          n(
                                              "el-col",
                                              {
                                                  staticClass: "am-recurring-row-item am-recurring-row-order",
                                                  class: [{ "is-editing": t.isEditing, "is-deleting": t.isDeleting }, e.$root.settings.customization.forms ? "am-block-" + e.formType + "-" + e.formName : ""],
                                                  attrs: { lg: t.isDeleting ? 18 : 3, sm: t.isDeleting ? 18 : 3 },
                                              },
                                              [
                                                  t.isDeleting ? e._e() : n("span", { class: e.isFrontend ? "hide-on-mobile" : "" }, [e._v(e._s(i + 1 + e.recurringData.pagination.show * (e.recurringData.pagination.page - 1)))]),
                                                  e._v(" "),
                                                  e.isFrontend && !t.isDeleting
                                                      ? n("span", { staticClass: "am-col-title am-col-title-date" }, [e._v(e._s(e.labelDate || e.$root.labels.date) + " / " + e._s(e.labelTime || e.$root.labels.time))])
                                                      : e._e(),
                                                  t.isSubstituteDate || t.isSubstituteTime ? n("i", { staticClass: "el-icon-warning-outline" }) : e._e(),
                                                  e._v(" "),
                                                  t.isDeleting ? n("span", { staticClass: "am-recurring-row-delete-message" }, [e._v(e._s(e.$root.labels.recurring_confirm_delete))]) : e._e(),
                                              ]
                                          ),
                                          e._v(" "),
                                          n(
                                              "el-col",
                                              {
                                                  staticClass: "am-recurring-row-item am-recurring-row-item-date v-calendar-column",
                                                  class: [{ "is-editing": t.isEditing, "is-substitute": t.isSubstituteDate }, e.$root.settings.customization.forms ? "am-calendar-" + e.formType + "-" + e.formName : ""],
                                                  attrs: { lg: t.isDeleting ? 1 : 10, sm: t.isDeleting ? 1 : 10 },
                                              },
                                              [
                                                  n("v-date-picker", {
                                                      style: { visibility: t.isDeleting ? "hidden" : "visible" },
                                                      attrs: {
                                                          mode: "single",
                                                          "popover-visibility": "focus",
                                                          "popover-direction": e.isFrontend ? "bottom" : "top",
                                                          "popover-align": "center",
                                                          "tint-color": e.$root.settings.customization.primaryColor,
                                                          "input-class": "el-input__inner",
                                                          "show-day-popover": !1,
                                                          "input-props": { class: "el-input__inner" },
                                                          "available-dates": e.recalculatedAvailableDates,
                                                          "is-expanded": !1,
                                                          "is-required": !1,
                                                          "disabled-dates": e.disabledWeekdays,
                                                          disabled: !1,
                                                          formats: e.vCalendarFormats,
                                                      },
                                                      on: {
                                                          input: function (n) {
                                                              return e.changedDate(t);
                                                          },
                                                      },
                                                      model: {
                                                          value: t.date,
                                                          callback: function (n) {
                                                              e.$set(t, "date", n);
                                                          },
                                                          expression: "item.date",
                                                      },
                                                  }),
                                              ],
                                              1
                                          ),
                                          e._v(" "),
                                          n(
                                              "el-col",
                                              {
                                                  staticClass: "am-recurring-row-item am-recurring-row-item-time",
                                                  class: [{ "is-editing": t.isEditing, "is-substitute": t.isSubstituteTime }, e.$root.settings.customization.forms ? "am-select-" + e.formType + "-" + e.formName : ""],
                                                  attrs: { lg: t.isDeleting ? 1 : 7, sm: t.isDeleting ? 1 : 7 },
                                              },
                                              [
                                                  n(
                                                      "div",
                                                      [
                                                          n(
                                                              "el-select",
                                                              {
                                                                  class: null === t.slot ? "am-recurring-row-item-time" : "",
                                                                  style: { visibility: t.isDeleting ? "hidden" : "visible" },
                                                                  attrs: { "value-key": "time", filterable: "", "popper-class": e.$root.settings.customization.forms ? "am-dropdown-" + e.formType + "-" + e.formName : "" },
                                                                  model: {
                                                                      value: t.slot,
                                                                      callback: function (n) {
                                                                          e.$set(t, "slot", n);
                                                                      },
                                                                      expression: "item.slot",
                                                                  },
                                                              },
                                                              e._l(Object.keys(t.slots).sort(), function (t) {
                                                                  return n("el-option", { key: t, attrs: { label: e.getFrontedFormattedTime(t + ":00"), value: t } });
                                                              }),
                                                              1
                                                          ),
                                                      ],
                                                      1
                                                  ),
                                              ]
                                          ),
                                          e._v(" "),
                                          n("el-col", { staticClass: "am-recurring-row-action", class: t.isEditing ? "is-editing" : "", attrs: { lg: (t.isDeleting, 4), sm: (t.isDeleting, 4) } }, [
                                              t.isEditing || t.isDeleting || !(e.recurringData.pagination.page > 1 || (1 === e.recurringData.pagination.page && i > 0))
                                                  ? e.recurringData.pagination.page > 1 || (1 === e.recurringData.pagination.page && i > 0)
                                                      ? n("div", [
                                                            n(
                                                                "div",
                                                                {
                                                                    staticClass: "am-edit-element",
                                                                    class: e.$root.settings.customization.forms ? "am-block-" + e.formType + "-" + e.formName : "",
                                                                    on: {
                                                                        click: function (n) {
                                                                            t.isDeleting ? e.confirmDeleteDate(t, i) : e.confirmEditDate(t);
                                                                        },
                                                                    },
                                                                },
                                                                [n("i", { staticClass: "el-icon-check" })]
                                                            ),
                                                            e._v(" "),
                                                            n(
                                                                "div",
                                                                {
                                                                    staticClass: "am-delete-element",
                                                                    class: e.$root.settings.customization.forms ? "am-block-" + e.formType + "-" + e.formName : "",
                                                                    on: {
                                                                        click: function (n) {
                                                                            t.isDeleting ? e.cancelDeleteDate(t) : e.cancelEditDate(t);
                                                                        },
                                                                    },
                                                                },
                                                                [n("i", { staticClass: "el-icon-close" })]
                                                            ),
                                                        ])
                                                      : e._e()
                                                  : n("div", [
                                                        e.isFrontend
                                                            ? n(
                                                                  "div",
                                                                  {
                                                                      staticClass: "am-edit-element",
                                                                      class: e.$root.settings.customization.forms ? "am-block-" + e.formType + "-" + e.formName : "",
                                                                      on: {
                                                                          click: function (n) {
                                                                              return e.editDate(t);
                                                                          },
                                                                      },
                                                                  },
                                                                  [n("i", { staticClass: "el-icon-edit" })]
                                                              )
                                                            : e._e(),
                                                        e._v(" "),
                                                        n(
                                                            "div",
                                                            {
                                                                staticClass: "am-edit-element",
                                                                class: e.$root.settings.customization.forms ? "am-block-" + e.formType + "-" + e.formName : "",
                                                                style: { visibility: 1 === e.recurringData.dates.length ? "hidden" : "visible" },
                                                                on: {
                                                                    click: function (n) {
                                                                        e.isFrontend ? e.deleteDate(t) : e.confirmDeleteDate(t, i);
                                                                    },
                                                                },
                                                            },
                                                            [n("i", { staticClass: "el-icon-delete" })]
                                                        ),
                                                    ]),
                                          ]),
                                      ],
                                      1
                                  )
                                : e._e();
                        }),
                        1
                    ),
                    e._v(" "),
                    n(
                        "div",
                        {
                            staticClass: "am-pagination am-section",
                            class: [e.recurringData.pagination.count > e.recurringData.pagination.show ? "" : "am-pagination-hidden", e.$root.settings.customization.forms ? "am-block-" + e.formType + "-" + e.formName : ""],
                        },
                        [
                            n("div", [
                                n("p", [
                                    e._v(
                                        e._s(e.$root.labels.showing) +
                                            " " +
                                            e._s(e.recurringData.pageRecurringDates.length) +
                                            " " +
                                            e._s(e.$root.labels.out_of) +
                                            " " +
                                            e._s(e.recurringData.dates.length) +
                                            " " +
                                            e._s(e.$root.labels.recurring_appointments)
                                    ),
                                ]),
                            ]),
                            e._v(" "),
                            n("el-pagination", {
                                attrs: { "page-size": e.recurringData.pagination.show, total: e.recurringData.pagination.count, layout: "prev, pager, next", "current-page": e.recurringData.pagination.page },
                                on: {
                                    "update:currentPage": function (t) {
                                        return e.$set(e.recurringData.pagination, "page", t);
                                    },
                                    "update:current-page": function (t) {
                                        return e.$set(e.recurringData.pagination, "page", t);
                                    },
                                },
                            }),
                        ],
                        1
                    ),
                    e._v(" "),
                    e.isFrontend
                        ? n("div", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [
                              n(
                                  "div",
                                  {
                                      staticClass: "el-button el-button--default",
                                      on: {
                                          click: function (t) {
                                              return e.cancelRecurringDates();
                                          },
                                      },
                                  },
                                  [n("span", [e._v(e._s(e.$root.labels.cancel))])]
                              ),
                              e._v(" "),
                              n(
                                  "div",
                                  {
                                      staticClass: "el-button el-button--primary",
                                      on: {
                                          click: function (t) {
                                              return e.confirmRecurringDates();
                                          },
                                      },
                                  },
                                  [n("span", [e._v(e._s(e.$root.labels.continue))])]
                              ),
                          ])
                        : e._e(),
                ]);
            },
            staticRenderFns: [],
        };
    },
    749: function (e, t, n) {
        var i = n(685)(n(750), n(754), !1, null, null, null);
        e.exports = i.exports;
    },
    750: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(0),
            o = n.n(i),
            r = n(337),
            s = n(686),
            a = n(705),
            l = n(751),
            c = n.n(l);
        t.default = {
            name: "recurringSetupForm",
            components: { recurringSetupHeadingFormField: c.a },
            mixins: [r.a, a.a, s.a],
            props: {
                containerId: null,
                initialRecurringData: null,
                recurringData: null,
                availableDates: null,
                disabledWeekdays: null,
                calendarTimeSlots: null,
                service: null,
                isFrontend: !0,
                calendarPosition: "bottom",
                formType: { type: String },
                formsData: { type: Object, default: function () {} },
            },
            data: function () {
                return {
                    formName: this.$options.name,
                    monthlyWeekDayRepeat: [
                        { label: this.$root.labels.recurring_date_specific, value: 0 },
                        { label: this.$root.labels.recurring_date_first, value: 1 },
                        { label: this.$root.labels.recurring_date_second, value: 2 },
                        { label: this.$root.labels.recurring_date_third, value: 3 },
                        { label: this.$root.labels.recurring_date_fourth, value: 4 },
                        { label: this.$root.labels.recurring_date_last, value: 5 },
                    ],
                    cycles: [
                        { label: this.$root.labels.recurring_type_daily, value: "daily" },
                        { label: this.$root.labels.recurring_type_weekly, value: "weekly" },
                        { label: this.$root.labels.recurring_type_monthly, value: "monthly" },
                    ],
                    weekDays: [],
                    recurring: { maxDate: null },
                    labelRepeat: this.formsData.recurringSetupForm.itemsStatic.recurringSettingsFormField.labels.recurring_repeat.value,
                    labelEvery: this.formsData.recurringSetupForm.itemsStatic.recurringSettingsFormField.labels.recurring_every.value,
                    labelOn: this.formsData.recurringSetupForm.itemsStatic.recurringSettingsFormField.labels.recurring_on.value,
                    labelUntil: this.formsData.recurringSetupForm.itemsStatic.recurringSettingsFormField.labels.recurring_until.value,
                    labelTimes: this.formsData.recurringSetupForm.itemsStatic.recurringSettingsFormField.labels.recurring_times.value,
                };
            },
            created: function () {
                this.weekDays = [];
                for (var e = 0; e < 7; e++)
                    this.weekDays.push({
                        label: o()()
                            .isoWeekday(e + 1)
                            .format("dd"),
                        enabled: !0,
                    });
            },
            mounted: function () {
                this.scrollView("am-recurring-setup", "start"),
                    (this.recurring.maxDate = this.initialRecurringData.calendarDates[this.initialRecurringData.calendarDates.length - 1]),
                    0 === this.initialRecurringData.weekDaysSelected.length && this.initialRecurringData.weekDaysSelected.push(this.initialRecurringData.selectedWeekDayIndex),
                    this.isFrontend || (this.recurringData.setupCallback = this.setRecurringValues),
                    this.setRecurringValues("count");
            },
            methods: {
                setRecurringString: function () {
                    var e = this,
                        t = (this.recurringData.recurringString = this.$root.labels.recurring_every_text + " " + this.selectedRecurringInterval.label);
                    switch (this.initialRecurringData.cycle) {
                        case "daily":
                            this.recurringData.recurringString = t;
                            break;
                        case "weekly":
                            for (var n = o()(), i = n.clone().startOf("week"), r = n.clone().endOf("week"), s = ""; i.isBefore(r); )
                                -1 !== this.initialRecurringData.weekDaysSelected.indexOf(i.isoWeekday() - 1) && (s += i.format("dddd") + ", "), i.add(1, "days");
                            this.recurringData.recurringString = t + " " + (s ? this.$root.labels.recurring_substring_on : "") + " " + s;
                            break;
                        case "monthly":
                            var a = this.monthlyWeekDayRepeat.find(function (t) {
                                return t.value === e.initialRecurringData.monthDateRule;
                            });
                            this.recurringData.recurringString = t + " " + this.$root.labels.recurring_substring_on + " " + (void 0 !== a ? a.label + " " + this.initialRecurringData.selectedMonthlyWeekDayString + "," : "");
                    }
                },
                getFutureMonthDate: function (e, t) {
                    var n = o()(e, "YYYY-MM-DD"),
                        i = o()(n).add(t, "M"),
                        r = o()(i).startOf("month");
                    return n.date() !== i.date() && i.isSame(r.format("YYYY-MM-DD")) && i.subtract(1, "d"), i;
                },
                getGivenDateOfMonth: function (e, t, n) {
                    var i = o()(e, "YYYY-MM-DD").startOf("month").day(n);
                    i.format("M") !== e.format("M") && i.add(7, "days");
                    var r = i.add(7 * (t - 1), "days");
                    return e.format("M") !== r.format("M") && r.subtract(7, "days"), r;
                },
                setAvailableWeekDays: function () {
                    var e = this,
                        t = o()(this.recurringData.startDate, "YYYY-MM-DD"),
                        n = o()(this.recurring.maxDate);
                    for (
                        this.weekDays.forEach(function (e) {
                            e.enabled = !1;
                        });
                        t.isSameOrBefore(n);

                    ) {
                        var i = t.isoWeekday() - 1;
                        t.format("YYYY-MM-DD") in this.calendarTimeSlots && (this.weekDays[i].enabled = !0), t.add(1, "days");
                    }
                    var r = [];
                    this.weekDays.forEach(function (t, n) {
                        t.enabled && -1 !== e.initialRecurringData.weekDaysSelected.indexOf(n) && r.push(n);
                    }),
                        (this.initialRecurringData.weekDaysSelected = r);
                },
                getExpectedDates: function () {
                    var e = o()(this.initialRecurringData.maxDate),
                        t = o()(this.recurring.maxDate),
                        n = [],
                        i = o()(this.recurringData.startDate, "YYYY-MM-DD");
                    n.push({ dateString: i.format("YYYY-MM-DD"), date: i });
                    var r = [];
                    switch (this.initialRecurringData.cycle) {
                        case "daily":
                            r.push(o()(this.recurringData.startDate, "YYYY-MM-DD"));
                            break;
                        case "weekly":
                            this.setAvailableWeekDays();
                            for (var s = o()(this.recurringData.startDate, "YYYY-MM-DD").isoWeekday(), a = this.initialRecurringData.weekDaysSelected.sort(), l = 0; l < a.length; l++) {
                                var c = this.initialRecurringData.weekDaysSelected[l] + 1,
                                    u = o()(this.recurringData.startDate, "YYYY-MM-DD");
                                s < c && r.push(u.add(c - s, "days")), s === c && r.push(u), s > c && r.push(u.subtract(s - c, "days")), u.isSameOrBefore(e) && n.push({ dateString: u.format("YYYY-MM-DD"), date: u.clone() });
                            }
                            break;
                        case "monthly":
                            r.push(o()(this.recurringData.startDate, "YYYY-MM-DD"));
                    }
                    for (var d = r.length > 0; d; )
                        for (var p = 0; p < r.length; p++) {
                            switch (this.initialRecurringData.cycle) {
                                case "daily":
                                    r[p].add(this.initialRecurringData.cycleInterval, "days");
                                    break;
                                case "weekly":
                                    r[p].add(7 * this.initialRecurringData.cycleInterval, "days");
                                    break;
                                case "monthly":
                                    if (0 === this.initialRecurringData.monthDateRule) r[p] = this.getFutureMonthDate(r[p].format("YYYY-MM-DD"), this.initialRecurringData.cycleInterval);
                                    else {
                                        var h = r[p].isoWeekday(),
                                            f = this.getFutureMonthDate(r[p].startOf("month").format("YYYY-MM-DD"), this.initialRecurringData.cycleInterval);
                                        r[p] = this.getGivenDateOfMonth(f, this.initialRecurringData.monthDateRule, h);
                                    }
                            }
                            (d = r[p].isSameOrBefore(t)) && n.push({ dateString: o()(r[p]).format("YYYY-MM-DD"), date: o()(r[p]).clone() });
                        }
                    return n;
                },
                setRecurringValues: function (e) {
                    if (this.initialRecurringData.maxDate) {
                        var t = o()(this.initialRecurringData.calendarDates[this.initialRecurringData.calendarDates.length - 1]).diff(o()(this.recurringData.startDate, "YYYY-MM-DD"), "days");
                        switch (this.initialRecurringData.cycle) {
                            case "daily":
                                this.initialRecurringData.repeatIntervalLabels = this.getRepeatIntervalLabels(this.$root.labels.day, this.$root.labels.days, 6);
                                break;
                            case "weekly":
                                this.initialRecurringData.repeatIntervalLabels = this.getRepeatIntervalLabels(this.$root.labels.week, this.$root.labels.weeks, Math.ceil(t / 7));
                                break;
                            case "monthly":
                                this.initialRecurringData.repeatIntervalLabels = this.getRepeatIntervalLabels(this.$root.labels.month, this.$root.labels.months, Math.ceil(t / 31));
                        }
                        for (
                            var n = o()(this.recurringData.startDate, "YYYY-MM-DD"),
                                i = o()(this.initialRecurringData.maxDate),
                                r = {},
                                s = this.getExpectedDates(),
                                a = o()(this.recurringData.startDate, "YYYY-MM-DD").format("YYYY-MM-DD"),
                                l = !1,
                                c = null,
                                u = 0,
                                d = 0;
                            d < s.length;
                            d++
                        ) {
                            var p = s[d].dateString,
                                h = o()(p, "YYYY-MM-DD"),
                                f = h.isSameOrBefore(this.recurring.maxDate);
                            if (((c = o()(h)), p in this.calendarTimeSlots && Object.keys(this.calendarTimeSlots[p]).length && !(p in r) && f)) {
                                var m = this.recurringData.startTime in this.calendarTimeSlots[p];
                                c = o()(s[d].date);
                                var g = m ? this.recurringData.startTime : Object.keys(this.calendarTimeSlots[p])[0];
                                r[p] = {
                                    isEditing: !1,
                                    isDeleting: !1,
                                    isSubstituteDate: !1,
                                    isSubstituteTime: !m,
                                    date: c.toDate(),
                                    previousDate: c.toDate(),
                                    index: u++,
                                    slot: g,
                                    previousSlot: g,
                                    slots: this.calendarTimeSlots[p],
                                    providerId: null,
                                    locationId: null,
                                    modifiedSlots: [],
                                };
                            } else if (p !== a && !(p in r) && f) {
                                for (var v = null, y = null, b = 0; b < this.initialRecurringData.calendarDates.length; b++)
                                    if (
                                        (("past" === this.service.recurringSub || "both" === this.service.recurringSub) &&
                                            this.initialRecurringData.calendarDates[b].isBefore(s[d].date) &&
                                            this.initialRecurringData.calendarDates[b].isAfter(n) &&
                                            (v = this.initialRecurringData.calendarDates[b]),
                                        ("future" === this.service.recurringSub || "both" === this.service.recurringSub) && this.initialRecurringData.calendarDates[b].isAfter(s[d].date))
                                    ) {
                                        y = this.initialRecurringData.calendarDates[b];
                                        break;
                                    }
                                var w = null !== v ? o()(s[d].date).diff(v, "days") : null,
                                    _ = null !== y ? o()(y).diff(s[d].date, "days") : null,
                                    D = null;
                                if ((w && _ ? (D = w < _ ? v : y) : w ? (D = v) : _ && (D = y), null !== D && o()(D).isSameOrBefore(i))) {
                                    var C = o()(D).format("YYYY-MM-DD");
                                    if (
                                        C in this.calendarTimeSlots &&
                                        !(p in r) &&
                                        -1 ===
                                            s
                                                .map(function (e) {
                                                    return e.dateString;
                                                })
                                                .indexOf(C)
                                    ) {
                                        var S = this.recurringData.startTime in this.calendarTimeSlots[C];
                                        c = o()(D);
                                        var x = S ? this.recurringData.startTime : Object.keys(this.calendarTimeSlots[C])[0];
                                        r[C] = {
                                            isEditing: !1,
                                            isDeleting: !1,
                                            isSubstituteDate: !0,
                                            isSubstituteTime: !S,
                                            date: c.toDate(),
                                            previousDate: c.toDate(),
                                            index: u++,
                                            slot: x,
                                            previousSlot: x,
                                            slots: this.calendarTimeSlots[C],
                                            providerId: null,
                                            locationId: null,
                                            modifiedSlots: [],
                                        };
                                    }
                                }
                            }
                            switch (e) {
                                case "date":
                                    (l = c.isAfter(i)) && delete r[c.format("YYYY-MM-DD")];
                                    break;
                                case "count":
                                    l = Object.keys(r).length > this.initialRecurringData.maxCount;
                            }
                            if (l) break;
                        }
                        var E = [];
                        for (var T in r) E.push(r[T]);
                        for (var R = {}, k = {}, I = 0; I < E.length; I++)
                            E[I].slots[E[I].slot].forEach(function (e) {
                                e[0] in R ? R[e[0]]++ : (R[e[0]] = 1), e[1] in k ? k[e[1]]++ : (k[e[1]] = 1);
                            });
                        for (var F = this.getEntityIdWithMaxSlotCount(R), M = this.getEntityIdWithMaxSlotCount(k), P = 1 === Object.keys(k).length, $ = 0; $ < E.length; $++) {
                            var H = E[$].slots[E[$].slot];
                            if (P) {
                                var O = H.map(function (e) {
                                        return e[0];
                                    }),
                                    A = O.indexOf(F);
                                if (-1 !== A) (E[$].providerId = H[A][0]), (E[$].locationId = H[A][1]);
                                else {
                                    var B = Math.floor(Math.random() * O.length + 1);
                                    (E[$].providerId = H[B - 1][0]), (E[$].locationId = H[B - 1][1]);
                                }
                            } else {
                                var N = H.map(function (e) {
                                        return e[1];
                                    }),
                                    L = N.indexOf(M);
                                if (-1 !== L) (E[$].providerId = H[L][0]), (E[$].locationId = H[L][1]);
                                else {
                                    var j = Math.floor(Math.random() * N.length + 1);
                                    (E[$].providerId = H[j - 1][0]), (E[$].locationId = N[j - 1]);
                                }
                            }
                        }
                        switch (((this.recurringData.defaultEmployeeId = F), (this.recurringData.defaultLocationId = M), (this.recurringData.startAppointment = this.isFrontend ? E[0] : E.shift()), (this.recurringData.dates = E), e)) {
                            case "date":
                                this.initialRecurringData.maxCount = this.isFrontend ? this.recurringData.dates.length - 1 : this.recurringData.dates.length;
                                break;
                            case "count":
                                this.initialRecurringData.maxDate = this.recurringData.dates.length
                                    ? o()(this.recurringData.dates[this.recurringData.dates.length - 1].date)
                                          .clone()
                                          .toDate()
                                    : o()(this.recurringData.startDate, "YYYY-MM-DD").add(1, "days").toDate();
                        }
                        (this.recurringData.pagination.page = 1),
                            (this.recurringData.pagination.count = this.recurringData.dates.length),
                            (this.recurringData.pageRecurringDates = this.recurringData.dates.length ? this.recurringData.dates.slice(0, this.recurringData.pagination.show) : []),
                            null !== this.recurringData.datesCallback && this.recurringData.datesCallback(),
                            this.setRecurringString();
                    }
                },
                getFromDateFormatted: function () {
                    return this.getFrontedFormattedDate(o()(this.recurringData.startDate, "YYYY-MM-DD HH:mm:ss").format("YYYY-MM-DD"));
                },
                getFromTimeFormatted: function () {
                    return this.getFrontedFormattedTime(o()(this.recurringData.startDate, "YYYY-MM-DD HH:mm:ss").format("HH:mm"));
                },
                getEntityIdWithMaxSlotCount: function (e) {
                    var t = Math.max.apply(
                        Math,
                        Object.entries(e).map(function (e) {
                            return e[1];
                        })
                    );
                    return parseInt(
                        Object.entries(e).find(function (e) {
                            return e[1] === t;
                        })[0]
                    );
                },
                confirmRecurringSetup: function () {
                    var e = this;
                    this.setRecurringValues("date"),
                        setTimeout(function () {
                            e.$emit("confirmRecurringSetup");
                        }, 500);
                },
                cancelRecurringSetup: function () {
                    this.$emit("cancelRecurringSetup");
                },
            },
            computed: {
                maxUntil: function () {
                    return o()(this.initialRecurringData.calendarDates[this.initialRecurringData.calendarDates.length - 1]).toDate();
                },
                minFrom: function () {
                    return o()(this.recurringData.startDate, "YYYY-MM-DD").add(1, "days").toDate();
                },
                selectedRecurringInterval: function () {
                    var e = this;
                    return this.initialRecurringData.repeatIntervalLabels.find(function (t) {
                        return t.value === e.initialRecurringData.cycleInterval;
                    });
                },
            },
        };
    },
    751: function (e, t, n) {
        var i = n(685)(n(752), n(753), !1, null, null, null);
        e.exports = i.exports;
    },
    752: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 }),
            (t.default = {
                name: "recurringSetupHeadingFormField",
                props: { classIdentifier: { type: String, default: "" }, formField: { type: Object, default: function () {} } },
                data: function () {
                    return { formHeading: this.formField.labels.recurring_active.value };
                },
            });
    },
    753: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n("div", { class: e.$root.settings.customization.forms ? "am-block-" + e.classIdentifier : "" }, [
                    e.formField.visibility ? n("p", { staticClass: "am-recurring-setup-title" }, [e._v("\n    " + e._s(e.formHeading ? e.formHeading : e.$root.labels.recurring_active) + "\n  ")]) : e._e(),
                ]);
            },
            staticRenderFns: [],
        };
    },
    754: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n(
                    "div",
                    { staticClass: "am-recurring-setup am-mobile-collapsed am-select-date", class: e.$root.settings.customization.forms ? "am-form-" + e.formType + "-" + e.formName : "", attrs: { id: "am-recurring-setup" } },
                    [
                        e.isFrontend ? n("recurring-setup-heading-form-field", { attrs: { "class-identifier": e.formType + "-" + e.formName, formField: e.formsData[e.formName].itemsStatic.recurringSetupHeadingFormField } }) : e._e(),
                        e._v(" "),
                        n("el-form", { ref: "recurring", attrs: { model: e.recurring, "label-position": "top" } }, [
                            n(
                                "div",
                                [
                                    n(
                                        "el-row",
                                        { attrs: { gutter: 24 } },
                                        [
                                            n(
                                                "el-col",
                                                { attrs: { sm: 12 } },
                                                [
                                                    n(
                                                        "el-form-item",
                                                        { class: e.$root.settings.customization.forms ? "am-select-" + e.formType + "-" + e.formName : "", attrs: { label: e.labelRepeat || e.$root.labels.recurring_repeat } },
                                                        [
                                                            n(
                                                                "el-select",
                                                                {
                                                                    class: "all" !== e.service.recurringCycle ? "am-recurring-setup-all-cycle" : "",
                                                                    attrs: { "popper-class": e.$root.settings.customization.forms ? "am-dropdown-" + e.formType + "-" + e.formName : "", disabled: "all" !== e.service.recurringCycle },
                                                                    on: {
                                                                        change: function (t) {
                                                                            return e.setRecurringValues("count");
                                                                        },
                                                                    },
                                                                    model: {
                                                                        value: e.initialRecurringData.cycle,
                                                                        callback: function (t) {
                                                                            e.$set(e.initialRecurringData, "cycle", t);
                                                                        },
                                                                        expression: "initialRecurringData.cycle",
                                                                    },
                                                                },
                                                                e._l(e.cycles, function (e, t) {
                                                                    return n("el-option", { key: t, attrs: { value: e.value, label: e.label } });
                                                                }),
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    ),
                                                ],
                                                1
                                            ),
                                            e._v(" "),
                                            n(
                                                "el-col",
                                                { attrs: { sm: 12 } },
                                                [
                                                    n(
                                                        "el-form-item",
                                                        { class: e.$root.settings.customization.forms ? "am-select-" + e.formType + "-" + e.formName : "", attrs: { label: e.labelEvery || e.$root.labels.recurring_every } },
                                                        [
                                                            n(
                                                                "el-select",
                                                                {
                                                                    attrs: { "popper-class": e.$root.settings.customization.forms ? "am-dropdown-" + e.formType + "-" + e.formName : "" },
                                                                    on: {
                                                                        change: function (t) {
                                                                            return e.setRecurringValues("count");
                                                                        },
                                                                    },
                                                                    model: {
                                                                        value: e.initialRecurringData.cycleInterval,
                                                                        callback: function (t) {
                                                                            e.$set(e.initialRecurringData, "cycleInterval", t);
                                                                        },
                                                                        expression: "initialRecurringData.cycleInterval",
                                                                    },
                                                                },
                                                                e._l(e.initialRecurringData.repeatIntervalLabels, function (e, t) {
                                                                    return n("el-option", { key: t, attrs: { value: e.value, label: e.label } });
                                                                }),
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    ),
                                                ],
                                                1
                                            ),
                                        ],
                                        1
                                    ),
                                    e._v(" "),
                                    "weekly" === e.initialRecurringData.cycle
                                        ? n(
                                              "el-row",
                                              { staticClass: "am-recurring-setup-weekly", attrs: { gutter: 24 } },
                                              [
                                                  n(
                                                      "el-col",
                                                      { attrs: { sm: 24 } },
                                                      [
                                                          n(
                                                              "el-form-item",
                                                              { class: e.$root.settings.customization.forms ? "am-checkbox-btn-" + e.formType + "-" + e.formName : "", attrs: { label: e.labelOn || e.$root.labels.recurring_on } },
                                                              [
                                                                  n(
                                                                      "el-checkbox-group",
                                                                      {
                                                                          attrs: { border: !0, size: "small" },
                                                                          on: {
                                                                              change: function (t) {
                                                                                  return e.setRecurringValues("date");
                                                                              },
                                                                          },
                                                                          model: {
                                                                              value: e.initialRecurringData.weekDaysSelected,
                                                                              callback: function (t) {
                                                                                  e.$set(e.initialRecurringData, "weekDaysSelected", t);
                                                                              },
                                                                              expression: "initialRecurringData.weekDaysSelected",
                                                                          },
                                                                      },
                                                                      e._l(e.weekDays, function (t, i) {
                                                                          return n("el-checkbox-button", { key: i, attrs: { label: i, disabled: !t.enabled } }, [e._v("\n                " + e._s(t.label) + "\n              ")]);
                                                                      }),
                                                                      1
                                                                  ),
                                                              ],
                                                              1
                                                          ),
                                                      ],
                                                      1
                                                  ),
                                              ],
                                              1
                                          )
                                        : e._e(),
                                    e._v(" "),
                                    "monthly" === e.initialRecurringData.cycle
                                        ? n(
                                              "el-row",
                                              { attrs: { gutter: 24 } },
                                              [
                                                  n(
                                                      "el-col",
                                                      { attrs: { sm: 24 } },
                                                      [
                                                          n(
                                                              "el-form-item",
                                                              { class: e.$root.settings.customization.forms ? "am-select-" + e.formType + "-" + e.formName : "", attrs: { label: e.labelOn || e.$root.labels.recurring_on } },
                                                              [
                                                                  n(
                                                                      "el-select",
                                                                      {
                                                                          attrs: { "popper-class": e.$root.settings.customization.forms ? "am-dropdown-" + e.formType + "-" + e.formName : "" },
                                                                          on: {
                                                                              change: function (t) {
                                                                                  return e.setRecurringValues("date");
                                                                              },
                                                                          },
                                                                          model: {
                                                                              value: e.initialRecurringData.monthDateRule,
                                                                              callback: function (t) {
                                                                                  e.$set(e.initialRecurringData, "monthDateRule", t);
                                                                              },
                                                                              expression: "initialRecurringData.monthDateRule",
                                                                          },
                                                                      },
                                                                      e._l(e.monthlyWeekDayRepeat, function (t, i) {
                                                                          return n("el-option", { key: i, attrs: { value: t.value, label: t.label + (0 !== i ? " " + e.initialRecurringData.selectedMonthlyWeekDayString : "") } });
                                                                      }),
                                                                      1
                                                                  ),
                                                              ],
                                                              1
                                                          ),
                                                      ],
                                                      1
                                                  ),
                                              ],
                                              1
                                          )
                                        : e._e(),
                                    e._v(" "),
                                    n(
                                        "el-row",
                                        { style: { opacity: null !== e.initialRecurringData.cycle ? 1 : 0.2, "pointer-events": null !== e.initialRecurringData.cycle ? "all" : "none" }, attrs: { gutter: 24 } },
                                        [
                                            n(
                                                "el-col",
                                                { staticClass: "v-calendar-column", attrs: { sm: 12 } },
                                                [
                                                    n(
                                                        "el-form-item",
                                                        { class: e.$root.settings.customization.forms ? "am-calendar-" + e.formType + "-" + e.formName : "", attrs: { label: e.labelUntil || e.$root.labels.recurring_until } },
                                                        [
                                                            n("v-date-picker", {
                                                                attrs: {
                                                                    "is-double-paned": !1,
                                                                    mode: "single",
                                                                    "popover-visibility": "focus",
                                                                    "popover-direction": "bottom",
                                                                    "popover-align": "center",
                                                                    "tint-color": e.$root.settings.customization.primaryColor,
                                                                    "input-class": "el-input__inner",
                                                                    "show-day-popover": !1,
                                                                    "input-props": { class: "el-input__inner" },
                                                                    "is-expanded": !1,
                                                                    "is-required": !0,
                                                                    formats: e.vCalendarFormats,
                                                                    "available-dates": { start: e.minFrom, end: e.maxUntil },
                                                                    disabled: null === e.initialRecurringData.cycle,
                                                                },
                                                                on: {
                                                                    input: function (t) {
                                                                        return e.setRecurringValues("date");
                                                                    },
                                                                },
                                                                model: {
                                                                    value: e.initialRecurringData.maxDate,
                                                                    callback: function (t) {
                                                                        e.$set(e.initialRecurringData, "maxDate", t);
                                                                    },
                                                                    expression: "initialRecurringData.maxDate",
                                                                },
                                                            }),
                                                        ],
                                                        1
                                                    ),
                                                ],
                                                1
                                            ),
                                            e._v(" "),
                                            n(
                                                "el-col",
                                                { staticClass: "am-recurring-setup-times", attrs: { sm: 12 } },
                                                [
                                                    n(
                                                        "el-form-item",
                                                        { class: e.$root.settings.customization.forms ? "am-input-number-" + e.formType + "-" + e.formName : "", attrs: { label: e.labelTimes || e.$root.labels.recurring_times } },
                                                        [
                                                            n("el-input-number", {
                                                                attrs: { min: 1, disabled: 0 === e.initialRecurringData.cycle },
                                                                on: {
                                                                    change: function (t) {
                                                                        return e.setRecurringValues("count");
                                                                    },
                                                                },
                                                                model: {
                                                                    value: e.initialRecurringData.maxCount,
                                                                    callback: function (t) {
                                                                        e.$set(e.initialRecurringData, "maxCount", t);
                                                                    },
                                                                    expression: "initialRecurringData.maxCount",
                                                                },
                                                            }),
                                                        ],
                                                        1
                                                    ),
                                                ],
                                                1
                                            ),
                                        ],
                                        1
                                    ),
                                    e._v(" "),
                                    e.isFrontend && e.selectedRecurringInterval
                                        ? n("div", { staticClass: "am-recurring-setup-description", class: e.$root.settings.customization.forms ? "am-block-" + e.formType + "-" + e.formName : "" }, [
                                              n("span", [e._v(e._s(e.recurringData.recurringString))]),
                                              e._v(" "),
                                              n("br"),
                                              e._v(" "),
                                              n("span", [e._v(e._s(e.$root.labels.recurring_from_text + " " + e.getFromDateFormatted() + " " + e.$root.labels.at + " " + e.getFromTimeFormatted()))]),
                                          ])
                                        : e._e(),
                                    e._v(" "),
                                    e.isFrontend
                                        ? n(
                                              "div",
                                              { staticClass: "am-button-wrapper" },
                                              [
                                                  n(
                                                      "transition",
                                                      { attrs: { name: "fade" } },
                                                      [
                                                          n(
                                                              "el-button",
                                                              {
                                                                  on: {
                                                                      click: function (t) {
                                                                          return e.cancelRecurringSetup();
                                                                      },
                                                                  },
                                                              },
                                                              [e._v("\n            " + e._s(e.$root.labels.back) + "\n          ")]
                                                          ),
                                                      ],
                                                      1
                                                  ),
                                                  e._v(" "),
                                                  n(
                                                      "transition",
                                                      { attrs: { name: "fade" } },
                                                      [
                                                          n(
                                                              "el-button",
                                                              { staticClass: "am-recurring-continue", attrs: { disabled: !e.initialRecurringData.maxDate || 0 === e.recurringData.dates.length }, on: { click: e.confirmRecurringSetup } },
                                                              [e._v("\n            " + e._s(e.$root.labels.continue) + "\n          ")]
                                                          ),
                                                      ],
                                                      1
                                                  ),
                                              ],
                                              1
                                          )
                                        : e._e(),
                                ],
                                1
                            ),
                        ]),
                    ],
                    1
                );
            },
            staticRenderFns: [],
        };
    },
    755: function (e, t, n) {
        var i;
        (i = function () {
            return (function (e) {
                function t(i) {
                    if (n[i]) return n[i].exports;
                    var o = (n[i] = { i: i, l: !1, exports: {} });
                    return e[i].call(o.exports, o, o.exports, t), (o.l = !0), o.exports;
                }
                var n = {};
                return (
                    (t.m = e),
                    (t.c = n),
                    (t.i = function (e) {
                        return e;
                    }),
                    (t.d = function (e, n, i) {
                        t.o(e, n) || Object.defineProperty(e, n, { configurable: !1, enumerable: !0, get: i });
                    }),
                    (t.n = function (e) {
                        var n =
                            e && e.__esModule
                                ? function () {
                                      return e.default;
                                  }
                                : function () {
                                      return e;
                                  };
                        return t.d(n, "a", n), n;
                    }),
                    (t.o = function (e, t) {
                        return Object.prototype.hasOwnProperty.call(e, t);
                    }),
                    (t.p = "."),
                    t((t.s = 9))
                );
            })([
                function (e, t, n) {
                    "use strict";
                    t.a = { prefix: "", suffix: "", thousands: ",", decimal: ".", precision: 2 };
                },
                function (e, t, n) {
                    "use strict";
                    var i = n(2),
                        o = n(5),
                        r = n(0);
                    t.a = function (e, t) {
                        if (t.value) {
                            var s = n.i(o.a)(r.a, t.value);
                            if ("INPUT" !== e.tagName.toLocaleUpperCase()) {
                                var a = e.getElementsByTagName("input");
                                1 !== a.length || (e = a[0]);
                            }
                            (e.oninput = function () {
                                var t = e.value.length - e.selectionEnd;
                                (e.value = n.i(i.a)(e.value, s)), (t = Math.max(t, s.suffix.length)), (t = e.value.length - t), (t = Math.max(t, s.prefix.length + 1)), n.i(i.b)(e, t), e.dispatchEvent(n.i(i.c)("change"));
                            }),
                                (e.onfocus = function () {
                                    n.i(i.b)(e, e.value.length - s.suffix.length);
                                }),
                                e.oninput(),
                                e.dispatchEvent(n.i(i.c)("input"));
                        }
                    };
                },
                function (e, t, n) {
                    "use strict";
                    function i(e) {
                        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : d.a;
                        "number" == typeof e && (e = e.toFixed(s(t.precision)));
                        var n = e.indexOf("-") >= 0 ? "-" : "",
                            i = l(a(r(e), t.precision)).split("."),
                            o = i[0],
                            c = i[1];
                        return (
                            (o = (function (e, t) {
                                return e.replace(/(\d)(?=(?:\d{3})+\b)/gm, "$1" + t);
                            })(o, t.thousands)),
                            t.prefix +
                                n +
                                (function (e, t, n) {
                                    return t ? e + n + t : e;
                                })(o, c, t.decimal) +
                                t.suffix
                        );
                    }
                    function o(e, t) {
                        var n = e.indexOf("-") >= 0 ? -1 : 1,
                            i = a(r(e), t);
                        return parseFloat(i) * n;
                    }
                    function r(e) {
                        return l(e).replace(/\D+/g, "") || "0";
                    }
                    function s(e) {
                        return (function (e, t, n) {
                            return Math.max(e, Math.min(t, n));
                        })(0, e, 20);
                    }
                    function a(e, t) {
                        var n = Math.pow(10, t);
                        return (parseFloat(e) / n).toFixed(s(t));
                    }
                    function l(e) {
                        return e ? e.toString() : "";
                    }
                    function c(e, t) {
                        var n = function () {
                            e.setSelectionRange(t, t);
                        };
                        e === document.activeElement && (n(), setTimeout(n, 1));
                    }
                    function u(e) {
                        var t = document.createEvent("Event");
                        return t.initEvent(e, !0, !0), t;
                    }
                    var d = n(0);
                    n.d(t, "a", function () {
                        return i;
                    }),
                        n.d(t, "d", function () {
                            return o;
                        }),
                        n.d(t, "b", function () {
                            return c;
                        }),
                        n.d(t, "c", function () {
                            return u;
                        });
                },
                function (e, t, n) {
                    "use strict";
                    function i(e, t) {
                        t &&
                            Object.keys(t).map(function (e) {
                                a.a[e] = t[e];
                            }),
                            e.directive("money", s.a),
                            e.component("money", r.a);
                    }
                    Object.defineProperty(t, "__esModule", { value: !0 });
                    var o = n(6),
                        r = n.n(o),
                        s = n(1),
                        a = n(0);
                    n.d(t, "Money", function () {
                        return r.a;
                    }),
                        n.d(t, "VMoney", function () {
                            return s.a;
                        }),
                        n.d(t, "options", function () {
                            return a.a;
                        }),
                        n.d(t, "VERSION", function () {
                            return l;
                        });
                    var l = "0.8.1";
                    (t.default = i), "undefined" != typeof window && window.Vue && window.Vue.use(i);
                },
                function (e, t, n) {
                    "use strict";
                    Object.defineProperty(t, "__esModule", { value: !0 });
                    var i = n(1),
                        o = n(0),
                        r = n(2);
                    t.default = {
                        name: "Money",
                        props: {
                            value: { required: !0, type: [Number, String], default: 0 },
                            masked: { type: Boolean, default: !1 },
                            precision: {
                                type: Number,
                                default: function () {
                                    return o.a.precision;
                                },
                            },
                            decimal: {
                                type: String,
                                default: function () {
                                    return o.a.decimal;
                                },
                            },
                            thousands: {
                                type: String,
                                default: function () {
                                    return o.a.thousands;
                                },
                            },
                            prefix: {
                                type: String,
                                default: function () {
                                    return o.a.prefix;
                                },
                            },
                            suffix: {
                                type: String,
                                default: function () {
                                    return o.a.suffix;
                                },
                            },
                        },
                        directives: { money: i.a },
                        data: function () {
                            return { formattedValue: "" };
                        },
                        watch: {
                            value: {
                                immediate: !0,
                                handler: function (e, t) {
                                    var i = n.i(r.a)(e, this.$props);
                                    i !== this.formattedValue && (this.formattedValue = i);
                                },
                            },
                        },
                        methods: {
                            change: function (e) {
                                this.$emit("input", this.masked ? e.target.value : n.i(r.d)(e.target.value, this.precision));
                            },
                        },
                    };
                },
                function (e, t, n) {
                    "use strict";
                    t.a = function (e, t) {
                        return (
                            (e = e || {}),
                            (t = t || {}),
                            Object.keys(e)
                                .concat(Object.keys(t))
                                .reduce(function (n, i) {
                                    return (n[i] = void 0 === t[i] ? e[i] : t[i]), n;
                                }, {})
                        );
                    };
                },
                function (e, t, n) {
                    var i = n(7)(n(4), n(8), null, null);
                    e.exports = i.exports;
                },
                function (e, t) {
                    e.exports = function (e, t, n, i) {
                        var o,
                            r = (e = e || {}),
                            s = typeof e.default;
                        ("object" !== s && "function" !== s) || ((o = e), (r = e.default));
                        var a = "function" == typeof r ? r.options : r;
                        if ((t && ((a.render = t.render), (a.staticRenderFns = t.staticRenderFns)), n && (a._scopeId = n), i)) {
                            var l = a.computed || (a.computed = {});
                            Object.keys(i).forEach(function (e) {
                                var t = i[e];
                                l[e] = function () {
                                    return t;
                                };
                            });
                        }
                        return { esModule: o, exports: r, options: a };
                    };
                },
                function (e, t) {
                    e.exports = {
                        render: function () {
                            var e = this,
                                t = e.$createElement;
                            return (e._self._c || t)("input", {
                                directives: [
                                    {
                                        name: "money",
                                        rawName: "v-money",
                                        value: { precision: e.precision, decimal: e.decimal, thousands: e.thousands, prefix: e.prefix, suffix: e.suffix },
                                        expression: "{precision, decimal, thousands, prefix, suffix}",
                                    },
                                ],
                                staticClass: "v-money",
                                attrs: { type: "tel" },
                                domProps: { value: e.formattedValue },
                                on: { change: e.change },
                            });
                        },
                        staticRenderFns: [],
                    };
                },
                function (e, t, n) {
                    e.exports = n(3);
                },
            ]);
        }),
            (e.exports = i());
    },
    757: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return {};
            },
            methods: {
                getPaymentData: function (e, t, n, i) {
                    var o = {};
                    if (((o.paymentId = e), t)) {
                        (o.bookableType = "appointment"), (o.bookings = t.bookings), (o.bookingStart = t.bookingStart), (o.bookableName = this.getServiceById(t.serviceId).name);
                        var r = this.getProviderById(t.providerId);
                        (r.fullName = r.firstName + " " + r.lastName),
                            (o.providers = [r]),
                            t.bookings.forEach(function (t) {
                                t.payments.forEach(function (n) {
                                    n.id === e && (o.customer = t.customer);
                                });
                            });
                    }
                    return (
                        n &&
                            ((o.bookableType = "event"),
                            (o.bookings = n.bookings),
                            (o.bookingStart = n.periods[0].periodStart),
                            (o.bookableName = n.name),
                            (o.providers = n.providers),
                            n.bookings.forEach(function (t) {
                                t.payments.forEach(function (n) {
                                    n.id === e && (o.customer = t.customer);
                                });
                            })),
                        i && ((o.bookableType = "package"), (o.bookings = []), (o.bookingStart = null), (o.bookableName = i.name), (o.providers = []), (o.bookings = [])),
                        o
                    );
                },
                getPaymentGatewayNiceName: function (e) {
                    return "onSite" === e.gateway ? this.$root.labels.on_site : "wc" === e.gateway ? e.gatewayTitle : e.gateway ? e.gateway.charAt(0).toUpperCase() + e.gateway.slice(1) : void 0;
                },
            },
        };
    },
    789: function (e, t, n) {
        "use strict";
        t.a = {
            data: function () {
                return {};
            },
            methods: {
                getAppointmentService: function (e) {
                    var t = this.getProviderById(e.providerId).serviceList.find(function (t) {
                        return t.id === e.serviceId;
                    });
                    return t || this.getServiceById(e.serviceId);
                },
                getAppointmentPrice: function (e, t, n, i) {
                    var o = 0,
                        r = this,
                        s = parseInt(e) !== parseInt(t.id);
                    return (
                        n.forEach(function (e) {
                            e.payments.forEach(function () {
                                ["approved", "pending"].includes(e.status) && (o += r.getBookingPrice(e, s, s ? t.price : e.price, e.aggregatedPrice));
                            }),
                                0 !== e.payments.length || i || (o += r.getBookingPrice(e, !0, t.price, t.aggregatedPrice));
                        }),
                        this.getFormattedPrice(o >= 0 ? o : 0, !this.$root.settings.payments.hideCurrencySymbolFrontend)
                    );
                },
                getBookingPrice: function (e, t, n, i) {
                    var o = 0;
                    e.extras.forEach(function (t) {
                        if (void 0 === t.selected || !0 === t.selected) {
                            var n = null === t.aggregatedPrice ? i : t.aggregatedPrice;
                            o += t.price * t.quantity * (n ? e.persons : 1);
                        }
                    });
                    var r = (t ? n : e.price) * (i ? e.persons : 1) + o;
                    return r - ((r / 100) * (e.coupon ? e.coupon.discount : 0) + (e.coupon ? e.coupon.deduction : 0));
                },
            },
        };
    },
    791: function (e, t, n) {
        var i;
        "undefined" != typeof self && self,
            (i = function (e) {
                return (function (e) {
                    var t = {};
                    function n(i) {
                        if (t[i]) return t[i].exports;
                        var o = (t[i] = { i: i, l: !1, exports: {} });
                        return e[i].call(o.exports, o, o.exports, n), (o.l = !0), o.exports;
                    }
                    return (
                        (n.m = e),
                        (n.c = t),
                        (n.d = function (e, t, i) {
                            n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: i });
                        }),
                        (n.r = function (e) {
                            "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 });
                        }),
                        (n.t = function (e, t) {
                            if ((1 & t && (e = n(e)), 8 & t)) return e;
                            if (4 & t && "object" == typeof e && e && e.__esModule) return e;
                            var i = Object.create(null);
                            if ((n.r(i), Object.defineProperty(i, "default", { enumerable: !0, value: e }), 2 & t && "string" != typeof e))
                                for (var o in e)
                                    n.d(
                                        i,
                                        o,
                                        function (t) {
                                            return e[t];
                                        }.bind(null, o)
                                    );
                            return i;
                        }),
                        (n.n = function (e) {
                            var t =
                                e && e.__esModule
                                    ? function () {
                                          return e.default;
                                      }
                                    : function () {
                                          return e;
                                      };
                            return n.d(t, "a", t), t;
                        }),
                        (n.o = function (e, t) {
                            return Object.prototype.hasOwnProperty.call(e, t);
                        }),
                        (n.p = ""),
                        n((n.s = "fb15"))
                    );
                })({
                    "02f4": function (e, t, n) {
                        var i = n("4588"),
                            o = n("be13");
                        e.exports = function (e) {
                            return function (t, n) {
                                var r,
                                    s,
                                    a = String(o(t)),
                                    l = i(n),
                                    c = a.length;
                                return l < 0 || l >= c
                                    ? e
                                        ? ""
                                        : void 0
                                    : (r = a.charCodeAt(l)) < 55296 || r > 56319 || l + 1 === c || (s = a.charCodeAt(l + 1)) < 56320 || s > 57343
                                    ? e
                                        ? a.charAt(l)
                                        : r
                                    : e
                                    ? a.slice(l, l + 2)
                                    : s - 56320 + ((r - 55296) << 10) + 65536;
                            };
                        };
                    },
                    "0390": function (e, t, n) {
                        "use strict";
                        var i = n("02f4")(!0);
                        e.exports = function (e, t, n) {
                            return t + (n ? i(e, t).length : 1);
                        };
                    },
                    "07e3": function (e, t) {
                        var n = {}.hasOwnProperty;
                        e.exports = function (e, t) {
                            return n.call(e, t);
                        };
                    },
                    "0bfb": function (e, t, n) {
                        "use strict";
                        var i = n("cb7c");
                        e.exports = function () {
                            var e = i(this),
                                t = "";
                            return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), e.unicode && (t += "u"), e.sticky && (t += "y"), t;
                        };
                    },
                    "0fc9": function (e, t, n) {
                        var i = n("3a38"),
                            o = Math.max,
                            r = Math.min;
                        e.exports = function (e, t) {
                            return (e = i(e)) < 0 ? o(e + t, 0) : r(e, t);
                        };
                    },
                    1654: function (e, t, n) {
                        "use strict";
                        var i = n("71c1")(!0);
                        n("30f1")(
                            String,
                            "String",
                            function (e) {
                                (this._t = String(e)), (this._i = 0);
                            },
                            function () {
                                var e,
                                    t = this._t,
                                    n = this._i;
                                return n >= t.length ? { value: void 0, done: !0 } : ((e = i(t, n)), (this._i += e.length), { value: e, done: !1 });
                            }
                        );
                    },
                    1691: function (e, t) {
                        e.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
                    },
                    "1af6": function (e, t, n) {
                        var i = n("63b6");
                        i(i.S, "Array", { isArray: n("9003") });
                    },
                    "1bc3": function (e, t, n) {
                        var i = n("f772");
                        e.exports = function (e, t) {
                            if (!i(e)) return e;
                            var n, o;
                            if (t && "function" == typeof (n = e.toString) && !i((o = n.call(e)))) return o;
                            if ("function" == typeof (n = e.valueOf) && !i((o = n.call(e)))) return o;
                            if (!t && "function" == typeof (n = e.toString) && !i((o = n.call(e)))) return o;
                            throw TypeError("Can't convert object to primitive value");
                        };
                    },
                    "1ec9": function (e, t, n) {
                        var i = n("f772"),
                            o = n("e53d").document,
                            r = i(o) && i(o.createElement);
                        e.exports = function (e) {
                            return r ? o.createElement(e) : {};
                        };
                    },
                    "20fd": function (e, t, n) {
                        "use strict";
                        var i = n("d9f6"),
                            o = n("aebd");
                        e.exports = function (e, t, n) {
                            t in e ? i.f(e, t, o(0, n)) : (e[t] = n);
                        };
                    },
                    "214f": function (e, t, n) {
                        "use strict";
                        n("b0c5");
                        var i = n("2aba"),
                            o = n("32e9"),
                            r = n("79e5"),
                            s = n("be13"),
                            a = n("2b4c"),
                            l = n("520a"),
                            c = a("species"),
                            u = !r(function () {
                                var e = /./;
                                return (
                                    (e.exec = function () {
                                        var e = [];
                                        return (e.groups = { a: "7" }), e;
                                    }),
                                    "7" !== "".replace(e, "$<a>")
                                );
                            }),
                            d = (function () {
                                var e = /(?:)/,
                                    t = e.exec;
                                e.exec = function () {
                                    return t.apply(this, arguments);
                                };
                                var n = "ab".split(e);
                                return 2 === n.length && "a" === n[0] && "b" === n[1];
                            })();
                        e.exports = function (e, t, n) {
                            var p = a(e),
                                h = !r(function () {
                                    var t = {};
                                    return (
                                        (t[p] = function () {
                                            return 7;
                                        }),
                                        7 != ""[e](t)
                                    );
                                }),
                                f = h
                                    ? !r(function () {
                                          var t = !1,
                                              n = /a/;
                                          return (
                                              (n.exec = function () {
                                                  return (t = !0), null;
                                              }),
                                              "split" === e &&
                                                  ((n.constructor = {}),
                                                  (n.constructor[c] = function () {
                                                      return n;
                                                  })),
                                              n[p](""),
                                              !t
                                          );
                                      })
                                    : void 0;
                            if (!h || !f || ("replace" === e && !u) || ("split" === e && !d)) {
                                var m = /./[p],
                                    g = n(s, p, ""[e], function (e, t, n, i, o) {
                                        return t.exec === l ? (h && !o ? { done: !0, value: m.call(t, n, i) } : { done: !0, value: e.call(n, t, i) }) : { done: !1 };
                                    }),
                                    v = g[0],
                                    y = g[1];
                                i(String.prototype, e, v),
                                    o(
                                        RegExp.prototype,
                                        p,
                                        2 == t
                                            ? function (e, t) {
                                                  return y.call(e, this, t);
                                              }
                                            : function (e) {
                                                  return y.call(e, this);
                                              }
                                    );
                            }
                        };
                    },
                    "230e": function (e, t, n) {
                        var i = n("d3f4"),
                            o = n("7726").document,
                            r = i(o) && i(o.createElement);
                        e.exports = function (e) {
                            return r ? o.createElement(e) : {};
                        };
                    },
                    "23c6": function (e, t, n) {
                        var i = n("2d95"),
                            o = n("2b4c")("toStringTag"),
                            r =
                                "Arguments" ==
                                i(
                                    (function () {
                                        return arguments;
                                    })()
                                );
                        e.exports = function (e) {
                            var t, n, s;
                            return void 0 === e
                                ? "Undefined"
                                : null === e
                                ? "Null"
                                : "string" ==
                                  typeof (n = (function (e, t) {
                                      try {
                                          return e[t];
                                      } catch (e) {}
                                  })((t = Object(e)), o))
                                ? n
                                : r
                                ? i(t)
                                : "Object" == (s = i(t)) && "function" == typeof t.callee
                                ? "Arguments"
                                : s;
                        };
                    },
                    "241e": function (e, t, n) {
                        var i = n("25eb");
                        e.exports = function (e) {
                            return Object(i(e));
                        };
                    },
                    "25eb": function (e, t) {
                        e.exports = function (e) {
                            if (void 0 == e) throw TypeError("Can't call method on  " + e);
                            return e;
                        };
                    },
                    "294c": function (e, t) {
                        e.exports = function (e) {
                            try {
                                return !!e();
                            } catch (e) {
                                return !0;
                            }
                        };
                    },
                    "2aba": function (e, t, n) {
                        var i = n("7726"),
                            o = n("32e9"),
                            r = n("69a8"),
                            s = n("ca5a")("src"),
                            a = n("fa5b"),
                            l = "toString",
                            c = ("" + a).split(l);
                        (n("8378").inspectSource = function (e) {
                            return a.call(e);
                        }),
                            (e.exports = function (e, t, n, a) {
                                var l = "function" == typeof n;
                                l && (r(n, "name") || o(n, "name", t)),
                                    e[t] !== n && (l && (r(n, s) || o(n, s, e[t] ? "" + e[t] : c.join(String(t)))), e === i ? (e[t] = n) : a ? (e[t] ? (e[t] = n) : o(e, t, n)) : (delete e[t], o(e, t, n)));
                            })(Function.prototype, l, function () {
                                return ("function" == typeof this && this[s]) || a.call(this);
                            });
                    },
                    "2b4c": function (e, t, n) {
                        var i = n("5537")("wks"),
                            o = n("ca5a"),
                            r = n("7726").Symbol,
                            s = "function" == typeof r;
                        (e.exports = function (e) {
                            return i[e] || (i[e] = (s && r[e]) || (s ? r : o)("Symbol." + e));
                        }).store = i;
                    },
                    "2d00": function (e, t) {
                        e.exports = !1;
                    },
                    "2d95": function (e, t) {
                        var n = {}.toString;
                        e.exports = function (e) {
                            return n.call(e).slice(8, -1);
                        };
                    },
                    "2fdb": function (e, t, n) {
                        "use strict";
                        var i = n("5ca1"),
                            o = n("d2c8"),
                            r = "includes";
                        i(i.P + i.F * n("5147")(r), "String", {
                            includes: function (e) {
                                return !!~o(this, e, r).indexOf(e, arguments.length > 1 ? arguments[1] : void 0);
                            },
                        });
                    },
                    "30f1": function (e, t, n) {
                        "use strict";
                        var i = n("b8e3"),
                            o = n("63b6"),
                            r = n("9138"),
                            s = n("35e8"),
                            a = n("481b"),
                            l = n("8f60"),
                            c = n("45f2"),
                            u = n("53e2"),
                            d = n("5168")("iterator"),
                            p = !([].keys && "next" in [].keys()),
                            h = "keys",
                            f = "values",
                            m = function () {
                                return this;
                            };
                        e.exports = function (e, t, n, g, v, y, b) {
                            l(n, t, g);
                            var w,
                                _,
                                D,
                                C = function (e) {
                                    if (!p && e in T) return T[e];
                                    switch (e) {
                                        case h:
                                        case f:
                                            return function () {
                                                return new n(this, e);
                                            };
                                    }
                                    return function () {
                                        return new n(this, e);
                                    };
                                },
                                S = t + " Iterator",
                                x = v == f,
                                E = !1,
                                T = e.prototype,
                                R = T[d] || T["@@iterator"] || (v && T[v]),
                                k = R || C(v),
                                I = v ? (x ? C("entries") : k) : void 0,
                                F = ("Array" == t && T.entries) || R;
                            if (
                                (F && (D = u(F.call(new e()))) !== Object.prototype && D.next && (c(D, S, !0), i || "function" == typeof D[d] || s(D, d, m)),
                                x &&
                                    R &&
                                    R.name !== f &&
                                    ((E = !0),
                                    (k = function () {
                                        return R.call(this);
                                    })),
                                (i && !b) || (!p && !E && T[d]) || s(T, d, k),
                                (a[t] = k),
                                (a[S] = m),
                                v)
                            )
                                if (((w = { values: x ? k : C(f), keys: y ? k : C(h), entries: I }), b)) for (_ in w) _ in T || r(T, _, w[_]);
                                else o(o.P + o.F * (p || E), t, w);
                            return w;
                        };
                    },
                    "32a6": function (e, t, n) {
                        var i = n("241e"),
                            o = n("c3a1");
                        n("ce7e")("keys", function () {
                            return function (e) {
                                return o(i(e));
                            };
                        });
                    },
                    "32e9": function (e, t, n) {
                        var i = n("86cc"),
                            o = n("4630");
                        e.exports = n("9e1e")
                            ? function (e, t, n) {
                                  return i.f(e, t, o(1, n));
                              }
                            : function (e, t, n) {
                                  return (e[t] = n), e;
                              };
                    },
                    "32fc": function (e, t, n) {
                        var i = n("e53d").document;
                        e.exports = i && i.documentElement;
                    },
                    "335c": function (e, t, n) {
                        var i = n("6b4c");
                        e.exports = Object("z").propertyIsEnumerable(0)
                            ? Object
                            : function (e) {
                                  return "String" == i(e) ? e.split("") : Object(e);
                              };
                    },
                    "355d": function (e, t) {
                        t.f = {}.propertyIsEnumerable;
                    },
                    "35e8": function (e, t, n) {
                        var i = n("d9f6"),
                            o = n("aebd");
                        e.exports = n("8e60")
                            ? function (e, t, n) {
                                  return i.f(e, t, o(1, n));
                              }
                            : function (e, t, n) {
                                  return (e[t] = n), e;
                              };
                    },
                    "36c3": function (e, t, n) {
                        var i = n("335c"),
                            o = n("25eb");
                        e.exports = function (e) {
                            return i(o(e));
                        };
                    },
                    3702: function (e, t, n) {
                        var i = n("481b"),
                            o = n("5168")("iterator"),
                            r = Array.prototype;
                        e.exports = function (e) {
                            return void 0 !== e && (i.Array === e || r[o] === e);
                        };
                    },
                    "3a38": function (e, t) {
                        var n = Math.ceil,
                            i = Math.floor;
                        e.exports = function (e) {
                            return isNaN((e = +e)) ? 0 : (e > 0 ? i : n)(e);
                        };
                    },
                    "40c3": function (e, t, n) {
                        var i = n("6b4c"),
                            o = n("5168")("toStringTag"),
                            r =
                                "Arguments" ==
                                i(
                                    (function () {
                                        return arguments;
                                    })()
                                );
                        e.exports = function (e) {
                            var t, n, s;
                            return void 0 === e
                                ? "Undefined"
                                : null === e
                                ? "Null"
                                : "string" ==
                                  typeof (n = (function (e, t) {
                                      try {
                                          return e[t];
                                      } catch (e) {}
                                  })((t = Object(e)), o))
                                ? n
                                : r
                                ? i(t)
                                : "Object" == (s = i(t)) && "function" == typeof t.callee
                                ? "Arguments"
                                : s;
                        };
                    },
                    4588: function (e, t) {
                        var n = Math.ceil,
                            i = Math.floor;
                        e.exports = function (e) {
                            return isNaN((e = +e)) ? 0 : (e > 0 ? i : n)(e);
                        };
                    },
                    "45f2": function (e, t, n) {
                        var i = n("d9f6").f,
                            o = n("07e3"),
                            r = n("5168")("toStringTag");
                        e.exports = function (e, t, n) {
                            e && !o((e = n ? e : e.prototype), r) && i(e, r, { configurable: !0, value: t });
                        };
                    },
                    4630: function (e, t) {
                        e.exports = function (e, t) {
                            return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: t };
                        };
                    },
                    "469f": function (e, t, n) {
                        n("6c1c"), n("1654"), (e.exports = n("7d7b"));
                    },
                    "481b": function (e, t) {
                        e.exports = {};
                    },
                    "4aa6": function (e, t, n) {
                        e.exports = n("dc62");
                    },
                    "4bf8": function (e, t, n) {
                        var i = n("be13");
                        e.exports = function (e) {
                            return Object(i(e));
                        };
                    },
                    "4ee1": function (e, t, n) {
                        var i = n("5168")("iterator"),
                            o = !1;
                        try {
                            var r = [7][i]();
                            (r.return = function () {
                                o = !0;
                            }),
                                Array.from(r, function () {
                                    throw 2;
                                });
                        } catch (e) {}
                        e.exports = function (e, t) {
                            if (!t && !o) return !1;
                            var n = !1;
                            try {
                                var r = [7],
                                    s = r[i]();
                                (s.next = function () {
                                    return { done: (n = !0) };
                                }),
                                    (r[i] = function () {
                                        return s;
                                    }),
                                    e(r);
                            } catch (e) {}
                            return n;
                        };
                    },
                    "50ed": function (e, t) {
                        e.exports = function (e, t) {
                            return { value: t, done: !!e };
                        };
                    },
                    5147: function (e, t, n) {
                        var i = n("2b4c")("match");
                        e.exports = function (e) {
                            var t = /./;
                            try {
                                "/./"[e](t);
                            } catch (n) {
                                try {
                                    return (t[i] = !1), !"/./"[e](t);
                                } catch (e) {}
                            }
                            return !0;
                        };
                    },
                    5168: function (e, t, n) {
                        var i = n("dbdb")("wks"),
                            o = n("62a0"),
                            r = n("e53d").Symbol,
                            s = "function" == typeof r;
                        (e.exports = function (e) {
                            return i[e] || (i[e] = (s && r[e]) || (s ? r : o)("Symbol." + e));
                        }).store = i;
                    },
                    5176: function (e, t, n) {
                        e.exports = n("51b6");
                    },
                    "51b6": function (e, t, n) {
                        n("a3c3"), (e.exports = n("584a").Object.assign);
                    },
                    "520a": function (e, t, n) {
                        "use strict";
                        var i = n("0bfb"),
                            o = RegExp.prototype.exec,
                            r = String.prototype.replace,
                            s = o,
                            a = "lastIndex",
                            l = (function () {
                                var e = /a/,
                                    t = /b*/g;
                                return o.call(e, "a"), o.call(t, "a"), 0 !== e[a] || 0 !== t[a];
                            })(),
                            c = void 0 !== /()??/.exec("")[1];
                        (l || c) &&
                            (s = function (e) {
                                var t,
                                    n,
                                    s,
                                    u,
                                    d = this;
                                return (
                                    c && (n = new RegExp("^" + d.source + "$(?!\\s)", i.call(d))),
                                    l && (t = d[a]),
                                    (s = o.call(d, e)),
                                    l && s && (d[a] = d.global ? s.index + s[0].length : t),
                                    c &&
                                        s &&
                                        s.length > 1 &&
                                        r.call(s[0], n, function () {
                                            for (u = 1; u < arguments.length - 2; u++) void 0 === arguments[u] && (s[u] = void 0);
                                        }),
                                    s
                                );
                            }),
                            (e.exports = s);
                    },
                    "53e2": function (e, t, n) {
                        var i = n("07e3"),
                            o = n("241e"),
                            r = n("5559")("IE_PROTO"),
                            s = Object.prototype;
                        e.exports =
                            Object.getPrototypeOf ||
                            function (e) {
                                return (e = o(e)), i(e, r) ? e[r] : "function" == typeof e.constructor && e instanceof e.constructor ? e.constructor.prototype : e instanceof Object ? s : null;
                            };
                    },
                    "549b": function (e, t, n) {
                        "use strict";
                        var i = n("d864"),
                            o = n("63b6"),
                            r = n("241e"),
                            s = n("b0dc"),
                            a = n("3702"),
                            l = n("b447"),
                            c = n("20fd"),
                            u = n("7cd6");
                        o(
                            o.S +
                                o.F *
                                    !n("4ee1")(function (e) {
                                        Array.from(e);
                                    }),
                            "Array",
                            {
                                from: function (e) {
                                    var t,
                                        n,
                                        o,
                                        d,
                                        p = r(e),
                                        h = "function" == typeof this ? this : Array,
                                        f = arguments.length,
                                        m = f > 1 ? arguments[1] : void 0,
                                        g = void 0 !== m,
                                        v = 0,
                                        y = u(p);
                                    if ((g && (m = i(m, f > 2 ? arguments[2] : void 0, 2)), void 0 == y || (h == Array && a(y)))) for (n = new h((t = l(p.length))); t > v; v++) c(n, v, g ? m(p[v], v) : p[v]);
                                    else for (d = y.call(p), n = new h(); !(o = d.next()).done; v++) c(n, v, g ? s(d, m, [o.value, v], !0) : o.value);
                                    return (n.length = v), n;
                                },
                            }
                        );
                    },
                    "54a1": function (e, t, n) {
                        n("6c1c"), n("1654"), (e.exports = n("95d5"));
                    },
                    5537: function (e, t, n) {
                        var i = n("8378"),
                            o = n("7726"),
                            r = "__core-js_shared__",
                            s = o[r] || (o[r] = {});
                        (e.exports = function (e, t) {
                            return s[e] || (s[e] = void 0 !== t ? t : {});
                        })("versions", []).push({ version: i.version, mode: n("2d00") ? "pure" : "global", copyright: "© 2019 Denis Pushkarev (zloirock.ru)" });
                    },
                    5559: function (e, t, n) {
                        var i = n("dbdb")("keys"),
                            o = n("62a0");
                        e.exports = function (e) {
                            return i[e] || (i[e] = o(e));
                        };
                    },
                    "584a": function (e, t) {
                        var n = (e.exports = { version: "2.6.5" });
                        "number" == typeof __e && (__e = n);
                    },
                    "5b4e": function (e, t, n) {
                        var i = n("36c3"),
                            o = n("b447"),
                            r = n("0fc9");
                        e.exports = function (e) {
                            return function (t, n, s) {
                                var a,
                                    l = i(t),
                                    c = o(l.length),
                                    u = r(s, c);
                                if (e && n != n) {
                                    for (; c > u; ) if ((a = l[u++]) != a) return !0;
                                } else for (; c > u; u++) if ((e || u in l) && l[u] === n) return e || u || 0;
                                return !e && -1;
                            };
                        };
                    },
                    "5ca1": function (e, t, n) {
                        var i = n("7726"),
                            o = n("8378"),
                            r = n("32e9"),
                            s = n("2aba"),
                            a = n("9b43"),
                            l = "prototype",
                            c = function (e, t, n) {
                                var u,
                                    d,
                                    p,
                                    h,
                                    f = e & c.F,
                                    m = e & c.G,
                                    g = e & c.S,
                                    v = e & c.P,
                                    y = e & c.B,
                                    b = m ? i : g ? i[t] || (i[t] = {}) : (i[t] || {})[l],
                                    w = m ? o : o[t] || (o[t] = {}),
                                    _ = w[l] || (w[l] = {});
                                for (u in (m && (n = t), n))
                                    (p = ((d = !f && b && void 0 !== b[u]) ? b : n)[u]),
                                        (h = y && d ? a(p, i) : v && "function" == typeof p ? a(Function.call, p) : p),
                                        b && s(b, u, p, e & c.U),
                                        w[u] != p && r(w, u, h),
                                        v && _[u] != p && (_[u] = p);
                            };
                        (i.core = o), (c.F = 1), (c.G = 2), (c.S = 4), (c.P = 8), (c.B = 16), (c.W = 32), (c.U = 64), (c.R = 128), (e.exports = c);
                    },
                    "5d73": function (e, t, n) {
                        e.exports = n("469f");
                    },
                    "5f1b": function (e, t, n) {
                        "use strict";
                        var i = n("23c6"),
                            o = RegExp.prototype.exec;
                        e.exports = function (e, t) {
                            var n = e.exec;
                            if ("function" == typeof n) {
                                var r = n.call(e, t);
                                if ("object" != typeof r) throw new TypeError("RegExp exec method returned something other than an Object or null");
                                return r;
                            }
                            if ("RegExp" !== i(e)) throw new TypeError("RegExp#exec called on incompatible receiver");
                            return o.call(e, t);
                        };
                    },
                    "626a": function (e, t, n) {
                        var i = n("2d95");
                        e.exports = Object("z").propertyIsEnumerable(0)
                            ? Object
                            : function (e) {
                                  return "String" == i(e) ? e.split("") : Object(e);
                              };
                    },
                    "62a0": function (e, t) {
                        var n = 0,
                            i = Math.random();
                        e.exports = function (e) {
                            return "Symbol(".concat(void 0 === e ? "" : e, ")_", (++n + i).toString(36));
                        };
                    },
                    "63b6": function (e, t, n) {
                        var i = n("e53d"),
                            o = n("584a"),
                            r = n("d864"),
                            s = n("35e8"),
                            a = n("07e3"),
                            l = "prototype",
                            c = function (e, t, n) {
                                var u,
                                    d,
                                    p,
                                    h = e & c.F,
                                    f = e & c.G,
                                    m = e & c.S,
                                    g = e & c.P,
                                    v = e & c.B,
                                    y = e & c.W,
                                    b = f ? o : o[t] || (o[t] = {}),
                                    w = b[l],
                                    _ = f ? i : m ? i[t] : (i[t] || {})[l];
                                for (u in (f && (n = t), n))
                                    ((d = !h && _ && void 0 !== _[u]) && a(b, u)) ||
                                        ((p = d ? _[u] : n[u]),
                                        (b[u] =
                                            f && "function" != typeof _[u]
                                                ? n[u]
                                                : v && d
                                                ? r(p, i)
                                                : y && _[u] == p
                                                ? (function (e) {
                                                      var t = function (t, n, i) {
                                                          if (this instanceof e) {
                                                              switch (arguments.length) {
                                                                  case 0:
                                                                      return new e();
                                                                  case 1:
                                                                      return new e(t);
                                                                  case 2:
                                                                      return new e(t, n);
                                                              }
                                                              return new e(t, n, i);
                                                          }
                                                          return e.apply(this, arguments);
                                                      };
                                                      return (t[l] = e[l]), t;
                                                  })(p)
                                                : g && "function" == typeof p
                                                ? r(Function.call, p)
                                                : p),
                                        g && (((b.virtual || (b.virtual = {}))[u] = p), e & c.R && w && !w[u] && s(w, u, p)));
                            };
                        (c.F = 1), (c.G = 2), (c.S = 4), (c.P = 8), (c.B = 16), (c.W = 32), (c.U = 64), (c.R = 128), (e.exports = c);
                    },
                    6762: function (e, t, n) {
                        "use strict";
                        var i = n("5ca1"),
                            o = n("c366")(!0);
                        i(i.P, "Array", {
                            includes: function (e) {
                                return o(this, e, arguments.length > 1 ? arguments[1] : void 0);
                            },
                        }),
                            n("9c6c")("includes");
                    },
                    6821: function (e, t, n) {
                        var i = n("626a"),
                            o = n("be13");
                        e.exports = function (e) {
                            return i(o(e));
                        };
                    },
                    "69a8": function (e, t) {
                        var n = {}.hasOwnProperty;
                        e.exports = function (e, t) {
                            return n.call(e, t);
                        };
                    },
                    "6a99": function (e, t, n) {
                        var i = n("d3f4");
                        e.exports = function (e, t) {
                            if (!i(e)) return e;
                            var n, o;
                            if (t && "function" == typeof (n = e.toString) && !i((o = n.call(e)))) return o;
                            if ("function" == typeof (n = e.valueOf) && !i((o = n.call(e)))) return o;
                            if (!t && "function" == typeof (n = e.toString) && !i((o = n.call(e)))) return o;
                            throw TypeError("Can't convert object to primitive value");
                        };
                    },
                    "6b4c": function (e, t) {
                        var n = {}.toString;
                        e.exports = function (e) {
                            return n.call(e).slice(8, -1);
                        };
                    },
                    "6c1c": function (e, t, n) {
                        n("c367");
                        for (
                            var i = n("e53d"),
                                o = n("35e8"),
                                r = n("481b"),
                                s = n("5168")("toStringTag"),
                                a = "CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(
                                    ","
                                ),
                                l = 0;
                            l < a.length;
                            l++
                        ) {
                            var c = a[l],
                                u = i[c],
                                d = u && u.prototype;
                            d && !d[s] && o(d, s, c), (r[c] = r.Array);
                        }
                    },
                    "71c1": function (e, t, n) {
                        var i = n("3a38"),
                            o = n("25eb");
                        e.exports = function (e) {
                            return function (t, n) {
                                var r,
                                    s,
                                    a = String(o(t)),
                                    l = i(n),
                                    c = a.length;
                                return l < 0 || l >= c
                                    ? e
                                        ? ""
                                        : void 0
                                    : (r = a.charCodeAt(l)) < 55296 || r > 56319 || l + 1 === c || (s = a.charCodeAt(l + 1)) < 56320 || s > 57343
                                    ? e
                                        ? a.charAt(l)
                                        : r
                                    : e
                                    ? a.slice(l, l + 2)
                                    : s - 56320 + ((r - 55296) << 10) + 65536;
                            };
                        };
                    },
                    7726: function (e, t) {
                        var n = (e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")());
                        "number" == typeof __g && (__g = n);
                    },
                    "774e": function (e, t, n) {
                        e.exports = n("d2d5");
                    },
                    "77f1": function (e, t, n) {
                        var i = n("4588"),
                            o = Math.max,
                            r = Math.min;
                        e.exports = function (e, t) {
                            return (e = i(e)) < 0 ? o(e + t, 0) : r(e, t);
                        };
                    },
                    "794b": function (e, t, n) {
                        e.exports =
                            !n("8e60") &&
                            !n("294c")(function () {
                                return (
                                    7 !=
                                    Object.defineProperty(n("1ec9")("div"), "a", {
                                        get: function () {
                                            return 7;
                                        },
                                    }).a
                                );
                            });
                    },
                    "79aa": function (e, t) {
                        e.exports = function (e) {
                            if ("function" != typeof e) throw TypeError(e + " is not a function!");
                            return e;
                        };
                    },
                    "79e5": function (e, t) {
                        e.exports = function (e) {
                            try {
                                return !!e();
                            } catch (e) {
                                return !0;
                            }
                        };
                    },
                    "7cd6": function (e, t, n) {
                        var i = n("40c3"),
                            o = n("5168")("iterator"),
                            r = n("481b");
                        e.exports = n("584a").getIteratorMethod = function (e) {
                            if (void 0 != e) return e[o] || e["@@iterator"] || r[i(e)];
                        };
                    },
                    "7d7b": function (e, t, n) {
                        var i = n("e4ae"),
                            o = n("7cd6");
                        e.exports = n("584a").getIterator = function (e) {
                            var t = o(e);
                            if ("function" != typeof t) throw TypeError(e + " is not iterable!");
                            return i(t.call(e));
                        };
                    },
                    "7e90": function (e, t, n) {
                        var i = n("d9f6"),
                            o = n("e4ae"),
                            r = n("c3a1");
                        e.exports = n("8e60")
                            ? Object.defineProperties
                            : function (e, t) {
                                  o(e);
                                  for (var n, s = r(t), a = s.length, l = 0; a > l; ) i.f(e, (n = s[l++]), t[n]);
                                  return e;
                              };
                    },
                    8378: function (e, t) {
                        var n = (e.exports = { version: "2.6.5" });
                        "number" == typeof __e && (__e = n);
                    },
                    8436: function (e, t) {
                        e.exports = function () {};
                    },
                    "86cc": function (e, t, n) {
                        var i = n("cb7c"),
                            o = n("c69a"),
                            r = n("6a99"),
                            s = Object.defineProperty;
                        t.f = n("9e1e")
                            ? Object.defineProperty
                            : function (e, t, n) {
                                  if ((i(e), (t = r(t, !0)), i(n), o))
                                      try {
                                          return s(e, t, n);
                                      } catch (e) {}
                                  if ("get" in n || "set" in n) throw TypeError("Accessors not supported!");
                                  return "value" in n && (e[t] = n.value), e;
                              };
                    },
                    "8aae": function (e, t, n) {
                        n("32a6"), (e.exports = n("584a").Object.keys);
                    },
                    "8e60": function (e, t, n) {
                        e.exports = !n("294c")(function () {
                            return (
                                7 !=
                                Object.defineProperty({}, "a", {
                                    get: function () {
                                        return 7;
                                    },
                                }).a
                            );
                        });
                    },
                    "8f60": function (e, t, n) {
                        "use strict";
                        var i = n("a159"),
                            o = n("aebd"),
                            r = n("45f2"),
                            s = {};
                        n("35e8")(s, n("5168")("iterator"), function () {
                            return this;
                        }),
                            (e.exports = function (e, t, n) {
                                (e.prototype = i(s, { next: o(1, n) })), r(e, t + " Iterator");
                            });
                    },
                    9003: function (e, t, n) {
                        var i = n("6b4c");
                        e.exports =
                            Array.isArray ||
                            function (e) {
                                return "Array" == i(e);
                            };
                    },
                    9138: function (e, t, n) {
                        e.exports = n("35e8");
                    },
                    9306: function (e, t, n) {
                        "use strict";
                        var i = n("c3a1"),
                            o = n("9aa9"),
                            r = n("355d"),
                            s = n("241e"),
                            a = n("335c"),
                            l = Object.assign;
                        e.exports =
                            !l ||
                            n("294c")(function () {
                                var e = {},
                                    t = {},
                                    n = Symbol(),
                                    i = "abcdefghijklmnopqrst";
                                return (
                                    (e[n] = 7),
                                    i.split("").forEach(function (e) {
                                        t[e] = e;
                                    }),
                                    7 != l({}, e)[n] || Object.keys(l({}, t)).join("") != i
                                );
                            })
                                ? function (e, t) {
                                      for (var n = s(e), l = arguments.length, c = 1, u = o.f, d = r.f; l > c; )
                                          for (var p, h = a(arguments[c++]), f = u ? i(h).concat(u(h)) : i(h), m = f.length, g = 0; m > g; ) d.call(h, (p = f[g++])) && (n[p] = h[p]);
                                      return n;
                                  }
                                : l;
                    },
                    9427: function (e, t, n) {
                        var i = n("63b6");
                        i(i.S, "Object", { create: n("a159") });
                    },
                    "95d5": function (e, t, n) {
                        var i = n("40c3"),
                            o = n("5168")("iterator"),
                            r = n("481b");
                        e.exports = n("584a").isIterable = function (e) {
                            var t = Object(e);
                            return void 0 !== t[o] || "@@iterator" in t || r.hasOwnProperty(i(t));
                        };
                    },
                    "9aa9": function (e, t) {
                        t.f = Object.getOwnPropertySymbols;
                    },
                    "9b43": function (e, t, n) {
                        var i = n("d8e8");
                        e.exports = function (e, t, n) {
                            if ((i(e), void 0 === t)) return e;
                            switch (n) {
                                case 1:
                                    return function (n) {
                                        return e.call(t, n);
                                    };
                                case 2:
                                    return function (n, i) {
                                        return e.call(t, n, i);
                                    };
                                case 3:
                                    return function (n, i, o) {
                                        return e.call(t, n, i, o);
                                    };
                            }
                            return function () {
                                return e.apply(t, arguments);
                            };
                        };
                    },
                    "9c6c": function (e, t, n) {
                        var i = n("2b4c")("unscopables"),
                            o = Array.prototype;
                        void 0 == o[i] && n("32e9")(o, i, {}),
                            (e.exports = function (e) {
                                o[i][e] = !0;
                            });
                    },
                    "9def": function (e, t, n) {
                        var i = n("4588"),
                            o = Math.min;
                        e.exports = function (e) {
                            return e > 0 ? o(i(e), 9007199254740991) : 0;
                        };
                    },
                    "9e1e": function (e, t, n) {
                        e.exports = !n("79e5")(function () {
                            return (
                                7 !=
                                Object.defineProperty({}, "a", {
                                    get: function () {
                                        return 7;
                                    },
                                }).a
                            );
                        });
                    },
                    a159: function (e, t, n) {
                        var i = n("e4ae"),
                            o = n("7e90"),
                            r = n("1691"),
                            s = n("5559")("IE_PROTO"),
                            a = function () {},
                            l = "prototype",
                            c = function () {
                                var e,
                                    t = n("1ec9")("iframe"),
                                    i = r.length;
                                for (t.style.display = "none", n("32fc").appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write("<script>document.F=Object</script>"), e.close(), c = e.F; i--; )
                                    delete c[l][r[i]];
                                return c();
                            };
                        e.exports =
                            Object.create ||
                            function (e, t) {
                                var n;
                                return null !== e ? ((a[l] = i(e)), (n = new a()), (a[l] = null), (n[s] = e)) : (n = c()), void 0 === t ? n : o(n, t);
                            };
                    },
                    a352: function (t, n) {
                        t.exports = e;
                    },
                    a3c3: function (e, t, n) {
                        var i = n("63b6");
                        i(i.S + i.F, "Object", { assign: n("9306") });
                    },
                    a481: function (e, t, n) {
                        "use strict";
                        var i = n("cb7c"),
                            o = n("4bf8"),
                            r = n("9def"),
                            s = n("4588"),
                            a = n("0390"),
                            l = n("5f1b"),
                            c = Math.max,
                            u = Math.min,
                            d = Math.floor,
                            p = /\$([$&`']|\d\d?|<[^>]*>)/g,
                            h = /\$([$&`']|\d\d?)/g,
                            f = function (e) {
                                return void 0 === e ? e : String(e);
                            };
                        n("214f")("replace", 2, function (e, t, n, m) {
                            return [
                                function (i, o) {
                                    var r = e(this),
                                        s = void 0 == i ? void 0 : i[t];
                                    return void 0 !== s ? s.call(i, r, o) : n.call(String(r), i, o);
                                },
                                function (e, t) {
                                    var o = m(n, e, this, t);
                                    if (o.done) return o.value;
                                    var d = i(e),
                                        p = String(this),
                                        h = "function" == typeof t;
                                    h || (t = String(t));
                                    var v = d.global;
                                    if (v) {
                                        var y = d.unicode;
                                        d.lastIndex = 0;
                                    }
                                    for (var b = []; ; ) {
                                        var w = l(d, p);
                                        if (null === w) break;
                                        if ((b.push(w), !v)) break;
                                        "" === String(w[0]) && (d.lastIndex = a(p, r(d.lastIndex), y));
                                    }
                                    for (var _ = "", D = 0, C = 0; C < b.length; C++) {
                                        w = b[C];
                                        for (var S = String(w[0]), x = c(u(s(w.index), p.length), 0), E = [], T = 1; T < w.length; T++) E.push(f(w[T]));
                                        var R = w.groups;
                                        if (h) {
                                            var k = [S].concat(E, x, p);
                                            void 0 !== R && k.push(R);
                                            var I = String(t.apply(void 0, k));
                                        } else I = g(S, p, x, E, R, t);
                                        x >= D && ((_ += p.slice(D, x) + I), (D = x + S.length));
                                    }
                                    return _ + p.slice(D);
                                },
                            ];
                            function g(e, t, i, r, s, a) {
                                var l = i + e.length,
                                    c = r.length,
                                    u = h;
                                return (
                                    void 0 !== s && ((s = o(s)), (u = p)),
                                    n.call(a, u, function (n, o) {
                                        var a;
                                        switch (o.charAt(0)) {
                                            case "$":
                                                return "$";
                                            case "&":
                                                return e;
                                            case "`":
                                                return t.slice(0, i);
                                            case "'":
                                                return t.slice(l);
                                            case "<":
                                                a = s[o.slice(1, -1)];
                                                break;
                                            default:
                                                var u = +o;
                                                if (0 === u) return n;
                                                if (u > c) {
                                                    var p = d(u / 10);
                                                    return 0 === p ? n : p <= c ? (void 0 === r[p - 1] ? o.charAt(1) : r[p - 1] + o.charAt(1)) : n;
                                                }
                                                a = r[u - 1];
                                        }
                                        return void 0 === a ? "" : a;
                                    })
                                );
                            }
                        });
                    },
                    a4bb: function (e, t, n) {
                        e.exports = n("8aae");
                    },
                    a745: function (e, t, n) {
                        e.exports = n("f410");
                    },
                    aae3: function (e, t, n) {
                        var i = n("d3f4"),
                            o = n("2d95"),
                            r = n("2b4c")("match");
                        e.exports = function (e) {
                            var t;
                            return i(e) && (void 0 !== (t = e[r]) ? !!t : "RegExp" == o(e));
                        };
                    },
                    aebd: function (e, t) {
                        e.exports = function (e, t) {
                            return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: t };
                        };
                    },
                    b0c5: function (e, t, n) {
                        "use strict";
                        var i = n("520a");
                        n("5ca1")({ target: "RegExp", proto: !0, forced: i !== /./.exec }, { exec: i });
                    },
                    b0dc: function (e, t, n) {
                        var i = n("e4ae");
                        e.exports = function (e, t, n, o) {
                            try {
                                return o ? t(i(n)[0], n[1]) : t(n);
                            } catch (t) {
                                var r = e.return;
                                throw (void 0 !== r && i(r.call(e)), t);
                            }
                        };
                    },
                    b447: function (e, t, n) {
                        var i = n("3a38"),
                            o = Math.min;
                        e.exports = function (e) {
                            return e > 0 ? o(i(e), 9007199254740991) : 0;
                        };
                    },
                    b8e3: function (e, t) {
                        e.exports = !0;
                    },
                    be13: function (e, t) {
                        e.exports = function (e) {
                            if (void 0 == e) throw TypeError("Can't call method on  " + e);
                            return e;
                        };
                    },
                    c366: function (e, t, n) {
                        var i = n("6821"),
                            o = n("9def"),
                            r = n("77f1");
                        e.exports = function (e) {
                            return function (t, n, s) {
                                var a,
                                    l = i(t),
                                    c = o(l.length),
                                    u = r(s, c);
                                if (e && n != n) {
                                    for (; c > u; ) if ((a = l[u++]) != a) return !0;
                                } else for (; c > u; u++) if ((e || u in l) && l[u] === n) return e || u || 0;
                                return !e && -1;
                            };
                        };
                    },
                    c367: function (e, t, n) {
                        "use strict";
                        var i = n("8436"),
                            o = n("50ed"),
                            r = n("481b"),
                            s = n("36c3");
                        (e.exports = n("30f1")(
                            Array,
                            "Array",
                            function (e, t) {
                                (this._t = s(e)), (this._i = 0), (this._k = t);
                            },
                            function () {
                                var e = this._t,
                                    t = this._k,
                                    n = this._i++;
                                return !e || n >= e.length ? ((this._t = void 0), o(1)) : o(0, "keys" == t ? n : "values" == t ? e[n] : [n, e[n]]);
                            },
                            "values"
                        )),
                            (r.Arguments = r.Array),
                            i("keys"),
                            i("values"),
                            i("entries");
                    },
                    c3a1: function (e, t, n) {
                        var i = n("e6f3"),
                            o = n("1691");
                        e.exports =
                            Object.keys ||
                            function (e) {
                                return i(e, o);
                            };
                    },
                    c649: function (e, t, n) {
                        "use strict";
                        (function (e) {
                            n.d(t, "c", function () {
                                return c;
                            }),
                                n.d(t, "a", function () {
                                    return a;
                                }),
                                n.d(t, "b", function () {
                                    return r;
                                }),
                                n.d(t, "d", function () {
                                    return l;
                                }),
                                n("a481");
                            var i = n("4aa6"),
                                o = n.n(i);
                            var r = "undefined" != typeof window ? window.console : e.console;
                            var s = /-(\w)/g,
                                a = (function (e) {
                                    var t = o()(null);
                                    return function (n) {
                                        return t[n] || (t[n] = e(n));
                                    };
                                })(function (e) {
                                    return e.replace(s, function (e, t) {
                                        return t ? t.toUpperCase() : "";
                                    });
                                });
                            function l(e) {
                                null !== e.parentElement && e.parentElement.removeChild(e);
                            }
                            function c(e, t, n) {
                                var i = 0 === n ? e.children[0] : e.children[n - 1].nextSibling;
                                e.insertBefore(t, i);
                            }
                        }.call(this, n("c8ba")));
                    },
                    c69a: function (e, t, n) {
                        e.exports =
                            !n("9e1e") &&
                            !n("79e5")(function () {
                                return (
                                    7 !=
                                    Object.defineProperty(n("230e")("div"), "a", {
                                        get: function () {
                                            return 7;
                                        },
                                    }).a
                                );
                            });
                    },
                    c8ba: function (e, t) {
                        var n;
                        n = (function () {
                            return this;
                        })();
                        try {
                            n = n || new Function("return this")();
                        } catch (e) {
                            "object" == typeof window && (n = window);
                        }
                        e.exports = n;
                    },
                    c8bb: function (e, t, n) {
                        e.exports = n("54a1");
                    },
                    ca5a: function (e, t) {
                        var n = 0,
                            i = Math.random();
                        e.exports = function (e) {
                            return "Symbol(".concat(void 0 === e ? "" : e, ")_", (++n + i).toString(36));
                        };
                    },
                    cb7c: function (e, t, n) {
                        var i = n("d3f4");
                        e.exports = function (e) {
                            if (!i(e)) throw TypeError(e + " is not an object!");
                            return e;
                        };
                    },
                    ce7e: function (e, t, n) {
                        var i = n("63b6"),
                            o = n("584a"),
                            r = n("294c");
                        e.exports = function (e, t) {
                            var n = (o.Object || {})[e] || Object[e],
                                s = {};
                            (s[e] = t(n)),
                                i(
                                    i.S +
                                        i.F *
                                            r(function () {
                                                n(1);
                                            }),
                                    "Object",
                                    s
                                );
                        };
                    },
                    d2c8: function (e, t, n) {
                        var i = n("aae3"),
                            o = n("be13");
                        e.exports = function (e, t, n) {
                            if (i(t)) throw TypeError("String#" + n + " doesn't accept regex!");
                            return String(o(e));
                        };
                    },
                    d2d5: function (e, t, n) {
                        n("1654"), n("549b"), (e.exports = n("584a").Array.from);
                    },
                    d3f4: function (e, t) {
                        e.exports = function (e) {
                            return "object" == typeof e ? null !== e : "function" == typeof e;
                        };
                    },
                    d864: function (e, t, n) {
                        var i = n("79aa");
                        e.exports = function (e, t, n) {
                            if ((i(e), void 0 === t)) return e;
                            switch (n) {
                                case 1:
                                    return function (n) {
                                        return e.call(t, n);
                                    };
                                case 2:
                                    return function (n, i) {
                                        return e.call(t, n, i);
                                    };
                                case 3:
                                    return function (n, i, o) {
                                        return e.call(t, n, i, o);
                                    };
                            }
                            return function () {
                                return e.apply(t, arguments);
                            };
                        };
                    },
                    d8e8: function (e, t) {
                        e.exports = function (e) {
                            if ("function" != typeof e) throw TypeError(e + " is not a function!");
                            return e;
                        };
                    },
                    d9f6: function (e, t, n) {
                        var i = n("e4ae"),
                            o = n("794b"),
                            r = n("1bc3"),
                            s = Object.defineProperty;
                        t.f = n("8e60")
                            ? Object.defineProperty
                            : function (e, t, n) {
                                  if ((i(e), (t = r(t, !0)), i(n), o))
                                      try {
                                          return s(e, t, n);
                                      } catch (e) {}
                                  if ("get" in n || "set" in n) throw TypeError("Accessors not supported!");
                                  return "value" in n && (e[t] = n.value), e;
                              };
                    },
                    dbdb: function (e, t, n) {
                        var i = n("584a"),
                            o = n("e53d"),
                            r = "__core-js_shared__",
                            s = o[r] || (o[r] = {});
                        (e.exports = function (e, t) {
                            return s[e] || (s[e] = void 0 !== t ? t : {});
                        })("versions", []).push({ version: i.version, mode: n("b8e3") ? "pure" : "global", copyright: "© 2019 Denis Pushkarev (zloirock.ru)" });
                    },
                    dc62: function (e, t, n) {
                        n("9427");
                        var i = n("584a").Object;
                        e.exports = function (e, t) {
                            return i.create(e, t);
                        };
                    },
                    e4ae: function (e, t, n) {
                        var i = n("f772");
                        e.exports = function (e) {
                            if (!i(e)) throw TypeError(e + " is not an object!");
                            return e;
                        };
                    },
                    e53d: function (e, t) {
                        var n = (e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")());
                        "number" == typeof __g && (__g = n);
                    },
                    e6f3: function (e, t, n) {
                        var i = n("07e3"),
                            o = n("36c3"),
                            r = n("5b4e")(!1),
                            s = n("5559")("IE_PROTO");
                        e.exports = function (e, t) {
                            var n,
                                a = o(e),
                                l = 0,
                                c = [];
                            for (n in a) n != s && i(a, n) && c.push(n);
                            for (; t.length > l; ) i(a, (n = t[l++])) && (~r(c, n) || c.push(n));
                            return c;
                        };
                    },
                    f410: function (e, t, n) {
                        n("1af6"), (e.exports = n("584a").Array.isArray);
                    },
                    f559: function (e, t, n) {
                        "use strict";
                        var i = n("5ca1"),
                            o = n("9def"),
                            r = n("d2c8"),
                            s = "startsWith",
                            a = ""[s];
                        i(i.P + i.F * n("5147")(s), "String", {
                            startsWith: function (e) {
                                var t = r(this, e, s),
                                    n = o(Math.min(arguments.length > 1 ? arguments[1] : void 0, t.length)),
                                    i = String(e);
                                return a ? a.call(t, i, n) : t.slice(n, n + i.length) === i;
                            },
                        });
                    },
                    f772: function (e, t) {
                        e.exports = function (e) {
                            return "object" == typeof e ? null !== e : "function" == typeof e;
                        };
                    },
                    fa5b: function (e, t, n) {
                        e.exports = n("5537")("native-function-to-string", Function.toString);
                    },
                    fb15: function (e, t, n) {
                        "use strict";
                        var i;
                        n.r(t), "undefined" != typeof window && (i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/)) && (n.p = i[1]);
                        var o = n("5176"),
                            r = n.n(o),
                            s = (n("f559"), n("a4bb")),
                            a = n.n(s),
                            l = (n("6762"), n("2fdb"), n("a745")),
                            c = n.n(l);
                        var u = n("5d73"),
                            d = n.n(u);
                        function p(e, t) {
                            return (
                                (function (e) {
                                    if (c()(e)) return e;
                                })(e) ||
                                (function (e, t) {
                                    var n = [],
                                        i = !0,
                                        o = !1,
                                        r = void 0;
                                    try {
                                        for (var s, a = d()(e); !(i = (s = a.next()).done) && (n.push(s.value), !t || n.length !== t); i = !0);
                                    } catch (e) {
                                        (o = !0), (r = e);
                                    } finally {
                                        try {
                                            i || null == a.return || a.return();
                                        } finally {
                                            if (o) throw r;
                                        }
                                    }
                                    return n;
                                })(e, t) ||
                                (function () {
                                    throw new TypeError("Invalid attempt to destructure non-iterable instance");
                                })()
                            );
                        }
                        var h = n("774e"),
                            f = n.n(h),
                            m = n("c8bb"),
                            g = n.n(m);
                        function v(e) {
                            return (
                                (function (e) {
                                    if (c()(e)) {
                                        for (var t = 0, n = new Array(e.length); t < e.length; t++) n[t] = e[t];
                                        return n;
                                    }
                                })(e) ||
                                (function (e) {
                                    if (g()(Object(e)) || "[object Arguments]" === Object.prototype.toString.call(e)) return f()(e);
                                })(e) ||
                                (function () {
                                    throw new TypeError("Invalid attempt to spread non-iterable instance");
                                })()
                            );
                        }
                        var y = n("a352"),
                            b = n.n(y),
                            w = n("c649");
                        function _(e, t) {
                            var n = this;
                            this.$nextTick(function () {
                                return n.$emit(e.toLowerCase(), t);
                            });
                        }
                        function D(e, t) {
                            var n = null,
                                i = function (e, t) {
                                    n = (function (e, t, n) {
                                        return void 0 === n ? e : (((e = e || {})[t] = n), e);
                                    })(n, e, t);
                                };
                            if (
                                (i(
                                    "attrs",
                                    a()(e)
                                        .filter(function (e) {
                                            return "id" === e || e.startsWith("data-");
                                        })
                                        .reduce(function (t, n) {
                                            return (t[n] = e[n]), t;
                                        }, {})
                                ),
                                !t)
                            )
                                return n;
                            var o = t.on,
                                s = t.props,
                                l = t.attrs;
                            return i("on", o), i("props", s), r()(n.attrs, l), n;
                        }
                        var C = ["Start", "Add", "Remove", "Update", "End"],
                            S = ["Choose", "Sort", "Filter", "Clone"],
                            x = ["Move"].concat(C, S).map(function (e) {
                                return "on" + e;
                            }),
                            E = null,
                            T = {
                                name: "draggable",
                                inheritAttrs: !1,
                                props: {
                                    options: Object,
                                    list: { type: Array, required: !1, default: null },
                                    value: { type: Array, required: !1, default: null },
                                    noTransitionOnDrag: { type: Boolean, default: !1 },
                                    clone: {
                                        type: Function,
                                        default: function (e) {
                                            return e;
                                        },
                                    },
                                    element: { type: String, default: "div" },
                                    tag: { type: String, default: null },
                                    move: { type: Function, default: null },
                                    componentData: { type: Object, required: !1, default: null },
                                },
                                data: function () {
                                    return { transitionMode: !1, noneFunctionalComponentMode: !1, init: !1 };
                                },
                                render: function (e) {
                                    var t = this.$slots.default;
                                    this.transitionMode = (function (e) {
                                        if (!e || 1 !== e.length) return !1;
                                        var t = p(e, 1)[0].componentOptions;
                                        return !!t && ["transition-group", "TransitionGroup"].includes(t.tag);
                                    })(t);
                                    var n = (function (e, t) {
                                            var n = t.header,
                                                i = t.footer,
                                                o = 0,
                                                r = 0;
                                            return n && ((o = n.length), (e = e ? [].concat(v(n), v(e)) : v(n))), i && ((r = i.length), (e = e ? [].concat(v(e), v(i)) : v(i))), { children: e, headerOffset: o, footerOffset: r };
                                        })(t, this.$slots),
                                        i = n.children,
                                        o = n.headerOffset,
                                        r = n.footerOffset;
                                    (this.headerOffset = o), (this.footerOffset = r);
                                    var s = D(this.$attrs, this.componentData);
                                    return e(this.getTag(), s, i);
                                },
                                created: function () {
                                    null !== this.list && null !== this.value && w.b.error("Value and list props are mutually exclusive! Please set one or another."),
                                        "div" !== this.element && w.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),
                                        void 0 !== this.options &&
                                            w.b.warn(
                                                "Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props"
                                            );
                                },
                                mounted: function () {
                                    var e = this;
                                    if (((this.noneFunctionalComponentMode = this.getTag().toLowerCase() !== this.$el.nodeName.toLowerCase()), this.noneFunctionalComponentMode && this.transitionMode))
                                        throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));
                                    var t = {};
                                    C.forEach(function (n) {
                                        t["on" + n] = function (e) {
                                            var t = this;
                                            return function (n) {
                                                null !== t.realList && t["onDrag" + e](n), _.call(t, e, n);
                                            };
                                        }.call(e, n);
                                    }),
                                        S.forEach(function (n) {
                                            t["on" + n] = _.bind(e, n);
                                        });
                                    var n = a()(this.$attrs).reduce(function (t, n) {
                                            return (t[Object(w.a)(n)] = e.$attrs[n]), t;
                                        }, {}),
                                        i = r()({}, this.options, n, t, {
                                            onMove: function (t, n) {
                                                return e.onDragMove(t, n);
                                            },
                                        });
                                    !("draggable" in i) && (i.draggable = ">*"), (this._sortable = new b.a(this.rootContainer, i)), this.computeIndexes();
                                },
                                beforeDestroy: function () {
                                    void 0 !== this._sortable && this._sortable.destroy();
                                },
                                computed: {
                                    rootContainer: function () {
                                        return this.transitionMode ? this.$el.children[0] : this.$el;
                                    },
                                    realList: function () {
                                        return this.list ? this.list : this.value;
                                    },
                                },
                                watch: {
                                    options: {
                                        handler: function (e) {
                                            this.updateOptions(e);
                                        },
                                        deep: !0,
                                    },
                                    $attrs: {
                                        handler: function (e) {
                                            this.updateOptions(e);
                                        },
                                        deep: !0,
                                    },
                                    realList: function () {
                                        this.computeIndexes();
                                    },
                                },
                                methods: {
                                    getTag: function () {
                                        return this.tag || this.element;
                                    },
                                    updateOptions: function (e) {
                                        for (var t in e) {
                                            var n = Object(w.a)(t);
                                            -1 === x.indexOf(n) && this._sortable.option(n, e[t]);
                                        }
                                    },
                                    getChildrenNodes: function () {
                                        if ((this.init || ((this.noneFunctionalComponentMode = this.noneFunctionalComponentMode && 1 === this.$children.length), (this.init = !0)), this.noneFunctionalComponentMode))
                                            return this.$children[0].$slots.default;
                                        var e = this.$slots.default;
                                        return this.transitionMode ? e[0].child.$slots.default : e;
                                    },
                                    computeIndexes: function () {
                                        var e = this;
                                        this.$nextTick(function () {
                                            e.visibleIndexes = (function (e, t, n, i) {
                                                if (!e) return [];
                                                var o = e.map(function (e) {
                                                        return e.elm;
                                                    }),
                                                    r = t.length - i,
                                                    s = v(t).map(function (e, t) {
                                                        return t >= r ? o.length : o.indexOf(e);
                                                    });
                                                return n
                                                    ? s.filter(function (e) {
                                                          return -1 !== e;
                                                      })
                                                    : s;
                                            })(e.getChildrenNodes(), e.rootContainer.children, e.transitionMode, e.footerOffset);
                                        });
                                    },
                                    getUnderlyingVm: function (e) {
                                        var t = (function (e, t) {
                                            return e
                                                .map(function (e) {
                                                    return e.elm;
                                                })
                                                .indexOf(t);
                                        })(this.getChildrenNodes() || [], e);
                                        return -1 === t ? null : { index: t, element: this.realList[t] };
                                    },
                                    getUnderlyingPotencialDraggableComponent: function (e) {
                                        var t = e.__vue__;
                                        return t && t.$options && "transition-group" === t.$options._componentTag ? t.$parent : t;
                                    },
                                    emitChanges: function (e) {
                                        var t = this;
                                        this.$nextTick(function () {
                                            t.$emit("change", e);
                                        });
                                    },
                                    alterList: function (e) {
                                        if (this.list) e(this.list);
                                        else {
                                            var t = v(this.value);
                                            e(t), this.$emit("input", t);
                                        }
                                    },
                                    spliceList: function () {
                                        var e = arguments;
                                        this.alterList(function (t) {
                                            return t.splice.apply(t, v(e));
                                        });
                                    },
                                    updatePosition: function (e, t) {
                                        this.alterList(function (n) {
                                            return n.splice(t, 0, n.splice(e, 1)[0]);
                                        });
                                    },
                                    getRelatedContextFromMoveEvent: function (e) {
                                        var t = e.to,
                                            n = e.related,
                                            i = this.getUnderlyingPotencialDraggableComponent(t);
                                        if (!i) return { component: i };
                                        var o = i.realList,
                                            s = { list: o, component: i };
                                        if (t !== n && o && i.getUnderlyingVm) {
                                            var a = i.getUnderlyingVm(n);
                                            if (a) return r()(a, s);
                                        }
                                        return s;
                                    },
                                    getVmIndex: function (e) {
                                        var t = this.visibleIndexes,
                                            n = t.length;
                                        return e > n - 1 ? n : t[e];
                                    },
                                    getComponent: function () {
                                        return this.$slots.default[0].componentInstance;
                                    },
                                    resetTransitionData: function (e) {
                                        if (this.noTransitionOnDrag && this.transitionMode) {
                                            this.getChildrenNodes()[e].data = null;
                                            var t = this.getComponent();
                                            (t.children = []), (t.kept = void 0);
                                        }
                                    },
                                    onDragStart: function (e) {
                                        (this.context = this.getUnderlyingVm(e.item)), (e.item._underlying_vm_ = this.clone(this.context.element)), (E = e.item);
                                    },
                                    onDragAdd: function (e) {
                                        var t = e.item._underlying_vm_;
                                        if (void 0 !== t) {
                                            Object(w.d)(e.item);
                                            var n = this.getVmIndex(e.newIndex);
                                            this.spliceList(n, 0, t), this.computeIndexes();
                                            var i = { element: t, newIndex: n };
                                            this.emitChanges({ added: i });
                                        }
                                    },
                                    onDragRemove: function (e) {
                                        if ((Object(w.c)(this.rootContainer, e.item, e.oldIndex), "clone" !== e.pullMode)) {
                                            var t = this.context.index;
                                            this.spliceList(t, 1);
                                            var n = { element: this.context.element, oldIndex: t };
                                            this.resetTransitionData(t), this.emitChanges({ removed: n });
                                        } else Object(w.d)(e.clone);
                                    },
                                    onDragUpdate: function (e) {
                                        Object(w.d)(e.item), Object(w.c)(e.from, e.item, e.oldIndex);
                                        var t = this.context.index,
                                            n = this.getVmIndex(e.newIndex);
                                        this.updatePosition(t, n);
                                        var i = { element: this.context.element, oldIndex: t, newIndex: n };
                                        this.emitChanges({ moved: i });
                                    },
                                    updateProperty: function (e, t) {
                                        e.hasOwnProperty(t) && (e[t] += this.headerOffset);
                                    },
                                    computeFutureIndex: function (e, t) {
                                        if (!e.element) return 0;
                                        var n = v(t.to.children).filter(function (e) {
                                                return "none" !== e.style.display;
                                            }),
                                            i = n.indexOf(t.related),
                                            o = e.component.getVmIndex(i);
                                        return -1 !== n.indexOf(E) || !t.willInsertAfter ? o : o + 1;
                                    },
                                    onDragMove: function (e, t) {
                                        var n = this.move;
                                        if (!n || !this.realList) return !0;
                                        var i = this.getRelatedContextFromMoveEvent(e),
                                            o = this.context,
                                            s = this.computeFutureIndex(i, e);
                                        return r()(o, { futureIndex: s }), n(r()({}, e, { relatedContext: i, draggedContext: o }), t);
                                    },
                                    onDragEnd: function () {
                                        this.computeIndexes(), (E = null);
                                    },
                                },
                            };
                        "undefined" != typeof window && "Vue" in window && window.Vue.component("draggable", T);
                        var R = T;
                        t.default = R;
                    },
                }).default;
            }),
            (e.exports = i(n(832)));
    },
    792: function (e, t, n) {
        var i = n(685)(n(795), n(796), !1, null, null, null);
        e.exports = i.exports;
    },
    795: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 }),
            (t.default = {
                template: "#picture-upload",
                props: { editedEntity: null, entityName: "", multiple: !1 },
                data: function () {
                    return { pictureFullPath: "", pictureThumbPath: "" };
                },
                mounted: function () {},
                methods: {
                    openMediaModal: function () {
                        var e,
                            t = this;
                        e
                            ? e.open()
                            : ((e = wp.media({ title: "Select or Upload Profile Picture", button: { text: "Select picture" }, multiple: this.multiple, library: { type: "image" } })).on("select", function () {
                                  var n = null;
                                  e.state()
                                      .get("selection")
                                      .forEach(function (e) {
                                          (n = e.toJSON()), (t.pictureFullPath = n.url), (t.pictureThumbPath = n.sizes.thumbnail ? n.sizes.thumbnail.url : n.url), t.$emit("pictureSelected", t.pictureFullPath, t.pictureThumbPath);
                                      });
                              }),
                              e.open());
                    },
                },
                computed: {
                    getPictureSrc: function () {
                        return null !== this.editedEntity && !this.pictureThumbPath && this.editedEntity.pictureThumbPath
                            ? this.editedEntity.pictureThumbPath
                            : this.pictureThumbPath && "gallery" !== this.entityName
                            ? this.pictureThumbPath
                            : this.$root.getUrl + "public/img/default-" + this.entityName + ".svg";
                    },
                },
            });
    },
    796: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n("div", { staticClass: "am-profile-photo", on: { click: e.openMediaModal } }, [
                    n("i", { class: { "el-icon-plus": "gallery" === e.entityName, "el-icon-picture": "gallery" !== e.entityName } }),
                    e._v(" "),
                    "gallery" === e.entityName ? n("span", [e._v(e._s(e.$root.labels.add_image))]) : e._e(),
                    e._v(" "),
                    "gallery" !== e.entityName ? n("img", { attrs: { src: e.getPictureSrc, alt: "" } }) : e._e(),
                ]);
            },
            staticRenderFns: [],
        };
    },
    823: function (e, t, n) {
        var i = n(685)(n(824), n(825), !1, null, null, null);
        e.exports = i.exports;
    },
    824: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(694),
            o = n(337),
            r = n(695);
        t.default = {
            mixins: [i.a, o.a, r.a],
            props: {
                showCustomerInfo: !0,
                entityId: null,
                entityType: null,
                appointment: { default: function () {} },
                customFields: {
                    default: function () {
                        return [];
                    },
                },
                hideAttachmentCustomField: { required: !1, default: !1, type: Boolean },
                isCabinet: { type: Boolean, default: !1, required: !1 },
            },
            data: function () {
                return {};
            },
            methods: {
                clearValidation: function () {
                    this.$emit("clearValidation");
                },
            },
        };
    },
    825: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n(
                    "div",
                    { staticClass: "am-dialog-table am-custom-fields-container" },
                    e._l(e.appointment.bookings, function (t, i) {
                        return n(
                            "div",
                            { staticClass: "am-customer-extras" },
                            [
                                n(
                                    "el-row",
                                    { staticClass: "am-customer-extras-data" },
                                    [e.showCustomerInfo ? n("el-col", [n("h3", [e._v(e._s(t.customer.firstName) + " " + e._s(t.customer.lastName))]), e._v(" "), n("span", [e._v(e._s(t.customer.email))])]) : e._e()],
                                    1
                                ),
                                e._v(" "),
                                n(
                                    "div",
                                    { staticClass: "am-custom-fields" },
                                    e._l(e.customFields, function (t) {
                                        return e.isCustomFieldVisible(t, e.entityType, e.entityId) &&
                                            "content" !== t.type &&
                                            ("file" !== t.type || ("file" === t.type && e.appointment.bookings[i].customFields[t.id].value && e.appointment.bookings[i].customFields[t.id].value.length > 0))
                                            ? n(
                                                  "el-form-item",
                                                  { key: t.id, attrs: { label: t.label + ":", prop: !0 === t.required && "content" !== t.type && "file" !== t.type ? "bookings." + i + ".customFields." + t.id + ".value" : null } },
                                                  [
                                                      "text" === t.type
                                                          ? n("el-input", {
                                                                attrs: { placeholder: "" },
                                                                on: {
                                                                    input: function (t) {
                                                                        return e.clearValidation();
                                                                    },
                                                                },
                                                                model: {
                                                                    value: e.appointment.bookings[i].customFields[t.id].value,
                                                                    callback: function (n) {
                                                                        e.$set(e.appointment.bookings[i].customFields[t.id], "value", n);
                                                                    },
                                                                    expression: "appointment.bookings[key].customFields[customField.id].value",
                                                                },
                                                            })
                                                          : "text-area" === t.type
                                                          ? n("el-input", {
                                                                staticClass: "am-front-texarea",
                                                                attrs: { placeholder: "", type: "textarea", rows: 3 },
                                                                on: {
                                                                    input: function (t) {
                                                                        return e.clearValidation();
                                                                    },
                                                                },
                                                                model: {
                                                                    value: e.appointment.bookings[i].customFields[t.id].value,
                                                                    callback: function (n) {
                                                                        e.$set(e.appointment.bookings[i].customFields[t.id], "value", n);
                                                                    },
                                                                    expression: "appointment.bookings[key].customFields[customField.id].value",
                                                                },
                                                            })
                                                          : "select" === t.type
                                                          ? n(
                                                                "el-select",
                                                                {
                                                                    attrs: { placeholder: "", clearable: "" },
                                                                    on: {
                                                                        change: function (t) {
                                                                            return e.clearValidation();
                                                                        },
                                                                    },
                                                                    model: {
                                                                        value: e.appointment.bookings[i].customFields[t.id].value,
                                                                        callback: function (n) {
                                                                            e.$set(e.appointment.bookings[i].customFields[t.id], "value", n);
                                                                        },
                                                                        expression: "appointment.bookings[key].customFields[customField.id].value",
                                                                    },
                                                                },
                                                                e._l(e.getCustomFieldOptions(t.options), function (e, t) {
                                                                    return n("el-option", { key: t, attrs: { value: e, label: e } });
                                                                }),
                                                                1
                                                            )
                                                          : "checkbox" === t.type
                                                          ? n(
                                                                "el-checkbox-group",
                                                                {
                                                                    on: {
                                                                        change: function (t) {
                                                                            return e.clearValidation();
                                                                        },
                                                                    },
                                                                    model: {
                                                                        value: e.appointment.bookings[i].customFields[t.id].value,
                                                                        callback: function (n) {
                                                                            e.$set(e.appointment.bookings[i].customFields[t.id], "value", n);
                                                                        },
                                                                        expression: "appointment.bookings[key].customFields[customField.id].value",
                                                                    },
                                                                },
                                                                e._l(e.getCustomFieldOptions(t.options), function (e, t) {
                                                                    return n("el-checkbox", { key: t, attrs: { label: e } });
                                                                }),
                                                                1
                                                            )
                                                          : "radio" === t.type
                                                          ? n(
                                                                "el-radio-group",
                                                                {
                                                                    model: {
                                                                        value: e.appointment.bookings[i].customFields[t.id].value,
                                                                        callback: function (n) {
                                                                            e.$set(e.appointment.bookings[i].customFields[t.id], "value", n);
                                                                        },
                                                                        expression: "appointment.bookings[key].customFields[customField.id].value",
                                                                    },
                                                                },
                                                                e._l(e.getCustomFieldOptions(t.options), function (t, i) {
                                                                    return n("el-radio", {
                                                                        key: i,
                                                                        attrs: { label: t },
                                                                        on: {
                                                                            change: function (t) {
                                                                                return e.clearValidation();
                                                                            },
                                                                        },
                                                                    });
                                                                }),
                                                                1
                                                            )
                                                          : "file" === t.type && !1 === e.hideAttachmentCustomField
                                                          ? e._l(e.appointment.bookings[i].customFields[t.id].value, function (o, r) {
                                                                return n("div", { staticStyle: { margin: "15px", clear: "left" } }, [
                                                                    n(
                                                                        "a",
                                                                        {
                                                                            key: r,
                                                                            attrs: {
                                                                                href: e.$root.useUploadsAmeliaPath
                                                                                    ? e.$root.getAjaxUrl + "/fields/" + t.id + "/" + e.appointment.bookings[i].id + "/" + r + (e.isCabinet ? "&source=cabinet-provider" : "")
                                                                                    : e.$root.getUploadsAmeliaUrl + e.appointment.bookings[i].id + "_" + o.fileName,
                                                                                target: "_blank",
                                                                            },
                                                                        },
                                                                        [e._v("\n            " + e._s(o.name) + "\n          ")]
                                                                    ),
                                                                ]);
                                                            })
                                                          : "datepicker" === t.type
                                                          ? n(
                                                                "div",
                                                                [
                                                                    n("v-date-picker", {
                                                                        attrs: {
                                                                            mode: "single",
                                                                            "popover-visibility": "focus",
                                                                            "popover-direction": "bottom",
                                                                            "popover-align": e.screenWidth < 768 ? "center" : "left",
                                                                            "tint-color": "#d52878",
                                                                            "show-day-popover": !1,
                                                                            "input-props": { class: "el-input__inner" },
                                                                            "is-expanded": !1,
                                                                            "is-required": !0,
                                                                            disabled: !1,
                                                                            formats: e.vCalendarFormats,
                                                                        },
                                                                        model: {
                                                                            value: e.appointment.bookings[i].customFields[t.id].value,
                                                                            callback: function (n) {
                                                                                e.$set(e.appointment.bookings[i].customFields[t.id], "value", n);
                                                                            },
                                                                            expression: "appointment.bookings[key].customFields[customField.id].value",
                                                                        },
                                                                    }),
                                                                ],
                                                                1
                                                            )
                                                          : e._e(),
                                                  ],
                                                  2
                                              )
                                            : e._e();
                                    }),
                                    1
                                ),
                            ],
                            1
                        );
                    }),
                    0
                );
            },
            staticRenderFns: [],
        };
    },
    826: function (e, t, n) {
        var i = n(685)(n(827), n(828), !1, null, null, null);
        e.exports = i.exports;
    },
    827: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(713),
            o = n.n(i),
            r = n(696),
            s = n.n(r),
            a = n(687),
            l = n(337),
            c = n(691),
            u = n(686);
        t.default = {
            mixins: [a.a, l.a, c.a, u.a],
            props: { customer: null },
            data: function () {
                return {
                    dialogLoading: !0,
                    errors: { email: "" },
                    formOptions: {
                        wpUsers: [],
                        genders: [
                            { value: "female", label: this.$root.labels.female },
                            { value: "male", label: this.$root.labels.male },
                        ],
                    },
                    rules: {
                        firstName: [{ required: !0, message: this.$root.labels.enter_first_name_warning, trigger: "submit" }],
                        lastName: [{ required: !0, message: this.$root.labels.enter_last_name_warning, trigger: "submit" }],
                        email: [
                            { required: !1, message: this.$root.labels.enter_email_warning, trigger: "submit" },
                            { type: "email", message: this.$root.labels.enter_valid_email_warning, trigger: "submit" },
                        ],
                    },
                };
            },
            created: function () {
                0 !== this.customer.id ? ((this.customer.birthday = this.$moment(this.customer.birthday).toDate()), this.getWPUsers(this.customer.externalId)) : this.getWPUsers(0);
            },
            mounted: function () {
                this.inlineSVG();
            },
            methods: {
                errorCallback: function (e) {
                    var t = this;
                    (t.errors.email = ""),
                        setTimeout(function () {
                            t.errors.email = e;
                        }, 200);
                },
                getParsedEntity: function () {
                    var e = JSON.parse(JSON.stringify(this.customer));
                    return e.birthday && (e.birthday = this.getDatabaseFormattedDate(this.$moment(e.birthday).format("YYYY-MM-DD"))), 0 === e.externalId || e.externalId || (e.externalId = -1), e;
                },
                closeDialog: function () {
                    this.$emit("closeDialog");
                },
                getWPUsers: function (e) {
                    var t = this;
                    this.$http.get(this.$root.getAjaxUrl + "/users/wp-users", { params: { id: e, role: "customer" } }).then(function (e) {
                        (t.formOptions.wpUsers = e.data.data.users),
                            t.formOptions.wpUsers.unshift({ value: 0, label: t.$root.labels.create_new }),
                            -1 ===
                                t.formOptions.wpUsers
                                    .map(function (e) {
                                        return e.value;
                                    })
                                    .indexOf(t.customer.externalId) && (t.customer.externalId = ""),
                            (t.dialogLoading = !1);
                    });
                },
                phoneFormatted: function (e, t) {
                    this.clearValidation(), (this.customer.phone = e), (this.customer.countryPhoneIso = t);
                },
                clearValidation: function () {
                    void 0 !== this.$refs.customer && this.$refs.customer.clearValidate();
                },
                selectCreateNewWPUser: function () {
                    (this.customer.externalId = 0), this.$refs.wpUser.blur();
                },
            },
            components: { PhoneInput: s.a, DialogActions: o.a },
        };
    },
    828: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n(
                    "div",
                    [
                        n("div", { directives: [{ name: "show", rawName: "v-show", value: e.dialogLoading, expression: "dialogLoading" }], staticClass: "am-dialog-loader" }, [
                            n("div", { staticClass: "am-dialog-loader-content" }, [n("img", { attrs: { src: e.$root.getUrl + "public/img/spinner.svg" } }), e._v(" "), n("p", [e._v(e._s(e.$root.labels.loader_message))])]),
                        ]),
                        e._v(" "),
                        e.dialogLoading
                            ? e._e()
                            : n(
                                  "div",
                                  { staticClass: "am-dialog-scrollable", class: { "am-edit": 0 !== e.customer.id } },
                                  [
                                      n(
                                          "div",
                                          { staticClass: "am-dialog-header" },
                                          [
                                              n(
                                                  "el-row",
                                                  [
                                                      n("el-col", { attrs: { span: 18 } }, [0 !== e.customer.id ? n("h2", [e._v(e._s(e.$root.labels.edit_customer))]) : n("h2", [e._v(e._s(e.$root.labels.new_customer))])]),
                                                      e._v(" "),
                                                      n(
                                                          "el-col",
                                                          { staticClass: "align-right", attrs: { span: 6 } },
                                                          [n("span"), e._v(" "), n("el-button", { staticClass: "am-dialog-close", attrs: { size: "small", icon: "el-icon-close" }, on: { click: e.closeDialog } })],
                                                          1
                                                      ),
                                                  ],
                                                  1
                                              ),
                                          ],
                                          1
                                      ),
                                      e._v(" "),
                                      n(
                                          "el-form",
                                          {
                                              ref: "customer",
                                              attrs: { model: e.customer, rules: e.rules, "label-position": "top" },
                                              on: {
                                                  submit: function (t) {
                                                      return t.preventDefault(), e.onSubmit(t);
                                                  },
                                              },
                                          },
                                          [
                                              n(
                                                  "el-form-item",
                                                  { attrs: { label: e.$root.labels.first_name + ":", prop: "firstName" } },
                                                  [
                                                      n("el-input", {
                                                          attrs: { "auto-complete": "off" },
                                                          on: {
                                                              input: function (t) {
                                                                  return e.clearValidation();
                                                              },
                                                              change: function (t) {
                                                                  return e.trimProperty(e.customer, "firstName");
                                                              },
                                                          },
                                                          model: {
                                                              value: e.customer.firstName,
                                                              callback: function (t) {
                                                                  e.$set(e.customer, "firstName", t);
                                                              },
                                                              expression: "customer.firstName",
                                                          },
                                                      }),
                                                  ],
                                                  1
                                              ),
                                              e._v(" "),
                                              n(
                                                  "el-form-item",
                                                  { attrs: { label: e.$root.labels.last_name + ":", prop: "lastName" } },
                                                  [
                                                      n("el-input", {
                                                          attrs: { "auto-complete": "off" },
                                                          on: {
                                                              input: function (t) {
                                                                  return e.clearValidation();
                                                              },
                                                              change: function (t) {
                                                                  return e.trimProperty(e.customer, "lastName");
                                                              },
                                                          },
                                                          model: {
                                                              value: e.customer.lastName,
                                                              callback: function (t) {
                                                                  e.$set(e.customer, "lastName", t);
                                                              },
                                                              expression: "customer.lastName",
                                                          },
                                                      }),
                                                  ],
                                                  1
                                              ),
                                              e._v(" "),
                                              n(
                                                  "el-form-item",
                                                  { attrs: { label: e.$root.labels.email + ":", prop: "email", error: e.errors.email } },
                                                  [
                                                      n("el-input", {
                                                          attrs: { "auto-complete": "off", placeholder: e.$root.labels.email_placeholder },
                                                          on: {
                                                              input: function (t) {
                                                                  return e.clearValidation();
                                                              },
                                                          },
                                                          model: {
                                                              value: e.customer.email,
                                                              callback: function (t) {
                                                                  e.$set(e.customer, "email", t);
                                                              },
                                                              expression: "customer.email",
                                                          },
                                                      }),
                                                  ],
                                                  1
                                              ),
                                              e._v(" "),
                                              n(
                                                  "el-form-item",
                                                  { attrs: { label: "placeholder" } },
                                                  [
                                                      n(
                                                          "label",
                                                          { attrs: { slot: "label" }, slot: "label" },
                                                          [
                                                              e._v("\n          " + e._s(e.$root.labels.wp_user) + ":\n          "),
                                                              n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                  n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.wp_user_customer_tooltip) }, slot: "content" }),
                                                                  e._v(" "),
                                                                  n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                              ]),
                                                          ],
                                                          1
                                                      ),
                                                      e._v(" "),
                                                      n(
                                                          "el-select",
                                                          {
                                                              ref: "wpUser",
                                                              attrs: { filterable: "", clearable: "", placeholder: e.$root.labels.select_wp_user },
                                                              on: {
                                                                  change: function (t) {
                                                                      return e.clearValidation();
                                                                  },
                                                              },
                                                              model: {
                                                                  value: e.customer.externalId,
                                                                  callback: function (t) {
                                                                      e.$set(e.customer, "externalId", t);
                                                                  },
                                                                  expression: "customer.externalId",
                                                              },
                                                          },
                                                          [
                                                              n(
                                                                  "div",
                                                                  { staticClass: "am-drop" },
                                                                  [
                                                                      e.customer && e.customer.email
                                                                          ? n("div", { staticClass: "am-drop-create-item", on: { click: e.selectCreateNewWPUser } }, [
                                                                                e._v("\n              " + e._s(e.$root.labels.create_new) + "\n            "),
                                                                            ])
                                                                          : e._e(),
                                                                      e._v(" "),
                                                                      e._l(e.formOptions.wpUsers, function (e) {
                                                                          return n("el-option", { key: e.value, class: { hidden: 0 === e.value }, attrs: { label: e.label, value: e.value } });
                                                                      }),
                                                                  ],
                                                                  2
                                                              ),
                                                          ]
                                                      ),
                                                  ],
                                                  1
                                              ),
                                              e._v(" "),
                                              n(
                                                  "el-form-item",
                                                  { attrs: { label: e.$root.labels.phone + ":" } },
                                                  [n("phone-input", { attrs: { countryPhoneIso: e.customer.countryPhoneIso, savedPhone: e.customer.phone }, on: { phoneFormatted: e.phoneFormatted } })],
                                                  1
                                              ),
                                              e._v(" "),
                                              n(
                                                  "el-form-item",
                                                  { attrs: { label: e.$root.labels.gender + ":" } },
                                                  [
                                                      n(
                                                          "el-select",
                                                          {
                                                              attrs: { placeholder: "", clearable: "" },
                                                              on: {
                                                                  change: function (t) {
                                                                      return e.clearValidation();
                                                                  },
                                                              },
                                                              model: {
                                                                  value: e.customer.gender,
                                                                  callback: function (t) {
                                                                      e.$set(e.customer, "gender", t);
                                                                  },
                                                                  expression: "customer.gender",
                                                              },
                                                          },
                                                          e._l(e.formOptions.genders, function (e) {
                                                              return n("el-option", { key: e.value, attrs: { label: e.label, value: e.value } });
                                                          }),
                                                          1
                                                      ),
                                                  ],
                                                  1
                                              ),
                                              e._v(" "),
                                              n(
                                                  "el-form-item",
                                                  { attrs: { label: e.$root.labels.date_of_birth + ":" } },
                                                  [
                                                      n("v-date-picker", {
                                                          attrs: {
                                                              mode: "single",
                                                              "popover-visibility": "focus",
                                                              "popover-direction": "top",
                                                              "tint-color": "#d52878",
                                                              "show-day-popover": !1,
                                                              "input-props": { class: "el-input__inner", placeholder: e.$root.labels.select_date_of_birth },
                                                              "is-expanded": !1,
                                                              formats: e.vCalendarFormats,
                                                          },
                                                          on: {
                                                              input: function (t) {
                                                                  return e.clearValidation();
                                                              },
                                                          },
                                                          model: {
                                                              value: e.customer.birthday,
                                                              callback: function (t) {
                                                                  e.$set(e.customer, "birthday", t);
                                                              },
                                                              expression: "customer.birthday",
                                                          },
                                                      }),
                                                  ],
                                                  1
                                              ),
                                              e._v(" "),
                                              n("div", { staticClass: "am-divider" }),
                                              e._v(" "),
                                              n(
                                                  "el-form-item",
                                                  { attrs: { label: e.$root.labels.note_internal + ":" } },
                                                  [
                                                      n("el-input", {
                                                          attrs: { type: "textarea", autosize: { minRows: 4, maxRows: 6 }, placeholder: "" },
                                                          on: {
                                                              input: function (t) {
                                                                  return e.clearValidation();
                                                              },
                                                          },
                                                          model: {
                                                              value: e.customer.note,
                                                              callback: function (t) {
                                                                  e.$set(e.customer, "note", t);
                                                              },
                                                              expression: "customer.note",
                                                          },
                                                      }),
                                                  ],
                                                  1
                                              ),
                                          ],
                                          1
                                      ),
                                  ],
                                  1
                              ),
                        e._v(" "),
                        e.dialogLoading
                            ? e._e()
                            : n("dialog-actions", {
                                  attrs: {
                                      formName: "customer",
                                      urlName: "users/customers",
                                      isNew: 0 === e.customer.id,
                                      entity: e.customer,
                                      getParsedEntity: e.getParsedEntity,
                                      hasIcons: !0,
                                      status: { on: "visible", off: "hidden" },
                                      buttonText: { confirm: { status: { yes: "visible" === e.customer.status ? e.$root.labels.visibility_hide : e.$root.labels.visibility_show, no: e.$root.labels.no } } },
                                      action: { haveAdd: !0, haveEdit: !0, haveStatus: !1, haveRemove: !0 === e.$root.settings.capabilities.canDelete, haveRemoveEffect: !0, haveDuplicate: !1 },
                                      message: {
                                          success: { save: e.$root.labels.customer_saved, remove: e.$root.labels.customer_deleted, show: "", hide: "" },
                                          confirm: { remove: e.$root.labels.confirm_delete_customer, show: "", hide: "", duplicate: "" },
                                      },
                                  },
                                  on: { errorCallback: e.errorCallback },
                              }),
                    ],
                    1
                );
            },
            staticRenderFns: [],
        };
    },
    832: function (e, t, n) {
        var i, o;
        !(function (r) {
            "use strict";
            void 0 === (o = "function" == typeof (i = r) ? i.call(t, n, t, e) : i) || (e.exports = o);
        })(function () {
            "use strict";
            if ("undefined" == typeof window || !window.document)
                return function () {
                    throw new Error("Sortable.js requires a window with a document");
                };
            var e,
                t,
                n,
                i,
                o,
                r,
                s,
                a,
                l,
                c,
                u,
                d,
                p,
                h,
                f,
                m,
                g,
                v,
                y,
                b,
                w,
                _,
                D,
                C,
                S,
                x,
                E,
                T,
                R = [],
                k = !1,
                I = !1,
                F = !1,
                M = [],
                P = !1,
                $ = !1,
                H = [],
                O = /\s+/g,
                A = "Sortable" + new Date().getTime(),
                B = window,
                N = B.document,
                L = B.parseInt,
                j = B.setTimeout,
                z = B.jQuery || B.Zepto,
                Y = B.Polymer,
                U = { capture: !1, passive: !1 },
                V = !!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i),
                q = !!navigator.userAgent.match(/Edge/i),
                G = !!navigator.userAgent.match(/firefox/i),
                W = !(!navigator.userAgent.match(/safari/i) || navigator.userAgent.match(/chrome/i) || navigator.userAgent.match(/android/i)),
                J = !!navigator.userAgent.match(/iP(ad|od|hone)/i),
                X = q || V ? "cssFloat" : "float",
                Z = "draggable" in N.createElement("div"),
                K = (function () {
                    if (V) return !1;
                    var e = N.createElement("x");
                    return (e.style.cssText = "pointer-events:auto"), "auto" === e.style.pointerEvents;
                })(),
                Q = !1,
                ee = !1,
                te = Math.abs,
                ne = Math.min,
                ie = Math.max,
                oe = [],
                re = function (e, t) {
                    var n = Ce(e),
                        i = L(n.width) - L(n.paddingLeft) - L(n.paddingRight) - L(n.borderLeftWidth) - L(n.borderRightWidth),
                        o = Ie(e, 0, t),
                        r = Ie(e, 1, t),
                        s = o && Ce(o),
                        a = r && Ce(r),
                        l = s && L(s.marginLeft) + L(s.marginRight) + je(o).width,
                        c = a && L(a.marginLeft) + L(a.marginRight) + je(r).width;
                    if ("flex" === n.display) return "column" === n.flexDirection || "column-reverse" === n.flexDirection ? "vertical" : "horizontal";
                    if ("grid" === n.display) return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
                    if (o && "none" !== s.float) {
                        var u = "left" === s.float ? "left" : "right";
                        return !r || ("both" !== a.clear && a.clear !== u) ? "horizontal" : "vertical";
                    }
                    return o && ("block" === s.display || "flex" === s.display || "table" === s.display || "grid" === s.display || (l >= i && "none" === n[X]) || (r && "none" === n[X] && l + c > i)) ? "vertical" : "horizontal";
                },
                se = function (e, t) {
                    if (!e || !e.getBoundingClientRect) return ae();
                    var n = e,
                        i = !1;
                    do {
                        if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
                            var o = Ce(n);
                            if ((n.clientWidth < n.scrollWidth && ("auto" == o.overflowX || "scroll" == o.overflowX)) || (n.clientHeight < n.scrollHeight && ("auto" == o.overflowY || "scroll" == o.overflowY))) {
                                if (!n || !n.getBoundingClientRect || n === N.body) return ae();
                                if (i || t) return n;
                                i = !0;
                            }
                        }
                    } while ((n = n.parentNode));
                    return ae();
                },
                ae = function () {
                    return V ? N.documentElement : N.scrollingElement;
                },
                le = function (e, t, n) {
                    (e.scrollLeft += t), (e.scrollTop += n);
                },
                ce = Oe(function (e, t, n, i) {
                    if (t.scroll) {
                        var o = n ? n[A] : window,
                            r = t.scrollSensitivity,
                            s = t.scrollSpeed,
                            u = e.clientX,
                            d = e.clientY,
                            p = ae(),
                            h = !1;
                        l !== n && (ue(), (a = t.scroll), (c = t.scrollFn), !0 === a && ((a = se(n, !0)), (l = a)));
                        var f = 0,
                            m = a;
                        do {
                            var g,
                                v,
                                y,
                                b,
                                _,
                                D,
                                C,
                                S,
                                x,
                                E = m,
                                T = je(E),
                                I = T.top,
                                F = T.bottom,
                                M = T.left,
                                P = T.right,
                                $ = T.width,
                                H = T.height;
                            if (
                                ((g = E.scrollWidth),
                                (v = E.scrollHeight),
                                (y = Ce(E)),
                                (S = E.scrollLeft),
                                (x = E.scrollTop),
                                E === p
                                    ? ((D = $ < g && ("auto" === y.overflowX || "scroll" === y.overflowX || "visible" === y.overflowX)), (C = H < v && ("auto" === y.overflowY || "scroll" === y.overflowY || "visible" === y.overflowY)))
                                    : ((D = $ < g && ("auto" === y.overflowX || "scroll" === y.overflowX)), (C = H < v && ("auto" === y.overflowY || "scroll" === y.overflowY))),
                                (b = D && (te(P - u) <= r && S + $ < g) - (te(M - u) <= r && !!S)),
                                (_ = C && (te(F - d) <= r && x + H < v) - (te(I - d) <= r && !!x)),
                                !R[f])
                            )
                                for (var O = 0; O <= f; O++) R[O] || (R[O] = {});
                            (R[f].vx == b && R[f].vy == _ && R[f].el === E) ||
                                ((R[f].el = E),
                                (R[f].vx = b),
                                (R[f].vy = _),
                                clearInterval(R[f].pid),
                                !E ||
                                    (0 == b && 0 == _) ||
                                    ((h = !0),
                                    (R[f].pid = setInterval(
                                        function () {
                                            i && 0 === this.layer && (ve.active._emulateDragOver(!0), ve.active._onTouchMove(w, !0));
                                            var t = R[this.layer].vy ? R[this.layer].vy * s : 0,
                                                n = R[this.layer].vx ? R[this.layer].vx * s : 0;
                                            ("function" == typeof c && "continue" !== c.call(o, n, t, e, w, R[this.layer].el)) || le(R[this.layer].el, n, t);
                                        }.bind({ layer: f }),
                                        24
                                    )))),
                                f++;
                        } while (t.bubbleScroll && m !== p && (m = se(m, !1)));
                        k = h;
                    }
                }, 30),
                ue = function () {
                    R.forEach(function (e) {
                        clearInterval(e.pid);
                    }),
                        (R = []);
                },
                de = function (e) {
                    function t(e, n) {
                        return function (i, o, r, s) {
                            var a = i.options.group.name && o.options.group.name && i.options.group.name === o.options.group.name;
                            if (null == e && (n || a)) return !0;
                            if (null == e || !1 === e) return !1;
                            if (n && "clone" === e) return e;
                            if ("function" == typeof e) return t(e(i, o, r, s), n)(i, o, r, s);
                            var l = (n ? i : o).options.group.name;
                            return !0 === e || ("string" == typeof e && e === l) || (e.join && e.indexOf(l) > -1);
                        };
                    }
                    var n = {},
                        i = e.group;
                    (i && "object" == typeof i) || (i = { name: i }), (n.name = i.name), (n.checkPull = t(i.pull, !0)), (n.checkPut = t(i.put)), (n.revertClone = i.revertClone), (e.group = n);
                },
                pe = function (t) {
                    e && e.parentNode && e.parentNode[A] && e.parentNode[A]._computeIsAligned(t);
                },
                he = function () {
                    !K && n && Ce(n, "display", "none");
                },
                fe = function () {
                    !K && n && Ce(n, "display", "");
                };
            N.addEventListener(
                "click",
                function (e) {
                    if (F) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), (F = !1), !1;
                },
                !0
            );
            var me,
                ge = function (t) {
                    if (e) {
                        var n = (function (e, t) {
                            for (var n = 0; n < M.length; n++)
                                if (!Fe(M[n])) {
                                    var i = je(M[n]),
                                        o = M[n][A].options.emptyInsertThreshold,
                                        r = e >= i.left - o && e <= i.right + o,
                                        s = t >= i.top - o && t <= i.bottom + o;
                                    if (o && r && s) return M[n];
                                }
                        })((t = t.touches ? t.touches[0] : t).clientX, t.clientY);
                        if (n) {
                            var i = {};
                            for (var o in t) i[o] = t[o];
                            (i.target = i.rootEl = n), (i.preventDefault = void 0), (i.stopPropagation = void 0), n[A]._onDragOver(i);
                        }
                    }
                };
            function ve(e, t) {
                if (!e || !e.nodeType || 1 !== e.nodeType) throw "Sortable: `el` must be HTMLElement, not " + {}.toString.call(e);
                (this.el = e), (this.options = t = Ae({}, t)), (e[A] = this);
                var n = {
                    group: null,
                    sort: !0,
                    disabled: !1,
                    store: null,
                    handle: null,
                    scroll: !0,
                    scrollSensitivity: 30,
                    scrollSpeed: 10,
                    bubbleScroll: !0,
                    draggable: /[uo]l/i.test(e.nodeName) ? ">li" : ">*",
                    swapThreshold: 1,
                    invertSwap: !1,
                    invertedSwapThreshold: null,
                    removeCloneOnHide: !0,
                    direction: function () {
                        return re(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: L(window.devicePixelRatio, 10) || 1,
                    forceFallback: !1,
                    fallbackClass: "sortable-fallback",
                    fallbackOnBody: !1,
                    fallbackTolerance: 0,
                    fallbackOffset: { x: 0, y: 0 },
                    supportPointer: !1 !== ve.supportPointer && "PointerEvent" in window,
                    emptyInsertThreshold: 5,
                };
                for (var i in n) !(i in t) && (t[i] = n[i]);
                for (var o in (de(t), this)) "_" === o.charAt(0) && "function" == typeof this[o] && (this[o] = this[o].bind(this));
                (this.nativeDraggable = !t.forceFallback && Z),
                    this.nativeDraggable && (this.options.touchStartThreshold = 1),
                    t.supportPointer ? we(e, "pointerdown", this._onTapStart) : (we(e, "mousedown", this._onTapStart), we(e, "touchstart", this._onTapStart)),
                    this.nativeDraggable && (we(e, "dragover", this), we(e, "dragenter", this)),
                    M.push(this.el),
                    t.store && t.store.get && this.sort(t.store.get(this) || []);
            }
            function ye(e, t, n, i) {
                if (e) {
                    n = n || N;
                    do {
                        if ((null != t && (">" === t[0] ? e.parentNode === n && He(e, t) : He(e, t))) || (i && e === n)) return e;
                        if (e === n) break;
                    } while ((e = be(e)));
                }
                return null;
            }
            function be(e) {
                return e.host && e !== N && e.host.nodeType ? e.host : e.parentNode;
            }
            function we(e, t, n) {
                e.addEventListener(t, n, !V && U);
            }
            function _e(e, t, n) {
                e.removeEventListener(t, n, !V && U);
            }
            function De(e, t, n) {
                if (e && t)
                    if (e.classList) e.classList[n ? "add" : "remove"](t);
                    else {
                        var i = (" " + e.className + " ").replace(O, " ").replace(" " + t + " ", " ");
                        e.className = (i + (n ? " " + t : "")).replace(O, " ");
                    }
            }
            function Ce(e, t, n) {
                var i = e && e.style;
                if (i) {
                    if (void 0 === n) return N.defaultView && N.defaultView.getComputedStyle ? (n = N.defaultView.getComputedStyle(e, "")) : e.currentStyle && (n = e.currentStyle), void 0 === t ? n : n[t];
                    t in i || -1 !== t.indexOf("webkit") || (t = "-webkit-" + t), (i[t] = n + ("string" == typeof n ? "" : "px"));
                }
            }
            function Se(e) {
                var t = "";
                do {
                    var n = Ce(e, "transform");
                    n && "none" !== n && (t = n + " " + t);
                } while ((e = e.parentNode));
                return window.DOMMatrix ? new DOMMatrix(t) : window.WebKitCSSMatrix ? new WebKitCSSMatrix(t) : window.CSSMatrix ? new CSSMatrix(t) : void 0;
            }
            function xe(e, t, n) {
                if (e) {
                    var i = e.getElementsByTagName(t),
                        o = 0,
                        r = i.length;
                    if (n) for (; o < r; o++) n(i[o], o);
                    return i;
                }
                return [];
            }
            function Ee(e, t, n, o, r, s, a, l, c, u, d) {
                var p,
                    h = (e = e || t[A]).options,
                    f = "on" + n.charAt(0).toUpperCase() + n.substr(1);
                !window.CustomEvent || V || q ? (p = N.createEvent("Event")).initEvent(n, !0, !0) : (p = new CustomEvent(n, { bubbles: !0, cancelable: !0 })),
                    (p.to = r || t),
                    (p.from = s || t),
                    (p.item = o || t),
                    (p.clone = i),
                    (p.oldIndex = a),
                    (p.newIndex = l),
                    (p.oldDraggableIndex = c),
                    (p.newDraggableIndex = u),
                    (p.originalEvent = d),
                    (p.pullMode = m ? m.lastPutMode : void 0),
                    t && t.dispatchEvent(p),
                    h[f] && h[f].call(e, p);
            }
            function Te(e, t, n, i, o, r, s, a) {
                var l,
                    c,
                    u = e[A],
                    d = u.options.onMove;
                return (
                    !window.CustomEvent || V || q ? (l = N.createEvent("Event")).initEvent("move", !0, !0) : (l = new CustomEvent("move", { bubbles: !0, cancelable: !0 })),
                    (l.to = t),
                    (l.from = e),
                    (l.dragged = n),
                    (l.draggedRect = i),
                    (l.related = o || t),
                    (l.relatedRect = r || je(t)),
                    (l.willInsertAfter = a),
                    (l.originalEvent = s),
                    e.dispatchEvent(l),
                    d && (c = d.call(u, l, s)),
                    c
                );
            }
            function Re(e) {
                e.draggable = !1;
            }
            function ke() {
                Q = !1;
            }
            function Ie(t, i, o) {
                for (var r = 0, s = 0, a = t.children; s < a.length; ) {
                    if ("none" !== a[s].style.display && a[s] !== n && a[s] !== e && ye(a[s], o.draggable, t, !1)) {
                        if (r === i) return a[s];
                        r++;
                    }
                    s++;
                }
                return null;
            }
            function Fe(e) {
                for (var t = e.lastElementChild; t && (t === n || "none" === Ce(t, "display")); ) t = t.previousElementSibling;
                return t || null;
            }
            function Me(t) {
                return $e(e) < $e(t) ? 1 : -1;
            }
            function Pe(e) {
                for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, i = 0; n--; ) i += t.charCodeAt(n);
                return i.toString(36);
            }
            function $e(e, t) {
                var n = 0;
                if (!e || !e.parentNode) return -1;
                for (; e && (e = e.previousElementSibling); ) "TEMPLATE" === e.nodeName.toUpperCase() || e === i || (t && !He(e, t)) || n++;
                return n;
            }
            function He(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 Oe(e, t) {
                return function () {
                    if (!me) {
                        var n = arguments,
                            i = this;
                        me = j(function () {
                            1 === n.length ? e.call(i, n[0]) : e.apply(i, n), (me = void 0);
                        }, t);
                    }
                };
            }
            function Ae(e, t) {
                if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
                return e;
            }
            function Be(e) {
                return Y && Y.dom ? Y.dom(e).cloneNode(!0) : z ? z(e).clone(!0)[0] : e.cloneNode(!0);
            }
            function Ne(e) {
                return j(e, 0);
            }
            function Le(e) {
                return clearTimeout(e);
            }
            function je(e, t, n, i) {
                if (e.getBoundingClientRect || e === B) {
                    var o, r, s, a, l, c, u;
                    if (
                        (e !== B && e !== ae()
                            ? ((r = (o = e.getBoundingClientRect()).top), (s = o.left), (a = o.bottom), (l = o.right), (c = o.height), (u = o.width))
                            : ((r = 0), (s = 0), (a = window.innerHeight), (l = window.innerWidth), (c = window.innerHeight), (u = window.innerWidth)),
                        i && e !== B && ((n = n || e.parentNode), !V))
                    )
                        do {
                            if (n && n.getBoundingClientRect && "none" !== Ce(n, "transform")) {
                                var d = n.getBoundingClientRect();
                                (r -= d.top + L(Ce(n, "border-top-width"))), (s -= d.left + L(Ce(n, "border-left-width"))), (a = r + o.height), (l = s + o.width);
                                break;
                            }
                        } while ((n = n.parentNode));
                    if (t && e !== B) {
                        var p = Se(n || e),
                            h = p && p.a,
                            f = p && p.d;
                        p && ((a = (r /= f) + (c /= f)), (l = (s /= h) + (u /= h)));
                    }
                    return { top: r, left: s, bottom: a, right: l, width: u, height: c };
                }
            }
            function ze(e, t) {
                for (var n = se(e, !0), i = je(e)[t]; n; ) {
                    var o = je(n)[t];
                    if (!("top" === t || "left" === t ? i >= o : i <= o)) return n;
                    if (n === ae()) break;
                    n = se(n, !1);
                }
                return !1;
            }
            function Ye(e) {
                var t = 0,
                    n = 0,
                    i = ae();
                if (e)
                    do {
                        var o = Se(e),
                            r = o.a,
                            s = o.d;
                        (t += e.scrollLeft * r), (n += e.scrollTop * s);
                    } while (e !== i && (e = e.parentNode));
                return [t, n];
            }
            return (
                (ve.prototype = {
                    constructor: ve,
                    _computeIsAligned: function (t) {
                        var i;
                        if ((n && !K ? (he(), (i = N.elementFromPoint(t.clientX, t.clientY)), fe()) : (i = t.target), (i = ye(i, this.options.draggable, this.el, !1)), !ee && e && e.parentNode === this.el)) {
                            for (var o, r, s, a, l, c, u, d, p = this.el.children, h = 0; h < p.length; h++)
                                ye(p[h], this.options.draggable, this.el, !1) &&
                                    p[h] !== i &&
                                    (p[h].sortableMouseAligned =
                                        ((o = t.clientX),
                                        (r = t.clientY),
                                        (s = p[h]),
                                        (a = this._getDirection(t, null)),
                                        this.options,
                                        void 0,
                                        void 0,
                                        void 0,
                                        void 0,
                                        (l = je(s)),
                                        (c = "vertical" === a ? l.left : l.top),
                                        (u = "vertical" === a ? l.right : l.bottom),
                                        c < (d = "vertical" === a ? o : r) && d < u));
                            ye(i, this.options.draggable, this.el, !0) || (D = null),
                                (ee = !0),
                                j(function () {
                                    ee = !1;
                                }, 30);
                        }
                    },
                    _getDirection: function (t, n) {
                        return "function" == typeof this.options.direction ? this.options.direction.call(this, t, n, e) : this.options.direction;
                    },
                    _onTapStart: function (t) {
                        if (t.cancelable) {
                            var n,
                                i,
                                o = this,
                                r = this.el,
                                a = this.options,
                                l = a.preventOnFilter,
                                c = t.type,
                                u = t.touches && t.touches[0],
                                d = (u || t).target,
                                p = (t.target.shadowRoot && ((t.path && t.path[0]) || (t.composedPath && t.composedPath()[0]))) || d,
                                h = a.filter;
                            if (
                                ((function (e) {
                                    oe.length = 0;
                                    var t = e.getElementsByTagName("input"),
                                        n = t.length;
                                    for (; n--; ) {
                                        var i = t[n];
                                        i.checked && oe.push(i);
                                    }
                                })(r),
                                !e && !((/mousedown|pointerdown/.test(c) && 0 !== t.button) || a.disabled || p.isContentEditable || ((d = ye(d, a.draggable, r, !1)), s === d)))
                            ) {
                                if (((n = $e(d)), (i = $e(d, a.draggable)), "function" == typeof h)) {
                                    if (h.call(this, t, d, this)) return Ee(o, p, "filter", d, r, r, n, void 0, i), void (l && t.cancelable && t.preventDefault());
                                } else if (
                                    h &&
                                    (h = h.split(",").some(function (e) {
                                        if ((e = ye(p, e.trim(), r, !1))) return Ee(o, e, "filter", d, r, r, n, void 0, i), !0;
                                    }))
                                )
                                    return void (l && t.cancelable && t.preventDefault());
                                (a.handle && !ye(p, a.handle, r, !1)) || this._prepareDragStart(t, u, d, n, i);
                            }
                        }
                    },
                    _handleAutoScroll: function (t, n) {
                        if (e && this.options.scroll) {
                            var i = t.clientX,
                                o = t.clientY,
                                r = N.elementFromPoint(i, o),
                                s = this;
                            if (n || q || V || W) {
                                ce(t, s.options, r, n);
                                var a = se(r, !0);
                                !k ||
                                    (g && i === v && o === y) ||
                                    (g && clearInterval(g),
                                    (g = setInterval(function () {
                                        if (e) {
                                            var r = se(N.elementFromPoint(i, o), !0);
                                            r !== a && ((a = r), ue(), ce(t, s.options, a, n));
                                        }
                                    }, 10)),
                                    (v = i),
                                    (y = o));
                            } else {
                                if (!s.options.bubbleScroll || se(r, !0) === ae()) return void ue();
                                ce(t, s.options, se(r, !1), !1);
                            }
                        }
                    },
                    _prepareDragStart: function (n, i, a, l, c) {
                        var d,
                            h = this,
                            m = h.el,
                            g = h.options,
                            v = m.ownerDocument;
                        a &&
                            !e &&
                            a.parentNode === m &&
                            ((o = m),
                            (t = (e = a).parentNode),
                            (r = e.nextSibling),
                            (s = a),
                            (f = g.group),
                            (u = l),
                            (p = c),
                            (b = { target: e, clientX: (i || n).clientX, clientY: (i || n).clientY }),
                            (this._lastX = (i || n).clientX),
                            (this._lastY = (i || n).clientY),
                            (e.style["will-change"] = "all"),
                            (e.style.transition = ""),
                            (e.style.transform = ""),
                            (d = function () {
                                h._disableDelayedDragEvents(), !G && h.nativeDraggable && (e.draggable = !0), h._triggerDragStart(n, i), Ee(h, o, "choose", e, o, o, u, void 0, p), De(e, g.chosenClass, !0);
                            }),
                            g.ignore.split(",").forEach(function (t) {
                                xe(e, t.trim(), Re);
                            }),
                            we(v, "dragover", ge),
                            we(v, "mousemove", ge),
                            we(v, "touchmove", ge),
                            we(v, "mouseup", h._onDrop),
                            we(v, "touchend", h._onDrop),
                            we(v, "touchcancel", h._onDrop),
                            G && this.nativeDraggable && ((this.options.touchStartThreshold = 4), (e.draggable = !0)),
                            !g.delay || (g.delayOnTouchOnly && !i) || (this.nativeDraggable && (q || V))
                                ? d()
                                : (we(v, "mouseup", h._disableDelayedDrag),
                                  we(v, "touchend", h._disableDelayedDrag),
                                  we(v, "touchcancel", h._disableDelayedDrag),
                                  we(v, "mousemove", h._delayedDragTouchMoveHandler),
                                  we(v, "touchmove", h._delayedDragTouchMoveHandler),
                                  g.supportPointer && we(v, "pointermove", h._delayedDragTouchMoveHandler),
                                  (h._dragStartTimer = j(d, g.delay))));
                    },
                    _delayedDragTouchMoveHandler: function (e) {
                        var t = e.touches ? e.touches[0] : e;
                        ie(te(t.clientX - this._lastX), te(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / ((this.nativeDraggable && window.devicePixelRatio) || 1)) && this._disableDelayedDrag();
                    },
                    _disableDelayedDrag: function () {
                        e && Re(e), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
                    },
                    _disableDelayedDragEvents: function () {
                        var e = this.el.ownerDocument;
                        _e(e, "mouseup", this._disableDelayedDrag),
                            _e(e, "touchend", this._disableDelayedDrag),
                            _e(e, "touchcancel", this._disableDelayedDrag),
                            _e(e, "mousemove", this._delayedDragTouchMoveHandler),
                            _e(e, "touchmove", this._delayedDragTouchMoveHandler),
                            _e(e, "pointermove", this._delayedDragTouchMoveHandler);
                    },
                    _triggerDragStart: function (t, n) {
                        (n = n || ("touch" == t.pointerType ? t : null)),
                            !this.nativeDraggable || n
                                ? this.options.supportPointer
                                    ? we(N, "pointermove", this._onTouchMove)
                                    : we(N, n ? "touchmove" : "mousemove", this._onTouchMove)
                                : (we(e, "dragend", this), we(o, "dragstart", this._onDragStart));
                        try {
                            N.selection
                                ? Ne(function () {
                                      N.selection.empty();
                                  })
                                : window.getSelection().removeAllRanges();
                        } catch (e) {}
                    },
                    _dragStarted: function (t, n) {
                        if (((I = !1), o && e)) {
                            this.nativeDraggable && (we(N, "dragover", this._handleAutoScroll), we(N, "dragover", pe));
                            var i = this.options;
                            !t && De(e, i.dragClass, !1), De(e, i.ghostClass, !0), Ce(e, "transform", ""), (ve.active = this), t && this._appendGhost(), Ee(this, o, "start", e, o, o, u, void 0, p, void 0, n);
                        } else this._nulling();
                    },
                    _emulateDragOver: function (t) {
                        if (w) {
                            if (this._lastX === w.clientX && this._lastY === w.clientY && !t) return;
                            (this._lastX = w.clientX), (this._lastY = w.clientY), he();
                            for (var n = N.elementFromPoint(w.clientX, w.clientY), i = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(w.clientX, w.clientY)) !== i; ) i = n;
                            if (i)
                                do {
                                    if (i[A]) if (i[A]._onDragOver({ clientX: w.clientX, clientY: w.clientY, target: n, rootEl: i }) && !this.options.dragoverBubble) break;
                                    n = i;
                                } while ((i = i.parentNode));
                            e.parentNode[A]._computeIsAligned(w), fe();
                        }
                    },
                    _onTouchMove: function (e, t) {
                        if (b) {
                            var i = this.options,
                                o = i.fallbackTolerance,
                                r = i.fallbackOffset,
                                s = e.touches ? e.touches[0] : e,
                                a = n && Se(n),
                                l = n && a && a.a,
                                c = n && a && a.d,
                                u = J && E && Ye(E),
                                d = (s.clientX - b.clientX + r.x) / (l || 1) + (u ? u[0] - H[0] : 0) / (l || 1),
                                p = (s.clientY - b.clientY + r.y) / (c || 1) + (u ? u[1] - H[1] : 0) / (c || 1),
                                h = e.touches ? "translate3d(" + d + "px," + p + "px,0)" : "translate(" + d + "px," + p + "px)";
                            if (!ve.active && !I) {
                                if (o && ne(te(s.clientX - this._lastX), te(s.clientY - this._lastY)) < o) return;
                                this._onDragStart(e, !0);
                            }
                            !t && this._handleAutoScroll(s, !0), (_ = !0), (w = s), Ce(n, "webkitTransform", h), Ce(n, "mozTransform", h), Ce(n, "msTransform", h), Ce(n, "transform", h), e.cancelable && e.preventDefault();
                        }
                    },
                    _appendGhost: function () {
                        if (!n) {
                            var t = this.options.fallbackOnBody ? N.body : o,
                                i = je(e, !0, t, !J),
                                r = (Ce(e), this.options);
                            if (J) {
                                for (E = t; "static" === Ce(E, "position") && "none" === Ce(E, "transform") && E !== N; ) E = E.parentNode;
                                if (E !== N) {
                                    var s = je(E, !0);
                                    (i.top -= s.top), (i.left -= s.left);
                                }
                                E !== N.body && E !== N.documentElement ? (E === N && (E = ae()), (i.top += E.scrollTop), (i.left += E.scrollLeft)) : (E = ae()), (H = Ye(E));
                            }
                            De((n = e.cloneNode(!0)), r.ghostClass, !1),
                                De(n, r.fallbackClass, !0),
                                De(n, r.dragClass, !0),
                                Ce(n, "box-sizing", "border-box"),
                                Ce(n, "margin", 0),
                                Ce(n, "top", i.top),
                                Ce(n, "left", i.left),
                                Ce(n, "width", i.width),
                                Ce(n, "height", i.height),
                                Ce(n, "opacity", "0.8"),
                                Ce(n, "position", J ? "absolute" : "fixed"),
                                Ce(n, "zIndex", "100000"),
                                Ce(n, "pointerEvents", "none"),
                                t.appendChild(n);
                        }
                    },
                    _onDragStart: function (t, n) {
                        var r = this,
                            s = t.dataTransfer,
                            a = r.options;
                        ((i = Be(e)).draggable = !1),
                            (i.style["will-change"] = ""),
                            this._hideClone(),
                            De(i, r.options.chosenClass, !1),
                            (r._cloneId = Ne(function () {
                                r.options.removeCloneOnHide || o.insertBefore(i, e), Ee(r, o, "clone", e);
                            })),
                            !n && De(e, a.dragClass, !0),
                            n
                                ? ((F = !0), (r._loopId = setInterval(r._emulateDragOver, 50)))
                                : (_e(N, "mouseup", r._onDrop),
                                  _e(N, "touchend", r._onDrop),
                                  _e(N, "touchcancel", r._onDrop),
                                  s && ((s.effectAllowed = "move"), a.setData && a.setData.call(r, s, e)),
                                  we(N, "drop", r),
                                  Ce(e, "transform", "translateZ(0)")),
                            (I = !0),
                            (r._dragStartId = Ne(r._dragStarted.bind(r, n, t))),
                            we(N, "selectstart", r),
                            W && Ce(N.body, "user-select", "none");
                    },
                    _onDragOver: function (n) {
                        var i,
                            s,
                            a,
                            l = this.el,
                            c = n.target,
                            d = this.options,
                            h = d.group,
                            g = ve.active,
                            v = f === h,
                            y = d.sort,
                            b = this;
                        if (!Q) {
                            if ((void 0 !== n.preventDefault && n.cancelable && n.preventDefault(), (_ = !0), (c = ye(c, d.draggable, l, !0)), e.contains(n.target) || c.animated)) return U(!1);
                            if ((c !== e && (F = !1), g && !d.disabled && (v ? y || (a = !o.contains(e)) : m === this || ((this.lastPutMode = f.checkPull(this, g, e, n)) && h.checkPut(this, g, e, n))))) {
                                var w = this._getDirection(n, c);
                                if (((i = je(e)), a)) return this._hideClone(), (t = o), r ? o.insertBefore(e, r) : o.appendChild(e), U(!0);
                                var E = Fe(l);
                                if (
                                    !E ||
                                    ((function (e, t, n) {
                                        var i = je(Fe(n)),
                                            o = "vertical" === t ? e.clientY : e.clientX,
                                            r = "vertical" === t ? e.clientX : e.clientY,
                                            s = "vertical" === t ? i.bottom : i.right,
                                            a = "vertical" === t ? i.left : i.top,
                                            l = "vertical" === t ? i.right : i.bottom;
                                        return "vertical" === t ? r > l + 10 || (r <= l && o > s && r >= a) : (o > s && r > a) || (o <= s && r > l + 10);
                                    })(n, w, l) &&
                                        !E.animated)
                                ) {
                                    if ((E && l === n.target && (c = E), c && (s = je(c)), v ? g._hideClone() : g._showClone(this), !1 !== Te(o, l, e, i, c, s, n, !!c))) return l.appendChild(e), (t = l), (T = null), V(), U(!0);
                                } else if (c && c !== e && c.parentNode === l) {
                                    var R,
                                        k = 0,
                                        I = c.sortableMouseAligned,
                                        M = e.parentNode !== l,
                                        H = "vertical" === w ? "top" : "left",
                                        O = ze(c, "top") || ze(e, "top"),
                                        B = O ? O.scrollTop : void 0;
                                    if (
                                        (D !== c && ((S = null), (R = je(c)[H]), (P = !1)),
                                        ((function (t, n, i) {
                                            var o = (t === e && T) || je(t),
                                                r = (n === e && T) || je(n),
                                                s = "vertical" === i ? o.left : o.top,
                                                a = "vertical" === i ? o.right : o.bottom,
                                                l = "vertical" === i ? o.width : o.height,
                                                c = "vertical" === i ? r.left : r.top,
                                                u = "vertical" === i ? r.right : r.bottom,
                                                d = "vertical" === i ? r.width : r.height;
                                            return s === c || a === u || s + l / 2 === c + d / 2;
                                        })(e, c, w) &&
                                            I) ||
                                        M ||
                                        O ||
                                        d.invertSwap ||
                                        "insert" === S ||
                                        "swap" === S
                                            ? ("swap" !== S && ($ = d.invertSwap || M),
                                              (k = (function (t, n, i, o, r, s, a) {
                                                  var l = je(n),
                                                      c = "vertical" === i ? t.clientY : t.clientX,
                                                      u = "vertical" === i ? l.height : l.width,
                                                      d = "vertical" === i ? l.top : l.left,
                                                      p = "vertical" === i ? l.bottom : l.right,
                                                      h = je(e),
                                                      f = !1;
                                                  if (!s)
                                                      if (a && x < u * o)
                                                          if ((!P && (1 === C ? c > d + (u * r) / 2 : c < p - (u * r) / 2) && (P = !0), P)) f = !0;
                                                          else {
                                                              "vertical" === i ? h.top : h.left, "vertical" === i ? h.bottom : h.right;
                                                              if (1 === C ? c < d + x : c > p - x) return -1 * C;
                                                          }
                                                      else if (c > d + (u * (1 - o)) / 2 && c < p - (u * (1 - o)) / 2) return Me(n);
                                                  if ((f = f || s) && (c < d + (u * r) / 2 || c > p - (u * r) / 2)) return c > d + u / 2 ? 1 : -1;
                                                  return 0;
                                              })(n, c, w, d.swapThreshold, null == d.invertedSwapThreshold ? d.swapThreshold : d.invertedSwapThreshold, $, D === c)),
                                              (S = "swap"))
                                            : ((k = Me(c)), (S = "insert")),
                                        0 === k)
                                    )
                                        return U(!1);
                                    (T = null), (D = c), (C = k), (s = je(c));
                                    var L = c.nextElementSibling,
                                        z = !1,
                                        Y = Te(o, l, e, i, c, s, n, (z = 1 === k));
                                    if (!1 !== Y)
                                        return (
                                            (1 !== Y && -1 !== Y) || (z = 1 === Y),
                                            (Q = !0),
                                            j(ke, 30),
                                            v ? g._hideClone() : g._showClone(this),
                                            z && !L ? l.appendChild(e) : c.parentNode.insertBefore(e, z ? L : c),
                                            O && le(O, 0, B - O.scrollTop),
                                            (t = e.parentNode),
                                            void 0 === R || $ || (x = te(R - je(c)[H])),
                                            V(),
                                            U(!0)
                                        );
                                }
                                if (l.contains(e)) return U(!1);
                            }
                            return !1;
                        }
                        function U(t) {
                            return (
                                t &&
                                    (v ? g._hideClone() : g._showClone(b),
                                    g && (De(e, m ? m.options.ghostClass : g.options.ghostClass, !1), De(e, d.ghostClass, !0)),
                                    m !== b && b !== ve.active ? (m = b) : b === ve.active && (m = null),
                                    i && b._animate(i, e),
                                    c && s && b._animate(s, c)),
                                ((c === e && !e.animated) || (c === l && !c.animated)) && (D = null),
                                d.dragoverBubble || n.rootEl || c === N || (b._handleAutoScroll(n), e.parentNode[A]._computeIsAligned(n), !t && ge(n)),
                                !d.dragoverBubble && n.stopPropagation && n.stopPropagation(),
                                !0
                            );
                        }
                        function V() {
                            Ee(b, o, "change", c, l, o, u, $e(e), p, $e(e, d.draggable), n);
                        }
                    },
                    _animate: function (t, n) {
                        var i = this.options.animation;
                        if (i) {
                            var o = je(n);
                            if ((n === e && (T = o), 1 === t.nodeType && (t = je(t)), t.left + t.width / 2 !== o.left + o.width / 2 || t.top + t.height / 2 !== o.top + o.height / 2)) {
                                var r = Se(this.el),
                                    s = r && r.a,
                                    a = r && r.d;
                                Ce(n, "transition", "none"),
                                    Ce(n, "transform", "translate3d(" + (t.left - o.left) / (s || 1) + "px," + (t.top - o.top) / (a || 1) + "px,0)"),
                                    this._repaint(n),
                                    Ce(n, "transition", "transform " + i + "ms" + (this.options.easing ? " " + this.options.easing : "")),
                                    Ce(n, "transform", "translate3d(0,0,0)");
                            }
                            "number" == typeof n.animated && clearTimeout(n.animated),
                                (n.animated = j(function () {
                                    Ce(n, "transition", ""), Ce(n, "transform", ""), (n.animated = !1);
                                }, i));
                        }
                    },
                    _repaint: function (e) {
                        return e.offsetWidth;
                    },
                    _offMoveEvents: function () {
                        _e(N, "touchmove", this._onTouchMove), _e(N, "pointermove", this._onTouchMove), _e(N, "dragover", ge), _e(N, "mousemove", ge), _e(N, "touchmove", ge);
                    },
                    _offUpEvents: function () {
                        var e = this.el.ownerDocument;
                        _e(e, "mouseup", this._onDrop), _e(e, "touchend", this._onDrop), _e(e, "pointerup", this._onDrop), _e(e, "touchcancel", this._onDrop), _e(N, "selectstart", this);
                    },
                    _onDrop: function (s) {
                        var a = this.el,
                            l = this.options;
                        (I = !1),
                            (k = !1),
                            ($ = !1),
                            (P = !1),
                            clearInterval(this._loopId),
                            clearInterval(g),
                            ue(),
                            clearTimeout(me),
                            (me = void 0),
                            clearTimeout(this._dragStartTimer),
                            Le(this._cloneId),
                            Le(this._dragStartId),
                            _e(N, "mousemove", this._onTouchMove),
                            this.nativeDraggable && (_e(N, "drop", this), _e(a, "dragstart", this._onDragStart), _e(N, "dragover", this._handleAutoScroll), _e(N, "dragover", pe)),
                            W && Ce(N.body, "user-select", ""),
                            this._offMoveEvents(),
                            this._offUpEvents(),
                            s &&
                                (_ && (s.cancelable && s.preventDefault(), !l.dropBubble && s.stopPropagation()),
                                n && n.parentNode && n.parentNode.removeChild(n),
                                (o === t || (m && "clone" !== m.lastPutMode)) && i && i.parentNode && i.parentNode.removeChild(i),
                                e &&
                                    (this.nativeDraggable && _e(e, "dragend", this),
                                    Re(e),
                                    (e.style["will-change"] = ""),
                                    De(e, m ? m.options.ghostClass : this.options.ghostClass, !1),
                                    De(e, this.options.chosenClass, !1),
                                    Ee(this, o, "unchoose", e, t, o, u, null, p, null, s),
                                    o !== t
                                        ? ((d = $e(e)),
                                          (h = $e(e, l.draggable)),
                                          d >= 0 && (Ee(null, t, "add", e, t, o, u, d, p, h, s), Ee(this, o, "remove", e, t, o, u, d, p, h, s), Ee(null, t, "sort", e, t, o, u, d, p, h, s), Ee(this, o, "sort", e, t, o, u, d, p, h, s)),
                                          m && m.save())
                                        : e.nextSibling !== r && ((d = $e(e)), (h = $e(e, l.draggable)), d >= 0 && (Ee(this, o, "update", e, t, o, u, d, p, h, s), Ee(this, o, "sort", e, t, o, u, d, p, h, s))),
                                    ve.active && ((null != d && -1 !== d) || ((d = u), (h = p)), Ee(this, o, "end", e, t, o, u, d, p, h, s), this.save()))),
                            this._nulling();
                    },
                    _nulling: function () {
                        (o = e = t = n = r = i = s = a = l = R.length = g = v = y = b = w = _ = d = u = D = C = T = m = f = ve.active = null),
                            oe.forEach(function (e) {
                                e.checked = !0;
                            }),
                            (oe.length = 0);
                    },
                    handleEvent: function (t) {
                        switch (t.type) {
                            case "drop":
                            case "dragend":
                                this._onDrop(t);
                                break;
                            case "dragenter":
                            case "dragover":
                                e &&
                                    (this._onDragOver(t),
                                    (function (e) {
                                        e.dataTransfer && (e.dataTransfer.dropEffect = "move");
                                        e.cancelable && e.preventDefault();
                                    })(t));
                                break;
                            case "selectstart":
                                t.preventDefault();
                        }
                    },
                    toArray: function () {
                        for (var e, t = [], n = this.el.children, i = 0, o = n.length, r = this.options; i < o; i++) ye((e = n[i]), r.draggable, this.el, !1) && t.push(e.getAttribute(r.dataIdAttr) || Pe(e));
                        return t;
                    },
                    sort: function (e) {
                        var t = {},
                            n = this.el;
                        this.toArray().forEach(function (e, i) {
                            var o = n.children[i];
                            ye(o, this.options.draggable, n, !1) && (t[e] = o);
                        }, this),
                            e.forEach(function (e) {
                                t[e] && (n.removeChild(t[e]), n.appendChild(t[e]));
                            });
                    },
                    save: function () {
                        var e = this.options.store;
                        e && e.set && e.set(this);
                    },
                    closest: function (e, t) {
                        return ye(e, t || this.options.draggable, this.el, !1);
                    },
                    option: function (e, t) {
                        var n = this.options;
                        if (void 0 === t) return n[e];
                        (n[e] = t), "group" === e && de(n);
                    },
                    destroy: function () {
                        var e = this.el;
                        (e[A] = null),
                            _e(e, "mousedown", this._onTapStart),
                            _e(e, "touchstart", this._onTapStart),
                            _e(e, "pointerdown", this._onTapStart),
                            this.nativeDraggable && (_e(e, "dragover", this), _e(e, "dragenter", this)),
                            Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function (e) {
                                e.removeAttribute("draggable");
                            }),
                            this._onDrop(),
                            M.splice(M.indexOf(this.el), 1),
                            (this.el = e = null);
                    },
                    _hideClone: function () {
                        i.cloneHidden || (Ce(i, "display", "none"), (i.cloneHidden = !0), i.parentNode && this.options.removeCloneOnHide && i.parentNode.removeChild(i));
                    },
                    _showClone: function (t) {
                        "clone" === t.lastPutMode
                            ? i.cloneHidden &&
                              (o.contains(e) && !this.options.group.revertClone ? o.insertBefore(i, e) : r ? o.insertBefore(i, r) : o.appendChild(i),
                              this.options.group.revertClone && this._animate(e, i),
                              Ce(i, "display", ""),
                              (i.cloneHidden = !1))
                            : this._hideClone();
                    },
                }),
                we(N, "touchmove", function (e) {
                    (ve.active || I) && e.cancelable && e.preventDefault();
                }),
                (ve.utils = {
                    on: we,
                    off: _e,
                    css: Ce,
                    find: xe,
                    is: function (e, t) {
                        return !!ye(e, t, e, !1);
                    },
                    extend: Ae,
                    throttle: Oe,
                    closest: ye,
                    toggleClass: De,
                    clone: Be,
                    index: $e,
                    nextTick: Ne,
                    cancelNextTick: Le,
                    detectDirection: re,
                    getChild: Ie,
                }),
                (ve.create = function (e, t) {
                    return new ve(e, t);
                }),
                (ve.version = "1.9.0"),
                ve
            );
        });
    },
    881: function (e, t, n) {
        var i = n(685)(n(896), n(897), !1, null, null, null);
        e.exports = i.exports;
    },
    886: function (e, t, n) {
        "use strict";
        var i = n(694),
            o = n(337),
            r = n(701);
        t.a = {
            mixins: [i.a, r.a, o.a],
            data: function () {
                return {
                    recurringAppointments: [],
                    customerCreatedCount: 0,
                    appointment: null,
                    bookings: [],
                    duplicateEvent: !1,
                    exportAction: "",
                    exportParams: {
                        fields: [
                            { label: this.$root.labels.customers, value: "customers", checked: !0 },
                            { label: this.$root.labels.employee, value: "employee", checked: !0 },
                            { label: this.$root.labels.service, value: "service", checked: !0 },
                            { label: this.$root.labels.start_time, value: "startTime", checked: !0 },
                            { label: this.$root.labels.end_time, value: "endTime", checked: !0 },
                            { label: this.$root.labels.note, value: "note", checked: !0 },
                            { label: this.$root.labels.status, value: "status", checked: !0 },
                            { label: this.$root.labels.custom_fields, value: "customFields", checked: !0 },
                            { label: this.$root.labels.ph_booking_number_of_persons, value: "persons", checked: !0 },
                        ],
                    },
                    savedAppointment: null,
                    statuses: [
                        { value: "approved", label: this.$root.labels.approved },
                        { value: "pending", label: this.$root.labels.pending },
                        { value: "canceled", label: this.$root.labels.canceled },
                        { value: "rejected", label: this.$root.labels.rejected },
                    ],
                    options: {
                        fetched: !1,
                        availableEntitiesIds: { packages: [], categories: [], employees: [], locations: [], services: [] },
                        entities: { categories: [], customers: [], customFields: [], employees: [], locations: [], services: [] },
                    },
                };
            },
            methods: {
                getInitAppointmentObject: function () {
                    return {
                        id: 0,
                        bookings: [],
                        categoryId: "",
                        serviceId: "",
                        providerId: "",
                        locationId: "",
                        selectedDate: null,
                        selectedPeriod: "",
                        status: this.$root.settings.general.defaultAppointmentStatus,
                        internalNotes: "",
                        notifyParticipants: this.$root.settings.notifications.notifyCustomers,
                        dateTimeSlots: [],
                        calendarTimeSlots: [],
                        extrasTotalPrice: 0,
                        serviceTotalPrice: 0,
                        discountTotalPrice: 0,
                        providerServiceMinCapacity: 0,
                        providerServiceMaxCapacity: 0,
                        extrasCount: 0,
                        extrasSelectedCount: 0,
                        duration: 0,
                    };
                },
                showDialogNewAppointment: function () {
                    var e = this;
                    this.setBookings(0),
                        (this.savedAppointment = null),
                        (this.dialogAppointment = !0),
                        setTimeout(function () {
                            e.appointment = e.getInitAppointmentObject();
                        }, 500);
                },
                showDialogEditAppointment: function (e) {
                    var t = this;
                    (this.dialogAppointment = !0),
                        setTimeout(function () {
                            t.getAppointment(e);
                        }, 500);
                },
                closeDialogAppointment: function () {
                    var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
                    (this.duplicateEvent = e), (this.dialogAppointment = !1);
                },
                setBookings: function (e) {
                    var t = [],
                        n = this;
                    this.options.entities.customers.forEach(function (i) {
                        if ("hidden" !== i.status) {
                            var o = 0,
                                r = [],
                                s = [],
                                a = null,
                                l = 0,
                                c = 1,
                                u = null,
                                d = null,
                                p = JSON.stringify({ firstName: i.firstName, lastName: i.lastName, email: i.email, phone: i.phone });
                            n.appointment &&
                                e &&
                                n.appointment.bookings.forEach(function (e) {
                                    e.customerId === i.id && ((o = e.id), (r = e.extras), (s = e.payments), (l = e.price), (c = e.persons), (a = e.coupon), (p = e.info), (u = e.aggregatedPrice), (d = e.packageCustomerService));
                                }),
                                t.push({
                                    id: o,
                                    customer: i,
                                    status: n.$root.settings.general.defaultAppointmentStatus,
                                    persons: c,
                                    total: 0,
                                    extras: r,
                                    payments: s,
                                    price: l,
                                    coupon: a,
                                    added: !1,
                                    info: p,
                                    aggregatedPrice: u,
                                    packageCustomerService: d,
                                    customFields: {},
                                });
                        }
                    }),
                        (this.bookings = t);
                },
                getAppointment: function (e) {
                    var t = this,
                        n = null,
                        i = "";
                    void 0 !== this.$store &&
                        void 0 !== this.$store.state.cabinet &&
                        "provider" === this.$store.state.cabinet.cabinetType &&
                        ((i = "" === this.$store.state.cabinet.timeZone ? "UTC" : this.$store.state.cabinet.timeZone),
                        (n = Object.assign(this.getAuthorizationHeaderObject(), { params: { source: "cabinet-" + this.$store.state.cabinet.cabinetType, timeZone: i } }))),
                        this.$http
                            .get(this.$root.getAjaxUrl + "/appointments/" + e, n)
                            .then(function (n) {
                                var o = t;
                                (t.savedAppointment = JSON.parse(JSON.stringify(n.data.data.appointment))),
                                    (t.savedAppointment.categoryId = t.getServiceById(t.savedAppointment.serviceId).categoryId),
                                    (t.appointment = Object.assign(t.getInitAppointmentObject(), n.data.data.appointment)),
                                    (t.appointment.notifyParticipants = !!t.appointment.notifyParticipants),
                                    "UTC" === i &&
                                        ((t.appointment.bookingStart = t.getConvertedUtcToLocalDateTime(t.appointment.bookingStart)),
                                        (t.appointment.bookingEnd = t.getConvertedUtcToLocalDateTime(t.appointment.bookingEnd)),
                                        (t.savedAppointment.bookingStart = t.getConvertedUtcToLocalDateTime(t.savedAppointment.bookingStart)),
                                        (t.savedAppointment.bookingEnd = t.getConvertedUtcToLocalDateTime(t.savedAppointment.bookingEnd))),
                                    t.appointment.bookings.forEach(function (e) {
                                        var t = null;
                                        o.options.entities.services.forEach(function (e) {
                                            e.id === o.appointment.serviceId &&
                                                (t = JSON.parse(JSON.stringify(e.extras))).forEach(function (e) {
                                                    (e.quantity = 1), (e.selected = !1);
                                                });
                                        }),
                                            (e.customer = null),
                                            (e.added = !1),
                                            o.options.entities.customers.forEach(function (t) {
                                                if (t.id === e.customerId) {
                                                    e.customer = t;
                                                    var n = o.getCustomerInfo(e);
                                                    0 !== e.id && n && (e.info = JSON.stringify({ firstName: n.firstName, lastName: n.lastName, email: n.email, phone: n.phone })), (e.added = !0);
                                                }
                                            }),
                                            e.extras.forEach(function (e) {
                                                t.forEach(function (t) {
                                                    t.extraId === e.extraId && ((t.id = e.id), (t.selected = !0), (t.quantity = e.quantity ? e.quantity : 1), (t.price = e.price), (t.aggregatedPrice = e.aggregatedPrice));
                                                });
                                            }),
                                            t.forEach(function (e) {
                                                e.selected || (e.id = 0);
                                            }),
                                            (e.extras = t),
                                            ("[]" !== e.customFields && null !== e.customFields) || (e.customFields = "{}"),
                                            (e.customFields = JSON.parse(e.customFields));
                                    }),
                                    t.setBookings(e),
                                    (t.recurringAppointments = n.data.data.recurring);
                            })
                            .catch(function (e) {
                                console.log(e.message);
                            });
                },
                sortBookings: function (e) {
                    e.sort(function (e, t) {
                        return (e.customer.firstName + " " + e.customer.lastName).localeCompare(t.customer.firstName + " " + t.customer.lastName);
                    });
                },
                duplicateAppointmentCallback: function (e) {
                    var t = this;
                    (this.appointment = e),
                        (this.appointment.id = 0),
                        (this.appointment.selectedDate = null),
                        (this.appointment.selectedPeriod = ""),
                        (this.appointment.dateTimeSlots = []),
                        (this.appointment.calendarTimeSlots = []),
                        setTimeout(function () {
                            t.dialogAppointment = !0;
                        }, 300);
                },
                getCustomersFromGroup: function (e) {
                    var t = this,
                        n = "";
                    return (
                        e.bookings.forEach(function (e) {
                            if (t.options.entities.customers.length) {
                                var i = t.getCustomerInfo(e);
                                i && (n += '<span class="am-appointment-status-symbol ' + e.status + '"></span><span>' + i.firstName + " " + i.lastName + "</span><br>");
                            }
                        }),
                        n
                    );
                },
                saveCustomerCallback: function (e) {
                    delete e.user.birthday, this.options.entities.customers.push(e.user);
                    var t = {
                        id: 0,
                        customer: e.user,
                        customerId: e.user.id,
                        status: this.$root.settings.general.defaultAppointmentStatus,
                        persons: 1,
                        total: 0,
                        extras: this.appointment && this.appointment.serviceId ? this.getServiceById(this.appointment.serviceId).extras : [],
                        payments: [],
                        coupon: null,
                        info: JSON.stringify({ firstName: e.user.firstName, lastName: e.user.lastName, email: e.user.email, phone: e.user.phone }),
                        customFields: [],
                        added: !0,
                    };
                    this.bookings.push(t),
                        this.sortBookings(this.bookings),
                        null !== this.appointment && (this.appointment.bookings.push(t), this.sortBookings(this.appointment.bookings)),
                        this.setBookingCustomFields(),
                        this.customerCreatedCount++;
                },
                updateAppointmentStatus: function (e, t, n) {
                    var i = this;
                    (this.updateStatusDisabled = !0),
                        this.form
                            .post(this.$root.getAjaxUrl + "/appointments/status/" + e.id, { status: t })
                            .then(function (o) {
                                n && i.setTotalStatusCounts(e, t, o.data.status),
                                    i.notify(e.status === o.data.status ? i.$root.labels.success : i.$root.labels.error, o.data.message, e.status === o.data.status ? "success" : "error"),
                                    (e.status = o.data.status),
                                    (i.updateStatusDisabled = !1);
                            })
                            .catch(function (t) {
                                "timeSlotUnavailable" in t.response.data.data &&
                                    !0 === t.response.data.data.timeSlotUnavailable &&
                                    (i.notify(i.$root.labels.error, i.$root.labels.time_slot_unavailable, "error"), (e.status = t.response.data.data.status)),
                                    (i.updateStatusDisabled = !1);
                            });
                },
                packageTooltipContent: function (e) {
                    var t = this.bookingTypeCountInPackage(e),
                        n = "";
                    for (var i in (t.regular && (n += t.regular + "/" + e.length + " " + this.$root.labels.bookings_regular_tooltip + "<br/>"), t.package)) {
                        var o = this.getPackageById(parseInt(i));
                        n += t.package[i].count + "/" + e.length + " " + this.$root.labels.bookings_package_tooltip + " <strong>" + (o ? o.name : "Package") + "</strong><br/>";
                    }
                    return n;
                },
                bookingTypeCountInPackage: function (e) {
                    for (var t = { regular: 0, package: {} }, n = 0; n < e.length; n++)
                        if (null !== e[n].packageCustomerService) {
                            var i = e[n].packageCustomerService.packageCustomer.packageId,
                                o = e[n].packageCustomerService.packageCustomer.payment;
                            i in t.package ? (t.package[i].count++, (t.package[i].payment += o ? o.ampunt : 0)) : (t.package[i] = { count: 1, price: o ? o.amount : 0 });
                        } else t.regular++;
                    return t;
                },
                getAppointmentPaymentMethods: function (e) {
                    var t = [];
                    return (
                        e.forEach(function (e) {
                            var n = e.payments.length ? e.payments[0].gateway : null;
                            null !== n && -1 === t.indexOf(n) && t.push(n);
                        }),
                        t
                    );
                },
                editPayment: function (e) {
                    (this.selectedPaymentModalData = this.getPaymentData(e.payment.id, e.package ? null : this.savedAppointment, null, e.package)),
                        (this.selectedPaymentModalData.customer = this.getCustomerById(e.payment.customerId)),
                        e.package && (this.selectedPaymentModalData.bookings[0] = { price: e.booking.packageCustomerService.packageCustomer.price, payments: [e.payment], extras: [] }),
                        (this.dialogPayment = !0);
                },
                updatePaymentCallback: function (e) {
                    this.appointment.bookings.forEach(function (t) {
                        t.payments.forEach(function (n, i) {
                            n.id === e && t.payments.splice(i, 1);
                        });
                    }),
                        (this.dialogPayment = !1);
                },
            },
            watch: {
                dialogAppointment: function () {
                    !1 === this.dialogAppointment && !1 === this.duplicateEvent && (this.appointment = null);
                },
            },
        };
    },
    887: function (e, t, n) {
        var i = n(685)(n(888), n(892), !1, null, null, null);
        e.exports = i.exports;
    },
    888: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(699),
            o = n(789),
            r = n(694),
            s = n(337),
            a = n(713),
            l = n.n(a),
            c = n(889),
            u = n.n(c),
            d = n(823),
            p = n.n(d),
            h = n(690),
            f = n(686),
            m = n(687),
            g = n(0),
            v = n.n(g),
            y = n(691),
            b = n(689),
            w = n(746),
            _ = n.n(w),
            D = n(705),
            C = n(749),
            S = n.n(C),
            x = n(695),
            E = n(743);
        t.default = {
            mixins: [E.a, h.a, m.a, s.a, y.a, b.a, r.a, o.a, D.a, f.a, x.a, i.a],
            props: {
                selectedTimeZone: "",
                appointment: null,
                recurringAppointments: null,
                savedAppointment: null,
                bookings: null,
                options: null,
                customerCreatedCount: 0,
                showHeader: { required: !1, default: !0, type: Boolean },
                haveDuplicate: { required: !1, default: !0, type: Boolean },
                hideAttachmentCustomField: { required: !1, default: !1, type: Boolean },
                isCabinet: { type: Boolean, default: !1, required: !1 },
            },
            data: function () {
                var e = this,
                    t = function (t, n, i) {
                        n || (e.newAppointmentTabs = "schedule"), i();
                    };
                return {
                    coupon: null,
                    showCoupon: !1,
                    clonedBookings: null,
                    cachedClonedBookings: [],
                    serviceUpdated: !1,
                    calendarUpdated: !1,
                    recurringDatesChanged: !1,
                    selectedRecurringDates: [],
                    activeRecurring: !1,
                    initialRecurringData: null,
                    recurringData: {
                        dates: [],
                        startDate: null,
                        startTime: null,
                        defaultEmployeeId: null,
                        defaultLocationId: null,
                        pageRecurringDates: [],
                        pagination: { show: this.$root.settings.general.itemsPerPage, page: 1, count: 0 },
                        recurringString: "",
                        datesCallback: null,
                        setupCallback: null,
                    },
                    isProviderService: !0,
                    availableDates: [],
                    categorySpinnerActive: !1,
                    dialogLoading: !0,
                    disabledWeekdays: null,
                    employeeSpinnerActive: !1,
                    filter: null,
                    locationSpinnerActive: !1,
                    mounted: !1,
                    newAppointmentTabs: "schedule",
                    serviceSpinnerActive: !1,
                    statusMessage: "",
                    loadingTimeSlots: !1,
                    payment: { amount: 0, gateway: "onSite" },
                    rulesInit: {
                        bookings: [
                            { required: !0, message: this.$root.labels.select_customer_warning, trigger: "submit", type: "array" },
                            {
                                validator: function (t, n, i) {
                                    e.appointment.serviceId && e.appointment.providerId && e.isProviderService && e.getApprovedPersonsCount() > e.appointment.providerServiceMaxCapacity
                                        ? ((e.newAppointmentTabs = "schedule"), i(new Error(e.$root.labels.select_max_customer_count_warning + " " + e.appointment.providerServiceMaxCapacity)))
                                        : i();
                                },
                                trigger: "submit",
                            },
                        ],
                        serviceId: [{ required: !0, message: this.$root.labels.select_service_warning, trigger: "submit", type: "number" }],
                        providerId: [{ required: !0, message: this.$root.labels.select_employee_warning, trigger: "submit", type: "number" }],
                        selectedDate: [
                            { validator: t, trigger: "submit" },
                            { required: !0, message: this.$root.labels.select_date_warning, trigger: "submit", type: "date" },
                        ],
                        "selectedPeriod.time": [
                            { validator: t, trigger: "submit" },
                            { required: !0, message: this.$root.labels.select_time_warning, trigger: "submit" },
                        ],
                    },
                    rules: {},
                    statuses: [
                        { id: 1, value: "approved", label: this.$root.labels.approved },
                        { id: 0, value: "pending", label: this.$root.labels.pending },
                        { id: 2, value: "canceled", label: this.$root.labels.canceled },
                        { id: 3, value: "rejected", label: this.$root.labels.rejected },
                    ],
                    renderObject: {
                        recurringSetupForm: {
                            globalSettings: {
                                formTextColor: "#ffffff",
                                formGradientColor1: "#d52878",
                                formGradientColor2: "#0454A2",
                                formGradientAngle: 135,
                                formInputColor: "rgba(0, 0, 0, 0)",
                                formInputTextColor: "#ffffff",
                                formDropdownColor: "#ffffff",
                                formDropdownTextColor: "#354052",
                            },
                            itemsStatic: {
                                recurringSetupHeadingFormField: { labels: { recurring_active: { value: "", translations: { x: "" } } }, visibility: !0 },
                                recurringSettingsFormField: {
                                    labels: {
                                        recurring_repeat: { value: "", translations: { x: "" } },
                                        recurring_every: { value: "", translations: { x: "" } },
                                        recurring_on: { value: "", translations: { x: "" } },
                                        recurring_until: { value: "", translations: { x: "" } },
                                        recurring_times: { value: "", translations: { x: "" } },
                                    },
                                },
                            },
                        },
                        recurringDatesForm: {
                            globalSettings: { formBackgroundColor: "#ffffff", formTextColor: "#354052", formInputColor: "#ffffff", formInputTextColor: "#354052", formDropdownColor: "#ffffff", formDropdownTextColor: "#354052" },
                            itemsStatic: {
                                recurringDatesHeadingFormField: { labels: { recurring_appointments: { value: "", translations: { x: "" } }, recurring_edit: { value: "", translations: { x: "" } } }, visibility: !0 },
                                recurringInfoFormField: { labels: { date: { value: "", translations: { x: "" } }, time: { value: "", translations: { x: "" } } } },
                            },
                        },
                    },
                };
            },
            mounted: function () {
                this.appointment && 0 === this.appointment.id && this.instantiateDialog(), (this.rules = this.rulesInit);
            },
            methods: {
                filterServices: function () {
                    var e = this;
                    this.options.entities.services.forEach(function (e) {
                        e.disabled = !1;
                    });
                    var t = this.options.entities.coupons
                        ? this.options.entities.coupons.find(function (t) {
                              return t.id === e.coupon;
                          })
                        : null;
                    t &&
                        this.options.entities.services.forEach(function (e) {
                            t.serviceList
                                .map(function (e) {
                                    return e.id;
                                })
                                .includes(e.id) || (e.disabled = !0);
                        });
                },
                searchExistingCustomers: function (e) {
                    e ? this.searchCustomers(e, this.setFilteredBookings) : this.setFilteredBookings(!1);
                },
                setFilteredBookings: function (e) {
                    var t = this,
                        n = [];
                    this.appointment.bookings.forEach(function (e) {
                        n.push(e.customerId);
                    });
                    var i = this.options.entities.customers;
                    void 0 === e && (i = this.searchedCustomers);
                    var o = this.clonedBookings
                        .map(function (e) {
                            return e.customer;
                        })
                        .map(function (e) {
                            return e.id;
                        });
                    i.forEach(function (e) {
                        -1 === n.indexOf(e.id) &&
                            -1 === o.indexOf(e.id) &&
                            t.clonedBookings.push({
                                id: 0,
                                customer: e,
                                status: t.$root.settings.general.defaultAppointmentStatus,
                                persons: 1,
                                total: 0,
                                extras: [],
                                payments: [],
                                price: 0,
                                coupon: null,
                                added: !1,
                                visible: !0,
                                info: JSON.stringify({ firstName: e.firstName, lastName: e.lastName, email: e.email, phone: e.phone }),
                                aggregatedPrice: null,
                                packageCustomerService: null,
                                customFields: {},
                            });
                    });
                    for (
                        var r = i.map(function (e) {
                                return e.id;
                            }),
                            s = this.clonedBookings.length - 1;
                        s >= 0;
                        s--
                    )
                        -1 === r.indexOf(this.clonedBookings[s].customer.id) && (this.clonedBookings[s].visible = !1);
                },
                selectedTime: function () {
                    var e = this,
                        t = this,
                        n = this.getStringFromDate(this.appointment.selectedDate);
                    n in this.appointment.calendarTimeSlots &&
                        this.appointment.selectedPeriod.time in this.appointment.calendarTimeSlots[n] &&
                        this.appointment.calendarTimeSlots[n][this.appointment.selectedPeriod.time].forEach(function (e) {
                            e[0] === t.appointment.providerId && (t.appointment.locationId = e[1]);
                        }),
                        this.selectedRecurringDates.length
                            ? this.$nextTick(function () {
                                  e.refreshRecurringData();
                              })
                            : this.setRecurringData(),
                        this.clearValidation();
                },
                updateByCustomer: function () {
                    var e = this;
                    this.dialogLoading = !0;
                    var t = this.getStringFromDate(this.appointment.selectedDate) + " " + this.appointment.selectedPeriod.time;
                    this.$http
                        .post(this.$root.getAjaxUrl + "/bookings/reassign/" + this.appointment.bookings[0].id, { bookingStart: t })
                        .then(function (t) {
                            e.$emit("saveCallback", t),
                                setTimeout(function () {
                                    (e.dialogLoading = !1), e.$emit("closeDialog");
                                }, 300),
                                e.notify(e.$root.labels.success, e.$root.labels.appointment_rescheduled, "success");
                        })
                        .catch(function (t) {
                            if (t.response) {
                                e.dialogLoading = !1;
                                var n = e;
                                setTimeout(function () {
                                    "timeSlotUnavailable" in t.response.data.data && !0 === t.response.data.data.timeSlotUnavailable && n.notify(n.$root.labels.error, n.$root.labels.time_slot_unavailable, "error"),
                                        "rescheduleBookingUnavailable" in t.response.data.data &&
                                            !0 === t.response.data.data.rescheduleBookingUnavailable &&
                                            n.notify(n.$root.labels.error, n.$root.labels.booking_reschedule_exception, "error");
                                }, 200);
                            }
                        });
                },
                editPayment: function (e) {
                    this.$emit("editPayment", e);
                },
                instantiateDialog: function () {
                    null !== this.appointment &&
                        ((this.clonedBookings = JSON.parse(JSON.stringify(this.bookings))),
                        this.clonedBookings.forEach(function (e) {
                            e.visible = !0;
                        }),
                        (this.cachedClonedBookings = JSON.parse(JSON.stringify(this.clonedBookings))),
                        "provider" === this.$root.settings.role && (this.appointment.providerId = this.options.entities.employees[0].id),
                        0 !== this.appointment.id
                            ? ((this.activeRecurring = this.recurringAppointments.length > 0),
                              (this.initialRecurringData = this.getDefaultRecurringSettings(this.appointment.selectedDate, this.getServiceById(this.appointment.serviceId).recurringCycle, this.appointment.calendarTimeSlots)),
                              this.setCategory(),
                              this.setLocation(),
                              this.handleCustomerChange(),
                              (this.coupon = this.appointment.bookings[0].coupon ? this.appointment.bookings[0].coupon.id : null),
                              (this.showCoupon = !!this.coupon),
                              this.getTimeSlots(
                                  function (e) {
                                      var t = this,
                                          n = t.appointment.bookingStart.split(" "),
                                          i = n[0],
                                          o = n[1].slice(0, -3);
                                      if (i in e) {
                                          if (!(o in e[i])) {
                                              var r = Object.keys(e[i]);
                                              r.push(o);
                                              var s = {};
                                              r.sort().forEach(function (n) {
                                                  s[n] = n === o ? [t.appointment.providerId] : e[i][n];
                                              }),
                                                  (e[i] = s);
                                          }
                                      } else (e[i] = {}), (e[i][o] = [[this.appointment.providerId, this.appointment.locationId]]);
                                      (this.appointment.selectedDate = v()(i).toDate()), (this.appointment.selectedPeriod = { time: o, employee: t.appointment.providerId }), this.updateCalendar(e);
                                  }.bind(this)
                              ))
                            : "" !== this.appointment.serviceId
                            ? (this.setCategory(), this.setLocation(), this.getTimeSlots(this.updateCalendar))
                            : 0 === this.appointment.id && ((this.dialogLoading = !1), (this.showCoupon = !0)),
                        (this.mounted = !0));
                },
                setCategory: function () {
                    var e = this;
                    this.appointment.categoryId = this.options.entities.services.filter(function (t) {
                        return t.id === e.appointment.serviceId;
                    })[0].categoryId;
                },
                setLocation: function () {
                    var e = this;
                    this.appointment.locationId = this.appointment.locationId
                        ? this.appointment.locationId
                        : this.options.entities.employees.filter(function (t) {
                              return e.appointment.providerId === t.id;
                          })[0].locationId;
                },
                closeDialog: function () {
                    this.$emit("closeDialog");
                },
                getParsedEntity: function () {
                    var e = this,
                        t = [];
                    this.appointment.bookings.forEach(function (n) {
                        var i = [];
                        for (var o in n.customFields) "datepicker" === n.customFields[o].type && n.customFields[o].value && (n.customFields[o].value = e.getStringFromDate(n.customFields[o].value));
                        n.extras.forEach(function (e) {
                            e.selected && i.push({ id: e.id, customerBookingId: n.id, extraId: e.extraId, quantity: e.quantity, price: e.price });
                        });
                        var r = { id: n.id, customerId: n.customer.id, customer: n.customer, status: n.status, persons: n.persons, extras: i, customFields: JSON.stringify(n.customFields), payments: n.payments };
                        (r.coupon =
                            ("admin" !== e.$root.settings.role && "manager" !== e.$root.settings.role) || !e.options.entities.coupons
                                ? n.coupon
                                : e.options.entities.coupons.find(function (t) {
                                      return t.id === e.coupon;
                                  })),
                            t.push(r);
                    }),
                        this.activeRecurring &&
                            "dates" in this.recurringData &&
                            this.recurringData.dates.length &&
                            this.recurringData.dates.forEach(function (t, n) {
                                n in e.selectedRecurringDates && (e.selectedRecurringDates[n].bookingStart = v()(t.date).format("YYYY-MM-DD") + " " + t.slot);
                            });
                    var n = this.getStringFromDate(this.appointment.selectedDate) + " " + this.appointment.selectedPeriod.time;
                    "UTC" === this.selectedTimeZone && (n = v()(n, "YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD HH:mm"));
                    var i = [];
                    if (this.savedAppointment && "bookings" in this.savedAppointment) {
                        var o = t.map(function (e) {
                            return e.id;
                        });
                        this.savedAppointment.bookings.forEach(function (e) {
                            -1 === o.indexOf(e.id) && i.push(e);
                        });
                    }
                    return {
                        serviceId: this.appointment.serviceId,
                        providerId: this.appointment.providerId,
                        locationId: this.appointment.locationId,
                        bookings: t,
                        removedBookings: i,
                        bookingStart: n,
                        utc: "UTC" === this.selectedTimeZone,
                        timeZone: "UTC" === this.selectedTimeZone ? null : this.selectedTimeZone,
                        notifyParticipants: this.appointment.notifyParticipants ? 1 : 0,
                        internalNotes: this.appointment.internalNotes,
                        id: this.appointment.id,
                        payment: this.payment,
                        recurring: this.activeRecurring ? this.selectedRecurringDates : [],
                    };
                },
                showDialogNewCustomer: function () {
                    this.$emit("showDialogNewCustomer");
                },
                handleCustomerChange: function () {
                    var e = this,
                        t = this.appointment.duration;
                    this.setServiceExtrasForCustomers(!1),
                        this.setPrice(),
                        this.setServiceCapacityForProvider(),
                        this.setBookingCustomFields(),
                        this.addCustomFieldsValidationRules(),
                        t !== this.appointment.duration && this.mounted && this.getTimeSlots(this.updateCalendar),
                        (this.showCoupon = !0);
                    var n = this.cachedClonedBookings
                            .map(function (e) {
                                return e.customer;
                            })
                            .map(function (e) {
                                return e.id;
                            }),
                        i = this.clonedBookings
                            .map(function (e) {
                                return e.customer;
                            })
                            .map(function (e) {
                                return e.id;
                            }),
                        o = [];
                    n.forEach(function (e) {
                        -1 === i.indexOf(e) && o.push(e);
                    });
                    for (var r = this.clonedBookings.length - 1; r >= 0; r--) -1 !== o.indexOf(this.clonedBookings[r].customer.id) && this.clonedBookings.splice(r, 1);
                    setTimeout(function () {
                        e.clonedBookings.forEach(function (e) {
                            e.visible = !0;
                        }),
                            (e.cachedClonedBookings = JSON.parse(JSON.stringify(e.clonedBookings)));
                    }, 200),
                        this.$emit("sortBookings", this.appointment.bookings);
                },
                handleCustomerRemove: function (e) {
                    for (var t = this.appointment.duration, n = this.clonedBookings.length - 1; n >= 0; n--) this.clonedBookings[n].customer.id === this.appointment.bookings[e].customer.id && this.clonedBookings.splice(n, 1);
                    this.clearValidation(),
                        this.appointment.bookings.splice(e, 1),
                        this.setPrice(),
                        this.setSelectedExtrasCount(),
                        this.setDuration(),
                        t !== this.appointment.duration && this.mounted && this.getTimeSlots(this.updateCalendar);
                },
                setServiceExtrasForCustomers: function (e) {
                    var t = this,
                        n = null;
                    t.appointment.serviceId &&
                        (t.options.entities.services.forEach(function (e) {
                            e.id === t.appointment.serviceId && ((n = e.extras), (t.appointment.extrasCount = n.length));
                        }),
                        t.appointment.bookings.forEach(function (t) {
                            (e || (!t.id && !t.added)) &&
                                ((t.extras = JSON.parse(JSON.stringify(n))),
                                t.extras.forEach(function (e) {
                                    (e.selected = !1), (e.id = 0), (e.customerBookingId = 0);
                                })),
                                (t.added = !0);
                        }),
                        this.setSelectedExtrasCount(),
                        this.setDuration());
                },
                handleSelected: function () {
                    for (var e = this, t = document.querySelectorAll(".am-appointment-status-option.selected"), n = 0; n < t.length; n++)
                        t[n].addEventListener("click", function (t) {
                            e.handleGroupStatusChange();
                        });
                },
                handleGroupStatusChange: function () {
                    this.clearValidation();
                    var e = this;
                    this.appointment.bookings.forEach(function (t) {
                        t.status = e.appointment.status;
                    });
                },
                handleEmployeeChange: function () {
                    var e = this;
                    (this.serviceSpinnerActive = !0),
                        (this.locationSpinnerActive = !0),
                        (this.categorySpinnerActive = !0),
                        this.setServiceExtrasForCustomers(!1),
                        this.setServiceCapacityForProvider(),
                        this.setPrice(),
                        this.mounted && this.getTimeSlots(this.updateCalendar),
                        setTimeout(function () {
                            (e.serviceSpinnerActive = !1), (e.locationSpinnerActive = !1), (e.categorySpinnerActive = !1);
                        }, 300);
                },
                handleLocationChange: function () {
                    var e = this;
                    this.clearValidation(),
                        (this.serviceSpinnerActive = !0),
                        (this.employeeSpinnerActive = !0),
                        (this.categorySpinnerActive = !0),
                        this.mounted && this.getTimeSlots(this.updateCalendar),
                        setTimeout(function () {
                            (e.serviceSpinnerActive = !1), (e.employeeSpinnerActive = !1), (e.categorySpinnerActive = !1);
                        }, 300);
                },
                handleServiceChange: function () {
                    var e = this;
                    (this.locationSpinnerActive = !0),
                        (this.employeeSpinnerActive = !0),
                        (this.categorySpinnerActive = !0),
                        this.setServiceCapacityForProvider(),
                        this.setPrice(),
                        this.setServiceExtrasForCustomers(!0),
                        this.addCustomFieldsValidationRules(),
                        (this.serviceUpdated = !0),
                        this.mounted && this.getTimeSlots(this.updateCalendar),
                        setTimeout(function () {
                            (e.locationSpinnerActive = !1), (e.employeeSpinnerActive = !1), (e.categorySpinnerActive = !1);
                        }, 300);
                },
                handleCategoryChange: function () {
                    var e = this;
                    this.clearValidation(),
                        (this.locationSpinnerActive = !0),
                        (this.employeeSpinnerActive = !0),
                        (this.serviceSpinnerActive = !0),
                        setTimeout(function () {
                            (e.locationSpinnerActive = !1), (e.employeeSpinnerActive = !1), (e.serviceSpinnerActive = !1);
                        }, 300);
                },
                getProviderService: function () {
                    var e = this,
                        t = null;
                    return (
                        this.appointment.providerId &&
                            this.appointment.serviceId &&
                            this.options.entities.employees.forEach(function (n) {
                                n.id === e.appointment.providerId &&
                                    n.serviceList.forEach(function (n) {
                                        n.id === e.appointment.serviceId && (t = n);
                                    });
                            }),
                        this.appointment.id && this.appointment.serviceId && !t ? ((this.isProviderService = !1), this.getServiceById(this.appointment.serviceId)) : t
                    );
                },
                setServiceCapacityForProvider: function () {
                    var e = this.getProviderService();
                    (this.appointment.providerServiceMaxCapacity = e ? e.maxCapacity : 0), (this.appointment.providerServiceMinCapacity = e ? e.minCapacity : 0), this.setStatusMessage();
                },
                setStatusMessage: function () {
                    this.statusMessage = this.getApprovedPersonsCount() < this.appointment.providerServiceMinCapacity ? "(minimum " + this.appointment.providerServiceMinCapacity + ")" : "";
                },
                handleBookingChange: function () {
                    this.setPrice(), this.setStatusMessage();
                },
                getApprovedPersonsCount: function () {
                    var e = 0;
                    return (
                        this.appointment.bookings.forEach(function (t) {
                            "approved" === t.status && (e += t.persons);
                        }),
                        e
                    );
                },
                setPrice: function () {
                    var e = this;
                    this.clearValidation();
                    var t = this,
                        n = !(!this.appointment || !this.savedAppointment) && this.appointment.serviceId !== parseInt(this.savedAppointment.serviceId);
                    t.$nextTick(function () {
                        if (t.appointment.serviceId && t.appointment.providerId && t.appointment.bookings) {
                            var i = t.getProviderService(),
                                o = e.getServiceById(t.appointment.serviceId),
                                r = 0,
                                s = 0,
                                a = 0;
                            t.appointment.bookings.forEach(function (e) {
                                if (["approved", "pending"].includes(e.status)) {
                                    var t = 0,
                                        l = e.id ? e.aggregatedPrice : o.aggregatedPrice;
                                    e.extras.forEach(function (n) {
                                        if (n.selected) {
                                            var i = o.extras.filter(function (e) {
                                                    return e.id === n.extraId;
                                                }),
                                                r = e.id ? n.price : i.length ? i[0].price : 0,
                                                s = null === n.aggregatedPrice ? (e.id ? e.aggregatedPrice : o.aggregatedPrice) : n.aggregatedPrice;
                                            t += (s ? e.persons : 1) * (n.quantity ? n.quantity : 0) * r;
                                        }
                                    });
                                    var c = e.id ? (n ? i.price : e.price) : i.price;
                                    (e.extrasTotalPrice = t),
                                        (e.serviceTotalPrice = c * (l ? e.persons : 1)),
                                        (e.discountTotalPrice = ((e.serviceTotalPrice + e.extrasTotalPrice) / 100) * (e.coupon ? e.coupon.discount : 0) + (e.coupon ? e.coupon.deduction : 0)),
                                        (r += e.serviceTotalPrice),
                                        (s += e.extrasTotalPrice),
                                        (a += e.discountTotalPrice);
                                }
                            }),
                                (t.appointment.serviceTotalPrice = r),
                                (t.appointment.extrasTotalPrice = s),
                                (t.appointment.discountTotalPrice = a);
                        }
                    });
                },
                handleExtrasSelectionChange: function (e) {
                    void 0 === e.quantity && (e.quantity = 1), this.setPrice(), this.setSelectedExtrasCount(), this.setDuration(), e.duration > 0 && this.mounted && this.getTimeSlots(this.updateCalendar);
                },
                updateCalendar: function (e) {
                    var t = this;
                    this.appointment.calendarTimeSlots = e;
                    var n = [];
                    Object.keys(this.appointment.calendarTimeSlots).forEach(function (e) {
                        n.push(t.getDate(e));
                    }),
                        (this.availableDates = n),
                        (this.disabledWeekdays = { weekdays: [] }),
                        (this.disabledWeekdays = 0 === this.availableDates.length ? { weekdays: [1, 2, 3, 4, 5, 6, 7] } : null),
                        this.dateChange();
                },
                getTimeSlots: function (e) {
                    var t = this,
                        n = this.appointment,
                        i = [];
                    n.serviceId &&
                        ((this.loadingTimeSlots = !0),
                        this.appointment.bookings.forEach(function (e) {
                            e.extras.forEach(function (e) {
                                e.selected && i.push({ id: e.extraId, quantity: e.quantity });
                            });
                        }),
                        this.$http
                            .get(this.$root.getAjaxUrl + "/slots", {
                                params: {
                                    serviceId: n.serviceId,
                                    locationId: n.locationId,
                                    providerIds: n.providerId ? [n.providerId] : [],
                                    extras: JSON.stringify(i),
                                    excludeAppointmentId: n.id,
                                    group: "customer" === this.$root.settings.role ? 1 : 0,
                                    timeZone: this.selectedTimeZone,
                                    page: "appointments",
                                },
                            })
                            .then(function (n) {
                                e("UTC" === t.selectedTimeZone ? t.getConvertedTimeSlots(n.data.data.slots) : n.data.data.slots), (t.dialogLoading = !1), (t.loadingTimeSlots = !1);
                            })
                            .catch(function (e) {
                                console.log(e.message), (t.loadingTimeSlots = !1);
                            }));
                },
                dateChange: function () {
                    var e = this;
                    this.clearValidation();
                    var t = this,
                        n = [],
                        i = null,
                        o = !1;
                    this.appointment.selectedDate && this.appointment.calendarTimeSlots && (i = this.appointment.calendarTimeSlots[this.getStringFromDate(this.appointment.selectedDate)])
                        ? (Object.keys(i).forEach(function (e) {
                              t.appointment.selectedPeriod && t.appointment.selectedPeriod.hasOwnProperty("time") && t.appointment.selectedPeriod.time === e && (o = !0), n.push({ time: e, employees: i[e] });
                          }),
                          o || (this.appointment.selectedPeriod = ""))
                        : ((this.appointment.selectedDate = null), (this.appointment.selectedPeriod = "")),
                        (this.appointment.dateTimeSlots = n),
                        this.$nextTick(function () {
                            e.refreshRecurringData();
                        });
                },
                openRecurringAppointment: function (e) {
                    this.$emit("openRecurringAppointment", e);
                },
                handleTabClick: function (e) {
                    "recurring" === e.name && ((this.calendarUpdated = !1), (this.recurringDatesChanged = !1));
                },
                haveSaveConfirmation: function () {
                    var e = this.activeRecurring && this.recurringDatesChanged && this.calendarUpdated;
                    return e && ((this.recurringDatesChanged = !1), this.showRecurringTab()), e;
                },
                getSelectedDistinctExtras: function () {
                    var e = [],
                        t = [];
                    return (
                        this.appointment.bookings.forEach(function (n) {
                            n.extras
                                .filter(function (e) {
                                    return e.selected;
                                })
                                .forEach(function (n) {
                                    -1 === t.indexOf(n.id) && (e.push(n), t.push(n.id));
                                });
                        }),
                        e
                    );
                },
                refreshRecurringData: function () {
                    this.activeRecurring &&
                        this.appointment.selectedDate &&
                        this.appointment.selectedPeriod &&
                        (this.serviceUpdated && ((this.serviceUpdated = !1), this.setRecurringData()),
                        (this.calendarUpdated = !0),
                        (this.activeRecurring = !1),
                        (this.recurringData.startDate = v()(this.appointment.selectedDate).format("YYYY-MM-DD HH:mm:ss")),
                        (this.recurringData.startTime = this.appointment.selectedPeriod.time),
                        (this.initialRecurringData.calendarDates = this.getAvailableRecurringDates(this.appointment.calendarTimeSlots)),
                        (this.activeRecurring = !0),
                        null !== this.recurringData.setupCallback && this.recurringData.setupCallback("count"));
                },
                recurringDatesDefined: function (e) {
                    var t = [];
                    if (
                        (e.forEach(function (e) {
                            t.push({ bookingStart: v()(e.date).format("YYYY-MM-DD") + " " + e.slot, providerId: e.providerId, locationId: e.locationId });
                        }),
                        (this.recurringDatesChanged = !1),
                        t.length !== this.selectedRecurringDates.length)
                    )
                        this.recurringDatesChanged = !0;
                    else for (var n = 0; n < t.length; n++) t[n].bookingStart !== this.selectedRecurringDates[n].bookingStart && (this.recurringDatesChanged = !0);
                    this.selectedRecurringDates = t;
                },
                setRecurringData: function () {
                    if (this.appointment.selectedDate && this.appointment.selectedPeriod) {
                        (this.recurringData.dates = []), (this.recurringData.startDate = v()(this.appointment.selectedDate).format("YYYY-MM-DD HH:mm:ss")), (this.recurringData.startTime = this.appointment.selectedPeriod.time);
                        var e = this.getServiceById(this.appointment.serviceId);
                        this.initialRecurringData = this.getDefaultRecurringSettings(this.appointment.selectedDate, e.recurringCycle, this.appointment.calendarTimeSlots);
                    }
                },
                setSelectedExtrasCount: function () {
                    var e = 0;
                    this.appointment.bookings.forEach(function (t) {
                        t.extras.forEach(function (t) {
                            t.selected && e++;
                        });
                    }),
                        (this.appointment.extrasSelectedCount = e);
                },
                setDuration: function () {
                    if (this.appointment.serviceId) {
                        var e = this.getServiceById(this.appointment.serviceId).duration;
                        this.appointment.bookings.forEach(function (t) {
                            var n = 0;
                            t.extras.forEach(function (e) {
                                e.selected && e.duration > n && (n = e.duration);
                            }),
                                (e += n);
                        }),
                            (this.appointment.duration = e);
                    }
                },
                clearValidation: function () {
                    void 0 !== this.$refs.appointment && this.$refs.appointment.clearValidate();
                },
                errorCallback: function (e) {
                    var t = this;
                    setTimeout(function () {
                        "timeSlotUnavailable" in e && !0 === e.timeSlotUnavailable && (t.notify(t.$root.labels.error, t.$root.labels.time_slot_unavailable, "error"), t.getTimeSlots(t.updateCalendar));
                    }, 200);
                },
                addCustomFieldsValidationRules: function () {
                    if (this.appointment.serviceId && this.appointment.bookings.length > 0) {
                        this.rules = this.rulesInit;
                        for (var e = 0; e < this.appointment.bookings.length; e++)
                            for (var t = 0; t < this.options.entities.customFields.length; t++)
                                this.isCustomFieldVisible(this.options.entities.customFields[t], "appointment", this.appointment.serviceId) &&
                                    (void 0 === this.rules.bookings[e] && this.$set(this.rules.bookings, e, { type: "array" }),
                                    void 0 === this.rules.bookings[e].customFields && this.$set(this.rules.bookings[e], "customFields", {}),
                                    (this.rules.bookings[e].customFields[this.options.entities.customFields[t].id] = { value: [{ required: !0, message: this.$root.labels.required_field, trigger: "submit" }] }));
                    }
                },
                showCustomFieldsTab: function () {
                    var e = Array.prototype.concat.apply(
                        [],
                        this.options.entities.customFields.map(function (e) {
                            return e.services.map(function (e) {
                                return e.id;
                            });
                        })
                    );
                    return this.options.entities.customFields.length > 0 && this.appointment.bookings.length > 0 && this.appointment.serviceId && e.includes(this.appointment.serviceId);
                },
                showRecurringTab: function () {
                    this.activeRecurring && (this.newAppointmentTabs = "recurring");
                },
                validationBookingsFailCallback: function () {
                    this.newAppointmentTabs = "customFields";
                },
            },
            computed: {
                selectedCustomersMessage: function () {
                    return "" !== this.statusMessage ? this.$root.labels.selected_customers + " " + this.statusMessage + ":" : this.$root.labels.selected_customers + ":";
                },
                customersMaxLimit: function () {
                    return this.appointment.serviceId && this.appointment.providerId && this.getProviderService()
                        ? this.getProviderService().maxCapacity
                        : this.appointment.serviceId && !this.appointment.providerId
                        ? this.getServiceById(this.appointment.serviceId).maxCapacity
                        : 0;
                },
                showCustomer: function () {
                    return "customer" !== this.$root.settings.role;
                },
            },
            watch: {
                customerCreatedCount: function () {
                    var e = this,
                        t = this.clonedBookings.map(function (e) {
                            return e.customer.id;
                        });
                    this.bookings.forEach(function (n) {
                        -1 === t.indexOf(n.customer.id) && ((n.visible = !0), e.clonedBookings.push(n));
                    }),
                        this.clonedBookings.sort(function (e, t) {
                            return (e.customer.firstName + " " + e.customer.lastName).localeCompare(t.customer.firstName + " " + t.customer.lastName);
                        }),
                        this.addCustomFieldsValidationRules();
                },
                appointment: function () {
                    this.instantiateDialog(),
                        "provider" === this.$root.settings.role && this.isCabinet && null !== this.appointment && null !== this.appointment.providerId && (this.appointment.providerId = this.options.entities.employees[0].id);
                },
            },
            components: { DialogAppointmentPayment: u.a, DialogCustomFields: p.a, RecurringSetup: S.a, RecurringDates: _.a, DialogActions: l.a },
        };
    },
    889: function (e, t, n) {
        var i = n(685)(n(890), n(891), !1, null, null, null);
        e.exports = i.exports;
    },
    890: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(337),
            o = n(689),
            r = n(757),
            s = n(690);
        t.default = {
            mixins: [i.a, o.a, r.a, s.a],
            props: { appointment: { default: function () {}, type: Object }, options: null },
            data: function () {
                return {
                    paymentStatuses: [
                        { value: "paid", label: this.$root.labels.paid },
                        { value: "pending", label: this.$root.labels.pending },
                        { value: "partiallyPaid", label: this.$root.labels.partially_paid },
                    ],
                };
            },
            methods: {
                showDialogEditPayment: function (e, t) {
                    e.customerId = t.customerId;
                    var n = t.packageCustomerService ? this.getPackageById(t.packageCustomerService.packageCustomer.packageId) : null;
                    this.$emit("editPayment", { payment: e, appointment: this.appointment, booking: t, package: t.packageCustomerService ? { name: n ? n.name : "Package" } : null });
                },
                getPaymentStatus: function (e) {
                    var t = "";
                    return (
                        this.paymentStatuses.forEach(function (n) {
                            n.value === e && (t = n.label);
                        }),
                        t
                    );
                },
                getBookingSubtotal: function (e) {
                    var t = e.serviceTotalPrice + e.extrasTotalPrice - e.discountTotalPrice - (e.payments[0] ? e.payments[0].amount : 0);
                    return t >= 0 ? t : 0;
                },
            },
        };
    },
    891: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n("div", { staticClass: "am-dialog-table" }, [
                    e.appointment.bookings.length > 0
                        ? n(
                              "div",
                              e._l(e.appointment.bookings, function (t) {
                                  return n(
                                      "div",
                                      { staticClass: "am-customer-extras" },
                                      e._l(t.payments, function (i) {
                                          return n(
                                              "div",
                                              [
                                                  n(
                                                      "el-row",
                                                      { staticClass: "am-customer-extras-data" },
                                                      [n("el-col", [n("h3", [e._v(e._s(t.customer.firstName) + " " + e._s(t.customer.lastName))]), e._v(" "), n("span", [e._v(e._s(t.customer.email))])])],
                                                      1
                                                  ),
                                                  e._v(" "),
                                                  n(
                                                      "el-row",
                                                      { staticClass: "am-customer-extras-payment", attrs: { gutter: 10 } },
                                                      [
                                                          n("el-col", { attrs: { span: 12 } }, [n("span", { staticClass: "am-strong" }, [e._v(e._s(e.$root.labels.payment))])]),
                                                          e._v(" "),
                                                          n("el-col", { attrs: { span: 12 } }, [
                                                              n(
                                                                  "span",
                                                                  {
                                                                      staticClass: "am-link",
                                                                      on: {
                                                                          click: function (n) {
                                                                              return e.showDialogEditPayment(i, t);
                                                                          },
                                                                      },
                                                                  },
                                                                  [e._v("\n              " + e._s(e.$root.labels.view_payment_details) + "\n            ")]
                                                              ),
                                                          ]),
                                                          e._v(" "),
                                                          n("el-col", { attrs: { span: 12 } }, [n("span", [e._v(e._s(e.$root.labels.date) + ":")])]),
                                                          e._v(" "),
                                                          n("el-col", { attrs: { span: 12 } }, [n("span", { staticClass: "am-semi-strong" }, [e._v(e._s(e.getFrontedFormattedDate(i.dateTime)))])]),
                                                          e._v(" "),
                                                          n("el-col", { attrs: { span: 12 } }, [n("span", [e._v(e._s(e.$root.labels.payment_method) + ":")])]),
                                                          e._v(" "),
                                                          n("el-col", { attrs: { span: 12 } }, [
                                                              n("span", { staticClass: "am-semi-strong" }, [
                                                                  n("img", { staticClass: "svg", attrs: { width: "14px", src: e.$root.getUrl + "public/img/payments/" + i.gateway + ".svg" } }),
                                                                  e._v(" " + e._s(e.getPaymentGatewayNiceName(i)) + "\n                    "),
                                                              ]),
                                                          ]),
                                                          e._v(" "),
                                                          n("el-col", { attrs: { span: 12 } }, [n("span", [e._v(e._s(e.$root.labels.status) + ":")])]),
                                                          e._v(" "),
                                                          n("el-col", { attrs: { span: 12 } }, [
                                                              n("span", { staticClass: "am-semi-strong" }, [
                                                                  n("i", {
                                                                      class: {
                                                                          "el-icon-circle-check": "paid" === i.status || "partiallyPaid" === i.status,
                                                                          "partially-paid": "partiallyPaid" === i.status,
                                                                          "el-icon-refresh": "pending" === i.status,
                                                                      },
                                                                  }),
                                                                  e._v("\n              " + e._s(e.getPaymentStatus(i.status)) + "\n            "),
                                                              ]),
                                                          ]),
                                                          e._v(" "),
                                                          t.packageCustomerService ? n("el-col", { attrs: { span: 12 } }, [n("span", [e._v(e._s(e.$root.labels.package) + ":")])]) : e._e(),
                                                          e._v(" "),
                                                          t.packageCustomerService
                                                              ? n("el-col", { staticClass: "am-payment-package-name", attrs: { span: 12 } }, [
                                                                    n("img", { attrs: { src: e.$root.getUrl + "public/img/am-package.svg" } }),
                                                                    e._v(" "),
                                                                    n("span", { staticClass: "am-semi-strong" }, [
                                                                        e._v("\n                " + e._s((e.pack = e.getPackageById(t.packageCustomerService.packageCustomer.packageId)) ? e.pack.name : "Package") + "\n              "),
                                                                    ]),
                                                                ])
                                                              : e._e(),
                                                      ],
                                                      1
                                                  ),
                                                  e._v(" "),
                                                  t.packageCustomerService
                                                      ? n(
                                                            "el-row",
                                                            { staticClass: "subtotal", attrs: { gutter: 10 } },
                                                            [
                                                                n("div", { staticClass: "am-payment-package-deal" }, [
                                                                    n("img", { attrs: { src: e.$root.getUrl + "public/img/am-package-black.svg" } }),
                                                                    e._v(" "),
                                                                    n("span", [e._v(e._s(e.$root.labels.package_deal))]),
                                                                ]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 14 } }, [e._v("\n            " + e._s(e.$root.labels.package_price) + ":\n          ")]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 10 } }, [
                                                                    e._v("\n            " + e._s(e.getFormattedPrice(t.packageCustomerService.packageCustomer.price)) + "\n          "),
                                                                ]),
                                                            ],
                                                            1
                                                        )
                                                      : n(
                                                            "el-row",
                                                            { staticClass: "subtotal", attrs: { gutter: 10 } },
                                                            [
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 14 } }, [e._v("\n            " + e._s(e.$root.labels.price) + ":\n          ")]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 10 } }, [e._v("\n            " + e._s(e.getFormattedPrice(t.serviceTotalPrice)) + "\n          ")]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 14 } }, [e._v("\n            " + e._s(e.$root.labels.extras) + ":\n          ")]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 10 } }, [e._v("\n            " + e._s(e.getFormattedPrice(t.extrasTotalPrice)) + "\n          ")]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 14 } }, [e._v("\n            " + e._s(e.$root.labels.discount_amount) + ":\n          ")]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 10 } }, [e._v("\n            " + e._s(e.getFormattedPrice(t.discountTotalPrice)) + "\n          ")]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 14 } }, [e._v("\n            " + e._s(e.$root.labels.paid) + ":\n          ")]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 10 } }, [e._v("\n            " + e._s(e.getFormattedPrice(i.amount)) + "\n          ")]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 14 } }, [n("span", { staticClass: "am-strong" }, [e._v(e._s(e.$root.labels.subtotal) + ":")])]),
                                                                e._v(" "),
                                                                n("el-col", { staticClass: "align-right", attrs: { span: 10 } }, [n("span", { staticClass: "am-strong" }, [e._v(e._s(e.getFormattedPrice(e.getBookingSubtotal(t))))])]),
                                                            ],
                                                            1
                                                        ),
                                              ],
                                              1
                                          );
                                      }),
                                      0
                                  );
                              }),
                              0
                          )
                        : n("div", [n("p", { attrs: { align: "center" } }, [e._v(e._s(e.$root.labels.no_selected_customers))])]),
                ]);
            },
            staticRenderFns: [],
        };
    },
    892: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n(
                    "div",
                    { staticClass: "am-dialog-appointment" },
                    [
                        n("div", { directives: [{ name: "show", rawName: "v-show", value: e.dialogLoading, expression: "dialogLoading" }], staticClass: "am-dialog-loader" }, [
                            n("div", { staticClass: "am-dialog-loader-content" }, [n("img", { attrs: { src: e.$root.getUrl + "public/img/spinner.svg" } }), e._v(" "), n("p", [e._v(e._s(e.$root.labels.loader_message))])]),
                        ]),
                        e._v(" "),
                        null === e.appointment || e.dialogLoading
                            ? e._e()
                            : n(
                                  "div",
                                  { staticClass: "am-dialog-scrollable", class: { "am-edit": 0 !== e.appointment.id } },
                                  [
                                      e.showHeader
                                          ? n(
                                                "div",
                                                { staticClass: "am-dialog-header" },
                                                [
                                                    n(
                                                        "el-row",
                                                        [
                                                            n("el-col", { attrs: { span: 18 } }, [0 !== e.appointment.id ? n("h2", [e._v(e._s(e.$root.labels.edit_appointment))]) : n("h2", [e._v(e._s(e.$root.labels.new_appointment))])]),
                                                            e._v(" "),
                                                            n(
                                                                "el-col",
                                                                { staticClass: "align-right", attrs: { span: 6 } },
                                                                [n("el-button", { staticClass: "am-dialog-close", attrs: { size: "small", icon: "el-icon-close" }, on: { click: e.closeDialog } })],
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    ),
                                                ],
                                                1
                                            )
                                          : e._e(),
                                      e._v(" "),
                                      e.mounted && null !== e.appointment
                                          ? n(
                                                "el-form",
                                                { ref: "appointment", attrs: { model: e.appointment, rules: e.rules, "label-position": "top" } },
                                                [
                                                    n(
                                                        "el-tabs",
                                                        {
                                                            on: { "tab-click": e.handleTabClick },
                                                            model: {
                                                                value: e.newAppointmentTabs,
                                                                callback: function (t) {
                                                                    e.newAppointmentTabs = t;
                                                                },
                                                                expression: "newAppointmentTabs",
                                                            },
                                                        },
                                                        [
                                                            n(
                                                                "el-tab-pane",
                                                                { attrs: { label: e.$root.labels.schedule, name: "schedule" } },
                                                                [
                                                                    e.showCustomer
                                                                        ? n(
                                                                              "el-form-item",
                                                                              { staticClass: "am-appointment-customer", attrs: { label: e.$root.labels.customers_singular_plural + ":", prop: "bookings" } },
                                                                              [
                                                                                  n(
                                                                                      "el-select",
                                                                                      {
                                                                                          staticClass: "no-tags",
                                                                                          attrs: {
                                                                                              remote: "",
                                                                                              "remote-method": e.searchExistingCustomers,
                                                                                              "value-key": "customer.id",
                                                                                              multiple: "",
                                                                                              "multiple-limit": e.customersMaxLimit,
                                                                                              placeholder: e.$root.labels.select_customers,
                                                                                              "collapse-tags": "",
                                                                                              filterable: "",
                                                                                              loading: e.loadingCustomers,
                                                                                          },
                                                                                          on: { change: e.handleCustomerChange },
                                                                                          model: {
                                                                                              value: e.appointment.bookings,
                                                                                              callback: function (t) {
                                                                                                  e.$set(e.appointment, "bookings", t);
                                                                                              },
                                                                                              expression: "appointment.bookings",
                                                                                          },
                                                                                      },
                                                                                      [
                                                                                          n(
                                                                                              "div",
                                                                                              { staticClass: "am-drop" },
                                                                                              [
                                                                                                  this.$root.settings.additionalCapabilities.canWriteCustomers
                                                                                                      ? n("div", { staticClass: "am-drop-create-item", on: { click: e.showDialogNewCustomer } }, [
                                                                                                            e._v("\n                  " + e._s(e.$root.labels.create_new) + "\n                "),
                                                                                                        ])
                                                                                                      : e._e(),
                                                                                                  e._v(" "),
                                                                                                  e._l(e.clonedBookings, function (t, i) {
                                                                                                      return t.visible
                                                                                                          ? n(
                                                                                                                "el-option",
                                                                                                                {
                                                                                                                    key: i,
                                                                                                                    staticClass: "am-has-option-meta",
                                                                                                                    attrs: { label: null !== (e.user = e.getCustomerInfo(t)) ? e.user.firstName + " " + e.user.lastName : "", value: t },
                                                                                                                },
                                                                                                                [
                                                                                                                    n("span", { class: { "am-drop-item-name": t.customer.email } }, [
                                                                                                                        e._v(e._s(t.customer.firstName) + " " + e._s(t.customer.lastName)),
                                                                                                                    ]),
                                                                                                                    e._v(" "),
                                                                                                                    t.customer.email ? n("span", { staticClass: "am-drop-item-meta" }, [e._v(e._s(t.customer.email))]) : e._e(),
                                                                                                                ]
                                                                                                            )
                                                                                                          : e._e();
                                                                                                  }),
                                                                                                  e._v(" "),
                                                                                                  e._l(
                                                                                                      [
                                                                                                          {
                                                                                                              customer: {
                                                                                                                  id: 0,
                                                                                                                  firstName: "",
                                                                                                                  lastName: "",
                                                                                                                  email: "",
                                                                                                                  info: JSON.stringify({ firstName: "", lastName: "", email: "", phone: "" }),
                                                                                                              },
                                                                                                          },
                                                                                                      ],
                                                                                                      function (t) {
                                                                                                          return 0 === e.clonedBookings.length
                                                                                                              ? n("el-option", {
                                                                                                                    key: t.customer.id,
                                                                                                                    staticClass: "am-has-option-meta",
                                                                                                                    style: { display: "none" },
                                                                                                                    attrs: { label: null !== (e.user = e.getCustomerInfo(t)) ? e.user.firstName + " " + e.user.lastName : "", value: t },
                                                                                                                })
                                                                                                              : e._e();
                                                                                                      }
                                                                                                  ),
                                                                                              ],
                                                                                              2
                                                                                          ),
                                                                                      ]
                                                                                  ),
                                                                              ],
                                                                              1
                                                                          )
                                                                        : e._e(),
                                                                    e._v(" "),
                                                                    n("transition", { attrs: { name: "fade" } }, [
                                                                        e.appointment.bookings.length > 0 && "customer" !== this.$root.settings.role
                                                                            ? n(
                                                                                  "div",
                                                                                  { staticClass: "am-selected-dropdown-items" },
                                                                                  [
                                                                                      n("el-form-item", { attrs: { label: e.selectedCustomersMessage } }),
                                                                                      e._v(" "),
                                                                                      e._l(e.appointment.bookings, function (t, i) {
                                                                                          return n(
                                                                                              "div",
                                                                                              { key: i, staticClass: "am-selected-dropdown-item" },
                                                                                              [
                                                                                                  n(
                                                                                                      "el-row",
                                                                                                      { attrs: { align: "middle", gutter: 4, justify: "left" } },
                                                                                                      [
                                                                                                          n("el-col", { attrs: { sm: 14 } }, [
                                                                                                              n("h3", [e._v(e._s(null !== (e.user = e.getCustomerInfo(t)) ? e.user.firstName + " " + e.user.lastName : ""))]),
                                                                                                              e._v(" "),
                                                                                                              n("span", [e._v(e._s(t.customer.email))]),
                                                                                                          ]),
                                                                                                          e._v(" "),
                                                                                                          n("el-col", { staticClass: "am-align-right", attrs: { sm: 9 } }, [
                                                                                                              n(
                                                                                                                  "div",
                                                                                                                  { staticClass: "am-appointment-status small" },
                                                                                                                  [
                                                                                                                      n("span", { staticClass: "am-appointment-status-symbol", class: t.status }),
                                                                                                                      e._v(" "),
                                                                                                                      n(
                                                                                                                          "el-select",
                                                                                                                          {
                                                                                                                              on: { change: e.handleBookingChange },
                                                                                                                              model: {
                                                                                                                                  value: t.status,
                                                                                                                                  callback: function (n) {
                                                                                                                                      e.$set(t, "status", n);
                                                                                                                                  },
                                                                                                                                  expression: "booking.status",
                                                                                                                              },
                                                                                                                          },
                                                                                                                          e._l(e.statuses, function (e) {
                                                                                                                              return n("el-option", { key: e.value, attrs: { value: e.value } }, [
                                                                                                                                  n("span", { staticClass: "am-appointment-status-symbol", class: e.value }),
                                                                                                                              ]);
                                                                                                                          }),
                                                                                                                          1
                                                                                                                      ),
                                                                                                                  ],
                                                                                                                  1
                                                                                                              ),
                                                                                                              e._v(" "),
                                                                                                              n(
                                                                                                                  "div",
                                                                                                                  { staticClass: "am-appointment-persons small" },
                                                                                                                  [
                                                                                                                      n("img", {
                                                                                                                          staticClass: "svg",
                                                                                                                          attrs: { slot: "prefix", width: "16px", src: e.$root.getUrl + "public/img/group.svg" },
                                                                                                                          slot: "prefix",
                                                                                                                      }),
                                                                                                                      e._v(" "),
                                                                                                                      n(
                                                                                                                          "el-select",
                                                                                                                          {
                                                                                                                              staticClass: "small-status",
                                                                                                                              attrs: { "no-data-text": e.$root.labels.choose_a_group_service },
                                                                                                                              on: { change: e.handleBookingChange },
                                                                                                                              model: {
                                                                                                                                  value: t.persons,
                                                                                                                                  callback: function (n) {
                                                                                                                                      e.$set(t, "persons", n);
                                                                                                                                  },
                                                                                                                                  expression: "booking.persons",
                                                                                                                              },
                                                                                                                          },
                                                                                                                          e._l(e.appointment.providerServiceMaxCapacity, function (e) {
                                                                                                                              return n("el-option", { key: e, attrs: { value: e } });
                                                                                                                          }),
                                                                                                                          1
                                                                                                                      ),
                                                                                                                      e._v(" "),
                                                                                                                      n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                                                                          n("div", {
                                                                                                                              attrs: { slot: "content" },
                                                                                                                              domProps: { innerHTML: e._s(e.$root.labels.customers_tooltip) },
                                                                                                                              slot: "content",
                                                                                                                          }),
                                                                                                                          e._v(" "),
                                                                                                                          n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                                                                      ]),
                                                                                                                  ],
                                                                                                                  1
                                                                                                              ),
                                                                                                          ]),
                                                                                                          e._v(" "),
                                                                                                          n("i", {
                                                                                                              staticClass: "el-icon-close remove",
                                                                                                              on: {
                                                                                                                  click: function (t) {
                                                                                                                      return e.handleCustomerRemove(i);
                                                                                                                  },
                                                                                                              },
                                                                                                          }),
                                                                                                      ],
                                                                                                      1
                                                                                                  ),
                                                                                              ],
                                                                                              1
                                                                                          );
                                                                                      }),
                                                                                      e._v(" "),
                                                                                      e.appointment.bookings.length > 1
                                                                                          ? n(
                                                                                                "div",
                                                                                                { staticClass: "group-status-change" },
                                                                                                [
                                                                                                    n(
                                                                                                        "el-row",
                                                                                                        { attrs: { gutter: 4 } },
                                                                                                        [
                                                                                                            n("el-col", { attrs: { sm: 14 } }, [n("h3", [e._v(e._s(e.$root.labels.change_group_status))])]),
                                                                                                            e._v(" "),
                                                                                                            n(
                                                                                                                "el-col",
                                                                                                                { attrs: { sm: 10 } },
                                                                                                                [
                                                                                                                    n("el-form-item", [
                                                                                                                        n(
                                                                                                                            "div",
                                                                                                                            { staticClass: "am-appointment-status" },
                                                                                                                            [
                                                                                                                                n("span", { staticClass: "am-appointment-status-symbol", class: e.appointment.status }),
                                                                                                                                e._v(" "),
                                                                                                                                n(
                                                                                                                                    "el-select",
                                                                                                                                    {
                                                                                                                                        on: { change: e.handleGroupStatusChange, "visible-change": e.handleSelected },
                                                                                                                                        model: {
                                                                                                                                            value: e.appointment.status,
                                                                                                                                            callback: function (t) {
                                                                                                                                                e.$set(e.appointment, "status", t);
                                                                                                                                            },
                                                                                                                                            expression: "appointment.status",
                                                                                                                                        },
                                                                                                                                    },
                                                                                                                                    e._l(e.statuses, function (t) {
                                                                                                                                        return n(
                                                                                                                                            "el-option",
                                                                                                                                            {
                                                                                                                                                key: t.value,
                                                                                                                                                staticClass: "am-appointment-status-option",
                                                                                                                                                attrs: { label: t.label, value: t.value },
                                                                                                                                            },
                                                                                                                                            [n("span", { staticClass: "am-appointment-status-symbol", class: t.value }, [e._v(e._s(t.label))])]
                                                                                                                                        );
                                                                                                                                    }),
                                                                                                                                    1
                                                                                                                                ),
                                                                                                                            ],
                                                                                                                            1
                                                                                                                        ),
                                                                                                                    ]),
                                                                                                                ],
                                                                                                                1
                                                                                                            ),
                                                                                                        ],
                                                                                                        1
                                                                                                    ),
                                                                                                ],
                                                                                                1
                                                                                            )
                                                                                          : e._e(),
                                                                                  ],
                                                                                  2
                                                                              )
                                                                            : e._e(),
                                                                    ]),
                                                                    e._v(" "),
                                                                    n(
                                                                        "el-form-item",
                                                                        { class: { active: e.categorySpinnerActive }, attrs: { label: e.$root.labels.category + ":" } },
                                                                        [
                                                                            n(
                                                                                "el-select",
                                                                                {
                                                                                    attrs: { filterable: "", clearable: "", placeholder: e.$root.labels.select_service_category, disabled: "customer" === e.$root.settings.role },
                                                                                    on: { change: e.handleCategoryChange },
                                                                                    model: {
                                                                                        value: e.appointment.categoryId,
                                                                                        callback: function (t) {
                                                                                            e.$set(e.appointment, "categoryId", t);
                                                                                        },
                                                                                        expression: "appointment.categoryId",
                                                                                    },
                                                                                },
                                                                                e._l(e.categoriesFiltered, function (e) {
                                                                                    return n("el-option", { key: e.id, attrs: { disabled: e.disabled, label: e.name, value: e.id } });
                                                                                }),
                                                                                1
                                                                            ),
                                                                            e._v(" "),
                                                                            n("img", { staticClass: "svg is-spinner", attrs: { src: e.$root.getUrl + "public/img/oval-spinner.svg" } }),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    n(
                                                                        "el-form-item",
                                                                        { class: { active: e.serviceSpinnerActive }, attrs: { label: e.capitalizeFirstLetter(e.$root.labels.service) + ":", prop: "serviceId" } },
                                                                        [
                                                                            n(
                                                                                "el-select",
                                                                                {
                                                                                    attrs: { filterable: "", clearable: "", placeholder: e.$root.labels.select_service + ":", disabled: "customer" === e.$root.settings.role },
                                                                                    on: { change: e.handleServiceChange },
                                                                                    model: {
                                                                                        value: e.appointment.serviceId,
                                                                                        callback: function (t) {
                                                                                            e.$set(e.appointment, "serviceId", t);
                                                                                        },
                                                                                        expression: "appointment.serviceId",
                                                                                    },
                                                                                },
                                                                                e._l(e.servicesFiltered, function (e) {
                                                                                    return n("el-option", { key: e.id, attrs: { disabled: e.disabled, label: e.name, value: e.id } });
                                                                                }),
                                                                                1
                                                                            ),
                                                                            e._v(" "),
                                                                            n("img", { staticClass: "svg is-spinner", attrs: { src: e.$root.getUrl + "public/img/oval-spinner.svg" } }),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    e.locationsFiltered.length
                                                                        ? n(
                                                                              "el-form-item",
                                                                              { class: { active: e.locationSpinnerActive }, attrs: { label: e.$root.labels.location + ":", disabled: "customer" === e.$root.settings.role } },
                                                                              [
                                                                                  n(
                                                                                      "el-select",
                                                                                      {
                                                                                          attrs: { filterable: "", clearable: "", placeholder: e.$root.labels.select_location },
                                                                                          on: { change: e.handleLocationChange },
                                                                                          model: {
                                                                                              value: e.appointment.locationId,
                                                                                              callback: function (t) {
                                                                                                  e.$set(e.appointment, "locationId", t);
                                                                                              },
                                                                                              expression: "appointment.locationId",
                                                                                          },
                                                                                      },
                                                                                      e._l(e.locationsFiltered, function (e) {
                                                                                          return n("el-option", { key: e.id, attrs: { disabled: e.disabled, label: e.name, value: e.id } });
                                                                                      }),
                                                                                      1
                                                                                  ),
                                                                                  e._v(" "),
                                                                                  n("img", { staticClass: "svg is-spinner", attrs: { src: e.$root.getUrl + "public/img/oval-spinner.svg" } }),
                                                                              ],
                                                                              1
                                                                          )
                                                                        : e._e(),
                                                                    e._v(" "),
                                                                    n(
                                                                        "el-form-item",
                                                                        {
                                                                            directives: [
                                                                                {
                                                                                    name: "show",
                                                                                    rawName: "v-show",
                                                                                    value: e.$root.settings.capabilities.canReadOthers && e.$root.settings.capabilities.canWriteOthers,
                                                                                    expression: "$root.settings.capabilities.canReadOthers && $root.settings.capabilities.canWriteOthers",
                                                                                },
                                                                            ],
                                                                            class: { active: e.employeeSpinnerActive },
                                                                            attrs: { label: e.capitalizeFirstLetter(e.$root.labels.employee) + ":", prop: "providerId" },
                                                                        },
                                                                        [
                                                                            n(
                                                                                "el-select",
                                                                                {
                                                                                    attrs: { filterable: "", clearable: "", placeholder: e.$root.labels.select_employee, disabled: "customer" === e.$root.settings.role },
                                                                                    on: { change: e.handleEmployeeChange },
                                                                                    model: {
                                                                                        value: e.appointment.providerId,
                                                                                        callback: function (t) {
                                                                                            e.$set(e.appointment, "providerId", t);
                                                                                        },
                                                                                        expression: "appointment.providerId",
                                                                                    },
                                                                                },
                                                                                e._l(e.employeesFiltered, function (e) {
                                                                                    return n("el-option", { key: e.id, attrs: { disabled: e.disabled, label: e.firstName + " " + e.lastName, value: e.id } });
                                                                                }),
                                                                                1
                                                                            ),
                                                                            e._v(" "),
                                                                            n("img", { staticClass: "svg is-spinner", attrs: { src: e.$root.getUrl + "public/img/oval-spinner.svg" } }),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    e.couponsFilteredService.length > 0 && e.showCoupon && ("admin" === e.$root.settings.role || "manager" === e.$root.settings.role)
                                                                        ? n(
                                                                              "el-form-item",
                                                                              { class: { active: e.categorySpinnerActive }, attrs: { label: e.$root.labels.apply_coupon } },
                                                                              [
                                                                                  n(
                                                                                      "el-select",
                                                                                      {
                                                                                          attrs: { filterable: "", clearable: "", placeholder: e.$root.labels.select_coupon, disabled: "customer" === e.$root.settings.role },
                                                                                          on: { change: e.filterServices },
                                                                                          model: {
                                                                                              value: e.coupon,
                                                                                              callback: function (t) {
                                                                                                  e.coupon = t;
                                                                                              },
                                                                                              expression: "coupon",
                                                                                          },
                                                                                      },
                                                                                      e._l(e.couponsFilteredService, function (e) {
                                                                                          return n("el-option", { key: e.id, attrs: { disabled: e.disabled, label: e.code, value: e.id } });
                                                                                      }),
                                                                                      1
                                                                                  ),
                                                                                  e._v(" "),
                                                                                  n("img", { staticClass: "svg is-spinner", attrs: { src: e.$root.getUrl + "public/img/oval-spinner.svg" } }),
                                                                              ],
                                                                              1
                                                                          )
                                                                        : e._e(),
                                                                    e._v(" "),
                                                                    n(
                                                                        "el-row",
                                                                        { attrs: { gutter: 20 } },
                                                                        [
                                                                            n(
                                                                                "el-col",
                                                                                { staticClass: "v-calendar-column", attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                [
                                                                                    n(
                                                                                        "el-form-item",
                                                                                        { class: { active: e.loadingTimeSlots }, attrs: { label: e.$root.labels.date + ":", prop: "selectedDate" } },
                                                                                        [
                                                                                            n("v-date-picker", {
                                                                                                directives: [{ name: "show", rawName: "v-show", value: !e.loadingTimeSlots, expression: "!loadingTimeSlots" }],
                                                                                                attrs: {
                                                                                                    mode: "single",
                                                                                                    "popover-visibility": "focus",
                                                                                                    "popover-direction": "top",
                                                                                                    "popover-align": e.screenWidth < 768 ? "center" : "left",
                                                                                                    "tint-color": e.isCabinet ? e.$root.settings.customization.primaryColor : "#d52878",
                                                                                                    "show-day-popover": !1,
                                                                                                    "input-props": { class: "el-input__inner" },
                                                                                                    "available-dates": e.availableDates,
                                                                                                    "is-expanded": !1,
                                                                                                    "is-required": !0,
                                                                                                    "disabled-dates": e.disabledWeekdays,
                                                                                                    disabled: !1,
                                                                                                    formats: e.vCalendarFormats,
                                                                                                },
                                                                                                on: { input: e.dateChange },
                                                                                                model: {
                                                                                                    value: e.appointment.selectedDate,
                                                                                                    callback: function (t) {
                                                                                                        e.$set(e.appointment, "selectedDate", t);
                                                                                                    },
                                                                                                    expression: "appointment.selectedDate",
                                                                                                },
                                                                                            }),
                                                                                            e._v(" "),
                                                                                            n("el-input", {
                                                                                                directives: [{ name: "show", rawName: "v-show", value: e.loadingTimeSlots, expression: "loadingTimeSlots" }],
                                                                                                attrs: {
                                                                                                    placeholder: e.appointment.selectedDate ? e.getFrontedFormattedDate(e.appointment.selectedDate) : this.momentDateFormat,
                                                                                                    disabled: !0,
                                                                                                },
                                                                                            }),
                                                                                            e._v(" "),
                                                                                            n("img", { staticClass: "svg is-spinner is-spinner-right", attrs: { src: e.$root.getUrl + "public/img/oval-spinner.svg" } }),
                                                                                        ],
                                                                                        1
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                            e._v(" "),
                                                                            n(
                                                                                "el-col",
                                                                                { attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                [
                                                                                    n(
                                                                                        "el-form-item",
                                                                                        { class: { active: e.loadingTimeSlots }, attrs: { label: e.$root.labels.time + ":", prop: "selectedPeriod.time" } },
                                                                                        [
                                                                                            n(
                                                                                                "el-select",
                                                                                                {
                                                                                                    attrs: { "value-key": "time", filterable: "", placeholder: e.$root.labels.select_time, disabled: e.loadingTimeSlots },
                                                                                                    on: {
                                                                                                        change: function (t) {
                                                                                                            return e.selectedTime();
                                                                                                        },
                                                                                                    },
                                                                                                    model: {
                                                                                                        value: e.appointment.selectedPeriod,
                                                                                                        callback: function (t) {
                                                                                                            e.$set(e.appointment, "selectedPeriod", t);
                                                                                                        },
                                                                                                        expression: "appointment.selectedPeriod",
                                                                                                    },
                                                                                                },
                                                                                                e._l(e.appointment.dateTimeSlots, function (t) {
                                                                                                    return n("el-option", { key: t.time, attrs: { label: e.getFrontedFormattedTime(t.time + ":00"), value: t } });
                                                                                                }),
                                                                                                1
                                                                                            ),
                                                                                            e._v(" "),
                                                                                            n("img", { staticClass: "svg is-spinner", attrs: { src: e.$root.getUrl + "public/img/oval-spinner.svg" } }),
                                                                                        ],
                                                                                        1
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    "customer" !== e.$root.settings.role && !e.appointment.id && e.appointment.serviceId && "disabled" !== e.getServiceById(e.appointment.serviceId).recurringCycle
                                                                        ? n(
                                                                              "el-form-item",
                                                                              { staticClass: "am-recurring-check" },
                                                                              [
                                                                                  n(
                                                                                      "el-checkbox",
                                                                                      {
                                                                                          attrs: { disabled: !e.appointment.selectedDate || !e.appointment.selectedPeriod },
                                                                                          on: {
                                                                                              change: function (t) {
                                                                                                  return e.showRecurringTab();
                                                                                              },
                                                                                          },
                                                                                          model: {
                                                                                              value: e.activeRecurring,
                                                                                              callback: function (t) {
                                                                                                  e.activeRecurring = t;
                                                                                              },
                                                                                              expression: "activeRecurring",
                                                                                          },
                                                                                      },
                                                                                      [
                                                                                          e._v("\n              " + e._s(e.$root.labels.recurring_active) + "\n              "),
                                                                                          n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                                              n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.recurring_active_tooltip) }, slot: "content" }),
                                                                                              e._v(" "),
                                                                                              n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                                          ]),
                                                                                      ],
                                                                                      1
                                                                                  ),
                                                                              ],
                                                                              1
                                                                          )
                                                                        : e._e(),
                                                                    e._v(" "),
                                                                    "customer" !== this.$root.settings.role
                                                                        ? n(
                                                                              "el-form-item",
                                                                              [
                                                                                  n(
                                                                                      "el-checkbox",
                                                                                      {
                                                                                          on: {
                                                                                              change: function (t) {
                                                                                                  return e.clearValidation();
                                                                                              },
                                                                                          },
                                                                                          model: {
                                                                                              value: e.appointment.notifyParticipants,
                                                                                              callback: function (t) {
                                                                                                  e.$set(e.appointment, "notifyParticipants", t);
                                                                                              },
                                                                                              expression: "appointment.notifyParticipants",
                                                                                          },
                                                                                      },
                                                                                      [
                                                                                          e._v("\n              " + e._s(e.$root.labels.notify_customers) + "\n              "),
                                                                                          n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                                              n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.notify_customers_tooltip) }, slot: "content" }),
                                                                                              e._v(" "),
                                                                                              n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                                          ]),
                                                                                      ],
                                                                                      1
                                                                                  ),
                                                                              ],
                                                                              1
                                                                          )
                                                                        : e._e(),
                                                                    e._v(" "),
                                                                    "customer" !== this.$root.settings.role ? n("div", { staticClass: "am-divider" }) : e._e(),
                                                                    e._v(" "),
                                                                    "customer" !== this.$root.settings.role
                                                                        ? n(
                                                                              "el-form-item",
                                                                              { attrs: { label: e.$root.labels.note_internal + ":" } },
                                                                              [
                                                                                  n("el-input", {
                                                                                      attrs: { type: "textarea", autosize: { minRows: 4, maxRows: 6 }, placeholder: "" },
                                                                                      on: {
                                                                                          input: function (t) {
                                                                                              return e.clearValidation();
                                                                                          },
                                                                                      },
                                                                                      model: {
                                                                                          value: e.appointment.internalNotes,
                                                                                          callback: function (t) {
                                                                                              e.$set(e.appointment, "internalNotes", t);
                                                                                          },
                                                                                          expression: "appointment.internalNotes",
                                                                                      },
                                                                                  }),
                                                                              ],
                                                                              1
                                                                          )
                                                                        : e._e(),
                                                                ],
                                                                1
                                                            ),
                                                            e._v(" "),
                                                            "customer" !== this.$root.settings.role
                                                                ? n("el-tab-pane", { attrs: { name: "extras" } }, [
                                                                      n(
                                                                          "span",
                                                                          { attrs: { slot: "label" }, slot: "label" },
                                                                          [
                                                                              e._v(e._s(e.$root.labels.extras) + "\n            "),
                                                                              e.appointment.serviceId && e.appointment.bookings.length > 0 && e.appointment.extrasSelectedCount > 0
                                                                                  ? n("el-badge", { staticClass: "mark", attrs: { value: e.appointment.extrasSelectedCount } })
                                                                                  : e._e(),
                                                                          ],
                                                                          1
                                                                      ),
                                                                      e._v(" "),
                                                                      n("div", { staticClass: "am-dialog-table" }, [
                                                                          e.appointment.providerId && e.appointment.serviceId && e.appointment.extrasCount > 0 && e.appointment.bookings.length > 0
                                                                              ? n(
                                                                                    "div",
                                                                                    [
                                                                                        e._l(e.appointment.bookings, function (t, i) {
                                                                                            return ["approved", "pending"].includes(t.status)
                                                                                                ? n(
                                                                                                      "div",
                                                                                                      { key: i, staticClass: "am-customer-extras" },
                                                                                                      [
                                                                                                          n(
                                                                                                              "el-row",
                                                                                                              { staticClass: "am-customer-extras-data" },
                                                                                                              [
                                                                                                                  n("el-col", [
                                                                                                                      n("h3", [e._v(e._s(t.customer.firstName) + " " + e._s(t.customer.lastName))]),
                                                                                                                      e._v(" "),
                                                                                                                      n("span", [e._v(e._s(t.customer.email))]),
                                                                                                                  ]),
                                                                                                              ],
                                                                                                              1
                                                                                                          ),
                                                                                                          e._v(" "),
                                                                                                          e._l(t.extras, function (t) {
                                                                                                              return n(
                                                                                                                  "el-row",
                                                                                                                  { key: t.extraId, attrs: { gutter: 10 } },
                                                                                                                  [
                                                                                                                      n(
                                                                                                                          "el-col",
                                                                                                                          { attrs: { sm: 12, xs: 24 } },
                                                                                                                          [
                                                                                                                              n(
                                                                                                                                  "el-row",
                                                                                                                                  [
                                                                                                                                      n(
                                                                                                                                          "el-col",
                                                                                                                                          { attrs: { sm: 4, xs: 2 } },
                                                                                                                                          [
                                                                                                                                              n("el-checkbox", {
                                                                                                                                                  on: {
                                                                                                                                                      change: function (n) {
                                                                                                                                                          return e.handleExtrasSelectionChange(t);
                                                                                                                                                      },
                                                                                                                                                  },
                                                                                                                                                  model: {
                                                                                                                                                      value: t.selected,
                                                                                                                                                      callback: function (n) {
                                                                                                                                                          e.$set(t, "selected", n);
                                                                                                                                                      },
                                                                                                                                                      expression: "item.selected",
                                                                                                                                                  },
                                                                                                                                              }),
                                                                                                                                          ],
                                                                                                                                          1
                                                                                                                                      ),
                                                                                                                                      e._v(" "),
                                                                                                                                      n("el-col", { attrs: { sm: 20, xs: 22 } }, [n("span", [e._v(e._s(t.name))])]),
                                                                                                                                  ],
                                                                                                                                  1
                                                                                                                              ),
                                                                                                                          ],
                                                                                                                          1
                                                                                                                      ),
                                                                                                                      e._v(" "),
                                                                                                                      n(
                                                                                                                          "el-col",
                                                                                                                          { attrs: { sm: 12, xs: 24 } },
                                                                                                                          [
                                                                                                                              n(
                                                                                                                                  "el-row",
                                                                                                                                  [
                                                                                                                                      n(
                                                                                                                                          "el-col",
                                                                                                                                          { staticClass: "align-right", attrs: { sm: 14, xs: 14 } },
                                                                                                                                          [
                                                                                                                                              n("el-input-number", {
                                                                                                                                                  attrs: {
                                                                                                                                                      type: "number",
                                                                                                                                                      value: t.quantity,
                                                                                                                                                      disabled: !t.selected,
                                                                                                                                                      min: 1,
                                                                                                                                                      max: t.maxQuantity,
                                                                                                                                                      size: "small",
                                                                                                                                                  },
                                                                                                                                                  on: {
                                                                                                                                                      change: function (n) {
                                                                                                                                                          return e.handleExtrasSelectionChange(t);
                                                                                                                                                      },
                                                                                                                                                  },
                                                                                                                                                  model: {
                                                                                                                                                      value: t.quantity,
                                                                                                                                                      callback: function (n) {
                                                                                                                                                          e.$set(t, "quantity", n);
                                                                                                                                                      },
                                                                                                                                                      expression: "item.quantity",
                                                                                                                                                  },
                                                                                                                                              }),
                                                                                                                                          ],
                                                                                                                                          1
                                                                                                                                      ),
                                                                                                                                      e._v(" "),
                                                                                                                                      n("el-col", { staticClass: "align-right", attrs: { sm: 10, xs: 10 } }, [
                                                                                                                                          e._v(e._s(e.getFormattedPrice(t.price))),
                                                                                                                                      ]),
                                                                                                                                  ],
                                                                                                                                  1
                                                                                                                              ),
                                                                                                                          ],
                                                                                                                          1
                                                                                                                      ),
                                                                                                                  ],
                                                                                                                  1
                                                                                                              );
                                                                                                          }),
                                                                                                          e._v(" "),
                                                                                                          n(
                                                                                                              "el-row",
                                                                                                              { staticClass: "subtotal", attrs: { gutter: 10 } },
                                                                                                              [
                                                                                                                  n("el-col", { staticClass: "align-right", attrs: { span: 14 } }, [
                                                                                                                      e._v("\n                    " + e._s(e.$root.labels.subtotal) + ":\n                  "),
                                                                                                                  ]),
                                                                                                                  e._v(" "),
                                                                                                                  n("el-col", { staticClass: "align-right", attrs: { span: 10 } }, [
                                                                                                                      e._v("\n                    " + e._s(e.getFormattedPrice(t.extrasTotalPrice)) + "\n                  "),
                                                                                                                  ]),
                                                                                                              ],
                                                                                                              1
                                                                                                          ),
                                                                                                      ],
                                                                                                      2
                                                                                                  )
                                                                                                : e._e();
                                                                                        }),
                                                                                        e._v(" "),
                                                                                        n(
                                                                                            "div",
                                                                                            { staticClass: "total" },
                                                                                            [
                                                                                                n(
                                                                                                    "el-row",
                                                                                                    { attrs: { gutter: 10 } },
                                                                                                    [
                                                                                                        n("el-col", { staticClass: "align-right", attrs: { span: 14 } }, [e._v(e._s(e.$root.labels.price) + ":")]),
                                                                                                        e._v(" "),
                                                                                                        n("el-col", { staticClass: "align-right ", attrs: { span: 10 } }, [
                                                                                                            e._v(e._s(e.getFormattedPrice(e.appointment.serviceTotalPrice)) + "\n                  "),
                                                                                                        ]),
                                                                                                    ],
                                                                                                    1
                                                                                                ),
                                                                                                e._v(" "),
                                                                                                n(
                                                                                                    "el-row",
                                                                                                    { attrs: { gutter: 10 } },
                                                                                                    [
                                                                                                        n("el-col", { staticClass: "align-right", attrs: { span: 14 } }, [e._v(e._s(e.$root.labels.extras) + ":")]),
                                                                                                        e._v(" "),
                                                                                                        n("el-col", { staticClass: "align-right ", attrs: { span: 10 } }, [
                                                                                                            e._v(e._s(e.getFormattedPrice(e.appointment.extrasTotalPrice)) + "\n                  "),
                                                                                                        ]),
                                                                                                    ],
                                                                                                    1
                                                                                                ),
                                                                                                e._v(" "),
                                                                                                n(
                                                                                                    "el-row",
                                                                                                    { staticClass: "am-strong", attrs: { gutter: 10 } },
                                                                                                    [
                                                                                                        n("el-col", { staticClass: "align-right", attrs: { span: 14 } }, [e._v(e._s(e.$root.labels.total) + ":")]),
                                                                                                        e._v(" "),
                                                                                                        n("el-col", { staticClass: "align-right ", attrs: { span: 10 } }, [
                                                                                                            e._v(
                                                                                                                e._s(
                                                                                                                    e.getAppointmentPrice(
                                                                                                                        e.savedAppointment ? e.savedAppointment.serviceId : e.appointment.serviceId,
                                                                                                                        e.getAppointmentService(e.appointment),
                                                                                                                        e.appointment.bookings,
                                                                                                                        !1
                                                                                                                    )
                                                                                                                ) + "\n                  "
                                                                                                            ),
                                                                                                        ]),
                                                                                                    ],
                                                                                                    1
                                                                                                ),
                                                                                            ],
                                                                                            1
                                                                                        ),
                                                                                    ],
                                                                                    2
                                                                                )
                                                                              : e.appointment.serviceId && e.appointment.providerId && e.appointment.serviceId && 0 === e.appointment.extrasCount
                                                                              ? n("div", [n("p", { attrs: { align: "center" } }, [e._v(e._s(e.$root.labels.service_no_extras))])])
                                                                              : n("div", [n("p", { attrs: { align: "center" } }, [e._v(e._s(e.$root.labels.no_selected_extras_requirements))])]),
                                                                      ]),
                                                                  ])
                                                                : e._e(),
                                                            e._v(" "),
                                                            0 !== e.appointment.id && "customer" !== this.$root.settings.role
                                                                ? n(
                                                                      "el-tab-pane",
                                                                      { attrs: { label: e.$root.labels.payment, name: "payment" } },
                                                                      [n("dialog-appointment-payment", { attrs: { appointment: e.appointment, options: e.options }, on: { editPayment: e.editPayment } })],
                                                                      1
                                                                  )
                                                                : e._e(),
                                                            e._v(" "),
                                                            e.showCustomFieldsTab() && "customer" !== this.$root.settings.role
                                                                ? n(
                                                                      "el-tab-pane",
                                                                      { attrs: { label: e.$root.labels.custom_fields, name: "customFields" } },
                                                                      [
                                                                          n("dialog-custom-fields", {
                                                                              attrs: {
                                                                                  appointment: e.appointment,
                                                                                  entityId: e.appointment.serviceId,
                                                                                  entityType: "appointment",
                                                                                  customFields: this.options.entities.customFields,
                                                                                  showCustomerInfo: !0,
                                                                                  "hide-attachment-custom-field": e.hideAttachmentCustomField,
                                                                                  "is-cabinet": e.isCabinet,
                                                                              },
                                                                              on: { clearValidation: e.clearValidation },
                                                                          }),
                                                                      ],
                                                                      1
                                                                  )
                                                                : e._e(),
                                                            e._v(" "),
                                                            e.$root.settings.zoom.enabled && e.appointment.zoomMeeting
                                                                ? n("el-tab-pane", { staticClass: "am-zoom-tabpane", attrs: { label: e.$root.labels.zoom, name: "zoom" } }, [
                                                                      "customer" !== this.$root.settings.role
                                                                          ? n("div", [
                                                                                e._v("\n            " + e._s(e.$root.labels.zoom_start_link) + ":\n            "),
                                                                                n("a", { staticClass: "am-link", attrs: { href: e.appointment.zoomMeeting.startUrl } }, [e._v(e._s(e.$root.labels.zoom_click_to_start))]),
                                                                            ])
                                                                          : e._e(),
                                                                      e._v(" "),
                                                                      n("div", [
                                                                          e._v("\n            " + e._s(e.$root.labels.zoom_join_link) + ":\n            "),
                                                                          n("a", { staticClass: "am-link", attrs: { href: e.appointment.zoomMeeting.joinUrl } }, [e._v(e._s(e.$root.labels.zoom_click_to_join))]),
                                                                      ]),
                                                                  ])
                                                                : e._e(),
                                                            e._v(" "),
                                                            e.appointment.serviceId && "disabled" !== e.getServiceById(e.appointment.serviceId).recurringCycle && (e.appointment.id ? e.recurringAppointments.length : e.activeRecurring)
                                                                ? n("el-tab-pane", { attrs: { label: e.$root.labels.recurring, name: "recurring" } }, [
                                                                      e.appointment.id
                                                                          ? n(
                                                                                "div",
                                                                                { staticClass: "am-recurring-dates-edit" },
                                                                                e._l(e.recurringAppointments, function (t, i) {
                                                                                    return n(
                                                                                        "el-row",
                                                                                        { key: t.id },
                                                                                        [
                                                                                            n("el-col", { attrs: { span: 3 } }, [e._v("\n                " + e._s(i + 1) + "\n              ")]),
                                                                                            e._v(" "),
                                                                                            n("el-col", { attrs: { span: 12 } }, [e._v("\n                " + e._s(e.getFrontedFormattedDateTime(t.bookingStart)) + "\n              ")]),
                                                                                            e._v(" "),
                                                                                            n(
                                                                                                "el-col",
                                                                                                { attrs: { span: 9 } },
                                                                                                [
                                                                                                    n(
                                                                                                        "el-button",
                                                                                                        {
                                                                                                            on: {
                                                                                                                click: function (n) {
                                                                                                                    return e.openRecurringAppointment(t.id);
                                                                                                                },
                                                                                                            },
                                                                                                        },
                                                                                                        [e._v("\n                  " + e._s(e.$root.labels.edit) + "\n                ")]
                                                                                                    ),
                                                                                                ],
                                                                                                1
                                                                                            ),
                                                                                        ],
                                                                                        1
                                                                                    );
                                                                                }),
                                                                                1
                                                                            )
                                                                          : e.appointment.selectedDate && e.appointment.selectedPeriod && e.activeRecurring
                                                                          ? n(
                                                                                "div",
                                                                                [
                                                                                    n("recurring-setup", {
                                                                                        attrs: {
                                                                                            initialRecurringData: e.initialRecurringData,
                                                                                            recurringData: e.recurringData,
                                                                                            disabledWeekdays: e.disabledWeekdays,
                                                                                            availableDates: e.availableDates,
                                                                                            calendarTimeSlots: e.appointment.calendarTimeSlots,
                                                                                            service: e.getServiceById(e.appointment.serviceId),
                                                                                            isFrontend: !1,
                                                                                            "form-type": "recurring",
                                                                                            "forms-data": e.renderObject,
                                                                                        },
                                                                                    }),
                                                                                    e._v(" "),
                                                                                    n("recurring-dates", {
                                                                                        attrs: {
                                                                                            dialogClass: "am-recurring-dates",
                                                                                            recurringData: e.recurringData,
                                                                                            availableDates: e.availableDates,
                                                                                            calendarTimeSlots: e.appointment.calendarTimeSlots,
                                                                                            isFrontend: !1,
                                                                                            service: e.getServiceById(e.appointment.serviceId),
                                                                                            selectedExtras: e.getSelectedDistinctExtras(),
                                                                                            "form-type": "recurring",
                                                                                            "forms-data": e.renderObject,
                                                                                        },
                                                                                        on: { datesDefined: e.recurringDatesDefined },
                                                                                    }),
                                                                                ],
                                                                                1
                                                                            )
                                                                          : e.activeRecurring
                                                                          ? n("div", [n("p", { attrs: { align: "center" } }, [e._v(e._s(e.$root.labels.no_selected_slot_requirements))])])
                                                                          : e._e(),
                                                                  ])
                                                                : e._e(),
                                                        ],
                                                        1
                                                    ),
                                                ],
                                                1
                                            )
                                          : e._e(),
                                  ],
                                  1
                              ),
                        e._v(" "),
                        null === e.appointment || e.dialogLoading || "customer" === this.$root.settings.role
                            ? e._e()
                            : n("dialog-actions", {
                                  attrs: {
                                      formName: "appointment",
                                      urlName: "appointments",
                                      isNew: 0 === e.appointment.id,
                                      entity: e.appointment,
                                      getParsedEntity: e.getParsedEntity,
                                      haveSaveConfirmation: e.haveSaveConfirmation,
                                      hasIcons: !0,
                                      status: { on: "visible", off: "hidden" },
                                      action: {
                                          haveAdd: !0,
                                          haveEdit: !0,
                                          haveStatus: !1,
                                          haveRemove: !0 === e.$root.settings.capabilities.canDelete,
                                          haveRemoveEffect: !1,
                                          haveDuplicate: e.haveDuplicate,
                                          haveSaveWarning: this.activeRecurring,
                                      },
                                      message: {
                                          success: { save: e.$root.labels.appointment_saved, remove: e.$root.labels.appointment_deleted, show: "", hide: "" },
                                          confirm: { remove: e.$root.labels.confirm_delete_appointment, show: "", hide: "", duplicate: e.$root.labels.confirm_duplicate_appointment, save: e.$root.labels.recurring_changed_message },
                                      },
                                  },
                                  on: { errorCallback: e.errorCallback, validationBookingsFailCallback: e.validationBookingsFailCallback },
                              }),
                        e._v(" "),
                        n("div", [
                            "customer" === this.$root.settings.role
                                ? n("div", { staticClass: "am-dialog-footer" }, [
                                      n(
                                          "div",
                                          { staticClass: "am-dialog-footer-actions" },
                                          [
                                              n(
                                                  "el-row",
                                                  [
                                                      n(
                                                          "el-col",
                                                          { staticClass: "align-right", attrs: { sm: 24 } },
                                                          [
                                                              n("el-button", { staticClass: "am-dialog-create", attrs: { type: "primary" }, on: { click: e.updateByCustomer } }, [
                                                                  e._v("\n              " + e._s(e.$root.labels.save) + "\n            "),
                                                              ]),
                                                          ],
                                                          1
                                                      ),
                                                  ],
                                                  1
                                              ),
                                          ],
                                          1
                                      ),
                                  ])
                                : e._e(),
                        ]),
                    ],
                    1
                );
            },
            staticRenderFns: [],
        };
    },
    893: function (e, t, n) {
        var i = n(685)(n(894), n(895), !1, null, null, null);
        e.exports = i.exports;
    },
    894: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(702),
            o = n.n(i),
            r = n(755),
            s = (n.n(r), n(337)),
            a = n(687),
            l = n(691),
            c = n(689);
        t.default = {
            mixins: [a.a, s.a, l.a, c.a],
            props: { modalData: null, bookingFetched: !1 },
            data: function () {
                return {
                    booking: {},
                    dialogLoading: !0,
                    finance: { bookablePriceTotal: 0, extrasPriceTotal: 0, discountTotal: 0, subTotal: 0, due: 0 },
                    form: new o.a(),
                    payment: {},
                    paymentStatuses: [
                        { value: "pending", label: this.$root.labels.pending },
                        { value: "paid", label: this.$root.labels.paid },
                        { value: "partiallyPaid", label: this.$root.labels.partially_paid },
                    ],
                    showDeleteConfirmation: !1,
                    showUpdatePaymentAmount: !1,
                };
            },
            created: function () {
                this.bookingFetched && (this.setFinance(), (this.dialogLoading = !1));
            },
            updated: function () {
                this.$nextTick(function () {
                    var e = this;
                    setTimeout(function () {
                        e.inlineSVG();
                    }, 5);
                });
            },
            methods: {
                instantiateDialog: function () {
                    null !== this.modalData.bookings && (this.setFinance(), (this.dialogLoading = !1));
                },
                setFinance: function () {
                    var e = this;
                    e.modalData.bookings.forEach(function (t) {
                        t.payments.forEach(function (n) {
                            n.id === e.modalData.paymentId &&
                                ((e.payment = n),
                                (e.booking = t),
                                (e.finance.extrasPriceTotal = 0),
                                t.extras.forEach(function (n) {
                                    e.finance.extrasPriceTotal += n.price * n.quantity * (n.aggregatedPrice ? t.persons : 1);
                                }),
                                (e.finance.bookablePriceTotal = t.price * (t.aggregatedPrice ? t.persons : 1)),
                                (e.finance.subTotal = e.finance.bookablePriceTotal + e.finance.extrasPriceTotal),
                                (e.finance.discountTotal = (e.finance.subTotal / 100) * (t.coupon ? t.coupon.discount : 0) + (t.coupon ? t.coupon.deduction : 0)),
                                (e.finance.total = e.finance.subTotal - e.finance.discountTotal),
                                (e.finance.total = e.finance.total >= 0 ? e.finance.total : 0),
                                (e.finance.due = e.finance.total - e.payment.amount >= 0 ? e.finance.total - e.payment.amount : 0));
                        });
                    });
                },
                closeDialog: function () {
                    this.$emit("closeDialogPayment");
                },
                getPaymentStatus: function (e) {
                    var t = "";
                    return (
                        this.paymentStatuses.forEach(function (n) {
                            n.value === e && (t = n.label);
                        }),
                        t
                    );
                },
                deletePayment: function () {
                    var e = this;
                    (this.dialogLoading = !0),
                        this.$http
                            .post(this.$root.getAjaxUrl + "/payments/delete/" + this.payment.id)
                            .then(function (t) {
                                (e.dialogLoading = !1),
                                    t.data && (e.$emit("updatePaymentCallback", e.payment.id), (e.showDeleteConfirmation = !e.showDeleteConfirmation), e.notify(e.$root.labels.success, e.$root.labels.payment_deleted, "success"));
                            })
                            .catch(function (t) {
                                (e.dialogLoading = !1), (e.errorMessage = t.message);
                            });
                },
                updatePayment: function () {
                    var e = this;
                    (this.dialogLoading = !0),
                        this.form
                            .post(this.$root.getAjaxUrl + "/payments/" + this.payment.id, this.payment)
                            .then(function () {
                                (e.showUpdatePaymentAmount = !e.showUpdatePaymentAmount), e.setFinance(), e.notify(e.$root.labels.success, e.$root.labels.payment_saved, "success"), e.$emit("updatePaymentCallback"), (e.dialogLoading = !1);
                            })
                            .catch(function (t) {
                                (e.dialogLoading = !1), (e.errorMessage = t.message);
                            });
                },
                getPaymentGatewayNiceName: function () {
                    return "onSite" === this.payment.gateway
                        ? this.$root.labels.on_site
                        : "wc" === this.payment.gateway
                        ? this.payment.gatewayTitle
                        : this.payment.gateway
                        ? this.payment.gateway.charAt(0).toUpperCase() + this.payment.gateway.slice(1)
                        : void 0;
                },
            },
            watch: {
                bookingFetched: function () {
                    !0 === this.bookingFetched && this.instantiateDialog();
                },
            },
            components: { Money: r.Money },
        };
    },
    895: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n("div", [
                    n("div", { directives: [{ name: "show", rawName: "v-show", value: e.dialogLoading, expression: "dialogLoading" }], staticClass: "am-dialog-loader" }, [
                        n("div", { staticClass: "am-dialog-loader-content" }, [n("img", { attrs: { src: e.$root.getUrl + "public/img/spinner.svg" } }), e._v(" "), n("p", [e._v(e._s(e.$root.labels.loader_message))])]),
                    ]),
                    e._v(" "),
                    e.dialogLoading
                        ? e._e()
                        : n("div", { staticClass: "am-dialog-scrollable" }, [
                              n(
                                  "div",
                                  { staticClass: "am-dialog-header" },
                                  [
                                      n(
                                          "el-row",
                                          [
                                              n("el-col", { attrs: { span: 18 } }, [n("h2", [e._v(e._s(e.$root.labels.payment_details))])]),
                                              e._v(" "),
                                              n(
                                                  "el-col",
                                                  { staticClass: "align-right", attrs: { span: 6 } },
                                                  [n("el-button", { staticClass: "am-dialog-close", attrs: { size: "small", icon: "el-icon-close" }, on: { click: e.closeDialog } })],
                                                  1
                                              ),
                                          ],
                                          1
                                      ),
                                  ],
                                  1
                              ),
                              e._v(" "),
                              n(
                                  "div",
                                  { staticClass: "am-payment-details" },
                                  [
                                      n(
                                          "el-row",
                                          { staticClass: "am-payment-details-row" },
                                          [
                                              n("h4", [e._v(e._s(e.$root.labels.customer))]),
                                              e._v(" "),
                                              n("el-col", { attrs: { span: 24 } }, [
                                                  n("h3", [e._v(e._s(e.modalData.customer ? e.modalData.customer.firstName + " " + e.modalData.customer.lastName : ""))]),
                                                  e._v(" "),
                                                  n("p", [e._v(e._s(e.modalData.customer ? e.modalData.customer.email : ""))]),
                                              ]),
                                          ],
                                          1
                                      ),
                                      e._v(" "),
                                      n(
                                          "el-row",
                                          { staticClass: "am-payment-details-row" },
                                          [
                                              n("h4", [e._v(e._s(e.$root.labels.payment))]),
                                              e._v(" "),
                                              n("el-col", { attrs: { span: 12 } }, [
                                                  n("p", [e._v(e._s(e.$root.labels.date))]),
                                                  e._v(" "),
                                                  n("p", [e._v(e._s(e.$root.labels.payment_method))]),
                                                  e._v(" "),
                                                  n("p", [e._v(e._s(e.$root.labels.status))]),
                                              ]),
                                              e._v(" "),
                                              n("el-col", { attrs: { span: 12 } }, [
                                                  n("p", { staticClass: "am-semi-strong" }, [e._v(e._s(e.getFrontedFormattedDate(e.payment.dateTime)))]),
                                                  e._v(" "),
                                                  n("p", { staticClass: "am-semi-strong" }, [
                                                      n("img", { staticClass: "svg", attrs: { width: "14px", src: e.$root.getUrl + "public/img/payments/" + e.payment.gateway + ".svg" } }),
                                                      e._v("\n            " + e._s(e.getPaymentGatewayNiceName()) + "\n          "),
                                                  ]),
                                                  e._v(" "),
                                                  n("p", { staticClass: "am-semi-strong" }, [
                                                      n("i", {
                                                          class: {
                                                              "el-icon-circle-check": "paid" === e.payment.status || "partiallyPaid" === e.payment.status,
                                                              "partially-paid": "partiallyPaid" === e.payment.status,
                                                              "el-icon-refresh": "pending" === e.payment.status,
                                                          },
                                                      }),
                                                      e._v(" "),
                                                      n("span", [e._v(e._s(e.getPaymentStatus(e.payment.status)))]),
                                                  ]),
                                              ]),
                                          ],
                                          1
                                      ),
                                      e._v(" "),
                                      n(
                                          "el-row",
                                          { staticClass: "am-payment-details-row" },
                                          [
                                              n("h4", [e._v(e._s(e.$root.labels[e.modalData.bookableType + "_info"]))]),
                                              e._v(" "),
                                              n("el-col", { attrs: { span: 12 } }, [
                                                  n("p", [e._v(e._s(e.$root.labels[e.modalData.bookableType]))]),
                                                  e._v(" "),
                                                  "package" !== e.modalData.bookableType ? n("p", [e._v(e._s(e.$root.labels.date))]) : e._e(),
                                                  e._v(" "),
                                                  e.modalData.providers.length && "appointment" === e.modalData.bookableType ? n("p", [e._v(e._s(e.$root.labels.employee))]) : e._e(),
                                              ]),
                                              e._v(" "),
                                              n("el-col", { attrs: { span: 12 } }, [
                                                  n("p", { staticClass: "am-semi-strong" }, [e._v(e._s(e.modalData.bookableName))]),
                                                  e._v(" "),
                                                  "package" !== e.modalData.bookableType ? n("p", { staticClass: "am-semi-strong" }, [e._v(e._s(e.getFrontedFormattedDateTime(e.modalData.bookingStart)))]) : e._e(),
                                                  e._v(" "),
                                                  e.modalData.providers.length && "appointment" === e.modalData.bookableType
                                                      ? n("p", { staticClass: "am-semi-strong" }, [
                                                            n("img", {
                                                                staticClass: "am-employee-photo",
                                                                attrs: { src: e.pictureLoad(e.modalData.providers[0], !0) },
                                                                on: {
                                                                    error: function (t) {
                                                                        return e.imageLoadError(e.modalData.providers[0].id, !0);
                                                                    },
                                                                },
                                                            }),
                                                            e._v("\n            " + e._s(e.modalData.providers.length ? e.modalData.providers[0].fullName : "") + "\n          "),
                                                        ])
                                                      : e._e(),
                                              ]),
                                          ],
                                          1
                                      ),
                                      e._v(" "),
                                      n(
                                          "el-row",
                                          { staticClass: "am-payment-details-row am-payment-summary" },
                                          [
                                              n("el-col", { attrs: { span: 12 } }, [
                                                  n("p", [e._v(e._s(e.$root.labels[("appointment" === e.modalData.bookableType ? "service" : "event" === e.modalData.bookableType ? "event" : "package") + "_price"]))]),
                                                  e._v(" "),
                                                  "package" !== e.modalData.bookableType ? n("p", [e._v(e._s(e.$root.labels.extras))]) : e._e(),
                                                  e._v(" "),
                                                  "package" !== e.modalData.bookableType ? n("p", [e._v(e._s(e.$root.labels.subtotal))]) : e._e(),
                                                  e._v(" "),
                                                  "package" !== e.modalData.bookableType ? n("p", [e._v(e._s(e.$root.labels.discount_amount))]) : e._e(),
                                                  e._v(" "),
                                                  n("p", [e._v(e._s(e.$root.labels.paid))]),
                                                  e._v(" "),
                                                  n("p", [e._v(e._s(e.$root.labels.due))]),
                                                  e._v(" "),
                                                  n("p", { staticClass: "am-payment-total" }, [e._v(e._s(e.$root.labels.total))]),
                                              ]),
                                              e._v(" "),
                                              n("el-col", { attrs: { span: 12 } }, [
                                                  n("p", { staticClass: "am-semi-strong" }, [e._v(e._s(e.getFormattedPrice(e.finance.bookablePriceTotal)))]),
                                                  e._v(" "),
                                                  "package" !== e.modalData.bookableType ? n("p", { staticClass: "am-semi-strong" }, [e._v(e._s(e.getFormattedPrice(e.finance.extrasPriceTotal)))]) : e._e(),
                                                  e._v(" "),
                                                  "package" !== e.modalData.bookableType ? n("p", { staticClass: "am-semi-strong" }, [e._v(e._s(e.getFormattedPrice(e.finance.subTotal)))]) : e._e(),
                                                  e._v(" "),
                                                  "package" !== e.modalData.bookableType ? n("p", { staticClass: "am-semi-strong" }, [e._v(e._s(e.getFormattedPrice(e.finance.discountTotal)))]) : e._e(),
                                                  e._v(" "),
                                                  n("p", { staticClass: "am-semi-strong" }, [e._v(e._s(e.getFormattedPrice(e.payment.amount)))]),
                                                  e._v(" "),
                                                  n("p", { staticClass: "am-semi-strong" }, [e._v(e._s(e.getFormattedPrice(e.finance.due)))]),
                                                  e._v(" "),
                                                  n("p", { staticClass: "am-semi-strong am-payment-total" }, [e._v(e._s(e.getFormattedPrice(e.finance.total)))]),
                                              ]),
                                          ],
                                          1
                                      ),
                                  ],
                                  1
                              ),
                          ]),
                    e._v(" "),
                    !0 !== e.$root.settings.capabilities.canWriteOthers || e.dialogLoading
                        ? e._e()
                        : n("div", { staticClass: "am-dialog-footer" }, [
                              n(
                                  "div",
                                  { staticClass: "am-dialog-footer-actions" },
                                  [
                                      n("transition", { attrs: { name: "slide-vertical" } }, [
                                          n("div", { directives: [{ name: "show", rawName: "v-show", value: e.showDeleteConfirmation, expression: "showDeleteConfirmation" }], staticClass: "am-dialog-confirmation" }, [
                                              n("h3", [e._v(e._s(e.$root.labels.confirm_delete_payment))]),
                                              e._v(" "),
                                              n(
                                                  "div",
                                                  { staticClass: "align-left" },
                                                  [
                                                      n(
                                                          "el-button",
                                                          {
                                                              attrs: { size: "small" },
                                                              on: {
                                                                  click: function (t) {
                                                                      (e.showDeleteConfirmation = !e.showDeleteConfirmation), (e.showDeleteConfirmation = !1);
                                                                  },
                                                              },
                                                          },
                                                          [e._v("\n              " + e._s(e.$root.labels.cancel) + "\n            ")]
                                                      ),
                                                      e._v(" "),
                                                      n(
                                                          "el-button",
                                                          {
                                                              attrs: { size: "small", type: "primary" },
                                                              on: {
                                                                  click: function (t) {
                                                                      return e.deletePayment();
                                                                  },
                                                              },
                                                          },
                                                          [e._v("\n              " + e._s(e.$root.labels.delete) + "\n            ")]
                                                      ),
                                                  ],
                                                  1
                                              ),
                                          ]),
                                      ]),
                                      e._v(" "),
                                      n("transition", { attrs: { name: "slide-vertical" } }, [
                                          n(
                                              "div",
                                              { directives: [{ name: "show", rawName: "v-show", value: e.showUpdatePaymentAmount, expression: "showUpdatePaymentAmount" }], staticClass: "am-dialog-confirmation" },
                                              [
                                                  n(
                                                      "el-form",
                                                      { attrs: { "label-position": "top" } },
                                                      [
                                                          n("h3", [e._v(e._s(e.$root.labels.enter_new_payment_amount))]),
                                                          e._v(" "),
                                                          n(
                                                              "el-row",
                                                              { staticClass: "am-no-padding", attrs: { gutter: 24 } },
                                                              [
                                                                  n(
                                                                      "el-col",
                                                                      { attrs: { span: 12 } },
                                                                      [
                                                                          n(
                                                                              "el-form-item",
                                                                              { attrs: { label: e.$root.labels.payment + ":" } },
                                                                              [
                                                                                  n(
                                                                                      "money",
                                                                                      e._b(
                                                                                          {
                                                                                              staticClass: "el-input__inner",
                                                                                              model: {
                                                                                                  value: e.payment.amount,
                                                                                                  callback: function (t) {
                                                                                                      e.$set(e.payment, "amount", t);
                                                                                                  },
                                                                                                  expression: "payment.amount",
                                                                                              },
                                                                                          },
                                                                                          "money",
                                                                                          e.moneyComponentData,
                                                                                          !1
                                                                                      )
                                                                                  ),
                                                                              ],
                                                                              1
                                                                          ),
                                                                      ],
                                                                      1
                                                                  ),
                                                                  e._v(" "),
                                                                  n(
                                                                      "el-col",
                                                                      { attrs: { span: 12 } },
                                                                      [
                                                                          n(
                                                                              "el-form-item",
                                                                              { attrs: { label: e.$root.labels.status + ":" } },
                                                                              [
                                                                                  n(
                                                                                      "el-select",
                                                                                      {
                                                                                          model: {
                                                                                              value: e.payment.status,
                                                                                              callback: function (t) {
                                                                                                  e.$set(e.payment, "status", t);
                                                                                              },
                                                                                              expression: "payment.status",
                                                                                          },
                                                                                      },
                                                                                      e._l(e.paymentStatuses, function (t) {
                                                                                          return n("el-option", { key: t.value, staticClass: "am-appointment-status-option", attrs: { label: t.label, value: t.value } }, [
                                                                                              n("span", { staticClass: "am-appointment-status-symbol", class: t.value }),
                                                                                              e._v(" "),
                                                                                              n("span", [e._v(e._s(t.label))]),
                                                                                          ]);
                                                                                      }),
                                                                                      1
                                                                                  ),
                                                                              ],
                                                                              1
                                                                          ),
                                                                      ],
                                                                      1
                                                                  ),
                                                              ],
                                                              1
                                                          ),
                                                          e._v(" "),
                                                          n(
                                                              "div",
                                                              { staticClass: "align-left" },
                                                              [
                                                                  n(
                                                                      "el-button",
                                                                      {
                                                                          attrs: { size: "small" },
                                                                          on: {
                                                                              click: function (t) {
                                                                                  e.showUpdatePaymentAmount = !e.showUpdatePaymentAmount;
                                                                              },
                                                                          },
                                                                      },
                                                                      [e._v("\n                " + e._s(e.$root.labels.close) + "\n              ")]
                                                                  ),
                                                              ],
                                                              1
                                                          ),
                                                      ],
                                                      1
                                                  ),
                                              ],
                                              1
                                          ),
                                      ]),
                                      e._v(" "),
                                      n(
                                          "el-row",
                                          [
                                              n(
                                                  "el-col",
                                                  { staticClass: "align-left", attrs: { sm: 6 } },
                                                  [
                                                      !0 === e.$root.settings.capabilities.canDelete
                                                          ? n(
                                                                "el-button",
                                                                {
                                                                    staticClass: "am-button-icon",
                                                                    on: {
                                                                        click: function (t) {
                                                                            (e.showDeleteConfirmation = !e.showDeleteConfirmation), (e.showUpdatePaymentAmount = !1);
                                                                        },
                                                                    },
                                                                },
                                                                [n("img", { staticClass: "svg", attrs: { alt: e.$root.labels.delete, src: e.$root.getUrl + "public/img/delete.svg" } })]
                                                            )
                                                          : e._e(),
                                                      e._v(" "),
                                                      n(
                                                          "el-button",
                                                          {
                                                              staticClass: "am-button-icon",
                                                              on: {
                                                                  click: function (t) {
                                                                      (e.showUpdatePaymentAmount = !e.showUpdatePaymentAmount), (e.showDeleteConfirmation = !1);
                                                                  },
                                                              },
                                                          },
                                                          [n("img", { staticClass: "svg", attrs: { alt: e.$root.labels.edit, src: e.$root.getUrl + "public/img/edit.svg" } })]
                                                      ),
                                                  ],
                                                  1
                                              ),
                                              e._v(" "),
                                              n(
                                                  "el-col",
                                                  { staticClass: "align-right", attrs: { sm: 18 } },
                                                  [
                                                      n("el-button", { attrs: { type: "" }, on: { click: e.closeDialog } }, [e._v("\n            " + e._s(e.$root.labels.cancel) + "\n          ")]),
                                                      e._v(" "),
                                                      n(
                                                          "el-button",
                                                          {
                                                              staticClass: "am-dialog-create",
                                                              attrs: { type: "primary" },
                                                              on: {
                                                                  click: function (t) {
                                                                      return e.updatePayment();
                                                                  },
                                                              },
                                                          },
                                                          [e._v("\n            " + e._s(e.$root.labels.save) + "\n          ")]
                                                      ),
                                                  ],
                                                  1
                                              ),
                                          ],
                                          1
                                      ),
                                  ],
                                  1
                              ),
                          ]),
                ]);
            },
            staticRenderFns: [],
        };
    },
    896: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 }),
            (t.default = {
                props: { zoomSettings: null, paymentsSettings: null, generalSettings: null, settings: null, providers: null },
                data: function () {
                    var e = this;
                    return {
                        products: [],
                        searchCounter: 0,
                        loadingProducts: !1,
                        integrationsSettingsCollapse: null,
                        paymentsSettingsCollapse: null,
                        generalSettingsCollapse: null,
                        rules: {
                            redirectURLAfter: [
                                {
                                    validator: function (t, n, i) {
                                        e.clearValidation();
                                        var o = e.$refs.settings.model.redirectUrlAfterAppointment;
                                        "" === o || /^((http|https):\/\/)/.test(o) ? i() : i(new Error(e.$root.labels.enter_valid_url_warning));
                                    },
                                    trigger: "submit",
                                },
                            ],
                        },
                        errors: { redirectURLAfter: "" },
                        options: {
                            defaultAppointmentStatus: [
                                { label: this.$root.labels.pending, value: "pending" },
                                { label: this.$root.labels.approved, value: "approved" },
                            ],
                            minimumTime: [
                                { label: this.$root.labels.disabled, value: 0 },
                                { label: this.$root.labels.min10, value: 600 },
                                { label: this.$root.labels.min12, value: 720 },
                                { label: this.$root.labels.min15, value: 900 },
                                { label: this.$root.labels.min30, value: 1800 },
                                { label: this.$root.labels.min45, value: 2700 },
                                { label: this.$root.labels.h1, value: 3600 },
                                { label: this.$root.labels.h1min30, value: 5400 },
                                { label: this.$root.labels.h2, value: 7200 },
                                { label: this.$root.labels.h3, value: 10800 },
                                { label: this.$root.labels.h4, value: 14400 },
                                { label: this.$root.labels.h6, value: 21600 },
                                { label: this.$root.labels.h8, value: 28800 },
                                { label: this.$root.labels.h9, value: 32400 },
                                { label: this.$root.labels.h10, value: 36e3 },
                                { label: this.$root.labels.h11, value: 39600 },
                                { label: this.$root.labels.h12, value: 43200 },
                                { label: this.$root.labels.day1, value: 86400 },
                                { label: this.$root.labels.days2, value: 172800 },
                                { label: this.$root.labels.days3, value: 259200 },
                                { label: this.$root.labels.days4, value: 345600 },
                                { label: this.$root.labels.days5, value: 432e3 },
                                { label: this.$root.labels.days6, value: 518400 },
                                { label: this.$root.labels.week1, value: 604800 },
                                { label: this.$root.labels.weeks2, value: 1209600 },
                                { label: this.$root.labels.weeks3, value: 1814400 },
                                { label: this.$root.labels.weeks4, value: 2419200 },
                                { label: this.$root.labels.months3, value: 7884e3 },
                                { label: this.$root.labels.months6, value: 15768e3 },
                            ],
                        },
                    };
                },
                mounted: function () {
                    if ((this.setProducts(), null !== this.generalSettings && "numberOfDaysAvailableForBooking" in this.generalSettings && !this.generalSettings.numberOfDaysAvailableForBooking))
                        for (var e = document.getElementsByClassName("am-number-of-days"), t = 0; t < e.length; t++) e[t].getElementsByClassName("el-input__inner")[0].value = "";
                },
                computed: {
                    isZoomProvidersConnected: function () {
                        return (
                            null !== this.providers &&
                            !this.providers
                                .map(function (e) {
                                    return e.zoomUserId;
                                })
                                .includes(null) &&
                            0 !== this.providers.length
                        );
                    },
                },
                methods: {
                    setProducts: function () {
                        var e = this;
                        this.$root.settings.payments.wc.enabled &&
                            (this.$root.settings.payments.wc.enabled &&
                                this.paymentsSettings.wc.productId &&
                                0 ===
                                    this.$root.wcProducts.filter(function (t) {
                                        return t.id === e.paymentsSettings.wc.productId;
                                    }).length &&
                                this.fetchProducts({ id: this.paymentsSettings.wc.productId }, function (t) {
                                    t.length && e.products.push(t[0]);
                                }),
                            (this.products = this.$root.wcProducts));
                    },
                    selectedProduct: function (e) {
                        if (
                            0 ===
                            this.$root.wcProducts.filter(function (t) {
                                return t.id === e;
                            }).length
                        ) {
                            var t = this.products.find(function (t) {
                                return t.id === e;
                            });
                            t && this.$root.wcProducts.push(t);
                        }
                    },
                    fetchProducts: function (e, t) {
                        var n = this;
                        clearTimeout(this.searchProductsTimer),
                            (this.loadingProducts = !0),
                            this.searchCounter++,
                            (this.searchProductsTimer = setTimeout(function () {
                                var i = n.searchCounter;
                                n.$http
                                    .get(n.$root.getAjaxUrl + "/payment/wc/products", { params: e })
                                    .then(function (e) {
                                        i >= n.searchCounter &&
                                            t(
                                                e.data.data.products.sort(function (e, t) {
                                                    return e.name.toLowerCase() > t.name.toLowerCase() ? 1 : -1;
                                                })
                                            ),
                                            (n.loadingProducts = !1);
                                    })
                                    .catch(function (e) {
                                        n.loadingProducts = !1;
                                    });
                            }, 500));
                    },
                    searchProducts: function (e) {
                        var t = this;
                        e
                            ? this.fetchProducts({ name: e }, function (e) {
                                  t.products = e;
                              })
                            : (this.products = this.$root.wcProducts);
                    },
                    clearValidation: function () {},
                },
            });
    },
    897: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n(
                    "div",
                    { staticClass: "am-entity-settings" },
                    [
                        null !== e.generalSettings
                            ? n(
                                  "el-collapse",
                                  {
                                      model: {
                                          value: e.generalSettingsCollapse,
                                          callback: function (t) {
                                              e.generalSettingsCollapse = t;
                                          },
                                          expression: "generalSettingsCollapse",
                                      },
                                  },
                                  [
                                      n(
                                          "el-collapse-item",
                                          { staticClass: "am-setting-box", attrs: { name: "generalSettings" } },
                                          [
                                              n("template", { slot: "title" }, [
                                                  n("img", { staticClass: "svg", staticStyle: { "margin-right": "10px" }, attrs: { src: e.$root.getUrl + "public/img/setting.svg" } }),
                                                  e._v(" " + e._s(e.$root.labels.general) + "\n      "),
                                              ]),
                                              e._v(" "),
                                              null !== e.generalSettings && "defaultAppointmentStatus" in e.generalSettings
                                                  ? n(
                                                        "el-form-item",
                                                        { attrs: { label: "placeholder" } },
                                                        [
                                                            n(
                                                                "label",
                                                                { attrs: { slot: "label" }, slot: "label" },
                                                                [
                                                                    e._v("\n          " + e._s(e.$root.labels.default_appointment_status) + ":\n          "),
                                                                    n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                        n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.default_appointment_status) }, slot: "content" }),
                                                                        e._v(" "),
                                                                        n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                    ]),
                                                                ],
                                                                1
                                                            ),
                                                            e._v(" "),
                                                            n(
                                                                "el-select",
                                                                {
                                                                    attrs: {
                                                                        clearable: "",
                                                                        placeholder: e.options.defaultAppointmentStatus.find(function (t) {
                                                                            return t.value === e.$root.settings.general.defaultAppointmentStatus;
                                                                        }).label,
                                                                    },
                                                                    model: {
                                                                        value: e.generalSettings.defaultAppointmentStatus,
                                                                        callback: function (t) {
                                                                            e.$set(e.generalSettings, "defaultAppointmentStatus", t);
                                                                        },
                                                                        expression: "generalSettings.defaultAppointmentStatus",
                                                                    },
                                                                },
                                                                e._l(e.options.defaultAppointmentStatus, function (e) {
                                                                    return n("el-option", { key: e.value, attrs: { label: e.label, value: e.value } });
                                                                }),
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                              e._v(" "),
                                              null !== e.generalSettings && "minimumTimeRequirementPriorToBooking" in e.generalSettings
                                                  ? n(
                                                        "el-form-item",
                                                        { attrs: { label: "placeholder" } },
                                                        [
                                                            n(
                                                                "label",
                                                                { attrs: { slot: "label" }, slot: "label" },
                                                                [
                                                                    e._v("\n          " + e._s(e.$root.labels.minimum_time_before_booking) + ":\n          "),
                                                                    n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                        n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.minimum_time_before_booking_tooltip) }, slot: "content" }),
                                                                        e._v(" "),
                                                                        n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                    ]),
                                                                ],
                                                                1
                                                            ),
                                                            e._v(" "),
                                                            n(
                                                                "el-select",
                                                                {
                                                                    attrs: {
                                                                        clearable: "",
                                                                        "collapse-tags": "",
                                                                        placeholder: "Select",
                                                                        placeholder: e.options.minimumTime.find(function (t) {
                                                                            return t.value === e.$root.settings.general.minimumTimeRequirementPriorToBooking;
                                                                        }).label,
                                                                    },
                                                                    model: {
                                                                        value: e.generalSettings.minimumTimeRequirementPriorToBooking,
                                                                        callback: function (t) {
                                                                            e.$set(e.generalSettings, "minimumTimeRequirementPriorToBooking", t);
                                                                        },
                                                                        expression: "generalSettings.minimumTimeRequirementPriorToBooking",
                                                                    },
                                                                },
                                                                e._l(e.options.minimumTime, function (e) {
                                                                    return n("el-option", { key: e.value, attrs: { label: e.label, value: e.value } });
                                                                }),
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                              e._v(" "),
                                              null !== e.generalSettings && "minimumTimeRequirementPriorToCanceling" in e.generalSettings
                                                  ? n(
                                                        "el-form-item",
                                                        { attrs: { label: "placeholder" } },
                                                        [
                                                            n(
                                                                "label",
                                                                { attrs: { slot: "label" }, slot: "label" },
                                                                [
                                                                    e._v("\n          " + e._s(e.$root.labels.minimum_time_before_canceling) + ":\n          "),
                                                                    n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                        n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.minimum_time_before_canceling_tooltip) }, slot: "content" }),
                                                                        e._v(" "),
                                                                        n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                    ]),
                                                                ],
                                                                1
                                                            ),
                                                            e._v(" "),
                                                            n(
                                                                "el-select",
                                                                {
                                                                    attrs: {
                                                                        clearable: "",
                                                                        placeholder: e.options.minimumTime.find(function (t) {
                                                                            return t.value === e.$root.settings.general.minimumTimeRequirementPriorToCanceling;
                                                                        }).label,
                                                                    },
                                                                    model: {
                                                                        value: e.generalSettings.minimumTimeRequirementPriorToCanceling,
                                                                        callback: function (t) {
                                                                            e.$set(e.generalSettings, "minimumTimeRequirementPriorToCanceling", t);
                                                                        },
                                                                        expression: "generalSettings.minimumTimeRequirementPriorToCanceling",
                                                                    },
                                                                },
                                                                e._l(e.options.minimumTime, function (e) {
                                                                    return n("el-option", { key: e.value, attrs: { label: e.label, value: e.value } });
                                                                }),
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                              e._v(" "),
                                              null !== e.generalSettings && "minimumTimeRequirementPriorToRescheduling" in e.generalSettings
                                                  ? n(
                                                        "el-form-item",
                                                        { attrs: { label: "placeholder" } },
                                                        [
                                                            n(
                                                                "label",
                                                                { attrs: { slot: "label" }, slot: "label" },
                                                                [
                                                                    e._v("\n          " + e._s(e.$root.labels.minimum_time_before_rescheduling) + ":\n          "),
                                                                    n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                        n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.minimum_time_before_rescheduling_tooltip) }, slot: "content" }),
                                                                        e._v(" "),
                                                                        n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                    ]),
                                                                ],
                                                                1
                                                            ),
                                                            e._v(" "),
                                                            n(
                                                                "el-select",
                                                                {
                                                                    attrs: {
                                                                        clearable: "",
                                                                        placeholder: e.options.minimumTime.find(function (t) {
                                                                            return t.value === e.$root.settings.general.minimumTimeRequirementPriorToRescheduling;
                                                                        }).label,
                                                                    },
                                                                    model: {
                                                                        value: e.generalSettings.minimumTimeRequirementPriorToRescheduling,
                                                                        callback: function (t) {
                                                                            e.$set(e.generalSettings, "minimumTimeRequirementPriorToRescheduling", t);
                                                                        },
                                                                        expression: "generalSettings.minimumTimeRequirementPriorToRescheduling",
                                                                    },
                                                                },
                                                                e._l(e.options.minimumTime, function (e) {
                                                                    return n("el-option", { key: e.value, attrs: { label: e.label, value: e.value } });
                                                                }),
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                              e._v(" "),
                                              null !== e.generalSettings && "numberOfDaysAvailableForBooking" in e.generalSettings
                                                  ? n(
                                                        "el-form-item",
                                                        { attrs: { label: "placeholder" } },
                                                        [
                                                            n(
                                                                "label",
                                                                { attrs: { slot: "label" }, slot: "label" },
                                                                [
                                                                    e._v("\n          " + e._s(e.$root.labels.period_available_for_booking) + ":\n          "),
                                                                    n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                        n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.period_available_for_booking_tooltip) }, slot: "content" }),
                                                                        e._v(" "),
                                                                        n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                    ]),
                                                                ],
                                                                1
                                                            ),
                                                            e._v(" "),
                                                            n("el-input-number", {
                                                                staticClass: "am-number-of-days",
                                                                attrs: { min: 0, placeholder: e.$root.settings.general.numberOfDaysAvailableForBooking.toString() },
                                                                model: {
                                                                    value: e.generalSettings.numberOfDaysAvailableForBooking,
                                                                    callback: function (t) {
                                                                        e.$set(e.generalSettings, "numberOfDaysAvailableForBooking", t);
                                                                    },
                                                                    expression: "generalSettings.numberOfDaysAvailableForBooking",
                                                                },
                                                            }),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                              e._v(" "),
                                              null !== e.generalSettings && "redirectUrlAfterAppointment" in e.generalSettings
                                                  ? n(
                                                        "el-form-item",
                                                        { attrs: { label: "placeholder", prop: "redirectURLAfter", error: e.errors.redirectURLAfter } },
                                                        [
                                                            n(
                                                                "label",
                                                                { attrs: { slot: "label" }, slot: "label" },
                                                                [
                                                                    e._v("\n          " + e._s(e.$root.labels.redirect_url_after_appointment) + ":\n          "),
                                                                    n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                        n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.redirect_url_after_appointment_tooltip) }, slot: "content" }),
                                                                        e._v(" "),
                                                                        n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                    ]),
                                                                ],
                                                                1
                                                            ),
                                                            e._v(" "),
                                                            n("el-input", {
                                                                attrs: { "auto-complete": "off", placeholder: e.$root.settings.general.redirectUrlAfterAppointment.toString() },
                                                                on: {
                                                                    input: function (t) {
                                                                        return e.clearValidation();
                                                                    },
                                                                },
                                                                model: {
                                                                    value: e.generalSettings.redirectUrlAfterAppointment,
                                                                    callback: function (t) {
                                                                        e.$set(e.generalSettings, "redirectUrlAfterAppointment", t);
                                                                    },
                                                                    expression: "generalSettings.redirectUrlAfterAppointment",
                                                                },
                                                            }),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                          ],
                                          2
                                      ),
                                  ],
                                  1
                              )
                            : e._e(),
                        e._v(" "),
                        null !== e.paymentsSettings
                            ? n(
                                  "el-collapse",
                                  {
                                      staticClass: "am-entity-settings-payments",
                                      model: {
                                          value: e.paymentsSettingsCollapse,
                                          callback: function (t) {
                                              e.paymentsSettingsCollapse = t;
                                          },
                                          expression: "paymentsSettingsCollapse",
                                      },
                                  },
                                  [
                                      n(
                                          "el-collapse-item",
                                          { staticClass: "am-setting-box", attrs: { name: "paymentsSettings" } },
                                          [
                                              n("template", { slot: "title" }, [
                                                  n("img", { staticClass: "svg", staticStyle: { "margin-right": "10px" }, attrs: { src: e.$root.getUrl + "public/img/credit-card.svg" } }),
                                                  e._v(" " + e._s(e.$root.labels.payments) + "\n      "),
                                              ]),
                                              e._v(" "),
                                              e.$root.settings.payments.onSite
                                                  ? n(
                                                        "div",
                                                        { staticClass: "am-setting-box am-switch-box" },
                                                        [
                                                            n(
                                                                "el-row",
                                                                { attrs: { type: "flex", align: "middle", gutter: 24 } },
                                                                [
                                                                    n("el-col", { attrs: { span: 16 } }, [e._v("\n            " + e._s(e.$root.labels.on_site) + "\n          ")]),
                                                                    e._v(" "),
                                                                    n(
                                                                        "el-col",
                                                                        { staticClass: "align-right", attrs: { span: 8 } },
                                                                        [
                                                                            n("el-switch", {
                                                                                attrs: { "active-text": "", "inactive-text": "" },
                                                                                model: {
                                                                                    value: e.paymentsSettings.onSite,
                                                                                    callback: function (t) {
                                                                                        e.$set(e.paymentsSettings, "onSite", t);
                                                                                    },
                                                                                    expression: "paymentsSettings.onSite",
                                                                                },
                                                                            }),
                                                                        ],
                                                                        1
                                                                    ),
                                                                ],
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                              e._v(" "),
                                              e.$root.settings.payments.wc.enabled
                                                  ? n(
                                                        "el-col",
                                                        { attrs: { span: 24 } },
                                                        [
                                                            n(
                                                                "el-form-item",
                                                                { attrs: { label: "placeholder" } },
                                                                [
                                                                    n(
                                                                        "label",
                                                                        { attrs: { slot: "label" }, slot: "label" },
                                                                        [
                                                                            e._v("\n            " + e._s(e.$root.labels.wc_product) + ":\n            "),
                                                                            n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                                n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.wc_product_tooltip) }, slot: "content" }),
                                                                                e._v(" "),
                                                                                n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                            ]),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    n(
                                                                        "el-select",
                                                                        {
                                                                            attrs: { filterable: "", remote: "", "remote-method": e.searchProducts, loading: e.loadingProducts, placeholder: "" },
                                                                            on: { change: e.selectedProduct },
                                                                            model: {
                                                                                value: e.paymentsSettings.wc.productId,
                                                                                callback: function (t) {
                                                                                    e.$set(e.paymentsSettings.wc, "productId", t);
                                                                                },
                                                                                expression: "paymentsSettings.wc.productId",
                                                                            },
                                                                        },
                                                                        e._l(e.products, function (e) {
                                                                            return n("el-option", { key: e.id, attrs: { label: e.name, value: e.id } });
                                                                        }),
                                                                        1
                                                                    ),
                                                                ],
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                              e._v(" "),
                                              e.$root.settings.payments.payPal.enabled
                                                  ? n(
                                                        "div",
                                                        { staticClass: "am-setting-box am-switch-box" },
                                                        [
                                                            n(
                                                                "el-row",
                                                                { attrs: { type: "flex", align: "middle", gutter: 24 } },
                                                                [
                                                                    n("el-col", { attrs: { span: 16 } }, [n("img", { staticClass: "svg", attrs: { width: "60px", src: e.$root.getUrl + "public/img/payments/paypal-light.svg" } })]),
                                                                    e._v(" "),
                                                                    n(
                                                                        "el-col",
                                                                        { staticClass: "align-right", attrs: { span: 8 } },
                                                                        [
                                                                            n("el-switch", {
                                                                                attrs: { "active-text": "", "inactive-text": "" },
                                                                                model: {
                                                                                    value: e.paymentsSettings.payPal.enabled,
                                                                                    callback: function (t) {
                                                                                        e.$set(e.paymentsSettings.payPal, "enabled", t);
                                                                                    },
                                                                                    expression: "paymentsSettings.payPal.enabled",
                                                                                },
                                                                            }),
                                                                        ],
                                                                        1
                                                                    ),
                                                                ],
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                              e._v(" "),
                                              e.$root.settings.payments.stripe.enabled
                                                  ? n(
                                                        "div",
                                                        { staticClass: "am-setting-box am-switch-box" },
                                                        [
                                                            n(
                                                                "el-row",
                                                                { attrs: { type: "flex", align: "middle", gutter: 24 } },
                                                                [
                                                                    n("el-col", { attrs: { span: 16 } }, [n("img", { staticClass: "svg", attrs: { width: "40px", src: e.$root.getUrl + "public/img/payments/stripe.svg" } })]),
                                                                    e._v(" "),
                                                                    n(
                                                                        "el-col",
                                                                        { staticClass: "align-right", attrs: { span: 8 } },
                                                                        [
                                                                            n("el-switch", {
                                                                                attrs: { "active-text": "", "inactive-text": "" },
                                                                                model: {
                                                                                    value: e.paymentsSettings.stripe.enabled,
                                                                                    callback: function (t) {
                                                                                        e.$set(e.paymentsSettings.stripe, "enabled", t);
                                                                                    },
                                                                                    expression: "paymentsSettings.stripe.enabled",
                                                                                },
                                                                            }),
                                                                        ],
                                                                        1
                                                                    ),
                                                                ],
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                              e._v(" "),
                                              e.$root.settings.payments.mollie.enabled
                                                  ? n(
                                                        "div",
                                                        { staticClass: "am-setting-box am-switch-box" },
                                                        [
                                                            n(
                                                                "el-row",
                                                                { attrs: { type: "flex", align: "middle", gutter: 24 } },
                                                                [
                                                                    n("el-col", { attrs: { span: 16 } }, [n("img", { staticClass: "svg", attrs: { width: "60px", src: e.$root.getUrl + "public/img/payments/mollie.svg" } })]),
                                                                    e._v(" "),
                                                                    n(
                                                                        "el-col",
                                                                        { staticClass: "align-right", attrs: { span: 8 } },
                                                                        [
                                                                            n("el-switch", {
                                                                                attrs: { "active-text": "", "inactive-text": "" },
                                                                                model: {
                                                                                    value: e.paymentsSettings.mollie.enabled,
                                                                                    callback: function (t) {
                                                                                        e.$set(e.paymentsSettings.mollie, "enabled", t);
                                                                                    },
                                                                                    expression: "paymentsSettings.mollie.enabled",
                                                                                },
                                                                            }),
                                                                        ],
                                                                        1
                                                                    ),
                                                                ],
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    )
                                                  : e._e(),
                                              e._v(" "),
                                              e.$root.settings.payments.wc.enabled ||
                                              (e.paymentsSettings.onSite && (e.$root.settings.payments.onSite || !e.paymentsSettings.onSite)) ||
                                              (e.paymentsSettings.payPal.enabled && (e.$root.settings.payments.payPal.enabled || !e.paymentsSettings.payPal.enabled)) ||
                                              (e.paymentsSettings.stripe.enabled && (e.$root.settings.payments.stripe.enabled || !e.paymentsSettings.stripe.enabled)) ||
                                              (e.paymentsSettings.mollie.enabled && (e.$root.settings.payments.mollie.enabled || !e.paymentsSettings.mollie.enabled))
                                                  ? e._e()
                                                  : n("el-alert", { attrs: { type: "warning", "show-icon": "", title: "", description: e.$root.labels.payment_warning, closable: !1 } }),
                                          ],
                                          2
                                      ),
                                  ],
                                  1
                              )
                            : e._e(),
                        e._v(" "),
                        e.zoomSettings
                            ? n(
                                  "el-collapse",
                                  {
                                      model: {
                                          value: e.integrationsSettingsCollapse,
                                          callback: function (t) {
                                              e.integrationsSettingsCollapse = t;
                                          },
                                          expression: "integrationsSettingsCollapse",
                                      },
                                  },
                                  [
                                      n(
                                          "el-collapse-item",
                                          { staticClass: "am-setting-box", attrs: { name: "integrationsSettings" } },
                                          [
                                              n("template", { slot: "title" }, [
                                                  n("img", { staticClass: "svg", staticStyle: { "margin-right": "10px" }, attrs: { src: e.$root.getUrl + "public/img/web-hook.svg" } }),
                                                  e._v(" " + e._s(e.$root.labels.integrations_settings) + "\n      "),
                                              ]),
                                              e._v(" "),
                                              n(
                                                  "div",
                                                  { staticClass: "am-setting-box am-switch-box" },
                                                  [
                                                      n(
                                                          "el-row",
                                                          { attrs: { type: "flex", align: "middle", gutter: 24 } },
                                                          [
                                                              n("el-col", { attrs: { span: 16 } }, [e._v("\n            " + e._s(e.$root.labels.zoom) + "\n          ")]),
                                                              e._v(" "),
                                                              n(
                                                                  "el-col",
                                                                  { staticClass: "align-right", attrs: { span: 8 } },
                                                                  [
                                                                      n("el-switch", {
                                                                          attrs: { "active-text": "", "inactive-text": "" },
                                                                          model: {
                                                                              value: e.zoomSettings.enabled,
                                                                              callback: function (t) {
                                                                                  e.$set(e.zoomSettings, "enabled", t);
                                                                              },
                                                                              expression: "zoomSettings.enabled",
                                                                          },
                                                                      }),
                                                                  ],
                                                                  1
                                                              ),
                                                          ],
                                                          1
                                                      ),
                                                  ],
                                                  1
                                              ),
                                              e._v(" "),
                                              e.zoomSettings.enabled && !e.isZoomProvidersConnected
                                                  ? n("el-alert", { attrs: { type: "warning", "show-icon": "", title: "", description: e.$root.labels.zoom_warning, closable: !1 } })
                                                  : e._e(),
                                          ],
                                          2
                                      ),
                                  ],
                                  1
                              )
                            : e._e(),
                    ],
                    1
                );
            },
            staticRenderFns: [],
        };
    },
    905: function (e, t, n) {
        "use strict";
        var i = n(701),
            o = n(0),
            r = n.n(o),
            s = n(714),
            a = n(337);
        t.a = {
            mixins: [s.a, i.a, a.a],
            data: function () {
                return {
                    event: null,
                    bookingCreatedCount: 0,
                    attributes: [{ highlight: { backgroundColor: "#ddd" }, dates: [] }],
                    selectedRecurringDate: null,
                    recurringDates: null,
                    updateStatusDisabled: !1,
                    recurringPeriods: [
                        { label: this.$root.labels.recurring_type_weekly, value: "weekly" },
                        { label: this.$root.labels.recurring_type_monthly, value: "monthly" },
                        { label: this.$root.labels.recurring_type_yearly, value: "yearly" },
                    ],
                    colors: ["#1788FB", "#4BBEC6", "#FBC22D", "#FA3C52", "#D696B8", "#689BCA", "#26CC2B", "#FD7E35", "#E38587", "#774DFB"],
                    options: { fetched: !1, entities: { settings: { payments: { wc: null }, general: { usedLanguages: [] } }, employees: [], locations: [], tags: [] } },
                };
            },
            methods: {
                showDialogEditEvent: function (e) {
                    (this.dialogEvent = !0), (this.event = null), this.getEvent(e);
                },
                closeDialogEvent: function () {
                    this.dialogEvent = !1;
                },
                getInitEventObject: function () {
                    return {
                        id: 0,
                        parentId: null,
                        name: "",
                        periods: [{ id: null, eventId: null, range: null, startTime: null, endTime: null, bookings: [] }],
                        bookingStartsNow: !0,
                        bookingStartsDate: null,
                        bookingStartsTime: null,
                        bookingEndsAfter: !0,
                        bookingEndsDate: null,
                        bookingEndsTime: null,
                        bookingOpensRec: "same",
                        bookingClosesRec: "same",
                        isRecurring: !1,
                        recurring: { cycle: null, order: null, until: null },
                        bringingAnyone: !0,
                        bookMultipleTimes: !0,
                        maxCapacity: null,
                        price: 0,
                        locationId: null,
                        customLocation: null,
                        providers: this.getInitEventProviders(),
                        tags: [],
                        description: null,
                        gallery: [],
                        colorType: 2,
                        selectedColor: "#1788FB",
                        customColor: "#1788FB",
                        show: !0,
                        places: 0,
                        addToCalendarData: null,
                        showAddToCalendar: !1,
                        showEventDetails: !1,
                        showEventBooking: !1,
                        translations: null,
                        canceling: !1,
                        deleting: !1,
                        bookable: !0,
                        deposit: 0,
                        depositPayment: "disabled",
                        depositPerPerson: 1,
                        settings: this.getInitEntitySettings("event"),
                    };
                },
                showDialogNewEvent: function () {
                    (this.event = this.getInitEventObject()), (this.dialogEvent = !0);
                },
                getEvent: function (e) {
                    var t = this,
                        n = null,
                        i = "";
                    void 0 !== this.$store &&
                        void 0 !== this.$store.state.cabinet &&
                        "provider" === this.$store.state.cabinet.cabinetType &&
                        ((i = "" === this.$store.state.cabinet.timeZone ? "UTC" : this.$store.state.cabinet.timeZone),
                        (n = Object.assign(this.getAuthorizationHeaderObject(), { params: { source: "cabinet-" + this.$store.state.cabinet.cabinetType, timeZone: i } }))),
                        this.$http
                            .get(this.$root.getAjaxUrl + "/events/" + e, n)
                            .then(function (e) {
                                var n = Object.assign(t.getInitEventObject(), e.data.data.event),
                                    o = [],
                                    s = t;
                                e.data.data.event.periods.forEach(function (e) {
                                    "UTC" === i && ((e.periodStart = s.getConvertedUtcToLocalDateTime(e.periodStart)), (e.periodEnd = s.getConvertedUtcToLocalDateTime(e.periodEnd)));
                                    var t = r()(e.periodStart, "YYYY-MM-DD HH:mm:ss"),
                                        n = r()(e.periodEnd, "YYYY-MM-DD HH:mm:ss"),
                                        a = e.periodStart.split(" ")[1].substring(0, 5),
                                        l = e.periodEnd.split(" ")[1].substring(0, 5);
                                    "00:00" === l && (n.subtract(1, "days"), (l = "24:00")),
                                        o.push({ id: e.id ? e.id : null, eventId: e.eventId ? e.eventId : null, range: { start: t.toDate(), end: n.toDate() }, startTime: a, endTime: l, bookings: e.bookings, zoomMeeting: e.zoomMeeting });
                                }),
                                    (n.periods = o);
                                var a = [];
                                n.tags.forEach(function (e) {
                                    a.push(e.name);
                                }),
                                    (n.tags = a),
                                    null === n.recurring
                                        ? (n.recurring = { cycle: null, until: null, order: null })
                                        : ((n.isRecurring = !0),
                                          (n.recurring.cycleInterval = null === e.data.data.event.recurring.cycleInterval ? 1 : e.data.data.event.recurring.cycleInterval),
                                          (n.recurring.until = e.data.data.event.recurring.until ? r()(e.data.data.event.recurring.until).toDate() : null)),
                                    (n.bookingStartsNow = null === e.data.data.event.bookingOpens),
                                    (n.bookingStartsDate = e.data.data.event.bookingOpens ? r()(e.data.data.event.bookingOpens).toDate() : null),
                                    (n.bookingStartsTime = e.data.data.event.bookingOpens ? e.data.data.event.bookingOpens.split(" ")[1].substring(0, 5) : null),
                                    (n.bookingEndsAfter = null === e.data.data.event.bookingCloses),
                                    (n.bookingEndsDate = e.data.data.event.bookingCloses ? r()(e.data.data.event.bookingCloses).toDate() : null),
                                    (n.bookingEndsTime = e.data.data.event.bookingCloses ? e.data.data.event.bookingCloses.split(" ")[1].substring(0, 5) : null),
                                    (n.zoomUserId = e.data.data.event.zoomUserId);
                                var l = n.bookings;
                                l.forEach(function (e) {
                                    if (e.info) {
                                        var t = JSON.parse(e.info);
                                        (e.customer.firstName = t.firstName), (e.customer.lastName = t.lastName), (e.customer.phone = t.phone);
                                    } else {
                                        var n = s.getCustomerById(e.customerId);
                                        (e.customer.firstName = n.firstName), (e.customer.lastName = n.lastName), (e.customer.phone = n.phone);
                                    }
                                    (e.show = !0), (e.removing = !1), (e.checked = !1), ("[]" !== e.customFields && null !== e.customFields) || (e.customFields = "{}"), (e.customFields = JSON.parse(e.customFields));
                                });
                                var c = !1;
                                t.colors.forEach(function (e) {
                                    e === n.color && ((n.colorType = 1), (n.selectedColor = e), (n.customColor = e), (c = !0));
                                }),
                                    c || ((n.colorType = 2), (n.selectedColor = null), (n.customColor = n.color)),
                                    (n.gallery = n.gallery.sort(function (e, t) {
                                        return e.position > t.position ? 1 : -1;
                                    })),
                                    (t.eventBookings = l),
                                    t.setEntitySettings(n, "event"),
                                    (t.event = n),
                                    t.bookingCreatedCount++;
                            })
                            .catch(function (e) {
                                console.log(e.message);
                            });
                },
                getInitEventProviders: function () {
                    return "provider" === this.$root.settings.role && this.$root.settings.roles.allowWriteEvents ? this.options.entities.employees : [];
                },
                showDialogAttendees: function (e) {
                    (this.eventBookings = null), (this.dialogAttendees = !0), this.getEvent(e);
                },
            },
            watch: {},
        };
    },
    911: function (e, t, n) {
        var i = n(685)(n(912), n(916), !1, null, null, null);
        e.exports = i.exports;
    },
    912: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(701),
            o = n(337),
            r = n(713),
            s = n.n(r),
            a = n(692),
            l = n(881),
            c = n.n(l),
            u = n(913),
            d = n.n(u),
            p = n(687),
            h = n(691),
            f = n(689),
            m = n(695),
            g = n(686),
            v = n(705),
            y = n(755),
            b = (n.n(y), n(0)),
            w = n.n(b);
        t.default = {
            mixins: [i.a, o.a, a.a, p.a, h.a, f.a, m.a, g.a, v.a],
            props: {
                selectedTimeZone: "",
                event: null,
                employees: null,
                locations: null,
                tags: null,
                settings: null,
                isCabinet: { required: !1, default: !1, type: Boolean },
                showHeader: { required: !1, default: !0, type: Boolean },
                showGallery: { required: !1, default: !0, type: Boolean },
            },
            data: function () {
                var e = this;
                return {
                    monthDate: null,
                    monthlyOnRepeat: "first",
                    monthlyOnDay: "monday",
                    monthlyRepeat: "each",
                    weekDays: [
                        { label: this.$root.labels.weekday_monday, value: "monday" },
                        { label: this.$root.labels.weekday_tuesday, value: "tuesday" },
                        { label: this.$root.labels.weekday_wednesday, value: "wednesday" },
                        { label: this.$root.labels.weekday_thursday, value: "thursday" },
                        { label: this.$root.labels.weekday_friday, value: "friday" },
                        { label: this.$root.labels.weekday_saturday, value: "saturday" },
                        { label: this.$root.labels.weekday_sunday, value: "sunday" },
                    ],
                    activeColor: "white",
                    repeatIntervals: [],
                    depositEnabled: !1,
                    depositPayment: "fixed",
                    depositOptions: [
                        { value: "fixed", label: this.$root.labels.fixed_amount },
                        { value: "percentage", label: this.$root.labels.percentage },
                    ],
                    originRecurring: null,
                    originPeriods: null,
                    colors: ["#1788FB", "#4BBEC6", "#FBC22D", "#FA3C52", "#D696B8", "#689BCA", "#26CC2B", "#FD7E35", "#E38587", "#774DFB"],
                    monthlyWeekDayRepeat: [
                        { label: this.$root.labels.recurring_date_first, value: "first" },
                        { label: this.$root.labels.recurring_date_second, value: "second" },
                        { label: this.$root.labels.recurring_date_third, value: "third" },
                        { label: this.$root.labels.recurring_date_fourth, value: "fourth" },
                        { label: this.$root.labels.recurring_date_last, value: "last" },
                    ],
                    recurringPeriods: [
                        { label: this.$root.labels.recurring_type_daily, value: "daily" },
                        { label: this.$root.labels.recurring_type_weekly, value: "weekly" },
                        { label: this.$root.labels.recurring_type_monthly, value: "monthly" },
                        { label: this.$root.labels.recurring_type_yearly, value: "yearly" },
                    ],
                    zoomUsers: [],
                    dialogLoading: !0,
                    executeUpdate: !0,
                    mounted: !1,
                    rules: {
                        name: [{ required: !0, message: this.$root.labels.enter_event_name_warning, trigger: "submit" }],
                        range: [{ required: !0, message: this.$root.labels.select_date_warning, trigger: "submit" }],
                        startTime: [{ required: !0, message: this.$root.labels.select_time_warning, trigger: "submit" }],
                        endTime: [{ required: !0, message: this.$root.labels.select_time_warning, trigger: "submit" }],
                        bookingStartsDate: [
                            {
                                validator: function (t, n, i) {
                                    e.event.bookingStartsNow || n ? i() : i(new Error(e.$root.labels.select_date_warning));
                                },
                                trigger: "submit",
                            },
                        ],
                        bookingStartsTime: [
                            {
                                validator: function (t, n, i) {
                                    e.event.bookingStartsNow || n ? i() : i(new Error(e.$root.labels.select_time_warning));
                                },
                                trigger: "submit",
                            },
                        ],
                        bookingEndsDate: [
                            {
                                validator: function (t, n, i) {
                                    e.event.bookingEndsAfter || n ? i() : i(new Error(e.$root.labels.select_date_warning));
                                },
                                trigger: "submit",
                            },
                        ],
                        bookingEndsTime: [
                            {
                                validator: function (t, n, i) {
                                    e.event.bookingEndsAfter || n ? i() : i(new Error(e.$root.labels.select_time_warning));
                                },
                                trigger: "submit",
                            },
                        ],
                        recurringUntilDate: [
                            {
                                validator: function (t, n, i) {
                                    e.event.recurring.until || n ? i() : i(new Error(e.$root.labels.select_date_warning));
                                },
                                trigger: "submit",
                            },
                        ],
                        recurringCycle: [
                            {
                                validator: function (t, n, i) {
                                    e.event.recurring.cycle || n ? i() : i(new Error(e.$root.labels.select_cycle_warning));
                                },
                                trigger: "submit",
                            },
                        ],
                        recurringInterval: [
                            {
                                validator: function (t, n, i) {
                                    e.event.recurring.cycleInterval || n ? i() : i(new Error(e.$root.labels.select_interval_warning));
                                },
                                trigger: "submit",
                            },
                        ],
                    },
                    defaultEventTab: "details",
                };
            },
            methods: {
                calculateMinDate: function () {
                    if (this.event && this.event.periods && this.event.periods[0] && this.event.periods[0].range) {
                        var e = this.event.periods[0].range.start;
                        return new Date(e.getFullYear(), e.getMonth(), 1);
                    }
                },
                calculateMaxDate: function () {
                    if (this.event && this.event.periods && this.event.periods[0] && this.event.periods[0].range) {
                        var e = this.event.periods[0].range.start;
                        return new Date(e.getFullYear(), e.getMonth() + 1, 0);
                    }
                },
                depositEnabledChanged: function () {
                    this.depositEnabled ? (this.event.depositPayment = this.depositPayment) : (this.event.depositPayment = "disabled");
                },
                depositChanged: function () {
                    this.event.deposit > this.event.price && "fixed" === this.depositPayment && (this.event.deposit = this.event.price);
                },
                priceChanged: function () {
                    this.event.deposit > this.event.price && "fixed" === this.depositPayment && (this.event.deposit = this.event.price);
                },
                canManage: function () {
                    return "admin" === this.$root.settings.role || "manager" === this.$root.settings.role;
                },
                galleryUpdated: function (e) {
                    this.event.gallery = e;
                },
                validationFailCallback: function () {
                    this.defaultEventTab = "details";
                },
                tagsChanged: function (e) {
                    var t = e[e.length - 1];
                    -1 === this.tags.indexOf(t) && this.tags.push(t);
                },
                haveSaveConfirmation: function () {
                    return 0 !== this.event.id && this.originRecurring.until;
                },
                changeBookingStartsDate: function () {
                    null === this.event.bookingStartsTime && (this.event.bookingStartsTime = "00:00");
                },
                changeBookingEndsDate: function () {
                    null === this.event.bookingEndsTime && (this.event.bookingEndsTime = "00:00");
                },
                instantiateDialog: function () {
                    null !== this.event &&
                        !0 === this.executeUpdate &&
                        ((this.originPeriods = JSON.parse(JSON.stringify(this.event.periods))),
                        (this.originRecurring = JSON.parse(JSON.stringify(this.event.recurring))),
                        this.setRecurringValues(),
                        this.event.recurring && "monthly" === this.event.recurring.cycle && this.event.recurring.monthlyRepeat && (this.monthlyRepeat = this.event.recurring.monthlyRepeat),
                        this.event.recurring && "monthly" === this.event.recurring.cycle && this.event.recurring.monthlyOnRepeat && (this.monthlyOnRepeat = this.event.recurring.monthlyOnRepeat),
                        this.event.recurring && "monthly" === this.event.recurring.cycle && this.event.recurring.monthlyOnDay && (this.monthlyOnDay = this.event.recurring.monthlyOnDay),
                        this.event.recurring &&
                            "monthly" === this.event.recurring.cycle &&
                            "each" === this.event.recurring.monthlyRepeat &&
                            (this.event.recurring.monthDate
                                ? (this.event.recurring.monthDate = new Date(w()(this.event.recurring.monthDate).format("YYYY-MM-DD")))
                                : (this.event.recurring.monthDate = new Date(w()(this.event.periods[0].range.start).format("YYYY-MM-DD")))),
                        this.event.periods[0].range && w()(this.event.periods[0].range.start).format("YYYY-MM-DD HH:mm:ss") === this.event.bookingCloses && (this.event.bookingEndsAfter = !0),
                        "disabled" === this.event.depositPayment ? (this.depositEnabled = !1) : ((this.depositEnabled = !0), (this.depositPayment = this.event.depositPayment)),
                        (this.mounted = !0),
                        (this.executeUpdate = !1),
                        (this.dialogLoading = !1)),
                        this.event && this.isCabinet && ((this.activeColor = "transparent"), "disabled" === this.event.depositPayment ? (this.depositEnabled = !1) : (this.depositPayment = this.event.depositPayment));
                },
                getZoomUsers: function () {
                    var e = this,
                        t = null;
                    this.isCabinet && (t = Object.assign(this.getAuthorizationHeaderObject(), { params: { source: "cabinet-" + this.$store.state.cabinet.cabinetType } })),
                        this.$http
                            .get(this.$root.getAjaxUrl + "/zoom/users", t)
                            .then(function (t) {
                                "data" in t.data && "users" in t.data.data && (e.zoomUsers = t.data.data.users);
                            })
                            .catch(function (t) {
                                e.notify(e.$root.labels.error, t.message, "error");
                            });
                },
                clearValidation: function () {
                    void 0 !== this.$refs.event && this.$refs.event.clearValidate();
                },
                getParsedEntity: function (e) {
                    var t = this,
                        n = [];
                    !this.originRecurring.until && this.event.isRecurring && (e = !0),
                        this.event.periods.forEach(function (e, i) {
                            var o = t.getDateString(e.range.start) + " " + e.startTime + ":00",
                                r = t.getDateString(e.range.end) + " " + e.endTime + ":00";
                            "UTC" === t.selectedTimeZone && ((o = w()(o, "YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD HH:mm")), (r = w()(r, "YYYY-MM-DD HH:mm").utc().format("YYYY-MM-DD HH:mm"))),
                                void 0 !== t.originPeriods[i] && ((e.id = t.originPeriods[i].id), (e.eventId = t.originPeriods[i].eventId)),
                                n.push({ id: e.id, eventId: t.event.id ? t.event.id : null, periodStart: o, periodEnd: r });
                        });
                    var i = [];
                    this.event.tags.forEach(function (e) {
                        i.push({ name: e });
                    });
                    var o = JSON.parse(JSON.stringify(this.event.settings));
                    o.payments.wc.productId === this.$root.settings.payments.wc.productId && delete o.payments.wc, this.depositEnabled ? (this.event.depositPayment = this.depositPayment) : (this.event.depositPayment = "disabled");
                    var r = this.monthDate ? this.monthDate : this.event.recurring.monthDate ? this.event.recurring.monthDate : null;
                    return {
                        id: this.event.id,
                        parentId: this.event.parentId,
                        name: this.event.name,
                        periods: n,
                        utc: "UTC" === this.selectedTimeZone,
                        timeZone: "UTC" === this.selectedTimeZone ? null : this.selectedTimeZone,
                        bookingOpens: this.event.bookingStartsNow ? null : this.getDateString(this.event.bookingStartsDate) + " " + this.event.bookingStartsTime + ":00",
                        bookingCloses: this.event.bookingEndsAfter ? null : this.getDateString(this.event.bookingEndsDate) + " " + this.event.bookingEndsTime + ":00",
                        bookingOpensRec: this.event.bookingOpensRec,
                        bookingClosesRec: this.event.bookingClosesRec,
                        recurring:
                            this.event.isRecurring && this.event.recurring
                                ? {
                                      monthlyRepeat: this.monthlyRepeat,
                                      monthDate: "each" === this.monthlyRepeat && r ? this.getDateString(r) + " " + this.getTimeString(n[0].periodStart) + ":00" : null,
                                      monthlyOnRepeat: "on" === this.monthlyRepeat ? this.monthlyOnRepeat : null,
                                      monthlyOnDay: "on" === this.monthlyRepeat ? this.monthlyOnDay : null,
                                      cycleInterval: this.event.recurring.cycleInterval,
                                      cycle: this.event.recurring.cycle,
                                      order: this.event.recurring.order,
                                      until: this.event.recurring.until ? this.getDateString(this.event.recurring.until) + " " + this.getTimeString(this.event.recurring.until) + ":00" : null,
                                  }
                                : null,
                        bringingAnyone: this.event.bringingAnyone,
                        bookMultipleTimes: this.event.bookMultipleTimes,
                        maxCapacity: this.event.maxCapacity,
                        price: this.event.price,
                        tags: i,
                        providers: this.event.providers,
                        description: this.event.description,
                        gallery: this.event.gallery,
                        color: 1 === this.event.colorType ? this.event.selectedColor : this.event.customColor,
                        show: this.event.show,
                        locationId: null !== this.event.locationId ? this.event.locationId : null,
                        customLocation: null === this.event.locationId ? this.event.customLocation : null,
                        applyGlobally: e,
                        settings: JSON.stringify(o),
                        zoomUserId: this.event.zoomUserId,
                        translations: this.event.translations,
                        deposit: this.event.deposit,
                        depositPayment: this.event.depositPayment,
                        depositPerPerson: this.event.depositPerPerson,
                    };
                },
                errorCallback: function (e) {},
                closeDialog: function () {
                    this.$emit("closeDialog");
                },
                addEventDate: function () {
                    this.event.periods.push({ id: null, eventId: null, range: { start: new Date(), end: new Date() }, startTime: null, endTime: null, bookings: [] });
                },
                deleteEventDate: function (e) {
                    this.event.periods.splice(e, 1);
                },
                changeEventColor: function (e) {
                    (this.event.colorType = 1),
                        Array.from(e.target.parentNode.children).forEach(function (e) {
                            e.className.includes("color-active") && e.classList.remove("color-active");
                        }),
                        (e.target.className = e.target.className + " color-active"),
                        (this.event.selectedColor = e.target.getAttribute("data-color"));
                },
                showDialogTranslate: function (e) {
                    this.$emit("showDialogTranslate", e);
                },
                setRecurringValues: function () {
                    this.repeatIntervals = [];
                    var e = "",
                        t = "",
                        n = 6;
                    switch (this.event.recurring.cycle) {
                        case "daily":
                            (e = this.$root.labels.day), (t = this.$root.labels.days);
                            break;
                        case "weekly":
                            (e = this.$root.labels.week), (t = this.$root.labels.weeks), (n = 6);
                            break;
                        case "monthly":
                            (e = this.$root.labels.month), (t = this.$root.labels.months), (n = 12);
                            break;
                        case "yearly":
                            (e = this.$root.labels.year), (t = this.$root.labels.years), (n = 5);
                            break;
                        default:
                            return void (this.repeatIntervals = []);
                    }
                    this.repeatIntervals = this.getRepeatIntervalLabels(e, t, n);
                },
            },
            mounted: function () {
                this.instantiateDialog(), this.$root.settings.zoom.enabled && this.getZoomUsers();
            },
            updated: function () {
                this.instantiateDialog();
            },
            components: { EntitySettings: c.a, DialogActions: s.a, Money: y.Money, Gallery: d.a },
            computed: {
                monthDateComp: {
                    get: function () {
                        return this.event.recurring.monthDate
                            ? this.event.recurring.monthDate
                            : (this.monthDate || (this.event && this.event.periods && this.event.periods[0] && this.event.periods[0].range && (this.monthDate = this.event.periods[0].range.start)), this.monthDate);
                    },
                    set: function (e) {
                        this.monthDate = e;
                    },
                },
            },
        };
    },
    913: function (e, t, n) {
        var i = n(685)(n(914), n(915), !1, null, null, null);
        e.exports = i.exports;
    },
    914: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(687),
            o = n(791),
            r = n.n(o),
            s = n(792),
            a = n.n(s);
        t.default = {
            mixins: [i.a],
            props: { label: null, gallery: null },
            data: function () {
                return { clonedGallery: null, draggableOptions: { animation: 150, group: "people", handle: ".am-drag-handle" } };
            },
            mounted: function () {
                this.clonedGallery = JSON.parse(JSON.stringify(this.gallery));
            },
            methods: {
                galleryPictureSelected: function (e, t) {
                    this.clonedGallery.push({ id: 0, pictureFullPath: e, pictureThumbPath: t, position: this.clonedGallery.length + 1 }), this.$emit("galleryUpdated", this.clonedGallery);
                },
                deleteGalleryImage: function (e) {
                    this.clonedGallery.splice(e, 1);
                    for (var t = 0; t < this.clonedGallery.length; t++) this.clonedGallery[t].position = t + 1;
                    this.$emit("galleryUpdated", this.clonedGallery);
                },
                dropGalleryImage: function (e) {
                    if (e.newIndex !== e.oldIndex) {
                        var t = this;
                        this.clonedGallery.forEach(function (e) {
                            e.position = t.clonedGallery.indexOf(e) + 1;
                        });
                    }
                    this.$emit("galleryUpdated", this.clonedGallery);
                },
            },
            components: { PictureUpload: a.a, Draggable: r.a },
        };
    },
    915: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n(
                    "div",
                    { staticClass: "am-gallery-images" },
                    [
                        n("div", { staticClass: "am-event-section-title" }, [e._v(e._s(e.label))]),
                        e._v(" "),
                        n(
                            "el-row",
                            { attrs: { gutter: 24 } },
                            [
                                n(
                                    "draggable",
                                    {
                                        attrs: { options: e.draggableOptions },
                                        on: { end: e.dropGalleryImage },
                                        model: {
                                            value: e.clonedGallery,
                                            callback: function (t) {
                                                e.clonedGallery = t;
                                            },
                                            expression: "clonedGallery",
                                        },
                                    },
                                    e._l(e.clonedGallery, function (t, i) {
                                        return n("el-col", { key: i, attrs: { sm: 12 } }, [
                                            n("div", { staticClass: "am-gallery-image-wrapper" }, [
                                                n("div", { staticClass: "am-gallery-image", style: { "background-image": "url(" + t.pictureFullPath + ")" } }, [
                                                    n("i", {
                                                        staticClass: "el-icon-delete",
                                                        on: {
                                                            click: function (t) {
                                                                return e.deleteGalleryImage(i);
                                                            },
                                                        },
                                                    }),
                                                ]),
                                                e._v(" "),
                                                n("div", { staticClass: "am-gallery-image-title" }, [
                                                    n("span", { staticClass: "am-drag-handle" }, [n("img", { staticClass: "svg", attrs: { width: "20px", src: e.$root.getUrl + "public/img/burger-menu.svg" } })]),
                                                    e._v(" "),
                                                    n("span", [e._v(e._s(t.pictureFullPath.substring(t.pictureFullPath.lastIndexOf("/") + 1)))]),
                                                ]),
                                            ]),
                                        ]);
                                    }),
                                    1
                                ),
                                e._v(" "),
                                n("el-col", { attrs: { sm: 12 } }, [
                                    n("div", { staticClass: "am-gallery-image-add" }, [
                                        n("div", [n("picture-upload", { attrs: { multiple: !0, "edited-entity": null, "entity-name": "gallery" }, on: { pictureSelected: e.galleryPictureSelected } })], 1),
                                    ]),
                                ]),
                            ],
                            1
                        ),
                    ],
                    1
                );
            },
            staticRenderFns: [],
        };
    },
    916: function (e, t) {
        e.exports = {
            render: function () {
                var e = this,
                    t = e.$createElement,
                    n = e._self._c || t;
                return n(
                    "div",
                    { staticClass: "am-dialog-event-inner" },
                    [
                        n("div", { directives: [{ name: "show", rawName: "v-show", value: e.dialogLoading, expression: "dialogLoading" }], staticClass: "am-dialog-loader" }, [
                            n("div", { staticClass: "am-dialog-loader-content" }, [n("img", { attrs: { src: e.$root.getUrl + "public/img/spinner.svg" } }), e._v(" "), n("p", [e._v(e._s(e.$root.labels.loader_message))])]),
                        ]),
                        e._v(" "),
                        e.event && !e.dialogLoading
                            ? n(
                                  "div",
                                  { staticClass: "am-dialog-scrollable", class: { "am-edit": 0 !== e.event.id } },
                                  [
                                      e.showHeader
                                          ? n(
                                                "div",
                                                { staticClass: "am-dialog-header" },
                                                [
                                                    n(
                                                        "el-row",
                                                        [
                                                            n("el-col", { attrs: { span: 18 } }, [e.event && 0 !== e.event.id ? n("h2", [e._v(e._s(e.$root.labels.edit_event))]) : n("h2", [e._v(e._s(e.$root.labels.new_event))])]),
                                                            e._v(" "),
                                                            n(
                                                                "el-col",
                                                                { staticClass: "align-right", attrs: { span: 6 } },
                                                                [n("el-button", { staticClass: "am-dialog-close", attrs: { size: "small", icon: "el-icon-close" }, on: { click: e.closeDialog } })],
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    ),
                                                ],
                                                1
                                            )
                                          : e._e(),
                                      e._v(" "),
                                      e.mounted
                                          ? n(
                                                "el-form",
                                                { ref: "event", attrs: { model: e.event, "label-position": "top" } },
                                                [
                                                    n(
                                                        "el-tabs",
                                                        {
                                                            model: {
                                                                value: e.defaultEventTab,
                                                                callback: function (t) {
                                                                    e.defaultEventTab = t;
                                                                },
                                                                expression: "defaultEventTab",
                                                            },
                                                        },
                                                        [
                                                            n(
                                                                "el-tab-pane",
                                                                { attrs: { label: e.$root.labels.event_details, name: "details" } },
                                                                [
                                                                    n(
                                                                        "el-form-item",
                                                                        {
                                                                            attrs: { prop: "name", rules: e.rules.name },
                                                                            on: {
                                                                                input: function (t) {
                                                                                    return e.clearValidation();
                                                                                },
                                                                            },
                                                                        },
                                                                        [
                                                                            e._v("\n              " + e._s(e.$root.labels.event_name) + "\n              "),
                                                                            e.isCabinet
                                                                                ? e._e()
                                                                                : n(
                                                                                      "div",
                                                                                      {
                                                                                          staticClass: "am-event-translate",
                                                                                          on: {
                                                                                              click: function (t) {
                                                                                                  return e.showDialogTranslate("name");
                                                                                              },
                                                                                          },
                                                                                      },
                                                                                      [
                                                                                          n("img", { staticClass: "am-dialog-translate-svg", attrs: { width: "16px", src: e.$root.getUrl + "public/img/translate.svg" } }),
                                                                                          e._v("\n                " + e._s(e.$root.labels.translate) + "\n              "),
                                                                                      ]
                                                                                  ),
                                                                            e._v(" "),
                                                                            n("el-input", {
                                                                                staticStyle: { "margin-top": "5px !important" },
                                                                                attrs: { placeholder: e.$root.labels.enter_event_name },
                                                                                on: {
                                                                                    change: function (t) {
                                                                                        return e.trimProperty(e.event, "name");
                                                                                    },
                                                                                },
                                                                                model: {
                                                                                    value: e.event.name,
                                                                                    callback: function (t) {
                                                                                        e.$set(e.event, "name", t);
                                                                                    },
                                                                                    expression: "event.name",
                                                                                },
                                                                            }),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    n(
                                                                        "div",
                                                                        { staticClass: "am-event-dates am-section-grey" },
                                                                        [
                                                                            e._l(e.event.periods, function (t, i) {
                                                                                return n(
                                                                                    "div",
                                                                                    { key: i, staticClass: "am-event-date" },
                                                                                    [
                                                                                        n(
                                                                                            "el-row",
                                                                                            { attrs: { gutter: 10 } },
                                                                                            [
                                                                                                n("el-col", { attrs: { sm: 6 } }, [n("p", [e._v(e._s(e.$root.labels.event_period_dates))])]),
                                                                                                e._v(" "),
                                                                                                n(
                                                                                                    "el-col",
                                                                                                    { staticClass: "v-calendar-column", attrs: { sm: 16 } },
                                                                                                    [
                                                                                                        n(
                                                                                                            "el-form-item",
                                                                                                            { attrs: { prop: "periods." + i + ".range", rules: e.rules.range } },
                                                                                                            [
                                                                                                                n("v-date-picker", {
                                                                                                                    staticStyle: { "margin-bottom": "16px" },
                                                                                                                    attrs: {
                                                                                                                        attributes: [{ dates: { start: e.getNowDate() }, eventDateIndex: i }],
                                                                                                                        "is-double-paned": !1,
                                                                                                                        mode: "range",
                                                                                                                        "popover-visibility": "focus",
                                                                                                                        "popover-direction": "bottom",
                                                                                                                        "popover-align": e.screenWidth < 768 ? "center" : "right",
                                                                                                                        "tint-color": e.isCabinet ? e.$root.settings.customization.primaryColor : "#d52878",
                                                                                                                        "show-day-popover": !1,
                                                                                                                        "input-props": { class: "el-input__inner" },
                                                                                                                        "is-expanded": !1,
                                                                                                                        "is-required": !1,
                                                                                                                        "is-read-only": !0,
                                                                                                                        "input-class": "el-input__inner",
                                                                                                                        formats: e.vCalendarFormats,
                                                                                                                        "available-dates": { start: e.getNowDate() },
                                                                                                                    },
                                                                                                                    model: {
                                                                                                                        value: t.range,
                                                                                                                        callback: function (n) {
                                                                                                                            e.$set(t, "range", n);
                                                                                                                        },
                                                                                                                        expression: "period.range",
                                                                                                                    },
                                                                                                                }),
                                                                                                            ],
                                                                                                            1
                                                                                                        ),
                                                                                                    ],
                                                                                                    1
                                                                                                ),
                                                                                            ],
                                                                                            1
                                                                                        ),
                                                                                        e._v(" "),
                                                                                        n(
                                                                                            "el-row",
                                                                                            { attrs: { gutter: 10 } },
                                                                                            [
                                                                                                n("el-col", { attrs: { sm: 6 } }, [n("p", [e._v(e._s(e.$root.labels.event_period_time))])]),
                                                                                                e._v(" "),
                                                                                                n(
                                                                                                    "el-col",
                                                                                                    { staticClass: "am-event-period-start", attrs: { sm: 8 } },
                                                                                                    [
                                                                                                        n(
                                                                                                            "el-form-item",
                                                                                                            { attrs: { prop: "periods." + i + ".startTime", rules: e.rules.startTime } },
                                                                                                            [
                                                                                                                n("el-time-select", {
                                                                                                                    attrs: { "picker-options": e.getTimeSelectOptionsWithLimits(null, e.isCabinet ? null : t.endTime), size: "large" },
                                                                                                                    model: {
                                                                                                                        value: t.startTime,
                                                                                                                        callback: function (n) {
                                                                                                                            e.$set(t, "startTime", n);
                                                                                                                        },
                                                                                                                        expression: "period.startTime",
                                                                                                                    },
                                                                                                                }),
                                                                                                            ],
                                                                                                            1
                                                                                                        ),
                                                                                                    ],
                                                                                                    1
                                                                                                ),
                                                                                                e._v(" "),
                                                                                                n(
                                                                                                    "el-col",
                                                                                                    { attrs: { sm: 8 } },
                                                                                                    [
                                                                                                        n(
                                                                                                            "el-form-item",
                                                                                                            { attrs: { prop: "periods." + i + ".endTime", rules: e.rules.endTime } },
                                                                                                            [
                                                                                                                n("el-time-select", {
                                                                                                                    attrs: { "picker-options": e.getTimeSelectOptionsWithLimits(e.isCabinet ? null : t.startTime, null), size: "large" },
                                                                                                                    model: {
                                                                                                                        value: t.endTime,
                                                                                                                        callback: function (n) {
                                                                                                                            e.$set(t, "endTime", n);
                                                                                                                        },
                                                                                                                        expression: "period.endTime",
                                                                                                                    },
                                                                                                                }),
                                                                                                            ],
                                                                                                            1
                                                                                                        ),
                                                                                                    ],
                                                                                                    1
                                                                                                ),
                                                                                            ],
                                                                                            1
                                                                                        ),
                                                                                        e._v(" "),
                                                                                        e.$root.settings.zoom.enabled && t.zoomMeeting
                                                                                            ? n(
                                                                                                  "el-row",
                                                                                                  { attrs: { gutter: 10 } },
                                                                                                  [
                                                                                                      "customer" !== e.$root.settings.role
                                                                                                          ? n("el-col", { attrs: { sm: 12 } }, [n("p", [e._v(e._s(e.$root.labels.zoom_start_link))])])
                                                                                                          : e._e(),
                                                                                                      e._v(" "),
                                                                                                      "customer" !== e.$root.settings.role
                                                                                                          ? n("el-col", { attrs: { sm: 12 } }, [
                                                                                                                n("p", [
                                                                                                                    n("a", { staticClass: "am-link", attrs: { href: t.zoomMeeting.startUrl } }, [
                                                                                                                        e._v(e._s(e.$root.labels.zoom_click_to_start)),
                                                                                                                    ]),
                                                                                                                ]),
                                                                                                            ])
                                                                                                          : e._e(),
                                                                                                      e._v(" "),
                                                                                                      n("el-col", { attrs: { sm: 12 } }, [n("p", [e._v(e._s(e.$root.labels.zoom_join_link))])]),
                                                                                                      e._v(" "),
                                                                                                      n("el-col", { attrs: { sm: 12 } }, [
                                                                                                          n("p", [n("a", { staticClass: "am-link", attrs: { href: t.zoomMeeting.joinUrl } }, [e._v(e._s(t.zoomMeeting.joinUrl))])]),
                                                                                                      ]),
                                                                                                  ],
                                                                                                  1
                                                                                              )
                                                                                            : e._e(),
                                                                                        e._v(" "),
                                                                                        n(
                                                                                            "div",
                                                                                            {
                                                                                                directives: [
                                                                                                    {
                                                                                                        name: "show",
                                                                                                        rawName: "v-show",
                                                                                                        value: e.event.periods.length > 1 && 0 === t.bookings.length,
                                                                                                        expression: "event.periods.length > 1 && period.bookings.length === 0",
                                                                                                    },
                                                                                                ],
                                                                                                staticClass: "am-delete-element disabled",
                                                                                                on: {
                                                                                                    click: function (t) {
                                                                                                        return e.deleteEventDate(i);
                                                                                                    },
                                                                                                },
                                                                                            },
                                                                                            [n("i", { staticClass: "el-icon-minus" })]
                                                                                        ),
                                                                                    ],
                                                                                    1
                                                                                );
                                                                            }),
                                                                            e._v(" "),
                                                                            n(
                                                                                "div",
                                                                                { staticClass: "am-add-event-date" },
                                                                                [
                                                                                    n(
                                                                                        "el-button",
                                                                                        {
                                                                                            attrs: { size: "small", type: "primary" },
                                                                                            on: {
                                                                                                click: function (t) {
                                                                                                    return e.addEventDate();
                                                                                                },
                                                                                            },
                                                                                        },
                                                                                        [e._v(e._s(e.$root.labels.add_date))]
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                        ],
                                                                        2
                                                                    ),
                                                                    e._v(" "),
                                                                    n(
                                                                        "div",
                                                                        { staticClass: "am-section-grey" },
                                                                        [
                                                                            n(
                                                                                "el-checkbox",
                                                                                {
                                                                                    model: {
                                                                                        value: e.event.isRecurring,
                                                                                        callback: function (t) {
                                                                                            e.$set(e.event, "isRecurring", t);
                                                                                        },
                                                                                        expression: "event.isRecurring",
                                                                                    },
                                                                                },
                                                                                [e._v(e._s(e.$root.labels.event_recurring_enabled))]
                                                                            ),
                                                                            e._v(" "),
                                                                            e.event.isRecurring
                                                                                ? n(
                                                                                      "div",
                                                                                      { staticClass: "am-recurring-event" },
                                                                                      [
                                                                                          n(
                                                                                              "el-row",
                                                                                              { attrs: { gutter: 10 } },
                                                                                              [
                                                                                                  n("el-col", { attrs: { lg: 10, md: 10, sm: 24 } }, [n("p", [e._v(e._s(e.$root.labels.event_recurring_period))])]),
                                                                                                  e._v(" "),
                                                                                                  n(
                                                                                                      "el-col",
                                                                                                      { attrs: { lg: 14, md: 14, sm: 24 } },
                                                                                                      [
                                                                                                          n(
                                                                                                              "el-form-item",
                                                                                                              { attrs: { prop: "recurringCycle", rules: e.rules.recurringCycle } },
                                                                                                              [
                                                                                                                  n(
                                                                                                                      "el-select",
                                                                                                                      {
                                                                                                                          style: { backgroundColor: e.activeColor },
                                                                                                                          attrs: {
                                                                                                                              placeholder: e.$root.labels.select_repeat_period,
                                                                                                                              disabled: !(0 === e.event.id || (0 !== e.event.id && null === e.originRecurring.cycle)),
                                                                                                                              clearable: "",
                                                                                                                              filterable: "",
                                                                                                                          },
                                                                                                                          on: { change: e.setRecurringValues },
                                                                                                                          model: {
                                                                                                                              value: e.event.recurring.cycle,
                                                                                                                              callback: function (t) {
                                                                                                                                  e.$set(e.event.recurring, "cycle", t);
                                                                                                                              },
                                                                                                                              expression: "event.recurring.cycle",
                                                                                                                          },
                                                                                                                      },
                                                                                                                      e._l(e.recurringPeriods, function (e) {
                                                                                                                          return n("el-option", { key: e.value, attrs: { label: e.label, value: e.value } });
                                                                                                                      }),
                                                                                                                      1
                                                                                                                  ),
                                                                                                              ],
                                                                                                              1
                                                                                                          ),
                                                                                                      ],
                                                                                                      1
                                                                                                  ),
                                                                                              ],
                                                                                              1
                                                                                          ),
                                                                                          e._v(" "),
                                                                                          n(
                                                                                              "el-row",
                                                                                              { attrs: { gutter: 10 } },
                                                                                              [
                                                                                                  n("el-col", { attrs: { lg: 10, md: 10, sm: 24 } }, [n("p", [e._v(e._s(e.$root.labels.recurring_every))])]),
                                                                                                  e._v(" "),
                                                                                                  n(
                                                                                                      "el-col",
                                                                                                      { attrs: { lg: 14, md: 14, sm: 24 } },
                                                                                                      [
                                                                                                          n(
                                                                                                              "el-form-item",
                                                                                                              { attrs: { prop: "recurringInterval", rules: e.rules.recurringInterval } },
                                                                                                              [
                                                                                                                  n(
                                                                                                                      "el-select",
                                                                                                                      {
                                                                                                                          style: { backgroundColor: e.activeColor },
                                                                                                                          attrs: {
                                                                                                                              clearable: "",
                                                                                                                              filterable: "",
                                                                                                                              disabled: !(0 === e.event.id || (0 !== e.event.id && null === e.originRecurring.cycle)),
                                                                                                                              placeholder:
                                                                                                                                  e.repeatIntervals.length > 0 ? e.$root.labels.select_repeat_interval : e.$root.labels.select_repeat_period,
                                                                                                                          },
                                                                                                                          model: {
                                                                                                                              value: e.event.recurring.cycleInterval,
                                                                                                                              callback: function (t) {
                                                                                                                                  e.$set(e.event.recurring, "cycleInterval", t);
                                                                                                                              },
                                                                                                                              expression: "event.recurring.cycleInterval",
                                                                                                                          },
                                                                                                                      },
                                                                                                                      e._l(e.repeatIntervals, function (e, t) {
                                                                                                                          return n("el-option", { key: t, attrs: { label: e.label, value: e.value } });
                                                                                                                      }),
                                                                                                                      1
                                                                                                                  ),
                                                                                                              ],
                                                                                                              1
                                                                                                          ),
                                                                                                      ],
                                                                                                      1
                                                                                                  ),
                                                                                              ],
                                                                                              1
                                                                                          ),
                                                                                          e._v(" "),
                                                                                          (0 === e.event.id && "monthly" === e.event.recurring.cycle) ||
                                                                                          (0 !== e.event.id && "each" === e.originRecurring.monthlyRepeat && "monthly" === e.originRecurring.cycle)
                                                                                              ? n(
                                                                                                    "el-row",
                                                                                                    { attrs: { gutter: 10 } },
                                                                                                    [
                                                                                                        n(
                                                                                                            "el-col",
                                                                                                            { staticClass: "text-center", attrs: { lg: 10, md: 10, sm: 24 } },
                                                                                                            [
                                                                                                                0 === e.event.id || (0 !== e.event.id && null === e.originRecurring.cycle)
                                                                                                                    ? n(
                                                                                                                          "el-radio",
                                                                                                                          {
                                                                                                                              attrs: { label: "each" },
                                                                                                                              model: {
                                                                                                                                  value: e.monthlyRepeat,
                                                                                                                                  callback: function (t) {
                                                                                                                                      e.monthlyRepeat = t;
                                                                                                                                  },
                                                                                                                                  expression: "monthlyRepeat",
                                                                                                                              },
                                                                                                                          },
                                                                                                                          [e._v("\n                      " + e._s(e.$root.labels.recurring_each) + "\n                    ")]
                                                                                                                      )
                                                                                                                    : n("p", [e._v("\n                      " + e._s(e.$root.labels.recurring_each) + "\n                    ")]),
                                                                                                            ],
                                                                                                            1
                                                                                                        ),
                                                                                                        e._v(" "),
                                                                                                        n(
                                                                                                            "el-col",
                                                                                                            { staticClass: "v-calendar-column", attrs: { lg: 14, md: 14, sm: 24 } },
                                                                                                            [
                                                                                                                n(
                                                                                                                    "el-form-item",
                                                                                                                    [
                                                                                                                        "each" === e.monthlyRepeat
                                                                                                                            ? n("v-date-picker", {
                                                                                                                                  attrs: {
                                                                                                                                      "is-double-paned": !1,
                                                                                                                                      mode: "single",
                                                                                                                                      "popover-visibility": "focus",
                                                                                                                                      "popover-direction": e.screenWidth < 768 ? "bottom" : "top",
                                                                                                                                      "popover-align": (e.screenWidth, "center"),
                                                                                                                                      "tint-color": e.isCabinet ? e.$root.settings.customization.primaryColor : "#d52878",
                                                                                                                                      "show-day-popover": !1,
                                                                                                                                      "input-props": { class: "el-input__inner" },
                                                                                                                                      "is-expanded": !1,
                                                                                                                                      "is-required": !1,
                                                                                                                                      "input-class": "el-input__inner",
                                                                                                                                      formats: e.vCalendarFormats,
                                                                                                                                      "min-date": e.calculateMinDate(),
                                                                                                                                      "max-date": e.calculateMaxDate(),
                                                                                                                                  },
                                                                                                                                  model: {
                                                                                                                                      value: e.monthDateComp,
                                                                                                                                      callback: function (t) {
                                                                                                                                          e.monthDateComp = t;
                                                                                                                                      },
                                                                                                                                      expression: "monthDateComp",
                                                                                                                                  },
                                                                                                                              })
                                                                                                                            : n("el-input", {
                                                                                                                                  attrs: {
                                                                                                                                      value:
                                                                                                                                          e.event.recurring && e.event.recurring.monthDate
                                                                                                                                              ? e.getFrontedFormattedDate(e.getDatabaseFormattedDate(e.event.recurring.monthDate))
                                                                                                                                              : "",
                                                                                                                                      disabled: !0,
                                                                                                                                  },
                                                                                                                              }),
                                                                                                                    ],
                                                                                                                    1
                                                                                                                ),
                                                                                                            ],
                                                                                                            1
                                                                                                        ),
                                                                                                    ],
                                                                                                    1
                                                                                                )
                                                                                              : e._e(),
                                                                                          e._v(" "),
                                                                                          (0 === e.event.id && "monthly" === e.event.recurring.cycle) ||
                                                                                          (0 !== e.event.id && "on" === e.originRecurring.monthlyRepeat && "monthly" === e.originRecurring.cycle)
                                                                                              ? n(
                                                                                                    "el-row",
                                                                                                    { attrs: { gutter: 10 } },
                                                                                                    [
                                                                                                        n(
                                                                                                            "el-col",
                                                                                                            { attrs: { lg: 10, md: 10, sm: 24 } },
                                                                                                            [
                                                                                                                0 === e.event.id || (0 !== e.event.id && null === e.originRecurring.cycle)
                                                                                                                    ? n(
                                                                                                                          "el-radio",
                                                                                                                          {
                                                                                                                              attrs: { label: "on" },
                                                                                                                              model: {
                                                                                                                                  value: e.monthlyRepeat,
                                                                                                                                  callback: function (t) {
                                                                                                                                      e.monthlyRepeat = t;
                                                                                                                                  },
                                                                                                                                  expression: "monthlyRepeat",
                                                                                                                              },
                                                                                                                          },
                                                                                                                          [e._v("\n                      " + e._s(e.$root.labels.recurring_on) + "\n                    ")]
                                                                                                                      )
                                                                                                                    : n("p", [e._v(e._s(e.$root.labels.recurring_on))]),
                                                                                                            ],
                                                                                                            1
                                                                                                        ),
                                                                                                        e._v(" "),
                                                                                                        n(
                                                                                                            "el-col",
                                                                                                            { staticClass: "text-center", attrs: { lg: 14, md: 14, sm: 24 } },
                                                                                                            [
                                                                                                                n(
                                                                                                                    "el-row",
                                                                                                                    { attrs: { gutter: 10 } },
                                                                                                                    [
                                                                                                                        n(
                                                                                                                            "el-col",
                                                                                                                            { attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                                                            [
                                                                                                                                n(
                                                                                                                                    "el-form-item",
                                                                                                                                    [
                                                                                                                                        n(
                                                                                                                                            "el-select",
                                                                                                                                            {
                                                                                                                                                style: { backgroundColor: e.activeColor },
                                                                                                                                                attrs: {
                                                                                                                                                    disabled:
                                                                                                                                                        "each" === e.monthlyRepeat ||
                                                                                                                                                        !(0 === e.event.id || (0 !== e.event.id && null === e.originRecurring.cycle)),
                                                                                                                                                    placeholder: e.monthlyWeekDayRepeat[0].label,
                                                                                                                                                    clearable: "",
                                                                                                                                                    filterable: "",
                                                                                                                                                },
                                                                                                                                                model: {
                                                                                                                                                    value: e.monthlyOnRepeat,
                                                                                                                                                    callback: function (t) {
                                                                                                                                                        e.monthlyOnRepeat = t;
                                                                                                                                                    },
                                                                                                                                                    expression: "monthlyOnRepeat",
                                                                                                                                                },
                                                                                                                                            },
                                                                                                                                            e._l(e.monthlyWeekDayRepeat, function (e) {
                                                                                                                                                return n("el-option", { key: e.value, attrs: { label: e.label, value: e.value } });
                                                                                                                                            }),
                                                                                                                                            1
                                                                                                                                        ),
                                                                                                                                    ],
                                                                                                                                    1
                                                                                                                                ),
                                                                                                                            ],
                                                                                                                            1
                                                                                                                        ),
                                                                                                                        e._v(" "),
                                                                                                                        n(
                                                                                                                            "el-col",
                                                                                                                            { attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                                                            [
                                                                                                                                n(
                                                                                                                                    "el-form-item",
                                                                                                                                    [
                                                                                                                                        n(
                                                                                                                                            "el-select",
                                                                                                                                            {
                                                                                                                                                style: { backgroundColor: e.activeColor },
                                                                                                                                                attrs: {
                                                                                                                                                    placeholder: e.weekDays[0].label,
                                                                                                                                                    disabled:
                                                                                                                                                        "each" === e.monthlyRepeat ||
                                                                                                                                                        !(0 === e.event.id || (0 !== e.event.id && null === e.originRecurring.cycle)),
                                                                                                                                                    clearable: "",
                                                                                                                                                    filterable: "",
                                                                                                                                                },
                                                                                                                                                model: {
                                                                                                                                                    value: e.monthlyOnDay,
                                                                                                                                                    callback: function (t) {
                                                                                                                                                        e.monthlyOnDay = t;
                                                                                                                                                    },
                                                                                                                                                    expression: "monthlyOnDay",
                                                                                                                                                },
                                                                                                                                            },
                                                                                                                                            e._l(e.weekDays, function (e) {
                                                                                                                                                return n("el-option", { key: e.value, attrs: { label: e.label, value: e.value } });
                                                                                                                                            }),
                                                                                                                                            1
                                                                                                                                        ),
                                                                                                                                    ],
                                                                                                                                    1
                                                                                                                                ),
                                                                                                                            ],
                                                                                                                            1
                                                                                                                        ),
                                                                                                                    ],
                                                                                                                    1
                                                                                                                ),
                                                                                                            ],
                                                                                                            1
                                                                                                        ),
                                                                                                    ],
                                                                                                    1
                                                                                                )
                                                                                              : e._e(),
                                                                                          e._v(" "),
                                                                                          n(
                                                                                              "el-row",
                                                                                              { attrs: { gutter: 10 } },
                                                                                              [
                                                                                                  n("el-col", { attrs: { lg: 10, md: 10, sm: 24 } }, [n("p", [e._v(e._s(e.$root.labels.event_recurring_until))])]),
                                                                                                  e._v(" "),
                                                                                                  n(
                                                                                                      "el-col",
                                                                                                      { staticClass: "v-calendar-column", attrs: { lg: 14, md: 14, sm: 24 } },
                                                                                                      [
                                                                                                          n(
                                                                                                              "el-form-item",
                                                                                                              { attrs: { prop: "recurringUntilDate", rules: e.rules.recurringUntilDate } },
                                                                                                              [
                                                                                                                  n("v-date-picker", {
                                                                                                                      attrs: {
                                                                                                                          "is-double-paned": !1,
                                                                                                                          mode: "single",
                                                                                                                          "popover-visibility": "focus",
                                                                                                                          "popover-direction": e.screenWidth < 768 ? "bottom" : "top",
                                                                                                                          "popover-align": (e.screenWidth, "center"),
                                                                                                                          "tint-color": e.isCabinet ? e.$root.settings.customization.primaryColor : "#d52878",
                                                                                                                          "show-day-popover": !1,
                                                                                                                          "input-props": { class: "el-input__inner" },
                                                                                                                          "is-expanded": !1,
                                                                                                                          "is-required": !1,
                                                                                                                          "input-class": "el-input__inner",
                                                                                                                          formats: e.vCalendarFormats,
                                                                                                                          "available-dates": { start: 0 === e.event.id ? e.getNowDate() : e.originRecurring.until },
                                                                                                                      },
                                                                                                                      on: { dayclick: e.changeBookingEndsDate },
                                                                                                                      model: {
                                                                                                                          value: e.event.recurring.until,
                                                                                                                          callback: function (t) {
                                                                                                                              e.$set(e.event.recurring, "until", t);
                                                                                                                          },
                                                                                                                          expression: "event.recurring.until",
                                                                                                                      },
                                                                                                                  }),
                                                                                                              ],
                                                                                                              1
                                                                                                          ),
                                                                                                      ],
                                                                                                      1
                                                                                                  ),
                                                                                              ],
                                                                                              1
                                                                                          ),
                                                                                      ],
                                                                                      1
                                                                                  )
                                                                                : e._e(),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    n(
                                                                        "div",
                                                                        { staticClass: "am-section-grey" },
                                                                        [
                                                                            n(
                                                                                "el-checkbox",
                                                                                {
                                                                                    model: {
                                                                                        value: e.event.bookingStartsNow,
                                                                                        callback: function (t) {
                                                                                            e.$set(e.event, "bookingStartsNow", t);
                                                                                        },
                                                                                        expression: "event.bookingStartsNow",
                                                                                    },
                                                                                },
                                                                                [e._v(e._s(e.$root.labels.event_booking_opens_now))]
                                                                            ),
                                                                            e._v(" "),
                                                                            n(
                                                                                "div",
                                                                                {
                                                                                    directives: [{ name: "show", rawName: "v-show", value: !e.event.bookingStartsNow, expression: "!event.bookingStartsNow" }],
                                                                                    staticClass: "am-booking-starts",
                                                                                },
                                                                                [
                                                                                    n(
                                                                                        "el-row",
                                                                                        { attrs: { gutter: 10 } },
                                                                                        [
                                                                                            n("el-col", { attrs: { sm: 24 } }, [n("label", { staticClass: "el-form-item__label" }, [e._v(e._s(e.$root.labels.event_booking_opens_on))])]),
                                                                                            e._v(" "),
                                                                                            n(
                                                                                                "el-col",
                                                                                                { staticClass: "v-calendar-column", attrs: { sm: 15 } },
                                                                                                [
                                                                                                    n(
                                                                                                        "el-form-item",
                                                                                                        { attrs: { prop: "bookingStartsDate", rules: e.rules.bookingStartsDate } },
                                                                                                        [
                                                                                                            n("v-date-picker", {
                                                                                                                attrs: {
                                                                                                                    "is-double-paned": !1,
                                                                                                                    mode: "single",
                                                                                                                    "popover-visibility": "focus",
                                                                                                                    "popover-direction": "bottom",
                                                                                                                    "popover-align": e.screenWidth < 768 ? "center" : "left",
                                                                                                                    "tint-color": e.isCabinet ? e.$root.settings.customization.primaryColor : "#d52878",
                                                                                                                    "show-day-popover": !1,
                                                                                                                    "input-props": { class: "el-input__inner" },
                                                                                                                    "is-expanded": !1,
                                                                                                                    "is-required": !1,
                                                                                                                    "input-class": "el-input__inner",
                                                                                                                    formats: e.vCalendarFormats,
                                                                                                                    "available-dates": { start: e.getNowDate() },
                                                                                                                },
                                                                                                                on: { dayclick: e.changeBookingStartsDate },
                                                                                                                model: {
                                                                                                                    value: e.event.bookingStartsDate,
                                                                                                                    callback: function (t) {
                                                                                                                        e.$set(e.event, "bookingStartsDate", t);
                                                                                                                    },
                                                                                                                    expression: "event.bookingStartsDate",
                                                                                                                },
                                                                                                            }),
                                                                                                        ],
                                                                                                        1
                                                                                                    ),
                                                                                                ],
                                                                                                1
                                                                                            ),
                                                                                            e._v(" "),
                                                                                            n(
                                                                                                "el-col",
                                                                                                { attrs: { sm: 9 } },
                                                                                                [
                                                                                                    n(
                                                                                                        "el-form-item",
                                                                                                        { attrs: { prop: "bookingStartsTime", rules: e.rules.bookingStartsTime } },
                                                                                                        [
                                                                                                            n("el-time-select", {
                                                                                                                attrs: { "picker-options": e.getTimeSelectOptionsWithLimits(null, null), size: "large" },
                                                                                                                model: {
                                                                                                                    value: e.event.bookingStartsTime,
                                                                                                                    callback: function (t) {
                                                                                                                        e.$set(e.event, "bookingStartsTime", t);
                                                                                                                    },
                                                                                                                    expression: "event.bookingStartsTime",
                                                                                                                },
                                                                                                            }),
                                                                                                        ],
                                                                                                        1
                                                                                                    ),
                                                                                                ],
                                                                                                1
                                                                                            ),
                                                                                        ],
                                                                                        1
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                            e._v(" "),
                                                                            e.event.isRecurring
                                                                                ? n(
                                                                                      "div",
                                                                                      [
                                                                                          n(
                                                                                              "el-checkbox",
                                                                                              {
                                                                                                  attrs: { "true-label": "same", "false-label": "calculate" },
                                                                                                  model: {
                                                                                                      value: e.event.bookingOpensRec,
                                                                                                      callback: function (t) {
                                                                                                          e.$set(e.event, "bookingOpensRec", t);
                                                                                                      },
                                                                                                      expression: "event.bookingOpensRec",
                                                                                                  },
                                                                                              },
                                                                                              [e._v(e._s(e.$root.labels.apply_to_all))]
                                                                                          ),
                                                                                          e._v(" "),
                                                                                          n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                                              n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.event_booking_opens_apply) }, slot: "content" }),
                                                                                              e._v(" "),
                                                                                              n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                                          ]),
                                                                                      ],
                                                                                      1
                                                                                  )
                                                                                : e._e(),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    n(
                                                                        "div",
                                                                        { staticClass: "am-section-grey" },
                                                                        [
                                                                            n(
                                                                                "el-checkbox",
                                                                                {
                                                                                    model: {
                                                                                        value: e.event.bookingEndsAfter,
                                                                                        callback: function (t) {
                                                                                            e.$set(e.event, "bookingEndsAfter", t);
                                                                                        },
                                                                                        expression: "event.bookingEndsAfter",
                                                                                    },
                                                                                },
                                                                                [e._v(e._s(e.$root.labels.event_booking_closes_after))]
                                                                            ),
                                                                            e._v(" "),
                                                                            n(
                                                                                "div",
                                                                                { directives: [{ name: "show", rawName: "v-show", value: !e.event.bookingEndsAfter, expression: "!event.bookingEndsAfter" }], staticClass: "am-booking-ends" },
                                                                                [
                                                                                    n(
                                                                                        "el-row",
                                                                                        { attrs: { gutter: 10 } },
                                                                                        [
                                                                                            n("el-col", { attrs: { sm: 24 } }, [n("label", { staticClass: "el-form-item__label" }, [e._v(e._s(e.$root.labels.event_booking_closes_on))])]),
                                                                                            e._v(" "),
                                                                                            n(
                                                                                                "el-col",
                                                                                                { staticClass: "v-calendar-column", attrs: { sm: 15 } },
                                                                                                [
                                                                                                    n(
                                                                                                        "el-form-item",
                                                                                                        { attrs: { prop: "bookingEndsDate", rules: e.rules.bookingEndsDate } },
                                                                                                        [
                                                                                                            n("v-date-picker", {
                                                                                                                attrs: {
                                                                                                                    "is-double-paned": !1,
                                                                                                                    mode: "single",
                                                                                                                    "popover-visibility": "focus",
                                                                                                                    "popover-direction": "bottom",
                                                                                                                    "popover-align": e.screenWidth < 768 ? "center" : "left",
                                                                                                                    "tint-color": e.isCabinet ? e.$root.settings.customization.primaryColor : "#d52878",
                                                                                                                    "show-day-popover": !1,
                                                                                                                    "input-props": { class: "el-input__inner" },
                                                                                                                    "is-expanded": !1,
                                                                                                                    "is-required": !1,
                                                                                                                    "input-class": "el-input__inner",
                                                                                                                    formats: e.vCalendarFormats,
                                                                                                                    "available-dates": { start: e.getNowDate() },
                                                                                                                },
                                                                                                                on: { dayclick: e.changeBookingEndsDate },
                                                                                                                model: {
                                                                                                                    value: e.event.bookingEndsDate,
                                                                                                                    callback: function (t) {
                                                                                                                        e.$set(e.event, "bookingEndsDate", t);
                                                                                                                    },
                                                                                                                    expression: "event.bookingEndsDate",
                                                                                                                },
                                                                                                            }),
                                                                                                        ],
                                                                                                        1
                                                                                                    ),
                                                                                                ],
                                                                                                1
                                                                                            ),
                                                                                            e._v(" "),
                                                                                            n(
                                                                                                "el-col",
                                                                                                { attrs: { sm: 9 } },
                                                                                                [
                                                                                                    n(
                                                                                                        "el-form-item",
                                                                                                        { attrs: { prop: "bookingEndsTime", rules: e.rules.bookingEndsTime } },
                                                                                                        [
                                                                                                            n("el-time-select", {
                                                                                                                attrs: { "picker-options": e.getTimeSelectOptionsWithLimits(null, null), size: "large" },
                                                                                                                model: {
                                                                                                                    value: e.event.bookingEndsTime,
                                                                                                                    callback: function (t) {
                                                                                                                        e.$set(e.event, "bookingEndsTime", t);
                                                                                                                    },
                                                                                                                    expression: "event.bookingEndsTime",
                                                                                                                },
                                                                                                            }),
                                                                                                        ],
                                                                                                        1
                                                                                                    ),
                                                                                                ],
                                                                                                1
                                                                                            ),
                                                                                        ],
                                                                                        1
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                            e._v(" "),
                                                                            e.event.isRecurring
                                                                                ? n(
                                                                                      "div",
                                                                                      [
                                                                                          n(
                                                                                              "el-checkbox",
                                                                                              {
                                                                                                  attrs: { "true-label": "same", "false-label": "calculate" },
                                                                                                  model: {
                                                                                                      value: e.event.bookingClosesRec,
                                                                                                      callback: function (t) {
                                                                                                          e.$set(e.event, "bookingClosesRec", t);
                                                                                                      },
                                                                                                      expression: "event.bookingClosesRec",
                                                                                                  },
                                                                                              },
                                                                                              [e._v(e._s(e.$root.labels.apply_to_all))]
                                                                                          ),
                                                                                          e._v(" "),
                                                                                          n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                                              n("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.$root.labels.event_booking_closes_apply) }, slot: "content" }),
                                                                                              e._v(" "),
                                                                                              n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                                          ]),
                                                                                      ],
                                                                                      1
                                                                                  )
                                                                                : e._e(),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    n(
                                                                        "div",
                                                                        { staticClass: "am-border-bottom" },
                                                                        [
                                                                            n(
                                                                                "el-row",
                                                                                { attrs: { gutter: 10 } },
                                                                                [
                                                                                    n("el-col", { attrs: { lg: 12, md: 12, sm: 24 } }, [n("p", [e._v(e._s(e.$root.labels.price))])]),
                                                                                    e._v(" "),
                                                                                    n(
                                                                                        "el-col",
                                                                                        { attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                        [
                                                                                            n(
                                                                                                "money",
                                                                                                e._b(
                                                                                                    {
                                                                                                        staticClass: "el-input el-input__inner",
                                                                                                        on: { input: e.priceChanged },
                                                                                                        model: {
                                                                                                            value: e.event.price,
                                                                                                            callback: function (t) {
                                                                                                                e.$set(e.event, "price", t);
                                                                                                            },
                                                                                                            expression: "event.price",
                                                                                                        },
                                                                                                    },
                                                                                                    "money",
                                                                                                    e.moneyComponentData,
                                                                                                    !1
                                                                                                )
                                                                                            ),
                                                                                        ],
                                                                                        1
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                            e._v(" "),
                                                                            parseFloat(e.event.price) > 0
                                                                                ? n(
                                                                                      "div",
                                                                                      { staticClass: "am-setting-box am-switch-box" },
                                                                                      [
                                                                                          n(
                                                                                              "el-row",
                                                                                              { attrs: { type: "flex", align: "middle", gutter: 24 } },
                                                                                              [
                                                                                                  n("el-col", { attrs: { span: 19 } }, [e._v("\n                    " + e._s(e.$root.labels.deposit_enabled) + "\n                  ")]),
                                                                                                  e._v(" "),
                                                                                                  n(
                                                                                                      "el-col",
                                                                                                      { staticClass: "align-right", attrs: { span: 5 } },
                                                                                                      [
                                                                                                          n("el-switch", {
                                                                                                              attrs: { "active-text": "", "inactive-text": "" },
                                                                                                              on: { change: e.depositEnabledChanged },
                                                                                                              model: {
                                                                                                                  value: e.depositEnabled,
                                                                                                                  callback: function (t) {
                                                                                                                      e.depositEnabled = t;
                                                                                                                  },
                                                                                                                  expression: "depositEnabled",
                                                                                                              },
                                                                                                          }),
                                                                                                      ],
                                                                                                      1
                                                                                                  ),
                                                                                              ],
                                                                                              1
                                                                                          ),
                                                                                          e._v(" "),
                                                                                          e.depositEnabled
                                                                                              ? n(
                                                                                                    "el-row",
                                                                                                    { staticClass: "am-service-deposit", attrs: { gutter: 24 } },
                                                                                                    [
                                                                                                        n(
                                                                                                            "el-col",
                                                                                                            { attrs: { span: 12 } },
                                                                                                            [
                                                                                                                n(
                                                                                                                    "el-form-item",
                                                                                                                    [
                                                                                                                        n(
                                                                                                                            "label",
                                                                                                                            { attrs: { slot: "label" }, slot: "label" },
                                                                                                                            [
                                                                                                                                e._v("\n                        " + e._s(e.$root.labels.deposit_payment) + ":\n                        "),
                                                                                                                                n("el-tooltip", { attrs: { placement: "top" } }, [
                                                                                                                                    n("div", {
                                                                                                                                        attrs: { slot: "content" },
                                                                                                                                        domProps: { innerHTML: e._s(e.$root.labels.deposit_payment_tooltip) },
                                                                                                                                        slot: "content",
                                                                                                                                    }),
                                                                                                                                    e._v(" "),
                                                                                                                                    n("i", { staticClass: "el-icon-question am-tooltip-icon" }),
                                                                                                                                ]),
                                                                                                                            ],
                                                                                                                            1
                                                                                                                        ),
                                                                                                                        e._v(" "),
                                                                                                                        n(
                                                                                                                            "el-select",
                                                                                                                            {
                                                                                                                                attrs: { placeholder: "" },
                                                                                                                                on: {
                                                                                                                                    change: function (t) {
                                                                                                                                        return e.depositChanged();
                                                                                                                                    },
                                                                                                                                },
                                                                                                                                model: {
                                                                                                                                    value: e.depositPayment,
                                                                                                                                    callback: function (t) {
                                                                                                                                        e.depositPayment = t;
                                                                                                                                    },
                                                                                                                                    expression: "depositPayment",
                                                                                                                                },
                                                                                                                            },
                                                                                                                            e._l(e.depositOptions, function (e, t) {
                                                                                                                                return n("el-option", { key: t, attrs: { label: e.label, value: e.value } });
                                                                                                                            }),
                                                                                                                            1
                                                                                                                        ),
                                                                                                                    ],
                                                                                                                    1
                                                                                                                ),
                                                                                                            ],
                                                                                                            1
                                                                                                        ),
                                                                                                        e._v(" "),
                                                                                                        n(
                                                                                                            "el-col",
                                                                                                            { attrs: { span: 12 } },
                                                                                                            [
                                                                                                                n(
                                                                                                                    "el-form-item",
                                                                                                                    {
                                                                                                                        attrs: {
                                                                                                                            label:
                                                                                                                                e.$root.labels.deposit_amount +
                                                                                                                                ("fixed" === e.depositPayment ? " (" + e.getCurrencySymbol() + ")" : "") +
                                                                                                                                ("percentage" === e.depositPayment ? " (%)" : "") +
                                                                                                                                ":",
                                                                                                                        },
                                                                                                                    },
                                                                                                                    [
                                                                                                                        "fixed" === e.depositPayment
                                                                                                                            ? n(
                                                                                                                                  "div",
                                                                                                                                  { staticClass: "el-input" },
                                                                                                                                  [
                                                                                                                                      n(
                                                                                                                                          "money",
                                                                                                                                          e._b(
                                                                                                                                              {
                                                                                                                                                  staticClass: "el-input__inner",
                                                                                                                                                  on: { input: e.depositChanged },
                                                                                                                                                  model: {
                                                                                                                                                      value: e.event.deposit,
                                                                                                                                                      callback: function (t) {
                                                                                                                                                          e.$set(e.event, "deposit", t);
                                                                                                                                                      },
                                                                                                                                                      expression: "event.deposit",
                                                                                                                                                  },
                                                                                                                                              },
                                                                                                                                              "money",
                                                                                                                                              e.moneyComponentData,
                                                                                                                                              !1
                                                                                                                                          )
                                                                                                                                      ),
                                                                                                                                  ],
                                                                                                                                  1
                                                                                                                              )
                                                                                                                            : e._e(),
                                                                                                                        e._v(" "),
                                                                                                                        "percentage" === e.depositPayment
                                                                                                                            ? n("el-input-number", {
                                                                                                                                  attrs: { min: 0, max: 100 },
                                                                                                                                  on: {
                                                                                                                                      input: function (t) {
                                                                                                                                          return e.depositChanged();
                                                                                                                                      },
                                                                                                                                  },
                                                                                                                                  model: {
                                                                                                                                      value: e.event.deposit,
                                                                                                                                      callback: function (t) {
                                                                                                                                          e.$set(e.event, "deposit", t);
                                                                                                                                      },
                                                                                                                                      expression: "event.deposit",
                                                                                                                                  },
                                                                                                                              })
                                                                                                                            : e._e(),
                                                                                                                    ],
                                                                                                                    1
                                                                                                                ),
                                                                                                            ],
                                                                                                            1
                                                                                                        ),
                                                                                                    ],
                                                                                                    1
                                                                                                )
                                                                                              : e._e(),
                                                                                          e._v(" "),
                                                                                          e.event.maxCapacity > 1 && "fixed" === e.depositPayment && e.depositEnabled
                                                                                              ? n(
                                                                                                    "el-row",
                                                                                                    [
                                                                                                        n(
                                                                                                            "el-col",
                                                                                                            [
                                                                                                                n(
                                                                                                                    "el-checkbox",
                                                                                                                    {
                                                                                                                        model: {
                                                                                                                            value: e.event.depositPerPerson,
                                                                                                                            callback: function (t) {
                                                                                                                                e.$set(e.event, "depositPerPerson", t);
                                                                                                                            },
                                                                                                                            expression: "event.depositPerPerson",
                                                                                                                        },
                                                                                                                    },
                                                                                                                    [e._v(e._s(e.$root.labels.deposit_per_person))]
                                                                                                                ),
                                                                                                                e._v(" "),
                                                                                                                n("hr"),
                                                                                                            ],
                                                                                                            1
                                                                                                        ),
                                                                                                    ],
                                                                                                    1
                                                                                                )
                                                                                              : e._e(),
                                                                                          e._v(" "),
                                                                                          e.depositEnabled
                                                                                              ? n(
                                                                                                    "el-row",
                                                                                                    { staticClass: "am-service-deposit", attrs: { gutter: 24 } },
                                                                                                    [
                                                                                                        n("el-col", { attrs: { span: 24 } }, [
                                                                                                            n("i", { staticClass: "el-icon-warning-outline" }),
                                                                                                            e._v(" "),
                                                                                                            n("label", [e._v(e._s(e.$root.labels.deposit_info))]),
                                                                                                        ]),
                                                                                                    ],
                                                                                                    1
                                                                                                )
                                                                                              : e._e(),
                                                                                      ],
                                                                                      1
                                                                                  )
                                                                                : e._e(),
                                                                            e._v(" "),
                                                                            n(
                                                                                "el-row",
                                                                                { attrs: { gutter: 10 } },
                                                                                [
                                                                                    n("el-col", { attrs: { lg: 12, md: 12, sm: 24 } }, [n("p", [e._v(e._s(e.$root.labels.event_max_capacity))])]),
                                                                                    e._v(" "),
                                                                                    n(
                                                                                        "el-col",
                                                                                        { attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                        [
                                                                                            n("el-input-number", {
                                                                                                attrs: { min: 1 },
                                                                                                model: {
                                                                                                    value: e.event.maxCapacity,
                                                                                                    callback: function (t) {
                                                                                                        e.$set(e.event, "maxCapacity", t);
                                                                                                    },
                                                                                                    expression: "event.maxCapacity",
                                                                                                },
                                                                                            }),
                                                                                        ],
                                                                                        1
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                            e._v(" "),
                                                                            e.event.maxCapacity > 1
                                                                                ? n(
                                                                                      "el-row",
                                                                                      { attrs: { gutter: 10 } },
                                                                                      [
                                                                                          n(
                                                                                              "el-col",
                                                                                              { attrs: { lg: 24, md: 24, sm: 24 } },
                                                                                              [
                                                                                                  n(
                                                                                                      "el-checkbox",
                                                                                                      {
                                                                                                          model: {
                                                                                                              value: e.event.bringingAnyone,
                                                                                                              callback: function (t) {
                                                                                                                  e.$set(e.event, "bringingAnyone", t);
                                                                                                              },
                                                                                                              expression: "event.bringingAnyone",
                                                                                                          },
                                                                                                      },
                                                                                                      [e._v(e._s(e.$root.labels.event_bringing_anyone))]
                                                                                                  ),
                                                                                              ],
                                                                                              1
                                                                                          ),
                                                                                      ],
                                                                                      1
                                                                                  )
                                                                                : e._e(),
                                                                            e._v(" "),
                                                                            e.event.maxCapacity > 1
                                                                                ? n(
                                                                                      "el-row",
                                                                                      { attrs: { gutter: 10 } },
                                                                                      [
                                                                                          n(
                                                                                              "el-col",
                                                                                              { attrs: { lg: 24, md: 24, sm: 24 } },
                                                                                              [
                                                                                                  n(
                                                                                                      "el-checkbox",
                                                                                                      {
                                                                                                          model: {
                                                                                                              value: e.event.bookMultipleTimes,
                                                                                                              callback: function (t) {
                                                                                                                  e.$set(e.event, "bookMultipleTimes", t);
                                                                                                              },
                                                                                                              expression: "event.bookMultipleTimes",
                                                                                                          },
                                                                                                      },
                                                                                                      [e._v(e._s(e.$root.labels.event_book_more_than_once))]
                                                                                                  ),
                                                                                              ],
                                                                                              1
                                                                                          ),
                                                                                      ],
                                                                                      1
                                                                                  )
                                                                                : e._e(),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    n(
                                                                        "div",
                                                                        { staticClass: "am-border-bottom" },
                                                                        [
                                                                            n(
                                                                                "el-row",
                                                                                { attrs: { gutter: 10 } },
                                                                                [
                                                                                    n("el-col", { attrs: { lg: 12, md: 12, sm: 24 } }, [n("p", [e._v(e._s(e.$root.labels.event_select_address))])]),
                                                                                    e._v(" "),
                                                                                    n(
                                                                                        "el-col",
                                                                                        { attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                        [
                                                                                            n(
                                                                                                "el-select",
                                                                                                {
                                                                                                    attrs: { placeholder: e.$root.labels.select, value: null, clearable: !0 },
                                                                                                    model: {
                                                                                                        value: e.event.locationId,
                                                                                                        callback: function (t) {
                                                                                                            e.$set(e.event, "locationId", t);
                                                                                                        },
                                                                                                        expression: "event.locationId",
                                                                                                    },
                                                                                                },
                                                                                                [
                                                                                                    n("el-option", { key: null, attrs: { label: this.$root.labels.event_custom_address, value: null } }),
                                                                                                    e._v(" "),
                                                                                                    e._l(e.locations, function (e) {
                                                                                                        return n("el-option", { key: e.id, attrs: { label: e.name, value: e.id } });
                                                                                                    }),
                                                                                                ],
                                                                                                2
                                                                                            ),
                                                                                        ],
                                                                                        1
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                            e._v(" "),
                                                                            n(
                                                                                "el-row",
                                                                                { directives: [{ name: "show", rawName: "v-show", value: !e.event.locationId, expression: "!event.locationId" }], attrs: { gutter: 10 } },
                                                                                [
                                                                                    n("el-col", { attrs: { lg: 12, md: 12, sm: 24 } }, [n("p", [e._v(e._s(e.$root.labels.event_custom_address))])]),
                                                                                    e._v(" "),
                                                                                    n(
                                                                                        "el-col",
                                                                                        { attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                        [
                                                                                            n("el-input", {
                                                                                                attrs: { placeholder: e.$root.labels.enter_address },
                                                                                                model: {
                                                                                                    value: e.event.customLocation,
                                                                                                    callback: function (t) {
                                                                                                        e.$set(e.event, "customLocation", t);
                                                                                                    },
                                                                                                    expression: "event.customLocation",
                                                                                                },
                                                                                            }),
                                                                                        ],
                                                                                        1
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    n(
                                                                        "div",
                                                                        { staticClass: "am-border-bottom" },
                                                                        [
                                                                            e.$root.settings.zoom.enabled
                                                                                ? n(
                                                                                      "el-row",
                                                                                      { attrs: { gutter: 10 } },
                                                                                      [
                                                                                          n("el-col", { attrs: { lg: 12, md: 12, sm: 24 } }, [n("p", [e._v(e._s(e.$root.labels.zoom_user))])]),
                                                                                          e._v(" "),
                                                                                          n(
                                                                                              "el-col",
                                                                                              { attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                              [
                                                                                                  n(
                                                                                                      "el-select",
                                                                                                      {
                                                                                                          attrs: { clearable: "", filterable: "", placeholder: e.$root.labels.zoom_user_placeholder },
                                                                                                          on: {
                                                                                                              change: function (t) {
                                                                                                                  return e.clearValidation();
                                                                                                              },
                                                                                                          },
                                                                                                          model: {
                                                                                                              value: e.event.zoomUserId,
                                                                                                              callback: function (t) {
                                                                                                                  e.$set(e.event, "zoomUserId", t);
                                                                                                              },
                                                                                                              expression: "event.zoomUserId",
                                                                                                          },
                                                                                                      },
                                                                                                      e._l(e.zoomUsers, function (e, t) {
                                                                                                          return n("el-option", { key: t, attrs: { label: e.first_name + " " + e.last_name + " (" + e.email + ")", value: e.id } });
                                                                                                      }),
                                                                                                      1
                                                                                                  ),
                                                                                              ],
                                                                                              1
                                                                                          ),
                                                                                      ],
                                                                                      1
                                                                                  )
                                                                                : e._e(),
                                                                            e._v(" "),
                                                                            e.canManage()
                                                                                ? n(
                                                                                      "el-row",
                                                                                      { attrs: { gutter: 10 } },
                                                                                      [
                                                                                          n("el-col", { attrs: { lg: 12, md: 12, sm: 24 } }, [n("p", [e._v(e._s(e.$root.labels.event_staff))])]),
                                                                                          e._v(" "),
                                                                                          n(
                                                                                              "el-col",
                                                                                              { attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                              [
                                                                                                  n(
                                                                                                      "el-select",
                                                                                                      {
                                                                                                          attrs: { "value-key": "id", placeholder: e.$root.labels.select, multiple: "" },
                                                                                                          model: {
                                                                                                              value: e.event.providers,
                                                                                                              callback: function (t) {
                                                                                                                  e.$set(e.event, "providers", t);
                                                                                                              },
                                                                                                              expression: "event.providers",
                                                                                                          },
                                                                                                      },
                                                                                                      e._l(e.employees, function (e) {
                                                                                                          return n("el-option", { key: e.id, attrs: { label: e.firstName + " " + e.lastName, value: e } });
                                                                                                      }),
                                                                                                      1
                                                                                                  ),
                                                                                              ],
                                                                                              1
                                                                                          ),
                                                                                      ],
                                                                                      1
                                                                                  )
                                                                                : e._e(),
                                                                            e._v(" "),
                                                                            n(
                                                                                "el-row",
                                                                                { attrs: { gutter: 10 } },
                                                                                [
                                                                                    n("el-col", { attrs: { lg: 12, md: 12, sm: 24 } }, [n("p", [e._v(e._s(e.$root.labels.event_tags))])]),
                                                                                    e._v(" "),
                                                                                    n(
                                                                                        "el-col",
                                                                                        { attrs: { lg: 12, md: 12, sm: 24 } },
                                                                                        [
                                                                                            n(
                                                                                                "el-select",
                                                                                                {
                                                                                                    attrs: {
                                                                                                        placeholder: e.$root.labels.event_tags_select_or_create,
                                                                                                        multiple: "",
                                                                                                        filterable: "",
                                                                                                        "allow-create": "",
                                                                                                        "default-first-option": "",
                                                                                                        "no-data-text": e.$root.labels.event_tags_create,
                                                                                                    },
                                                                                                    on: { change: e.tagsChanged },
                                                                                                    model: {
                                                                                                        value: e.event.tags,
                                                                                                        callback: function (t) {
                                                                                                            e.$set(e.event, "tags", t);
                                                                                                        },
                                                                                                        expression: "event.tags",
                                                                                                    },
                                                                                                },
                                                                                                e._l(e.tags, function (t, i) {
                                                                                                    return t ? n("el-option", { key: i, attrs: { label: t, value: t } }) : e._e();
                                                                                                }),
                                                                                                1
                                                                                            ),
                                                                                        ],
                                                                                        1
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                        ],
                                                                        1
                                                                    ),
                                                                    e._v(" "),
                                                                    n(
                                                                        "div",
                                                                        { staticClass: "am-event-description" },
                                                                        [
                                                                            n(
                                                                                "el-row",
                                                                                { attrs: { gutter: 10 } },
                                                                                [
                                                                                    n(
                                                                                        "el-col",
                                                                                        { attrs: { span: 24 } },
                                                                                        [
                                                                                            n(
                                                                                                "el-form-item",
                                                                                                { staticClass: "am-event-label" },
                                                                                                [
                                                                                                    e._v("\n                    " + e._s(e.$root.labels.description + ":") + "\n                    "),
                                                                                                    e.isCabinet
                                                                                                        ? e._e()
                                                                                                        : n(
                                                                                                              "div",
                                                                                                              {
                                                                                                                  staticClass: "am-event-translate",
                                                                                                                  on: {
                                                                                                                      click: function (t) {
                                                                                                                          return e.showDialogTranslate("description");
                                                                                                                      },
                                                                                                                  },
                                                                                                              },
                                                                                                              [
                                                                                                                  n("img", {
                                                                                                                      staticClass: "am-dialog-translate-svg",
                                                                                                                      attrs: { width: "16px", src: e.$root.getUrl + "public/img/translate.svg" },
                                                                                                                  }),
                                                                                                                  e._v("\n                      " + e._s(e.$root.labels.translate) + "\n                    "),
                                                                                                              ]
                                                                                                          ),
                                                                                                    e._v(" "),
                                                                                                    n("el-input", {
                                                                                                        staticStyle: { "margin-top": "5px !important" },
                                                                                                        attrs: { type: "textarea" },
                                                                                                        model: {
                                                                                                            value: e.event.description,
                                                                                                            callback: function (t) {
                                                                                                                e.$set(e.event, "description", t);
                                                                                                            },
                                                                                                            expression: "event.description",
                                                                                                        },
                                                                                                    }),
                                                                                                ],
                                                                                                1
                                                                                            ),
                                                                                        ],
                                                                                        1
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                        ],
                                                                        1
                                                                    ),
                                                                ],
                                                                1
                                                            ),
                                                            e._v(" "),
                                                            n(
                                                                "el-tab-pane",
                                                                { attrs: { label: e.$root.labels.customize, name: "customize" } },
                                                                [
                                                                    e.showGallery ? n("gallery", { attrs: { gallery: e.event.gallery, label: e.$root.labels.event_gallery }, on: { galleryUpdated: e.galleryUpdated } }) : e._e(),
                                                                    e._v(" "),
                                                                    n("div", { staticClass: "am-event-colors" }, [
                                                                        n("div", { staticClass: "am-event-section-title" }, [e._v("\n                " + e._s(e.$root.labels.event_colors) + "\n              ")]),
                                                                        e._v(" "),
                                                                        n("div", { staticClass: "am-event-color-selection" }, [
                                                                            n(
                                                                                "div",
                                                                                [
                                                                                    n(
                                                                                        "el-radio",
                                                                                        {
                                                                                            attrs: { label: 1, value: "1" },
                                                                                            model: {
                                                                                                value: e.event.colorType,
                                                                                                callback: function (t) {
                                                                                                    e.$set(e.event, "colorType", t);
                                                                                                },
                                                                                                expression: "event.colorType",
                                                                                            },
                                                                                        },
                                                                                        [e._v(e._s(e.$root.labels.event_colors_preset))]
                                                                                    ),
                                                                                    e._v(" "),
                                                                                    n(
                                                                                        "div",
                                                                                        { staticClass: "am-event-swatches am-event-swatches-first" },
                                                                                        e._l(e.colors, function (t) {
                                                                                            return n("span", {
                                                                                                key: t,
                                                                                                class: { "color-active": t === e.event.selectedColor },
                                                                                                style: "background-color: " + t,
                                                                                                attrs: { "data-color": t },
                                                                                                on: { click: e.changeEventColor },
                                                                                            });
                                                                                        }),
                                                                                        0
                                                                                    ),
                                                                                ],
                                                                                1
                                                                            ),
                                                                            e._v(" "),
                                                                            n(
                                                                                "div",
                                                                                [
                                                                                    n(
                                                                                        "el-radio",
                                                                                        {
                                                                                            attrs: { label: 2, value: "2" },
                                                                                            model: {
                                                                                                value: e.event.colorType,
                                                                                                callback: function (t) {
                                                                                                    e.$set(e.event, "colorType", t);
                                                                                                },
                                                                                                expression: "event.colorType",
                                                                                            },
                                                                                        },
                                                                                        [e._v(e._s(e.$root.labels.event_colors_custom))]
                                                                                    ),
                                                                                    e._v(" "),
                                                                                    n("el-input", {
                                                                                        staticClass: "am-event-custom-color",
                                                                                        attrs: { disabled: 1 === e.event.colorType, placeholder: "000000" },
                                                                                        model: {
                                                                                            value: e.event.customColor,
                                                                                            callback: function (t) {
                                                                                                e.$set(e.event, "customColor", t);
                                                                                            },
                                                                                            expression: "event.customColor",
                                                                                        },
                                                                                    }),
                                                                                    e._v(" "),
                                                                                    n("div", { staticClass: "am-event-swatches" }, [
                                                                                        n("span", { style: "background-color: " + e.event.customColor, attrs: { "data-color": e.event.customColor } }),
                                                                                    ]),
                                                                                ],
                                                                                1
                                                                            ),
                                                                        ]),
                                                                    ]),
                                                                    e._v(" "),
                                                                    n(
                                                                        "div",
                                                                        [
                                                                            n(
                                                                                "el-checkbox",
                                                                                {
                                                                                    model: {
                                                                                        value: e.event.show,
                                                                                        callback: function (t) {
                                                                                            e.$set(e.event, "show", t);
                                                                                        },
                                                                                        expression: "event.show",
                                                                                    },
                                                                                },
                                                                                [e._v(e._s(e.$root.labels.event_show_on_site))]
                                                                            ),
                                                                        ],
                                                                        1
                                                                    ),
                                                                ],
                                                                1
                                                            ),
                                                            e._v(" "),
                                                            n(
                                                                "el-tab-pane",
                                                                { attrs: { label: e.$root.labels.settings, name: "settings" } },
                                                                [n("entity-settings", { attrs: { settings: e.settings, paymentsSettings: e.event.settings.payments, generalSettings: e.event.settings.general } })],
                                                                1
                                                            ),
                                                        ],
                                                        1
                                                    ),
                                                ],
                                                1
                                            )
                                          : e._e(),
                                  ],
                                  1
                              )
                            : e._e(),
                        e._v(" "),
                        e.event && !e.dialogLoading && "customer" !== this.$root.settings.role
                            ? n("dialog-actions", {
                                  attrs: {
                                      formName: "event",
                                      urlName: "events",
                                      isNew: 0 === e.event.id,
                                      entity: e.event,
                                      getParsedEntity: e.getParsedEntity,
                                      haveSaveConfirmation: e.haveSaveConfirmation,
                                      hasIcons: !1,
                                      updateStash: !0,
                                      hasApplyGloballyVisibility: e.originRecurring.until,
                                      hasApplyGloballyDeletion: e.originRecurring.until && "rejected" === e.event.status,
                                      status: { on: "approved", off: "rejected" },
                                      buttonType: { status: "approved" === e.event.status ? "danger" : "primary", remove: "danger", duplicate: "primary" },
                                      buttonText: {
                                          action: { remove: e.$root.labels.event_delete, status: "approved" === e.event.status ? e.$root.labels.event_cancel : e.$root.labels.event_open, duplicate: e.$root.labels.event_duplicate },
                                          confirm: {
                                              save: e.originRecurring.until ? { yes: e.$root.labels.update_following, no: e.$root.labels.save_single } : null,
                                              status: e.originRecurring.until ? { yes: "rejected" === e.event.status ? e.$root.labels.open_following : e.$root.labels.cancel_following, no: e.$root.labels.save_single } : null,
                                              remove: e.originRecurring.until ? { yes: e.$root.labels.delete_following, no: e.$root.labels.save_single } : null,
                                          },
                                      },
                                      action: {
                                          haveAdd: !0,
                                          haveEdit: !0,
                                          haveStatus: e.canManage(),
                                          haveRemove: !0 === e.$root.settings.capabilities.canDelete && "rejected" === e.event.status,
                                          haveRemoveEffect: "rejected" !== e.event.status,
                                          haveDuplicate: "approved" === e.event.status,
                                      },
                                      message: {
                                          success: { save: e.$root.labels.event_saved, remove: e.$root.labels.event_deleted, show: e.$root.labels.event_opened, hide: e.$root.labels.event_canceled },
                                          confirm: {
                                              save: e.originRecurring.until ? e.$root.labels.confirm_save_following : null,
                                              remove: e.originRecurring.until ? e.$root.labels.confirm_delete_following : e.$root.labels.confirm_delete,
                                              show: e.originRecurring.until ? e.$root.labels.confirm_open_following : e.$root.labels.confirm_open,
                                              hide: e.originRecurring.until ? e.$root.labels.confirm_cancel_following : e.$root.labels.confirm_cancel,
                                              duplicate: e.$root.labels.confirm_duplicate_event,
                                          },
                                      },
                                  },
                                  on: { validationFailCallback: e.validationFailCallback, errorCallback: e.errorCallback },
                              })
                            : e._e(),
                    ],
                    1
                );
            },
            staticRenderFns: [],
        };
    },
    937: function (e, t, n) {
        var i;
        !(function (t, n) {
            "use strict";
            "object" == typeof e && "object" == typeof e.exports
                ? (e.exports = t.document
                      ? n(t, !0)
                      : function (e) {
                            if (!e.document) throw new Error("jQuery requires a window with a document");
                            return n(e);
                        })
                : n(t);
        })("undefined" != typeof window ? window : this, function (n, o) {
            "use strict";
            var r = [],
                s = n.document,
                a = Object.getPrototypeOf,
                l = r.slice,
                c = r.concat,
                u = r.push,
                d = r.indexOf,
                p = {},
                h = p.toString,
                f = p.hasOwnProperty,
                m = f.toString,
                g = m.call(Object),
                v = {},
                y = function (e) {
                    return "function" == typeof e && "number" != typeof e.nodeType;
                },
                b = function (e) {
                    return null != e && e === e.window;
                },
                w = { type: !0, src: !0, noModule: !0 };
            function _(e, t, n) {
                var i,
                    o = (t = t || s).createElement("script");
                if (((o.text = e), n)) for (i in w) n[i] && (o[i] = n[i]);
                t.head.appendChild(o).parentNode.removeChild(o);
            }
            function D(e) {
                return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? p[h.call(e)] || "object" : typeof e;
            }
            var C = function (e, t) {
                    return new C.fn.init(e, t);
                },
                S = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
            function x(e) {
                var t = !!e && "length" in e && e.length,
                    n = D(e);
                return !y(e) && !b(e) && ("array" === n || 0 === t || ("number" == typeof t && t > 0 && t - 1 in e));
            }
            (C.fn = C.prototype = {
                jquery: "3.3.1",
                constructor: C,
                length: 0,
                toArray: function () {
                    return l.call(this);
                },
                get: function (e) {
                    return null == e ? l.call(this) : e < 0 ? this[e + this.length] : this[e];
                },
                pushStack: function (e) {
                    var t = C.merge(this.constructor(), e);
                    return (t.prevObject = this), t;
                },
                each: function (e) {
                    return C.each(this, e);
                },
                map: function (e) {
                    return this.pushStack(
                        C.map(this, function (t, n) {
                            return e.call(t, n, t);
                        })
                    );
                },
                slice: function () {
                    return this.pushStack(l.apply(this, arguments));
                },
                first: function () {
                    return this.eq(0);
                },
                last: function () {
                    return this.eq(-1);
                },
                eq: function (e) {
                    var t = this.length,
                        n = +e + (e < 0 ? t : 0);
                    return this.pushStack(n >= 0 && n < t ? [this[n]] : []);
                },
                end: function () {
                    return this.prevObject || this.constructor();
                },
                push: u,
                sort: r.sort,
                splice: r.splice,
            }),
                (C.extend = C.fn.extend = function () {
                    var e,
                        t,
                        n,
                        i,
                        o,
                        r,
                        s = arguments[0] || {},
                        a = 1,
                        l = arguments.length,
                        c = !1;
                    for ("boolean" == typeof s && ((c = s), (s = arguments[a] || {}), a++), "object" == typeof s || y(s) || (s = {}), a === l && ((s = this), a--); a < l; a++)
                        if (null != (e = arguments[a]))
                            for (t in e)
                                (n = s[t]),
                                    s !== (i = e[t]) &&
                                        (c && i && (C.isPlainObject(i) || (o = Array.isArray(i)))
                                            ? (o ? ((o = !1), (r = n && Array.isArray(n) ? n : [])) : (r = n && C.isPlainObject(n) ? n : {}), (s[t] = C.extend(c, r, i)))
                                            : void 0 !== i && (s[t] = i));
                    return s;
                }),
                C.extend({
                    expando: "jQuery" + ("3.3.1" + Math.random()).replace(/\D/g, ""),
                    isReady: !0,
                    error: function (e) {
                        throw new Error(e);
                    },
                    noop: function () {},
                    isPlainObject: function (e) {
                        var t, n;
                        return !(!e || "[object Object]" !== h.call(e)) && (!(t = a(e)) || ("function" == typeof (n = f.call(t, "constructor") && t.constructor) && m.call(n) === g));
                    },
                    isEmptyObject: function (e) {
                        var t;
                        for (t in e) return !1;
                        return !0;
                    },
                    globalEval: function (e) {
                        _(e);
                    },
                    each: function (e, t) {
                        var n,
                            i = 0;
                        if (x(e)) for (n = e.length; i < n && !1 !== t.call(e[i], i, e[i]); i++);
                        else for (i in e) if (!1 === t.call(e[i], i, e[i])) break;
                        return e;
                    },
                    trim: function (e) {
                        return null == e ? "" : (e + "").replace(S, "");
                    },
                    makeArray: function (e, t) {
                        var n = t || [];
                        return null != e && (x(Object(e)) ? C.merge(n, "string" == typeof e ? [e] : e) : u.call(n, e)), n;
                    },
                    inArray: function (e, t, n) {
                        return null == t ? -1 : d.call(t, e, n);
                    },
                    merge: function (e, t) {
                        for (var n = +t.length, i = 0, o = e.length; i < n; i++) e[o++] = t[i];
                        return (e.length = o), e;
                    },
                    grep: function (e, t, n) {
                        for (var i = [], o = 0, r = e.length, s = !n; o < r; o++) !t(e[o], o) !== s && i.push(e[o]);
                        return i;
                    },
                    map: function (e, t, n) {
                        var i,
                            o,
                            r = 0,
                            s = [];
                        if (x(e)) for (i = e.length; r < i; r++) null != (o = t(e[r], r, n)) && s.push(o);
                        else for (r in e) null != (o = t(e[r], r, n)) && s.push(o);
                        return c.apply([], s);
                    },
                    guid: 1,
                    support: v,
                }),
                "function" == typeof Symbol && (C.fn[Symbol.iterator] = r[Symbol.iterator]),
                C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (e, t) {
                    p["[object " + t + "]"] = t.toLowerCase();
                });
            var E = (function (e) {
                var t,
                    n,
                    i,
                    o,
                    r,
                    s,
                    a,
                    l,
                    c,
                    u,
                    d,
                    p,
                    h,
                    f,
                    m,
                    g,
                    v,
                    y,
                    b,
                    w = "sizzle" + 1 * new Date(),
                    _ = e.document,
                    D = 0,
                    C = 0,
                    S = se(),
                    x = se(),
                    E = se(),
                    T = function (e, t) {
                        return e === t && (d = !0), 0;
                    },
                    R = {}.hasOwnProperty,
                    k = [],
                    I = k.pop,
                    F = k.push,
                    M = k.push,
                    P = k.slice,
                    $ = function (e, t) {
                        for (var n = 0, i = e.length; n < i; n++) if (e[n] === t) return n;
                        return -1;
                    },
                    H = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
                    O = "[\\x20\\t\\r\\n\\f]",
                    A = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
                    B = "\\[" + O + "*(" + A + ")(?:" + O + "*([*^$|!~]?=)" + O + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + A + "))|)" + O + "*\\]",
                    N = ":(" + A + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + B + ")*)|.*)\\)|)",
                    L = new RegExp(O + "+", "g"),
                    j = new RegExp("^" + O + "+|((?:^|[^\\\\])(?:\\\\.)*)" + O + "+$", "g"),
                    z = new RegExp("^" + O + "*," + O + "*"),
                    Y = new RegExp("^" + O + "*([>+~]|" + O + ")" + O + "*"),
                    U = new RegExp("=" + O + "*([^\\]'\"]*?)" + O + "*\\]", "g"),
                    V = new RegExp(N),
                    q = new RegExp("^" + A + "$"),
                    G = {
                        ID: new RegExp("^#(" + A + ")"),
                        CLASS: new RegExp("^\\.(" + A + ")"),
                        TAG: new RegExp("^(" + A + "|[*])"),
                        ATTR: new RegExp("^" + B),
                        PSEUDO: new RegExp("^" + N),
                        CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + O + "*(even|odd|(([+-]|)(\\d*)n|)" + O + "*(?:([+-]|)" + O + "*(\\d+)|))" + O + "*\\)|)", "i"),
                        bool: new RegExp("^(?:" + H + ")$", "i"),
                        needsContext: new RegExp("^" + O + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + O + "*((?:-\\d)?\\d*)" + O + "*\\)|)(?=[^-]|$)", "i"),
                    },
                    W = /^(?:input|select|textarea|button)$/i,
                    J = /^h\d$/i,
                    X = /^[^{]+\{\s*\[native \w/,
                    Z = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
                    K = /[+~]/,
                    Q = new RegExp("\\\\([\\da-f]{1,6}" + O + "?|(" + O + ")|.)", "ig"),
                    ee = function (e, t, n) {
                        var i = "0x" + t - 65536;
                        return i != i || n ? t : i < 0 ? String.fromCharCode(i + 65536) : String.fromCharCode((i >> 10) | 55296, (1023 & i) | 56320);
                    },
                    te = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
                    ne = function (e, t) {
                        return t ? ("\0" === e ? "�" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) + " ") : "\\" + e;
                    },
                    ie = function () {
                        p();
                    },
                    oe = ye(
                        function (e) {
                            return !0 === e.disabled && ("form" in e || "label" in e);
                        },
                        { dir: "parentNode", next: "legend" }
                    );
                try {
                    M.apply((k = P.call(_.childNodes)), _.childNodes), k[_.childNodes.length].nodeType;
                } catch (e) {
                    M = {
                        apply: k.length
                            ? function (e, t) {
                                  F.apply(e, P.call(t));
                              }
                            : function (e, t) {
                                  for (var n = e.length, i = 0; (e[n++] = t[i++]); );
                                  e.length = n - 1;
                              },
                    };
                }
                function re(e, t, i, o) {
                    var r,
                        a,
                        c,
                        u,
                        d,
                        f,
                        v,
                        y = t && t.ownerDocument,
                        D = t ? t.nodeType : 9;
                    if (((i = i || []), "string" != typeof e || !e || (1 !== D && 9 !== D && 11 !== D))) return i;
                    if (!o && ((t ? t.ownerDocument || t : _) !== h && p(t), (t = t || h), m)) {
                        if (11 !== D && (d = Z.exec(e)))
                            if ((r = d[1])) {
                                if (9 === D) {
                                    if (!(c = t.getElementById(r))) return i;
                                    if (c.id === r) return i.push(c), i;
                                } else if (y && (c = y.getElementById(r)) && b(t, c) && c.id === r) return i.push(c), i;
                            } else {
                                if (d[2]) return M.apply(i, t.getElementsByTagName(e)), i;
                                if ((r = d[3]) && n.getElementsByClassName && t.getElementsByClassName) return M.apply(i, t.getElementsByClassName(r)), i;
                            }
                        if (n.qsa && !E[e + " "] && (!g || !g.test(e))) {
                            if (1 !== D) (y = t), (v = e);
                            else if ("object" !== t.nodeName.toLowerCase()) {
                                for ((u = t.getAttribute("id")) ? (u = u.replace(te, ne)) : t.setAttribute("id", (u = w)), a = (f = s(e)).length; a--; ) f[a] = "#" + u + " " + ve(f[a]);
                                (v = f.join(",")), (y = (K.test(e) && me(t.parentNode)) || t);
                            }
                            if (v)
                                try {
                                    return M.apply(i, y.querySelectorAll(v)), i;
                                } catch (e) {
                                } finally {
                                    u === w && t.removeAttribute("id");
                                }
                        }
                    }
                    return l(e.replace(j, "$1"), t, i, o);
                }
                function se() {
                    var e = [];
                    return function t(n, o) {
                        return e.push(n + " ") > i.cacheLength && delete t[e.shift()], (t[n + " "] = o);
                    };
                }
                function ae(e) {
                    return (e[w] = !0), e;
                }
                function le(e) {
                    var t = h.createElement("fieldset");
                    try {
                        return !!e(t);
                    } catch (e) {
                        return !1;
                    } finally {
                        t.parentNode && t.parentNode.removeChild(t), (t = null);
                    }
                }
                function ce(e, t) {
                    for (var n = e.split("|"), o = n.length; o--; ) i.attrHandle[n[o]] = t;
                }
                function ue(e, t) {
                    var n = t && e,
                        i = n && 1 === e.nodeType && 1 === t.nodeType && e.sourceIndex - t.sourceIndex;
                    if (i) return i;
                    if (n) for (; (n = n.nextSibling); ) if (n === t) return -1;
                    return e ? 1 : -1;
                }
                function de(e) {
                    return function (t) {
                        return "input" === t.nodeName.toLowerCase() && t.type === e;
                    };
                }
                function pe(e) {
                    return function (t) {
                        var n = t.nodeName.toLowerCase();
                        return ("input" === n || "button" === n) && t.type === e;
                    };
                }
                function he(e) {
                    return function (t) {
                        return "form" in t
                            ? t.parentNode && !1 === t.disabled
                                ? "label" in t
                                    ? "label" in t.parentNode
                                        ? t.parentNode.disabled === e
                                        : t.disabled === e
                                    : t.isDisabled === e || (t.isDisabled !== !e && oe(t) === e)
                                : t.disabled === e
                            : "label" in t && t.disabled === e;
                    };
                }
                function fe(e) {
                    return ae(function (t) {
                        return (
                            (t = +t),
                            ae(function (n, i) {
                                for (var o, r = e([], n.length, t), s = r.length; s--; ) n[(o = r[s])] && (n[o] = !(i[o] = n[o]));
                            })
                        );
                    });
                }
                function me(e) {
                    return e && void 0 !== e.getElementsByTagName && e;
                }
                for (t in ((n = re.support = {}),
                (r = re.isXML = function (e) {
                    var t = e && (e.ownerDocument || e).documentElement;
                    return !!t && "HTML" !== t.nodeName;
                }),
                (p = re.setDocument = function (e) {
                    var t,
                        o,
                        s = e ? e.ownerDocument || e : _;
                    return s !== h && 9 === s.nodeType && s.documentElement
                        ? ((f = (h = s).documentElement),
                          (m = !r(h)),
                          _ !== h && (o = h.defaultView) && o.top !== o && (o.addEventListener ? o.addEventListener("unload", ie, !1) : o.attachEvent && o.attachEvent("onunload", ie)),
                          (n.attributes = le(function (e) {
                              return (e.className = "i"), !e.getAttribute("className");
                          })),
                          (n.getElementsByTagName = le(function (e) {
                              return e.appendChild(h.createComment("")), !e.getElementsByTagName("*").length;
                          })),
                          (n.getElementsByClassName = X.test(h.getElementsByClassName)),
                          (n.getById = le(function (e) {
                              return (f.appendChild(e).id = w), !h.getElementsByName || !h.getElementsByName(w).length;
                          })),
                          n.getById
                              ? ((i.filter.ID = function (e) {
                                    var t = e.replace(Q, ee);
                                    return function (e) {
                                        return e.getAttribute("id") === t;
                                    };
                                }),
                                (i.find.ID = function (e, t) {
                                    if (void 0 !== t.getElementById && m) {
                                        var n = t.getElementById(e);
                                        return n ? [n] : [];
                                    }
                                }))
                              : ((i.filter.ID = function (e) {
                                    var t = e.replace(Q, ee);
                                    return function (e) {
                                        var n = void 0 !== e.getAttributeNode && e.getAttributeNode("id");
                                        return n && n.value === t;
                                    };
                                }),
                                (i.find.ID = function (e, t) {
                                    if (void 0 !== t.getElementById && m) {
                                        var n,
                                            i,
                                            o,
                                            r = t.getElementById(e);
                                        if (r) {
                                            if ((n = r.getAttributeNode("id")) && n.value === e) return [r];
                                            for (o = t.getElementsByName(e), i = 0; (r = o[i++]); ) if ((n = r.getAttributeNode("id")) && n.value === e) return [r];
                                        }
                                        return [];
                                    }
                                })),
                          (i.find.TAG = n.getElementsByTagName
                              ? function (e, t) {
                                    return void 0 !== t.getElementsByTagName ? t.getElementsByTagName(e) : n.qsa ? t.querySelectorAll(e) : void 0;
                                }
                              : function (e, t) {
                                    var n,
                                        i = [],
                                        o = 0,
                                        r = t.getElementsByTagName(e);
                                    if ("*" === e) {
                                        for (; (n = r[o++]); ) 1 === n.nodeType && i.push(n);
                                        return i;
                                    }
                                    return r;
                                }),
                          (i.find.CLASS =
                              n.getElementsByClassName &&
                              function (e, t) {
                                  if (void 0 !== t.getElementsByClassName && m) return t.getElementsByClassName(e);
                              }),
                          (v = []),
                          (g = []),
                          (n.qsa = X.test(h.querySelectorAll)) &&
                              (le(function (e) {
                                  (f.appendChild(e).innerHTML = "<a id='" + w + "'></a><select id='" + w + "-\r\\' msallowcapture=''><option selected=''></option></select>"),
                                      e.querySelectorAll("[msallowcapture^='']").length && g.push("[*^$]=" + O + "*(?:''|\"\")"),
                                      e.querySelectorAll("[selected]").length || g.push("\\[" + O + "*(?:value|" + H + ")"),
                                      e.querySelectorAll("[id~=" + w + "-]").length || g.push("~="),
                                      e.querySelectorAll(":checked").length || g.push(":checked"),
                                      e.querySelectorAll("a#" + w + "+*").length || g.push(".#.+[+~]");
                              }),
                              le(function (e) {
                                  e.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
                                  var t = h.createElement("input");
                                  t.setAttribute("type", "hidden"),
                                      e.appendChild(t).setAttribute("name", "D"),
                                      e.querySelectorAll("[name=d]").length && g.push("name" + O + "*[*^$|!~]?="),
                                      2 !== e.querySelectorAll(":enabled").length && g.push(":enabled", ":disabled"),
                                      (f.appendChild(e).disabled = !0),
                                      2 !== e.querySelectorAll(":disabled").length && g.push(":enabled", ":disabled"),
                                      e.querySelectorAll("*,:x"),
                                      g.push(",.*:");
                              })),
                          (n.matchesSelector = X.test((y = f.matches || f.webkitMatchesSelector || f.mozMatchesSelector || f.oMatchesSelector || f.msMatchesSelector))) &&
                              le(function (e) {
                                  (n.disconnectedMatch = y.call(e, "*")), y.call(e, "[s!='']:x"), v.push("!=", N);
                              }),
                          (g = g.length && new RegExp(g.join("|"))),
                          (v = v.length && new RegExp(v.join("|"))),
                          (t = X.test(f.compareDocumentPosition)),
                          (b =
                              t || X.test(f.contains)
                                  ? function (e, t) {
                                        var n = 9 === e.nodeType ? e.documentElement : e,
                                            i = t && t.parentNode;
                                        return e === i || !(!i || 1 !== i.nodeType || !(n.contains ? n.contains(i) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(i)));
                                    }
                                  : function (e, t) {
                                        if (t) for (; (t = t.parentNode); ) if (t === e) return !0;
                                        return !1;
                                    }),
                          (T = t
                              ? function (e, t) {
                                    if (e === t) return (d = !0), 0;
                                    var i = !e.compareDocumentPosition - !t.compareDocumentPosition;
                                    return (
                                        i ||
                                        (1 & (i = (e.ownerDocument || e) === (t.ownerDocument || t) ? e.compareDocumentPosition(t) : 1) || (!n.sortDetached && t.compareDocumentPosition(e) === i)
                                            ? e === h || (e.ownerDocument === _ && b(_, e))
                                                ? -1
                                                : t === h || (t.ownerDocument === _ && b(_, t))
                                                ? 1
                                                : u
                                                ? $(u, e) - $(u, t)
                                                : 0
                                            : 4 & i
                                            ? -1
                                            : 1)
                                    );
                                }
                              : function (e, t) {
                                    if (e === t) return (d = !0), 0;
                                    var n,
                                        i = 0,
                                        o = e.parentNode,
                                        r = t.parentNode,
                                        s = [e],
                                        a = [t];
                                    if (!o || !r) return e === h ? -1 : t === h ? 1 : o ? -1 : r ? 1 : u ? $(u, e) - $(u, t) : 0;
                                    if (o === r) return ue(e, t);
                                    for (n = e; (n = n.parentNode); ) s.unshift(n);
                                    for (n = t; (n = n.parentNode); ) a.unshift(n);
                                    for (; s[i] === a[i]; ) i++;
                                    return i ? ue(s[i], a[i]) : s[i] === _ ? -1 : a[i] === _ ? 1 : 0;
                                }),
                          h)
                        : h;
                }),
                (re.matches = function (e, t) {
                    return re(e, null, null, t);
                }),
                (re.matchesSelector = function (e, t) {
                    if (((e.ownerDocument || e) !== h && p(e), (t = t.replace(U, "='$1']")), n.matchesSelector && m && !E[t + " "] && (!v || !v.test(t)) && (!g || !g.test(t))))
                        try {
                            var i = y.call(e, t);
                            if (i || n.disconnectedMatch || (e.document && 11 !== e.document.nodeType)) return i;
                        } catch (e) {}
                    return re(t, h, null, [e]).length > 0;
                }),
                (re.contains = function (e, t) {
                    return (e.ownerDocument || e) !== h && p(e), b(e, t);
                }),
                (re.attr = function (e, t) {
                    (e.ownerDocument || e) !== h && p(e);
                    var o = i.attrHandle[t.toLowerCase()],
                        r = o && R.call(i.attrHandle, t.toLowerCase()) ? o(e, t, !m) : void 0;
                    return void 0 !== r ? r : n.attributes || !m ? e.getAttribute(t) : (r = e.getAttributeNode(t)) && r.specified ? r.value : null;
                }),
                (re.escape = function (e) {
                    return (e + "").replace(te, ne);
                }),
                (re.error = function (e) {
                    throw new Error("Syntax error, unrecognized expression: " + e);
                }),
                (re.uniqueSort = function (e) {
                    var t,
                        i = [],
                        o = 0,
                        r = 0;
                    if (((d = !n.detectDuplicates), (u = !n.sortStable && e.slice(0)), e.sort(T), d)) {
                        for (; (t = e[r++]); ) t === e[r] && (o = i.push(r));
                        for (; o--; ) e.splice(i[o], 1);
                    }
                    return (u = null), e;
                }),
                (o = re.getText = function (e) {
                    var t,
                        n = "",
                        i = 0,
                        r = e.nodeType;
                    if (r) {
                        if (1 === r || 9 === r || 11 === r) {
                            if ("string" == typeof e.textContent) return e.textContent;
                            for (e = e.firstChild; e; e = e.nextSibling) n += o(e);
                        } else if (3 === r || 4 === r) return e.nodeValue;
                    } else for (; (t = e[i++]); ) n += o(t);
                    return n;
                }),
                ((i = re.selectors = {
                    cacheLength: 50,
                    createPseudo: ae,
                    match: G,
                    attrHandle: {},
                    find: {},
                    relative: { ">": { dir: "parentNode", first: !0 }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: !0 }, "~": { dir: "previousSibling" } },
                    preFilter: {
                        ATTR: function (e) {
                            return (e[1] = e[1].replace(Q, ee)), (e[3] = (e[3] || e[4] || e[5] || "").replace(Q, ee)), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4);
                        },
                        CHILD: function (e) {
                            return (
                                (e[1] = e[1].toLowerCase()),
                                "nth" === e[1].slice(0, 3) ? (e[3] || re.error(e[0]), (e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3]))), (e[5] = +(e[7] + e[8] || "odd" === e[3]))) : e[3] && re.error(e[0]),
                                e
                            );
                        },
                        PSEUDO: function (e) {
                            var t,
                                n = !e[6] && e[2];
                            return G.CHILD.test(e[0])
                                ? null
                                : (e[3] ? (e[2] = e[4] || e[5] || "") : n && V.test(n) && (t = s(n, !0)) && (t = n.indexOf(")", n.length - t) - n.length) && ((e[0] = e[0].slice(0, t)), (e[2] = n.slice(0, t))), e.slice(0, 3));
                        },
                    },
                    filter: {
                        TAG: function (e) {
                            var t = e.replace(Q, ee).toLowerCase();
                            return "*" === e
                                ? function () {
                                      return !0;
                                  }
                                : function (e) {
                                      return e.nodeName && e.nodeName.toLowerCase() === t;
                                  };
                        },
                        CLASS: function (e) {
                            var t = S[e + " "];
                            return (
                                t ||
                                ((t = new RegExp("(^|" + O + ")" + e + "(" + O + "|$)")) &&
                                    S(e, function (e) {
                                        return t.test(("string" == typeof e.className && e.className) || (void 0 !== e.getAttribute && e.getAttribute("class")) || "");
                                    }))
                            );
                        },
                        ATTR: function (e, t, n) {
                            return function (i) {
                                var o = re.attr(i, e);
                                return null == o
                                    ? "!=" === t
                                    : !t ||
                                          ((o += ""),
                                          "=" === t
                                              ? o === n
                                              : "!=" === t
                                              ? o !== n
                                              : "^=" === t
                                              ? n && 0 === o.indexOf(n)
                                              : "*=" === t
                                              ? n && o.indexOf(n) > -1
                                              : "$=" === t
                                              ? n && o.slice(-n.length) === n
                                              : "~=" === t
                                              ? (" " + o.replace(L, " ") + " ").indexOf(n) > -1
                                              : "|=" === t && (o === n || o.slice(0, n.length + 1) === n + "-"));
                            };
                        },
                        CHILD: function (e, t, n, i, o) {
                            var r = "nth" !== e.slice(0, 3),
                                s = "last" !== e.slice(-4),
                                a = "of-type" === t;
                            return 1 === i && 0 === o
                                ? function (e) {
                                      return !!e.parentNode;
                                  }
                                : function (t, n, l) {
                                      var c,
                                          u,
                                          d,
                                          p,
                                          h,
                                          f,
                                          m = r !== s ? "nextSibling" : "previousSibling",
                                          g = t.parentNode,
                                          v = a && t.nodeName.toLowerCase(),
                                          y = !l && !a,
                                          b = !1;
                                      if (g) {
                                          if (r) {
                                              for (; m; ) {
                                                  for (p = t; (p = p[m]); ) if (a ? p.nodeName.toLowerCase() === v : 1 === p.nodeType) return !1;
                                                  f = m = "only" === e && !f && "nextSibling";
                                              }
                                              return !0;
                                          }
                                          if (((f = [s ? g.firstChild : g.lastChild]), s && y)) {
                                              for (
                                                  b = (h = (c = (u = (d = (p = g)[w] || (p[w] = {}))[p.uniqueID] || (d[p.uniqueID] = {}))[e] || [])[0] === D && c[1]) && c[2], p = h && g.childNodes[h];
                                                  (p = (++h && p && p[m]) || (b = h = 0) || f.pop());

                                              )
                                                  if (1 === p.nodeType && ++b && p === t) {
                                                      u[e] = [D, h, b];
                                                      break;
                                                  }
                                          } else if ((y && (b = h = (c = (u = (d = (p = t)[w] || (p[w] = {}))[p.uniqueID] || (d[p.uniqueID] = {}))[e] || [])[0] === D && c[1]), !1 === b))
                                              for (
                                                  ;
                                                  (p = (++h && p && p[m]) || (b = h = 0) || f.pop()) &&
                                                  ((a ? p.nodeName.toLowerCase() !== v : 1 !== p.nodeType) || !++b || (y && ((u = (d = p[w] || (p[w] = {}))[p.uniqueID] || (d[p.uniqueID] = {}))[e] = [D, b]), p !== t));

                                              );
                                          return (b -= o) === i || (b % i == 0 && b / i >= 0);
                                      }
                                  };
                        },
                        PSEUDO: function (e, t) {
                            var n,
                                o = i.pseudos[e] || i.setFilters[e.toLowerCase()] || re.error("unsupported pseudo: " + e);
                            return o[w]
                                ? o(t)
                                : o.length > 1
                                ? ((n = [e, e, "", t]),
                                  i.setFilters.hasOwnProperty(e.toLowerCase())
                                      ? ae(function (e, n) {
                                            for (var i, r = o(e, t), s = r.length; s--; ) e[(i = $(e, r[s]))] = !(n[i] = r[s]);
                                        })
                                      : function (e) {
                                            return o(e, 0, n);
                                        })
                                : o;
                        },
                    },
                    pseudos: {
                        not: ae(function (e) {
                            var t = [],
                                n = [],
                                i = a(e.replace(j, "$1"));
                            return i[w]
                                ? ae(function (e, t, n, o) {
                                      for (var r, s = i(e, null, o, []), a = e.length; a--; ) (r = s[a]) && (e[a] = !(t[a] = r));
                                  })
                                : function (e, o, r) {
                                      return (t[0] = e), i(t, null, r, n), (t[0] = null), !n.pop();
                                  };
                        }),
                        has: ae(function (e) {
                            return function (t) {
                                return re(e, t).length > 0;
                            };
                        }),
                        contains: ae(function (e) {
                            return (
                                (e = e.replace(Q, ee)),
                                function (t) {
                                    return (t.textContent || t.innerText || o(t)).indexOf(e) > -1;
                                }
                            );
                        }),
                        lang: ae(function (e) {
                            return (
                                q.test(e || "") || re.error("unsupported lang: " + e),
                                (e = e.replace(Q, ee).toLowerCase()),
                                function (t) {
                                    var n;
                                    do {
                                        if ((n = m ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang"))) return (n = n.toLowerCase()) === e || 0 === n.indexOf(e + "-");
                                    } while ((t = t.parentNode) && 1 === t.nodeType);
                                    return !1;
                                }
                            );
                        }),
                        target: function (t) {
                            var n = e.location && e.location.hash;
                            return n && n.slice(1) === t.id;
                        },
                        root: function (e) {
                            return e === f;
                        },
                        focus: function (e) {
                            return e === h.activeElement && (!h.hasFocus || h.hasFocus()) && !!(e.type || e.href || ~e.tabIndex);
                        },
                        enabled: he(!1),
                        disabled: he(!0),
                        checked: function (e) {
                            var t = e.nodeName.toLowerCase();
                            return ("input" === t && !!e.checked) || ("option" === t && !!e.selected);
                        },
                        selected: function (e) {
                            return e.parentNode && e.parentNode.selectedIndex, !0 === e.selected;
                        },
                        empty: function (e) {
                            for (e = e.firstChild; e; e = e.nextSibling) if (e.nodeType < 6) return !1;
                            return !0;
                        },
                        parent: function (e) {
                            return !i.pseudos.empty(e);
                        },
                        header: function (e) {
                            return J.test(e.nodeName);
                        },
                        input: function (e) {
                            return W.test(e.nodeName);
                        },
                        button: function (e) {
                            var t = e.nodeName.toLowerCase();
                            return ("input" === t && "button" === e.type) || "button" === t;
                        },
                        text: function (e) {
                            var t;
                            return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase());
                        },
                        first: fe(function () {
                            return [0];
                        }),
                        last: fe(function (e, t) {
                            return [t - 1];
                        }),
                        eq: fe(function (e, t, n) {
                            return [n < 0 ? n + t : n];
                        }),
                        even: fe(function (e, t) {
                            for (var n = 0; n < t; n += 2) e.push(n);
                            return e;
                        }),
                        odd: fe(function (e, t) {
                            for (var n = 1; n < t; n += 2) e.push(n);
                            return e;
                        }),
                        lt: fe(function (e, t, n) {
                            for (var i = n < 0 ? n + t : n; --i >= 0; ) e.push(i);
                            return e;
                        }),
                        gt: fe(function (e, t, n) {
                            for (var i = n < 0 ? n + t : n; ++i < t; ) e.push(i);
                            return e;
                        }),
                    },
                }).pseudos.nth = i.pseudos.eq),
                { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 }))
                    i.pseudos[t] = de(t);
                for (t in { submit: !0, reset: !0 }) i.pseudos[t] = pe(t);
                function ge() {}
                function ve(e) {
                    for (var t = 0, n = e.length, i = ""; t < n; t++) i += e[t].value;
                    return i;
                }
                function ye(e, t, n) {
                    var i = t.dir,
                        o = t.next,
                        r = o || i,
                        s = n && "parentNode" === r,
                        a = C++;
                    return t.first
                        ? function (t, n, o) {
                              for (; (t = t[i]); ) if (1 === t.nodeType || s) return e(t, n, o);
                              return !1;
                          }
                        : function (t, n, l) {
                              var c,
                                  u,
                                  d,
                                  p = [D, a];
                              if (l) {
                                  for (; (t = t[i]); ) if ((1 === t.nodeType || s) && e(t, n, l)) return !0;
                              } else
                                  for (; (t = t[i]); )
                                      if (1 === t.nodeType || s)
                                          if (((u = (d = t[w] || (t[w] = {}))[t.uniqueID] || (d[t.uniqueID] = {})), o && o === t.nodeName.toLowerCase())) t = t[i] || t;
                                          else {
                                              if ((c = u[r]) && c[0] === D && c[1] === a) return (p[2] = c[2]);
                                              if (((u[r] = p), (p[2] = e(t, n, l)))) return !0;
                                          }
                              return !1;
                          };
                }
                function be(e) {
                    return e.length > 1
                        ? function (t, n, i) {
                              for (var o = e.length; o--; ) if (!e[o](t, n, i)) return !1;
                              return !0;
                          }
                        : e[0];
                }
                function we(e, t, n, i, o) {
                    for (var r, s = [], a = 0, l = e.length, c = null != t; a < l; a++) (r = e[a]) && ((n && !n(r, i, o)) || (s.push(r), c && t.push(a)));
                    return s;
                }
                function _e(e, t, n, i, o, r) {
                    return (
                        i && !i[w] && (i = _e(i)),
                        o && !o[w] && (o = _e(o, r)),
                        ae(function (r, s, a, l) {
                            var c,
                                u,
                                d,
                                p = [],
                                h = [],
                                f = s.length,
                                m =
                                    r ||
                                    (function (e, t, n) {
                                        for (var i = 0, o = t.length; i < o; i++) re(e, t[i], n);
                                        return n;
                                    })(t || "*", a.nodeType ? [a] : a, []),
                                g = !e || (!r && t) ? m : we(m, p, e, a, l),
                                v = n ? (o || (r ? e : f || i) ? [] : s) : g;
                            if ((n && n(g, v, a, l), i)) for (c = we(v, h), i(c, [], a, l), u = c.length; u--; ) (d = c[u]) && (v[h[u]] = !(g[h[u]] = d));
                            if (r) {
                                if (o || e) {
                                    if (o) {
                                        for (c = [], u = v.length; u--; ) (d = v[u]) && c.push((g[u] = d));
                                        o(null, (v = []), c, l);
                                    }
                                    for (u = v.length; u--; ) (d = v[u]) && (c = o ? $(r, d) : p[u]) > -1 && (r[c] = !(s[c] = d));
                                }
                            } else (v = we(v === s ? v.splice(f, v.length) : v)), o ? o(null, s, v, l) : M.apply(s, v);
                        })
                    );
                }
                function De(e) {
                    for (
                        var t,
                            n,
                            o,
                            r = e.length,
                            s = i.relative[e[0].type],
                            a = s || i.relative[" "],
                            l = s ? 1 : 0,
                            u = ye(
                                function (e) {
                                    return e === t;
                                },
                                a,
                                !0
                            ),
                            d = ye(
                                function (e) {
                                    return $(t, e) > -1;
                                },
                                a,
                                !0
                            ),
                            p = [
                                function (e, n, i) {
                                    var o = (!s && (i || n !== c)) || ((t = n).nodeType ? u(e, n, i) : d(e, n, i));
                                    return (t = null), o;
                                },
                            ];
                        l < r;
                        l++
                    )
                        if ((n = i.relative[e[l].type])) p = [ye(be(p), n)];
                        else {
                            if ((n = i.filter[e[l].type].apply(null, e[l].matches))[w]) {
                                for (o = ++l; o < r && !i.relative[e[o].type]; o++);
                                return _e(l > 1 && be(p), l > 1 && ve(e.slice(0, l - 1).concat({ value: " " === e[l - 2].type ? "*" : "" })).replace(j, "$1"), n, l < o && De(e.slice(l, o)), o < r && De((e = e.slice(o))), o < r && ve(e));
                            }
                            p.push(n);
                        }
                    return be(p);
                }
                return (
                    (ge.prototype = i.filters = i.pseudos),
                    (i.setFilters = new ge()),
                    (s = re.tokenize = function (e, t) {
                        var n,
                            o,
                            r,
                            s,
                            a,
                            l,
                            c,
                            u = x[e + " "];
                        if (u) return t ? 0 : u.slice(0);
                        for (a = e, l = [], c = i.preFilter; a; ) {
                            for (s in ((n && !(o = z.exec(a))) || (o && (a = a.slice(o[0].length) || a), l.push((r = []))),
                            (n = !1),
                            (o = Y.exec(a)) && ((n = o.shift()), r.push({ value: n, type: o[0].replace(j, " ") }), (a = a.slice(n.length))),
                            i.filter))
                                !(o = G[s].exec(a)) || (c[s] && !(o = c[s](o))) || ((n = o.shift()), r.push({ value: n, type: s, matches: o }), (a = a.slice(n.length)));
                            if (!n) break;
                        }
                        return t ? a.length : a ? re.error(e) : x(e, l).slice(0);
                    }),
                    (a = re.compile = function (e, t) {
                        var n,
                            o = [],
                            r = [],
                            a = E[e + " "];
                        if (!a) {
                            for (t || (t = s(e)), n = t.length; n--; ) (a = De(t[n]))[w] ? o.push(a) : r.push(a);
                            (a = E(
                                e,
                                (function (e, t) {
                                    var n = t.length > 0,
                                        o = e.length > 0,
                                        r = function (r, s, a, l, u) {
                                            var d,
                                                f,
                                                g,
                                                v = 0,
                                                y = "0",
                                                b = r && [],
                                                w = [],
                                                _ = c,
                                                C = r || (o && i.find.TAG("*", u)),
                                                S = (D += null == _ ? 1 : Math.random() || 0.1),
                                                x = C.length;
                                            for (u && (c = s === h || s || u); y !== x && null != (d = C[y]); y++) {
                                                if (o && d) {
                                                    for (f = 0, s || d.ownerDocument === h || (p(d), (a = !m)); (g = e[f++]); )
                                                        if (g(d, s || h, a)) {
                                                            l.push(d);
                                                            break;
                                                        }
                                                    u && (D = S);
                                                }
                                                n && ((d = !g && d) && v--, r && b.push(d));
                                            }
                                            if (((v += y), n && y !== v)) {
                                                for (f = 0; (g = t[f++]); ) g(b, w, s, a);
                                                if (r) {
                                                    if (v > 0) for (; y--; ) b[y] || w[y] || (w[y] = I.call(l));
                                                    w = we(w);
                                                }
                                                M.apply(l, w), u && !r && w.length > 0 && v + t.length > 1 && re.uniqueSort(l);
                                            }
                                            return u && ((D = S), (c = _)), b;
                                        };
                                    return n ? ae(r) : r;
                                })(r, o)
                            )).selector = e;
                        }
                        return a;
                    }),
                    (l = re.select = function (e, t, n, o) {
                        var r,
                            l,
                            c,
                            u,
                            d,
                            p = "function" == typeof e && e,
                            h = !o && s((e = p.selector || e));
                        if (((n = n || []), 1 === h.length)) {
                            if ((l = h[0] = h[0].slice(0)).length > 2 && "ID" === (c = l[0]).type && 9 === t.nodeType && m && i.relative[l[1].type]) {
                                if (!(t = (i.find.ID(c.matches[0].replace(Q, ee), t) || [])[0])) return n;
                                p && (t = t.parentNode), (e = e.slice(l.shift().value.length));
                            }
                            for (r = G.needsContext.test(e) ? 0 : l.length; r-- && ((c = l[r]), !i.relative[(u = c.type)]); )
                                if ((d = i.find[u]) && (o = d(c.matches[0].replace(Q, ee), (K.test(l[0].type) && me(t.parentNode)) || t))) {
                                    if ((l.splice(r, 1), !(e = o.length && ve(l)))) return M.apply(n, o), n;
                                    break;
                                }
                        }
                        return (p || a(e, h))(o, t, !m, n, !t || (K.test(e) && me(t.parentNode)) || t), n;
                    }),
                    (n.sortStable = w.split("").sort(T).join("") === w),
                    (n.detectDuplicates = !!d),
                    p(),
                    (n.sortDetached = le(function (e) {
                        return 1 & e.compareDocumentPosition(h.createElement("fieldset"));
                    })),
                    le(function (e) {
                        return (e.innerHTML = "<a href='#'></a>"), "#" === e.firstChild.getAttribute("href");
                    }) ||
                        ce("type|href|height|width", function (e, t, n) {
                            if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2);
                        }),
                    (n.attributes &&
                        le(function (e) {
                            return (e.innerHTML = "<input/>"), e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value");
                        })) ||
                        ce("value", function (e, t, n) {
                            if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue;
                        }),
                    le(function (e) {
                        return null == e.getAttribute("disabled");
                    }) ||
                        ce(H, function (e, t, n) {
                            var i;
                            if (!n) return !0 === e[t] ? t.toLowerCase() : (i = e.getAttributeNode(t)) && i.specified ? i.value : null;
                        }),
                    re
                );
            })(n);
            (C.find = E), (C.expr = E.selectors), (C.expr[":"] = C.expr.pseudos), (C.uniqueSort = C.unique = E.uniqueSort), (C.text = E.getText), (C.isXMLDoc = E.isXML), (C.contains = E.contains), (C.escapeSelector = E.escape);
            var T = function (e, t, n) {
                    for (var i = [], o = void 0 !== n; (e = e[t]) && 9 !== e.nodeType; )
                        if (1 === e.nodeType) {
                            if (o && C(e).is(n)) break;
                            i.push(e);
                        }
                    return i;
                },
                R = function (e, t) {
                    for (var n = []; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e);
                    return n;
                },
                k = C.expr.match.needsContext;
            function I(e, t) {
                return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase();
            }
            var F = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
            function M(e, t, n) {
                return y(t)
                    ? C.grep(e, function (e, i) {
                          return !!t.call(e, i, e) !== n;
                      })
                    : t.nodeType
                    ? C.grep(e, function (e) {
                          return (e === t) !== n;
                      })
                    : "string" != typeof t
                    ? C.grep(e, function (e) {
                          return d.call(t, e) > -1 !== n;
                      })
                    : C.filter(t, e, n);
            }
            (C.filter = function (e, t, n) {
                var i = t[0];
                return (
                    n && (e = ":not(" + e + ")"),
                    1 === t.length && 1 === i.nodeType
                        ? C.find.matchesSelector(i, e)
                            ? [i]
                            : []
                        : C.find.matches(
                              e,
                              C.grep(t, function (e) {
                                  return 1 === e.nodeType;
                              })
                          )
                );
            }),
                C.fn.extend({
                    find: function (e) {
                        var t,
                            n,
                            i = this.length,
                            o = this;
                        if ("string" != typeof e)
                            return this.pushStack(
                                C(e).filter(function () {
                                    for (t = 0; t < i; t++) if (C.contains(o[t], this)) return !0;
                                })
                            );
                        for (n = this.pushStack([]), t = 0; t < i; t++) C.find(e, o[t], n);
                        return i > 1 ? C.uniqueSort(n) : n;
                    },
                    filter: function (e) {
                        return this.pushStack(M(this, e || [], !1));
                    },
                    not: function (e) {
                        return this.pushStack(M(this, e || [], !0));
                    },
                    is: function (e) {
                        return !!M(this, "string" == typeof e && k.test(e) ? C(e) : e || [], !1).length;
                    },
                });
            var P,
                $ = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
            ((C.fn.init = function (e, t, n) {
                var i, o;
                if (!e) return this;
                if (((n = n || P), "string" == typeof e)) {
                    if (!(i = "<" === e[0] && ">" === e[e.length - 1] && e.length >= 3 ? [null, e, null] : $.exec(e)) || (!i[1] && t)) return !t || t.jquery ? (t || n).find(e) : this.constructor(t).find(e);
                    if (i[1]) {
                        if (((t = t instanceof C ? t[0] : t), C.merge(this, C.parseHTML(i[1], t && t.nodeType ? t.ownerDocument || t : s, !0)), F.test(i[1]) && C.isPlainObject(t)))
                            for (i in t) y(this[i]) ? this[i](t[i]) : this.attr(i, t[i]);
                        return this;
                    }
                    return (o = s.getElementById(i[2])) && ((this[0] = o), (this.length = 1)), this;
                }
                return e.nodeType ? ((this[0] = e), (this.length = 1), this) : y(e) ? (void 0 !== n.ready ? n.ready(e) : e(C)) : C.makeArray(e, this);
            }).prototype = C.fn),
                (P = C(s));
            var H = /^(?:parents|prev(?:Until|All))/,
                O = { children: !0, contents: !0, next: !0, prev: !0 };
            function A(e, t) {
                for (; (e = e[t]) && 1 !== e.nodeType; );
                return e;
            }
            C.fn.extend({
                has: function (e) {
                    var t = C(e, this),
                        n = t.length;
                    return this.filter(function () {
                        for (var e = 0; e < n; e++) if (C.contains(this, t[e])) return !0;
                    });
                },
                closest: function (e, t) {
                    var n,
                        i = 0,
                        o = this.length,
                        r = [],
                        s = "string" != typeof e && C(e);
                    if (!k.test(e))
                        for (; i < o; i++)
                            for (n = this[i]; n && n !== t; n = n.parentNode)
                                if (n.nodeType < 11 && (s ? s.index(n) > -1 : 1 === n.nodeType && C.find.matchesSelector(n, e))) {
                                    r.push(n);
                                    break;
                                }
                    return this.pushStack(r.length > 1 ? C.uniqueSort(r) : r);
                },
                index: function (e) {
                    return e ? ("string" == typeof e ? d.call(C(e), this[0]) : d.call(this, e.jquery ? e[0] : e)) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1;
                },
                add: function (e, t) {
                    return this.pushStack(C.uniqueSort(C.merge(this.get(), C(e, t))));
                },
                addBack: function (e) {
                    return this.add(null == e ? this.prevObject : this.prevObject.filter(e));
                },
            }),
                C.each(
                    {
                        parent: function (e) {
                            var t = e.parentNode;
                            return t && 11 !== t.nodeType ? t : null;
                        },
                        parents: function (e) {
                            return T(e, "parentNode");
                        },
                        parentsUntil: function (e, t, n) {
                            return T(e, "parentNode", n);
                        },
                        next: function (e) {
                            return A(e, "nextSibling");
                        },
                        prev: function (e) {
                            return A(e, "previousSibling");
                        },
                        nextAll: function (e) {
                            return T(e, "nextSibling");
                        },
                        prevAll: function (e) {
                            return T(e, "previousSibling");
                        },
                        nextUntil: function (e, t, n) {
                            return T(e, "nextSibling", n);
                        },
                        prevUntil: function (e, t, n) {
                            return T(e, "previousSibling", n);
                        },
                        siblings: function (e) {
                            return R((e.parentNode || {}).firstChild, e);
                        },
                        children: function (e) {
                            return R(e.firstChild);
                        },
                        contents: function (e) {
                            return I(e, "iframe") ? e.contentDocument : (I(e, "template") && (e = e.content || e), C.merge([], e.childNodes));
                        },
                    },
                    function (e, t) {
                        C.fn[e] = function (n, i) {
                            var o = C.map(this, t, n);
                            return "Until" !== e.slice(-5) && (i = n), i && "string" == typeof i && (o = C.filter(i, o)), this.length > 1 && (O[e] || C.uniqueSort(o), H.test(e) && o.reverse()), this.pushStack(o);
                        };
                    }
                );
            var B = /[^\x20\t\r\n\f]+/g;
            function N(e) {
                return e;
            }
            function L(e) {
                throw e;
            }
            function j(e, t, n, i) {
                var o;
                try {
                    e && y((o = e.promise)) ? o.call(e).done(t).fail(n) : e && y((o = e.then)) ? o.call(e, t, n) : t.apply(void 0, [e].slice(i));
                } catch (e) {
                    n.apply(void 0, [e]);
                }
            }
            (C.Callbacks = function (e) {
                e =
                    "string" == typeof e
                        ? (function (e) {
                              var t = {};
                              return (
                                  C.each(e.match(B) || [], function (e, n) {
                                      t[n] = !0;
                                  }),
                                  t
                              );
                          })(e)
                        : C.extend({}, e);
                var t,
                    n,
                    i,
                    o,
                    r = [],
                    s = [],
                    a = -1,
                    l = function () {
                        for (o = o || e.once, i = t = !0; s.length; a = -1) for (n = s.shift(); ++a < r.length; ) !1 === r[a].apply(n[0], n[1]) && e.stopOnFalse && ((a = r.length), (n = !1));
                        e.memory || (n = !1), (t = !1), o && (r = n ? [] : "");
                    },
                    c = {
                        add: function () {
                            return (
                                r &&
                                    (n && !t && ((a = r.length - 1), s.push(n)),
                                    (function t(n) {
                                        C.each(n, function (n, i) {
                                            y(i) ? (e.unique && c.has(i)) || r.push(i) : i && i.length && "string" !== D(i) && t(i);
                                        });
                                    })(arguments),
                                    n && !t && l()),
                                this
                            );
                        },
                        remove: function () {
                            return (
                                C.each(arguments, function (e, t) {
                                    for (var n; (n = C.inArray(t, r, n)) > -1; ) r.splice(n, 1), n <= a && a--;
                                }),
                                this
                            );
                        },
                        has: function (e) {
                            return e ? C.inArray(e, r) > -1 : r.length > 0;
                        },
                        empty: function () {
                            return r && (r = []), this;
                        },
                        disable: function () {
                            return (o = s = []), (r = n = ""), this;
                        },
                        disabled: function () {
                            return !r;
                        },
                        lock: function () {
                            return (o = s = []), n || t || (r = n = ""), this;
                        },
                        locked: function () {
                            return !!o;
                        },
                        fireWith: function (e, n) {
                            return o || ((n = [e, (n = n || []).slice ? n.slice() : n]), s.push(n), t || l()), this;
                        },
                        fire: function () {
                            return c.fireWith(this, arguments), this;
                        },
                        fired: function () {
                            return !!i;
                        },
                    };
                return c;
            }),
                C.extend({
                    Deferred: function (e) {
                        var t = [
                                ["notify", "progress", C.Callbacks("memory"), C.Callbacks("memory"), 2],
                                ["resolve", "done", C.Callbacks("once memory"), C.Callbacks("once memory"), 0, "resolved"],
                                ["reject", "fail", C.Callbacks("once memory"), C.Callbacks("once memory"), 1, "rejected"],
                            ],
                            i = "pending",
                            o = {
                                state: function () {
                                    return i;
                                },
                                always: function () {
                                    return r.done(arguments).fail(arguments), this;
                                },
                                catch: function (e) {
                                    return o.then(null, e);
                                },
                                pipe: function () {
                                    var e = arguments;
                                    return C.Deferred(function (n) {
                                        C.each(t, function (t, i) {
                                            var o = y(e[i[4]]) && e[i[4]];
                                            r[i[1]](function () {
                                                var e = o && o.apply(this, arguments);
                                                e && y(e.promise) ? e.promise().progress(n.notify).done(n.resolve).fail(n.reject) : n[i[0] + "With"](this, o ? [e] : arguments);
                                            });
                                        }),
                                            (e = null);
                                    }).promise();
                                },
                                then: function (e, i, o) {
                                    var r = 0;
                                    function s(e, t, i, o) {
                                        return function () {
                                            var a = this,
                                                l = arguments,
                                                c = function () {
                                                    var n, c;
                                                    if (!(e < r)) {
                                                        if ((n = i.apply(a, l)) === t.promise()) throw new TypeError("Thenable self-resolution");
                                                        (c = n && ("object" == typeof n || "function" == typeof n) && n.then),
                                                            y(c)
                                                                ? o
                                                                    ? c.call(n, s(r, t, N, o), s(r, t, L, o))
                                                                    : (r++, c.call(n, s(r, t, N, o), s(r, t, L, o), s(r, t, N, t.notifyWith)))
                                                                : (i !== N && ((a = void 0), (l = [n])), (o || t.resolveWith)(a, l));
                                                    }
                                                },
                                                u = o
                                                    ? c
                                                    : function () {
                                                          try {
                                                              c();
                                                          } catch (n) {
                                                              C.Deferred.exceptionHook && C.Deferred.exceptionHook(n, u.stackTrace), e + 1 >= r && (i !== L && ((a = void 0), (l = [n])), t.rejectWith(a, l));
                                                          }
                                                      };
                                            e ? u() : (C.Deferred.getStackHook && (u.stackTrace = C.Deferred.getStackHook()), n.setTimeout(u));
                                        };
                                    }
                                    return C.Deferred(function (n) {
                                        t[0][3].add(s(0, n, y(o) ? o : N, n.notifyWith)), t[1][3].add(s(0, n, y(e) ? e : N)), t[2][3].add(s(0, n, y(i) ? i : L));
                                    }).promise();
                                },
                                promise: function (e) {
                                    return null != e ? C.extend(e, o) : o;
                                },
                            },
                            r = {};
                        return (
                            C.each(t, function (e, n) {
                                var s = n[2],
                                    a = n[5];
                                (o[n[1]] = s.add),
                                    a &&
                                        s.add(
                                            function () {
                                                i = a;
                                            },
                                            t[3 - e][2].disable,
                                            t[3 - e][3].disable,
                                            t[0][2].lock,
                                            t[0][3].lock
                                        ),
                                    s.add(n[3].fire),
                                    (r[n[0]] = function () {
                                        return r[n[0] + "With"](this === r ? void 0 : this, arguments), this;
                                    }),
                                    (r[n[0] + "With"] = s.fireWith);
                            }),
                            o.promise(r),
                            e && e.call(r, r),
                            r
                        );
                    },
                    when: function (e) {
                        var t = arguments.length,
                            n = t,
                            i = Array(n),
                            o = l.call(arguments),
                            r = C.Deferred(),
                            s = function (e) {
                                return function (n) {
                                    (i[e] = this), (o[e] = arguments.length > 1 ? l.call(arguments) : n), --t || r.resolveWith(i, o);
                                };
                            };
                        if (t <= 1 && (j(e, r.done(s(n)).resolve, r.reject, !t), "pending" === r.state() || y(o[n] && o[n].then))) return r.then();
                        for (; n--; ) j(o[n], s(n), r.reject);
                        return r.promise();
                    },
                });
            var z = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
            (C.Deferred.exceptionHook = function (e, t) {
                n.console && n.console.warn && e && z.test(e.name) && n.console.warn("jQuery.Deferred exception: " + e.message, e.stack, t);
            }),
                (C.readyException = function (e) {
                    n.setTimeout(function () {
                        throw e;
                    });
                });
            var Y = C.Deferred();
            function U() {
                s.removeEventListener("DOMContentLoaded", U), n.removeEventListener("load", U), C.ready();
            }
            (C.fn.ready = function (e) {
                return (
                    Y.then(e).catch(function (e) {
                        C.readyException(e);
                    }),
                    this
                );
            }),
                C.extend({
                    isReady: !1,
                    readyWait: 1,
                    ready: function (e) {
                        (!0 === e ? --C.readyWait : C.isReady) || ((C.isReady = !0), (!0 !== e && --C.readyWait > 0) || Y.resolveWith(s, [C]));
                    },
                }),
                (C.ready.then = Y.then),
                "complete" === s.readyState || ("loading" !== s.readyState && !s.documentElement.doScroll) ? n.setTimeout(C.ready) : (s.addEventListener("DOMContentLoaded", U), n.addEventListener("load", U));
            var V = function (e, t, n, i, o, r, s) {
                    var a = 0,
                        l = e.length,
                        c = null == n;
                    if ("object" === D(n)) for (a in ((o = !0), n)) V(e, t, a, n[a], !0, r, s);
                    else if (
                        void 0 !== i &&
                        ((o = !0),
                        y(i) || (s = !0),
                        c &&
                            (s
                                ? (t.call(e, i), (t = null))
                                : ((c = t),
                                  (t = function (e, t, n) {
                                      return c.call(C(e), n);
                                  }))),
                        t)
                    )
                        for (; a < l; a++) t(e[a], n, s ? i : i.call(e[a], a, t(e[a], n)));
                    return o ? e : c ? t.call(e) : l ? t(e[0], n) : r;
                },
                q = /^-ms-/,
                G = /-([a-z])/g;
            function W(e, t) {
                return t.toUpperCase();
            }
            function J(e) {
                return e.replace(q, "ms-").replace(G, W);
            }
            var X = function (e) {
                return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType;
            };
            function Z() {
                this.expando = C.expando + Z.uid++;
            }
            (Z.uid = 1),
                (Z.prototype = {
                    cache: function (e) {
                        var t = e[this.expando];
                        return t || ((t = {}), X(e) && (e.nodeType ? (e[this.expando] = t) : Object.defineProperty(e, this.expando, { value: t, configurable: !0 }))), t;
                    },
                    set: function (e, t, n) {
                        var i,
                            o = this.cache(e);
                        if ("string" == typeof t) o[J(t)] = n;
                        else for (i in t) o[J(i)] = t[i];
                        return o;
                    },
                    get: function (e, t) {
                        return void 0 === t ? this.cache(e) : e[this.expando] && e[this.expando][J(t)];
                    },
                    access: function (e, t, n) {
                        return void 0 === t || (t && "string" == typeof t && void 0 === n) ? this.get(e, t) : (this.set(e, t, n), void 0 !== n ? n : t);
                    },
                    remove: function (e, t) {
                        var n,
                            i = e[this.expando];
                        if (void 0 !== i) {
                            if (void 0 !== t) {
                                n = (t = Array.isArray(t) ? t.map(J) : (t = J(t)) in i ? [t] : t.match(B) || []).length;
                                for (; n--; ) delete i[t[n]];
                            }
                            (void 0 === t || C.isEmptyObject(i)) && (e.nodeType ? (e[this.expando] = void 0) : delete e[this.expando]);
                        }
                    },
                    hasData: function (e) {
                        var t = e[this.expando];
                        return void 0 !== t && !C.isEmptyObject(t);
                    },
                });
            var K = new Z(),
                Q = new Z(),
                ee = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
                te = /[A-Z]/g;
            function ne(e, t, n) {
                var i;
                if (void 0 === n && 1 === e.nodeType)
                    if (((i = "data-" + t.replace(te, "-$&").toLowerCase()), "string" == typeof (n = e.getAttribute(i)))) {
                        try {
                            n = (function (e) {
                                return "true" === e || ("false" !== e && ("null" === e ? null : e === +e + "" ? +e : ee.test(e) ? JSON.parse(e) : e));
                            })(n);
                        } catch (e) {}
                        Q.set(e, t, n);
                    } else n = void 0;
                return n;
            }
            C.extend({
                hasData: function (e) {
                    return Q.hasData(e) || K.hasData(e);
                },
                data: function (e, t, n) {
                    return Q.access(e, t, n);
                },
                removeData: function (e, t) {
                    Q.remove(e, t);
                },
                _data: function (e, t, n) {
                    return K.access(e, t, n);
                },
                _removeData: function (e, t) {
                    K.remove(e, t);
                },
            }),
                C.fn.extend({
                    data: function (e, t) {
                        var n,
                            i,
                            o,
                            r = this[0],
                            s = r && r.attributes;
                        if (void 0 === e) {
                            if (this.length && ((o = Q.get(r)), 1 === r.nodeType && !K.get(r, "hasDataAttrs"))) {
                                for (n = s.length; n--; ) s[n] && 0 === (i = s[n].name).indexOf("data-") && ((i = J(i.slice(5))), ne(r, i, o[i]));
                                K.set(r, "hasDataAttrs", !0);
                            }
                            return o;
                        }
                        return "object" == typeof e
                            ? this.each(function () {
                                  Q.set(this, e);
                              })
                            : V(
                                  this,
                                  function (t) {
                                      var n;
                                      if (r && void 0 === t) return void 0 !== (n = Q.get(r, e)) ? n : void 0 !== (n = ne(r, e)) ? n : void 0;
                                      this.each(function () {
                                          Q.set(this, e, t);
                                      });
                                  },
                                  null,
                                  t,
                                  arguments.length > 1,
                                  null,
                                  !0
                              );
                    },
                    removeData: function (e) {
                        return this.each(function () {
                            Q.remove(this, e);
                        });
                    },
                }),
                C.extend({
                    queue: function (e, t, n) {
                        var i;
                        if (e) return (t = (t || "fx") + "queue"), (i = K.get(e, t)), n && (!i || Array.isArray(n) ? (i = K.access(e, t, C.makeArray(n))) : i.push(n)), i || [];
                    },
                    dequeue: function (e, t) {
                        t = t || "fx";
                        var n = C.queue(e, t),
                            i = n.length,
                            o = n.shift(),
                            r = C._queueHooks(e, t);
                        "inprogress" === o && ((o = n.shift()), i--),
                            o &&
                                ("fx" === t && n.unshift("inprogress"),
                                delete r.stop,
                                o.call(
                                    e,
                                    function () {
                                        C.dequeue(e, t);
                                    },
                                    r
                                )),
                            !i && r && r.empty.fire();
                    },
                    _queueHooks: function (e, t) {
                        var n = t + "queueHooks";
                        return (
                            K.get(e, n) ||
                            K.access(e, n, {
                                empty: C.Callbacks("once memory").add(function () {
                                    K.remove(e, [t + "queue", n]);
                                }),
                            })
                        );
                    },
                }),
                C.fn.extend({
                    queue: function (e, t) {
                        var n = 2;
                        return (
                            "string" != typeof e && ((t = e), (e = "fx"), n--),
                            arguments.length < n
                                ? C.queue(this[0], e)
                                : void 0 === t
                                ? this
                                : this.each(function () {
                                      var n = C.queue(this, e, t);
                                      C._queueHooks(this, e), "fx" === e && "inprogress" !== n[0] && C.dequeue(this, e);
                                  })
                        );
                    },
                    dequeue: function (e) {
                        return this.each(function () {
                            C.dequeue(this, e);
                        });
                    },
                    clearQueue: function (e) {
                        return this.queue(e || "fx", []);
                    },
                    promise: function (e, t) {
                        var n,
                            i = 1,
                            o = C.Deferred(),
                            r = this,
                            s = this.length,
                            a = function () {
                                --i || o.resolveWith(r, [r]);
                            };
                        for ("string" != typeof e && ((t = e), (e = void 0)), e = e || "fx"; s--; ) (n = K.get(r[s], e + "queueHooks")) && n.empty && (i++, n.empty.add(a));
                        return a(), o.promise(t);
                    },
                });
            var ie = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
                oe = new RegExp("^(?:([+-])=|)(" + ie + ")([a-z%]*)$", "i"),
                re = ["Top", "Right", "Bottom", "Left"],
                se = function (e, t) {
                    return "none" === (e = t || e).style.display || ("" === e.style.display && C.contains(e.ownerDocument, e) && "none" === C.css(e, "display"));
                },
                ae = function (e, t, n, i) {
                    var o,
                        r,
                        s = {};
                    for (r in t) (s[r] = e.style[r]), (e.style[r] = t[r]);
                    for (r in ((o = n.apply(e, i || [])), t)) e.style[r] = s[r];
                    return o;
                };
            function le(e, t, n, i) {
                var o,
                    r,
                    s = 20,
                    a = i
                        ? function () {
                              return i.cur();
                          }
                        : function () {
                              return C.css(e, t, "");
                          },
                    l = a(),
                    c = (n && n[3]) || (C.cssNumber[t] ? "" : "px"),
                    u = (C.cssNumber[t] || ("px" !== c && +l)) && oe.exec(C.css(e, t));
                if (u && u[3] !== c) {
                    for (l /= 2, c = c || u[3], u = +l || 1; s--; ) C.style(e, t, u + c), (1 - r) * (1 - (r = a() / l || 0.5)) <= 0 && (s = 0), (u /= r);
                    (u *= 2), C.style(e, t, u + c), (n = n || []);
                }
                return n && ((u = +u || +l || 0), (o = n[1] ? u + (n[1] + 1) * n[2] : +n[2]), i && ((i.unit = c), (i.start = u), (i.end = o))), o;
            }
            var ce = {};
            function ue(e) {
                var t,
                    n = e.ownerDocument,
                    i = e.nodeName,
                    o = ce[i];
                return o || ((t = n.body.appendChild(n.createElement(i))), (o = C.css(t, "display")), t.parentNode.removeChild(t), "none" === o && (o = "block"), (ce[i] = o), o);
            }
            function de(e, t) {
                for (var n, i, o = [], r = 0, s = e.length; r < s; r++)
                    (i = e[r]).style &&
                        ((n = i.style.display),
                        t ? ("none" === n && ((o[r] = K.get(i, "display") || null), o[r] || (i.style.display = "")), "" === i.style.display && se(i) && (o[r] = ue(i))) : "none" !== n && ((o[r] = "none"), K.set(i, "display", n)));
                for (r = 0; r < s; r++) null != o[r] && (e[r].style.display = o[r]);
                return e;
            }
            C.fn.extend({
                show: function () {
                    return de(this, !0);
                },
                hide: function () {
                    return de(this);
                },
                toggle: function (e) {
                    return "boolean" == typeof e
                        ? e
                            ? this.show()
                            : this.hide()
                        : this.each(function () {
                              se(this) ? C(this).show() : C(this).hide();
                          });
                },
            });
            var pe = /^(?:checkbox|radio)$/i,
                he = /<([a-z][^\/\0>\x20\t\r\n\f]+)/i,
                fe = /^$|^module$|\/(?:java|ecma)script/i,
                me = {
                    option: [1, "<select multiple='multiple'>", "</select>"],
                    thead: [1, "<table>", "</table>"],
                    col: [2, "<table><colgroup>", "</colgroup></table>"],
                    tr: [2, "<table><tbody>", "</tbody></table>"],
                    td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
                    _default: [0, "", ""],
                };
            function ge(e, t) {
                var n;
                return (n = void 0 !== e.getElementsByTagName ? e.getElementsByTagName(t || "*") : void 0 !== e.querySelectorAll ? e.querySelectorAll(t || "*") : []), void 0 === t || (t && I(e, t)) ? C.merge([e], n) : n;
            }
            function ve(e, t) {
                for (var n = 0, i = e.length; n < i; n++) K.set(e[n], "globalEval", !t || K.get(t[n], "globalEval"));
            }
            (me.optgroup = me.option), (me.tbody = me.tfoot = me.colgroup = me.caption = me.thead), (me.th = me.td);
            var ye,
                be,
                we = /<|&#?\w+;/;
            function _e(e, t, n, i, o) {
                for (var r, s, a, l, c, u, d = t.createDocumentFragment(), p = [], h = 0, f = e.length; h < f; h++)
                    if ((r = e[h]) || 0 === r)
                        if ("object" === D(r)) C.merge(p, r.nodeType ? [r] : r);
                        else if (we.test(r)) {
                            for (s = s || d.appendChild(t.createElement("div")), a = (he.exec(r) || ["", ""])[1].toLowerCase(), l = me[a] || me._default, s.innerHTML = l[1] + C.htmlPrefilter(r) + l[2], u = l[0]; u--; ) s = s.lastChild;
                            C.merge(p, s.childNodes), ((s = d.firstChild).textContent = "");
                        } else p.push(t.createTextNode(r));
                for (d.textContent = "", h = 0; (r = p[h++]); )
                    if (i && C.inArray(r, i) > -1) o && o.push(r);
                    else if (((c = C.contains(r.ownerDocument, r)), (s = ge(d.appendChild(r), "script")), c && ve(s), n)) for (u = 0; (r = s[u++]); ) fe.test(r.type || "") && n.push(r);
                return d;
            }
            (ye = s.createDocumentFragment().appendChild(s.createElement("div"))),
                (be = s.createElement("input")).setAttribute("type", "radio"),
                be.setAttribute("checked", "checked"),
                be.setAttribute("name", "t"),
                ye.appendChild(be),
                (v.checkClone = ye.cloneNode(!0).cloneNode(!0).lastChild.checked),
                (ye.innerHTML = "<textarea>x</textarea>"),
                (v.noCloneChecked = !!ye.cloneNode(!0).lastChild.defaultValue);
            var De = s.documentElement,
                Ce = /^key/,
                Se = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
                xe = /^([^.]*)(?:\.(.+)|)/;
            function Ee() {
                return !0;
            }
            function Te() {
                return !1;
            }
            function Re() {
                try {
                    return s.activeElement;
                } catch (e) {}
            }
            function ke(e, t, n, i, o, r) {
                var s, a;
                if ("object" == typeof t) {
                    for (a in ("string" != typeof n && ((i = i || n), (n = void 0)), t)) ke(e, a, n, i, t[a], r);
                    return e;
                }
                if ((null == i && null == o ? ((o = n), (i = n = void 0)) : null == o && ("string" == typeof n ? ((o = i), (i = void 0)) : ((o = i), (i = n), (n = void 0))), !1 === o)) o = Te;
                else if (!o) return e;
                return (
                    1 === r &&
                        ((s = o),
                        ((o = function (e) {
                            return C().off(e), s.apply(this, arguments);
                        }).guid = s.guid || (s.guid = C.guid++))),
                    e.each(function () {
                        C.event.add(this, t, o, i, n);
                    })
                );
            }
            (C.event = {
                global: {},
                add: function (e, t, n, i, o) {
                    var r,
                        s,
                        a,
                        l,
                        c,
                        u,
                        d,
                        p,
                        h,
                        f,
                        m,
                        g = K.get(e);
                    if (g)
                        for (
                            n.handler && ((n = (r = n).handler), (o = r.selector)),
                                o && C.find.matchesSelector(De, o),
                                n.guid || (n.guid = C.guid++),
                                (l = g.events) || (l = g.events = {}),
                                (s = g.handle) ||
                                    (s = g.handle = function (t) {
                                        return void 0 !== C && C.event.triggered !== t.type ? C.event.dispatch.apply(e, arguments) : void 0;
                                    }),
                                c = (t = (t || "").match(B) || [""]).length;
                            c--;

                        )
                            (h = m = (a = xe.exec(t[c]) || [])[1]),
                                (f = (a[2] || "").split(".").sort()),
                                h &&
                                    ((d = C.event.special[h] || {}),
                                    (h = (o ? d.delegateType : d.bindType) || h),
                                    (d = C.event.special[h] || {}),
                                    (u = C.extend({ type: h, origType: m, data: i, handler: n, guid: n.guid, selector: o, needsContext: o && C.expr.match.needsContext.test(o), namespace: f.join(".") }, r)),
                                    (p = l[h]) || (((p = l[h] = []).delegateCount = 0), (d.setup && !1 !== d.setup.call(e, i, f, s)) || (e.addEventListener && e.addEventListener(h, s))),
                                    d.add && (d.add.call(e, u), u.handler.guid || (u.handler.guid = n.guid)),
                                    o ? p.splice(p.delegateCount++, 0, u) : p.push(u),
                                    (C.event.global[h] = !0));
                },
                remove: function (e, t, n, i, o) {
                    var r,
                        s,
                        a,
                        l,
                        c,
                        u,
                        d,
                        p,
                        h,
                        f,
                        m,
                        g = K.hasData(e) && K.get(e);
                    if (g && (l = g.events)) {
                        for (c = (t = (t || "").match(B) || [""]).length; c--; )
                            if (((h = m = (a = xe.exec(t[c]) || [])[1]), (f = (a[2] || "").split(".").sort()), h)) {
                                for (d = C.event.special[h] || {}, p = l[(h = (i ? d.delegateType : d.bindType) || h)] || [], a = a[2] && new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)"), s = r = p.length; r--; )
                                    (u = p[r]),
                                        (!o && m !== u.origType) ||
                                            (n && n.guid !== u.guid) ||
                                            (a && !a.test(u.namespace)) ||
                                            (i && i !== u.selector && ("**" !== i || !u.selector)) ||
                                            (p.splice(r, 1), u.selector && p.delegateCount--, d.remove && d.remove.call(e, u));
                                s && !p.length && ((d.teardown && !1 !== d.teardown.call(e, f, g.handle)) || C.removeEvent(e, h, g.handle), delete l[h]);
                            } else for (h in l) C.event.remove(e, h + t[c], n, i, !0);
                        C.isEmptyObject(l) && K.remove(e, "handle events");
                    }
                },
                dispatch: function (e) {
                    var t,
                        n,
                        i,
                        o,
                        r,
                        s,
                        a = C.event.fix(e),
                        l = new Array(arguments.length),
                        c = (K.get(this, "events") || {})[a.type] || [],
                        u = C.event.special[a.type] || {};
                    for (l[0] = a, t = 1; t < arguments.length; t++) l[t] = arguments[t];
                    if (((a.delegateTarget = this), !u.preDispatch || !1 !== u.preDispatch.call(this, a))) {
                        for (s = C.event.handlers.call(this, a, c), t = 0; (o = s[t++]) && !a.isPropagationStopped(); )
                            for (a.currentTarget = o.elem, n = 0; (r = o.handlers[n++]) && !a.isImmediatePropagationStopped(); )
                                (a.rnamespace && !a.rnamespace.test(r.namespace)) ||
                                    ((a.handleObj = r), (a.data = r.data), void 0 !== (i = ((C.event.special[r.origType] || {}).handle || r.handler).apply(o.elem, l)) && !1 === (a.result = i) && (a.preventDefault(), a.stopPropagation()));
                        return u.postDispatch && u.postDispatch.call(this, a), a.result;
                    }
                },
                handlers: function (e, t) {
                    var n,
                        i,
                        o,
                        r,
                        s,
                        a = [],
                        l = t.delegateCount,
                        c = e.target;
                    if (l && c.nodeType && !("click" === e.type && e.button >= 1))
                        for (; c !== this; c = c.parentNode || this)
                            if (1 === c.nodeType && ("click" !== e.type || !0 !== c.disabled)) {
                                for (r = [], s = {}, n = 0; n < l; n++) void 0 === s[(o = (i = t[n]).selector + " ")] && (s[o] = i.needsContext ? C(o, this).index(c) > -1 : C.find(o, this, null, [c]).length), s[o] && r.push(i);
                                r.length && a.push({ elem: c, handlers: r });
                            }
                    return (c = this), l < t.length && a.push({ elem: c, handlers: t.slice(l) }), a;
                },
                addProp: function (e, t) {
                    Object.defineProperty(C.Event.prototype, e, {
                        enumerable: !0,
                        configurable: !0,
                        get: y(t)
                            ? function () {
                                  if (this.originalEvent) return t(this.originalEvent);
                              }
                            : function () {
                                  if (this.originalEvent) return this.originalEvent[e];
                              },
                        set: function (t) {
                            Object.defineProperty(this, e, { enumerable: !0, configurable: !0, writable: !0, value: t });
                        },
                    });
                },
                fix: function (e) {
                    return e[C.expando] ? e : new C.Event(e);
                },
                special: {
                    load: { noBubble: !0 },
                    focus: {
                        trigger: function () {
                            if (this !== Re() && this.focus) return this.focus(), !1;
                        },
                        delegateType: "focusin",
                    },
                    blur: {
                        trigger: function () {
                            if (this === Re() && this.blur) return this.blur(), !1;
                        },
                        delegateType: "focusout",
                    },
                    click: {
                        trigger: function () {
                            if ("checkbox" === this.type && this.click && I(this, "input")) return this.click(), !1;
                        },
                        _default: function (e) {
                            return I(e.target, "a");
                        },
                    },
                    beforeunload: {
                        postDispatch: function (e) {
                            void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result);
                        },
                    },
                },
            }),
                (C.removeEvent = function (e, t, n) {
                    e.removeEventListener && e.removeEventListener(t, n);
                }),
                (C.Event = function (e, t) {
                    if (!(this instanceof C.Event)) return new C.Event(e, t);
                    e && e.type
                        ? ((this.originalEvent = e),
                          (this.type = e.type),
                          (this.isDefaultPrevented = e.defaultPrevented || (void 0 === e.defaultPrevented && !1 === e.returnValue) ? Ee : Te),
                          (this.target = e.target && 3 === e.target.nodeType ? e.target.parentNode : e.target),
                          (this.currentTarget = e.currentTarget),
                          (this.relatedTarget = e.relatedTarget))
                        : (this.type = e),
                        t && C.extend(this, t),
                        (this.timeStamp = (e && e.timeStamp) || Date.now()),
                        (this[C.expando] = !0);
                }),
                (C.Event.prototype = {
                    constructor: C.Event,
                    isDefaultPrevented: Te,
                    isPropagationStopped: Te,
                    isImmediatePropagationStopped: Te,
                    isSimulated: !1,
                    preventDefault: function () {
                        var e = this.originalEvent;
                        (this.isDefaultPrevented = Ee), e && !this.isSimulated && e.preventDefault();
                    },
                    stopPropagation: function () {
                        var e = this.originalEvent;
                        (this.isPropagationStopped = Ee), e && !this.isSimulated && e.stopPropagation();
                    },
                    stopImmediatePropagation: function () {
                        var e = this.originalEvent;
                        (this.isImmediatePropagationStopped = Ee), e && !this.isSimulated && e.stopImmediatePropagation(), this.stopPropagation();
                    },
                }),
                C.each(
                    {
                        altKey: !0,
                        bubbles: !0,
                        cancelable: !0,
                        changedTouches: !0,
                        ctrlKey: !0,
                        detail: !0,
                        eventPhase: !0,
                        metaKey: !0,
                        pageX: !0,
                        pageY: !0,
                        shiftKey: !0,
                        view: !0,
                        char: !0,
                        charCode: !0,
                        key: !0,
                        keyCode: !0,
                        button: !0,
                        buttons: !0,
                        clientX: !0,
                        clientY: !0,
                        offsetX: !0,
                        offsetY: !0,
                        pointerId: !0,
                        pointerType: !0,
                        screenX: !0,
                        screenY: !0,
                        targetTouches: !0,
                        toElement: !0,
                        touches: !0,
                        which: function (e) {
                            var t = e.button;
                            return null == e.which && Ce.test(e.type) ? (null != e.charCode ? e.charCode : e.keyCode) : !e.which && void 0 !== t && Se.test(e.type) ? (1 & t ? 1 : 2 & t ? 3 : 4 & t ? 2 : 0) : e.which;
                        },
                    },
                    C.event.addProp
                ),
                C.each({ mouseenter: "mouseover", mouseleave: "mouseout", pointerenter: "pointerover", pointerleave: "pointerout" }, function (e, t) {
                    C.event.special[e] = {
                        delegateType: t,
                        bindType: t,
                        handle: function (e) {
                            var n,
                                i = e.relatedTarget,
                                o = e.handleObj;
                            return (i && (i === this || C.contains(this, i))) || ((e.type = o.origType), (n = o.handler.apply(this, arguments)), (e.type = t)), n;
                        },
                    };
                }),
                C.fn.extend({
                    on: function (e, t, n, i) {
                        return ke(this, e, t, n, i);
                    },
                    one: function (e, t, n, i) {
                        return ke(this, e, t, n, i, 1);
                    },
                    off: function (e, t, n) {
                        var i, o;
                        if (e && e.preventDefault && e.handleObj) return (i = e.handleObj), C(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this;
                        if ("object" == typeof e) {
                            for (o in e) this.off(o, t, e[o]);
                            return this;
                        }
                        return (
                            (!1 !== t && "function" != typeof t) || ((n = t), (t = void 0)),
                            !1 === n && (n = Te),
                            this.each(function () {
                                C.event.remove(this, e, n, t);
                            })
                        );
                    },
                });
            var Ie = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
                Fe = /<script|<style|<link/i,
                Me = /checked\s*(?:[^=]|=\s*.checked.)/i,
                Pe = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
            function $e(e, t) {
                return (I(e, "table") && I(11 !== t.nodeType ? t : t.firstChild, "tr") && C(e).children("tbody")[0]) || e;
            }
            function He(e) {
                return (e.type = (null !== e.getAttribute("type")) + "/" + e.type), e;
            }
            function Oe(e) {
                return "true/" === (e.type || "").slice(0, 5) ? (e.type = e.type.slice(5)) : e.removeAttribute("type"), e;
            }
            function Ae(e, t) {
                var n, i, o, r, s, a, l, c;
                if (1 === t.nodeType) {
                    if (K.hasData(e) && ((r = K.access(e)), (s = K.set(t, r)), (c = r.events))) for (o in (delete s.handle, (s.events = {}), c)) for (n = 0, i = c[o].length; n < i; n++) C.event.add(t, o, c[o][n]);
                    Q.hasData(e) && ((a = Q.access(e)), (l = C.extend({}, a)), Q.set(t, l));
                }
            }
            function Be(e, t, n, i) {
                t = c.apply([], t);
                var o,
                    r,
                    s,
                    a,
                    l,
                    u,
                    d = 0,
                    p = e.length,
                    h = p - 1,
                    f = t[0],
                    m = y(f);
                if (m || (p > 1 && "string" == typeof f && !v.checkClone && Me.test(f)))
                    return e.each(function (o) {
                        var r = e.eq(o);
                        m && (t[0] = f.call(this, o, r.html())), Be(r, t, n, i);
                    });
                if (p && ((r = (o = _e(t, e[0].ownerDocument, !1, e, i)).firstChild), 1 === o.childNodes.length && (o = r), r || i)) {
                    for (a = (s = C.map(ge(o, "script"), He)).length; d < p; d++) (l = o), d !== h && ((l = C.clone(l, !0, !0)), a && C.merge(s, ge(l, "script"))), n.call(e[d], l, d);
                    if (a)
                        for (u = s[s.length - 1].ownerDocument, C.map(s, Oe), d = 0; d < a; d++)
                            (l = s[d]),
                                fe.test(l.type || "") && !K.access(l, "globalEval") && C.contains(u, l) && (l.src && "module" !== (l.type || "").toLowerCase() ? C._evalUrl && C._evalUrl(l.src) : _(l.textContent.replace(Pe, ""), u, l));
                }
                return e;
            }
            function Ne(e, t, n) {
                for (var i, o = t ? C.filter(t, e) : e, r = 0; null != (i = o[r]); r++) n || 1 !== i.nodeType || C.cleanData(ge(i)), i.parentNode && (n && C.contains(i.ownerDocument, i) && ve(ge(i, "script")), i.parentNode.removeChild(i));
                return e;
            }
            C.extend({
                htmlPrefilter: function (e) {
                    return e.replace(Ie, "<$1></$2>");
                },
                clone: function (e, t, n) {
                    var i,
                        o,
                        r,
                        s,
                        a,
                        l,
                        c,
                        u = e.cloneNode(!0),
                        d = C.contains(e.ownerDocument, e);
                    if (!(v.noCloneChecked || (1 !== e.nodeType && 11 !== e.nodeType) || C.isXMLDoc(e)))
                        for (s = ge(u), i = 0, o = (r = ge(e)).length; i < o; i++)
                            (a = r[i]), (l = s[i]), void 0, "input" === (c = l.nodeName.toLowerCase()) && pe.test(a.type) ? (l.checked = a.checked) : ("input" !== c && "textarea" !== c) || (l.defaultValue = a.defaultValue);
                    if (t)
                        if (n) for (r = r || ge(e), s = s || ge(u), i = 0, o = r.length; i < o; i++) Ae(r[i], s[i]);
                        else Ae(e, u);
                    return (s = ge(u, "script")).length > 0 && ve(s, !d && ge(e, "script")), u;
                },
                cleanData: function (e) {
                    for (var t, n, i, o = C.event.special, r = 0; void 0 !== (n = e[r]); r++)
                        if (X(n)) {
                            if ((t = n[K.expando])) {
                                if (t.events) for (i in t.events) o[i] ? C.event.remove(n, i) : C.removeEvent(n, i, t.handle);
                                n[K.expando] = void 0;
                            }
                            n[Q.expando] && (n[Q.expando] = void 0);
                        }
                },
            }),
                C.fn.extend({
                    detach: function (e) {
                        return Ne(this, e, !0);
                    },
                    remove: function (e) {
                        return Ne(this, e);
                    },
                    text: function (e) {
                        return V(
                            this,
                            function (e) {
                                return void 0 === e
                                    ? C.text(this)
                                    : this.empty().each(function () {
                                          (1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType) || (this.textContent = e);
                                      });
                            },
                            null,
                            e,
                            arguments.length
                        );
                    },
                    append: function () {
                        return Be(this, arguments, function (e) {
                            (1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType) || $e(this, e).appendChild(e);
                        });
                    },
                    prepend: function () {
                        return Be(this, arguments, function (e) {
                            if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
                                var t = $e(this, e);
                                t.insertBefore(e, t.firstChild);
                            }
                        });
                    },
                    before: function () {
                        return Be(this, arguments, function (e) {
                            this.parentNode && this.parentNode.insertBefore(e, this);
                        });
                    },
                    after: function () {
                        return Be(this, arguments, function (e) {
                            this.parentNode && this.parentNode.insertBefore(e, this.nextSibling);
                        });
                    },
                    empty: function () {
                        for (var e, t = 0; null != (e = this[t]); t++) 1 === e.nodeType && (C.cleanData(ge(e, !1)), (e.textContent = ""));
                        return this;
                    },
                    clone: function (e, t) {
                        return (
                            (e = null != e && e),
                            (t = null == t ? e : t),
                            this.map(function () {
                                return C.clone(this, e, t);
                            })
                        );
                    },
                    html: function (e) {
                        return V(
                            this,
                            function (e) {
                                var t = this[0] || {},
                                    n = 0,
                                    i = this.length;
                                if (void 0 === e && 1 === t.nodeType) return t.innerHTML;
                                if ("string" == typeof e && !Fe.test(e) && !me[(he.exec(e) || ["", ""])[1].toLowerCase()]) {
                                    e = C.htmlPrefilter(e);
                                    try {
                                        for (; n < i; n++) 1 === (t = this[n] || {}).nodeType && (C.cleanData(ge(t, !1)), (t.innerHTML = e));
                                        t = 0;
                                    } catch (e) {}
                                }
                                t && this.empty().append(e);
                            },
                            null,
                            e,
                            arguments.length
                        );
                    },
                    replaceWith: function () {
                        var e = [];
                        return Be(
                            this,
                            arguments,
                            function (t) {
                                var n = this.parentNode;
                                C.inArray(this, e) < 0 && (C.cleanData(ge(this)), n && n.replaceChild(t, this));
                            },
                            e
                        );
                    },
                }),
                C.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (e, t) {
                    C.fn[e] = function (e) {
                        for (var n, i = [], o = C(e), r = o.length - 1, s = 0; s <= r; s++) (n = s === r ? this : this.clone(!0)), C(o[s])[t](n), u.apply(i, n.get());
                        return this.pushStack(i);
                    };
                });
            var Le = new RegExp("^(" + ie + ")(?!px)[a-z%]+$", "i"),
                je = function (e) {
                    var t = e.ownerDocument.defaultView;
                    return (t && t.opener) || (t = n), t.getComputedStyle(e);
                },
                ze = new RegExp(re.join("|"), "i");
            function Ye(e, t, n) {
                var i,
                    o,
                    r,
                    s,
                    a = e.style;
                return (
                    (n = n || je(e)) &&
                        ("" !== (s = n.getPropertyValue(t) || n[t]) || C.contains(e.ownerDocument, e) || (s = C.style(e, t)),
                        !v.pixelBoxStyles() && Le.test(s) && ze.test(t) && ((i = a.width), (o = a.minWidth), (r = a.maxWidth), (a.minWidth = a.maxWidth = a.width = s), (s = n.width), (a.width = i), (a.minWidth = o), (a.maxWidth = r))),
                    void 0 !== s ? s + "" : s
                );
            }
            function Ue(e, t) {
                return {
                    get: function () {
                        if (!e()) return (this.get = t).apply(this, arguments);
                        delete this.get;
                    },
                };
            }
            !(function () {
                function e() {
                    if (u) {
                        (c.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0"),
                            (u.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%"),
                            De.appendChild(c).appendChild(u);
                        var e = n.getComputedStyle(u);
                        (i = "1%" !== e.top),
                            (l = 12 === t(e.marginLeft)),
                            (u.style.right = "60%"),
                            (a = 36 === t(e.right)),
                            (o = 36 === t(e.width)),
                            (u.style.position = "absolute"),
                            (r = 36 === u.offsetWidth || "absolute"),
                            De.removeChild(c),
                            (u = null);
                    }
                }
                function t(e) {
                    return Math.round(parseFloat(e));
                }
                var i,
                    o,
                    r,
                    a,
                    l,
                    c = s.createElement("div"),
                    u = s.createElement("div");
                u.style &&
                    ((u.style.backgroundClip = "content-box"),
                    (u.cloneNode(!0).style.backgroundClip = ""),
                    (v.clearCloneStyle = "content-box" === u.style.backgroundClip),
                    C.extend(v, {
                        boxSizingReliable: function () {
                            return e(), o;
                        },
                        pixelBoxStyles: function () {
                            return e(), a;
                        },
                        pixelPosition: function () {
                            return e(), i;
                        },
                        reliableMarginLeft: function () {
                            return e(), l;
                        },
                        scrollboxSize: function () {
                            return e(), r;
                        },
                    }));
            })();
            var Ve = /^(none|table(?!-c[ea]).+)/,
                qe = /^--/,
                Ge = { position: "absolute", visibility: "hidden", display: "block" },
                We = { letterSpacing: "0", fontWeight: "400" },
                Je = ["Webkit", "Moz", "ms"],
                Xe = s.createElement("div").style;
            function Ze(e) {
                var t = C.cssProps[e];
                return (
                    t ||
                        (t = C.cssProps[e] =
                            (function (e) {
                                if (e in Xe) return e;
                                for (var t = e[0].toUpperCase() + e.slice(1), n = Je.length; n--; ) if ((e = Je[n] + t) in Xe) return e;
                            })(e) || e),
                    t
                );
            }
            function Ke(e, t, n) {
                var i = oe.exec(t);
                return i ? Math.max(0, i[2] - (n || 0)) + (i[3] || "px") : t;
            }
            function Qe(e, t, n, i, o, r) {
                var s = "width" === t ? 1 : 0,
                    a = 0,
                    l = 0;
                if (n === (i ? "border" : "content")) return 0;
                for (; s < 4; s += 2)
                    "margin" === n && (l += C.css(e, n + re[s], !0, o)),
                        i
                            ? ("content" === n && (l -= C.css(e, "padding" + re[s], !0, o)), "margin" !== n && (l -= C.css(e, "border" + re[s] + "Width", !0, o)))
                            : ((l += C.css(e, "padding" + re[s], !0, o)), "padding" !== n ? (l += C.css(e, "border" + re[s] + "Width", !0, o)) : (a += C.css(e, "border" + re[s] + "Width", !0, o)));
                return !i && r >= 0 && (l += Math.max(0, Math.ceil(e["offset" + t[0].toUpperCase() + t.slice(1)] - r - l - a - 0.5))), l;
            }
            function et(e, t, n) {
                var i = je(e),
                    o = Ye(e, t, i),
                    r = "border-box" === C.css(e, "boxSizing", !1, i),
                    s = r;
                if (Le.test(o)) {
                    if (!n) return o;
                    o = "auto";
                }
                return (
                    (s = s && (v.boxSizingReliable() || o === e.style[t])),
                    ("auto" === o || (!parseFloat(o) && "inline" === C.css(e, "display", !1, i))) && ((o = e["offset" + t[0].toUpperCase() + t.slice(1)]), (s = !0)),
                    (o = parseFloat(o) || 0) + Qe(e, t, n || (r ? "border" : "content"), s, i, o) + "px"
                );
            }
            function tt(e, t, n, i, o) {
                return new tt.prototype.init(e, t, n, i, o);
            }
            C.extend({
                cssHooks: {
                    opacity: {
                        get: function (e, t) {
                            if (t) {
                                var n = Ye(e, "opacity");
                                return "" === n ? "1" : n;
                            }
                        },
                    },
                },
                cssNumber: { animationIterationCount: !0, columnCount: !0, fillOpacity: !0, flexGrow: !0, flexShrink: !0, fontWeight: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, widows: !0, zIndex: !0, zoom: !0 },
                cssProps: {},
                style: function (e, t, n, i) {
                    if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
                        var o,
                            r,
                            s,
                            a = J(t),
                            l = qe.test(t),
                            c = e.style;
                        if ((l || (t = Ze(a)), (s = C.cssHooks[t] || C.cssHooks[a]), void 0 === n)) return s && "get" in s && void 0 !== (o = s.get(e, !1, i)) ? o : c[t];
                        "string" === (r = typeof n) && (o = oe.exec(n)) && o[1] && ((n = le(e, t, o)), (r = "number")),
                            null != n &&
                                n == n &&
                                ("number" === r && (n += (o && o[3]) || (C.cssNumber[a] ? "" : "px")),
                                v.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (c[t] = "inherit"),
                                (s && "set" in s && void 0 === (n = s.set(e, n, i))) || (l ? c.setProperty(t, n) : (c[t] = n)));
                    }
                },
                css: function (e, t, n, i) {
                    var o,
                        r,
                        s,
                        a = J(t);
                    return (
                        qe.test(t) || (t = Ze(a)),
                        (s = C.cssHooks[t] || C.cssHooks[a]) && "get" in s && (o = s.get(e, !0, n)),
                        void 0 === o && (o = Ye(e, t, i)),
                        "normal" === o && t in We && (o = We[t]),
                        "" === n || n ? ((r = parseFloat(o)), !0 === n || isFinite(r) ? r || 0 : o) : o
                    );
                },
            }),
                C.each(["height", "width"], function (e, t) {
                    C.cssHooks[t] = {
                        get: function (e, n, i) {
                            if (n)
                                return !Ve.test(C.css(e, "display")) || (e.getClientRects().length && e.getBoundingClientRect().width)
                                    ? et(e, t, i)
                                    : ae(e, Ge, function () {
                                          return et(e, t, i);
                                      });
                        },
                        set: function (e, n, i) {
                            var o,
                                r = je(e),
                                s = "border-box" === C.css(e, "boxSizing", !1, r),
                                a = i && Qe(e, t, i, s, r);
                            return (
                                s && v.scrollboxSize() === r.position && (a -= Math.ceil(e["offset" + t[0].toUpperCase() + t.slice(1)] - parseFloat(r[t]) - Qe(e, t, "border", !1, r) - 0.5)),
                                a && (o = oe.exec(n)) && "px" !== (o[3] || "px") && ((e.style[t] = n), (n = C.css(e, t))),
                                Ke(0, n, a)
                            );
                        },
                    };
                }),
                (C.cssHooks.marginLeft = Ue(v.reliableMarginLeft, function (e, t) {
                    if (t)
                        return (
                            (parseFloat(Ye(e, "marginLeft")) ||
                                e.getBoundingClientRect().left -
                                    ae(e, { marginLeft: 0 }, function () {
                                        return e.getBoundingClientRect().left;
                                    })) + "px"
                        );
                })),
                C.each({ margin: "", padding: "", border: "Width" }, function (e, t) {
                    (C.cssHooks[e + t] = {
                        expand: function (n) {
                            for (var i = 0, o = {}, r = "string" == typeof n ? n.split(" ") : [n]; i < 4; i++) o[e + re[i] + t] = r[i] || r[i - 2] || r[0];
                            return o;
                        },
                    }),
                        "margin" !== e && (C.cssHooks[e + t].set = Ke);
                }),
                C.fn.extend({
                    css: function (e, t) {
                        return V(
                            this,
                            function (e, t, n) {
                                var i,
                                    o,
                                    r = {},
                                    s = 0;
                                if (Array.isArray(t)) {
                                    for (i = je(e), o = t.length; s < o; s++) r[t[s]] = C.css(e, t[s], !1, i);
                                    return r;
                                }
                                return void 0 !== n ? C.style(e, t, n) : C.css(e, t);
                            },
                            e,
                            t,
                            arguments.length > 1
                        );
                    },
                }),
                (C.Tween = tt),
                (tt.prototype = {
                    constructor: tt,
                    init: function (e, t, n, i, o, r) {
                        (this.elem = e), (this.prop = n), (this.easing = o || C.easing._default), (this.options = t), (this.start = this.now = this.cur()), (this.end = i), (this.unit = r || (C.cssNumber[n] ? "" : "px"));
                    },
                    cur: function () {
                        var e = tt.propHooks[this.prop];
                        return e && e.get ? e.get(this) : tt.propHooks._default.get(this);
                    },
                    run: function (e) {
                        var t,
                            n = tt.propHooks[this.prop];
                        return (
                            this.options.duration ? (this.pos = t = C.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration)) : (this.pos = t = e),
                            (this.now = (this.end - this.start) * t + this.start),
                            this.options.step && this.options.step.call(this.elem, this.now, this),
                            n && n.set ? n.set(this) : tt.propHooks._default.set(this),
                            this
                        );
                    },
                }),
                (tt.prototype.init.prototype = tt.prototype),
                (tt.propHooks = {
                    _default: {
                        get: function (e) {
                            var t;
                            return 1 !== e.elem.nodeType || (null != e.elem[e.prop] && null == e.elem.style[e.prop]) ? e.elem[e.prop] : (t = C.css(e.elem, e.prop, "")) && "auto" !== t ? t : 0;
                        },
                        set: function (e) {
                            C.fx.step[e.prop] ? C.fx.step[e.prop](e) : 1 !== e.elem.nodeType || (null == e.elem.style[C.cssProps[e.prop]] && !C.cssHooks[e.prop]) ? (e.elem[e.prop] = e.now) : C.style(e.elem, e.prop, e.now + e.unit);
                        },
                    },
                }),
                (tt.propHooks.scrollTop = tt.propHooks.scrollLeft = {
                    set: function (e) {
                        e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now);
                    },
                }),
                (C.easing = {
                    linear: function (e) {
                        return e;
                    },
                    swing: function (e) {
                        return 0.5 - Math.cos(e * Math.PI) / 2;
                    },
                    _default: "swing",
                }),
                (C.fx = tt.prototype.init),
                (C.fx.step = {});
            var nt,
                it,
                ot = /^(?:toggle|show|hide)$/,
                rt = /queueHooks$/;
            function st() {
                it && (!1 === s.hidden && n.requestAnimationFrame ? n.requestAnimationFrame(st) : n.setTimeout(st, C.fx.interval), C.fx.tick());
            }
            function at() {
                return (
                    n.setTimeout(function () {
                        nt = void 0;
                    }),
                    (nt = Date.now())
                );
            }
            function lt(e, t) {
                var n,
                    i = 0,
                    o = { height: e };
                for (t = t ? 1 : 0; i < 4; i += 2 - t) o["margin" + (n = re[i])] = o["padding" + n] = e;
                return t && (o.opacity = o.width = e), o;
            }
            function ct(e, t, n) {
                for (var i, o = (ut.tweeners[t] || []).concat(ut.tweeners["*"]), r = 0, s = o.length; r < s; r++) if ((i = o[r].call(n, t, e))) return i;
            }
            function ut(e, t, n) {
                var i,
                    o,
                    r = 0,
                    s = ut.prefilters.length,
                    a = C.Deferred().always(function () {
                        delete l.elem;
                    }),
                    l = function () {
                        if (o) return !1;
                        for (var t = nt || at(), n = Math.max(0, c.startTime + c.duration - t), i = 1 - (n / c.duration || 0), r = 0, s = c.tweens.length; r < s; r++) c.tweens[r].run(i);
                        return a.notifyWith(e, [c, i, n]), i < 1 && s ? n : (s || a.notifyWith(e, [c, 1, 0]), a.resolveWith(e, [c]), !1);
                    },
                    c = a.promise({
                        elem: e,
                        props: C.extend({}, t),
                        opts: C.extend(!0, { specialEasing: {}, easing: C.easing._default }, n),
                        originalProperties: t,
                        originalOptions: n,
                        startTime: nt || at(),
                        duration: n.duration,
                        tweens: [],
                        createTween: function (t, n) {
                            var i = C.Tween(e, c.opts, t, n, c.opts.specialEasing[t] || c.opts.easing);
                            return c.tweens.push(i), i;
                        },
                        stop: function (t) {
                            var n = 0,
                                i = t ? c.tweens.length : 0;
                            if (o) return this;
                            for (o = !0; n < i; n++) c.tweens[n].run(1);
                            return t ? (a.notifyWith(e, [c, 1, 0]), a.resolveWith(e, [c, t])) : a.rejectWith(e, [c, t]), this;
                        },
                    }),
                    u = c.props;
                for (
                    !(function (e, t) {
                        var n, i, o, r, s;
                        for (n in e)
                            if (((o = t[(i = J(n))]), (r = e[n]), Array.isArray(r) && ((o = r[1]), (r = e[n] = r[0])), n !== i && ((e[i] = r), delete e[n]), (s = C.cssHooks[i]) && ("expand" in s)))
                                for (n in ((r = s.expand(r)), delete e[i], r)) (n in e) || ((e[n] = r[n]), (t[n] = o));
                            else t[i] = o;
                    })(u, c.opts.specialEasing);
                    r < s;
                    r++
                )
                    if ((i = ut.prefilters[r].call(c, e, u, c.opts))) return y(i.stop) && (C._queueHooks(c.elem, c.opts.queue).stop = i.stop.bind(i)), i;
                return (
                    C.map(u, ct, c),
                    y(c.opts.start) && c.opts.start.call(e, c),
                    c.progress(c.opts.progress).done(c.opts.done, c.opts.complete).fail(c.opts.fail).always(c.opts.always),
                    C.fx.timer(C.extend(l, { elem: e, anim: c, queue: c.opts.queue })),
                    c
                );
            }
            (C.Animation = C.extend(ut, {
                tweeners: {
                    "*": [
                        function (e, t) {
                            var n = this.createTween(e, t);
                            return le(n.elem, e, oe.exec(t), n), n;
                        },
                    ],
                },
                tweener: function (e, t) {
                    y(e) ? ((t = e), (e = ["*"])) : (e = e.match(B));
                    for (var n, i = 0, o = e.length; i < o; i++) (n = e[i]), (ut.tweeners[n] = ut.tweeners[n] || []), ut.tweeners[n].unshift(t);
                },
                prefilters: [
                    function (e, t, n) {
                        var i,
                            o,
                            r,
                            s,
                            a,
                            l,
                            c,
                            u,
                            d = "width" in t || "height" in t,
                            p = this,
                            h = {},
                            f = e.style,
                            m = e.nodeType && se(e),
                            g = K.get(e, "fxshow");
                        for (i in (n.queue ||
                            (null == (s = C._queueHooks(e, "fx")).unqueued &&
                                ((s.unqueued = 0),
                                (a = s.empty.fire),
                                (s.empty.fire = function () {
                                    s.unqueued || a();
                                })),
                            s.unqueued++,
                            p.always(function () {
                                p.always(function () {
                                    s.unqueued--, C.queue(e, "fx").length || s.empty.fire();
                                });
                            })),
                        t))
                            if (((o = t[i]), ot.test(o))) {
                                if ((delete t[i], (r = r || "toggle" === o), o === (m ? "hide" : "show"))) {
                                    if ("show" !== o || !g || void 0 === g[i]) continue;
                                    m = !0;
                                }
                                h[i] = (g && g[i]) || C.style(e, i);
                            }
                        if ((l = !C.isEmptyObject(t)) || !C.isEmptyObject(h))
                            for (i in (d &&
                                1 === e.nodeType &&
                                ((n.overflow = [f.overflow, f.overflowX, f.overflowY]),
                                null == (c = g && g.display) && (c = K.get(e, "display")),
                                "none" === (u = C.css(e, "display")) && (c ? (u = c) : (de([e], !0), (c = e.style.display || c), (u = C.css(e, "display")), de([e]))),
                                ("inline" === u || ("inline-block" === u && null != c)) &&
                                    "none" === C.css(e, "float") &&
                                    (l ||
                                        (p.done(function () {
                                            f.display = c;
                                        }),
                                        null == c && ((u = f.display), (c = "none" === u ? "" : u))),
                                    (f.display = "inline-block"))),
                            n.overflow &&
                                ((f.overflow = "hidden"),
                                p.always(function () {
                                    (f.overflow = n.overflow[0]), (f.overflowX = n.overflow[1]), (f.overflowY = n.overflow[2]);
                                })),
                            (l = !1),
                            h))
                                l ||
                                    (g ? "hidden" in g && (m = g.hidden) : (g = K.access(e, "fxshow", { display: c })),
                                    r && (g.hidden = !m),
                                    m && de([e], !0),
                                    p.done(function () {
                                        for (i in (m || de([e]), K.remove(e, "fxshow"), h)) C.style(e, i, h[i]);
                                    })),
                                    (l = ct(m ? g[i] : 0, i, p)),
                                    i in g || ((g[i] = l.start), m && ((l.end = l.start), (l.start = 0)));
                    },
                ],
                prefilter: function (e, t) {
                    t ? ut.prefilters.unshift(e) : ut.prefilters.push(e);
                },
            })),
                (C.speed = function (e, t, n) {
                    var i = e && "object" == typeof e ? C.extend({}, e) : { complete: n || (!n && t) || (y(e) && e), duration: e, easing: (n && t) || (t && !y(t) && t) };
                    return (
                        C.fx.off ? (i.duration = 0) : "number" != typeof i.duration && (i.duration in C.fx.speeds ? (i.duration = C.fx.speeds[i.duration]) : (i.duration = C.fx.speeds._default)),
                        (null != i.queue && !0 !== i.queue) || (i.queue = "fx"),
                        (i.old = i.complete),
                        (i.complete = function () {
                            y(i.old) && i.old.call(this), i.queue && C.dequeue(this, i.queue);
                        }),
                        i
                    );
                }),
                C.fn.extend({
                    fadeTo: function (e, t, n, i) {
                        return this.filter(se).css("opacity", 0).show().end().animate({ opacity: t }, e, n, i);
                    },
                    animate: function (e, t, n, i) {
                        var o = C.isEmptyObject(e),
                            r = C.speed(t, n, i),
                            s = function () {
                                var t = ut(this, C.extend({}, e), r);
                                (o || K.get(this, "finish")) && t.stop(!0);
                            };
                        return (s.finish = s), o || !1 === r.queue ? this.each(s) : this.queue(r.queue, s);
                    },
                    stop: function (e, t, n) {
                        var i = function (e) {
                            var t = e.stop;
                            delete e.stop, t(n);
                        };
                        return (
                            "string" != typeof e && ((n = t), (t = e), (e = void 0)),
                            t && !1 !== e && this.queue(e || "fx", []),
                            this.each(function () {
                                var t = !0,
                                    o = null != e && e + "queueHooks",
                                    r = C.timers,
                                    s = K.get(this);
                                if (o) s[o] && s[o].stop && i(s[o]);
                                else for (o in s) s[o] && s[o].stop && rt.test(o) && i(s[o]);
                                for (o = r.length; o--; ) r[o].elem !== this || (null != e && r[o].queue !== e) || (r[o].anim.stop(n), (t = !1), r.splice(o, 1));
                                (!t && n) || C.dequeue(this, e);
                            })
                        );
                    },
                    finish: function (e) {
                        return (
                            !1 !== e && (e = e || "fx"),
                            this.each(function () {
                                var t,
                                    n = K.get(this),
                                    i = n[e + "queue"],
                                    o = n[e + "queueHooks"],
                                    r = C.timers,
                                    s = i ? i.length : 0;
                                for (n.finish = !0, C.queue(this, e, []), o && o.stop && o.stop.call(this, !0), t = r.length; t--; ) r[t].elem === this && r[t].queue === e && (r[t].anim.stop(!0), r.splice(t, 1));
                                for (t = 0; t < s; t++) i[t] && i[t].finish && i[t].finish.call(this);
                                delete n.finish;
                            })
                        );
                    },
                }),
                C.each(["toggle", "show", "hide"], function (e, t) {
                    var n = C.fn[t];
                    C.fn[t] = function (e, i, o) {
                        return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(lt(t, !0), e, i, o);
                    };
                }),
                C.each({ slideDown: lt("show"), slideUp: lt("hide"), slideToggle: lt("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, function (e, t) {
                    C.fn[e] = function (e, n, i) {
                        return this.animate(t, e, n, i);
                    };
                }),
                (C.timers = []),
                (C.fx.tick = function () {
                    var e,
                        t = 0,
                        n = C.timers;
                    for (nt = Date.now(); t < n.length; t++) (e = n[t])() || n[t] !== e || n.splice(t--, 1);
                    n.length || C.fx.stop(), (nt = void 0);
                }),
                (C.fx.timer = function (e) {
                    C.timers.push(e), C.fx.start();
                }),
                (C.fx.interval = 13),
                (C.fx.start = function () {
                    it || ((it = !0), st());
                }),
                (C.fx.stop = function () {
                    it = null;
                }),
                (C.fx.speeds = { slow: 600, fast: 200, _default: 400 }),
                (C.fn.delay = function (e, t) {
                    return (
                        (e = (C.fx && C.fx.speeds[e]) || e),
                        (t = t || "fx"),
                        this.queue(t, function (t, i) {
                            var o = n.setTimeout(t, e);
                            i.stop = function () {
                                n.clearTimeout(o);
                            };
                        })
                    );
                }),
                (function () {
                    var e = s.createElement("input"),
                        t = s.createElement("select").appendChild(s.createElement("option"));
                    (e.type = "checkbox"), (v.checkOn = "" !== e.value), (v.optSelected = t.selected), ((e = s.createElement("input")).value = "t"), (e.type = "radio"), (v.radioValue = "t" === e.value);
                })();
            var dt,
                pt = C.expr.attrHandle;
            C.fn.extend({
                attr: function (e, t) {
                    return V(this, C.attr, e, t, arguments.length > 1);
                },
                removeAttr: function (e) {
                    return this.each(function () {
                        C.removeAttr(this, e);
                    });
                },
            }),
                C.extend({
                    attr: function (e, t, n) {
                        var i,
                            o,
                            r = e.nodeType;
                        if (3 !== r && 8 !== r && 2 !== r)
                            return void 0 === e.getAttribute
                                ? C.prop(e, t, n)
                                : ((1 === r && C.isXMLDoc(e)) || (o = C.attrHooks[t.toLowerCase()] || (C.expr.match.bool.test(t) ? dt : void 0)),
                                  void 0 !== n
                                      ? null === n
                                          ? void C.removeAttr(e, t)
                                          : o && "set" in o && void 0 !== (i = o.set(e, n, t))
                                          ? i
                                          : (e.setAttribute(t, n + ""), n)
                                      : o && "get" in o && null !== (i = o.get(e, t))
                                      ? i
                                      : null == (i = C.find.attr(e, t))
                                      ? void 0
                                      : i);
                    },
                    attrHooks: {
                        type: {
                            set: function (e, t) {
                                if (!v.radioValue && "radio" === t && I(e, "input")) {
                                    var n = e.value;
                                    return e.setAttribute("type", t), n && (e.value = n), t;
                                }
                            },
                        },
                    },
                    removeAttr: function (e, t) {
                        var n,
                            i = 0,
                            o = t && t.match(B);
                        if (o && 1 === e.nodeType) for (; (n = o[i++]); ) e.removeAttribute(n);
                    },
                }),
                (dt = {
                    set: function (e, t, n) {
                        return !1 === t ? C.removeAttr(e, n) : e.setAttribute(n, n), n;
                    },
                }),
                C.each(C.expr.match.bool.source.match(/\w+/g), function (e, t) {
                    var n = pt[t] || C.find.attr;
                    pt[t] = function (e, t, i) {
                        var o,
                            r,
                            s = t.toLowerCase();
                        return i || ((r = pt[s]), (pt[s] = o), (o = null != n(e, t, i) ? s : null), (pt[s] = r)), o;
                    };
                });
            var ht = /^(?:input|select|textarea|button)$/i,
                ft = /^(?:a|area)$/i;
            function mt(e) {
                return (e.match(B) || []).join(" ");
            }
            function gt(e) {
                return (e.getAttribute && e.getAttribute("class")) || "";
            }
            function vt(e) {
                return Array.isArray(e) ? e : ("string" == typeof e && e.match(B)) || [];
            }
            C.fn.extend({
                prop: function (e, t) {
                    return V(this, C.prop, e, t, arguments.length > 1);
                },
                removeProp: function (e) {
                    return this.each(function () {
                        delete this[C.propFix[e] || e];
                    });
                },
            }),
                C.extend({
                    prop: function (e, t, n) {
                        var i,
                            o,
                            r = e.nodeType;
                        if (3 !== r && 8 !== r && 2 !== r)
                            return (
                                (1 === r && C.isXMLDoc(e)) || ((t = C.propFix[t] || t), (o = C.propHooks[t])),
                                void 0 !== n ? (o && "set" in o && void 0 !== (i = o.set(e, n, t)) ? i : (e[t] = n)) : o && "get" in o && null !== (i = o.get(e, t)) ? i : e[t]
                            );
                    },
                    propHooks: {
                        tabIndex: {
                            get: function (e) {
                                var t = C.find.attr(e, "tabindex");
                                return t ? parseInt(t, 10) : ht.test(e.nodeName) || (ft.test(e.nodeName) && e.href) ? 0 : -1;
                            },
                        },
                    },
                    propFix: { for: "htmlFor", class: "className" },
                }),
                v.optSelected ||
                    (C.propHooks.selected = {
                        get: function (e) {
                            var t = e.parentNode;
                            return t && t.parentNode && t.parentNode.selectedIndex, null;
                        },
                        set: function (e) {
                            var t = e.parentNode;
                            t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex);
                        },
                    }),
                C.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () {
                    C.propFix[this.toLowerCase()] = this;
                }),
                C.fn.extend({
                    addClass: function (e) {
                        var t,
                            n,
                            i,
                            o,
                            r,
                            s,
                            a,
                            l = 0;
                        if (y(e))
                            return this.each(function (t) {
                                C(this).addClass(e.call(this, t, gt(this)));
                            });
                        if ((t = vt(e)).length)
                            for (; (n = this[l++]); )
                                if (((o = gt(n)), (i = 1 === n.nodeType && " " + mt(o) + " "))) {
                                    for (s = 0; (r = t[s++]); ) i.indexOf(" " + r + " ") < 0 && (i += r + " ");
                                    o !== (a = mt(i)) && n.setAttribute("class", a);
                                }
                        return this;
                    },
                    removeClass: function (e) {
                        var t,
                            n,
                            i,
                            o,
                            r,
                            s,
                            a,
                            l = 0;
                        if (y(e))
                            return this.each(function (t) {
                                C(this).removeClass(e.call(this, t, gt(this)));
                            });
                        if (!arguments.length) return this.attr("class", "");
                        if ((t = vt(e)).length)
                            for (; (n = this[l++]); )
                                if (((o = gt(n)), (i = 1 === n.nodeType && " " + mt(o) + " "))) {
                                    for (s = 0; (r = t[s++]); ) for (; i.indexOf(" " + r + " ") > -1; ) i = i.replace(" " + r + " ", " ");
                                    o !== (a = mt(i)) && n.setAttribute("class", a);
                                }
                        return this;
                    },
                    toggleClass: function (e, t) {
                        var n = typeof e,
                            i = "string" === n || Array.isArray(e);
                        return "boolean" == typeof t && i
                            ? t
                                ? this.addClass(e)
                                : this.removeClass(e)
                            : y(e)
                            ? this.each(function (n) {
                                  C(this).toggleClass(e.call(this, n, gt(this), t), t);
                              })
                            : this.each(function () {
                                  var t, o, r, s;
                                  if (i) for (o = 0, r = C(this), s = vt(e); (t = s[o++]); ) r.hasClass(t) ? r.removeClass(t) : r.addClass(t);
                                  else (void 0 !== e && "boolean" !== n) || ((t = gt(this)) && K.set(this, "__className__", t), this.setAttribute && this.setAttribute("class", t || !1 === e ? "" : K.get(this, "__className__") || ""));
                              });
                    },
                    hasClass: function (e) {
                        var t,
                            n,
                            i = 0;
                        for (t = " " + e + " "; (n = this[i++]); ) if (1 === n.nodeType && (" " + mt(gt(n)) + " ").indexOf(t) > -1) return !0;
                        return !1;
                    },
                });
            var yt = /\r/g;
            C.fn.extend({
                val: function (e) {
                    var t,
                        n,
                        i,
                        o = this[0];
                    return arguments.length
                        ? ((i = y(e)),
                          this.each(function (n) {
                              var o;
                              1 === this.nodeType &&
                                  (null == (o = i ? e.call(this, n, C(this).val()) : e)
                                      ? (o = "")
                                      : "number" == typeof o
                                      ? (o += "")
                                      : Array.isArray(o) &&
                                        (o = C.map(o, function (e) {
                                            return null == e ? "" : e + "";
                                        })),
                                  ((t = C.valHooks[this.type] || C.valHooks[this.nodeName.toLowerCase()]) && "set" in t && void 0 !== t.set(this, o, "value")) || (this.value = o));
                          }))
                        : o
                        ? (t = C.valHooks[o.type] || C.valHooks[o.nodeName.toLowerCase()]) && "get" in t && void 0 !== (n = t.get(o, "value"))
                            ? n
                            : "string" == typeof (n = o.value)
                            ? n.replace(yt, "")
                            : null == n
                            ? ""
                            : n
                        : void 0;
                },
            }),
                C.extend({
                    valHooks: {
                        option: {
                            get: function (e) {
                                var t = C.find.attr(e, "value");
                                return null != t ? t : mt(C.text(e));
                            },
                        },
                        select: {
                            get: function (e) {
                                var t,
                                    n,
                                    i,
                                    o = e.options,
                                    r = e.selectedIndex,
                                    s = "select-one" === e.type,
                                    a = s ? null : [],
                                    l = s ? r + 1 : o.length;
                                for (i = r < 0 ? l : s ? r : 0; i < l; i++)
                                    if (((n = o[i]).selected || i === r) && !n.disabled && (!n.parentNode.disabled || !I(n.parentNode, "optgroup"))) {
                                        if (((t = C(n).val()), s)) return t;
                                        a.push(t);
                                    }
                                return a;
                            },
                            set: function (e, t) {
                                for (var n, i, o = e.options, r = C.makeArray(t), s = o.length; s--; ) ((i = o[s]).selected = C.inArray(C.valHooks.option.get(i), r) > -1) && (n = !0);
                                return n || (e.selectedIndex = -1), r;
                            },
                        },
                    },
                }),
                C.each(["radio", "checkbox"], function () {
                    (C.valHooks[this] = {
                        set: function (e, t) {
                            if (Array.isArray(t)) return (e.checked = C.inArray(C(e).val(), t) > -1);
                        },
                    }),
                        v.checkOn ||
                            (C.valHooks[this].get = function (e) {
                                return null === e.getAttribute("value") ? "on" : e.value;
                            });
                }),
                (v.focusin = "onfocusin" in n);
            var bt = /^(?:focusinfocus|focusoutblur)$/,
                wt = function (e) {
                    e.stopPropagation();
                };
            C.extend(C.event, {
                trigger: function (e, t, i, o) {
                    var r,
                        a,
                        l,
                        c,
                        u,
                        d,
                        p,
                        h,
                        m = [i || s],
                        g = f.call(e, "type") ? e.type : e,
                        v = f.call(e, "namespace") ? e.namespace.split(".") : [];
                    if (
                        ((a = h = l = i = i || s),
                        3 !== i.nodeType &&
                            8 !== i.nodeType &&
                            !bt.test(g + C.event.triggered) &&
                            (g.indexOf(".") > -1 && ((g = (v = g.split(".")).shift()), v.sort()),
                            (u = g.indexOf(":") < 0 && "on" + g),
                            ((e = e[C.expando] ? e : new C.Event(g, "object" == typeof e && e)).isTrigger = o ? 2 : 3),
                            (e.namespace = v.join(".")),
                            (e.rnamespace = e.namespace ? new RegExp("(^|\\.)" + v.join("\\.(?:.*\\.|)") + "(\\.|$)") : null),
                            (e.result = void 0),
                            e.target || (e.target = i),
                            (t = null == t ? [e] : C.makeArray(t, [e])),
                            (p = C.event.special[g] || {}),
                            o || !p.trigger || !1 !== p.trigger.apply(i, t)))
                    ) {
                        if (!o && !p.noBubble && !b(i)) {
                            for (c = p.delegateType || g, bt.test(c + g) || (a = a.parentNode); a; a = a.parentNode) m.push(a), (l = a);
                            l === (i.ownerDocument || s) && m.push(l.defaultView || l.parentWindow || n);
                        }
                        for (r = 0; (a = m[r++]) && !e.isPropagationStopped(); )
                            (h = a),
                                (e.type = r > 1 ? c : p.bindType || g),
                                (d = (K.get(a, "events") || {})[e.type] && K.get(a, "handle")) && d.apply(a, t),
                                (d = u && a[u]) && d.apply && X(a) && ((e.result = d.apply(a, t)), !1 === e.result && e.preventDefault());
                        return (
                            (e.type = g),
                            o ||
                                e.isDefaultPrevented() ||
                                (p._default && !1 !== p._default.apply(m.pop(), t)) ||
                                !X(i) ||
                                (u &&
                                    y(i[g]) &&
                                    !b(i) &&
                                    ((l = i[u]) && (i[u] = null),
                                    (C.event.triggered = g),
                                    e.isPropagationStopped() && h.addEventListener(g, wt),
                                    i[g](),
                                    e.isPropagationStopped() && h.removeEventListener(g, wt),
                                    (C.event.triggered = void 0),
                                    l && (i[u] = l))),
                            e.result
                        );
                    }
                },
                simulate: function (e, t, n) {
                    var i = C.extend(new C.Event(), n, { type: e, isSimulated: !0 });
                    C.event.trigger(i, null, t);
                },
            }),
                C.fn.extend({
                    trigger: function (e, t) {
                        return this.each(function () {
                            C.event.trigger(e, t, this);
                        });
                    },
                    triggerHandler: function (e, t) {
                        var n = this[0];
                        if (n) return C.event.trigger(e, t, n, !0);
                    },
                }),
                v.focusin ||
                    C.each({ focus: "focusin", blur: "focusout" }, function (e, t) {
                        var n = function (e) {
                            C.event.simulate(t, e.target, C.event.fix(e));
                        };
                        C.event.special[t] = {
                            setup: function () {
                                var i = this.ownerDocument || this,
                                    o = K.access(i, t);
                                o || i.addEventListener(e, n, !0), K.access(i, t, (o || 0) + 1);
                            },
                            teardown: function () {
                                var i = this.ownerDocument || this,
                                    o = K.access(i, t) - 1;
                                o ? K.access(i, t, o) : (i.removeEventListener(e, n, !0), K.remove(i, t));
                            },
                        };
                    });
            var _t = n.location,
                Dt = Date.now(),
                Ct = /\?/;
            C.parseXML = function (e) {
                var t;
                if (!e || "string" != typeof e) return null;
                try {
                    t = new n.DOMParser().parseFromString(e, "text/xml");
                } catch (e) {
                    t = void 0;
                }
                return (t && !t.getElementsByTagName("parsererror").length) || C.error("Invalid XML: " + e), t;
            };
            var St = /\[\]$/,
                xt = /\r?\n/g,
                Et = /^(?:submit|button|image|reset|file)$/i,
                Tt = /^(?:input|select|textarea|keygen)/i;
            function Rt(e, t, n, i) {
                var o;
                if (Array.isArray(t))
                    C.each(t, function (t, o) {
                        n || St.test(e) ? i(e, o) : Rt(e + "[" + ("object" == typeof o && null != o ? t : "") + "]", o, n, i);
                    });
                else if (n || "object" !== D(t)) i(e, t);
                else for (o in t) Rt(e + "[" + o + "]", t[o], n, i);
            }
            (C.param = function (e, t) {
                var n,
                    i = [],
                    o = function (e, t) {
                        var n = y(t) ? t() : t;
                        i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(null == n ? "" : n);
                    };
                if (Array.isArray(e) || (e.jquery && !C.isPlainObject(e)))
                    C.each(e, function () {
                        o(this.name, this.value);
                    });
                else for (n in e) Rt(n, e[n], t, o);
                return i.join("&");
            }),
                C.fn.extend({
                    serialize: function () {
                        return C.param(this.serializeArray());
                    },
                    serializeArray: function () {
                        return this.map(function () {
                            var e = C.prop(this, "elements");
                            return e ? C.makeArray(e) : this;
                        })
                            .filter(function () {
                                var e = this.type;
                                return this.name && !C(this).is(":disabled") && Tt.test(this.nodeName) && !Et.test(e) && (this.checked || !pe.test(e));
                            })
                            .map(function (e, t) {
                                var n = C(this).val();
                                return null == n
                                    ? null
                                    : Array.isArray(n)
                                    ? C.map(n, function (e) {
                                          return { name: t.name, value: e.replace(xt, "\r\n") };
                                      })
                                    : { name: t.name, value: n.replace(xt, "\r\n") };
                            })
                            .get();
                    },
                });
            var kt = /%20/g,
                It = /#.*$/,
                Ft = /([?&])_=[^&]*/,
                Mt = /^(.*?):[ \t]*([^\r\n]*)$/gm,
                Pt = /^(?:GET|HEAD)$/,
                $t = /^\/\//,
                Ht = {},
                Ot = {},
                At = "*/".concat("*"),
                Bt = s.createElement("a");
            function Nt(e) {
                return function (t, n) {
                    "string" != typeof t && ((n = t), (t = "*"));
                    var i,
                        o = 0,
                        r = t.toLowerCase().match(B) || [];
                    if (y(n)) for (; (i = r[o++]); ) "+" === i[0] ? ((i = i.slice(1) || "*"), (e[i] = e[i] || []).unshift(n)) : (e[i] = e[i] || []).push(n);
                };
            }
            function Lt(e, t, n, i) {
                var o = {},
                    r = e === Ot;
                function s(a) {
                    var l;
                    return (
                        (o[a] = !0),
                        C.each(e[a] || [], function (e, a) {
                            var c = a(t, n, i);
                            return "string" != typeof c || r || o[c] ? (r ? !(l = c) : void 0) : (t.dataTypes.unshift(c), s(c), !1);
                        }),
                        l
                    );
                }
                return s(t.dataTypes[0]) || (!o["*"] && s("*"));
            }
            function jt(e, t) {
                var n,
                    i,
                    o = C.ajaxSettings.flatOptions || {};
                for (n in t) void 0 !== t[n] && ((o[n] ? e : i || (i = {}))[n] = t[n]);
                return i && C.extend(!0, e, i), e;
            }
            (Bt.href = _t.href),
                C.extend({
                    active: 0,
                    lastModified: {},
                    etag: {},
                    ajaxSettings: {
                        url: _t.href,
                        type: "GET",
                        isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),
                        global: !0,
                        processData: !0,
                        async: !0,
                        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                        accepts: { "*": At, text: "text/plain", html: "text/html", xml: "application/xml, text/xml", json: "application/json, text/javascript" },
                        contents: { xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/ },
                        responseFields: { xml: "responseXML", text: "responseText", json: "responseJSON" },
                        converters: { "* text": String, "text html": !0, "text json": JSON.parse, "text xml": C.parseXML },
                        flatOptions: { url: !0, context: !0 },
                    },
                    ajaxSetup: function (e, t) {
                        return t ? jt(jt(e, C.ajaxSettings), t) : jt(C.ajaxSettings, e);
                    },
                    ajaxPrefilter: Nt(Ht),
                    ajaxTransport: Nt(Ot),
                    ajax: function (e, t) {
                        "object" == typeof e && ((t = e), (e = void 0)), (t = t || {});
                        var i,
                            o,
                            r,
                            a,
                            l,
                            c,
                            u,
                            d,
                            p,
                            h,
                            f = C.ajaxSetup({}, t),
                            m = f.context || f,
                            g = f.context && (m.nodeType || m.jquery) ? C(m) : C.event,
                            v = C.Deferred(),
                            y = C.Callbacks("once memory"),
                            b = f.statusCode || {},
                            w = {},
                            _ = {},
                            D = "canceled",
                            S = {
                                readyState: 0,
                                getResponseHeader: function (e) {
                                    var t;
                                    if (u) {
                                        if (!a) for (a = {}; (t = Mt.exec(r)); ) a[t[1].toLowerCase()] = t[2];
                                        t = a[e.toLowerCase()];
                                    }
                                    return null == t ? null : t;
                                },
                                getAllResponseHeaders: function () {
                                    return u ? r : null;
                                },
                                setRequestHeader: function (e, t) {
                                    return null == u && ((e = _[e.toLowerCase()] = _[e.toLowerCase()] || e), (w[e] = t)), this;
                                },
                                overrideMimeType: function (e) {
                                    return null == u && (f.mimeType = e), this;
                                },
                                statusCode: function (e) {
                                    var t;
                                    if (e)
                                        if (u) S.always(e[S.status]);
                                        else for (t in e) b[t] = [b[t], e[t]];
                                    return this;
                                },
                                abort: function (e) {
                                    var t = e || D;
                                    return i && i.abort(t), x(0, t), this;
                                },
                            };
                        if (
                            (v.promise(S),
                            (f.url = ((e || f.url || _t.href) + "").replace($t, _t.protocol + "//")),
                            (f.type = t.method || t.type || f.method || f.type),
                            (f.dataTypes = (f.dataType || "*").toLowerCase().match(B) || [""]),
                            null == f.crossDomain)
                        ) {
                            c = s.createElement("a");
                            try {
                                (c.href = f.url), (c.href = c.href), (f.crossDomain = Bt.protocol + "//" + Bt.host != c.protocol + "//" + c.host);
                            } catch (e) {
                                f.crossDomain = !0;
                            }
                        }
                        if ((f.data && f.processData && "string" != typeof f.data && (f.data = C.param(f.data, f.traditional)), Lt(Ht, f, t, S), u)) return S;
                        for (p in ((d = C.event && f.global) && 0 == C.active++ && C.event.trigger("ajaxStart"),
                        (f.type = f.type.toUpperCase()),
                        (f.hasContent = !Pt.test(f.type)),
                        (o = f.url.replace(It, "")),
                        f.hasContent
                            ? f.data && f.processData && 0 === (f.contentType || "").indexOf("application/x-www-form-urlencoded") && (f.data = f.data.replace(kt, "+"))
                            : ((h = f.url.slice(o.length)),
                              f.data && (f.processData || "string" == typeof f.data) && ((o += (Ct.test(o) ? "&" : "?") + f.data), delete f.data),
                              !1 === f.cache && ((o = o.replace(Ft, "$1")), (h = (Ct.test(o) ? "&" : "?") + "_=" + Dt++ + h)),
                              (f.url = o + h)),
                        f.ifModified && (C.lastModified[o] && S.setRequestHeader("If-Modified-Since", C.lastModified[o]), C.etag[o] && S.setRequestHeader("If-None-Match", C.etag[o])),
                        ((f.data && f.hasContent && !1 !== f.contentType) || t.contentType) && S.setRequestHeader("Content-Type", f.contentType),
                        S.setRequestHeader("Accept", f.dataTypes[0] && f.accepts[f.dataTypes[0]] ? f.accepts[f.dataTypes[0]] + ("*" !== f.dataTypes[0] ? ", " + At + "; q=0.01" : "") : f.accepts["*"]),
                        f.headers))
                            S.setRequestHeader(p, f.headers[p]);
                        if (f.beforeSend && (!1 === f.beforeSend.call(m, S, f) || u)) return S.abort();
                        if (((D = "abort"), y.add(f.complete), S.done(f.success), S.fail(f.error), (i = Lt(Ot, f, t, S)))) {
                            if (((S.readyState = 1), d && g.trigger("ajaxSend", [S, f]), u)) return S;
                            f.async &&
                                f.timeout > 0 &&
                                (l = n.setTimeout(function () {
                                    S.abort("timeout");
                                }, f.timeout));
                            try {
                                (u = !1), i.send(w, x);
                            } catch (e) {
                                if (u) throw e;
                                x(-1, e);
                            }
                        } else x(-1, "No Transport");
                        function x(e, t, s, a) {
                            var c,
                                p,
                                h,
                                w,
                                _,
                                D = t;
                            u ||
                                ((u = !0),
                                l && n.clearTimeout(l),
                                (i = void 0),
                                (r = a || ""),
                                (S.readyState = e > 0 ? 4 : 0),
                                (c = (e >= 200 && e < 300) || 304 === e),
                                s &&
                                    (w = (function (e, t, n) {
                                        for (var i, o, r, s, a = e.contents, l = e.dataTypes; "*" === l[0]; ) l.shift(), void 0 === i && (i = e.mimeType || t.getResponseHeader("Content-Type"));
                                        if (i)
                                            for (o in a)
                                                if (a[o] && a[o].test(i)) {
                                                    l.unshift(o);
                                                    break;
                                                }
                                        if (l[0] in n) r = l[0];
                                        else {
                                            for (o in n) {
                                                if (!l[0] || e.converters[o + " " + l[0]]) {
                                                    r = o;
                                                    break;
                                                }
                                                s || (s = o);
                                            }
                                            r = r || s;
                                        }
                                        if (r) return r !== l[0] && l.unshift(r), n[r];
                                    })(f, S, s)),
                                (w = (function (e, t, n, i) {
                                    var o,
                                        r,
                                        s,
                                        a,
                                        l,
                                        c = {},
                                        u = e.dataTypes.slice();
                                    if (u[1]) for (s in e.converters) c[s.toLowerCase()] = e.converters[s];
                                    for (r = u.shift(); r; )
                                        if ((e.responseFields[r] && (n[e.responseFields[r]] = t), !l && i && e.dataFilter && (t = e.dataFilter(t, e.dataType)), (l = r), (r = u.shift())))
                                            if ("*" === r) r = l;
                                            else if ("*" !== l && l !== r) {
                                                if (!(s = c[l + " " + r] || c["* " + r]))
                                                    for (o in c)
                                                        if ((a = o.split(" "))[1] === r && (s = c[l + " " + a[0]] || c["* " + a[0]])) {
                                                            !0 === s ? (s = c[o]) : !0 !== c[o] && ((r = a[0]), u.unshift(a[1]));
                                                            break;
                                                        }
                                                if (!0 !== s)
                                                    if (s && e.throws) t = s(t);
                                                    else
                                                        try {
                                                            t = s(t);
                                                        } catch (e) {
                                                            return { state: "parsererror", error: s ? e : "No conversion from " + l + " to " + r };
                                                        }
                                            }
                                    return { state: "success", data: t };
                                })(f, w, S, c)),
                                c
                                    ? (f.ifModified && ((_ = S.getResponseHeader("Last-Modified")) && (C.lastModified[o] = _), (_ = S.getResponseHeader("etag")) && (C.etag[o] = _)),
                                      204 === e || "HEAD" === f.type ? (D = "nocontent") : 304 === e ? (D = "notmodified") : ((D = w.state), (p = w.data), (c = !(h = w.error))))
                                    : ((h = D), (!e && D) || ((D = "error"), e < 0 && (e = 0))),
                                (S.status = e),
                                (S.statusText = (t || D) + ""),
                                c ? v.resolveWith(m, [p, D, S]) : v.rejectWith(m, [S, D, h]),
                                S.statusCode(b),
                                (b = void 0),
                                d && g.trigger(c ? "ajaxSuccess" : "ajaxError", [S, f, c ? p : h]),
                                y.fireWith(m, [S, D]),
                                d && (g.trigger("ajaxComplete", [S, f]), --C.active || C.event.trigger("ajaxStop")));
                        }
                        return S;
                    },
                    getJSON: function (e, t, n) {
                        return C.get(e, t, n, "json");
                    },
                    getScript: function (e, t) {
                        return C.get(e, void 0, t, "script");
                    },
                }),
                C.each(["get", "post"], function (e, t) {
                    C[t] = function (e, n, i, o) {
                        return y(n) && ((o = o || i), (i = n), (n = void 0)), C.ajax(C.extend({ url: e, type: t, dataType: o, data: n, success: i }, C.isPlainObject(e) && e));
                    };
                }),
                (C._evalUrl = function (e) {
                    return C.ajax({ url: e, type: "GET", dataType: "script", cache: !0, async: !1, global: !1, throws: !0 });
                }),
                C.fn.extend({
                    wrapAll: function (e) {
                        var t;
                        return (
                            this[0] &&
                                (y(e) && (e = e.call(this[0])),
                                (t = C(e, this[0].ownerDocument).eq(0).clone(!0)),
                                this[0].parentNode && t.insertBefore(this[0]),
                                t
                                    .map(function () {
                                        for (var e = this; e.firstElementChild; ) e = e.firstElementChild;
                                        return e;
                                    })
                                    .append(this)),
                            this
                        );
                    },
                    wrapInner: function (e) {
                        return y(e)
                            ? this.each(function (t) {
                                  C(this).wrapInner(e.call(this, t));
                              })
                            : this.each(function () {
                                  var t = C(this),
                                      n = t.contents();
                                  n.length ? n.wrapAll(e) : t.append(e);
                              });
                    },
                    wrap: function (e) {
                        var t = y(e);
                        return this.each(function (n) {
                            C(this).wrapAll(t ? e.call(this, n) : e);
                        });
                    },
                    unwrap: function (e) {
                        return (
                            this.parent(e)
                                .not("body")
                                .each(function () {
                                    C(this).replaceWith(this.childNodes);
                                }),
                            this
                        );
                    },
                }),
                (C.expr.pseudos.hidden = function (e) {
                    return !C.expr.pseudos.visible(e);
                }),
                (C.expr.pseudos.visible = function (e) {
                    return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);
                }),
                (C.ajaxSettings.xhr = function () {
                    try {
                        return new n.XMLHttpRequest();
                    } catch (e) {}
                });
            var zt = { 0: 200, 1223: 204 },
                Yt = C.ajaxSettings.xhr();
            (v.cors = !!Yt && "withCredentials" in Yt),
                (v.ajax = Yt = !!Yt),
                C.ajaxTransport(function (e) {
                    var t, i;
                    if (v.cors || (Yt && !e.crossDomain))
                        return {
                            send: function (o, r) {
                                var s,
                                    a = e.xhr();
                                if ((a.open(e.type, e.url, e.async, e.username, e.password), e.xhrFields)) for (s in e.xhrFields) a[s] = e.xhrFields[s];
                                for (s in (e.mimeType && a.overrideMimeType && a.overrideMimeType(e.mimeType), e.crossDomain || o["X-Requested-With"] || (o["X-Requested-With"] = "XMLHttpRequest"), o)) a.setRequestHeader(s, o[s]);
                                (t = function (e) {
                                    return function () {
                                        t &&
                                            ((t = i = a.onload = a.onerror = a.onabort = a.ontimeout = a.onreadystatechange = null),
                                            "abort" === e
                                                ? a.abort()
                                                : "error" === e
                                                ? "number" != typeof a.status
                                                    ? r(0, "error")
                                                    : r(a.status, a.statusText)
                                                : r(
                                                      zt[a.status] || a.status,
                                                      a.statusText,
                                                      "text" !== (a.responseType || "text") || "string" != typeof a.responseText ? { binary: a.response } : { text: a.responseText },
                                                      a.getAllResponseHeaders()
                                                  ));
                                    };
                                }),
                                    (a.onload = t()),
                                    (i = a.onerror = a.ontimeout = t("error")),
                                    void 0 !== a.onabort
                                        ? (a.onabort = i)
                                        : (a.onreadystatechange = function () {
                                              4 === a.readyState &&
                                                  n.setTimeout(function () {
                                                      t && i();
                                                  });
                                          }),
                                    (t = t("abort"));
                                try {
                                    a.send((e.hasContent && e.data) || null);
                                } catch (e) {
                                    if (t) throw e;
                                }
                            },
                            abort: function () {
                                t && t();
                            },
                        };
                }),
                C.ajaxPrefilter(function (e) {
                    e.crossDomain && (e.contents.script = !1);
                }),
                C.ajaxSetup({
                    accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" },
                    contents: { script: /\b(?:java|ecma)script\b/ },
                    converters: {
                        "text script": function (e) {
                            return C.globalEval(e), e;
                        },
                    },
                }),
                C.ajaxPrefilter("script", function (e) {
                    void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET");
                }),
                C.ajaxTransport("script", function (e) {
                    var t, n;
                    if (e.crossDomain)
                        return {
                            send: function (i, o) {
                                (t = C("<script>")
                                    .prop({ charset: e.scriptCharset, src: e.url })
                                    .on(
                                        "load error",
                                        (n = function (e) {
                                            t.remove(), (n = null), e && o("error" === e.type ? 404 : 200, e.type);
                                        })
                                    )),
                                    s.head.appendChild(t[0]);
                            },
                            abort: function () {
                                n && n();
                            },
                        };
                });
            var Ut,
                Vt = [],
                qt = /(=)\?(?=&|$)|\?\?/;
            C.ajaxSetup({
                jsonp: "callback",
                jsonpCallback: function () {
                    var e = Vt.pop() || C.expando + "_" + Dt++;
                    return (this[e] = !0), e;
                },
            }),
                C.ajaxPrefilter("json jsonp", function (e, t, i) {
                    var o,
                        r,
                        s,
                        a = !1 !== e.jsonp && (qt.test(e.url) ? "url" : "string" == typeof e.data && 0 === (e.contentType || "").indexOf("application/x-www-form-urlencoded") && qt.test(e.data) && "data");
                    if (a || "jsonp" === e.dataTypes[0])
                        return (
                            (o = e.jsonpCallback = y(e.jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback),
                            a ? (e[a] = e[a].replace(qt, "$1" + o)) : !1 !== e.jsonp && (e.url += (Ct.test(e.url) ? "&" : "?") + e.jsonp + "=" + o),
                            (e.converters["script json"] = function () {
                                return s || C.error(o + " was not called"), s[0];
                            }),
                            (e.dataTypes[0] = "json"),
                            (r = n[o]),
                            (n[o] = function () {
                                s = arguments;
                            }),
                            i.always(function () {
                                void 0 === r ? C(n).removeProp(o) : (n[o] = r), e[o] && ((e.jsonpCallback = t.jsonpCallback), Vt.push(o)), s && y(r) && r(s[0]), (s = r = void 0);
                            }),
                            "script"
                        );
                }),
                (v.createHTMLDocument = (((Ut = s.implementation.createHTMLDocument("").body).innerHTML = "<form></form><form></form>"), 2 === Ut.childNodes.length)),
                (C.parseHTML = function (e, t, n) {
                    return "string" != typeof e
                        ? []
                        : ("boolean" == typeof t && ((n = t), (t = !1)),
                          t || (v.createHTMLDocument ? (((i = (t = s.implementation.createHTMLDocument("")).createElement("base")).href = s.location.href), t.head.appendChild(i)) : (t = s)),
                          (o = F.exec(e)),
                          (r = !n && []),
                          o ? [t.createElement(o[1])] : ((o = _e([e], t, r)), r && r.length && C(r).remove(), C.merge([], o.childNodes)));
                    var i, o, r;
                }),
                (C.fn.load = function (e, t, n) {
                    var i,
                        o,
                        r,
                        s = this,
                        a = e.indexOf(" ");
                    return (
                        a > -1 && ((i = mt(e.slice(a))), (e = e.slice(0, a))),
                        y(t) ? ((n = t), (t = void 0)) : t && "object" == typeof t && (o = "POST"),
                        s.length > 0 &&
                            C.ajax({ url: e, type: o || "GET", dataType: "html", data: t })
                                .done(function (e) {
                                    (r = arguments), s.html(i ? C("<div>").append(C.parseHTML(e)).find(i) : e);
                                })
                                .always(
                                    n &&
                                        function (e, t) {
                                            s.each(function () {
                                                n.apply(this, r || [e.responseText, t, e]);
                                            });
                                        }
                                ),
                        this
                    );
                }),
                C.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (e, t) {
                    C.fn[t] = function (e) {
                        return this.on(t, e);
                    };
                }),
                (C.expr.pseudos.animated = function (e) {
                    return C.grep(C.timers, function (t) {
                        return e === t.elem;
                    }).length;
                }),
                (C.offset = {
                    setOffset: function (e, t, n) {
                        var i,
                            o,
                            r,
                            s,
                            a,
                            l,
                            c = C.css(e, "position"),
                            u = C(e),
                            d = {};
                        "static" === c && (e.style.position = "relative"),
                            (a = u.offset()),
                            (r = C.css(e, "top")),
                            (l = C.css(e, "left")),
                            ("absolute" === c || "fixed" === c) && (r + l).indexOf("auto") > -1 ? ((s = (i = u.position()).top), (o = i.left)) : ((s = parseFloat(r) || 0), (o = parseFloat(l) || 0)),
                            y(t) && (t = t.call(e, n, C.extend({}, a))),
                            null != t.top && (d.top = t.top - a.top + s),
                            null != t.left && (d.left = t.left - a.left + o),
                            "using" in t ? t.using.call(e, d) : u.css(d);
                    },
                }),
                C.fn.extend({
                    offset: function (e) {
                        if (arguments.length)
                            return void 0 === e
                                ? this
                                : this.each(function (t) {
                                      C.offset.setOffset(this, e, t);
                                  });
                        var t,
                            n,
                            i = this[0];
                        return i ? (i.getClientRects().length ? ((t = i.getBoundingClientRect()), (n = i.ownerDocument.defaultView), { top: t.top + n.pageYOffset, left: t.left + n.pageXOffset }) : { top: 0, left: 0 }) : void 0;
                    },
                    position: function () {
                        if (this[0]) {
                            var e,
                                t,
                                n,
                                i = this[0],
                                o = { top: 0, left: 0 };
                            if ("fixed" === C.css(i, "position")) t = i.getBoundingClientRect();
                            else {
                                for (t = this.offset(), n = i.ownerDocument, e = i.offsetParent || n.documentElement; e && (e === n.body || e === n.documentElement) && "static" === C.css(e, "position"); ) e = e.parentNode;
                                e && e !== i && 1 === e.nodeType && (((o = C(e).offset()).top += C.css(e, "borderTopWidth", !0)), (o.left += C.css(e, "borderLeftWidth", !0)));
                            }
                            return { top: t.top - o.top - C.css(i, "marginTop", !0), left: t.left - o.left - C.css(i, "marginLeft", !0) };
                        }
                    },
                    offsetParent: function () {
                        return this.map(function () {
                            for (var e = this.offsetParent; e && "static" === C.css(e, "position"); ) e = e.offsetParent;
                            return e || De;
                        });
                    },
                }),
                C.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function (e, t) {
                    var n = "pageYOffset" === t;
                    C.fn[e] = function (i) {
                        return V(
                            this,
                            function (e, i, o) {
                                var r;
                                if ((b(e) ? (r = e) : 9 === e.nodeType && (r = e.defaultView), void 0 === o)) return r ? r[t] : e[i];
                                r ? r.scrollTo(n ? r.pageXOffset : o, n ? o : r.pageYOffset) : (e[i] = o);
                            },
                            e,
                            i,
                            arguments.length
                        );
                    };
                }),
                C.each(["top", "left"], function (e, t) {
                    C.cssHooks[t] = Ue(v.pixelPosition, function (e, n) {
                        if (n) return (n = Ye(e, t)), Le.test(n) ? C(e).position()[t] + "px" : n;
                    });
                }),
                C.each({ Height: "height", Width: "width" }, function (e, t) {
                    C.each({ padding: "inner" + e, content: t, "": "outer" + e }, function (n, i) {
                        C.fn[i] = function (o, r) {
                            var s = arguments.length && (n || "boolean" != typeof o),
                                a = n || (!0 === o || !0 === r ? "margin" : "border");
                            return V(
                                this,
                                function (t, n, o) {
                                    var r;
                                    return b(t)
                                        ? 0 === i.indexOf("outer")
                                            ? t["inner" + e]
                                            : t.document.documentElement["client" + e]
                                        : 9 === t.nodeType
                                        ? ((r = t.documentElement), Math.max(t.body["scroll" + e], r["scroll" + e], t.body["offset" + e], r["offset" + e], r["client" + e]))
                                        : void 0 === o
                                        ? C.css(t, n, a)
                                        : C.style(t, n, o, a);
                                },
                                t,
                                s ? o : void 0,
                                s
                            );
                        };
                    });
                }),
                C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function (e, t) {
                    C.fn[t] = function (e, n) {
                        return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t);
                    };
                }),
                C.fn.extend({
                    hover: function (e, t) {
                        return this.mouseenter(e).mouseleave(t || e);
                    },
                }),
                C.fn.extend({
                    bind: function (e, t, n) {
                        return this.on(e, null, t, n);
                    },
                    unbind: function (e, t) {
                        return this.off(e, null, t);
                    },
                    delegate: function (e, t, n, i) {
                        return this.on(t, e, n, i);
                    },
                    undelegate: function (e, t, n) {
                        return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n);
                    },
                }),
                (C.proxy = function (e, t) {
                    var n, i, o;
                    if (("string" == typeof t && ((n = e[t]), (t = e), (e = n)), y(e)))
                        return (
                            (i = l.call(arguments, 2)),
                            ((o = function () {
                                return e.apply(t || this, i.concat(l.call(arguments)));
                            }).guid = e.guid = e.guid || C.guid++),
                            o
                        );
                }),
                (C.holdReady = function (e) {
                    e ? C.readyWait++ : C.ready(!0);
                }),
                (C.isArray = Array.isArray),
                (C.parseJSON = JSON.parse),
                (C.nodeName = I),
                (C.isFunction = y),
                (C.isWindow = b),
                (C.camelCase = J),
                (C.type = D),
                (C.now = Date.now),
                (C.isNumeric = function (e) {
                    var t = C.type(e);
                    return ("number" === t || "string" === t) && !isNaN(e - parseFloat(e));
                }),
                void 0 ===
                    (i = function () {
                        return C;
                    }.apply(t, [])) || (e.exports = i);
            var Gt = n.jQuery,
                Wt = n.$;
            return (
                (C.noConflict = function (e) {
                    return n.$ === C && (n.$ = Wt), e && n.jQuery === C && (n.jQuery = Gt), C;
                }),
                o || (n.jQuery = n.$ = C),
                C
            );
        });
    },
    973: function (e, t, n) {
        var i;
        "undefined" != typeof self && self,
            (i = function (e, t) {
                return (function (e) {
                    var t = {};
                    function n(i) {
                        if (t[i]) return t[i].exports;
                        var o = (t[i] = { i: i, l: !1, exports: {} });
                        return e[i].call(o.exports, o, o.exports, n), (o.l = !0), o.exports;
                    }
                    return (
                        (n.m = e),
                        (n.c = t),
                        (n.d = function (e, t, i) {
                            n.o(e, t) || Object.defineProperty(e, t, { configurable: !1, enumerable: !0, get: i });
                        }),
                        (n.n = function (e) {
                            var t =
                                e && e.__esModule
                                    ? function () {
                                          return e.default;
                                      }
                                    : function () {
                                          return e;
                                      };
                            return n.d(t, "a", t), t;
                        }),
                        (n.o = function (e, t) {
                            return Object.prototype.hasOwnProperty.call(e, t);
                        }),
                        (n.p = ""),
                        n((n.s = 236))
                    );
                })([
                    function (t, n) {
                        t.exports = e;
                    },
                    ,
                    function (e, t) {
                        var n =
                            Object.setPrototypeOf ||
                            ({ __proto__: [] } instanceof Array &&
                                function (e, t) {
                                    e.__proto__ = t;
                                }) ||
                            function (e, t) {
                                for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
                            };
                        t.__extends = function (e, t) {
                            function i() {
                                this.constructor = e;
                            }
                            n(e, t), (e.prototype = null === t ? Object.create(t) : ((i.prototype = t.prototype), new i()));
                        };
                    },
                    function (e, n) {
                        e.exports = t;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(3);
                        function r(e) {
                            e.height("");
                        }
                        function s(e) {
                            var t,
                                n = e[0].offsetWidth - e[0].clientWidth,
                                i = e[0].offsetHeight - e[0].clientHeight;
                            return (
                                (n = a(n)),
                                (t = { left: 0, right: 0, top: 0, bottom: (i = a(i)) }),
                                !(function () {
                                    null === l &&
                                        ((e = o("<div><div/></div>").css({ position: "absolute", top: -1e3, left: 0, border: 0, padding: 0, overflow: "scroll", direction: "rtl" }).appendTo("body")),
                                        (t = e.children().offset().left > e.offset().left),
                                        e.remove(),
                                        (l = t));
                                    var e, t;
                                    return l;
                                })() || "rtl" !== e.css("direction")
                                    ? (t.right = n)
                                    : (t.left = n),
                                t
                            );
                        }
                        function a(e) {
                            return (e = Math.max(0, e)), (e = Math.round(e));
                        }
                        (t.compensateScroll = function (e, t) {
                            t.left && e.css({ "border-left-width": 1, "margin-left": t.left - 1 }), t.right && e.css({ "border-right-width": 1, "margin-right": t.right - 1 });
                        }),
                            (t.uncompensateScroll = function (e) {
                                e.css({ "margin-left": "", "margin-right": "", "border-left-width": "", "border-right-width": "" });
                            }),
                            (t.disableCursor = function () {
                                o("body").addClass("fc-not-allowed");
                            }),
                            (t.enableCursor = function () {
                                o("body").removeClass("fc-not-allowed");
                            }),
                            (t.distributeHeight = function (e, t, n) {
                                var i = Math.floor(t / e.length),
                                    s = Math.floor(t - i * (e.length - 1)),
                                    a = [],
                                    l = [],
                                    c = [],
                                    u = 0;
                                r(e),
                                    e.each(function (t, n) {
                                        var r = t === e.length - 1 ? s : i,
                                            d = o(n).outerHeight(!0);
                                        d < r ? (a.push(n), l.push(d), c.push(o(n).height())) : (u += d);
                                    }),
                                    n && ((t -= u), (i = Math.floor(t / a.length)), (s = Math.floor(t - i * (a.length - 1)))),
                                    o(a).each(function (e, t) {
                                        var n = e === a.length - 1 ? s : i,
                                            r = l[e],
                                            u = n - (r - c[e]);
                                        r < n && o(t).height(u);
                                    });
                            }),
                            (t.undistributeHeight = r),
                            (t.matchCellWidths = function (e) {
                                var t = 0;
                                return (
                                    e.find("> *").each(function (e, n) {
                                        var i = o(n).outerWidth();
                                        i > t && (t = i);
                                    }),
                                    t++,
                                    e.width(t),
                                    t
                                );
                            }),
                            (t.subtractInnerElHeight = function (e, t) {
                                var n,
                                    i = e.add(t);
                                return i.css({ position: "relative", left: -1 }), (n = e.outerHeight() - t.outerHeight()), i.css({ position: "", left: "" }), n;
                            }),
                            (t.getScrollParent = function (e) {
                                var t = e.css("position"),
                                    n = e
                                        .parents()
                                        .filter(function () {
                                            var e = o(this);
                                            return /(auto|scroll)/.test(e.css("overflow") + e.css("overflow-y") + e.css("overflow-x"));
                                        })
                                        .eq(0);
                                return "fixed" !== t && n.length ? n : o(e[0].ownerDocument || document);
                            }),
                            (t.getOuterRect = function (e, t) {
                                var n = e.offset(),
                                    i = n.left - (t ? t.left : 0),
                                    o = n.top - (t ? t.top : 0);
                                return { left: i, right: i + e.outerWidth(), top: o, bottom: o + e.outerHeight() };
                            }),
                            (t.getClientRect = function (e, t) {
                                var n = e.offset(),
                                    i = s(e),
                                    o = n.left + c(e, "border-left-width") + i.left - (t ? t.left : 0),
                                    r = n.top + c(e, "border-top-width") + i.top - (t ? t.top : 0);
                                return { left: o, right: o + e[0].clientWidth, top: r, bottom: r + e[0].clientHeight };
                            }),
                            (t.getContentRect = function (e, t) {
                                var n = e.offset(),
                                    i = n.left + c(e, "border-left-width") + c(e, "padding-left") - (t ? t.left : 0),
                                    o = n.top + c(e, "border-top-width") + c(e, "padding-top") - (t ? t.top : 0);
                                return { left: i, right: i + e.width(), top: o, bottom: o + e.height() };
                            }),
                            (t.getScrollbarWidths = s);
                        var l = null;
                        function c(e, t) {
                            return parseFloat(e.css(t)) || 0;
                        }
                        function u(e) {
                            e.preventDefault();
                        }
                        function d(e, t, n, i, o) {
                            if (n.func) return n.func(e, t);
                            var r = e[n.field],
                                s = t[n.field];
                            return null == r && i && (r = i[n.field]), null == s && o && (s = o[n.field]), p(r, s) * (n.order || 1);
                        }
                        function p(e, t) {
                            return e || t ? (null == t ? -1 : null == e ? 1 : "string" === o.type(e) || "string" === o.type(t) ? String(e).localeCompare(String(t)) : e - t) : 0;
                        }
                        function h(e, n) {
                            var i, o, r;
                            for (i = 0; i < t.unitsDesc.length && !((r = f((o = t.unitsDesc[i]), e, n)) >= 1 && w(r)); i++);
                            return o;
                        }
                        function f(e, t, n) {
                            return null != n ? n.diff(t, e, !0) : i.isDuration(t) ? t.as(e) : t.end.diff(t.start, e, !0);
                        }
                        function m(e) {
                            return Boolean(e.hours() || e.minutes() || e.seconds() || e.milliseconds());
                        }
                        function g() {
                            for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                            var n = window.console;
                            if (n && n.log) return n.log.apply(n, e);
                        }
                        (t.isPrimaryMouseButton = function (e) {
                            return 1 === e.which && !e.ctrlKey;
                        }),
                            (t.getEvX = function (e) {
                                var t = e.originalEvent.touches;
                                return t && t.length ? t[0].pageX : e.pageX;
                            }),
                            (t.getEvY = function (e) {
                                var t = e.originalEvent.touches;
                                return t && t.length ? t[0].pageY : e.pageY;
                            }),
                            (t.getEvIsTouch = function (e) {
                                return /^touch/.test(e.type);
                            }),
                            (t.preventSelection = function (e) {
                                e.addClass("fc-unselectable").on("selectstart", u);
                            }),
                            (t.allowSelection = function (e) {
                                e.removeClass("fc-unselectable").off("selectstart", u);
                            }),
                            (t.preventDefault = u),
                            (t.intersectRects = function (e, t) {
                                var n = { left: Math.max(e.left, t.left), right: Math.min(e.right, t.right), top: Math.max(e.top, t.top), bottom: Math.min(e.bottom, t.bottom) };
                                return n.left < n.right && n.top < n.bottom && n;
                            }),
                            (t.constrainPoint = function (e, t) {
                                return { left: Math.min(Math.max(e.left, t.left), t.right), top: Math.min(Math.max(e.top, t.top), t.bottom) };
                            }),
                            (t.getRectCenter = function (e) {
                                return { left: (e.left + e.right) / 2, top: (e.top + e.bottom) / 2 };
                            }),
                            (t.diffPoints = function (e, t) {
                                return { left: e.left - t.left, top: e.top - t.top };
                            }),
                            (t.parseFieldSpecs = function (e) {
                                var t,
                                    n,
                                    i = [],
                                    r = [];
                                for ("string" == typeof e ? (r = e.split(/\s*,\s*/)) : "function" == typeof e ? (r = [e]) : o.isArray(e) && (r = e), t = 0; t < r.length; t++)
                                    "string" == typeof (n = r[t]) ? i.push("-" === n.charAt(0) ? { field: n.substring(1), order: -1 } : { field: n, order: 1 }) : "function" == typeof n && i.push({ func: n });
                                return i;
                            }),
                            (t.compareByFieldSpecs = function (e, t, n, i, o) {
                                var r, s;
                                for (r = 0; r < n.length; r++) if ((s = d(e, t, n[r], i, o))) return s;
                                return 0;
                            }),
                            (t.compareByFieldSpec = d),
                            (t.flexibleCompare = p),
                            (t.dayIDs = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"]),
                            (t.unitsDesc = ["year", "month", "week", "day", "hour", "minute", "second", "millisecond"]),
                            (t.diffDayTime = function (e, t) {
                                return i.duration({ days: e.clone().stripTime().diff(t.clone().stripTime(), "days"), ms: e.time() - t.time() });
                            }),
                            (t.diffDay = function (e, t) {
                                return i.duration({ days: e.clone().stripTime().diff(t.clone().stripTime(), "days") });
                            }),
                            (t.diffByUnit = function (e, t, n) {
                                return i.duration(Math.round(e.diff(t, n, !0)), n);
                            }),
                            (t.computeGreatestUnit = h),
                            (t.computeDurationGreatestUnit = function (e, t) {
                                var n = h(e);
                                return "week" === n && "object" == typeof t && t.days && (n = "day"), n;
                            }),
                            (t.divideRangeByDuration = function (e, t, n) {
                                var i;
                                return m(n) ? (t - e) / n : ((i = n.asMonths()), Math.abs(i) >= 1 && w(i) ? t.diff(e, "months", !0) / i : t.diff(e, "days", !0) / n.asDays());
                            }),
                            (t.divideDurationByDuration = function (e, t) {
                                var n, i;
                                return m(e) || m(t) ? e / t : ((n = e.asMonths()), (i = t.asMonths()), Math.abs(n) >= 1 && w(n) && Math.abs(i) >= 1 && w(i) ? n / i : e.asDays() / t.asDays());
                            }),
                            (t.multiplyDuration = function (e, t) {
                                var n;
                                return m(e) ? i.duration(e * t) : ((n = e.asMonths()), Math.abs(n) >= 1 && w(n) ? i.duration({ months: n * t }) : i.duration({ days: e.asDays() * t }));
                            }),
                            (t.durationHasTime = m),
                            (t.isNativeDate = function (e) {
                                return "[object Date]" === Object.prototype.toString.call(e) || e instanceof Date;
                            }),
                            (t.isTimeString = function (e) {
                                return "string" == typeof e && /^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(e);
                            }),
                            (t.log = g),
                            (t.warn = function () {
                                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                                var n = window.console;
                                return n && n.warn ? n.warn.apply(n, e) : g.apply(null, e);
                            });
                        var v = {}.hasOwnProperty;
                        function y(e, t) {
                            return v.call(e, t);
                        }
                        function b(e) {
                            return (e + "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/'/g, "&#039;").replace(/"/g, "&quot;").replace(/\n/g, "<br />");
                        }
                        function w(e) {
                            return e % 1 == 0;
                        }
                        (t.mergeProps = function e(t, n) {
                            var i,
                                o,
                                r,
                                s,
                                a,
                                l,
                                c = {};
                            if (n)
                                for (i = 0; i < n.length; i++) {
                                    for (o = n[i], r = [], s = t.length - 1; s >= 0; s--)
                                        if ("object" == typeof (a = t[s][o])) r.unshift(a);
                                        else if (void 0 !== a) {
                                            c[o] = a;
                                            break;
                                        }
                                    r.length && (c[o] = e(r));
                                }
                            for (i = t.length - 1; i >= 0; i--) for (o in (l = t[i])) o in c || (c[o] = l[o]);
                            return c;
                        }),
                            (t.copyOwnProps = function (e, t) {
                                for (var n in e) y(e, n) && (t[n] = e[n]);
                            }),
                            (t.hasOwnProp = y),
                            (t.applyAll = function (e, t, n) {
                                if ((o.isFunction(e) && (e = [e]), e)) {
                                    var i = void 0,
                                        r = void 0;
                                    for (i = 0; i < e.length; i++) r = e[i].apply(t, n) || r;
                                    return r;
                                }
                            }),
                            (t.removeMatching = function (e, t) {
                                for (var n = 0, i = 0; i < e.length; ) t(e[i]) ? (e.splice(i, 1), n++) : i++;
                                return n;
                            }),
                            (t.removeExact = function (e, t) {
                                for (var n = 0, i = 0; i < e.length; ) e[i] === t ? (e.splice(i, 1), n++) : i++;
                                return n;
                            }),
                            (t.isArraysEqual = function (e, t) {
                                var n,
                                    i = e.length;
                                if (null == i || i !== t.length) return !1;
                                for (n = 0; n < i; n++) if (e[n] !== t[n]) return !1;
                                return !0;
                            }),
                            (t.firstDefined = function () {
                                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                                for (var n = 0; n < e.length; n++) if (void 0 !== e[n]) return e[n];
                            }),
                            (t.htmlEscape = b),
                            (t.stripHtmlEntities = function (e) {
                                return e.replace(/&.*?;/g, "");
                            }),
                            (t.cssToStr = function (e) {
                                var t = [];
                                return (
                                    o.each(e, function (e, n) {
                                        null != n && t.push(e + ":" + n);
                                    }),
                                    t.join(";")
                                );
                            }),
                            (t.attrsToStr = function (e) {
                                var t = [];
                                return (
                                    o.each(e, function (e, n) {
                                        null != n && t.push(e + '="' + b(n) + '"');
                                    }),
                                    t.join(" ")
                                );
                            }),
                            (t.capitaliseFirstLetter = function (e) {
                                return e.charAt(0).toUpperCase() + e.slice(1);
                            }),
                            (t.compareNumbers = function (e, t) {
                                return e - t;
                            }),
                            (t.isInt = w),
                            (t.proxy = function (e, t) {
                                var n = e[t];
                                return function () {
                                    return n.apply(e, arguments);
                                };
                            }),
                            (t.debounce = function (e, t, n) {
                                var i, o, r, s, a;
                                void 0 === n && (n = !1);
                                var l = function () {
                                    var c = +new Date() - s;
                                    c < t ? (i = setTimeout(l, t - c)) : ((i = null), n || ((a = e.apply(r, o)), (r = o = null)));
                                };
                                return function () {
                                    (r = this), (o = arguments), (s = +new Date());
                                    var c = n && !i;
                                    return i || (i = setTimeout(l, t)), c && ((a = e.apply(r, o)), (r = o = null)), a;
                                };
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(10),
                            r = (function () {
                                function e(e, t) {
                                    (this.isStart = !0), (this.isEnd = !0), i.isMoment(e) && (e = e.clone().stripZone()), i.isMoment(t) && (t = t.clone().stripZone()), e && (this.startMs = e.valueOf()), t && (this.endMs = t.valueOf());
                                }
                                return (
                                    (e.invertRanges = function (t, n) {
                                        var i,
                                            o,
                                            r = [],
                                            a = n.startMs;
                                        for (t.sort(s), i = 0; i < t.length; i++) (o = t[i]).startMs > a && r.push(new e(a, o.startMs)), o.endMs > a && (a = o.endMs);
                                        return a < n.endMs && r.push(new e(a, n.endMs)), r;
                                    }),
                                    (e.prototype.intersect = function (t) {
                                        var n = this.startMs,
                                            i = this.endMs,
                                            o = null;
                                        return (
                                            null != t.startMs && (n = null == n ? t.startMs : Math.max(n, t.startMs)),
                                            null != t.endMs && (i = null == i ? t.endMs : Math.min(i, t.endMs)),
                                            (null == n || null == i || n < i) && (((o = new e(n, i)).isStart = this.isStart && n === this.startMs), (o.isEnd = this.isEnd && i === this.endMs)),
                                            o
                                        );
                                    }),
                                    (e.prototype.intersectsWith = function (e) {
                                        return (null == this.endMs || null == e.startMs || this.endMs > e.startMs) && (null == this.startMs || null == e.endMs || this.startMs < e.endMs);
                                    }),
                                    (e.prototype.containsRange = function (e) {
                                        return (null == this.startMs || (null != e.startMs && e.startMs >= this.startMs)) && (null == this.endMs || (null != e.endMs && e.endMs <= this.endMs));
                                    }),
                                    (e.prototype.containsDate = function (e) {
                                        var t = e.valueOf();
                                        return (null == this.startMs || t >= this.startMs) && (null == this.endMs || t < this.endMs);
                                    }),
                                    (e.prototype.constrainDate = function (e) {
                                        var t = e.valueOf();
                                        return null != this.startMs && t < this.startMs && (t = this.startMs), null != this.endMs && t >= this.endMs && (t = this.endMs - 1), t;
                                    }),
                                    (e.prototype.equals = function (e) {
                                        return this.startMs === e.startMs && this.endMs === e.endMs;
                                    }),
                                    (e.prototype.clone = function () {
                                        var t = new e(this.startMs, this.endMs);
                                        return (t.isStart = this.isStart), (t.isEnd = this.isEnd), t;
                                    }),
                                    (e.prototype.getStart = function () {
                                        return null != this.startMs ? o.default.utc(this.startMs).stripZone() : null;
                                    }),
                                    (e.prototype.getEnd = function () {
                                        return null != this.endMs ? o.default.utc(this.endMs).stripZone() : null;
                                    }),
                                    (e.prototype.as = function (e) {
                                        return i.utc(this.endMs).diff(i.utc(this.startMs), e, !0);
                                    }),
                                    e
                                );
                            })();
                        function s(e, t) {
                            return e.startMs - t.startMs;
                        }
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(208),
                            s = n(33),
                            a = n(49),
                            l = (function (e) {
                                function t(n) {
                                    var i = e.call(this) || this;
                                    return (i.calendar = n), (i.className = []), (i.uid = String(t.uuid++)), i;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.parse = function (e, t) {
                                        var n = new this(t);
                                        return !("object" != typeof e || !n.applyProps(e)) && n;
                                    }),
                                    (t.normalizeId = function (e) {
                                        return e ? String(e) : null;
                                    }),
                                    (t.prototype.fetch = function (e, t, n) {}),
                                    (t.prototype.removeEventDefsById = function (e) {}),
                                    (t.prototype.removeAllEventDefs = function () {}),
                                    (t.prototype.getPrimitive = function (e) {}),
                                    (t.prototype.parseEventDefs = function (e) {
                                        var t,
                                            n,
                                            i = [];
                                        for (t = 0; t < e.length; t++) (n = this.parseEventDef(e[t])) && i.push(n);
                                        return i;
                                    }),
                                    (t.prototype.parseEventDef = function (e) {
                                        var t = this.calendar.opt("eventDataTransform"),
                                            n = this.eventDataTransform;
                                        return t && (e = t(e, this.calendar)), n && (e = n(e, this.calendar)), a.default.parse(e, this);
                                    }),
                                    (t.prototype.applyManualStandardProps = function (e) {
                                        return null != e.id && (this.id = t.normalizeId(e.id)), o.isArray(e.className) ? (this.className = e.className) : "string" == typeof e.className && (this.className = e.className.split(/\s+/)), !0;
                                    }),
                                    (t.uuid = 0),
                                    (t.defineStandardProps = r.default.defineStandardProps),
                                    (t.copyVerbatimStandardProps = r.default.copyVerbatimStandardProps),
                                    t
                                );
                            })(s.default);
                        (t.default = l),
                            r.default.mixInto(l),
                            l.defineStandardProps({
                                id: !1,
                                className: !1,
                                color: !0,
                                backgroundColor: !0,
                                borderColor: !0,
                                textColor: !0,
                                editable: !0,
                                startEditable: !0,
                                durationEditable: !0,
                                rendering: !0,
                                overlap: !0,
                                constraint: !0,
                                allDayDefault: !0,
                                eventDataTransform: !0,
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = 0,
                            s = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.listenTo = function (e, t, n) {
                                        if ("object" == typeof t) for (var i in t) t.hasOwnProperty(i) && this.listenTo(e, i, t[i]);
                                        else "string" == typeof t && e.on(t + "." + this.getListenerNamespace(), o.proxy(n, this));
                                    }),
                                    (t.prototype.stopListeningTo = function (e, t) {
                                        e.off((t || "") + "." + this.getListenerNamespace());
                                    }),
                                    (t.prototype.getListenerNamespace = function () {
                                        return null == this.listenerId && (this.listenerId = r++), "_listener" + this.listenerId;
                                    }),
                                    t
                                );
                            })(n(14).default);
                        t.default = s;
                    },
                    ,
                    ,
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(3),
                            r = n(4),
                            s = /^\s*\d{4}-\d\d$/,
                            a = /^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,
                            l = i.fn;
                        t.newMomentProto = l;
                        var c = o.extend({}, l);
                        t.oldMomentProto = c;
                        var u = i.momentProperties;
                        u.push("_fullCalendar"),
                            u.push("_ambigTime"),
                            u.push("_ambigZone"),
                            (t.oldMomentFormat = function (e, t) {
                                return c.format.call(e, t);
                            });
                        var d = function () {
                            return p(arguments);
                        };
                        function p(e, t, n) {
                            void 0 === t && (t = !1), void 0 === n && (n = !1);
                            var l,
                                c,
                                u,
                                d,
                                p = e[0],
                                h = 1 === e.length && "string" == typeof p;
                            return (
                                i.isMoment(p) || r.isNativeDate(p) || void 0 === p
                                    ? (d = i.apply(null, e))
                                    : ((l = !1),
                                      (c = !1),
                                      h ? (s.test(p) ? ((e = [(p += "-01")]), (l = !0), (c = !0)) : (u = a.exec(p)) && ((l = !u[5]), (c = !0))) : o.isArray(p) && (c = !0),
                                      (d = t || l ? i.utc.apply(i, e) : i.apply(null, e)),
                                      l ? ((d._ambigTime = !0), (d._ambigZone = !0)) : n && (c ? (d._ambigZone = !0) : h && d.utcOffset(p))),
                                (d._fullCalendar = !0),
                                d
                            );
                        }
                        (t.default = d),
                            (d.utc = function () {
                                var e = p(arguments, !0);
                                return e.hasTime() && e.utc(), e;
                            }),
                            (d.parseZone = function () {
                                return p(arguments, !0, !0);
                            }),
                            (l.week = l.weeks = function (e) {
                                var t = this._locale._fullCalendar_weekCalc;
                                return null == e && "function" == typeof t ? t(this) : "ISO" === t ? c.isoWeek.apply(this, arguments) : c.week.apply(this, arguments);
                            }),
                            (l.time = function (e) {
                                if (!this._fullCalendar) return c.time.apply(this, arguments);
                                if (null == e) return i.duration({ hours: this.hours(), minutes: this.minutes(), seconds: this.seconds(), milliseconds: this.milliseconds() });
                                (this._ambigTime = !1), i.isDuration(e) || i.isMoment(e) || (e = i.duration(e));
                                var t = 0;
                                return (
                                    i.isDuration(e) && (t = 24 * Math.floor(e.asDays())),
                                    this.hours(t + e.hours())
                                        .minutes(e.minutes())
                                        .seconds(e.seconds())
                                        .milliseconds(e.milliseconds())
                                );
                            }),
                            (l.stripTime = function () {
                                return this._ambigTime || (this.utc(!0), this.set({ hours: 0, minutes: 0, seconds: 0, ms: 0 }), (this._ambigTime = !0), (this._ambigZone = !0)), this;
                            }),
                            (l.hasTime = function () {
                                return !this._ambigTime;
                            }),
                            (l.stripZone = function () {
                                var e;
                                return this._ambigZone || ((e = this._ambigTime), this.utc(!0), (this._ambigTime = e || !1), (this._ambigZone = !0)), this;
                            }),
                            (l.hasZone = function () {
                                return !this._ambigZone;
                            }),
                            (l.local = function (e) {
                                return c.local.call(this, this._ambigZone || e), (this._ambigTime = !1), (this._ambigZone = !1), this;
                            }),
                            (l.utc = function (e) {
                                return c.utc.call(this, e), (this._ambigTime = !1), (this._ambigZone = !1), this;
                            }),
                            (l.utcOffset = function (e) {
                                return null != e && ((this._ambigTime = !1), (this._ambigZone = !1)), c.utcOffset.apply(this, arguments);
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.on = function (e, t) {
                                        return o(this).on(e, this._prepareIntercept(t)), this;
                                    }),
                                    (t.prototype.one = function (e, t) {
                                        return o(this).one(e, this._prepareIntercept(t)), this;
                                    }),
                                    (t.prototype._prepareIntercept = function (e) {
                                        var t = function (t, n) {
                                            return e.apply(n.context || this, n.args || []);
                                        };
                                        return e.guid || (e.guid = o.guid++), (t.guid = e.guid), t;
                                    }),
                                    (t.prototype.off = function (e, t) {
                                        return o(this).off(e, t), this;
                                    }),
                                    (t.prototype.trigger = function (e) {
                                        for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                                        return o(this).triggerHandler(e, { args: t }), this;
                                    }),
                                    (t.prototype.triggerWith = function (e, t, n) {
                                        return o(this).triggerHandler(e, { context: t, args: n }), this;
                                    }),
                                    (t.prototype.hasHandlers = function (e) {
                                        var t = o._data(this, "events");
                                        return t && t[e] && t[e].length > 0;
                                    }),
                                    t
                                );
                            })(n(14).default);
                        t.default = r;
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var n = (function () {
                            function e(e, t) {
                                (this.isAllDay = !1), (this.unzonedRange = e), (this.isAllDay = t);
                            }
                            return (
                                (e.prototype.toLegacy = function (e) {
                                    return { start: e.msToMoment(this.unzonedRange.startMs, this.isAllDay), end: e.msToMoment(this.unzonedRange.endMs, this.isAllDay) };
                                }),
                                e
                            );
                        })();
                        t.default = n;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(34),
                            r = n(209),
                            s = n(17),
                            a = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.buildInstances = function () {
                                        return [this.buildInstance()];
                                    }),
                                    (t.prototype.buildInstance = function () {
                                        return new r.default(this, this.dateProfile);
                                    }),
                                    (t.prototype.isAllDay = function () {
                                        return this.dateProfile.isAllDay();
                                    }),
                                    (t.prototype.clone = function () {
                                        var t = e.prototype.clone.call(this);
                                        return (t.dateProfile = this.dateProfile), t;
                                    }),
                                    (t.prototype.rezone = function () {
                                        var e = this.source.calendar,
                                            t = this.dateProfile;
                                        this.dateProfile = new s.default(e.moment(t.start), t.end ? e.moment(t.end) : null, e);
                                    }),
                                    (t.prototype.applyManualStandardProps = function (t) {
                                        var n = e.prototype.applyManualStandardProps.call(this, t),
                                            i = s.default.parse(t, this.source);
                                        return !!i && ((this.dateProfile = i), null != t.date && (this.miscProps.date = t.date), n);
                                    }),
                                    t
                                );
                            })(o.default);
                        (t.default = a), a.defineStandardProps({ start: !1, date: !1, end: !1, allDay: !1 });
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var n = (function () {
                            function e() {}
                            return (
                                (e.mixInto = function (e) {
                                    var t = this;
                                    Object.getOwnPropertyNames(this.prototype).forEach(function (n) {
                                        e.prototype[n] || (e.prototype[n] = t.prototype[n]);
                                    });
                                }),
                                (e.mixOver = function (e) {
                                    var t = this;
                                    Object.getOwnPropertyNames(this.prototype).forEach(function (n) {
                                        e.prototype[n] = t.prototype[n];
                                    });
                                }),
                                e
                            );
                        })();
                        t.default = n;
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var n = (function () {
                            function e(e) {
                                (this.view = e._getView()), (this.component = e);
                            }
                            return (
                                (e.prototype.opt = function (e) {
                                    return this.view.opt(e);
                                }),
                                (e.prototype.end = function () {}),
                                e
                            );
                        })();
                        t.default = n;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 }), (t.version = "3.9.0"), (t.internalApiVersion = 12);
                        var i = n(4);
                        (t.applyAll = i.applyAll),
                            (t.debounce = i.debounce),
                            (t.isInt = i.isInt),
                            (t.htmlEscape = i.htmlEscape),
                            (t.cssToStr = i.cssToStr),
                            (t.proxy = i.proxy),
                            (t.capitaliseFirstLetter = i.capitaliseFirstLetter),
                            (t.getOuterRect = i.getOuterRect),
                            (t.getClientRect = i.getClientRect),
                            (t.getContentRect = i.getContentRect),
                            (t.getScrollbarWidths = i.getScrollbarWidths),
                            (t.preventDefault = i.preventDefault),
                            (t.parseFieldSpecs = i.parseFieldSpecs),
                            (t.compareByFieldSpecs = i.compareByFieldSpecs),
                            (t.compareByFieldSpec = i.compareByFieldSpec),
                            (t.flexibleCompare = i.flexibleCompare),
                            (t.computeGreatestUnit = i.computeGreatestUnit),
                            (t.divideRangeByDuration = i.divideRangeByDuration),
                            (t.divideDurationByDuration = i.divideDurationByDuration),
                            (t.multiplyDuration = i.multiplyDuration),
                            (t.durationHasTime = i.durationHasTime),
                            (t.log = i.log),
                            (t.warn = i.warn),
                            (t.removeExact = i.removeExact),
                            (t.intersectRects = i.intersectRects);
                        var o = n(47);
                        (t.formatDate = o.formatDate), (t.formatRange = o.formatRange), (t.queryMostGranularFormatUnit = o.queryMostGranularFormatUnit);
                        var r = n(31);
                        (t.datepickerLocale = r.datepickerLocale), (t.locale = r.locale);
                        var s = n(10);
                        t.moment = s.default;
                        var a = n(11);
                        t.EmitterMixin = a.default;
                        var l = n(7);
                        t.ListenerMixin = l.default;
                        var c = n(48);
                        t.Model = c.default;
                        var u = n(207);
                        t.Constraints = u.default;
                        var d = n(5);
                        t.UnzonedRange = d.default;
                        var p = n(12);
                        t.ComponentFootprint = p.default;
                        var h = n(212);
                        t.BusinessHourGenerator = h.default;
                        var f = n(34);
                        t.EventDef = f.default;
                        var m = n(37);
                        t.EventDefMutation = m.default;
                        var g = n(38);
                        t.EventSourceParser = g.default;
                        var v = n(6);
                        t.EventSource = v.default;
                        var y = n(51);
                        t.defineThemeSystem = y.defineThemeSystem;
                        var b = n(18);
                        t.EventInstanceGroup = b.default;
                        var w = n(52);
                        t.ArrayEventSource = w.default;
                        var _ = n(215);
                        t.FuncEventSource = _.default;
                        var D = n(216);
                        t.JsonFeedEventSource = D.default;
                        var C = n(36);
                        t.EventFootprint = C.default;
                        var S = n(33);
                        t.Class = S.default;
                        var x = n(14);
                        t.Mixin = x.default;
                        var E = n(53);
                        t.CoordCache = E.default;
                        var T = n(54);
                        t.DragListener = T.default;
                        var R = n(20);
                        t.Promise = R.default;
                        var k = n(217);
                        t.TaskQueue = k.default;
                        var I = n(218);
                        t.RenderQueue = I.default;
                        var F = n(39);
                        t.Scroller = F.default;
                        var M = n(19);
                        t.Theme = M.default;
                        var P = n(219);
                        t.DateComponent = P.default;
                        var $ = n(40);
                        t.InteractiveDateComponent = $.default;
                        var H = n(220);
                        t.Calendar = H.default;
                        var O = n(41);
                        t.View = O.default;
                        var A = n(22);
                        (t.defineView = A.defineView), (t.getViewConfig = A.getViewConfig);
                        var B = n(55);
                        t.DayTableMixin = B.default;
                        var N = n(56);
                        t.BusinessHourRenderer = N.default;
                        var L = n(42);
                        t.EventRenderer = L.default;
                        var j = n(57);
                        t.FillRenderer = j.default;
                        var z = n(58);
                        t.HelperRenderer = z.default;
                        var Y = n(222);
                        t.ExternalDropping = Y.default;
                        var U = n(223);
                        t.EventResizing = U.default;
                        var V = n(59);
                        t.EventPointing = V.default;
                        var q = n(224);
                        t.EventDragging = q.default;
                        var G = n(225);
                        t.DateSelecting = G.default;
                        var W = n(60);
                        t.StandardInteractionsMixin = W.default;
                        var J = n(226);
                        t.AgendaView = J.default;
                        var X = n(227);
                        t.TimeGrid = X.default;
                        var Z = n(61);
                        t.DayGrid = Z.default;
                        var K = n(62);
                        t.BasicView = K.default;
                        var Q = n(229);
                        t.MonthView = Q.default;
                        var ee = n(230);
                        t.ListView = ee.default;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(5),
                            o = (function () {
                                function e(e, t, n) {
                                    (this.start = e), (this.end = t || null), (this.unzonedRange = this.buildUnzonedRange(n));
                                }
                                return (
                                    (e.parse = function (t, n) {
                                        var i = t.start || t.date,
                                            o = t.end;
                                        if (!i) return !1;
                                        var r = n.calendar,
                                            s = r.moment(i),
                                            a = o ? r.moment(o) : null,
                                            l = t.allDay,
                                            c = r.opt("forceEventDuration");
                                        return (
                                            !!s.isValid() &&
                                            (!a || (a.isValid() && a.isAfter(s)) || (a = null),
                                            null == l && null == (l = n.allDayDefault) && (l = r.opt("allDayDefault")),
                                            !0 === l ? (s.stripTime(), a && a.stripTime()) : !1 === l && (s.hasTime() || s.time(0), a && !a.hasTime() && a.time(0)),
                                            !a && c && (a = r.getDefaultEventEnd(!s.hasTime(), s)),
                                            new e(s, a, r))
                                        );
                                    }),
                                    (e.isStandardProp = function (e) {
                                        return "start" === e || "date" === e || "end" === e || "allDay" === e;
                                    }),
                                    (e.prototype.isAllDay = function () {
                                        return !(this.start.hasTime() || (this.end && this.end.hasTime()));
                                    }),
                                    (e.prototype.buildUnzonedRange = function (e) {
                                        var t = this.start.clone().stripZone().valueOf(),
                                            n = this.getEnd(e).stripZone().valueOf();
                                        return new i.default(t, n);
                                    }),
                                    (e.prototype.getEnd = function (e) {
                                        return this.end ? this.end.clone() : e.getDefaultEventEnd(this.isAllDay(), this.start);
                                    }),
                                    e
                                );
                            })();
                        t.default = o;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(5),
                            o = n(35),
                            r = n(211),
                            s = (function () {
                                function e(e) {
                                    this.eventInstances = e || [];
                                }
                                return (
                                    (e.prototype.getAllEventRanges = function (e) {
                                        return e ? this.sliceNormalRenderRanges(e) : this.eventInstances.map(o.eventInstanceToEventRange);
                                    }),
                                    (e.prototype.sliceRenderRanges = function (e) {
                                        return this.isInverse() ? this.sliceInverseRenderRanges(e) : this.sliceNormalRenderRanges(e);
                                    }),
                                    (e.prototype.sliceNormalRenderRanges = function (e) {
                                        var t,
                                            n,
                                            i,
                                            o = this.eventInstances,
                                            s = [];
                                        for (t = 0; t < o.length; t++) (i = (n = o[t]).dateProfile.unzonedRange.intersect(e)) && s.push(new r.default(i, n.def, n));
                                        return s;
                                    }),
                                    (e.prototype.sliceInverseRenderRanges = function (e) {
                                        var t = this.eventInstances.map(o.eventInstanceToUnzonedRange),
                                            n = this.getEventDef();
                                        return (t = i.default.invertRanges(t, e)).map(function (e) {
                                            return new r.default(e, n);
                                        });
                                    }),
                                    (e.prototype.isInverse = function () {
                                        return this.getEventDef().hasInverseRendering();
                                    }),
                                    (e.prototype.getEventDef = function () {
                                        return this.explicitEventDef || this.eventInstances[0].def;
                                    }),
                                    e
                                );
                            })();
                        t.default = s;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = (function () {
                                function e(e) {
                                    (this.optionsManager = e), this.processIconOverride();
                                }
                                return (
                                    (e.prototype.processIconOverride = function () {
                                        this.iconOverrideOption && this.setIconOverride(this.optionsManager.get(this.iconOverrideOption));
                                    }),
                                    (e.prototype.setIconOverride = function (e) {
                                        var t, n;
                                        if (i.isPlainObject(e)) {
                                            for (n in ((t = i.extend({}, this.iconClasses)), e)) t[n] = this.applyIconOverridePrefix(e[n]);
                                            this.iconClasses = t;
                                        } else !1 === e && (this.iconClasses = {});
                                    }),
                                    (e.prototype.applyIconOverridePrefix = function (e) {
                                        var t = this.iconOverridePrefix;
                                        return t && 0 !== e.indexOf(t) && (e = t + e), e;
                                    }),
                                    (e.prototype.getClass = function (e) {
                                        return this.classes[e] || "";
                                    }),
                                    (e.prototype.getIconClass = function (e) {
                                        var t = this.iconClasses[e];
                                        return t ? this.baseIconClass + " " + t : "";
                                    }),
                                    (e.prototype.getCustomButtonIconClass = function (e) {
                                        var t;
                                        return this.iconOverrideCustomButtonOption && (t = e[this.iconOverrideCustomButtonOption]) ? this.baseIconClass + " " + this.applyIconOverridePrefix(t) : "";
                                    }),
                                    e
                                );
                            })();
                        (t.default = o), (o.prototype.classes = {}), (o.prototype.iconClasses = {}), (o.prototype.baseIconClass = ""), (o.prototype.iconOverridePrefix = "");
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = {
                                construct: function (e) {
                                    var t = i.Deferred(),
                                        n = t.promise();
                                    return (
                                        "function" == typeof e &&
                                            e(
                                                function (e) {
                                                    t.resolve(e), r(n, e);
                                                },
                                                function () {
                                                    t.reject(), s(n);
                                                }
                                            ),
                                        n
                                    );
                                },
                                resolve: function (e) {
                                    var t = i.Deferred().resolve(e).promise();
                                    return r(t, e), t;
                                },
                                reject: function () {
                                    var e = i.Deferred().reject().promise();
                                    return s(e), e;
                                },
                            };
                        function r(e, t) {
                            e.then = function (n) {
                                return "function" == typeof n ? o.resolve(n(t)) : e;
                            };
                        }
                        function s(e) {
                            e.then = function (t, n) {
                                return "function" == typeof n && n(), e;
                            };
                        }
                        t.default = o;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(16),
                            r = n(11),
                            s = n(7);
                        o.touchMouseIgnoreWait = 500;
                        var a = null,
                            l = 0,
                            c = (function () {
                                function e() {
                                    (this.isTouching = !1), (this.mouseIgnoreDepth = 0);
                                }
                                return (
                                    (e.get = function () {
                                        return a || (a = new e()).bind(), a;
                                    }),
                                    (e.needed = function () {
                                        e.get(), l++;
                                    }),
                                    (e.unneeded = function () {
                                        --l || (a.unbind(), (a = null));
                                    }),
                                    (e.prototype.bind = function () {
                                        var e = this;
                                        this.listenTo(i(document), {
                                            touchstart: this.handleTouchStart,
                                            touchcancel: this.handleTouchCancel,
                                            touchend: this.handleTouchEnd,
                                            mousedown: this.handleMouseDown,
                                            mousemove: this.handleMouseMove,
                                            mouseup: this.handleMouseUp,
                                            click: this.handleClick,
                                            selectstart: this.handleSelectStart,
                                            contextmenu: this.handleContextMenu,
                                        }),
                                            window.addEventListener(
                                                "touchmove",
                                                (this.handleTouchMoveProxy = function (t) {
                                                    e.handleTouchMove(i.Event(t));
                                                }),
                                                { passive: !1 }
                                            ),
                                            window.addEventListener(
                                                "scroll",
                                                (this.handleScrollProxy = function (t) {
                                                    e.handleScroll(i.Event(t));
                                                }),
                                                !0
                                            );
                                    }),
                                    (e.prototype.unbind = function () {
                                        this.stopListeningTo(i(document)), window.removeEventListener("touchmove", this.handleTouchMoveProxy), window.removeEventListener("scroll", this.handleScrollProxy, !0);
                                    }),
                                    (e.prototype.handleTouchStart = function (e) {
                                        this.stopTouch(e, !0), (this.isTouching = !0), this.trigger("touchstart", e);
                                    }),
                                    (e.prototype.handleTouchMove = function (e) {
                                        this.isTouching && this.trigger("touchmove", e);
                                    }),
                                    (e.prototype.handleTouchCancel = function (e) {
                                        this.isTouching && (this.trigger("touchcancel", e), this.stopTouch(e));
                                    }),
                                    (e.prototype.handleTouchEnd = function (e) {
                                        this.stopTouch(e);
                                    }),
                                    (e.prototype.handleMouseDown = function (e) {
                                        this.shouldIgnoreMouse() || this.trigger("mousedown", e);
                                    }),
                                    (e.prototype.handleMouseMove = function (e) {
                                        this.shouldIgnoreMouse() || this.trigger("mousemove", e);
                                    }),
                                    (e.prototype.handleMouseUp = function (e) {
                                        this.shouldIgnoreMouse() || this.trigger("mouseup", e);
                                    }),
                                    (e.prototype.handleClick = function (e) {
                                        this.shouldIgnoreMouse() || this.trigger("click", e);
                                    }),
                                    (e.prototype.handleSelectStart = function (e) {
                                        this.trigger("selectstart", e);
                                    }),
                                    (e.prototype.handleContextMenu = function (e) {
                                        this.trigger("contextmenu", e);
                                    }),
                                    (e.prototype.handleScroll = function (e) {
                                        this.trigger("scroll", e);
                                    }),
                                    (e.prototype.stopTouch = function (e, t) {
                                        void 0 === t && (t = !1), this.isTouching && ((this.isTouching = !1), this.trigger("touchend", e), t || this.startTouchMouseIgnore());
                                    }),
                                    (e.prototype.startTouchMouseIgnore = function () {
                                        var e = this,
                                            t = o.touchMouseIgnoreWait;
                                        t &&
                                            (this.mouseIgnoreDepth++,
                                            setTimeout(function () {
                                                e.mouseIgnoreDepth--;
                                            }, t));
                                    }),
                                    (e.prototype.shouldIgnoreMouse = function () {
                                        return this.isTouching || Boolean(this.mouseIgnoreDepth);
                                    }),
                                    e
                                );
                            })();
                        (t.default = c), s.default.mixInto(c), r.default.mixInto(c);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(16);
                        (t.viewHash = {}),
                            (i.views = t.viewHash),
                            (t.defineView = function (e, n) {
                                t.viewHash[e] = n;
                            }),
                            (t.getViewConfig = function (e) {
                                return t.viewHash[e];
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(4),
                            r = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, n) || this;
                                    return (i.component = t), i;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.handleInteractionStart = function (t) {
                                        var n,
                                            i,
                                            r,
                                            s = this.subjectEl;
                                        this.component.hitsNeeded(),
                                            this.computeScrollBounds(),
                                            t
                                                ? ((r = i = { left: o.getEvX(t), top: o.getEvY(t) }),
                                                  s && ((n = o.getOuterRect(s)), (r = o.constrainPoint(r, n))),
                                                  (this.origHit = this.queryHit(r.left, r.top)),
                                                  s && this.options.subjectCenter && (this.origHit && (n = o.intersectRects(this.origHit, n) || n), (r = o.getRectCenter(n))),
                                                  (this.coordAdjust = o.diffPoints(r, i)))
                                                : ((this.origHit = null), (this.coordAdjust = null)),
                                            e.prototype.handleInteractionStart.call(this, t);
                                    }),
                                    (t.prototype.handleDragStart = function (t) {
                                        var n;
                                        e.prototype.handleDragStart.call(this, t), (n = this.queryHit(o.getEvX(t), o.getEvY(t))) && this.handleHitOver(n);
                                    }),
                                    (t.prototype.handleDrag = function (t, n, i) {
                                        var r;
                                        e.prototype.handleDrag.call(this, t, n, i), s((r = this.queryHit(o.getEvX(i), o.getEvY(i))), this.hit) || (this.hit && this.handleHitOut(), r && this.handleHitOver(r));
                                    }),
                                    (t.prototype.handleDragEnd = function (t) {
                                        this.handleHitDone(), e.prototype.handleDragEnd.call(this, t);
                                    }),
                                    (t.prototype.handleHitOver = function (e) {
                                        var t = s(e, this.origHit);
                                        (this.hit = e), this.trigger("hitOver", this.hit, t, this.origHit);
                                    }),
                                    (t.prototype.handleHitOut = function () {
                                        this.hit && (this.trigger("hitOut", this.hit), this.handleHitDone(), (this.hit = null));
                                    }),
                                    (t.prototype.handleHitDone = function () {
                                        this.hit && this.trigger("hitDone", this.hit);
                                    }),
                                    (t.prototype.handleInteractionEnd = function (t, n) {
                                        e.prototype.handleInteractionEnd.call(this, t, n), (this.origHit = null), (this.hit = null), this.component.hitsNotNeeded();
                                    }),
                                    (t.prototype.handleScrollEnd = function () {
                                        e.prototype.handleScrollEnd.call(this), this.isDragging && (this.component.releaseHits(), this.component.prepareHits());
                                    }),
                                    (t.prototype.queryHit = function (e, t) {
                                        return this.coordAdjust && ((e += this.coordAdjust.left), (t += this.coordAdjust.top)), this.component.queryHit(e, t);
                                    }),
                                    t
                                );
                            })(n(54).default);
                        function s(e, t) {
                            return (!e && !t) || (!(!e || !t) && e.component === t.component && a(e, t) && a(t, e));
                        }
                        function a(e, t) {
                            for (var n in e) if (!/^(component|left|right|top|bottom)$/.test(n) && e[n] !== t[n]) return !1;
                            return !0;
                        }
                        t.default = r;
                    },
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(0),
                            r = n(16),
                            s = n(32),
                            a = n(4);
                        (t.localeOptionHash = {}), (r.locales = t.localeOptionHash);
                        var l = {
                                buttonText: function (e) {
                                    return { prev: a.stripHtmlEntities(e.prevText), next: a.stripHtmlEntities(e.nextText), today: a.stripHtmlEntities(e.currentText) };
                                },
                                monthYearFormat: function (e) {
                                    return e.showMonthAfterYear ? "YYYY[" + e.yearSuffix + "] MMMM" : "MMMM YYYY[" + e.yearSuffix + "]";
                                },
                            },
                            c = {
                                dayOfMonthFormat: function (e, t) {
                                    var n = e.longDateFormat("l");
                                    return (n = n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g, "")), t.isRTL ? (n += " ddd") : (n = "ddd " + n), n;
                                },
                                mediumTimeFormat: function (e) {
                                    return e.longDateFormat("LT").replace(/\s*a$/i, "a");
                                },
                                smallTimeFormat: function (e) {
                                    return e
                                        .longDateFormat("LT")
                                        .replace(":mm", "(:mm)")
                                        .replace(/(\Wmm)$/, "($1)")
                                        .replace(/\s*a$/i, "a");
                                },
                                extraSmallTimeFormat: function (e) {
                                    return e
                                        .longDateFormat("LT")
                                        .replace(":mm", "(:mm)")
                                        .replace(/(\Wmm)$/, "($1)")
                                        .replace(/\s*a$/i, "t");
                                },
                                hourFormat: function (e) {
                                    return e
                                        .longDateFormat("LT")
                                        .replace(":mm", "")
                                        .replace(/(\Wmm)$/, "")
                                        .replace(/\s*a$/i, "a");
                                },
                                noMeridiemTimeFormat: function (e) {
                                    return e.longDateFormat("LT").replace(/\s*a$/i, "");
                                },
                            },
                            u = {
                                smallDayDateFormat: function (e) {
                                    return e.isRTL ? "D dd" : "dd D";
                                },
                                weekFormat: function (e) {
                                    return e.isRTL ? "w[ " + e.weekNumberTitle + "]" : "[" + e.weekNumberTitle + " ]w";
                                },
                                smallWeekFormat: function (e) {
                                    return e.isRTL ? "w[" + e.weekNumberTitle + "]" : "[" + e.weekNumberTitle + "]w";
                                },
                            };
                        function d(e, n) {
                            var o, r;
                            (o = t.localeOptionHash[e] || (t.localeOptionHash[e] = {})),
                                n && (o = t.localeOptionHash[e] = s.mergeOptions([o, n])),
                                (r = p(e)),
                                i.each(c, function (e, t) {
                                    null == o[e] && (o[e] = t(r, o));
                                }),
                                (s.globalDefaults.locale = e);
                        }
                        function p(e) {
                            return o.localeData(e) || o.localeData("en");
                        }
                        (t.populateInstanceComputableOptions = function (e) {
                            i.each(u, function (t, n) {
                                null == e[t] && (e[t] = n(e));
                            });
                        }),
                            (t.datepickerLocale = function (e, n, o) {
                                var r = t.localeOptionHash[e] || (t.localeOptionHash[e] = {});
                                (r.isRTL = o.isRTL),
                                    (r.weekNumberTitle = o.weekHeader),
                                    i.each(l, function (e, t) {
                                        r[e] = t(o);
                                    });
                                var s = i.datepicker;
                                s && ((s.regional[n] = s.regional[e] = o), (s.regional.en = s.regional[""]), s.setDefaults(o));
                            }),
                            (t.locale = d),
                            (t.getMomentLocaleData = p),
                            d("en", s.englishDefaults);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(4);
                        (t.globalDefaults = {
                            titleRangeSeparator: " – ",
                            monthYearFormat: "MMMM YYYY",
                            defaultTimedEventDuration: "02:00:00",
                            defaultAllDayEventDuration: { days: 1 },
                            forceEventDuration: !1,
                            nextDayThreshold: "09:00:00",
                            columnHeader: !0,
                            defaultView: "month",
                            aspectRatio: 1.35,
                            header: { left: "title", center: "", right: "today prev,next" },
                            weekends: !0,
                            weekNumbers: !1,
                            weekNumberTitle: "W",
                            weekNumberCalculation: "local",
                            scrollTime: "06:00:00",
                            minTime: "00:00:00",
                            maxTime: "24:00:00",
                            showNonCurrentDates: !0,
                            lazyFetching: !0,
                            startParam: "start",
                            endParam: "end",
                            timezoneParam: "timezone",
                            timezone: !1,
                            locale: null,
                            isRTL: !1,
                            buttonText: { prev: "prev", next: "next", prevYear: "prev year", nextYear: "next year", year: "year", today: "today", month: "month", week: "week", day: "day" },
                            allDayText: "all-day",
                            agendaEventMinHeight: 0,
                            theme: !1,
                            dragOpacity: 0.75,
                            dragRevertDuration: 500,
                            dragScroll: !0,
                            unselectAuto: !0,
                            dropAccept: "*",
                            eventOrder: "title",
                            eventLimit: !1,
                            eventLimitText: "more",
                            eventLimitClick: "popover",
                            dayPopoverFormat: "LL",
                            handleWindowResize: !0,
                            windowResizeDelay: 100,
                            longPressDelay: 1e3,
                        }),
                            (t.englishDefaults = { dayPopoverFormat: "dddd, MMMM D" }),
                            (t.rtlDefaults = {
                                header: { left: "next,prev today", center: "", right: "title" },
                                buttonIcons: { prev: "right-single-arrow", next: "left-single-arrow", prevYear: "right-double-arrow", nextYear: "left-double-arrow" },
                                themeButtonIcons: { prev: "circle-triangle-e", next: "circle-triangle-w", nextYear: "seek-prev", prevYear: "seek-next" },
                            });
                        var o = ["header", "footer", "buttonText", "buttonIcons", "themeButtonIcons"];
                        t.mergeOptions = function (e) {
                            return i.mergeProps(e, o);
                        };
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(4),
                            r = (function () {
                                function e() {}
                                return (
                                    (e.extend = function (e) {
                                        var t = (function (e) {
                                            function t() {
                                                return (null !== e && e.apply(this, arguments)) || this;
                                            }
                                            return i.__extends(t, e), t;
                                        })(this);
                                        return o.copyOwnProps(e, t.prototype), t;
                                    }),
                                    (e.mixin = function (e) {
                                        o.copyOwnProps(e, this.prototype);
                                    }),
                                    e
                                );
                            })();
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(208),
                            r = (function () {
                                function e(e) {
                                    (this.source = e), (this.className = []), (this.miscProps = {});
                                }
                                return (
                                    (e.parse = function (e, t) {
                                        var n = new this(t);
                                        return !!n.applyProps(e) && n;
                                    }),
                                    (e.normalizeId = function (e) {
                                        return String(e);
                                    }),
                                    (e.generateId = function () {
                                        return "_fc" + e.uuid++;
                                    }),
                                    (e.prototype.clone = function () {
                                        var t = new this.constructor(this.source);
                                        return (t.id = this.id), (t.rawId = this.rawId), (t.uid = this.uid), e.copyVerbatimStandardProps(this, t), (t.className = this.className.slice()), (t.miscProps = i.extend({}, this.miscProps)), t;
                                    }),
                                    (e.prototype.hasInverseRendering = function () {
                                        return "inverse-background" === this.getRendering();
                                    }),
                                    (e.prototype.hasBgRendering = function () {
                                        var e = this.getRendering();
                                        return "inverse-background" === e || "background" === e;
                                    }),
                                    (e.prototype.getRendering = function () {
                                        return null != this.rendering ? this.rendering : this.source.rendering;
                                    }),
                                    (e.prototype.getConstraint = function () {
                                        return null != this.constraint ? this.constraint : null != this.source.constraint ? this.source.constraint : this.source.calendar.opt("eventConstraint");
                                    }),
                                    (e.prototype.getOverlap = function () {
                                        return null != this.overlap ? this.overlap : null != this.source.overlap ? this.source.overlap : this.source.calendar.opt("eventOverlap");
                                    }),
                                    (e.prototype.isStartExplicitlyEditable = function () {
                                        return null != this.startEditable ? this.startEditable : this.source.startEditable;
                                    }),
                                    (e.prototype.isDurationExplicitlyEditable = function () {
                                        return null != this.durationEditable ? this.durationEditable : this.source.durationEditable;
                                    }),
                                    (e.prototype.isExplicitlyEditable = function () {
                                        return null != this.editable ? this.editable : this.source.editable;
                                    }),
                                    (e.prototype.toLegacy = function () {
                                        var t = i.extend({}, this.miscProps);
                                        return (
                                            (t._id = this.uid),
                                            (t.source = this.source),
                                            (t.className = this.className.slice()),
                                            (t.allDay = this.isAllDay()),
                                            null != this.rawId && (t.id = this.rawId),
                                            e.copyVerbatimStandardProps(this, t),
                                            t
                                        );
                                    }),
                                    (e.prototype.applyManualStandardProps = function (t) {
                                        return (
                                            null != t.id ? (this.id = e.normalizeId((this.rawId = t.id))) : (this.id = e.generateId()),
                                            null != t._id ? (this.uid = String(t._id)) : (this.uid = e.generateId()),
                                            i.isArray(t.className) && (this.className = t.className),
                                            "string" == typeof t.className && (this.className = t.className.split(/\s+/)),
                                            !0
                                        );
                                    }),
                                    (e.prototype.applyMiscProps = function (e) {
                                        i.extend(this.miscProps, e);
                                    }),
                                    (e.uuid = 0),
                                    (e.defineStandardProps = o.default.defineStandardProps),
                                    (e.copyVerbatimStandardProps = o.default.copyVerbatimStandardProps),
                                    e
                                );
                            })();
                        (t.default = r),
                            o.default.mixInto(r),
                            r.defineStandardProps({
                                _id: !1,
                                id: !1,
                                className: !1,
                                source: !1,
                                title: !0,
                                url: !0,
                                rendering: !0,
                                constraint: !0,
                                overlap: !0,
                                editable: !0,
                                startEditable: !0,
                                durationEditable: !0,
                                color: !0,
                                backgroundColor: !0,
                                borderColor: !0,
                                textColor: !0,
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(211),
                            o = n(36),
                            r = n(12);
                        (t.eventDefsToEventInstances = function (e, t) {
                            var n,
                                i = [];
                            for (n = 0; n < e.length; n++) i.push.apply(i, e[n].buildInstances(t));
                            return i;
                        }),
                            (t.eventInstanceToEventRange = function (e) {
                                return new i.default(e.dateProfile.unzonedRange, e.def, e);
                            }),
                            (t.eventRangeToEventFootprint = function (e) {
                                return new o.default(new r.default(e.unzonedRange, e.eventDef.isAllDay()), e.eventDef, e.eventInstance);
                            }),
                            (t.eventInstanceToUnzonedRange = function (e) {
                                return e.dateProfile.unzonedRange;
                            }),
                            (t.eventFootprintToComponentFootprint = function (e) {
                                return e.componentFootprint;
                            });
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var n = (function () {
                            function e(e, t, n) {
                                (this.componentFootprint = e), (this.eventDef = t), n && (this.eventInstance = n);
                            }
                            return (
                                (e.prototype.getEventLegacy = function () {
                                    return (this.eventInstance || this.eventDef).toLegacy();
                                }),
                                e
                            );
                        })();
                        t.default = n;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(4),
                            o = n(17),
                            r = n(34),
                            s = n(50),
                            a = n(13),
                            l = (function () {
                                function e() {}
                                return (
                                    (e.createFromRawProps = function (t, n, a) {
                                        var l,
                                            c,
                                            u,
                                            d,
                                            p = t.def,
                                            h = {},
                                            f = {},
                                            m = {},
                                            g = {},
                                            v = null,
                                            y = null;
                                        for (l in n) o.default.isStandardProp(l) ? (h[l] = n[l]) : p.isStandardProp(l) ? (f[l] = n[l]) : p.miscProps[l] !== n[l] && (m[l] = n[l]);
                                        return (
                                            (c = o.default.parse(h, p.source)) && (u = s.default.createFromDiff(t.dateProfile, c, a)),
                                            f.id !== p.id && (v = f.id),
                                            i.isArraysEqual(f.className, p.className) || (y = f.className),
                                            r.default.copyVerbatimStandardProps(f, g),
                                            ((d = new e()).eventDefId = v),
                                            (d.className = y),
                                            (d.verbatimStandardProps = g),
                                            (d.miscProps = m),
                                            u && (d.dateMutation = u),
                                            d
                                        );
                                    }),
                                    (e.prototype.mutateSingle = function (e) {
                                        var t;
                                        return (
                                            this.dateMutation && ((t = e.dateProfile), (e.dateProfile = this.dateMutation.buildNewDateProfile(t, e.source.calendar))),
                                            null != this.eventDefId && (e.id = r.default.normalizeId((e.rawId = this.eventDefId))),
                                            this.className && (e.className = this.className),
                                            this.verbatimStandardProps && a.default.copyVerbatimStandardProps(this.verbatimStandardProps, e),
                                            this.miscProps && e.applyMiscProps(this.miscProps),
                                            t
                                                ? function () {
                                                      e.dateProfile = t;
                                                  }
                                                : function () {}
                                        );
                                    }),
                                    (e.prototype.setDateMutation = function (e) {
                                        e && !e.isEmpty() ? (this.dateMutation = e) : (this.dateMutation = null);
                                    }),
                                    (e.prototype.isEmpty = function () {
                                        return !this.dateMutation;
                                    }),
                                    e
                                );
                            })();
                        t.default = l;
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 }),
                            (t.default = {
                                sourceClasses: [],
                                registerClass: function (e) {
                                    this.sourceClasses.unshift(e);
                                },
                                parse: function (e, t) {
                                    var n,
                                        i,
                                        o = this.sourceClasses;
                                    for (n = 0; n < o.length; n++) if ((i = o[n].parse(e, t))) return i;
                                },
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(4),
                            s = (function (e) {
                                function t(t) {
                                    var n = e.call(this) || this;
                                    return (t = t || {}), (n.overflowX = t.overflowX || t.overflow || "auto"), (n.overflowY = t.overflowY || t.overflow || "auto"), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.render = function () {
                                        (this.el = this.renderEl()), this.applyOverflow();
                                    }),
                                    (t.prototype.renderEl = function () {
                                        return (this.scrollEl = o('<div class="fc-scroller"></div>'));
                                    }),
                                    (t.prototype.clear = function () {
                                        this.setHeight("auto"), this.applyOverflow();
                                    }),
                                    (t.prototype.destroy = function () {
                                        this.el.remove();
                                    }),
                                    (t.prototype.applyOverflow = function () {
                                        this.scrollEl.css({ "overflow-x": this.overflowX, "overflow-y": this.overflowY });
                                    }),
                                    (t.prototype.lockOverflow = function (e) {
                                        var t = this.overflowX,
                                            n = this.overflowY;
                                        (e = e || this.getScrollbarWidths()),
                                            "auto" === t && (t = e.top || e.bottom || this.scrollEl[0].scrollWidth - 1 > this.scrollEl[0].clientWidth ? "scroll" : "hidden"),
                                            "auto" === n && (n = e.left || e.right || this.scrollEl[0].scrollHeight - 1 > this.scrollEl[0].clientHeight ? "scroll" : "hidden"),
                                            this.scrollEl.css({ "overflow-x": t, "overflow-y": n });
                                    }),
                                    (t.prototype.setHeight = function (e) {
                                        this.scrollEl.height(e);
                                    }),
                                    (t.prototype.getScrollTop = function () {
                                        return this.scrollEl.scrollTop();
                                    }),
                                    (t.prototype.setScrollTop = function (e) {
                                        this.scrollEl.scrollTop(e);
                                    }),
                                    (t.prototype.getClientWidth = function () {
                                        return this.scrollEl[0].clientWidth;
                                    }),
                                    (t.prototype.getClientHeight = function () {
                                        return this.scrollEl[0].clientHeight;
                                    }),
                                    (t.prototype.getScrollbarWidths = function () {
                                        return r.getScrollbarWidths(this.scrollEl);
                                    }),
                                    t
                                );
                            })(n(33).default);
                        t.default = s;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(4),
                            s = n(219),
                            a = n(21),
                            l = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return (
                                        (i.segSelector = ".fc-event-container > *"),
                                        i.dateSelectingClass && (i.dateClicking = new i.dateClickingClass(i)),
                                        i.dateSelectingClass && (i.dateSelecting = new i.dateSelectingClass(i)),
                                        i.eventPointingClass && (i.eventPointing = new i.eventPointingClass(i)),
                                        i.eventDraggingClass && i.eventPointing && (i.eventDragging = new i.eventDraggingClass(i, i.eventPointing)),
                                        i.eventResizingClass && i.eventPointing && (i.eventResizing = new i.eventResizingClass(i, i.eventPointing)),
                                        i.externalDroppingClass && (i.externalDropping = new i.externalDroppingClass(i)),
                                        i
                                    );
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.setElement = function (t) {
                                        e.prototype.setElement.call(this, t), this.dateClicking && this.dateClicking.bindToEl(t), this.dateSelecting && this.dateSelecting.bindToEl(t), this.bindAllSegHandlersToEl(t);
                                    }),
                                    (t.prototype.removeElement = function () {
                                        this.endInteractions(), e.prototype.removeElement.call(this);
                                    }),
                                    (t.prototype.executeEventUnrender = function () {
                                        this.endInteractions(), e.prototype.executeEventUnrender.call(this);
                                    }),
                                    (t.prototype.bindGlobalHandlers = function () {
                                        e.prototype.bindGlobalHandlers.call(this), this.externalDropping && this.externalDropping.bindToDocument();
                                    }),
                                    (t.prototype.unbindGlobalHandlers = function () {
                                        e.prototype.unbindGlobalHandlers.call(this), this.externalDropping && this.externalDropping.unbindFromDocument();
                                    }),
                                    (t.prototype.bindDateHandlerToEl = function (e, t, n) {
                                        var i = this;
                                        this.el.on(t, function (e) {
                                            if (!o(e.target).is(i.segSelector + ":not(.fc-helper)," + i.segSelector + ":not(.fc-helper) *,.fc-more,a[data-goto]")) return n.call(i, e);
                                        });
                                    }),
                                    (t.prototype.bindAllSegHandlersToEl = function (e) {
                                        [this.eventPointing, this.eventDragging, this.eventResizing].forEach(function (t) {
                                            t && t.bindToEl(e);
                                        });
                                    }),
                                    (t.prototype.bindSegHandlerToEl = function (e, t, n) {
                                        var i = this;
                                        e.on(t, this.segSelector, function (e) {
                                            var t = o(e.currentTarget);
                                            if (!t.is(".fc-helper")) {
                                                var r = t.data("fc-seg");
                                                if (r && !i.shouldIgnoreEventPointing()) return n.call(i, r, e);
                                            }
                                        });
                                    }),
                                    (t.prototype.shouldIgnoreMouse = function () {
                                        return a.default.get().shouldIgnoreMouse();
                                    }),
                                    (t.prototype.shouldIgnoreTouch = function () {
                                        var e = this._getView();
                                        return e.isSelected || e.selectedEvent;
                                    }),
                                    (t.prototype.shouldIgnoreEventPointing = function () {
                                        return (this.eventDragging && this.eventDragging.isDragging) || (this.eventResizing && this.eventResizing.isResizing);
                                    }),
                                    (t.prototype.canStartSelection = function (e, t) {
                                        return r.getEvIsTouch(t) && !this.canStartResize(e, t) && (this.isEventDefDraggable(e.footprint.eventDef) || this.isEventDefResizable(e.footprint.eventDef));
                                    }),
                                    (t.prototype.canStartDrag = function (e, t) {
                                        return !this.canStartResize(e, t) && this.isEventDefDraggable(e.footprint.eventDef);
                                    }),
                                    (t.prototype.canStartResize = function (e, t) {
                                        var n = this._getView(),
                                            i = e.footprint.eventDef;
                                        return (!r.getEvIsTouch(t) || n.isEventDefSelected(i)) && this.isEventDefResizable(i) && o(t.target).is(".fc-resizer");
                                    }),
                                    (t.prototype.endInteractions = function () {
                                        [this.dateClicking, this.dateSelecting, this.eventPointing, this.eventDragging, this.eventResizing].forEach(function (e) {
                                            e && e.end();
                                        });
                                    }),
                                    (t.prototype.isEventDefDraggable = function (e) {
                                        return this.isEventDefStartEditable(e);
                                    }),
                                    (t.prototype.isEventDefStartEditable = function (e) {
                                        var t = e.isStartExplicitlyEditable();
                                        return null == t && null == (t = this.opt("eventStartEditable")) && (t = this.isEventDefGenerallyEditable(e)), t;
                                    }),
                                    (t.prototype.isEventDefGenerallyEditable = function (e) {
                                        var t = e.isExplicitlyEditable();
                                        return null == t && (t = this.opt("editable")), t;
                                    }),
                                    (t.prototype.isEventDefResizableFromStart = function (e) {
                                        return this.opt("eventResizableFromStart") && this.isEventDefResizable(e);
                                    }),
                                    (t.prototype.isEventDefResizableFromEnd = function (e) {
                                        return this.isEventDefResizable(e);
                                    }),
                                    (t.prototype.isEventDefResizable = function (e) {
                                        var t = e.isDurationExplicitlyEditable();
                                        return null == t && null == (t = this.opt("eventDurationEditable")) && (t = this.isEventDefGenerallyEditable(e)), t;
                                    }),
                                    (t.prototype.diffDates = function (e, t) {
                                        return this.largeUnit ? r.diffByUnit(e, t, this.largeUnit) : r.diffDayTime(e, t);
                                    }),
                                    (t.prototype.isEventInstanceGroupAllowed = function (e) {
                                        var t,
                                            n = this._getView(),
                                            i = this.dateProfile,
                                            o = this.eventRangesToEventFootprints(e.getAllEventRanges());
                                        for (t = 0; t < o.length; t++) if (!i.validUnzonedRange.containsRange(o[t].componentFootprint.unzonedRange)) return !1;
                                        return n.calendar.constraints.isEventInstanceGroupAllowed(e);
                                    }),
                                    (t.prototype.isExternalInstanceGroupAllowed = function (e) {
                                        var t,
                                            n = this._getView(),
                                            i = this.dateProfile,
                                            o = this.eventRangesToEventFootprints(e.getAllEventRanges());
                                        for (t = 0; t < o.length; t++) if (!i.validUnzonedRange.containsRange(o[t].componentFootprint.unzonedRange)) return !1;
                                        for (t = 0; t < o.length; t++) if (!n.calendar.constraints.isSelectionFootprintAllowed(o[t].componentFootprint)) return !1;
                                        return !0;
                                    }),
                                    t
                                );
                            })(s.default);
                        t.default = l;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(0),
                            s = n(4),
                            a = n(218),
                            l = n(221),
                            c = n(40),
                            u = n(21),
                            d = n(5),
                            p = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, null, n.options) || this;
                                    return (
                                        (i.batchRenderDepth = 0),
                                        (i.isSelected = !1),
                                        (i.calendar = t),
                                        (i.viewSpec = n),
                                        (i.type = n.type),
                                        (i.name = i.type),
                                        i.initRenderQueue(),
                                        i.initHiddenDays(),
                                        (i.dateProfileGenerator = new i.dateProfileGeneratorClass(i)),
                                        i.bindBaseRenderHandlers(),
                                        (i.eventOrderSpecs = s.parseFieldSpecs(i.opt("eventOrder"))),
                                        i.initialize && i.initialize(),
                                        i
                                    );
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype._getView = function () {
                                        return this;
                                    }),
                                    (t.prototype.opt = function (e) {
                                        return this.options[e];
                                    }),
                                    (t.prototype.initRenderQueue = function () {
                                        (this.renderQueue = new a.default({ event: this.opt("eventRenderWait") })),
                                            this.renderQueue.on("start", this.onRenderQueueStart.bind(this)),
                                            this.renderQueue.on("stop", this.onRenderQueueStop.bind(this)),
                                            this.on("before:change", this.startBatchRender),
                                            this.on("change", this.stopBatchRender);
                                    }),
                                    (t.prototype.onRenderQueueStart = function () {
                                        this.calendar.freezeContentHeight(), this.addScroll(this.queryScroll());
                                    }),
                                    (t.prototype.onRenderQueueStop = function () {
                                        this.calendar.updateViewSize() && this.popScroll(), this.calendar.thawContentHeight();
                                    }),
                                    (t.prototype.startBatchRender = function () {
                                        this.batchRenderDepth++ || this.renderQueue.pause();
                                    }),
                                    (t.prototype.stopBatchRender = function () {
                                        --this.batchRenderDepth || this.renderQueue.resume();
                                    }),
                                    (t.prototype.requestRender = function (e, t, n) {
                                        this.renderQueue.queue(e, t, n);
                                    }),
                                    (t.prototype.whenSizeUpdated = function (e) {
                                        this.renderQueue.isRunning ? this.renderQueue.one("stop", e.bind(this)) : e.call(this);
                                    }),
                                    (t.prototype.computeTitle = function (e) {
                                        var t;
                                        return (
                                            (t = /^(year|month)$/.test(e.currentRangeUnit) ? e.currentUnzonedRange : e.activeUnzonedRange),
                                            this.formatRange(
                                                { start: this.calendar.msToMoment(t.startMs, e.isRangeAllDay), end: this.calendar.msToMoment(t.endMs, e.isRangeAllDay) },
                                                e.isRangeAllDay,
                                                this.opt("titleFormat") || this.computeTitleFormat(e),
                                                this.opt("titleRangeSeparator")
                                            )
                                        );
                                    }),
                                    (t.prototype.computeTitleFormat = function (e) {
                                        var t = e.currentRangeUnit;
                                        return "year" === t ? "YYYY" : "month" === t ? this.opt("monthYearFormat") : e.currentUnzonedRange.as("days") > 1 ? "ll" : "LL";
                                    }),
                                    (t.prototype.setDate = function (e) {
                                        var t = this.get("dateProfile"),
                                            n = this.dateProfileGenerator.build(e, void 0, !0);
                                        (t && t.activeUnzonedRange.equals(n.activeUnzonedRange)) || this.set("dateProfile", n);
                                    }),
                                    (t.prototype.unsetDate = function () {
                                        this.unset("dateProfile");
                                    }),
                                    (t.prototype.fetchInitialEvents = function (e) {
                                        var t = this.calendar,
                                            n = e.isRangeAllDay && !this.usesMinMaxTime;
                                        return t.requestEvents(t.msToMoment(e.activeUnzonedRange.startMs, n), t.msToMoment(e.activeUnzonedRange.endMs, n));
                                    }),
                                    (t.prototype.bindEventChanges = function () {
                                        this.listenTo(this.calendar, "eventsReset", this.resetEvents);
                                    }),
                                    (t.prototype.unbindEventChanges = function () {
                                        this.stopListeningTo(this.calendar, "eventsReset");
                                    }),
                                    (t.prototype.setEvents = function (e) {
                                        this.set("currentEvents", e), this.set("hasEvents", !0);
                                    }),
                                    (t.prototype.unsetEvents = function () {
                                        this.unset("currentEvents"), this.unset("hasEvents");
                                    }),
                                    (t.prototype.resetEvents = function (e) {
                                        this.startBatchRender(), this.unsetEvents(), this.setEvents(e), this.stopBatchRender();
                                    }),
                                    (t.prototype.requestDateRender = function (e) {
                                        var t = this;
                                        this.requestRender(
                                            function () {
                                                t.executeDateRender(e);
                                            },
                                            "date",
                                            "init"
                                        );
                                    }),
                                    (t.prototype.requestDateUnrender = function () {
                                        var e = this;
                                        this.requestRender(
                                            function () {
                                                e.executeDateUnrender();
                                            },
                                            "date",
                                            "destroy"
                                        );
                                    }),
                                    (t.prototype.executeDateRender = function (t) {
                                        e.prototype.executeDateRender.call(this, t), this.render && this.render(), this.trigger("datesRendered"), this.addScroll({ isDateInit: !0 }), this.startNowIndicator();
                                    }),
                                    (t.prototype.executeDateUnrender = function () {
                                        this.unselect(), this.stopNowIndicator(), this.trigger("before:datesUnrendered"), this.destroy && this.destroy(), e.prototype.executeDateUnrender.call(this);
                                    }),
                                    (t.prototype.bindBaseRenderHandlers = function () {
                                        var e = this;
                                        this.on("datesRendered", function () {
                                            e.whenSizeUpdated(e.triggerViewRender);
                                        }),
                                            this.on("before:datesUnrendered", function () {
                                                e.triggerViewDestroy();
                                            });
                                    }),
                                    (t.prototype.triggerViewRender = function () {
                                        this.publiclyTrigger("viewRender", { context: this, args: [this, this.el] });
                                    }),
                                    (t.prototype.triggerViewDestroy = function () {
                                        this.publiclyTrigger("viewDestroy", { context: this, args: [this, this.el] });
                                    }),
                                    (t.prototype.requestEventsRender = function (e) {
                                        var t = this;
                                        this.requestRender(
                                            function () {
                                                t.executeEventRender(e), t.whenSizeUpdated(t.triggerAfterEventsRendered);
                                            },
                                            "event",
                                            "init"
                                        );
                                    }),
                                    (t.prototype.requestEventsUnrender = function () {
                                        var e = this;
                                        this.requestRender(
                                            function () {
                                                e.triggerBeforeEventsDestroyed(), e.executeEventUnrender();
                                            },
                                            "event",
                                            "destroy"
                                        );
                                    }),
                                    (t.prototype.requestBusinessHoursRender = function (e) {
                                        var t = this;
                                        this.requestRender(
                                            function () {
                                                t.renderBusinessHours(e);
                                            },
                                            "businessHours",
                                            "init"
                                        );
                                    }),
                                    (t.prototype.requestBusinessHoursUnrender = function () {
                                        var e = this;
                                        this.requestRender(
                                            function () {
                                                e.unrenderBusinessHours();
                                            },
                                            "businessHours",
                                            "destroy"
                                        );
                                    }),
                                    (t.prototype.bindGlobalHandlers = function () {
                                        e.prototype.bindGlobalHandlers.call(this), this.listenTo(u.default.get(), { touchstart: this.processUnselect, mousedown: this.handleDocumentMousedown });
                                    }),
                                    (t.prototype.unbindGlobalHandlers = function () {
                                        e.prototype.unbindGlobalHandlers.call(this), this.stopListeningTo(u.default.get());
                                    }),
                                    (t.prototype.startNowIndicator = function () {
                                        var e,
                                            t,
                                            n,
                                            i = this;
                                        this.opt("nowIndicator") &&
                                            (e = this.getNowIndicatorUnit()) &&
                                            ((t = s.proxy(this, "updateNowIndicator")),
                                            (this.initialNowDate = this.calendar.getNow()),
                                            (this.initialNowQueriedMs = new Date().valueOf()),
                                            (n = this.initialNowDate.clone().startOf(e).add(1, e).valueOf() - this.initialNowDate.valueOf()),
                                            (this.nowIndicatorTimeoutID = setTimeout(function () {
                                                (i.nowIndicatorTimeoutID = null), t(), (n = +r.duration(1, e)), (n = Math.max(100, n)), (i.nowIndicatorIntervalID = setInterval(t, n));
                                            }, n)));
                                    }),
                                    (t.prototype.updateNowIndicator = function () {
                                        this.isDatesRendered &&
                                            this.initialNowDate &&
                                            (this.unrenderNowIndicator(), this.renderNowIndicator(this.initialNowDate.clone().add(new Date().valueOf() - this.initialNowQueriedMs)), (this.isNowIndicatorRendered = !0));
                                    }),
                                    (t.prototype.stopNowIndicator = function () {
                                        this.isNowIndicatorRendered &&
                                            (this.nowIndicatorTimeoutID && (clearTimeout(this.nowIndicatorTimeoutID), (this.nowIndicatorTimeoutID = null)),
                                            this.nowIndicatorIntervalID && (clearInterval(this.nowIndicatorIntervalID), (this.nowIndicatorIntervalID = null)),
                                            this.unrenderNowIndicator(),
                                            (this.isNowIndicatorRendered = !1));
                                    }),
                                    (t.prototype.updateSize = function (t, n, i) {
                                        this.setHeight ? this.setHeight(t, n) : e.prototype.updateSize.call(this, t, n, i), this.updateNowIndicator();
                                    }),
                                    (t.prototype.addScroll = function (e) {
                                        var t = this.queuedScroll || (this.queuedScroll = {});
                                        o.extend(t, e);
                                    }),
                                    (t.prototype.popScroll = function () {
                                        this.applyQueuedScroll(), (this.queuedScroll = null);
                                    }),
                                    (t.prototype.applyQueuedScroll = function () {
                                        this.queuedScroll && this.applyScroll(this.queuedScroll);
                                    }),
                                    (t.prototype.queryScroll = function () {
                                        var e = {};
                                        return this.isDatesRendered && o.extend(e, this.queryDateScroll()), e;
                                    }),
                                    (t.prototype.applyScroll = function (e) {
                                        e.isDateInit && this.isDatesRendered && o.extend(e, this.computeInitialDateScroll()), this.isDatesRendered && this.applyDateScroll(e);
                                    }),
                                    (t.prototype.computeInitialDateScroll = function () {
                                        return {};
                                    }),
                                    (t.prototype.queryDateScroll = function () {
                                        return {};
                                    }),
                                    (t.prototype.applyDateScroll = function (e) {}),
                                    (t.prototype.reportEventDrop = function (e, t, n, i) {
                                        var o = this.calendar.eventManager.mutateEventsWithId(e.def.id, t),
                                            s = t.dateMutation;
                                        s && (e.dateProfile = s.buildNewDateProfile(e.dateProfile, this.calendar)), this.triggerEventDrop(e, (s && s.dateDelta) || r.duration(), o, n, i);
                                    }),
                                    (t.prototype.triggerEventDrop = function (e, t, n, i, o) {
                                        this.publiclyTrigger("eventDrop", { context: i[0], args: [e.toLegacy(), t, n, o, {}, this] });
                                    }),
                                    (t.prototype.reportExternalDrop = function (e, t, n, i, o, r) {
                                        t && this.calendar.eventManager.addEventDef(e, n), this.triggerExternalDrop(e, t, i, o, r);
                                    }),
                                    (t.prototype.triggerExternalDrop = function (e, t, n, i, o) {
                                        this.publiclyTrigger("drop", { context: n[0], args: [e.dateProfile.start.clone(), i, o, this] }),
                                            t && this.publiclyTrigger("eventReceive", { context: this, args: [e.buildInstance().toLegacy(), this] });
                                    }),
                                    (t.prototype.reportEventResize = function (e, t, n, i) {
                                        var o = this.calendar.eventManager.mutateEventsWithId(e.def.id, t);
                                        (e.dateProfile = t.dateMutation.buildNewDateProfile(e.dateProfile, this.calendar)), this.triggerEventResize(e, t.dateMutation.endDelta, o, n, i);
                                    }),
                                    (t.prototype.triggerEventResize = function (e, t, n, i, o) {
                                        this.publiclyTrigger("eventResize", { context: i[0], args: [e.toLegacy(), t, n, o, {}, this] });
                                    }),
                                    (t.prototype.select = function (e, t) {
                                        this.unselect(t), this.renderSelectionFootprint(e), this.reportSelection(e, t);
                                    }),
                                    (t.prototype.renderSelectionFootprint = function (t) {
                                        this.renderSelection ? this.renderSelection(t.toLegacy(this.calendar)) : e.prototype.renderSelectionFootprint.call(this, t);
                                    }),
                                    (t.prototype.reportSelection = function (e, t) {
                                        (this.isSelected = !0), this.triggerSelect(e, t);
                                    }),
                                    (t.prototype.triggerSelect = function (e, t) {
                                        var n = this.calendar.footprintToDateProfile(e);
                                        this.publiclyTrigger("select", { context: this, args: [n.start, n.end, t, this] });
                                    }),
                                    (t.prototype.unselect = function (e) {
                                        this.isSelected && ((this.isSelected = !1), this.destroySelection && this.destroySelection(), this.unrenderSelection(), this.publiclyTrigger("unselect", { context: this, args: [e, this] }));
                                    }),
                                    (t.prototype.selectEventInstance = function (e) {
                                        (this.selectedEventInstance && this.selectedEventInstance === e) ||
                                            (this.unselectEventInstance(),
                                            this.getEventSegs().forEach(function (t) {
                                                t.footprint.eventInstance === e && t.el && t.el.addClass("fc-selected");
                                            }),
                                            (this.selectedEventInstance = e));
                                    }),
                                    (t.prototype.unselectEventInstance = function () {
                                        this.selectedEventInstance &&
                                            (this.getEventSegs().forEach(function (e) {
                                                e.el && e.el.removeClass("fc-selected");
                                            }),
                                            (this.selectedEventInstance = null));
                                    }),
                                    (t.prototype.isEventDefSelected = function (e) {
                                        return this.selectedEventInstance && this.selectedEventInstance.def.id === e.id;
                                    }),
                                    (t.prototype.handleDocumentMousedown = function (e) {
                                        s.isPrimaryMouseButton(e) && this.processUnselect(e);
                                    }),
                                    (t.prototype.processUnselect = function (e) {
                                        this.processRangeUnselect(e), this.processEventUnselect(e);
                                    }),
                                    (t.prototype.processRangeUnselect = function (e) {
                                        var t;
                                        this.isSelected && this.opt("unselectAuto") && (((t = this.opt("unselectCancel")) && o(e.target).closest(t).length) || this.unselect(e));
                                    }),
                                    (t.prototype.processEventUnselect = function (e) {
                                        this.selectedEventInstance && (o(e.target).closest(".fc-selected").length || this.unselectEventInstance());
                                    }),
                                    (t.prototype.triggerBaseRendered = function () {
                                        this.publiclyTrigger("viewRender", { context: this, args: [this, this.el] });
                                    }),
                                    (t.prototype.triggerBaseUnrendered = function () {
                                        this.publiclyTrigger("viewDestroy", { context: this, args: [this, this.el] });
                                    }),
                                    (t.prototype.triggerDayClick = function (e, t, n) {
                                        var i = this.calendar.footprintToDateProfile(e);
                                        this.publiclyTrigger("dayClick", { context: t, args: [i.start, n, this] });
                                    }),
                                    (t.prototype.isDateInOtherMonth = function (e, t) {
                                        return !1;
                                    }),
                                    (t.prototype.getUnzonedRangeOption = function (e) {
                                        var t = this.opt(e);
                                        if (("function" == typeof t && (t = t.apply(null, Array.prototype.slice.call(arguments, 1))), t)) return this.calendar.parseUnzonedRange(t);
                                    }),
                                    (t.prototype.initHiddenDays = function () {
                                        var e,
                                            t = this.opt("hiddenDays") || [],
                                            n = [],
                                            i = 0;
                                        for (!1 === this.opt("weekends") && t.push(0, 6), e = 0; e < 7; e++) (n[e] = -1 !== o.inArray(e, t)) || i++;
                                        if (!i) throw new Error("invalid hiddenDays");
                                        this.isHiddenDayHash = n;
                                    }),
                                    (t.prototype.trimHiddenDays = function (e) {
                                        var t = e.getStart(),
                                            n = e.getEnd();
                                        return t && (t = this.skipHiddenDays(t)), n && (n = this.skipHiddenDays(n, -1, !0)), null === t || null === n || t < n ? new d.default(t, n) : null;
                                    }),
                                    (t.prototype.isHiddenDay = function (e) {
                                        return r.isMoment(e) && (e = e.day()), this.isHiddenDayHash[e];
                                    }),
                                    (t.prototype.skipHiddenDays = function (e, t, n) {
                                        void 0 === t && (t = 1), void 0 === n && (n = !1);
                                        for (var i = e.clone(); this.isHiddenDayHash[(i.day() + (n ? t : 0) + 7) % 7]; ) i.add(t, "days");
                                        return i;
                                    }),
                                    t
                                );
                            })(c.default);
                        (t.default = p),
                            (p.prototype.usesMinMaxTime = !1),
                            (p.prototype.dateProfileGeneratorClass = l.default),
                            p.watch(
                                "displayingDates",
                                ["isInDom", "dateProfile"],
                                function (e) {
                                    this.requestDateRender(e.dateProfile);
                                },
                                function () {
                                    this.requestDateUnrender();
                                }
                            ),
                            p.watch(
                                "displayingBusinessHours",
                                ["displayingDates", "businessHourGenerator"],
                                function (e) {
                                    this.requestBusinessHoursRender(e.businessHourGenerator);
                                },
                                function () {
                                    this.requestBusinessHoursUnrender();
                                }
                            ),
                            p.watch("initialEvents", ["dateProfile"], function (e) {
                                return this.fetchInitialEvents(e.dateProfile);
                            }),
                            p.watch(
                                "bindingEvents",
                                ["initialEvents"],
                                function (e) {
                                    this.setEvents(e.initialEvents), this.bindEventChanges();
                                },
                                function () {
                                    this.unbindEventChanges(), this.unsetEvents();
                                }
                            ),
                            p.watch(
                                "displayingEvents",
                                ["displayingDates", "hasEvents"],
                                function () {
                                    this.requestEventsRender(this.get("currentEvents"));
                                },
                                function () {
                                    this.requestEventsUnrender();
                                }
                            ),
                            p.watch("title", ["dateProfile"], function (e) {
                                return (this.title = this.computeTitle(e.dateProfile));
                            }),
                            p.watch("legacyDateProps", ["dateProfile"], function (e) {
                                var t = this.calendar,
                                    n = e.dateProfile;
                                (this.start = t.msToMoment(n.activeUnzonedRange.startMs, n.isRangeAllDay)),
                                    (this.end = t.msToMoment(n.activeUnzonedRange.endMs, n.isRangeAllDay)),
                                    (this.intervalStart = t.msToMoment(n.currentUnzonedRange.startMs, n.isRangeAllDay)),
                                    (this.intervalEnd = t.msToMoment(n.currentUnzonedRange.endMs, n.isRangeAllDay));
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(4),
                            r = (function () {
                                function e(e, t) {
                                    (this.view = e._getView()), (this.component = e), (this.fillRenderer = t);
                                }
                                return (
                                    (e.prototype.opt = function (e) {
                                        return this.view.opt(e);
                                    }),
                                    (e.prototype.rangeUpdated = function () {
                                        var e, t;
                                        (this.eventTimeFormat = this.opt("eventTimeFormat") || this.opt("timeFormat") || this.computeEventTimeFormat()),
                                            null == (e = this.opt("displayEventTime")) && (e = this.computeDisplayEventTime()),
                                            null == (t = this.opt("displayEventEnd")) && (t = this.computeDisplayEventEnd()),
                                            (this.displayEventTime = e),
                                            (this.displayEventEnd = t);
                                    }),
                                    (e.prototype.render = function (e) {
                                        var t,
                                            n,
                                            i,
                                            o = this.component._getDateProfile(),
                                            r = [],
                                            s = [];
                                        for (t in e) (i = (n = e[t]).sliceRenderRanges(o.activeUnzonedRange)), n.getEventDef().hasBgRendering() ? r.push.apply(r, i) : s.push.apply(s, i);
                                        this.renderBgRanges(r), this.renderFgRanges(s);
                                    }),
                                    (e.prototype.unrender = function () {
                                        this.unrenderBgRanges(), this.unrenderFgRanges();
                                    }),
                                    (e.prototype.renderFgRanges = function (e) {
                                        var t = this.component.eventRangesToEventFootprints(e),
                                            n = this.component.eventFootprintsToSegs(t);
                                        (n = this.renderFgSegEls(n)), !1 !== this.renderFgSegs(n) && (this.fgSegs = n);
                                    }),
                                    (e.prototype.unrenderFgRanges = function () {
                                        this.unrenderFgSegs(this.fgSegs || []), (this.fgSegs = null);
                                    }),
                                    (e.prototype.renderBgRanges = function (e) {
                                        var t = this.component.eventRangesToEventFootprints(e),
                                            n = this.component.eventFootprintsToSegs(t);
                                        !1 !== this.renderBgSegs(n) && (this.bgSegs = n);
                                    }),
                                    (e.prototype.unrenderBgRanges = function () {
                                        this.unrenderBgSegs(), (this.bgSegs = null);
                                    }),
                                    (e.prototype.getSegs = function () {
                                        return (this.bgSegs || []).concat(this.fgSegs || []);
                                    }),
                                    (e.prototype.renderFgSegs = function (e) {
                                        return !1;
                                    }),
                                    (e.prototype.unrenderFgSegs = function (e) {}),
                                    (e.prototype.renderBgSegs = function (e) {
                                        var t = this;
                                        if (!this.fillRenderer) return !1;
                                        this.fillRenderer.renderSegs("bgEvent", e, {
                                            getClasses: function (e) {
                                                return t.getBgClasses(e.footprint.eventDef);
                                            },
                                            getCss: function (e) {
                                                return { "background-color": t.getBgColor(e.footprint.eventDef) };
                                            },
                                            filterEl: function (e, n) {
                                                return t.filterEventRenderEl(e.footprint, n);
                                            },
                                        });
                                    }),
                                    (e.prototype.unrenderBgSegs = function () {
                                        this.fillRenderer && this.fillRenderer.unrender("bgEvent");
                                    }),
                                    (e.prototype.renderFgSegEls = function (e, t) {
                                        var n = this;
                                        void 0 === t && (t = !1);
                                        var o,
                                            r = this.view.hasPublicHandlers("eventRender"),
                                            s = "",
                                            a = [];
                                        if (e.length) {
                                            for (o = 0; o < e.length; o++) this.beforeFgSegHtml(e[o]), (s += this.fgSegHtml(e[o], t));
                                            i(s).each(function (t, o) {
                                                var s = e[t],
                                                    l = i(o);
                                                r && (l = n.filterEventRenderEl(s.footprint, l)), l && (l.data("fc-seg", s), (s.el = l), a.push(s));
                                            });
                                        }
                                        return a;
                                    }),
                                    (e.prototype.beforeFgSegHtml = function (e) {}),
                                    (e.prototype.fgSegHtml = function (e, t) {}),
                                    (e.prototype.getSegClasses = function (e, t, n) {
                                        var i = ["fc-event", e.isStart ? "fc-start" : "fc-not-start", e.isEnd ? "fc-end" : "fc-not-end"].concat(this.getClasses(e.footprint.eventDef));
                                        return t && i.push("fc-draggable"), n && i.push("fc-resizable"), this.view.isEventDefSelected(e.footprint.eventDef) && i.push("fc-selected"), i;
                                    }),
                                    (e.prototype.filterEventRenderEl = function (e, t) {
                                        var n = e.getEventLegacy(),
                                            o = this.view.publiclyTrigger("eventRender", { context: n, args: [n, t, this.view] });
                                        return !1 === o ? (t = null) : o && !0 !== o && (t = i(o)), t;
                                    }),
                                    (e.prototype.getTimeText = function (e, t, n) {
                                        return this._getTimeText(e.eventInstance.dateProfile.start, e.eventInstance.dateProfile.end, e.componentFootprint.isAllDay, t, n);
                                    }),
                                    (e.prototype._getTimeText = function (e, t, n, i, o) {
                                        return null == i && (i = this.eventTimeFormat), null == o && (o = this.displayEventEnd), this.displayEventTime && !n ? (o && t ? this.view.formatRange({ start: e, end: t }, !1, i) : e.format(i)) : "";
                                    }),
                                    (e.prototype.computeEventTimeFormat = function () {
                                        return this.opt("smallTimeFormat");
                                    }),
                                    (e.prototype.computeDisplayEventTime = function () {
                                        return !0;
                                    }),
                                    (e.prototype.computeDisplayEventEnd = function () {
                                        return !0;
                                    }),
                                    (e.prototype.getBgClasses = function (e) {
                                        var t = this.getClasses(e);
                                        return t.push("fc-bgevent"), t;
                                    }),
                                    (e.prototype.getClasses = function (e) {
                                        var t,
                                            n = this.getStylingObjs(e),
                                            i = [];
                                        for (t = 0; t < n.length; t++) i.push.apply(i, n[t].eventClassName || n[t].className || []);
                                        return i;
                                    }),
                                    (e.prototype.getSkinCss = function (e) {
                                        return { "background-color": this.getBgColor(e), "border-color": this.getBorderColor(e), color: this.getTextColor(e) };
                                    }),
                                    (e.prototype.getBgColor = function (e) {
                                        var t,
                                            n,
                                            i = this.getStylingObjs(e);
                                        for (t = 0; t < i.length && !n; t++) n = i[t].eventBackgroundColor || i[t].eventColor || i[t].backgroundColor || i[t].color;
                                        return n || (n = this.opt("eventBackgroundColor") || this.opt("eventColor")), n;
                                    }),
                                    (e.prototype.getBorderColor = function (e) {
                                        var t,
                                            n,
                                            i = this.getStylingObjs(e);
                                        for (t = 0; t < i.length && !n; t++) n = i[t].eventBorderColor || i[t].eventColor || i[t].borderColor || i[t].color;
                                        return n || (n = this.opt("eventBorderColor") || this.opt("eventColor")), n;
                                    }),
                                    (e.prototype.getTextColor = function (e) {
                                        var t,
                                            n,
                                            i = this.getStylingObjs(e);
                                        for (t = 0; t < i.length && !n; t++) n = i[t].eventTextColor || i[t].textColor;
                                        return n || (n = this.opt("eventTextColor")), n;
                                    }),
                                    (e.prototype.getStylingObjs = function (e) {
                                        var t = this.getFallbackStylingObjs(e);
                                        return t.unshift(e), t;
                                    }),
                                    (e.prototype.getFallbackStylingObjs = function (e) {
                                        return [e.source];
                                    }),
                                    (e.prototype.sortEventSegs = function (e) {
                                        e.sort(o.proxy(this, "compareEventSegs"));
                                    }),
                                    (e.prototype.compareEventSegs = function (e, t) {
                                        var n = e.footprint,
                                            i = t.footprint,
                                            r = n.componentFootprint,
                                            s = i.componentFootprint,
                                            a = r.unzonedRange,
                                            l = s.unzonedRange;
                                        return (
                                            a.startMs - l.startMs ||
                                            l.endMs - l.startMs - (a.endMs - a.startMs) ||
                                            s.isAllDay - r.isAllDay ||
                                            o.compareByFieldSpecs(n.eventDef, i.eventDef, this.view.eventOrderSpecs, n.eventDef.miscProps, i.eventDef.miscProps)
                                        );
                                    }),
                                    e
                                );
                            })();
                        t.default = r;
                    },
                    ,
                    ,
                    ,
                    ,
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(10);
                        function o(e) {
                            return "en" !== e.locale() ? e.clone().locale("en") : e;
                        }
                        (i.newMomentProto.format = function () {
                            return this._fullCalendar && arguments[0]
                                ? d(this, arguments[0])
                                : this._ambigTime
                                ? i.oldMomentFormat(o(this), "YYYY-MM-DD")
                                : this._ambigZone
                                ? i.oldMomentFormat(o(this), "YYYY-MM-DD[T]HH:mm:ss")
                                : this._fullCalendar
                                ? i.oldMomentFormat(o(this))
                                : i.oldMomentProto.format.apply(this, arguments);
                        }),
                            (i.newMomentProto.toISOString = function () {
                                return this._ambigTime
                                    ? i.oldMomentFormat(o(this), "YYYY-MM-DD")
                                    : this._ambigZone
                                    ? i.oldMomentFormat(o(this), "YYYY-MM-DD[T]HH:mm:ss")
                                    : this._fullCalendar
                                    ? i.oldMomentProto.toISOString.apply(o(this), arguments)
                                    : i.oldMomentProto.toISOString.apply(this, arguments);
                            });
                        var r = "\v",
                            s = "",
                            a = "",
                            l = new RegExp(a + "([^" + a + "]*)" + a, "g"),
                            c = {
                                t: function (e) {
                                    return i.oldMomentFormat(e, "a").charAt(0);
                                },
                                T: function (e) {
                                    return i.oldMomentFormat(e, "A").charAt(0);
                                },
                            },
                            u = { Y: { value: 1, unit: "year" }, M: { value: 2, unit: "month" }, W: { value: 3, unit: "week" }, w: { value: 3, unit: "week" }, D: { value: 4, unit: "day" }, d: { value: 4, unit: "day" } };
                        function d(e, t) {
                            return (function (e, t) {
                                return v(g(e, t).join(""));
                            })(h(t).fakeFormatString, e);
                        }
                        (t.formatDate = d),
                            (t.formatRange = function (e, t, n, o, r) {
                                return (
                                    (e = i.default.parseZone(e)),
                                    (t = i.default.parseZone(t)),
                                    (function (e, t, n, i, o) {
                                        var r,
                                            s,
                                            a,
                                            l = e.sameUnits,
                                            c = t.clone().stripZone(),
                                            u = n.clone().stripZone(),
                                            d = g(e.fakeFormatString, t),
                                            p = g(e.fakeFormatString, n),
                                            h = "",
                                            f = "",
                                            m = "",
                                            y = "",
                                            b = "";
                                        for (r = 0; r < l.length && (!l[r] || c.isSame(u, l[r])); r++) h += d[r];
                                        for (s = l.length - 1; s > r && (!l[s] || c.isSame(u, l[s])) && (s - 1 !== r || "." !== d[s]); s--) f = d[s] + f;
                                        for (a = r; a <= s; a++) (m += d[a]), (y += p[a]);
                                        return (m || y) && (b = o ? y + i + m : m + i + y), v(h + b + f);
                                    })(h((n = e.localeData().longDateFormat(n) || n)), e, t, o || " - ", r)
                                );
                            });
                        var p = {};
                        function h(e) {
                            return (
                                p[e] ||
                                (p[e] = (function (e) {
                                    var t = f(e);
                                    return {
                                        fakeFormatString: (function e(t) {
                                            var n = [];
                                            var i;
                                            var o;
                                            for (i = 0; i < t.length; i++)
                                                "string" == typeof (o = t[i]) ? n.push("[" + o + "]") : o.token ? (o.token in c ? n.push(s + "[" + o.token + "]") : n.push(o.token)) : o.maybe && n.push(a + e(o.maybe) + a);
                                            return n.join(r);
                                        })(t),
                                        sameUnits: (function e(t) {
                                            var n = [];
                                            var i;
                                            var o;
                                            var r;
                                            for (i = 0; i < t.length; i++) (o = t[i]).token ? ((r = u[o.token.charAt(0)]), n.push(r ? r.unit : "second")) : o.maybe ? n.push.apply(n, e(o.maybe)) : n.push(null);
                                            return n;
                                        })(t),
                                    };
                                })(e))
                            );
                        }
                        function f(e) {
                            for (var t, n = [], i = /\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g; (t = i.exec(e)); )
                                t[1] ? n.push.apply(n, m(t[1])) : t[2] ? n.push({ maybe: f(t[2]) }) : t[3] ? n.push({ token: t[3] }) : t[5] && n.push.apply(n, m(t[5]));
                            return n;
                        }
                        function m(e) {
                            return ". " === e ? [".", " "] : [e];
                        }
                        function g(e, t) {
                            var n,
                                o,
                                a = [],
                                l = i.oldMomentFormat(t, e).split(r);
                            for (n = 0; n < l.length; n++) (o = l[n]).charAt(0) === s ? a.push(c[o.substring(1)](t)) : a.push(o);
                            return a;
                        }
                        function v(e) {
                            return e.replace(l, function (e, t) {
                                return t.match(/[1-9]/) ? t : "";
                            });
                        }
                        t.queryMostGranularFormatUnit = function (e) {
                            var t,
                                n,
                                i,
                                o,
                                r = f(e);
                            for (t = 0; t < r.length; t++) (n = r[t]).token && (i = u[n.token.charAt(0)]) && (!o || i.value > o.value) && (o = i);
                            return o ? o.unit : null;
                        };
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(33),
                            r = n(11),
                            s = n(7),
                            a = (function (e) {
                                function t() {
                                    var t = e.call(this) || this;
                                    return (t._watchers = {}), (t._props = {}), t.applyGlobalWatchers(), t.constructed(), t;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.watch = function (e) {
                                        for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                                        this.prototype.hasOwnProperty("_globalWatchArgs") || (this.prototype._globalWatchArgs = Object.create(this.prototype._globalWatchArgs)), (this.prototype._globalWatchArgs[e] = t);
                                    }),
                                    (t.prototype.constructed = function () {}),
                                    (t.prototype.applyGlobalWatchers = function () {
                                        var e,
                                            t = this._globalWatchArgs;
                                        for (e in t) this.watch.apply(this, [e].concat(t[e]));
                                    }),
                                    (t.prototype.has = function (e) {
                                        return e in this._props;
                                    }),
                                    (t.prototype.get = function (e) {
                                        return void 0 === e ? this._props : this._props[e];
                                    }),
                                    (t.prototype.set = function (e, t) {
                                        var n;
                                        "string" == typeof e ? ((n = {})[e] = void 0 === t ? null : t) : (n = e), this.setProps(n);
                                    }),
                                    (t.prototype.reset = function (e) {
                                        var t,
                                            n = this._props,
                                            i = {};
                                        for (t in n) i[t] = void 0;
                                        for (t in e) i[t] = e[t];
                                        this.setProps(i);
                                    }),
                                    (t.prototype.unset = function (e) {
                                        var t,
                                            n,
                                            i = {};
                                        for (t = "string" == typeof e ? [e] : e, n = 0; n < t.length; n++) i[t[n]] = void 0;
                                        this.setProps(i);
                                    }),
                                    (t.prototype.setProps = function (e) {
                                        var t,
                                            n,
                                            i = {},
                                            o = 0;
                                        for (t in e) ("object" != typeof (n = e[t]) && n === this._props[t]) || ((i[t] = n), o++);
                                        if (o) {
                                            for (t in (this.trigger("before:batchChange", i), i)) (n = i[t]), this.trigger("before:change", t, n), this.trigger("before:change:" + t, n);
                                            for (t in i) void 0 === (n = i[t]) ? delete this._props[t] : (this._props[t] = n), this.trigger("change:" + t, n), this.trigger("change", t, n);
                                            this.trigger("batchChange", i);
                                        }
                                    }),
                                    (t.prototype.watch = function (e, t, n, i) {
                                        var o = this;
                                        this.unwatch(e),
                                            (this._watchers[e] = this._watchDeps(
                                                t,
                                                function (t) {
                                                    var i = n.call(o, t);
                                                    i && i.then
                                                        ? (o.unset(e),
                                                          i.then(function (t) {
                                                              o.set(e, t);
                                                          }))
                                                        : o.set(e, i);
                                                },
                                                function (t) {
                                                    o.unset(e), i && i.call(o, t);
                                                }
                                            ));
                                    }),
                                    (t.prototype.unwatch = function (e) {
                                        var t = this._watchers[e];
                                        t && (delete this._watchers[e], t.teardown());
                                    }),
                                    (t.prototype._watchDeps = function (e, t, n) {
                                        var i = this,
                                            o = 0,
                                            r = e.length,
                                            s = 0,
                                            a = {},
                                            l = [],
                                            c = !1,
                                            u = function (e, t) {
                                                i.on(e, t), l.push([e, t]);
                                            };
                                        return (
                                            e.forEach(function (e) {
                                                var i = !1;
                                                "?" === e.charAt(0) && ((e = e.substring(1)), (i = !0)),
                                                    u("before:change:" + e, function (e) {
                                                        1 == ++o && s === r && ((c = !0), n(a), (c = !1));
                                                    }),
                                                    u("change:" + e, function (n) {
                                                        !(function (e, n, i) {
                                                            void 0 === n ? (i || void 0 === a[e] || s--, delete a[e]) : (i || void 0 !== a[e] || s++, (a[e] = n)), --o || (s === r && (c || t(a)));
                                                        })(e, n, i);
                                                    });
                                            }),
                                            e.forEach(function (e) {
                                                var t = !1;
                                                "?" === e.charAt(0) && ((e = e.substring(1)), (t = !0)), i.has(e) ? ((a[e] = i.get(e)), s++) : t && s++;
                                            }),
                                            s === r && t(a),
                                            {
                                                teardown: function () {
                                                    for (var e = 0; e < l.length; e++) i.off(l[e][0], l[e][1]);
                                                    (l = null), s === r && n();
                                                },
                                                flash: function () {
                                                    s === r && (n(), t(a));
                                                },
                                            }
                                        );
                                    }),
                                    (t.prototype.flash = function (e) {
                                        var t = this._watchers[e];
                                        t && t.flash();
                                    }),
                                    t
                                );
                            })(o.default);
                        (t.default = a), (a.prototype._globalWatchArgs = {}), r.default.mixInto(a), s.default.mixInto(a);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(4),
                            r = n(13),
                            s = n(210);
                        t.default = {
                            parse: function (e, t) {
                                return o.isTimeString(e.start) || i.isDuration(e.start) || o.isTimeString(e.end) || i.isDuration(e.end) ? s.default.parse(e, t) : r.default.parse(e, t);
                            },
                        };
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(4),
                            o = n(17),
                            r = (function () {
                                function e() {
                                    (this.clearEnd = !1), (this.forceTimed = !1), (this.forceAllDay = !1);
                                }
                                return (
                                    (e.createFromDiff = function (t, n, o) {
                                        var r,
                                            s,
                                            a,
                                            l = t.end && !n.end,
                                            c = t.isAllDay() && !n.isAllDay(),
                                            u = !t.isAllDay() && n.isAllDay();
                                        function d(e, t) {
                                            return o ? i.diffByUnit(e, t, o) : n.isAllDay() ? i.diffDay(e, t) : i.diffDayTime(e, t);
                                        }
                                        return (
                                            (r = d(n.start, t.start)),
                                            n.end && (s = d(n.unzonedRange.getEnd(), t.unzonedRange.getEnd()).subtract(r)),
                                            ((a = new e()).clearEnd = l),
                                            (a.forceTimed = c),
                                            (a.forceAllDay = u),
                                            a.setDateDelta(r),
                                            a.setEndDelta(s),
                                            a
                                        );
                                    }),
                                    (e.prototype.buildNewDateProfile = function (e, t) {
                                        var n = e.start.clone(),
                                            i = null,
                                            r = !1;
                                        return (
                                            e.end && !this.clearEnd ? (i = e.end.clone()) : this.endDelta && !i && (i = t.getDefaultEventEnd(e.isAllDay(), n)),
                                            this.forceTimed ? ((r = !0), n.hasTime() || n.time(0), i && !i.hasTime() && i.time(0)) : this.forceAllDay && (n.hasTime() && n.stripTime(), i && i.hasTime() && i.stripTime()),
                                            this.dateDelta && ((r = !0), n.add(this.dateDelta), i && i.add(this.dateDelta)),
                                            this.endDelta && ((r = !0), i.add(this.endDelta)),
                                            this.startDelta && ((r = !0), n.add(this.startDelta)),
                                            r && ((n = t.applyTimezone(n)), i && (i = t.applyTimezone(i))),
                                            !i && t.opt("forceEventDuration") && (i = t.getDefaultEventEnd(e.isAllDay(), n)),
                                            new o.default(n, i, t)
                                        );
                                    }),
                                    (e.prototype.setDateDelta = function (e) {
                                        e && e.valueOf() ? (this.dateDelta = e) : (this.dateDelta = null);
                                    }),
                                    (e.prototype.setStartDelta = function (e) {
                                        e && e.valueOf() ? (this.startDelta = e) : (this.startDelta = null);
                                    }),
                                    (e.prototype.setEndDelta = function (e) {
                                        e && e.valueOf() ? (this.endDelta = e) : (this.endDelta = null);
                                    }),
                                    (e.prototype.isEmpty = function () {
                                        return !(this.clearEnd || this.forceTimed || this.forceAllDay || this.dateDelta || this.startDelta || this.endDelta);
                                    }),
                                    e
                                );
                            })();
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(213),
                            o = n(214),
                            r = {};
                        (t.defineThemeSystem = function (e, t) {
                            r[e] = t;
                        }),
                            (t.getThemeSystemClass = function (e) {
                                return e ? (!0 === e ? o.default : r[e]) : i.default;
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(4),
                            s = n(20),
                            a = n(6),
                            l = n(13),
                            c = (function (e) {
                                function t(t) {
                                    var n = e.call(this, t) || this;
                                    return (n.eventDefs = []), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.parse = function (e, t) {
                                        var n;
                                        return o.isArray(e.events) ? (n = e) : o.isArray(e) && (n = { events: e }), !!n && a.default.parse.call(this, n, t);
                                    }),
                                    (t.prototype.setRawEventDefs = function (e) {
                                        (this.rawEventDefs = e), (this.eventDefs = this.parseEventDefs(e));
                                    }),
                                    (t.prototype.fetch = function (e, t, n) {
                                        var i,
                                            o = this.eventDefs;
                                        if (null != this.currentTimezone && this.currentTimezone !== n) for (i = 0; i < o.length; i++) o[i] instanceof l.default && o[i].rezone();
                                        return (this.currentTimezone = n), s.default.resolve(o);
                                    }),
                                    (t.prototype.addEventDef = function (e) {
                                        this.eventDefs.push(e);
                                    }),
                                    (t.prototype.removeEventDefsById = function (e) {
                                        return r.removeMatching(this.eventDefs, function (t) {
                                            return t.id === e;
                                        });
                                    }),
                                    (t.prototype.removeAllEventDefs = function () {
                                        this.eventDefs = [];
                                    }),
                                    (t.prototype.getPrimitive = function () {
                                        return this.rawEventDefs;
                                    }),
                                    (t.prototype.applyManualStandardProps = function (t) {
                                        var n = e.prototype.applyManualStandardProps.call(this, t);
                                        return this.setRawEventDefs(t.events), n;
                                    }),
                                    t
                                );
                            })(a.default);
                        (t.default = c), c.defineStandardProps({ events: !1 });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(4),
                            r = (function () {
                                function e(e) {
                                    (this.isHorizontal = !1),
                                        (this.isVertical = !1),
                                        (this.els = i(e.els)),
                                        (this.isHorizontal = e.isHorizontal),
                                        (this.isVertical = e.isVertical),
                                        (this.forcedOffsetParentEl = e.offsetParent ? i(e.offsetParent) : null);
                                }
                                return (
                                    (e.prototype.build = function () {
                                        var e = this.forcedOffsetParentEl;
                                        !e && this.els.length > 0 && (e = this.els.eq(0).offsetParent()),
                                            (this.origin = e ? e.offset() : null),
                                            (this.boundingRect = this.queryBoundingRect()),
                                            this.isHorizontal && this.buildElHorizontals(),
                                            this.isVertical && this.buildElVerticals();
                                    }),
                                    (e.prototype.clear = function () {
                                        (this.origin = null), (this.boundingRect = null), (this.lefts = null), (this.rights = null), (this.tops = null), (this.bottoms = null);
                                    }),
                                    (e.prototype.ensureBuilt = function () {
                                        this.origin || this.build();
                                    }),
                                    (e.prototype.buildElHorizontals = function () {
                                        var e = [],
                                            t = [];
                                        this.els.each(function (n, o) {
                                            var r = i(o),
                                                s = r.offset().left,
                                                a = r.outerWidth();
                                            e.push(s), t.push(s + a);
                                        }),
                                            (this.lefts = e),
                                            (this.rights = t);
                                    }),
                                    (e.prototype.buildElVerticals = function () {
                                        var e = [],
                                            t = [];
                                        this.els.each(function (n, o) {
                                            var r = i(o),
                                                s = r.offset().top,
                                                a = r.outerHeight();
                                            e.push(s), t.push(s + a);
                                        }),
                                            (this.tops = e),
                                            (this.bottoms = t);
                                    }),
                                    (e.prototype.getHorizontalIndex = function (e) {
                                        this.ensureBuilt();
                                        var t,
                                            n = this.lefts,
                                            i = this.rights,
                                            o = n.length;
                                        for (t = 0; t < o; t++) if (e >= n[t] && e < i[t]) return t;
                                    }),
                                    (e.prototype.getVerticalIndex = function (e) {
                                        this.ensureBuilt();
                                        var t,
                                            n = this.tops,
                                            i = this.bottoms,
                                            o = n.length;
                                        for (t = 0; t < o; t++) if (e >= n[t] && e < i[t]) return t;
                                    }),
                                    (e.prototype.getLeftOffset = function (e) {
                                        return this.ensureBuilt(), this.lefts[e];
                                    }),
                                    (e.prototype.getLeftPosition = function (e) {
                                        return this.ensureBuilt(), this.lefts[e] - this.origin.left;
                                    }),
                                    (e.prototype.getRightOffset = function (e) {
                                        return this.ensureBuilt(), this.rights[e];
                                    }),
                                    (e.prototype.getRightPosition = function (e) {
                                        return this.ensureBuilt(), this.rights[e] - this.origin.left;
                                    }),
                                    (e.prototype.getWidth = function (e) {
                                        return this.ensureBuilt(), this.rights[e] - this.lefts[e];
                                    }),
                                    (e.prototype.getTopOffset = function (e) {
                                        return this.ensureBuilt(), this.tops[e];
                                    }),
                                    (e.prototype.getTopPosition = function (e) {
                                        return this.ensureBuilt(), this.tops[e] - this.origin.top;
                                    }),
                                    (e.prototype.getBottomOffset = function (e) {
                                        return this.ensureBuilt(), this.bottoms[e];
                                    }),
                                    (e.prototype.getBottomPosition = function (e) {
                                        return this.ensureBuilt(), this.bottoms[e] - this.origin.top;
                                    }),
                                    (e.prototype.getHeight = function (e) {
                                        return this.ensureBuilt(), this.bottoms[e] - this.tops[e];
                                    }),
                                    (e.prototype.queryBoundingRect = function () {
                                        var e;
                                        return this.els.length > 0 && !(e = o.getScrollParent(this.els.eq(0))).is(document) ? o.getClientRect(e) : null;
                                    }),
                                    (e.prototype.isPointInBounds = function (e, t) {
                                        return this.isLeftInBounds(e) && this.isTopInBounds(t);
                                    }),
                                    (e.prototype.isLeftInBounds = function (e) {
                                        return !this.boundingRect || (e >= this.boundingRect.left && e < this.boundingRect.right);
                                    }),
                                    (e.prototype.isTopInBounds = function (e) {
                                        return !this.boundingRect || (e >= this.boundingRect.top && e < this.boundingRect.bottom);
                                    }),
                                    e
                                );
                            })();
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(4),
                            r = n(7),
                            s = n(21),
                            a = (function () {
                                function e(e) {
                                    (this.isInteracting = !1),
                                        (this.isDistanceSurpassed = !1),
                                        (this.isDelayEnded = !1),
                                        (this.isDragging = !1),
                                        (this.isTouch = !1),
                                        (this.isGeneric = !1),
                                        (this.shouldCancelTouchScroll = !0),
                                        (this.scrollAlwaysKills = !1),
                                        (this.isAutoScroll = !1),
                                        (this.scrollSensitivity = 30),
                                        (this.scrollSpeed = 200),
                                        (this.scrollIntervalMs = 50),
                                        (this.options = e || {});
                                }
                                return (
                                    (e.prototype.startInteraction = function (e, t) {
                                        if ((void 0 === t && (t = {}), "mousedown" === e.type)) {
                                            if (s.default.get().shouldIgnoreMouse()) return;
                                            if (!o.isPrimaryMouseButton(e)) return;
                                            e.preventDefault();
                                        }
                                        this.isInteracting ||
                                            ((this.delay = o.firstDefined(t.delay, this.options.delay, 0)),
                                            (this.minDistance = o.firstDefined(t.distance, this.options.distance, 0)),
                                            (this.subjectEl = this.options.subjectEl),
                                            o.preventSelection(i("body")),
                                            (this.isInteracting = !0),
                                            (this.isTouch = o.getEvIsTouch(e)),
                                            (this.isGeneric = "dragstart" === e.type),
                                            (this.isDelayEnded = !1),
                                            (this.isDistanceSurpassed = !1),
                                            (this.originX = o.getEvX(e)),
                                            (this.originY = o.getEvY(e)),
                                            (this.scrollEl = o.getScrollParent(i(e.target))),
                                            this.bindHandlers(),
                                            this.initAutoScroll(),
                                            this.handleInteractionStart(e),
                                            this.startDelay(e),
                                            this.minDistance || this.handleDistanceSurpassed(e));
                                    }),
                                    (e.prototype.handleInteractionStart = function (e) {
                                        this.trigger("interactionStart", e);
                                    }),
                                    (e.prototype.endInteraction = function (e, t) {
                                        this.isInteracting &&
                                            (this.endDrag(e),
                                            this.delayTimeoutId && (clearTimeout(this.delayTimeoutId), (this.delayTimeoutId = null)),
                                            this.destroyAutoScroll(),
                                            this.unbindHandlers(),
                                            (this.isInteracting = !1),
                                            this.handleInteractionEnd(e, t),
                                            o.allowSelection(i("body")));
                                    }),
                                    (e.prototype.handleInteractionEnd = function (e, t) {
                                        this.trigger("interactionEnd", e, t || !1);
                                    }),
                                    (e.prototype.bindHandlers = function () {
                                        var e = s.default.get();
                                        this.isGeneric
                                            ? this.listenTo(i(document), { drag: this.handleMove, dragstop: this.endInteraction })
                                            : this.isTouch
                                            ? this.listenTo(e, { touchmove: this.handleTouchMove, touchend: this.endInteraction, scroll: this.handleTouchScroll })
                                            : this.listenTo(e, { mousemove: this.handleMouseMove, mouseup: this.endInteraction }),
                                            this.listenTo(e, { selectstart: o.preventDefault, contextmenu: o.preventDefault });
                                    }),
                                    (e.prototype.unbindHandlers = function () {
                                        this.stopListeningTo(s.default.get()), this.stopListeningTo(i(document));
                                    }),
                                    (e.prototype.startDrag = function (e, t) {
                                        this.startInteraction(e, t), this.isDragging || ((this.isDragging = !0), this.handleDragStart(e));
                                    }),
                                    (e.prototype.handleDragStart = function (e) {
                                        this.trigger("dragStart", e);
                                    }),
                                    (e.prototype.handleMove = function (e) {
                                        var t = o.getEvX(e) - this.originX,
                                            n = o.getEvY(e) - this.originY,
                                            i = this.minDistance;
                                        this.isDistanceSurpassed || (t * t + n * n >= i * i && this.handleDistanceSurpassed(e)), this.isDragging && this.handleDrag(t, n, e);
                                    }),
                                    (e.prototype.handleDrag = function (e, t, n) {
                                        this.trigger("drag", e, t, n), this.updateAutoScroll(n);
                                    }),
                                    (e.prototype.endDrag = function (e) {
                                        this.isDragging && ((this.isDragging = !1), this.handleDragEnd(e));
                                    }),
                                    (e.prototype.handleDragEnd = function (e) {
                                        this.trigger("dragEnd", e);
                                    }),
                                    (e.prototype.startDelay = function (e) {
                                        var t = this;
                                        this.delay
                                            ? (this.delayTimeoutId = setTimeout(function () {
                                                  t.handleDelayEnd(e);
                                              }, this.delay))
                                            : this.handleDelayEnd(e);
                                    }),
                                    (e.prototype.handleDelayEnd = function (e) {
                                        (this.isDelayEnded = !0), this.isDistanceSurpassed && this.startDrag(e);
                                    }),
                                    (e.prototype.handleDistanceSurpassed = function (e) {
                                        (this.isDistanceSurpassed = !0), this.isDelayEnded && this.startDrag(e);
                                    }),
                                    (e.prototype.handleTouchMove = function (e) {
                                        this.isDragging && this.shouldCancelTouchScroll && e.preventDefault(), this.handleMove(e);
                                    }),
                                    (e.prototype.handleMouseMove = function (e) {
                                        this.handleMove(e);
                                    }),
                                    (e.prototype.handleTouchScroll = function (e) {
                                        (this.isDragging && !this.scrollAlwaysKills) || this.endInteraction(e, !0);
                                    }),
                                    (e.prototype.trigger = function (e) {
                                        for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                                        this.options[e] && this.options[e].apply(this, t), this["_" + e] && this["_" + e].apply(this, t);
                                    }),
                                    (e.prototype.initAutoScroll = function () {
                                        var e = this.scrollEl;
                                        (this.isAutoScroll = this.options.scroll && e && !e.is(window) && !e.is(document)), this.isAutoScroll && this.listenTo(e, "scroll", o.debounce(this.handleDebouncedScroll, 100));
                                    }),
                                    (e.prototype.destroyAutoScroll = function () {
                                        this.endAutoScroll(), this.isAutoScroll && this.stopListeningTo(this.scrollEl, "scroll");
                                    }),
                                    (e.prototype.computeScrollBounds = function () {
                                        this.isAutoScroll && (this.scrollBounds = o.getOuterRect(this.scrollEl));
                                    }),
                                    (e.prototype.updateAutoScroll = function (e) {
                                        var t,
                                            n,
                                            i,
                                            r,
                                            s = this.scrollSensitivity,
                                            a = this.scrollBounds,
                                            l = 0,
                                            c = 0;
                                        a &&
                                            ((t = (s - (o.getEvY(e) - a.top)) / s),
                                            (n = (s - (a.bottom - o.getEvY(e))) / s),
                                            (i = (s - (o.getEvX(e) - a.left)) / s),
                                            (r = (s - (a.right - o.getEvX(e))) / s),
                                            t >= 0 && t <= 1 ? (l = t * this.scrollSpeed * -1) : n >= 0 && n <= 1 && (l = n * this.scrollSpeed),
                                            i >= 0 && i <= 1 ? (c = i * this.scrollSpeed * -1) : r >= 0 && r <= 1 && (c = r * this.scrollSpeed)),
                                            this.setScrollVel(l, c);
                                    }),
                                    (e.prototype.setScrollVel = function (e, t) {
                                        (this.scrollTopVel = e),
                                            (this.scrollLeftVel = t),
                                            this.constrainScrollVel(),
                                            (!this.scrollTopVel && !this.scrollLeftVel) || this.scrollIntervalId || (this.scrollIntervalId = setInterval(o.proxy(this, "scrollIntervalFunc"), this.scrollIntervalMs));
                                    }),
                                    (e.prototype.constrainScrollVel = function () {
                                        var e = this.scrollEl;
                                        this.scrollTopVel < 0 ? e.scrollTop() <= 0 && (this.scrollTopVel = 0) : this.scrollTopVel > 0 && e.scrollTop() + e[0].clientHeight >= e[0].scrollHeight && (this.scrollTopVel = 0),
                                            this.scrollLeftVel < 0 ? e.scrollLeft() <= 0 && (this.scrollLeftVel = 0) : this.scrollLeftVel > 0 && e.scrollLeft() + e[0].clientWidth >= e[0].scrollWidth && (this.scrollLeftVel = 0);
                                    }),
                                    (e.prototype.scrollIntervalFunc = function () {
                                        var e = this.scrollEl,
                                            t = this.scrollIntervalMs / 1e3;
                                        this.scrollTopVel && e.scrollTop(e.scrollTop() + this.scrollTopVel * t),
                                            this.scrollLeftVel && e.scrollLeft(e.scrollLeft() + this.scrollLeftVel * t),
                                            this.constrainScrollVel(),
                                            this.scrollTopVel || this.scrollLeftVel || this.endAutoScroll();
                                    }),
                                    (e.prototype.endAutoScroll = function () {
                                        this.scrollIntervalId && (clearInterval(this.scrollIntervalId), (this.scrollIntervalId = null), this.handleScrollEnd());
                                    }),
                                    (e.prototype.handleDebouncedScroll = function () {
                                        this.scrollIntervalId || this.handleScrollEnd();
                                    }),
                                    (e.prototype.handleScrollEnd = function () {}),
                                    e
                                );
                            })();
                        (t.default = a), r.default.mixInto(a);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(4),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.updateDayTable = function () {
                                        for (
                                            var e,
                                                t,
                                                n,
                                                i = this,
                                                o = i.view,
                                                r = o.calendar,
                                                s = r.msToUtcMoment(i.dateProfile.renderUnzonedRange.startMs, !0),
                                                a = r.msToUtcMoment(i.dateProfile.renderUnzonedRange.endMs, !0),
                                                l = -1,
                                                c = [],
                                                u = [];
                                            s.isBefore(a);

                                        )
                                            o.isHiddenDay(s) ? c.push(l + 0.5) : (l++, c.push(l), u.push(s.clone())), s.add(1, "days");
                                        if (this.breakOnWeeks) {
                                            for (t = u[0].day(), e = 1; e < u.length && u[e].day() !== t; e++);
                                            n = Math.ceil(u.length / e);
                                        } else (n = 1), (e = u.length);
                                        (this.dayDates = u), (this.dayIndices = c), (this.daysPerRow = e), (this.rowCnt = n), this.updateDayTableCols();
                                    }),
                                    (t.prototype.updateDayTableCols = function () {
                                        (this.colCnt = this.computeColCnt()), (this.colHeadFormat = this.opt("columnHeaderFormat") || this.opt("columnFormat") || this.computeColHeadFormat());
                                    }),
                                    (t.prototype.computeColCnt = function () {
                                        return this.daysPerRow;
                                    }),
                                    (t.prototype.getCellDate = function (e, t) {
                                        return this.dayDates[this.getCellDayIndex(e, t)].clone();
                                    }),
                                    (t.prototype.getCellRange = function (e, t) {
                                        var n = this.getCellDate(e, t);
                                        return { start: n, end: n.clone().add(1, "days") };
                                    }),
                                    (t.prototype.getCellDayIndex = function (e, t) {
                                        return e * this.daysPerRow + this.getColDayIndex(t);
                                    }),
                                    (t.prototype.getColDayIndex = function (e) {
                                        return this.isRTL ? this.colCnt - 1 - e : e;
                                    }),
                                    (t.prototype.getDateDayIndex = function (e) {
                                        var t = this.dayIndices,
                                            n = e.diff(this.dayDates[0], "days");
                                        return n < 0 ? t[0] - 1 : n >= t.length ? t[t.length - 1] + 1 : t[n];
                                    }),
                                    (t.prototype.computeColHeadFormat = function () {
                                        return this.rowCnt > 1 || this.colCnt > 10 ? "ddd" : this.colCnt > 1 ? this.opt("dayOfMonthFormat") : "dddd";
                                    }),
                                    (t.prototype.sliceRangeByRow = function (e) {
                                        var t,
                                            n,
                                            i,
                                            o,
                                            r,
                                            s = this.daysPerRow,
                                            a = this.view.computeDayRange(e),
                                            l = this.getDateDayIndex(a.start),
                                            c = this.getDateDayIndex(a.end.clone().subtract(1, "days")),
                                            u = [];
                                        for (t = 0; t < this.rowCnt; t++)
                                            (i = (n = t * s) + s - 1),
                                                (o = Math.max(l, n)),
                                                (r = Math.min(c, i)),
                                                (o = Math.ceil(o)) <= (r = Math.floor(r)) && u.push({ row: t, firstRowDayIndex: o - n, lastRowDayIndex: r - n, isStart: o === l, isEnd: r === c });
                                        return u;
                                    }),
                                    (t.prototype.sliceRangeByDay = function (e) {
                                        var t,
                                            n,
                                            i,
                                            o,
                                            r,
                                            s,
                                            a = this.daysPerRow,
                                            l = this.view.computeDayRange(e),
                                            c = this.getDateDayIndex(l.start),
                                            u = this.getDateDayIndex(l.end.clone().subtract(1, "days")),
                                            d = [];
                                        for (t = 0; t < this.rowCnt; t++)
                                            for (i = (n = t * a) + a - 1, o = n; o <= i; o++)
                                                (r = Math.max(c, o)), (s = Math.min(u, o)), (r = Math.ceil(r)) <= (s = Math.floor(s)) && d.push({ row: t, firstRowDayIndex: r - n, lastRowDayIndex: s - n, isStart: r === c, isEnd: s === u });
                                        return d;
                                    }),
                                    (t.prototype.renderHeadHtml = function () {
                                        var e = this.view.calendar.theme;
                                        return '<div class="fc-row ' + e.getClass("headerRow") + '"><table class="' + e.getClass("tableGrid") + '"><thead>' + this.renderHeadTrHtml() + "</thead></table></div>";
                                    }),
                                    (t.prototype.renderHeadIntroHtml = function () {
                                        return this.renderIntroHtml();
                                    }),
                                    (t.prototype.renderHeadTrHtml = function () {
                                        return "<tr>" + (this.isRTL ? "" : this.renderHeadIntroHtml()) + this.renderHeadDateCellsHtml() + (this.isRTL ? this.renderHeadIntroHtml() : "") + "</tr>";
                                    }),
                                    (t.prototype.renderHeadDateCellsHtml = function () {
                                        var e,
                                            t,
                                            n = [];
                                        for (e = 0; e < this.colCnt; e++) (t = this.getCellDate(0, e)), n.push(this.renderHeadDateCellHtml(t));
                                        return n.join("");
                                    }),
                                    (t.prototype.renderHeadDateCellHtml = function (e, t, n) {
                                        var i,
                                            r = this,
                                            s = r.view,
                                            a = r.dateProfile.activeUnzonedRange.containsDate(e),
                                            l = ["fc-day-header", s.calendar.theme.getClass("widgetHeader")];
                                        return (
                                            (i =
                                                "function" == typeof r.opt("columnHeaderHtml")
                                                    ? r.opt("columnHeaderHtml")(e)
                                                    : "function" == typeof r.opt("columnHeaderText")
                                                    ? o.htmlEscape(r.opt("columnHeaderText")(e))
                                                    : o.htmlEscape(e.format(r.colHeadFormat))),
                                            1 === r.rowCnt ? (l = l.concat(r.getDayClasses(e, !0))) : l.push("fc-" + o.dayIDs[e.day()]),
                                            '<th class="' +
                                                l.join(" ") +
                                                '"' +
                                                (1 === (a && r.rowCnt) ? ' data-date="' + e.format("YYYY-MM-DD") + '"' : "") +
                                                (t > 1 ? ' colspan="' + t + '"' : "") +
                                                (n ? " " + n : "") +
                                                ">" +
                                                (a ? s.buildGotoAnchorHtml({ date: e, forceOff: r.rowCnt > 1 || 1 === r.colCnt }, i) : i) +
                                                "</th>"
                                        );
                                    }),
                                    (t.prototype.renderBgTrHtml = function (e) {
                                        return "<tr>" + (this.isRTL ? "" : this.renderBgIntroHtml(e)) + this.renderBgCellsHtml(e) + (this.isRTL ? this.renderBgIntroHtml(e) : "") + "</tr>";
                                    }),
                                    (t.prototype.renderBgIntroHtml = function (e) {
                                        return this.renderIntroHtml();
                                    }),
                                    (t.prototype.renderBgCellsHtml = function (e) {
                                        var t,
                                            n,
                                            i = [];
                                        for (t = 0; t < this.colCnt; t++) (n = this.getCellDate(e, t)), i.push(this.renderBgCellHtml(n));
                                        return i.join("");
                                    }),
                                    (t.prototype.renderBgCellHtml = function (e, t) {
                                        var n = this,
                                            i = n.view,
                                            o = n.dateProfile.activeUnzonedRange.containsDate(e),
                                            r = n.getDayClasses(e);
                                        return r.unshift("fc-day", i.calendar.theme.getClass("widgetContent")), '<td class="' + r.join(" ") + '"' + (o ? ' data-date="' + e.format("YYYY-MM-DD") + '"' : "") + (t ? " " + t : "") + "></td>";
                                    }),
                                    (t.prototype.renderIntroHtml = function () {}),
                                    (t.prototype.bookendCells = function (e) {
                                        var t = this.renderIntroHtml();
                                        t && (this.isRTL ? e.append(t) : e.prepend(t));
                                    }),
                                    t
                                );
                            })(n(14).default);
                        t.default = r;
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var n = (function () {
                            function e(e, t) {
                                (this.component = e), (this.fillRenderer = t);
                            }
                            return (
                                (e.prototype.render = function (e) {
                                    var t = this.component,
                                        n = t._getDateProfile().activeUnzonedRange,
                                        i = e.buildEventInstanceGroup(t.hasAllDayBusinessHours, n),
                                        o = i ? t.eventRangesToEventFootprints(i.sliceRenderRanges(n)) : [];
                                    this.renderEventFootprints(o);
                                }),
                                (e.prototype.renderEventFootprints = function (e) {
                                    var t = this.component.eventFootprintsToSegs(e);
                                    this.renderSegs(t), (this.segs = t);
                                }),
                                (e.prototype.renderSegs = function (e) {
                                    this.fillRenderer &&
                                        this.fillRenderer.renderSegs("businessHours", e, {
                                            getClasses: function (e) {
                                                return ["fc-nonbusiness", "fc-bgevent"];
                                            },
                                        });
                                }),
                                (e.prototype.unrender = function () {
                                    this.fillRenderer && this.fillRenderer.unrender("businessHours"), (this.segs = null);
                                }),
                                (e.prototype.getSegs = function () {
                                    return this.segs || [];
                                }),
                                e
                            );
                        })();
                        t.default = n;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(4),
                            r = (function () {
                                function e(e) {
                                    (this.fillSegTag = "div"), (this.component = e), (this.elsByFill = {});
                                }
                                return (
                                    (e.prototype.renderFootprint = function (e, t, n) {
                                        this.renderSegs(e, this.component.componentFootprintToSegs(t), n);
                                    }),
                                    (e.prototype.renderSegs = function (e, t, n) {
                                        var i;
                                        return (t = this.buildSegEls(e, t, n)), (i = this.attachSegEls(e, t)) && this.reportEls(e, i), t;
                                    }),
                                    (e.prototype.unrender = function (e) {
                                        var t = this.elsByFill[e];
                                        t && (t.remove(), delete this.elsByFill[e]);
                                    }),
                                    (e.prototype.buildSegEls = function (e, t, n) {
                                        var o,
                                            r = this,
                                            s = "",
                                            a = [];
                                        if (t.length) {
                                            for (o = 0; o < t.length; o++) s += this.buildSegHtml(e, t[o], n);
                                            i(s).each(function (e, o) {
                                                var s = t[e],
                                                    l = i(o);
                                                n.filterEl && (l = n.filterEl(s, l)), l && (l = i(l)).is(r.fillSegTag) && ((s.el = l), a.push(s));
                                            });
                                        }
                                        return a;
                                    }),
                                    (e.prototype.buildSegHtml = function (e, t, n) {
                                        var i = n.getClasses ? n.getClasses(t) : [],
                                            r = o.cssToStr(n.getCss ? n.getCss(t) : {});
                                        return "<" + this.fillSegTag + (i.length ? ' class="' + i.join(" ") + '"' : "") + (r ? ' style="' + r + '"' : "") + " />";
                                    }),
                                    (e.prototype.attachSegEls = function (e, t) {}),
                                    (e.prototype.reportEls = function (e, t) {
                                        this.elsByFill[e] ? (this.elsByFill[e] = this.elsByFill[e].add(t)) : (this.elsByFill[e] = i(t));
                                    }),
                                    e
                                );
                            })();
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(13),
                            o = n(36),
                            r = n(6),
                            s = (function () {
                                function e(e, t) {
                                    (this.view = e._getView()), (this.component = e), (this.eventRenderer = t);
                                }
                                return (
                                    (e.prototype.renderComponentFootprint = function (e) {
                                        this.renderEventFootprints([this.fabricateEventFootprint(e)]);
                                    }),
                                    (e.prototype.renderEventDraggingFootprints = function (e, t, n) {
                                        this.renderEventFootprints(e, t, "fc-dragging", n ? null : this.view.opt("dragOpacity"));
                                    }),
                                    (e.prototype.renderEventResizingFootprints = function (e, t, n) {
                                        this.renderEventFootprints(e, t, "fc-resizing");
                                    }),
                                    (e.prototype.renderEventFootprints = function (e, t, n, i) {
                                        var o,
                                            r = this.component.eventFootprintsToSegs(e),
                                            s = "fc-helper " + (n || "");
                                        for (r = this.eventRenderer.renderFgSegEls(r), o = 0; o < r.length; o++) r[o].el.addClass(s);
                                        if (null != i) for (o = 0; o < r.length; o++) r[o].el.css("opacity", i);
                                        this.helperEls = this.renderSegs(r, t);
                                    }),
                                    (e.prototype.renderSegs = function (e, t) {}),
                                    (e.prototype.unrender = function () {
                                        this.helperEls && (this.helperEls.remove(), (this.helperEls = null));
                                    }),
                                    (e.prototype.fabricateEventFootprint = function (e) {
                                        var t,
                                            n = this.view.calendar,
                                            s = n.footprintToDateProfile(e),
                                            a = new i.default(new r.default(n));
                                        return (a.dateProfile = s), (t = a.buildInstance()), new o.default(e, a, t);
                                    }),
                                    e
                                );
                            })();
                        t.default = s;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(21),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.bindToEl = function (e) {
                                        var t = this.component;
                                        t.bindSegHandlerToEl(e, "click", this.handleClick.bind(this)),
                                            t.bindSegHandlerToEl(e, "mouseenter", this.handleMouseover.bind(this)),
                                            t.bindSegHandlerToEl(e, "mouseleave", this.handleMouseout.bind(this));
                                    }),
                                    (t.prototype.handleClick = function (e, t) {
                                        !1 === this.component.publiclyTrigger("eventClick", { context: e.el[0], args: [e.footprint.getEventLegacy(), t, this.view] }) && t.preventDefault();
                                    }),
                                    (t.prototype.handleMouseover = function (e, t) {
                                        o.default.get().shouldIgnoreMouse() ||
                                            this.mousedOverSeg ||
                                            ((this.mousedOverSeg = e),
                                            this.view.isEventDefResizable(e.footprint.eventDef) && e.el.addClass("fc-allow-mouse-resize"),
                                            this.component.publiclyTrigger("eventMouseover", { context: e.el[0], args: [e.footprint.getEventLegacy(), t, this.view] }));
                                    }),
                                    (t.prototype.handleMouseout = function (e, t) {
                                        this.mousedOverSeg &&
                                            ((this.mousedOverSeg = null),
                                            this.view.isEventDefResizable(e.footprint.eventDef) && e.el.removeClass("fc-allow-mouse-resize"),
                                            this.component.publiclyTrigger("eventMouseout", { context: e.el[0], args: [e.footprint.getEventLegacy(), t || {}, this.view] }));
                                    }),
                                    (t.prototype.end = function () {
                                        this.mousedOverSeg && this.handleMouseout(this.mousedOverSeg);
                                    }),
                                    t
                                );
                            })(n(15).default);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(14),
                            r = n(245),
                            s = n(225),
                            a = n(59),
                            l = n(224),
                            c = n(223),
                            u = n(222),
                            d = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return i.__extends(t, e), t;
                            })(o.default);
                        (t.default = d),
                            (d.prototype.dateClickingClass = r.default),
                            (d.prototype.dateSelectingClass = s.default),
                            (d.prototype.eventPointingClass = a.default),
                            (d.prototype.eventDraggingClass = l.default),
                            (d.prototype.eventResizingClass = c.default),
                            (d.prototype.externalDroppingClass = u.default);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(4),
                            s = n(53),
                            a = n(249),
                            l = n(5),
                            c = n(12),
                            u = n(36),
                            d = n(56),
                            p = n(60),
                            h = n(40),
                            f = n(55),
                            m = n(250),
                            g = n(251),
                            v = n(252),
                            y = (function (e) {
                                function t(t) {
                                    var n = e.call(this, t) || this;
                                    return (n.cellWeekNumbersVisible = !1), (n.bottomCoordPadding = 0), (n.isRigid = !1), (n.hasAllDayBusinessHours = !0), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.componentFootprintToSegs = function (e) {
                                        var t,
                                            n,
                                            i = this.sliceRangeByRow(e.unzonedRange);
                                        for (t = 0; t < i.length; t++)
                                            (n = i[t]),
                                                this.isRTL
                                                    ? ((n.leftCol = this.daysPerRow - 1 - n.lastRowDayIndex), (n.rightCol = this.daysPerRow - 1 - n.firstRowDayIndex))
                                                    : ((n.leftCol = n.firstRowDayIndex), (n.rightCol = n.lastRowDayIndex));
                                        return i;
                                    }),
                                    (t.prototype.renderDates = function (e) {
                                        (this.dateProfile = e), this.updateDayTable(), this.renderGrid();
                                    }),
                                    (t.prototype.unrenderDates = function () {
                                        this.removeSegPopover();
                                    }),
                                    (t.prototype.renderGrid = function () {
                                        var e,
                                            t,
                                            n = this.view,
                                            i = this.rowCnt,
                                            o = this.colCnt,
                                            r = "";
                                        for (this.headContainerEl && this.headContainerEl.html(this.renderHeadHtml()), e = 0; e < i; e++) r += this.renderDayRowHtml(e, this.isRigid);
                                        for (
                                            this.el.html(r),
                                                this.rowEls = this.el.find(".fc-row"),
                                                this.cellEls = this.el.find(".fc-day, .fc-disabled-day"),
                                                this.rowCoordCache = new s.default({ els: this.rowEls, isVertical: !0 }),
                                                this.colCoordCache = new s.default({ els: this.cellEls.slice(0, this.colCnt), isHorizontal: !0 }),
                                                e = 0;
                                            e < i;
                                            e++
                                        )
                                            for (t = 0; t < o; t++) this.publiclyTrigger("dayRender", { context: n, args: [this.getCellDate(e, t), this.getCellEl(e, t), n] });
                                    }),
                                    (t.prototype.renderDayRowHtml = function (e, t) {
                                        var n = this.view.calendar.theme,
                                            i = ["fc-row", "fc-week", n.getClass("dayRow")];
                                        return (
                                            t && i.push("fc-rigid"),
                                            '<div class="' +
                                                i.join(" ") +
                                                '"><div class="fc-bg"><table class="' +
                                                n.getClass("tableGrid") +
                                                '">' +
                                                this.renderBgTrHtml(e) +
                                                '</table></div><div class="fc-content-skeleton"><table>' +
                                                (this.getIsNumbersVisible() ? "<thead>" + this.renderNumberTrHtml(e) + "</thead>" : "") +
                                                "</table></div></div>"
                                        );
                                    }),
                                    (t.prototype.getIsNumbersVisible = function () {
                                        return this.getIsDayNumbersVisible() || this.cellWeekNumbersVisible;
                                    }),
                                    (t.prototype.getIsDayNumbersVisible = function () {
                                        return this.rowCnt > 1;
                                    }),
                                    (t.prototype.renderNumberTrHtml = function (e) {
                                        return "<tr>" + (this.isRTL ? "" : this.renderNumberIntroHtml(e)) + this.renderNumberCellsHtml(e) + (this.isRTL ? this.renderNumberIntroHtml(e) : "") + "</tr>";
                                    }),
                                    (t.prototype.renderNumberIntroHtml = function (e) {
                                        return this.renderIntroHtml();
                                    }),
                                    (t.prototype.renderNumberCellsHtml = function (e) {
                                        var t,
                                            n,
                                            i = [];
                                        for (t = 0; t < this.colCnt; t++) (n = this.getCellDate(e, t)), i.push(this.renderNumberCellHtml(n));
                                        return i.join("");
                                    }),
                                    (t.prototype.renderNumberCellHtml = function (e) {
                                        var t,
                                            n,
                                            i = this.view,
                                            o = "",
                                            r = this.dateProfile.activeUnzonedRange.containsDate(e),
                                            s = this.getIsDayNumbersVisible() && r;
                                        return s || this.cellWeekNumbersVisible
                                            ? ((t = this.getDayClasses(e)).unshift("fc-day-top"),
                                              this.cellWeekNumbersVisible && (n = "ISO" === e._locale._fullCalendar_weekCalc ? 1 : e._locale.firstDayOfWeek()),
                                              (o += '<td class="' + t.join(" ") + '"' + (r ? ' data-date="' + e.format() + '"' : "") + ">"),
                                              this.cellWeekNumbersVisible && e.day() === n && (o += i.buildGotoAnchorHtml({ date: e, type: "week" }, { class: "fc-week-number" }, e.format("w"))),
                                              s && (o += i.buildGotoAnchorHtml(e, { class: "fc-day-number" }, e.format("D"))),
                                              (o += "</td>"))
                                            : "<td/>";
                                    }),
                                    (t.prototype.prepareHits = function () {
                                        this.colCoordCache.build(), this.rowCoordCache.build(), (this.rowCoordCache.bottoms[this.rowCnt - 1] += this.bottomCoordPadding);
                                    }),
                                    (t.prototype.releaseHits = function () {
                                        this.colCoordCache.clear(), this.rowCoordCache.clear();
                                    }),
                                    (t.prototype.queryHit = function (e, t) {
                                        if (this.colCoordCache.isLeftInBounds(e) && this.rowCoordCache.isTopInBounds(t)) {
                                            var n = this.colCoordCache.getHorizontalIndex(e),
                                                i = this.rowCoordCache.getVerticalIndex(t);
                                            if (null != i && null != n) return this.getCellHit(i, n);
                                        }
                                    }),
                                    (t.prototype.getHitFootprint = function (e) {
                                        var t = this.getCellRange(e.row, e.col);
                                        return new c.default(new l.default(t.start, t.end), !0);
                                    }),
                                    (t.prototype.getHitEl = function (e) {
                                        return this.getCellEl(e.row, e.col);
                                    }),
                                    (t.prototype.getCellHit = function (e, t) {
                                        return {
                                            row: e,
                                            col: t,
                                            component: this,
                                            left: this.colCoordCache.getLeftOffset(t),
                                            right: this.colCoordCache.getRightOffset(t),
                                            top: this.rowCoordCache.getTopOffset(e),
                                            bottom: this.rowCoordCache.getBottomOffset(e),
                                        };
                                    }),
                                    (t.prototype.getCellEl = function (e, t) {
                                        return this.cellEls.eq(e * this.colCnt + t);
                                    }),
                                    (t.prototype.executeEventUnrender = function () {
                                        this.removeSegPopover(), e.prototype.executeEventUnrender.call(this);
                                    }),
                                    (t.prototype.getOwnEventSegs = function () {
                                        return e.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs || []);
                                    }),
                                    (t.prototype.renderDrag = function (e, t, n) {
                                        var i;
                                        for (i = 0; i < e.length; i++) this.renderHighlight(e[i].componentFootprint);
                                        if (e.length && t && t.component !== this) return this.helperRenderer.renderEventDraggingFootprints(e, t, n), !0;
                                    }),
                                    (t.prototype.unrenderDrag = function () {
                                        this.unrenderHighlight(), this.helperRenderer.unrender();
                                    }),
                                    (t.prototype.renderEventResize = function (e, t, n) {
                                        var i;
                                        for (i = 0; i < e.length; i++) this.renderHighlight(e[i].componentFootprint);
                                        this.helperRenderer.renderEventResizingFootprints(e, t, n);
                                    }),
                                    (t.prototype.unrenderEventResize = function () {
                                        this.unrenderHighlight(), this.helperRenderer.unrender();
                                    }),
                                    (t.prototype.removeSegPopover = function () {
                                        this.segPopover && this.segPopover.hide();
                                    }),
                                    (t.prototype.limitRows = function (e) {
                                        var t,
                                            n,
                                            i = this.eventRenderer.rowStructs || [];
                                        for (t = 0; t < i.length; t++) this.unlimitRow(t), !1 !== (n = !!e && ("number" == typeof e ? e : this.computeRowLevelLimit(t))) && this.limitRow(t, n);
                                    }),
                                    (t.prototype.computeRowLevelLimit = function (e) {
                                        var t,
                                            n,
                                            i,
                                            r = this.rowEls.eq(e).height(),
                                            s = this.eventRenderer.rowStructs[e].tbodyEl.children();
                                        function a(e, t) {
                                            i = Math.max(i, o(t).outerHeight());
                                        }
                                        for (t = 0; t < s.length; t++) if (((n = s.eq(t).removeClass("fc-limited")), (i = 0), n.find("> td > :first-child").each(a), n.position().top + i > r)) return t;
                                        return !1;
                                    }),
                                    (t.prototype.limitRow = function (e, t) {
                                        var n,
                                            i,
                                            r,
                                            s,
                                            a,
                                            l,
                                            c,
                                            u,
                                            d,
                                            p,
                                            h,
                                            f,
                                            m,
                                            g,
                                            v,
                                            y = this,
                                            b = this.eventRenderer.rowStructs[e],
                                            w = [],
                                            _ = 0,
                                            D = function (n) {
                                                for (; _ < n; ) (l = y.getCellSegs(e, _, t)).length && ((d = i[t - 1][_]), (v = y.renderMoreLink(e, _, l)), (g = o("<div/>").append(v)), d.append(g), w.push(g[0])), _++;
                                            };
                                        if (t && t < b.segLevels.length) {
                                            for (n = b.segLevels[t - 1], i = b.cellMatrix, r = b.tbodyEl.children().slice(t).addClass("fc-limited").get(), s = 0; s < n.length; s++) {
                                                for (D((a = n[s]).leftCol), u = [], c = 0; _ <= a.rightCol; ) (l = this.getCellSegs(e, _, t)), u.push(l), (c += l.length), _++;
                                                if (c) {
                                                    for (p = (d = i[t - 1][a.leftCol]).attr("rowspan") || 1, h = [], f = 0; f < u.length; f++)
                                                        (m = o('<td class="fc-more-cell"/>').attr("rowspan", p)),
                                                            (l = u[f]),
                                                            (v = this.renderMoreLink(e, a.leftCol + f, [a].concat(l))),
                                                            (g = o("<div/>").append(v)),
                                                            m.append(g),
                                                            h.push(m[0]),
                                                            w.push(m[0]);
                                                    d.addClass("fc-limited").after(o(h)), r.push(d[0]);
                                                }
                                            }
                                            D(this.colCnt), (b.moreEls = o(w)), (b.limitedEls = o(r));
                                        }
                                    }),
                                    (t.prototype.unlimitRow = function (e) {
                                        var t = this.eventRenderer.rowStructs[e];
                                        t.moreEls && (t.moreEls.remove(), (t.moreEls = null)), t.limitedEls && (t.limitedEls.removeClass("fc-limited"), (t.limitedEls = null));
                                    }),
                                    (t.prototype.renderMoreLink = function (e, t, n) {
                                        var i = this,
                                            r = this.view;
                                        return o('<a class="fc-more"/>')
                                            .text(this.getMoreLinkText(n.length))
                                            .on("click", function (s) {
                                                var a = i.opt("eventLimitClick"),
                                                    l = i.getCellDate(e, t),
                                                    c = o(s.currentTarget),
                                                    u = i.getCellEl(e, t),
                                                    d = i.getCellSegs(e, t),
                                                    p = i.resliceDaySegs(d, l),
                                                    h = i.resliceDaySegs(n, l);
                                                "function" == typeof a && (a = i.publiclyTrigger("eventLimitClick", { context: r, args: [{ date: l.clone(), dayEl: u, moreEl: c, segs: p, hiddenSegs: h }, s, r] })),
                                                    "popover" === a ? i.showSegPopover(e, t, c, p) : "string" == typeof a && r.calendar.zoomTo(l, a);
                                            });
                                    }),
                                    (t.prototype.showSegPopover = function (e, t, n, i) {
                                        var o,
                                            r,
                                            s = this,
                                            l = this.view,
                                            c = n.parent();
                                        (o = 1 === this.rowCnt ? l.el : this.rowEls.eq(e)),
                                            (r = {
                                                className: "fc-more-popover " + l.calendar.theme.getClass("popover"),
                                                content: this.renderSegPopoverContent(e, t, i),
                                                parentEl: l.el,
                                                top: o.offset().top,
                                                autoHide: !0,
                                                viewportConstrain: this.opt("popoverViewportConstrain"),
                                                hide: function () {
                                                    s.popoverSegs && s.triggerBeforeEventSegsDestroyed(s.popoverSegs), s.segPopover.removeElement(), (s.segPopover = null), (s.popoverSegs = null);
                                                },
                                            }),
                                            this.isRTL ? (r.right = c.offset().left + c.outerWidth() + 1) : (r.left = c.offset().left - 1),
                                            (this.segPopover = new a.default(r)),
                                            this.segPopover.show(),
                                            this.bindAllSegHandlersToEl(this.segPopover.el),
                                            this.triggerAfterEventSegsRendered(i);
                                    }),
                                    (t.prototype.renderSegPopoverContent = function (e, t, n) {
                                        var i,
                                            s = this.view.calendar.theme,
                                            a = this.getCellDate(e, t).format(this.opt("dayPopoverFormat")),
                                            l = o(
                                                '<div class="fc-header ' +
                                                    s.getClass("popoverHeader") +
                                                    '"><span class="fc-close ' +
                                                    s.getIconClass("close") +
                                                    '"></span><span class="fc-title">' +
                                                    r.htmlEscape(a) +
                                                    '</span><div class="fc-clear"/></div><div class="fc-body ' +
                                                    s.getClass("popoverContent") +
                                                    '"><div class="fc-event-container"></div></div>'
                                            ),
                                            c = l.find(".fc-event-container");
                                        for (n = this.eventRenderer.renderFgSegEls(n, !0), this.popoverSegs = n, i = 0; i < n.length; i++) this.hitsNeeded(), (n[i].hit = this.getCellHit(e, t)), this.hitsNotNeeded(), c.append(n[i].el);
                                        return l;
                                    }),
                                    (t.prototype.resliceDaySegs = function (e, t) {
                                        var n,
                                            i,
                                            r,
                                            s = t.clone(),
                                            a = s.clone().add(1, "days"),
                                            d = new l.default(s, a),
                                            p = [];
                                        for (n = 0; n < e.length; n++)
                                            (r = (i = e[n]).footprint.componentFootprint.unzonedRange.intersect(d)) &&
                                                p.push(
                                                    o.extend({}, i, {
                                                        footprint: new u.default(new c.default(r, i.footprint.componentFootprint.isAllDay), i.footprint.eventDef, i.footprint.eventInstance),
                                                        isStart: i.isStart && r.isStart,
                                                        isEnd: i.isEnd && r.isEnd,
                                                    })
                                                );
                                        return this.eventRenderer.sortEventSegs(p), p;
                                    }),
                                    (t.prototype.getMoreLinkText = function (e) {
                                        var t = this.opt("eventLimitText");
                                        return "function" == typeof t ? t(e) : "+" + e + " " + t;
                                    }),
                                    (t.prototype.getCellSegs = function (e, t, n) {
                                        for (var i, o = this.eventRenderer.rowStructs[e].segMatrix, r = n || 0, s = []; r < o.length; ) (i = o[r][t]) && s.push(i), r++;
                                        return s;
                                    }),
                                    t
                                );
                            })(h.default);
                        (t.default = y),
                            (y.prototype.eventRendererClass = m.default),
                            (y.prototype.businessHourRendererClass = d.default),
                            (y.prototype.helperRendererClass = g.default),
                            (y.prototype.fillRendererClass = v.default),
                            p.default.mixInto(y),
                            f.default.mixInto(y);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(4),
                            s = n(39),
                            a = n(41),
                            l = n(228),
                            c = n(61),
                            u = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return (
                                        (i.dayGrid = i.instantiateDayGrid()),
                                        (i.dayGrid.isRigid = i.hasRigidRows()),
                                        i.opt("weekNumbers") &&
                                            (i.opt("weekNumbersWithinDays")
                                                ? ((i.dayGrid.cellWeekNumbersVisible = !0), (i.dayGrid.colWeekNumbersVisible = !1))
                                                : ((i.dayGrid.cellWeekNumbersVisible = !1), (i.dayGrid.colWeekNumbersVisible = !0))),
                                        i.addChild(i.dayGrid),
                                        (i.scroller = new s.default({ overflowX: "hidden", overflowY: "auto" })),
                                        i
                                    );
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.instantiateDayGrid = function () {
                                        return new ((function (e) {
                                            function t() {
                                                var t = (null !== e && e.apply(this, arguments)) || this;
                                                return (t.colWeekNumbersVisible = !1), t;
                                            }
                                            return (
                                                i.__extends(t, e),
                                                (t.prototype.renderHeadIntroHtml = function () {
                                                    var e = this.view;
                                                    return this.colWeekNumbersVisible
                                                        ? '<th class="fc-week-number ' + e.calendar.theme.getClass("widgetHeader") + '" ' + e.weekNumberStyleAttr() + "><span>" + r.htmlEscape(this.opt("weekNumberTitle")) + "</span></th>"
                                                        : "";
                                                }),
                                                (t.prototype.renderNumberIntroHtml = function (e) {
                                                    var t = this.view,
                                                        n = this.getCellDate(e, 0);
                                                    return this.colWeekNumbersVisible
                                                        ? '<td class="fc-week-number" ' + t.weekNumberStyleAttr() + ">" + t.buildGotoAnchorHtml({ date: n, type: "week", forceOff: 1 === this.colCnt }, n.format("w")) + "</td>"
                                                        : "";
                                                }),
                                                (t.prototype.renderBgIntroHtml = function () {
                                                    var e = this.view;
                                                    return this.colWeekNumbersVisible ? '<td class="fc-week-number ' + e.calendar.theme.getClass("widgetContent") + '" ' + e.weekNumberStyleAttr() + "></td>" : "";
                                                }),
                                                (t.prototype.renderIntroHtml = function () {
                                                    var e = this.view;
                                                    return this.colWeekNumbersVisible ? '<td class="fc-week-number" ' + e.weekNumberStyleAttr() + "></td>" : "";
                                                }),
                                                (t.prototype.getIsNumbersVisible = function () {
                                                    return c.default.prototype.getIsNumbersVisible.apply(this, arguments) || this.colWeekNumbersVisible;
                                                }),
                                                t
                                            );
                                        })(this.dayGridClass))(this);
                                    }),
                                    (t.prototype.executeDateRender = function (t) {
                                        (this.dayGrid.breakOnWeeks = /year|month|week/.test(t.currentRangeUnit)), e.prototype.executeDateRender.call(this, t);
                                    }),
                                    (t.prototype.renderSkeleton = function () {
                                        var e, t;
                                        this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),
                                            this.scroller.render(),
                                            (e = this.scroller.el.addClass("fc-day-grid-container")),
                                            (t = o('<div class="fc-day-grid" />').appendTo(e)),
                                            this.el.find(".fc-body > tr > td").append(e),
                                            (this.dayGrid.headContainerEl = this.el.find(".fc-head-container")),
                                            this.dayGrid.setElement(t);
                                    }),
                                    (t.prototype.unrenderSkeleton = function () {
                                        this.dayGrid.removeElement(), this.scroller.destroy();
                                    }),
                                    (t.prototype.renderSkeletonHtml = function () {
                                        var e = this.calendar.theme;
                                        return (
                                            '<table class="' +
                                            e.getClass("tableGrid") +
                                            '">' +
                                            (this.opt("columnHeader") ? '<thead class="fc-head"><tr><td class="fc-head-container ' + e.getClass("widgetHeader") + '">&nbsp;</td></tr></thead>' : "") +
                                            '<tbody class="fc-body"><tr><td class="' +
                                            e.getClass("widgetContent") +
                                            '"></td></tr></tbody></table>'
                                        );
                                    }),
                                    (t.prototype.weekNumberStyleAttr = function () {
                                        return null != this.weekNumberWidth ? 'style="width:' + this.weekNumberWidth + 'px"' : "";
                                    }),
                                    (t.prototype.hasRigidRows = function () {
                                        var e = this.opt("eventLimit");
                                        return e && "number" != typeof e;
                                    }),
                                    (t.prototype.updateSize = function (t, n, i) {
                                        var o,
                                            s,
                                            a = this.opt("eventLimit"),
                                            l = this.dayGrid.headContainerEl.find(".fc-row");
                                        this.dayGrid.rowEls
                                            ? (e.prototype.updateSize.call(this, t, n, i),
                                              this.dayGrid.colWeekNumbersVisible && (this.weekNumberWidth = r.matchCellWidths(this.el.find(".fc-week-number"))),
                                              this.scroller.clear(),
                                              r.uncompensateScroll(l),
                                              this.dayGrid.removeSegPopover(),
                                              a && "number" == typeof a && this.dayGrid.limitRows(a),
                                              (o = this.computeScrollerHeight(t)),
                                              this.setGridHeight(o, n),
                                              a && "number" != typeof a && this.dayGrid.limitRows(a),
                                              n ||
                                                  (this.scroller.setHeight(o),
                                                  ((s = this.scroller.getScrollbarWidths()).left || s.right) && (r.compensateScroll(l, s), (o = this.computeScrollerHeight(t)), this.scroller.setHeight(o)),
                                                  this.scroller.lockOverflow(s)))
                                            : n || ((o = this.computeScrollerHeight(t)), this.scroller.setHeight(o));
                                    }),
                                    (t.prototype.computeScrollerHeight = function (e) {
                                        return e - r.subtractInnerElHeight(this.el, this.scroller.el);
                                    }),
                                    (t.prototype.setGridHeight = function (e, t) {
                                        t ? r.undistributeHeight(this.dayGrid.rowEls) : r.distributeHeight(this.dayGrid.rowEls, e, !0);
                                    }),
                                    (t.prototype.computeInitialDateScroll = function () {
                                        return { top: 0 };
                                    }),
                                    (t.prototype.queryDateScroll = function () {
                                        return { top: this.scroller.getScrollTop() };
                                    }),
                                    (t.prototype.applyDateScroll = function (e) {
                                        void 0 !== e.top && this.scroller.setScrollTop(e.top);
                                    }),
                                    t
                                );
                            })(a.default);
                        (t.default = u), (u.prototype.dateProfileGeneratorClass = l.default), (u.prototype.dayGridClass = c.default);
                    },
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    ,
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(5),
                            o = n(12),
                            r = n(49),
                            s = n(6),
                            a = n(35),
                            l = (function () {
                                function e(e, t) {
                                    (this.eventManager = e), (this._calendar = t);
                                }
                                return (
                                    (e.prototype.opt = function (e) {
                                        return this._calendar.opt(e);
                                    }),
                                    (e.prototype.isEventInstanceGroupAllowed = function (e) {
                                        var t,
                                            n = e.getEventDef(),
                                            i = this.eventRangesToEventFootprints(e.getAllEventRanges()),
                                            o = this.getPeerEventInstances(n).map(a.eventInstanceToEventRange),
                                            r = this.eventRangesToEventFootprints(o),
                                            s = n.getConstraint(),
                                            l = n.getOverlap(),
                                            c = this.opt("eventAllow");
                                        for (t = 0; t < i.length; t++) if (!this.isFootprintAllowed(i[t].componentFootprint, r, s, l, i[t].eventInstance)) return !1;
                                        if (c) for (t = 0; t < i.length; t++) if (!1 === c(i[t].componentFootprint.toLegacy(this._calendar), i[t].getEventLegacy())) return !1;
                                        return !0;
                                    }),
                                    (e.prototype.getPeerEventInstances = function (e) {
                                        return this.eventManager.getEventInstancesWithoutId(e.id);
                                    }),
                                    (e.prototype.isSelectionFootprintAllowed = function (e) {
                                        var t,
                                            n = this.eventManager.getEventInstances().map(a.eventInstanceToEventRange),
                                            i = this.eventRangesToEventFootprints(n);
                                        return !!this.isFootprintAllowed(e, i, this.opt("selectConstraint"), this.opt("selectOverlap")) && (!(t = this.opt("selectAllow")) || !1 !== t(e.toLegacy(this._calendar)));
                                    }),
                                    (e.prototype.isFootprintAllowed = function (e, t, n, i, o) {
                                        var r, s;
                                        if (null != n && ((r = this.constraintValToFootprints(n, e.isAllDay)), !this.isFootprintWithinConstraints(e, r))) return !1;
                                        if (((s = this.collectOverlapEventFootprints(t, e)), !1 === i)) {
                                            if (s.length) return !1;
                                        } else if (
                                            "function" == typeof i &&
                                            !(function (e, t, n) {
                                                var i;
                                                for (i = 0; i < e.length; i++) if (!t(e[i].eventInstance.toLegacy(), n ? n.toLegacy() : null)) return !1;
                                                return !0;
                                            })(s, i, o)
                                        )
                                            return !1;
                                        return !(
                                            o &&
                                            !(function (e, t) {
                                                var n,
                                                    i,
                                                    o,
                                                    r,
                                                    s = t.toLegacy();
                                                for (n = 0; n < e.length; n++) {
                                                    if (((i = e[n].eventInstance), (o = i.def), !1 === (r = o.getOverlap()))) return !1;
                                                    if ("function" == typeof r && !r(i.toLegacy(), s)) return !1;
                                                }
                                                return !0;
                                            })(s, o)
                                        );
                                    }),
                                    (e.prototype.isFootprintWithinConstraints = function (e, t) {
                                        var n;
                                        for (n = 0; n < t.length; n++) if (this.footprintContainsFootprint(t[n], e)) return !0;
                                        return !1;
                                    }),
                                    (e.prototype.constraintValToFootprints = function (e, t) {
                                        var n;
                                        return "businessHours" === e
                                            ? this.buildCurrentBusinessFootprints(t)
                                            : "object" == typeof e
                                            ? (n = this.parseEventDefToInstances(e))
                                                ? this.eventInstancesToFootprints(n)
                                                : this.parseFootprints(e)
                                            : null != e
                                            ? ((n = this.eventManager.getEventInstancesWithId(e)), this.eventInstancesToFootprints(n))
                                            : void 0;
                                    }),
                                    (e.prototype.buildCurrentBusinessFootprints = function (e) {
                                        var t = this._calendar.view,
                                            n = t.get("businessHourGenerator"),
                                            i = t.dateProfile.activeUnzonedRange,
                                            o = n.buildEventInstanceGroup(e, i);
                                        return o ? this.eventInstancesToFootprints(o.eventInstances) : [];
                                    }),
                                    (e.prototype.eventInstancesToFootprints = function (e) {
                                        var t = e.map(a.eventInstanceToEventRange);
                                        return this.eventRangesToEventFootprints(t).map(a.eventFootprintToComponentFootprint);
                                    }),
                                    (e.prototype.collectOverlapEventFootprints = function (e, t) {
                                        var n,
                                            i = [];
                                        for (n = 0; n < e.length; n++) this.footprintsIntersect(t, e[n].componentFootprint) && i.push(e[n]);
                                        return i;
                                    }),
                                    (e.prototype.parseEventDefToInstances = function (e) {
                                        var t = this.eventManager,
                                            n = r.default.parse(e, new s.default(this._calendar));
                                        return !!n && n.buildInstances(t.currentPeriod.unzonedRange);
                                    }),
                                    (e.prototype.eventRangesToEventFootprints = function (e) {
                                        var t,
                                            n = [];
                                        for (t = 0; t < e.length; t++) n.push.apply(n, this.eventRangeToEventFootprints(e[t]));
                                        return n;
                                    }),
                                    (e.prototype.eventRangeToEventFootprints = function (e) {
                                        return [a.eventRangeToEventFootprint(e)];
                                    }),
                                    (e.prototype.parseFootprints = function (e) {
                                        var t, n;
                                        return (
                                            e.start && ((t = this._calendar.moment(e.start)).isValid() || (t = null)),
                                            e.end && ((n = this._calendar.moment(e.end)).isValid() || (n = null)),
                                            [new o.default(new i.default(t, n), (t && !t.hasTime()) || (n && !n.hasTime()))]
                                        );
                                    }),
                                    (e.prototype.footprintContainsFootprint = function (e, t) {
                                        return e.unzonedRange.containsRange(t.unzonedRange);
                                    }),
                                    (e.prototype.footprintsIntersect = function (e, t) {
                                        return e.unzonedRange.intersectsWith(t.unzonedRange);
                                    }),
                                    e
                                );
                            })();
                        t.default = l;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(4),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.defineStandardProps = function (e) {
                                        var t = this.prototype;
                                        t.hasOwnProperty("standardPropMap") || (t.standardPropMap = Object.create(t.standardPropMap)), o.copyOwnProps(e, t.standardPropMap);
                                    }),
                                    (t.copyVerbatimStandardProps = function (e, t) {
                                        var n,
                                            i = this.prototype.standardPropMap;
                                        for (n in i) null != e[n] && !0 === i[n] && (t[n] = e[n]);
                                    }),
                                    (t.prototype.applyProps = function (e) {
                                        var t,
                                            n = this.standardPropMap,
                                            i = {},
                                            o = {};
                                        for (t in e) !0 === n[t] ? (this[t] = e[t]) : !1 === n[t] ? (i[t] = e[t]) : (o[t] = e[t]);
                                        return this.applyMiscProps(o), this.applyManualStandardProps(i);
                                    }),
                                    (t.prototype.applyManualStandardProps = function (e) {
                                        return !0;
                                    }),
                                    (t.prototype.applyMiscProps = function (e) {}),
                                    (t.prototype.isStandardProp = function (e) {
                                        return e in this.standardPropMap;
                                    }),
                                    t
                                );
                            })(n(14).default);
                        (t.default = r), (r.prototype.standardPropMap = {});
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var n = (function () {
                            function e(e, t) {
                                (this.def = e), (this.dateProfile = t);
                            }
                            return (
                                (e.prototype.toLegacy = function () {
                                    var e = this.dateProfile,
                                        t = this.def.toLegacy();
                                    return (t.start = e.start.clone()), (t.end = e.end ? e.end.clone() : null), t;
                                }),
                                e
                            );
                        })();
                        t.default = n;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(0),
                            s = n(34),
                            a = n(209),
                            l = n(17),
                            c = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.isAllDay = function () {
                                        return !this.startTime && !this.endTime;
                                    }),
                                    (t.prototype.buildInstances = function (e) {
                                        for (var t, n, i, o = this.source.calendar, r = e.getStart(), s = e.getEnd(), c = []; r.isBefore(s); )
                                            (this.dowHash && !this.dowHash[r.day()]) ||
                                                ((n = (t = o.applyTimezone(r)).clone()),
                                                (i = null),
                                                this.startTime ? n.time(this.startTime) : n.stripTime(),
                                                this.endTime && (i = t.clone().time(this.endTime)),
                                                c.push(new a.default(this, new l.default(n, i, o)))),
                                                r.add(1, "days");
                                        return c;
                                    }),
                                    (t.prototype.setDow = function (e) {
                                        this.dowHash || (this.dowHash = {});
                                        for (var t = 0; t < e.length; t++) this.dowHash[e[t]] = !0;
                                    }),
                                    (t.prototype.clone = function () {
                                        var t = e.prototype.clone.call(this);
                                        return t.startTime && (t.startTime = r.duration(this.startTime)), t.endTime && (t.endTime = r.duration(this.endTime)), this.dowHash && (t.dowHash = o.extend({}, this.dowHash)), t;
                                    }),
                                    t
                                );
                            })(s.default);
                        (t.default = c),
                            (c.prototype.applyProps = function (e) {
                                var t = s.default.prototype.applyProps.call(this, e);
                                return e.start && (this.startTime = r.duration(e.start)), e.end && (this.endTime = r.duration(e.end)), e.dow && this.setDow(e.dow), t;
                            }),
                            c.defineStandardProps({ start: !1, end: !1, dow: !1 });
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var n = (function () {
                            return function (e, t, n) {
                                (this.unzonedRange = e), (this.eventDef = t), n && (this.eventInstance = n);
                            };
                        })();
                        t.default = n;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(35),
                            r = n(18),
                            s = n(210),
                            a = n(6),
                            l = { start: "09:00", end: "17:00", dow: [1, 2, 3, 4, 5], rendering: "inverse-background" },
                            c = (function () {
                                function e(e, t) {
                                    (this.rawComplexDef = e), (this.calendar = t);
                                }
                                return (
                                    (e.prototype.buildEventInstanceGroup = function (e, t) {
                                        var n,
                                            i = this.buildEventDefs(e);
                                        if (i.length) return ((n = new r.default(o.eventDefsToEventInstances(i, t))).explicitEventDef = i[0]), n;
                                    }),
                                    (e.prototype.buildEventDefs = function (e) {
                                        var t,
                                            n = this.rawComplexDef,
                                            o = [],
                                            r = !1,
                                            s = [];
                                        for (!0 === n ? (o = [{}]) : i.isPlainObject(n) ? (o = [n]) : i.isArray(n) && ((o = n), (r = !0)), t = 0; t < o.length; t++) (r && !o[t].dow) || s.push(this.buildEventDef(e, o[t]));
                                        return s;
                                    }),
                                    (e.prototype.buildEventDef = function (e, t) {
                                        var n = i.extend({}, l, t);
                                        return e && ((n.start = null), (n.end = null)), s.default.parse(n, new a.default(this.calendar));
                                    }),
                                    e
                                );
                            })();
                        t.default = c;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return i.__extends(t, e), t;
                            })(n(19).default);
                        (t.default = o),
                            (o.prototype.classes = {
                                widget: "fc-unthemed",
                                widgetHeader: "fc-widget-header",
                                widgetContent: "fc-widget-content",
                                buttonGroup: "fc-button-group",
                                button: "fc-button",
                                cornerLeft: "fc-corner-left",
                                cornerRight: "fc-corner-right",
                                stateDefault: "fc-state-default",
                                stateActive: "fc-state-active",
                                stateDisabled: "fc-state-disabled",
                                stateHover: "fc-state-hover",
                                stateDown: "fc-state-down",
                                popoverHeader: "fc-widget-header",
                                popoverContent: "fc-widget-content",
                                headerRow: "fc-widget-header",
                                dayRow: "fc-widget-content",
                                listView: "fc-widget-content",
                            }),
                            (o.prototype.baseIconClass = "fc-icon"),
                            (o.prototype.iconClasses = { close: "fc-icon-x", prev: "fc-icon-left-single-arrow", next: "fc-icon-right-single-arrow", prevYear: "fc-icon-left-double-arrow", nextYear: "fc-icon-right-double-arrow" }),
                            (o.prototype.iconOverrideOption = "buttonIcons"),
                            (o.prototype.iconOverrideCustomButtonOption = "icon"),
                            (o.prototype.iconOverridePrefix = "fc-icon-");
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return i.__extends(t, e), t;
                            })(n(19).default);
                        (t.default = o),
                            (o.prototype.classes = {
                                widget: "ui-widget",
                                widgetHeader: "ui-widget-header",
                                widgetContent: "ui-widget-content",
                                buttonGroup: "fc-button-group",
                                button: "ui-button",
                                cornerLeft: "ui-corner-left",
                                cornerRight: "ui-corner-right",
                                stateDefault: "ui-state-default",
                                stateActive: "ui-state-active",
                                stateDisabled: "ui-state-disabled",
                                stateHover: "ui-state-hover",
                                stateDown: "ui-state-down",
                                today: "ui-state-highlight",
                                popoverHeader: "ui-widget-header",
                                popoverContent: "ui-widget-content",
                                headerRow: "ui-widget-header",
                                dayRow: "ui-widget-content",
                                listView: "ui-widget-content",
                            }),
                            (o.prototype.baseIconClass = "ui-icon"),
                            (o.prototype.iconClasses = { close: "ui-icon-closethick", prev: "ui-icon-circle-triangle-w", next: "ui-icon-circle-triangle-e", prevYear: "ui-icon-seek-prev", nextYear: "ui-icon-seek-next" }),
                            (o.prototype.iconOverrideOption = "themeButtonIcons"),
                            (o.prototype.iconOverrideCustomButtonOption = "themeIcon"),
                            (o.prototype.iconOverridePrefix = "ui-icon-");
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(20),
                            s = n(6),
                            a = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.parse = function (e, t) {
                                        var n;
                                        return o.isFunction(e.events) ? (n = e) : o.isFunction(e) && (n = { events: e }), !!n && s.default.parse.call(this, n, t);
                                    }),
                                    (t.prototype.fetch = function (e, t, n) {
                                        var i = this;
                                        return (
                                            this.calendar.pushLoading(),
                                            r.default.construct(function (o) {
                                                i.func.call(i.calendar, e.clone(), t.clone(), n, function (e) {
                                                    i.calendar.popLoading(), o(i.parseEventDefs(e));
                                                });
                                            })
                                        );
                                    }),
                                    (t.prototype.getPrimitive = function () {
                                        return this.func;
                                    }),
                                    (t.prototype.applyManualStandardProps = function (t) {
                                        var n = e.prototype.applyManualStandardProps.call(this, t);
                                        return (this.func = t.events), n;
                                    }),
                                    t
                                );
                            })(s.default);
                        (t.default = a), a.defineStandardProps({ events: !1 });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(4),
                            s = n(20),
                            a = n(6),
                            l = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.parse = function (e, t) {
                                        var n;
                                        return "string" == typeof e.url ? (n = e) : "string" == typeof e && (n = { url: e }), !!n && a.default.parse.call(this, n, t);
                                    }),
                                    (t.prototype.fetch = function (e, n, i) {
                                        var a = this,
                                            l = this.ajaxSettings,
                                            c = l.success,
                                            u = l.error,
                                            d = this.buildRequestParams(e, n, i);
                                        return (
                                            this.calendar.pushLoading(),
                                            s.default.construct(function (e, n) {
                                                o.ajax(
                                                    o.extend({}, t.AJAX_DEFAULTS, l, {
                                                        url: a.url,
                                                        data: d,
                                                        success: function (t, i, s) {
                                                            var l;
                                                            a.calendar.popLoading(), t ? ((l = r.applyAll(c, a, [t, i, s])), o.isArray(l) && (t = l), e(a.parseEventDefs(t))) : n();
                                                        },
                                                        error: function (e, t, i) {
                                                            a.calendar.popLoading(), r.applyAll(u, a, [e, t, i]), n();
                                                        },
                                                    })
                                                );
                                            })
                                        );
                                    }),
                                    (t.prototype.buildRequestParams = function (e, t, n) {
                                        var i,
                                            r,
                                            s,
                                            a,
                                            l = this.calendar,
                                            c = this.ajaxSettings,
                                            u = {};
                                        return (
                                            null == (i = this.startParam) && (i = l.opt("startParam")),
                                            null == (r = this.endParam) && (r = l.opt("endParam")),
                                            null == (s = this.timezoneParam) && (s = l.opt("timezoneParam")),
                                            (a = o.isFunction(c.data) ? c.data() : c.data || {}),
                                            o.extend(u, a),
                                            (u[i] = e.format()),
                                            (u[r] = t.format()),
                                            n && "local" !== n && (u[s] = n),
                                            u
                                        );
                                    }),
                                    (t.prototype.getPrimitive = function () {
                                        return this.url;
                                    }),
                                    (t.prototype.applyMiscProps = function (e) {
                                        this.ajaxSettings = e;
                                    }),
                                    (t.AJAX_DEFAULTS = { dataType: "json", cache: !1 }),
                                    t
                                );
                            })(a.default);
                        (t.default = l), l.defineStandardProps({ url: !0, startParam: !0, endParam: !0, timezoneParam: !0 });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(11),
                            o = (function () {
                                function e() {
                                    (this.q = []), (this.isPaused = !1), (this.isRunning = !1);
                                }
                                return (
                                    (e.prototype.queue = function () {
                                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                                        this.q.push.apply(this.q, e), this.tryStart();
                                    }),
                                    (e.prototype.pause = function () {
                                        this.isPaused = !0;
                                    }),
                                    (e.prototype.resume = function () {
                                        (this.isPaused = !1), this.tryStart();
                                    }),
                                    (e.prototype.getIsIdle = function () {
                                        return !this.isRunning && !this.isPaused;
                                    }),
                                    (e.prototype.tryStart = function () {
                                        !this.isRunning && this.canRunNext() && ((this.isRunning = !0), this.trigger("start"), this.runRemaining());
                                    }),
                                    (e.prototype.canRunNext = function () {
                                        return !this.isPaused && this.q.length;
                                    }),
                                    (e.prototype.runRemaining = function () {
                                        var e,
                                            t,
                                            n = this;
                                        do {
                                            if (((e = this.q.shift()), (t = this.runTask(e)) && t.then))
                                                return void t.then(function () {
                                                    n.canRunNext() && n.runRemaining();
                                                });
                                        } while (this.canRunNext());
                                        this.trigger("stop"), (this.isRunning = !1), this.tryStart();
                                    }),
                                    (e.prototype.runTask = function (e) {
                                        return e();
                                    }),
                                    e
                                );
                            })();
                        (t.default = o), i.default.mixInto(o);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = (function (e) {
                                function t(t) {
                                    var n = e.call(this) || this;
                                    return (n.waitsByNamespace = t || {}), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.queue = function (e, t, n) {
                                        var i,
                                            o = { func: e, namespace: t, type: n };
                                        t && (i = this.waitsByNamespace[t]),
                                            this.waitNamespace && (t === this.waitNamespace && null != i ? this.delayWait(i) : (this.clearWait(), this.tryStart())),
                                            this.compoundTask(o) && (this.waitNamespace || null == i ? this.tryStart() : this.startWait(t, i));
                                    }),
                                    (t.prototype.startWait = function (e, t) {
                                        (this.waitNamespace = e), this.spawnWait(t);
                                    }),
                                    (t.prototype.delayWait = function (e) {
                                        clearTimeout(this.waitId), this.spawnWait(e);
                                    }),
                                    (t.prototype.spawnWait = function (e) {
                                        var t = this;
                                        this.waitId = setTimeout(function () {
                                            (t.waitNamespace = null), t.tryStart();
                                        }, e);
                                    }),
                                    (t.prototype.clearWait = function () {
                                        this.waitNamespace && (clearTimeout(this.waitId), (this.waitId = null), (this.waitNamespace = null));
                                    }),
                                    (t.prototype.canRunNext = function () {
                                        if (!e.prototype.canRunNext.call(this)) return !1;
                                        if (this.waitNamespace) {
                                            for (var t = this.q, n = 0; n < t.length; n++) if (t[n].namespace !== this.waitNamespace) return !0;
                                            return !1;
                                        }
                                        return !0;
                                    }),
                                    (t.prototype.runTask = function (e) {
                                        e.func();
                                    }),
                                    (t.prototype.compoundTask = function (e) {
                                        var t,
                                            n = this.q,
                                            i = !0;
                                        if (e.namespace && "destroy" === e.type)
                                            for (t = n.length - 1; t >= 0; t--)
                                                switch (n[t].type) {
                                                    case "init":
                                                        i = !1;
                                                    case "add":
                                                    case "remove":
                                                        n.splice(t, 1);
                                                }
                                        return i && n.push(e), i;
                                    }),
                                    t
                                );
                            })(n(217).default);
                        t.default = o;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(0),
                            s = n(4),
                            a = n(10),
                            l = n(47),
                            c = n(237),
                            u = n(35),
                            d = (function (e) {
                                function t(n, i) {
                                    var o = e.call(this) || this;
                                    return (
                                        (o.isRTL = !1),
                                        (o.hitsNeededDepth = 0),
                                        (o.hasAllDayBusinessHours = !1),
                                        (o.isDatesRendered = !1),
                                        n && (o.view = n),
                                        i && (o.options = i),
                                        (o.uid = String(t.guid++)),
                                        (o.childrenByUid = {}),
                                        (o.nextDayThreshold = r.duration(o.opt("nextDayThreshold"))),
                                        (o.isRTL = o.opt("isRTL")),
                                        o.fillRendererClass && (o.fillRenderer = new o.fillRendererClass(o)),
                                        o.eventRendererClass && (o.eventRenderer = new o.eventRendererClass(o, o.fillRenderer)),
                                        o.helperRendererClass && o.eventRenderer && (o.helperRenderer = new o.helperRendererClass(o, o.eventRenderer)),
                                        o.businessHourRendererClass && o.fillRenderer && (o.businessHourRenderer = new o.businessHourRendererClass(o, o.fillRenderer)),
                                        o
                                    );
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.addChild = function (e) {
                                        return !this.childrenByUid[e.uid] && ((this.childrenByUid[e.uid] = e), !0);
                                    }),
                                    (t.prototype.removeChild = function (e) {
                                        return !!this.childrenByUid[e.uid] && (delete this.childrenByUid[e.uid], !0);
                                    }),
                                    (t.prototype.updateSize = function (e, t, n) {
                                        this.callChildren("updateSize", arguments);
                                    }),
                                    (t.prototype.opt = function (e) {
                                        return this._getView().opt(e);
                                    }),
                                    (t.prototype.publiclyTrigger = function () {
                                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                                        var n = this._getCalendar();
                                        return n.publiclyTrigger.apply(n, e);
                                    }),
                                    (t.prototype.hasPublicHandlers = function () {
                                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                                        var n = this._getCalendar();
                                        return n.hasPublicHandlers.apply(n, e);
                                    }),
                                    (t.prototype.executeDateRender = function (e) {
                                        (this.dateProfile = e), this.renderDates(e), (this.isDatesRendered = !0), this.callChildren("executeDateRender", arguments);
                                    }),
                                    (t.prototype.executeDateUnrender = function () {
                                        this.callChildren("executeDateUnrender", arguments), (this.dateProfile = null), this.unrenderDates(), (this.isDatesRendered = !1);
                                    }),
                                    (t.prototype.renderDates = function (e) {}),
                                    (t.prototype.unrenderDates = function () {}),
                                    (t.prototype.getNowIndicatorUnit = function () {}),
                                    (t.prototype.renderNowIndicator = function (e) {
                                        this.callChildren("renderNowIndicator", arguments);
                                    }),
                                    (t.prototype.unrenderNowIndicator = function () {
                                        this.callChildren("unrenderNowIndicator", arguments);
                                    }),
                                    (t.prototype.renderBusinessHours = function (e) {
                                        this.businessHourRenderer && this.businessHourRenderer.render(e), this.callChildren("renderBusinessHours", arguments);
                                    }),
                                    (t.prototype.unrenderBusinessHours = function () {
                                        this.callChildren("unrenderBusinessHours", arguments), this.businessHourRenderer && this.businessHourRenderer.unrender();
                                    }),
                                    (t.prototype.executeEventRender = function (e) {
                                        this.eventRenderer
                                            ? (this.eventRenderer.rangeUpdated(), this.eventRenderer.render(e))
                                            : this.renderEvents &&
                                              this.renderEvents(
                                                  (function (e) {
                                                      var t,
                                                          n,
                                                          i,
                                                          o = [];
                                                      for (t in e) for (n = e[t].eventInstances, i = 0; i < n.length; i++) o.push(n[i].toLegacy());
                                                      return o;
                                                  })(e)
                                              ),
                                            this.callChildren("executeEventRender", arguments);
                                    }),
                                    (t.prototype.executeEventUnrender = function () {
                                        this.callChildren("executeEventUnrender", arguments), this.eventRenderer ? this.eventRenderer.unrender() : this.destroyEvents && this.destroyEvents();
                                    }),
                                    (t.prototype.getBusinessHourSegs = function () {
                                        var e = this.getOwnBusinessHourSegs();
                                        return (
                                            this.iterChildren(function (t) {
                                                e.push.apply(e, t.getBusinessHourSegs());
                                            }),
                                            e
                                        );
                                    }),
                                    (t.prototype.getOwnBusinessHourSegs = function () {
                                        return this.businessHourRenderer ? this.businessHourRenderer.getSegs() : [];
                                    }),
                                    (t.prototype.getEventSegs = function () {
                                        var e = this.getOwnEventSegs();
                                        return (
                                            this.iterChildren(function (t) {
                                                e.push.apply(e, t.getEventSegs());
                                            }),
                                            e
                                        );
                                    }),
                                    (t.prototype.getOwnEventSegs = function () {
                                        return this.eventRenderer ? this.eventRenderer.getSegs() : [];
                                    }),
                                    (t.prototype.triggerAfterEventsRendered = function () {
                                        this.triggerAfterEventSegsRendered(this.getEventSegs()), this.publiclyTrigger("eventAfterAllRender", { context: this, args: [this] });
                                    }),
                                    (t.prototype.triggerAfterEventSegsRendered = function (e) {
                                        var t = this;
                                        this.hasPublicHandlers("eventAfterRender") &&
                                            e.forEach(function (e) {
                                                var n;
                                                e.el && ((n = e.footprint.getEventLegacy()), t.publiclyTrigger("eventAfterRender", { context: n, args: [n, e.el, t] }));
                                            });
                                    }),
                                    (t.prototype.triggerBeforeEventsDestroyed = function () {
                                        this.triggerBeforeEventSegsDestroyed(this.getEventSegs());
                                    }),
                                    (t.prototype.triggerBeforeEventSegsDestroyed = function (e) {
                                        var t = this;
                                        this.hasPublicHandlers("eventDestroy") &&
                                            e.forEach(function (e) {
                                                var n;
                                                e.el && ((n = e.footprint.getEventLegacy()), t.publiclyTrigger("eventDestroy", { context: n, args: [n, e.el, t] }));
                                            });
                                    }),
                                    (t.prototype.showEventsWithId = function (e) {
                                        this.getEventSegs().forEach(function (t) {
                                            t.footprint.eventDef.id === e && t.el && t.el.css("visibility", "");
                                        }),
                                            this.callChildren("showEventsWithId", arguments);
                                    }),
                                    (t.prototype.hideEventsWithId = function (e) {
                                        this.getEventSegs().forEach(function (t) {
                                            t.footprint.eventDef.id === e && t.el && t.el.css("visibility", "hidden");
                                        }),
                                            this.callChildren("hideEventsWithId", arguments);
                                    }),
                                    (t.prototype.renderDrag = function (e, t, n) {
                                        var i = !1;
                                        return (
                                            this.iterChildren(function (o) {
                                                o.renderDrag(e, t, n) && (i = !0);
                                            }),
                                            i
                                        );
                                    }),
                                    (t.prototype.unrenderDrag = function () {
                                        this.callChildren("unrenderDrag", arguments);
                                    }),
                                    (t.prototype.renderEventResize = function (e, t, n) {
                                        this.callChildren("renderEventResize", arguments);
                                    }),
                                    (t.prototype.unrenderEventResize = function () {
                                        this.callChildren("unrenderEventResize", arguments);
                                    }),
                                    (t.prototype.renderSelectionFootprint = function (e) {
                                        this.renderHighlight(e), this.callChildren("renderSelectionFootprint", arguments);
                                    }),
                                    (t.prototype.unrenderSelection = function () {
                                        this.unrenderHighlight(), this.callChildren("unrenderSelection", arguments);
                                    }),
                                    (t.prototype.renderHighlight = function (e) {
                                        this.fillRenderer &&
                                            this.fillRenderer.renderFootprint("highlight", e, {
                                                getClasses: function () {
                                                    return ["fc-highlight"];
                                                },
                                            }),
                                            this.callChildren("renderHighlight", arguments);
                                    }),
                                    (t.prototype.unrenderHighlight = function () {
                                        this.fillRenderer && this.fillRenderer.unrender("highlight"), this.callChildren("unrenderHighlight", arguments);
                                    }),
                                    (t.prototype.hitsNeeded = function () {
                                        this.hitsNeededDepth++ || this.prepareHits(), this.callChildren("hitsNeeded", arguments);
                                    }),
                                    (t.prototype.hitsNotNeeded = function () {
                                        this.hitsNeededDepth && !--this.hitsNeededDepth && this.releaseHits(), this.callChildren("hitsNotNeeded", arguments);
                                    }),
                                    (t.prototype.prepareHits = function () {}),
                                    (t.prototype.releaseHits = function () {}),
                                    (t.prototype.queryHit = function (e, t) {
                                        var n,
                                            i,
                                            o = this.childrenByUid;
                                        for (n in o) if ((i = o[n].queryHit(e, t))) break;
                                        return i;
                                    }),
                                    (t.prototype.getSafeHitFootprint = function (e) {
                                        var t = this.getHitFootprint(e);
                                        return this.dateProfile.activeUnzonedRange.containsRange(t.unzonedRange) ? t : null;
                                    }),
                                    (t.prototype.getHitFootprint = function (e) {}),
                                    (t.prototype.getHitEl = function (e) {}),
                                    (t.prototype.eventRangesToEventFootprints = function (e) {
                                        var t,
                                            n = [];
                                        for (t = 0; t < e.length; t++) n.push.apply(n, this.eventRangeToEventFootprints(e[t]));
                                        return n;
                                    }),
                                    (t.prototype.eventRangeToEventFootprints = function (e) {
                                        return [u.eventRangeToEventFootprint(e)];
                                    }),
                                    (t.prototype.eventFootprintsToSegs = function (e) {
                                        var t,
                                            n = [];
                                        for (t = 0; t < e.length; t++) n.push.apply(n, this.eventFootprintToSegs(e[t]));
                                        return n;
                                    }),
                                    (t.prototype.eventFootprintToSegs = function (e) {
                                        var t,
                                            n,
                                            i,
                                            o = e.componentFootprint.unzonedRange;
                                        for (t = this.componentFootprintToSegs(e.componentFootprint), n = 0; n < t.length; n++) (i = t[n]), o.isStart || (i.isStart = !1), o.isEnd || (i.isEnd = !1), (i.footprint = e);
                                        return t;
                                    }),
                                    (t.prototype.componentFootprintToSegs = function (e) {
                                        return [];
                                    }),
                                    (t.prototype.callChildren = function (e, t) {
                                        this.iterChildren(function (n) {
                                            n[e].apply(n, t);
                                        });
                                    }),
                                    (t.prototype.iterChildren = function (e) {
                                        var t,
                                            n = this.childrenByUid;
                                        for (t in n) e(n[t]);
                                    }),
                                    (t.prototype._getCalendar = function () {
                                        return this.calendar || this.view.calendar;
                                    }),
                                    (t.prototype._getView = function () {
                                        return this.view;
                                    }),
                                    (t.prototype._getDateProfile = function () {
                                        return this._getView().get("dateProfile");
                                    }),
                                    (t.prototype.buildGotoAnchorHtml = function (e, t, n) {
                                        var i, r, l, c;
                                        return (
                                            o.isPlainObject(e) ? ((i = e.date), (r = e.type), (l = e.forceOff)) : (i = e),
                                            (c = { date: (i = a.default(i)).format("YYYY-MM-DD"), type: r || "day" }),
                                            "string" == typeof t && ((n = t), (t = null)),
                                            (t = t ? " " + s.attrsToStr(t) : ""),
                                            (n = n || ""),
                                            !l && this.opt("navLinks") ? "<a" + t + ' data-goto="' + s.htmlEscape(JSON.stringify(c)) + '">' + n + "</a>" : "<span" + t + ">" + n + "</span>"
                                        );
                                    }),
                                    (t.prototype.getAllDayHtml = function () {
                                        return this.opt("allDayHtml") || s.htmlEscape(this.opt("allDayText"));
                                    }),
                                    (t.prototype.getDayClasses = function (e, t) {
                                        var n,
                                            i = this._getView(),
                                            o = [];
                                        return (
                                            this.dateProfile.activeUnzonedRange.containsDate(e)
                                                ? (o.push("fc-" + s.dayIDs[e.day()]),
                                                  i.isDateInOtherMonth(e, this.dateProfile) && o.push("fc-other-month"),
                                                  (n = i.calendar.getNow()),
                                                  e.isSame(n, "day") ? (o.push("fc-today"), !0 !== t && o.push(i.calendar.theme.getClass("today"))) : e < n ? o.push("fc-past") : o.push("fc-future"))
                                                : o.push("fc-disabled-day"),
                                            o
                                        );
                                    }),
                                    (t.prototype.formatRange = function (e, t, n, i) {
                                        var o = e.end;
                                        return t && (o = o.clone().subtract(1)), l.formatRange(e.start, o, n, i, this.isRTL);
                                    }),
                                    (t.prototype.currentRangeAs = function (e) {
                                        return this._getDateProfile().currentUnzonedRange.as(e);
                                    }),
                                    (t.prototype.computeDayRange = function (e) {
                                        var t = this._getCalendar(),
                                            n = t.msToUtcMoment(e.startMs, !0),
                                            i = t.msToUtcMoment(e.endMs),
                                            o = +i.time(),
                                            r = i.clone().stripTime();
                                        return o && o >= this.nextDayThreshold && r.add(1, "days"), r <= n && (r = n.clone().add(1, "days")), { start: n, end: r };
                                    }),
                                    (t.prototype.isMultiDayRange = function (e) {
                                        var t = this.computeDayRange(e);
                                        return t.end.diff(t.start, "days") > 1;
                                    }),
                                    (t.guid = 0),
                                    t
                                );
                            })(c.default);
                        t.default = d;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(0),
                            r = n(4),
                            s = n(32),
                            a = n(238),
                            l = n(21),
                            c = n(11),
                            u = n(7),
                            d = n(239),
                            p = n(240),
                            h = n(241),
                            f = n(207),
                            m = n(31),
                            g = n(10),
                            v = n(5),
                            y = n(12),
                            b = n(17),
                            w = n(242),
                            _ = n(212),
                            D = n(38),
                            C = n(49),
                            S = n(13),
                            x = n(37),
                            E = n(6),
                            T = n(51),
                            R = (function () {
                                function e(e, t) {
                                    (this.loadingLevel = 0),
                                        (this.ignoreUpdateViewSize = 0),
                                        (this.freezeContentHeightDepth = 0),
                                        l.default.needed(),
                                        (this.el = e),
                                        (this.viewsByType = {}),
                                        (this.optionsManager = new p.default(this, t)),
                                        (this.viewSpecManager = new h.default(this.optionsManager, this)),
                                        this.initMomentInternals(),
                                        this.initCurrentDate(),
                                        this.initEventManager(),
                                        (this.constraints = new f.default(this.eventManager, this)),
                                        this.constructed();
                                }
                                return (
                                    (e.prototype.constructed = function () {}),
                                    (e.prototype.getView = function () {
                                        return this.view;
                                    }),
                                    (e.prototype.publiclyTrigger = function (e, t) {
                                        var n,
                                            o,
                                            r = this.opt(e);
                                        if ((i.isPlainObject(t) ? ((n = t.context), (o = t.args)) : i.isArray(t) && (o = t), null == n && (n = this.el[0]), o || (o = []), this.triggerWith(e, n, o), r)) return r.apply(n, o);
                                    }),
                                    (e.prototype.hasPublicHandlers = function (e) {
                                        return this.hasHandlers(e) || this.opt(e);
                                    }),
                                    (e.prototype.option = function (e, t) {
                                        var n;
                                        if ("string" == typeof e) {
                                            if (void 0 === t) return this.optionsManager.get(e);
                                            ((n = {})[e] = t), this.optionsManager.add(n);
                                        } else "object" == typeof e && this.optionsManager.add(e);
                                    }),
                                    (e.prototype.opt = function (e) {
                                        return this.optionsManager.get(e);
                                    }),
                                    (e.prototype.instantiateView = function (e) {
                                        var t = this.viewSpecManager.getViewSpec(e);
                                        if (!t) throw new Error('View type "' + e + '" is not valid');
                                        return new t.class(this, t);
                                    }),
                                    (e.prototype.isValidViewType = function (e) {
                                        return Boolean(this.viewSpecManager.getViewSpec(e));
                                    }),
                                    (e.prototype.changeView = function (e, t) {
                                        t && (t.start && t.end ? this.optionsManager.recordOverrides({ visibleRange: t }) : (this.currentDate = this.moment(t).stripZone())), this.renderView(e);
                                    }),
                                    (e.prototype.zoomTo = function (e, t) {
                                        var n;
                                        (t = t || "day"), (n = this.viewSpecManager.getViewSpec(t) || this.viewSpecManager.getUnitViewSpec(t)), (this.currentDate = e.clone()), this.renderView(n ? n.type : null);
                                    }),
                                    (e.prototype.initCurrentDate = function () {
                                        var e = this.opt("defaultDate");
                                        this.currentDate = null != e ? this.moment(e).stripZone() : this.getNow();
                                    }),
                                    (e.prototype.prev = function () {
                                        var e = this.view,
                                            t = e.dateProfileGenerator.buildPrev(e.get("dateProfile"));
                                        t.isValid && ((this.currentDate = t.date), this.renderView());
                                    }),
                                    (e.prototype.next = function () {
                                        var e = this.view,
                                            t = e.dateProfileGenerator.buildNext(e.get("dateProfile"));
                                        t.isValid && ((this.currentDate = t.date), this.renderView());
                                    }),
                                    (e.prototype.prevYear = function () {
                                        this.currentDate.add(-1, "years"), this.renderView();
                                    }),
                                    (e.prototype.nextYear = function () {
                                        this.currentDate.add(1, "years"), this.renderView();
                                    }),
                                    (e.prototype.today = function () {
                                        (this.currentDate = this.getNow()), this.renderView();
                                    }),
                                    (e.prototype.gotoDate = function (e) {
                                        (this.currentDate = this.moment(e).stripZone()), this.renderView();
                                    }),
                                    (e.prototype.incrementDate = function (e) {
                                        this.currentDate.add(o.duration(e)), this.renderView();
                                    }),
                                    (e.prototype.getDate = function () {
                                        return this.applyTimezone(this.currentDate);
                                    }),
                                    (e.prototype.pushLoading = function () {
                                        this.loadingLevel++ || this.publiclyTrigger("loading", [!0, this.view]);
                                    }),
                                    (e.prototype.popLoading = function () {
                                        --this.loadingLevel || this.publiclyTrigger("loading", [!1, this.view]);
                                    }),
                                    (e.prototype.render = function () {
                                        this.contentEl ? this.elementVisible() && (this.calcSize(), this.updateViewSize()) : this.initialRender();
                                    }),
                                    (e.prototype.initialRender = function () {
                                        var e = this,
                                            t = this.el;
                                        t.addClass("fc"),
                                            t.on("click.fc", "a[data-goto]", function (t) {
                                                var n = i(t.currentTarget).data("goto"),
                                                    o = e.moment(n.date),
                                                    s = n.type,
                                                    a = e.view.opt("navLink" + r.capitaliseFirstLetter(s) + "Click");
                                                "function" == typeof a ? a(o, t) : ("string" == typeof a && (s = a), e.zoomTo(o, s));
                                            }),
                                            this.optionsManager.watch(
                                                "settingTheme",
                                                ["?theme", "?themeSystem"],
                                                function (n) {
                                                    var i = new (T.getThemeSystemClass(n.themeSystem || n.theme))(e.optionsManager),
                                                        o = i.getClass("widget");
                                                    (e.theme = i), o && t.addClass(o);
                                                },
                                                function () {
                                                    var n = e.theme.getClass("widget");
                                                    (e.theme = null), n && t.removeClass(n);
                                                }
                                            ),
                                            this.optionsManager.watch(
                                                "settingBusinessHourGenerator",
                                                ["?businessHours"],
                                                function (t) {
                                                    (e.businessHourGenerator = new _.default(t.businessHours, e)), e.view && e.view.set("businessHourGenerator", e.businessHourGenerator);
                                                },
                                                function () {
                                                    e.businessHourGenerator = null;
                                                }
                                            ),
                                            this.optionsManager.watch("applyingDirClasses", ["?isRTL", "?locale"], function (e) {
                                                t.toggleClass("fc-ltr", !e.isRTL), t.toggleClass("fc-rtl", e.isRTL);
                                            }),
                                            (this.contentEl = i("<div class='fc-view-container'/>").prependTo(t)),
                                            this.initToolbars(),
                                            this.renderHeader(),
                                            this.renderFooter(),
                                            this.renderView(this.opt("defaultView")),
                                            this.opt("handleWindowResize") && i(window).resize((this.windowResizeProxy = r.debounce(this.windowResize.bind(this), this.opt("windowResizeDelay"))));
                                    }),
                                    (e.prototype.destroy = function () {
                                        this.view && this.clearView(),
                                            this.toolbarsManager.proxyCall("removeElement"),
                                            this.contentEl.remove(),
                                            this.el.removeClass("fc fc-ltr fc-rtl"),
                                            this.optionsManager.unwatch("settingTheme"),
                                            this.optionsManager.unwatch("settingBusinessHourGenerator"),
                                            this.el.off(".fc"),
                                            this.windowResizeProxy && (i(window).unbind("resize", this.windowResizeProxy), (this.windowResizeProxy = null)),
                                            l.default.unneeded();
                                    }),
                                    (e.prototype.elementVisible = function () {
                                        return this.el.is(":visible");
                                    }),
                                    (e.prototype.bindViewHandlers = function (e) {
                                        var t = this;
                                        e.watch("titleForCalendar", ["title"], function (n) {
                                            e === t.view && t.setToolbarsTitle(n.title);
                                        }),
                                            e.watch("dateProfileForCalendar", ["dateProfile"], function (n) {
                                                e === t.view && ((t.currentDate = n.dateProfile.date), t.updateToolbarButtons(n.dateProfile));
                                            });
                                    }),
                                    (e.prototype.unbindViewHandlers = function (e) {
                                        e.unwatch("titleForCalendar"), e.unwatch("dateProfileForCalendar");
                                    }),
                                    (e.prototype.renderView = function (e) {
                                        var t,
                                            n = this.view;
                                        this.freezeContentHeight(),
                                            n && e && n.type !== e && this.clearView(),
                                            !this.view &&
                                                e &&
                                                ((t = this.view = this.viewsByType[e] || (this.viewsByType[e] = this.instantiateView(e))),
                                                this.bindViewHandlers(t),
                                                t.startBatchRender(),
                                                t.setElement(i("<div class='fc-view fc-" + e + "-view' />").appendTo(this.contentEl)),
                                                this.toolbarsManager.proxyCall("activateButton", e)),
                                            this.view &&
                                                (this.view.get("businessHourGenerator") !== this.businessHourGenerator && this.view.set("businessHourGenerator", this.businessHourGenerator),
                                                this.view.setDate(this.currentDate),
                                                t && t.stopBatchRender()),
                                            this.thawContentHeight();
                                    }),
                                    (e.prototype.clearView = function () {
                                        var e = this.view;
                                        this.toolbarsManager.proxyCall("deactivateButton", e.type), this.unbindViewHandlers(e), e.removeElement(), e.unsetDate(), (this.view = null);
                                    }),
                                    (e.prototype.reinitView = function () {
                                        var e = this.view,
                                            t = e.queryScroll();
                                        this.freezeContentHeight(), this.clearView(), this.calcSize(), this.renderView(e.type), this.view.applyScroll(t), this.thawContentHeight();
                                    }),
                                    (e.prototype.getSuggestedViewHeight = function () {
                                        return null == this.suggestedViewHeight && this.calcSize(), this.suggestedViewHeight;
                                    }),
                                    (e.prototype.isHeightAuto = function () {
                                        return "auto" === this.opt("contentHeight") || "auto" === this.opt("height");
                                    }),
                                    (e.prototype.updateViewSize = function (e) {
                                        void 0 === e && (e = !1);
                                        var t,
                                            n = this.view;
                                        if (!this.ignoreUpdateViewSize && n)
                                            return (
                                                e && (this.calcSize(), (t = n.queryScroll())),
                                                this.ignoreUpdateViewSize++,
                                                n.updateSize(this.getSuggestedViewHeight(), this.isHeightAuto(), e),
                                                this.ignoreUpdateViewSize--,
                                                e && n.applyScroll(t),
                                                !0
                                            );
                                    }),
                                    (e.prototype.calcSize = function () {
                                        this.elementVisible() && this._calcSize();
                                    }),
                                    (e.prototype._calcSize = function () {
                                        var e = this.opt("contentHeight"),
                                            t = this.opt("height");
                                        this.suggestedViewHeight =
                                            "number" == typeof e
                                                ? e
                                                : "function" == typeof e
                                                ? e()
                                                : "number" == typeof t
                                                ? t - this.queryToolbarsHeight()
                                                : "function" == typeof t
                                                ? t() - this.queryToolbarsHeight()
                                                : "parent" === t
                                                ? this.el.parent().height() - this.queryToolbarsHeight()
                                                : Math.round(this.contentEl.width() / Math.max(this.opt("aspectRatio"), 0.5));
                                    }),
                                    (e.prototype.windowResize = function (e) {
                                        e.target === window && this.view && this.view.isDatesRendered && this.updateViewSize(!0) && this.publiclyTrigger("windowResize", [this.view]);
                                    }),
                                    (e.prototype.freezeContentHeight = function () {
                                        this.freezeContentHeightDepth++ || this.forceFreezeContentHeight();
                                    }),
                                    (e.prototype.forceFreezeContentHeight = function () {
                                        this.contentEl.css({ width: "100%", height: this.contentEl.height(), overflow: "hidden" });
                                    }),
                                    (e.prototype.thawContentHeight = function () {
                                        this.freezeContentHeightDepth--, this.contentEl.css({ width: "", height: "", overflow: "" }), this.freezeContentHeightDepth && this.forceFreezeContentHeight();
                                    }),
                                    (e.prototype.initToolbars = function () {
                                        (this.header = new d.default(this, this.computeHeaderOptions())), (this.footer = new d.default(this, this.computeFooterOptions())), (this.toolbarsManager = new a.default([this.header, this.footer]));
                                    }),
                                    (e.prototype.computeHeaderOptions = function () {
                                        return { extraClasses: "fc-header-toolbar", layout: this.opt("header") };
                                    }),
                                    (e.prototype.computeFooterOptions = function () {
                                        return { extraClasses: "fc-footer-toolbar", layout: this.opt("footer") };
                                    }),
                                    (e.prototype.renderHeader = function () {
                                        var e = this.header;
                                        e.setToolbarOptions(this.computeHeaderOptions()), e.render(), e.el && this.el.prepend(e.el);
                                    }),
                                    (e.prototype.renderFooter = function () {
                                        var e = this.footer;
                                        e.setToolbarOptions(this.computeFooterOptions()), e.render(), e.el && this.el.append(e.el);
                                    }),
                                    (e.prototype.setToolbarsTitle = function (e) {
                                        this.toolbarsManager.proxyCall("updateTitle", e);
                                    }),
                                    (e.prototype.updateToolbarButtons = function (e) {
                                        var t = this.getNow(),
                                            n = this.view,
                                            i = n.dateProfileGenerator.build(t),
                                            o = n.dateProfileGenerator.buildPrev(n.get("dateProfile")),
                                            r = n.dateProfileGenerator.buildNext(n.get("dateProfile"));
                                        this.toolbarsManager.proxyCall(i.isValid && !e.currentUnzonedRange.containsDate(t) ? "enableButton" : "disableButton", "today"),
                                            this.toolbarsManager.proxyCall(o.isValid ? "enableButton" : "disableButton", "prev"),
                                            this.toolbarsManager.proxyCall(r.isValid ? "enableButton" : "disableButton", "next");
                                    }),
                                    (e.prototype.queryToolbarsHeight = function () {
                                        return this.toolbarsManager.items.reduce(function (e, t) {
                                            return e + (t.el ? t.el.outerHeight(!0) : 0);
                                        }, 0);
                                    }),
                                    (e.prototype.select = function (e, t) {
                                        this.view.select(this.buildSelectFootprint.apply(this, arguments));
                                    }),
                                    (e.prototype.unselect = function () {
                                        this.view && this.view.unselect();
                                    }),
                                    (e.prototype.buildSelectFootprint = function (e, t) {
                                        var n,
                                            i = this.moment(e).stripZone();
                                        return (
                                            (n = t ? this.moment(t).stripZone() : i.hasTime() ? i.clone().add(this.defaultTimedEventDuration) : i.clone().add(this.defaultAllDayEventDuration)),
                                            new y.default(new v.default(i, n), !i.hasTime())
                                        );
                                    }),
                                    (e.prototype.initMomentInternals = function () {
                                        var e = this;
                                        (this.defaultAllDayEventDuration = o.duration(this.opt("defaultAllDayEventDuration"))),
                                            (this.defaultTimedEventDuration = o.duration(this.opt("defaultTimedEventDuration"))),
                                            this.optionsManager.watch("buildingMomentLocale", ["?locale", "?monthNames", "?monthNamesShort", "?dayNames", "?dayNamesShort", "?firstDay", "?weekNumberCalculation"], function (t) {
                                                var n,
                                                    i = t.weekNumberCalculation,
                                                    o = t.firstDay;
                                                "iso" === i && (i = "ISO");
                                                var r = Object.create(m.getMomentLocaleData(t.locale));
                                                t.monthNames && (r._months = t.monthNames),
                                                    t.monthNamesShort && (r._monthsShort = t.monthNamesShort),
                                                    t.dayNames && (r._weekdays = t.dayNames),
                                                    t.dayNamesShort && (r._weekdaysShort = t.dayNamesShort),
                                                    null == o && "ISO" === i && (o = 1),
                                                    null != o && (((n = Object.create(r._week)).dow = o), (r._week = n)),
                                                    ("ISO" !== i && "local" !== i && "function" != typeof i) || (r._fullCalendar_weekCalc = i),
                                                    (e.localeData = r),
                                                    e.currentDate && e.localizeMoment(e.currentDate);
                                            });
                                    }),
                                    (e.prototype.moment = function () {
                                        for (var e, t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
                                        return (
                                            "local" === this.opt("timezone") ? (e = g.default.apply(null, t)).hasTime() && e.local() : (e = "UTC" === this.opt("timezone") ? g.default.utc.apply(null, t) : g.default.parseZone.apply(null, t)),
                                            this.localizeMoment(e),
                                            e
                                        );
                                    }),
                                    (e.prototype.msToMoment = function (e, t) {
                                        var n = g.default.utc(e);
                                        return t ? n.stripTime() : (n = this.applyTimezone(n)), this.localizeMoment(n), n;
                                    }),
                                    (e.prototype.msToUtcMoment = function (e, t) {
                                        var n = g.default.utc(e);
                                        return t && n.stripTime(), this.localizeMoment(n), n;
                                    }),
                                    (e.prototype.localizeMoment = function (e) {
                                        e._locale = this.localeData;
                                    }),
                                    (e.prototype.getIsAmbigTimezone = function () {
                                        return "local" !== this.opt("timezone") && "UTC" !== this.opt("timezone");
                                    }),
                                    (e.prototype.applyTimezone = function (e) {
                                        if (!e.hasTime()) return e.clone();
                                        var t,
                                            n = this.moment(e.toArray()),
                                            i = e.time().asMilliseconds() - n.time().asMilliseconds();
                                        return i && ((t = n.clone().add(i)), e.time().asMilliseconds() - t.time().asMilliseconds() == 0 && (n = t)), n;
                                    }),
                                    (e.prototype.footprintToDateProfile = function (e, t) {
                                        void 0 === t && (t = !1);
                                        var n,
                                            i = g.default.utc(e.unzonedRange.startMs);
                                        return t || (n = g.default.utc(e.unzonedRange.endMs)), e.isAllDay ? (i.stripTime(), n && n.stripTime()) : ((i = this.applyTimezone(i)), n && (n = this.applyTimezone(n))), new b.default(i, n, this);
                                    }),
                                    (e.prototype.getNow = function () {
                                        var e = this.opt("now");
                                        return "function" == typeof e && (e = e()), this.moment(e).stripZone();
                                    }),
                                    (e.prototype.humanizeDuration = function (e) {
                                        return e.locale(this.opt("locale")).humanize();
                                    }),
                                    (e.prototype.parseUnzonedRange = function (e) {
                                        var t = null,
                                            n = null;
                                        return e.start && (t = this.moment(e.start).stripZone()), e.end && (n = this.moment(e.end).stripZone()), t || n ? (t && n && n.isBefore(t) ? null : new v.default(t, n)) : null;
                                    }),
                                    (e.prototype.initEventManager = function () {
                                        var e = this,
                                            t = new w.default(this),
                                            n = this.opt("eventSources") || [],
                                            i = this.opt("events");
                                        (this.eventManager = t),
                                            i && n.unshift(i),
                                            t.on("release", function (t) {
                                                e.trigger("eventsReset", t);
                                            }),
                                            t.freeze(),
                                            n.forEach(function (n) {
                                                var i = D.default.parse(n, e);
                                                i && t.addSource(i);
                                            }),
                                            t.thaw();
                                    }),
                                    (e.prototype.requestEvents = function (e, t) {
                                        return this.eventManager.requestEvents(e, t, this.opt("timezone"), !this.opt("lazyFetching"));
                                    }),
                                    (e.prototype.getEventEnd = function (e) {
                                        return e.end ? e.end.clone() : this.getDefaultEventEnd(e.allDay, e.start);
                                    }),
                                    (e.prototype.getDefaultEventEnd = function (e, t) {
                                        var n = t.clone();
                                        return e ? n.stripTime().add(this.defaultAllDayEventDuration) : n.add(this.defaultTimedEventDuration), this.getIsAmbigTimezone() && n.stripZone(), n;
                                    }),
                                    (e.prototype.rerenderEvents = function () {
                                        this.view.flash("displayingEvents");
                                    }),
                                    (e.prototype.refetchEvents = function () {
                                        this.eventManager.refetchAllSources();
                                    }),
                                    (e.prototype.renderEvents = function (e, t) {
                                        this.eventManager.freeze();
                                        for (var n = 0; n < e.length; n++) this.renderEvent(e[n], t);
                                        this.eventManager.thaw();
                                    }),
                                    (e.prototype.renderEvent = function (e, t) {
                                        void 0 === t && (t = !1);
                                        var n = this.eventManager,
                                            i = C.default.parse(e, e.source || n.stickySource);
                                        i && n.addEventDef(i, t);
                                    }),
                                    (e.prototype.removeEvents = function (e) {
                                        var t,
                                            n = this.eventManager,
                                            i = [],
                                            o = {};
                                        if (null == e) n.removeAllEventDefs();
                                        else {
                                            for (
                                                n.getEventInstances().forEach(function (e) {
                                                    i.push(e.toLegacy());
                                                }),
                                                    i = k(i, e),
                                                    t = 0;
                                                t < i.length;
                                                t++
                                            )
                                                o[this.eventManager.getEventDefByUid(i[t]._id).id] = !0;
                                            for (t in (n.freeze(), o)) n.removeEventDefsById(t);
                                            n.thaw();
                                        }
                                    }),
                                    (e.prototype.clientEvents = function (e) {
                                        var t = [];
                                        return (
                                            this.eventManager.getEventInstances().forEach(function (e) {
                                                t.push(e.toLegacy());
                                            }),
                                            k(t, e)
                                        );
                                    }),
                                    (e.prototype.updateEvents = function (e) {
                                        this.eventManager.freeze();
                                        for (var t = 0; t < e.length; t++) this.updateEvent(e[t]);
                                        this.eventManager.thaw();
                                    }),
                                    (e.prototype.updateEvent = function (e) {
                                        var t,
                                            n,
                                            i = this.eventManager.getEventDefByUid(e._id);
                                        i instanceof S.default && ((t = i.buildInstance()), (n = x.default.createFromRawProps(t, e, null)), this.eventManager.mutateEventsWithId(i.id, n));
                                    }),
                                    (e.prototype.getEventSources = function () {
                                        return this.eventManager.otherSources.slice();
                                    }),
                                    (e.prototype.getEventSourceById = function (e) {
                                        return this.eventManager.getSourceById(E.default.normalizeId(e));
                                    }),
                                    (e.prototype.addEventSource = function (e) {
                                        var t = D.default.parse(e, this);
                                        t && this.eventManager.addSource(t);
                                    }),
                                    (e.prototype.removeEventSources = function (e) {
                                        var t,
                                            n,
                                            i = this.eventManager;
                                        if (null == e) this.eventManager.removeAllSources();
                                        else {
                                            for (t = i.multiQuerySources(e), i.freeze(), n = 0; n < t.length; n++) i.removeSource(t[n]);
                                            i.thaw();
                                        }
                                    }),
                                    (e.prototype.removeEventSource = function (e) {
                                        var t,
                                            n = this.eventManager,
                                            i = n.querySources(e);
                                        for (n.freeze(), t = 0; t < i.length; t++) n.removeSource(i[t]);
                                        n.thaw();
                                    }),
                                    (e.prototype.refetchEventSources = function (e) {
                                        var t,
                                            n = this.eventManager,
                                            i = n.multiQuerySources(e);
                                        for (n.freeze(), t = 0; t < i.length; t++) n.refetchSource(i[t]);
                                        n.thaw();
                                    }),
                                    (e.defaults = s.globalDefaults),
                                    (e.englishDefaults = s.englishDefaults),
                                    (e.rtlDefaults = s.rtlDefaults),
                                    e
                                );
                            })();
                        function k(e, t) {
                            return null == t
                                ? e
                                : i.isFunction(t)
                                ? e.filter(t)
                                : ((t += ""),
                                  e.filter(function (e) {
                                      return e.id == t || e._id === t;
                                  }));
                        }
                        (t.default = R), c.default.mixInto(R), u.default.mixInto(R);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(4),
                            r = n(5),
                            s = (function () {
                                function e(e) {
                                    this._view = e;
                                }
                                return (
                                    (e.prototype.opt = function (e) {
                                        return this._view.opt(e);
                                    }),
                                    (e.prototype.trimHiddenDays = function (e) {
                                        return this._view.trimHiddenDays(e);
                                    }),
                                    (e.prototype.msToUtcMoment = function (e, t) {
                                        return this._view.calendar.msToUtcMoment(e, t);
                                    }),
                                    (e.prototype.buildPrev = function (e) {
                                        var t = e.date.clone().startOf(e.currentRangeUnit).subtract(e.dateIncrement);
                                        return this.build(t, -1);
                                    }),
                                    (e.prototype.buildNext = function (e) {
                                        var t = e.date.clone().startOf(e.currentRangeUnit).add(e.dateIncrement);
                                        return this.build(t, 1);
                                    }),
                                    (e.prototype.build = function (e, t, n) {
                                        void 0 === n && (n = !1);
                                        var o,
                                            r,
                                            s,
                                            a,
                                            l,
                                            c,
                                            u,
                                            d,
                                            p = !e.hasTime();
                                        return (
                                            (o = this.buildValidRange()),
                                            (o = this.trimHiddenDays(o)),
                                            n && (e = this.msToUtcMoment(o.constrainDate(e), p)),
                                            (a = this.buildCurrentRangeInfo(e, t)),
                                            (l = /^(year|month|week|day)$/.test(a.unit)),
                                            (c = this.buildRenderRange(this.trimHiddenDays(a.unzonedRange), a.unit, l)),
                                            (u = (c = this.trimHiddenDays(c)).clone()),
                                            this.opt("showNonCurrentDates") || (u = u.intersect(a.unzonedRange)),
                                            (r = i.duration(this.opt("minTime"))),
                                            (s = i.duration(this.opt("maxTime"))),
                                            (u = (u = this.adjustActiveRange(u, r, s)).intersect(o)) && (e = this.msToUtcMoment(u.constrainDate(e), p)),
                                            (d = a.unzonedRange.intersectsWith(o)),
                                            {
                                                validUnzonedRange: o,
                                                currentUnzonedRange: a.unzonedRange,
                                                currentRangeUnit: a.unit,
                                                isRangeAllDay: l,
                                                activeUnzonedRange: u,
                                                renderUnzonedRange: c,
                                                minTime: r,
                                                maxTime: s,
                                                isValid: d,
                                                date: e,
                                                dateIncrement: this.buildDateIncrement(a.duration),
                                            }
                                        );
                                    }),
                                    (e.prototype.buildValidRange = function () {
                                        return this._view.getUnzonedRangeOption("validRange", this._view.calendar.getNow()) || new r.default();
                                    }),
                                    (e.prototype.buildCurrentRangeInfo = function (e, t) {
                                        var n,
                                            i = this._view.viewSpec,
                                            r = null,
                                            s = null,
                                            a = null;
                                        return (
                                            i.duration
                                                ? ((r = i.duration), (s = i.durationUnit), (a = this.buildRangeFromDuration(e, t, r, s)))
                                                : (n = this.opt("dayCount"))
                                                ? ((s = "day"), (a = this.buildRangeFromDayCount(e, t, n)))
                                                : (a = this.buildCustomVisibleRange(e))
                                                ? (s = o.computeGreatestUnit(a.getStart(), a.getEnd()))
                                                : ((r = this.getFallbackDuration()), (s = o.computeGreatestUnit(r)), (a = this.buildRangeFromDuration(e, t, r, s))),
                                            { duration: r, unit: s, unzonedRange: a }
                                        );
                                    }),
                                    (e.prototype.getFallbackDuration = function () {
                                        return i.duration({ days: 1 });
                                    }),
                                    (e.prototype.adjustActiveRange = function (e, t, n) {
                                        var i = e.getStart(),
                                            o = e.getEnd();
                                        return this._view.usesMinMaxTime && (t < 0 && i.time(0).add(t), n > 864e5 && o.time(n - 864e5)), new r.default(i, o);
                                    }),
                                    (e.prototype.buildRangeFromDuration = function (e, t, n, s) {
                                        var a,
                                            l,
                                            c,
                                            u,
                                            d,
                                            p = this.opt("dateAlignment");
                                        function h() {
                                            (c = e.clone().startOf(p)), (u = c.clone().add(n)), (d = new r.default(c, u));
                                        }
                                        return (
                                            p || ((a = this.opt("dateIncrement")) ? ((l = i.duration(a)), (p = l < n ? o.computeDurationGreatestUnit(l, a) : s)) : (p = s)),
                                            n.as("days") <= 1 && this._view.isHiddenDay(c) && (c = this._view.skipHiddenDays(c, t)).startOf("day"),
                                            h(),
                                            this.trimHiddenDays(d) || ((e = this._view.skipHiddenDays(e, t)), h()),
                                            d
                                        );
                                    }),
                                    (e.prototype.buildRangeFromDayCount = function (e, t, n) {
                                        var i,
                                            o = this.opt("dateAlignment"),
                                            s = 0,
                                            a = e.clone();
                                        o && a.startOf(o), a.startOf("day"), (i = (a = this._view.skipHiddenDays(a, t)).clone());
                                        do {
                                            i.add(1, "day"), this._view.isHiddenDay(i) || s++;
                                        } while (s < n);
                                        return new r.default(a, i);
                                    }),
                                    (e.prototype.buildCustomVisibleRange = function (e) {
                                        var t = this._view.getUnzonedRangeOption("visibleRange", this._view.calendar.applyTimezone(e));
                                        return !t || (null != t.startMs && null != t.endMs) ? t : null;
                                    }),
                                    (e.prototype.buildRenderRange = function (e, t, n) {
                                        return e.clone();
                                    }),
                                    (e.prototype.buildDateIncrement = function (e) {
                                        var t,
                                            n = this.opt("dateIncrement");
                                        return n ? i.duration(n) : (t = this.opt("dateAlignment")) ? i.duration(1, t) : e || i.duration({ days: 1 });
                                    }),
                                    e
                                );
                            })();
                        t.default = s;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(0),
                            s = n(16),
                            a = n(4),
                            l = n(10),
                            c = n(7),
                            u = n(23),
                            d = n(13),
                            p = n(18),
                            h = n(6),
                            f = (function (e) {
                                function t() {
                                    var t = (null !== e && e.apply(this, arguments)) || this;
                                    return (t.isDragging = !1), t;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.end = function () {
                                        this.dragListener && this.dragListener.endInteraction();
                                    }),
                                    (t.prototype.bindToDocument = function () {
                                        this.listenTo(o(document), { dragstart: this.handleDragStart, sortstart: this.handleDragStart });
                                    }),
                                    (t.prototype.unbindFromDocument = function () {
                                        this.stopListeningTo(o(document));
                                    }),
                                    (t.prototype.handleDragStart = function (e, t) {
                                        var n, i;
                                        this.opt("droppable") &&
                                            ((n = o((t ? t.item : null) || e.target)), (i = this.opt("dropAccept")), (o.isFunction(i) ? i.call(n[0], n) : n.is(i)) && (this.isDragging || this.listenToExternalDrag(n, e, t)));
                                    }),
                                    (t.prototype.listenToExternalDrag = function (e, t, n) {
                                        var i,
                                            l = this,
                                            c = this.component,
                                            d = this.view,
                                            h = (function (e) {
                                                var t,
                                                    n,
                                                    i,
                                                    a,
                                                    l = s.dataAttrPrefix;
                                                l && (l += "-");
                                                (t = e.data(l + "event") || null) &&
                                                    ((t = "object" == typeof t ? o.extend({}, t) : {}),
                                                    null == (n = t.start) && (n = t.time),
                                                    (i = t.duration),
                                                    (a = t.stick),
                                                    delete t.start,
                                                    delete t.time,
                                                    delete t.duration,
                                                    delete t.stick);
                                                null == n && (n = e.data(l + "start"));
                                                null == n && (n = e.data(l + "time"));
                                                null == i && (i = e.data(l + "duration"));
                                                null == a && (a = e.data(l + "stick"));
                                                return (n = null != n ? r.duration(n) : null), (i = null != i ? r.duration(i) : null), (a = Boolean(a)), { eventProps: t, startTime: n, duration: i, stick: a };
                                            })(e);
                                        (this.dragListener = new u.default(c, {
                                            interactionStart: function () {
                                                l.isDragging = !0;
                                            },
                                            hitOver: function (e) {
                                                var t,
                                                    n = !0,
                                                    o = e.component.getSafeHitFootprint(e);
                                                o && (i = l.computeExternalDrop(o, h)) ? ((t = new p.default(i.buildInstances())), (n = h.eventProps ? c.isEventInstanceGroupAllowed(t) : c.isExternalInstanceGroupAllowed(t))) : (n = !1),
                                                    n || ((i = null), a.disableCursor()),
                                                    i && c.renderDrag(c.eventRangesToEventFootprints(t.sliceRenderRanges(c.dateProfile.renderUnzonedRange, d.calendar)));
                                            },
                                            hitOut: function () {
                                                i = null;
                                            },
                                            hitDone: function () {
                                                a.enableCursor(), c.unrenderDrag();
                                            },
                                            interactionEnd: function (t) {
                                                i && d.reportExternalDrop(i, Boolean(h.eventProps), Boolean(h.stick), e, t, n), (l.isDragging = !1), (l.dragListener = null);
                                            },
                                        })).startDrag(t);
                                    }),
                                    (t.prototype.computeExternalDrop = function (e, t) {
                                        var n,
                                            i = this.view.calendar,
                                            r = l.default.utc(e.unzonedRange.startMs).stripZone();
                                        return (
                                            e.isAllDay && (t.startTime ? r.time(t.startTime) : r.stripTime()),
                                            t.duration && (n = r.clone().add(t.duration)),
                                            (r = i.applyTimezone(r)),
                                            n && (n = i.applyTimezone(n)),
                                            d.default.parse(o.extend({}, t.eventProps, { start: r, end: n }), new h.default(i))
                                        );
                                    }),
                                    t
                                );
                            })(n(15).default);
                        (t.default = f), c.default.mixInto(f), (s.dataAttrPrefix = "");
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(4),
                            s = n(37),
                            a = n(50),
                            l = n(23),
                            c = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t) || this;
                                    return (i.isResizing = !1), (i.eventPointing = n), i;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.end = function () {
                                        this.dragListener && this.dragListener.endInteraction();
                                    }),
                                    (t.prototype.bindToEl = function (e) {
                                        var t = this.component;
                                        t.bindSegHandlerToEl(e, "mousedown", this.handleMouseDown.bind(this)), t.bindSegHandlerToEl(e, "touchstart", this.handleTouchStart.bind(this));
                                    }),
                                    (t.prototype.handleMouseDown = function (e, t) {
                                        this.component.canStartResize(e, t) && this.buildDragListener(e, o(t.target).is(".fc-start-resizer")).startInteraction(t, { distance: 5 });
                                    }),
                                    (t.prototype.handleTouchStart = function (e, t) {
                                        this.component.canStartResize(e, t) && this.buildDragListener(e, o(t.target).is(".fc-start-resizer")).startInteraction(t);
                                    }),
                                    (t.prototype.buildDragListener = function (e, t) {
                                        var n,
                                            i,
                                            o = this,
                                            s = this.component,
                                            a = this.view,
                                            c = a.calendar,
                                            u = c.eventManager,
                                            d = e.el,
                                            p = e.footprint.eventDef,
                                            h = e.footprint.eventInstance;
                                        return (this.dragListener = new l.default(s, {
                                            scroll: this.opt("dragScroll"),
                                            subjectEl: d,
                                            interactionStart: function () {
                                                n = !1;
                                            },
                                            dragStart: function (t) {
                                                (n = !0), o.eventPointing.handleMouseout(e, t), o.segResizeStart(e, t);
                                            },
                                            hitOver: function (n, l, d) {
                                                var h,
                                                    f = !0,
                                                    m = s.getSafeHitFootprint(d),
                                                    g = s.getSafeHitFootprint(n);
                                                m && g && (i = t ? o.computeEventStartResizeMutation(m, g, e.footprint) : o.computeEventEndResizeMutation(m, g, e.footprint))
                                                    ? ((h = u.buildMutatedEventInstanceGroup(p.id, i)), (f = s.isEventInstanceGroupAllowed(h)))
                                                    : (f = !1),
                                                    f ? i.isEmpty() && (i = null) : ((i = null), r.disableCursor()),
                                                    i && (a.hideEventsWithId(e.footprint.eventDef.id), a.renderEventResize(s.eventRangesToEventFootprints(h.sliceRenderRanges(s.dateProfile.renderUnzonedRange, c)), e));
                                            },
                                            hitOut: function () {
                                                i = null;
                                            },
                                            hitDone: function () {
                                                a.unrenderEventResize(e), a.showEventsWithId(e.footprint.eventDef.id), r.enableCursor();
                                            },
                                            interactionEnd: function (t) {
                                                n && o.segResizeStop(e, t), i && a.reportEventResize(h, i, d, t), (o.dragListener = null);
                                            },
                                        }));
                                    }),
                                    (t.prototype.segResizeStart = function (e, t) {
                                        (this.isResizing = !0), this.component.publiclyTrigger("eventResizeStart", { context: e.el[0], args: [e.footprint.getEventLegacy(), t, {}, this.view] });
                                    }),
                                    (t.prototype.segResizeStop = function (e, t) {
                                        (this.isResizing = !1), this.component.publiclyTrigger("eventResizeStop", { context: e.el[0], args: [e.footprint.getEventLegacy(), t, {}, this.view] });
                                    }),
                                    (t.prototype.computeEventStartResizeMutation = function (e, t, n) {
                                        var i,
                                            o,
                                            r = n.componentFootprint.unzonedRange,
                                            l = this.component.diffDates(t.unzonedRange.getStart(), e.unzonedRange.getStart());
                                        return r.getStart().add(l) < r.getEnd() && ((i = new a.default()).setStartDelta(l), (o = new s.default()).setDateMutation(i), o);
                                    }),
                                    (t.prototype.computeEventEndResizeMutation = function (e, t, n) {
                                        var i,
                                            o,
                                            r = n.componentFootprint.unzonedRange,
                                            l = this.component.diffDates(t.unzonedRange.getEnd(), e.unzonedRange.getEnd());
                                        return r.getEnd().add(l) > r.getStart() && ((i = new a.default()).setEndDelta(l), (o = new s.default()).setDateMutation(i), o);
                                    }),
                                    t
                                );
                            })(n(15).default);
                        t.default = c;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(4),
                            r = n(37),
                            s = n(50),
                            a = n(54),
                            l = n(23),
                            c = n(244),
                            u = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t) || this;
                                    return (i.isDragging = !1), (i.eventPointing = n), i;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.end = function () {
                                        this.dragListener && this.dragListener.endInteraction();
                                    }),
                                    (t.prototype.getSelectionDelay = function () {
                                        var e = this.opt("eventLongPressDelay");
                                        return null == e && (e = this.opt("longPressDelay")), e;
                                    }),
                                    (t.prototype.bindToEl = function (e) {
                                        var t = this.component;
                                        t.bindSegHandlerToEl(e, "mousedown", this.handleMousedown.bind(this)), t.bindSegHandlerToEl(e, "touchstart", this.handleTouchStart.bind(this));
                                    }),
                                    (t.prototype.handleMousedown = function (e, t) {
                                        !this.component.shouldIgnoreMouse() && this.component.canStartDrag(e, t) && this.buildDragListener(e).startInteraction(t, { distance: 5 });
                                    }),
                                    (t.prototype.handleTouchStart = function (e, t) {
                                        var n = this.component,
                                            i = { delay: this.view.isEventDefSelected(e.footprint.eventDef) ? 0 : this.getSelectionDelay() };
                                        n.canStartDrag(e, t) ? this.buildDragListener(e).startInteraction(t, i) : n.canStartSelection(e, t) && this.buildSelectListener(e).startInteraction(t, i);
                                    }),
                                    (t.prototype.buildSelectListener = function (e) {
                                        var t = this,
                                            n = this.view,
                                            i = e.footprint.eventDef,
                                            o = e.footprint.eventInstance;
                                        if (this.dragListener) return this.dragListener;
                                        var r = (this.dragListener = new a.default({
                                            dragStart: function (e) {
                                                r.isTouch && !n.isEventDefSelected(i) && o && n.selectEventInstance(o);
                                            },
                                            interactionEnd: function (e) {
                                                t.dragListener = null;
                                            },
                                        }));
                                        return r;
                                    }),
                                    (t.prototype.buildDragListener = function (e) {
                                        var t,
                                            n,
                                            i,
                                            r = this,
                                            s = this.component,
                                            a = this.view,
                                            u = a.calendar,
                                            d = u.eventManager,
                                            p = e.el,
                                            h = e.footprint.eventDef,
                                            f = e.footprint.eventInstance;
                                        if (this.dragListener) return this.dragListener;
                                        var m = (this.dragListener = new l.default(a, {
                                            scroll: this.opt("dragScroll"),
                                            subjectEl: p,
                                            subjectCenter: !0,
                                            interactionStart: function (i) {
                                                (e.component = s),
                                                    (t = !1),
                                                    (n = new c.default(e.el, {
                                                        additionalClass: "fc-dragging",
                                                        parentEl: a.el,
                                                        opacity: m.isTouch ? null : r.opt("dragOpacity"),
                                                        revertDuration: r.opt("dragRevertDuration"),
                                                        zIndex: 2,
                                                    })).hide(),
                                                    n.start(i);
                                            },
                                            dragStart: function (n) {
                                                m.isTouch && !a.isEventDefSelected(h) && f && a.selectEventInstance(f), (t = !0), r.eventPointing.handleMouseout(e, n), r.segDragStart(e, n), a.hideEventsWithId(e.footprint.eventDef.id);
                                            },
                                            hitOver: function (t, l, c) {
                                                var p,
                                                    f,
                                                    g,
                                                    v = !0;
                                                e.hit && (c = e.hit),
                                                    (p = c.component.getSafeHitFootprint(c)),
                                                    (f = t.component.getSafeHitFootprint(t)),
                                                    p && f && (i = r.computeEventDropMutation(p, f, h)) ? ((g = d.buildMutatedEventInstanceGroup(h.id, i)), (v = s.isEventInstanceGroupAllowed(g))) : (v = !1),
                                                    v || ((i = null), o.disableCursor()),
                                                    i && a.renderDrag(s.eventRangesToEventFootprints(g.sliceRenderRanges(s.dateProfile.renderUnzonedRange, u)), e, m.isTouch) ? n.hide() : n.show(),
                                                    l && (i = null);
                                            },
                                            hitOut: function () {
                                                a.unrenderDrag(e), n.show(), (i = null);
                                            },
                                            hitDone: function () {
                                                o.enableCursor();
                                            },
                                            interactionEnd: function (o) {
                                                delete e.component,
                                                    n.stop(!i, function () {
                                                        t && (a.unrenderDrag(e), r.segDragStop(e, o)), a.showEventsWithId(e.footprint.eventDef.id), i && a.reportEventDrop(f, i, p, o);
                                                    }),
                                                    (r.dragListener = null);
                                            },
                                        }));
                                        return m;
                                    }),
                                    (t.prototype.segDragStart = function (e, t) {
                                        (this.isDragging = !0), this.component.publiclyTrigger("eventDragStart", { context: e.el[0], args: [e.footprint.getEventLegacy(), t, {}, this.view] });
                                    }),
                                    (t.prototype.segDragStop = function (e, t) {
                                        (this.isDragging = !1), this.component.publiclyTrigger("eventDragStop", { context: e.el[0], args: [e.footprint.getEventLegacy(), t, {}, this.view] });
                                    }),
                                    (t.prototype.computeEventDropMutation = function (e, t, n) {
                                        var i = new r.default();
                                        return i.setDateMutation(this.computeEventDateMutation(e, t)), i;
                                    }),
                                    (t.prototype.computeEventDateMutation = function (e, t) {
                                        var n,
                                            i,
                                            o = e.unzonedRange.getStart(),
                                            r = t.unzonedRange.getStart(),
                                            a = !1,
                                            l = !1,
                                            c = !1;
                                        return (
                                            e.isAllDay !== t.isAllDay && ((a = !0), t.isAllDay ? ((c = !0), o.stripTime()) : (l = !0)),
                                            (n = this.component.diffDates(r, o)),
                                            ((i = new s.default()).clearEnd = a),
                                            (i.forceTimed = l),
                                            (i.forceAllDay = c),
                                            i.setDateDelta(n),
                                            i
                                        );
                                    }),
                                    t
                                );
                            })(n(15).default);
                        t.default = u;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(4),
                            r = n(23),
                            s = n(12),
                            a = n(5),
                            l = (function (e) {
                                function t(t) {
                                    var n = e.call(this, t) || this;
                                    return (n.dragListener = n.buildDragListener()), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.end = function () {
                                        this.dragListener.endInteraction();
                                    }),
                                    (t.prototype.getDelay = function () {
                                        var e = this.opt("selectLongPressDelay");
                                        return null == e && (e = this.opt("longPressDelay")), e;
                                    }),
                                    (t.prototype.bindToEl = function (e) {
                                        var t = this,
                                            n = this.component,
                                            i = this.dragListener;
                                        n.bindDateHandlerToEl(e, "mousedown", function (e) {
                                            t.opt("selectable") && !n.shouldIgnoreMouse() && i.startInteraction(e, { distance: t.opt("selectMinDistance") });
                                        }),
                                            n.bindDateHandlerToEl(e, "touchstart", function (e) {
                                                t.opt("selectable") && !n.shouldIgnoreTouch() && i.startInteraction(e, { delay: t.getDelay() });
                                            }),
                                            o.preventSelection(e);
                                    }),
                                    (t.prototype.buildDragListener = function () {
                                        var e,
                                            t = this,
                                            n = this.component;
                                        return new r.default(n, {
                                            scroll: this.opt("dragScroll"),
                                            interactionStart: function () {
                                                e = null;
                                            },
                                            dragStart: function (e) {
                                                t.view.unselect(e);
                                            },
                                            hitOver: function (i, r, s) {
                                                var a, l;
                                                s && ((a = n.getSafeHitFootprint(s)), (l = n.getSafeHitFootprint(i)), (e = a && l ? t.computeSelection(a, l) : null) ? n.renderSelectionFootprint(e) : !1 === e && o.disableCursor());
                                            },
                                            hitOut: function () {
                                                (e = null), n.unrenderSelection();
                                            },
                                            hitDone: function () {
                                                o.enableCursor();
                                            },
                                            interactionEnd: function (n, i) {
                                                !i && e && t.view.reportSelection(e, n);
                                            },
                                        });
                                    }),
                                    (t.prototype.computeSelection = function (e, t) {
                                        var n = this.computeSelectionFootprint(e, t);
                                        return !(n && !this.isSelectionFootprintAllowed(n)) && n;
                                    }),
                                    (t.prototype.computeSelectionFootprint = function (e, t) {
                                        var n = [e.unzonedRange.startMs, e.unzonedRange.endMs, t.unzonedRange.startMs, t.unzonedRange.endMs];
                                        return n.sort(o.compareNumbers), new s.default(new a.default(n[0], n[3]), e.isAllDay);
                                    }),
                                    (t.prototype.isSelectionFootprintAllowed = function (e) {
                                        return this.component.dateProfile.validUnzonedRange.containsRange(e.unzonedRange) && this.view.calendar.constraints.isSelectionFootprintAllowed(e);
                                    }),
                                    t
                                );
                            })(n(15).default);
                        t.default = l;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i,
                            o,
                            r = n(2),
                            s = n(0),
                            a = n(3),
                            l = n(4),
                            c = n(39),
                            u = n(41),
                            d = n(227),
                            p = n(61),
                            h = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return (
                                        (i.usesMinMaxTime = !0),
                                        (i.timeGrid = i.instantiateTimeGrid()),
                                        i.addChild(i.timeGrid),
                                        i.opt("allDaySlot") && ((i.dayGrid = i.instantiateDayGrid()), i.addChild(i.dayGrid)),
                                        (i.scroller = new c.default({ overflowX: "hidden", overflowY: "auto" })),
                                        i
                                    );
                                }
                                return (
                                    r.__extends(t, e),
                                    (t.prototype.instantiateTimeGrid = function () {
                                        var e = new this.timeGridClass(this);
                                        return l.copyOwnProps(i, e), e;
                                    }),
                                    (t.prototype.instantiateDayGrid = function () {
                                        var e = new this.dayGridClass(this);
                                        return l.copyOwnProps(o, e), e;
                                    }),
                                    (t.prototype.renderSkeleton = function () {
                                        var e, t;
                                        this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),
                                            this.scroller.render(),
                                            (e = this.scroller.el.addClass("fc-time-grid-container")),
                                            (t = a('<div class="fc-time-grid" />').appendTo(e)),
                                            this.el.find(".fc-body > tr > td").append(e),
                                            (this.timeGrid.headContainerEl = this.el.find(".fc-head-container")),
                                            this.timeGrid.setElement(t),
                                            this.dayGrid && (this.dayGrid.setElement(this.el.find(".fc-day-grid")), (this.dayGrid.bottomCoordPadding = this.dayGrid.el.next("hr").outerHeight()));
                                    }),
                                    (t.prototype.unrenderSkeleton = function () {
                                        this.timeGrid.removeElement(), this.dayGrid && this.dayGrid.removeElement(), this.scroller.destroy();
                                    }),
                                    (t.prototype.renderSkeletonHtml = function () {
                                        var e = this.calendar.theme;
                                        return (
                                            '<table class="' +
                                            e.getClass("tableGrid") +
                                            '">' +
                                            (this.opt("columnHeader") ? '<thead class="fc-head"><tr><td class="fc-head-container ' + e.getClass("widgetHeader") + '">&nbsp;</td></tr></thead>' : "") +
                                            '<tbody class="fc-body"><tr><td class="' +
                                            e.getClass("widgetContent") +
                                            '">' +
                                            (this.dayGrid ? '<div class="fc-day-grid"/><hr class="fc-divider ' + e.getClass("widgetHeader") + '"/>' : "") +
                                            "</td></tr></tbody></table>"
                                        );
                                    }),
                                    (t.prototype.axisStyleAttr = function () {
                                        return null != this.axisWidth ? 'style="width:' + this.axisWidth + 'px"' : "";
                                    }),
                                    (t.prototype.getNowIndicatorUnit = function () {
                                        return this.timeGrid.getNowIndicatorUnit();
                                    }),
                                    (t.prototype.updateSize = function (t, n, i) {
                                        var o, r, s;
                                        if ((e.prototype.updateSize.call(this, t, n, i), (this.axisWidth = l.matchCellWidths(this.el.find(".fc-axis"))), this.timeGrid.colEls)) {
                                            var a = this.el.find(".fc-row:not(.fc-scroller *)");
                                            this.timeGrid.bottomRuleEl.hide(),
                                                this.scroller.clear(),
                                                l.uncompensateScroll(a),
                                                this.dayGrid && (this.dayGrid.removeSegPopover(), (o = this.opt("eventLimit")) && "number" != typeof o && (o = 5), o && this.dayGrid.limitRows(o)),
                                                n ||
                                                    ((r = this.computeScrollerHeight(t)),
                                                    this.scroller.setHeight(r),
                                                    ((s = this.scroller.getScrollbarWidths()).left || s.right) && (l.compensateScroll(a, s), (r = this.computeScrollerHeight(t)), this.scroller.setHeight(r)),
                                                    this.scroller.lockOverflow(s),
                                                    this.timeGrid.getTotalSlatHeight() < r && this.timeGrid.bottomRuleEl.show());
                                        } else n || ((r = this.computeScrollerHeight(t)), this.scroller.setHeight(r));
                                    }),
                                    (t.prototype.computeScrollerHeight = function (e) {
                                        return e - l.subtractInnerElHeight(this.el, this.scroller.el);
                                    }),
                                    (t.prototype.computeInitialDateScroll = function () {
                                        var e = s.duration(this.opt("scrollTime")),
                                            t = this.timeGrid.computeTimeTop(e);
                                        return (t = Math.ceil(t)) && t++, { top: t };
                                    }),
                                    (t.prototype.queryDateScroll = function () {
                                        return { top: this.scroller.getScrollTop() };
                                    }),
                                    (t.prototype.applyDateScroll = function (e) {
                                        void 0 !== e.top && this.scroller.setScrollTop(e.top);
                                    }),
                                    (t.prototype.getHitFootprint = function (e) {
                                        return e.component.getHitFootprint(e);
                                    }),
                                    (t.prototype.getHitEl = function (e) {
                                        return e.component.getHitEl(e);
                                    }),
                                    (t.prototype.executeEventRender = function (e) {
                                        var t,
                                            n,
                                            i = {},
                                            o = {};
                                        for (t in e) (n = e[t]).getEventDef().isAllDay() ? (i[t] = n) : (o[t] = n);
                                        this.timeGrid.executeEventRender(o), this.dayGrid && this.dayGrid.executeEventRender(i);
                                    }),
                                    (t.prototype.renderDrag = function (e, t, n) {
                                        var i = f(e),
                                            o = !1;
                                        return (o = this.timeGrid.renderDrag(i.timed, t, n)), this.dayGrid && (o = this.dayGrid.renderDrag(i.allDay, t, n) || o), o;
                                    }),
                                    (t.prototype.renderEventResize = function (e, t, n) {
                                        var i = f(e);
                                        this.timeGrid.renderEventResize(i.timed, t, n), this.dayGrid && this.dayGrid.renderEventResize(i.allDay, t, n);
                                    }),
                                    (t.prototype.renderSelectionFootprint = function (e) {
                                        e.isAllDay ? this.dayGrid && this.dayGrid.renderSelectionFootprint(e) : this.timeGrid.renderSelectionFootprint(e);
                                    }),
                                    t
                                );
                            })(u.default);
                        function f(e) {
                            var t,
                                n = [],
                                i = [];
                            for (t = 0; t < e.length; t++) e[t].componentFootprint.isAllDay ? n.push(e[t]) : i.push(e[t]);
                            return { allDay: n, timed: i };
                        }
                        (t.default = h),
                            (h.prototype.timeGridClass = d.default),
                            (h.prototype.dayGridClass = p.default),
                            (i = {
                                renderHeadIntroHtml: function () {
                                    var e,
                                        t = this.view,
                                        n = t.calendar,
                                        i = n.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs, !0);
                                    return this.opt("weekNumbers")
                                        ? ((e = i.format(this.opt("smallWeekFormat"))),
                                          '<th class="fc-axis fc-week-number ' +
                                              n.theme.getClass("widgetHeader") +
                                              '" ' +
                                              t.axisStyleAttr() +
                                              ">" +
                                              t.buildGotoAnchorHtml({ date: i, type: "week", forceOff: this.colCnt > 1 }, l.htmlEscape(e)) +
                                              "</th>")
                                        : '<th class="fc-axis ' + n.theme.getClass("widgetHeader") + '" ' + t.axisStyleAttr() + "></th>";
                                },
                                renderBgIntroHtml: function () {
                                    var e = this.view;
                                    return '<td class="fc-axis ' + e.calendar.theme.getClass("widgetContent") + '" ' + e.axisStyleAttr() + "></td>";
                                },
                                renderIntroHtml: function () {
                                    return '<td class="fc-axis" ' + this.view.axisStyleAttr() + "></td>";
                                },
                            }),
                            (o = {
                                renderBgIntroHtml: function () {
                                    var e = this.view;
                                    return '<td class="fc-axis ' + e.calendar.theme.getClass("widgetContent") + '" ' + e.axisStyleAttr() + "><span>" + e.getAllDayHtml() + "</span></td>";
                                },
                                renderIntroHtml: function () {
                                    return '<td class="fc-axis" ' + this.view.axisStyleAttr() + "></td>";
                                },
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(0),
                            s = n(4),
                            a = n(40),
                            l = n(56),
                            c = n(60),
                            u = n(55),
                            d = n(53),
                            p = n(5),
                            h = n(12),
                            f = n(246),
                            m = n(247),
                            g = n(248),
                            v = [{ hours: 1 }, { minutes: 30 }, { minutes: 15 }, { seconds: 30 }, { seconds: 15 }],
                            y = (function (e) {
                                function t(t) {
                                    var n = e.call(this, t) || this;
                                    return n.processOptions(), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.componentFootprintToSegs = function (e) {
                                        var t,
                                            n = this.sliceRangeByTimes(e.unzonedRange);
                                        for (t = 0; t < n.length; t++) this.isRTL ? (n[t].col = this.daysPerRow - 1 - n[t].dayIndex) : (n[t].col = n[t].dayIndex);
                                        return n;
                                    }),
                                    (t.prototype.sliceRangeByTimes = function (e) {
                                        var t,
                                            n,
                                            i = [];
                                        for (n = 0; n < this.daysPerRow; n++) (t = e.intersect(this.dayRanges[n])) && i.push({ startMs: t.startMs, endMs: t.endMs, isStart: t.isStart, isEnd: t.isEnd, dayIndex: n });
                                        return i;
                                    }),
                                    (t.prototype.processOptions = function () {
                                        var e,
                                            t = this.opt("slotDuration"),
                                            n = this.opt("snapDuration");
                                        (t = r.duration(t)),
                                            (n = n ? r.duration(n) : t),
                                            (this.slotDuration = t),
                                            (this.snapDuration = n),
                                            (this.snapsPerSlot = t / n),
                                            (e = this.opt("slotLabelFormat")),
                                            o.isArray(e) && (e = e[e.length - 1]),
                                            (this.labelFormat = e || this.opt("smallTimeFormat")),
                                            (e = this.opt("slotLabelInterval")),
                                            (this.labelInterval = e ? r.duration(e) : this.computeLabelInterval(t));
                                    }),
                                    (t.prototype.computeLabelInterval = function (e) {
                                        var t, n, i;
                                        for (t = v.length - 1; t >= 0; t--) if (((n = r.duration(v[t])), (i = s.divideDurationByDuration(n, e)), s.isInt(i) && i > 1)) return n;
                                        return r.duration(e);
                                    }),
                                    (t.prototype.renderDates = function (e) {
                                        (this.dateProfile = e), this.updateDayTable(), this.renderSlats(), this.renderColumns();
                                    }),
                                    (t.prototype.unrenderDates = function () {
                                        this.unrenderColumns();
                                    }),
                                    (t.prototype.renderSkeleton = function () {
                                        var e = this.view.calendar.theme;
                                        this.el.html('<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider ' + e.getClass("widgetHeader") + '" style="display:none" />'), (this.bottomRuleEl = this.el.find("hr"));
                                    }),
                                    (t.prototype.renderSlats = function () {
                                        var e = this.view.calendar.theme;
                                        (this.slatContainerEl = this.el.find("> .fc-slats").html('<table class="' + e.getClass("tableGrid") + '">' + this.renderSlatRowHtml() + "</table>")),
                                            (this.slatEls = this.slatContainerEl.find("tr")),
                                            (this.slatCoordCache = new d.default({ els: this.slatEls, isVertical: !0 }));
                                    }),
                                    (t.prototype.renderSlatRowHtml = function () {
                                        for (var e, t, n, i = this.view, o = i.calendar, a = o.theme, l = this.isRTL, c = this.dateProfile, u = "", d = r.duration(+c.minTime), p = r.duration(0); d < c.maxTime; )
                                            (e = o.msToUtcMoment(c.renderUnzonedRange.startMs).time(d)),
                                                (t = s.isInt(s.divideDurationByDuration(p, this.labelInterval))),
                                                (n = '<td class="fc-axis fc-time ' + a.getClass("widgetContent") + '" ' + i.axisStyleAttr() + ">" + (t ? "<span>" + s.htmlEscape(e.format(this.labelFormat)) + "</span>" : "") + "</td>"),
                                                (u += '<tr data-time="' + e.format("HH:mm:ss") + '"' + (t ? "" : ' class="fc-minor"') + ">" + (l ? "" : n) + '<td class="' + a.getClass("widgetContent") + '"/>' + (l ? n : "") + "</tr>"),
                                                d.add(this.slotDuration),
                                                p.add(this.slotDuration);
                                        return u;
                                    }),
                                    (t.prototype.renderColumns = function () {
                                        var e = this.dateProfile,
                                            t = this.view.calendar.theme;
                                        (this.dayRanges = this.dayDates.map(function (t) {
                                            return new p.default(t.clone().add(e.minTime), t.clone().add(e.maxTime));
                                        })),
                                            this.headContainerEl && this.headContainerEl.html(this.renderHeadHtml()),
                                            this.el.find("> .fc-bg").html('<table class="' + t.getClass("tableGrid") + '">' + this.renderBgTrHtml(0) + "</table>"),
                                            (this.colEls = this.el.find(".fc-day, .fc-disabled-day")),
                                            (this.colCoordCache = new d.default({ els: this.colEls, isHorizontal: !0 })),
                                            this.renderContentSkeleton();
                                    }),
                                    (t.prototype.unrenderColumns = function () {
                                        this.unrenderContentSkeleton();
                                    }),
                                    (t.prototype.renderContentSkeleton = function () {
                                        var e,
                                            t,
                                            n = "";
                                        for (e = 0; e < this.colCnt; e++)
                                            n +=
                                                '<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>';
                                        (t = this.contentSkeletonEl = o('<div class="fc-content-skeleton"><table><tr>' + n + "</tr></table></div>")),
                                            (this.colContainerEls = t.find(".fc-content-col")),
                                            (this.helperContainerEls = t.find(".fc-helper-container")),
                                            (this.fgContainerEls = t.find(".fc-event-container:not(.fc-helper-container)")),
                                            (this.bgContainerEls = t.find(".fc-bgevent-container")),
                                            (this.highlightContainerEls = t.find(".fc-highlight-container")),
                                            (this.businessContainerEls = t.find(".fc-business-container")),
                                            this.bookendCells(t.find("tr")),
                                            this.el.append(t);
                                    }),
                                    (t.prototype.unrenderContentSkeleton = function () {
                                        this.contentSkeletonEl &&
                                            (this.contentSkeletonEl.remove(),
                                            (this.contentSkeletonEl = null),
                                            (this.colContainerEls = null),
                                            (this.helperContainerEls = null),
                                            (this.fgContainerEls = null),
                                            (this.bgContainerEls = null),
                                            (this.highlightContainerEls = null),
                                            (this.businessContainerEls = null));
                                    }),
                                    (t.prototype.groupSegsByCol = function (e) {
                                        var t,
                                            n = [];
                                        for (t = 0; t < this.colCnt; t++) n.push([]);
                                        for (t = 0; t < e.length; t++) n[e[t].col].push(e[t]);
                                        return n;
                                    }),
                                    (t.prototype.attachSegsByCol = function (e, t) {
                                        var n, i, o;
                                        for (n = 0; n < this.colCnt; n++) for (i = e[n], o = 0; o < i.length; o++) t.eq(n).append(i[o].el);
                                    }),
                                    (t.prototype.getNowIndicatorUnit = function () {
                                        return "minute";
                                    }),
                                    (t.prototype.renderNowIndicator = function (e) {
                                        if (this.colContainerEls) {
                                            var t,
                                                n = this.componentFootprintToSegs(new h.default(new p.default(e, e.valueOf() + 1), !1)),
                                                i = this.computeDateTop(e, e),
                                                r = [];
                                            for (t = 0; t < n.length; t++) r.push(o('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top", i).appendTo(this.colContainerEls.eq(n[t].col))[0]);
                                            n.length > 0 && r.push(o('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top", i).appendTo(this.el.find(".fc-content-skeleton"))[0]), (this.nowIndicatorEls = o(r));
                                        }
                                    }),
                                    (t.prototype.unrenderNowIndicator = function () {
                                        this.nowIndicatorEls && (this.nowIndicatorEls.remove(), (this.nowIndicatorEls = null));
                                    }),
                                    (t.prototype.updateSize = function (t, n, i) {
                                        e.prototype.updateSize.call(this, t, n, i), this.slatCoordCache.build(), i && this.updateSegVerticals([].concat(this.eventRenderer.getSegs(), this.businessSegs || []));
                                    }),
                                    (t.prototype.getTotalSlatHeight = function () {
                                        return this.slatContainerEl.outerHeight();
                                    }),
                                    (t.prototype.computeDateTop = function (e, t) {
                                        return this.computeTimeTop(r.duration(e - t.clone().stripTime()));
                                    }),
                                    (t.prototype.computeTimeTop = function (e) {
                                        var t,
                                            n,
                                            i = this.slatEls.length,
                                            o = (e - this.dateProfile.minTime) / this.slotDuration;
                                        return (o = Math.max(0, o)), (o = Math.min(i, o)), (t = Math.floor(o)), (n = o - (t = Math.min(t, i - 1))), this.slatCoordCache.getTopPosition(t) + this.slatCoordCache.getHeight(t) * n;
                                    }),
                                    (t.prototype.updateSegVerticals = function (e) {
                                        this.computeSegVerticals(e), this.assignSegVerticals(e);
                                    }),
                                    (t.prototype.computeSegVerticals = function (e) {
                                        var t,
                                            n,
                                            i,
                                            o = this.opt("agendaEventMinHeight");
                                        for (t = 0; t < e.length; t++) (n = e[t]), (i = this.dayDates[n.dayIndex]), (n.top = this.computeDateTop(n.startMs, i)), (n.bottom = Math.max(n.top + o, this.computeDateTop(n.endMs, i)));
                                    }),
                                    (t.prototype.assignSegVerticals = function (e) {
                                        var t, n;
                                        for (t = 0; t < e.length; t++) (n = e[t]).el.css(this.generateSegVerticalCss(n));
                                    }),
                                    (t.prototype.generateSegVerticalCss = function (e) {
                                        return { top: e.top, bottom: -e.bottom };
                                    }),
                                    (t.prototype.prepareHits = function () {
                                        this.colCoordCache.build(), this.slatCoordCache.build();
                                    }),
                                    (t.prototype.releaseHits = function () {
                                        this.colCoordCache.clear();
                                    }),
                                    (t.prototype.queryHit = function (e, t) {
                                        var n = this.snapsPerSlot,
                                            i = this.colCoordCache,
                                            o = this.slatCoordCache;
                                        if (i.isLeftInBounds(e) && o.isTopInBounds(t)) {
                                            var r = i.getHorizontalIndex(e),
                                                s = o.getVerticalIndex(t);
                                            if (null != r && null != s) {
                                                var a = o.getTopOffset(s),
                                                    l = o.getHeight(s),
                                                    c = (t - a) / l,
                                                    u = Math.floor(c * n),
                                                    d = a + (u / n) * l,
                                                    p = a + ((u + 1) / n) * l;
                                                return { col: r, snap: s * n + u, component: this, left: i.getLeftOffset(r), right: i.getRightOffset(r), top: d, bottom: p };
                                            }
                                        }
                                    }),
                                    (t.prototype.getHitFootprint = function (e) {
                                        var t,
                                            n = this.getCellDate(0, e.col),
                                            i = this.computeSnapTime(e.snap);
                                        return n.time(i), (t = n.clone().add(this.snapDuration)), new h.default(new p.default(n, t), !1);
                                    }),
                                    (t.prototype.computeSnapTime = function (e) {
                                        return r.duration(this.dateProfile.minTime + this.snapDuration * e);
                                    }),
                                    (t.prototype.getHitEl = function (e) {
                                        return this.colEls.eq(e.col);
                                    }),
                                    (t.prototype.renderDrag = function (e, t, n) {
                                        var i;
                                        if (t) {
                                            if (e.length) return this.helperRenderer.renderEventDraggingFootprints(e, t, n), !0;
                                        } else for (i = 0; i < e.length; i++) this.renderHighlight(e[i].componentFootprint);
                                    }),
                                    (t.prototype.unrenderDrag = function () {
                                        this.unrenderHighlight(), this.helperRenderer.unrender();
                                    }),
                                    (t.prototype.renderEventResize = function (e, t, n) {
                                        this.helperRenderer.renderEventResizingFootprints(e, t, n);
                                    }),
                                    (t.prototype.unrenderEventResize = function () {
                                        this.helperRenderer.unrender();
                                    }),
                                    (t.prototype.renderSelectionFootprint = function (e) {
                                        this.opt("selectHelper") ? this.helperRenderer.renderComponentFootprint(e) : this.renderHighlight(e);
                                    }),
                                    (t.prototype.unrenderSelection = function () {
                                        this.helperRenderer.unrender(), this.unrenderHighlight();
                                    }),
                                    t
                                );
                            })(a.default);
                        (t.default = y),
                            (y.prototype.eventRendererClass = f.default),
                            (y.prototype.businessHourRendererClass = l.default),
                            (y.prototype.helperRendererClass = m.default),
                            (y.prototype.fillRendererClass = g.default),
                            c.default.mixInto(y),
                            u.default.mixInto(y);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(5),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.buildRenderRange = function (t, n, i) {
                                        var r = e.prototype.buildRenderRange.call(this, t, n, i),
                                            s = this.msToUtcMoment(r.startMs, i),
                                            a = this.msToUtcMoment(r.endMs, i);
                                        return /^(year|month)$/.test(n) && (s.startOf("week"), a.weekday() && a.add(1, "week").startOf("week")), new o.default(s, a);
                                    }),
                                    t
                                );
                            })(n(221).default);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(0),
                            r = n(4),
                            s = n(62),
                            a = n(253),
                            l = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.setGridHeight = function (e, t) {
                                        t && (e *= this.dayGrid.rowCnt / 6), r.distributeHeight(this.dayGrid.rowEls, e, !t);
                                    }),
                                    (t.prototype.isDateInOtherMonth = function (e, t) {
                                        return e.month() !== o.utc(t.currentUnzonedRange.startMs).month();
                                    }),
                                    t
                                );
                            })(s.default);
                        (t.default = l), (l.prototype.dateProfileGeneratorClass = a.default);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(4),
                            s = n(5),
                            a = n(41),
                            l = n(39),
                            c = n(254),
                            u = n(255),
                            d = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return (i.segSelector = ".fc-list-item"), (i.scroller = new l.default({ overflowX: "hidden", overflowY: "auto" })), i;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderSkeleton = function () {
                                        this.el.addClass("fc-list-view " + this.calendar.theme.getClass("listView")), this.scroller.render(), this.scroller.el.appendTo(this.el), (this.contentEl = this.scroller.scrollEl);
                                    }),
                                    (t.prototype.unrenderSkeleton = function () {
                                        this.scroller.destroy();
                                    }),
                                    (t.prototype.updateSize = function (t, n, i) {
                                        e.prototype.updateSize.call(this, t, n, i), this.scroller.clear(), n || this.scroller.setHeight(this.computeScrollerHeight(t));
                                    }),
                                    (t.prototype.computeScrollerHeight = function (e) {
                                        return e - r.subtractInnerElHeight(this.el, this.scroller.el);
                                    }),
                                    (t.prototype.renderDates = function (e) {
                                        for (var t = this.calendar, n = t.msToUtcMoment(e.renderUnzonedRange.startMs, !0), i = t.msToUtcMoment(e.renderUnzonedRange.endMs, !0), o = [], r = []; n < i; )
                                            o.push(n.clone()), r.push(new s.default(n, n.clone().add(1, "day"))), n.add(1, "day");
                                        (this.dayDates = o), (this.dayRanges = r);
                                    }),
                                    (t.prototype.componentFootprintToSegs = function (e) {
                                        var t,
                                            n,
                                            i,
                                            o = this.dayRanges,
                                            r = [];
                                        for (t = 0; t < o.length; t++)
                                            if (
                                                (n = e.unzonedRange.intersect(o[t])) &&
                                                ((i = { startMs: n.startMs, endMs: n.endMs, isStart: n.isStart, isEnd: n.isEnd, dayIndex: t }),
                                                r.push(i),
                                                !i.isEnd && !e.isAllDay && t + 1 < o.length && e.unzonedRange.endMs < o[t + 1].startMs + this.nextDayThreshold)
                                            ) {
                                                (i.endMs = e.unzonedRange.endMs), (i.isEnd = !0);
                                                break;
                                            }
                                        return r;
                                    }),
                                    (t.prototype.renderEmptyMessage = function () {
                                        this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">' + r.htmlEscape(this.opt("noEventsMessage")) + "</div></div></div>");
                                    }),
                                    (t.prototype.renderSegList = function (e) {
                                        var t,
                                            n,
                                            i,
                                            r = this.groupSegsByDay(e),
                                            s = o('<table class="fc-list-table ' + this.calendar.theme.getClass("tableList") + '"><tbody/></table>'),
                                            a = s.find("tbody");
                                        for (t = 0; t < r.length; t++) if ((n = r[t])) for (a.append(this.dayHeaderHtml(this.dayDates[t])), this.eventRenderer.sortEventSegs(n), i = 0; i < n.length; i++) a.append(n[i].el);
                                        this.contentEl.empty().append(s);
                                    }),
                                    (t.prototype.groupSegsByDay = function (e) {
                                        var t,
                                            n,
                                            i = [];
                                        for (t = 0; t < e.length; t++) (i[(n = e[t]).dayIndex] || (i[n.dayIndex] = [])).push(n);
                                        return i;
                                    }),
                                    (t.prototype.dayHeaderHtml = function (e) {
                                        var t = this.opt("listDayFormat"),
                                            n = this.opt("listDayAltFormat");
                                        return (
                                            '<tr class="fc-list-heading" data-date="' +
                                            e.format("YYYY-MM-DD") +
                                            '"><td class="' +
                                            (this.calendar.theme.getClass("tableListHeading") || this.calendar.theme.getClass("widgetHeader")) +
                                            '" colspan="3">' +
                                            (t ? this.buildGotoAnchorHtml(e, { class: "fc-list-heading-main" }, r.htmlEscape(e.format(t))) : "") +
                                            (n ? this.buildGotoAnchorHtml(e, { class: "fc-list-heading-alt" }, r.htmlEscape(e.format(n))) : "") +
                                            "</td></tr>"
                                        );
                                    }),
                                    t
                                );
                            })(a.default);
                        (t.default = d), (d.prototype.eventRendererClass = c.default), (d.prototype.eventPointingClass = u.default);
                    },
                    ,
                    ,
                    ,
                    ,
                    ,
                    function (e, t, n) {
                        var i = n(3),
                            o = n(16),
                            r = n(4),
                            s = n(220);
                        n(10),
                            n(47),
                            n(256),
                            n(257),
                            n(260),
                            n(261),
                            n(262),
                            n(263),
                            (i.fullCalendar = o),
                            (i.fn.fullCalendar = function (e) {
                                var t = Array.prototype.slice.call(arguments, 1),
                                    n = this;
                                return (
                                    this.each(function (o, a) {
                                        var l,
                                            c = i(a),
                                            u = c.data("fullCalendar");
                                        "string" == typeof e
                                            ? "getCalendar" === e
                                                ? o || (n = u)
                                                : "destroy" === e
                                                ? u && (u.destroy(), c.removeData("fullCalendar"))
                                                : u
                                                ? i.isFunction(u[e])
                                                    ? ((l = u[e].apply(u, t)), o || (n = l), "destroy" === e && c.removeData("fullCalendar"))
                                                    : r.warn("'" + e + "' is an unknown FullCalendar method.")
                                                : r.warn("Attempting to call a FullCalendar method on an element with no calendar.")
                                            : u || ((u = new s.default(c, e)), c.data("fullCalendar", u), u.render());
                                    }),
                                    n
                                );
                            }),
                            (e.exports = o);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.setElement = function (e) {
                                        (this.el = e), this.bindGlobalHandlers(), this.renderSkeleton(), this.set("isInDom", !0);
                                    }),
                                    (t.prototype.removeElement = function () {
                                        this.unset("isInDom"), this.unrenderSkeleton(), this.unbindGlobalHandlers(), this.el.remove();
                                    }),
                                    (t.prototype.bindGlobalHandlers = function () {}),
                                    (t.prototype.unbindGlobalHandlers = function () {}),
                                    (t.prototype.renderSkeleton = function () {}),
                                    (t.prototype.unrenderSkeleton = function () {}),
                                    t
                                );
                            })(n(48).default);
                        t.default = o;
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var n = (function () {
                            function e(e) {
                                this.items = e || [];
                            }
                            return (
                                (e.prototype.proxyCall = function (e) {
                                    for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
                                    var i = [];
                                    return (
                                        this.items.forEach(function (n) {
                                            i.push(n[e].apply(n, t));
                                        }),
                                        i
                                    );
                                }),
                                e
                            );
                        })();
                        t.default = n;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(4),
                            r = (function () {
                                function e(e, t) {
                                    (this.el = null), (this.viewsWithButtons = []), (this.calendar = e), (this.toolbarOptions = t);
                                }
                                return (
                                    (e.prototype.setToolbarOptions = function (e) {
                                        this.toolbarOptions = e;
                                    }),
                                    (e.prototype.render = function () {
                                        var e = this.toolbarOptions.layout,
                                            t = this.el;
                                        e
                                            ? (t ? t.empty() : (t = this.el = i("<div class='fc-toolbar " + this.toolbarOptions.extraClasses + "'/>")),
                                              t.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"/>'))
                                            : this.removeElement();
                                    }),
                                    (e.prototype.removeElement = function () {
                                        this.el && (this.el.remove(), (this.el = null));
                                    }),
                                    (e.prototype.renderSection = function (e) {
                                        var t = this,
                                            n = this.calendar,
                                            r = n.theme,
                                            s = n.optionsManager,
                                            a = n.viewSpecManager,
                                            l = i('<div class="fc-' + e + '"/>'),
                                            c = this.toolbarOptions.layout[e],
                                            u = s.get("customButtons") || {},
                                            d = s.overrides.buttonText || {},
                                            p = s.get("buttonText") || {};
                                        return (
                                            c &&
                                                i.each(c.split(" "), function (e, s) {
                                                    var c,
                                                        h = i(),
                                                        f = !0;
                                                    i.each(s.split(","), function (e, s) {
                                                        var l, c, m, g, v, y, b, w, _;
                                                        "title" === s
                                                            ? ((h = h.add(i("<h2>&nbsp;</h2>"))), (f = !1))
                                                            : ((l = u[s])
                                                                  ? ((m = function (e) {
                                                                        l.click && l.click.call(w[0], e);
                                                                    }),
                                                                    (g = r.getCustomButtonIconClass(l)) || (g = r.getIconClass(s)) || (v = l.text))
                                                                  : (c = a.getViewSpec(s))
                                                                  ? (t.viewsWithButtons.push(s),
                                                                    (m = function () {
                                                                        n.changeView(s);
                                                                    }),
                                                                    (v = c.buttonTextOverride) || (g = r.getIconClass(s)) || (v = c.buttonTextDefault))
                                                                  : n[s] &&
                                                                    ((m = function () {
                                                                        n[s]();
                                                                    }),
                                                                    (v = d[s]) || (g = r.getIconClass(s)) || (v = p[s])),
                                                              m &&
                                                                  ((b = ["fc-" + s + "-button", r.getClass("button"), r.getClass("stateDefault")]),
                                                                  v ? ((y = o.htmlEscape(v)), (_ = "")) : g && ((y = "<span class='" + g + "'></span>"), (_ = ' aria-label="' + s + '"')),
                                                                  (w = i('<button type="button" class="' + b.join(" ") + '"' + _ + ">" + y + "</button>")
                                                                      .click(function (e) {
                                                                          w.hasClass(r.getClass("stateDisabled")) ||
                                                                              (m(e), (w.hasClass(r.getClass("stateActive")) || w.hasClass(r.getClass("stateDisabled"))) && w.removeClass(r.getClass("stateHover")));
                                                                      })
                                                                      .mousedown(function () {
                                                                          w.not("." + r.getClass("stateActive"))
                                                                              .not("." + r.getClass("stateDisabled"))
                                                                              .addClass(r.getClass("stateDown"));
                                                                      })
                                                                      .mouseup(function () {
                                                                          w.removeClass(r.getClass("stateDown"));
                                                                      })
                                                                      .hover(
                                                                          function () {
                                                                              w.not("." + r.getClass("stateActive"))
                                                                                  .not("." + r.getClass("stateDisabled"))
                                                                                  .addClass(r.getClass("stateHover"));
                                                                          },
                                                                          function () {
                                                                              w.removeClass(r.getClass("stateHover")).removeClass(r.getClass("stateDown"));
                                                                          }
                                                                      )),
                                                                  (h = h.add(w))));
                                                    }),
                                                        f && h.first().addClass(r.getClass("cornerLeft")).end().last().addClass(r.getClass("cornerRight")).end(),
                                                        h.length > 1 ? ((c = i("<div/>")), f && c.addClass(r.getClass("buttonGroup")), c.append(h), l.append(c)) : l.append(h);
                                                }),
                                            l
                                        );
                                    }),
                                    (e.prototype.updateTitle = function (e) {
                                        this.el && this.el.find("h2").text(e);
                                    }),
                                    (e.prototype.activateButton = function (e) {
                                        this.el && this.el.find(".fc-" + e + "-button").addClass(this.calendar.theme.getClass("stateActive"));
                                    }),
                                    (e.prototype.deactivateButton = function (e) {
                                        this.el && this.el.find(".fc-" + e + "-button").removeClass(this.calendar.theme.getClass("stateActive"));
                                    }),
                                    (e.prototype.disableButton = function (e) {
                                        this.el &&
                                            this.el
                                                .find(".fc-" + e + "-button")
                                                .prop("disabled", !0)
                                                .addClass(this.calendar.theme.getClass("stateDisabled"));
                                    }),
                                    (e.prototype.enableButton = function (e) {
                                        this.el &&
                                            this.el
                                                .find(".fc-" + e + "-button")
                                                .prop("disabled", !1)
                                                .removeClass(this.calendar.theme.getClass("stateDisabled"));
                                    }),
                                    (e.prototype.getViewsWithButtons = function () {
                                        return this.viewsWithButtons;
                                    }),
                                    e
                                );
                            })();
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(4),
                            s = n(32),
                            a = n(31),
                            l = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this) || this;
                                    return (i._calendar = t), (i.overrides = o.extend({}, n)), (i.dynamicOverrides = {}), i.compute(), i;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.add = function (e) {
                                        var t,
                                            n = 0;
                                        for (t in (this.recordOverrides(e), e)) n++;
                                        if (1 === n) {
                                            if ("height" === t || "contentHeight" === t || "aspectRatio" === t) return void this._calendar.updateViewSize(!0);
                                            if ("defaultDate" === t) return;
                                            if ("businessHours" === t) return;
                                            if (/^(event|select)(Overlap|Constraint|Allow)$/.test(t)) return;
                                            if ("timezone" === t) return void this._calendar.view.flash("initialEvents");
                                        }
                                        this._calendar.renderHeader(), this._calendar.renderFooter(), (this._calendar.viewsByType = {}), this._calendar.reinitView();
                                    }),
                                    (t.prototype.compute = function () {
                                        var e, t, n, i;
                                        (e = r.firstDefined(this.dynamicOverrides.locale, this.overrides.locale)),
                                            (t = a.localeOptionHash[e]) || ((e = s.globalDefaults.locale), (t = a.localeOptionHash[e] || {})),
                                            (n = r.firstDefined(this.dynamicOverrides.isRTL, this.overrides.isRTL, t.isRTL, s.globalDefaults.isRTL) ? s.rtlDefaults : {}),
                                            (this.dirDefaults = n),
                                            (this.localeDefaults = t),
                                            (i = s.mergeOptions([s.globalDefaults, n, t, this.overrides, this.dynamicOverrides])),
                                            a.populateInstanceComputableOptions(i),
                                            this.reset(i);
                                    }),
                                    (t.prototype.recordOverrides = function (e) {
                                        var t;
                                        for (t in e) this.dynamicOverrides[t] = e[t];
                                        this._calendar.viewSpecManager.clearCache(), this.compute();
                                    }),
                                    t
                                );
                            })(n(48).default);
                        t.default = l;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(3),
                            r = n(22),
                            s = n(4),
                            a = n(32),
                            l = n(31),
                            c = (function () {
                                function e(e, t) {
                                    (this.optionsManager = e), (this._calendar = t), this.clearCache();
                                }
                                return (
                                    (e.prototype.clearCache = function () {
                                        this.viewSpecCache = {};
                                    }),
                                    (e.prototype.getViewSpec = function (e) {
                                        var t = this.viewSpecCache;
                                        return t[e] || (t[e] = this.buildViewSpec(e));
                                    }),
                                    (e.prototype.getUnitViewSpec = function (e) {
                                        var t, n, i;
                                        if (-1 !== o.inArray(e, s.unitsDesc))
                                            for (
                                                t = this._calendar.header.getViewsWithButtons(),
                                                    o.each(r.viewHash, function (e) {
                                                        t.push(e);
                                                    }),
                                                    n = 0;
                                                n < t.length;
                                                n++
                                            )
                                                if ((i = this.getViewSpec(t[n])) && i.singleUnit === e) return i;
                                    }),
                                    (e.prototype.buildViewSpec = function (e) {
                                        for (var t, n, o, l, c, u = this.optionsManager.overrides.views || {}, d = [], p = [], h = [], f = e; f; )
                                            (t = r.viewHash[f]),
                                                (n = u[f]),
                                                (f = null),
                                                "function" == typeof t && (t = { class: t }),
                                                t && (d.unshift(t), p.unshift(t.defaults || {}), (o = o || t.duration), (f = f || t.type)),
                                                n && (h.unshift(n), (o = o || n.duration), (f = f || n.type));
                                        return (
                                            ((t = s.mergeProps(d)).type = e),
                                            !!t.class &&
                                                ((o = o || this.optionsManager.dynamicOverrides.duration || this.optionsManager.overrides.duration) &&
                                                    (l = i.duration(o)).valueOf() &&
                                                    ((c = s.computeDurationGreatestUnit(l, o)), (t.duration = l), (t.durationUnit = c), 1 === l.as(c) && ((t.singleUnit = c), h.unshift(u[c] || {}))),
                                                (t.defaults = a.mergeOptions(p)),
                                                (t.overrides = a.mergeOptions(h)),
                                                this.buildViewSpecOptions(t),
                                                this.buildViewSpecButtonText(t, e),
                                                t)
                                        );
                                    }),
                                    (e.prototype.buildViewSpecOptions = function (e) {
                                        var t = this.optionsManager;
                                        (e.options = a.mergeOptions([a.globalDefaults, e.defaults, t.dirDefaults, t.localeDefaults, t.overrides, e.overrides, t.dynamicOverrides])), l.populateInstanceComputableOptions(e.options);
                                    }),
                                    (e.prototype.buildViewSpecButtonText = function (e, t) {
                                        var n = this.optionsManager;
                                        function i(n) {
                                            var i = n.buttonText || {};
                                            return i[t] || (e.buttonTextKey ? i[e.buttonTextKey] : null) || (e.singleUnit ? i[e.singleUnit] : null);
                                        }
                                        (e.buttonTextOverride = i(n.dynamicOverrides) || i(n.overrides) || e.overrides.buttonText),
                                            (e.buttonTextDefault = i(n.localeDefaults) || i(n.dirDefaults) || e.defaults.buttonText || i(a.globalDefaults) || (e.duration ? this._calendar.humanizeDuration(e.duration) : null) || t);
                                    }),
                                    e
                                );
                            })();
                        t.default = c;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(4),
                            r = n(243),
                            s = n(52),
                            a = n(6),
                            l = n(38),
                            c = n(13),
                            u = n(18),
                            d = n(11),
                            p = n(7),
                            h = (function () {
                                function e(e) {
                                    (this.calendar = e), (this.stickySource = new s.default(e)), (this.otherSources = []);
                                }
                                return (
                                    (e.prototype.requestEvents = function (e, t, n, i) {
                                        return (!i && this.currentPeriod && this.currentPeriod.isWithinRange(e, t) && n === this.currentPeriod.timezone) || this.setPeriod(new r.default(e, t, n)), this.currentPeriod.whenReleased();
                                    }),
                                    (e.prototype.addSource = function (e) {
                                        this.otherSources.push(e), this.currentPeriod && this.currentPeriod.requestSource(e);
                                    }),
                                    (e.prototype.removeSource = function (e) {
                                        o.removeExact(this.otherSources, e), this.currentPeriod && this.currentPeriod.purgeSource(e);
                                    }),
                                    (e.prototype.removeAllSources = function () {
                                        (this.otherSources = []), this.currentPeriod && this.currentPeriod.purgeAllSources();
                                    }),
                                    (e.prototype.refetchSource = function (e) {
                                        var t = this.currentPeriod;
                                        t && (t.freeze(), t.purgeSource(e), t.requestSource(e), t.thaw());
                                    }),
                                    (e.prototype.refetchAllSources = function () {
                                        var e = this.currentPeriod;
                                        e && (e.freeze(), e.purgeAllSources(), e.requestSources(this.getSources()), e.thaw());
                                    }),
                                    (e.prototype.getSources = function () {
                                        return [this.stickySource].concat(this.otherSources);
                                    }),
                                    (e.prototype.multiQuerySources = function (e) {
                                        e ? i.isArray(e) || (e = [e]) : (e = []);
                                        var t,
                                            n = [];
                                        for (t = 0; t < e.length; t++) n.push.apply(n, this.querySources(e[t]));
                                        return n;
                                    }),
                                    (e.prototype.querySources = function (e) {
                                        var t,
                                            n,
                                            o = this.otherSources;
                                        for (t = 0; t < o.length; t++) if ((n = o[t]) === e) return [n];
                                        return (n = this.getSourceById(a.default.normalizeId(e)))
                                            ? [n]
                                            : (e = l.default.parse(e, this.calendar))
                                            ? i.grep(o, function (t) {
                                                  return (n = t), e.getPrimitive() === n.getPrimitive();
                                                  var n;
                                              })
                                            : void 0;
                                    }),
                                    (e.prototype.getSourceById = function (e) {
                                        return i.grep(this.otherSources, function (t) {
                                            return t.id && t.id === e;
                                        })[0];
                                    }),
                                    (e.prototype.setPeriod = function (e) {
                                        this.currentPeriod && (this.unbindPeriod(this.currentPeriod), (this.currentPeriod = null)), (this.currentPeriod = e), this.bindPeriod(e), e.requestSources(this.getSources());
                                    }),
                                    (e.prototype.bindPeriod = function (e) {
                                        this.listenTo(e, "release", function (e) {
                                            this.trigger("release", e);
                                        });
                                    }),
                                    (e.prototype.unbindPeriod = function (e) {
                                        this.stopListeningTo(e);
                                    }),
                                    (e.prototype.getEventDefByUid = function (e) {
                                        if (this.currentPeriod) return this.currentPeriod.getEventDefByUid(e);
                                    }),
                                    (e.prototype.addEventDef = function (e, t) {
                                        t && this.stickySource.addEventDef(e), this.currentPeriod && this.currentPeriod.addEventDef(e);
                                    }),
                                    (e.prototype.removeEventDefsById = function (e) {
                                        this.getSources().forEach(function (t) {
                                            t.removeEventDefsById(e);
                                        }),
                                            this.currentPeriod && this.currentPeriod.removeEventDefsById(e);
                                    }),
                                    (e.prototype.removeAllEventDefs = function () {
                                        this.getSources().forEach(function (e) {
                                            e.removeAllEventDefs();
                                        }),
                                            this.currentPeriod && this.currentPeriod.removeAllEventDefs();
                                    }),
                                    (e.prototype.mutateEventsWithId = function (e, t) {
                                        var n,
                                            i = this.currentPeriod,
                                            o = [];
                                        return i
                                            ? (i.freeze(),
                                              (n = i.getEventDefsById(e)).forEach(function (e) {
                                                  i.removeEventDef(e), o.push(t.mutateSingle(e)), i.addEventDef(e);
                                              }),
                                              i.thaw(),
                                              function () {
                                                  i.freeze();
                                                  for (var e = 0; e < n.length; e++) i.removeEventDef(n[e]), o[e](), i.addEventDef(n[e]);
                                                  i.thaw();
                                              })
                                            : function () {};
                                    }),
                                    (e.prototype.buildMutatedEventInstanceGroup = function (e, t) {
                                        var n,
                                            i,
                                            o = this.getEventDefsById(e),
                                            r = [];
                                        for (n = 0; n < o.length; n++) (i = o[n].clone()) instanceof c.default && (t.mutateSingle(i), r.push.apply(r, i.buildInstances()));
                                        return new u.default(r);
                                    }),
                                    (e.prototype.freeze = function () {
                                        this.currentPeriod && this.currentPeriod.freeze();
                                    }),
                                    (e.prototype.thaw = function () {
                                        this.currentPeriod && this.currentPeriod.thaw();
                                    }),
                                    (e.prototype.getEventDefsById = function (e) {
                                        return this.currentPeriod.getEventDefsById(e);
                                    }),
                                    (e.prototype.getEventInstances = function () {
                                        return this.currentPeriod.getEventInstances();
                                    }),
                                    (e.prototype.getEventInstancesWithId = function (e) {
                                        return this.currentPeriod.getEventInstancesWithId(e);
                                    }),
                                    (e.prototype.getEventInstancesWithoutId = function (e) {
                                        return this.currentPeriod.getEventInstancesWithoutId(e);
                                    }),
                                    e
                                );
                            })();
                        (t.default = h), d.default.mixInto(h), p.default.mixInto(h);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(4),
                            r = n(20),
                            s = n(11),
                            a = n(5),
                            l = n(18),
                            c = (function () {
                                function e(e, t, n) {
                                    (this.pendingCnt = 0),
                                        (this.freezeDepth = 0),
                                        (this.stuntedReleaseCnt = 0),
                                        (this.releaseCnt = 0),
                                        (this.start = e),
                                        (this.end = t),
                                        (this.timezone = n),
                                        (this.unzonedRange = new a.default(e.clone().stripZone(), t.clone().stripZone())),
                                        (this.requestsByUid = {}),
                                        (this.eventDefsByUid = {}),
                                        (this.eventDefsById = {}),
                                        (this.eventInstanceGroupsById = {});
                                }
                                return (
                                    (e.prototype.isWithinRange = function (e, t) {
                                        return !e.isBefore(this.start) && !t.isAfter(this.end);
                                    }),
                                    (e.prototype.requestSources = function (e) {
                                        this.freeze();
                                        for (var t = 0; t < e.length; t++) this.requestSource(e[t]);
                                        this.thaw();
                                    }),
                                    (e.prototype.requestSource = function (e) {
                                        var t = this,
                                            n = { source: e, status: "pending", eventDefs: null };
                                        (this.requestsByUid[e.uid] = n),
                                            (this.pendingCnt += 1),
                                            e.fetch(this.start, this.end, this.timezone).then(
                                                function (e) {
                                                    "cancelled" !== n.status && ((n.status = "completed"), (n.eventDefs = e), t.addEventDefs(e), t.pendingCnt--, t.tryRelease());
                                                },
                                                function () {
                                                    "cancelled" !== n.status && ((n.status = "failed"), t.pendingCnt--, t.tryRelease());
                                                }
                                            );
                                    }),
                                    (e.prototype.purgeSource = function (e) {
                                        var t = this.requestsByUid[e.uid];
                                        t &&
                                            (delete this.requestsByUid[e.uid],
                                            "pending" === t.status ? ((t.status = "cancelled"), this.pendingCnt--, this.tryRelease()) : "completed" === t.status && t.eventDefs.forEach(this.removeEventDef.bind(this)));
                                    }),
                                    (e.prototype.purgeAllSources = function () {
                                        var e,
                                            t,
                                            n = this.requestsByUid,
                                            i = 0;
                                        for (e in n) "pending" === (t = n[e]).status ? (t.status = "cancelled") : "completed" === t.status && i++;
                                        (this.requestsByUid = {}), (this.pendingCnt = 0), i && this.removeAllEventDefs();
                                    }),
                                    (e.prototype.getEventDefByUid = function (e) {
                                        return this.eventDefsByUid[e];
                                    }),
                                    (e.prototype.getEventDefsById = function (e) {
                                        var t = this.eventDefsById[e];
                                        return t ? t.slice() : [];
                                    }),
                                    (e.prototype.addEventDefs = function (e) {
                                        for (var t = 0; t < e.length; t++) this.addEventDef(e[t]);
                                    }),
                                    (e.prototype.addEventDef = function (e) {
                                        var t,
                                            n = this.eventDefsById,
                                            i = e.id,
                                            o = n[i] || (n[i] = []),
                                            r = e.buildInstances(this.unzonedRange);
                                        for (o.push(e), this.eventDefsByUid[e.uid] = e, t = 0; t < r.length; t++) this.addEventInstance(r[t], i);
                                    }),
                                    (e.prototype.removeEventDefsById = function (e) {
                                        var t = this;
                                        this.getEventDefsById(e).forEach(function (e) {
                                            t.removeEventDef(e);
                                        });
                                    }),
                                    (e.prototype.removeAllEventDefs = function () {
                                        var e = i.isEmptyObject(this.eventDefsByUid);
                                        (this.eventDefsByUid = {}), (this.eventDefsById = {}), (this.eventInstanceGroupsById = {}), e || this.tryRelease();
                                    }),
                                    (e.prototype.removeEventDef = function (e) {
                                        var t = this.eventDefsById,
                                            n = t[e.id];
                                        delete this.eventDefsByUid[e.uid], n && (o.removeExact(n, e), n.length || delete t[e.id], this.removeEventInstancesForDef(e));
                                    }),
                                    (e.prototype.getEventInstances = function () {
                                        var e,
                                            t = this.eventInstanceGroupsById,
                                            n = [];
                                        for (e in t) n.push.apply(n, t[e].eventInstances);
                                        return n;
                                    }),
                                    (e.prototype.getEventInstancesWithId = function (e) {
                                        var t = this.eventInstanceGroupsById[e];
                                        return t ? t.eventInstances.slice() : [];
                                    }),
                                    (e.prototype.getEventInstancesWithoutId = function (e) {
                                        var t,
                                            n = this.eventInstanceGroupsById,
                                            i = [];
                                        for (t in n) t !== e && i.push.apply(i, n[t].eventInstances);
                                        return i;
                                    }),
                                    (e.prototype.addEventInstance = function (e, t) {
                                        var n = this.eventInstanceGroupsById;
                                        (n[t] || (n[t] = new l.default())).eventInstances.push(e), this.tryRelease();
                                    }),
                                    (e.prototype.removeEventInstancesForDef = function (e) {
                                        var t,
                                            n = this.eventInstanceGroupsById,
                                            i = n[e.id];
                                        i &&
                                            ((t = o.removeMatching(i.eventInstances, function (t) {
                                                return t.def === e;
                                            })),
                                            i.eventInstances.length || delete n[e.id],
                                            t && this.tryRelease());
                                    }),
                                    (e.prototype.tryRelease = function () {
                                        this.pendingCnt || (this.freezeDepth ? this.stuntedReleaseCnt++ : this.release());
                                    }),
                                    (e.prototype.release = function () {
                                        this.releaseCnt++, this.trigger("release", this.eventInstanceGroupsById);
                                    }),
                                    (e.prototype.whenReleased = function () {
                                        var e = this;
                                        return this.releaseCnt
                                            ? r.default.resolve(this.eventInstanceGroupsById)
                                            : r.default.construct(function (t) {
                                                  e.one("release", t);
                                              });
                                    }),
                                    (e.prototype.freeze = function () {
                                        this.freezeDepth++ || (this.stuntedReleaseCnt = 0);
                                    }),
                                    (e.prototype.thaw = function () {
                                        --this.freezeDepth || !this.stuntedReleaseCnt || this.pendingCnt || this.release();
                                    }),
                                    e
                                );
                            })();
                        (t.default = c), s.default.mixInto(c);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(4),
                            r = n(7),
                            s = (function () {
                                function e(e, t) {
                                    (this.isFollowing = !1), (this.isHidden = !1), (this.isAnimating = !1), (this.options = t = t || {}), (this.sourceEl = e), (this.parentEl = t.parentEl ? i(t.parentEl) : e.parent());
                                }
                                return (
                                    (e.prototype.start = function (e) {
                                        this.isFollowing ||
                                            ((this.isFollowing = !0),
                                            (this.y0 = o.getEvY(e)),
                                            (this.x0 = o.getEvX(e)),
                                            (this.topDelta = 0),
                                            (this.leftDelta = 0),
                                            this.isHidden || this.updatePosition(),
                                            o.getEvIsTouch(e) ? this.listenTo(i(document), "touchmove", this.handleMove) : this.listenTo(i(document), "mousemove", this.handleMove));
                                    }),
                                    (e.prototype.stop = function (e, t) {
                                        var n = this,
                                            o = this.options.revertDuration,
                                            r = function () {
                                                (n.isAnimating = !1), n.removeElement(), (n.top0 = n.left0 = null), t && t();
                                            };
                                        this.isFollowing &&
                                            !this.isAnimating &&
                                            ((this.isFollowing = !1),
                                            this.stopListeningTo(i(document)),
                                            e && o && !this.isHidden ? ((this.isAnimating = !0), this.el.animate({ top: this.top0, left: this.left0 }, { duration: o, complete: r })) : r());
                                    }),
                                    (e.prototype.getEl = function () {
                                        var e = this.el;
                                        return (
                                            e ||
                                                ((e = this.el = this.sourceEl
                                                    .clone()
                                                    .addClass(this.options.additionalClass || "")
                                                    .css({
                                                        position: "absolute",
                                                        visibility: "",
                                                        display: this.isHidden ? "none" : "",
                                                        margin: 0,
                                                        right: "auto",
                                                        bottom: "auto",
                                                        width: this.sourceEl.width(),
                                                        height: this.sourceEl.height(),
                                                        opacity: this.options.opacity || "",
                                                        zIndex: this.options.zIndex,
                                                    })).addClass("fc-unselectable"),
                                                e.appendTo(this.parentEl)),
                                            e
                                        );
                                    }),
                                    (e.prototype.removeElement = function () {
                                        this.el && (this.el.remove(), (this.el = null));
                                    }),
                                    (e.prototype.updatePosition = function () {
                                        var e, t;
                                        this.getEl(),
                                            null == this.top0 && ((e = this.sourceEl.offset()), (t = this.el.offsetParent().offset()), (this.top0 = e.top - t.top), (this.left0 = e.left - t.left)),
                                            this.el.css({ top: this.top0 + this.topDelta, left: this.left0 + this.leftDelta });
                                    }),
                                    (e.prototype.handleMove = function (e) {
                                        (this.topDelta = o.getEvY(e) - this.y0), (this.leftDelta = o.getEvX(e) - this.x0), this.isHidden || this.updatePosition();
                                    }),
                                    (e.prototype.hide = function () {
                                        this.isHidden || ((this.isHidden = !0), this.el && this.el.hide());
                                    }),
                                    (e.prototype.show = function () {
                                        this.isHidden && ((this.isHidden = !1), this.updatePosition(), this.getEl().show());
                                    }),
                                    e
                                );
                            })();
                        (t.default = s), r.default.mixInto(s);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(23),
                            r = (function (e) {
                                function t(t) {
                                    var n = e.call(this, t) || this;
                                    return (n.dragListener = n.buildDragListener()), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.end = function () {
                                        this.dragListener.endInteraction();
                                    }),
                                    (t.prototype.bindToEl = function (e) {
                                        var t = this.component,
                                            n = this.dragListener;
                                        t.bindDateHandlerToEl(e, "mousedown", function (e) {
                                            t.shouldIgnoreMouse() || n.startInteraction(e);
                                        }),
                                            t.bindDateHandlerToEl(e, "touchstart", function (e) {
                                                t.shouldIgnoreTouch() || n.startInteraction(e);
                                            });
                                    }),
                                    (t.prototype.buildDragListener = function () {
                                        var e,
                                            t = this,
                                            n = this.component,
                                            i = new o.default(n, {
                                                scroll: this.opt("dragScroll"),
                                                interactionStart: function () {
                                                    e = i.origHit;
                                                },
                                                hitOver: function (t, n, i) {
                                                    n || (e = null);
                                                },
                                                hitOut: function () {
                                                    e = null;
                                                },
                                                interactionEnd: function (i, o) {
                                                    var r;
                                                    !o && e && (r = n.getSafeHitFootprint(e)) && t.view.triggerDayClick(r, n.getHitEl(e), i);
                                                },
                                            });
                                        return (i.shouldCancelTouchScroll = !1), (i.scrollAlwaysKills = !0), i;
                                    }),
                                    t
                                );
                            })(n(15).default);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(4),
                            r = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return (i.timeGrid = t), i;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderFgSegs = function (e) {
                                        this.renderFgSegsIntoContainers(e, this.timeGrid.fgContainerEls);
                                    }),
                                    (t.prototype.renderFgSegsIntoContainers = function (e, t) {
                                        var n, i;
                                        for (n = this.timeGrid.groupSegsByCol(e), i = 0; i < this.timeGrid.colCnt; i++) this.updateFgSegCoords(n[i]);
                                        this.timeGrid.attachSegsByCol(n, t);
                                    }),
                                    (t.prototype.unrenderFgSegs = function () {
                                        this.fgSegs &&
                                            this.fgSegs.forEach(function (e) {
                                                e.el.remove();
                                            });
                                    }),
                                    (t.prototype.computeEventTimeFormat = function () {
                                        return this.opt("noMeridiemTimeFormat");
                                    }),
                                    (t.prototype.computeDisplayEventEnd = function () {
                                        return !0;
                                    }),
                                    (t.prototype.fgSegHtml = function (e, t) {
                                        var n,
                                            i,
                                            r,
                                            s = this.view,
                                            a = s.calendar,
                                            l = e.footprint.componentFootprint,
                                            c = l.isAllDay,
                                            u = e.footprint.eventDef,
                                            d = s.isEventDefDraggable(u),
                                            p = !t && e.isStart && s.isEventDefResizableFromStart(u),
                                            h = !t && e.isEnd && s.isEventDefResizableFromEnd(u),
                                            f = this.getSegClasses(e, d, p || h),
                                            m = o.cssToStr(this.getSkinCss(u));
                                        if ((f.unshift("fc-time-grid-event", "fc-v-event"), s.isMultiDayRange(l.unzonedRange))) {
                                            if (e.isStart || e.isEnd) {
                                                var g = a.msToMoment(e.startMs),
                                                    v = a.msToMoment(e.endMs);
                                                (n = this._getTimeText(g, v, c)), (i = this._getTimeText(g, v, c, "LT")), (r = this._getTimeText(g, v, c, null, !1));
                                            }
                                        } else (n = this.getTimeText(e.footprint)), (i = this.getTimeText(e.footprint, "LT")), (r = this.getTimeText(e.footprint, null, !1));
                                        return (
                                            '<a class="' +
                                            f.join(" ") +
                                            '"' +
                                            (u.url ? ' href="' + o.htmlEscape(u.url) + '"' : "") +
                                            (m ? ' style="' + m + '"' : "") +
                                            '><div class="fc-content">' +
                                            (n ? '<div class="fc-time" data-start="' + o.htmlEscape(r) + '" data-full="' + o.htmlEscape(i) + '"><span>' + o.htmlEscape(n) + "</span></div>" : "") +
                                            (u.title ? '<div class="fc-title">' + o.htmlEscape(u.title) + "</div>" : "") +
                                            '</div><div class="fc-bg"/>' +
                                            (h ? '<div class="fc-resizer fc-end-resizer" />' : "") +
                                            "</a>"
                                        );
                                    }),
                                    (t.prototype.updateFgSegCoords = function (e) {
                                        this.timeGrid.computeSegVerticals(e), this.computeFgSegHorizontals(e), this.timeGrid.assignSegVerticals(e), this.assignFgSegHorizontals(e);
                                    }),
                                    (t.prototype.computeFgSegHorizontals = function (e) {
                                        var t, n, i;
                                        if (
                                            (this.sortEventSegs(e),
                                            (function (e) {
                                                var t, n, i, o, r;
                                                for (t = 0; t < e.length; t++) for (n = e[t], i = 0; i < n.length; i++) for ((o = n[i]).forwardSegs = [], r = t + 1; r < e.length; r++) a(o, e[r], o.forwardSegs);
                                            })(
                                                (t = (function (e) {
                                                    var t,
                                                        n,
                                                        i,
                                                        o = [];
                                                    for (t = 0; t < e.length; t++) {
                                                        for (n = e[t], i = 0; i < o.length && a(n, o[i]).length; i++);
                                                        (n.level = i), (o[i] || (o[i] = [])).push(n);
                                                    }
                                                    return o;
                                                })(e))
                                            ),
                                            (n = t[0]))
                                        ) {
                                            for (i = 0; i < n.length; i++) s(n[i]);
                                            for (i = 0; i < n.length; i++) this.computeFgSegForwardBack(n[i], 0, 0);
                                        }
                                    }),
                                    (t.prototype.computeFgSegForwardBack = function (e, t, n) {
                                        var i,
                                            o = e.forwardSegs;
                                        if (void 0 === e.forwardCoord)
                                            for (
                                                o.length ? (this.sortForwardSegs(o), this.computeFgSegForwardBack(o[0], t + 1, n), (e.forwardCoord = o[0].backwardCoord)) : (e.forwardCoord = 1),
                                                    e.backwardCoord = e.forwardCoord - (e.forwardCoord - n) / (t + 1),
                                                    i = 0;
                                                i < o.length;
                                                i++
                                            )
                                                this.computeFgSegForwardBack(o[i], 0, e.forwardCoord);
                                    }),
                                    (t.prototype.sortForwardSegs = function (e) {
                                        e.sort(o.proxy(this, "compareForwardSegs"));
                                    }),
                                    (t.prototype.compareForwardSegs = function (e, t) {
                                        return t.forwardPressure - e.forwardPressure || (e.backwardCoord || 0) - (t.backwardCoord || 0) || this.compareEventSegs(e, t);
                                    }),
                                    (t.prototype.assignFgSegHorizontals = function (e) {
                                        var t, n;
                                        for (t = 0; t < e.length; t++) (n = e[t]).el.css(this.generateFgSegHorizontalCss(n)), n.bottom - n.top < 30 && n.el.addClass("fc-short");
                                    }),
                                    (t.prototype.generateFgSegHorizontalCss = function (e) {
                                        var t,
                                            n,
                                            i = this.opt("slotEventOverlap"),
                                            o = e.backwardCoord,
                                            r = e.forwardCoord,
                                            s = this.timeGrid.generateSegVerticalCss(e),
                                            a = this.timeGrid.isRTL;
                                        return (
                                            i && (r = Math.min(1, o + 2 * (r - o))),
                                            a ? ((t = 1 - r), (n = o)) : ((t = o), (n = 1 - r)),
                                            (s.zIndex = e.level + 1),
                                            (s.left = 100 * t + "%"),
                                            (s.right = 100 * n + "%"),
                                            i && e.forwardPressure && (s[a ? "marginLeft" : "marginRight"] = 20),
                                            s
                                        );
                                    }),
                                    t
                                );
                            })(n(42).default);
                        function s(e) {
                            var t,
                                n,
                                i = e.forwardSegs,
                                o = 0;
                            if (void 0 === e.forwardPressure) {
                                for (t = 0; t < i.length; t++) s((n = i[t])), (o = Math.max(o, 1 + n.forwardPressure));
                                e.forwardPressure = o;
                            }
                        }
                        function a(e, t, n) {
                            void 0 === n && (n = []);
                            for (var i = 0; i < t.length; i++) (o = e), (r = t[i]), o.bottom > r.top && o.top < r.bottom && n.push(t[i]);
                            var o, r;
                            return n;
                        }
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderSegs = function (e, t) {
                                        var n,
                                            i,
                                            r,
                                            s = [];
                                        for (this.eventRenderer.renderFgSegsIntoContainers(e, this.component.helperContainerEls), n = 0; n < e.length; n++)
                                            (i = e[n]),
                                                t && t.col === i.col && ((r = t.el), i.el.css({ left: r.css("left"), right: r.css("right"), "margin-left": r.css("margin-left"), "margin-right": r.css("margin-right") })),
                                                s.push(i.el[0]);
                                        return o(s);
                                    }),
                                    t
                                );
                            })(n(58).default);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.attachSegEls = function (e, t) {
                                        var n,
                                            i = this.component;
                                        return (
                                            "bgEvent" === e ? (n = i.bgContainerEls) : "businessHours" === e ? (n = i.businessContainerEls) : "highlight" === e && (n = i.highlightContainerEls),
                                            i.updateSegVerticals(t),
                                            i.attachSegsByCol(i.groupSegsByCol(t), n),
                                            t.map(function (e) {
                                                return e.el[0];
                                            })
                                        );
                                    }),
                                    t
                                );
                            })(n(57).default);
                        t.default = o;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(3),
                            o = n(4),
                            r = n(7),
                            s = (function () {
                                function e(e) {
                                    (this.isHidden = !0), (this.margin = 10), (this.options = e || {});
                                }
                                return (
                                    (e.prototype.show = function () {
                                        this.isHidden && (this.el || this.render(), this.el.show(), this.position(), (this.isHidden = !1), this.trigger("show"));
                                    }),
                                    (e.prototype.hide = function () {
                                        this.isHidden || (this.el.hide(), (this.isHidden = !0), this.trigger("hide"));
                                    }),
                                    (e.prototype.render = function () {
                                        var e = this,
                                            t = this.options;
                                        (this.el = i('<div class="fc-popover"/>')
                                            .addClass(t.className || "")
                                            .css({ top: 0, left: 0 })
                                            .append(t.content)
                                            .appendTo(t.parentEl)),
                                            this.el.on("click", ".fc-close", function () {
                                                e.hide();
                                            }),
                                            t.autoHide && this.listenTo(i(document), "mousedown", this.documentMousedown);
                                    }),
                                    (e.prototype.documentMousedown = function (e) {
                                        this.el && !i(e.target).closest(this.el).length && this.hide();
                                    }),
                                    (e.prototype.removeElement = function () {
                                        this.hide(), this.el && (this.el.remove(), (this.el = null)), this.stopListeningTo(i(document), "mousedown");
                                    }),
                                    (e.prototype.position = function () {
                                        var e,
                                            t,
                                            n,
                                            r,
                                            s,
                                            a = this.options,
                                            l = this.el.offsetParent().offset(),
                                            c = this.el.outerWidth(),
                                            u = this.el.outerHeight(),
                                            d = i(window),
                                            p = o.getScrollParent(this.el);
                                        (r = a.top || 0),
                                            (s = void 0 !== a.left ? a.left : void 0 !== a.right ? a.right - c : 0),
                                            p.is(window) || p.is(document) ? ((p = d), (e = 0), (t = 0)) : ((e = (n = p.offset()).top), (t = n.left)),
                                            (e += d.scrollTop()),
                                            (t += d.scrollLeft()),
                                            !1 !== a.viewportConstrain &&
                                                ((r = Math.min(r, e + p.outerHeight() - u - this.margin)), (r = Math.max(r, e + this.margin)), (s = Math.min(s, t + p.outerWidth() - c - this.margin)), (s = Math.max(s, t + this.margin))),
                                            this.el.css({ top: r - l.top, left: s - l.left });
                                    }),
                                    (e.prototype.trigger = function (e) {
                                        this.options[e] && this.options[e].apply(this, Array.prototype.slice.call(arguments, 1));
                                    }),
                                    e
                                );
                            })();
                        (t.default = s), r.default.mixInto(s);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = n(4),
                            s = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return (i.dayGrid = t), i;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderBgRanges = function (t) {
                                        (t = o.grep(t, function (e) {
                                            return e.eventDef.isAllDay();
                                        })),
                                            e.prototype.renderBgRanges.call(this, t);
                                    }),
                                    (t.prototype.renderFgSegs = function (e) {
                                        var t = (this.rowStructs = this.renderSegRows(e));
                                        this.dayGrid.rowEls.each(function (e, n) {
                                            o(n).find(".fc-content-skeleton > table").append(t[e].tbodyEl);
                                        });
                                    }),
                                    (t.prototype.unrenderFgSegs = function () {
                                        for (var e, t = this.rowStructs || []; (e = t.pop()); ) e.tbodyEl.remove();
                                        this.rowStructs = null;
                                    }),
                                    (t.prototype.renderSegRows = function (e) {
                                        var t,
                                            n,
                                            i = [];
                                        for (t = this.groupSegRows(e), n = 0; n < t.length; n++) i.push(this.renderSegRow(n, t[n]));
                                        return i;
                                    }),
                                    (t.prototype.renderSegRow = function (e, t) {
                                        var n,
                                            i,
                                            r,
                                            s,
                                            a,
                                            l,
                                            c,
                                            u = this.dayGrid.colCnt,
                                            d = this.buildSegLevels(t),
                                            p = Math.max(1, d.length),
                                            h = o("<tbody/>"),
                                            f = [],
                                            m = [],
                                            g = [];
                                        function v(e) {
                                            for (; r < e; ) (c = (g[n - 1] || [])[r]) ? c.attr("rowspan", parseInt(c.attr("rowspan") || 1, 10) + 1) : ((c = o("<td/>")), s.append(c)), (m[n][r] = c), (g[n][r] = c), r++;
                                        }
                                        for (n = 0; n < p; n++) {
                                            if (((i = d[n]), (r = 0), (s = o("<tr/>")), f.push([]), m.push([]), g.push([]), i))
                                                for (a = 0; a < i.length; a++) {
                                                    for (
                                                        v((l = i[a]).leftCol), c = o('<td class="fc-event-container"/>').append(l.el), l.leftCol !== l.rightCol ? c.attr("colspan", l.rightCol - l.leftCol + 1) : (g[n][r] = c);
                                                        r <= l.rightCol;

                                                    )
                                                        (m[n][r] = c), (f[n][r] = l), r++;
                                                    s.append(c);
                                                }
                                            v(u), this.dayGrid.bookendCells(s), h.append(s);
                                        }
                                        return { row: e, tbodyEl: h, cellMatrix: m, segMatrix: f, segLevels: d, segs: t };
                                    }),
                                    (t.prototype.buildSegLevels = function (e) {
                                        var t,
                                            n,
                                            i,
                                            o = [];
                                        for (this.sortEventSegs(e), t = 0; t < e.length; t++) {
                                            for (n = e[t], i = 0; i < o.length && a(n, o[i]); i++);
                                            (n.level = i), (o[i] || (o[i] = [])).push(n);
                                        }
                                        for (i = 0; i < o.length; i++) o[i].sort(l);
                                        return o;
                                    }),
                                    (t.prototype.groupSegRows = function (e) {
                                        var t,
                                            n = [];
                                        for (t = 0; t < this.dayGrid.rowCnt; t++) n.push([]);
                                        for (t = 0; t < e.length; t++) n[e[t].row].push(e[t]);
                                        return n;
                                    }),
                                    (t.prototype.computeEventTimeFormat = function () {
                                        return this.opt("extraSmallTimeFormat");
                                    }),
                                    (t.prototype.computeDisplayEventEnd = function () {
                                        return 1 === this.dayGrid.colCnt;
                                    }),
                                    (t.prototype.fgSegHtml = function (e, t) {
                                        var n,
                                            i,
                                            o = this.view,
                                            s = e.footprint.eventDef,
                                            a = e.footprint.componentFootprint.isAllDay,
                                            l = o.isEventDefDraggable(s),
                                            c = !t && a && e.isStart && o.isEventDefResizableFromStart(s),
                                            u = !t && a && e.isEnd && o.isEventDefResizableFromEnd(s),
                                            d = this.getSegClasses(e, l, c || u),
                                            p = r.cssToStr(this.getSkinCss(s)),
                                            h = "";
                                        return (
                                            d.unshift("fc-day-grid-event", "fc-h-event"),
                                            e.isStart && (n = this.getTimeText(e.footprint)) && (h = '<span class="fc-time">' + r.htmlEscape(n) + "</span>"),
                                            (i = '<span class="fc-title">' + (r.htmlEscape(s.title || "") || "&nbsp;") + "</span>"),
                                            '<a class="' +
                                                d.join(" ") +
                                                '"' +
                                                (s.url ? ' href="' + r.htmlEscape(s.url) + '"' : "") +
                                                (p ? ' style="' + p + '"' : "") +
                                                '><div class="fc-content">' +
                                                (this.dayGrid.isRTL ? i + " " + h : h + " " + i) +
                                                "</div>" +
                                                (c ? '<div class="fc-resizer fc-start-resizer" />' : "") +
                                                (u ? '<div class="fc-resizer fc-end-resizer" />' : "") +
                                                "</a>"
                                        );
                                    }),
                                    t
                                );
                            })(n(42).default);
                        function a(e, t) {
                            var n, i;
                            for (n = 0; n < t.length; n++) if ((i = t[n]).leftCol <= e.rightCol && i.rightCol >= e.leftCol) return !0;
                            return !1;
                        }
                        function l(e, t) {
                            return e.leftCol - t.leftCol;
                        }
                        t.default = s;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderSegs = function (e, t) {
                                        var n,
                                            i = [];
                                        return (
                                            (n = this.eventRenderer.renderSegRows(e)),
                                            this.component.rowEls.each(function (e, r) {
                                                var s,
                                                    a,
                                                    l = o(r),
                                                    c = o('<div class="fc-helper-skeleton"><table/></div>');
                                                t && t.row === e ? (a = t.el.position().top) : ((s = l.find(".fc-content-skeleton tbody")).length || (s = l.find(".fc-content-skeleton table")), (a = s.position().top)),
                                                    c.css("top", a).find("table").append(n[e].tbodyEl),
                                                    l.append(c),
                                                    i.push(c[0]);
                                            }),
                                            o(i)
                                        );
                                    }),
                                    t
                                );
                            })(n(58).default);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = (function (e) {
                                function t() {
                                    var t = (null !== e && e.apply(this, arguments)) || this;
                                    return (t.fillSegTag = "td"), t;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.attachSegEls = function (e, t) {
                                        var n,
                                            i,
                                            o,
                                            r = [];
                                        for (n = 0; n < t.length; n++) (i = t[n]), (o = this.renderFillRow(e, i)), this.component.rowEls.eq(i.row).append(o), r.push(o[0]);
                                        return r;
                                    }),
                                    (t.prototype.renderFillRow = function (e, t) {
                                        var n,
                                            i,
                                            r,
                                            s = this.component.colCnt,
                                            a = t.leftCol,
                                            l = t.rightCol + 1;
                                        return (
                                            (n = "businessHours" === e ? "bgevent" : e.toLowerCase()),
                                            (r = (i = o('<div class="fc-' + n + '-skeleton"><table><tr/></table></div>')).find("tr")),
                                            a > 0 && r.append('<td colspan="' + a + '"/>'),
                                            r.append(t.el.attr("colspan", l - a)),
                                            l < s && r.append('<td colspan="' + (s - l) + '"/>'),
                                            this.component.bookendCells(r),
                                            i
                                        );
                                    }),
                                    t
                                );
                            })(n(57).default);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(228),
                            r = n(5),
                            s = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.buildRenderRange = function (t, n, i) {
                                        var o,
                                            s = e.prototype.buildRenderRange.call(this, t, n, i),
                                            a = this.msToUtcMoment(s.startMs, i),
                                            l = this.msToUtcMoment(s.endMs, i);
                                        return this.opt("fixedWeekCount") && ((o = Math.ceil(l.diff(a, "weeks", !0))), l.add(6 - o, "weeks")), new r.default(a, l);
                                    }),
                                    t
                                );
                            })(o.default);
                        t.default = s;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(4),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderFgSegs = function (e) {
                                        e.length ? this.component.renderSegList(e) : this.component.renderEmptyMessage();
                                    }),
                                    (t.prototype.fgSegHtml = function (e) {
                                        var t,
                                            n = this.view,
                                            i = n.calendar,
                                            r = i.theme,
                                            s = e.footprint,
                                            a = s.eventDef,
                                            l = s.componentFootprint,
                                            c = a.url,
                                            u = ["fc-list-item"].concat(this.getClasses(a)),
                                            d = this.getBgColor(a);
                                        return (
                                            (t = l.isAllDay
                                                ? n.getAllDayHtml()
                                                : n.isMultiDayRange(l.unzonedRange)
                                                ? e.isStart || e.isEnd
                                                    ? o.htmlEscape(this._getTimeText(i.msToMoment(e.startMs), i.msToMoment(e.endMs), l.isAllDay))
                                                    : n.getAllDayHtml()
                                                : o.htmlEscape(this.getTimeText(s))),
                                            c && u.push("fc-has-url"),
                                            '<tr class="' +
                                                u.join(" ") +
                                                '">' +
                                                (this.displayEventTime ? '<td class="fc-list-item-time ' + r.getClass("widgetContent") + '">' + (t || "") + "</td>" : "") +
                                                '<td class="fc-list-item-marker ' +
                                                r.getClass("widgetContent") +
                                                '"><span class="fc-event-dot"' +
                                                (d ? ' style="background-color:' + d + '"' : "") +
                                                '></span></td><td class="fc-list-item-title ' +
                                                r.getClass("widgetContent") +
                                                '"><a' +
                                                (c ? ' href="' + o.htmlEscape(c) + '"' : "") +
                                                ">" +
                                                o.htmlEscape(a.title || "") +
                                                "</a></td></tr>"
                                        );
                                    }),
                                    (t.prototype.computeEventTimeFormat = function () {
                                        return this.opt("mediumTimeFormat");
                                    }),
                                    t
                                );
                            })(n(42).default);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(3),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.handleClick = function (t, n) {
                                        var i;
                                        e.prototype.handleClick.call(this, t, n), o(n.target).closest("a[href]").length || ((i = t.footprint.eventDef.url) && !n.isDefaultPrevented() && (window.location.href = i));
                                    }),
                                    t
                                );
                            })(n(59).default);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(38),
                            o = n(52),
                            r = n(215),
                            s = n(216);
                        i.default.registerClass(o.default), i.default.registerClass(r.default), i.default.registerClass(s.default);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(51),
                            o = n(213),
                            r = n(214),
                            s = n(258),
                            a = n(259);
                        i.defineThemeSystem("standard", o.default), i.defineThemeSystem("jquery-ui", r.default), i.defineThemeSystem("bootstrap3", s.default), i.defineThemeSystem("bootstrap4", a.default);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return i.__extends(t, e), t;
                            })(n(19).default);
                        (t.default = o),
                            (o.prototype.classes = {
                                widget: "fc-bootstrap3",
                                tableGrid: "table-bordered",
                                tableList: "table",
                                tableListHeading: "active",
                                buttonGroup: "btn-group",
                                button: "btn btn-default",
                                stateActive: "active",
                                stateDisabled: "disabled",
                                today: "alert alert-info",
                                popover: "panel panel-default",
                                popoverHeader: "panel-heading",
                                popoverContent: "panel-body",
                                headerRow: "panel-default",
                                dayRow: "panel-default",
                                listView: "panel panel-default",
                            }),
                            (o.prototype.baseIconClass = "glyphicon"),
                            (o.prototype.iconClasses = { close: "glyphicon-remove", prev: "glyphicon-chevron-left", next: "glyphicon-chevron-right", prevYear: "glyphicon-backward", nextYear: "glyphicon-forward" }),
                            (o.prototype.iconOverrideOption = "bootstrapGlyphicons"),
                            (o.prototype.iconOverrideCustomButtonOption = "bootstrapGlyphicon"),
                            (o.prototype.iconOverridePrefix = "glyphicon-");
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return i.__extends(t, e), t;
                            })(n(19).default);
                        (t.default = o),
                            (o.prototype.classes = {
                                widget: "fc-bootstrap4",
                                tableGrid: "table-bordered",
                                tableList: "table",
                                tableListHeading: "table-active",
                                buttonGroup: "btn-group",
                                button: "btn btn-primary",
                                stateActive: "active",
                                stateDisabled: "disabled",
                                today: "alert alert-info",
                                popover: "card card-primary",
                                popoverHeader: "card-header",
                                popoverContent: "card-body",
                                headerRow: "table-bordered",
                                dayRow: "table-bordered",
                                listView: "card card-primary",
                            }),
                            (o.prototype.baseIconClass = "fa"),
                            (o.prototype.iconClasses = { close: "fa-times", prev: "fa-chevron-left", next: "fa-chevron-right", prevYear: "fa-angle-double-left", nextYear: "fa-angle-double-right" }),
                            (o.prototype.iconOverrideOption = "bootstrapFontAwesome"),
                            (o.prototype.iconOverrideCustomButtonOption = "bootstrapFontAwesome"),
                            (o.prototype.iconOverridePrefix = "fa-");
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(22),
                            o = n(62),
                            r = n(229);
                        i.defineView("basic", { class: o.default }),
                            i.defineView("basicDay", { type: "basic", duration: { days: 1 } }),
                            i.defineView("basicWeek", { type: "basic", duration: { weeks: 1 } }),
                            i.defineView("month", { class: r.default, duration: { months: 1 }, defaults: { fixedWeekCount: !0 } });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(22),
                            o = n(226);
                        i.defineView("agenda", { class: o.default, defaults: { allDaySlot: !0, slotDuration: "00:30:00", slotEventOverlap: !0 } }),
                            i.defineView("agendaDay", { type: "agenda", duration: { days: 1 } }),
                            i.defineView("agendaWeek", { type: "agenda", duration: { weeks: 1 } });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(22),
                            o = n(230);
                        i.defineView("list", { class: o.default, buttonTextKey: "list", defaults: { buttonText: "list", listDayFormat: "LL", noEventsMessage: "No events to display" } }),
                            i.defineView("listDay", { type: "list", duration: { days: 1 }, defaults: { listDayFormat: "dddd" } }),
                            i.defineView("listWeek", { type: "list", duration: { weeks: 1 }, defaults: { listDayFormat: "dddd", listDayAltFormat: "LL" } }),
                            i.defineView("listMonth", { type: "list", duration: { month: 1 }, defaults: { listDayAltFormat: "dddd" } }),
                            i.defineView("listYear", { type: "list", duration: { year: 1 }, defaults: { listDayAltFormat: "dddd" } });
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                    },
                ]);
            }),
            (e.exports = i(n(0), n(937)));
    },
    991: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(992),
            o = (n.n(i), n(886)),
            r = n(905),
            s = n(715),
            a = n(743),
            l = n(337),
            c = n(887),
            u = n.n(c),
            d = n(826),
            p = n.n(d),
            h = n(911),
            f = n.n(h),
            m = n(893),
            g = n.n(m),
            v = n(692),
            y = n(690),
            b = n(702),
            w = n.n(b),
            D = n(687),
            C = n(0),
            S = n.n(C),
            x = n(691),
            E = n(717),
            T = n.n(E),
            R = n(757),
            k = n(993);
        t.default = {
            mixins: [o.a, r.a, s.a, a.a, l.a, v.a, y.a, D.a, x.a, R.a],
            data: function () {
                return {
                    occupiedSlots: [],
                    initCall: !0,
                    globalBusinessHours: [],
                    employeesResources: [],
                    customerServices: [],
                    customerEmployees: [],
                    parsedEmployees: null,
                    previousViewName: null,
                    customer: null,
                    resources: [],
                    dialogEvent: !1,
                    dialogAppointment: !1,
                    dialogPayment: !1,
                    events: [],
                    appointmentsFetched: !1,
                    eventsFetched: !1,
                    appointmentsFetchedFiltered: !1,
                    eventsFetchedFiltered: !1,
                    form: new w.a(),
                    params: { dates: [], locations: [], providers: [], services: [] },
                    selectedDate: S()().toDate(),
                    selectedPaymentModalData: null,
                };
            },
            created: function () {
                (this.config.slotLabelFormat = this.config.timeFormat = this.config.views.timelineDay.slotLabelFormat = this.momentTimeFormat),
                    (this.config.listDayAltFormat = this.momentDateFormat),
                    (this.config.views.week.columnFormat =
                        "ddd " +
                        this.momentDateFormat
                            .replace(/Y/g, "")
                            .replace(/y/g, "")
                            .replace(/^([^a-zA-Z0-9])*/g, "")
                            .replace(/([^a-zA-Z0-9])*$/g, ""));
            },
            mounted: function () {
                this.getCalendarOptions();
                var e = this.$refs.calendar.fireMethod("getView");
                (this.params.dates = [e.start.format("YYYY-MM-DD"), e.end.clone().subtract(1, "days").format("YYYY-MM-DD")]), this.initVCalendar();
            },
            methods: {
                showDialogNewCustomer: function () {
                    (this.customer = this.getInitCustomerObject()), (this.dialogCustomer = !0);
                },
                getCalendarOptions: function () {
                    this.options.fetched = !1;
                    var e = this;
                    this.fetchEntities(
                        function (t) {
                            if (t) {
                                var n = [];
                                e.options.entities.tags.forEach(function (t) {
                                    -1 === e.options.entities.tags.indexOf(t.name) && n.push(t.name);
                                }),
                                    (e.options.entities.tags = n),
                                    e.setBookings(0),
                                    e.getCalendar();
                            }
                            (e.fetched = !0), (e.options.fetched = !0);
                        },
                        { types: ["locations", "employees", "categories", "custom_fields", "customers", "tags", "packages"], page: "calendar", isFrontEnd: !1, isPanel: !1 }
                    );
                },
                getEmployeeDaysOffDates: function (e) {
                    var t = [];
                    return (
                        e.forEach(function (e) {
                            for (
                                var n = e.repeat ? S()(S()().format("YYYY") + "-" + S()(e.startDate, "YYYY-MM-DD").format("MM-DD"), "YYYY-MM-DD") : S()(e.startDate, "YYYY-MM-DD"),
                                    i = e.repeat ? S()(S()().format("YYYY") + "-" + S()(e.endDate, "YYYY-MM-DD").format("MM-DD"), "YYYY-MM-DD") : S()(e.endDate, "YYYY-MM-DD");
                                n.isSameOrBefore(i);

                            )
                                t.push(n.format("YYYY-MM-DD")), n.add(1, "days");
                        }),
                        t
                    );
                },
                getParsedEmployees: function () {
                    for (
                        var e = S()(this.$root.settings.slotDateConstraints.minDate, "YYYY-MM-DD"),
                            t = S()(this.$root.settings.slotDateConstraints.maxDate, "YYYY-MM-DD"),
                            n = JSON.parse(JSON.stringify(this.options.entities.employees)),
                            i = S()(this.params.dates[0], "YYYY-MM-DD"),
                            o = S()(this.params.dates[1], "YYYY-MM-DD"),
                            r = [],
                            s = [];
                        i.isSameOrBefore(o);

                    )
                        r.push(i.format("YYYY-MM-DD")), (i.isBefore(e) || i.isSameOrAfter(t)) && "customer" === this.$root.settings.role && s.push(i.format("YYYY-MM-DD")), i.add(1, "days");
                    s = _.intersection(s, r);
                    var a = r
                            .filter(function (e) {
                                return -1 !== s.indexOf(e);
                            })
                            .map(function (e) {
                                return S()(e).day();
                            }),
                        l = this;
                    return (
                        n.forEach(function (e) {
                            var t = _.intersection(l.getEmployeeDaysOffDates(e.dayOffList), r),
                                n = r
                                    .filter(function (e) {
                                        return -1 !== t.indexOf(e);
                                    })
                                    .map(function (e) {
                                        return S()(e).day();
                                    });
                            e.specialDayList.forEach(function (n) {
                                for (var i = [], o = S()(n.startDate, "YYYY-MM-DD"); o.isSameOrBefore(S()(n.endDate, "YYYY-MM-DD")); ) i.push(o.format("YYYY-MM-DD")), o.add(1, "days");
                                i = (i = _.intersection(i, r)).filter(function (e) {
                                    return -1 === t.indexOf(e);
                                });
                                var s = r
                                        .filter(function (e) {
                                            return -1 !== i.indexOf(e);
                                        })
                                        .map(function (e) {
                                            return S()(e).day();
                                        }),
                                    a = e.weekDayList.map(function (e) {
                                        return 7 === e.dayIndex ? 0 : e.dayIndex;
                                    }),
                                    l = [];
                                e.weekDayList.forEach(function (e) {
                                    var t = 7 === e.dayIndex ? 0 : e.dayIndex;
                                    -1 !== s.indexOf(t) &&
                                        ((e.regularEndTime = e.endTime),
                                        (e.regularStartTime = e.startTime),
                                        (e.endTime = n.periodList[n.periodList.length - 1].endTime),
                                        (e.startTime = n.periodList[0].startTime),
                                        (e.periodList = n.periodList),
                                        (e.timeOutList = []),
                                        l.push(t));
                                }),
                                    s.forEach(function (t) {
                                        -1 === a.indexOf(t) &&
                                            -1 === l.indexOf(t) &&
                                            e.weekDayList.push({
                                                id: null,
                                                dayIndex: 0 === t ? 7 : t,
                                                startTime: n.periodList[0].startTime,
                                                endTime: n.periodList[n.periodList.length - 1].endTime,
                                                periodList: n.periodList,
                                                timeOutList: [],
                                            });
                                    });
                            });
                            var i = [];
                            e.weekDayList.forEach(function (e, t) {
                                (-1 !==
                                    r
                                        .map(function (e) {
                                            return S()(e).day();
                                        })
                                        .indexOf(7 === e.dayIndex ? 0 : e.dayIndex) &&
                                    -1 === n.indexOf(7 === e.dayIndex ? 0 : e.dayIndex) &&
                                    -1 === a.indexOf(7 === e.dayIndex ? 0 : e.dayIndex)) ||
                                    i.push(t);
                            });
                            for (var o = i.length - 1; o >= 0; o--) e.weekDayList.splice(i[o], 1);
                        }),
                        n
                    );
                },
                reFetchResources: function () {
                    this.appointmentsFetchedFiltered && this.eventsFetchedFiltered && this.$refs.calendar.fireMethod("refetchResources");
                },
                getEvents: function () {
                    var e = this,
                        t =
                            0 === this.params.providers.length
                                ? this.options.entities.employees.map(function (e) {
                                      return e.id;
                                  })
                                : this.params.providers;
                    "provider" === this.$root.settings.role &&
                        this.$root.settings.roles.allowWriteEvents &&
                        (t = this.options.entities.employees.map(function (e) {
                            return e.id;
                        })),
                        this.$http
                            .get(this.$root.getAjaxUrl + "/events", { params: Object.assign(JSON.parse(JSON.stringify(this.params)), { providers: t, status: "approved" }) })
                            .then(function (t) {
                                var n = e,
                                    i = "listWeek" === n.$refs.calendar.fireMethod("getView").name ? 'style="display: inline; margin-left: 10px;"' : "";
                                t.data.data.events.forEach(function (e) {
                                    var t = "";
                                    e.providers.forEach(function (e) {
                                        t += "<div " + i + '><img src="' + n.pictureLoad(e, !0) + '">' + e.firstName + " " + e.lastName + "</div>";
                                    }),
                                        n.getExplodedPeriods(n.getImplodedPeriods(e.periods)).forEach(function (i) {
                                            e.providers.forEach(function (o, r) {
                                                ("timelineDay" !== n.$refs.calendar.fireMethod("getView").name && "day" !== n.$refs.calendar.fireMethod("getView").name && 0 !== r) ||
                                                    (n.events.push({
                                                        id: e.id,
                                                        title: e.name,
                                                        bookings: e.bookings,
                                                        start: S()(i.periodStart, "YYYY-MM-DD HH:mm:ss").format(),
                                                        end: S()(i.periodEnd, "YYYY-MM-DD HH:mm:ss").format(),
                                                        color: n.shadeColor(e.color, 0.7),
                                                        borderColor: e.color,
                                                        customer: n.$root.labels.event,
                                                        employeesInfo: '<div style="display: inline-block;">' + t + "</div>",
                                                        location: e.locationId ? n.getLocationById(e.locationId).address : e.customLocation,
                                                        status: e.status,
                                                        eventOverlap: !1,
                                                        editable: n.canWriteEvents(),
                                                        resourceId: o.id.toString(),
                                                        type: "event",
                                                        icon: '<img style="float: right;" src="' + n.$root.getUrl + 'public/img/event.svg">',
                                                    }),
                                                    n.resources.push({ id: o.id.toString(), title: o.firstName + " " + o.lastName }));
                                            });
                                        });
                                }),
                                    (e.eventsFetched = !0),
                                    (e.eventsFetchedFiltered = !0),
                                    e.reFetchResources();
                            })
                            .catch(function (t) {
                                (e.eventsFetched = !0), (e.eventsFetchedFiltered = !0);
                            });
                },
                getAppointments: function () {
                    var e = this;
                    this.$http
                        .get(this.$root.getAjaxUrl + "/appointments", { params: this.params })
                        .then(function (t) {
                            var n = e,
                                i = {};
                            if (
                                ("customer" === e.$root.settings.role
                                    ? Object.keys(t.data.data.appointments).forEach(function (e) {
                                          t.data.data.appointments[e].appointments.forEach(function (n) {
                                              n.bookings.forEach(function (o) {
                                                  var r = JSON.parse(JSON.stringify(n));
                                                  (r.bookings = [o]), e in i || ((i[e] = t.data.data.appointments[e]), (i[e].appointments = [])), i[e].appointments.push(r);
                                              });
                                          });
                                      })
                                    : (i = t.data.data.appointments),
                                Object.keys(i).forEach(function (e) {
                                    for (var t = 0; t < i[e].appointments.length; t++)
                                        -1 === ["rejected", "canceled"].indexOf(i[e].appointments[t].status) &&
                                            ("customer" !== n.$root.settings.role || ("customer" === n.$root.settings.role && -1 === ["rejected", "canceled"].indexOf(i[e].appointments[t].bookings[0].status))) &&
                                            (function () {
                                                var o = i[e].appointments[t],
                                                    r = n.options.entities.employees
                                                        .find(function (e) {
                                                            return e.id === o.providerId;
                                                        })
                                                        .serviceList.find(function (e) {
                                                            return e.id === o.serviceId;
                                                        }),
                                                    s = n.getCustomerInfo(o.bookings[0]),
                                                    a = n.getProviderById(o.providerId),
                                                    l = n.getLocationById(o.locationId ? o.locationId : a.locationId);
                                                void 0 === r && (r = n.getServiceById(o.serviceId)),
                                                    "customer" === n.$root.settings.role &&
                                                        (-1 === n.customerServices.indexOf(o.serviceId) && n.customerServices.push(o.serviceId), -1 === n.customerEmployees.indexOf(o.providerId) && n.customerEmployees.push(o.providerId)),
                                                    n.events.push({
                                                        id: o.id,
                                                        bookings: o.bookings,
                                                        serviceId: r.id,
                                                        timeBefore: null === r.timeBefore ? 0 : r.timeBefore,
                                                        timeAfter: null === r.timeAfter ? 0 : r.timeAfter,
                                                        title: r.name,
                                                        start: S()(o.bookingStart, "YYYY-MM-DD HH:mm").format(),
                                                        end: S()(o.bookingEnd, "YYYY-MM-DD HH:mm").format(),
                                                        color: n.shadeColor(r.color, 0.7),
                                                        borderColor: r.color,
                                                        customer: o.bookings.length > 1 ? n.$root.labels.group_booking : s.firstName + " " + s.lastName,
                                                        employeeId: a.id,
                                                        employeesInfo: '<div style="display: inline-block;"><div><img src="' + n.pictureLoad(a, !0) + '">' + a.firstName + " " + a.lastName + "</div></div>",
                                                        location: l ? l.address : "",
                                                        status: o.status,
                                                        eventOverlap: !1,
                                                        resourceId: a.id.toString(),
                                                        editable: n.canWriteAppointments() && ("customer" !== n.$root.settings.role || (!o.past && o.cancelable && o.cancelable)),
                                                        past: o.past,
                                                        cancelable: o.cancelable,
                                                        type: "appointment",
                                                        icon: "",
                                                    });
                                            })();
                                }),
                                (e.parsedEmployees =
                                    "customer" !== n.$root.settings.role
                                        ? e.getParsedEmployees()
                                        : e.getParsedEmployees().filter(function (t) {
                                              return -1 !== e.customerEmployees.indexOf(t.id);
                                          })),
                                e.createResourcesForScheduler(e.parsedEmployees),
                                e.setGlobalBusinessHours(e.parsedEmployees),
                                "customer" === e.$root.settings.role)
                            ) {
                                n.occupiedSlots = t.data.data.occupied;
                                var o = function (e) {
                                    n.occupiedSlots[e].forEach(function (t) {
                                        n.createBackgroundEvent(!(1 === n.customerEmployees.length), e, t.startTime, t.endTime, t.employeeId, []);
                                    });
                                };
                                for (var r in n.occupiedSlots) o(r);
                                e.createEmployeesBackgroundEvents(e.parsedEmployees);
                            }
                            (e.appointmentsFetched = !0), (e.appointmentsFetchedFiltered = !0), e.reFetchResources();
                        })
                        .catch(function (t) {
                            (e.appointmentsFetched = !0), (e.appointmentsFetchedFiltered = !0);
                        });
                },
                getCalendar: function () {
                    var e = this;
                    (this.events = []),
                        (this.appointmentsFetchedFiltered = !1),
                        (this.eventsFetchedFiltered = !1),
                        Object.keys(this.params).forEach(function (t) {
                            return !e.params[t] && 0 !== e.params[t] && delete e.params[t];
                        }),
                        (this.resources = []),
                        (this.selectedDate = S()(this.params.dates[0], "YYYY-MM-DD").toDate()),
                        this.getAppointments(),
                        this.getEvents();
                },
                callViewRender: function (e) {
                    if (this.params.dates.length > 0) {
                        var t = e.start.format("YYYY-MM-DD"),
                            n = e.end.clone().subtract(1, "days").format("YYYY-MM-DD");
                        (S()(t).isBetween(this.params.dates[0], this.params.dates[1], null, "[]") && S()(n).isBetween(this.params.dates[0], this.params.dates[1], null, "[]") && this.previousViewName === e.name) ||
                            ((this.previousViewName = e.name), (this.params.dates = [t, n]), this.initCall || this.filterData(), (this.initCall = !1));
                    }
                },
                filterData: function () {
                    this.getCalendar();
                },
                eventSelected: function (e) {
                    if ("appointment" === e.type) {
                        if (!this.canWriteAppointments() || !e.editable) return;
                        this.showDialogEditAppointment(e.id);
                    }
                    if ("event" === e.type) {
                        if (!this.canWriteEvents() || !e.editable) return;
                        this.showDialogEditEvent(e.id);
                    }
                },
                eventRender: function (e, t, n) {
                    if (
                        ("timelineDay" !== n.name &&
                            "fake" !== e.type &&
                            (t.find(".fc-content").prepend('<span class="am-calendar-customer">' + e.customer + e.icon + "</span>"),
                            t.find(".fc-title").prepend('<span class="am-calendar-status ' + e.status + '"></span>'),
                            t.find(".fc-content").append('<div class="flexed-between"><span class="am-calendar-employee">' + e.employeesInfo + "</span></div>")),
                        "listWeek" !== n.name && "fake" !== e.type)
                    ) {
                        var i =
                                '<div class="am-tooltip el-tooltip__popper is-light"><span class="am-tooltip-color" style="background-color:' +
                                e.borderColor +
                                ';"></span> <span class="am-calendar-status ' +
                                e.status +
                                '"></span><h4>' +
                                e.customer +
                                "</h4><p>" +
                                e.start.format(this.momentTimeFormat) +
                                " - " +
                                e.end.format(this.momentTimeFormat) +
                                "</p><p>" +
                                e.title +
                                "</p>",
                            o = e.editable ? '<button type="button" class="el-button el-button--default"><span>' + this.$root.labels.edit + "</span></button>" : "";
                        (i += void 0 !== e.location && "" !== e.location ? '<p icon="el-icon-location" class="am-tooltip-address">' + e.location + "</p>" : ""),
                            (i += '<div class="flexed-between"><h4>' + e.employeesInfo + "</h4>" + o + "</div></div>"),
                            t.append(i);
                    }
                    if ("listWeek" === n.name) {
                        var r = t.find(".fc-list-item-time").html(),
                            s = t.find(".fc-list-item-title").html();
                        t.find(".fc-list-item-time").html(r + '<span class="am-calendar-list-customer-name">' + e.customer + "</span>"),
                            t.find(".fc-list-item-title").html(s + '<span class="am-calendar-employee">' + e.employeesInfo + '</span><span class="am-calendar-status ' + e.status + '"></span>');
                    }
                },
                eventDrop: function (e, t, n) {
                    var i = this;
                    if ("event" !== e.type) {
                        var o = e,
                            r = this.getProviderById(o.employeeId),
                            s = o.start.isoWeekday(),
                            a = r.weekDayList.find(function (e) {
                                return e.dayIndex === s;
                            }),
                            l = o.start.clone().subtract(o.timeBefore, "seconds"),
                            c = o.end.clone().add(o.timeAfter, "seconds"),
                            u = l.format("HH:mm:ss"),
                            d = "00:00:00" === c.format("HH:mm:ss") ? "24:00:00" : c.format("HH:mm:ss"),
                            p = l.format("YYYY-MM-DD HH:mm"),
                            h = c.format("YYYY-MM-DD HH:mm"),
                            f = S()().diff(S()(p), "seconds") >= 0,
                            m = this.parsedEmployees.find(function (e) {
                                return e.id === o.employeeId;
                            });
                        m.specialDayList.forEach(function (e) {
                            o.start.isSameOrAfter(S()(e.startDate + " 00:00:00", "YYYY-MM-DD HH:ii:ss")) &&
                                o.start.isSameOrBefore(S()(e.endDate + " 24:00:00", "YYYY-MM-DD HH:ii:ss")) &&
                                ((r = m),
                                (a = m.weekDayList.find(function (e) {
                                    return e.dayIndex === s;
                                })));
                        });
                        var g =
                            void 0 !== a &&
                            S()(u, "HH:mm:ss").isBetween(S()(a.startTime, "HH:mm:ss"), S()(a.endTime, "HH:mm:ss"), null, "[)") &&
                            S()(d, "HH:mm:ss").isBetween(S()(a.startTime, "HH:mm:ss"), S()(a.endTime, "HH:mm:ss"), null, "(]");
                        -1 !== this.getEmployeeDaysOffDates(r.dayOffList).indexOf(o.start.format("YYYY-MM-DD")) && (g = !1);
                        var v = !1,
                            y = !0;
                        if (void 0 !== a) {
                            var b = [];
                            a.periodList.forEach(function (e) {
                                (0 !== e.periodServiceList.length &&
                                    -1 ===
                                        e.periodServiceList
                                            .map(function (e) {
                                                return e.serviceId;
                                            })
                                            .indexOf(o.serviceId)) ||
                                    b.push({ startTime: e.startTime, endTime: e.endTime });
                            });
                            for (var w = 0; w < b.length; w++) w < b.length - 1 && b[w].endTime === b[w + 1].startTime && ((b[w + 1].startTime = b[w].startTime), b.splice(w, 1));
                            a.periodList.length
                                ? b.forEach(function (e) {
                                      S()(u, "HH:mm:ss").isSameOrAfter(S()(e.startTime, "HH:mm:ss")) && S()(d, "HH:mm:ss").isSameOrBefore(S()(e.endTime, "HH:mm:ss")) && (y = !1);
                                  })
                                : (y = !1);
                            for (var _ = 0; _ < a.timeOutList.length; _++)
                                (S()(u, "HH:mm:ss").isBetween(S()(a.timeOutList[_].startTime, "HH:mm:ss"), S()(a.timeOutList[_].endTime, "HH:mm:ss"), null, "[)") ||
                                    S()(d, "HH:mm:ss").isBetween(S()(a.timeOutList[_].startTime, "HH:mm:ss"), S()(a.timeOutList[_].endTime, "HH:mm:ss"), null, "(]") ||
                                    S()(a.timeOutList[_].startTime, "HH:mm:ss").isBetween(S()(u, "HH:mm:ss"), S()(d, "HH:mm:ss"), null, "[)") ||
                                    S()(a.timeOutList[_].endTime, "HH:mm:ss").isBetween(S()(u, "HH:mm:ss"), S()(d, "HH:mm:ss"), null, "(]")) &&
                                    (v = !0);
                        }
                        var D = this.$refs.calendar.fireMethod("clientEvents", function (e) {
                                var t = e.start.clone().subtract(e.timeBefore, "seconds").format("YYYY-MM-DD HH:mm"),
                                    n = e.end.clone().add(e.timeAfter, "seconds").format("YYYY-MM-DD HH:mm");
                                return e.employeeId === o.employeeId && o.id !== e.id && (S()(p).isBetween(t, n, null, "[)") || S()(h).isBetween(t, n, null, "(]") || S()(t).isBetween(p, h, null, "[)") || S()(n).isBetween(p, h, null, "(]"));
                            }),
                            C = !1;
                        if ("customer" === this.$root.settings.role) {
                            for (var x in this.occupiedSlots)
                                x === p &&
                                    this.occupiedSlots[x].forEach(function (e) {
                                        (S()(u, "HH:mm:ss").isBetween(S()(e.startTime, "HH:mm:ss"), S()(e.endTime, "HH:mm:ss"), null, "[)") ||
                                            S()(d, "HH:mm:ss").isBetween(S()(e.startTime, "HH:mm:ss"), S()(e.endTime, "HH:mm:ss"), null, "(]")) &&
                                            (C = !0);
                                    });
                        }
                        if (!this.canWriteAppointments() || f || !g || v || 0 !== D.length || y || C) {
                            if (f) var E = this.$root.labels.appointment_drag_past;
                            else E = g ? (v ? this.$root.labels.appointment_drag_breaks : y ? this.$root.labels.appointment_drag_out_schedule : this.$root.labels.appointment_drag_exist) : this.$root.labels.appointment_drag_working_hours;
                            this.notify(this.$root.labels.error, E, "error"), n();
                        } else {
                            var T = o.start.clone();
                            T.subtract(t),
                                this.$confirm(
                                    this.$root.labels.appointment_change_time +
                                        '<br><div class="am-old-time"><div><i class="el-icon-date"></i> ' +
                                        this.getFrontedFormattedDate(T) +
                                        '</div><div><i class="el-icon-time"></i> ' +
                                        this.getFrontedFormattedTime(T) +
                                        '</div></div><div class="am-new-time"><div><i class="el-icon-date"></i> ' +
                                        this.getFrontedFormattedDate(o.start) +
                                        '</div><div><i class="el-icon-time"></i> ' +
                                        this.getFrontedFormattedTime(o.start) +
                                        "</div></div>",
                                    "Warning",
                                    { confirmButtonText: this.$root.labels.confirm, cancelButtonText: this.$root.labels.cancel, type: "warning", center: !0, dangerouslyUseHTMLString: !0 }
                                )
                                    .then(function () {
                                        i.appointmentsFetchedFiltered = !1;
                                        var e = "customer" === i.$root.settings.role ? "/bookings/reassign/" : "/appointments/time/",
                                            t = "customer" === i.$root.settings.role ? o.bookings[0].id : o.id;
                                        i.$http
                                            .post("" + i.$root.getAjaxUrl + e + t, { bookingStart: o.start.format("YYYY-MM-DD HH:mm") })
                                            .then(function (e) {
                                                (i.appointmentsFetchedFiltered = !0), i.notify(i.$root.labels.success, i.$root.labels.appointment_rescheduled, "success");
                                            })
                                            .catch(function (e) {
                                                i.appointmentsFetchedFiltered = !0;
                                                var t = i;
                                                setTimeout(function () {
                                                    "timeSlotUnavailable" in e.response.data.data && !0 === e.response.data.data.timeSlotUnavailable && t.notify(t.$root.labels.error, t.$root.labels.time_slot_unavailable, "error"),
                                                        "rescheduleBookingUnavailable" in e.response.data.data &&
                                                            !0 === e.response.data.data.rescheduleBookingUnavailable &&
                                                            t.notify(t.$root.labels.error, t.$root.labels.booking_reschedule_exception, "error");
                                                }, 200),
                                                    n();
                                            });
                                    })
                                    .catch(function () {
                                        n();
                                    });
                        }
                    } else n();
                },
                shadeColor: function (e, t) {
                    var n = parseInt(e.slice(1), 16),
                        i = t < 0 ? 0 : 255,
                        o = t < 0 ? -1 * t : t,
                        r = n >> 16,
                        s = (n >> 8) & 255,
                        a = 255 & n;
                    return "#" + (16777216 + 65536 * (Math.round((i - r) * o) + r) + 256 * (Math.round((i - s) * o) + s) + (Math.round((i - a) * o) + a)).toString(16).slice(1);
                },
                selectAllInCategory: function (e) {
                    var t = this.getCategoryServices(e).map(function (e) {
                        return e.id;
                    });
                    _.isEqual(_.intersection(t, this.params.services), t) ? (this.params.services = _.difference(this.params.services, t)) : (this.params.services = _.uniq(this.params.services.concat(t))), this.filterData();
                },
                filterEmployees: function (e) {
                    var t = this.params.providers.indexOf(e.id);
                    -1 !== t ? this.params.providers.splice(t, 1) : this.params.providers.push(e.id), this.filterData();
                },
                filterAllEmployees: function () {
                    0 !== this.params.providers.length && ((this.params.providers = []), this.filterData());
                },
                createResourcesForScheduler: function (e) {
                    var t = this;
                    this.employeesResources = [];
                    for (var n = 0; n < e.length; n++) {
                        for (
                            var i = [],
                                o = function (o) {
                                    var r = e[n].weekDayList[o],
                                        s = 7 === r.dayIndex ? [0] : [r.dayIndex];
                                    (e[n].id in t.employeesResources) || (t.employeesResources[e[n].id] = {}), (s in t.employeesResources[e[n].id]) || (t.employeesResources[e[n].id][s] = { scheduled: [], unavailable: [] });
                                    var a = [],
                                        l = [];
                                    if (r.periodList.length > 0)
                                        for (var c = 0; c < r.periodList.length; c++) {
                                            0 !== c && r.periodList[c - 1].endTime !== r.periodList[c].startTime && a.push({ startTime: r.periodList[c - 1].endTime, endTime: r.periodList[c].startTime });
                                            var u = r.periodList[c].periodServiceList.map(function (e) {
                                                return e.serviceId;
                                            });
                                            u.length > 0 && l.push({ start: r.periodList[c].startTime, end: r.periodList[c].endTime, services: u });
                                        }
                                    if (r.timeOutList.length > 0) for (var d = 0; d < r.timeOutList.length; d++) a.push({ startTime: r.timeOutList[d].startTime, endTime: r.timeOutList[d].endTime });
                                    var p = [];
                                    if (a.length) {
                                        (a = a.sort(function (e, t) {
                                            return S()(e.startTime, "HH:mm:ss").diff(S()().startOf("day"), "seconds") - S()(t.startTime, "HH:mm:ss").diff(S()().startOf("day"), "seconds");
                                        })),
                                            p.push(a.shift());
                                        for (var h = 0; h < a.length; h++) {
                                            var f = p[p.length - 1],
                                                m = S()(f.endTime, "HH:mm:ss").diff(S()().startOf("day"), "seconds"),
                                                g = S()(a[h].startTime, "HH:mm:ss").diff(S()().startOf("day"), "seconds"),
                                                v = S()(a[h].endTime, "HH:mm:ss").diff(S()().startOf("day"), "seconds");
                                            m < g ? p.push(a[h]) : m < v && ((f.endTime = a[h].endTime), p.pop(), p.push(f)), p[p.length - 1].startTime === p[p.length - 1].endTime && p.pop();
                                        }
                                        for (var y in p) t.employeesResources[e[n].id][s].unavailable.push({ start: p[y].startTime, end: p[y].endTime });
                                        for (var b = 0; b < p.length; b++) {
                                            var w = p[b].startTime,
                                                _ = p[b].endTime;
                                            0 === b && i.push({ dow: s, start: r.startTime, end: w }), i.push({ dow: s, start: _, end: b + 1 === p.length ? r.endTime : p[b + 1].startTime });
                                        }
                                    } else i.push({ dow: s, start: r.startTime, end: r.endTime });
                                    var D = [];
                                    l.forEach(function (e) {
                                        var t = e.start,
                                            n = e.end,
                                            i = [];
                                        for (var o in p) {
                                            var r = p[o].startTime,
                                                s = p[o].endTime;
                                            S.a.duration(r) < S.a.duration(t) && S.a.duration(s) > S.a.duration(t) && S.a.duration(s) < S.a.duration(n) && (t = s),
                                                S.a.duration(r) > S.a.duration(t) && S.a.duration(s) < S.a.duration(n) && i.push({ startTime: r, endTime: s }),
                                                S.a.duration(r) > S.a.duration(t) && S.a.duration(r) < S.a.duration(n) && S.a.duration(s) > S.a.duration(n) && (n = r);
                                        }
                                        if (i.length) {
                                            D.push({ parts: [], services: e.services }), D[D.length - 1].parts.push({ start: t, end: i[0].startTime });
                                            for (var a = 0; a < i.length; a++) 0 !== a && D[D.length - 1].parts.push({ start: i[a - 1].endTime, end: i[a].startTime });
                                            D[D.length - 1].parts.push({ start: i[i.length - 1].endTime, end: n });
                                        } else D.push({ parts: [{ start: t, end: n }], services: e.services });
                                    }),
                                        (t.employeesResources[e[n].id][s].scheduled = D);
                                },
                                r = 0;
                            r < e[n].weekDayList.length;
                            r++
                        )
                            o(r);
                        i.length && this.resources.push({ id: e[n].id.toString(), title: e[n].firstName + " " + e[n].lastName, businessHours: i });
                    }
                },
                initVCalendar: function () {
                    var e = document.getElementsByClassName("fc-center");
                    if (e.length) {
                        var t = document.getElementById("am-calendar-picker");
                        e[0].addEventListener("click", function () {
                            e[0].className.indexOf("am-datepicker-active") < 0
                                ? ((t.style.opacity = "1"), (t.style.zIndex = "11"), (e[0].className += " am-datepicker-active"))
                                : ((t.style.opacity = "0"), (t.style.zIndex = "0"), e[0].classList.remove("am-datepicker-active"));
                        });
                    }
                },
                selectDay: function () {
                    null !== this.selectedDate && this.$refs.calendar.fireMethod("gotoDate", this.selectedDate), document.getElementsByClassName("fc-center")[0].click();
                },
                setGlobalBusinessHours: function (e) {
                    var t = [],
                        n = S.a.duration("24:00:00"),
                        i = S.a.duration("00:00:00");
                    if (0 !== this.params.providers.length) {
                        for (var o = [], r = 0; r < e.length; r++) -1 === _.indexOf(this.params.providers, e[r].id) && o.push(e[r]);
                        e = _.difference(e, o);
                    }
                    for (var s = 0; s < e.length; s++)
                        for (var a = 0; a < e[s].weekDayList.length; a++) {
                            var l = e[s].weekDayList[a];
                            void 0 === t[l.dayIndex] && (t[l.dayIndex] = {}),
                                "regularStartTime" in l && S.a.duration(l.regularStartTime) < n && (n = S.a.duration(l.regularStartTime)),
                                S.a.duration(l.startTime) < n && (n = S.a.duration(l.startTime)),
                                "regularEndTime" in l && S.a.duration(l.regularEndTime) > i && (i = S.a.duration(l.regularEndTime)),
                                S.a.duration(l.endTime) > i && (i = S.a.duration(l.endTime)),
                                (void 0 === t[l.dayIndex].start || S.a.duration(l.startTime) < t[l.dayIndex].start) && (t[l.dayIndex].start = S.a.duration(l.startTime)),
                                (void 0 === t[l.dayIndex].end || S.a.duration(l.endTime) > t[l.dayIndex].end) && (t[l.dayIndex].end = S.a.duration(l.endTime)),
                                (t[l.dayIndex].dow = 7 === l.dayIndex ? [0] : [l.dayIndex]);
                        }
                    ("month" !== this.$refs.calendar.fireMethod("getView").name && 0 !== t.length) ||
                        ((n = S.a.duration("00:00:00")), (i = S.a.duration("24:00:00")), (t = { dow: [0, 1, 2, 3, 4, 5, 6], start: S.a.duration("00:00:00"), end: S.a.duration("00:00:00") })),
                        this.$refs.calendar.fireMethod("option", { businessHours: _.compact(t), minTime: n, maxTime: i }),
                        (this.globalBusinessHours = t),
                        this.initVCalendar();
                },
                canWriteAppointments: function () {
                    return (
                        ("customer" === this.$root.settings.role && this.$root.settings.roles.allowCustomerReschedule) ||
                        "admin" === this.$root.settings.role ||
                        "manager" === this.$root.settings.role ||
                        ("provider" === this.$root.settings.role && this.$root.settings.roles.allowWriteAppointments)
                    );
                },
                canWriteEvents: function () {
                    return "admin" === this.$root.settings.role || "manager" === this.$root.settings.role || ("provider" === this.$root.settings.role && this.$root.settings.roles.allowWriteEvents);
                },
                dayRender: function (e, t) {
                    var n = this,
                        i = !1,
                        o = !1,
                        r = !1,
                        s = !0,
                        a = S()(this.$root.settings.slotDateConstraints.minDate, "YYYY-MM-DD"),
                        l = S()(this.$root.settings.slotDateConstraints.maxDate, "YYYY-MM-DD"),
                        c = e.isoWeekday(),
                        u =
                            "customer" !== this.$root.settings.role
                                ? this.options.entities.employees
                                : this.options.entities.employees.filter(function (e) {
                                      return -1 !== n.customerEmployees.indexOf(e.id);
                                  }),
                        d = this;
                    if (0 !== this.params.providers.length) {
                        for (var p = [], h = 0; h < u.length; h++) -1 === _.indexOf(this.params.providers, u[h].id) && p.push(u[h]);
                        u = _.difference(u, p);
                    }
                    u.forEach(function (t) {
                        var n = t.weekDayList.find(function (e) {
                            return e.dayIndex === c;
                        });
                        void 0 !== n && n.dayIndex === c && (r = !0),
                            t.specialDayList.forEach(function (t) {
                                e.isSameOrAfter(S()(t.startDate + " 00:00:00", "YYYY-MM-DD HH:ii:ss")) && e.isSameOrBefore(S()(t.endDate + " 24:00:00", "YYYY-MM-DD HH:ii:ss")) && (o = !0);
                            }),
                            -1 !== d.getEmployeeDaysOffDates(t.dayOffList).indexOf(e.format("YYYY-MM-DD")) && (i = !0),
                            (!r && !o) || i || ((e.isBefore(a) || e.isAfter(l)) && "customer" === d.$root.settings.role) || (s = !1);
                    }),
                        s && (t.addClass("fc-nonbusiness"), t.addClass("fc-bgevent"), t.removeClass("fc-today"));
                },
                createEmployeesBackgroundEvents: function (e) {
                    for (var t = this, n = {}, i = this.$refs.calendar.fireMethod("getView"), o = i.start.clone(), r = i.end.clone().subtract(1, "days"), s = []; o.isSameOrBefore(r); )
                        (s[o.day()] = o.format("YYYY-MM-DD")), o.add(1, "days");
                    var a = null;
                    this.globalBusinessHours.forEach(function (e) {
                        (a = e.dow[0]) in n || (n[a] = {}), (n[a].dayStart = S.a.utc(e.start.as("milliseconds")).format("HH:mm:ss")), (n[a].dayEnd = S.a.utc(e.end.as("milliseconds")).format("HH:mm:ss"));
                    });
                    var l = 1 === this.customerEmployees.length;
                    e.forEach(function (e) {
                        var i = JSON.parse(JSON.stringify(n));
                        e.weekDayList.forEach(function (e) {
                            (a = 7 === e.dayIndex ? 0 : e.dayIndex) in i || (i[a] = {}), (i[a].employeeStart = e.startTime), (i[a].employeeEnd = e.endTime);
                        });
                        var o = function (n) {
                            e.id in t.employeesResources &&
                                n in t.employeesResources[e.id] &&
                                (t.employeesResources[e.id][n].scheduled.forEach(function (i) {
                                    i.parts.forEach(function (o) {
                                        t.createBackgroundEvent(!0, s[n], o.start, o.end, e.id, i.services);
                                    });
                                }),
                                t.employeesResources[e.id][n].unavailable.forEach(function (i) {
                                    t.createBackgroundEvent(!l, s[n], i.start, i.end, e.id, []);
                                })),
                                "employeeStart" in i[n] && "employeeEnd" in i[n]
                                    ? (S.a.duration(i[n].employeeStart) > S.a.duration(i[n].dayStart) && t.createBackgroundEvent(!l, s[n], i[n].dayStart, i[n].employeeStart, e.id, []),
                                      S.a.duration(i[n].employeeEnd) < S.a.duration(i[n].dayEnd) && t.createBackgroundEvent(!l, s[n], i[n].employeeEnd, i[n].dayEnd, e.id, []))
                                    : t.createBackgroundEvent(!l, s[n], i[n].dayStart, i[n].dayEnd, e.id, []);
                        };
                        for (var r in i) o(r);
                    });
                },
                createBackgroundEvent: function (e, t, n, i, o, r) {
                    var s = [];
                    r.length &&
                        e &&
                        r.forEach(function (e) {
                            s.push("am-ebe-" + o + "-" + e);
                        }),
                        this.events.push({
                            start: S()(t + " " + n, "YYYY-MM-DD HH:mm:ss"),
                            end: S()(t + " " + i, "YYYY-MM-DD HH:mm:ss"),
                            color: "#d7d7d7",
                            borderColor: "#d7d7d7",
                            rendering: "background",
                            className: e ? (r.length ? "am-ebe " + s.join(" ") : "am-ebe am-ebe-" + o) : "",
                            type: "fake",
                        });
                },
                eventDragStart: function (e) {
                    jQuery(".am-ebe-" + e.employeeId).css("display", "block"),
                        _.difference(this.customerServices, [e.serviceId]).forEach(function (t) {
                            jQuery(".am-ebe-" + e.employeeId + "-" + t).css("display", "block");
                        });
                },
                eventDragStop: function (e) {
                    jQuery(".am-ebe-" + e.employeeId).css("display", "none"),
                        _.difference(this.customerServices, [e.serviceId]).forEach(function (t) {
                            jQuery(".am-ebe-" + e.employeeId + "-" + t).css("display", "none");
                        });
                },
                openRecurringAppointment: function (e) {
                    var t = this;
                    (this.dialogAppointment = !1),
                        setTimeout(function () {
                            t.showDialogEditAppointment(e);
                        }, 200);
                },
            },
            computed: {
                config: function () {
                    var e = this;
                    return {
                        eventDragStart: function (t) {
                            e.eventDragStart(t);
                        },
                        eventDragStop: function (t) {
                            e.eventDragStop(t);
                        },
                        dayRender: this.dayRender,
                        locale: this.$root.locale,
                        buttonText: { today: this.$root.labels.today, month: this.$root.labels.month, week: this.$root.labels.week, day: this.$root.labels.day, list: this.$root.labels.list, timelineDay: this.$root.labels.timeline },
                        allDaySlot: !1,
                        businessHours: {},
                        defaultView: "agendaWeek",
                        displayEventEnd: !0,
                        displayEventTime: !0,
                        editable: !0,
                        eventDurationEditable: !1,
                        eventLimit: 2,
                        eventLimitClick: "day",
                        filterResourcesWithEvents: !0,
                        firstDay: this.$root.settings.wordpress.startOfWeek,
                        header: { left: "prev, today, next", center: "title", right: "month, agendaWeek, day, listWeek, timelineDay" },
                        listDayAltFormat: "",
                        noEventsMessage: this.$root.labels.no_appointments_to_display,
                        nowIndicator: "customer" !== this.$root.settings.role,
                        resources: function (t) {
                            t(e.resources);
                        },
                        resourceLabelText: this.$root.labels.employees,
                        schedulerLicenseKey: "0395133833-fcs-1528299690",
                        selectable: !1,
                        slotEventOverlap: !1,
                        slotDuration: this.secondsToTimeSelectStep(this.$root.settings.general.timeSlotLength),
                        slotLabelFormat: "",
                        timeFormat: "",
                        viewRender: this.callViewRender,
                        views: {
                            month: {},
                            week: { columnFormat: "" },
                            day: { titleFormat: "", type: "agenda", duration: { days: 1 }, buttonText: "day" },
                            timelineDay: { type: "timelineDay", buttonText: "timeline", displayEventTime: !1, slotLabelFormat: "" },
                        },
                    };
                },
            },
            components: { PageHeader: T.a, FullCalendar: k.a, DialogEvent: f.a, DialogAppointment: u.a, DialogCustomer: p.a, DialogPayment: g.a },
        };
    },
    992: function (e, t, n) {
        var i;
        "undefined" != typeof self && self,
            (i = function (e, t, n) {
                return (function (e) {
                    var t = {};
                    function n(i) {
                        if (t[i]) return t[i].exports;
                        var o = (t[i] = { i: i, l: !1, exports: {} });
                        return e[i].call(o.exports, o, o.exports, n), (o.l = !0), o.exports;
                    }
                    return (
                        (n.m = e),
                        (n.c = t),
                        (n.d = function (e, t, i) {
                            n.o(e, t) || Object.defineProperty(e, t, { configurable: !1, enumerable: !0, get: i });
                        }),
                        (n.n = function (e) {
                            var t =
                                e && e.__esModule
                                    ? function () {
                                          return e.default;
                                      }
                                    : function () {
                                          return e;
                                      };
                            return n.d(t, "a", t), t;
                        }),
                        (n.o = function (e, t) {
                            return Object.prototype.hasOwnProperty.call(e, t);
                        }),
                        (n.p = ""),
                        n((n.s = 36))
                    );
                })([
                    function (t, n) {
                        t.exports = e;
                    },
                    function (e, t) {
                        var n =
                            Object.setPrototypeOf ||
                            ({ __proto__: [] } instanceof Array &&
                                function (e, t) {
                                    e.__proto__ = t;
                                }) ||
                            function (e, t) {
                                for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
                            };
                        t.__extends = function (e, t) {
                            function i() {
                                this.constructor = e;
                            }
                            n(e, t), (e.prototype = null === t ? Object.create(t) : ((i.prototype = t.prototype), new i()));
                        };
                    },
                    function (e, n) {
                        e.exports = t;
                    },
                    ,
                    ,
                    ,
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = (function (e) {
                                function t(t, n, i) {
                                    var o = e.call(this, t, n) || this;
                                    return (o.resourceId = i), o;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.toLegacy = function (t) {
                                        var n = e.prototype.toLegacy.call(this, t);
                                        return (n.resourceId = this.resourceId), n;
                                    }),
                                    t
                                );
                            })(n(0).ComponentFootprint);
                        t.default = o;
                    },
                    ,
                    ,
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(0),
                            s = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.mixInto = function (e) {
                                        var t = this;
                                        r.Mixin.mixInto.call(this, e),
                                            ["bindBaseRenderHandlers", "queryScroll", "applyScroll", "triggerDayClick", "triggerSelect", "triggerExternalDrop", "handleResourceAdd", "handleResourceRemove"].forEach(function (n) {
                                                e.prototype[n] = t.prototype[n];
                                            });
                                    }),
                                    (t.prototype.initResourceView = function () {
                                        var e = this,
                                            t = ["hasResources"];
                                        this.canHandleSpecificResources || t.push("displayingDates"),
                                            this.watch(
                                                "displayingResources",
                                                t,
                                                function () {
                                                    e.requestResourcesRender(e.get("currentResources"));
                                                },
                                                function () {
                                                    e.requestResourcesUnrender();
                                                }
                                            ),
                                            this.watch(
                                                "displayingBusinessHours",
                                                ["businessHourGenerator", "displayingResources", "displayingDates"],
                                                function (t) {
                                                    e.requestBusinessHoursRender(t.businessHourGenerator);
                                                },
                                                function () {
                                                    e.requestBusinessHoursUnrender();
                                                }
                                            ),
                                            this.watch(
                                                "displayingEvents",
                                                ["displayingResources", "hasEvents"],
                                                function () {
                                                    e.requestEventsRender(e.get("currentEvents"));
                                                },
                                                function () {
                                                    e.requestEventsUnrender();
                                                }
                                            );
                                    }),
                                    (t.prototype.bindBaseRenderHandlers = function () {
                                        var e = !1,
                                            t = !1;
                                        this.on("resourcesRendered", function () {
                                            e || ((e = !0), t && this.whenSizeUpdated(this.triggerViewRender));
                                        }),
                                            this.on("datesRendered", function () {
                                                t || ((t = !0), e && this.whenSizeUpdated(this.triggerViewRender));
                                            }),
                                            this.on("before:resourcesUnrendered", function () {
                                                e && (e = !1);
                                            }),
                                            this.on("before:datesUnrendered", function () {
                                                t && ((t = !1), this.triggerViewDestroy());
                                            });
                                    }),
                                    (t.prototype.queryScroll = function () {
                                        var e = r.View.prototype.queryScroll.apply(this, arguments);
                                        return this.isResourcesRendered && o.extend(e, this.queryResourceScroll()), e;
                                    }),
                                    (t.prototype.applyScroll = function (e) {
                                        r.View.prototype.applyScroll.apply(this, arguments), this.isResourcesRendered && this.applyResourceScroll(e);
                                    }),
                                    (t.prototype.queryResourceScroll = function () {
                                        return {};
                                    }),
                                    (t.prototype.applyResourceScroll = function () {}),
                                    (t.prototype.getResourceText = function (e) {
                                        return this.getResourceTextFunc()(e);
                                    }),
                                    (t.prototype.getResourceTextFunc = function () {
                                        if (this.resourceTextFunc) return this.resourceTextFunc;
                                        var e = this.opt("resourceText");
                                        return (
                                            "function" != typeof e &&
                                                (e = function (e) {
                                                    return e.title || e.id;
                                                }),
                                            (this.resourceTextFunc = e),
                                            e
                                        );
                                    }),
                                    (t.prototype.handleResourceAdd = function (e) {
                                        this.requestResourceRender(e);
                                    }),
                                    (t.prototype.handleResourceRemove = function (e) {
                                        this.requestResourceUnrender(e);
                                    }),
                                    (t.prototype.requestResourcesRender = function (e) {
                                        var t = this;
                                        this.requestRender(
                                            function () {
                                                t.executeResourcesRender(e);
                                            },
                                            "resource",
                                            "init"
                                        );
                                    }),
                                    (t.prototype.requestResourcesUnrender = function () {
                                        var e = this;
                                        this.requestRender(
                                            function () {
                                                e.executeResourcesUnrender();
                                            },
                                            "resource",
                                            "destroy"
                                        );
                                    }),
                                    (t.prototype.requestResourceRender = function (e) {
                                        var t = this;
                                        this.requestRender(
                                            function () {
                                                t.executeResourceRender(e);
                                            },
                                            "resource",
                                            "add"
                                        );
                                    }),
                                    (t.prototype.requestResourceUnrender = function (e) {
                                        var t = this;
                                        this.requestRender(
                                            function () {
                                                t.executeResourceUnrender(e);
                                            },
                                            "resource",
                                            "remove"
                                        );
                                    }),
                                    (t.prototype.executeResourcesRender = function (e) {
                                        this.renderResources(e), (this.isResourcesRendered = !0), this.trigger("resourcesRendered");
                                    }),
                                    (t.prototype.executeResourcesUnrender = function () {
                                        this.trigger("before:resourcesUnrendered"), this.unrenderResources(), (this.isResourcesRendered = !1);
                                    }),
                                    (t.prototype.executeResourceRender = function (e) {
                                        this.renderResource(e);
                                    }),
                                    (t.prototype.executeResourceUnrender = function (e) {
                                        this.unrenderResource(e);
                                    }),
                                    (t.prototype.triggerDayClick = function (e, t, n) {
                                        var i = this.calendar.footprintToDateProfile(e);
                                        this.publiclyTrigger("dayClick", { context: t, args: [i.start, n, this, e.resourceId ? this.calendar.resourceManager.getResourceById(e.resourceId) : null] });
                                    }),
                                    (t.prototype.triggerSelect = function (e, t) {
                                        var n = this.calendar.footprintToDateProfile(e);
                                        this.publiclyTrigger("select", { context: this, args: [n.start, n.end, t, this, e.resourceId ? this.calendar.resourceManager.getResourceById(e.resourceId) : null] });
                                    }),
                                    (t.prototype.triggerExternalDrop = function (e, t, n, i, o) {
                                        this.publiclyTrigger("drop", { context: n[0], args: [e.dateProfile.start.clone(), i, o, e.getResourceIds()[0], this] }),
                                            t && this.publiclyTrigger("eventReceive", { context: this, args: [e.buildInstance().toLegacy(), this] });
                                    }),
                                    t
                                );
                            })(r.Mixin);
                        (t.default = s), (s.prototype.isResourcesRendered = !1);
                    },
                    ,
                    ,
                    ,
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(0),
                            s = n(21),
                            a = n(6),
                            l = (function (e) {
                                function t(t) {
                                    var n = e.call(this, t) || this;
                                    return (n.isResourceFootprintsEnabled = !0), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderDates = function (e) {
                                        this.dateProfile = e;
                                    }),
                                    (t.prototype.renderResources = function (e) {
                                        this.registerResources(e), this.renderGrid(), this.headContainerEl && this.processHeadResourceEls(this.headContainerEl);
                                    }),
                                    (t.prototype.getHitFootprint = function (t) {
                                        var n = e.prototype.getHitFootprint.call(this, t);
                                        return new a.default(n.unzonedRange, n.isAllDay, this.getColResource(t.col).id);
                                    }),
                                    (t.prototype.componentFootprintToSegs = function (e) {
                                        for (var t = this.resourceCnt, n = [], i = 0, r = this.datesAboveResources ? this.sliceRangeByDay(e.unzonedRange) : this.sliceRangeByRow(e.unzonedRange); i < r.length; i++)
                                            for (var s = r[i], l = 0; l < t; l++) {
                                                var c = this.flattenedResources[l];
                                                if (!(e instanceof a.default) || e.resourceId === c.id) {
                                                    var u = o.extend({}, s);
                                                    (u.resource = c),
                                                        this.isRTL
                                                            ? ((u.leftCol = this.indicesToCol(l, s.lastRowDayIndex)), (u.rightCol = this.indicesToCol(l, s.firstRowDayIndex)))
                                                            : ((u.leftCol = this.indicesToCol(l, s.firstRowDayIndex)), (u.rightCol = this.indicesToCol(l, s.lastRowDayIndex))),
                                                        n.push(u);
                                                }
                                            }
                                        return n;
                                    }),
                                    t
                                );
                            })(r.DayGrid);
                        (t.default = l), s.default.mixInto(l);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(15),
                            s = n(0),
                            a = n(24),
                            l = n(25),
                            c = n(16),
                            u = n(26),
                            d = n(17),
                            p = n(28),
                            h = n(29),
                            f = n(40),
                            m = n(41),
                            g = n(42),
                            v = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return (i.emphasizeWeeks = !1), (i.isTimeBodyScrolled = !1), (i.slotWidth = i.opt("slotWidth")), i;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.normalizeComponentFootprint = function (e) {
                                        var t,
                                            n,
                                            i = e.unzonedRange;
                                        if (this.isTimeScale) (n = this.normalizeGridDate(i.getStart())), (t = this.normalizeGridDate(i.getEnd()));
                                        else {
                                            var o = this.computeDayRange(i);
                                            this.largeUnit
                                                ? ((n = o.start.clone().startOf(this.largeUnit)), ((t = o.end.clone().startOf(this.largeUnit)).isSame(o.end) && t.isAfter(n)) || t.add(this.slotDuration))
                                                : ((n = o.start), (t = o.end));
                                        }
                                        return new s.ComponentFootprint(new s.UnzonedRange(n, t), !this.isTimeScale);
                                    }),
                                    (t.prototype.componentFootprintToSegs = function (e) {
                                        var t = e.unzonedRange.getStart(),
                                            n = e.unzonedRange.getEnd(),
                                            i = this.normalizeComponentFootprint(e),
                                            o = [];
                                        if (this.computeDateSnapCoverage(t) < this.computeDateSnapCoverage(n)) {
                                            var r = i.unzonedRange.intersect(this.normalizedUnzonedRange);
                                            if (r) {
                                                var s = r.getStart(),
                                                    a = r.getEnd();
                                                o.push({ start: s, end: a, isStart: r.isStart && this.isValidDate(s), isEnd: r.isEnd && this.isValidDate(a.clone().subtract(1)) });
                                            }
                                        }
                                        return o;
                                    }),
                                    (t.prototype.normalizeGridDate = function (e) {
                                        var t = e.clone();
                                        return this.calendar.localizeMoment(t), this.isTimeScale ? t.hasTime() || t.time(0) : ((t = t.clone().stripTime()), this.largeUnit && t.startOf(this.largeUnit)), t;
                                    }),
                                    (t.prototype.isValidDate = function (e) {
                                        if (this.isHiddenDay(e)) return !1;
                                        if (this.isTimeScale) {
                                            var t = e.time() - this.dateProfile.minTime;
                                            return (t = ((t % 864e5) + 864e5) % 864e5) < this.timeWindowMs;
                                        }
                                        return !0;
                                    }),
                                    (t.prototype.updateGridDates = function () {
                                        for (var e = -1, t = 0, n = [], i = [], o = this.normalizedUnzonedStart.clone(); o < this.normalizedUnzonedEnd; )
                                            this.isValidDate(o) ? (e++, n.push(e), i.push(t)) : n.push(e + 0.5), o.add(this.snapDuration), t++;
                                        (this.snapDiffToIndex = n), (this.snapIndexToDiff = i), (this.snapCnt = e + 1), (this.slotCnt = this.snapCnt / this.snapsPerSlot);
                                    }),
                                    (t.prototype.renderSkeleton = function () {
                                        this.el.addClass("fc-timeline"),
                                            !1 === this.opt("eventOverlap") && this.el.addClass("fc-no-overlap"),
                                            this.el.html(this.renderSkeletonHtml()),
                                            (this.timeHeadEl = this.el.find("thead .fc-time-area")),
                                            (this.timeBodyEl = this.el.find("tbody .fc-time-area")),
                                            (this.timeHeadScroller = new a.default({ overflowX: "clipped-scroll", overflowY: "hidden" })),
                                            (this.timeHeadScroller.canvas = new l.default()),
                                            this.timeHeadScroller.render(),
                                            this.timeHeadScroller.el.appendTo(this.timeHeadEl),
                                            (this.timeBodyScroller = new a.default()),
                                            (this.timeBodyScroller.canvas = new l.default()),
                                            this.timeBodyScroller.render(),
                                            this.timeBodyScroller.el.appendTo(this.timeBodyEl),
                                            (this.isTimeBodyScrolled = !1),
                                            this.timeBodyScroller.on("scroll", s.proxy(this, "handleTimeBodyScrolled")),
                                            (this.slatContainerEl = o('<div class="fc-slats"/>').appendTo(this.timeBodyScroller.canvas.bgEl)),
                                            (this.segContainerEl = o('<div class="fc-event-container"/>').appendTo(this.timeBodyScroller.canvas.contentEl)),
                                            (this.bgSegContainerEl = this.timeBodyScroller.canvas.bgEl),
                                            (this.timeBodyBoundCache = new s.CoordCache({ els: this.timeBodyScroller.canvas.el, isHorizontal: !0, isVertical: !0 })),
                                            (this.timeScrollJoiner = new c.default("horizontal", [this.timeHeadScroller, this.timeBodyScroller])),
                                            (this.headDateFollower = new u.default(this.timeHeadScroller, !0)),
                                            (this.eventTitleFollower = new u.default(this.timeBodyScroller)),
                                            (this.eventTitleFollower.minTravel = 50),
                                            this.isRTL ? (this.eventTitleFollower.containOnNaturalRight = !0) : (this.eventTitleFollower.containOnNaturalLeft = !0),
                                            e.prototype.renderSkeleton.call(this);
                                    }),
                                    (t.prototype.renderSkeletonHtml = function () {
                                        var e = this.calendar.theme;
                                        return (
                                            '<table class="' +
                                            e.getClass("tableGrid") +
                                            '"> <thead class="fc-head"> <tr> <td class="fc-time-area ' +
                                            e.getClass("widgetHeader") +
                                            '"></td> </tr> </thead> <tbody class="fc-body"> <tr> <td class="fc-time-area ' +
                                            e.getClass("widgetContent") +
                                            '"></td> </tr> </tbody> </table>'
                                        );
                                    }),
                                    (t.prototype.unrenderSkeleton = function () {
                                        this.handleTimeBodyScrolled(0), e.prototype.unrenderSkeleton.call(this);
                                    }),
                                    (t.prototype.renderDates = function (e) {
                                        g.initScaleProps(this),
                                            (this.timeWindowMs = e.maxTime - e.minTime),
                                            (this.normalizedUnzonedStart = this.normalizeGridDate(e.renderUnzonedRange.getStart())),
                                            (this.normalizedUnzonedEnd = this.normalizeGridDate(e.renderUnzonedRange.getEnd())),
                                            this.isTimeScale && (this.normalizedUnzonedStart.add(e.minTime), this.normalizedUnzonedEnd.subtract(1, "day").add(e.maxTime)),
                                            (this.normalizedUnzonedRange = new s.UnzonedRange(this.normalizedUnzonedStart, this.normalizedUnzonedEnd));
                                        var t = [],
                                            n = this.normalizedUnzonedStart.clone();
                                        for (this.calendar.localizeMoment(n); n < this.normalizedUnzonedEnd; ) this.isValidDate(n) && t.push(n.clone()), n.add(this.slotDuration);
                                        (this.slotDates = t), this.updateGridDates();
                                        var i = this.renderSlatHtml();
                                        this.timeHeadScroller.canvas.contentEl.html(i.headHtml),
                                            (this.timeHeadColEls = this.timeHeadScroller.canvas.contentEl.find("col")),
                                            this.slatContainerEl.html(i.bodyHtml),
                                            (this.slatColEls = this.slatContainerEl.find("col")),
                                            (this.slatEls = this.slatContainerEl.find("td")),
                                            (this.slatCoordCache = new s.CoordCache({ els: this.slatEls, isHorizontal: !0 })),
                                            (this.slatInnerCoordCache = new s.CoordCache({ els: this.slatEls.find("> div"), isHorizontal: !0, offsetParent: this.timeBodyScroller.canvas.el }));
                                        for (var o = 0; o < this.slotDates.length; o++) (n = this.slotDates[o]), this.publiclyTrigger("dayRender", { context: this, args: [n, this.slatEls.eq(o), this] });
                                        this.headDateFollower && this.headDateFollower.setSpriteEls(this.timeHeadEl.find("tr:not(:last-child) .fc-cell-text"));
                                    }),
                                    (t.prototype.unrenderDates = function () {
                                        this.headDateFollower && this.headDateFollower.clearSprites(),
                                            this.timeHeadScroller.canvas.contentEl.empty(),
                                            this.slatContainerEl.empty(),
                                            this.timeHeadScroller.canvas.clearWidth(),
                                            this.timeBodyScroller.canvas.clearWidth();
                                    }),
                                    (t.prototype.renderSlatHtml = function () {
                                        for (
                                            var e,
                                                t,
                                                n,
                                                i,
                                                o = this.calendar.theme,
                                                r = this.labelInterval,
                                                a = this.headerFormats,
                                                l = a.map(function (e) {
                                                    return [];
                                                }),
                                                c = null,
                                                u = null,
                                                d = this.slotDates,
                                                p = [],
                                                h = a.map(function (e) {
                                                    return s.queryMostGranularFormatUnit(e);
                                                }),
                                                f = 0,
                                                m = d;
                                            f < m.length;
                                            f++
                                        ) {
                                            for (var g = (t = m[f]).week(), v = this.emphasizeWeeks && null !== u && u !== g, y = 0; y < a.length; y++) {
                                                (i = a[y]), (c = (n = l[y])[n.length - 1]);
                                                var b = null;
                                                if (a.length > 1 && y < a.length - 1) {
                                                    var w = t.format(i);
                                                    c && c.text === w ? (c.colspan += 1) : (b = this.buildCellObject(t, w, h[y]));
                                                } else if (!c || s.isInt(s.divideRangeByDuration(this.normalizedUnzonedStart, t, r))) {
                                                    w = t.format(i);
                                                    b = this.buildCellObject(t, w, h[y]);
                                                } else c.colspan += 1;
                                                b && ((b.weekStart = v), n.push(b));
                                            }
                                            p.push({ weekStart: v }), (u = g);
                                        }
                                        var _ = r > this.slotDuration,
                                            D = 1 === this.slotDuration.as("days"),
                                            C = '<table class="' + o.getClass("tableGrid") + '">';
                                        C += "<colgroup>";
                                        for (var S = 0, x = d; S < x.length; S++) (t = x[S]), (C += "<col/>");
                                        (C += "</colgroup>"), (C += "<tbody>");
                                        for (var E = 0; E < l.length; E++) {
                                            n = l[E];
                                            var T = E === l.length - 1;
                                            C += "<tr" + (_ && T ? ' class="fc-chrono"' : "") + ">";
                                            for (var R = 0, k = n; R < k.length; R++) {
                                                e = k[R];
                                                var I = [o.getClass("widgetHeader")];
                                                e.weekStart && I.push("fc-em-cell"),
                                                    D && (I = I.concat(this.getDayClasses(e.date, !0))),
                                                    (C +=
                                                        '<th class="' +
                                                        I.join(" ") +
                                                        '" data-date="' +
                                                        e.date.format() +
                                                        '"' +
                                                        (e.colspan > 1 ? ' colspan="' + e.colspan + '"' : "") +
                                                        '><div class="fc-cell-content">' +
                                                        e.spanHtml +
                                                        "</div></th>");
                                            }
                                            C += "</tr>";
                                        }
                                        C += "</tbody></table>";
                                        var F = '<table class="' + o.getClass("tableGrid") + '">';
                                        F += "<colgroup>";
                                        for (var M = 0, P = p; M < P.length; M++) (e = P[M]), (F += "<col/>");
                                        (F += "</colgroup>"), (F += "<tbody><tr>");
                                        for (E = 0; E < p.length; E++) (e = p[E]), (t = d[E]), (F += this.slatCellHtml(t, e.weekStart));
                                        return { headHtml: C, bodyHtml: (F += "</tr></tbody></table>") };
                                    }),
                                    (t.prototype.buildCellObject = function (e, t, n) {
                                        return (e = e.clone()), { text: t, spanHtml: this.buildGotoAnchorHtml({ date: e, type: n, forceOff: !n }, { class: "fc-cell-text" }, s.htmlEscape(t)), date: e, colspan: 1 };
                                    }),
                                    (t.prototype.slatCellHtml = function (e, t) {
                                        var n,
                                            i = this.calendar.theme;
                                        return (
                                            this.isTimeScale ? (n = []).push(s.isInt(s.divideRangeByDuration(this.normalizedUnzonedStart, e, this.labelInterval)) ? "fc-major" : "fc-minor") : (n = this.getDayClasses(e)).push("fc-day"),
                                            n.unshift(i.getClass("widgetContent")),
                                            t && n.push("fc-em-cell"),
                                            '<td class="' + n.join(" ") + '" data-date="' + e.format() + '"><div /></td>'
                                        );
                                    }),
                                    (t.prototype.renderBusinessHours = function (t) {
                                        if (!this.largeUnit) return e.prototype.renderBusinessHours.call(this, t);
                                    }),
                                    (t.prototype.getNowIndicatorUnit = function () {
                                        if (this.isTimeScale) return s.computeGreatestUnit(this.slotDuration);
                                    }),
                                    (t.prototype.renderNowIndicator = function (e) {
                                        var t = [];
                                        if (((e = this.normalizeGridDate(e)), this.normalizedUnzonedRange.containsDate(e))) {
                                            var n = this.dateToCoord(e),
                                                i = this.isRTL ? { right: -n } : { left: n };
                                            t.push(o("<div class='fc-now-indicator fc-now-indicator-arrow'></div>").css(i).appendTo(this.timeHeadScroller.canvas.el)[0]),
                                                t.push(o("<div class='fc-now-indicator fc-now-indicator-line'></div>").css(i).appendTo(this.timeBodyScroller.canvas.el)[0]);
                                        }
                                        this.nowIndicatorEls = o(t);
                                    }),
                                    (t.prototype.unrenderNowIndicator = function () {
                                        this.nowIndicatorEls && (this.nowIndicatorEls.remove(), (this.nowIndicatorEls = null));
                                    }),
                                    (t.prototype.updateSize = function (e, t, n) {
                                        var i, o, r, s;
                                        (i = t ? "auto" : e - this.headHeight() - this.queryMiscHeight()), this.timeBodyScroller.setHeight(i);
                                        var a = this.timeHeadColEls;
                                        if (a) {
                                            var l = Math.round(this.slotWidth || (this.slotWidth = this.computeSlotWidth()));
                                            (r = l * this.slotDates.length), (o = ""), (s = l);
                                            var c = this.timeBodyScroller.getClientWidth();
                                            c > r && ((o = c), (r = ""), (s = Math.floor(c / this.slotDates.length)));
                                        } else (r = ""), (o = "");
                                        this.timeHeadScroller.canvas.setWidth(r),
                                            this.timeHeadScroller.canvas.setMinWidth(o),
                                            this.timeBodyScroller.canvas.setWidth(r),
                                            this.timeBodyScroller.canvas.setMinWidth(o),
                                            a && this.timeHeadColEls.slice(0, -1).add(this.slatColEls.slice(0, -1)).css("width", s),
                                            this.timeHeadScroller.updateSize(),
                                            this.timeBodyScroller.updateSize(),
                                            this.timeScrollJoiner.update(),
                                            a && (this.buildCoords(), this.updateSegPositions(), this.updateNowIndicator()),
                                            this.headDateFollower && this.headDateFollower.update(),
                                            this.eventTitleFollower && this.eventTitleFollower.update();
                                    }),
                                    (t.prototype.queryMiscHeight = function () {
                                        return this.el.outerHeight() - this.timeHeadScroller.el.outerHeight() - this.timeBodyScroller.el.outerHeight();
                                    }),
                                    (t.prototype.computeSlotWidth = function () {
                                        var e = 0;
                                        this.timeHeadEl.find("tr:last-child th .fc-cell-text").each(function (t, n) {
                                            var i = o(n).outerWidth();
                                            return (e = Math.max(e, i));
                                        });
                                        var t = e + 1,
                                            n = s.divideDurationByDuration(this.labelInterval, this.slotDuration),
                                            i = Math.ceil(t / n),
                                            r = this.timeHeadColEls.eq(0).css("min-width");
                                        return r && (r = parseInt(r, 10)) && (i = Math.max(i, r)), i;
                                    }),
                                    (t.prototype.buildCoords = function () {
                                        this.timeBodyBoundCache.build(), this.slatCoordCache.build(), this.slatInnerCoordCache.build();
                                    }),
                                    (t.prototype.computeDateSnapCoverage = function (e) {
                                        var t = s.divideRangeByDuration(this.normalizedUnzonedStart, e, this.snapDuration);
                                        if (t < 0) return 0;
                                        if (t >= this.snapDiffToIndex.length) return this.snapCnt;
                                        var n = Math.floor(t),
                                            i = this.snapDiffToIndex[n];
                                        return s.isInt(i) ? (i += t - n) : (i = Math.ceil(i)), i;
                                    }),
                                    (t.prototype.dateToCoord = function (e) {
                                        var t = this.computeDateSnapCoverage(e) / this.snapsPerSlot,
                                            n = Math.floor(t),
                                            i = t - (n = Math.min(n, this.slotCnt - 1)),
                                            o = this.slatInnerCoordCache;
                                        return this.isRTL ? o.getRightPosition(n) - o.getWidth(n) * i - this.timeBodyBoundCache.getWidth(0) : o.getLeftPosition(n) + o.getWidth(n) * i;
                                    }),
                                    (t.prototype.rangeToCoords = function (e) {
                                        return this.isRTL ? { right: this.dateToCoord(e.start), left: this.dateToCoord(e.end) } : { left: this.dateToCoord(e.start), right: this.dateToCoord(e.end) };
                                    }),
                                    (t.prototype.headHeight = function () {
                                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
                                        var n = this.timeHeadScroller.canvas.contentEl.find("table");
                                        return n.height.apply(n, e);
                                    }),
                                    (t.prototype.updateSegPositions = function () {
                                        for (var e = 0, t = [].concat(this.getEventSegs(), this.getBusinessHourSegs()); e < t.length; e++) {
                                            var n = t[e],
                                                i = this.rangeToCoords(n);
                                            n.el.css({ left: (n.left = i.left), right: -(n.right = i.right) });
                                        }
                                    }),
                                    (t.prototype.handleTimeBodyScrolled = function (e) {
                                        e ? this.isTimeBodyScrolled || ((this.isTimeBodyScrolled = !0), this.el.addClass("fc-scrolled")) : this.isTimeBodyScrolled && ((this.isTimeBodyScrolled = !1), this.el.removeClass("fc-scrolled"));
                                    }),
                                    (t.prototype.computeInitialDateScroll = function () {
                                        var e = this.get("dateProfile").activeUnzonedRange,
                                            t = 0;
                                        if (this.isTimeScale) {
                                            var n = this.opt("scrollTime");
                                            n && ((n = r.duration(n)), (t = this.dateToCoord(e.getStart().time(n))));
                                        }
                                        return { left: t };
                                    }),
                                    (t.prototype.queryDateScroll = function () {
                                        return { left: this.timeBodyScroller.getScrollLeft() };
                                    }),
                                    (t.prototype.applyDateScroll = function (e) {
                                        null != e.left && (this.timeHeadScroller.setScrollLeft(e.left), this.timeBodyScroller.setScrollLeft(e.left));
                                    }),
                                    (t.prototype.prepareHits = function () {
                                        this.buildCoords();
                                    }),
                                    (t.prototype.queryHit = function (e, t) {
                                        var n = this.snapsPerSlot,
                                            i = this.slatCoordCache,
                                            o = this.timeBodyBoundCache;
                                        if (o.isPointInBounds(e, t)) {
                                            var r = i.getHorizontalIndex(e);
                                            if (null != r) {
                                                var s = void 0,
                                                    a = void 0,
                                                    l = void 0,
                                                    c = void 0,
                                                    u = void 0,
                                                    d = i.getWidth(r);
                                                if (this.isRTL) {
                                                    var p = i.getRightOffset(r);
                                                    (a = (p - e) / d), (l = r * n + (s = Math.floor(a * n))), (c = (u = p - (s / n) * d) - ((s + 1) / n) * d);
                                                } else {
                                                    var h = i.getLeftOffset(r);
                                                    (a = (e - h) / d), (l = r * n + (s = Math.floor(a * n))), (c = h + (s / n) * d), (u = h + ((s + 1) / n) * d);
                                                }
                                                return { snap: l, component: this, left: c, right: u, top: o.getTopOffset(0), bottom: o.getBottomOffset(0) };
                                            }
                                        }
                                    }),
                                    (t.prototype.getHitFootprint = function (e) {
                                        return new s.ComponentFootprint(this.getSnapUnzonedRange(e.snap), !this.isTimeScale);
                                    }),
                                    (t.prototype.getHitEl = function (e) {
                                        return this.getSnapEl(e.snap);
                                    }),
                                    (t.prototype.getSnapUnzonedRange = function (e) {
                                        var t = this.normalizedUnzonedStart.clone();
                                        t.add(s.multiplyDuration(this.snapDuration, this.snapIndexToDiff[e]));
                                        var n = t.clone().add(this.snapDuration);
                                        return new s.UnzonedRange(t, n);
                                    }),
                                    (t.prototype.getSnapEl = function (e) {
                                        return this.slatEls.eq(Math.floor(e / this.snapsPerSlot));
                                    }),
                                    (t.prototype.renderEventResize = function (e, t, n) {
                                        for (var i = 0, o = e; i < o.length; i++) {
                                            var r = o[i];
                                            this.renderHighlight(r.componentFootprint);
                                        }
                                        return this.helperRenderer.renderEventResizingFootprints(e, t, n);
                                    }),
                                    (t.prototype.unrenderEventResize = function () {
                                        return this.unrenderHighlight(), this.helperRenderer.unrender();
                                    }),
                                    (t.prototype.renderDrag = function (e, t, n) {
                                        if (t) return this.helperRenderer.renderEventDraggingFootprints(e, t, n), !0;
                                        for (var i = 0, o = e; i < o.length; i++) {
                                            var r = o[i];
                                            this.renderHighlight(r.componentFootprint);
                                        }
                                        return !1;
                                    }),
                                    (t.prototype.unrenderDrag = function () {
                                        return this.helperRenderer.unrender(), this.unrenderHighlight();
                                    }),
                                    t
                                );
                            })(s.View);
                        (t.default = v),
                            (v.prototype.usesMinMaxTime = !0),
                            (v.prototype.eventRendererClass = d.default),
                            (v.prototype.fillRendererClass = p.default),
                            (v.prototype.businessHourRendererClass = s.BusinessHourRenderer),
                            (v.prototype.helperRendererClass = h.default),
                            (v.prototype.eventDraggingClass = f.default),
                            (v.prototype.eventResizingClass = m.default),
                            s.StandardInteractionsMixin.mixInto(v);
                    },
                    function (e, t) {
                        e.exports = n;
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var n = (function () {
                            function e(e, t) {
                                (this.axis = e), (this.scrollers = t);
                                for (var n = 0, i = this.scrollers; n < i.length; n++) {
                                    var o = i[n];
                                    this.initScroller(o);
                                }
                            }
                            return (
                                (e.prototype.initScroller = function (e) {
                                    var t = this;
                                    e.scrollEl.on("wheel mousewheel DomMouseScroll MozMousePixelScroll", function () {
                                        t.assignMasterScroller(e);
                                    }),
                                        e
                                            .on("scrollStart", function () {
                                                t.masterScroller || t.assignMasterScroller(e);
                                            })
                                            .on("scroll", function () {
                                                if (e === t.masterScroller)
                                                    for (var n = 0, i = t.scrollers; n < i.length; n++) {
                                                        var o = i[n];
                                                        if (o !== e)
                                                            switch (t.axis) {
                                                                case "horizontal":
                                                                    o.setNativeScrollLeft(e.getNativeScrollLeft());
                                                                    break;
                                                                case "vertical":
                                                                    o.setScrollTop(e.getScrollTop());
                                                            }
                                                    }
                                            })
                                            .on("scrollEnd", function () {
                                                e === t.masterScroller && t.unassignMasterScroller();
                                            });
                                }),
                                (e.prototype.assignMasterScroller = function (e) {
                                    this.unassignMasterScroller(), (this.masterScroller = e);
                                    for (var t = 0, n = this.scrollers; t < n.length; t++) {
                                        var i = n[t];
                                        i !== e && i.disableTouchScroll();
                                    }
                                }),
                                (e.prototype.unassignMasterScroller = function () {
                                    if (this.masterScroller) {
                                        for (var e = 0, t = this.scrollers; e < t.length; e++) {
                                            t[e].enableTouchScroll();
                                        }
                                        this.masterScroller = null;
                                    }
                                }),
                                (e.prototype.update = function () {
                                    for (
                                        var e,
                                            t,
                                            n,
                                            i = this.scrollers.map(function (e) {
                                                return e.getScrollbarWidths();
                                            }),
                                            o = 0,
                                            r = 0,
                                            s = 0,
                                            a = 0,
                                            l = 0,
                                            c = i;
                                        l < c.length;
                                        l++
                                    )
                                        (t = c[l]), (o = Math.max(o, t.left)), (r = Math.max(r, t.right)), (s = Math.max(s, t.top)), (a = Math.max(a, t.bottom));
                                    for (n = 0; n < this.scrollers.length; n++)
                                        (e = this.scrollers[n]), (t = i[n]), e.canvas.setGutters("horizontal" === this.axis ? { left: o - t.left, right: r - t.right } : { top: s - t.top, bottom: a - t.bottom });
                                }),
                                e
                            );
                        })();
                        t.default = n;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(0),
                            r = n(27),
                            s = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.computeDisplayEventTime = function () {
                                        return !this.view.isTimeScale;
                                    }),
                                    (t.prototype.computeDisplayEventEnd = function () {
                                        return !1;
                                    }),
                                    (t.prototype.computeEventTimeFormat = function () {
                                        return this.view.opt("extraSmallTimeFormat");
                                    }),
                                    (t.prototype.renderFgSegs = function (e) {
                                        for (var t = this.view.eventTitleFollower, n = 0, i = e; n < i.length; n++) {
                                            var o = i[n],
                                                s = this.component.rangeToCoords(o);
                                            o.el.css({ left: (o.left = s.left), right: -(o.right = s.right) });
                                        }
                                        for (var l = 0, c = e; l < c.length; l++) {
                                            (o = c[l]).el.appendTo(this.component.segContainerEl);
                                        }
                                        for (var u = 0, d = e; u < d.length; u++) {
                                            (o = d[u]).height = o.el.outerHeight(!0);
                                        }
                                        this.buildSegLevels(e), (this.component.segContainerHeight = a(e));
                                        for (var p = 0, h = e; p < h.length; p++) {
                                            (o = h[p]).el.css("top", o.top);
                                        }
                                        this.component.segContainerEl.height(this.component.segContainerHeight);
                                        for (var f = 0, m = e; f < m.length; f++) {
                                            var g = (o = m[f]).el.find(".fc-title");
                                            g.length && ((o.scrollFollowerSprite = new r.default(g)), t.addSprite(o.scrollFollowerSprite));
                                        }
                                    }),
                                    (t.prototype.buildSegLevels = function (e) {
                                        var t = [];
                                        this.sortEventSegs(e);
                                        for (var n = 0, i = e; n < i.length; n++) {
                                            var o = i[n];
                                            o.above = [];
                                            for (var r = 0; r < t.length; ) {
                                                for (var s = !1, a = 0, l = t[r]; a < l.length; a++) {
                                                    var u = l[a];
                                                    c(o, u) && (o.above.push(u), (s = !0));
                                                }
                                                if (!s) break;
                                                r += 1;
                                            }
                                            for ((t[r] || (t[r] = [])).push(o), r += 1; r < t.length; ) {
                                                for (var d = 0, p = t[r]; d < p.length; d++) {
                                                    var h = p[d];
                                                    c(o, h) && h.above.push(o);
                                                }
                                                r += 1;
                                            }
                                        }
                                        return t;
                                    }),
                                    (t.prototype.unrenderFgSegs = function (e) {
                                        if (this.component.segContainerEl) {
                                            for (var t = this.view.eventTitleFollower, n = 0, i = e; n < i.length; n++) {
                                                var o = i[n];
                                                o.scrollFollowerSprite && t.removeSprite(o.scrollFollowerSprite);
                                            }
                                            this.component.segContainerEl.empty(), this.component.segContainerEl.height(""), (this.component.segContainerHeight = null);
                                        }
                                    }),
                                    (t.prototype.fgSegHtml = function (e, t) {
                                        var n = e.footprint.eventDef,
                                            i = this.view.isEventDefDraggable(n),
                                            r = e.isStart && this.view.isEventDefResizableFromStart(n),
                                            s = e.isEnd && this.view.isEventDefResizableFromEnd(n),
                                            a = this.getSegClasses(e, i, r || s);
                                        a.unshift("fc-timeline-event", "fc-h-event");
                                        var l = this.getTimeText(e.footprint);
                                        return (
                                            '<a class="' +
                                            a.join(" ") +
                                            '" style="' +
                                            o.cssToStr(this.getSkinCss(e.footprint.eventDef)) +
                                            '"' +
                                            (n.url ? ' href="' + o.htmlEscape(n.url) + '"' : "") +
                                            '><div class="fc-content">' +
                                            (l ? '<span class="fc-time">' + o.htmlEscape(l) + "</span>" : "") +
                                            '<span class="fc-title">' +
                                            (n.title ? o.htmlEscape(n.title) : "&nbsp;") +
                                            '</span></div><div class="fc-bg" />' +
                                            (r ? '<div class="fc-resizer fc-start-resizer"></div>' : "") +
                                            (s ? '<div class="fc-resizer fc-end-resizer"></div>' : "") +
                                            "</a>"
                                        );
                                    }),
                                    t
                                );
                            })(o.EventRenderer);
                        function a(e) {
                            for (var t = 0, n = 0, i = e; n < i.length; n++) {
                                var o = i[n];
                                t = Math.max(t, l(o));
                            }
                            return t;
                        }
                        function l(e) {
                            return null == e.top && (e.top = a(e.above)), e.top + e.height;
                        }
                        function c(e, t) {
                            return e.left < t.right && e.right > t.left;
                        }
                        t.default = s;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(0),
                            s = n(44),
                            a = (function (e) {
                                function t(t) {
                                    var n = e.call(this, t) || this;
                                    return (n.children = []), (n.depth = 0), (n.trHash = {}), (n.trs = o()), (n.isExpanded = n.view.opt("resourcesInitiallyExpanded")), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.addChildRowNode = function (e, t) {
                                        e.removeFromParentAndDom();
                                        var n = this.children;
                                        null != t ? n.splice(t, 0, e) : ((t = n.length), n.push(e)),
                                            (e.prevSibling = t > 0 ? n[t - 1] : null),
                                            t < n.length - 1 && (n[t + 1].prevSibling = e),
                                            (e.parent = this),
                                            (e.depth = this.depth + (this.hasOwnRow ? 1 : 0)),
                                            this.descendantAdded(e);
                                    }),
                                    (t.prototype.removeChild = function (e) {
                                        var t,
                                            n = this.children,
                                            i = !1;
                                        for (t = 0; t < n.length; t++) {
                                            if (n[t] === e) {
                                                i = !0;
                                                break;
                                            }
                                        }
                                        return !!i && (t < n.length - 1 && (n[t + 1].prevSibling = e.prevSibling), n.splice(t, 1), (e.parent = null), (e.prevSibling = null), this.descendantRemoved(e), e);
                                    }),
                                    (t.prototype.removeChildren = function () {
                                        for (var e = 0, t = this.children; e < t.length; e++) {
                                            var n = t[e];
                                            this.descendantRemoved(n);
                                        }
                                        this.children = [];
                                    }),
                                    (t.prototype.removeFromParentAndDom = function () {
                                        this.parent && this.parent.removeChild(this), this.get("isInDom") && this.removeElement();
                                    }),
                                    (t.prototype.getLastChild = function () {
                                        var e = this.children;
                                        return e[e.length - 1];
                                    }),
                                    (t.prototype.getPrevRowInDom = function () {
                                        for (var e = this; e; ) {
                                            if (e.prevSibling) {
                                                var t = void 0;
                                                for (e = e.prevSibling; (t = e.getLastChild()); ) e = t;
                                            } else e = e.parent;
                                            if (e && e.get("isInDom") && e.hasOwnRow) return e;
                                        }
                                        return null;
                                    }),
                                    (t.prototype.getLeadingRow = function () {
                                        return this.hasOwnRow ? this : this.isExpanded && this.children.length ? this.children[0].getLeadingRow() : void 0;
                                    }),
                                    (t.prototype.getRows = function (e) {
                                        void 0 === e && (e = []), this.hasOwnRow && e.push(this);
                                        for (var t = 0, n = this.children; t < n.length; t++) {
                                            n[t].getRows(e);
                                        }
                                        return e;
                                    }),
                                    (t.prototype.getNodes = function (e) {
                                        void 0 === e && (e = []), e.push(this);
                                        for (var t = 0, n = this.children; t < n.length; t++) {
                                            n[t].getNodes(e);
                                        }
                                        return e;
                                    }),
                                    (t.prototype.getDescendants = function () {
                                        for (var e = [], t = 0, n = this.children; t < n.length; t++) {
                                            n[t].getNodes(e);
                                        }
                                        return e;
                                    }),
                                    (t.prototype.show = function () {
                                        this.get("isInDom") || this.renderSkeleton();
                                    }),
                                    (t.prototype.hide = function () {
                                        this.get("isInDom") && this.removeElement();
                                    }),
                                    (t.prototype.renderSkeleton = function () {
                                        this.trHash = {};
                                        var e = [];
                                        if (this.hasOwnRow) {
                                            var t = this.getPrevRowInDom();
                                            for (var n in this.view.tbodyHash) {
                                                var i = this.view.tbodyHash[n],
                                                    s = o("<tr/>");
                                                (this.trHash[n] = s), e.push(s[0]);
                                                var a = "render" + r.capitaliseFirstLetter(n) + "Skeleton";
                                                this[a] && this[a](s), t ? t.trHash[n].after(s) : i.prepend(s);
                                            }
                                            (this.trs = o(e).on("click", ".fc-expander", r.proxy(this, "toggleExpanded"))), this.thisRowShown();
                                        }
                                        if ((this.set("isInDom", !0), this.isExpanded))
                                            for (var l = 0, c = this.children; l < c.length; l++) {
                                                c[l].renderSkeleton();
                                            }
                                    }),
                                    (t.prototype.removeElement = function () {
                                        for (var e in this.trHash) {
                                            var t = this.trHash[e],
                                                n = "unrender" + r.capitaliseFirstLetter(e) + "Skeleton";
                                            this[n] && this[n](t);
                                        }
                                        this.unset("isInDom"), this.thisRowHidden(), (this.trHash = {}), this.trs.remove(), (this.trs = o());
                                        for (var i = 0, s = this.children; i < s.length; i++) {
                                            var a = s[i];
                                            a.get("isInDom") && a.removeElement();
                                        }
                                    }),
                                    (t.prototype.getTr = function (e) {
                                        return this.trHash[e];
                                    }),
                                    (t.prototype.expand = function () {
                                        if (!this.isExpanded) {
                                            (this.isExpanded = !0), this.indicateExpanded();
                                            for (var e = 0, t = this.children; e < t.length; e++) {
                                                t[e].show();
                                            }
                                            this.view.calendar.updateViewSize(), this.animateExpand();
                                        }
                                    }),
                                    (t.prototype.collapse = function () {
                                        if (this.isExpanded) {
                                            (this.isExpanded = !1), this.indicateCollapsed();
                                            for (var e = 0, t = this.children; e < t.length; e++) {
                                                t[e].hide();
                                            }
                                            this.view.calendar.updateViewSize();
                                        }
                                    }),
                                    (t.prototype.toggleExpanded = function () {
                                        this.isExpanded ? this.collapse() : this.expand();
                                    }),
                                    (t.prototype.indicateExpanded = function () {
                                        this.trs.find(".fc-expander .fc-icon").removeClass(this.getCollapsedIcon()).addClass(this.getExpandedIcon());
                                    }),
                                    (t.prototype.indicateCollapsed = function () {
                                        this.trs.find(".fc-expander .fc-icon").removeClass(this.getExpandedIcon()).addClass(this.getCollapsedIcon());
                                    }),
                                    (t.prototype.indicateExpandingEnabled = function () {
                                        this.trs.find(".fc-expander-space").addClass("fc-expander"), this.isExpanded ? this.indicateExpanded() : this.indicateCollapsed();
                                    }),
                                    (t.prototype.indicateExpandingDisabled = function () {
                                        this.trs.find(".fc-expander-space").removeClass("fc-expander").find(".fc-icon").removeClass(this.getExpandedIcon()).removeClass(this.getCollapsedIcon());
                                    }),
                                    (t.prototype.updateExpandingEnabled = function () {
                                        this.hasOwnRow && this.children.length ? this.indicateExpandingEnabled() : this.indicateExpandingDisabled();
                                    }),
                                    (t.prototype.getExpandedIcon = function () {
                                        return "fc-icon-down-triangle";
                                    }),
                                    (t.prototype.getCollapsedIcon = function () {
                                        return "fc-icon-" + (this.view.isRTL ? "left" : "right") + "-triangle";
                                    }),
                                    (t.prototype.animateExpand = function () {
                                        var e = this.children[0],
                                            t = e && e.getLeadingRow(),
                                            n = t && t.trs;
                                        n &&
                                            (n.addClass("fc-collapsed"),
                                            setTimeout(function () {
                                                n.addClass("fc-transitioning"), n.removeClass("fc-collapsed");
                                            }),
                                            n.one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend", function () {
                                                n.removeClass("fc-transitioning");
                                            }));
                                    }),
                                    (t.prototype.getMaxTrInnerHeight = function () {
                                        var e = 0;
                                        return (
                                            o.each(this.trHash, function (t, n) {
                                                var i = s.getOwnCells(n).find("> div:not(.fc-cell-content):first");
                                                e = Math.max(i.height(), e);
                                            }),
                                            e
                                        );
                                    }),
                                    (t.prototype.setTrInnerHeight = function (e) {
                                        o.each(this.trHash, function (t, n) {
                                            s.getOwnCells(n).find("> div:not(.fc-cell-content):first").height(e);
                                        });
                                    }),
                                    (t.prototype.descendantAdded = function (e) {
                                        this.get("isInDom") && this.hasOwnRow && 1 === this.children.length && this.indicateExpandingEnabled(), (this.parent || this.view).descendantAdded(e);
                                    }),
                                    (t.prototype.descendantRemoved = function (e) {
                                        this.get("isInDom") && this.hasOwnRow && 0 === this.children.length && this.indicateExpandingDisabled(), (this.parent || this.view).descendantRemoved(e);
                                    }),
                                    (t.prototype.thisRowShown = function () {
                                        (this.parent || this.view).descendantShown(this);
                                    }),
                                    (t.prototype.thisRowHidden = function () {
                                        (this.parent || this.view).descendantHidden(this);
                                    }),
                                    (t.prototype.descendantShown = function (e) {
                                        (this.parent || this.view).descendantShown(e);
                                    }),
                                    (t.prototype.descendantHidden = function (e) {
                                        (this.parent || this.view).descendantHidden(e);
                                    }),
                                    t
                                );
                            })(r.DateComponent);
                        (t.default = a), (a.prototype.hasOwnRow = !1);
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var n = (function () {
                            function e() {}
                            return (
                                (e.extractIds = function (t, n) {
                                    var i = n.opt("eventResourceField") || "resourceId",
                                        o = [];
                                    if (t.resourceIds)
                                        for (var r = 0, s = t.resourceIds; r < s.length; r++) {
                                            var a = s[r];
                                            o.push(e.normalizeId(a));
                                        }
                                    return null != t[i] && o.push(e.normalizeId(t[i])), o;
                                }),
                                (e.normalizeId = function (e) {
                                    return String(e);
                                }),
                                e
                            );
                        })();
                        t.default = n;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(0),
                            r = n(9),
                            s = n(13),
                            a = n(38),
                            l = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return i.initResourceView(), i;
                                }
                                return i.__extends(t, e), t;
                            })(o.AgendaView);
                        (t.default = l), (l.prototype.timeGridClass = a.default), (l.prototype.dayGridClass = s.default), r.default.mixInto(l);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(0),
                            s = n(6),
                            a = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.mixInto = function (e) {
                                        var t = this;
                                        r.Mixin.mixInto.call(this, e),
                                            ["updateDayTableCols", "computeColCnt", "getColDayIndex", "renderHeadTrHtml", "renderBgCellsHtml", "renderBusinessHours", "allowCrossResource"].forEach(function (n) {
                                                e.prototype[n] = t.prototype[n];
                                            });
                                    }),
                                    (t.prototype.registerResources = function (e) {
                                        (this.flattenedResources = this.flattenResources(e)), (this.resourceCnt = this.flattenedResources.length), this.updateDayTable();
                                    }),
                                    (t.prototype.flattenResources = function (e) {
                                        var t,
                                            n = this.opt("resourceOrder");
                                        if (n) {
                                            var i = r.parseFieldSpecs(n);
                                            t = function (e, t) {
                                                return r.compareByFieldSpecs(e, t, i);
                                            };
                                        } else t = null;
                                        var o = [];
                                        return this.accumulateResources(e, t, o), o;
                                    }),
                                    (t.prototype.accumulateResources = function (e, t, n) {
                                        var i;
                                        t ? (i = e.slice(0)).sort(t) : (i = e);
                                        for (var o = 0, r = i; o < r.length; o++) {
                                            var s = r[o];
                                            n.push(s), this.accumulateResources(s.children, t, n);
                                        }
                                    }),
                                    (t.prototype.updateDayTableCols = function () {
                                        (this.datesAboveResources = this.opt("groupByDateAndResource")), r.DayTableMixin.prototype.updateDayTableCols.call(this);
                                    }),
                                    (t.prototype.computeColCnt = function () {
                                        return this.resourceCnt * this.daysPerRow;
                                    }),
                                    (t.prototype.getColDayIndex = function (e) {
                                        return this.isRTL && (e = this.colCnt - 1 - e), this.datesAboveResources ? Math.floor(e / (this.resourceCnt || 1)) : e % this.daysPerRow;
                                    }),
                                    (t.prototype.getColResource = function (e) {
                                        return this.flattenedResources[this.getColResourceIndex(e)];
                                    }),
                                    (t.prototype.getColResourceIndex = function (e) {
                                        return this.isRTL && (e = this.colCnt - 1 - e), this.datesAboveResources ? e % (this.resourceCnt || 1) : Math.floor(e / this.daysPerRow);
                                    }),
                                    (t.prototype.indicesToCol = function (e, t) {
                                        var n = this.datesAboveResources ? t * (this.resourceCnt || 1) + e : e * this.daysPerRow + t;
                                        return this.isRTL && (n = this.colCnt - 1 - n), n;
                                    }),
                                    (t.prototype.renderHeadTrHtml = function () {
                                        return this.daysPerRow > 1 ? (this.datesAboveResources ? this.renderHeadDateAndResourceHtml() : this.renderHeadResourceAndDateHtml()) : this.renderHeadResourceHtml();
                                    }),
                                    (t.prototype.renderHeadResourceHtml = function () {
                                        var e = this,
                                            t = this.flattenedResources.map(function (t) {
                                                return e.renderHeadResourceCellHtml(t);
                                            });
                                        return t.length || t.push("<td>&nbsp;</td>"), this.wrapTr(t, "renderHeadIntroHtml");
                                    }),
                                    (t.prototype.renderHeadResourceAndDateHtml = function () {
                                        for (var e = [], t = [], n = this.daysPerRow, i = 0, o = this.flattenedResources; i < o.length; i++) {
                                            var r = o[i];
                                            e.push(this.renderHeadResourceCellHtml(r, null, this.daysPerRow));
                                            for (var s = 0; s < n; s++) {
                                                var a = this.dayDates[s].clone();
                                                t.push(this.renderHeadResourceDateCellHtml(a, r));
                                            }
                                        }
                                        return e.length || e.push("<td>&nbsp;</td>"), t.length || t.push("<td>&nbsp;</td>"), this.wrapTr(e, "renderHeadIntroHtml") + this.wrapTr(t, "renderHeadIntroHtml");
                                    }),
                                    (t.prototype.renderHeadDateAndResourceHtml = function () {
                                        for (var e = [], t = [], n = this.daysPerRow, i = 0; i < n; i++) {
                                            var o = this.dayDates[i].clone();
                                            e.push(this.renderHeadDateCellHtml(o, this.resourceCnt));
                                            for (var r = 0, s = this.flattenedResources; r < s.length; r++) {
                                                var a = s[r];
                                                t.push(this.renderHeadResourceCellHtml(a, o));
                                            }
                                        }
                                        return e.length || e.push("<td>&nbsp;</td>"), t.length || t.push("<td>&nbsp;</td>"), this.wrapTr(e, "renderHeadIntroHtml") + this.wrapTr(t, "renderHeadIntroHtml");
                                    }),
                                    (t.prototype.renderHeadResourceCellHtml = function (e, t, n) {
                                        return (
                                            void 0 === n && (n = 1),
                                            '<th class="fc-resource-cell" data-resource-id="' +
                                                e.id +
                                                '"' +
                                                (t ? ' data-date="' + t.format("YYYY-MM-DD") + '"' : "") +
                                                (n > 1 ? ' colspan="' + n + '"' : "") +
                                                ">" +
                                                r.htmlEscape(this.view.getResourceText(e)) +
                                                "</th>"
                                        );
                                    }),
                                    (t.prototype.renderHeadResourceDateCellHtml = function (e, t, n) {
                                        return void 0 === n && (n = 1), this.renderHeadDateCellHtml(e, n, 'data-resource-id="' + t.id + '"');
                                    }),
                                    (t.prototype.processHeadResourceEls = function (e) {
                                        var t = this;
                                        e.find(".fc-resource-cell").each(function (e, n) {
                                            var i;
                                            (i = t.datesAboveResources ? t.getColResource(e) : t.flattenedResources[t.isRTL ? t.flattenedResources.length - 1 - e : e]),
                                                t.publiclyTrigger("resourceRender", { context: i, args: [i, o(n), o(), t.view] });
                                        });
                                    }),
                                    (t.prototype.renderBgCellsHtml = function (e) {
                                        for (var t = [], n = this.colCnt, i = 0; i < n; i++) {
                                            var o = this.getCellDate(e, i),
                                                r = this.getColResource(i);
                                            t.push(this.renderResourceBgCellHtml(o, r));
                                        }
                                        return t.length || t.push("<td>&nbsp;</td>"), t.join("");
                                    }),
                                    (t.prototype.renderResourceBgCellHtml = function (e, t) {
                                        return this.renderBgCellHtml(e, 'data-resource-id="' + t.id + '"');
                                    }),
                                    (t.prototype.wrapTr = function (e, t) {
                                        return this.isRTL ? (e.reverse(), "<tr>" + e.join("") + this[t]() + "</tr>") : "<tr>" + this[t]() + e.join("") + "</tr>";
                                    }),
                                    (t.prototype.renderBusinessHours = function (e) {
                                        for (var t = this.hasAllDayBusinessHours, n = this.dateProfile.activeUnzonedRange, i = [], o = 0, a = this.flattenedResources; o < a.length; o++) {
                                            var l = a[o],
                                                c = (l.businessHourGenerator || e).buildEventInstanceGroup(t, n);
                                            if (c)
                                                for (var u = 0, d = c.sliceRenderRanges(n); u < d.length; u++) {
                                                    var p = d[u];
                                                    i.push(new r.EventFootprint(new s.default(p.unzonedRange, t, l.id), p.eventDef, p.eventInstance));
                                                }
                                        }
                                        return this.businessHourRenderer.renderEventFootprints(i);
                                    }),
                                    t
                                );
                            })(r.Mixin);
                        (t.default = a), (a.prototype.resourceCnt = 0), (a.prototype.datesAboveResources = !1), (a.prototype.allowCrossResource = !1);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(0),
                            r = n(9),
                            s = n(13),
                            a = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return i.initResourceView(), i;
                                }
                                return i.__extends(t, e), t;
                            })(o.BasicView);
                        (t.default = a), (a.prototype.dayGridClass = s.default), r.default.mixInto(a);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(0),
                            r = n(9),
                            s = n(13),
                            a = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return i.initResourceView(), i;
                                }
                                return i.__extends(t, e), t;
                            })(o.MonthView);
                        (t.default = a), (a.prototype.dayGridClass = s.default), r.default.mixInto(a);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(0),
                            s = (function (e) {
                                function t(t) {
                                    var n = e.call(this, t) || this;
                                    return (
                                        (n.isHScrollbarsClipped = !1),
                                        (n.isVScrollbarsClipped = !1),
                                        "clipped-scroll" === n.overflowX && ((n.overflowX = "scroll"), (n.isHScrollbarsClipped = !0)),
                                        "clipped-scroll" === n.overflowY && ((n.overflowY = "scroll"), (n.isVScrollbarsClipped = !0)),
                                        n
                                    );
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderEl = function () {
                                        var t = e.prototype.renderEl.call(this);
                                        return o('<div class="fc-scroller-clip" />').append(t);
                                    }),
                                    (t.prototype.updateSize = function () {
                                        var e = this.scrollEl,
                                            t = r.getScrollbarWidths(e),
                                            n = { marginLeft: 0, marginRight: 0, marginTop: 0, marginBottom: 0 };
                                        return (
                                            this.isHScrollbarsClipped && ((n.marginTop = -t.top), (n.marginBottom = -t.bottom)),
                                            this.isVScrollbarsClipped && ((n.marginLeft = -t.left), (n.marginRight = -t.right)),
                                            e.css(n),
                                            e.toggleClass(
                                                "fc-no-scrollbars",
                                                (this.isHScrollbarsClipped || "hidden" === this.overflowX) && (this.isVScrollbarsClipped || "hidden" === this.overflowY) && !(t.top || t.bottom || t.left || t.right)
                                            )
                                        );
                                    }),
                                    (t.prototype.getScrollbarWidths = function () {
                                        var e = r.getScrollbarWidths(this.scrollEl);
                                        return this.isHScrollbarsClipped && ((e.top = 0), (e.bottom = 0)), this.isVScrollbarsClipped && ((e.left = 0), (e.right = 0)), e;
                                    }),
                                    t
                                );
                            })(n(39).default);
                        t.default = s;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = (function () {
                                function e() {
                                    this.gutters = {};
                                }
                                return (
                                    (e.prototype.render = function () {
                                        (this.el = i('<div class="fc-scroller-canvas"> <div class="fc-content"></div> <div class="fc-bg"></div> </div>')), (this.contentEl = this.el.find(".fc-content")), (this.bgEl = this.el.find(".fc-bg"));
                                    }),
                                    (e.prototype.setGutters = function (e) {
                                        e ? i.extend(this.gutters, e) : (this.gutters = {}), this.updateSize();
                                    }),
                                    (e.prototype.setWidth = function (e) {
                                        (this.width = e), this.updateSize();
                                    }),
                                    (e.prototype.setMinWidth = function (e) {
                                        (this.minWidth = e), this.updateSize();
                                    }),
                                    (e.prototype.clearWidth = function () {
                                        (this.width = null), (this.minWidth = null), this.updateSize();
                                    }),
                                    (e.prototype.updateSize = function () {
                                        var e = this.gutters;
                                        this.el
                                            .toggleClass("fc-gutter-left", Boolean(e.left))
                                            .toggleClass("fc-gutter-right", Boolean(e.right))
                                            .toggleClass("fc-gutter-top", Boolean(e.top))
                                            .toggleClass("fc-gutter-bottom", Boolean(e.bottom))
                                            .css({
                                                paddingLeft: e.left || "",
                                                paddingRight: e.right || "",
                                                paddingTop: e.top || "",
                                                paddingBottom: e.bottom || "",
                                                width: null != this.width ? this.width + (e.left || 0) + (e.right || 0) : "",
                                                minWidth: null != this.minWidth ? this.minWidth + (e.left || 0) + (e.right || 0) : "",
                                            }),
                                            this.bgEl.css({ left: e.left || "", right: e.right || "", top: e.top || "", bottom: e.bottom || "" });
                                    }),
                                    e
                                );
                            })();
                        t.default = o;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(0),
                            r = n(27),
                            s = (function () {
                                function e(e, t) {
                                    void 0 === t && (t = !1);
                                    var n = this;
                                    (this.isHFollowing = !0),
                                        (this.isVFollowing = !1),
                                        (this.allowPointerEvents = !1),
                                        (this.containOnNaturalLeft = !1),
                                        (this.containOnNaturalRight = !1),
                                        (this.minTravel = 0),
                                        (this.allowPointerEvents = t),
                                        (this.scroller = e),
                                        (this.spritesById = {}),
                                        e.on("scroll", function () {
                                            e.isTouchedEver ? ((n.isTouch = !0), (n.isForcedRelative = !0)) : ((n.isTouch = !1), n.handleScroll());
                                        }),
                                        e.on("scrollEnd", function () {
                                            n.handleScroll();
                                        });
                                }
                                return (
                                    (e.prototype.setSpriteEls = function (e) {
                                        var t = this;
                                        this.clearSprites(),
                                            e.each(function (e, n) {
                                                t.addSprite(new r.default(i(n)));
                                            });
                                    }),
                                    (e.prototype.clearSprites = function () {
                                        this.iterSprites(function (e) {
                                            return e.clear();
                                        }),
                                            (this.spritesById = {});
                                    }),
                                    (e.prototype.addSprite = function (e) {
                                        (e.follower = this), (this.spritesById[e.id] = e);
                                    }),
                                    (e.prototype.removeSprite = function (e) {
                                        e.clear(), delete this.spritesById[e.id];
                                    }),
                                    (e.prototype.handleScroll = function () {
                                        this.updateViewport(), this.updatePositions();
                                    }),
                                    (e.prototype.cacheDimensions = function () {
                                        this.updateViewport(),
                                            (this.scrollbarWidths = this.scroller.getScrollbarWidths()),
                                            (this.contentOffset = this.scroller.canvas.el.offset()),
                                            this.iterSprites(function (e) {
                                                return e.cacheDimensions();
                                            });
                                    }),
                                    (e.prototype.updateViewport = function () {
                                        var e = this.scroller,
                                            t = e.getScrollFromLeft(),
                                            n = e.getScrollTop();
                                        return (this.viewportRect = { left: t, right: t + e.getClientWidth(), top: n, bottom: n + e.getClientHeight() });
                                    }),
                                    (e.prototype.forceRelative = function () {
                                        this.isForcedRelative ||
                                            ((this.isForcedRelative = !0),
                                            this.iterSprites(function (e) {
                                                if (e.doAbsolute) return e.assignPosition();
                                            }));
                                    }),
                                    (e.prototype.clearForce = function () {
                                        this.isForcedRelative &&
                                            !this.isTouch &&
                                            ((this.isForcedRelative = !1),
                                            this.iterSprites(function (e) {
                                                return e.assignPosition();
                                            }));
                                    }),
                                    (e.prototype.update = function () {
                                        this.cacheDimensions(), this.updatePositions();
                                    }),
                                    (e.prototype.updatePositions = function () {
                                        this.iterSprites(function (e) {
                                            return e.updatePosition();
                                        });
                                    }),
                                    (e.prototype.getContentRect = function (e) {
                                        return o.getContentRect(e, this.contentOffset);
                                    }),
                                    (e.prototype.getBoundingRect = function (e) {
                                        return o.getOuterRect(e, this.contentOffset);
                                    }),
                                    (e.prototype.iterSprites = function (e) {
                                        for (var t in this.spritesById) {
                                            e(this.spritesById[t], t);
                                        }
                                    }),
                                    e
                                );
                            })();
                        t.default = s;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = (function () {
                                function e(t) {
                                    (this.isEnabled = !0),
                                        (this.isHFollowing = !1),
                                        (this.isVFollowing = !1),
                                        (this.doAbsolute = !1),
                                        (this.isAbsolute = !1),
                                        (this.isCentered = !1),
                                        (this.isBlock = !1),
                                        (this.el = t),
                                        (this.id = String(e.uid++)),
                                        (this.isBlock = "block" === this.el.css("display")),
                                        "relative" !== this.el.css("position") && this.el.css("position", "relative");
                                }
                                return (
                                    (e.prototype.disable = function () {
                                        this.isEnabled && ((this.isEnabled = !1), this.resetPosition(), this.unabsolutize());
                                    }),
                                    (e.prototype.enable = function () {
                                        this.isEnabled || ((this.isEnabled = !0), this.assignPosition());
                                    }),
                                    (e.prototype.clear = function () {
                                        this.disable(), (this.follower = null), (this.absoluteEl = null);
                                    }),
                                    (e.prototype.cacheDimensions = function () {
                                        var e = !1,
                                            t = !1,
                                            n = !1;
                                        (this.naturalWidth = this.el.width()), this.resetPosition();
                                        var i = this.follower,
                                            o = (this.naturalRect = i.getBoundingRect(this.el)),
                                            a = this.el.parent();
                                        this.parentRect = i.getBoundingRect(a);
                                        var l,
                                            c,
                                            u = (this.containerRect =
                                                ((l = i.getContentRect(a)), (c = o), { left: Math.min(l.left, c.left), right: Math.max(l.right, c.right), top: Math.min(l.top, c.top), bottom: Math.max(l.bottom, c.bottom) })),
                                            d = i.minTravel;
                                        i.containOnNaturalLeft && (u.left = o.left),
                                            i.containOnNaturalRight && (u.right = o.right),
                                            i.isHFollowing && r(u) - r(o) >= d && ((n = "center" === this.el.css("text-align")), (e = !0)),
                                            i.isVFollowing && s(u) - s(o) >= d && (t = !0),
                                            (this.isHFollowing = e),
                                            (this.isVFollowing = t),
                                            (this.isCentered = n);
                                    }),
                                    (e.prototype.updatePosition = function () {
                                        this.computePosition(), this.assignPosition();
                                    }),
                                    (e.prototype.resetPosition = function () {
                                        this.el.css({ top: "", left: "" });
                                    }),
                                    (e.prototype.computePosition = function () {
                                        var e = this.follower.viewportRect,
                                            t = this.parentRect,
                                            n = this.containerRect,
                                            o = i.intersectRects(e, t),
                                            s = null,
                                            u = !1;
                                        if (o) {
                                            s = (function (e) {
                                                return { left: e.left, right: e.right, top: e.top, bottom: e.bottom };
                                            })(this.naturalRect);
                                            var d = i.intersectRects(s, t);
                                            if ((this.isCentered && !a(e, t)) || (d && !a(e, d))) {
                                                if (((u = !0), this.isHFollowing)) {
                                                    if (this.isCentered) {
                                                        var p = r(s);
                                                        (s.left = (o.left + o.right) / 2 - p / 2), (s.right = s.left + p);
                                                    } else l(s, e) || (u = !1);
                                                    l(s, n) && (u = !1);
                                                }
                                                this.isVFollowing && (c(s, e) || (u = !1), c(s, n) && (u = !1)), a(e, s) || (u = !1);
                                            }
                                        }
                                        (this.rect = s), (this.doAbsolute = u);
                                    }),
                                    (e.prototype.assignPosition = function () {
                                        if (this.isEnabled)
                                            if (this.rect)
                                                if (this.doAbsolute && !this.follower.isForcedRelative)
                                                    this.absolutize(),
                                                        this.absoluteEl.css({
                                                            top: this.rect.top - this.follower.viewportRect.top + this.follower.scrollbarWidths.top,
                                                            left: this.rect.left - this.follower.viewportRect.left + this.follower.scrollbarWidths.left,
                                                            width: this.isBlock ? this.naturalWidth : "",
                                                        });
                                                else {
                                                    var e = this.rect.top - this.naturalRect.top,
                                                        t = this.rect.left - this.naturalRect.left;
                                                    this.unabsolutize(), this.el.toggleClass("fc-following", Boolean(e || t)).css({ top: e, left: t });
                                                }
                                            else this.unabsolutize();
                                    }),
                                    (e.prototype.absolutize = function () {
                                        this.isAbsolute || (this.absoluteEl || (this.absoluteEl = this.buildAbsoluteEl()), this.absoluteEl.appendTo(this.follower.scroller.el), this.el.css("visibility", "hidden"), (this.isAbsolute = !0));
                                    }),
                                    (e.prototype.unabsolutize = function () {
                                        this.isAbsolute && (this.absoluteEl.detach(), this.el.css("visibility", ""), (this.isAbsolute = !1));
                                    }),
                                    (e.prototype.buildAbsoluteEl = function () {
                                        var e = this.el.clone().addClass("fc-following");
                                        return (
                                            e.css({
                                                position: "absolute",
                                                "z-index": 1e3,
                                                "font-weight": this.el.css("font-weight"),
                                                "font-size": this.el.css("font-size"),
                                                "font-family": this.el.css("font-family"),
                                                "text-decoration": this.el.css("text-decoration"),
                                                color: this.el.css("color"),
                                                "padding-top": this.el.css("padding-top"),
                                                "padding-bottom": this.el.css("padding-bottom"),
                                                "padding-left": this.el.css("padding-left"),
                                                "padding-right": this.el.css("padding-right"),
                                            }),
                                            this.follower.allowPointerEvents || e.css("pointer-events", "none"),
                                            e
                                        );
                                    }),
                                    (e.uid = 0),
                                    e
                                );
                            })();
                        function r(e) {
                            return e.right - e.left;
                        }
                        function s(e) {
                            return e.bottom - e.top;
                        }
                        function a(e, t) {
                            return (
                                (function (e, t) {
                                    return t.left >= e.left && t.right <= e.right;
                                })(e, t) &&
                                (function (e, t) {
                                    return t.top >= e.top && t.bottom <= e.bottom;
                                })(e, t)
                            );
                        }
                        function l(e, t) {
                            return e.left < t.left ? ((e.right = t.left + r(e)), (e.left = t.left), !0) : e.right > t.right && ((e.left = t.right - r(e)), (e.right = t.right), !0);
                        }
                        function c(e, t) {
                            return e.top < t.top ? ((e.bottom = t.top + s(e)), (e.top = t.top), !0) : e.bottom > t.bottom && ((e.top = t.bottom - s(e)), (e.bottom = t.bottom), !0);
                        }
                        t.default = o;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.attachSegEls = function (e, t) {
                                        if (t.length) {
                                            var n = void 0;
                                            n = "businessHours" === e ? "bgevent" : e.toLowerCase();
                                            for (var i = o('<div class="fc-' + n + '-container" />').appendTo(this.component.bgSegContainerEl), r = 0, s = t; r < s.length; r++) {
                                                var a = s[r],
                                                    l = this.component.rangeToCoords(a);
                                                a.el.css({ left: (a.left = l.left), right: -(a.right = l.right) }), a.el.appendTo(i);
                                            }
                                            return i;
                                        }
                                    }),
                                    t
                                );
                            })(n(0).FillRenderer);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderSegs = function (e, t) {
                                        for (var n = [], i = 0, r = e; i < r.length; i++) {
                                            var s = r[i],
                                                a = this.component.rangeToCoords(s);
                                            s.el.css({ left: (s.left = a.left), right: -(s.right = a.right) }),
                                                t && t.resourceId === (null != this.component.resource ? this.component.resource.id : void 0) ? s.el.css("top", t.el.css("top")) : s.el.css("top", 0);
                                        }
                                        var l = o('<div class="fc-event-container fc-helper-container"/>').appendTo(this.component.innerEl);
                                        n.push(l[0]);
                                        for (var c = 0, u = e; c < u.length; c++) {
                                            s = u[c];
                                            l.append(s.el);
                                        }
                                        return o(n);
                                    }),
                                    t
                                );
                            })(n(0).HelperRenderer);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(0),
                            s = n(16),
                            a = n(6),
                            l = n(9),
                            c = n(14),
                            u = n(43),
                            d = n(45),
                            p = n(18),
                            h = n(46),
                            f = n(47),
                            m = n(31),
                            g = n(33),
                            v = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t, n) || this;
                                    return (
                                        (i.canHandleSpecificResources = !0),
                                        (i.isResourceFootprintsEnabled = !0),
                                        (i.nestingCnt = 0),
                                        (i.indiBizCnt = 0),
                                        (i.isIndiBizRendered = !1),
                                        (i.isGenericBizRendered = !1),
                                        i.initResourceView(),
                                        i.processResourceOptions(),
                                        (i.spreadsheet = new u.default(i)),
                                        (i.rowHierarchy = new p.default(i)),
                                        (i.rowHierarchy.isExpanded = !0),
                                        (i.resourceRowHash = {}),
                                        i
                                    );
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.processResourceOptions = function () {
                                        var e = this.opt("resourceColumns") || [],
                                            t = this.opt("resourceLabelText"),
                                            n = null;
                                        e.length ? (n = t) : e.push({ labelText: t || "Resources", text: this.getResourceTextFunc() });
                                        for (var i = [], o = [], s = [], a = !1, l = !1, c = 0, u = e; c < u.length; c++) {
                                            var d = u[c];
                                            d.group ? o.push(d) : i.push(d);
                                        }
                                        if (((i[0].isMain = !0), o.length)) (s = o), (a = !0);
                                        else {
                                            var p = this.opt("resourceGroupField");
                                            p && ((l = !0), s.push({ field: p, text: this.opt("resourceGroupText"), render: this.opt("resourceGroupRender") }));
                                        }
                                        for (var h = [], f = 0, m = r.parseFieldSpecs(this.opt("resourceOrder")); f < m.length; f++) {
                                            for (var g = m[f], v = !1, y = 0, b = s; y < b.length; y++) {
                                                var w = b[y];
                                                if (w.field === g.field) {
                                                    (w.order = g.order), (v = !0);
                                                    break;
                                                }
                                            }
                                            v || h.push(g);
                                        }
                                        (this.superHeaderText = n), (this.isVGrouping = a), (this.isHGrouping = l), (this.groupSpecs = s), (this.colSpecs = o.concat(i)), (this.orderSpecs = h);
                                    }),
                                    (t.prototype.renderSkeleton = function () {
                                        e.prototype.renderSkeleton.call(this);
                                        var t = this.calendar.theme;
                                        (this.spreadsheet.el = this.el.find("tbody .fc-resource-area")),
                                            (this.spreadsheet.headEl = this.el.find("thead .fc-resource-area")),
                                            this.spreadsheet.renderSkeleton(),
                                            this.segContainerEl.remove(),
                                            (this.segContainerEl = null);
                                        var n = o('<div class="fc-rows"> <table class="' + t.getClass("tableGrid") + '"> <tbody/> </table> </div>').appendTo(this.timeBodyScroller.canvas.contentEl);
                                        (this.timeBodyTbodyEl = n.find("tbody")),
                                            (this.tbodyHash = { spreadsheet: this.spreadsheet.tbodyEl, event: this.timeBodyTbodyEl }),
                                            (this.resourceScrollJoiner = new s.default("vertical", [this.spreadsheet.bodyScroller, this.timeBodyScroller])),
                                            this.initDividerMoving();
                                    }),
                                    (t.prototype.renderSkeletonHtml = function () {
                                        var e = this.calendar.theme;
                                        return (
                                            '<table class="' +
                                            e.getClass("tableGrid") +
                                            '"> <thead class="fc-head"> <tr> <td class="fc-resource-area ' +
                                            e.getClass("widgetHeader") +
                                            '"></td> <td class="fc-divider fc-col-resizer ' +
                                            e.getClass("widgetHeader") +
                                            '"></td> <td class="fc-time-area ' +
                                            e.getClass("widgetHeader") +
                                            '"></td> </tr> </thead> <tbody class="fc-body"> <tr> <td class="fc-resource-area ' +
                                            e.getClass("widgetContent") +
                                            '"></td> <td class="fc-divider fc-col-resizer ' +
                                            e.getClass("widgetHeader") +
                                            '"></td> <td class="fc-time-area ' +
                                            e.getClass("widgetContent") +
                                            '"></td> </tr> </tbody> </table>'
                                        );
                                    }),
                                    (t.prototype.initDividerMoving = function () {
                                        var e = this,
                                            t = this.opt("resourceAreaWidth");
                                        (this.dividerEls = this.el.find(".fc-divider")),
                                            (this.dividerWidth = null != t ? t : this.spreadsheet.tableWidth),
                                            null != this.dividerWidth && this.positionDivider(this.dividerWidth),
                                            this.dividerEls.on("mousedown", function (t) {
                                                e.dividerMousedown(t);
                                            });
                                    }),
                                    (t.prototype.dividerMousedown = function (e) {
                                        var t = this,
                                            n = this.opt("isRTL"),
                                            i = this.el.width() - 30,
                                            o = this.getNaturalDividerWidth();
                                        new r.DragListener({
                                            dragStart: function () {
                                                t.dividerEls.addClass("fc-active");
                                            },
                                            drag: function (e, r) {
                                                var s;
                                                (s = n ? o - e : o + e), (s = Math.max(s, 30)), (s = Math.min(s, i)), (t.dividerWidth = s), t.positionDivider(s), t.calendar.updateViewSize();
                                            },
                                            dragEnd: function () {
                                                t.dividerEls.removeClass("fc-active");
                                            },
                                        }).startInteraction(e);
                                    }),
                                    (t.prototype.getNaturalDividerWidth = function () {
                                        return this.el.find(".fc-resource-area").width();
                                    }),
                                    (t.prototype.positionDivider = function (e) {
                                        this.el.find(".fc-resource-area").css("width", e);
                                    }),
                                    (t.prototype.updateSize = function (t, n, i) {
                                        var o;
                                        this.rowsNeedingHeightSync ? (this.syncRowHeights(this.rowsNeedingHeightSync), (this.rowsNeedingHeightSync = null)) : this.syncRowHeights();
                                        var r = this.syncHeadHeights();
                                        (o = n ? "auto" : t - r - this.queryMiscHeight()),
                                            this.timeBodyScroller.setHeight(o),
                                            this.spreadsheet.bodyScroller.setHeight(o),
                                            this.spreadsheet.updateSize(),
                                            e.prototype.updateSize.call(this, t, n, i),
                                            this.resourceScrollJoiner.update();
                                    }),
                                    (t.prototype.queryMiscHeight = function () {
                                        return (
                                            this.el.outerHeight() -
                                            Math.max(this.spreadsheet.headScroller.el.outerHeight(), this.timeHeadScroller.el.outerHeight()) -
                                            Math.max(this.spreadsheet.bodyScroller.el.outerHeight(), this.timeBodyScroller.el.outerHeight())
                                        );
                                    }),
                                    (t.prototype.syncHeadHeights = function () {
                                        this.spreadsheet.headHeight("auto"), this.headHeight("auto");
                                        var e = Math.max(this.spreadsheet.headHeight(), this.headHeight());
                                        return this.spreadsheet.headHeight(e), this.headHeight(e), e;
                                    }),
                                    (t.prototype.queryResourceScroll = function () {
                                        for (var e = {}, t = this.timeBodyScroller.scrollEl.offset().top, n = 0, i = this.getVisibleRows(); n < i.length; n++) {
                                            var o = i[n];
                                            if (o.resource) {
                                                var r = o.getTr("event"),
                                                    s = r.offset().top + r.outerHeight();
                                                if (s > t) {
                                                    (e.resourceId = o.resource.id), (e.bottom = s - t);
                                                    break;
                                                }
                                            }
                                        }
                                        return e;
                                    }),
                                    (t.prototype.applyResourceScroll = function (e) {
                                        if (e.resourceId) {
                                            var t = this.getResourceRow(e.resourceId);
                                            if (t) {
                                                var n = t.getTr("event");
                                                if (n) {
                                                    var i = this.timeBodyScroller.canvas.el.offset().top,
                                                        o = n.offset().top + n.outerHeight() - e.bottom - i;
                                                    this.timeBodyScroller.setScrollTop(o), this.spreadsheet.bodyScroller.setScrollTop(o);
                                                }
                                            }
                                        }
                                    }),
                                    (t.prototype.scrollToResource = function (e) {
                                        var t = this.getResourceRow(e.id);
                                        if (t) {
                                            var n = t.getTr("event");
                                            if (n) {
                                                var i = this.timeBodyScroller.canvas.el.offset().top,
                                                    o = n.offset().top - i;
                                                this.timeBodyScroller.setScrollTop(o), this.spreadsheet.bodyScroller.setScrollTop(o);
                                            }
                                        }
                                    }),
                                    (t.prototype.prepareHits = function () {
                                        var t = [];
                                        e.prototype.prepareHits.call(this),
                                            (this.eventRows = this.getEventRows()),
                                            this.eventRows.forEach(function (e) {
                                                e.get("isInDom") && t.push(e);
                                            });
                                        var n = t.map(function (e) {
                                            return e.getTr("event")[0];
                                        });
                                        (this.shownEventRows = t), (this.rowCoordCache = new r.CoordCache({ els: n, isVertical: !0 })), this.rowCoordCache.build();
                                    }),
                                    (t.prototype.releaseHits = function () {
                                        e.prototype.releaseHits.call(this), (this.eventRows = null), (this.shownEventRows = null), this.rowCoordCache.clear();
                                    }),
                                    (t.prototype.queryHit = function (t, n) {
                                        var i = e.prototype.queryHit.call(this, t, n);
                                        if (i) {
                                            var o = this.rowCoordCache.getVerticalIndex(n);
                                            if (null != o)
                                                return {
                                                    resourceId: this.shownEventRows[o].resource.id,
                                                    snap: i.snap,
                                                    component: this,
                                                    left: i.left,
                                                    right: i.right,
                                                    top: this.rowCoordCache.getTopOffset(o),
                                                    bottom: this.rowCoordCache.getBottomOffset(o),
                                                };
                                        }
                                    }),
                                    (t.prototype.getHitFootprint = function (t) {
                                        var n = e.prototype.getHitFootprint.call(this, t);
                                        return new a.default(n.unzonedRange, n.isAllDay, t.resourceId);
                                    }),
                                    (t.prototype.getHitEl = function (e) {
                                        return this.getSnapEl(e.snap);
                                    }),
                                    (t.prototype.renderResources = function (e) {
                                        for (var t = 0, n = e; t < n.length; t++) {
                                            var i = n[t];
                                            this.renderResource(i);
                                        }
                                    }),
                                    (t.prototype.unrenderResources = function () {
                                        for (var e in (this.rowHierarchy.removeElement(), this.rowHierarchy.removeChildren(), this.resourceRowHash)) this.removeChild(this.resourceRowHash[e]);
                                        this.resourceRowHash = {};
                                    }),
                                    (t.prototype.renderResource = function (e) {
                                        this.insertResource(e);
                                    }),
                                    (t.prototype.unrenderResource = function (e) {
                                        this.removeResource(e);
                                    }),
                                    (t.prototype.executeEventRender = function (e) {
                                        var t,
                                            n = {},
                                            i = {};
                                        for (var o in e) {
                                            var r = e[o],
                                                s = r.getEventDef(),
                                                a = s.getResourceIds();
                                            if (a.length)
                                                for (var l = 0, c = a; l < c.length; l++) {
                                                    (n[(t = c[l])] || (n[t] = {}))[o] = r;
                                                }
                                            else s.hasBgRendering() && (i[o] = r);
                                        }
                                        for (t in (this.eventRenderer.render(i), n)) {
                                            var u = n[t],
                                                d = this.getResourceRow(t);
                                            d && d.executeEventRender(u);
                                        }
                                    }),
                                    (t.prototype.renderBusinessHours = function (e) {
                                        if (((this.genericBiz = e), (this.isIndiBizRendered = !1), (this.isGenericBizRendered = !1), this.indiBizCnt)) {
                                            this.isIndiBizRendered = !0;
                                            for (var t = 0, n = this.getEventRows(); t < n.length; t++) {
                                                var i = n[t];
                                                i.renderBusinessHours(i.resource.businessHourGenerator || e);
                                            }
                                        } else (this.isGenericBizRendered = !0), this.businessHourRenderer.render(e);
                                    }),
                                    (t.prototype.updateIndiBiz = function () {
                                        ((this.indiBizCnt && this.isGenericBizRendered) || (!this.indiBizCnt && this.isIndiBizRendered)) && (this.unrenderBusinessHours(), this.renderBusinessHours(this.genericBiz));
                                    }),
                                    (t.prototype.insertResource = function (e, t) {
                                        var n = !t,
                                            i = new h.default(this, e);
                                        t || (e.parent ? (t = this.getResourceRow(e.parent.id)) : e.parentId && (t = this.getResourceRow(e.parentId))),
                                            t ? this.insertRowAsChild(i, t) : this.insertRow(i),
                                            this.addChild(i),
                                            (this.resourceRowHash[e.id] = i),
                                            e.businessHourGenerator && (this.indiBizCnt++, this.isIndiBizRendered && (i.businessHourGenerator = e.businessHourGenerator), this.updateIndiBiz());
                                        for (var o = 0, r = e.children; o < r.length; o++) {
                                            var s = r[o];
                                            this.insertResource(s, i);
                                        }
                                        return (
                                            n &&
                                                (function (e) {
                                                    for (; e; ) {
                                                        if (!e.isExpanded) return !1;
                                                        e = e.parent;
                                                    }
                                                    return !0;
                                                })(i.parent) &&
                                                i.renderSkeleton(),
                                            i
                                        );
                                    }),
                                    (t.prototype.removeResource = function (e) {
                                        var t = this.resourceRowHash[e.id];
                                        return t && (delete this.resourceRowHash[e.id], this.removeChild(t), t.removeFromParentAndDom(), e.businessHourGenerator && (this.indiBizCnt--, this.updateIndiBiz())), t;
                                    }),
                                    (t.prototype.insertRow = function (e, t, n) {
                                        if ((void 0 === t && (t = this.rowHierarchy), void 0 === n && (n = this.groupSpecs), n.length)) {
                                            var i = this.ensureResourceGroup(e, t, n[0]);
                                            i instanceof f.default ? this.insertRowAsChild(e, i) : this.insertRow(e, i, n.slice(1));
                                        } else this.insertRowAsChild(e, t);
                                    }),
                                    (t.prototype.insertRowAsChild = function (e, t) {
                                        return t.addChildRowNode(e, this.computeChildRowPosition(e, t));
                                    }),
                                    (t.prototype.computeChildRowPosition = function (e, t) {
                                        if (this.orderSpecs.length)
                                            for (var n = 0; n < t.children.length; n++) {
                                                var i = t.children[n];
                                                if (this.compareResources(i.resource || {}, e.resource || {}) > 0) return n;
                                            }
                                        return null;
                                    }),
                                    (t.prototype.compareResources = function (e, t) {
                                        return r.compareByFieldSpecs(e, t, this.orderSpecs);
                                    }),
                                    (t.prototype.ensureResourceGroup = function (e, t, n) {
                                        var i,
                                            o,
                                            s = (e.resource || {})[n.field],
                                            a = null;
                                        if (n.order)
                                            for (i = 0; i < t.children.length; i++) {
                                                o = t.children[i];
                                                var l = r.flexibleCompare(o.groupValue, s) * n.order;
                                                if (0 === l) {
                                                    a = o;
                                                    break;
                                                }
                                                if (l > 0) break;
                                            }
                                        else
                                            for (i = 0; i < t.children.length; i++)
                                                if ((o = t.children[i]).groupValue === s) {
                                                    a = o;
                                                    break;
                                                }
                                        return a || ((a = this.isVGrouping ? new m.default(this, n, s) : new f.default(this, n, s)), t.addChildRowNode(a, i), a.renderSkeleton()), a;
                                    }),
                                    (t.prototype.descendantAdded = function (e) {
                                        var t = this.isNesting,
                                            n = Boolean((this.nestingCnt += e.depth ? 1 : 0));
                                        t !== n && (this.el.toggleClass("fc-nested", n).toggleClass("fc-flat", !n), (this.isNesting = n));
                                    }),
                                    (t.prototype.descendantRemoved = function (e) {
                                        var t = this.isNesting,
                                            n = Boolean((this.nestingCnt -= e.depth ? 1 : 0));
                                        t !== n && (this.el.toggleClass("fc-nested", n).toggleClass("fc-flat", !n), (this.isNesting = n));
                                    }),
                                    (t.prototype.descendantShown = function (e) {
                                        (this.rowsNeedingHeightSync || (this.rowsNeedingHeightSync = [])).push(e);
                                    }),
                                    (t.prototype.descendantHidden = function (e) {
                                        this.rowsNeedingHeightSync || (this.rowsNeedingHeightSync = []);
                                    }),
                                    (t.prototype.syncRowHeights = function (e, t) {
                                        void 0 === e && (e = this.getVisibleRows()), void 0 === t && (t = !1);
                                        for (var n = 0, i = e; n < i.length; n++) {
                                            i[n].setTrInnerHeight("");
                                        }
                                        for (
                                            var o = e.map(function (e) {
                                                    var n = e.getMaxTrInnerHeight();
                                                    return t && (n += n % 2), n;
                                                }),
                                                r = 0;
                                            r < e.length;
                                            r++
                                        ) {
                                            e[r].setTrInnerHeight(o[r]);
                                        }
                                        if (!t) {
                                            var s = this.spreadsheet.tbodyEl.height(),
                                                a = this.timeBodyTbodyEl.height();
                                            Math.abs(s - a) > 1 && this.syncRowHeights(e, !0);
                                        }
                                    }),
                                    (t.prototype.getVisibleRows = function () {
                                        for (var e = [], t = 0, n = this.rowHierarchy.getRows(); t < n.length; t++) {
                                            var i = n[t];
                                            i.get("isInDom") && e.push(i);
                                        }
                                        return e;
                                    }),
                                    (t.prototype.getEventRows = function () {
                                        return this.rowHierarchy.getRows().filter(function (e) {
                                            return e instanceof g.default;
                                        });
                                    }),
                                    (t.prototype.getResourceRow = function (e) {
                                        return this.resourceRowHash[e];
                                    }),
                                    (t.prototype.renderSelectionFootprint = function (t) {
                                        if (!t.resourceId) return e.prototype.renderSelectionFootprint.call(this, t);
                                        var n = this.getResourceRow(t.resourceId);
                                        return n ? n.renderSelectionFootprint(t) : void 0;
                                    }),
                                    (t.prototype.renderEventResize = function (e, t, n) {
                                        var i = y(e);
                                        for (var o in i) {
                                            var r = i[o],
                                                s = this.getResourceRow(o);
                                            s.helperRenderer.renderEventDraggingFootprints(r, t, n);
                                            for (var a = 0, l = r; a < l.length; a++) {
                                                var c = l[a];
                                                s.renderHighlight(c.componentFootprint);
                                            }
                                        }
                                    }),
                                    (t.prototype.unrenderEventResize = function () {
                                        for (var e = 0, t = this.getEventRows(); e < t.length; e++) {
                                            var n = t[e];
                                            n.helperRenderer.unrender(), n.unrenderHighlight();
                                        }
                                    }),
                                    (t.prototype.renderDrag = function (e, t, n) {
                                        var i,
                                            o,
                                            r = y(e);
                                        if (t) {
                                            for (o in r) (i = r[o]), this.getResourceRow(o).helperRenderer.renderEventDraggingFootprints(i, t, n);
                                            return !0;
                                        }
                                        for (o in r)
                                            for (var s = 0, a = (i = r[o]); s < a.length; s++) {
                                                var l = a[s];
                                                this.getResourceRow(o).renderHighlight(l.componentFootprint);
                                            }
                                        return !1;
                                    }),
                                    (t.prototype.unrenderDrag = function () {
                                        for (var e = 0, t = this.getEventRows(); e < t.length; e++) {
                                            var n = t[e];
                                            n.helperRenderer.unrender(), n.unrenderHighlight();
                                        }
                                    }),
                                    t
                                );
                            })(c.default);
                        function y(e) {
                            for (var t = {}, n = 0, i = e; n < i.length; n++) {
                                var o = i[n];
                                (t[o.componentFootprint.resourceId] || (t[o.componentFootprint.resourceId] = [])).push(o);
                            }
                            return t;
                        }
                        (t.default = v), (v.prototype.eventRendererClass = d.default), l.default.mixInto(v);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = (function (e) {
                                function t(t, n, i) {
                                    var o = e.call(this, t, n, i) || this;
                                    return (o.rowspan = 0), o;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderRowspan = function () {
                                        var e,
                                            t = this.view.calendar.theme;
                                        this.rowspan
                                            ? (this.groupTd || (this.groupTd = o('<td class="' + t.getClass("widgetContent") + '"/>').append(this.renderGroupContentEl())),
                                              this.groupTd.attr("rowspan", this.rowspan),
                                              (e = this.getLeadingRow().getTr("spreadsheet")) !== this.leadingTr && (e && e.prepend(this.groupTd), (this.leadingTr = e)))
                                            : (this.groupTd && (this.groupTd.remove(), (this.groupTd = null)), (this.leadingTr = null));
                                    }),
                                    (t.prototype.descendantShown = function (t) {
                                        (this.rowspan += 1), this.renderRowspan(), e.prototype.descendantShown.call(this, t);
                                    }),
                                    (t.prototype.descendantHidden = function (t) {
                                        (this.rowspan -= 1), this.renderRowspan(), e.prototype.descendantHidden.call(this, t);
                                    }),
                                    t
                                );
                            })(n(32).default);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = (function (e) {
                                function t(t, n, i) {
                                    var o = e.call(this, t) || this;
                                    return (o.groupSpec = n), (o.groupValue = i), o;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.descendantRemoved = function (t) {
                                        e.prototype.descendantRemoved.call(this, t), this.children.length || this.removeFromParentAndDom();
                                    }),
                                    (t.prototype.renderGroupContentEl = function () {
                                        var e = o('<div class="fc-cell-content" />').append(this.renderGroupTextEl()),
                                            t = this.groupSpec.render;
                                        return "function" == typeof t && (e = t(e, this.groupValue) || e), e;
                                    }),
                                    (t.prototype.renderGroupTextEl = function () {
                                        var e = this.groupValue || "",
                                            t = this.groupSpec.text;
                                        return "function" == typeof t && (e = t(e) || e), o('<span class="fc-cell-text" />').text(e);
                                    }),
                                    t
                                );
                            })(n(18).default);
                        t.default = r;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(0),
                            r = n(18),
                            s = n(28),
                            a = n(17),
                            l = n(29),
                            c = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderEventSkeleton = function (e) {
                                        var t = this.view.calendar.theme;
                                        e.html('<td class="' + t.getClass("widgetContent") + '"> <div> <div class="fc-event-container" /> </div> </td>'),
                                            (this.segContainerEl = e.find(".fc-event-container")),
                                            (this.innerEl = this.bgSegContainerEl = e.find("td > div"));
                                    }),
                                    (t.prototype.rangeToCoords = function (e) {
                                        return this.view.rangeToCoords(e);
                                    }),
                                    (t.prototype.componentFootprintToSegs = function (e) {
                                        return this.view.componentFootprintToSegs(e);
                                    }),
                                    t
                                );
                            })(r.default);
                        (t.default = c),
                            (c.prototype.fillRendererClass = s.default),
                            (c.prototype.eventRendererClass = a.default),
                            (c.prototype.helperRendererClass = l.default),
                            (c.prototype.businessHourRendererClass = o.BusinessHourRenderer),
                            (c.prototype.hasOwnRow = !0);
                    },
                    ,
                    ,
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0);
                        n(37), n(48), n(50), n(51), n(53), n(54), n(55), n(56), n(57), n(58), n(59), n(60), n(61), n(62), n(63), n(64), n(65), n(66), n(67), n(68);
                        if (((i.schedulerVersion = "1.9.4"), 12 !== i.internalApiVersion))
                            throw new Error("v1.9.4 of FullCalendar Scheduler is incompatible with v" + i.version + " of the core.\nPlease see http://fullcalendar.io/support/ for more information.");
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(20),
                            r = n(22),
                            s = n(23),
                            a = n(14),
                            l = n(30);
                        (i.ResourceAgendaView = o.default), (i.ResourceBasicView = r.default), (i.ResourceMonthView = s.default), (i.TimelineView = a.default), (i.ResourceTimelineView = l.default);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(0),
                            s = n(21),
                            a = n(6),
                            l = (function (e) {
                                function t(t) {
                                    var n = e.call(this, t) || this;
                                    return (n.isResourceFootprintsEnabled = !0), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderDates = function (e) {
                                        (this.dateProfile = e), this.renderSlats();
                                    }),
                                    (t.prototype.renderResources = function (e) {
                                        this.registerResources(e), this.renderColumns(), this.headContainerEl && this.processHeadResourceEls(this.headContainerEl);
                                    }),
                                    (t.prototype.getHitFootprint = function (t) {
                                        var n = e.prototype.getHitFootprint.call(this, t);
                                        return new a.default(n.unzonedRange, n.isAllDay, this.getColResource(t.col).id);
                                    }),
                                    (t.prototype.componentFootprintToSegs = function (e) {
                                        for (var t = this.resourceCnt, n = [], i = 0, r = this.sliceRangeByTimes(e.unzonedRange); i < r.length; i++)
                                            for (var s = r[i], l = 0; l < t; l++) {
                                                var c = this.flattenedResources[l];
                                                if (!(e instanceof a.default) || e.resourceId === c.id) {
                                                    var u = o.extend({}, s);
                                                    (u.resource = c), (u.col = this.indicesToCol(l, s.dayIndex)), n.push(u);
                                                }
                                            }
                                        return n;
                                    }),
                                    t
                                );
                            })(r.TimeGrid);
                        (t.default = l), s.default.mixInto(l);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(0),
                            s = null,
                            a = (function (e) {
                                function t(t) {
                                    var n = e.call(this, t) || this;
                                    return (n.isScrolling = !1), (n.isTouching = !1), (n.isTouchedEver = !1), (n.isMoving = !1), (n.isTouchScrollEnabled = !0), (n.requestMovingEnd = r.debounce(n.reportMovingEnd, 500)), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.render = function () {
                                        e.prototype.render.call(this), this.canvas && (this.canvas.render(), this.canvas.el.appendTo(this.scrollEl)), this.bindHandlers();
                                    }),
                                    (t.prototype.destroy = function () {
                                        e.prototype.destroy.call(this), this.unbindHandlers();
                                    }),
                                    (t.prototype.disableTouchScroll = function () {
                                        (this.isTouchScrollEnabled = !1), this.bindPreventTouchScroll();
                                    }),
                                    (t.prototype.enableTouchScroll = function () {
                                        (this.isTouchScrollEnabled = !0), this.isTouching || this.unbindPreventTouchScroll();
                                    }),
                                    (t.prototype.bindPreventTouchScroll = function () {
                                        this.preventTouchScrollHandler || this.scrollEl.on("touchmove", (this.preventTouchScrollHandler = r.preventDefault));
                                    }),
                                    (t.prototype.unbindPreventTouchScroll = function () {
                                        this.preventTouchScrollHandler && (this.scrollEl.off("touchmove", this.preventTouchScrollHandler), (this.preventTouchScrollHandler = null));
                                    }),
                                    (t.prototype.bindHandlers = function () {
                                        return this.listenTo(this.scrollEl, { scroll: this.reportScroll, touchstart: this.reportTouchStart, touchend: this.reportTouchEnd });
                                    }),
                                    (t.prototype.unbindHandlers = function () {
                                        return this.stopListeningTo(this.scrollEl);
                                    }),
                                    (t.prototype.reportScroll = function () {
                                        this.isScrolling || this.reportScrollStart(), this.trigger("scroll"), (this.isMoving = !0), this.requestMovingEnd();
                                    }),
                                    (t.prototype.reportScrollStart = function () {
                                        this.isScrolling || ((this.isScrolling = !0), this.trigger("scrollStart", this.isTouching));
                                    }),
                                    (t.prototype.reportMovingEnd = function () {
                                        (this.isMoving = !1), this.isTouching || this.reportScrollEnd();
                                    }),
                                    (t.prototype.reportScrollEnd = function () {
                                        this.isScrolling && (this.trigger("scrollEnd"), (this.isScrolling = !1));
                                    }),
                                    (t.prototype.reportTouchStart = function () {
                                        (this.isTouching = !0), (this.isTouchedEver = !0);
                                    }),
                                    (t.prototype.reportTouchEnd = function () {
                                        this.isTouching && ((this.isTouching = !1), this.isTouchScrollEnabled && this.unbindPreventTouchScroll(), this.isMoving || this.reportScrollEnd());
                                    }),
                                    (t.prototype.getScrollLeft = function () {
                                        var e = this.scrollEl.css("direction"),
                                            t = this.scrollEl[0],
                                            n = t.scrollLeft;
                                        if ("rtl" === e)
                                            switch (s) {
                                                case "positive":
                                                    n = n + t.clientWidth - t.scrollWidth;
                                                    break;
                                                case "reverse":
                                                    n = -n;
                                            }
                                        return n;
                                    }),
                                    (t.prototype.setScrollLeft = function (e) {
                                        var t = this.scrollEl.css("direction"),
                                            n = this.scrollEl[0];
                                        if ("rtl" === t)
                                            switch (s) {
                                                case "positive":
                                                    e = e - n.clientWidth + n.scrollWidth;
                                                    break;
                                                case "reverse":
                                                    e = -e;
                                            }
                                        n.scrollLeft = e;
                                    }),
                                    (t.prototype.getScrollFromLeft = function () {
                                        var e = this.scrollEl.css("direction"),
                                            t = this.scrollEl[0],
                                            n = t.scrollLeft;
                                        if ("rtl" === e)
                                            switch (s) {
                                                case "negative":
                                                    n = n - t.clientWidth + t.scrollWidth;
                                                    break;
                                                case "reverse":
                                                    n = -n - t.clientWidth + t.scrollWidth;
                                            }
                                        return n;
                                    }),
                                    (t.prototype.getNativeScrollLeft = function () {
                                        return this.scrollEl[0].scrollLeft;
                                    }),
                                    (t.prototype.setNativeScrollLeft = function (e) {
                                        this.scrollEl[0].scrollLeft = e;
                                    }),
                                    t
                                );
                            })(r.Scroller);
                        (t.default = a),
                            r.EmitterMixin.mixInto(a),
                            r.ListenerMixin.mixInto(a),
                            o(function () {
                                var e, t, n;
                                (e = o('<div style=" position: absolute; top: -1000px; width: 1px; height: 1px; overflow: scroll; direction: rtl; font-size: 100px; ">A</div>').appendTo("body")),
                                    (t = e[0]),
                                    (n = t.scrollLeft > 0 ? "positive" : ((t.scrollLeft = 1), t.scrollLeft > 0 ? "reverse" : "negative")),
                                    e.remove(),
                                    (s = n);
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.segDragStart = function (t, n) {
                                        e.prototype.segDragStart.call(this, t, n), this.component.eventTitleFollower && this.component.eventTitleFollower.forceRelative();
                                    }),
                                    (t.prototype.segDragStop = function (t, n) {
                                        e.prototype.segDragStop.call(this, t, n), this.component.eventTitleFollower && this.component.eventTitleFollower.clearForce();
                                    }),
                                    t
                                );
                            })(n(0).EventDragging);
                        t.default = o;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.segResizeStart = function (t, n) {
                                        if ((e.prototype.segResizeStart.call(this, t, n), this.component.eventTitleFollower)) return this.component.eventTitleFollower.forceRelative();
                                    }),
                                    (t.prototype.segResizeStop = function (t, n) {
                                        if ((e.prototype.segResizeStop.call(this, t, n), this.component.eventTitleFollower)) return this.component.eventTitleFollower.clearForce();
                                    }),
                                    t
                                );
                            })(n(0).EventResizing);
                        t.default = o;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(15),
                            r = n(0),
                            s = 18,
                            a = 6,
                            l = 200;
                        r.MAX_TIMELINE_SLOTS = 1e3;
                        var c = [
                            { years: 1 },
                            { months: 1 },
                            { days: 1 },
                            { hours: 1 },
                            { minutes: 30 },
                            { minutes: 15 },
                            { minutes: 10 },
                            { minutes: 5 },
                            { minutes: 1 },
                            { seconds: 30 },
                            { seconds: 15 },
                            { seconds: 10 },
                            { seconds: 5 },
                            { seconds: 1 },
                            { milliseconds: 500 },
                            { milliseconds: 100 },
                            { milliseconds: 10 },
                            { milliseconds: 1 },
                        ];
                        function u(e, t) {
                            var n = e.opt(t);
                            if (null != n) {
                                var i = o.duration(n);
                                if (+i) return i;
                            }
                        }
                        function d(e) {
                            var t = e.dateProfile.currentUnzonedRange,
                                n = e.labelInterval;
                            if (!n) {
                                var i = void 0;
                                if (e.slotDuration) {
                                    for (var l = 0, u = c; l < u.length; l++) {
                                        i = u[l];
                                        var d = o.duration(i),
                                            p = r.divideDurationByDuration(d, e.slotDuration);
                                        if (r.isInt(p) && p <= a) {
                                            n = d;
                                            break;
                                        }
                                    }
                                    n || (n = e.slotDuration);
                                } else
                                    for (var h = 0, f = c; h < f.length; h++) {
                                        if (((i = f[h]), (n = o.duration(i)), r.divideRangeByDuration(t.getStart(), t.getEnd(), n) >= s)) break;
                                    }
                                e.labelInterval = n;
                            }
                            return n;
                        }
                        t.initScaleProps = function (e) {
                            (e.labelInterval = u(e, "slotLabelInterval")),
                                (e.slotDuration = u(e, "slotDuration")),
                                (function (e) {
                                    var t = e.dateProfile.currentUnzonedRange;
                                    if (e.labelInterval) {
                                        var n = r.divideRangeByDuration(t.getStart(), t.getEnd(), e.labelInterval);
                                        n > r.MAX_TIMELINE_SLOTS && (r.warn("slotLabelInterval results in too many cells"), (e.labelInterval = null));
                                    }
                                    if (e.slotDuration) {
                                        var i = r.divideRangeByDuration(t.getStart(), t.getEnd(), e.slotDuration);
                                        i > r.MAX_TIMELINE_SLOTS && (r.warn("slotDuration results in too many cells"), (e.slotDuration = null));
                                    }
                                    if (e.labelInterval && e.slotDuration) {
                                        var o = r.divideDurationByDuration(e.labelInterval, e.slotDuration);
                                        (!r.isInt(o) || o < 1) && (r.warn("slotLabelInterval must be a multiple of slotDuration"), (e.slotDuration = null));
                                    }
                                })(e),
                                d(e),
                                (function (e) {
                                    var t = e.dateProfile.currentUnzonedRange,
                                        n = e.slotDuration;
                                    if (!n) {
                                        for (var i = d(e), s = 0, u = c; s < u.length; s++) {
                                            var p = u[s],
                                                h = o.duration(p),
                                                f = r.divideDurationByDuration(i, h);
                                            if (r.isInt(f) && f > 1 && f <= a) {
                                                n = h;
                                                break;
                                            }
                                        }
                                        if (n) {
                                            var m = r.divideRangeByDuration(t.getStart(), t.getEnd(), n);
                                            m > l && (n = null);
                                        }
                                        n || (n = i), (e.slotDuration = n);
                                    }
                                })(e);
                            var t = e.opt("slotLabelFormat"),
                                n = i.type(t);
                            (e.headerFormats =
                                "array" === n
                                    ? t
                                    : "string" === n
                                    ? [t]
                                    : (function (e) {
                                          var t,
                                              n,
                                              i = e.labelInterval,
                                              o = r.computeGreatestUnit(i),
                                              s = e.opt("weekNumbers"),
                                              l = (t = n = null);
                                          switch (("week" !== o || s || (o = "day"), o)) {
                                              case "year":
                                                  l = "YYYY";
                                                  break;
                                              case "month":
                                                  e.currentRangeAs("years") > 1 && (l = "YYYY"), (t = "MMM");
                                                  break;
                                              case "week":
                                                  e.currentRangeAs("years") > 1 && (l = "YYYY"), (t = e.opt("shortWeekFormat"));
                                                  break;
                                              case "day":
                                                  e.currentRangeAs("years") > 1 ? (l = e.opt("monthYearFormat")) : e.currentRangeAs("months") > 1 && (l = "MMMM"), s && (t = e.opt("weekFormat")), (n = "dd D");
                                                  break;
                                              case "hour":
                                                  s && (l = e.opt("weekFormat")), e.currentRangeAs("days") > 1 && (t = e.opt("dayOfMonthFormat")), (n = e.opt("smallTimeFormat"));
                                                  break;
                                              case "minute":
                                                  i.asMinutes() / 60 >= a ? ((l = e.opt("hourFormat")), (t = "[:]mm")) : (l = e.opt("mediumTimeFormat"));
                                                  break;
                                              case "second":
                                                  i.asSeconds() / 60 >= a ? ((l = "LT"), (t = "[:]ss")) : (l = "LTS");
                                                  break;
                                              case "millisecond":
                                                  (l = "LTS"), (t = "[.]SSS");
                                          }
                                          return [].concat(l || [], t || [], n || []);
                                      })(e)),
                                (e.isTimeScale = r.durationHasTime(e.slotDuration));
                            var s = null;
                            if (!e.isTimeScale) {
                                var p = r.computeGreatestUnit(e.slotDuration);
                                /year|month|week/.test(p) && (s = p);
                            }
                            (e.largeUnit = s), (e.emphasizeWeeks = 1 === e.slotDuration.as("days") && e.currentRangeAs("weeks") >= 2 && !e.opt("businessHours"));
                            var h = e.opt("snapDuration");
                            (e.snapDuration = h ? o.duration(h) : e.slotDuration), (e.snapsPerSlot = r.divideDurationByDuration(e.slotDuration, e.snapDuration));
                        };
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(0),
                            r = n(24),
                            s = n(25),
                            a = n(16),
                            l = n(26),
                            c = n(31),
                            u = (function () {
                                function e(e) {
                                    (this.colGroupHtml = ""),
                                        (this.view = e),
                                        (this.isRTL = this.view.opt("isRTL")),
                                        (this.givenColWidths = this.colWidths = this.view.colSpecs.map(function (e) {
                                            return e.width;
                                        }));
                                }
                                return (
                                    (e.prototype.renderSkeleton = function () {
                                        var e = this.view.calendar.theme;
                                        (this.headScroller = new r.default({ overflowX: "clipped-scroll", overflowY: "hidden" })),
                                            (this.headScroller.canvas = new s.default()),
                                            this.headScroller.render(),
                                            this.headScroller.canvas.contentEl.html(this.renderHeadHtml()),
                                            this.headEl.append(this.headScroller.el),
                                            (this.bodyScroller = new r.default({ overflowY: "clipped-scroll" })),
                                            (this.bodyScroller.canvas = new s.default()),
                                            this.bodyScroller.render(),
                                            this.bodyScroller.canvas.contentEl.html('<div class="fc-rows"> <table class="' + e.getClass("tableGrid") + '">' + this.colGroupHtml + "<tbody/> </table> </div>"),
                                            (this.tbodyEl = this.bodyScroller.canvas.contentEl.find("tbody")),
                                            this.el.append(this.bodyScroller.el),
                                            (this.scrollJoiner = new a.default("horizontal", [this.headScroller, this.bodyScroller])),
                                            (this.headTable = this.headEl.find("table")),
                                            (this.headColEls = this.headEl.find("col")),
                                            (this.headCellEls = this.headScroller.canvas.contentEl.find("tr:last-child th")),
                                            (this.bodyColEls = this.el.find("col")),
                                            (this.bodyTable = this.el.find("table")),
                                            (this.colMinWidths = this.computeColMinWidths()),
                                            this.applyColWidths(),
                                            this.initColResizing();
                                    }),
                                    (e.prototype.renderHeadHtml = function () {
                                        for (var e = this.view.calendar.theme, t = this.view.colSpecs, n = '<table class="' + e.getClass("tableGrid") + '">', i = "<colgroup>", r = 0, s = t; r < s.length; r++) {
                                            (l = s[r]).isMain ? (i += '<col class="fc-main-col"/>') : (i += "<col/>");
                                        }
                                        (i += "</colgroup>"),
                                            (this.colGroupHtml = i),
                                            (n += i),
                                            (n += "<tbody>"),
                                            this.view.superHeaderText &&
                                                (n +=
                                                    '<tr class="fc-super"><th class="' +
                                                    e.getClass("widgetHeader") +
                                                    '" colspan="' +
                                                    t.length +
                                                    '"><div class="fc-cell-content"><span class="fc-cell-text">' +
                                                    o.htmlEscape(this.view.superHeaderText) +
                                                    "</span></div></th></tr>"),
                                            (n += "<tr>");
                                        for (var a = 0; a < t.length; a++) {
                                            var l = t[a],
                                                c = a === t.length - 1;
                                            n +=
                                                '<th class="' +
                                                e.getClass("widgetHeader") +
                                                '"><div><div class="fc-cell-content">' +
                                                (l.isMain ? '<span class="fc-expander-space"><span class="fc-icon"></span></span>' : "") +
                                                '<span class="fc-cell-text">' +
                                                o.htmlEscape(l.labelText || "") +
                                                "</span></div>" +
                                                (c ? "" : '<div class="fc-col-resizer"></div>') +
                                                "</div></th>";
                                        }
                                        return (n += "</tr>"), (n += "</tbody></table>");
                                    }),
                                    (e.prototype.initColResizing = function () {
                                        var e = this;
                                        this.headEl.find("th .fc-col-resizer").each(function (t, n) {
                                            (n = i(n)).on("mousedown", function (i) {
                                                e.colResizeMousedown(t, i, n);
                                            });
                                        });
                                    }),
                                    (e.prototype.colResizeMousedown = function (e, t, n) {
                                        var i = this,
                                            r = (this.colWidths = this.queryColWidths());
                                        r.pop(), r.push(null);
                                        var s = r[e],
                                            a = Math.min(this.colMinWidths[e], 30);
                                        new o.DragListener({
                                            dragStart: function () {
                                                n.addClass("fc-active");
                                            },
                                            drag: function (t, n) {
                                                var o = s + (i.isRTL ? -t : t);
                                                (o = Math.max(o, a)), (r[e] = o), i.applyColWidths();
                                            },
                                            dragEnd: function () {
                                                n.removeClass("fc-active");
                                            },
                                        }).startInteraction(t);
                                    }),
                                    (e.prototype.applyColWidths = function () {
                                        for (var e, t, n, i = this.colMinWidths, o = this.colWidths, r = !0, s = !1, a = 0, l = 0, c = o; l < c.length; l++) "number" == typeof (n = c[l]) ? (a += n) : ((r = !1), n && (s = !0));
                                        var u = s && !this.view.isHGrouping ? "auto" : "",
                                            d = o.map(function (e) {
                                                return null != e ? e : u;
                                            }),
                                            p = 0;
                                        for (t = 0; t < d.length; t++) p += "number" == typeof (e = d[t]) ? e : i[t];
                                        for (t = 0; t < d.length; t++) (e = d[t]), this.headColEls.eq(t).css("width", e), this.bodyColEls.eq(t).css("width", e);
                                        this.headScroller.canvas.setMinWidth(p), this.bodyScroller.canvas.setMinWidth(p), (this.tableMinWidth = p), (this.tableWidth = r ? a : void 0);
                                    }),
                                    (e.prototype.computeColMinWidths = function () {
                                        var e = this;
                                        return this.givenColWidths.map(function (t, n) {
                                            return "number" == typeof t ? t : parseInt(e.headColEls.eq(n).css("min-width"), 10) || 30;
                                        });
                                    }),
                                    (e.prototype.queryColWidths = function () {
                                        return this.headCellEls
                                            .map(function (e, t) {
                                                return i(t).outerWidth();
                                            })
                                            .get();
                                    }),
                                    (e.prototype.updateSize = function () {
                                        this.headScroller.updateSize(), this.bodyScroller.updateSize(), this.scrollJoiner.update(), this.updateCellFollower();
                                    }),
                                    (e.prototype.headHeight = function () {
                                        var e = this.headScroller.canvas.contentEl.find("table");
                                        return e.height.apply(e, arguments);
                                    }),
                                    (e.prototype.updateCellFollower = function () {
                                        this.cellFollower && this.cellFollower.clearSprites(), (this.cellFollower = new l.default(this.bodyScroller, !0)), (this.cellFollower.isHFollowing = !1), (this.cellFollower.isVFollowing = !0);
                                        for (var e = [], t = 0, n = this.view.rowHierarchy.getNodes(); t < n.length; t++) {
                                            var o = n[t];
                                            if (o instanceof c.default && o.groupTd) {
                                                var r = o.groupTd.find(".fc-cell-content");
                                                r.length && e.push(r[0]);
                                            }
                                        }
                                        this.cellFollower.setSpriteEls(i(e)), this.cellFollower.update();
                                    }),
                                    e
                                );
                            })();
                        t.default = u;
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 }),
                            (t.getOwnCells = function (e) {
                                return e.find("> td").filter(function (e, t) {
                                    return t.rowSpan <= 1;
                                });
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return i.__extends(t, e), (t.prototype.renderFgRanges = function (e) {}), (t.prototype.unrenderFgRanges = function () {}), t;
                            })(n(17).default);
                        t.default = o;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(0),
                            s = n(33),
                            a = (function (e) {
                                function t(t, n) {
                                    var i = e.call(this, t) || this;
                                    return (i.resource = n), (i.eventRenderer.designatedResource = i.resource), i;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderSkeleton = function () {
                                        e.prototype.renderSkeleton.call(this),
                                            this.updateExpandingEnabled(),
                                            this.eventsPayload && s.default.prototype.executeEventRender.call(this, this.eventsPayload),
                                            this.businessHourGenerator && this.view.dateProfile && s.default.prototype.renderBusinessHours.call(this, this.businessHourGenerator),
                                            this.view.publiclyTrigger("resourceRender", { context: this.resource, args: [this.resource, this.getTr("spreadsheet").find("> td"), this.getTr("event").find("> td"), this.view] });
                                    }),
                                    (t.prototype.removeElement = function () {
                                        e.prototype.removeElement.call(this),
                                            this.eventsPayload && s.default.prototype.executeEventUnrender.call(this, this.eventsPayload),
                                            this.businessHourGenerator && s.default.prototype.unrenderBusinessHours.call(this, this.businessHourGenerator);
                                    }),
                                    (t.prototype.renderEventSkeleton = function (t) {
                                        e.prototype.renderEventSkeleton.call(this, t), t.attr("data-resource-id", this.resource.id);
                                    }),
                                    (t.prototype.executeEventRender = function (t) {
                                        (this.eventsPayload = t), this.get("isInDom") && e.prototype.executeEventRender.call(this, this.eventsPayload);
                                    }),
                                    (t.prototype.executeEventUnrender = function () {
                                        e.prototype.executeEventUnrender.call(this), (this.eventsPayload = null);
                                    }),
                                    (t.prototype.renderBusinessHours = function (t) {
                                        (this.businessHourGenerator = t), this.get("isInDom") && e.prototype.renderBusinessHours.call(this, this.businessHourGenerator);
                                    }),
                                    (t.prototype.unrenderBusinessHours = function () {
                                        e.prototype.unrenderBusinessHours.call(this), (this.businessHourGenerator = null);
                                    }),
                                    (t.prototype.renderSpreadsheetSkeleton = function (e) {
                                        for (var t = this.view.calendar.theme, n = this.resource, i = 0, s = this.view.colSpecs; i < s.length; i++) {
                                            var a = s[i];
                                            if (!a.group) {
                                                var l = a.field ? n[a.field] || null : n,
                                                    c = "function" == typeof a.text ? a.text(n, l) : l,
                                                    u = o('<div class="fc-cell-content">' + (a.isMain ? this.renderGutterHtml() : "") + '<span class="fc-cell-text">' + (c ? r.htmlEscape(c) : "&nbsp;") + "</span></div>");
                                                "function" == typeof a.render && (u = a.render(n, u, l) || u);
                                                var d = o('<td class="' + t.getClass("widgetContent") + '"/>').append(u);
                                                a.isMain && d.wrapInner("<div/>"), e.append(d);
                                            }
                                        }
                                        e.attr("data-resource-id", n.id);
                                    }),
                                    (t.prototype.renderGutterHtml = function () {
                                        for (var e = "", t = this.depth, n = 0; n < t; n++) e += '<span class="fc-icon"/>';
                                        return (e += '<span class="fc-expander-space"><span class="fc-icon"></span></span>');
                                    }),
                                    t
                                );
                            })(s.default);
                        t.default = a;
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = (function (e) {
                                function t() {
                                    return (null !== e && e.apply(this, arguments)) || this;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.renderSkeleton = function () {
                                        e.prototype.renderSkeleton.call(this), this.updateExpandingEnabled();
                                    }),
                                    (t.prototype.renderSpreadsheetSkeleton = function (e) {
                                        var t = this.renderGroupContentEl();
                                        return t.prepend('<span class="fc-expander"><span class="fc-icon"></span></span>'), o('<td class="fc-divider" />').attr("colspan", this.view.colSpecs.length).append(o("<div/>").append(t)).appendTo(e);
                                    }),
                                    (t.prototype.renderEventSkeleton = function (e) {
                                        return e.append('<td class="fc-divider"> <div/> </td>');
                                    }),
                                    t
                                );
                            })(n(32).default);
                        (t.default = r), (r.prototype.hasOwnRow = !0);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(0),
                            r = n(19),
                            s = n(49),
                            a = n(6),
                            l = { constructed: o.Calendar.prototype.constructed, buildSelectFootprint: o.Calendar.prototype.buildSelectFootprint };
                        (o.Calendar.defaults.refetchResourcesOnNavigate = !1),
                            (o.Calendar.defaults.filterResourcesWithEvents = !1),
                            (o.Calendar.prototype.resourceManager = null),
                            (o.Calendar.prototype.constructed = function () {
                                l.constructed.apply(this, arguments), (this.resourceManager = new s.default(this));
                            }),
                            (o.Calendar.prototype.instantiateView = function (e) {
                                var t = this.viewSpecManager.getViewSpec(e),
                                    n = t.class;
                                return this.opt("resources") && !1 !== t.options.resources && (t.queryResourceClass ? (n = t.queryResourceClass(t) || n) : t.resourceClass && (n = t.resourceClass)), new n(this, t);
                            }),
                            (o.Calendar.prototype.getResources = function () {
                                return Array.prototype.slice.call(this.resourceManager.topLevelResources);
                            }),
                            (o.Calendar.prototype.addResource = function (e, t) {
                                var n = this;
                                void 0 === t && (t = !1),
                                    this.resourceManager.addResource(e).then(function (e) {
                                        if (t && n.view.scrollToResource) return n.view.scrollToResource(e);
                                    });
                            }),
                            (o.Calendar.prototype.removeResource = function (e) {
                                return this.resourceManager.removeResource(e);
                            }),
                            (o.Calendar.prototype.refetchResources = function () {
                                this.resourceManager.clear(), this.view.flash("initialResources");
                            }),
                            (o.Calendar.prototype.rerenderResources = function () {
                                this.resourceManager.resetCurrentResources();
                            }),
                            (o.Calendar.prototype.buildSelectFootprint = function (e, t, n) {
                                var i = l.buildSelectFootprint.apply(this, arguments);
                                return n ? new a.default(i.unzonedRange, i.isAllDay, n) : i;
                            }),
                            (o.Calendar.prototype.getResourceById = function (e) {
                                return this.resourceManager.getResourceById(e);
                            }),
                            (o.Calendar.prototype.getEventResourceId = function (e) {
                                return this.getEventResourceIds(e)[0];
                            }),
                            (o.Calendar.prototype.getEventResourceIds = function (e) {
                                var t = this.eventManager.getEventDefByUid(e._id);
                                return t ? t.getResourceIds() : [];
                            }),
                            (o.Calendar.prototype.setEventResourceId = function (e, t) {
                                this.setEventResourceIds(e, t ? [t] : []);
                            }),
                            (o.Calendar.prototype.setEventResourceIds = function (e, t) {
                                var n = this.eventManager.getEventDefByUid(e._id);
                                n &&
                                    (n.resourceIds = t.map(function (e) {
                                        return r.default.normalizeId(e);
                                    }));
                            }),
                            (o.Calendar.prototype.getResourceEvents = function (e) {
                                var t = this,
                                    n = "object" == typeof e ? e : this.getResourceById(e);
                                return n
                                    ? this.clientEvents(function (e) {
                                          return -1 !== i.inArray(n.id, t.getEventResourceIds(e));
                                      })
                                    : [];
                            }),
                            (o.Calendar.prototype.getEventResource = function (e) {
                                return this.getEventResources(e)[0];
                            }),
                            (o.Calendar.prototype.getEventResources = function (e) {
                                var t = "object" == typeof e ? e : this.clientEvents(e)[0],
                                    n = [];
                                if (t)
                                    for (var i = 0, o = this.getEventResourceIds(t); i < o.length; i++) {
                                        var r = o[i],
                                            s = this.getResourceById(r);
                                        s && n.push(s);
                                    }
                                return n;
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(1),
                            o = n(2),
                            r = n(0),
                            s = (function (e) {
                                function t(t) {
                                    var n = e.call(this) || this;
                                    return (n.fetchId = 0), (n.calendar = t), n.initializeCache(), n;
                                }
                                return (
                                    i.__extends(t, e),
                                    (t.prototype.getResources = function (e, t) {
                                        var n = (!e && !this.currentStart) || (e && this.currentStart && e.isSame(this.currentStart) && t.isSame(this.currentEnd));
                                        return this.fetching && n ? this.fetching : this.fetchResources(e, t);
                                    }),
                                    (t.prototype.fetchResources = function (e, t) {
                                        var n = this,
                                            i = (this.fetchId += 1);
                                        return (this.fetching = r.Promise.construct(function (o, r) {
                                            n.fetchResourceInputs(
                                                function (e) {
                                                    return i === n.fetchId ? (n.setResources(e), o(n.topLevelResources)) : r();
                                                },
                                                e,
                                                t
                                            );
                                        }));
                                    }),
                                    (t.prototype.fetchResourceInputs = function (e, n, i) {
                                        var r = this,
                                            s = this.calendar,
                                            a = s.opt("resources"),
                                            l = s.opt("timezone");
                                        switch (("string" === o.type(a) && (a = { url: a }), o.type(a))) {
                                            case "function":
                                                this.calendar.pushLoading(),
                                                    a(
                                                        function (t) {
                                                            r.calendar.popLoading(), e(t);
                                                        },
                                                        n,
                                                        i,
                                                        s.opt("timezone")
                                                    );
                                                break;
                                            case "object":
                                                s.pushLoading();
                                                var c = {};
                                                n && i && ((c[s.opt("startParam")] = n.format()), (c[s.opt("endParam")] = i.format()), l && "local" !== l && (c[s.opt("timezoneParam")] = l)),
                                                    o.ajax(o.extend({ data: c }, t.ajaxDefaults, a)).then(function (t) {
                                                        s.popLoading(), e(t);
                                                    });
                                                break;
                                            case "array":
                                                e(a);
                                                break;
                                            default:
                                                e([]);
                                        }
                                    }),
                                    (t.prototype.getResourceById = function (e) {
                                        return this.resourcesById[e];
                                    }),
                                    (t.prototype.getFlatResources = function () {
                                        var e = [];
                                        for (var t in this.resourcesById) e.push(this.resourcesById[t]);
                                        return e;
                                    }),
                                    (t.prototype.initializeCache = function () {
                                        (this.topLevelResources = []), (this.resourcesById = {});
                                    }),
                                    (t.prototype.setResources = function (e) {
                                        var t,
                                            n = this,
                                            i = Boolean(this.topLevelResources);
                                        this.initializeCache();
                                        for (
                                            var o = [],
                                                r = 0,
                                                s = e.map(function (e) {
                                                    return n.buildResource(e);
                                                });
                                            r < s.length;
                                            r++
                                        )
                                            (t = s[r]), this.addResourceToIndex(t) && o.push(t);
                                        for (var a = 0, l = o; a < l.length; a++) (t = l[a]), this.addResourceToTree(t);
                                        i ? this.trigger("reset", this.topLevelResources) : this.trigger("set", this.topLevelResources), this.calendar.publiclyTrigger("resourcesSet", [this.topLevelResources]);
                                    }),
                                    (t.prototype.resetCurrentResources = function () {
                                        this.topLevelResources && this.trigger("reset", this.topLevelResources);
                                    }),
                                    (t.prototype.clear = function () {
                                        (this.topLevelResources = null), (this.fetching = null);
                                    }),
                                    (t.prototype.addResource = function (e) {
                                        var t = this;
                                        return this.fetching
                                            ? this.fetching.then(function () {
                                                  var n = t.buildResource(e);
                                                  return !!t.addResourceToIndex(n) && (t.addResourceToTree(n), t.trigger("add", n, t.topLevelResources), n);
                                              })
                                            : r.Promise.reject();
                                    }),
                                    (t.prototype.addResourceToIndex = function (e) {
                                        if (this.resourcesById[e.id]) return !1;
                                        this.resourcesById[e.id] = e;
                                        for (var t = 0, n = e.children; t < n.length; t++) {
                                            var i = n[t];
                                            this.addResourceToIndex(i);
                                        }
                                        return !0;
                                    }),
                                    (t.prototype.addResourceToTree = function (e) {
                                        if (!e.parent) {
                                            var t = void 0,
                                                n = String(null != e.parentId ? e.parentId : "");
                                            if (n) {
                                                var i = this.resourcesById[n];
                                                if (!i) return !1;
                                                (e.parent = i), (t = i.children);
                                            } else t = this.topLevelResources;
                                            t.push(e);
                                        }
                                        return !0;
                                    }),
                                    (t.prototype.removeResource = function (e) {
                                        var t = this,
                                            n = "object" == typeof e ? e.id : e;
                                        return this.fetching
                                            ? this.fetching.then(function () {
                                                  var e = t.removeResourceFromIndex(n);
                                                  return e && (t.removeResourceFromTree(e), t.trigger("remove", e, t.topLevelResources)), e;
                                              })
                                            : r.Promise.reject();
                                    }),
                                    (t.prototype.removeResourceFromIndex = function (e) {
                                        var t = this.resourcesById[e];
                                        if (t) {
                                            delete this.resourcesById[e];
                                            for (var n = 0, i = t.children; n < i.length; n++) {
                                                var o = i[n];
                                                this.removeResourceFromIndex(o.id);
                                            }
                                            return t;
                                        }
                                        return !1;
                                    }),
                                    (t.prototype.removeResourceFromTree = function (e, t) {
                                        void 0 === t && (t = this.topLevelResources);
                                        for (var n = 0; n < t.length; n++) {
                                            var i = t[n];
                                            if (i === e) return (e.parent = null), t.splice(n, 1), !0;
                                            if (this.removeResourceFromTree(e, i.children)) return !0;
                                        }
                                        return !1;
                                    }),
                                    (t.prototype.buildResource = function (e) {
                                        var n = this,
                                            i = o.extend({}, e),
                                            s = e.eventClassName;
                                        return (
                                            (i.id = String(null != e.id ? e.id : "_fc" + t.resourceGuid++)),
                                            (i.eventClassName = (function () {
                                                switch (o.type(s)) {
                                                    case "string":
                                                        return s.split(/\s+/);
                                                    case "array":
                                                        return s;
                                                    default:
                                                        return [];
                                                }
                                            })()),
                                            e.businessHours && (i.businessHourGenerator = new r.BusinessHourGenerator(e.businessHours, this.calendar)),
                                            (i.children = (e.children || []).map(function (e) {
                                                var t = n.buildResource(e);
                                                return (t.parent = i), t;
                                            })),
                                            i
                                        );
                                    }),
                                    (t.resourceGuid = 1),
                                    (t.ajaxDefaults = { dataType: "json", cache: !1 }),
                                    t
                                );
                            })(r.Class);
                        (t.default = s), r.EmitterMixin.mixInto(s);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(0),
                            r = n(19),
                            s = n(6),
                            a = {
                                getPeerEventInstances: o.Constraints.prototype.getPeerEventInstances,
                                isFootprintAllowed: o.Constraints.prototype.isFootprintAllowed,
                                buildCurrentBusinessFootprints: o.Constraints.prototype.buildCurrentBusinessFootprints,
                                footprintContainsFootprint: o.Constraints.prototype.footprintContainsFootprint,
                                footprintsIntersect: o.Constraints.prototype.footprintsIntersect,
                                eventRangeToEventFootprints: o.Constraints.prototype.eventRangeToEventFootprints,
                                parseFootprints: o.Constraints.prototype.parseFootprints,
                            };
                        (o.Constraints.prototype.getPeerEventInstances = function (e) {
                            var t = e.getResourceIds(),
                                n = a.getPeerEventInstances.apply(this, arguments);
                            return t.length
                                ? n.filter(function (e) {
                                      if (!e.def.resourceIds.length) return !0;
                                      for (var n = 0, i = t; n < i.length; n++) {
                                          var o = i[n];
                                          if (e.def.hasResourceId(o)) return !0;
                                      }
                                      return !1;
                                  })
                                : n;
                        }),
                            (o.Constraints.prototype.isFootprintAllowed = function (e, t, n, o, l) {
                                if ("object" == typeof n) {
                                    var c = r.default.extractIds(n, this);
                                    if (c.length && (!(e instanceof s.default) || -1 === i.inArray(e.resourceId, c))) return !1;
                                }
                                return a.isFootprintAllowed.apply(this, arguments);
                            }),
                            (o.Constraints.prototype.buildCurrentBusinessFootprints = function (e) {
                                for (var t = this._calendar.resourceManager.getFlatResources(), n = !1, i = 0, o = t; i < o.length; i++) {
                                    (h = o[i]).businessHourGenerator && (n = !0);
                                }
                                if (n) {
                                    for (var r = this._calendar.view, l = r.get("businessHourGenerator"), c = r.dateProfile.activeUnzonedRange, u = [], d = 0, p = t; d < p.length; d++) {
                                        var h,
                                            f = ((h = p[d]).businessHourGenerator || l).buildEventInstanceGroup(e, c);
                                        if (f)
                                            for (var m = 0, g = f.getAllEventRanges(); m < g.length; m++) {
                                                var v = g[m];
                                                u.push(new s.default(v.unzonedRange, e, h.id));
                                            }
                                    }
                                    return u;
                                }
                                return a.buildCurrentBusinessFootprints.apply(this, arguments);
                            }),
                            (o.Constraints.prototype.footprintContainsFootprint = function (e, t) {
                                return (!(e instanceof s.default) || (t instanceof s.default && t.resourceId === e.resourceId)) && a.footprintContainsFootprint.apply(this, arguments);
                            }),
                            (o.Constraints.prototype.footprintsIntersect = function (e, t) {
                                return !(e instanceof s.default && t instanceof s.default && e.resourceId !== t.resourceId) && a.footprintsIntersect.apply(this, arguments);
                            }),
                            (o.Constraints.prototype.eventRangeToEventFootprints = function (e) {
                                var t = e.eventDef,
                                    n = t.getResourceIds();
                                return n.length
                                    ? n.map(function (n) {
                                          return new o.EventFootprint(new s.default(e.unzonedRange, t.isAllDay(), n), t, e.eventInstance);
                                      })
                                    : a.eventRangeToEventFootprints.apply(this, arguments);
                            }),
                            (o.Constraints.prototype.parseFootprints = function (e) {
                                var t = a.parseFootprints.apply(this, arguments),
                                    n = e.resourceIds || [];
                                if ((e.resourceId && (n = [e.resourceId].concat(n)), n.length)) {
                                    for (var i = [], o = 0, r = n; o < r.length; o++)
                                        for (var l = r[o], c = 0, u = t; c < u.length; c++) {
                                            var d = u[c];
                                            i.push(new s.default(d.unzonedRange, d.isAllDay, l));
                                        }
                                    return i;
                                }
                                return t;
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(52),
                            r = { setElement: i.View.prototype.setElement, removeElement: i.View.prototype.removeElement, triggerViewRender: i.View.prototype.triggerViewRender };
                        (i.View.prototype.canHandleSpecificResources = !1),
                            (i.View.prototype.setElement = function () {
                                r.setElement.apply(this, arguments), this.watchResources();
                            }),
                            (i.View.prototype.removeElement = function () {
                                this.unwatchResources(), r.removeElement.apply(this, arguments);
                            }),
                            (i.View.prototype.triggerViewRender = function () {
                                o.processLicenseKey(this.opt("schedulerLicenseKey"), this.el), r.triggerViewRender.apply(this, arguments);
                            }),
                            (i.View.prototype.watchResources = function () {
                                var e = this,
                                    t = [],
                                    n = ["initialResources"];
                                this.opt("refetchResourcesOnNavigate") && t.push("dateProfile"),
                                    this.opt("filterResourcesWithEvents") && n.push("currentEvents"),
                                    this.watch("initialResources", t, function (t) {
                                        return e.getInitialResources(t.dateProfile);
                                    }),
                                    this.watch(
                                        "bindingResources",
                                        n,
                                        function (t) {
                                            e.bindResourceChanges(t.currentEvents), e.setResources(t.initialResources, t.currentEvents);
                                        },
                                        function () {
                                            e.unbindResourceChanges(), e.unsetResources();
                                        }
                                    );
                            }),
                            (i.View.prototype.unwatchResources = function () {
                                this.unwatch("initialResources"), this.unwatch("bindingResources");
                            }),
                            (i.View.prototype.getInitialResources = function (e) {
                                var t = this.calendar;
                                return e ? t.resourceManager.getResources(t.msToMoment(e.activeUnzonedRange.startMs, e.isRangeAllDay), t.msToMoment(e.activeUnzonedRange.endMs, e.isRangeAllDay)) : t.resourceManager.getResources();
                            }),
                            (i.View.prototype.bindResourceChanges = function (e) {
                                var t = this;
                                this.listenTo(this.calendar.resourceManager, {
                                    set: function (n) {
                                        t.setResources(n, e);
                                    },
                                    unset: function () {
                                        t.unsetResources();
                                    },
                                    reset: function (n) {
                                        t.resetResources(n, e);
                                    },
                                    add: function (n, i) {
                                        t.addResource(n, i, e);
                                    },
                                    remove: function (n, i) {
                                        t.removeResource(n, i, e);
                                    },
                                });
                            }),
                            (i.View.prototype.unbindResourceChanges = function () {
                                this.stopListeningTo(this.calendar.resourceManager);
                            }),
                            i.View.watch(
                                "displayingEvents",
                                ["displayingDates", "hasEvents", "currentResources"],
                                function (e) {
                                    this.requestEventsRender(this.get("currentEvents"));
                                },
                                function () {
                                    this.requestEventsUnrender();
                                }
                            ),
                            (i.View.prototype.setResources = function (e, t) {
                                t && (e = this.filterResourcesWithEvents(e, t)), this.set("currentResources", e), this.set("hasResources", !0);
                            }),
                            (i.View.prototype.unsetResources = function () {
                                this.unset("currentResources"), this.unset("hasResources");
                            }),
                            (i.View.prototype.resetResources = function (e, t) {
                                this.startBatchRender(), this.unsetResources(), this.setResources(e, t), this.stopBatchRender();
                            }),
                            (i.View.prototype.addResource = function (e, t, n) {
                                if (this.canHandleSpecificResources) {
                                    if (n) this.filterResourcesWithEvents([e], n).length || (e = null);
                                    e && (this.set("currentResources", t), this.handleResourceAdd(e));
                                } else this.resetResources(t, n);
                            }),
                            (i.View.prototype.removeResource = function (e, t, n) {
                                this.canHandleSpecificResources ? (this.set("currentResources", t), this.handleResourceRemove(e)) : this.resetResources(t, n);
                            }),
                            (i.View.prototype.handleResourceAdd = function (e) {}),
                            (i.View.prototype.handleResourceRemove = function (e) {}),
                            (i.View.prototype.filterResourcesWithEvents = function (e, t) {
                                for (var n = {}, i = 0, o = this.eventsPayloadToRanges(t); i < o.length; i++)
                                    for (var r = 0, s = o[i].eventDef.getResourceIds(); r < s.length; r++) {
                                        n[s[r]] = !0;
                                    }
                                return (function e(t, n) {
                                    var i = [];
                                    for (var o = 0, r = t; o < r.length; o++) {
                                        var s = r[o];
                                        if (s.children.length) {
                                            var a = e(s.children, n);
                                            if (a.length || n[s.id]) {
                                                var l = Object.create(s);
                                                (l.children = a), i.push(l);
                                            }
                                        } else n[s.id] && i.push(s);
                                    }
                                    return i;
                                })(e, n);
                            }),
                            (i.View.prototype.eventsPayloadToRanges = function (e) {
                                var t = this._getDateProfile(),
                                    n = [];
                                for (var i in e) {
                                    var o = e[i].sliceRenderRanges(t.activeUnzonedRange);
                                    n.push.apply(n, o || []);
                                }
                                return n;
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(15),
                            r = n(0),
                            s = "2018-03-28",
                            a = { years: 1, weeks: 1 },
                            l = "http://fullcalendar.io/scheduler/license/",
                            c = ["GPL-My-Project-Is-Open-Source", "CC-Attribution-NonCommercial-NoDerivatives"];
                        function u(e) {
                            if (-1 !== i.inArray(e, c)) return !0;
                            var t = (e || "").match(/^(\d+)\-fcs\-(\d+)$/);
                            if (t && 10 === t[1].length) {
                                var n = o.utc(1e3 * parseInt(t[2], 10)),
                                    l = o.utc(r.mockSchedulerReleaseDate || s);
                                if (l.isValid()) {
                                    var u = l.clone().subtract(a);
                                    if (n.isAfter(u)) return !0;
                                }
                            }
                            return !1;
                        }
                        function d(e) {
                            return /\w+\:\/\/fullcalendar\.io\/|\/demos\/[\w-]+\.html$/.test(e);
                        }
                        function p(e, t) {
                            return t.append(i('<div class="fc-license-message" />').html(e));
                        }
                        function h(e) {
                            return e.find(".fc-license-message").length >= 1;
                        }
                        (t.processLicenseKey = function (e, t) {
                            if (!d(window.location.href) && !u(e) && !h(t)) return p('Please use a valid license key. <a href="' + l + '">More Info</a>', t);
                        }),
                            (t.isValidKey = u),
                            (t.isImmuneUrl = d),
                            (t.renderingWarningInContainer = p),
                            (t.detectWarningInContainer = h);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(6),
                            r = { eventRangeToEventFootprints: i.DateComponent.prototype.eventRangeToEventFootprints };
                        (i.DateComponent.prototype.isResourceFootprintsEnabled = !1),
                            (i.DateComponent.prototype.eventRangeToEventFootprints = function (e) {
                                if (this.isResourceFootprintsEnabled) {
                                    var t = e.eventDef,
                                        n = t.getResourceIds();
                                    return n.length
                                        ? n.map(function (n) {
                                              return new i.EventFootprint(new o.default(e.unzonedRange, t.isAllDay(), n), t, e.eventInstance);
                                          })
                                        : t.hasBgRendering()
                                        ? r.eventRangeToEventFootprints.apply(this, arguments)
                                        : [];
                                }
                                return r.eventRangeToEventFootprints.apply(this, arguments);
                            }),
                            (i.DateComponent.prototype.renderResources = function (e) {
                                this.callChildren("renderResources", arguments);
                            }),
                            (i.DateComponent.prototype.unrenderResources = function () {
                                this.callChildren("unrenderResources", arguments);
                            }),
                            (i.DateComponent.prototype.renderResource = function (e) {
                                this.callChildren("renderResource", arguments);
                            }),
                            (i.DateComponent.prototype.unrenderResource = function (e) {
                                this.callChildren("unrenderResource", arguments);
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = { isEventDefDraggable: i.InteractiveDateComponent.prototype.isEventDefDraggable };
                        (i.InteractiveDateComponent.prototype.allowCrossResource = !0),
                            (i.InteractiveDateComponent.prototype.isEventDefDraggable = function (e) {
                                return this.isEventDefResourceEditable(e) || o.isEventDefDraggable.call(this, e);
                            }),
                            (i.InteractiveDateComponent.prototype.isEventDefResourceEditable = function (e) {
                                var t = e.resourceEditable;
                                return null == t && null == (t = (e.source || {}).resourceEditable) && null == (t = this.opt("eventResourceEditable")) && (t = this.isEventDefGenerallyEditable(e)), t;
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = { getFallbackStylingObjs: i.EventRenderer.prototype.getFallbackStylingObjs };
                        function r(e, t) {
                            return e.view.calendar.resourceManager.getResourceById(t);
                        }
                        (i.EventRenderer.prototype.designatedResource = null),
                            (i.EventRenderer.prototype.currentResource = null),
                            (i.EventRenderer.prototype.beforeFgSegHtml = function (e) {
                                var t = e.footprint.componentFootprint.resourceId;
                                this.designatedResource ? (this.currentResource = this.designatedResource) : (this.currentResource = t ? r(this, t) : null);
                            }),
                            (i.EventRenderer.prototype.getFallbackStylingObjs = function (e) {
                                var t = o.getFallbackStylingObjs.apply(this, arguments);
                                if (this.currentResource) t.unshift(this.currentResource);
                                else {
                                    for (var n = [], i = 0, s = e.getResourceIds(); i < s.length; i++) {
                                        var a = r(this, s[i]);
                                        a && n.push(a);
                                    }
                                    t = n.concat(t);
                                }
                                return t;
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(6),
                            r = { computeSelectionFootprint: i.DateSelecting.prototype.computeSelectionFootprint };
                        i.DateSelecting.prototype.computeSelectionFootprint = function (e, t) {
                            if (e.resourceId && t.resourceId && e.resourceId !== t.resourceId && !this.component.allowCrossResource) return null;
                            var n = r.computeSelectionFootprint.apply(this, arguments);
                            return e.resourceId && (n = new o.default(n.unzonedRange, n.isAllDay, e.resourceId)), n;
                        };
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = { computeEventDropMutation: i.EventDragging.prototype.computeEventDropMutation };
                        i.EventDragging.prototype.computeEventDropMutation = function (e, t, n) {
                            var r = this.component.isEventDefStartEditable(n);
                            if (e.resourceId && t.resourceId && e.resourceId !== t.resourceId && this.component.isEventDefResourceEditable(n)) {
                                var s = new i.EventDefMutation();
                                return (s.oldResourceId = e.resourceId), (s.newResourceId = t.resourceId), r && s.setDateMutation(this.computeEventDateMutation(e, t)), s;
                            }
                            if (r) return o.computeEventDropMutation.apply(this, arguments);
                        };
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = { computeEventStartResizeMutation: i.EventResizing.prototype.computeEventStartResizeMutation, computeEventEndResizeMutation: i.EventResizing.prototype.computeEventEndResizeMutation };
                        (i.EventResizing.prototype.computeEventStartResizeMutation = function (e, t, n) {
                            return e.resourceId && t.resourceId && e.resourceId !== t.resourceId && !this.component.allowCrossResource ? null : o.computeEventStartResizeMutation.apply(this, arguments);
                        }),
                            (i.EventResizing.prototype.computeEventEndResizeMutation = function (e, t, n) {
                                return e.resourceId && t.resourceId && e.resourceId !== t.resourceId && !this.component.allowCrossResource ? null : o.computeEventEndResizeMutation.apply(this, arguments);
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = { computeExternalDrop: i.ExternalDropping.prototype.computeExternalDrop };
                        i.ExternalDropping.prototype.computeExternalDrop = function (e, t) {
                            var n = o.computeExternalDrop.apply(this, arguments);
                            return e.resourceId && n.addResourceId(e.resourceId), n;
                        };
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 }), (n(0).EventSource.prototype.standardPropMap.resourceEditable = !0);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(2),
                            o = n(0),
                            r = n(19),
                            s = { applyMiscProps: o.EventDef.prototype.applyMiscProps, clone: o.EventDef.prototype.clone, toLegacy: o.EventDef.prototype.toLegacy };
                        o.EventDef.defineStandardProps({ resourceEditable: !0 }),
                            (o.EventDef.prototype.resourceIds = null),
                            (o.EventDef.prototype.resourceEditable = null),
                            (o.EventDef.prototype.applyMiscProps = function (e) {
                                (e = i.extend({}, e)), (this.resourceIds = r.default.extractIds(e, this.source.calendar)), delete e.resourceId, delete e.resourceIds, s.applyMiscProps.apply(this, arguments);
                            }),
                            (o.EventDef.prototype.hasResourceId = function (e) {
                                return -1 !== i.inArray(e, this.resourceIds);
                            }),
                            (o.EventDef.prototype.removeResourceId = function (e) {
                                o.removeExact(this.resourceIds, e);
                            }),
                            (o.EventDef.prototype.addResourceId = function (e) {
                                this.hasResourceId(e) || this.resourceIds.push(e);
                            }),
                            (o.EventDef.prototype.getResourceIds = function () {
                                return this.resourceIds ? this.resourceIds.slice() : [];
                            }),
                            (o.EventDef.prototype.clone = function () {
                                var e = s.clone.apply(this, arguments);
                                return (e.resourceIds = this.getResourceIds()), e;
                            }),
                            (o.EventDef.prototype.toLegacy = function () {
                                var e = s.toLegacy.apply(this, arguments),
                                    t = this.getResourceIds();
                                return (e.resourceId = 1 === t.length ? t[0] : null), (e.resourceIds = t.length > 1 ? t : null), null != this.resourceEditable && (e.resourceEditable = this.resourceEditable), e;
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = i.EventDefMutation.prototype.mutateSingle;
                        (i.EventDefMutation.prototype.oldResourceId = null),
                            (i.EventDefMutation.prototype.newResourceId = null),
                            (i.EventDefMutation.prototype.mutateSingle = function (e) {
                                var t = o.apply(this, arguments),
                                    n = null;
                                return (
                                    this.oldResourceId && e.hasResourceId(this.oldResourceId) && ((n = e.getResourceIds()), e.removeResourceId(this.oldResourceId), e.addResourceId(this.newResourceId)),
                                    function () {
                                        t(), n && (e.resourceIds = n);
                                    }
                                );
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(14);
                        i.defineView("timeline", { class: o.default, defaults: { eventResizableFromStart: !0 } }),
                            i.defineView("timelineDay", { type: "timeline", duration: { days: 1 } }),
                            i.defineView("timelineWeek", { type: "timeline", duration: { weeks: 1 } }),
                            i.defineView("timelineMonth", { type: "timeline", duration: { months: 1 } }),
                            i.defineView("timelineYear", { type: "timeline", duration: { years: 1 } });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(30);
                        (i.getViewConfig("timeline").resourceClass = o.default), (i.Calendar.defaults.resourcesInitiallyExpanded = !0);
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(22),
                            r = n(23);
                        (i.getViewConfig("basic").queryResourceClass = function (e) {
                            var t = e.options.groupByResource || e.options.groupByDateAndResource,
                                n = !1;
                            if ((null != t ? (n = t) : e.duration && (n = 1 === e.duration.as("days")), n)) return o.default;
                        }),
                            (i.getViewConfig("month").queryResourceClass = function (e) {
                                if (e.options.groupByResource || e.options.groupByDateAndResource) return r.default;
                            });
                    },
                    function (e, t, n) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                        var i = n(0),
                            o = n(20);
                        i.getViewConfig("agenda").queryResourceClass = function (e) {
                            var t = e.options.groupByResource || e.options.groupByDateAndResource,
                                n = !1;
                            if ((null != t ? (n = t) : e.duration && (n = 1 === e.duration.as("days")), n)) return o.default;
                        };
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                    },
                    function (e, t) {
                        Object.defineProperty(t, "__esModule", { value: !0 });
                    },
                ]);
            }),
            (e.exports = i(n(973), n(937), n(0)));
    },
    993: function (e, t, n) {
        "use strict";
        var i = n(994),
            o = n.n(i);
        n.d(t, "a", function () {
            return o.a;
        });
    },
    994: function (e, t, n) {
        var i = n(685)(n(995), n(1007), !1, null, null, null);
        e.exports = i.exports;
    },
    995: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", { value: !0 });
        var i = n(996),
            o = n.n(i),
            r = n(1006),
            s = n.n(r),
            a = n(973),
            l = (n.n(a), n(937)),
            c = n.n(l);
        t.default = {
            props: {
                events: {
                    default: function () {
                        return [];
                    },
                },
                eventSources: {
                    default: function () {
                        return [];
                    },
                },
                editable: {
                    default: function () {
                        return !0;
                    },
                },
                selectable: {
                    default: function () {
                        return !0;
                    },
                },
                selectHelper: {
                    default: function () {
                        return !0;
                    },
                },
                header: {
                    default: function () {
                        return { left: "prev,next today", center: "title", right: "month,agendaWeek,agendaDay" };
                    },
                },
                defaultView: {
                    default: function () {
                        return "agendaWeek";
                    },
                },
                sync: {
                    default: function () {
                        return !1;
                    },
                },
                config: {
                    type: Object,
                    default: function () {
                        return {};
                    },
                },
            },
            computed: {
                defaultConfig: function () {
                    var e = this;
                    return {
                        header: this.header,
                        defaultView: this.defaultView,
                        editable: this.editable,
                        selectable: this.selectable,
                        selectHelper: this.selectHelper,
                        aspectRatio: 2,
                        timeFormat: "HH:mm",
                        events: this.events,
                        eventSources: this.eventSources,
                        eventRender: function () {
                            this.sync && (e.events = cal.fullCalendar("clientEvents"));
                            for (var t = arguments.length, n = Array(t), i = 0; i < t; i++) n[i] = arguments[i];
                            e.$emit.apply(e, ["event-render"].concat(o()(n)));
                        },
                        viewRender: function () {
                            this.sync && (e.events = cal.fullCalendar("clientEvents"));
                            for (var t = arguments.length, n = Array(t), i = 0; i < t; i++) n[i] = arguments[i];
                            e.$emit.apply(e, ["view-render"].concat(o()(n)));
                        },
                        eventDestroy: function (t) {
                            this.sync && (e.events = cal.fullCalendar("clientEvents"));
                        },
                        eventClick: function () {
                            for (var t = arguments.length, n = Array(t), i = 0; i < t; i++) n[i] = arguments[i];
                            e.$emit.apply(e, ["event-selected"].concat(o()(n)));
                        },
                        eventDrop: function () {
                            for (var t = arguments.length, n = Array(t), i = 0; i < t; i++) n[i] = arguments[i];
                            e.$emit.apply(e, ["event-drop"].concat(o()(n)));
                        },
                        eventReceive: function () {
                            for (var t = arguments.length, n = Array(t), i = 0; i < t; i++) n[i] = arguments[i];
                            e.$emit.apply(e, ["event-receive"].concat(o()(n)));
                        },
                        eventResize: function () {
                            for (var t = arguments.length, n = Array(t), i = 0; i < t; i++) n[i] = arguments[i];
                            e.$emit.apply(e, ["event-resize"].concat(o()(n)));
                        },
                        dayClick: function () {
                            for (var t = arguments.length, n = Array(t), i = 0; i < t; i++) n[i] = arguments[i];
                            e.$emit.apply(e, ["day-click"].concat(o()(n)));
                        },
                        select: function (t, n, i, o, r) {
                            e.$emit("event-created", { start: t, end: n, allDay: !t.hasTime() && !n.hasTime(), view: o, resource: r });
                        },
                    };
                },
            },
            mounted: function () {
                var e = this,
                    t = c()(this.$el);
                this.$on("remove-event", function (t) {
                    t && t.hasOwnProperty("id") ? c()(e.$el).fullCalendar("removeEvents", t.id) : c()(e.$el).fullCalendar("removeEvents", t);
                }),
                    this.$on("rerender-events", function () {
                        c()(e.$el).fullCalendar("rerenderEvents");
                    }),
                    this.$on("refetch-events", function () {
                        c()(e.$el).fullCalendar("refetchEvents");
                    }),
                    this.$on("render-event", function (t) {
                        c()(e.$el).fullCalendar("renderEvent", t);
                    }),
                    this.$on("reload-events", function () {
                        c()(e.$el).fullCalendar("removeEvents"), c()(e.$el).fullCalendar("addEventSource", e.events);
                    }),
                    this.$on("rebuild-sources", function () {
                        c()(e.$el).fullCalendar("removeEventSources"),
                            e.eventSources.map(function (t) {
                                c()(e.$el).fullCalendar("addEventSource", t);
                            });
                    }),
                    t.fullCalendar(s()(this.config, this.defaultConfig));
            },
            methods: {
                fireMethod: function () {
                    var e;
                    return (e = c()(this.$el)).fullCalendar.apply(e, arguments);
                },
            },
            watch: {
                events: {
                    deep: !0,
                    handler: function (e) {
                        c()(this.$el).fullCalendar("removeEvents"), c()(this.$el).fullCalendar("addEventSource", this.events);
                    },
                },
                eventSources: {
                    deep: !0,
                    handler: function (e) {
                        this.$emit("rebuild-sources");
                    },
                },
            },
            beforeDestroy: function () {
                this.$off("remove-event"), this.$off("rerender-events"), this.$off("refetch-events"), this.$off("render-event"), this.$off("reload-events"), this.$off("rebuild-sources");
            },
        };
    },
    996: function (e, t, n) {
        "use strict";
        t.__esModule = !0;
        var i,
            o = n(997),
            r = (i = o) && i.__esModule ? i : { default: i };
        t.default = function (e) {
            if (Array.isArray(e)) {
                for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
                return n;
            }
            return (0, r.default)(e);
        };
    },
    997: function (e, t, n) {
        e.exports = { default: n(998), __esModule: !0 };
    },
    998: function (e, t, n) {
        n(345), n(999), (e.exports = n(66).Array.from);
    },
    999: function (e, t, n) {
        "use strict";
        var i = n(346),
            o = n(94),
            r = n(144),
            s = n(1e3),
            a = n(1001),
            l = n(347),
            c = n(1002),
            u = n(1003);
        o(
            o.S +
                o.F *
                    !n(1005)(function (e) {
                        Array.from(e);
                    }),
            "Array",
            {
                from: function (e) {
                    var t,
                        n,
                        o,
                        d,
                        p = r(e),
                        h = "function" == typeof this ? this : Array,
                        f = arguments.length,
                        m = f > 1 ? arguments[1] : void 0,
                        g = void 0 !== m,
                        v = 0,
                        y = u(p);
                    if ((g && (m = i(m, f > 2 ? arguments[2] : void 0, 2)), void 0 == y || (h == Array && a(y)))) for (n = new h((t = l(p.length))); t > v; v++) c(n, v, g ? m(p[v], v) : p[v]);
                    else for (d = y.call(p), n = new h(); !(o = d.next()).done; v++) c(n, v, g ? s(d, m, [o.value, v], !0) : o.value);
                    return (n.length = v), n;
                },
            }
        );
    },
});
