File "cms.js"
Full Path: /home/codejsmm/uxbridgewriters.com/app-20250518213909/js/cms.js
File size: 512.92 KB
MIME-type: text/plain
Charset: utf-8
! function(n) {
var i = {};
function r(e) {
if (i[e]) return i[e].exports;
var t = i[e] = {
i: e,
l: !1,
exports: {}
};
return n[e].call(t.exports, t, t.exports, r), t.l = !0, t.exports
}
r.m = n, r.c = i, r.d = function(e, t, n) {
r.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: n
})
}, r.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, r.t = function(t, e) {
if (1 & e && (t = r(t)), 8 & e) return t;
if (4 & e && "object" == typeof t && t && t.__esModule) return t;
var n = Object.create(null);
if (r.r(n), Object.defineProperty(n, "default", {
enumerable: !0,
value: t
}), 2 & e && "string" != typeof t)
for (var i in t) r.d(n, i, function(e) {
return t[e]
}.bind(null, i));
return n
}, r.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
} : function() {
return e
};
return r.d(t, "a", t), t
}, r.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, r.p = "", r(r.s = 115)
}([function(Xt, Qt, e) {
var $t;
! function(e, t) {
"use strict";
"object" == typeof Xt.exports ? Xt.exports = e.document ? t(e, !0) : function(e) {
if (!e.document) throw new Error("jQuery requires a window with a document");
return t(e)
} : t(e)
}("undefined" != typeof window ? window : this, function(T, e) {
"use strict";
function m(e) {
return null != e && e === e.window
}
var t = [],
A = T.document,
i = Object.getPrototypeOf,
s = t.slice,
g = t.concat,
l = t.push,
r = t.indexOf,
n = {},
o = n.toString,
v = n.hasOwnProperty,
a = v.toString,
c = a.call(Object),
y = {},
b = function(e) {
return "function" == typeof e && "number" != typeof e.nodeType
},
u = {
type: !0,
src: !0,
nonce: !0,
noModule: !0
};
function E(e, t, n) {
var i, r, o = (n = n || A).createElement("script");
if (o.text = e, t)
for (i in u)(r = t[i] || t.getAttribute && t.getAttribute(i)) && o.setAttribute(i, r);
n.head.appendChild(o).parentNode.removeChild(o)
}
function w(e) {
return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? n[o.call(e)] || "object" : typeof e
}
var f = "3.4.1",
x = function(e, t) {
return new x.fn.init(e, t)
},
d = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
function p(e) {
var t = !!e && "length" in e && e.length,
n = w(e);
return !b(e) && !m(e) && ("array" === n || 0 === t || "number" == typeof t && 0 < t && t - 1 in e)
}
x.fn = x.prototype = {
jquery: f,
constructor: x,
length: 0,
toArray: function() {
return s.call(this)
},
get: function(e) {
return null == e ? s.call(this) : e < 0 ? this[e + this.length] : this[e]
},
pushStack: function(e) {
var t = x.merge(this.constructor(), e);
return t.prevObject = this, t
},
each: function(e) {
return x.each(this, e)
},
map: function(n) {
return this.pushStack(x.map(this, function(e, t) {
return n.call(e, t, e)
}))
},
slice: function() {
return this.pushStack(s.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(0 <= n && n < t ? [this[n]] : [])
},
end: function() {
return this.prevObject || this.constructor()
},
push: l,
sort: t.sort,
splice: t.splice
}, x.extend = x.fn.extend = function() {
var e, t, n, i, r, o, a = arguments[0] || {},
s = 1,
l = arguments.length,
c = !1;
for ("boolean" == typeof a && (c = a, a = arguments[s] || {}, s++), "object" == typeof a || b(a) || (a = {}), s === l && (a = this, s--); s < l; s++)
if (null != (e = arguments[s]))
for (t in e) i = e[t], "__proto__" !== t && a !== i && (c && i && (x.isPlainObject(i) || (r = Array.isArray(i))) ? (n = a[t], o = r && !Array.isArray(n) ? [] : r || x.isPlainObject(n) ? n : {}, r = !1, a[t] = x.extend(c, o, i)) : void 0 !== i && (a[t] = i));
return a
}, x.extend({
expando: "jQuery" + (f + 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]" !== o.call(e)) && (!(t = i(e)) || "function" == typeof(n = v.call(t, "constructor") && t.constructor) && a.call(n) === c)
},
isEmptyObject: function(e) {
var t;
for (t in e) return !1;
return !0
},
globalEval: function(e, t) {
E(e, {
nonce: t && t.nonce
})
},
each: function(e, t) {
var n, i = 0;
if (p(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(d, "")
},
makeArray: function(e, t) {
var n = t || [];
return null != e && (p(Object(e)) ? x.merge(n, "string" == typeof e ? [e] : e) : l.call(n, e)), n
},
inArray: function(e, t, n) {
return null == t ? -1 : r.call(t, e, n)
},
merge: function(e, t) {
for (var n = +t.length, i = 0, r = e.length; i < n; i++) e[r++] = t[i];
return e.length = r, e
},
grep: function(e, t, n) {
for (var i = [], r = 0, o = e.length, a = !n; r < o; r++) !t(e[r], r) != a && i.push(e[r]);
return i
},
map: function(e, t, n) {
var i, r, o = 0,
a = [];
if (p(e))
for (i = e.length; o < i; o++) null != (r = t(e[o], o, n)) && a.push(r);
else
for (o in e) null != (r = t(e[o], o, n)) && a.push(r);
return g.apply([], a)
},
guid: 1,
support: y
}), "function" == typeof Symbol && (x.fn[Symbol.iterator] = t[Symbol.iterator]), x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function(e, t) {
n["[object " + t + "]"] = t.toLowerCase()
});
var h = function(n) {
function f(e, t, n) {
var i = "0x" + t - 65536;
return i != i || n ? t : i < 0 ? String.fromCharCode(65536 + i) : String.fromCharCode(i >> 10 | 55296, 1023 & i | 56320)
}
function r() {
_()
}
var e, p, E, o, a, h, d, m, w, l, c, _, T, s, A, g, u, v, y, x = "sizzle" + 1 * new Date,
b = n.document,
C = 0,
i = 0,
D = le(),
S = le(),
I = le(),
L = le(),
O = function(e, t) {
return e === t && (c = !0), 0
},
N = {}.hasOwnProperty,
t = [],
k = t.pop,
M = t.push,
P = t.push,
j = t.slice,
B = 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",
R = "[\\x20\\t\\r\\n\\f]",
W = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
F = "\\[" + R + "*(" + W + ")(?:" + R + "*([*^$|!~]?=)" + R + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + W + "))|)" + R + "*\\]",
q = ":(" + W + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + F + ")*)|.*)\\)|)",
V = new RegExp(R + "+", "g"),
U = new RegExp("^" + R + "+|((?:^|[^\\\\])(?:\\\\.)*)" + R + "+$", "g"),
z = new RegExp("^" + R + "*," + R + "*"),
G = new RegExp("^" + R + "*([>+~]|" + R + ")" + R + "*"),
Y = new RegExp(R + "|>"),
K = new RegExp(q),
X = new RegExp("^" + W + "$"),
Q = {
ID: new RegExp("^#(" + W + ")"),
CLASS: new RegExp("^\\.(" + W + ")"),
TAG: new RegExp("^(" + W + "|[*])"),
ATTR: new RegExp("^" + F),
PSEUDO: new RegExp("^" + q),
CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + R + "*(even|odd|(([+-]|)(\\d*)n|)" + R + "*(?:([+-]|)" + R + "*(\\d+)|))" + R + "*\\)|)", "i"),
bool: new RegExp("^(?:" + H + ")$", "i"),
needsContext: new RegExp("^" + R + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + R + "*((?:-\\d)?\\d*)" + R + "*\\)|)(?=[^-]|$)", "i")
},
$ = /HTML$/i,
J = /^(?:input|select|textarea|button)$/i,
Z = /^h\d$/i,
ee = /^[^{]+\{\s*\[native \w/,
te = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
ne = /[+~]/,
ie = new RegExp("\\\\([\\da-f]{1,6}" + R + "?|(" + R + ")|.)", "ig"),
re = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
oe = function(e, t) {
return t ? "\0" === e ? "�" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) + " " : "\\" + e
},
ae = Ee(function(e) {
return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase()
}, {
dir: "parentNode",
next: "legend"
});
try {
P.apply(t = j.call(b.childNodes), b.childNodes), t[b.childNodes.length].nodeType
} catch (e) {
P = {
apply: t.length ? function(e, t) {
M.apply(e, j.call(t))
} : function(e, t) {
for (var n = e.length, i = 0; e[n++] = t[i++];);
e.length = n - 1
}
}
}
function se(t, e, n, i) {
var r, o, a, s, l, c, u, f = e && e.ownerDocument,
d = e ? e.nodeType : 9;
if (n = n || [], "string" != typeof t || !t || 1 !== d && 9 !== d && 11 !== d) return n;
if (!i && ((e ? e.ownerDocument || e : b) !== T && _(e), e = e || T, A)) {
if (11 !== d && (l = te.exec(t)))
if (r = l[1]) {
if (9 === d) {
if (!(a = e.getElementById(r))) return n;
if (a.id === r) return n.push(a), n
} else if (f && (a = f.getElementById(r)) && y(e, a) && a.id === r) return n.push(a), n
} else {
if (l[2]) return P.apply(n, e.getElementsByTagName(t)), n;
if ((r = l[3]) && p.getElementsByClassName && e.getElementsByClassName) return P.apply(n, e.getElementsByClassName(r)), n
}
if (p.qsa && !L[t + " "] && (!g || !g.test(t)) && (1 !== d || "object" !== e.nodeName.toLowerCase())) {
if (u = t, f = e, 1 === d && Y.test(t)) {
for ((s = e.getAttribute("id")) ? s = s.replace(re, oe) : e.setAttribute("id", s = x), o = (c = h(t)).length; o--;) c[o] = "#" + s + " " + be(c[o]);
u = c.join(","), f = ne.test(t) && ve(e.parentNode) || e
}
try {
return P.apply(n, f.querySelectorAll(u)), n
} catch (e) {
L(t, !0)
} finally {
s === x && e.removeAttribute("id")
}
}
}
return m(t.replace(U, "$1"), e, n, i)
}
function le() {
var i = [];
return function e(t, n) {
return i.push(t + " ") > E.cacheLength && delete e[i.shift()], e[t + " "] = n
}
}
function ce(e) {
return e[x] = !0, e
}
function ue(e) {
var t = T.createElement("fieldset");
try {
return !!e(t)
} catch (e) {
return !1
} finally {
t.parentNode && t.parentNode.removeChild(t), t = null
}
}
function fe(e, t) {
for (var n = e.split("|"), i = n.length; i--;) E.attrHandle[n[i]] = t
}
function de(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 pe(t) {
return function(e) {
return "input" === e.nodeName.toLowerCase() && e.type === t
}
}
function he(n) {
return function(e) {
var t = e.nodeName.toLowerCase();
return ("input" === t || "button" === t) && e.type === n
}
}
function me(t) {
return function(e) {
return "form" in e ? e.parentNode && !1 === e.disabled ? "label" in e ? "label" in e.parentNode ? e.parentNode.disabled === t : e.disabled === t : e.isDisabled === t || e.isDisabled !== !t && ae(e) === t : e.disabled === t : "label" in e && e.disabled === t
}
}
function ge(a) {
return ce(function(o) {
return o = +o, ce(function(e, t) {
for (var n, i = a([], e.length, o), r = i.length; r--;) e[n = i[r]] && (e[n] = !(t[n] = e[n]))
})
})
}
function ve(e) {
return e && void 0 !== e.getElementsByTagName && e
}
for (e in p = se.support = {}, a = se.isXML = function(e) {
var t = e.namespaceURI,
n = (e.ownerDocument || e).documentElement;
return !$.test(t || n && n.nodeName || "HTML")
}, _ = se.setDocument = function(e) {
var t, n, i = e ? e.ownerDocument || e : b;
return i !== T && 9 === i.nodeType && i.documentElement && (s = (T = i).documentElement, A = !a(T), b !== T && (n = T.defaultView) && n.top !== n && (n.addEventListener ? n.addEventListener("unload", r, !1) : n.attachEvent && n.attachEvent("onunload", r)), p.attributes = ue(function(e) {
return e.className = "i", !e.getAttribute("className")
}), p.getElementsByTagName = ue(function(e) {
return e.appendChild(T.createComment("")), !e.getElementsByTagName("*").length
}), p.getElementsByClassName = ee.test(T.getElementsByClassName), p.getById = ue(function(e) {
return s.appendChild(e).id = x, !T.getElementsByName || !T.getElementsByName(x).length
}), p.getById ? (E.filter.ID = function(e) {
var t = e.replace(ie, f);
return function(e) {
return e.getAttribute("id") === t
}
}, E.find.ID = function(e, t) {
if (void 0 !== t.getElementById && A) {
var n = t.getElementById(e);
return n ? [n] : []
}
}) : (E.filter.ID = function(e) {
var n = e.replace(ie, f);
return function(e) {
var t = void 0 !== e.getAttributeNode && e.getAttributeNode("id");
return t && t.value === n
}
}, E.find.ID = function(e, t) {
if (void 0 !== t.getElementById && A) {
var n, i, r, o = t.getElementById(e);
if (o) {
if ((n = o.getAttributeNode("id")) && n.value === e) return [o];
for (r = t.getElementsByName(e), i = 0; o = r[i++];)
if ((n = o.getAttributeNode("id")) && n.value === e) return [o]
}
return []
}
}), E.find.TAG = p.getElementsByTagName ? function(e, t) {
return void 0 !== t.getElementsByTagName ? t.getElementsByTagName(e) : p.qsa ? t.querySelectorAll(e) : void 0
} : function(e, t) {
var n, i = [],
r = 0,
o = t.getElementsByTagName(e);
if ("*" !== e) return o;
for (; n = o[r++];) 1 === n.nodeType && i.push(n);
return i
}, E.find.CLASS = p.getElementsByClassName && function(e, t) {
if (void 0 !== t.getElementsByClassName && A) return t.getElementsByClassName(e)
}, u = [], g = [], (p.qsa = ee.test(T.querySelectorAll)) && (ue(function(e) {
s.appendChild(e).innerHTML = "<a id='" + x + "'></a><select id='" + x + "-\r\\' msallowcapture=''><option selected=''></option></select>", e.querySelectorAll("[msallowcapture^='']").length && g.push("[*^$]=" + R + "*(?:''|\"\")"), e.querySelectorAll("[selected]").length || g.push("\\[" + R + "*(?:value|" + H + ")"), e.querySelectorAll("[id~=" + x + "-]").length || g.push("~="), e.querySelectorAll(":checked").length || g.push(":checked"), e.querySelectorAll("a#" + x + "+*").length || g.push(".#.+[+~]")
}), ue(function(e) {
e.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
var t = T.createElement("input");
t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("name", "D"), e.querySelectorAll("[name=d]").length && g.push("name" + R + "*[*^$|!~]?="), 2 !== e.querySelectorAll(":enabled").length && g.push(":enabled", ":disabled"), s.appendChild(e).disabled = !0, 2 !== e.querySelectorAll(":disabled").length && g.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), g.push(",.*:")
})), (p.matchesSelector = ee.test(v = s.matches || s.webkitMatchesSelector || s.mozMatchesSelector || s.oMatchesSelector || s.msMatchesSelector)) && ue(function(e) {
p.disconnectedMatch = v.call(e, "*"), v.call(e, "[s!='']:x"), u.push("!=", q)
}), g = g.length && new RegExp(g.join("|")), u = u.length && new RegExp(u.join("|")), t = ee.test(s.compareDocumentPosition), y = t || ee.test(s.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
}, O = t ? function(e, t) {
if (e === t) return c = !0, 0;
var n = !e.compareDocumentPosition - !t.compareDocumentPosition;
return n || (1 & (n = (e.ownerDocument || e) === (t.ownerDocument || t) ? e.compareDocumentPosition(t) : 1) || !p.sortDetached && t.compareDocumentPosition(e) === n ? e === T || e.ownerDocument === b && y(b, e) ? -1 : t === T || t.ownerDocument === b && y(b, t) ? 1 : l ? B(l, e) - B(l, t) : 0 : 4 & n ? -1 : 1)
} : function(e, t) {
if (e === t) return c = !0, 0;
var n, i = 0,
r = e.parentNode,
o = t.parentNode,
a = [e],
s = [t];
if (!r || !o) return e === T ? -1 : t === T ? 1 : r ? -1 : o ? 1 : l ? B(l, e) - B(l, t) : 0;
if (r === o) return de(e, t);
for (n = e; n = n.parentNode;) a.unshift(n);
for (n = t; n = n.parentNode;) s.unshift(n);
for (; a[i] === s[i];) i++;
return i ? de(a[i], s[i]) : a[i] === b ? -1 : s[i] === b ? 1 : 0
}), T
}, se.matches = function(e, t) {
return se(e, null, null, t)
}, se.matchesSelector = function(e, t) {
if ((e.ownerDocument || e) !== T && _(e), p.matchesSelector && A && !L[t + " "] && (!u || !u.test(t)) && (!g || !g.test(t))) try {
var n = v.call(e, t);
if (n || p.disconnectedMatch || e.document && 11 !== e.document.nodeType) return n
} catch (e) {
L(t, !0)
}
return 0 < se(t, T, null, [e]).length
}, se.contains = function(e, t) {
return (e.ownerDocument || e) !== T && _(e), y(e, t)
}, se.attr = function(e, t) {
(e.ownerDocument || e) !== T && _(e);
var n = E.attrHandle[t.toLowerCase()],
i = n && N.call(E.attrHandle, t.toLowerCase()) ? n(e, t, !A) : void 0;
return void 0 !== i ? i : p.attributes || !A ? e.getAttribute(t) : (i = e.getAttributeNode(t)) && i.specified ? i.value : null
}, se.escape = function(e) {
return (e + "").replace(re, oe)
}, se.error = function(e) {
throw new Error("Syntax error, unrecognized expression: " + e)
}, se.uniqueSort = function(e) {
var t, n = [],
i = 0,
r = 0;
if (c = !p.detectDuplicates, l = !p.sortStable && e.slice(0), e.sort(O), c) {
for (; t = e[r++];) t === e[r] && (i = n.push(r));
for (; i--;) e.splice(n[i], 1)
}
return l = null, e
}, o = se.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
}, (E = se.selectors = {
cacheLength: 50,
createPseudo: ce,
match: Q,
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(ie, f), e[3] = (e[3] || e[4] || e[5] || "").replace(ie, f), "~=" === 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] || se.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] && se.error(e[0]), e
},
PSEUDO: function(e) {
var t, n = !e[6] && e[2];
return Q.CHILD.test(e[0]) ? null : (e[3] ? e[2] = e[4] || e[5] || "" : n && K.test(n) && (t = h(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(ie, f).toLowerCase();
return "*" === e ? function() {
return !0
} : function(e) {
return e.nodeName && e.nodeName.toLowerCase() === t
}
},
CLASS: function(e) {
var t = D[e + " "];
return t || (t = new RegExp("(^|" + R + ")" + e + "(" + R + "|$)")) && D(e, function(e) {
return t.test("string" == typeof e.className && e.className || void 0 !== e.getAttribute && e.getAttribute("class") || "")
})
},
ATTR: function(n, i, r) {
return function(e) {
var t = se.attr(e, n);
return null == t ? "!=" === i : !i || (t += "", "=" === i ? t === r : "!=" === i ? t !== r : "^=" === i ? r && 0 === t.indexOf(r) : "*=" === i ? r && -1 < t.indexOf(r) : "$=" === i ? r && t.slice(-r.length) === r : "~=" === i ? -1 < (" " + t.replace(V, " ") + " ").indexOf(r) : "|=" === i && (t === r || t.slice(0, r.length + 1) === r + "-"))
}
},
CHILD: function(h, e, t, m, g) {
var v = "nth" !== h.slice(0, 3),
y = "last" !== h.slice(-4),
b = "of-type" === e;
return 1 === m && 0 === g ? function(e) {
return !!e.parentNode
} : function(e, t, n) {
var i, r, o, a, s, l, c = v != y ? "nextSibling" : "previousSibling",
u = e.parentNode,
f = b && e.nodeName.toLowerCase(),
d = !n && !b,
p = !1;
if (u) {
if (v) {
for (; c;) {
for (a = e; a = a[c];)
if (b ? a.nodeName.toLowerCase() === f : 1 === a.nodeType) return !1;
l = c = "only" === h && !l && "nextSibling"
}
return !0
}
if (l = [y ? u.firstChild : u.lastChild], y && d) {
for (p = (s = (i = (r = (o = (a = u)[x] || (a[x] = {}))[a.uniqueID] || (o[a.uniqueID] = {}))[h] || [])[0] === C && i[1]) && i[2], a = s && u.childNodes[s]; a = ++s && a && a[c] || (p = s = 0) || l.pop();)
if (1 === a.nodeType && ++p && a === e) {
r[h] = [C, s, p];
break
}
} else if (d && (p = s = (i = (r = (o = (a = e)[x] || (a[x] = {}))[a.uniqueID] || (o[a.uniqueID] = {}))[h] || [])[0] === C && i[1]), !1 === p)
for (;
(a = ++s && a && a[c] || (p = s = 0) || l.pop()) && ((b ? a.nodeName.toLowerCase() !== f : 1 !== a.nodeType) || !++p || (d && ((r = (o = a[x] || (a[x] = {}))[a.uniqueID] || (o[a.uniqueID] = {}))[h] = [C, p]), a !== e)););
return (p -= g) === m || p % m == 0 && 0 <= p / m
}
}
},
PSEUDO: function(e, o) {
var t, a = E.pseudos[e] || E.setFilters[e.toLowerCase()] || se.error("unsupported pseudo: " + e);
return a[x] ? a(o) : 1 < a.length ? (t = [e, e, "", o], E.setFilters.hasOwnProperty(e.toLowerCase()) ? ce(function(e, t) {
for (var n, i = a(e, o), r = i.length; r--;) e[n = B(e, i[r])] = !(t[n] = i[r])
}) : function(e) {
return a(e, 0, t)
}) : a
}
},
pseudos: {
not: ce(function(e) {
var i = [],
r = [],
s = d(e.replace(U, "$1"));
return s[x] ? ce(function(e, t, n, i) {
for (var r, o = s(e, null, i, []), a = e.length; a--;)(r = o[a]) && (e[a] = !(t[a] = r))
}) : function(e, t, n) {
return i[0] = e, s(i, null, n, r), i[0] = null, !r.pop()
}
}),
has: ce(function(t) {
return function(e) {
return 0 < se(t, e).length
}
}),
contains: ce(function(t) {
return t = t.replace(ie, f),
function(e) {
return -1 < (e.textContent || o(e)).indexOf(t)
}
}),
lang: ce(function(n) {
return X.test(n || "") || se.error("unsupported lang: " + n), n = n.replace(ie, f).toLowerCase(),
function(e) {
var t;
do {
if (t = A ? e.lang : e.getAttribute("xml:lang") || e.getAttribute("lang")) return (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-")
} while ((e = e.parentNode) && 1 === e.nodeType);
return !1
}
}),
target: function(e) {
var t = n.location && n.location.hash;
return t && t.slice(1) === e.id
},
root: function(e) {
return e === s
},
focus: function(e) {
return e === T.activeElement && (!T.hasFocus || T.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
},
enabled: me(!1),
disabled: me(!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 !E.pseudos.empty(e)
},
header: function(e) {
return Z.test(e.nodeName)
},
input: function(e) {
return J.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: ge(function() {
return [0]
}),
last: ge(function(e, t) {
return [t - 1]
}),
eq: ge(function(e, t, n) {
return [n < 0 ? n + t : n]
}),
even: ge(function(e, t) {
for (var n = 0; n < t; n += 2) e.push(n);
return e
}),
odd: ge(function(e, t) {
for (var n = 1; n < t; n += 2) e.push(n);
return e
}),
lt: ge(function(e, t, n) {
for (var i = n < 0 ? n + t : t < n ? t : n; 0 <= --i;) e.push(i);
return e
}),
gt: ge(function(e, t, n) {
for (var i = n < 0 ? n + t : n; ++i < t;) e.push(i);
return e
})
}
}).pseudos.nth = E.pseudos.eq, {
radio: !0,
checkbox: !0,
file: !0,
password: !0,
image: !0
}) E.pseudos[e] = pe(e);
for (e in {
submit: !0,
reset: !0
}) E.pseudos[e] = he(e);
function ye() {}
function be(e) {
for (var t = 0, n = e.length, i = ""; t < n; t++) i += e[t].value;
return i
}
function Ee(s, e, t) {
var l = e.dir,
c = e.next,
u = c || l,
f = t && "parentNode" === u,
d = i++;
return e.first ? function(e, t, n) {
for (; e = e[l];)
if (1 === e.nodeType || f) return s(e, t, n);
return !1
} : function(e, t, n) {
var i, r, o, a = [C, d];
if (n) {
for (; e = e[l];)
if ((1 === e.nodeType || f) && s(e, t, n)) return !0
} else
for (; e = e[l];)
if (1 === e.nodeType || f)
if (r = (o = e[x] || (e[x] = {}))[e.uniqueID] || (o[e.uniqueID] = {}), c && c === e.nodeName.toLowerCase()) e = e[l] || e;
else {
if ((i = r[u]) && i[0] === C && i[1] === d) return a[2] = i[2];
if ((r[u] = a)[2] = s(e, t, n)) return !0
} return !1
}
}
function we(r) {
return 1 < r.length ? function(e, t, n) {
for (var i = r.length; i--;)
if (!r[i](e, t, n)) return !1;
return !0
} : r[0]
}
function _e(e, t, n, i, r) {
for (var o, a = [], s = 0, l = e.length, c = null != t; s < l; s++)(o = e[s]) && (n && !n(o, i, r) || (a.push(o), c && t.push(s)));
return a
}
function Te(p, h, m, g, v, e) {
return g && !g[x] && (g = Te(g)), v && !v[x] && (v = Te(v, e)), ce(function(e, t, n, i) {
var r, o, a, s = [],
l = [],
c = t.length,
u = e || function(e, t, n) {
for (var i = 0, r = t.length; i < r; i++) se(e, t[i], n);
return n
}(h || "*", n.nodeType ? [n] : n, []),
f = !p || !e && h ? u : _e(u, s, p, n, i),
d = m ? v || (e ? p : c || g) ? [] : t : f;
if (m && m(f, d, n, i), g)
for (r = _e(d, l), g(r, [], n, i), o = r.length; o--;)(a = r[o]) && (d[l[o]] = !(f[l[o]] = a));
if (e) {
if (v || p) {
if (v) {
for (r = [], o = d.length; o--;)(a = d[o]) && r.push(f[o] = a);
v(null, d = [], r, i)
}
for (o = d.length; o--;)(a = d[o]) && -1 < (r = v ? B(e, a) : s[o]) && (e[r] = !(t[r] = a))
}
} else d = _e(d === t ? d.splice(c, d.length) : d), v ? v(null, t, d, i) : P.apply(t, d)
})
}
function Ae(e) {
for (var r, t, n, i = e.length, o = E.relative[e[0].type], a = o || E.relative[" "], s = o ? 1 : 0, l = Ee(function(e) {
return e === r
}, a, !0), c = Ee(function(e) {
return -1 < B(r, e)
}, a, !0), u = [function(e, t, n) {
var i = !o && (n || t !== w) || ((r = t).nodeType ? l(e, t, n) : c(e, t, n));
return r = null, i
}]; s < i; s++)
if (t = E.relative[e[s].type]) u = [Ee(we(u), t)];
else {
if ((t = E.filter[e[s].type].apply(null, e[s].matches))[x]) {
for (n = ++s; n < i && !E.relative[e[n].type]; n++);
return Te(1 < s && we(u), 1 < s && be(e.slice(0, s - 1).concat({
value: " " === e[s - 2].type ? "*" : ""
})).replace(U, "$1"), t, s < n && Ae(e.slice(s, n)), n < i && Ae(e = e.slice(n)), n < i && be(e))
}
u.push(t)
}
return we(u)
}
return ye.prototype = E.filters = E.pseudos, E.setFilters = new ye, h = se.tokenize = function(e, t) {
var n, i, r, o, a, s, l, c = S[e + " "];
if (c) return t ? 0 : c.slice(0);
for (a = e, s = [], l = E.preFilter; a;) {
for (o in n && !(i = z.exec(a)) || (i && (a = a.slice(i[0].length) || a), s.push(r = [])), n = !1, (i = G.exec(a)) && (n = i.shift(), r.push({
value: n,
type: i[0].replace(U, " ")
}), a = a.slice(n.length)), E.filter) !(i = Q[o].exec(a)) || l[o] && !(i = l[o](i)) || (n = i.shift(), r.push({
value: n,
type: o,
matches: i
}), a = a.slice(n.length));
if (!n) break
}
return t ? a.length : a ? se.error(e) : S(e, s).slice(0)
}, d = se.compile = function(e, t) {
var n, i = [],
r = [],
o = I[e + " "];
if (!o) {
for (n = (t = t || h(e)).length; n--;)(o = Ae(t[n]))[x] ? i.push(o) : r.push(o);
(o = I(e, function(g, v) {
function e(e, t, n, i, r) {
var o, a, s, l = 0,
c = "0",
u = e && [],
f = [],
d = w,
p = e || b && E.find.TAG("*", r),
h = C += null == d ? 1 : Math.random() || .1,
m = p.length;
for (r && (w = t === T || t || r); c !== m && null != (o = p[c]); c++) {
if (b && o) {
for (a = 0, t || o.ownerDocument === T || (_(o), n = !A); s = g[a++];)
if (s(o, t || T, n)) {
i.push(o);
break
}
r && (C = h)
}
y && ((o = !s && o) && l--, e && u.push(o))
}
if (l += c, y && c !== l) {
for (a = 0; s = v[a++];) s(u, f, t, n);
if (e) {
if (0 < l)
for (; c--;) u[c] || f[c] || (f[c] = k.call(i));
f = _e(f)
}
P.apply(i, f), r && !e && 0 < f.length && 1 < l + v.length && se.uniqueSort(i)
}
return r && (C = h, w = d), u
}
var y = 0 < v.length,
b = 0 < g.length;
return y ? ce(e) : e
}(r, i))).selector = e
}
return o
}, m = se.select = function(e, t, n, i) {
var r, o, a, s, l, c = "function" == typeof e && e,
u = !i && h(e = c.selector || e);
if (n = n || [], 1 === u.length) {
if (2 < (o = u[0] = u[0].slice(0)).length && "ID" === (a = o[0]).type && 9 === t.nodeType && A && E.relative[o[1].type]) {
if (!(t = (E.find.ID(a.matches[0].replace(ie, f), t) || [])[0])) return n;
c && (t = t.parentNode), e = e.slice(o.shift().value.length)
}
for (r = Q.needsContext.test(e) ? 0 : o.length; r-- && (a = o[r], !E.relative[s = a.type]);)
if ((l = E.find[s]) && (i = l(a.matches[0].replace(ie, f), ne.test(o[0].type) && ve(t.parentNode) || t))) {
if (o.splice(r, 1), !(e = i.length && be(o))) return P.apply(n, i), n;
break
}
}
return (c || d(e, u))(i, t, !A, n, !t || ne.test(e) && ve(t.parentNode) || t), n
}, p.sortStable = x.split("").sort(O).join("") === x, p.detectDuplicates = !!c, _(), p.sortDetached = ue(function(e) {
return 1 & e.compareDocumentPosition(T.createElement("fieldset"))
}), ue(function(e) {
return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild.getAttribute("href")
}) || fe("type|href|height|width", function(e, t, n) {
if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2)
}), p.attributes && ue(function(e) {
return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value")
}) || fe("value", function(e, t, n) {
if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue
}), ue(function(e) {
return null == e.getAttribute("disabled")
}) || fe(H, function(e, t, n) {
var i;
if (!n) return !0 === e[t] ? t.toLowerCase() : (i = e.getAttributeNode(t)) && i.specified ? i.value : null
}), se
}(T);
x.find = h, x.expr = h.selectors, x.expr[":"] = x.expr.pseudos, x.uniqueSort = x.unique = h.uniqueSort, x.text = h.getText, x.isXMLDoc = h.isXML, x.contains = h.contains, x.escapeSelector = h.escape;
function _(e, t, n) {
for (var i = [], r = void 0 !== n;
(e = e[t]) && 9 !== e.nodeType;)
if (1 === e.nodeType) {
if (r && x(e).is(n)) break;
i.push(e)
}
return i
}
function C(e, t) {
for (var n = []; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e);
return n
}
var D = x.expr.match.needsContext;
function S(e, t) {
return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()
}
var I = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
function L(e, n, i) {
return b(n) ? x.grep(e, function(e, t) {
return !!n.call(e, t, e) !== i
}) : n.nodeType ? x.grep(e, function(e) {
return e === n !== i
}) : "string" != typeof n ? x.grep(e, function(e) {
return -1 < r.call(n, e) !== i
}) : x.filter(n, e, i)
}
x.filter = function(e, t, n) {
var i = t[0];
return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === i.nodeType ? x.find.matchesSelector(i, e) ? [i] : [] : x.find.matches(e, x.grep(t, function(e) {
return 1 === e.nodeType
}))
}, x.fn.extend({
find: function(e) {
var t, n, i = this.length,
r = this;
if ("string" != typeof e) return this.pushStack(x(e).filter(function() {
for (t = 0; t < i; t++)
if (x.contains(r[t], this)) return !0
}));
for (n = this.pushStack([]), t = 0; t < i; t++) x.find(e, r[t], n);
return 1 < i ? x.uniqueSort(n) : n
},
filter: function(e) {
return this.pushStack(L(this, e || [], !1))
},
not: function(e) {
return this.pushStack(L(this, e || [], !0))
},
is: function(e) {
return !!L(this, "string" == typeof e && D.test(e) ? x(e) : e || [], !1).length
}
});
var O, N = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
(x.fn.init = function(e, t, n) {
var i, r;
if (!e) return this;
if (n = n || O, "string" != typeof e) return e.nodeType ? (this[0] = e, this.length = 1, this) : b(e) ? void 0 !== n.ready ? n.ready(e) : e(x) : x.makeArray(e, this);
if (!(i = "<" === e[0] && ">" === e[e.length - 1] && 3 <= e.length ? [null, e, null] : N.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 x ? t[0] : t, x.merge(this, x.parseHTML(i[1], t && t.nodeType ? t.ownerDocument || t : A, !0)), I.test(i[1]) && x.isPlainObject(t))
for (i in t) b(this[i]) ? this[i](t[i]) : this.attr(i, t[i]);
return this
}
return (r = A.getElementById(i[2])) && (this[0] = r, this.length = 1), this
}).prototype = x.fn, O = x(A);
var k = /^(?:parents|prev(?:Until|All))/,
M = {
children: !0,
contents: !0,
next: !0,
prev: !0
};
function P(e, t) {
for (;
(e = e[t]) && 1 !== e.nodeType;);
return e
}
x.fn.extend({
has: function(e) {
var t = x(e, this),
n = t.length;
return this.filter(function() {
for (var e = 0; e < n; e++)
if (x.contains(this, t[e])) return !0
})
},
closest: function(e, t) {
var n, i = 0,
r = this.length,
o = [],
a = "string" != typeof e && x(e);
if (!D.test(e))
for (; i < r; i++)
for (n = this[i]; n && n !== t; n = n.parentNode)
if (n.nodeType < 11 && (a ? -1 < a.index(n) : 1 === n.nodeType && x.find.matchesSelector(n, e))) {
o.push(n);
break
}
return this.pushStack(1 < o.length ? x.uniqueSort(o) : o)
},
index: function(e) {
return e ? "string" == typeof e ? r.call(x(e), this[0]) : r.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
},
add: function(e, t) {
return this.pushStack(x.uniqueSort(x.merge(this.get(), x(e, t))))
},
addBack: function(e) {
return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
}
}), x.each({
parent: function(e) {
var t = e.parentNode;
return t && 11 !== t.nodeType ? t : null
},
parents: function(e) {
return _(e, "parentNode")
},
parentsUntil: function(e, t, n) {
return _(e, "parentNode", n)
},
next: function(e) {
return P(e, "nextSibling")
},
prev: function(e) {
return P(e, "previousSibling")
},
nextAll: function(e) {
return _(e, "nextSibling")
},
prevAll: function(e) {
return _(e, "previousSibling")
},
nextUntil: function(e, t, n) {
return _(e, "nextSibling", n)
},
prevUntil: function(e, t, n) {
return _(e, "previousSibling", n)
},
siblings: function(e) {
return C((e.parentNode || {}).firstChild, e)
},
children: function(e) {
return C(e.firstChild)
},
contents: function(e) {
return void 0 !== e.contentDocument ? e.contentDocument : (S(e, "template") && (e = e.content || e), x.merge([], e.childNodes))
}
}, function(i, r) {
x.fn[i] = function(e, t) {
var n = x.map(this, r, e);
return "Until" !== i.slice(-5) && (t = e), t && "string" == typeof t && (n = x.filter(t, n)), 1 < this.length && (M[i] || x.uniqueSort(n), k.test(i) && n.reverse()), this.pushStack(n)
}
});
var j = /[^\x20\t\r\n\f]+/g;
function B(e) {
return e
}
function H(e) {
throw e
}
function R(e, t, n, i) {
var r;
try {
e && b(r = e.promise) ? r.call(e).done(t).fail(n) : e && b(r = e.then) ? r.call(e, t, n) : t.apply(void 0, [e].slice(i))
} catch (e) {
n.apply(void 0, [e])
}
}
x.Callbacks = function(i) {
i = "string" == typeof i ? function(e) {
var n = {};
return x.each(e.match(j) || [], function(e, t) {
n[t] = !0
}), n
}(i) : x.extend({}, i);
function n() {
for (o = o || i.once, t = r = !0; s.length; l = -1)
for (e = s.shift(); ++l < a.length;) !1 === a[l].apply(e[0], e[1]) && i.stopOnFalse && (l = a.length, e = !1);
i.memory || (e = !1), r = !1, o && (a = e ? [] : "")
}
var r, e, t, o, a = [],
s = [],
l = -1,
c = {
add: function() {
return a && (e && !r && (l = a.length - 1, s.push(e)), function n(e) {
x.each(e, function(e, t) {
b(t) ? i.unique && c.has(t) || a.push(t) : t && t.length && "string" !== w(t) && n(t)
})
}(arguments), e && !r && n()), this
},
remove: function() {
return x.each(arguments, function(e, t) {
for (var n; - 1 < (n = x.inArray(t, a, n));) a.splice(n, 1), n <= l && l--
}), this
},
has: function(e) {
return e ? -1 < x.inArray(e, a) : 0 < a.length
},
empty: function() {
return a = a && [], this
},
disable: function() {
return o = s = [], a = e = "", this
},
disabled: function() {
return !a
},
lock: function() {
return o = s = [], e || r || (a = e = ""), this
},
locked: function() {
return !!o
},
fireWith: function(e, t) {
return o || (t = [e, (t = t || []).slice ? t.slice() : t], s.push(t), r || n()), this
},
fire: function() {
return c.fireWith(this, arguments), this
},
fired: function() {
return !!t
}
};
return c
}, x.extend({
Deferred: function(e) {
var o = [
["notify", "progress", x.Callbacks("memory"), x.Callbacks("memory"), 2],
["resolve", "done", x.Callbacks("once memory"), x.Callbacks("once memory"), 0, "resolved"],
["reject", "fail", x.Callbacks("once memory"), x.Callbacks("once memory"), 1, "rejected"]
],
r = "pending",
a = {
state: function() {
return r
},
always: function() {
return s.done(arguments).fail(arguments), this
},
catch: function(e) {
return a.then(null, e)
},
pipe: function() {
var r = arguments;
return x.Deferred(function(i) {
x.each(o, function(e, t) {
var n = b(r[t[4]]) && r[t[4]];
s[t[1]](function() {
var e = n && n.apply(this, arguments);
e && b(e.promise) ? e.promise().progress(i.notify).done(i.resolve).fail(i.reject) : i[t[0] + "With"](this, n ? [e] : arguments)
})
}), r = null
}).promise()
},
then: function(t, n, i) {
var l = 0;
function c(r, o, a, s) {
return function() {
function e() {
var e, t;
if (!(r < l)) {
if ((e = a.apply(n, i)) === o.promise()) throw new TypeError("Thenable self-resolution");
t = e && ("object" == typeof e || "function" == typeof e) && e.then, b(t) ? s ? t.call(e, c(l, o, B, s), c(l, o, H, s)) : (l++, t.call(e, c(l, o, B, s), c(l, o, H, s), c(l, o, B, o.notifyWith))) : (a !== B && (n = void 0, i = [e]), (s || o.resolveWith)(n, i))
}
}
var n = this,
i = arguments,
t = s ? e : function() {
try {
e()
} catch (e) {
x.Deferred.exceptionHook && x.Deferred.exceptionHook(e, t.stackTrace), l <= r + 1 && (a !== H && (n = void 0, i = [e]), o.rejectWith(n, i))
}
};
r ? t() : (x.Deferred.getStackHook && (t.stackTrace = x.Deferred.getStackHook()), T.setTimeout(t))
}
}
return x.Deferred(function(e) {
o[0][3].add(c(0, e, b(i) ? i : B, e.notifyWith)), o[1][3].add(c(0, e, b(t) ? t : B)), o[2][3].add(c(0, e, b(n) ? n : H))
}).promise()
},
promise: function(e) {
return null != e ? x.extend(e, a) : a
}
},
s = {};
return x.each(o, function(e, t) {
var n = t[2],
i = t[5];
a[t[1]] = n.add, i && n.add(function() {
r = i
}, o[3 - e][2].disable, o[3 - e][3].disable, o[0][2].lock, o[0][3].lock), n.add(t[3].fire), s[t[0]] = function() {
return s[t[0] + "With"](this === s ? void 0 : this, arguments), this
}, s[t[0] + "With"] = n.fireWith
}), a.promise(s), e && e.call(s, s), s
},
when: function(e) {
function t(t) {
return function(e) {
r[t] = this, o[t] = 1 < arguments.length ? s.call(arguments) : e, --n || a.resolveWith(r, o)
}
}
var n = arguments.length,
i = n,
r = Array(i),
o = s.call(arguments),
a = x.Deferred();
if (n <= 1 && (R(e, a.done(t(i)).resolve, a.reject, !n), "pending" === a.state() || b(o[i] && o[i].then))) return a.then();
for (; i--;) R(o[i], t(i), a.reject);
return a.promise()
}
});
var W = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
x.Deferred.exceptionHook = function(e, t) {
T.console && T.console.warn && e && W.test(e.name) && T.console.warn("jQuery.Deferred exception: " + e.message, e.stack, t)
}, x.readyException = function(e) {
T.setTimeout(function() {
throw e
})
};
var F = x.Deferred();
function q() {
A.removeEventListener("DOMContentLoaded", q), T.removeEventListener("load", q), x.ready()
}
x.fn.ready = function(e) {
return F.then(e).catch(function(e) {
x.readyException(e)
}), this
}, x.extend({
isReady: !1,
readyWait: 1,
ready: function(e) {
(!0 === e ? --x.readyWait : x.isReady) || (x.isReady = !0) !== e && 0 < --x.readyWait || F.resolveWith(A, [x])
}
}), x.ready.then = F.then, "complete" === A.readyState || "loading" !== A.readyState && !A.documentElement.doScroll ? T.setTimeout(x.ready) : (A.addEventListener("DOMContentLoaded", q), T.addEventListener("load", q));
var V = function(e, t, n, i, r, o, a) {
var s = 0,
l = e.length,
c = null == n;
if ("object" === w(n))
for (s in r = !0, n) V(e, t, s, n[s], !0, o, a);
else if (void 0 !== i && (r = !0, b(i) || (a = !0), c && (t = a ? (t.call(e, i), null) : (c = t, function(e, t, n) {
return c.call(x(e), n)
})), t))
for (; s < l; s++) t(e[s], n, a ? i : i.call(e[s], s, t(e[s], n)));
return r ? e : c ? t.call(e) : l ? t(e[0], n) : o
},
U = /^-ms-/,
z = /-([a-z])/g;
function G(e, t) {
return t.toUpperCase()
}
function Y(e) {
return e.replace(U, "ms-").replace(z, G)
}
function K(e) {
return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType
}
function X() {
this.expando = x.expando + X.uid++
}
X.uid = 1, X.prototype = {
cache: function(e) {
var t = e[this.expando];
return t || (t = {}, K(e) && (e.nodeType ? e[this.expando] = t : Object.defineProperty(e, this.expando, {
value: t,
configurable: !0
}))), t
},
set: function(e, t, n) {
var i, r = this.cache(e);
if ("string" == typeof t) r[Y(t)] = n;
else
for (i in t) r[Y(i)] = t[i];
return r
},
get: function(e, t) {
return void 0 === t ? this.cache(e) : e[this.expando] && e[this.expando][Y(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(Y) : (t = Y(t)) in i ? [t] : t.match(j) || []).length;
for (; n--;) delete i[t[n]]
}
void 0 !== t && !x.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 && !x.isEmptyObject(t)
}
};
var Q = new X,
$ = new X,
J = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
Z = /[A-Z]/g;
function ee(e, t, n) {
var i;
if (void 0 === n && 1 === e.nodeType)
if (i = "data-" + t.replace(Z, "-$&").toLowerCase(), "string" == typeof(n = e.getAttribute(i))) {
try {
n = function(e) {
return "true" === e || "false" !== e && ("null" === e ? null : e === +e + "" ? +e : J.test(e) ? JSON.parse(e) : e)
}(n)
} catch (e) {}
$.set(e, t, n)
} else n = void 0;
return n
}
x.extend({
hasData: function(e) {
return $.hasData(e) || Q.hasData(e)
},
data: function(e, t, n) {
return $.access(e, t, n)
},
removeData: function(e, t) {
$.remove(e, t)
},
_data: function(e, t, n) {
return Q.access(e, t, n)
},
_removeData: function(e, t) {
Q.remove(e, t)
}
}), x.fn.extend({
data: function(n, e) {
var t, i, r, o = this[0],
a = o && o.attributes;
if (void 0 !== n) return "object" == typeof n ? this.each(function() {
$.set(this, n)
}) : V(this, function(e) {
var t;
if (o && void 0 === e) return void 0 !== (t = $.get(o, n)) ? t : void 0 !== (t = ee(o, n)) ? t : void 0;
this.each(function() {
$.set(this, n, e)
})
}, null, e, 1 < arguments.length, null, !0);
if (this.length && (r = $.get(o), 1 === o.nodeType && !Q.get(o, "hasDataAttrs"))) {
for (t = a.length; t--;) a[t] && 0 === (i = a[t].name).indexOf("data-") && (i = Y(i.slice(5)), ee(o, i, r[i]));
Q.set(o, "hasDataAttrs", !0)
}
return r
},
removeData: function(e) {
return this.each(function() {
$.remove(this, e)
})
}
}), x.extend({
queue: function(e, t, n) {
var i;
if (e) return t = (t || "fx") + "queue", i = Q.get(e, t), n && (!i || Array.isArray(n) ? i = Q.access(e, t, x.makeArray(n)) : i.push(n)), i || []
},
dequeue: function(e, t) {
t = t || "fx";
var n = x.queue(e, t),
i = n.length,
r = n.shift(),
o = x._queueHooks(e, t);
"inprogress" === r && (r = n.shift(), i--), r && ("fx" === t && n.unshift("inprogress"), delete o.stop, r.call(e, function() {
x.dequeue(e, t)
}, o)), !i && o && o.empty.fire()
},
_queueHooks: function(e, t) {
var n = t + "queueHooks";
return Q.get(e, n) || Q.access(e, n, {
empty: x.Callbacks("once memory").add(function() {
Q.remove(e, [t + "queue", n])
})
})
}
}), x.fn.extend({
queue: function(t, n) {
var e = 2;
return "string" != typeof t && (n = t, t = "fx", e--), arguments.length < e ? x.queue(this[0], t) : void 0 === n ? this : this.each(function() {
var e = x.queue(this, t, n);
x._queueHooks(this, t), "fx" === t && "inprogress" !== e[0] && x.dequeue(this, t)
})
},
dequeue: function(e) {
return this.each(function() {
x.dequeue(this, e)
})
},
clearQueue: function(e) {
return this.queue(e || "fx", [])
},
promise: function(e, t) {
function n() {
--r || o.resolveWith(a, [a])
}
var i, r = 1,
o = x.Deferred(),
a = this,
s = this.length;
for ("string" != typeof e && (t = e, e = void 0), e = e || "fx"; s--;)(i = Q.get(a[s], e + "queueHooks")) && i.empty && (r++, i.empty.add(n));
return n(), o.promise(t)
}
});
var te = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
ne = new RegExp("^(?:([+-])=|)(" + te + ")([a-z%]*)$", "i"),
ie = ["Top", "Right", "Bottom", "Left"],
re = A.documentElement,
oe = function(e) {
return x.contains(e.ownerDocument, e)
},
ae = {
composed: !0
};
re.getRootNode && (oe = function(e) {
return x.contains(e.ownerDocument, e) || e.getRootNode(ae) === e.ownerDocument
});
function se(e, t, n, i) {
var r, o, a = {};
for (o in t) a[o] = e.style[o], e.style[o] = t[o];
for (o in r = n.apply(e, i || []), t) e.style[o] = a[o];
return r
}
var le = function(e, t) {
return "none" === (e = t || e).style.display || "" === e.style.display && oe(e) && "none" === x.css(e, "display")
};
function ce(e, t, n, i) {
var r, o, a = 20,
s = i ? function() {
return i.cur()
} : function() {
return x.css(e, t, "")
},
l = s(),
c = n && n[3] || (x.cssNumber[t] ? "" : "px"),
u = e.nodeType && (x.cssNumber[t] || "px" !== c && +l) && ne.exec(x.css(e, t));
if (u && u[3] !== c) {
for (l /= 2, c = c || u[3], u = +l || 1; a--;) x.style(e, t, u + c), (1 - o) * (1 - (o = s() / l || .5)) <= 0 && (a = 0), u /= o;
u *= 2, x.style(e, t, u + c), n = n || []
}
return n && (u = +u || +l || 0, r = n[1] ? u + (n[1] + 1) * n[2] : +n[2], i && (i.unit = c, i.start = u, i.end = r)), r
}
var ue = {};
function fe(e) {
var t, n = e.ownerDocument,
i = e.nodeName,
r = ue[i];
return r || (t = n.body.appendChild(n.createElement(i)), r = x.css(t, "display"), t.parentNode.removeChild(t), "none" === r && (r = "block"), ue[i] = r)
}
function de(e, t) {
for (var n, i, r = [], o = 0, a = e.length; o < a; o++)(i = e[o]).style && (n = i.style.display, t ? ("none" === n && (r[o] = Q.get(i, "display") || null, r[o] || (i.style.display = "")), "" === i.style.display && le(i) && (r[o] = fe(i))) : "none" !== n && (r[o] = "none", Q.set(i, "display", n)));
for (o = 0; o < a; o++) null != r[o] && (e[o].style.display = r[o]);
return e
}
x.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() {
le(this) ? x(this).show() : x(this).hide()
})
}
});
var pe = /^(?:checkbox|radio)$/i,
he = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
me = /^$|^module$|\/(?:java|ecma)script/i,
ge = {
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 ve(e, t) {
var n;
return n = void 0 !== e.getElementsByTagName ? e.getElementsByTagName(t || "*") : void 0 !== e.querySelectorAll ? e.querySelectorAll(t || "*") : [], void 0 === t || t && S(e, t) ? x.merge([e], n) : n
}
function ye(e, t) {
for (var n = 0, i = e.length; n < i; n++) Q.set(e[n], "globalEval", !t || Q.get(t[n], "globalEval"))
}
ge.optgroup = ge.option, ge.tbody = ge.tfoot = ge.colgroup = ge.caption = ge.thead, ge.th = ge.td;
var be = /<|&#?\w+;/;
function Ee(e, t, n, i, r) {
for (var o, a, s, l, c, u, f = t.createDocumentFragment(), d = [], p = 0, h = e.length; p < h; p++)
if ((o = e[p]) || 0 === o)
if ("object" === w(o)) x.merge(d, o.nodeType ? [o] : o);
else if (be.test(o)) {
for (a = a || f.appendChild(t.createElement("div")), s = (he.exec(o) || ["", ""])[1].toLowerCase(), l = ge[s] || ge._default, a.innerHTML = l[1] + x.htmlPrefilter(o) + l[2], u = l[0]; u--;) a = a.lastChild;
x.merge(d, a.childNodes), (a = f.firstChild).textContent = ""
} else d.push(t.createTextNode(o));
for (f.textContent = "", p = 0; o = d[p++];)
if (i && -1 < x.inArray(o, i)) r && r.push(o);
else if (c = oe(o), a = ve(f.appendChild(o), "script"), c && ye(a), n)
for (u = 0; o = a[u++];) me.test(o.type || "") && n.push(o);
return f
}! function() {
var e = A.createDocumentFragment().appendChild(A.createElement("div")),
t = A.createElement("input");
t.setAttribute("type", "radio"), t.setAttribute("checked", "checked"), t.setAttribute("name", "t"), e.appendChild(t), y.checkClone = e.cloneNode(!0).cloneNode(!0).lastChild.checked, e.innerHTML = "<textarea>x</textarea>", y.noCloneChecked = !!e.cloneNode(!0).lastChild.defaultValue
}();
var we = /^key/,
_e = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
Te = /^([^.]*)(?:\.(.+)|)/;
function Ae() {
return !0
}
function xe() {
return !1
}
function Ce(e, t) {
return e === function() {
try {
return A.activeElement
} catch (e) {}
}() == ("focus" === t)
}
function De(e, t, n, i, r, o) {
var a, s;
if ("object" == typeof t) {
for (s in "string" != typeof n && (i = i || n, n = void 0), t) De(e, s, n, i, t[s], o);
return e
}
if (null == i && null == r ? (r = n, i = n = void 0) : null == r && ("string" == typeof n ? (r = i, i = void 0) : (r = i, i = n, n = void 0)), !1 === r) r = xe;
else if (!r) return e;
return 1 === o && (a = r, (r = function(e) {
return x().off(e), a.apply(this, arguments)
}).guid = a.guid || (a.guid = x.guid++)), e.each(function() {
x.event.add(this, t, r, i, n)
})
}
function Se(e, r, o) {
o ? (Q.set(e, r, !1), x.event.add(e, r, {
namespace: !1,
handler: function(e) {
var t, n, i = Q.get(this, r);
if (1 & e.isTrigger && this[r]) {
if (i.length)(x.event.special[r] || {}).delegateType && e.stopPropagation();
else if (i = s.call(arguments), Q.set(this, r, i), t = o(this, r), this[r](), i !== (n = Q.get(this, r)) || t ? Q.set(this, r, !1) : n = {}, i !== n) return e.stopImmediatePropagation(), e.preventDefault(), n.value
} else i.length && (Q.set(this, r, {
value: x.event.trigger(x.extend(i[0], x.Event.prototype), i.slice(1), this)
}), e.stopImmediatePropagation())
}
})) : void 0 === Q.get(e, r) && x.event.add(e, r, Ae)
}
x.event = {
global: {},
add: function(t, e, n, i, r) {
var o, a, s, l, c, u, f, d, p, h, m, g = Q.get(t);
if (g)
for (n.handler && (n = (o = n).handler, r = o.selector), r && x.find.matchesSelector(re, r), n.guid || (n.guid = x.guid++), (l = g.events) || (l = g.events = {}), (a = g.handle) || (a = g.handle = function(e) {
return void 0 !== x && x.event.triggered !== e.type ? x.event.dispatch.apply(t, arguments) : void 0
}), c = (e = (e || "").match(j) || [""]).length; c--;) p = m = (s = Te.exec(e[c]) || [])[1], h = (s[2] || "").split(".").sort(), p && (f = x.event.special[p] || {}, p = (r ? f.delegateType : f.bindType) || p, f = x.event.special[p] || {}, u = x.extend({
type: p,
origType: m,
data: i,
handler: n,
guid: n.guid,
selector: r,
needsContext: r && x.expr.match.needsContext.test(r),
namespace: h.join(".")
}, o), (d = l[p]) || ((d = l[p] = []).delegateCount = 0, f.setup && !1 !== f.setup.call(t, i, h, a) || t.addEventListener && t.addEventListener(p, a)), f.add && (f.add.call(t, u), u.handler.guid || (u.handler.guid = n.guid)), r ? d.splice(d.delegateCount++, 0, u) : d.push(u), x.event.global[p] = !0)
},
remove: function(e, t, n, i, r) {
var o, a, s, l, c, u, f, d, p, h, m, g = Q.hasData(e) && Q.get(e);
if (g && (l = g.events)) {
for (c = (t = (t || "").match(j) || [""]).length; c--;)
if (p = m = (s = Te.exec(t[c]) || [])[1], h = (s[2] || "").split(".").sort(), p) {
for (f = x.event.special[p] || {}, d = l[p = (i ? f.delegateType : f.bindType) || p] || [], s = s[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), a = o = d.length; o--;) u = d[o], !r && m !== u.origType || n && n.guid !== u.guid || s && !s.test(u.namespace) || i && i !== u.selector && ("**" !== i || !u.selector) || (d.splice(o, 1), u.selector && d.delegateCount--, f.remove && f.remove.call(e, u));
a && !d.length && (f.teardown && !1 !== f.teardown.call(e, h, g.handle) || x.removeEvent(e, p, g.handle), delete l[p])
} else
for (p in l) x.event.remove(e, p + t[c], n, i, !0);
x.isEmptyObject(l) && Q.remove(e, "handle events")
}
},
dispatch: function(e) {
var t, n, i, r, o, a, s = x.event.fix(e),
l = new Array(arguments.length),
c = (Q.get(this, "events") || {})[s.type] || [],
u = x.event.special[s.type] || {};
for (l[0] = s, t = 1; t < arguments.length; t++) l[t] = arguments[t];
if (s.delegateTarget = this, !u.preDispatch || !1 !== u.preDispatch.call(this, s)) {
for (a = x.event.handlers.call(this, s, c), t = 0;
(r = a[t++]) && !s.isPropagationStopped();)
for (s.currentTarget = r.elem, n = 0;
(o = r.handlers[n++]) && !s.isImmediatePropagationStopped();) s.rnamespace && !1 !== o.namespace && !s.rnamespace.test(o.namespace) || (s.handleObj = o, s.data = o.data, void 0 !== (i = ((x.event.special[o.origType] || {}).handle || o.handler).apply(r.elem, l)) && !1 === (s.result = i) && (s.preventDefault(), s.stopPropagation()));
return u.postDispatch && u.postDispatch.call(this, s), s.result
}
},
handlers: function(e, t) {
var n, i, r, o, a, s = [],
l = t.delegateCount,
c = e.target;
if (l && c.nodeType && !("click" === e.type && 1 <= e.button))
for (; c !== this; c = c.parentNode || this)
if (1 === c.nodeType && ("click" !== e.type || !0 !== c.disabled)) {
for (o = [], a = {}, n = 0; n < l; n++) void 0 === a[r = (i = t[n]).selector + " "] && (a[r] = i.needsContext ? -1 < x(r, this).index(c) : x.find(r, this, null, [c]).length), a[r] && o.push(i);
o.length && s.push({
elem: c,
handlers: o
})
}
return c = this, l < t.length && s.push({
elem: c,
handlers: t.slice(l)
}), s
},
addProp: function(t, e) {
Object.defineProperty(x.Event.prototype, t, {
enumerable: !0,
configurable: !0,
get: b(e) ? function() {
if (this.originalEvent) return e(this.originalEvent)
} : function() {
if (this.originalEvent) return this.originalEvent[t]
},
set: function(e) {
Object.defineProperty(this, t, {
enumerable: !0,
configurable: !0,
writable: !0,
value: e
})
}
})
},
fix: function(e) {
return e[x.expando] ? e : new x.Event(e)
},
special: {
load: {
noBubble: !0
},
click: {
setup: function(e) {
var t = this || e;
return pe.test(t.type) && t.click && S(t, "input") && Se(t, "click", Ae), !1
},
trigger: function(e) {
var t = this || e;
return pe.test(t.type) && t.click && S(t, "input") && Se(t, "click"), !0
},
_default: function(e) {
var t = e.target;
return pe.test(t.type) && t.click && S(t, "input") && Q.get(t, "click") || S(t, "a")
}
},
beforeunload: {
postDispatch: function(e) {
void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result)
}
}
}
}, x.removeEvent = function(e, t, n) {
e.removeEventListener && e.removeEventListener(t, n)
}, x.Event = function(e, t) {
if (!(this instanceof x.Event)) return new x.Event(e, t);
e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && !1 === e.returnValue ? Ae : xe, 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 && x.extend(this, t), this.timeStamp = e && e.timeStamp || Date.now(), this[x.expando] = !0
}, x.Event.prototype = {
constructor: x.Event,
isDefaultPrevented: xe,
isPropagationStopped: xe,
isImmediatePropagationStopped: xe,
isSimulated: !1,
preventDefault: function() {
var e = this.originalEvent;
this.isDefaultPrevented = Ae, e && !this.isSimulated && e.preventDefault()
},
stopPropagation: function() {
var e = this.originalEvent;
this.isPropagationStopped = Ae, e && !this.isSimulated && e.stopPropagation()
},
stopImmediatePropagation: function() {
var e = this.originalEvent;
this.isImmediatePropagationStopped = Ae, e && !this.isSimulated && e.stopImmediatePropagation(), this.stopPropagation()
}
}, x.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,
code: !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 && we.test(e.type) ? null != e.charCode ? e.charCode : e.keyCode : !e.which && void 0 !== t && _e.test(e.type) ? 1 & t ? 1 : 2 & t ? 3 : 4 & t ? 2 : 0 : e.which
}
}, x.event.addProp), x.each({
focus: "focusin",
blur: "focusout"
}, function(e, t) {
x.event.special[e] = {
setup: function() {
return Se(this, e, Ce), !1
},
trigger: function() {
return Se(this, e), !0
},
delegateType: t
}
}), x.each({
mouseenter: "mouseover",
mouseleave: "mouseout",
pointerenter: "pointerover",
pointerleave: "pointerout"
}, function(e, r) {
x.event.special[e] = {
delegateType: r,
bindType: r,
handle: function(e) {
var t, n = e.relatedTarget,
i = e.handleObj;
return n && (n === this || x.contains(this, n)) || (e.type = i.origType, t = i.handler.apply(this, arguments), e.type = r), t
}
}
}), x.fn.extend({
on: function(e, t, n, i) {
return De(this, e, t, n, i)
},
one: function(e, t, n, i) {
return De(this, e, t, n, i, 1)
},
off: function(e, t, n) {
var i, r;
if (e && e.preventDefault && e.handleObj) return i = e.handleObj, x(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this;
if ("object" != typeof e) return !1 !== t && "function" != typeof t || (n = t, t = void 0), !1 === n && (n = xe), this.each(function() {
x.event.remove(this, e, n, t)
});
for (r in e) this.off(r, t, e[r]);
return this
}
});
var Ie = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
Le = /<script|<style|<link/i,
Oe = /checked\s*(?:[^=]|=\s*.checked.)/i,
Ne = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
function ke(e, t) {
return S(e, "table") && S(11 !== t.nodeType ? t : t.firstChild, "tr") && x(e).children("tbody")[0] || e
}
function Me(e) {
return e.type = (null !== e.getAttribute("type")) + "/" + e.type, e
}
function Pe(e) {
return "true/" === (e.type || "").slice(0, 5) ? e.type = e.type.slice(5) : e.removeAttribute("type"), e
}
function je(e, t) {
var n, i, r, o, a, s, l, c;
if (1 === t.nodeType) {
if (Q.hasData(e) && (o = Q.access(e), a = Q.set(t, o), c = o.events))
for (r in delete a.handle, a.events = {}, c)
for (n = 0, i = c[r].length; n < i; n++) x.event.add(t, r, c[r][n]);
$.hasData(e) && (s = $.access(e), l = x.extend({}, s), $.set(t, l))
}
}
function Be(e, t) {
var n = t.nodeName.toLowerCase();
"input" === n && pe.test(e.type) ? t.checked = e.checked : "input" !== n && "textarea" !== n || (t.defaultValue = e.defaultValue)
}
function He(n, i, r, o) {
i = g.apply([], i);
var e, t, a, s, l, c, u = 0,
f = n.length,
d = f - 1,
p = i[0],
h = b(p);
if (h || 1 < f && "string" == typeof p && !y.checkClone && Oe.test(p)) return n.each(function(e) {
var t = n.eq(e);
h && (i[0] = p.call(this, e, t.html())), He(t, i, r, o)
});
if (f && (t = (e = Ee(i, n[0].ownerDocument, !1, n, o)).firstChild, 1 === e.childNodes.length && (e = t), t || o)) {
for (s = (a = x.map(ve(e, "script"), Me)).length; u < f; u++) l = e, u !== d && (l = x.clone(l, !0, !0), s && x.merge(a, ve(l, "script"))), r.call(n[u], l, u);
if (s)
for (c = a[a.length - 1].ownerDocument, x.map(a, Pe), u = 0; u < s; u++) l = a[u], me.test(l.type || "") && !Q.access(l, "globalEval") && x.contains(c, l) && (l.src && "module" !== (l.type || "").toLowerCase() ? x._evalUrl && !l.noModule && x._evalUrl(l.src, {
nonce: l.nonce || l.getAttribute("nonce")
}) : E(l.textContent.replace(Ne, ""), l, c))
}
return n
}
function Re(e, t, n) {
for (var i, r = t ? x.filter(t, e) : e, o = 0; null != (i = r[o]); o++) n || 1 !== i.nodeType || x.cleanData(ve(i)), i.parentNode && (n && oe(i) && ye(ve(i, "script")), i.parentNode.removeChild(i));
return e
}
x.extend({
htmlPrefilter: function(e) {
return e.replace(Ie, "<$1></$2>")
},
clone: function(e, t, n) {
var i, r, o, a, s = e.cloneNode(!0),
l = oe(e);
if (!(y.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || x.isXMLDoc(e)))
for (a = ve(s), i = 0, r = (o = ve(e)).length; i < r; i++) Be(o[i], a[i]);
if (t)
if (n)
for (o = o || ve(e), a = a || ve(s), i = 0, r = o.length; i < r; i++) je(o[i], a[i]);
else je(e, s);
return 0 < (a = ve(s, "script")).length && ye(a, !l && ve(e, "script")), s
},
cleanData: function(e) {
for (var t, n, i, r = x.event.special, o = 0; void 0 !== (n = e[o]); o++)
if (K(n)) {
if (t = n[Q.expando]) {
if (t.events)
for (i in t.events) r[i] ? x.event.remove(n, i) : x.removeEvent(n, i, t.handle);
n[Q.expando] = void 0
}
n[$.expando] && (n[$.expando] = void 0)
}
}
}), x.fn.extend({
detach: function(e) {
return Re(this, e, !0)
},
remove: function(e) {
return Re(this, e)
},
text: function(e) {
return V(this, function(e) {
return void 0 === e ? x.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 He(this, arguments, function(e) {
1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || ke(this, e).appendChild(e)
})
},
prepend: function() {
return He(this, arguments, function(e) {
if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
var t = ke(this, e);
t.insertBefore(e, t.firstChild)
}
})
},
before: function() {
return He(this, arguments, function(e) {
this.parentNode && this.parentNode.insertBefore(e, this)
})
},
after: function() {
return He(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 && (x.cleanData(ve(e, !1)), e.textContent = "");
return this
},
clone: function(e, t) {
return e = null != e && e, t = null == t ? e : t, this.map(function() {
return x.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 && !Le.test(e) && !ge[(he.exec(e) || ["", ""])[1].toLowerCase()]) {
e = x.htmlPrefilter(e);
try {
for (; n < i; n++) 1 === (t = this[n] || {}).nodeType && (x.cleanData(ve(t, !1)), t.innerHTML = e);
t = 0
} catch (e) {}
}
t && this.empty().append(e)
}, null, e, arguments.length)
},
replaceWith: function() {
var n = [];
return He(this, arguments, function(e) {
var t = this.parentNode;
x.inArray(this, n) < 0 && (x.cleanData(ve(this)), t && t.replaceChild(e, this))
}, n)
}
}), x.each({
appendTo: "append",
prependTo: "prepend",
insertBefore: "before",
insertAfter: "after",
replaceAll: "replaceWith"
}, function(e, a) {
x.fn[e] = function(e) {
for (var t, n = [], i = x(e), r = i.length - 1, o = 0; o <= r; o++) t = o === r ? this : this.clone(!0), x(i[o])[a](t), l.apply(n, t.get());
return this.pushStack(n)
}
});
var We = new RegExp("^(" + te + ")(?!px)[a-z%]+$", "i"),
Fe = function(e) {
var t = e.ownerDocument.defaultView;
return t && t.opener || (t = T), t.getComputedStyle(e)
},
qe = new RegExp(ie.join("|"), "i");
function Ve(e, t, n) {
var i, r, o, a, s = e.style;
return (n = n || Fe(e)) && ("" !== (a = n.getPropertyValue(t) || n[t]) || oe(e) || (a = x.style(e, t)), !y.pixelBoxStyles() && We.test(a) && qe.test(t) && (i = s.width, r = s.minWidth, o = s.maxWidth, s.minWidth = s.maxWidth = s.width = a, a = n.width, s.width = i, s.minWidth = r, s.maxWidth = o)), void 0 !== a ? a + "" : a
}
function Ue(e, t) {
return {
get: function() {
if (!e()) return (this.get = t).apply(this, arguments);
delete this.get
}
}
}! function() {
function e() {
if (l) {
s.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", l.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%", re.appendChild(s).appendChild(l);
var e = T.getComputedStyle(l);
n = "1%" !== e.top, a = 12 === t(e.marginLeft), l.style.right = "60%", o = 36 === t(e.right), i = 36 === t(e.width), l.style.position = "absolute", r = 12 === t(l.offsetWidth / 3), re.removeChild(s), l = null
}
}
function t(e) {
return Math.round(parseFloat(e))
}
var n, i, r, o, a, s = A.createElement("div"),
l = A.createElement("div");
l.style && (l.style.backgroundClip = "content-box", l.cloneNode(!0).style.backgroundClip = "", y.clearCloneStyle = "content-box" === l.style.backgroundClip, x.extend(y, {
boxSizingReliable: function() {
return e(), i
},
pixelBoxStyles: function() {
return e(), o
},
pixelPosition: function() {
return e(), n
},
reliableMarginLeft: function() {
return e(), a
},
scrollboxSize: function() {
return e(), r
}
}))
}();
var ze = ["Webkit", "Moz", "ms"],
Ge = A.createElement("div").style,
Ye = {};
function Ke(e) {
var t = x.cssProps[e] || Ye[e];
return t || (e in Ge ? e : Ye[e] = function(e) {
for (var t = e[0].toUpperCase() + e.slice(1), n = ze.length; n--;)
if ((e = ze[n] + t) in Ge) return e
}(e) || e)
}
var Xe = /^(none|table(?!-c[ea]).+)/,
Qe = /^--/,
$e = {
position: "absolute",
visibility: "hidden",
display: "block"
},
Je = {
letterSpacing: "0",
fontWeight: "400"
};
function Ze(e, t, n) {
var i = ne.exec(t);
return i ? Math.max(0, i[2] - (n || 0)) + (i[3] || "px") : t
}
function et(e, t, n, i, r, o) {
var a = "width" === t ? 1 : 0,
s = 0,
l = 0;
if (n === (i ? "border" : "content")) return 0;
for (; a < 4; a += 2) "margin" === n && (l += x.css(e, n + ie[a], !0, r)), i ? ("content" === n && (l -= x.css(e, "padding" + ie[a], !0, r)), "margin" !== n && (l -= x.css(e, "border" + ie[a] + "Width", !0, r))) : (l += x.css(e, "padding" + ie[a], !0, r), "padding" !== n ? l += x.css(e, "border" + ie[a] + "Width", !0, r) : s += x.css(e, "border" + ie[a] + "Width", !0, r));
return !i && 0 <= o && (l += Math.max(0, Math.ceil(e["offset" + t[0].toUpperCase() + t.slice(1)] - o - l - s - .5)) || 0), l
}
function tt(e, t, n) {
var i = Fe(e),
r = (!y.boxSizingReliable() || n) && "border-box" === x.css(e, "boxSizing", !1, i),
o = r,
a = Ve(e, t, i),
s = "offset" + t[0].toUpperCase() + t.slice(1);
if (We.test(a)) {
if (!n) return a;
a = "auto"
}
return (!y.boxSizingReliable() && r || "auto" === a || !parseFloat(a) && "inline" === x.css(e, "display", !1, i)) && e.getClientRects().length && (r = "border-box" === x.css(e, "boxSizing", !1, i), (o = s in e) && (a = e[s])), (a = parseFloat(a) || 0) + et(e, t, n || (r ? "border" : "content"), o, i, a) + "px"
}
function nt(e, t, n, i, r) {
return new nt.prototype.init(e, t, n, i, r)
}
x.extend({
cssHooks: {
opacity: {
get: function(e, t) {
if (t) {
var n = Ve(e, "opacity");
return "" === n ? "1" : n
}
}
}
},
cssNumber: {
animationIterationCount: !0,
columnCount: !0,
fillOpacity: !0,
flexGrow: !0,
flexShrink: !0,
fontWeight: !0,
gridArea: !0,
gridColumn: !0,
gridColumnEnd: !0,
gridColumnStart: !0,
gridRow: !0,
gridRowEnd: !0,
gridRowStart: !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 r, o, a, s = Y(t),
l = Qe.test(t),
c = e.style;
if (l || (t = Ke(s)), a = x.cssHooks[t] || x.cssHooks[s], void 0 === n) return a && "get" in a && void 0 !== (r = a.get(e, !1, i)) ? r : c[t];
"string" === (o = typeof n) && (r = ne.exec(n)) && r[1] && (n = ce(e, t, r), o = "number"), null != n && n == n && ("number" !== o || l || (n += r && r[3] || (x.cssNumber[s] ? "" : "px")), y.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (c[t] = "inherit"), a && "set" in a && void 0 === (n = a.set(e, n, i)) || (l ? c.setProperty(t, n) : c[t] = n))
}
},
css: function(e, t, n, i) {
var r, o, a, s = Y(t);
return Qe.test(t) || (t = Ke(s)), (a = x.cssHooks[t] || x.cssHooks[s]) && "get" in a && (r = a.get(e, !0, n)), void 0 === r && (r = Ve(e, t, i)), "normal" === r && t in Je && (r = Je[t]), "" === n || n ? (o = parseFloat(r), !0 === n || isFinite(o) ? o || 0 : r) : r
}
}), x.each(["height", "width"], function(e, l) {
x.cssHooks[l] = {
get: function(e, t, n) {
if (t) return !Xe.test(x.css(e, "display")) || e.getClientRects().length && e.getBoundingClientRect().width ? tt(e, l, n) : se(e, $e, function() {
return tt(e, l, n)
})
},
set: function(e, t, n) {
var i, r = Fe(e),
o = !y.scrollboxSize() && "absolute" === r.position,
a = (o || n) && "border-box" === x.css(e, "boxSizing", !1, r),
s = n ? et(e, l, n, a, r) : 0;
return a && o && (s -= Math.ceil(e["offset" + l[0].toUpperCase() + l.slice(1)] - parseFloat(r[l]) - et(e, l, "border", !1, r) - .5)), s && (i = ne.exec(t)) && "px" !== (i[3] || "px") && (e.style[l] = t, t = x.css(e, l)), Ze(0, t, s)
}
}
}), x.cssHooks.marginLeft = Ue(y.reliableMarginLeft, function(e, t) {
if (t) return (parseFloat(Ve(e, "marginLeft")) || e.getBoundingClientRect().left - se(e, {
marginLeft: 0
}, function() {
return e.getBoundingClientRect().left
})) + "px"
}), x.each({
margin: "",
padding: "",
border: "Width"
}, function(r, o) {
x.cssHooks[r + o] = {
expand: function(e) {
for (var t = 0, n = {}, i = "string" == typeof e ? e.split(" ") : [e]; t < 4; t++) n[r + ie[t] + o] = i[t] || i[t - 2] || i[0];
return n
}
}, "margin" !== r && (x.cssHooks[r + o].set = Ze)
}), x.fn.extend({
css: function(e, t) {
return V(this, function(e, t, n) {
var i, r, o = {},
a = 0;
if (Array.isArray(t)) {
for (i = Fe(e), r = t.length; a < r; a++) o[t[a]] = x.css(e, t[a], !1, i);
return o
}
return void 0 !== n ? x.style(e, t, n) : x.css(e, t)
}, e, t, 1 < arguments.length)
}
}), ((x.Tween = nt).prototype = {
constructor: nt,
init: function(e, t, n, i, r, o) {
this.elem = e, this.prop = n, this.easing = r || x.easing._default, this.options = t, this.start = this.now = this.cur(), this.end = i, this.unit = o || (x.cssNumber[n] ? "" : "px")
},
cur: function() {
var e = nt.propHooks[this.prop];
return e && e.get ? e.get(this) : nt.propHooks._default.get(this)
},
run: function(e) {
var t, n = nt.propHooks[this.prop];
return this.options.duration ? this.pos = t = x.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) : nt.propHooks._default.set(this), this
}
}).init.prototype = nt.prototype, (nt.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 = x.css(e.elem, e.prop, "")) && "auto" !== t ? t : 0
},
set: function(e) {
x.fx.step[e.prop] ? x.fx.step[e.prop](e) : 1 !== e.elem.nodeType || !x.cssHooks[e.prop] && null == e.elem.style[Ke(e.prop)] ? e.elem[e.prop] = e.now : x.style(e.elem, e.prop, e.now + e.unit)
}
}
}).scrollTop = nt.propHooks.scrollLeft = {
set: function(e) {
e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
}
}, x.easing = {
linear: function(e) {
return e
},
swing: function(e) {
return .5 - Math.cos(e * Math.PI) / 2
},
_default: "swing"
}, x.fx = nt.prototype.init, x.fx.step = {};
var it, rt, ot = /^(?:toggle|show|hide)$/,
at = /queueHooks$/;
function st() {
rt && (!1 === A.hidden && T.requestAnimationFrame ? T.requestAnimationFrame(st) : T.setTimeout(st, x.fx.interval), x.fx.tick())
}
function lt() {
return T.setTimeout(function() {
it = void 0
}), it = Date.now()
}
function ct(e, t) {
var n, i = 0,
r = {
height: e
};
for (t = t ? 1 : 0; i < 4; i += 2 - t) r["margin" + (n = ie[i])] = r["padding" + n] = e;
return t && (r.opacity = r.width = e), r
}
function ut(e, t, n) {
for (var i, r = (ft.tweeners[t] || []).concat(ft.tweeners["*"]), o = 0, a = r.length; o < a; o++)
if (i = r[o].call(n, t, e)) return i
}
function ft(o, e, t) {
var n, a, i = 0,
r = ft.prefilters.length,
s = x.Deferred().always(function() {
delete l.elem
}),
l = function() {
if (a) return !1;
for (var e = it || lt(), t = Math.max(0, c.startTime + c.duration - e), n = 1 - (t / c.duration || 0), i = 0, r = c.tweens.length; i < r; i++) c.tweens[i].run(n);
return s.notifyWith(o, [c, n, t]), n < 1 && r ? t : (r || s.notifyWith(o, [c, 1, 0]), s.resolveWith(o, [c]), !1)
},
c = s.promise({
elem: o,
props: x.extend({}, e),
opts: x.extend(!0, {
specialEasing: {},
easing: x.easing._default
}, t),
originalProperties: e,
originalOptions: t,
startTime: it || lt(),
duration: t.duration,
tweens: [],
createTween: function(e, t) {
var n = x.Tween(o, c.opts, e, t, c.opts.specialEasing[e] || c.opts.easing);
return c.tweens.push(n), n
},
stop: function(e) {
var t = 0,
n = e ? c.tweens.length : 0;
if (a) return this;
for (a = !0; t < n; t++) c.tweens[t].run(1);
return e ? (s.notifyWith(o, [c, 1, 0]), s.resolveWith(o, [c, e])) : s.rejectWith(o, [c, e]), this
}
}),
u = c.props;
for (! function(e, t) {
var n, i, r, o, a;
for (n in e)
if (r = t[i = Y(n)], o = e[n], Array.isArray(o) && (r = o[1], o = e[n] = o[0]), n !== i && (e[i] = o, delete e[n]), (a = x.cssHooks[i]) && "expand" in a)
for (n in o = a.expand(o), delete e[i], o) n in e || (e[n] = o[n], t[n] = r);
else t[i] = r
}(u, c.opts.specialEasing); i < r; i++)
if (n = ft.prefilters[i].call(c, o, u, c.opts)) return b(n.stop) && (x._queueHooks(c.elem, c.opts.queue).stop = n.stop.bind(n)), n;
return x.map(u, ut, c), b(c.opts.start) && c.opts.start.call(o, c), c.progress(c.opts.progress).done(c.opts.done, c.opts.complete).fail(c.opts.fail).always(c.opts.always), x.fx.timer(x.extend(l, {
elem: o,
anim: c,
queue: c.opts.queue
})), c
}
x.Animation = x.extend(ft, {
tweeners: {
"*": [function(e, t) {
var n = this.createTween(e, t);
return ce(n.elem, e, ne.exec(t), n), n
}]
},
tweener: function(e, t) {
for (var n, i = 0, r = (e = b(e) ? (t = e, ["*"]) : e.match(j)).length; i < r; i++) n = e[i], ft.tweeners[n] = ft.tweeners[n] || [], ft.tweeners[n].unshift(t)
},
prefilters: [function(e, t, n) {
var i, r, o, a, s, l, c, u, f = "width" in t || "height" in t,
d = this,
p = {},
h = e.style,
m = e.nodeType && le(e),
g = Q.get(e, "fxshow");
for (i in n.queue || (null == (a = x._queueHooks(e, "fx")).unqueued && (a.unqueued = 0, s = a.empty.fire, a.empty.fire = function() {
a.unqueued || s()
}), a.unqueued++, d.always(function() {
d.always(function() {
a.unqueued--, x.queue(e, "fx").length || a.empty.fire()
})
})), t)
if (r = t[i], ot.test(r)) {
if (delete t[i], o = o || "toggle" === r, r === (m ? "hide" : "show")) {
if ("show" !== r || !g || void 0 === g[i]) continue;
m = !0
}
p[i] = g && g[i] || x.style(e, i)
}
if ((l = !x.isEmptyObject(t)) || !x.isEmptyObject(p))
for (i in f && 1 === e.nodeType && (n.overflow = [h.overflow, h.overflowX, h.overflowY], null == (c = g && g.display) && (c = Q.get(e, "display")), "none" === (u = x.css(e, "display")) && (c ? u = c : (de([e], !0), c = e.style.display || c, u = x.css(e, "display"), de([e]))), ("inline" === u || "inline-block" === u && null != c) && "none" === x.css(e, "float") && (l || (d.done(function() {
h.display = c
}), null == c && (u = h.display, c = "none" === u ? "" : u)), h.display = "inline-block")), n.overflow && (h.overflow = "hidden", d.always(function() {
h.overflow = n.overflow[0], h.overflowX = n.overflow[1], h.overflowY = n.overflow[2]
})), l = !1, p) l || (g ? "hidden" in g && (m = g.hidden) : g = Q.access(e, "fxshow", {
display: c
}), o && (g.hidden = !m), m && de([e], !0), d.done(function() {
for (i in m || de([e]), Q.remove(e, "fxshow"), p) x.style(e, i, p[i])
})), l = ut(m ? g[i] : 0, i, d), i in g || (g[i] = l.start, m && (l.end = l.start, l.start = 0))
}],
prefilter: function(e, t) {
t ? ft.prefilters.unshift(e) : ft.prefilters.push(e)
}
}), x.speed = function(e, t, n) {
var i = e && "object" == typeof e ? x.extend({}, e) : {
complete: n || !n && t || b(e) && e,
duration: e,
easing: n && t || t && !b(t) && t
};
return x.fx.off ? i.duration = 0 : "number" != typeof i.duration && (i.duration in x.fx.speeds ? i.duration = x.fx.speeds[i.duration] : i.duration = x.fx.speeds._default), null != i.queue && !0 !== i.queue || (i.queue = "fx"), i.old = i.complete, i.complete = function() {
b(i.old) && i.old.call(this), i.queue && x.dequeue(this, i.queue)
}, i
}, x.fn.extend({
fadeTo: function(e, t, n, i) {
return this.filter(le).css("opacity", 0).show().end().animate({
opacity: t
}, e, n, i)
},
animate: function(t, e, n, i) {
function r() {
var e = ft(this, x.extend({}, t), a);
(o || Q.get(this, "finish")) && e.stop(!0)
}
var o = x.isEmptyObject(t),
a = x.speed(e, n, i);
return r.finish = r, o || !1 === a.queue ? this.each(r) : this.queue(a.queue, r)
},
stop: function(r, e, o) {
function a(e) {
var t = e.stop;
delete e.stop, t(o)
}
return "string" != typeof r && (o = e, e = r, r = void 0), e && !1 !== r && this.queue(r || "fx", []), this.each(function() {
var e = !0,
t = null != r && r + "queueHooks",
n = x.timers,
i = Q.get(this);
if (t) i[t] && i[t].stop && a(i[t]);
else
for (t in i) i[t] && i[t].stop && at.test(t) && a(i[t]);
for (t = n.length; t--;) n[t].elem !== this || null != r && n[t].queue !== r || (n[t].anim.stop(o), e = !1, n.splice(t, 1));
!e && o || x.dequeue(this, r)
})
},
finish: function(a) {
return !1 !== a && (a = a || "fx"), this.each(function() {
var e, t = Q.get(this),
n = t[a + "queue"],
i = t[a + "queueHooks"],
r = x.timers,
o = n ? n.length : 0;
for (t.finish = !0, x.queue(this, a, []), i && i.stop && i.stop.call(this, !0), e = r.length; e--;) r[e].elem === this && r[e].queue === a && (r[e].anim.stop(!0), r.splice(e, 1));
for (e = 0; e < o; e++) n[e] && n[e].finish && n[e].finish.call(this);
delete t.finish
})
}
}), x.each(["toggle", "show", "hide"], function(e, i) {
var r = x.fn[i];
x.fn[i] = function(e, t, n) {
return null == e || "boolean" == typeof e ? r.apply(this, arguments) : this.animate(ct(i, !0), e, t, n)
}
}), x.each({
slideDown: ct("show"),
slideUp: ct("hide"),
slideToggle: ct("toggle"),
fadeIn: {
opacity: "show"
},
fadeOut: {
opacity: "hide"
},
fadeToggle: {
opacity: "toggle"
}
}, function(e, i) {
x.fn[e] = function(e, t, n) {
return this.animate(i, e, t, n)
}
}), x.timers = [], x.fx.tick = function() {
var e, t = 0,
n = x.timers;
for (it = Date.now(); t < n.length; t++)(e = n[t])() || n[t] !== e || n.splice(t--, 1);
n.length || x.fx.stop(), it = void 0
}, x.fx.timer = function(e) {
x.timers.push(e), x.fx.start()
}, x.fx.interval = 13, x.fx.start = function() {
rt || (rt = !0, st())
}, x.fx.stop = function() {
rt = null
}, x.fx.speeds = {
slow: 600,
fast: 200,
_default: 400
}, x.fn.delay = function(i, e) {
return i = x.fx && x.fx.speeds[i] || i, e = e || "fx", this.queue(e, function(e, t) {
var n = T.setTimeout(e, i);
t.stop = function() {
T.clearTimeout(n)
}
})
},
function() {
var e = A.createElement("input"),
t = A.createElement("select").appendChild(A.createElement("option"));
e.type = "checkbox", y.checkOn = "" !== e.value, y.optSelected = t.selected, (e = A.createElement("input")).value = "t", e.type = "radio", y.radioValue = "t" === e.value
}();
var dt, pt = x.expr.attrHandle;
x.fn.extend({
attr: function(e, t) {
return V(this, x.attr, e, t, 1 < arguments.length)
},
removeAttr: function(e) {
return this.each(function() {
x.removeAttr(this, e)
})
}
}), x.extend({
attr: function(e, t, n) {
var i, r, o = e.nodeType;
if (3 !== o && 8 !== o && 2 !== o) return void 0 === e.getAttribute ? x.prop(e, t, n) : (1 === o && x.isXMLDoc(e) || (r = x.attrHooks[t.toLowerCase()] || (x.expr.match.bool.test(t) ? dt : void 0)), void 0 !== n ? null === n ? void x.removeAttr(e, t) : r && "set" in r && void 0 !== (i = r.set(e, n, t)) ? i : (e.setAttribute(t, n + ""), n) : r && "get" in r && null !== (i = r.get(e, t)) ? i : null == (i = x.find.attr(e, t)) ? void 0 : i)
},
attrHooks: {
type: {
set: function(e, t) {
if (!y.radioValue && "radio" === t && S(e, "input")) {
var n = e.value;
return e.setAttribute("type", t), n && (e.value = n), t
}
}
}
},
removeAttr: function(e, t) {
var n, i = 0,
r = t && t.match(j);
if (r && 1 === e.nodeType)
for (; n = r[i++];) e.removeAttribute(n)
}
}), dt = {
set: function(e, t, n) {
return !1 === t ? x.removeAttr(e, n) : e.setAttribute(n, n), n
}
}, x.each(x.expr.match.bool.source.match(/\w+/g), function(e, t) {
var a = pt[t] || x.find.attr;
pt[t] = function(e, t, n) {
var i, r, o = t.toLowerCase();
return n || (r = pt[o], pt[o] = i, i = null != a(e, t, n) ? o : null, pt[o] = r), i
}
});
var ht = /^(?:input|select|textarea|button)$/i,
mt = /^(?:a|area)$/i;
function gt(e) {
return (e.match(j) || []).join(" ")
}
function vt(e) {
return e.getAttribute && e.getAttribute("class") || ""
}
function yt(e) {
return Array.isArray(e) ? e : "string" == typeof e && e.match(j) || []
}
x.fn.extend({
prop: function(e, t) {
return V(this, x.prop, e, t, 1 < arguments.length)
},
removeProp: function(e) {
return this.each(function() {
delete this[x.propFix[e] || e]
})
}
}), x.extend({
prop: function(e, t, n) {
var i, r, o = e.nodeType;
if (3 !== o && 8 !== o && 2 !== o) return 1 === o && x.isXMLDoc(e) || (t = x.propFix[t] || t, r = x.propHooks[t]), void 0 !== n ? r && "set" in r && void 0 !== (i = r.set(e, n, t)) ? i : e[t] = n : r && "get" in r && null !== (i = r.get(e, t)) ? i : e[t]
},
propHooks: {
tabIndex: {
get: function(e) {
var t = x.find.attr(e, "tabindex");
return t ? parseInt(t, 10) : ht.test(e.nodeName) || mt.test(e.nodeName) && e.href ? 0 : -1
}
}
},
propFix: {
for: "htmlFor",
class: "className"
}
}), y.optSelected || (x.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)
}
}), x.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
x.propFix[this.toLowerCase()] = this
}), x.fn.extend({
addClass: function(t) {
var e, n, i, r, o, a, s, l = 0;
if (b(t)) return this.each(function(e) {
x(this).addClass(t.call(this, e, vt(this)))
});
if ((e = yt(t)).length)
for (; n = this[l++];)
if (r = vt(n), i = 1 === n.nodeType && " " + gt(r) + " ") {
for (a = 0; o = e[a++];) i.indexOf(" " + o + " ") < 0 && (i += o + " ");
r !== (s = gt(i)) && n.setAttribute("class", s)
}
return this
},
removeClass: function(t) {
var e, n, i, r, o, a, s, l = 0;
if (b(t)) return this.each(function(e) {
x(this).removeClass(t.call(this, e, vt(this)))
});
if (!arguments.length) return this.attr("class", "");
if ((e = yt(t)).length)
for (; n = this[l++];)
if (r = vt(n), i = 1 === n.nodeType && " " + gt(r) + " ") {
for (a = 0; o = e[a++];)
for (; - 1 < i.indexOf(" " + o + " ");) i = i.replace(" " + o + " ", " ");
r !== (s = gt(i)) && n.setAttribute("class", s)
}
return this
},
toggleClass: function(r, t) {
var o = typeof r,
a = "string" == o || Array.isArray(r);
return "boolean" == typeof t && a ? t ? this.addClass(r) : this.removeClass(r) : b(r) ? this.each(function(e) {
x(this).toggleClass(r.call(this, e, vt(this), t), t)
}) : this.each(function() {
var e, t, n, i;
if (a)
for (t = 0, n = x(this), i = yt(r); e = i[t++];) n.hasClass(e) ? n.removeClass(e) : n.addClass(e);
else void 0 !== r && "boolean" != o || ((e = vt(this)) && Q.set(this, "__className__", e), this.setAttribute && this.setAttribute("class", e || !1 === r ? "" : Q.get(this, "__className__") || ""))
})
},
hasClass: function(e) {
var t, n, i = 0;
for (t = " " + e + " "; n = this[i++];)
if (1 === n.nodeType && -1 < (" " + gt(vt(n)) + " ").indexOf(t)) return !0;
return !1
}
});
var bt = /\r/g;
x.fn.extend({
val: function(n) {
var i, e, r, t = this[0];
return arguments.length ? (r = b(n), this.each(function(e) {
var t;
1 === this.nodeType && (null == (t = r ? n.call(this, e, x(this).val()) : n) ? t = "" : "number" == typeof t ? t += "" : Array.isArray(t) && (t = x.map(t, function(e) {
return null == e ? "" : e + ""
})), (i = x.valHooks[this.type] || x.valHooks[this.nodeName.toLowerCase()]) && "set" in i && void 0 !== i.set(this, t, "value") || (this.value = t))
})) : t ? (i = x.valHooks[t.type] || x.valHooks[t.nodeName.toLowerCase()]) && "get" in i && void 0 !== (e = i.get(t, "value")) ? e : "string" == typeof(e = t.value) ? e.replace(bt, "") : null == e ? "" : e : void 0
}
}), x.extend({
valHooks: {
option: {
get: function(e) {
var t = x.find.attr(e, "value");
return null != t ? t : gt(x.text(e))
}
},
select: {
get: function(e) {
var t, n, i, r = e.options,
o = e.selectedIndex,
a = "select-one" === e.type,
s = a ? null : [],
l = a ? o + 1 : r.length;
for (i = o < 0 ? l : a ? o : 0; i < l; i++)
if (((n = r[i]).selected || i === o) && !n.disabled && (!n.parentNode.disabled || !S(n.parentNode, "optgroup"))) {
if (t = x(n).val(), a) return t;
s.push(t)
}
return s
},
set: function(e, t) {
for (var n, i, r = e.options, o = x.makeArray(t), a = r.length; a--;)((i = r[a]).selected = -1 < x.inArray(x.valHooks.option.get(i), o)) && (n = !0);
return n || (e.selectedIndex = -1), o
}
}
}
}), x.each(["radio", "checkbox"], function() {
x.valHooks[this] = {
set: function(e, t) {
if (Array.isArray(t)) return e.checked = -1 < x.inArray(x(e).val(), t)
}
}, y.checkOn || (x.valHooks[this].get = function(e) {
return null === e.getAttribute("value") ? "on" : e.value
})
}), y.focusin = "onfocusin" in T;
function Et(e) {
e.stopPropagation()
}
var wt = /^(?:focusinfocus|focusoutblur)$/;
x.extend(x.event, {
trigger: function(e, t, n, i) {
var r, o, a, s, l, c, u, f, d = [n || A],
p = v.call(e, "type") ? e.type : e,
h = v.call(e, "namespace") ? e.namespace.split(".") : [];
if (o = f = a = n = n || A, 3 !== n.nodeType && 8 !== n.nodeType && !wt.test(p + x.event.triggered) && (-1 < p.indexOf(".") && (p = (h = p.split(".")).shift(), h.sort()), l = p.indexOf(":") < 0 && "on" + p, (e = e[x.expando] ? e : new x.Event(p, "object" == typeof e && e)).isTrigger = i ? 2 : 3, e.namespace = h.join("."), e.rnamespace = e.namespace ? new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, e.result = void 0, e.target || (e.target = n), t = null == t ? [e] : x.makeArray(t, [e]), u = x.event.special[p] || {}, i || !u.trigger || !1 !== u.trigger.apply(n, t))) {
if (!i && !u.noBubble && !m(n)) {
for (s = u.delegateType || p, wt.test(s + p) || (o = o.parentNode); o; o = o.parentNode) d.push(o), a = o;
a === (n.ownerDocument || A) && d.push(a.defaultView || a.parentWindow || T)
}
for (r = 0;
(o = d[r++]) && !e.isPropagationStopped();) f = o, e.type = 1 < r ? s : u.bindType || p, (c = (Q.get(o, "events") || {})[e.type] && Q.get(o, "handle")) && c.apply(o, t), (c = l && o[l]) && c.apply && K(o) && (e.result = c.apply(o, t), !1 === e.result && e.preventDefault());
return e.type = p, i || e.isDefaultPrevented() || u._default && !1 !== u._default.apply(d.pop(), t) || !K(n) || l && b(n[p]) && !m(n) && ((a = n[l]) && (n[l] = null), x.event.triggered = p, e.isPropagationStopped() && f.addEventListener(p, Et), n[p](), e.isPropagationStopped() && f.removeEventListener(p, Et), x.event.triggered = void 0, a && (n[l] = a)), e.result
}
},
simulate: function(e, t, n) {
var i = x.extend(new x.Event, n, {
type: e,
isSimulated: !0
});
x.event.trigger(i, null, t)
}
}), x.fn.extend({
trigger: function(e, t) {
return this.each(function() {
x.event.trigger(e, t, this)
})
},
triggerHandler: function(e, t) {
var n = this[0];
if (n) return x.event.trigger(e, t, n, !0)
}
}), y.focusin || x.each({
focus: "focusin",
blur: "focusout"
}, function(n, i) {
function r(e) {
x.event.simulate(i, e.target, x.event.fix(e))
}
x.event.special[i] = {
setup: function() {
var e = this.ownerDocument || this,
t = Q.access(e, i);
t || e.addEventListener(n, r, !0), Q.access(e, i, (t || 0) + 1)
},
teardown: function() {
var e = this.ownerDocument || this,
t = Q.access(e, i) - 1;
t ? Q.access(e, i, t) : (e.removeEventListener(n, r, !0), Q.remove(e, i))
}
}
});
var _t = T.location,
Tt = Date.now(),
At = /\?/;
x.parseXML = function(e) {
var t;
if (!e || "string" != typeof e) return null;
try {
t = (new T.DOMParser).parseFromString(e, "text/xml")
} catch (e) {
t = void 0
}
return t && !t.getElementsByTagName("parsererror").length || x.error("Invalid XML: " + e), t
};
var xt = /\[\]$/,
Ct = /\r?\n/g,
Dt = /^(?:submit|button|image|reset|file)$/i,
St = /^(?:input|select|textarea|keygen)/i;
function It(n, e, i, r) {
var t;
if (Array.isArray(e)) x.each(e, function(e, t) {
i || xt.test(n) ? r(n, t) : It(n + "[" + ("object" == typeof t && null != t ? e : "") + "]", t, i, r)
});
else if (i || "object" !== w(e)) r(n, e);
else
for (t in e) It(n + "[" + t + "]", e[t], i, r)
}
x.param = function(e, t) {
function n(e, t) {
var n = b(t) ? t() : t;
r[r.length] = encodeURIComponent(e) + "=" + encodeURIComponent(null == n ? "" : n)
}
var i, r = [];
if (null == e) return "";
if (Array.isArray(e) || e.jquery && !x.isPlainObject(e)) x.each(e, function() {
n(this.name, this.value)
});
else
for (i in e) It(i, e[i], t, n);
return r.join("&")
}, x.fn.extend({
serialize: function() {
return x.param(this.serializeArray())
},
serializeArray: function() {
return this.map(function() {
var e = x.prop(this, "elements");
return e ? x.makeArray(e) : this
}).filter(function() {
var e = this.type;
return this.name && !x(this).is(":disabled") && St.test(this.nodeName) && !Dt.test(e) && (this.checked || !pe.test(e))
}).map(function(e, t) {
var n = x(this).val();
return null == n ? null : Array.isArray(n) ? x.map(n, function(e) {
return {
name: t.name,
value: e.replace(Ct, "\r\n")
}
}) : {
name: t.name,
value: n.replace(Ct, "\r\n")
}
}).get()
}
});
var Lt = /%20/g,
Ot = /#.*$/,
Nt = /([?&])_=[^&]*/,
kt = /^(.*?):[ \t]*([^\r\n]*)$/gm,
Mt = /^(?:GET|HEAD)$/,
Pt = /^\/\//,
jt = {},
Bt = {},
Ht = "*/".concat("*"),
Rt = A.createElement("a");
function Wt(o) {
return function(e, t) {
"string" != typeof e && (t = e, e = "*");
var n, i = 0,
r = e.toLowerCase().match(j) || [];
if (b(t))
for (; n = r[i++];) "+" === n[0] ? (n = n.slice(1) || "*", (o[n] = o[n] || []).unshift(t)) : (o[n] = o[n] || []).push(t)
}
}
function Ft(t, r, o, a) {
var s = {},
l = t === Bt;
function c(e) {
var i;
return s[e] = !0, x.each(t[e] || [], function(e, t) {
var n = t(r, o, a);
return "string" != typeof n || l || s[n] ? l ? !(i = n) : void 0 : (r.dataTypes.unshift(n), c(n), !1)
}), i
}
return c(r.dataTypes[0]) || !s["*"] && c("*")
}
function qt(e, t) {
var n, i, r = x.ajaxSettings.flatOptions || {};
for (n in t) void 0 !== t[n] && ((r[n] ? e : i = i || {})[n] = t[n]);
return i && x.extend(!0, e, i), e
}
Rt.href = _t.href, x.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: {
"*": Ht,
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": x.parseXML
},
flatOptions: {
url: !0,
context: !0
}
},
ajaxSetup: function(e, t) {
return t ? qt(qt(e, x.ajaxSettings), t) : qt(x.ajaxSettings, e)
},
ajaxPrefilter: Wt(jt),
ajaxTransport: Wt(Bt),
ajax: function(e, t) {
"object" == typeof e && (t = e, e = void 0), t = t || {};
var u, f, d, n, p, i, h, m, r, o, g = x.ajaxSetup({}, t),
v = g.context || g,
y = g.context && (v.nodeType || v.jquery) ? x(v) : x.event,
b = x.Deferred(),
E = x.Callbacks("once memory"),
w = g.statusCode || {},
a = {},
s = {},
l = "canceled",
_ = {
readyState: 0,
getResponseHeader: function(e) {
var t;
if (h) {
if (!n)
for (n = {}; t = kt.exec(d);) n[t[1].toLowerCase() + " "] = (n[t[1].toLowerCase() + " "] || []).concat(t[2]);
t = n[e.toLowerCase() + " "]
}
return null == t ? null : t.join(", ")
},
getAllResponseHeaders: function() {
return h ? d : null
},
setRequestHeader: function(e, t) {
return null == h && (e = s[e.toLowerCase()] = s[e.toLowerCase()] || e, a[e] = t), this
},
overrideMimeType: function(e) {
return null == h && (g.mimeType = e), this
},
statusCode: function(e) {
var t;
if (e)
if (h) _.always(e[_.status]);
else
for (t in e) w[t] = [w[t], e[t]];
return this
},
abort: function(e) {
var t = e || l;
return u && u.abort(t), c(0, t), this
}
};
if (b.promise(_), g.url = ((e || g.url || _t.href) + "").replace(Pt, _t.protocol + "//"), g.type = t.method || t.type || g.method || g.type, g.dataTypes = (g.dataType || "*").toLowerCase().match(j) || [""], null == g.crossDomain) {
i = A.createElement("a");
try {
i.href = g.url, i.href = i.href, g.crossDomain = Rt.protocol + "//" + Rt.host != i.protocol + "//" + i.host
} catch (e) {
g.crossDomain = !0
}
}
if (g.data && g.processData && "string" != typeof g.data && (g.data = x.param(g.data, g.traditional)), Ft(jt, g, t, _), h) return _;
for (r in (m = x.event && g.global) && 0 == x.active++ && x.event.trigger("ajaxStart"), g.type = g.type.toUpperCase(), g.hasContent = !Mt.test(g.type), f = g.url.replace(Ot, ""), g.hasContent ? g.data && g.processData && 0 === (g.contentType || "").indexOf("application/x-www-form-urlencoded") && (g.data = g.data.replace(Lt, "+")) : (o = g.url.slice(f.length), g.data && (g.processData || "string" == typeof g.data) && (f += (At.test(f) ? "&" : "?") + g.data, delete g.data), !1 === g.cache && (f = f.replace(Nt, "$1"), o = (At.test(f) ? "&" : "?") + "_=" + Tt++ + o), g.url = f + o), g.ifModified && (x.lastModified[f] && _.setRequestHeader("If-Modified-Since", x.lastModified[f]), x.etag[f] && _.setRequestHeader("If-None-Match", x.etag[f])), (g.data && g.hasContent && !1 !== g.contentType || t.contentType) && _.setRequestHeader("Content-Type", g.contentType), _.setRequestHeader("Accept", g.dataTypes[0] && g.accepts[g.dataTypes[0]] ? g.accepts[g.dataTypes[0]] + ("*" !== g.dataTypes[0] ? ", " + Ht + "; q=0.01" : "") : g.accepts["*"]), g.headers) _.setRequestHeader(r, g.headers[r]);
if (g.beforeSend && (!1 === g.beforeSend.call(v, _, g) || h)) return _.abort();
if (l = "abort", E.add(g.complete), _.done(g.success), _.fail(g.error), u = Ft(Bt, g, t, _)) {
if (_.readyState = 1, m && y.trigger("ajaxSend", [_, g]), h) return _;
g.async && 0 < g.timeout && (p = T.setTimeout(function() {
_.abort("timeout")
}, g.timeout));
try {
h = !1, u.send(a, c)
} catch (e) {
if (h) throw e;
c(-1, e)
}
} else c(-1, "No Transport");
function c(e, t, n, i) {
var r, o, a, s, l, c = t;
h || (h = !0, p && T.clearTimeout(p), u = void 0, d = i || "", _.readyState = 0 < e ? 4 : 0, r = 200 <= e && e < 300 || 304 === e, n && (s = function(e, t, n) {
for (var i, r, o, a, s = e.contents, l = e.dataTypes;
"*" === l[0];) l.shift(), void 0 === i && (i = e.mimeType || t.getResponseHeader("Content-Type"));
if (i)
for (r in s)
if (s[r] && s[r].test(i)) {
l.unshift(r);
break
}
if (l[0] in n) o = l[0];
else {
for (r in n) {
if (!l[0] || e.converters[r + " " + l[0]]) {
o = r;
break
}
a = a || r
}
o = o || a
}
if (o) return o !== l[0] && l.unshift(o), n[o]
}(g, _, n)), s = function(e, t, n, i) {
var r, o, a, s, l, c = {},
u = e.dataTypes.slice();
if (u[1])
for (a in e.converters) c[a.toLowerCase()] = e.converters[a];
for (o = u.shift(); o;)
if (e.responseFields[o] && (n[e.responseFields[o]] = t), !l && i && e.dataFilter && (t = e.dataFilter(t, e.dataType)), l = o, o = u.shift())
if ("*" === o) o = l;
else if ("*" !== l && l !== o) {
if (!(a = c[l + " " + o] || c["* " + o]))
for (r in c)
if ((s = r.split(" "))[1] === o && (a = c[l + " " + s[0]] || c["* " + s[0]])) {
!0 === a ? a = c[r] : !0 !== c[r] && (o = s[0], u.unshift(s[1]));
break
}
if (!0 !== a)
if (a && e.throws) t = a(t);
else try {
t = a(t)
} catch (e) {
return {
state: "parsererror",
error: a ? e : "No conversion from " + l + " to " + o
}
}
}
return {
state: "success",
data: t
}
}(g, s, _, r), r ? (g.ifModified && ((l = _.getResponseHeader("Last-Modified")) && (x.lastModified[f] = l), (l = _.getResponseHeader("etag")) && (x.etag[f] = l)), 204 === e || "HEAD" === g.type ? c = "nocontent" : 304 === e ? c = "notmodified" : (c = s.state, o = s.data, r = !(a = s.error))) : (a = c, !e && c || (c = "error", e < 0 && (e = 0))), _.status = e, _.statusText = (t || c) + "", r ? b.resolveWith(v, [o, c, _]) : b.rejectWith(v, [_, c, a]), _.statusCode(w), w = void 0, m && y.trigger(r ? "ajaxSuccess" : "ajaxError", [_, g, r ? o : a]), E.fireWith(v, [_, c]), m && (y.trigger("ajaxComplete", [_, g]), --x.active || x.event.trigger("ajaxStop")))
}
return _
},
getJSON: function(e, t, n) {
return x.get(e, t, n, "json")
},
getScript: function(e, t) {
return x.get(e, void 0, t, "script")
}
}), x.each(["get", "post"], function(e, r) {
x[r] = function(e, t, n, i) {
return b(t) && (i = i || n, n = t, t = void 0), x.ajax(x.extend({
url: e,
type: r,
dataType: i,
data: t,
success: n
}, x.isPlainObject(e) && e))
}
}), x._evalUrl = function(e, t) {
return x.ajax({
url: e,
type: "GET",
dataType: "script",
cache: !0,
async: !1,
global: !1,
converters: {
"text script": function() {}
},
dataFilter: function(e) {
x.globalEval(e, t)
}
})
}, x.fn.extend({
wrapAll: function(e) {
var t;
return this[0] && (b(e) && (e = e.call(this[0])), t = x(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(n) {
return b(n) ? this.each(function(e) {
x(this).wrapInner(n.call(this, e))
}) : this.each(function() {
var e = x(this),
t = e.contents();
t.length ? t.wrapAll(n) : e.append(n)
})
},
wrap: function(t) {
var n = b(t);
return this.each(function(e) {
x(this).wrapAll(n ? t.call(this, e) : t)
})
},
unwrap: function(e) {
return this.parent(e).not("body").each(function() {
x(this).replaceWith(this.childNodes)
}), this
}
}), x.expr.pseudos.hidden = function(e) {
return !x.expr.pseudos.visible(e)
}, x.expr.pseudos.visible = function(e) {
return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length)
}, x.ajaxSettings.xhr = function() {
try {
return new T.XMLHttpRequest
} catch (e) {}
};
var Vt = {
0: 200,
1223: 204
},
Ut = x.ajaxSettings.xhr();
y.cors = !!Ut && "withCredentials" in Ut, y.ajax = Ut = !!Ut, x.ajaxTransport(function(r) {
var o, a;
if (y.cors || Ut && !r.crossDomain) return {
send: function(e, t) {
var n, i = r.xhr();
if (i.open(r.type, r.url, r.async, r.username, r.password), r.xhrFields)
for (n in r.xhrFields) i[n] = r.xhrFields[n];
for (n in r.mimeType && i.overrideMimeType && i.overrideMimeType(r.mimeType), r.crossDomain || e["X-Requested-With"] || (e["X-Requested-With"] = "XMLHttpRequest"), e) i.setRequestHeader(n, e[n]);
o = function(e) {
return function() {
o && (o = a = i.onload = i.onerror = i.onabort = i.ontimeout = i.onreadystatechange = null, "abort" === e ? i.abort() : "error" === e ? "number" != typeof i.status ? t(0, "error") : t(i.status, i.statusText) : t(Vt[i.status] || i.status, i.statusText, "text" !== (i.responseType || "text") || "string" != typeof i.responseText ? {
binary: i.response
} : {
text: i.responseText
}, i.getAllResponseHeaders()))
}
}, i.onload = o(), a = i.onerror = i.ontimeout = o("error"), void 0 !== i.onabort ? i.onabort = a : i.onreadystatechange = function() {
4 === i.readyState && T.setTimeout(function() {
o && a()
})
}, o = o("abort");
try {
// i.send(r.hasContent && r.data || null)
} catch (e) {
if (o) throw e
}
},
abort: function() {
o && o()
}
}
}), x.ajaxPrefilter(function(e) {
e.crossDomain && (e.contents.script = !1)
}), x.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 x.globalEval(e), e
}
}
}), x.ajaxPrefilter("script", function(e) {
void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET")
}), x.ajaxTransport("script", function(n) {
var i, r;
if (n.crossDomain || n.scriptAttrs) return {
send: function(e, t) {
i = x("<script>").attr(n.scriptAttrs || {}).prop({
charset: n.scriptCharset,
src: n.url
}).on("load error", r = function(e) {
i.remove(), r = null, e && t("error" === e.type ? 404 : 200, e.type)
}), A.head.appendChild(i[0])
},
abort: function() {
r && r()
}
}
});
var zt = [],
Gt = /(=)\?(?=&|$)|\?\?/;
x.ajaxSetup({
jsonp: "callback",
jsonpCallback: function() {
var e = zt.pop() || x.expando + "_" + Tt++;
return this[e] = !0, e
}
}), x.ajaxPrefilter("json jsonp", function(e, t, n) {
var i, r, o, a = !1 !== e.jsonp && (Gt.test(e.url) ? "url" : "string" == typeof e.data && 0 === (e.contentType || "").indexOf("application/x-www-form-urlencoded") && Gt.test(e.data) && "data");
if (a || "jsonp" === e.dataTypes[0]) return i = e.jsonpCallback = b(e.jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback, a ? e[a] = e[a].replace(Gt, "$1" + i) : !1 !== e.jsonp && (e.url += (At.test(e.url) ? "&" : "?") + e.jsonp + "=" + i), e.converters["script json"] = function() {
return o || x.error(i + " was not called"), o[0]
}, e.dataTypes[0] = "json", r = T[i], T[i] = function() {
o = arguments
}, n.always(function() {
void 0 === r ? x(T).removeProp(i) : T[i] = r, e[i] && (e.jsonpCallback = t.jsonpCallback, zt.push(i)), o && b(r) && r(o[0]), o = r = void 0
}), "script"
}), y.createHTMLDocument = function() {
var e = A.implementation.createHTMLDocument("").body;
return e.innerHTML = "<form></form><form></form>", 2 === e.childNodes.length
}(), x.parseHTML = function(e, t, n) {
return "string" != typeof e ? [] : ("boolean" == typeof t && (n = t, t = !1), t || (y.createHTMLDocument ? ((i = (t = A.implementation.createHTMLDocument("")).createElement("base")).href = A.location.href, t.head.appendChild(i)) : t = A), o = !n && [], (r = I.exec(e)) ? [t.createElement(r[1])] : (r = Ee([e], t, o), o && o.length && x(o).remove(), x.merge([], r.childNodes)));
var i, r, o
}, x.fn.load = function(e, t, n) {
var i, r, o, a = this,
s = e.indexOf(" ");
return -1 < s && (i = gt(e.slice(s)), e = e.slice(0, s)), b(t) ? (n = t, t = void 0) : t && "object" == typeof t && (r = "POST"), 0 < a.length && x.ajax({
url: e,
type: r || "GET",
dataType: "html",
data: t
}).done(function(e) {
o = arguments, a.html(i ? x("<div>").append(x.parseHTML(e)).find(i) : e)
}).always(n && function(e, t) {
a.each(function() {
n.apply(this, o || [e.responseText, t, e])
})
}), this
}, x.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(e, t) {
x.fn[t] = function(e) {
return this.on(t, e)
}
}), x.expr.pseudos.animated = function(t) {
return x.grep(x.timers, function(e) {
return t === e.elem
}).length
}, x.offset = {
setOffset: function(e, t, n) {
var i, r, o, a, s, l, c = x.css(e, "position"),
u = x(e),
f = {};
"static" === c && (e.style.position = "relative"), s = u.offset(), o = x.css(e, "top"), l = x.css(e, "left"), r = ("absolute" === c || "fixed" === c) && -1 < (o + l).indexOf("auto") ? (a = (i = u.position()).top, i.left) : (a = parseFloat(o) || 0, parseFloat(l) || 0), b(t) && (t = t.call(e, n, x.extend({}, s))), null != t.top && (f.top = t.top - s.top + a), null != t.left && (f.left = t.left - s.left + r), "using" in t ? t.using.call(e, f) : u.css(f)
}
}, x.fn.extend({
offset: function(t) {
if (arguments.length) return void 0 === t ? this : this.each(function(e) {
x.offset.setOffset(this, t, e)
});
var e, n, i = this[0];
return i ? i.getClientRects().length ? (e = i.getBoundingClientRect(), n = i.ownerDocument.defaultView, {
top: e.top + n.pageYOffset,
left: e.left + n.pageXOffset
}) : {
top: 0,
left: 0
} : void 0
},
position: function() {
if (this[0]) {
var e, t, n, i = this[0],
r = {
top: 0,
left: 0
};
if ("fixed" === x.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" === x.css(e, "position");) e = e.parentNode;
e && e !== i && 1 === e.nodeType && ((r = x(e).offset()).top += x.css(e, "borderTopWidth", !0), r.left += x.css(e, "borderLeftWidth", !0))
}
return {
top: t.top - r.top - x.css(i, "marginTop", !0),
left: t.left - r.left - x.css(i, "marginLeft", !0)
}
}
},
offsetParent: function() {
return this.map(function() {
for (var e = this.offsetParent; e && "static" === x.css(e, "position");) e = e.offsetParent;
return e || re
})
}
}), x.each({
scrollLeft: "pageXOffset",
scrollTop: "pageYOffset"
}, function(t, r) {
var o = "pageYOffset" === r;
x.fn[t] = function(e) {
return V(this, function(e, t, n) {
var i;
if (m(e) ? i = e : 9 === e.nodeType && (i = e.defaultView), void 0 === n) return i ? i[r] : e[t];
i ? i.scrollTo(o ? i.pageXOffset : n, o ? n : i.pageYOffset) : e[t] = n
}, t, e, arguments.length)
}
}), x.each(["top", "left"], function(e, n) {
x.cssHooks[n] = Ue(y.pixelPosition, function(e, t) {
if (t) return t = Ve(e, n), We.test(t) ? x(e).position()[n] + "px" : t
})
}), x.each({
Height: "height",
Width: "width"
}, function(a, s) {
x.each({
padding: "inner" + a,
content: s,
"": "outer" + a
}, function(i, o) {
x.fn[o] = function(e, t) {
var n = arguments.length && (i || "boolean" != typeof e),
r = i || (!0 === e || !0 === t ? "margin" : "border");
return V(this, function(e, t, n) {
var i;
return m(e) ? 0 === o.indexOf("outer") ? e["inner" + a] : e.document.documentElement["client" + a] : 9 === e.nodeType ? (i = e.documentElement, Math.max(e.body["scroll" + a], i["scroll" + a], e.body["offset" + a], i["offset" + a], i["client" + a])) : void 0 === n ? x.css(e, t, r) : x.style(e, t, n, r)
}, s, n ? e : void 0, n)
}
})
}), x.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, n) {
x.fn[n] = function(e, t) {
return 0 < arguments.length ? this.on(n, null, e, t) : this.trigger(n)
}
}), x.fn.extend({
hover: function(e, t) {
return this.mouseenter(e).mouseleave(t || e)
}
}), x.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)
}
}), x.proxy = function(e, t) {
var n, i, r;
if ("string" == typeof t && (n = e[t], t = e, e = n), b(e)) return i = s.call(arguments, 2), (r = function() {
return e.apply(t || this, i.concat(s.call(arguments)))
}).guid = e.guid = e.guid || x.guid++, r
}, x.holdReady = function(e) {
e ? x.readyWait++ : x.ready(!0)
}, x.isArray = Array.isArray, x.parseJSON = JSON.parse, x.nodeName = S, x.isFunction = b, x.isWindow = m, x.camelCase = Y, x.type = w, x.now = Date.now, x.isNumeric = function(e) {
var t = x.type(e);
return ("number" === t || "string" === t) && !isNaN(e - parseFloat(e))
}, void 0 === ($t = function() {
return x
}.apply(Qt, [])) || (Xt.exports = $t);
var Yt = T.jQuery,
Kt = T.$;
return x.noConflict = function(e) {
return T.$ === x && (T.$ = Kt), e && T.jQuery === x && (T.jQuery = Yt), x
}, e || (T.jQuery = T.$ = x), x
})
}, function(e, t, n) {
"use strict";
n.d(t, "a", function() {
return i
});
var i = function(e) {
if (e) {
var t = (new Date).getHours(),
n = Math.ceil(t / 2) - 1,
i = t % 2 == 0,
r = e.querySelectorAll("option"),
o = 0 < n ? i ? 1 + n : n : r.length - 1;
Array.prototype.forEach.call(r, function(e, t) {
t === o && (e.selected = "selected")
})
}
}
}, function(e, t, n) {
"use strict";
n.d(t, "b", function() {
return o
}), n.d(t, "a", function() {
return a
});
var i = n(0),
r = n.n(i);
window.hideLeavePopup = function() {
o("leavePopupCookie", 1, 1), r()("#wait-popup").modal("hide")
};
function o(e, t, n) {
var i = new Date;
i.setTime(i.getTime() + 24 * n * 60 * 60 * 1e3);
var r = "expires=" + i.toGMTString();
console.log(r), document.cookie = e + "=" + t + ";" + r + ";path=/"
}
function a(e) {
for (var t = e + "=", n = decodeURIComponent(document.cookie).split(";"), i = 0; i < n.length; i++) {
for (var r = n[i];
" " == r.charAt(0);) r = r.substring(1);
if (0 == r.indexOf(t)) return r.substring(t.length, r.length)
}
return ""
}
setTimeout(function() {
r()("body").on("mouseleave", function(e) {
"" != a("leavePopupCookie") || r()("#callback_modal").is(":visible") || r()("#login").is(":visible") || r()("#signuppopup").is(":visible") || r()("#forgot").is(":visible") || r()("#wait-popup").is(":visible") || r()("#wait-popup").modal("show")
})
}, 15e3)
}, function(e, t, n) {
! function() {
var o = function() {
"use strict";
function t(e) {
var t = -e.getTimezoneOffset();
return null !== t ? t : 0
}
function n(e, t, n) {
var i = new Date;
return void 0 !== e && i.setFullYear(e), i.setDate(n), i.setMonth(t), i
}
function i(e) {
return t(n(e, 0, 2))
}
function r(e) {
return t(n(e, 5, 2))
}
return {
determine: function() {
var e = function() {
var e = i(),
t = r(),
n = i() - r();
return n < 0 ? e + ",1" : 0 < n ? t + ",1,s" : e + ",0"
}();
return new o.TimeZone(o.olson.timezones[e])
},
date_is_dst: function(e) {
return (7 < e.getMonth() ? r(e.getFullYear()) : i(e.getFullYear())) - t(e) != 0
}
}
}();
o.TimeZone = function(e) {
"use strict";
var r = null;
return r = e,
function() {
return void 0 !== o.olson.ambiguity_list[r]
}() && function() {
for (var e = o.olson.ambiguity_list[r], t = e.length, n = 0, i = e[0]; n < t; n += 1)
if (i = e[n], o.date_is_dst(o.olson.dst_start_dates[i])) return r = i
}(), {
name: function() {
return r
}
}
}, o.olson = {}, o.olson.timezones = {
"-720,0": "Etc/GMT+12",
"-660,0": "Pacific/Pago_Pago",
"-600,1": "America/Adak",
"-600,0": "Pacific/Honolulu",
"-570,0": "Pacific/Marquesas",
"-540,0": "Pacific/Gambier",
"-540,1": "America/Anchorage",
"-480,1": "America/Los_Angeles",
"-480,0": "Pacific/Pitcairn",
"-420,0": "America/Phoenix",
"-420,1": "America/Denver",
"-360,0": "America/Guatemala",
"-360,1": "America/Chicago",
"-360,1,s": "Pacific/Easter",
"-300,0": "America/Bogota",
"-300,1": "America/New_York",
"-270,0": "America/Caracas",
"-240,1": "America/Halifax",
"-240,0": "America/Santo_Domingo",
"-240,1,s": "America/Santiago",
"-210,1": "America/St_Johns",
"-180,1": "America/Godthab",
"-180,0": "America/Argentina/Buenos_Aires",
"-180,1,s": "America/Montevideo",
"-120,0": "Etc/GMT+2",
"-120,1": "Etc/GMT+2",
"-60,1": "Atlantic/Azores",
"-60,0": "Atlantic/Cape_Verde",
"0,0": "Etc/UTC",
"0,1": "Europe/London",
"60,1": "Europe/Berlin",
"60,0": "Africa/Lagos",
"60,1,s": "Africa/Windhoek",
"120,1": "Asia/Beirut",
"120,0": "Africa/Johannesburg",
"180,0": "Asia/Baghdad",
"180,1": "Europe/Moscow",
"210,1": "Asia/Tehran",
"240,0": "Asia/Dubai",
"240,1": "Asia/Baku",
"270,0": "Asia/Kabul",
"300,1": "Asia/Yekaterinburg",
"300,0": "Asia/Karachi",
"330,0": "Asia/Kolkata",
"345,0": "Asia/Kathmandu",
"360,0": "Asia/Dhaka",
"360,1": "Asia/Omsk",
"390,0": "Asia/Rangoon",
"420,1": "Asia/Krasnoyarsk",
"420,0": "Asia/Jakarta",
"480,0": "Asia/Shanghai",
"480,1": "Asia/Irkutsk",
"525,0": "Australia/Eucla",
"525,1,s": "Australia/Eucla",
"540,1": "Asia/Yakutsk",
"540,0": "Asia/Tokyo",
"570,0": "Australia/Darwin",
"570,1,s": "Australia/Adelaide",
"600,0": "Australia/Brisbane",
"600,1": "Asia/Vladivostok",
"600,1,s": "Australia/Sydney",
"630,1,s": "Australia/Lord_Howe",
"660,1": "Asia/Kamchatka",
"660,0": "Pacific/Noumea",
"690,0": "Pacific/Norfolk",
"720,1,s": "Pacific/Auckland",
"720,0": "Pacific/Tarawa",
"765,1,s": "Pacific/Chatham",
"780,0": "Pacific/Tongatapu",
"780,1,s": "Pacific/Apia",
"840,0": "Pacific/Kiritimati"
}, o.olson.dst_start_dates = function() {
"use strict";
var e = new Date(2010, 6, 15, 1, 0, 0, 0);
return {
"America/Denver": new Date(2011, 2, 13, 3, 0, 0, 0),
"America/Mazatlan": new Date(2011, 3, 3, 3, 0, 0, 0),
"America/Chicago": new Date(2011, 2, 13, 3, 0, 0, 0),
"America/Mexico_City": new Date(2011, 3, 3, 3, 0, 0, 0),
"America/Asuncion": new Date(2012, 9, 7, 3, 0, 0, 0),
"America/Santiago": new Date(2012, 9, 3, 3, 0, 0, 0),
"America/Campo_Grande": new Date(2012, 9, 21, 5, 0, 0, 0),
"America/Montevideo": new Date(2011, 9, 2, 3, 0, 0, 0),
"America/Sao_Paulo": new Date(2011, 9, 16, 5, 0, 0, 0),
"America/Los_Angeles": new Date(2011, 2, 13, 8, 0, 0, 0),
"America/Santa_Isabel": new Date(2011, 3, 5, 8, 0, 0, 0),
"America/Havana": new Date(2012, 2, 10, 2, 0, 0, 0),
"America/New_York": new Date(2012, 2, 10, 7, 0, 0, 0),
"Asia/Beirut": new Date(2011, 2, 27, 1, 0, 0, 0),
"Europe/Helsinki": new Date(2011, 2, 27, 4, 0, 0, 0),
"Europe/Istanbul": new Date(2011, 2, 28, 5, 0, 0, 0),
"Asia/Damascus": new Date(2011, 3, 1, 2, 0, 0, 0),
"Asia/Jerusalem": new Date(2011, 3, 1, 6, 0, 0, 0),
"Asia/Gaza": new Date(2009, 2, 28, 0, 30, 0, 0),
"Africa/Cairo": new Date(2009, 3, 25, 0, 30, 0, 0),
"Pacific/Auckland": new Date(2011, 8, 26, 7, 0, 0, 0),
"Pacific/Fiji": new Date(2010, 11, 29, 23, 0, 0, 0),
"America/Halifax": new Date(2011, 2, 13, 6, 0, 0, 0),
"America/Goose_Bay": new Date(2011, 2, 13, 2, 1, 0, 0),
"America/Miquelon": new Date(2011, 2, 13, 5, 0, 0, 0),
"America/Godthab": new Date(2011, 2, 27, 1, 0, 0, 0),
"Europe/Moscow": e,
"Asia/Yekaterinburg": e,
"Asia/Omsk": e,
"Asia/Krasnoyarsk": e,
"Asia/Irkutsk": e,
"Asia/Yakutsk": e,
"Asia/Vladivostok": e,
"Asia/Kamchatka": e,
"Europe/Minsk": e,
"Australia/Perth": new Date(2008, 10, 1, 1, 0, 0, 0)
}
}(), o.olson.ambiguity_list = {
"America/Denver": ["America/Denver", "America/Mazatlan"],
"America/Chicago": ["America/Chicago", "America/Mexico_City"],
"America/Santiago": ["America/Santiago", "America/Asuncion", "America/Campo_Grande"],
"America/Montevideo": ["America/Montevideo", "America/Sao_Paulo"],
"Asia/Beirut": ["Asia/Beirut", "Europe/Helsinki", "Europe/Istanbul", "Asia/Damascus", "Asia/Jerusalem", "Asia/Gaza"],
"Pacific/Auckland": ["Pacific/Auckland", "Pacific/Fiji"],
"America/Los_Angeles": ["America/Los_Angeles", "America/Santa_Isabel"],
"America/New_York": ["America/Havana", "America/New_York"],
"America/Halifax": ["America/Goose_Bay", "America/Halifax"],
"America/Godthab": ["America/Miquelon", "America/Godthab"],
"Asia/Dubai": ["Europe/Moscow"],
"Asia/Dhaka": ["Asia/Yekaterinburg"],
"Asia/Jakarta": ["Asia/Omsk"],
"Asia/Shanghai": ["Asia/Krasnoyarsk", "Australia/Perth"],
"Asia/Tokyo": ["Asia/Irkutsk"],
"Australia/Brisbane": ["Asia/Yakutsk"],
"Pacific/Noumea": ["Asia/Vladivostok"],
"Pacific/Tarawa": ["Asia/Kamchatka"],
"Africa/Johannesburg": ["Asia/Gaza", "Africa/Cairo"],
"Asia/Baghdad": ["Europe/Minsk"]
}, t.jstz = o
}()
}, , function(n, i, r) {
var o, a, j = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i])
}
return e
},
s = "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
};
! function(e, t) {
"object" === s(i) && void 0 !== n ? n.exports = t() : void 0 === (a = "function" == typeof(o = t) ? o.call(i, r, i, n) : o) || (n.exports = a)
}(0, function() {
"use strict";
function s(e, t) {
return t ? e.replace(/\.(jpe?g|png)/gi, ".webp") : e
}
var e = "undefined" != typeof window,
r = e && !("onscroll" in window) || "undefined" != typeof navigator && /(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),
t = e && "IntersectionObserver" in window,
l = e && "classList" in document.createElement("p"),
n = e && "createImageBitmap" in window,
i = e && "fetch" in window,
c = !1;
! function(t) {
n && i ? fetch("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=").then(function(e) {
return e && void 0 !== e.blob ? e.blob() : t(!1)
}).then(function(e) {
return window.createImageBitmap(e) ? t(!0) : t(!1)
}) : t(!1)
}(function(e) {
c = e
});
function u(e, t) {
return e.getAttribute("data-" + t)
}
function o(e, t, n) {
var i = "data-" + t;
null !== n ? e.setAttribute(i, n) : e.removeAttribute(i)
}
function a(e) {
return "true" === u(e, m)
}
function f(e, t) {
return o(e, g, t)
}
function d(e) {
return u(e, g)
}
function p(e, t) {
var n, i = "LazyLoad::Initialized",
r = new e(t);
try {
n = new CustomEvent(i, {
detail: {
instance: r
}
})
} catch (e) {
(n = document.createEvent("CustomEvent")).initCustomEvent(i, !1, !1, {
instance: r
})
}
window.dispatchEvent(n)
}
var h = {
elements_selector: "img",
container: r || e ? document : null,
threshold: 300,
thresholds: null,
data_src: "src",
data_srcset: "srcset",
data_sizes: "sizes",
data_bg: "bg",
class_loading: "loading",
class_loaded: "loaded",
class_error: "error",
load_delay: 0,
callback_load: null,
callback_error: null,
callback_set: null,
callback_enter: null,
callback_finish: null,
to_webp: !1
},
m = "was-processed",
g = "ll-timeout";
function v(e) {
for (var t, n = [], i = 0; t = e.children[i]; i += 1) "SOURCE" === t.tagName && n.push(t);
return n
}
function y(e, t, n, i) {
n && e.setAttribute(t, s(n, i))
}
function b(e, t, n) {
y(e, "sizes", u(e, t.data_sizes)), y(e, "srcset", u(e, t.data_srcset), n), y(e, "src", u(e, t.data_src), n)
}
function E(e, t) {
var n = t._settings,
i = e.tagName,
r = L[i];
if (r) return r(e, n), t._updateLoadingCount(1), void(t._elements = function(e, t) {
return e.filter(function(e) {
return e !== t
})
}(t._elements, e));
! function(e, t) {
var n = t.to_webp && c,
i = u(e, t.data_src),
r = u(e, t.data_bg);
if (i) {
var o = s(i, n);
e.style.backgroundImage = 'url("' + o + '")'
}
if (r) {
var a = s(r, n);
e.style.backgroundImage = a
}
}(e, n)
}
function w(e, t) {
l ? e.classList.add(t) : e.className += (e.className ? " " : "") + t
}
function _(e, t) {
e && e(t)
}
function T(e, t, n) {
e.addEventListener(t, n)
}
function A(e, t, n) {
e.removeEventListener(t, n)
}
function x(e, t, n) {
A(e, "load", t), A(e, O, t), A(e, "error", n)
}
function C(e, t, n) {
var i = n._settings,
r = t ? i.class_loaded : i.class_error,
o = t ? i.callback_load : i.callback_error,
a = e.target;
! function(e, t) {
l ? e.classList.remove(t) : e.className = e.className.replace(new RegExp("(^|\\s+)" + t + "(\\s+|$)"), " ").replace(/^\s+/, "").replace(/\s+$/, "")
}(a, i.class_loading), w(a, r), _(o, a), n._updateLoadingCount(-1)
}
function D(n, i) {
function r(e) {
C(e, !0, i), x(n, r, t)
}
var t = function e(t) {
C(t, !1, i), x(n, r, e)
};
! function(e, t, n) {
T(e, "load", t), T(e, O, t), T(e, "error", n)
}(n, r, t)
}
function S(e, t, n) {
k(e, n), t.unobserve(e)
}
function I(e) {
var t = d(e);
t && (clearTimeout(t), f(e, null))
}
var L = {
IMG: function(e, t) {
var n = t.to_webp && c,
i = e.parentNode;
i && "PICTURE" === i.tagName && v(i).forEach(function(e) {
b(e, t, n)
});
b(e, t, n)
},
IFRAME: function(e, t) {
y(e, "src", u(e, t.data_src))
},
VIDEO: function(e, t) {
v(e).forEach(function(e) {
y(e, "src", u(e, t.data_src))
}), y(e, "src", u(e, t.data_src)), e.load()
}
},
O = "loadeddata",
N = ["IMG", "IFRAME", "VIDEO"];
function k(e, t, n) {
var i = t._settings;
!n && a(e) || (_(i.callback_enter, e), -1 < N.indexOf(e.tagName) && (D(e, t), w(e, i.class_loading)), E(e, t), function(e) {
o(e, m, "true")
}(e), _(i.callback_set, e))
}
function M(e) {
return e.isIntersecting || 0 < e.intersectionRatio
}
function P(e, t) {
this._settings = function(e) {
return j({}, h, e)
}(e), this._setObserver(), this._loadingCount = 0, this.update(t)
}
return P.prototype = {
_manageIntersection: function(e) {
var t = this._observer,
n = this._settings.load_delay,
i = e.target;
n ? M(e) ? function(e, t, n) {
var i = n._settings.load_delay,
r = d(e);
r || (r = setTimeout(function() {
S(e, t, n), I(e)
}, i), f(e, r))
}(i, t, this) : I(i) : M(e) && S(i, t, this)
},
_onIntersection: function(e) {
e.forEach(this._manageIntersection.bind(this))
},
_setObserver: function() {
t && (this._observer = new IntersectionObserver(this._onIntersection.bind(this), function(e) {
return {
root: e.container === document ? null : e.container,
rootMargin: e.thresholds || e.threshold + "px"
}
}(this._settings)))
},
_updateLoadingCount: function(e) {
this._loadingCount += e, 0 === this._elements.length && 0 === this._loadingCount && _(this._settings.callback_finish)
},
update: function(e) {
var t = this,
n = this._settings,
i = e || n.container.querySelectorAll(n.elements_selector);
this._elements = function(e) {
return e.filter(function(e) {
return !a(e)
})
}(Array.prototype.slice.call(i)), !r && this._observer ? this._elements.forEach(function(e) {
t._observer.observe(e)
}) : this.loadAll()
},
destroy: function() {
var t = this;
this._observer && (this._elements.forEach(function(e) {
t._observer.unobserve(e)
}), this._observer = null), this._elements = null, this._settings = null
},
load: function(e, t) {
k(e, this, t)
},
loadAll: function() {
var t = this;
this._elements.forEach(function(e) {
t.load(e)
})
}
}, e && function(e, t) {
if (t)
if (t.length)
for (var n, i = 0; n = t[i]; i += 1) p(e, n);
else p(e, t)
}(P, window.lazyLoadOptions), P
})
}, function(e, t) {
function f(e) {
return (f = "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
})(e)
}
var d = null != navigator.userAgent.match(/(iPod|iPhone|iPad)/);
! function() {
function T(e, t, n, i, r) {
t = t || [], Array.isArray(t) || (t = [t]);
for (var o = document.createElement(e), a = t.length; a--; o.classList.add(t[a]));
return r && (o.title = r), o.innerHTML = i || "", n instanceof Element && n.appendChild(o), o
}
function A(e) {
return e = e || new Date, new Date(e.getFullYear(), e.getMonth(), e.getDate())
}
function t(r) {
function v() {
var e = b.minDate;
return e instanceof HTMLInputElement && (e = null === (e = e.DatePickerX.getValue(!0)) ? b.minDate.DatePickerX.getMinDate() : new Date(e)).setDate(e.getDate() + 1), A(e)
}
function y() {
var e = b.maxDate;
return e instanceof HTMLInputElement && (e = null === (e = e.DatePickerX.getValue(!0)) ? b.maxDate.DatePickerX.getMaxDate() : new Date(e)).setDate(e.getDate() - 1), A(e)
}
function i(e, t) {
var n = {
d: e.getDate(),
dd: e.getDate(),
D: e.getDay(),
m: e.getMonth() + 1,
mm: e.getMonth() + 1,
M: e.getMonth(),
MM: e.getMonth(),
yy: e.getFullYear().toString().substr(-2),
yyyy: e.getFullYear()
};
return n.dd < 10 && (n.dd = "0" + n.dd), n.mm < 10 && (n.mm = "0" + n.mm), n.D = b.weekDayLabels[n.D ? n.D - 1 : 6], n.M = b.shortMonthLabels[n.M], n.MM = b.singleMonthLabels[n.MM], t.replace(/(?:[dmM]{1,2}|D|yyyy|yy)/g, function(e) {
return void 0 !== n[e] ? n[e] : e
})
}
function o() {
return E.container.classList.contains("active")
}
function n() {
E.container.classList.remove("active")
}
function a(e) {
E.content.innerHTML = "";
var t = v(),
n = y(),
i = A();
b.todayButton && E.today.classList[t <= i && i <= n ? "remove" : "add"]("dpx-disabled"), _ < 2 && (t.setDate(1), n.setDate(1), _ || (t.setMonth(0), n.setMonth(0))), t = t.getTime(), n = n.getTime(), (e = A(new Date(e || w || Date.now()))).getTime() < t ? e = new Date(t) : e.getTime() > n && (e = new Date(n));
var r = e.getMonth(),
o = e.getFullYear(),
a = 10 * Math.floor(o / 10);
if (e = new Date(_ ? o : a, _ < 2 ? 0 : r), E.title.innerHTML = _ ? (2 === _ ? b.singleMonthLabels[r] + " " : "") + o : a + " - " + (9 + a), E.title.dpxValue = e.getTime(), E.title.title = 2 === _ ? o : a + " - " + (9 + a), E.prevTitle.classList[e.getTime() <= t ? "add" : "remove"]("dpx-disabled"), 2 === _ ? e.setMonth(r - 1) : e.setFullYear(_ ? o - 1 : a - 10), E.prevTitle.title = _ ? (2 === _ ? b.singleMonthLabels[e.getMonth()] + " " : "") + e.getFullYear() : a - 10 + " - " + (a - 1), E.prevTitle.dpxValue = e.getTime(), 2 === _ ? e.setMonth(e.getMonth() + 2) : e.setFullYear(_ ? o + 1 : 20 + a), E.nextTitle.classList[e.getTime() > n ? "add" : "remove"]("dpx-disabled"), E.nextTitle.title = _ ? (2 === _ ? b.singleMonthLabels[e.getMonth()] + " " : "") + e.getFullYear() : 10 + a + " - " + (19 + a), E.nextTitle.dpxValue = e.getTime(), 2 === _ ? e.setMonth(e.getMonth() - 1) : e.setFullYear(_ ? o : a), 2 === _) {
var s = b.weekDayLabels.length;
!b.mondayFirst && --s && T("span", ["dpx-item", "dpx-weekday"], E.content, b.weekDayLabels[6]);
for (var l = 0; l < s; ++l) {
T("span", h = ["dpx-item", "dpx-weekday"], E.content, b.weekDayLabels[l])
}
}
if (2 === _) {
var c = e.getDay();
e.setDate(b.mondayFirst ? -(c ? c - 2 : 5) : 1 - c)
} else _ ? e.setMonth(e.getMonth() - 2) : e.setFullYear(a - 3);
var u = w;
_ < 2 && (null !== u && ((u = new Date(u)).setDate(1), _ || u.setMonth(0), u = u.getTime()), i.setDate(1), _ || i.setMonth(0)), i = i.getTime(), E.container.setAttribute("data-dpx-type", ["year", "month", "day"][_]);
for (var f = ["getFullYear", "getMonth", "getDate"][_], d = ["setFullYear", "setMonth", "setDate"][_], p = 2 === _ ? 42 : 16; p--; e[d](e[f]() + 1)) {
var h = ["dpx-item"],
m = _ ? b.singleMonthLabels[e.getMonth()] + " " : "";
2 === _ && (m += e.getDate() + ", "), m += e.getFullYear(), (_ ? 2 === _ ? e.getMonth() !== r : e.getFullYear() !== o : e.getFullYear() < a || e.getFullYear() > 9 + a) && h.push("dpx-out"), 2 === _ && (6 === e.getDay() || e.getDay()), e.getTime() === i && h.push("dpx-current"), e.getTime() === w && h.push("dpx-selected"), (e.getTime() < t || e.getTime() > n) && h.push("dpx-disabled");
var g = _ ? 2 === _ ? e.getDate() : b.shortMonthLabels[e.getMonth()] : e.getFullYear();
T("span", h, E.content, g, m).dpxValue = e.getTime()
}
}
function s(e, t) {
if (void 0 === b[e]) return console.error("DatePickerX, setOption: Option doesn't exist.") && !1;
if ("minDate" === e || "maxDate" === e) {
if (!(t instanceof HTMLInputElement) && (t instanceof Date || (t = new Date(t)), isNaN(t))) return console.error("DatePickerX, setOption: Invalid date value.") && !1
} else {
if (f(b[e]) != f(t)) return console.error("DatePickerX, setOption: Option has invalid type.") && !1;
if (Array.isArray(b[e])) {
if (t.length < b[e].length) return console.warn("DatePickerX, setOption: Invalid option length.") && !1;
t = t.slice(0, b[e].length)
}
}
b[e] = t
}
var b = {},
E = {},
l = !1,
w = null,
_ = 2;
return {
init: function(e) {
//if (e = e || {}, l) return console.error("DatePickerX, init: Date picker have already inited.") && !1;
for (var t in l = !0, b = {}, c) b[t] = c[t];
if ("object" != f(e)) console.error("DatePickerX, init: Initial options must be an object.");
else
for (var t in e) s(t, e[t]);
return r.parentNode.classList.add("date-picker-x-container"), r.classList.add("date-picker-x-input"), r.readOnly = !0,
function() {
E.container = T("div", "date-picker-x");
var e = T("div", "dpx-title-box", E.container);
if (E.prevTitle = T("span", "dpx-prev", e, "❮"), E.title = T("span", "dpx-title", e), E.nextTitle = T("span", "dpx-next", e, "❯"), E.content = T("div", "dpx-content-box", E.container), r.nextElementSibling ? r.parentNode.insertBefore(E.container, r.nextElementSibling) : r.parentNode.appendChild(E.container), b.todayButton || b.clearButton) {
var t = T("div", "dpx-btns", E.container);
b.todayButton && (E.today = T("span", ["dpx-item", "dpx-today"], t, b.todayButtonLabel, b.todayButtonLabel)), b.clearButton && (E.clear = T("span", ["dpx-item", "dpx-clear"], t, b.clearButtonLabel, b.clearButtonLabel))
}
}(),
function(i) {
d && (r.addEventListener("touchstart", function(e) {
o() && (e.preventDefault(), n(), this.blur())
}), window.addEventListener("touchstart", function(e) {
o() && (e.target.classList.contains("dpx-item") || e.target.classList.contains("dpx-prev") || e.target.classList.contains("dpx-next") || e.target.classList.contains("date-picker-x") || e.target.classList.contains("dpx-title") || (console.log(e.target), e.preventDefault(), n(), r.blur()))
})), r.addEventListener("click", function(e) {
if (!o()) {
e.stopPropagation(), _ = 2, a(), E.container.classList.add("active"), E.container.classList.remove("to-top");
var t = E.container.getBoundingClientRect();
t.bottom > window.innerHeight && t.top + r.offsetHeight > E.container.offsetHeight && (E.container.classList.add("to-top"), E.container.getBoundingClientRect().top < 0 && E.container.classList.remove("to-top")), u && u !== E.container && u.classList.remove("active"), u = E.container
}
}), window.addEventListener("click", function(e) {
"toggle-datepicker" !== e.target.dataset.value && u && u.classList.remove("active")
}), E.container.addEventListener("click", function(e) {
e.stopPropagation(), e.preventDefault()
}), E.content.addEventListener("click", function(e) {
if (2 === _) i.setValue(e.target.dpxValue) && E.container.classList.remove("active");
else {
var t = v(),
n = y();
t.setDate(1), n.setDate(1), _ || (t.setMonth(0), n.setMonth(0)), e.target.dpxValue >= t.getTime() && e.target.dpxValue <= n.getTime() && ++_ && a(e.target.dpxValue)
}
}), E.prevTitle.addEventListener("click", function() {
a(this.dpxValue)
}), E.nextTitle.addEventListener("click", function() {
a(this.dpxValue)
}), E.title.addEventListener("click", function() {
_ && _-- && a(this.dpxValue)
}), E.today && E.today.addEventListener("click", function() {
!this.classList.contains("dpx-disabled") && i.setValue(A()) && E.container.classList.remove("active")
}), E.clear && E.clear.addEventListener("click", function() {
i.setValue(null) && E.container.classList.remove("active")
})
}(this), !0
},
remove: function() {
return l ? (r.parentNode.removeChild(E.container), r.classList.remove("date-picker-x-input"), r.readOnly = l = !1, !0) : console.error("DatePickerX, remove: Date picker doesn't init yet.") && !1
},
setValue: function(e, t) {
if (!l) return console.error("DatePickerX, remove: Date picker doesn't init yet.") && !1;
if (null === e) w = null, r.value = "";
else {
if (e instanceof Date || (e = new Date(e)), isNaN(e)) return console.error("DatePickerX, setValue: Can't convert argument to date.") && !1;
if (!t && (e.getTime() < v().getTime() || e.getTime() > y().getTime())) return console.error("DatePickerX, setValue: Date out of acceptable range.") && !1;
w = e.getTime(), r.value = i(e, b.format)
}
var n = document.createEvent("Event");
return n.initEvent("change", !0, !0), r.dispatchEvent(n), o() && a(), !0
},
getValue: function(e) {
return l || console.error("DatePickerX, getValue: Date picker doesn't init yet."), e ? w : null === w ? "" : i(new Date(w), b.format)
},
getMinDate: function() {
var e = b.minDate;
return e instanceof HTMLInputElement && (e = e.DatePickerX.getMinDate()), A(e)
},
getMaxDate: function() {
var e = b.maxDate;
return e instanceof HTMLInputElement && (e = e.DatePickerX.getMaxDate()), A(e)
},
close: n,
isOpen: function() {
return E.container.classList.contains("active")
},
open: function() {
if (!o()) {
_ = 2, a(), E.container.classList.add("active"), E.container.classList.remove("to-top");
var e = E.container.getBoundingClientRect();
e.bottom > window.innerHeight && e.top + r.offsetHeight > E.container.offsetHeight && (E.container.classList.add("to-top"), E.container.getBoundingClientRect().top < 0 && E.container.classList.remove("to-top")), u && u !== E.container && u.classList.remove("active"), u = E.container
}
E.container.classList.add("active")
}
}
}
var c = {
mondayFirst: !0,
format: "yyyy/mm/dd",
minDate: new Date(0, 0),
maxDate: new Date(9999, 11, 31),
weekDayLabels: ["Mo", "Tu", "We", "Th", "Fr", "St", "Su"],
shortMonthLabels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
singleMonthLabels: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
todayButton: !0,
todayButtonLabel: "Today",
clearButton: !0,
clearButtonLabel: "Clear"
},
u = null,
n = [],
i = [];
Object.defineProperty(HTMLInputElement.prototype, "DatePickerX", {
get: function() {
var e = n.indexOf(this);
return -1 === e && (e = n.push(this) - 1, i.push(new t(this))), i[e]
},
set: function() {}
}), window.DatePickerX = {
setDefaults: function(e) {
if ("object" != f(e)) return console.error("DatePickerX, setDefaults: Invalid option type.") && !1;
for (var t in e) f(e[t]) == f(c[t]) && (Array.isArray(c[t]) ? e[t].length >= c[t].length && (c[t] = e[t].slice(0, c[t].length)) : c[t] = e[t]);
return !0
}
}
}()
}, function(e, t, n) {}, function(e, t, n) {}, function(e, t, n) {
"use strict";
var i = n(0),
E = n.n(i);
function l(e) {
return (l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
})(e)
}
var r = function(b) {
return b.main = function(e, t) {
var i, n = new b.Constans,
p = new b.Configuration(t),
r = new b.Logger,
h = new b.Template(t.template),
o = new b.ListBuilderService(p, b.proccess),
a = p.equals,
m = e,
s = "",
g = [],
v = -1;
function l() {
function d(e, t) {
return p.get("highlightPhrase") && "" !== t ? function(e, t) {
var n = function(e) {
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")
}(t);
return (e + "").replace(new RegExp("(" + n + ")", "gi"), "<b>$1</b>")
}(e, t) : e
}
m.parent().hasClass(n.getValue("WRAPPER_CSS_CLASS")) && (function() {
m.next("." + n.getValue("CONTAINER_CLASS")).remove()
}(), function() {
m.unwrap()
}()),
function() {
var e = E()("<div>"),
t = n.getValue("WRAPPER_CSS_CLASS");
p.get("theme") && "" !== p.get("theme") && (t += " eac-" + p.get("theme"));
p.get("cssClasses") && "" !== p.get("cssClasses") && (t += " " + p.get("cssClasses"));
"" !== h.getTemplateClass() && (t += " " + h.getTemplateClass());
e.addClass(t), m.wrap(e), !0 === p.get("adjustWidth") && function() {
var e = m.outerWidth();
m.parent().css("width", e)
}()
}(),
function() {
var f = E()("<div>").addClass(n.getValue("CONTAINER_CLASS"));
f.attr("id", c()).prepend(E()("<ul>")),
function() {
f.on("show.eac", function() {
switch (p.get("list").showAnimation.type) {
case "slide":
var e = p.get("list").showAnimation.time,
t = p.get("list").showAnimation.callback;
f.find("ul").slideDown(e, t);
break;
case "fade":
e = p.get("list").showAnimation.time, t = p.get("list").showAnimation.callback;
f.find("ul").fadeIn(e);
break;
default:
f.find("ul").show()
}
p.get("list").onShowListEvent()
}).on("hide.eac", function() {
switch (p.get("list").hideAnimation.type) {
case "slide":
var e = p.get("list").hideAnimation.time,
t = p.get("list").hideAnimation.callback;
f.find("ul").slideUp(e, t);
break;
case "fade":
e = p.get("list").hideAnimation.time, t = p.get("list").hideAnimation.callback;
f.find("ul").fadeOut(e, t);
break;
default:
f.find("ul").hide()
}
p.get("list").onHideListEvent()
}).on("selectElement.eac", function() {
f.find("ul li").removeClass("selected"), f.find("ul li").eq(v).addClass("selected"), p.get("list").onSelectItemEvent()
}).on("loadElements.eac", function(e, i, r) {
var o = "",
t = f.find("ul");
t.empty().detach(), g = [];
for (var a = 0, s = 0, n = i.length; s < n; s += 1) {
var l = i[s].data;
if (0 !== l.length) {
void 0 !== i[s].header && 0 < i[s].header.length && t.append("<div class='eac-category' >" + i[s].header + "</div>");
for (var c = 0, u = l.length; c < u && a < i[s].maxListSize; c += 1) o = E()("<li><div class='eac-item'></div></li>"),
function() {
var e = c,
t = a,
n = i[s].getValue(l[e]);
o.find(" > div").on("click", function() {
m.val(n).trigger("change"), y(v = t), p.get("list").onClickEvent(), p.get("list").onChooseEvent()
}).mouseover(function() {
y(v = t), p.get("list").onMouseOverEvent()
}).mouseout(function() {
p.get("list").onMouseOutEvent()
}).html(h.build(d(n, r), l[e]))
}(), t.append(o), g.push(l[c]), a += 1
}
}
f.append(t), p.get("list").onLoadEvent()
})
}(), m.after(f)
}(), s = E()("#" + c()), p.get("placeholder") && m.attr("placeholder", p.get("placeholder"))
}
function c() {
var e = m.attr("id");
return e = n.getValue("CONTAINER_ID") + e
}
function u() {
s.trigger("show.eac")
}
function f() {
s.trigger("hide.eac")
}
function y(e) {
s.trigger("selectElement.eac", e)
}
function d(e, t) {
s.trigger("loadElements.eac", [e, t])
}
b.consts = n, this.getConstants = function() {
return n
}, this.getConfiguration = function() {
return p
}, this.getContainer = function() {
return s
}, this.getSelectedItemIndex = function() {
return v
}, this.getItems = function() {
return g
}, this.getItemData = function(e) {
return g.length < e || void 0 === g[e] ? -1 : g[e]
}, this.getSelectedItemData = function() {
return this.getItemData(v)
}, this.build = function() {
l()
}, this.init = function() {
! function() {
if (0 === m.length) return r.error("Input field doesn't exist.");
if (!p.checkDataUrlProperties()) return r.error("One of options variables 'data' or 'url' must be defined.");
if (!p.checkRequiredProperties()) return r.error("Will not work without mentioned properties.");
l(),
function() {
! function() {
a("autocompleteOff", !0) && function() {
m.attr("autocomplete", "off")
}(),
function() {
m.focusout(function() {
var e, t = m.val();
p.get("list").match.caseSensitive || (t = t.toLowerCase());
for (var n = 0, i = g.length; n < i; n += 1)
if (e = p.get("getValue")(g[n]), p.get("list").match.caseSensitive || (e = e.toLowerCase()), e === t) return void y(v = n)
})
}(),
function() {
m.off("keyup").keyup(function(e) {
switch (e.keyCode) {
case 27:
f(),
function() {
m.trigger("blur")
}();
break;
case 38:
e.preventDefault(), 0 < g.length && 0 < v && (v -= 1, m.val(p.get("getValue")(g[v])), y(v));
break;
case 40:
e.preventDefault(), 0 < g.length && v < g.length - 1 && (v += 1, m.val(p.get("getValue")(g[v])), y(v));
break;
default:
if (40 < e.keyCode || 8 === e.keyCode) {
var t = m.val();
!0 !== p.get("list").hideOnEmptyPhrase || 8 !== e.keyCode || "" !== t ? 0 < p.get("requestDelay") ? (void 0 !== i && clearTimeout(i), i = setTimeout(function() {
n(t)
}, p.get("requestDelay"))) : n(t) : f()
}
}
function n(n) {
if (!(n.length < p.get("minCharNumber"))) {
if ("list-required" !== p.get("data")) {
var e = p.get("data"),
t = o.init(e);
t = o.updateCategories(t, e), d(t = o.processData(t, n), n), 0 < m.parent().find("li").length ? u() : f()
}
var i = function() {
var e = {},
t = p.get("ajaxSettings") || {};
for (var n in t) e[n] = t[n];
return e
}();
void 0 !== i.url && "" !== i.url || (i.url = p.get("url")), void 0 !== i.dataType && "" !== i.dataType || (i.dataType = p.get("dataType")), void 0 !== i.url && "list-required" !== i.url && (i.url = i.url(n), i.data = p.get("preparePostData")(i.data, n), E.a.ajax(i).done(function(e) {
var t = o.init(e);
t = o.updateCategories(t, e), t = o.convertXml(t),
function(e, t) {
return !1 === p.get("matchResponseProperty") || ("string" == typeof p.get("matchResponseProperty") ? t[p.get("matchResponseProperty")] === e : "function" != typeof p.get("matchResponseProperty") || p.get("matchResponseProperty")(t) === e)
}(n, e) && d(t = o.processData(t, n), n), o.checkIfDataExists(t) && 0 < m.parent().find("li").length ? u() : f(), p.get("ajaxCallback")()
}).fail(function() {
r.warning("Fail to load response data")
}).always(function() {}))
}
}
})
}(),
function() {
m.on("keydown", function(e) {
if (38 === (e = e || window.event).keyCode) return !(suppressKeypress = !0)
}).keydown(function(e) {
13 === e.keyCode && -1 < v && (m.val(p.get("getValue")(g[v])), p.get("list").onKeyEnterEvent(), p.get("list").onChooseEvent(), v = -1, f(), e.preventDefault())
})
}(),
function() {
m.off("keypress")
}(),
function() {
m.focus(function() {
"" !== m.val() && 0 < g.length && (v = -1, u())
})
}(),
function() {
m.blur(function() {
setTimeout(function() {
v = -1, f()
}, 250)
})
}()
}()
}()
}()
}
}, b.eacHandles = [], b.getHandle = function(e) {
return b.eacHandles[e]
}, b.inputHasId = function(e) {
return void 0 !== E()(e).attr("id") && 0 < E()(e).attr("id").length
}, b.assignRandomId = function(e) {
for (var t = ""; t = "eac-" + Math.floor(1e4 * Math.random()), 0 !== E()("#" + t).length;);
elementId = b.consts.getValue("CONTAINER_ID") + t, E()(e).attr("id", t)
}, b.setHandle = function(e, t) {
b.eacHandles[t] = e
}, b
}((r = function(e) {
return e.Template = function(e) {
var i = {
basic: {
type: "basic",
method: function(e) {
return e
},
cssClass: ""
},
description: {
type: "description",
fields: {
description: "description"
},
method: function(e) {
return e + " - description"
},
cssClass: "eac-description"
},
iconLeft: {
type: "iconLeft",
fields: {
icon: ""
},
method: function(e) {
return e
},
cssClass: "eac-icon-left"
},
iconRight: {
type: "iconRight",
fields: {
iconSrc: ""
},
method: function(e) {
return e
},
cssClass: "eac-icon-right"
},
links: {
type: "links",
fields: {
link: ""
},
method: function(e) {
return e
},
cssClass: ""
},
custom: {
type: "custom",
method: function() {},
cssClass: ""
}
};
this.getTemplateClass = function(t) {
function e() {
return ""
}
return t && t.type && t.type && i[t.type] ? function() {
var e = i[t.type].cssClass;
return function() {
return e
}
}() : e
}(e), this.build = function(e) {
return e && e.type && e.type && i[e.type] ? function(e) {
var t, n = e.fields;
return "description" === e.type ? (t = i.description.method, "string" == typeof n.description ? t = function(e, t) {
return e + " - <span>" + t[n.description] + "</span>"
} : "function" == typeof n.description && (t = function(e, t) {
return e + " - <span>" + n.description(t) + "</span>"
}), t) : "iconRight" === e.type ? ("string" == typeof n.iconSrc ? t = function(e, t) {
return e + "<img class='eac-icon' src='" + t[n.iconSrc] + "' />"
} : "function" == typeof n.iconSrc && (t = function(e, t) {
return e + "<img class='eac-icon' src='" + n.iconSrc(t) + "' />"
}), t) : "iconLeft" === e.type ? ("string" == typeof n.iconSrc ? t = function(e, t) {
return "<img class='eac-icon' src='" + t[n.iconSrc] + "' />" + e
} : "function" == typeof n.iconSrc && (t = function(e, t) {
return "<img class='eac-icon' src='" + n.iconSrc(t) + "' />" + e
}), t) : "links" === e.type ? ("string" == typeof n.link ? t = function(e, t) {
return "<a href='" + t[n.link] + "' >" + e + "</a>"
} : "function" == typeof n.link && (t = function(e, t) {
return "<a href='" + n.link(t) + "' >" + e + "</a>"
}), t) : "custom" === e.type ? e.method : i.basic.method
}(e) : i.basic.method
}(e)
}, e
}((r = function(i) {
return i.proccess = function(o, t, e) {
i.proccess.match = a;
var n = t.data;
return n = function(e) {
o.get("list").sort.enabled && e.sort(o.get("list").sort.method);
return e
}(n = function(e) {
void 0 !== t.maxNumberOfElements && e.length > t.maxNumberOfElements && (e = e.slice(0, t.maxNumberOfElements));
return e
}(n = function(e, t) {
var n = [];
if (o.get("list").match.enabled)
for (var i = 0, r = e.length; i < r; i += 1) a(o.get("getValue")(e[i]), t) && n.push(e[i]);
else n = e;
return n
}(n, e)));
function a(e, t) {
return o.get("list").match.caseSensitive || ("string" == typeof e && (e = e.toLowerCase()), t = t.toLowerCase()), !!o.get("list").match.method(e, t)
}
}, i
}((r = function(e) {
return e.ListBuilderService = function(r, o) {
function a(n, i) {
var e = {};
if (e = "XML" === r.get("dataType").toUpperCase() ? function() {
var e, t = {};
void 0 !== n.xmlElementName && (t.xmlElementName = n.xmlElementName);
void 0 !== n.listLocation ? e = n.listLocation : void 0 !== r.get("listLocation") && (e = r.get("listLocation"));
void 0 !== e ? "string" == typeof e ? t.data = E()(i).find(e) : "function" == typeof e && (t.data = e(i)) : t.data = i;
return t
}() : function() {
var e = {};
void 0 !== n.listLocation ? "string" == typeof n.listLocation ? e.data = i[n.listLocation] : "function" == typeof n.listLocation && (e.data = n.listLocation(i)) : e.data = i;
return e
}(), void 0 !== n.header && (e.header = n.header), void 0 !== n.maxNumberOfElements && (e.maxNumberOfElements = n.maxNumberOfElements), void 0 !== r.get("list").maxNumberOfElements && (e.maxListSize = r.get("list").maxNumberOfElements), void 0 !== n.getValue)
if ("string" == typeof n.getValue) {
var t = n.getValue;
e.getValue = function(e) {
return e[t]
}
} else "function" == typeof n.getValue && (e.getValue = n.getValue);
else e.getValue = r.get("getValue");
return e
}
function n(e) {
var t = [];
return void 0 === e.xmlElementName && (e.xmlElementName = r.get("xmlElementName")), E()(e.data).find(e.xmlElementName).each(function() {
t.push(this)
}), t
}
this.init = function(e) {
var t = [],
n = {};
return n.data = r.get("listLocation")(e), n.getValue = r.get("getValue"), n.maxListSize = r.get("list").maxNumberOfElements, t.push(n), t
}, this.updateCategories = function(e, t) {
if (r.get("categoriesAssigned")) {
e = [];
for (var n = 0; n < r.get("categories").length; n += 1) {
var i = a(r.get("categories")[n], t);
e.push(i)
}
}
return e
}, this.convertXml = function(e) {
if ("XML" === r.get("dataType").toUpperCase())
for (var t = 0; t < e.length; t += 1) e[t].data = n(e[t]);
return e
}, this.processData = function(e, t) {
for (var n = 0, i = e.length; n < i; n += 1) e[n].data = o(r, e[n], t);
return e
}, this.checkIfDataExists = function(e) {
for (var t = 0, n = e.length; t < n; t += 1)
if (void 0 !== e[t].data && e[t].data instanceof Array && 0 < e[t].data.length) return !0;
return !1
}
}, e
}((r = function(e) {
return e.Constans = function() {
var t = {
CONTAINER_CLASS: "easy-autocomplete-container",
CONTAINER_ID: "eac-container-",
WRAPPER_CSS_CLASS: "easy-autocomplete"
};
this.getValue = function(e) {
return t[e]
}
}, e
}((r = function(e) {
return e.Logger = function() {
this.error = function(e) {
console.log("ERROR: " + e)
}, this.warning = function(e) {
console.log("WARNING: " + e)
}
}, e
}((r = function(e) {
return e.Configuration = function(o) {
var a = {
data: "list-required",
url: "list-required",
dataType: "json",
listLocation: function(e) {
return e
},
xmlElementName: "",
getValue: function(e) {
return e
},
autocompleteOff: !0,
placeholder: !1,
ajaxCallback: function() {},
matchResponseProperty: !1,
list: {
sort: {
enabled: !1,
method: function(e, t) {
return (e = a.getValue(e)) < (t = a.getValue(t)) ? -1 : t < e ? 1 : 0
}
},
maxNumberOfElements: 6,
hideOnEmptyPhrase: !0,
match: {
enabled: !1,
caseSensitive: !1,
method: function(e, t) {
return -1 < e.search(t)
}
},
showAnimation: {
type: "normal",
time: 400,
callback: function() {}
},
hideAnimation: {
type: "normal",
time: 400,
callback: function() {}
},
onClickEvent: function() {},
onSelectItemEvent: function() {},
onLoadEvent: function() {},
onChooseEvent: function() {},
onKeyEnterEvent: function() {},
onMouseOverEvent: function() {},
onMouseOutEvent: function() {},
onShowListEvent: function() {},
onHideListEvent: function() {}
},
highlightPhrase: !0,
theme: "",
cssClasses: "",
minCharNumber: 0,
requestDelay: 0,
adjustWidth: !0,
ajaxSettings: {},
preparePostData: function(e, t) {
return e
},
loggerEnabled: !0,
template: "",
categoriesAssigned: !1,
categories: [{
maxNumberOfElements: 4
}]
},
s = ["ajaxSettings", "template"];
function n(r, e) {
! function e(t, n) {
for (var i in n) void 0 === t[i] && r.log("Property '" + i + "' does not exist in EasyAutocomplete options API."), "object" === l(t[i]) && -1 === E.a.inArray(i, s) && e(t[i], n[i])
}(a, e)
}
this.get = function(e) {
return a[e]
}, this.equals = function(e, t) {
return !(! function(e) {
return void 0 !== a[e] && null !== a[e]
}(e) || a[e] !== t)
}, this.checkDataUrlProperties = function() {
return "list-required" !== a.url || "list-required" !== a.data
}, this.checkRequiredProperties = function() {
for (var e in a)
if ("required" === a[e]) return logger.error("Option " + e + " must be defined"), !1;
return !0
}, this.printPropertiesThatDoesntExist = function(e, t) {
n(e, t)
},
function() {
"xml" === o.dataType && (o.getValue || (o.getValue = function(e) {
return E()(e).text()
}), o.list || (o.list = {}), o.list.sort || (o.list.sort = {}), o.list.sort.method = function(e, t) {
return (e = o.getValue(e)) < (t = o.getValue(t)) ? -1 : t < e ? 1 : 0
}, o.list.match || (o.list.match = {}), o.list.match.method = function(e, t) {
return -1 < e.search(t)
});
if (void 0 !== o.categories && o.categories instanceof Array) {
for (var e = [], t = 0, n = o.categories.length; t < n; t += 1) {
var i = o.categories[t];
for (var r in a.categories[0]) void 0 === i[r] && (i[r] = a.categories[0][r]);
e.push(i)
}
o.categories = e
}
}(),
function() {
a = function e(t, n) {
var i = t || {};
for (var r in t) void 0 !== n[r] && null !== n[r] && ("object" !== l(n[r]) || n[r] instanceof Array ? i[r] = n[r] : e(t[r], n[r]));
return void 0 !== n.data && null !== n.data && "object" === l(n.data) && (i.data = n.data), i
}(a, o)
}(), !0 === a.loggerEnabled && n(console, o),
function() {
void 0 !== o.ajaxSettings && "object" === l(o.ajaxSettings) ? a.ajaxSettings = o.ajaxSettings : a.ajaxSettings = {}
}(),
function() {
if ("list-required" !== a.url && "function" != typeof a.url) {
var e = a.url;
a.url = function() {
return e
}
}
if (void 0 !== a.ajaxSettings.url && "function" != typeof a.ajaxSettings.url) {
e = a.ajaxSettings.url;
a.ajaxSettings.url = function() {
return e
}
}
if ("string" == typeof a.listLocation) {
var t = a.listLocation;
"XML" === a.dataType.toUpperCase() ? a.listLocation = function(e) {
return E()(e).find(t)
} : a.listLocation = function(e) {
return e[t]
}
}
if ("string" == typeof a.getValue) {
var n = a.getValue;
a.getValue = function(e) {
return e[n]
}
}
void 0 !== o.categories && (a.categoriesAssigned = !0)
}()
}, e
}(r || {})) || {})) || {})) || {})) || {})) || {})) || {});
! function(i) {
i.fn.easyAutocomplete = function(n) {
return this.each(function() {
var e = i(this),
t = new r.main(e, n);
r.inputHasId(e) || r.assignRandomId(e), t.init(), r.setHandle(t, e.attr("id"))
})
}, i.fn.getSelectedItemIndex = function() {
var e = i(this).attr("id");
return void 0 !== e ? r.getHandle(e).getSelectedItemIndex() : -1
}, i.fn.getItems = function() {
var e = i(this).attr("id");
return void 0 !== e ? r.getHandle(e).getItems() : -1
}, i.fn.getItemData = function(e) {
var t = i(this).attr("id");
return void 0 !== t && -1 < e ? r.getHandle(t).getItemData(e) : -1
}, i.fn.getSelectedItemData = function() {
var e = i(this).attr("id");
return void 0 !== e ? r.getHandle(e).getSelectedItemData() : -1
}
}(E.a)
}, function(e, t, n) {}, function(e, t, n) {
"use strict";
var i = window,
Ti = i.requestAnimationFrame || i.webkitRequestAnimationFrame || i.mozRequestAnimationFrame || i.msRequestAnimationFrame || function(e) {
return setTimeout(e, 16)
},
r = window,
Ai = r.cancelAnimationFrame || r.mozCancelAnimationFrame || function(e) {
clearTimeout(e)
};
function xi(e) {
for (var t, n, i, r = e || {}, o = 1, a = arguments.length; o < a; o++)
if (null !== (t = arguments[o]))
for (n in t) r !== (i = t[n]) && void 0 !== i && (r[n] = i);
return r
}
function Ci(e) {
return 0 <= ["true", "false"].indexOf(e) ? JSON.parse(e) : e
}
function Di(e, t, n, i) {
return i && e.setItem(t, n), n
}
function Si() {
var e = document,
t = e.body;
return t || ((t = e.createElement("body")).fake = !0), t
}
var o = document.documentElement;
function Ii(e) {
var t = "";
return e.fake && (t = o.style.overflow, e.style.background = "", e.style.overflow = o.style.overflow = "hidden", o.appendChild(e)), t
}
function Li(e, t) {
e.fake && (e.remove(), o.style.overflow = t, o.offsetHeight)
}
function Oi(e, t, n, i) {
"insertRule" in e ? e.insertRule(t + "{" + n + "}", i) : e.addRule(t, n, i)
}
function Ni(e) {
return ("insertRule" in e ? e.cssRules : e.rules).length
}
function ki(e, t, n) {
for (var i = 0, r = e.length; i < r; i++) t.call(n, e[i], i)
}
var a = "classList" in document.createElement("_"),
Mi = a ? function(e, t) {
return e.classList.contains(t)
} : function(e, t) {
return 0 <= e.className.indexOf(t)
},
Pi = a ? function(e, t) {
Mi(e, t) || e.classList.add(t)
} : function(e, t) {
Mi(e, t) || (e.className += " " + t)
},
ji = a ? function(e, t) {
Mi(e, t) && e.classList.remove(t)
} : function(e, t) {
Mi(e, t) && (e.className = e.className.replace(t, ""))
};
function Bi(e, t) {
return e.hasAttribute(t)
}
function Hi(e, t) {
return e.getAttribute(t)
}
function s(e) {
return void 0 !== e.item
}
function Ri(e, t) {
if (e = s(e) || e instanceof Array ? e : [e], "[object Object]" === Object.prototype.toString.call(t))
for (var n = e.length; n--;)
for (var i in t) e[n].setAttribute(i, t[i])
}
function Wi(e, t) {
e = s(e) || e instanceof Array ? e : [e];
for (var n = (t = t instanceof Array ? t : [t]).length, i = e.length; i--;)
for (var r = n; r--;) e[i].removeAttribute(t[r])
}
function Fi(e) {
for (var t = [], n = 0, i = e.length; n < i; n++) t.push(e[n]);
return t
}
function qi(e) {
"none" !== e.style.display && (e.style.display = "none")
}
function Vi(e) {
"none" === e.style.display && (e.style.display = "")
}
function Ui(e) {
return "none" !== window.getComputedStyle(e).display
}
function zi(t) {
if ("string" == typeof t) {
var n = [t],
i = t.charAt(0).toUpperCase() + t.substr(1);
["Webkit", "Moz", "ms", "O"].forEach(function(e) {
"ms" === e && "transform" !== t || n.push(e + i)
}), t = n
}
for (var e = document.createElement("fakeelement"), r = (t.length, 0); r < t.length; r++) {
var o = t[r];
if (void 0 !== e.style[o]) return o
}
return !1
}
function Gi(e, t) {
var n = !1;
return /^Webkit/.test(e) ? n = "webkit" + t + "End" : /^O/.test(e) ? n = "o" + t + "End" : e && (n = t.toLowerCase() + "end"), n
}
function Yi(e, t) {
for (var n in t) e.addEventListener(n, t[n], !1)
}
var l = !1;
try {
var c = Object.defineProperty({}, "passive", {
get: function() {
l = !0
}
});
window.addEventListener("test", null, c)
} catch (e) {}
var u = !!l && {
passive: !0
};
function Ki(e, t) {
for (var n in t) {
var i = 0 <= ["touchstart", "touchmove"].indexOf(n) && u;
e.removeEventListener(n, t[n], i)
}
}
function Xi() {
return {
topics: {},
on: function(e, t) {
this.topics[e] = this.topics[e] || [], this.topics[e].push(t)
},
off: function(e, t) {
if (this.topics[e])
for (var n = 0; n < this.topics[e].length; n++)
if (this.topics[e][n] === t) {
this.topics[e].splice(n, 1);
break
}
},
emit: function(t, n) {
n.type = t, this.topics[t] && this.topics[t].forEach(function(e) {
e(n, t)
})
}
}
}
function Qi(e) {
return (Qi = "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
})(e)
}
n.d(t, "a", function() {
return f
}), Object.keys || (Object.keys = function(e) {
var t = [];
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.push(n);
return t
}), "remove" in Element.prototype || (Element.prototype.remove = function() {
this.parentNode && this.parentNode.removeChild(this)
});
var f = function e(m) {
m = xi({
container: ".slider",
mode: "carousel",
axis: "horizontal",
items: 1,
gutter: 0,
edgePadding: 0,
fixedWidth: !1,
autoWidth: !1,
viewportMax: !1,
slideBy: 1,
controls: !0,
controlsPosition: "top",
controlsText: ["prev", "next"],
controlsContainer: !1,
prevButton: !1,
nextButton: !1,
nav: !0,
navPosition: "top",
navContainer: !1,
navAsThumbnails: !1,
arrowKeys: !1,
speed: 300,
autoplay: !1,
autoplayPosition: "top",
autoplayTimeout: 5e3,
autoplayDirection: "forward",
autoplayText: ["start", "stop"],
autoplayHoverPause: !1,
autoplayButton: !1,
autoplayButtonOutput: !0,
autoplayResetOnVisibility: !0,
animateIn: "tns-fadeIn",
animateOut: "tns-fadeOut",
animateNormal: "tns-normal",
animateDelay: !1,
loop: !0,
rewind: !1,
autoHeight: !1,
responsive: !1,
lazyload: !1,
lazyloadSelector: ".tns-lazy-img",
touch: !0,
mouseDrag: !1,
swipeAngle: 15,
nested: !1,
preventActionWhenRunning: !1,
preventScrollOnTouch: "auto",
freezable: !0,
onInit: !1,
useLocalStorage: !0
}, m || {});
var S = document,
g = window,
s = 13,
l = 32,
c = 33,
u = 34,
f = 35,
d = 36,
p = 37,
h = 38,
v = 39,
y = 40,
t = {},
n = m.useLocalStorage;
if (n) {
var i = navigator.userAgent,
r = new Date;
try {
(t = g.localStorage) ? (t.setItem(r, r), n = t.getItem(r) == r, t.removeItem(r)) : n = !1, n || (t = {})
} catch (e) {
n = !1
}
n && (t.tnsApp && t.tnsApp !== i && ["tC", "tPL", "tMQ", "tTf", "t3D", "tTDu", "tTDe", "tADu", "tADe", "tTE", "tAE"].forEach(function(e) {
t.removeItem(e)
}), localStorage.tnsApp = i)
}
for (var b = t.tC ? Ci(t.tC) : Di(t, "tC", function() {
var e = document,
t = Si(),
n = Ii(t),
i = e.createElement("div"),
r = !1;
t.appendChild(i);
try {
for (var o, a = "(10px * 10)", s = ["calc" + a, "-moz-calc" + a, "-webkit-calc" + a], l = 0; l < 3; l++)
if (o = s[l], i.style.width = o, 100 === i.offsetWidth) {
r = o.replace(a, "");
break
}
} catch (e) {}
return t.fake ? Li(t, n) : i.remove(), r
}(), n), E = t.tPL ? Ci(t.tPL) : Di(t, "tPL", function() {
var e, t = document,
n = Si(),
i = Ii(n),
r = t.createElement("div"),
o = t.createElement("div"),
a = "";
r.className = "tns-t-subp2", o.className = "tns-t-ct";
for (var s = 0; s < 70; s++) a += "<div></div>";
return o.innerHTML = a, r.appendChild(o), n.appendChild(r), e = Math.abs(r.getBoundingClientRect().left - o.children[67].getBoundingClientRect().left) < 2, n.fake ? Li(n, i) : r.remove(), e
}(), n), I = t.tMQ ? Ci(t.tMQ) : Di(t, "tMQ", function() {
var e, t = document,
n = Si(),
i = Ii(n),
r = t.createElement("div"),
o = t.createElement("style"),
a = "@media all and (min-width:1px){.tns-mq-test{position:absolute}}";
return o.type = "text/css", r.className = "tns-mq-test", n.appendChild(o), n.appendChild(r), o.styleSheet ? o.styleSheet.cssText = a : o.appendChild(t.createTextNode(a)), e = window.getComputedStyle ? window.getComputedStyle(r).position : r.currentStyle.position, n.fake ? Li(n, i) : r.remove(), "absolute" === e
}(), n), o = t.tTf ? Ci(t.tTf) : Di(t, "tTf", zi("transform"), n), a = t.t3D ? Ci(t.t3D) : Di(t, "t3D", function(e) {
if (!e) return !1;
if (!window.getComputedStyle) return !1;
var t, n = document,
i = Si(),
r = Ii(i),
o = n.createElement("p"),
a = 9 < e.length ? "-" + e.slice(0, -9).toLowerCase() + "-" : "";
return a += "transform", i.insertBefore(o, null), o.style[e] = "translate3d(1px,1px,1px)", t = window.getComputedStyle(o).getPropertyValue(a), i.fake ? Li(i, r) : o.remove(), void 0 !== t && 0 < t.length && "none" !== t
}(o), n), w = t.tTDu ? Ci(t.tTDu) : Di(t, "tTDu", zi("transitionDuration"), n), _ = t.tTDe ? Ci(t.tTDe) : Di(t, "tTDe", zi("transitionDelay"), n), T = t.tADu ? Ci(t.tADu) : Di(t, "tADu", zi("animationDuration"), n), A = t.tADe ? Ci(t.tADe) : Di(t, "tADe", zi("animationDelay"), n), x = t.tTE ? Ci(t.tTE) : Di(t, "tTE", Gi(w, "Transition"), n), C = t.tAE ? Ci(t.tAE) : Di(t, "tAE", Gi(T, "Animation"), n), D = g.console && "function" == typeof g.console.warn, L = ["container", "controlsContainer", "prevButton", "nextButton", "navContainer", "autoplayButton"], O = {}, N = L.length; N--;) {
var k = L[N];
if ("string" == typeof m[k]) {
var M = m[k],
P = S.querySelector(M);
if (O[k] = M, !P || !P.nodeName) return void(D && console.warn("Can't find", m[k]));
m[k] = P
}
}
/* if (!(m.container.children.length < 1)) {
var j = m.responsive,
B = m.nested,
H = "carousel" === m.mode;
if (j) {
0 in j && (m = xi(m, j[0]), delete j[0]);
var R = {};
for (var W in j) {
var F = j[W];
F = "number" == typeof F ? {
items: F
} : F, R[W] = F
}
j = R, R = null
}
if (H && "outer" !== B || function e(t) {
for (var n in t) H || ("slideBy" === n && (t[n] = "page"), "edgePadding" === n && (t[n] = !1), "autoHeight" === n && (t[n] = !1)), "outer" === B && "autoHeight" === n && (t[n] = !0), "responsive" === n && e(t[n])
}(m), !H) {
m.axis = "horizontal", m.slideBy = "page", m.edgePadding = !1;
var q = m.animateIn,
V = m.animateOut,
U = m.animateDelay,
z = m.animateNormal
}
var G, Y = "horizontal" === m.axis,
K = S.createElement("div"),
X = S.createElement("div"),
Q = m.container,
$ = Q.parentNode,
J = Q.outerHTML,
Z = Q.children,
ee = Z.length,
te = ln(),
ne = !1;
j && xn();
var ie, re, oe = m.autoWidth,
ae = fn("fixedWidth"),
se = fn("edgePadding"),
le = fn("gutter"),
ce = cn(),
ue = oe ? 1 : Math.floor(fn("items")),
fe = fn("slideBy"),
de = m.viewportMax || m.fixedWidthViewportWidth,
pe = fn("arrowKeys"),
he = fn("speed"),
me = m.rewind,
ge = !me && m.loop,
ve = fn("autoHeight"),
ye = fn("controls"),
be = fn("controlsText"),
Ee = fn("nav"),
we = fn("touch"),
_e = fn("mouseDrag"),
Te = fn("autoplay"),
Ae = fn("autoplayTimeout"),
xe = fn("autoplayText"),
Ce = fn("autoplayHoverPause"),
De = fn("autoplayResetOnVisibility"),
Se = function(e) {
var t = document.createElement("style");
return e && t.setAttribute("media", e), document.querySelector("head").appendChild(t), t.sheet ? t.sheet : t.styleSheet
}(),
Ie = m.lazyload,
Le = m.lazyloadSelector,
Oe = [],
Ne = ge ? function() {
var e = function() {
{
if (oe || ae && !de) return ee - 1;
var e = ae ? "fixedWidth" : "items",
t = [];
if ((ae || m[e] < ee) && t.push(m[e]), j)
for (var n in j) {
var i = j[n][e];
i && (ae || i < ee) && t.push(i)
}
return t.length || t.push(0), Math.ceil(ae ? de / Math.min.apply(null, t) : Math.max.apply(null, t))
}
}(),
t = H ? Math.ceil((5 * e - ee) / 2) : 4 * e - ee;
return t = Math.max(e, t), un("edgePadding") ? t + 1 : t
}() : 0,
ke = H ? ee + 2 * Ne : ee + Ne,
Me = !(!ae && !oe || ge),
Pe = ae ? Xn() : null,
je = !H || !ge,
Be = Y ? "left" : "top",
He = "",
Re = "",
We = function() {
return ae ? function() {
return Math.ceil(-Pe / (ae + le))
} : oe ? function() {
for (var e = ke, t = e - 1; e--;) ie[e] > -Pe && (t = e);
return t
} : function() {
return ge || H ? Math.max(0, ke - Math.ceil(ue)) : ke - 1
}
}(),
Fe = an(fn("startIndex")),
qe = Fe,
Ve = (on(), 0),
Ue = oe ? null : We(),
ze = m.preventActionWhenRunning,
Ge = m.swipeAngle,
Ye = !Ge || "?",
Ke = !1,
Xe = m.onInit,
Qe = new Xi,
$e = " tns-slider tns-" + m.mode,
Je = Q.id || function() {
var e = window.tnsId;
return window.tnsId = e ? e + 1 : 1, "tns" + window.tnsId
}(),
Ze = fn("disable"),
et = !1,
tt = m.freezable,
nt = !(!tt || oe) && An(),
it = !1,
rt = {
click: ri,
keydown: function(e) {
switch ((e = di(e)).keyCode) {
case p:
case h:
case c:
xt.disabled || ri(e, -1);
break;
case v:
case y:
case u:
Ct.disabled || ri(e, 1);
break;
case d:
ii("first", e);
break;
case f:
ii("last", e)
}
}
},
ot = {
click: function(e) {
if (Ke) {
if (ze) return;
ni()
}
var t, n = (e = di(e)).target || e.srcElement;
for (; n !== Lt && !Bi(n, "data-nav");) n = n.parentNode;
Bi(n, "data-nav") && (ii(t = Mt = [].indexOf.call(It, n), e), Pt === t && (Ft && ci(), Mt = -1))
},
keydown: function(e) {
var t = S.activeElement;
if (!Bi(t, "data-nav")) return;
var n = (e = di(e)).keyCode,
i = [].indexOf.call(It, t),
r = Nt.length,
o = Nt.indexOf(i);
m.navContainer && (r = ee, o = i);
function a(e) {
return m.navContainer ? e : Nt[e]
}
switch (n) {
case p:
case c:
0 < o && fi(It[a(o - 1)]);
break;
case h:
case d:
0 < o && fi(It[a(0)]);
break;
case v:
case u:
o < r - 1 && fi(It[a(o + 1)]);
break;
case y:
case f:
o < r - 1 && fi(It[a(r - 1)]);
break;
case s:
case l:
ii(Mt = i, e)
}
}
},
at = {
mouseover: function() {
Ft && (ai(), qt = !0)
},
mouseout: function() {
qt && (oi(), qt = !1)
}
},
st = {
visibilitychange: function() {
S.hidden ? Ft && (ai(), Ut = !0) : Ut && (oi(), Ut = !1)
}
},
lt = {
keydown: function(e) {
switch ((e = di(e)).keyCode) {
case p:
ri(e, -1);
break;
case v:
ri(e, 1)
}
}
},
ct = {
touchstart: vi,
touchmove: yi,
touchend: bi,
touchcancel: bi
},
ut = {
mousedown: vi,
mousemove: yi,
mouseup: bi,
mouseleave: bi
},
ft = un("controls"),
dt = un("nav"),
pt = !!oe || m.navAsThumbnails,
ht = un("autoplay"),
mt = un("touch"),
gt = un("mouseDrag"),
vt = "tns-slide-active",
yt = "tns-complete",
bt = {
load: function(e) {
On(pi(e))
},
error: function(e) {
Nn(pi(e))
}
},
Et = "force" === m.preventScrollOnTouch;
if (ft) var wt, _t, Tt = m.controlsContainer,
At = m.controlsContainer ? m.controlsContainer.outerHTML : "",
xt = m.prevButton,
Ct = m.nextButton,
Dt = m.prevButton ? m.prevButton.outerHTML : "",
St = m.nextButton ? m.nextButton.outerHTML : "";
if (dt) var It, Lt = m.navContainer,
Ot = m.navContainer ? m.navContainer.outerHTML : "",
Nt = [],
kt = Nt,
Mt = -1,
Pt = sn(),
jt = Pt,
Bt = "tns-nav-active",
Ht = "Carousel Page ",
Rt = " (Current Slide)";
if (ht) var Wt, Ft, qt, Vt, Ut, zt = "forward" === m.autoplayDirection ? 1 : -1,
Gt = m.autoplayButton,
Yt = m.autoplayButton ? m.autoplayButton.outerHTML : "",
Kt = ["<span class='tns-visually-hidden'>", " animation</span>"];
if (mt || gt) var Xt, Qt, $t = {},
Jt = {},
Zt = !1,
en = Y ? function(e, t) {
return e.x - t.x
} : function(e, t) {
return e.y - t.y
};
oe || rn(Ze || nt), o && (Be = o, He = "translate", Re = a ? (He += Y ? "3d(" : "3d(0px, ", Y ? ", 0px, 0px)" : ", 0px)") : (He += Y ? "X(" : "Y(", ")")),
function() {
j && xn();
! function() {
un("gutter");
K.className = "tns-outer", X.className = "tns-inner", K.id = Je + "-ow", X.id = Je + "-iw", ve && (X.className += " tns-ah");
"" === Q.id && (Q.id = Je);
$e += E || oe ? " tns-subpixel" : " tns-no-subpixel", $e += b ? " tns-calc" : " tns-no-calc", oe && ($e += " tns-autowidth");
if ($e += " tns-" + m.axis, Q.className += $e, H) {
var e = S.createElement("div");
e.className = "tns-ovh", K.appendChild(e), e.appendChild(X)
} else K.appendChild(X);
$.insertBefore(K, Q), X.appendChild(Q)
}();
for (var e = 0; e < ee; e++) {
var t = Z[e];
t.id || (t.id = Je + "-item" + e), Pi(t, "tns-item"), !H && z && Pi(t, z), Ri(t, {
"aria-hidden": "true",
tabindex: "-1"
})
}
if (Ne) {
for (var n = S.createDocumentFragment(), i = S.createDocumentFragment(), r = Ne; r--;) {
var o = r % ee,
a = Z[o].cloneNode(!0);
if (Wi(a, "id"), i.insertBefore(a, i.firstChild), H) {
var s = Z[ee - 1 - o].cloneNode(!0);
Wi(s, "id"), n.appendChild(s)
}
}
Q.insertBefore(n, Q.firstChild), Q.appendChild(i), Z = Q.children
}(function() {
for (var e = Fe, t = Fe + Math.min(ee, ue); e < t; e++) {
var n = Z[e];
Ri(n, {
"aria-hidden": "false"
}), Wi(n, ["tabindex"]), Pi(n, vt), H || (n.style.left = 100 * (e - Fe) / ue + "%", Pi(n, q), ji(n, z))
}
Y && (E || oe ? (Oi(Se, "#" + Je + " > .tns-item", "font-size:" + g.getComputedStyle(Z[0]).fontSize + ";", Ni(Se)), Oi(Se, "#" + Je, "font-size:0;", Ni(Se))) : H && ki(Z, function(e, t) {
e.style.marginLeft = function(e) {
return b ? b + "(" + 100 * e + "% / " + ke + ")" : 100 * e / ke + "%"
}(t)
}));
if (I) {
var i = dn(m.edgePadding, m.gutter, m.fixedWidth, m.speed, m.autoHeight);
Oi(Se, "#" + Je + "-iw", i, Ni(Se)), H && (i = Y && !oe ? "width:" + pn(m.fixedWidth, m.gutter, m.items) + ";" : "", w && (i += vn(he)), Oi(Se, "#" + Je, i, Ni(Se))), i = Y && !oe ? hn(m.fixedWidth, m.gutter, m.items) : "", m.gutter && (i += mn(m.gutter)), H || (w && (i += vn(he)), T && (i += yn(he))), i && Oi(Se, "#" + Je + " > .tns-item", i, Ni(Se))
} else {
X.style.cssText = dn(se, le, ae, ve), H && Y && !oe && (Q.style.width = pn(ae, le, ue));
i = Y && !oe ? hn(ae, le, ue) : "";
le && (i += mn(le)), i && Oi(Se, "#" + Je + " > .tns-item", i, Ni(Se))
}
if (j && I)
for (var r in j) {
r = parseInt(r);
var o = j[r],
a = (i = "", ""),
s = "",
l = "",
c = oe ? null : fn("items", r),
u = fn("fixedWidth", r),
f = fn("speed", r),
d = fn("edgePadding", r),
p = fn("autoHeight", r),
h = fn("gutter", r);
("edgePadding" in o || "gutter" in o) && (a = "#" + Je + "-iw{" + dn(d, h, u, f, p) + "}"), H && Y && !oe && ("fixedWidth" in o || "items" in o || ae && "gutter" in o) && (s = "width:" + pn(u, h, c) + ";"), w && "speed" in o && (s += vn(f)), s = s && "#" + Je + "{" + s + "}", ("fixedWidth" in o || ae && "gutter" in o || !H && "items" in o) && (l += hn(u, h, c)), "gutter" in o && (l += mn(h)), !H && "speed" in o && (w && (l += vn(f)), T && (l += yn(f))), (i = a + s + (l = l && "#" + Je + " > .tns-item{" + l + "}")) && Se.insertRule("@media (min-width: " + r / 16 + "em) {" + i + "}", Se.cssRules.length)
}
})(), bn()
}();
var tn = function() {
return ge ? H ? function() {
var e = Ve,
t = Ue;
e += fe, t -= fe, se ? (e += 1, t -= 1) : ae && ce % (ae + le) && (t -= 1), Ne && (t < Fe ? Fe -= ee : Fe < e && (Fe += ee))
} : function() {
if (Ue < Fe)
for (; Ve + ee <= Fe;) Fe -= ee;
else if (Fe < Ve)
for (; Fe <= Ue - ee;) Fe += ee
} : function() {
Fe = Math.max(Ve, Math.min(Ue, Fe))
}
}(),
nn = function() {
return H ? function() {
Yn(Q, ""), w || !he ? (Jn(), he && Ui(Q) || ni()) : function(t, n, i, r, e, o, a) {
var s = Math.min(o, 10),
l = 0 <= e.indexOf("%") ? "%" : "px",
c = (e = e.replace(l, ""), Number(t.style[n].replace(i, "").replace(r, "").replace(l, ""))),
u = (e - c) / o * s;
setTimeout(function e() {
o -= s;
c += u;
t.style[n] = i + c + l + r;
0 < o ? setTimeout(e, s) : a()
}, s)
}(Q, Be, He, Re, Qn(), he, ni), Y || Ei()
} : function() {
Oe = [];
var e = {};
e[x] = e[C] = ni, Ki(Z[qe], e), Yi(Z[Fe], e), Zn(qe, q, V, !0), Zn(Fe, z, q), x && C && he && Ui(Q) || ni()
}
}();
return {
version: "2.8.8",
getInfo: _i,
events: Qe,
goTo: ii,
play: function() {
Te && !Ft && (li(), Vt = !1)
},
pause: function() {
Ft && (ci(), Vt = !0)
},
isOn: ne,
updateSliderHeight: Wn,
refresh: bn,
destroy: function() {
if (Se.disabled = !0, Se.ownerNode && Se.ownerNode.remove(), Ki(g, {
resize: _n
}), pe && Ki(S, lt), Tt && Ki(Tt, rt), Lt && Ki(Lt, ot), Ki(Q, at), Ki(Q, st), Gt && Ki(Gt, {
click: ui
}), Te && clearInterval(Wt), H && x) {
var e = {};
e[x] = ni, Ki(Q, e)
}
we && Ki(Q, ct), _e && Ki(Q, ut);
var o = [J, At, Dt, St, Ot, Yt];
for (var t in L.forEach(function(e, t) {
var n = "container" === e ? K : m[e];
if ("object" === Qi(n)) {
var i = !!n.previousElementSibling && n.previousElementSibling,
r = n.parentNode;
n.outerHTML = o[t], m[e] = i ? i.nextElementSibling : r.firstElementChild
}
}), L = q = V = U = z = Y = K = X = Q = $ = J = Z = ee = G = te = oe = ae = se = le = ce = ue = fe = de = pe = he = me = ge = ve = Se = Ie = ie = Oe = Ne = ke = Me = Pe = je = Be = He = Re = We = Fe = qe = Ve = Ue = Ge = Ye = Ke = Xe = Qe = $e = Je = Ze = et = tt = nt = it = rt = ot = at = st = lt = ct = ut = ft = dt = pt = ht = mt = gt = vt = yt = bt = re = ye = be = Tt = At = xt = Ct = wt = _t = Ee = Lt = Ot = It = Nt = kt = Mt = Pt = jt = Bt = Ht = Rt = Te = Ae = zt = xe = Ce = Gt = Yt = De = Kt = Wt = Ft = qt = Vt = Ut = $t = Jt = Xt = Zt = Qt = en = we = _e = null, this) "rebuild" !== t && (this[t] = null);
ne = !1
},
rebuild: function() {
return e(xi(m, O))
}
}
}
*/
function rn(e) {
e && (ye = Ee = we = _e = pe = Te = Ce = De = !1)
}
function on() {
for (var e = H ? Fe - Ne : Fe; e < 0;) e += ee;
return e % ee + 1
}
function an(e) {
return e = e ? Math.max(0, Math.min(ge ? ee - 1 : ee - ue, e)) : 0, H ? e + Ne : e
}
function sn(e) {
for (null == e && (e = Fe), H && (e -= Ne); e < 0;) e += ee;
return Math.floor(e % ee)
}
function ln() {
return g.innerWidth || S.documentElement.clientWidth || S.body.clientWidth
}
function cn() {
return function e(t) {
var n, i = S.createElement("div");
return t.appendChild(i), n = i.offsetWidth, i.remove(), n || e(t.parentNode)
}($) - (2 * se - le)
}
function un(e) {
if (m[e]) return !0;
if (j)
for (var t in j)
if (j[t][e]) return !0;
return !1
}
function fn(e, t) {
if (null == t && (t = te), "items" === e && ae) return Math.floor(ce / (ae + le)) || 1;
var n = m[e];
if (j)
for (var i in j) t >= parseInt(i) && e in j[i] && (n = j[i][e]);
return "slideBy" === e && "page" === n && (n = fn("items")), H || "slideBy" !== e && "items" !== e || (n = Math.floor(n)), n
}
function dn(e, t, n, i, r) {
var o = "";
if (void 0 !== e) {
var a = e;
t && (a -= t), o = Y ? "margin: 0 " + a + "px 0 " + e + "px;" : "margin: " + e + "px 0 " + a + "px 0;"
} else if (t && !n) {
var s = "-" + t + "px";
o = "margin: 0 " + (Y ? s + " 0 0" : "0 " + s + " 0") + ";"
}
return r && w && i && (o += vn(i)), o
}
function pn(e, t, n) {
return e ? (e + t) * ke + "px" : b ? b + "(" + 100 * ke + "% / " + n + ")" : 100 * ke / n + "%"
}
function hn(e, t, n) {
var i;
if (e) i = e + t + "px";
else {
H || (n = Math.floor(n));
var r = H ? ke : n;
i = b ? b + "(100% / " + r + ")" : 100 / r + "%"
}
return i = "width:" + i, "inner" !== B ? i + ";" : i + " !important;"
}
function mn(e) {
var t = "";
!1 !== e && (t = (Y ? "padding-" : "margin-") + (Y ? "right" : "bottom") + ": " + e + "px;");
return t
}
function gn(e, t) {
var n = e.substring(0, e.length - t).toLowerCase();
return n = n && "-" + n + "-"
}
function vn(e) {
return gn(w, 18) + "transition-duration:" + e / 1e3 + "s;"
}
function yn(e) {
return gn(T, 17) + "animation-duration:" + e / 1e3 + "s;"
}
function bn() {
if (un("autoHeight") || oe || !Y) {
var e = function() {
if (oe) {
var t = ge ? Fe : ee - 1;
! function e() {
Z[t - 1].getBoundingClientRect().right.toFixed(2) === Z[t].getBoundingClientRect().left.toFixed(2) ? n() : setTimeout(function() {
e()
}, 16)
}()
} else n();
function n() {
Y && !oe || (Fn(), oe ? (Pe = Xn(), tt && (nt = An()), Ue = We(), rn(Ze || nt)) : Ei()), H && $n(), En(), wn()
}
},
t = Q.querySelectorAll("img");
ki(t, function(e) {
var t = e.src;
t.indexOf("data:image") < 0 ? (Yi(e, bt), e.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==", e.src = t, Pi(e, "loading"), Mn(e)) : Ie || On(e)
}), Ti(function() {
Bn(Fi(t), function() {
re = !0
})
}), !oe && Y && (t = Pn(Fe, ue)), Ie ? e() : Ti(function() {
Bn(Fi(t), e)
})
} else H && $n(), En(), wn()
}
function En() {
if (ht) {
var e = Te ? "stop" : "start";
Gt ? Ri(Gt, {
"data-action": e
}) : m.autoplayButtonOutput && (K.insertAdjacentHTML("top" !== m.autoplayPosition ? "beforeend" : "afterbegin", '<button data-action="' + e + '" type="button">' + Kt[0] + e + Kt[1] + xe[0] + "</button>"), Gt = K.querySelector("[data-action]")), Gt && Yi(Gt, {
click: ui
}), Te && (li(), Ce && Yi(Q, at), De && Yi(Q, st))
}
if (dt) {
var n = H ? Ne : 0;
if (Lt) Ri(Lt, {
"aria-label": "Carousel Pagination"
}), ki(It = Lt.children, function(e, t) {
Ri(e, {
"data-nav": t,
tabindex: "-1",
"aria-controls": Z[n + t].id,
"aria-label": Ht + (t + 1)
})
});
else {
for (var t = "", i = pt ? "" : 'style="display:none"', r = 0; r < ee; r++) t += '<button data-nav="' + r + '" tabindex="-1" aria-controls="' + Z[n + r].id + '" ' + i + ' type="button" aria-label="' + Ht + (r + 1) + '"></button>';
t = '<div class="tns-nav" aria-label="Carousel Pagination">' + t + "</div>", K.insertAdjacentHTML("top" !== m.navPosition ? "beforeend" : "afterbegin", t), Lt = K.querySelector(".tns-nav"), It = Lt.children
}
if (wi(), w) {
var o = w.substring(0, w.length - 18).toLowerCase(),
a = "transition: all " + he / 1e3 + "s";
o && (a = "-" + o + "-" + a), Oi(Se, "[aria-controls^=" + Je + "-item]", a, Ni(Se))
}
Ri(It[Pt], {
tabindex: "0",
"aria-label": Ht + (Pt + 1) + Rt
}), Pi(It[Pt], Bt), Yi(Lt, ot)
}
ft && (Tt || xt && Ct || (K.insertAdjacentHTML("top" !== m.controlsPosition ? "beforeend" : "afterbegin", '<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button data-controls="prev" tabindex="-1" aria-controls="' + Je + '" type="button">' + be[0] + '</button><button data-controls="next" tabindex="-1" aria-controls="' + Je + '" type="button">' + be[1] + "</button></div>"), Tt = K.querySelector(".tns-controls")), xt && Ct || (xt = Tt.children[0], Ct = Tt.children[1]), m.controlsContainer && Ri(Tt, {
"aria-label": "Carousel Navigation",
tabindex: "0"
}), (m.controlsContainer || m.prevButton && m.nextButton) && Ri([xt, Ct], {
"aria-controls": Je,
tabindex: "-1"
}), (m.controlsContainer || m.prevButton && m.nextButton) && (Ri(xt, {
"data-controls": "prev"
}), Ri(Ct, {
"data-controls": "next"
})), wt = Vn(xt), _t = Vn(Ct), Gn(), Tt ? Yi(Tt, rt) : (Yi(xt, rt), Yi(Ct, rt))), Cn()
}
function wn() {
if (H && x) {
var e = {};
e[x] = ni, Yi(Q, e)
}
we && Yi(Q, ct), _e && Yi(Q, ut), pe && Yi(S, lt), "inner" === B ? Qe.on("outerResized", function() {
Tn(), Qe.emit("innerLoaded", _i())
}) : (j || ae || oe || ve || !Y) && Yi(g, {
resize: _n
}), "outer" === B ? Qe.on("innerLoaded", jn) : ve && !Ze && jn(), Ln(), Ze ? In() : nt && Sn(), Qe.on("indexChanged", Hn), "inner" === B && Qe.emit("innerLoaded", _i()), "function" == typeof Xe && Xe(_i()), ne = !0
}
function _n(e) {
Ti(function() {
Tn(di(e))
})
}
function Tn(e) {
if (ne) {
"outer" === B && Qe.emit("outerResized", _i(e)), te = ln();
var t, n = G,
i = !1;
j && (xn(), (t = n !== G) && Qe.emit("newBreakpointStart", _i(e)));
var r, o, a = ue,
s = Ze,
l = nt,
c = pe,
u = ye,
f = Ee,
d = we,
p = _e,
h = Te,
m = Ce,
g = De,
v = Fe;
if (t) {
var y = ae,
b = ve,
E = be,
w = xe;
if (!I) var _ = le,
T = se
}
if (pe = fn("arrowKeys"), ye = fn("controls"), Ee = fn("nav"), we = fn("touch"), _e = fn("mouseDrag"), Te = fn("autoplay"), Ce = fn("autoplayHoverPause"), De = fn("autoplayResetOnVisibility"), t && (Ze = fn("disable"), ae = fn("fixedWidth"), he = fn("speed"), ve = fn("autoHeight"), be = fn("controlsText"), xe = fn("autoplayText"), Ae = fn("autoplayTimeout"), I || (se = fn("edgePadding"), le = fn("gutter"))), rn(Ze), ce = cn(), Y && !oe || Ze || (Fn(), Y || (Ei(), i = !0)), (ae || oe) && (Pe = Xn(), Ue = We()), (t || ae) && (ue = fn("items"), fe = fn("slideBy"), (o = ue !== a) && (ae || oe || (Ue = We()), tn())), t && Ze !== s && (Ze ? In() : function() {
if (!et) return;
if (Se.disabled = !1, Q.className += $e, $n(), ge)
for (var e = Ne; e--;) H && Vi(Z[e]), Vi(Z[ke - e - 1]);
if (!H)
for (var t = Fe, n = Fe + ee; t < n; t++) {
var i = Z[t],
r = t < Fe + ue ? q : z;
i.style.left = 100 * (t - Fe) / ue + "%", Pi(i, r)
}
Dn(), et = !1
}()), tt && (t || ae || oe) && (nt = An()) !== l && (nt ? (Jn(Qn(an(0))), Sn()) : (function() {
if (!it) return;
se && I && (X.style.margin = "");
if (Ne)
for (var e = "tns-transparent", t = Ne; t--;) H && ji(Z[t], e), ji(Z[ke - t - 1], e);
Dn(), it = !1
}(), i = !0)), rn(Ze || nt), Te || (Ce = De = !1), pe !== c && (pe ? Yi(S, lt) : Ki(S, lt)), ye !== u && (ye ? Tt ? Vi(Tt) : (xt && Vi(xt), Ct && Vi(Ct)) : Tt ? qi(Tt) : (xt && qi(xt), Ct && qi(Ct))), Ee !== f && (Ee ? (Vi(Lt), wi()) : qi(Lt)), we !== d && (we ? Yi(Q, ct) : Ki(Q, ct)), _e !== p && (_e ? Yi(Q, ut) : Ki(Q, ut)), Te !== h && (Te ? (Gt && Vi(Gt), Ft || Vt || li()) : (Gt && qi(Gt), Ft && ci())), Ce !== m && (Ce ? Yi(Q, at) : Ki(Q, at)), De !== g && (De ? Yi(S, st) : Ki(S, st)), t && (ae !== y && (i = !0), ve !== b && (ve || (X.style.height = "")), ye && be !== E && (xt.innerHTML = be[0], Ct.innerHTML = be[1]), Gt && xe !== w)) {
var A = Te ? 1 : 0,
x = Gt.innerHTML,
C = x.length - w[A].length;
x.substring(C) === w[A] && (Gt.innerHTML = x.substring(0, C) + xe[A])
}
if ((r = Fe !== v) && (Qe.emit("indexChanged", _i()), i = !0), o && (r || Hn(), H || function() {
for (var e = Fe + Math.min(ee, ue), t = ke; t--;) {
var n = Z[t];
Fe <= t && t < e ? (Pi(n, "tns-moving"), n.style.left = 100 * (t - Fe) / ue + "%", Pi(n, q), ji(n, z)) : n.style.left && (n.style.left = "", Pi(n, z), ji(n, q)), ji(n, V)
}
setTimeout(function() {
ki(Z, function(e) {
ji(e, "tns-moving")
})
}, 300)
}()), !Ze && !nt) {
if (t && !I && (se === T && le === _ || (X.style.cssText = dn(se, le, ae, he, ve)), Y)) {
H && (Q.style.width = pn(ae, le, ue));
var D = hn(ae, le, ue) + mn(le);
! function(e, t) {
"deleteRule" in e ? e.deleteRule(t) : e.removeRule(t)
}(Se, Ni(Se) - 1), Oi(Se, "#" + Je + " > .tns-item", D, Ni(Se))
}
ve && jn(), i && ($n(), qe = Fe)
}
t && Qe.emit("newBreakpointEnd", _i(e))
}
}
function An() {
return ae || oe ? ae ? (ae + le) * ee <= ce + 2 * se : (ge ? ie[ee] : Kn()) <= ce + 2 * se : ee <= ue
}
function xn() {
for (var e in G = 0, j)(e = parseInt(e)) <= te && (G = e)
}
function Cn() {
!Te && Gt && qi(Gt), !Ee && Lt && qi(Lt), ye || (Tt ? qi(Tt) : (xt && qi(xt), Ct && qi(Ct)))
}
function Dn() {
Te && Gt && Vi(Gt), Ee && Lt && Vi(Lt), ye && (Tt ? Vi(Tt) : (xt && Vi(xt), Ct && Vi(Ct)))
}
function Sn() {
if (!it) {
if (se && (X.style.margin = "0px"), Ne)
for (var e = "tns-transparent", t = Ne; t--;) H && Pi(Z[t], e), Pi(Z[ke - t - 1], e);
Cn(), it = !0
}
}
function In() {
if (!et) {
if (Se.disabled = !0, Q.className = Q.className.replace($e.substring(1), ""), Wi(Q, ["style"]), ge)
for (var e = Ne; e--;) H && qi(Z[e]), qi(Z[ke - e - 1]);
if (Y && H || Wi(X, ["style"]), !H)
for (var t = Fe, n = Fe + ee; t < n; t++) {
var i = Z[t];
Wi(i, ["style"]), ji(i, q), ji(i, z)
}
Cn(), et = !0
}
}
function Ln() {
if (Ie && !Ze) {
var e = Fe;
if (oe)
for (var t = Fe + 1, n = t, i = ie[Fe] + ce + se - le; ie[t] < i;) n = ++t;
else n = Fe + ue;
for (se && (e -= 1, oe || (n += 1)), e = Math.floor(Math.max(e, 0)), n = Math.ceil(Math.min(n, ke)); e < n; e++) ki(Z[e].querySelectorAll(Le), function(e) {
if (!Mi(e, yt)) {
var t = {};
t[x] = function(e) {
e.stopPropagation()
}, Yi(e, t), Yi(e, bt);
var n = Hi(e, "data-srcset");
n && (e.srcset = n), e.src = Hi(e, "data-src"), Pi(e, "loading"), Mn(e)
}
})
}
}
function On(e) {
Pi(e, "loaded"), kn(e)
}
function Nn(e) {
Pi(e, "failed"), kn(e)
}
function kn(e) {
Pi(e, "tns-complete"), ji(e, "loading"), Ki(e, bt)
}
function Mn(e) {
e.complete && (0 !== e.naturalWidth ? On(e) : Nn(e))
}
function Pn(e, t) {
for (var n = [], i = e, r = Math.min(e + t, ke); i < r; i++) ki(Z[i].querySelectorAll("img"), function(e) {
n.push(e)
});
return n
}
function jn() {
var e = ve ? Pn(Fe, ue) : Pn(Ne, ee);
Ti(function() {
Bn(e, Wn)
})
}
function Bn(n, e) {
return re ? e() : (n.forEach(function(e, t) {
Mi(e, yt) && n.splice(t, 1)
}), n.length ? void Ti(function() {
Bn(n, e)
}) : e())
}
function Hn() {
Ln(),
function() {
for (var e = Fe + Math.min(ee, ue), t = ke; t--;) {
var n = Z[t];
Fe <= t && t < e ? Bi(n, "tabindex") && (Ri(n, {
"aria-hidden": "false"
}), Wi(n, ["tabindex"]), Pi(n, vt)) : (Bi(n, "tabindex") || Ri(n, {
"aria-hidden": "true",
tabindex: "-1"
}), Mi(n, vt) && ji(n, vt))
}
}(), Gn(), wi(),
function() {
if (Ee && (Pt = 0 <= Mt ? Mt : sn(), Mt = -1, Pt !== jt)) {
var e = It[jt],
t = It[Pt];
Ri(e, {
tabindex: "-1",
"aria-label": Ht + (jt + 1)
}), Ri(t, {
tabindex: "0",
"aria-label": Ht + (Pt + 1) + Rt
}), ji(e, Bt), Pi(t, Bt), jt = Pt
}
}()
}
function Rn(e, t) {
for (var n = [], i = e, r = Math.min(e + t, ke); i < r; i++) n.push(Z[i].offsetHeight);
return Math.max.apply(null, n)
}
function Wn() {
var e = ve ? Rn(Fe, ue) : Rn(Ne, ee);
X.style.height !== e && (X.style.height = e + "px")
}
function Fn() {
ie = [0];
for (var e, t = Y ? "left" : "top", n = Z[0].getBoundingClientRect()[t], i = 1; i < ke; i++) e = Z[i].getBoundingClientRect()[t], ie.push(e - n)
}
function qn(e) {
return e.nodeName.toLowerCase()
}
function Vn(e) {
return "button" === qn(e)
}
function Un(e) {
return "true" === e.getAttribute("aria-disabled")
}
function zn(e, t, n) {
e ? t.disabled = n : t.setAttribute("aria-disabled", n.toString())
}
function Gn() {
if (ye && !me && !ge) {
var e = wt ? xt.disabled : Un(xt),
t = _t ? Ct.disabled : Un(Ct),
n = Fe <= Ve,
i = !me && Ue <= Fe;
n && !e && zn(wt, xt, !0), !n && e && zn(wt, xt, !1), i && !t && zn(_t, Ct, !0), !i && t && zn(_t, Ct, !1)
}
}
function Yn(e, t) {
w && (e.style[w] = t)
}
function Kn() {
return ae ? (ae + le) * ke : ie[ke - 1] + Z[ke - 1].getBoundingClientRect().width
}
function Xn() {
var e = ce - (Kn() - le);
return se && (e += se - le), 0 < e && (e = 0), e
}
function Qn(e) {
var t;
(null == e && (e = Fe), Y && !oe) ? t = ae ? -(ae + le) * e : 100 * -e / (o ? ke : ue): t = -ie[e];
return Me && (t = Math.max(t, Pe)), t += !Y || oe || ae ? "px" : "%"
}
function $n(e) {
Yn(Q, "0s"), Jn(e)
}
function Jn(e) {
null == e && (e = Qn()), Q.style[Be] = He + e + Re
}
function Zn(e, t, n, i) {
var r = e + ue;
ge || (r = Math.min(r, ke));
for (var o = e; o < r; o++) {
var a = Z[o];
i || (a.style.left = 100 * (o - Fe) / ue + "%"), U && _ && (a.style[_] = a.style[A] = U * (o - e) / 1e3 + "s"), ji(a, t), Pi(a, n), i && Oe.push(a)
}
}
function ei(e, t) {
je && tn(), Fe === qe && !t || (Qe.emit("indexChanged", _i()), Qe.emit("transitionStart", _i()), ve && jn(), Ft && e && 0 <= ["click", "keydown"].indexOf(e.type) && ci(), Ke = !0, nn())
}
function ti(e) {
return e.toLowerCase().replace(/-/g, "")
}
function ni(e) {
if (H || Ke) {
if (Qe.emit("transitionEnd", _i(e)), !H && 0 < Oe.length)
for (var t = 0; t < Oe.length; t++) {
var n = Oe[t];
n.style.left = "", A && _ && (n.style[A] = "", n.style[_] = ""), ji(n, V), Pi(n, z)
}
if (!e || !H && e.target.parentNode === Q || e.target === Q && ti(e.propertyName) === ti(Be)) {
if (!je) {
var i = Fe;
tn(), Fe !== i && (Qe.emit("indexChanged", _i()), $n())
}
"inner" === B && Qe.emit("innerLoaded", _i()), Ke = !1, qe = Fe
}
}
}
function ii(e, t) {
if (!nt)
if ("prev" === e) ri(t, -1);
else if ("next" === e) ri(t, 1);
else {
if (Ke) {
if (ze) return;
ni()
}
var n = sn(),
i = 0;
if ("first" === e ? i = -n : "last" === e ? i = H ? ee - ue - n : ee - 1 - n : ("number" != typeof e && (e = parseInt(e)), isNaN(e) || (t || (e = Math.max(0, Math.min(ee - 1, e))), i = e - n)), !H && i && Math.abs(i) < ue) {
var r = 0 < i ? 1 : -1;
i += Ve <= Fe + i - ee ? ee * r : 2 * ee * r * -1
}
Fe += i, H && ge && (Fe < Ve && (Fe += ee), Ue < Fe && (Fe -= ee)), sn(Fe) !== sn(qe) && ei(t)
}
}
function ri(e, t) {
if (Ke) {
if (ze) return;
ni()
}
var n;
if (!t) {
for (var i = (e = di(e)).target || e.srcElement; i !== Tt && [xt, Ct].indexOf(i) < 0;) i = i.parentNode;
var r = [xt, Ct].indexOf(i);
0 <= r && (n = !0, t = 0 === r ? -1 : 1)
}
if (me) {
if (Fe === Ve && -1 === t) return void ii("last", e);
if (Fe === Ue && 1 === t) return void ii("first", e)
}
t && (Fe += fe * t, oe && (Fe = Math.floor(Fe)), ei(n || e && "keydown" === e.type ? e : null))
}
function oi() {
Wt = setInterval(function() {
ri(null, zt)
}, Ae), Ft = !0
}
function ai() {
clearInterval(Wt), Ft = !1
}
function si(e, t) {
Ri(Gt, {
"data-action": e
}), Gt.innerHTML = Kt[0] + e + Kt[1] + t
}
function li() {
oi(), Gt && si("stop", xe[1])
}
function ci() {
ai(), Gt && si("start", xe[0])
}
function ui() {
Vt = Ft ? (ci(), !0) : (li(), !1)
}
function fi(e) {
e.focus()
}
function di(e) {
return hi(e = e || g.event) ? e.changedTouches[0] : e
}
function pi(e) {
return e.target || g.event.srcElement
}
function hi(e) {
return 0 <= e.type.indexOf("touch")
}
function mi(e) {
e.preventDefault ? e.preventDefault() : e.returnValue = !1
}
function gi() {
return function(e, t) {
var n = !1,
i = Math.abs(90 - Math.abs(e));
return 90 - t <= i ? n = "horizontal" : i <= t && (n = "vertical"), n
}(function(e, t) {
return Math.atan2(e, t) * (180 / Math.PI)
}(Jt.y - $t.y, Jt.x - $t.x), Ge) === m.axis
}
function vi(e) {
if (Ke) {
if (ze) return;
ni()
}
Te && Ft && ai(), Zt = !0, Qt && (Ai(Qt), Qt = null);
var t = di(e);
Qe.emit(hi(e) ? "touchStart" : "dragStart", _i(e)), !hi(e) && 0 <= ["img", "a"].indexOf(qn(pi(e))) && mi(e), Jt.x = $t.x = parseInt(t.clientX), Jt.y = $t.y = parseInt(t.clientY), H && (Xt = parseFloat(Q.style[Be].replace(He, "").replace(Re, "")), Yn(Q, "0s"))
}
function yi(e) {
if (Zt) {
var t = di(e);
Jt.x = parseInt(t.clientX), Jt.y = parseInt(t.clientY), H ? Qt = Qt || Ti(function() {
! function e(t) {
if (!Ye) return void(Zt = !1);
Ai(Qt);
Zt && (Qt = Ti(function() {
e(t)
}));
"?" === Ye && (Ye = gi());
if (Ye) {
!Et && hi(t) && (Et = !0);
try {
t.type && Qe.emit(hi(t) ? "touchMove" : "dragMove", _i(t))
} catch (e) {}
var n = Xt,
i = en(Jt, $t);
if (!Y || ae || oe) n += i, n += "px";
else {
var r = o ? i * ue * 100 / (ce * ke) : 100 * i / ce;
n += r, n += "%"
}
Q.style[Be] = He + n + Re
}
}(e)
}) : ("?" === Ye && (Ye = gi()), Ye && (Et = !0)), Et && e.preventDefault()
}
}
function bi(i) {
if (Zt) {
Qt && (Ai(Qt), Qt = null), H && Yn(Q, ""), Zt = !1;
var e = di(i);
Jt.x = parseInt(e.clientX), Jt.y = parseInt(e.clientY);
var r = en(Jt, $t);
if (Math.abs(r)) {
if (!hi(i)) {
var n = pi(i);
Yi(n, {
click: function e(t) {
mi(t), Ki(n, {
click: e
})
}
})
}
H ? Qt = Ti(function() {
if (Y && !oe) {
var e = -r * ue / ce;
e = 0 < r ? Math.floor(e) : Math.ceil(e), Fe += e
} else {
var t = -(Xt + r);
if (t <= 0) Fe = Ve;
else if (t >= ie[ie.length - 1]) Fe = Ue;
else
for (var n = 0; n < ke && t >= ie[n];) t > ie[Fe = n] && r < 0 && (Fe += 1), n++
}
ei(i, r), Qe.emit(hi(i) ? "touchEnd" : "dragEnd", _i(i))
}) : Ye && ri(i, 0 < r ? -1 : 1)
}
}
"auto" === m.preventScrollOnTouch && (Et = !1), Ge && (Ye = "?"), Te && !Ft && oi()
}
function Ei() {
X.style.height = ie[Fe + ue] - ie[Fe] + "px"
}
function wi() {
Ee && !pt && (function() {
Nt = [];
for (var e = sn() % ue; e < ee;) H && !ge && ee < e + ue && (e = ee - ue), Nt.push(e), e += ue;
(ge && Nt.length * ue < ee || !ge && 0 < Nt[0]) && Nt.unshift(0)
}(), Nt !== kt && (ki(It, function(e, t) {
Nt.indexOf(t) < 0 ? qi(e) : Vi(e)
}), kt = Nt))
}
function _i(e) {
return {
container: Q,
slideItems: Z,
navContainer: Lt,
navItems: It,
controlsContainer: Tt,
hasControls: ft,
prevButton: xt,
nextButton: Ct,
items: ue,
slideBy: fe,
cloneCount: Ne,
slideCount: ee,
slideCountNew: ke,
index: Fe,
indexCached: qe,
displayIndex: on(),
navCurrentIndex: Pt,
navCurrentIndexCached: jt,
visibleNavIndexes: Nt,
visibleNavIndexesCached: kt,
sheet: Se,
isOn: ne,
event: e || {}
}
}
D && console.warn("No slides found in", m.container)
}
}, function(e, t, n) {
"use strict";
var i = n(0),
c = n.n(i),
u = n(2);
c()("#review").hide();
var r = c()("#updatecountryIP").val();
if ("" != Object(u.a)("reviewPopupClose") && "1" == r) console.log("testing1");
else {
var o = window.localStorage.getItem("newfrontpopreviews");
if (null != o && "" != o) {
console.log("review populate");
var f = JSON.parse(o),
d = 0;
setInterval(function() {
if ("" != Object(u.a)("reviewPopupClose")) console.log("testing1");
else {
var e = f[d].comment;
e = e.replace(";", "");
var t = f[d].post_date,
n = f[d].Country_Name,
i = f[d].Subject_Title,
r = f[d].Student_Id,
o = Math.round(f[d].pages),
a = f[d].deadline,
s = f[d].OType,
l = o + " Pages ";
f[d].rating, n = (n = n.replace('"', "")).replace('"', ""), i = (i = i.replace('"', "")).replace('"', ""), r = (r = r.replace('"', "")).replace('"', ""), t = (t = t.replace('"', "")).replace('"', ""), e = (e = (e = e.replace('"', "")).replace('"', "")).replace(/(\\r\\n|\\n|\\r)/gm, ""), 20 < i.length ? c()("#mahreviewssubject").html(i.substring(0, 20) + "...") : c()("#mahreviewssubject").html(i), c()("#mahreviewscomment").html(e), c()("#mahreviewotype").html(s), c()("#mahreviewdeadline").html(a), c()("#mahreviewwordcnt").html(l), c()("#mahreviewsuser").html("User:" + r), c()("#mahreviewsdate").html(t), "Australia" == n && c()("#mahreviewsimages").html("<img src='https://cdn1.myassignmenthelp.com/new-images/flag-aus-review.png' alt='Australia' title='Australia' />"), "Canada" == n && c()("#mahreviewsimages").html("<img title='CA' alt='CA' src='https://cdn1.myassignmenthelp.com/revamp-assets-version2/flags-header/ca.svg' style='height: 20px;margin-left: -3px;' >"), "India" == n && c()("#mahreviewsimages").html("<img src='https://cdn1.myassignmenthelp.com/new-images/in-flag-rev.png' alt='India' title='India' />"), "United States" == n && c()("#mahreviewsimages").html("<img src='https://cdn1.myassignmenthelp.com/new-images/usa-flag-rev.png' title='USA' alt='USA' />"), "New Zealand" == n && c()("#mahreviewsimages").html("<img src='https://cdn1.myassignmenthelp.com/new-images/nz-flag-rev.png' title='New Zealand' alt='New Zealand' />"), "United Arab Emirates" == n && c()("#mahreviewsimages").html("<img src='https://cdn1.myassignmenthelp.com/new-images/ae-flag-rev.png' alt='UAE' title='UAE' />"), "United Kingdom" == n && c()("#mahreviewsimages").html("<img src='https://cdn1.myassignmenthelp.com/new-images/uk-flag-rev.png' title='UK' alt='UK' />"), "Malaysia" == n && c()("#mahreviewsimages").html("<img src='https://cdn1.myassignmenthelp.com/new-images/my-flag-rev.png' alt='Malaysia' title='Malaysia' />"), "Singapore" == n && c()("#mahreviewsimages").html("<img src='https://cdn1.myassignmenthelp.com/new-images/sg-flag-rev.png' alt='Singapore' title='Singapore' />"), "19" == ++d && (d = 0), c()("#review").show("slow")
}
}, 25500), setInterval(function() {
c()("#review").fadeOut("slow")
}, 24500)
}
}
c()("#closeBtn").click(function(e) {
Object(u.b)("reviewPopupClose", 1, 1), c()("#review").fadeOut("slow")
})
}, function(e, t, n) {}, function(e, t, n) {
! function() {
! function(e, t, w) {
"use strict";
function i(e, t) {
for (var n = 0; n < t.length; n++) {
var i = t[n];
i.enumerable = i.enumerable || false;
i.configurable = true;
if ("value" in i) i.writable = true;
Object.defineProperty(e, i.key, i)
}
}
function _(e, t, n) {
if (t) i(e.prototype, t);
if (n) i(e, n);
return e
}
function r(e, t, n) {
if (t in e) {
Object.defineProperty(e, t, {
value: n,
enumerable: true,
configurable: true,
writable: true
})
} else {
e[t] = n
}
return e
}
function T(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? arguments[e] : {};
var i = Object.keys(n);
if (typeof Object.getOwnPropertySymbols === "function") {
i = i.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
return Object.getOwnPropertyDescriptor(n, e).enumerable
}))
}
i.forEach(function(e) {
r(t, e, n[e])
})
}
return t
}
function m(e, t) {
e.prototype = Object.create(t.prototype);
e.prototype.constructor = e;
e.__proto__ = t
}
t = t && t.hasOwnProperty("default") ? t["default"] : t, w = w && w.hasOwnProperty("default") ? w["default"] : w;
var A = function(r) {
var n = "transitionend";
var i = 1e6;
var o = 1e3;
function l(e) {
return {}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()
}
function e() {
return {
bindType: n,
delegateType: n,
handle: function e(t) {
if (r(t.target).is(this)) {
return t.handleObj.handler.apply(this, arguments)
}
return undefined
}
}
}
function t(e) {
var t = this;
var n = false;
r(this).one(c.TRANSITION_END, function() {
n = true
});
setTimeout(function() {
if (!n) {
c.triggerTransitionEnd(t)
}
}, e);
return this
}
function a() {
r.fn.emulateTransitionEnd = t;
r.event.special[c.TRANSITION_END] = e()
}
var c = {
TRANSITION_END: "bsTransitionEnd",
getUID: function e(t) {
do {
t += ~~(Math.random() * i)
} while (document.getElementById(t));
return t
},
getSelectorFromElement: function e(t) {
var n = t.getAttribute("data-target");
if (!n || n === "#") {
n = t.getAttribute("href") || ""
}
try {
return document.querySelector(n) ? n : null
} catch (e) {
return null
}
},
getTransitionDurationFromElement: function e(t) {
if (!t) {
return 0
}
var n = r(t).css("transition-duration");
var i = parseFloat(n);
if (!i) {
return 0
}
n = n.split(",")[0];
return parseFloat(n) * o
},
reflow: function e(t) {
return t.offsetHeight
},
triggerTransitionEnd: function e(t) {
r(t).trigger(n)
},
supportsTransitionEnd: function e() {
return Boolean(n)
},
isElement: function e(t) {
return (t[0] || t).nodeType
},
typeCheckConfig: function e(t, n, i) {
for (var r in i) {
if (Object.prototype.hasOwnProperty.call(i, r)) {
var o = i[r];
var a = n[r];
var s = a && c.isElement(a) ? "element" : l(a);
if (!new RegExp(o).test(s)) {
throw new Error(t.toUpperCase() + ": " + ('Option "' + r + '" provided type "' + s + '" ') + ('but expected type "' + o + '".'))
}
}
}
}
};
a();
return c
}(t),
n = function(r) {
var e = "alert";
var t = "4.1.2";
var o = "bs.alert";
var n = "." + o;
var i = ".data-api";
var a = r.fn[e];
var s = {
DISMISS: '[data-dismiss="alert"]'
};
var l = {
CLOSE: "close" + n,
CLOSED: "closed" + n,
CLICK_DATA_API: "click" + n + i
};
var c = {
ALERT: "alert",
FADE: "fade",
SHOW: "show"
};
var u = function() {
function i(e) {
this._element = e
}
var e = i.prototype;
e.close = function e(t) {
var n = this._element;
if (t) {
n = this._getRootElement(t)
}
var i = this._triggerCloseEvent(n);
if (i.isDefaultPrevented()) {
return
}
this._removeElement(n)
};
e.dispose = function e() {
r.removeData(this._element, o);
this._element = null
};
e._getRootElement = function e(t) {
var n = A.getSelectorFromElement(t);
var i = false;
if (n) {
i = document.querySelector(n)
}
if (!i) {
i = r(t).closest("." + c.ALERT)[0]
}
return i
};
e._triggerCloseEvent = function e(t) {
var n = r.Event(l.CLOSE);
r(t).trigger(n);
return n
};
e._removeElement = function e(t) {
var n = this;
r(t).removeClass(c.SHOW);
if (!r(t).hasClass(c.FADE)) {
this._destroyElement(t);
return
}
var i = A.getTransitionDurationFromElement(t);
r(t).one(A.TRANSITION_END, function(e) {
return n._destroyElement(t, e)
}).emulateTransitionEnd(i)
};
e._destroyElement = function e(t) {
r(t).detach().trigger(l.CLOSED).remove()
};
i._jQueryInterface = function e(n) {
return this.each(function() {
var e = r(this);
var t = e.data(o);
if (!t) {
t = new i(this);
e.data(o, t)
}
if (n === "close") {
t[n](this)
}
})
};
i._handleDismiss = function e(t) {
return function(e) {
if (e) {
e.preventDefault()
}
t.close(this)
}
};
_(i, null, [{
key: "VERSION",
get: function e() {
return t
}
}]);
return i
}();
r(document).on(l.CLICK_DATA_API, s.DISMISS, u._handleDismiss(new u));
r.fn[e] = u._jQueryInterface;
r.fn[e].Constructor = u;
r.fn[e].noConflict = function() {
r.fn[e] = a;
return u._jQueryInterface
};
return u
}(t),
o = function(a) {
var e = "button";
var t = "4.1.2";
var i = "bs.button";
var n = "." + i;
var r = ".data-api";
var o = a.fn[e];
var s = {
ACTIVE: "active",
BUTTON: "btn",
FOCUS: "focus"
};
var l = {
DATA_TOGGLE_CARROT: '[data-toggle^="button"]',
DATA_TOGGLE: '[data-toggle="buttons"]',
INPUT: "input",
ACTIVE: ".active",
BUTTON: ".btn"
};
var c = {
CLICK_DATA_API: "click" + n + r,
FOCUS_BLUR_DATA_API: "focus" + n + r + " " + ("blur" + n + r)
};
var u = function() {
function n(e) {
this._element = e
}
var e = n.prototype;
e.toggle = function e() {
var t = true;
var n = true;
var i = a(this._element).closest(l.DATA_TOGGLE)[0];
if (i) {
var r = this._element.querySelector(l.INPUT);
if (r) {
if (r.type === "radio") {
if (r.checked && this._element.classList.contains(s.ACTIVE)) {
t = false
} else {
var o = i.querySelector(l.ACTIVE);
if (o) {
a(o).removeClass(s.ACTIVE)
}
}
}
if (t) {
if (r.hasAttribute("disabled") || i.hasAttribute("disabled") || r.classList.contains("disabled") || i.classList.contains("disabled")) {
return
}
r.checked = !this._element.classList.contains(s.ACTIVE);
a(r).trigger("change")
}
r.focus();
n = false
}
}
if (n) {
this._element.setAttribute("aria-pressed", !this._element.classList.contains(s.ACTIVE))
}
if (t) {
a(this._element).toggleClass(s.ACTIVE)
}
};
e.dispose = function e() {
a.removeData(this._element, i);
this._element = null
};
n._jQueryInterface = function e(t) {
return this.each(function() {
var e = a(this).data(i);
if (!e) {
e = new n(this);
a(this).data(i, e)
}
if (t === "toggle") {
e[t]()
}
})
};
_(n, null, [{
key: "VERSION",
get: function e() {
return t
}
}]);
return n
}();
a(document).on(c.CLICK_DATA_API, l.DATA_TOGGLE_CARROT, function(e) {
e.preventDefault();
var t = e.target;
if (!a(t).hasClass(s.BUTTON)) {
t = a(t).closest(l.BUTTON)
}
u._jQueryInterface.call(a(t), "toggle")
}).on(c.FOCUS_BLUR_DATA_API, l.DATA_TOGGLE_CARROT, function(e) {
var t = a(e.target).closest(l.BUTTON)[0];
a(t).toggleClass(s.FOCUS, /^focus(in)?$/.test(e.type))
});
a.fn[e] = u._jQueryInterface;
a.fn[e].Constructor = u;
a.fn[e].noConflict = function() {
a.fn[e] = o;
return u._jQueryInterface
};
return u
}(t),
a = function(m) {
var n = "carousel";
var t = "4.1.2";
var s = "bs.carousel";
var i = "." + s;
var e = ".data-api";
var r = m.fn[n];
var o = 37;
var l = 39;
var c = 500;
var u = {
interval: 5e3,
keyboard: true,
slide: false,
pause: "hover",
wrap: true
};
var f = {
interval: "(number|boolean)",
keyboard: "boolean",
slide: "(boolean|string)",
pause: "(string|boolean)",
wrap: "boolean"
};
var g = {
NEXT: "next",
PREV: "prev",
LEFT: "left",
RIGHT: "right"
};
var v = {
SLIDE: "slide" + i,
SLID: "slid" + i,
KEYDOWN: "keydown" + i,
MOUSEENTER: "mouseenter" + i,
MOUSELEAVE: "mouseleave" + i,
TOUCHEND: "touchend" + i,
LOAD_DATA_API: "load" + i + e,
CLICK_DATA_API: "click" + i + e
};
var y = {
CAROUSEL: "carousel",
ACTIVE: "active",
SLIDE: "slide",
RIGHT: "carousel-item-right",
LEFT: "carousel-item-left",
NEXT: "carousel-item-next",
PREV: "carousel-item-prev",
ITEM: "carousel-item"
};
var b = {
ACTIVE: ".active",
ACTIVE_ITEM: ".active.carousel-item",
ITEM: ".carousel-item",
NEXT_PREV: ".carousel-item-next, .carousel-item-prev",
INDICATORS: ".carousel-indicators",
DATA_SLIDE: "[data-slide], [data-slide-to]",
DATA_RIDE: '[data-ride="carousel"]'
};
var a = function() {
function a(e, t) {
this._items = null;
this._interval = null;
this._activeElement = null;
this._isPaused = false;
this._isSliding = false;
this.touchTimeout = null;
this._config = this._getConfig(t);
this._element = m(e)[0];
this._indicatorsElement = this._element.querySelector(b.INDICATORS);
this._addEventListeners()
}
var e = a.prototype;
e.next = function e() {
if (!this._isSliding) {
this._slide(g.NEXT)
}
};
e.nextWhenVisible = function e() {
if (!document.hidden && m(this._element).is(":visible") && m(this._element).css("visibility") !== "hidden") {
this.next()
}
};
e.prev = function e() {
if (!this._isSliding) {
this._slide(g.PREV)
}
};
e.pause = function e(t) {
if (!t) {
this._isPaused = true
}
if (this._element.querySelector(b.NEXT_PREV)) {
A.triggerTransitionEnd(this._element);
this.cycle(true)
}
clearInterval(this._interval);
this._interval = null
};
e.cycle = function e(t) {
if (!t) {
this._isPaused = false
}
if (this._interval) {
clearInterval(this._interval);
this._interval = null
}
if (this._config.interval && !this._isPaused) {
this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval)
}
};
e.to = function e(t) {
var n = this;
this._activeElement = this._element.querySelector(b.ACTIVE_ITEM);
var i = this._getItemIndex(this._activeElement);
if (t > this._items.length - 1 || t < 0) {
return
}
if (this._isSliding) {
m(this._element).one(v.SLID, function() {
return n.to(t)
});
return
}
if (i === t) {
this.pause();
this.cycle();
return
}
var r = t > i ? g.NEXT : g.PREV;
this._slide(r, this._items[t])
};
e.dispose = function e() {
m(this._element).off(i);
m.removeData(this._element, s);
this._items = null;
this._config = null;
this._element = null;
this._interval = null;
this._isPaused = null;
this._isSliding = null;
this._activeElement = null;
this._indicatorsElement = null
};
e._getConfig = function e(t) {
t = T({}, u, t);
A.typeCheckConfig(n, t, f);
return t
};
e._addEventListeners = function e() {
var t = this;
if (this._config.keyboard) {
m(this._element).on(v.KEYDOWN, function(e) {
return t._keydown(e)
})
}
if (this._config.pause === "hover") {
m(this._element).on(v.MOUSEENTER, function(e) {
return t.pause(e)
}).on(v.MOUSELEAVE, function(e) {
return t.cycle(e)
});
if ("ontouchstart" in document.documentElement) {
m(this._element).on(v.TOUCHEND, function() {
t.pause();
if (t.touchTimeout) {
clearTimeout(t.touchTimeout)
}
t.touchTimeout = setTimeout(function(e) {
return t.cycle(e)
}, c + t._config.interval)
})
}
}
};
e._keydown = function e(t) {
if (/input|textarea/i.test(t.target.tagName)) {
return
}
switch (t.which) {
case o:
t.preventDefault();
this.prev();
break;
case l:
t.preventDefault();
this.next();
break;
default:
}
};
e._getItemIndex = function e(t) {
this._items = t && t.parentNode ? [].slice.call(t.parentNode.querySelectorAll(b.ITEM)) : [];
return this._items.indexOf(t)
};
e._getItemByDirection = function e(t, n) {
var i = t === g.NEXT;
var r = t === g.PREV;
var o = this._getItemIndex(n);
var a = this._items.length - 1;
var s = r && o === 0 || i && o === a;
if (s && !this._config.wrap) {
return n
}
var l = t === g.PREV ? -1 : 1;
var c = (o + l) % this._items.length;
return c === -1 ? this._items[this._items.length - 1] : this._items[c]
};
e._triggerSlideEvent = function e(t, n) {
var i = this._getItemIndex(t);
var r = this._getItemIndex(this._element.querySelector(b.ACTIVE_ITEM));
var o = m.Event(v.SLIDE, {
relatedTarget: t,
direction: n,
from: r,
to: i
});
m(this._element).trigger(o);
return o
};
e._setActiveIndicatorElement = function e(t) {
if (this._indicatorsElement) {
var n = [].slice.call(this._indicatorsElement.querySelectorAll(b.ACTIVE));
m(n).removeClass(y.ACTIVE);
var i = this._indicatorsElement.children[this._getItemIndex(t)];
if (i) {
m(i).addClass(y.ACTIVE)
}
}
};
e._slide = function e(t, n) {
var i = this;
var r = this._element.querySelector(b.ACTIVE_ITEM);
var o = this._getItemIndex(r);
var a = n || r && this._getItemByDirection(t, r);
var s = this._getItemIndex(a);
var l = Boolean(this._interval);
var c;
var u;
var f;
if (t === g.NEXT) {
c = y.LEFT;
u = y.NEXT;
f = g.LEFT
} else {
c = y.RIGHT;
u = y.PREV;
f = g.RIGHT
}
if (a && m(a).hasClass(y.ACTIVE)) {
this._isSliding = false;
return
}
var d = this._triggerSlideEvent(a, f);
if (d.isDefaultPrevented()) {
return
}
if (!r || !a) {
return
}
this._isSliding = true;
if (l) {
this.pause()
}
this._setActiveIndicatorElement(a);
var p = m.Event(v.SLID, {
relatedTarget: a,
direction: f,
from: o,
to: s
});
if (m(this._element).hasClass(y.SLIDE)) {
m(a).addClass(u);
A.reflow(a);
m(r).addClass(c);
m(a).addClass(c);
var h = A.getTransitionDurationFromElement(r);
m(r).one(A.TRANSITION_END, function() {
m(a).removeClass(c + " " + u).addClass(y.ACTIVE);
m(r).removeClass(y.ACTIVE + " " + u + " " + c);
i._isSliding = false;
setTimeout(function() {
return m(i._element).trigger(p)
}, 0)
}).emulateTransitionEnd(h)
} else {
m(r).removeClass(y.ACTIVE);
m(a).addClass(y.ACTIVE);
this._isSliding = false;
m(this._element).trigger(p)
}
if (l) {
this.cycle()
}
};
a._jQueryInterface = function e(i) {
return this.each(function() {
var e = m(this).data(s);
var t = T({}, u, m(this).data());
if (typeof i === "object") {
t = T({}, t, i)
}
var n = typeof i === "string" ? i : t.slide;
if (!e) {
e = new a(this, t);
m(this).data(s, e)
}
if (typeof i === "number") {
e.to(i)
} else if (typeof n === "string") {
if (typeof e[n] === "undefined") {
throw new TypeError('No method named "' + n + '"')
}
e[n]()
} else if (t.interval) {
e.pause();
e.cycle()
}
})
};
a._dataApiClickHandler = function e(t) {
var n = A.getSelectorFromElement(this);
if (!n) {
return
}
var i = m(n)[0];
if (!i || !m(i).hasClass(y.CAROUSEL)) {
return
}
var r = T({}, m(i).data(), m(this).data());
var o = this.getAttribute("data-slide-to");
if (o) {
r.interval = false
}
a._jQueryInterface.call(m(i), r);
if (o) {
m(i).data(s).to(o)
}
t.preventDefault()
};
_(a, null, [{
key: "VERSION",
get: function e() {
return t
}
}, {
key: "Default",
get: function e() {
return u
}
}]);
return a
}();
m(document).on(v.CLICK_DATA_API, b.DATA_SLIDE, a._dataApiClickHandler);
m(window).on(v.LOAD_DATA_API, function() {
var e = [].slice.call(document.querySelectorAll(b.DATA_RIDE));
for (var t = 0, n = e.length; t < n; t++) {
var i = m(e[t]);
a._jQueryInterface.call(i, i.data())
}
});
m.fn[n] = a._jQueryInterface;
m.fn[n].Constructor = a;
m.fn[n].noConflict = function() {
m.fn[n] = r;
return a._jQueryInterface
};
return a
}(t),
s = function(f) {
var n = "collapse";
var t = "4.1.2";
var d = "bs.collapse";
var e = "." + d;
var i = ".data-api";
var r = f.fn[n];
var o = {
toggle: true,
parent: ""
};
var a = {
toggle: "boolean",
parent: "(string|element)"
};
var p = {
SHOW: "show" + e,
SHOWN: "shown" + e,
HIDE: "hide" + e,
HIDDEN: "hidden" + e,
CLICK_DATA_API: "click" + e + i
};
var h = {
SHOW: "show",
COLLAPSE: "collapse",
COLLAPSING: "collapsing",
COLLAPSED: "collapsed"
};
var s = {
WIDTH: "width",
HEIGHT: "height"
};
var m = {
ACTIVES: ".show, .collapsing",
DATA_TOGGLE: '[data-toggle="collapse"]'
};
var l = function() {
function u(t, e) {
this._isTransitioning = false;
this._element = t;
this._config = this._getConfig(e);
this._triggerArray = f.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#' + t.id + '"],' + ('[data-toggle="collapse"][data-target="#' + t.id + '"]')));
var n = [].slice.call(document.querySelectorAll(m.DATA_TOGGLE));
for (var i = 0, r = n.length; i < r; i++) {
var o = n[i];
var a = A.getSelectorFromElement(o);
var s = [].slice.call(document.querySelectorAll(a)).filter(function(e) {
return e === t
});
if (a !== null && s.length > 0) {
this._selector = a;
this._triggerArray.push(o)
}
}
this._parent = this._config.parent ? this._getParent() : null;
if (!this._config.parent) {
this._addAriaAndCollapsedClass(this._element, this._triggerArray)
}
if (this._config.toggle) {
this.toggle()
}
}
var e = u.prototype;
e.toggle = function e() {
if (f(this._element).hasClass(h.SHOW)) {
this.hide()
} else {
this.show()
}
};
e.show = function e() {
var t = this;
if (this._isTransitioning || f(this._element).hasClass(h.SHOW)) {
return
}
var n;
var i;
if (this._parent) {
n = [].slice.call(this._parent.querySelectorAll(m.ACTIVES)).filter(function(e) {
return e.getAttribute("data-parent") === t._config.parent
});
if (n.length === 0) {
n = null
}
}
if (n) {
i = f(n).not(this._selector).data(d);
if (i && i._isTransitioning) {
return
}
}
var r = f.Event(p.SHOW);
f(this._element).trigger(r);
if (r.isDefaultPrevented()) {
return
}
if (n) {
u._jQueryInterface.call(f(n).not(this._selector), "hide");
if (!i) {
f(n).data(d, null)
}
}
var o = this._getDimension();
f(this._element).removeClass(h.COLLAPSE).addClass(h.COLLAPSING);
this._element.style[o] = 0;
if (this._triggerArray.length) {
f(this._triggerArray).removeClass(h.COLLAPSED).attr("aria-expanded", true)
}
this.setTransitioning(true);
var a = function e() {
f(t._element).removeClass(h.COLLAPSING).addClass(h.COLLAPSE).addClass(h.SHOW);
t._element.style[o] = "";
t.setTransitioning(false);
f(t._element).trigger(p.SHOWN)
};
var s = o[0].toUpperCase() + o.slice(1);
var l = "scroll" + s;
var c = A.getTransitionDurationFromElement(this._element);
f(this._element).one(A.TRANSITION_END, a).emulateTransitionEnd(c);
this._element.style[o] = this._element[l] + "px"
};
e.hide = function e() {
var t = this;
if (this._isTransitioning || !f(this._element).hasClass(h.SHOW)) {
return
}
var n = f.Event(p.HIDE);
f(this._element).trigger(n);
if (n.isDefaultPrevented()) {
return
}
var i = this._getDimension();
this._element.style[i] = this._element.getBoundingClientRect()[i] + "px";
A.reflow(this._element);
f(this._element).addClass(h.COLLAPSING).removeClass(h.COLLAPSE).removeClass(h.SHOW);
var r = this._triggerArray.length;
if (r > 0) {
for (var o = 0; o < r; o++) {
var a = this._triggerArray[o];
var s = A.getSelectorFromElement(a);
if (s !== null) {
var l = f([].slice.call(document.querySelectorAll(s)));
if (!l.hasClass(h.SHOW)) {
f(a).addClass(h.COLLAPSED).attr("aria-expanded", false)
}
}
}
}
this.setTransitioning(true);
var c = function e() {
t.setTransitioning(false);
f(t._element).removeClass(h.COLLAPSING).addClass(h.COLLAPSE).trigger(p.HIDDEN)
};
this._element.style[i] = "";
var u = A.getTransitionDurationFromElement(this._element);
f(this._element).one(A.TRANSITION_END, c).emulateTransitionEnd(u)
};
e.setTransitioning = function e(t) {
this._isTransitioning = t
};
e.dispose = function e() {
f.removeData(this._element, d);
this._config = null;
this._parent = null;
this._element = null;
this._triggerArray = null;
this._isTransitioning = null
};
e._getConfig = function e(t) {
t = T({}, o, t);
t.toggle = Boolean(t.toggle);
A.typeCheckConfig(n, t, a);
return t
};
e._getDimension = function e() {
var t = f(this._element).hasClass(s.WIDTH);
return t ? s.WIDTH : s.HEIGHT
};
e._getParent = function e() {
var n = this;
var t = null;
if (A.isElement(this._config.parent)) {
t = this._config.parent;
if (typeof this._config.parent.jquery !== "undefined") {
t = this._config.parent[0]
}
} else {
t = document.querySelector(this._config.parent)
}
var i = '[data-toggle="collapse"][data-parent="' + this._config.parent + '"]';
var r = [].slice.call(t.querySelectorAll(i));
f(r).each(function(e, t) {
n._addAriaAndCollapsedClass(u._getTargetFromElement(t), [t])
});
return t
};
e._addAriaAndCollapsedClass = function e(t, n) {
if (t) {
var i = f(t).hasClass(h.SHOW);
if (n.length) {
f(n).toggleClass(h.COLLAPSED, !i).attr("aria-expanded", i)
}
}
};
u._getTargetFromElement = function e(t) {
var n = A.getSelectorFromElement(t);
return n ? document.querySelector(n) : null
};
u._jQueryInterface = function e(i) {
return this.each(function() {
var e = f(this);
var t = e.data(d);
var n = T({}, o, e.data(), typeof i === "object" && i ? i : {});
if (!t && n.toggle && /show|hide/.test(i)) {
n.toggle = false
}
if (!t) {
t = new u(this, n);
e.data(d, t)
}
if (typeof i === "string") {
if (typeof t[i] === "undefined") {
throw new TypeError('No method named "' + i + '"')
}
t[i]()
}
})
};
_(u, null, [{
key: "VERSION",
get: function e() {
return t
}
}, {
key: "Default",
get: function e() {
return o
}
}]);
return u
}();
f(document).on(p.CLICK_DATA_API, m.DATA_TOGGLE, function(e) {
if (e.currentTarget.tagName === "A") {
e.preventDefault()
}
var i = f(this);
var t = A.getSelectorFromElement(this);
var n = [].slice.call(document.querySelectorAll(t));
f(n).each(function() {
var e = f(this);
var t = e.data(d);
var n = t ? "toggle" : i.data();
l._jQueryInterface.call(e, n)
})
});
f.fn[n] = l._jQueryInterface;
f.fn[n].Constructor = l;
f.fn[n].noConflict = function() {
f.fn[n] = r;
return l._jQueryInterface
};
return l
}(t),
l = function(f) {
var n = "dropdown";
var t = "4.1.2";
var d = "bs.dropdown";
var i = "." + d;
var e = ".data-api";
var r = f.fn[n];
var s = 27;
var l = 32;
var p = 9;
var c = 38;
var h = 40;
var m = 3;
var g = new RegExp(c + "|" + h + "|" + s);
var v = {
HIDE: "hide" + i,
HIDDEN: "hidden" + i,
SHOW: "show" + i,
SHOWN: "shown" + i,
CLICK: "click" + i,
CLICK_DATA_API: "click" + i + e,
KEYDOWN_DATA_API: "keydown" + i + e,
KEYUP_DATA_API: "keyup" + i + e
};
var y = {
DISABLED: "disabled",
SHOW: "show",
DROPUP: "dropup",
DROPRIGHT: "dropright",
DROPLEFT: "dropleft",
MENURIGHT: "dropdown-menu-right",
MENULEFT: "dropdown-menu-left",
POSITION_STATIC: "position-static"
};
var b = {
DATA_TOGGLE: '[data-toggle="dropdown"]',
FORM_CHILD: ".dropdown form",
MENU: ".dropdown-menu",
NAVBAR_NAV: ".navbar-nav",
VISIBLE_ITEMS: ".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"
};
var o = {
TOP: "top-start",
TOPEND: "top-end",
BOTTOM: "bottom-start",
BOTTOMEND: "bottom-end",
RIGHT: "right-start",
RIGHTEND: "right-end",
LEFT: "left-start",
LEFTEND: "left-end"
};
var a = {
offset: 0,
flip: true,
boundary: "scrollParent",
reference: "toggle",
display: "dynamic"
};
var E = {
offset: "(number|string|function)",
flip: "boolean",
boundary: "(string|element)",
reference: "(string|element)",
display: "string"
};
var u = function() {
function u(e, t) {
this._element = e;
this._popper = null;
this._config = this._getConfig(t);
this._menu = this._getMenuElement();
this._inNavbar = this._detectNavbar();
this._addEventListeners()
}
var e = u.prototype;
e.toggle = function e() {
if (this._element.disabled || f(this._element).hasClass(y.DISABLED)) {
return
}
var t = u._getParentFromElement(this._element);
var n = f(this._menu).hasClass(y.SHOW);
u._clearMenus();
if (n) {
return
}
var i = {
relatedTarget: this._element
};
var r = f.Event(v.SHOW, i);
f(t).trigger(r);
if (r.isDefaultPrevented()) {
return
}
if (!this._inNavbar) {
if (typeof w === "undefined") {
throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)")
}
var o = this._element;
if (this._config.reference === "parent") {
o = t
} else if (A.isElement(this._config.reference)) {
o = this._config.reference;
if (typeof this._config.reference.jquery !== "undefined") {
o = this._config.reference[0]
}
}
if (this._config.boundary !== "scrollParent") {
f(t).addClass(y.POSITION_STATIC)
}
this._popper = new w(o, this._menu, this._getPopperConfig())
}
if ("ontouchstart" in document.documentElement && f(t).closest(b.NAVBAR_NAV).length === 0) {
f(document.body).children().on("mouseover", null, f.noop)
}
this._element.focus();
this._element.setAttribute("aria-expanded", true);
f(this._menu).toggleClass(y.SHOW);
f(t).toggleClass(y.SHOW).trigger(f.Event(v.SHOWN, i))
};
e.dispose = function e() {
f.removeData(this._element, d);
f(this._element).off(i);
this._element = null;
this._menu = null;
if (this._popper !== null) {
this._popper.destroy();
this._popper = null
}
};
e.update = function e() {
this._inNavbar = this._detectNavbar();
if (this._popper !== null) {
this._popper.scheduleUpdate()
}
};
e._addEventListeners = function e() {
var t = this;
f(this._element).on(v.CLICK, function(e) {
e.preventDefault();
e.stopPropagation();
t.toggle()
})
};
e._getConfig = function e(t) {
t = T({}, this.constructor.Default, f(this._element).data(), t);
A.typeCheckConfig(n, t, this.constructor.DefaultType);
return t
};
e._getMenuElement = function e() {
if (!this._menu) {
var t = u._getParentFromElement(this._element);
if (t) {
this._menu = t.querySelector(b.MENU)
}
}
return this._menu
};
e._getPlacement = function e() {
var t = f(this._element.parentNode);
var n = o.BOTTOM;
if (t.hasClass(y.DROPUP)) {
n = o.TOP;
if (f(this._menu).hasClass(y.MENURIGHT)) {
n = o.TOPEND
}
} else if (t.hasClass(y.DROPRIGHT)) {
n = o.RIGHT
} else if (t.hasClass(y.DROPLEFT)) {
n = o.LEFT
} else if (f(this._menu).hasClass(y.MENURIGHT)) {
n = o.BOTTOMEND
}
return n
};
e._detectNavbar = function e() {
return f(this._element).closest(".navbar").length > 0
};
e._getPopperConfig = function e() {
var t = this;
var n = {};
if (typeof this._config.offset === "function") {
n.fn = function(e) {
e.offsets = T({}, e.offsets, t._config.offset(e.offsets) || {});
return e
}
} else {
n.offset = this._config.offset
}
var i = {
placement: this._getPlacement(),
modifiers: {
offset: n,
flip: {
enabled: this._config.flip
},
preventOverflow: {
boundariesElement: this._config.boundary
}
}
};
if (this._config.display === "static") {
i.modifiers.applyStyle = {
enabled: false
}
}
return i
};
u._jQueryInterface = function e(n) {
return this.each(function() {
var e = f(this).data(d);
var t = typeof n === "object" ? n : null;
if (!e) {
e = new u(this, t);
f(this).data(d, e)
}
if (typeof n === "string") {
if (typeof e[n] === "undefined") {
throw new TypeError('No method named "' + n + '"')
}
e[n]()
}
})
};
u._clearMenus = function e(t) {
if (t && (t.which === m || t.type === "keyup" && t.which !== p)) {
return
}
var n = [].slice.call(document.querySelectorAll(b.DATA_TOGGLE));
for (var i = 0, r = n.length; i < r; i++) {
var o = u._getParentFromElement(n[i]);
var a = f(n[i]).data(d);
var s = {
relatedTarget: n[i]
};
if (t && t.type === "click") {
s.clickEvent = t
}
if (!a) {
continue
}
var l = a._menu;
if (!f(o).hasClass(y.SHOW)) {
continue
}
if (t && (t.type === "click" && /input|textarea/i.test(t.target.tagName) || t.type === "keyup" && t.which === p) && f.contains(o, t.target)) {
continue
}
var c = f.Event(v.HIDE, s);
f(o).trigger(c);
if (c.isDefaultPrevented()) {
continue
}
if ("ontouchstart" in document.documentElement) {
f(document.body).children().off("mouseover", null, f.noop)
}
n[i].setAttribute("aria-expanded", "false");
f(l).removeClass(y.SHOW);
f(o).removeClass(y.SHOW).trigger(f.Event(v.HIDDEN, s))
}
};
u._getParentFromElement = function e(t) {
var n;
var i = A.getSelectorFromElement(t);
if (i) {
n = document.querySelector(i)
}
return n || t.parentNode
};
u._dataApiKeydownHandler = function e(t) {
if (/input|textarea/i.test(t.target.tagName) ? t.which === l || t.which !== s && (t.which !== h && t.which !== c || f(t.target).closest(b.MENU).length) : !g.test(t.which)) {
return
}
t.preventDefault();
t.stopPropagation();
if (this.disabled || f(this).hasClass(y.DISABLED)) {
return
}
var n = u._getParentFromElement(this);
var i = f(n).hasClass(y.SHOW);
if (!i && (t.which !== s || t.which !== l) || i && (t.which === s || t.which === l)) {
if (t.which === s) {
var r = n.querySelector(b.DATA_TOGGLE);
f(r).trigger("focus")
}
f(this).trigger("click");
return
}
var o = [].slice.call(n.querySelectorAll(b.VISIBLE_ITEMS));
if (o.length === 0) {
return
}
var a = o.indexOf(t.target);
if (t.which === c && a > 0) {
a--
}
if (t.which === h && a < o.length - 1) {
a++
}
if (a < 0) {
a = 0
}
o[a].focus()
};
_(u, null, [{
key: "VERSION",
get: function e() {
return t
}
}, {
key: "Default",
get: function e() {
return a
}
}, {
key: "DefaultType",
get: function e() {
return E
}
}]);
return u
}();
f(document).on(v.KEYDOWN_DATA_API, b.DATA_TOGGLE, u._dataApiKeydownHandler).on(v.KEYDOWN_DATA_API, b.MENU, u._dataApiKeydownHandler).on(v.CLICK_DATA_API + " " + v.KEYUP_DATA_API, u._clearMenus).on(v.CLICK_DATA_API, b.DATA_TOGGLE, function(e) {
e.preventDefault();
e.stopPropagation();
u._jQueryInterface.call(f(this), "toggle")
}).on(v.CLICK_DATA_API, b.FORM_CHILD, function(e) {
e.stopPropagation()
});
f.fn[n] = u._jQueryInterface;
f.fn[n].Constructor = u;
f.fn[n].noConflict = function() {
f.fn[n] = r;
return u._jQueryInterface
};
return u
}(t, w),
c = function(s) {
var n = "modal";
var t = "4.1.2";
var a = "bs.modal";
var i = "." + a;
var e = ".data-api";
var r = s.fn[n];
var o = 27;
var l = {
backdrop: true,
keyboard: true,
focus: true,
show: true
};
var c = {
backdrop: "(boolean|string)",
keyboard: "boolean",
focus: "boolean",
show: "boolean"
};
var u = {
HIDE: "hide" + i,
HIDDEN: "hidden" + i,
SHOW: "show" + i,
SHOWN: "shown" + i,
FOCUSIN: "focusin" + i,
RESIZE: "resize" + i,
CLICK_DISMISS: "click.dismiss" + i,
KEYDOWN_DISMISS: "keydown.dismiss" + i,
MOUSEUP_DISMISS: "mouseup.dismiss" + i,
MOUSEDOWN_DISMISS: "mousedown.dismiss" + i,
CLICK_DATA_API: "click" + i + e
};
var f = {
SCROLLBAR_MEASURER: "modal-scrollbar-measure",
BACKDROP: "modal-backdrop",
OPEN: "modal-open",
FADE: "fade",
SHOW: "show"
};
var d = {
DIALOG: ".modal-dialog",
DATA_TOGGLE: '[data-toggle="modal"]',
DATA_DISMISS: '[data-dismiss="modal"]',
FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
STICKY_CONTENT: ".sticky-top"
};
var p = function() {
function r(e, t) {
this._config = this._getConfig(t);
this._element = e;
this._dialog = e.querySelector(d.DIALOG);
this._backdrop = null;
this._isShown = false;
this._isBodyOverflowing = false;
this._ignoreBackdropClick = false;
this._scrollbarWidth = 0
}
var e = r.prototype;
e.toggle = function e(t) {
return this._isShown ? this.hide() : this.show(t)
};
e.show = function e(t) {
var n = this;
if (this._isTransitioning || this._isShown) {
return
}
if (s(this._element).hasClass(f.FADE)) {
this._isTransitioning = true
}
var i = s.Event(u.SHOW, {
relatedTarget: t
});
s(this._element).trigger(i);
if (this._isShown || i.isDefaultPrevented()) {
return
}
this._isShown = true;
this._checkScrollbar();
this._setScrollbar();
this._adjustDialog();
s(document.body).addClass(f.OPEN);
this._setEscapeEvent();
this._setResizeEvent();
s(this._element).on(u.CLICK_DISMISS, d.DATA_DISMISS, function(e) {
return n.hide(e)
});
s(this._dialog).on(u.MOUSEDOWN_DISMISS, function() {
s(n._element).one(u.MOUSEUP_DISMISS, function(e) {
if (s(e.target).is(n._element)) {
n._ignoreBackdropClick = true
}
})
});
this._showBackdrop(function() {
return n._showElement(t)
})
};
e.hide = function e(t) {
var n = this;
if (t) {
t.preventDefault()
}
if (this._isTransitioning || !this._isShown) {
return
}
var i = s.Event(u.HIDE);
s(this._element).trigger(i);
if (!this._isShown || i.isDefaultPrevented()) {
return
}
this._isShown = false;
var r = s(this._element).hasClass(f.FADE);
if (r) {
this._isTransitioning = true
}
this._setEscapeEvent();
this._setResizeEvent();
s(document).off(u.FOCUSIN);
s(this._element).removeClass(f.SHOW);
s(this._element).off(u.CLICK_DISMISS);
s(this._dialog).off(u.MOUSEDOWN_DISMISS);
if (r) {
var o = A.getTransitionDurationFromElement(this._element);
s(this._element).one(A.TRANSITION_END, function(e) {
return n._hideModal(e)
}).emulateTransitionEnd(o)
} else {
this._hideModal()
}
};
e.dispose = function e() {
s.removeData(this._element, a);
s(window, document, this._element, this._backdrop).off(i);
this._config = null;
this._element = null;
this._dialog = null;
this._backdrop = null;
this._isShown = null;
this._isBodyOverflowing = null;
this._ignoreBackdropClick = null;
this._scrollbarWidth = null
};
e.handleUpdate = function e() {
this._adjustDialog()
};
e._getConfig = function e(t) {
t = T({}, l, t);
A.typeCheckConfig(n, t, c);
return t
};
e._showElement = function e(t) {
var n = this;
var i = s(this._element).hasClass(f.FADE);
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
document.body.appendChild(this._element)
}
this._element.style.display = "block";
this._element.removeAttribute("aria-hidden");
this._element.scrollTop = 0;
if (i) {
A.reflow(this._element)
}
s(this._element).addClass(f.SHOW);
if (this._config.focus) {
this._enforceFocus()
}
var r = s.Event(u.SHOWN, {
relatedTarget: t
});
var o = function e() {
if (n._config.focus) {
n._element.focus()
}
n._isTransitioning = false;
s(n._element).trigger(r)
};
if (i) {
var a = A.getTransitionDurationFromElement(this._element);
s(this._dialog).one(A.TRANSITION_END, o).emulateTransitionEnd(a)
} else {
o()
}
};
e._enforceFocus = function e() {
var t = this;
s(document).off(u.FOCUSIN).on(u.FOCUSIN, function(e) {
if (document !== e.target && t._element !== e.target && s(t._element).has(e.target).length === 0) {
t._element.focus()
}
})
};
e._setEscapeEvent = function e() {
var t = this;
if (this._isShown && this._config.keyboard) {
s(this._element).on(u.KEYDOWN_DISMISS, function(e) {
if (e.which === o) {
e.preventDefault();
t.hide()
}
})
} else if (!this._isShown) {
s(this._element).off(u.KEYDOWN_DISMISS)
}
};
e._setResizeEvent = function e() {
var t = this;
if (this._isShown) {
s(window).on(u.RESIZE, function(e) {
return t.handleUpdate(e)
})
} else {
s(window).off(u.RESIZE)
}
};
e._hideModal = function e() {
var t = this;
this._element.style.display = "none";
this._element.setAttribute("aria-hidden", true);
this._isTransitioning = false;
this._showBackdrop(function() {
s(document.body).removeClass(f.OPEN);
t._resetAdjustments();
t._resetScrollbar();
s(t._element).trigger(u.HIDDEN)
})
};
e._removeBackdrop = function e() {
if (this._backdrop) {
s(this._backdrop).remove();
this._backdrop = null
}
};
e._showBackdrop = function e(t) {
var n = this;
var i = s(this._element).hasClass(f.FADE) ? f.FADE : "";
if (this._isShown && this._config.backdrop) {
this._backdrop = document.createElement("div");
this._backdrop.className = f.BACKDROP;
if (i) {
this._backdrop.classList.add(i)
}
s(this._backdrop).appendTo(document.body);
s(this._element).on(u.CLICK_DISMISS, function(e) {
if (n._ignoreBackdropClick) {
n._ignoreBackdropClick = false;
return
}
if (e.target !== e.currentTarget) {
return
}
if (n._config.backdrop === "static") {
n._element.focus()
} else {
n.hide()
}
});
if (i) {
A.reflow(this._backdrop)
}
s(this._backdrop).addClass(f.SHOW);
if (!t) {
return
}
if (!i) {
t();
return
}
var r = A.getTransitionDurationFromElement(this._backdrop);
s(this._backdrop).one(A.TRANSITION_END, t).emulateTransitionEnd(r)
} else if (!this._isShown && this._backdrop) {
s(this._backdrop).removeClass(f.SHOW);
var o = function e() {
n._removeBackdrop();
if (t) {
t()
}
};
if (s(this._element).hasClass(f.FADE)) {
var a = A.getTransitionDurationFromElement(this._backdrop);
s(this._backdrop).one(A.TRANSITION_END, o).emulateTransitionEnd(a)
} else {
o()
}
} else if (t) {
t()
}
};
e._adjustDialog = function e() {
var t = this._element.scrollHeight > document.documentElement.clientHeight;
if (!this._isBodyOverflowing && t) {
this._element.style.paddingLeft = this._scrollbarWidth + "px"
}
if (this._isBodyOverflowing && !t) {
this._element.style.paddingRight = this._scrollbarWidth + "px"
}
};
e._resetAdjustments = function e() {
this._element.style.paddingLeft = "";
this._element.style.paddingRight = ""
};
e._checkScrollbar = function e() {
var t = document.body.getBoundingClientRect();
this._isBodyOverflowing = t.left + t.right < window.innerWidth;
this._scrollbarWidth = this._getScrollbarWidth()
};
e._setScrollbar = function e() {
var r = this;
if (this._isBodyOverflowing) {
var t = [].slice.call(document.querySelectorAll(d.FIXED_CONTENT));
var n = [].slice.call(document.querySelectorAll(d.STICKY_CONTENT));
s(t).each(function(e, t) {
var n = t.style.paddingRight;
var i = s(t).css("padding-right");
s(t).data("padding-right", n).css("padding-right", parseFloat(i) + r._scrollbarWidth + "px")
});
s(n).each(function(e, t) {
var n = t.style.marginRight;
var i = s(t).css("margin-right");
s(t).data("margin-right", n).css("margin-right", parseFloat(i) - r._scrollbarWidth + "px")
});
var i = document.body.style.paddingRight;
var o = s(document.body).css("padding-right");
s(document.body).data("padding-right", i).css("padding-right", parseFloat(o) + this._scrollbarWidth + "px")
}
};
e._resetScrollbar = function e() {
var t = [].slice.call(document.querySelectorAll(d.FIXED_CONTENT));
s(t).each(function(e, t) {
var n = s(t).data("padding-right");
s(t).removeData("padding-right");
t.style.paddingRight = n ? n : ""
});
var n = [].slice.call(document.querySelectorAll("" + d.STICKY_CONTENT));
s(n).each(function(e, t) {
var n = s(t).data("margin-right");
if (typeof n !== "undefined") {
s(t).css("margin-right", n).removeData("margin-right")
}
});
var i = s(document.body).data("padding-right");
s(document.body).removeData("padding-right");
document.body.style.paddingRight = i ? i : ""
};
e._getScrollbarWidth = function e() {
var t = document.createElement("div");
t.className = f.SCROLLBAR_MEASURER;
document.body.appendChild(t);
var n = t.getBoundingClientRect().width - t.clientWidth;
document.body.removeChild(t);
return n
};
r._jQueryInterface = function e(n, i) {
return this.each(function() {
var e = s(this).data(a);
var t = T({}, l, s(this).data(), typeof n === "object" && n ? n : {});
if (!e) {
e = new r(this, t);
s(this).data(a, e)
}
if (typeof n === "string") {
if (typeof e[n] === "undefined") {
throw new TypeError('No method named "' + n + '"')
}
e[n](i)
} else if (t.show) {
e.show(i)
}
})
};
_(r, null, [{
key: "VERSION",
get: function e() {
return t
}
}, {
key: "Default",
get: function e() {
return l
}
}]);
return r
}();
s(document).on(u.CLICK_DATA_API, d.DATA_TOGGLE, function(e) {
var t = this;
var n;
var i = A.getSelectorFromElement(this);
if (i) {
n = document.querySelector(i)
}
var r = s(n).data(a) ? "toggle" : T({}, s(n).data(), s(this).data());
if (this.tagName === "A" || this.tagName === "AREA") {
e.preventDefault()
}
var o = s(n).one(u.SHOW, function(e) {
if (e.isDefaultPrevented()) {
return
}
o.one(u.HIDDEN, function() {
if (s(t).is(":visible")) {
t.focus()
}
})
});
p._jQueryInterface.call(s(n), r, this)
});
s.fn[n] = p._jQueryInterface;
s.fn[n].Constructor = p;
s.fn[n].noConflict = function() {
s.fn[n] = r;
return p._jQueryInterface
};
return p
}(t),
g = function(f) {
var n = "tooltip";
var t = "4.1.2";
var r = "bs.tooltip";
var o = "." + r;
var e = f.fn[n];
var a = "bs-tooltip";
var s = new RegExp("(^|\\s)" + a + "\\S+", "g");
var l = {
animation: "boolean",
template: "string",
title: "(string|element|function)",
trigger: "string",
delay: "(number|object)",
html: "boolean",
selector: "(string|boolean)",
placement: "(string|function)",
offset: "(number|string)",
container: "(string|element|boolean)",
fallbackPlacement: "(string|array)",
boundary: "(string|element)"
};
var c = {
AUTO: "auto",
TOP: "top",
RIGHT: "right",
BOTTOM: "bottom",
LEFT: "left"
};
var u = {
animation: true,
template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
trigger: "hover focus",
title: "",
delay: 0,
html: false,
selector: false,
placement: "top",
offset: 0,
container: false,
fallbackPlacement: "flip",
boundary: "scrollParent"
};
var d = {
SHOW: "show",
OUT: "out"
};
var p = {
HIDE: "hide" + o,
HIDDEN: "hidden" + o,
SHOW: "show" + o,
SHOWN: "shown" + o,
INSERTED: "inserted" + o,
CLICK: "click" + o,
FOCUSIN: "focusin" + o,
FOCUSOUT: "focusout" + o,
MOUSEENTER: "mouseenter" + o,
MOUSELEAVE: "mouseleave" + o
};
var h = {
FADE: "fade",
SHOW: "show"
};
var m = {
TOOLTIP: ".tooltip",
TOOLTIP_INNER: ".tooltip-inner",
ARROW: ".arrow"
};
var g = {
HOVER: "hover",
FOCUS: "focus",
CLICK: "click",
MANUAL: "manual"
};
var i = function() {
function i(e, t) {
if (typeof w === "undefined") {
throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)")
}
this._isEnabled = true;
this._timeout = 0;
this._hoverState = "";
this._activeTrigger = {};
this._popper = null;
this.element = e;
this.config = this._getConfig(t);
this.tip = null;
this._setListeners()
}
var e = i.prototype;
e.enable = function e() {
this._isEnabled = true
};
e.disable = function e() {
this._isEnabled = false
};
e.toggleEnabled = function e() {
this._isEnabled = !this._isEnabled
};
e.toggle = function e(t) {
if (!this._isEnabled) {
return
}
if (t) {
var n = this.constructor.DATA_KEY;
var i = f(t.currentTarget).data(n);
if (!i) {
i = new this.constructor(t.currentTarget, this._getDelegateConfig());
f(t.currentTarget).data(n, i)
}
i._activeTrigger.click = !i._activeTrigger.click;
if (i._isWithActiveTrigger()) {
i._enter(null, i)
} else {
i._leave(null, i)
}
} else {
if (f(this.getTipElement()).hasClass(h.SHOW)) {
this._leave(null, this);
return
}
this._enter(null, this)
}
};
e.dispose = function e() {
clearTimeout(this._timeout);
f.removeData(this.element, this.constructor.DATA_KEY);
f(this.element).off(this.constructor.EVENT_KEY);
f(this.element).closest(".modal").off("hide.bs.modal");
if (this.tip) {
f(this.tip).remove()
}
this._isEnabled = null;
this._timeout = null;
this._hoverState = null;
this._activeTrigger = null;
if (this._popper !== null) {
this._popper.destroy()
}
this._popper = null;
this.element = null;
this.config = null;
this.tip = null
};
e.show = function e() {
var n = this;
if (f(this.element).css("display") === "none") {
throw new Error("Please use show on visible elements")
}
var t = f.Event(this.constructor.Event.SHOW);
if (this.isWithContent() && this._isEnabled) {
f(this.element).trigger(t);
var i = f.contains(this.element.ownerDocument.documentElement, this.element);
if (t.isDefaultPrevented() || !i) {
return
}
var r = this.getTipElement();
var o = A.getUID(this.constructor.NAME);
r.setAttribute("id", o);
this.element.setAttribute("aria-describedby", o);
this.setContent();
if (this.config.animation) {
f(r).addClass(h.FADE)
}
var a = typeof this.config.placement === "function" ? this.config.placement.call(this, r, this.element) : this.config.placement;
var s = this._getAttachment(a);
this.addAttachmentClass(s);
var l = this.config.container === false ? document.body : f(document).find(this.config.container);
f(r).data(this.constructor.DATA_KEY, this);
if (!f.contains(this.element.ownerDocument.documentElement, this.tip)) {
f(r).appendTo(l)
}
f(this.element).trigger(this.constructor.Event.INSERTED);
this._popper = new w(this.element, r, {
placement: s,
modifiers: {
offset: {
offset: this.config.offset
},
flip: {
behavior: this.config.fallbackPlacement
},
arrow: {
element: m.ARROW
},
preventOverflow: {
boundariesElement: this.config.boundary
}
},
onCreate: function e(t) {
if (t.originalPlacement !== t.placement) {
n._handlePopperPlacementChange(t)
}
},
onUpdate: function e(t) {
n._handlePopperPlacementChange(t)
}
});
f(r).addClass(h.SHOW);
if ("ontouchstart" in document.documentElement) {
f(document.body).children().on("mouseover", null, f.noop)
}
var c = function e() {
if (n.config.animation) {
n._fixTransition()
}
var t = n._hoverState;
n._hoverState = null;
f(n.element).trigger(n.constructor.Event.SHOWN);
if (t === d.OUT) {
n._leave(null, n)
}
};
if (f(this.tip).hasClass(h.FADE)) {
var u = A.getTransitionDurationFromElement(this.tip);
f(this.tip).one(A.TRANSITION_END, c).emulateTransitionEnd(u)
} else {
c()
}
}
};
e.hide = function e(t) {
var n = this;
var i = this.getTipElement();
var r = f.Event(this.constructor.Event.HIDE);
var o = function e() {
if (n._hoverState !== d.SHOW && i.parentNode) {
i.parentNode.removeChild(i)
}
n._cleanTipClass();
n.element.removeAttribute("aria-describedby");
f(n.element).trigger(n.constructor.Event.HIDDEN);
if (n._popper !== null) {
n._popper.destroy()
}
if (t) {
t()
}
};
f(this.element).trigger(r);
if (r.isDefaultPrevented()) {
return
}
f(i).removeClass(h.SHOW);
if ("ontouchstart" in document.documentElement) {
f(document.body).children().off("mouseover", null, f.noop)
}
this._activeTrigger[g.CLICK] = false;
this._activeTrigger[g.FOCUS] = false;
this._activeTrigger[g.HOVER] = false;
if (f(this.tip).hasClass(h.FADE)) {
var a = A.getTransitionDurationFromElement(i);
f(i).one(A.TRANSITION_END, o).emulateTransitionEnd(a)
} else {
o()
}
this._hoverState = ""
};
e.update = function e() {
if (this._popper !== null) {
this._popper.scheduleUpdate()
}
};
e.isWithContent = function e() {
return Boolean(this.getTitle())
};
e.addAttachmentClass = function e(t) {
f(this.getTipElement()).addClass(a + "-" + t)
};
e.getTipElement = function e() {
this.tip = this.tip || f(this.config.template)[0];
return this.tip
};
e.setContent = function e() {
var t = this.getTipElement();
this.setElementContent(f(t.querySelectorAll(m.TOOLTIP_INNER)), this.getTitle());
f(t).removeClass(h.FADE + " " + h.SHOW)
};
e.setElementContent = function e(t, n) {
var i = this.config.html;
if (typeof n === "object" && (n.nodeType || n.jquery)) {
if (i) {
if (!f(n).parent().is(t)) {
t.empty().append(n)
}
} else {
t.text(f(n).text())
}
} else {
t[i ? "html" : "text"](n)
}
};
e.getTitle = function e() {
var t = this.element.getAttribute("data-original-title");
if (!t) {
t = typeof this.config.title === "function" ? this.config.title.call(this.element) : this.config.title
}
return t
};
e._getAttachment = function e(t) {
return c[t.toUpperCase()]
};
e._setListeners = function e() {
var i = this;
var t = this.config.trigger.split(" ");
t.forEach(function(e) {
if (e === "click") {
f(i.element).on(i.constructor.Event.CLICK, i.config.selector, function(e) {
return i.toggle(e)
})
} else if (e !== g.MANUAL) {
var t = e === g.HOVER ? i.constructor.Event.MOUSEENTER : i.constructor.Event.FOCUSIN;
var n = e === g.HOVER ? i.constructor.Event.MOUSELEAVE : i.constructor.Event.FOCUSOUT;
f(i.element).on(t, i.config.selector, function(e) {
return i._enter(e)
}).on(n, i.config.selector, function(e) {
return i._leave(e)
})
}
f(i.element).closest(".modal").on("hide.bs.modal", function() {
return i.hide()
})
});
if (this.config.selector) {
this.config = T({}, this.config, {
trigger: "manual",
selector: ""
})
} else {
this._fixTitle()
}
};
e._fixTitle = function e() {
var t = typeof this.element.getAttribute("data-original-title");
if (this.element.getAttribute("title") || t !== "string") {
this.element.setAttribute("data-original-title", this.element.getAttribute("title") || "");
this.element.setAttribute("title", "")
}
};
e._enter = function e(t, n) {
var i = this.constructor.DATA_KEY;
n = n || f(t.currentTarget).data(i);
if (!n) {
n = new this.constructor(t.currentTarget, this._getDelegateConfig());
f(t.currentTarget).data(i, n)
}
if (t) {
n._activeTrigger[t.type === "focusin" ? g.FOCUS : g.HOVER] = true
}
if (f(n.getTipElement()).hasClass(h.SHOW) || n._hoverState === d.SHOW) {
n._hoverState = d.SHOW;
return
}
clearTimeout(n._timeout);
n._hoverState = d.SHOW;
if (!n.config.delay || !n.config.delay.show) {
n.show();
return
}
n._timeout = setTimeout(function() {
if (n._hoverState === d.SHOW) {
n.show()
}
}, n.config.delay.show)
};
e._leave = function e(t, n) {
var i = this.constructor.DATA_KEY;
n = n || f(t.currentTarget).data(i);
if (!n) {
n = new this.constructor(t.currentTarget, this._getDelegateConfig());
f(t.currentTarget).data(i, n)
}
if (t) {
n._activeTrigger[t.type === "focusout" ? g.FOCUS : g.HOVER] = false
}
if (n._isWithActiveTrigger()) {
return
}
clearTimeout(n._timeout);
n._hoverState = d.OUT;
if (!n.config.delay || !n.config.delay.hide) {
n.hide();
return
}
n._timeout = setTimeout(function() {
if (n._hoverState === d.OUT) {
n.hide()
}
}, n.config.delay.hide)
};
e._isWithActiveTrigger = function e() {
for (var t in this._activeTrigger) {
if (this._activeTrigger[t]) {
return true
}
}
return false
};
e._getConfig = function e(t) {
t = T({}, this.constructor.Default, f(this.element).data(), typeof t === "object" && t ? t : {});
if (typeof t.delay === "number") {
t.delay = {
show: t.delay,
hide: t.delay
}
}
if (typeof t.title === "number") {
t.title = t.title.toString()
}
if (typeof t.content === "number") {
t.content = t.content.toString()
}
A.typeCheckConfig(n, t, this.constructor.DefaultType);
return t
};
e._getDelegateConfig = function e() {
var t = {};
if (this.config) {
for (var n in this.config) {
if (this.constructor.Default[n] !== this.config[n]) {
t[n] = this.config[n]
}
}
}
return t
};
e._cleanTipClass = function e() {
var t = f(this.getTipElement());
var n = t.attr("class").match(s);
if (n !== null && n.length) {
t.removeClass(n.join(""))
}
};
e._handlePopperPlacementChange = function e(t) {
var n = t.instance;
this.tip = n.popper;
this._cleanTipClass();
this.addAttachmentClass(this._getAttachment(t.placement))
};
e._fixTransition = function e() {
var t = this.getTipElement();
var n = this.config.animation;
if (t.getAttribute("x-placement") !== null) {
return
}
f(t).removeClass(h.FADE);
this.config.animation = false;
this.hide();
this.show();
this.config.animation = n
};
i._jQueryInterface = function e(n) {
return this.each(function() {
var e = f(this).data(r);
var t = typeof n === "object" && n;
if (!e && /dispose|hide/.test(n)) {
return
}
if (!e) {
e = new i(this, t);
f(this).data(r, e)
}
if (typeof n === "string") {
if (typeof e[n] === "undefined") {
throw new TypeError('No method named "' + n + '"')
}
e[n]()
}
})
};
_(i, null, [{
key: "VERSION",
get: function e() {
return t
}
}, {
key: "Default",
get: function e() {
return u
}
}, {
key: "NAME",
get: function e() {
return n
}
}, {
key: "DATA_KEY",
get: function e() {
return r
}
}, {
key: "Event",
get: function e() {
return p
}
}, {
key: "EVENT_KEY",
get: function e() {
return o
}
}, {
key: "DefaultType",
get: function e() {
return l
}
}]);
return i
}();
f.fn[n] = i._jQueryInterface;
f.fn[n].Constructor = i;
f.fn[n].noConflict = function() {
f.fn[n] = e;
return i._jQueryInterface
};
return i
}(t, w),
u = function(r) {
var n = "popover";
var o = "4.1.2";
var a = "bs.popover";
var s = "." + a;
var e = r.fn[n];
var l = "bs-popover";
var c = new RegExp("(^|\\s)" + l + "\\S+", "g");
var u = T({}, g.Default, {
placement: "right",
trigger: "click",
content: "",
template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
});
var f = T({}, g.DefaultType, {
content: "(string|element|function)"
});
var d = {
FADE: "fade",
SHOW: "show"
};
var p = {
TITLE: ".popover-header",
CONTENT: ".popover-body"
};
var h = {
HIDE: "hide" + s,
HIDDEN: "hidden" + s,
SHOW: "show" + s,
SHOWN: "shown" + s,
INSERTED: "inserted" + s,
CLICK: "click" + s,
FOCUSIN: "focusin" + s,
FOCUSOUT: "focusout" + s,
MOUSEENTER: "mouseenter" + s,
MOUSELEAVE: "mouseleave" + s
};
var t = function(e) {
m(i, e);
function i() {
return e.apply(this, arguments) || this
}
var t = i.prototype;
t.isWithContent = function e() {
return this.getTitle() || this._getContent()
};
t.addAttachmentClass = function e(t) {
r(this.getTipElement()).addClass(l + "-" + t)
};
t.getTipElement = function e() {
this.tip = this.tip || r(this.config.template)[0];
return this.tip
};
t.setContent = function e() {
var t = r(this.getTipElement());
this.setElementContent(t.find(p.TITLE), this.getTitle());
var n = this._getContent();
if (typeof n === "function") {
n = n.call(this.element)
}
this.setElementContent(t.find(p.CONTENT), n);
t.removeClass(d.FADE + " " + d.SHOW)
};
t._getContent = function e() {
return this.element.getAttribute("data-content") || this.config.content
};
t._cleanTipClass = function e() {
var t = r(this.getTipElement());
var n = t.attr("class").match(c);
if (n !== null && n.length > 0) {
t.removeClass(n.join(""))
}
};
i._jQueryInterface = function e(n) {
return this.each(function() {
var e = r(this).data(a);
var t = typeof n === "object" ? n : null;
if (!e && /destroy|hide/.test(n)) {
return
}
if (!e) {
e = new i(this, t);
r(this).data(a, e)
}
if (typeof n === "string") {
if (typeof e[n] === "undefined") {
throw new TypeError('No method named "' + n + '"')
}
e[n]()
}
})
};
_(i, null, [{
key: "VERSION",
get: function e() {
return o
}
}, {
key: "Default",
get: function e() {
return u
}
}, {
key: "NAME",
get: function e() {
return n
}
}, {
key: "DATA_KEY",
get: function e() {
return a
}
}, {
key: "Event",
get: function e() {
return h
}
}, {
key: "EVENT_KEY",
get: function e() {
return s
}
}, {
key: "DefaultType",
get: function e() {
return f
}
}]);
return i
}(g);
r.fn[n] = t._jQueryInterface;
r.fn[n].Constructor = t;
r.fn[n].noConflict = function() {
r.fn[n] = e;
return t._jQueryInterface
};
return t
}(t),
f = function(a) {
var r = "scrollspy";
var t = "4.1.2";
var o = "bs.scrollspy";
var n = "." + o;
var e = ".data-api";
var i = a.fn[r];
var s = {
offset: 10,
method: "auto",
target: ""
};
var l = {
offset: "number",
method: "string",
target: "(string|element)"
};
var c = {
ACTIVATE: "activate" + n,
SCROLL: "scroll" + n,
LOAD_DATA_API: "load" + n + e
};
var u = {
DROPDOWN_ITEM: "dropdown-item",
DROPDOWN_MENU: "dropdown-menu",
ACTIVE: "active"
};
var f = {
DATA_SPY: '[data-spy="scroll"]',
ACTIVE: ".active",
NAV_LIST_GROUP: ".nav, .list-group",
NAV_LINKS: ".nav-link",
NAV_ITEMS: ".nav-item",
LIST_ITEMS: ".list-group-item",
DROPDOWN: ".dropdown",
DROPDOWN_ITEMS: ".dropdown-item",
DROPDOWN_TOGGLE: ".dropdown-toggle"
};
var d = {
OFFSET: "offset",
POSITION: "position"
};
var p = function() {
function i(e, t) {
var n = this;
this._element = e;
this._scrollElement = e.tagName === "BODY" ? window : e;
this._config = this._getConfig(t);
this._selector = this._config.target + " " + f.NAV_LINKS + "," + (this._config.target + " " + f.LIST_ITEMS + ",") + (this._config.target + " " + f.DROPDOWN_ITEMS);
this._offsets = [];
this._targets = [];
this._activeTarget = null;
this._scrollHeight = 0;
a(this._scrollElement).on(c.SCROLL, function(e) {
return n._process(e)
});
this.refresh();
this._process()
}
var e = i.prototype;
e.refresh = function e() {
var t = this;
var n = this._scrollElement === this._scrollElement.window ? d.OFFSET : d.POSITION;
var r = this._config.method === "auto" ? n : this._config.method;
var o = r === d.POSITION ? this._getScrollTop() : 0;
this._offsets = [];
this._targets = [];
this._scrollHeight = this._getScrollHeight();
var i = [].slice.call(document.querySelectorAll(this._selector));
i.map(function(e) {
var t;
var n = A.getSelectorFromElement(e);
if (n) {
t = document.querySelector(n)
}
if (t) {
var i = t.getBoundingClientRect();
if (i.width || i.height) {
return [a(t)[r]().top + o, n]
}
}
return null
}).filter(function(e) {
return e
}).sort(function(e, t) {
return e[0] - t[0]
}).forEach(function(e) {
t._offsets.push(e[0]);
t._targets.push(e[1])
})
};
e.dispose = function e() {
a.removeData(this._element, o);
a(this._scrollElement).off(n);
this._element = null;
this._scrollElement = null;
this._config = null;
this._selector = null;
this._offsets = null;
this._targets = null;
this._activeTarget = null;
this._scrollHeight = null
};
e._getConfig = function e(t) {
t = T({}, s, typeof t === "object" && t ? t : {});
if (typeof t.target !== "string") {
var n = a(t.target).attr("id");
if (!n) {
n = A.getUID(r);
a(t.target).attr("id", n)
}
t.target = "#" + n
}
A.typeCheckConfig(r, t, l);
return t
};
e._getScrollTop = function e() {
return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop
};
e._getScrollHeight = function e() {
return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight)
};
e._getOffsetHeight = function e() {
return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height
};
e._process = function e() {
var t = this._getScrollTop() + this._config.offset;
var n = this._getScrollHeight();
var i = this._config.offset + n - this._getOffsetHeight();
if (this._scrollHeight !== n) {
this.refresh()
}
if (t >= i) {
var r = this._targets[this._targets.length - 1];
if (this._activeTarget !== r) {
this._activate(r)
}
return
}
if (this._activeTarget && t < this._offsets[0] && this._offsets[0] > 0) {
this._activeTarget = null;
this._clear();
return
}
var o = this._offsets.length;
for (var a = o; a--;) {
var s = this._activeTarget !== this._targets[a] && t >= this._offsets[a] && (typeof this._offsets[a + 1] === "undefined" || t < this._offsets[a + 1]);
if (s) {
this._activate(this._targets[a])
}
}
};
e._activate = function e(t) {
this._activeTarget = t;
this._clear();
var n = this._selector.split(",");
n = n.map(function(e) {
return e + '[data-target="' + t + '"],' + (e + '[href="' + t + '"]')
});
var i = a([].slice.call(document.querySelectorAll(n.join(","))));
if (i.hasClass(u.DROPDOWN_ITEM)) {
i.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(u.ACTIVE);
i.addClass(u.ACTIVE)
} else {
i.addClass(u.ACTIVE);
i.parents(f.NAV_LIST_GROUP).prev(f.NAV_LINKS + ", " + f.LIST_ITEMS).addClass(u.ACTIVE);
i.parents(f.NAV_LIST_GROUP).prev(f.NAV_ITEMS).children(f.NAV_LINKS).addClass(u.ACTIVE)
}
a(this._scrollElement).trigger(c.ACTIVATE, {
relatedTarget: t
})
};
e._clear = function e() {
var t = [].slice.call(document.querySelectorAll(this._selector));
a(t).filter(f.ACTIVE).removeClass(u.ACTIVE)
};
i._jQueryInterface = function e(n) {
return this.each(function() {
var e = a(this).data(o);
var t = typeof n === "object" && n;
if (!e) {
e = new i(this, t);
a(this).data(o, e)
}
if (typeof n === "string") {
if (typeof e[n] === "undefined") {
throw new TypeError('No method named "' + n + '"')
}
e[n]()
}
})
};
_(i, null, [{
key: "VERSION",
get: function e() {
return t
}
}, {
key: "Default",
get: function e() {
return s
}
}]);
return i
}();
a(window).on(c.LOAD_DATA_API, function() {
var e = [].slice.call(document.querySelectorAll(f.DATA_SPY));
var t = e.length;
for (var n = t; n--;) {
var i = a(e[n]);
p._jQueryInterface.call(i, i.data())
}
});
a.fn[r] = p._jQueryInterface;
a.fn[r].Constructor = p;
a.fn[r].noConflict = function() {
a.fn[r] = i;
return p._jQueryInterface
};
return p
}(t),
d = function(u) {
var e = "tab";
var t = "4.1.2";
var r = "bs.tab";
var n = "." + r;
var i = ".data-api";
var o = u.fn[e];
var f = {
HIDE: "hide" + n,
HIDDEN: "hidden" + n,
SHOW: "show" + n,
SHOWN: "shown" + n,
CLICK_DATA_API: "click" + n + i
};
var d = {
DROPDOWN_MENU: "dropdown-menu",
ACTIVE: "active",
DISABLED: "disabled",
FADE: "fade",
SHOW: "show"
};
var p = {
DROPDOWN: ".dropdown",
NAV_LIST_GROUP: ".nav, .list-group",
ACTIVE: ".active",
ACTIVE_UL: "> li > .active",
DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
DROPDOWN_TOGGLE: ".dropdown-toggle",
DROPDOWN_ACTIVE_CHILD: "> .dropdown-menu .active"
};
var a = function() {
function i(e) {
this._element = e
}
var e = i.prototype;
e.show = function e() {
var i = this;
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && u(this._element).hasClass(d.ACTIVE) || u(this._element).hasClass(d.DISABLED)) {
return
}
var t;
var r;
var n = u(this._element).closest(p.NAV_LIST_GROUP)[0];
var o = A.getSelectorFromElement(this._element);
if (n) {
var a = n.nodeName === "UL" ? p.ACTIVE_UL : p.ACTIVE;
r = u.makeArray(u(n).find(a));
r = r[r.length - 1]
}
var s = u.Event(f.HIDE, {
relatedTarget: this._element
});
var l = u.Event(f.SHOW, {
relatedTarget: r
});
if (r) {
u(r).trigger(s)
}
u(this._element).trigger(l);
if (l.isDefaultPrevented() || s.isDefaultPrevented()) {
return
}
if (o) {
t = document.querySelector(o)
}
this._activate(this._element, n);
var c = function e() {
var t = u.Event(f.HIDDEN, {
relatedTarget: i._element
});
var n = u.Event(f.SHOWN, {
relatedTarget: r
});
u(r).trigger(t);
u(i._element).trigger(n)
};
if (t) {
this._activate(t, t.parentNode, c)
} else {
c()
}
};
e.dispose = function e() {
u.removeData(this._element, r);
this._element = null
};
e._activate = function e(t, n, i) {
var r = this;
var o;
if (n.nodeName === "UL") {
o = u(n).find(p.ACTIVE_UL)
} else {
o = u(n).children(p.ACTIVE)
}
var a = o[0];
var s = i && a && u(a).hasClass(d.FADE);
var l = function e() {
return r._transitionComplete(t, a, i)
};
if (a && s) {
var c = A.getTransitionDurationFromElement(a);
u(a).one(A.TRANSITION_END, l).emulateTransitionEnd(c)
} else {
l()
}
};
e._transitionComplete = function e(t, n, i) {
if (n) {
u(n).removeClass(d.SHOW + " " + d.ACTIVE);
var r = u(n.parentNode).find(p.DROPDOWN_ACTIVE_CHILD)[0];
if (r) {
u(r).removeClass(d.ACTIVE)
}
if (n.getAttribute("role") === "tab") {
n.setAttribute("aria-selected", false)
}
}
u(t).addClass(d.ACTIVE);
if (t.getAttribute("role") === "tab") {
t.setAttribute("aria-selected", true)
}
A.reflow(t);
u(t).addClass(d.SHOW);
if (t.parentNode && u(t.parentNode).hasClass(d.DROPDOWN_MENU)) {
var o = u(t).closest(p.DROPDOWN)[0];
if (o) {
var a = [].slice.call(o.querySelectorAll(p.DROPDOWN_TOGGLE));
u(a).addClass(d.ACTIVE)
}
t.setAttribute("aria-expanded", true)
}
if (i) {
i()
}
};
i._jQueryInterface = function e(n) {
return this.each(function() {
var e = u(this);
var t = e.data(r);
if (!t) {
t = new i(this);
e.data(r, t)
}
if (typeof n === "string") {
if (typeof t[n] === "undefined") {
throw new TypeError('No method named "' + n + '"')
}
t[n]()
}
})
};
_(i, null, [{
key: "VERSION",
get: function e() {
return t
}
}]);
return i
}();
u(document).on(f.CLICK_DATA_API, p.DATA_TOGGLE, function(e) {
e.preventDefault();
a._jQueryInterface.call(u(this), "show")
});
u.fn[e] = a._jQueryInterface;
u.fn[e].Constructor = a;
u.fn[e].noConflict = function() {
u.fn[e] = o;
return a._jQueryInterface
};
return a
}(t);
(function(e) {
if (typeof e === "undefined") {
throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.")
}
var t = e.fn.jquery.split(" ")[0].split(".");
var n = 1;
var i = 2;
var r = 9;
var o = 1;
var a = 4;
if (t[0] < i && t[1] < r || t[0] === n && t[1] === r && t[2] < o || t[0] >= a) {
throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")
}
})(t), e.Util = A, e.Alert = n, e.Button = o, e.Carousel = a, e.Collapse = s, e.Dropdown = l, e.Modal = c, e.Popover = u, e.Scrollspy = f, e.Tab = d, e.Tooltip = g, Object.defineProperty(e, "__esModule", {
value: true
})
}(t, n(0), n(15))
}()
}, function(e, Z, t) {
"use strict";
t.r(Z),
function(e) {
for (var t = "undefined" != typeof window && "undefined" != typeof document, n = ["Edge", "Trident", "Firefox"], i = 0, r = 0; r < n.length; r += 1)
if (t && 0 <= navigator.userAgent.indexOf(n[r])) {
i = 1;
break
}
var a = t && window.Promise ? function(e) {
var t = !1;
return function() {
t || (t = !0, window.Promise.resolve().then(function() {
t = !1, e()
}))
}
} : function(e) {
var t = !1;
return function() {
t || (t = !0, setTimeout(function() {
t = !1, e()
}, i))
}
};
function s(e) {
return e && "[object Function]" === {}.toString.call(e)
}
function E(e, t) {
if (1 !== e.nodeType) return [];
var n = e.ownerDocument.defaultView.getComputedStyle(e, null);
return t ? n[t] : n
}
function h(e) {
return "HTML" === e.nodeName ? e : e.parentNode || e.host
}
function m(e) {
if (!e) return document.body;
switch (e.nodeName) {
case "HTML":
case "BODY":
return e.ownerDocument.body;
case "#document":
return e.body
}
var t = E(e),
n = t.overflow,
i = t.overflowX,
r = t.overflowY;
return /(auto|scroll|overlay)/.test(n + r + i) ? e : m(h(e))
}
var o = t && !(!window.MSInputMethodContext || !document.documentMode),
l = t && /MSIE 10/.test(navigator.userAgent);
function g(e) {
return 11 === e ? o : 10 === e ? l : o || l
}
function b(e) {
if (!e) return document.documentElement;
for (var t = g(10) ? document.body : null, n = e.offsetParent || null; n === t && e.nextElementSibling;) n = (e = e.nextElementSibling).offsetParent;
var i = n && n.nodeName;
return i && "BODY" !== i && "HTML" !== i ? -1 !== ["TH", "TD", "TABLE"].indexOf(n.nodeName) && "static" === E(n, "position") ? b(n) : n : e ? e.ownerDocument.documentElement : document.documentElement
}
function c(e) {
return null !== e.parentNode ? c(e.parentNode) : e
}
function v(e, t) {
if (!(e && e.nodeType && t && t.nodeType)) return document.documentElement;
var n = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING,
i = n ? e : t,
r = n ? t : e,
o = document.createRange();
o.setStart(i, 0), o.setEnd(r, 0);
var a = o.commonAncestorContainer;
if (e !== a && t !== a || i.contains(r)) return function(e) {
var t = e.nodeName;
return "BODY" !== t && ("HTML" === t || b(e.firstElementChild) === e)
}(a) ? a : b(a);
var s = c(e);
return s.host ? v(s.host, t) : v(e, c(t).host)
}
function y(e, t) {
var n = "top" === (1 < arguments.length && void 0 !== t ? t : "top") ? "scrollTop" : "scrollLeft",
i = e.nodeName;
if ("BODY" !== i && "HTML" !== i) return e[n];
var r = e.ownerDocument.documentElement;
return (e.ownerDocument.scrollingElement || r)[n]
}
function f(e, t) {
var n = "x" === t ? "Left" : "Top",
i = "Left" == n ? "Right" : "Bottom";
return parseFloat(e["border" + n + "Width"], 10) + parseFloat(e["border" + i + "Width"], 10)
}
function u(e, t, n, i) {
return Math.max(t["offset" + e], t["scroll" + e], n["client" + e], n["offset" + e], n["scroll" + e], g(10) ? parseInt(n["offset" + e]) + parseInt(i["margin" + ("Height" === e ? "Top" : "Left")]) + parseInt(i["margin" + ("Height" === e ? "Bottom" : "Right")]) : 0)
}
function w(e) {
var t = e.body,
n = e.documentElement,
i = g(10) && getComputedStyle(n);
return {
height: u("Height", t, n, i),
width: u("Width", t, n, i)
}
}
function _(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e
}
var d = function() {
function i(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(e, t, n) {
return t && i(e.prototype, t), n && i(e, n), e
}
}(),
T = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i])
}
return e
};
function A(e) {
return T({}, e, {
right: e.left + e.width,
bottom: e.top + e.height
})
}
function x(e) {
var t = {};
try {
if (g(10)) {
t = e.getBoundingClientRect();
var n = y(e, "top"),
i = y(e, "left");
t.top += n, t.left += i, t.bottom += n, t.right += i
} else t = e.getBoundingClientRect()
} catch (e) {}
var r = {
left: t.left,
top: t.top,
width: t.right - t.left,
height: t.bottom - t.top
},
o = "HTML" === e.nodeName ? w(e.ownerDocument) : {},
a = o.width || e.clientWidth || r.right - r.left,
s = o.height || e.clientHeight || r.bottom - r.top,
l = e.offsetWidth - a,
c = e.offsetHeight - s;
if (l || c) {
var u = E(e);
l -= f(u, "x"), c -= f(u, "y"), r.width -= l, r.height -= c
}
return A(r)
}
function C(e, t, n) {
var i = 2 < arguments.length && void 0 !== n && n,
r = g(10),
o = "HTML" === t.nodeName,
a = x(e),
s = x(t),
l = m(e),
c = E(t),
u = parseFloat(c.borderTopWidth, 10),
f = parseFloat(c.borderLeftWidth, 10);
i && o && (s.top = Math.max(s.top, 0), s.left = Math.max(s.left, 0));
var d = A({
top: a.top - s.top - u,
left: a.left - s.left - f,
width: a.width,
height: a.height
});
if (d.marginTop = 0, d.marginLeft = 0, !r && o) {
var p = parseFloat(c.marginTop, 10),
h = parseFloat(c.marginLeft, 10);
d.top -= u - p, d.bottom -= u - p, d.left -= f - h, d.right -= f - h, d.marginTop = p, d.marginLeft = h
}
return (r && !i ? t.contains(l) : t === l && "BODY" !== l.nodeName) && (d = function(e, t, n) {
var i = 2 < arguments.length && void 0 !== n && n,
r = y(t, "top"),
o = y(t, "left"),
a = i ? -1 : 1;
return e.top += r * a, e.bottom += r * a, e.left += o * a, e.right += o * a, e
}(d, t)), d
}
function D(e) {
if (!e || !e.parentElement || g()) return document.documentElement;
for (var t = e.parentElement; t && "none" === E(t, "transform");) t = t.parentElement;
return t || document.documentElement
}
function p(e, t, n, i, r) {
var o = 4 < arguments.length && void 0 !== r && r,
a = {
top: 0,
left: 0
},
s = o ? D(e) : v(e, t);
if ("viewport" === i) a = function(e, t) {
var n = 1 < arguments.length && void 0 !== t && t,
i = e.ownerDocument.documentElement,
r = C(e, i),
o = Math.max(i.clientWidth, window.innerWidth || 0),
a = Math.max(i.clientHeight, window.innerHeight || 0),
s = n ? 0 : y(i),
l = n ? 0 : y(i, "left");
return A({
top: s - r.top + r.marginTop,
left: l - r.left + r.marginLeft,
width: o,
height: a
})
}(s, o);
else {
var l = void 0;
"scrollParent" === i ? "BODY" === (l = m(h(t))).nodeName && (l = e.ownerDocument.documentElement) : l = "window" === i ? e.ownerDocument.documentElement : i;
var c = C(l, s, o);
if ("HTML" !== l.nodeName || function e(t) {
var n = t.nodeName;
if ("BODY" === n || "HTML" === n) return !1;
if ("fixed" === E(t, "position")) return !0;
var i = h(t);
return !!i && e(i)
}(s)) a = c;
else {
var u = w(e.ownerDocument),
f = u.height,
d = u.width;
a.top += c.top - c.marginTop, a.bottom = f + c.top, a.left += c.left - c.marginLeft, a.right = d + c.left
}
}
var p = "number" == typeof(n = n || 0);
return a.left += p ? n : n.left || 0, a.top += p ? n : n.top || 0, a.right -= p ? n : n.right || 0, a.bottom -= p ? n : n.bottom || 0, a
}
function S(e, t, i, n, r, o) {
var a = 5 < arguments.length && void 0 !== o ? o : 0;
if (-1 === e.indexOf("auto")) return e;
var s = p(i, n, a, r),
l = {
top: {
width: s.width,
height: t.top - s.top
},
right: {
width: s.right - t.right,
height: s.height
},
bottom: {
width: s.width,
height: s.bottom - t.bottom
},
left: {
width: t.left - s.left,
height: s.height
}
},
c = Object.keys(l).map(function(e) {
return T({
key: e
}, l[e], {
area: function(e) {
return e.width * e.height
}(l[e])
})
}).sort(function(e, t) {
return t.area - e.area
}),
u = c.filter(function(e) {
var t = e.width,
n = e.height;
return t >= i.clientWidth && n >= i.clientHeight
}),
f = 0 < u.length ? u[0].key : c[0].key,
d = e.split("-")[1];
return f + (d ? "-" + d : "")
}
function I(e, t, n, i) {
var r = 3 < arguments.length && void 0 !== i ? i : null;
return C(n, r ? D(t) : v(t, n), r)
}
function L(e) {
var t = e.ownerDocument.defaultView.getComputedStyle(e),
n = parseFloat(t.marginTop || 0) + parseFloat(t.marginBottom || 0),
i = parseFloat(t.marginLeft || 0) + parseFloat(t.marginRight || 0);
return {
width: e.offsetWidth + i,
height: e.offsetHeight + n
}
}
function O(e) {
var t = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
};
return e.replace(/left|right|bottom|top/g, function(e) {
return t[e]
})
}
function N(e, t, n) {
n = n.split("-")[0];
var i = L(e),
r = {
width: i.width,
height: i.height
},
o = -1 !== ["right", "left"].indexOf(n),
a = o ? "top" : "left",
s = o ? "left" : "top",
l = o ? "height" : "width",
c = o ? "width" : "height";
return r[a] = t[a] + t[l] / 2 - i[l] / 2, r[s] = n === s ? t[s] - i[c] : t[O(s)], r
}
function k(e, t) {
return Array.prototype.find ? e.find(t) : e.filter(t)[0]
}
function M(e, n, t) {
return (void 0 === t ? e : e.slice(0, function(e, t, n) {
if (Array.prototype.findIndex) return e.findIndex(function(e) {
return e[t] === n
});
var i = k(e, function(e) {
return e[t] === n
});
return e.indexOf(i)
}(e, "name", t))).forEach(function(e) {
e.function && console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
var t = e.function || e.fn;
e.enabled && s(t) && (n.offsets.popper = A(n.offsets.popper), n.offsets.reference = A(n.offsets.reference), n = t(n, e))
}), n
}
function P(e, n) {
return e.some(function(e) {
var t = e.name;
return e.enabled && t === n
})
}
function j(e) {
for (var t = [!1, "ms", "Webkit", "Moz", "O"], n = e.charAt(0).toUpperCase() + e.slice(1), i = 0; i < t.length; i++) {
var r = t[i],
o = r ? "" + r + n : e;
if (void 0 !== document.body.style[o]) return o
}
return null
}
function B(e) {
var t = e.ownerDocument;
return t ? t.defaultView : window
}
function H(e, t, n, i) {
n.updateBound = i, B(e).addEventListener("resize", n.updateBound, {
passive: !0
});
var r = m(e);
return function e(t, n, i, r) {
var o = "BODY" === t.nodeName,
a = o ? t.ownerDocument.defaultView : t;
a.addEventListener(n, i, {
passive: !0
}), o || e(m(a.parentNode), n, i, r), r.push(a)
}(r, "scroll", n.updateBound, n.scrollParents), n.scrollElement = r, n.eventsEnabled = !0, n
}
function R() {
this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = function(e, t) {
return B(e).removeEventListener("resize", t.updateBound), t.scrollParents.forEach(function(e) {
e.removeEventListener("scroll", t.updateBound)
}), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t
}(this.reference, this.state))
}
function W(e) {
return "" !== e && !isNaN(parseFloat(e)) && isFinite(e)
}
function F(n, i) {
Object.keys(i).forEach(function(e) {
var t = ""; - 1 !== ["width", "height", "top", "right", "bottom", "left"].indexOf(e) && W(i[e]) && (t = "px"), n.style[e] = i[e] + t
})
}
var q = t && /Firefox/i.test(navigator.userAgent);
function V(e, t, n) {
var i = k(e, function(e) {
return e.name === t
}),
r = !!i && e.some(function(e) {
return e.name === n && e.enabled && e.order < i.order
});
if (!r) {
var o = "`" + t + "`",
a = "`" + n + "`";
console.warn(a + " modifier is required by " + o + " modifier in order to work, be sure to include it before " + o + "!")
}
return r
}
var U = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"],
z = U.slice(3);
function G(e, t) {
var n = 1 < arguments.length && void 0 !== t && t,
i = z.indexOf(e),
r = z.slice(i + 1).concat(z.slice(0, i));
return n ? r.reverse() : r
}
var Y = "flip",
K = "clockwise",
X = "counterclockwise";
function Q(e, r, o, t) {
var a = [0, 0],
s = -1 !== ["right", "left"].indexOf(t),
n = e.split(/(\+|\-)/).map(function(e) {
return e.trim()
}),
i = n.indexOf(k(n, function(e) {
return -1 !== e.search(/,|\s/)
}));
n[i] && -1 === n[i].indexOf(",") && console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");
var l = /\s*,\s*|\s+/,
c = -1 !== i ? [n.slice(0, i).concat([n[i].split(l)[0]]), [n[i].split(l)[1]].concat(n.slice(i + 1))] : [n];
return (c = c.map(function(e, t) {
var n = (1 === t ? !s : s) ? "height" : "width",
i = !1;
return e.reduce(function(e, t) {
return "" === e[e.length - 1] && -1 !== ["+", "-"].indexOf(t) ? (e[e.length - 1] = t, i = !0, e) : i ? (e[e.length - 1] += t, i = !1, e) : e.concat(t)
}, []).map(function(e) {
return function(e, t, n, i) {
var r = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),
o = +r[1],
a = r[2];
if (!o) return e;
if (0 !== a.indexOf("%")) return "vh" !== a && "vw" !== a ? o : ("vh" === a ? Math.max(document.documentElement.clientHeight, window.innerHeight || 0) : Math.max(document.documentElement.clientWidth, window.innerWidth || 0)) / 100 * o;
var s = void 0;
switch (a) {
case "%p":
s = n;
break;
case "%":
case "%r":
default:
s = i
}
return A(s)[t] / 100 * o
}(e, n, r, o)
})
})).forEach(function(n, i) {
n.forEach(function(e, t) {
W(e) && (a[i] += e * ("-" === n[t - 1] ? -1 : 1))
})
}), a
}
var $ = {
placement: "bottom",
positionFixed: !1,
eventsEnabled: !0,
removeOnDestroy: !1,
onCreate: function() {},
onUpdate: function() {},
modifiers: {
shift: {
order: 100,
enabled: !0,
fn: function(e) {
var t = e.placement,
n = t.split("-")[0],
i = t.split("-")[1];
if (i) {
var r = e.offsets,
o = r.reference,
a = r.popper,
s = -1 !== ["bottom", "top"].indexOf(n),
l = s ? "left" : "top",
c = s ? "width" : "height",
u = {
start: _({}, l, o[l]),
end: _({}, l, o[l] + o[c] - a[c])
};
e.offsets.popper = T({}, a, u[i])
}
return e
}
},
offset: {
order: 200,
enabled: !0,
fn: function(e, t) {
var n = t.offset,
i = e.placement,
r = e.offsets,
o = r.popper,
a = r.reference,
s = i.split("-")[0],
l = void 0;
return l = W(+n) ? [+n, 0] : Q(n, o, a, s), "left" === s ? (o.top += l[0], o.left -= l[1]) : "right" === s ? (o.top += l[0], o.left += l[1]) : "top" === s ? (o.left += l[0], o.top -= l[1]) : "bottom" === s && (o.left += l[0], o.top += l[1]), e.popper = o, e
},
offset: 0
},
preventOverflow: {
order: 300,
enabled: !0,
fn: function(e, i) {
var t = i.boundariesElement || b(e.instance.popper);
e.instance.reference === t && (t = b(t));
var n = j("transform"),
r = e.instance.popper.style,
o = r.top,
a = r.left,
s = r[n];
r.top = "", r.left = "", r[n] = "";
var l = p(e.instance.popper, e.instance.reference, i.padding, t, e.positionFixed);
r.top = o, r.left = a, r[n] = s, i.boundaries = l;
var c = i.priority,
u = e.offsets.popper,
f = {
primary: function(e) {
var t = u[e];
return u[e] < l[e] && !i.escapeWithReference && (t = Math.max(u[e], l[e])), _({}, e, t)
},
secondary: function(e) {
var t = "right" === e ? "left" : "top",
n = u[t];
return u[e] > l[e] && !i.escapeWithReference && (n = Math.min(u[t], l[e] - ("right" === e ? u.width : u.height))), _({}, t, n)
}
};
return c.forEach(function(e) {
var t = -1 !== ["left", "top"].indexOf(e) ? "primary" : "secondary";
u = T({}, u, f[t](e))
}), e.offsets.popper = u, e
},
priority: ["left", "right", "top", "bottom"],
padding: 5,
boundariesElement: "scrollParent"
},
keepTogether: {
order: 400,
enabled: !0,
fn: function(e) {
var t = e.offsets,
n = t.popper,
i = t.reference,
r = e.placement.split("-")[0],
o = Math.floor,
a = -1 !== ["top", "bottom"].indexOf(r),
s = a ? "right" : "bottom",
l = a ? "left" : "top",
c = a ? "width" : "height";
return n[s] < o(i[l]) && (e.offsets.popper[l] = o(i[l]) - n[c]), n[l] > o(i[s]) && (e.offsets.popper[l] = o(i[s])), e
}
},
arrow: {
order: 500,
enabled: !0,
fn: function(e, t) {
var n;
if (!V(e.instance.modifiers, "arrow", "keepTogether")) return e;
var i = t.element;
if ("string" == typeof i) {
if (!(i = e.instance.popper.querySelector(i))) return e
} else if (!e.instance.popper.contains(i)) return console.warn("WARNING: `arrow.element` must be child of its popper element!"), e;
var r = e.placement.split("-")[0],
o = e.offsets,
a = o.popper,
s = o.reference,
l = -1 !== ["left", "right"].indexOf(r),
c = l ? "height" : "width",
u = l ? "Top" : "Left",
f = u.toLowerCase(),
d = l ? "left" : "top",
p = l ? "bottom" : "right",
h = L(i)[c];
s[p] - h < a[f] && (e.offsets.popper[f] -= a[f] - (s[p] - h)), s[f] + h > a[p] && (e.offsets.popper[f] += s[f] + h - a[p]), e.offsets.popper = A(e.offsets.popper);
var m = s[f] + s[c] / 2 - h / 2,
g = E(e.instance.popper),
v = parseFloat(g["margin" + u], 10),
y = parseFloat(g["border" + u + "Width"], 10),
b = m - e.offsets.popper[f] - v - y;
return b = Math.max(Math.min(a[c] - h, b), 0), e.arrowElement = i, e.offsets.arrow = (_(n = {}, f, Math.round(b)), _(n, d, ""), n), e
},
element: "[x-arrow]"
},
flip: {
order: 600,
enabled: !0,
fn: function(m, g) {
if (P(m.instance.modifiers, "inner")) return m;
if (m.flipped && m.placement === m.originalPlacement) return m;
var v = p(m.instance.popper, m.instance.reference, g.padding, g.boundariesElement, m.positionFixed),
y = m.placement.split("-")[0],
b = O(y),
E = m.placement.split("-")[1] || "",
w = [];
switch (g.behavior) {
case Y:
w = [y, b];
break;
case K:
w = G(y);
break;
case X:
w = G(y, !0);
break;
default:
w = g.behavior
}
return w.forEach(function(e, t) {
if (y !== e || w.length === t + 1) return m;
y = m.placement.split("-")[0], b = O(y);
var n = m.offsets.popper,
i = m.offsets.reference,
r = Math.floor,
o = "left" === y && r(n.right) > r(i.left) || "right" === y && r(n.left) < r(i.right) || "top" === y && r(n.bottom) > r(i.top) || "bottom" === y && r(n.top) < r(i.bottom),
a = r(n.left) < r(v.left),
s = r(n.right) > r(v.right),
l = r(n.top) < r(v.top),
c = r(n.bottom) > r(v.bottom),
u = "left" === y && a || "right" === y && s || "top" === y && l || "bottom" === y && c,
f = -1 !== ["top", "bottom"].indexOf(y),
d = !!g.flipVariations && (f && "start" === E && a || f && "end" === E && s || !f && "start" === E && l || !f && "end" === E && c),
p = !!g.flipVariationsByContent && (f && "start" === E && s || f && "end" === E && a || !f && "start" === E && c || !f && "end" === E && l),
h = d || p;
(o || u || h) && (m.flipped = !0, (o || u) && (y = w[t + 1]), h && (E = function(e) {
return "end" === e ? "start" : "start" === e ? "end" : e
}(E)), m.placement = y + (E ? "-" + E : ""), m.offsets.popper = T({}, m.offsets.popper, N(m.instance.popper, m.offsets.reference, m.placement)), m = M(m.instance.modifiers, m, "flip"))
}), m
},
behavior: "flip",
padding: 5,
boundariesElement: "viewport",
flipVariations: !1,
flipVariationsByContent: !1
},
inner: {
order: 700,
enabled: !1,
fn: function(e) {
var t = e.placement,
n = t.split("-")[0],
i = e.offsets,
r = i.popper,
o = i.reference,
a = -1 !== ["left", "right"].indexOf(n),
s = -1 === ["top", "left"].indexOf(n);
return r[a ? "left" : "top"] = o[n] - (s ? r[a ? "width" : "height"] : 0), e.placement = O(t), e.offsets.popper = A(r), e
}
},
hide: {
order: 800,
enabled: !0,
fn: function(e) {
if (!V(e.instance.modifiers, "hide", "preventOverflow")) return e;
var t = e.offsets.reference,
n = k(e.instance.modifiers, function(e) {
return "preventOverflow" === e.name
}).boundaries;
if (t.bottom < n.top || t.left > n.right || t.top > n.bottom || t.right < n.left) {
if (!0 === e.hide) return e;
e.hide = !0, e.attributes["x-out-of-boundaries"] = ""
} else {
if (!1 === e.hide) return e;
e.hide = !1, e.attributes["x-out-of-boundaries"] = !1
}
return e
}
},
computeStyle: {
order: 850,
enabled: !0,
fn: function(e, t) {
var n = t.x,
i = t.y,
r = e.offsets.popper,
o = k(e.instance.modifiers, function(e) {
return "applyStyle" === e.name
}).gpuAcceleration;
void 0 !== o && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
var a = void 0 !== o ? o : t.gpuAcceleration,
s = b(e.instance.popper),
l = x(s),
c = {
position: r.position
},
u = function(e, t) {
function n(e) {
return e
}
var i = e.offsets,
r = i.popper,
o = i.reference,
a = Math.round,
s = Math.floor,
l = a(o.width),
c = a(r.width),
u = -1 !== ["left", "right"].indexOf(e.placement),
f = -1 !== e.placement.indexOf("-"),
d = t ? u || f || l % 2 == c % 2 ? a : s : n,
p = t ? a : n;
return {
left: d(l % 2 == 1 && c % 2 == 1 && !f && t ? r.left - 1 : r.left),
top: p(r.top),
bottom: p(r.bottom),
right: d(r.right)
}
}(e, window.devicePixelRatio < 2 || !q),
f = "bottom" === n ? "top" : "bottom",
d = "right" === i ? "left" : "right",
p = j("transform"),
h = void 0,
m = void 0;
if (m = "bottom" == f ? "HTML" === s.nodeName ? -s.clientHeight + u.bottom : -l.height + u.bottom : u.top, h = "right" == d ? "HTML" === s.nodeName ? -s.clientWidth + u.right : -l.width + u.right : u.left, a && p) c[p] = "translate3d(" + h + "px, " + m + "px, 0)", c[f] = 0, c[d] = 0, c.willChange = "transform";
else {
var g = "bottom" == f ? -1 : 1,
v = "right" == d ? -1 : 1;
c[f] = m * g, c[d] = h * v, c.willChange = f + ", " + d
}
var y = {
"x-placement": e.placement
};
return e.attributes = T({}, y, e.attributes), e.styles = T({}, c, e.styles), e.arrowStyles = T({}, e.offsets.arrow, e.arrowStyles), e
},
gpuAcceleration: !0,
x: "bottom",
y: "right"
},
applyStyle: {
order: 900,
enabled: !0,
fn: function(e) {
return F(e.instance.popper, e.styles),
function(t, n) {
Object.keys(n).forEach(function(e) {
!1 !== n[e] ? t.setAttribute(e, n[e]) : t.removeAttribute(e)
})
}(e.instance.popper, e.attributes), e.arrowElement && Object.keys(e.arrowStyles).length && F(e.arrowElement, e.arrowStyles), e
},
onLoad: function(e, t, n, i, r) {
var o = I(r, t, e, n.positionFixed),
a = S(n.placement, o, t, e, n.modifiers.flip.boundariesElement, n.modifiers.flip.padding);
return t.setAttribute("x-placement", a), F(t, {
position: n.positionFixed ? "fixed" : "absolute"
}), n
},
gpuAcceleration: void 0
}
}
},
J = function() {
function o(e, t) {
var n = this,
i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {};
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, o), this.scheduleUpdate = function() {
return requestAnimationFrame(n.update)
}, this.update = a(this.update.bind(this)), this.options = T({}, o.Defaults, i), this.state = {
isDestroyed: !1,
isCreated: !1,
scrollParents: []
}, this.reference = e && e.jquery ? e[0] : e, this.popper = t && t.jquery ? t[0] : t, this.options.modifiers = {}, Object.keys(T({}, o.Defaults.modifiers, i.modifiers)).forEach(function(e) {
n.options.modifiers[e] = T({}, o.Defaults.modifiers[e] || {}, i.modifiers ? i.modifiers[e] : {})
}), this.modifiers = Object.keys(this.options.modifiers).map(function(e) {
return T({
name: e
}, n.options.modifiers[e])
}).sort(function(e, t) {
return e.order - t.order
}), this.modifiers.forEach(function(e) {
e.enabled && s(e.onLoad) && e.onLoad(n.reference, n.popper, n.options, e, n.state)
}), this.update();
var r = this.options.eventsEnabled;
r && this.enableEventListeners(), this.state.eventsEnabled = r
}
return d(o, [{
key: "update",
value: function() {
return function() {
if (!this.state.isDestroyed) {
var e = {
instance: this,
styles: {},
arrowStyles: {},
attributes: {},
flipped: !1,
offsets: {}
};
e.offsets.reference = I(this.state, this.popper, this.reference, this.options.positionFixed), e.placement = S(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.positionFixed = this.options.positionFixed, e.offsets.popper = N(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = this.options.positionFixed ? "fixed" : "absolute", e = M(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e))
}
}.call(this)
}
}, {
key: "destroy",
value: function() {
return function() {
return this.state.isDestroyed = !0, P(this.modifiers, "applyStyle") && (this.popper.removeAttribute("x-placement"), this.popper.style.position = "", this.popper.style.top = "", this.popper.style.left = "", this.popper.style.right = "", this.popper.style.bottom = "", this.popper.style.willChange = "", this.popper.style[j("transform")] = ""), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this
}.call(this)
}
}, {
key: "enableEventListeners",
value: function() {
return function() {
this.state.eventsEnabled || (this.state = H(this.reference, this.options, this.state, this.scheduleUpdate))
}.call(this)
}
}, {
key: "disableEventListeners",
value: function() {
return R.call(this)
}
}]), o
}();
J.Utils = ("undefined" != typeof window ? window : e).PopperUtils, J.placements = U, J.Defaults = $, Z.default = J
}.call(this, t(16))
}, 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
}, function(e, t, n) {}, function(e, t, n) {}, function(e, t) {}, function(e, t, n) {}, function(e, t, n) {}, function(e, t, n) {
"use strict";
n(7), n(23), n(24), n(17);
var i = n(0),
o = n.n(i),
r = (n(9), n(10), n(3)),
a = n.n(r);
function s(e, t) {
o.a.post(DOMAIN_NAMES + "/answers/gettimezone.php", {
Offset: e,
Timezone_Code: t
}, function(e) {})
}
o()(document).ready(function() {
if (window.addjstz) {
var e = a.a.jstz.determine(),
t = "UTC";
void 0 !== e && (t = e.name()), s((new Date).getTimezoneOffset(), t)
}
var r = o()("#footer-country-selected-dropdown");
o()("#footer-dropdown-items").children().on("click", function() {
var e = r.contents(),
t = o()(this).contents(),
n = o()("#footer-country-selected-dropdown").attr("href"),
i = o()(this).attr("href");
r.attr("href", i), o()(t).attr("href", n), o()(this).html(e), r.html(t)
}), o()(".support-chat-toggle").click(function() {
o()("#support-chat-wrapper").toggleClass("open-chat")
});
var n = {
url: "https://uxbridgewriters.com/website-auto-subject.json",
list: {
match: {
enabled: !0
}
}
};
o()(".init-autocomplete").easyAutocomplete(n), o()("#cms-init-autocomplete").easyAutocomplete(n), o()("#rightpanel_subject").easyAutocomplete(n)
}), window.salesInitiate = function() {
var e = o()("#chat_window_container").contents().height();
console.log(e), null != e ? (console.log("chat is open"), e < 250 && (console.log("now run maximize chat window code"), o()("#chat_window_container").contents().find("a.chatButton")[0].click(), o()("#support-chat-wrapper").removeClass("open-chat"))) : (console.log("run chat window open code"), o()("#comm100-container").find("a")[0].click(), o()("#support-chat-wrapper").removeClass("open-chat"))
}, window.settimezone = s
}, function(e, t, n) {}, function(e, t, n) {}, function(e, t, n) {
"use strict";
var i = n(0),
m = n.n(i);
! function() {
m()(document).ready(function() {
var e = document.getElementById("menu-container");
if (document.getElementById("menu-container1")) var t = document.getElementById("menu-container1");
if (document.getElementById("menu-container2")) var n = document.getElementById("menu-container2");
var i = document.querySelector("#active-menu1");
if (document.getElementById("active-menu2")) var r = document.querySelector("#active-menu2");
if (document.getElementById("active-menu3")) var o = document.querySelector("#active-menu3");
var a = document.querySelector("#menu-element-container");
if (document.getElementById("menu-element-container1")) var s = document.querySelector("#menu-element-container1");
if (document.getElementById("menu-element-container2")) var l = document.querySelector("#menu-element-container2");
function c() {
i.classList.add("active"), e.classList.add("--show")
}
function u() {
r.classList.add("active"), t.classList.add("--show")
}
function f() {
o.classList.add("active"), n.classList.add("--show")
}
function d() {
i.classList.remove("active"), e.classList.remove("--show")
}
function p() {
r.classList.remove("active"), t.classList.remove("--show")
}
function h() {
o.classList.remove("active"), n.classList.remove("--show")
}
e.addEventListener("mouseleave", function() {
d()
}), e.addEventListener("mouseenter", function() {
c()
}), document.getElementById("active-menu2") && t.addEventListener("mouseleave", function() {
p()
}), document.getElementById("active-menu2") && t.addEventListener("mouseenter", function() {
u()
}), document.getElementById("active-menu3") && n.addEventListener("mouseleave", function() {
h()
}), document.getElementById("active-menu3") && n.addEventListener("mouseenter", function() {
f()
}), a.addEventListener("mouseenter", function() {
c()
}), a.addEventListener("mouseleave", function() {
d()
}), document.getElementById("active-menu2") && s.addEventListener("mouseenter", function() {
u()
}), document.getElementById("active-menu2") && s.addEventListener("mouseleave", function() {
p()
}), document.getElementById("active-menu3") && l.addEventListener("mouseenter", function() {
f()
}), document.getElementById("active-menu3") && l.addEventListener("mouseleave", function() {
h()
}), m()("#menu-container ul").each(function(e) {
var t = m()(this);
t.on({
mouseenter: function() {
m()(this).parent().is("li") && m()(this).parent("li").addClass("active")
}
}), t.on({
mouseleave: function() {
m()(this).parent().is("li") && m()(this).parent("li").removeClass("active")
}
})
})
})
}(),
function(g) {
g(document).ready(function() {
var e = g("#mobile-menu-container li");
if (document.getElementById("menu-item1")) var t = g("#menu-item1");
if (document.getElementById("menu-item2")) var n = g("#menu-item2");
if (document.getElementById("menu-item1")) var i = document.querySelector("#mobile-menu-container1 ul");
if (document.getElementById("menu-item2")) var r = document.querySelector("#mobile-menu-container2 ul");
document.getElementById("menu-item1") && t.on("click", function() {
i.classList.add("--open")
}), document.getElementById("menu-item2") && n.on("click", function() {
r.classList.add("--open")
}), e.each(function(e) {
var t = g(this),
n = g(t.find("ul")[0]),
i = g(n.find("h4")[0]),
r = t.closest("ul"),
o = r.closest("ul");
t.on("click", function(e) {
e.stopPropagation(), n.toggleClass("--open").toggleClass("scroll-menu-overflow"), r.removeClass("scroll-menu-overflow")
}), i.on("click", function(e) {
e.stopPropagation(), n.addClass("scroll-menu-overflow").toggleClass("--open"), o.addClass("scroll-menu-overflow"), console.log(r, o)
})
});
var o = document.getElementById("mobile-menu"),
a = document.body,
s = document.querySelector(".__mobile-overlay"),
l = document.querySelector("#mobile-menu-main-container"),
c = document.querySelector("#menu-item");
o.addEventListener("click", function() {
l.classList.add("__open"), s.classList.add("--overlay-show"), a.classList.add("mobile-nav-on")
}), s.addEventListener("click", function(e) {
l.classList.remove("__open"), s.classList.remove("--overlay-show"), a.classList.remove("mobile-nav-on")
});
var u = document.querySelector("#mobile-menu-container > ul > h4");
if (document.getElementById("menu-item1")) var f = document.querySelector("#mobile-menu-container1 > ul > h4");
if (document.getElementById("menu-item2")) var d = document.querySelector("#mobile-menu-container2 > ul > h4");
var p = document.querySelector("#mobile-menu-container > ul");
if (document.getElementById("menu-item1")) var h = document.querySelector("#mobile-menu-container1 > ul");
if (document.getElementById("menu-item2")) var m = document.querySelector("#mobile-menu-container2 > ul");
c.addEventListener("click", function() {
p.classList.add("--open", "scroll-menu-overflow")
}), u.addEventListener("click", function(e) {
e.stopPropagation(), p.classList.remove("--open")
}), document.getElementById("menu-item1") && f.addEventListener("click", function(e) {
e.stopPropagation(), h.classList.remove("--open")
}), document.getElementById("menu-item2") && d.addEventListener("click", function(e) {
e.stopPropagation(), m.classList.remove("--open")
}), g(".mobile-header-container span img.fa-search").on("click", function() {
g("#mobile-search-container").toggleClass("show-search")
}), g(".headerSearch").click(function() {
g(this).css("border-bottom-left-radius", "0"), g("#button-addon2").css("border-bottom-right-radius", "0"), g("#mobile-btn").css("border-bottom-right-radius", "0px"), g(".search-dropdown").show()
}), g(".headerSearch").focusout(function() {})
})
}(m.a);
n(18), n(19), n(20), n(21), n(2);
var r = n(5),
o = n.n(r),
a = n(1);
m()(document).ready(function() {
var n = document.querySelector("header");
n.classList.remove("sticky"), window.addEventListener("scroll", function() {
var e = window.scrollY,
t = window.innerWidth;
350 < e && 1024 < t ? n.classList.contains("sticky") || n.classList.add("sticky") : n.classList.contains("sticky") && n.classList.remove("sticky")
});
var e = document.getElementById("toptime");
Object(a.a)(e), new o.a
})
}, function(e, t, n) {
"use strict";
var i = n(0),
f = n.n(i),
r = n(3),
d = n.n(r);
function p() {
setTimeout(function() {
location.reload()
}, 2e3)
}
/* f()("#callpopupopen").click(function() {
f()("#call_back_data").html('<center><img src="' + DOMAIN_NAME + '/assets/img/loading.gif" alt="Loader" style="width: 50px;height: 33px;"/></center>'), f.a.ajax({
async: !0,
url: DOMAIN_NAME + "/Home/front-popnew-homenew.php",
success: function(e) {
f()("#call_back_data").html(e)
}
})
}), window.validatecallpopup = function() {
var e = f.a.trim(f()("#phone_number").val()),
t = f()("input[name=AssignType]:checked").val(),
n = f()("#reason").val();
n = n.trim();
var i = f()("#cbhours").val(),
r = f()("#cbmin").val(),
o = f()("#cbmer").val(),
a = f()("#countryCode").val(),
s = i + ":" + r + " " + o,
l = f()("#call_date").val(),
c = d.a.jstz.determine(),
u = "UTC";
void 0 !== c && (u = c.name());
if ("" == e) f()("#phone_number").css("border", "1px solid red");
else if (e.length < 6 || 12 < e.length) f()("#phone_number").css("border", "1px solid red");
else if ("" == n) f()("#reason").css("border", "1px solid red");
else if ("" == i || "" == r) f()("#cbhours").css("border", "1px solid red"), f()("#cbmin").css("border", "1px solid red"), f()("#cbmer").css("border", "1px solid red");
else {
if (!document.getElementById("phone_number").value.match(/^[0-9]+$/)) return document.getElementById("phone_number_error").style.display = "block", document.getElementById("phone_number").focus(), !1;
f()("#call_back_data").html('<center><img src="' + DOMAIN_NAME + '/assets/img/loading.gif" alt="Loader" style="width: 50px;height: 33px;"/></center>'), f.a.ajax({
url: DOMAIN_NAME + "/Home/callpopup.php",
type: "GET",
data: "Mobile_No=" + e + "&AssignType=" + t + "&Reason=" + encodeURIComponent(n) + "&Call_Time=" + s + "&call_date=" + l + "&ISD_Code=" + a + "&Timezone_Code=" + u + "&" + window.CSRF_TOKEN_NAME + "=" + f()("input[name=" + window.CSRF_TOKEN_NAME + "]").val(),
success: function(e) {
f()("#call_back_data").html(e), p()
}
})
}
}, window.isNumberKey = function(e) {
var t = e.which ? e.which : e.keyCode;
return !(31 < t && (t < 48 || 57 < t))
}, window.colorchange = function(e) {
f()("#" + e).css("border", "1px solid green")
}, window.errorhide = function() {
document.getElementById("phone_number_error").style.display = "none"
}, window.redirecttime = p
*/
}, function(e, t, n) {
"use strict";
n(14), n(13), n(8), n(6);
var i = n(0),
y = n.n(i),
r = n(1);
function l(e, t, n) {
var i = new Date;
i.setTime(i.getTime() + 24 * n * 60 * 60 * 1e3);
var r = "expires=" + i.toGMTString();
console.log(r), document.cookie = e + "=" + t + ";" + r + ";path=/"
}
function c(e) {
for (var t = e + "=", n = decodeURIComponent(document.cookie).split(";"), i = 0; i < n.length; i++) {
for (var r = n[i];
" " == r.charAt(0);) r = r.substring(1);
if (0 == r.indexOf(t)) return r.substring(t.length, r.length)
}
return ""
}
y()(document).on("click touchstart", ".removeSearch", function() {
document.cookie = "recentSearch=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;", y()(".recent-ul").remove(), y()(".removeSearch").remove()
}), y()(document).on("click touchstart", ".recentItem", function() {
var e = y.a.trim(y()(this).text());
"" != e && (y()("#mobmbsearch,#mbsearch").val(e), y()(".headerSearch").css("border-bottom-left-radius", "0.25rem"), y()("#button-addon2").css("border-bottom-right-radius", "4px"), y()("#mobile-btn").css("border-bottom-right-radius", "4px"), y()(".search-dropdown").hide())
}), y()("body").on("click touchstart", function(e) {
"mobmbsearch" != e.target.id && "mbsearch" != e.target.id && y()(".search-dropdown").length && (y()(e.target).closest(".search-dropdown").length || (y()(".headerSearch").css("border-bottom-left-radius", "0.25rem"), y()("#button-addon2").css("border-bottom-right-radius", "4px"), y()("#mobile-btn").css("border-bottom-right-radius", "4px"), y()(".search-dropdown").hide()))
}), window.decpagecount = function(e, t, n, i) {
var r = document.getElementById(e).value;
if ("numberonly" == i)
if (r <= 1) document.getElementById(e).value = 1, document.getElementById(t).value = 250, document.getElementById(n).innerHTML = "250 words";
else {
var o = parseInt(r) - 1;
document.getElementById(e).value = o, document.getElementById(t).value = parseInt(250 * o), document.getElementById(n).innerHTML = parseInt(250 * o) + " words"
}
if ("numbertxt" == i)
if (r <= 1) document.getElementById(e).value = 1, document.getElementById(t).value = 250, document.getElementById(n).value = "1 Page/250 Words";
else {
o = parseInt(r) - 1;
document.getElementById(e).value = o, document.getElementById(t).value = parseInt(250 * o), document.getElementById(n).value = 1 == o ? "1 Page/250 Words" : o + " Pages/" + parseInt(250 * o) + " Words"
}
return !1
}, window.incpagecount = function(e, t, n, i) {
var r = document.getElementById(e).value;
if ("numberonly" == i)
if (r < 0) document.getElementById(e).value = 1, document.getElementById(t).value = 250, document.getElementById(n).innerHTML = "250 words";
else {
var o = parseInt(r) + 1;
document.getElementById(e).value = o, document.getElementById(t).value = parseInt(250 * o), document.getElementById(n).innerHTML = parseInt(250 * o) + " words"
}
if ("numbertxt" == i)
if (r < 0) document.getElementById(e).value = 1, document.getElementById(t).value = 250, document.getElementById(n).value = "1 Page/250 Words";
else {
o = parseInt(r) + 1;
document.getElementById(e).value = o, document.getElementById(t).value = parseInt(250 * o), document.getElementById(n).value = o + " Pages/" + parseInt(250 * o) + " Words"
}
return !1
}, window.formvalidation = function(e, t, n, i, r) {
var o = document.getElementById(e).value;
document.getElementById(e).classList.remove("form-error");
var a = document.getElementById(t).value;
document.getElementById(t).classList.remove("form-error");
var s = document.getElementById(n).value;
document.getElementById(n).classList.remove("form-error");
var l = document.getElementById(i).value;
if (document.getElementById(i).classList.remove("form-error"), "" != r) {
var c = document.getElementById(r).value;
document.getElementById(r).classList.remove("form-error");
var u = 1,
f = new Date,
d = f.getMonth() + 1,
p = f.getDate();
if ((p < 10 ? "0" : "") + p + "-" + (d < 10 ? "0" : "") + d + "-" + f.getFullYear() == l) {
var h = f.getHours(),
m = c.split(":");
if ("12" != m[0] && "00 PM" == m[1] || "59 PM" == m[1]) var g = parseInt(m[0]) + 12;
else g = parseInt(m[0])
}
} else {
h = f.getHours();
document.getElementById("Select_Deadline").value = h < 12 ? "12:00 PM" : "11:59 PM"
}
if ("" == o.trim() ? (document.getElementById(e).classList.add("form-error"), document.getElementById(e).focus(), u = 0) : o.match(/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/) ? "" == a.trim() ? (document.getElementById(t).classList.add("form-error"), document.getElementById(t).focus(), u = 0) : "" == s.trim() ? (document.getElementById(n).classList.add("form-error"), document.getElementById(n).focus(), u = 0) : "" == l.trim() && (document.getElementById(i).classList.add("form-error"), document.getElementById(i).focus(), u = 0) : (document.getElementById(e).classList.add("form-error"), document.getElementById(e).focus(), u = 0), "" != r && ("" == c.trim() ? (document.getElementById(r).classList.add("form-error"), document.getElementById(r).focus(), u = 0) : g <= h && (document.getElementById(r).classList.add("form-error"), document.getElementById(r).focus(), u = 0)), 0 == u) return !1;
if ("topemail" == e) var v = "headerForm";
else if ("email" == e) v = "indexForm";
else v = "otherForm";
return y()("#" + v).find("img").removeClass("d-none"), !0
}, window.googleearchdata = function(e) {
var t = 1,
n = document.getElementById(e).value.trim();
if ("" != n.trim() && !n.match("<[^>]*script") || (document.getElementById(e).parentElement.classList.add("form-error"), document.getElementById(e).focus(), t = 0), 0 == t) return !1;
if ("mobmbsearch" == e) var i = "mobile-btn",
r = "header-mob-search",
o = "header-mob-loader";
else if ("mbsearch" == e) i = "button-addon2", r = "header-search", o = "header-loader";
y()("#" + i).find("#" + r).addClass("d-none"), y()("#" + i).find("#" + o).removeClass("d-none"), document.getElementById(e).parentElement.classList.remove("form-error");
var a, s = c("recentSearch");
return s ? (a = JSON.parse(s)).includes(n) || (a.push(n), l("recentSearch", JSON.stringify(a), 1)) : ((a = []).push(n), l("recentSearch", JSON.stringify(a), 1)), !0
}, window.setCookie = l, window.getCookie = c, y()(document).ready(function() {
var e = document.getElementById("time");
if (Object(r.a)(e), document.getElementById("Select_Deadline")) {
var t = document.getElementById("Select_Deadline");
Object(r.a)(t)
}
})
}, function(e, t, n) {}, function(e, t, n) {
"use strict";
var i = n(0),
r = n.n(i),
o = !0;
window.newslettersub = function(t) {
var e = document.getElementById(t).value,
n = document.getElementById("preurl").value,
i = document.getElementById("refurl").value;
return "sidefootermail" == t ? document.getElementById(t).style.border = "1px solid #c7c7c7" : document.getElementById(t).style.borderColor = "#ccc", "" == e.trim() ? (document.getElementById(t).style.border = "1px dashed red", document.getElementById(t).focus(), r()("#footerresult").html("<center><span style='text-align: center; color: red; font-size:12px;'>Please Enter Email Id.</center>")) : e.match(/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/) ? (r()("#footerresult").html(""), o && (o = !1, r()("#footerfor").html('<img style="display:inline-block" width="12" src="https://cdn1.myassignmenthelp.com/revamp-assets-version2/page-elements/oval.svg">'), r.a.ajax({
method: "GET",
url: DOMAIN_NAME + "/newsletter-subscription-handler.php",
data: {
email: e,
subtype: "footernewsletter",
refurl: i,
preurl: n
},
success: function(e) {
o = !0, r()("#footerfor").html('<img class="loading" data-was-processed="true" src="data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMzM0LjUgMzM0LjUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMzNC41IDMzNC41OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIGNsYXNzPSIiPjxnPjxwYXRoIGQ9Ik0zMzIuNzk3LDEzLjY5OWMtMS40ODktMS4zMDYtMy42MDgtMS42MDktNS40MDQtMC43NzZMMi44OTMsMTYzLjY5NWMtMS43NDcsMC44MTItMi44NzIsMi41NTUtMi44OTMsNC40ODEgIHMxLjA2NywzLjY5MywyLjc5Nyw0LjU0Mmw5MS44MzMsNDUuMDY4YzEuNjg0LDAuODI3LDMuNjkyLDAuNjQsNS4xOTYtMC40ODRsODkuMjg3LTY2LjczNGwtNzAuMDk0LDcyLjEgIGMtMSwxLjAyOS0xLjUxLDIuNDM4LTEuNCwzLjg2OGw2Ljk3OSw5MC44ODljMC4xNTUsMi4wMTQsMS41MDUsMy43MzYsMy40MjQsNC4zNjdjMC41MTMsMC4xNjgsMS4wNCwwLjI1LDEuNTYxLDAuMjUgIGMxLjQyOSwwLDIuODE5LTAuNjEzLDMuNzg2LTEuNzMzbDQ4Ljc0Mi01Ni40ODJsNjAuMjU1LDI4Ljc5YzEuMzA4LDAuNjI1LDIuODIyLDAuNjUxLDQuMTUxLDAuMDczICBjMS4zMjktMC41NzksMi4zNDEtMS43MDUsMi43NzUtMy4wODdMMzM0LjI3LDE4Ljk1NkMzMzQuODY0LDE3LjA2NiwzMzQuMjg1LDE1LjAwNSwzMzIuNzk3LDEzLjY5OXoiIGRhdGEtb3JpZ2luYWw9IiMwMDAwMDAiIGNsYXNzPSJhY3RpdmUtcGF0aCIgc3R5bGU9ImZpbGw6I0RENkUwMiIgZGF0YS1vbGRfY29sb3I9IiNkZDZlMDIiPjwvcGF0aD48L2c+IDwvc3ZnPg==" width="15px">'), document.getElementById(t).value = "", "0" == e && r()("#footerresult").html("<center><span style='text-align: center; color: red; font-size:12px;'>This Email Id Is Already Registered.</center>"), "1" == e && r()("#footerresult").html("<center><span style='text-align: center; color: green; font-size:12px;'>Thank You For Newsletter Subscription.</center>"), setTimeout(function() {
r()("#footerresult").html("")
}, 5e3)
}
}))) : (document.getElementById(t).style.border = "1px dashed red", document.getElementById(t).focus(), r()("#footerresult").html("<center><span style='text-align: center; color: red; font-size:12px;'>Please Enter Valid Email Id.</center>")), !1
}
}, , function(e, t, n) {}, , function(e, t, n) {
"use strict";
n.d(t, "a", function() {
return i
});
var i = function(e) {
var t = e.baseRate || 8,
n = !0,
i = e.firstLevelRefer || 5,
r = e.secondLevelRefer || 1,
o = e.assignmentPerMonth || 4,
a = e.averageAssignmentSize || 6,
s = e.firstLevelCommission || 10,
l = e.secondLevelCommission || 7,
c = e.hasSecondLevel || !1,
u = i,
f = o,
d = a,
p = t,
h = "",
m = e.baseCurrencyRate || [{
display: "AUD",
value: 17.8,
selected: !0
}, {
display: "USD",
value: 12.3,
selected: !1
}, {
display: "SGD",
value: 18.1,
selected: !1
}, {
display: "GBP",
value: 10.2,
selected: !0
}, {
display: "NZD",
value: 19.5,
selected: !0
}, {
display: "EUR",
value: 11.9,
selected: !0
}, {
display: "CAD",
value: 17,
selected: !0
}],
g = document.getElementById(e.currencySelectorId),
v = document.getElementById(e.calculatedPriceId),
y = document.getElementById(e.numberOfReferSliderId),
b = document.getElementById(e.assignmentsPerMonthSliderId),
E = document.getElementById(e.averageAssignmentSizeId),
w = document.getElementById(e.resetButtonId);
function _(e, t) {
return e * f * d * p * t / 100
}
function T() {
var e = function() {
return _(u, s)
}(),
t = function() {
return _(n ? r : u * u, l)
}();
return c ? e + t : e
}
function A() {
var e = Math.ceil(function() {
return 12 * T()
}()),
t = "".concat(h, " ").concat(e, "/year");
v.innerHTML = t
}
function x(e, t) {
e.value = t, e.dispatchEvent(new Event("input"))
}
function C() {
n = !0, f = o, d = a, x(y, u = i), x(b, f), x(E, d), A()
}
this._updateNumberOfRefers = function(e) {
x(y, e)
}, this._updateAssignmentsPerMonth = function(e) {
x(b, e)
}, this._updateAverageAssignmentSize = function(e) {
x(E, e)
}, this.resetCalculator = C,
function() {
C(),
function() {
w && w.addEventListener("click", C), y && y.addEventListener("input", function(e) {
u = e.target.value, n = !1, A()
}), b && b.addEventListener("input", function(e) {
f = e.target.value, A()
}), E && E.addEventListener("input", function(e) {
d = e.target.value, A()
}), g && g.addEventListener("change", function(e) {
p = e.target.value, h = this.options[this.selectedIndex].text, A()
})
}(),
function() {
Array.prototype.forEach.call(m, function(e) {
var t = document.createElement("option"),
n = e.value,
i = e.display;
t.setAttribute("value", e.value), t.innerHTML = i, e.selected && (t.selected = "selected", p = n, h = i), g.appendChild(t)
}), A()
}()
}()
}
}, function(e, t, n) {
"use strict";
n.d(t, "a", function() {
return i
});
var i = function(e) {
Array.prototype.forEach.call(e, function(e) {
! function(e) {
var t = e,
n = t.querySelector("input[type='range']"),
i = t.querySelector(".rs-label");
function r() {
i.innerHTML = n.value;
var e = (n.value - n.min) / (n.max - n.min);
i.style.left = Math.floor(100 * e) + "%"
}
n.addEventListener("input", r, !1), r()
}(e)
})
}
}, , function(e, t, n) {}, function(e, t, n) {}, , , function(e, t, n) {}, , function(e, t, n) {}, , function(e, t, n) {}, , , , , function(e, t, n) {}, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(e, t, n) {
"use strict";
n(0);
var i = n(1);
window.addEventListener("DOMContentLoaded", function() {
var e = document.querySelectorAll(".datePicker");
Array.prototype.forEach.call(e, function(e) {
e.DatePickerX.init({
mondayFirst: !0,
format: "dd-mm-yyyy",
minDate: new Date,
maxDate: new Date(9999, 11, 31),
weekDayLabels: ["Mo", "Tu", "We", "Th", "Fr", "St", "Su"],
shortMonthLabels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
singleMonthLabels: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
todayButton: !1,
todayButtonLabel: "Today",
clearButton: !1,
clearButtonLabel: "Clear"
})
});
var t = document.getElementById("time");
Object(i.a)(t)
})
}, function(e, t, n) {}, function(e, t, n) {
"use strict";
var i = n(0),
a = n.n(i),
r = window.location.protocol + "//" + window.location.host,
o = r + "/qassets/" + "img/loader.gif",
s = r + "/";
function l(e, t, n, i, r) {
var o = "#" + r;
a.a.ajax({
method: "GET",
url: s + "getwidgetsdata.php",
data: {
country: e,
position: t,
type: n,
page_id: i,
divid: r
},
success: function(e) {
"MAH_wigets_new" == t && a()(o).html(e), "middle" == t && a()("#middlewid").html(e), "top" == t && a()("#topwid").html(e), "bottom" == t && a()("#bottomwid").html(e), "right" == t && a()("#rightwid").html(e), "left" == t && a()("#leftwid").html(e), "order" == t && a()("#orderformid").html(e)
}
})
}
a()(document).ready(function() {
var i = a()("#currentpagecountry").val(),
e = a()("#currentpagetype").val();
l(i, "left", e, "", ""), l(i, "right", e, "", ""), l(i, "top", e, "", ""), l(i, "middle", e, "", ""), l(i, "bottom", e, "", ""), a()("div[id^=MAH_wigets_new]").each(function(e, t) {
var n = this.id;
l(i, "MAH_wigets_new", "other", "", n)
}), a()("#hide").hide(), a()("#topwid").html('<span style="margin: auto; padding-top: 50px;"><center><img src="' + o + '" height="20px" /></center></span>'), a()("#leftwid").html('<span style="margin: auto; padding-top: 50px;"><center><img src="' + o + '" height="20px" /></center></span>'), a()("#rightwid").html('<span style="margin: auto; padding-top: 50px;"><center><img src="' + o + '" height="20px" /></center></span>'), a()("#middlewid").html('<span style="margin: auto; padding-top: 50px;"><center><img src="' + o + '" height="20px" /></center></span>'), a()("#bottomwid").html('<span style="margin: auto; padding-top: 50px;"><center><img src="' + o + '" height="20px" /></center></span>'), a()("#expertdataresult").html('<span style="margin: auto; width: 106px; padding-top: 50px;"><center><img src="' + o + '" height="20px" /></center></span>')
}), window.widgetdata = l
}, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(e, t, n) {
"use strict";
n.r(t);
var i, r = n(0),
o = n.n(r),
a = (n(27), n(25), n(28), n(26), n(81), n(42), n(116), n(49), n(37), n(82), n(40), n(36), n(22), n(29), n(83), n(7), n(12), n(6), n(8), n(44), n(33)),
s = n(34),
l = n(11);
n(31);
document.querySelector(".my-slider") && Object(l.a)({
container: ".my-slider",
mode: "carousel",
items: 1,
gutter: 0,
edgePadding: 0,
controls: !1,
animateIn: "tns-fadeIn",
autoplayButton: !1,
autoplay: !0,
autoplayButtonOutput: !1,
responsive: {
640: {
items: 1,
gutter: 0,
edgePadding: 0
},
768: {
items: 1,
gutter: 0,
edgePadding: 0
},
992: {
items: 1,
gutter: 0,
edgePadding: 0
}
},
rewind: !0,
touch: !0,
navPosition: "bottom"
});
var c;
window.validateField = function() {
return "" == o.a.trim(o()("#q").val()) ? (o()("#q").addClass("form-error").removeClass("form-success"), !1) : (o()("#q").addClass("form-success").removeClass("form-error"), !0)
};
function u(e) {
document.querySelector("#desktop-video").style.height = "370px", i.playVideo(), !0
}
function f(e) {
e.data, YT.PlayerState.ENDED
}
o()(document).ready(function() {
o()("#video-id-input").length && (c = o()("#video-id-input")[0].value), o()("#desktop-video").on("click", function() {
var e = document.createElement("script");
e.src = "https://www.youtube.com/iframe_api";
var t = document.getElementsByTagName("script")[0];
t.parentNode.insertBefore(e, t)
})
}), window.onYouTubeIframeAPIReady = function() {
i = new YT.Player("desktop-video", {
height: "100%",
width: "100%",
videoId: c,
playerVars: {
rel: 0
},
events: {
onReady: u,
onStateChange: f
}
})
};
var d = document.querySelector(".expert-list");
Object(l.a)({
container: d,
items: 1,
gutter: 20,
edgePadding: 10,
arrowKeys: !1,
nav: !0,
speed: 400,
lazyload: !0,
slideBy: "page",
autoplayButton: !1,
autoplay: !0,
rewind: !0,
touch: !0,
navPosition: "bottom"
}), o()(document).ready(function() {
var e = document.querySelectorAll(".cs-slider");
Object(s.a)(e), window.EarnMoneyCalculator = a.a, window.dispatchEvent(new Event("emcinitiated"));
var t = document.querySelectorAll(".datePicker");
Array.prototype.forEach.call(t, function(e) {
e.DatePickerX.init({
mondayFirst: !0,
format: "dd-mm-yyyy",
minDate: new Date,
maxDate: new Date(9999, 11, 31),
weekDayLabels: ["Mo", "Tu", "We", "Th", "Fr", "St", "Su"],
shortMonthLabels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
singleMonthLabels: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
todayButton: !1,
todayButtonLabel: "Today",
clearButton: !1,
clearButtonLabel: "Clear"
})
})
})
}, function(e, t, n) {}]);
window.dispatchEvent(new Event('DOMContentLoaded'));