PageSourceSearch

https://www.brighthorizons.com/static-corp/js/common.min.js?v12.1.1

js brighthorizons.com collected 2026-09-24 08:28:54 UTC 374,060 bytes, 63 lines download raw bytes

1!function (t) { var e = window.webpackJsonp; window.webpackJsonp = function (n, o, s) { for (var a, l, c, u = 0, h = []; u < n.length; u++)l = n[u], i[l] && h.push(i[l][0]), i[l] = 0; for (a in o) Object.prototype.hasOwnProperty.call(o, a) && (t[a] = o[a]); for (e && e(n, o, s); h.length;)h.shift()(); if (s) for (u = 0; u < s.length; u++)c = r(r.s = s[u]); return c; }; var n = {}, i = { 42: 0 }; function r(e) { if (n[e]) return n[e].exports; var i = n[e] = { i: e, l: !1, exports: {} }; return t[e].call(i.exports, i, i.exports, r), i.l = !0, i.exports; } r.e = function (t) { var e = i[t]; if (0 === e) return new Promise((function (t) { t(); })); if (e) return e[2]; var n = new Promise((function (n, r) { e = i[t] = [n, r]; })); e[2] = n; var o = document.getElementsByTagName("head")[0], s = document.createElement("script"); s.type = "text/javascript", s.charset = "utf-8", s.async = !0, s.timeout = 12e4, r.nc && s.setAttribute("nonce", r.nc), s.src = r.p + "" + t + ".chunck.[ext]"; var a = setTimeout(l, 12e4); function l() { s.onerror = s.onload = null, clearTimeout(a); var e = i[t]; 0 !== e && (e && e[1](new Error("Loading chunk " + t + " failed.")), i[t] = void 0); } return s.onerror = s.onload = l, o.appendChild(s), n; }, r.m = t, r.c = n, r.i = function (t) { return t; }, r.d = function (t, e, n) { r.o(t, e) || Object.defineProperty(t, e, { configurable: !1, enumerable: !0, get: n }); }, r.n = function (t) { var e = t && t.__esModule ? function () { return t.default; } : function () { return t; }; return r.d(e, "a", e), e; }, r.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e); }, r.p = "/static-corp/", r.oe = function (t) { throw console.error(t), t; }, r(r.s = 57); }({
2    0: function (t, e, n) {
3        var i;
4/*!
5 * jQuery JavaScript Library v3.3.1
6 * https://jquery.com/
7 *
8 * Includes Sizzle.js
9 * https://sizzlejs.com/
10 *
11 * Copyright JS Foundation and other contributors
12 * Released under the MIT license
13 * https://jquery.org/license
14 *
15 * Date: 2018-01-20T17:24Z
16 */!function (e, n) { "use strict"; "object" == typeof t && "object" == typeof t.exports ? t.exports = e.document ? n(e, !0) : function (t) { if (!t.document) throw new Error("jQuery requires a window with a document"); return n(t); } : n(e); }("undefined" != typeof window ? window : this, (function (n, r) {
17            "use strict"; var o = [], s = n.document, a = Object.getPrototypeOf, l = o.slice, c = o.concat, u = o.push, h = o.indexOf, f = {}, d = f.toString, p = f.hasOwnProperty, v = p.toString, g = v.call(Object), m = {}, y = function (t) { return "function" == typeof t && "number" != typeof t.nodeType; }, _ = function (t) { return null != t && t === t.window; }, b = { type: !0, src: !0, noModule: !0 }; function w(t, e, n) { var i, r = (e = e || s).createElement("script"); if (r.text = t, n) for (i in b) n[i] && (r[i] = n[i]); e.head.appendChild(r).parentNode.removeChild(r); } function x(t) { return null == t ? t + "" : "object" == typeof t || "function" == typeof t ? f[d.call(t)] || "object" : typeof t; } var C = "3.3.1", E = function (t, e) { return new E.fn.init(t, e); }, T = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; function k(t) { var e = !!t && "length" in t && t.length, n = x(t); return !y(t) && !_(t) && ("array" === n || 0 === e || "number" == typeof e && e > 0 && e - 1 in t); } E.fn = E.prototype = { jquery: C, constructor: E, length: 0, toArray: function () { return l.call(this); }, get: function (t) { return null == t ? l.call(this) : t < 0 ? this[t + this.length] : this[t]; }, pushStack: function (t) { var e = E.merge(this.constructor(), t); return e.prevObject = this, e; }, each: function (t) { return E.each(this, t); }, map: function (t) { return this.pushStack(E.map(this, (function (e, n) { return t.call(e, n, e); }))); }, slice: function () { return this.pushStack(l.apply(this, arguments)); }, first: function () { return this.eq(0); }, last: function () { return this.eq(-1); }, eq: function (t) { var e = this.length, n = +t + (t < 0 ? e : 0); return this.pushStack(n >= 0 && n < e ? [this[n]] : []); }, end: function () { return this.prevObject || this.constructor(); }, push: u, sort: o.sort, splice: o.splice }, E.extend = E.fn.extend = function () { var t, e, n, i, r, o, s = arguments[0] || {}, a = 1, l = arguments.length, c = !1; for ("boolean" == typeof s && (c = s, s = arguments[a] || {}, a++), "object" == typeof s || y(s) || (s = {}), a === l && (s = this, a--); a < l;
17 a++)if (null != (t = arguments[a])) for (e in t) n = s[e], s !== (i = t[e]) && (c && i && (E.isPlainObject(i) || (r = Array.isArray(i))) ? (r ? (r = !1, o = n && Array.isArray(n) ? n : []) : o = n && E.isPlainObject(n) ? n : {}, s[e] = E.extend(c, o, i)) : void 0 !== i && (s[e] = i)); return s; }, E.extend({ expando: "jQuery" + (C + Math.random()).replace(/\D/g, ""), isReady: !0, error: function (t) { throw new Error(t); }, noop: function () { }, isPlainObject: function (t) { var e, n; return !(!t || "[object Object]" !== d.call(t)) && (!(e = a(t)) || "function" == typeof (n = p.call(e, "constructor") && e.constructor) && v.call(n) === g); }, isEmptyObject: function (t) { var e; for (e in t) return !1; return !0; }, globalEval: function (t) { w(t); }, each: function (t, e) { var n, i = 0; if (k(t)) for (n = t.length; i < n && !1 !== e.call(t[i], i, t[i]); i++); else for (i in t) if (!1 === e.call(t[i], i, t[i])) break; return t; }, trim: function (t) { return null == t ? "" : (t + "").replace(T, ""); }, makeArray: function (t, e) { var n = e || []; return null != t && (k(Object(t)) ? E.merge(n, "string" == typeof t ? [t] : t) : u.call(n, t)), n; }, inArray: function (t, e, n) { return null == e ? -1 : h.call(e, t, n); }, merge: function (t, e) { for (var n = +e.length, i = 0, r = t.length; i < n; i++)t[r++] = e[i]; return t.length = r, t; }, grep: function (t, e, n) { for (var i = [], r = 0, o = t.length, s = !n; r < o; r++)!e(t[r], r) !== s && i.push(t[r]); return i; }, map: function (t, e, n) { var i, r, o = 0, s = []; if (k(t)) for (i = t.length; o < i; o++)null != (r = e(t[o], o, n)) && s.push(r); else for (o in t) null != (r = e(t[o], o, n)) && s.push(r); return c.apply([], s); }, guid: 1, support: m }), "function" == typeof Symbol && (E.fn[Symbol.iterator] = o[Symbol.iterator]), E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), (function (t, e) { f["[object " + e + "]"] = e.toLowerCase(); })); var S =
18                /*!
19                 * Sizzle CSS Selector Engine v2.3.3
20                 * https://sizzlejs.com/
21                 *
22                 * Copyright jQuery Foundation and other contributors
23                 * Released under the MIT license
24                 * http://jquery.org/license
25                 *
26                 * Date: 2016-08-08
27                 */
28                function (t) { var e, n, i, r, o, s, a, l, c, u, h, f, d, p, v, g, m, y, _, b = "sizzle" + 1 * new Date, w = t.document, x = 0, C = 0, E = st(), T = st(), k = st(), S = function (t, e) { return t === e && (h = !0), 0; }, j = {}.hasOwnProperty, A = [], O = A.pop, R = A.push, D = A.push, V = A.slice, $ = function (t, e) { for (var n = 0, i = t.length; n < i; n++)if (t[n] === e) return n; return -1; }, F = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", I = "[\\x20\\t\\r\\n\\f]", P = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", N = "\\[[\\x20\\t\\r\\n\\f]*(" + P + ")(?:" + I + "*([*^$|!~]?=)" + I + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + P + "))|)" + I + "*\\]", M = ":(" + P + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + N + ")*)|.*)\\)|)", B = new RegExp(I + "+", "g"), L = new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$", "g"), H = new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"), q = new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"), U = new RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]", "g"), W = new RegExp(M), z = new RegExp("^" + P + "$"), X = { ID: new RegExp("^#(" + P + ")"), CLASS: new RegExp("^\\.(" + P + ")"), TAG: new RegExp("^(" + P + "|[*])"), ATTR: new RegExp("^" + N), PSEUDO: new RegExp("^" + M), CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)", "i"), bool: new RegExp("^(?:" + F + ")$", "i"), needsContext: new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)", "i") }, Q = /^(?:input|select|textarea|button)$/i, G = /^h\d$/i, K = /^[^{]+\{\s*\[native \w/, J = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, Y = /[+~]/, Z = new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)", "ig"), tt = function (t, e, n) { var i = "0x" + e - 65536; return i != i || n ? e : i < 0 ? String.fromCharCode(i + 65536) : String.fromCharCode(i >> 10 | 55296, 1023 & i | 56320); }, et = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, nt = function (t, e) { return e ? "\0" === t ? "�" : t.slice(0, -1) + "\\" + t.charCodeAt(t.length - 1).toString(16) + " " : "\\" + t; }, it = function () { f(); }, rt = yt((function (t) { return !0 === t.disabled && ("form" in t || "label" in t); }), { dir: "parentNode", next: "legend" }); try { D.apply(A = V.call(w.childNodes), w.childNodes), A[w.childNodes.length].nodeType; } catch (t) { D = { apply: A.length ? function (t, e) { R.apply(t, V.call(e)); } : function (t, e) { for (var n = t.length, i = 0; t[n++] = e[i++];); t.length = n - 1; } }; } function ot(t, e, i, r) { var o, a, c, u, h, p, m, y = e && e.ownerDocument, x = e ? e.nodeType : 9; if (i = i || [], "string" != typeof t || !t || 1 !== x && 9 !== x && 11 !== x) return i; if (!r && ((e ? e.ownerDocument || e : w) !== d && f(e), e = e || d, v)) { if (11 !== x && (h = J.exec(t))) if (o = h[1]) { if (9 === x) { if (!(c = e.getElementById(o))) return i; if (c.id === o) return i.push(c), i; } else if (y && (c = y.getElementById(o)) && _(e, c) && c.id === o) return i.push(c), i; } else { if (h[2]) return D.apply(i, e.getElementsByTagName(t)), i; if ((o = h[3]) && n.getElementsByClassName && e.getElementsByClassName) return D.apply(i, e.getElementsByClassName(o)), i; } if (n.qsa && !k[t + " "] && (!g || !g.test(t))) { if (1 !== x) y = e, m = t; else if ("object" !== e.nodeName.toLowerCase()) { for ((u = e.getAttribute("id")) ? u = u.replace(et, nt) : e.setAttribute("id", u = b), a = (p = s(t)).length; a--;)p[a] = "#" + u + " " + mt(p[a]); m = p.join(","), y = Y.test(t) && vt(e.parentNode) || e; } if (m) try { return D.apply(i, y.querySelectorAll(m)), i; } catch (t) { } finally { u === b && e.removeAttribute("id"); } } } return l(t.replace(L, "$1"), e, i, r); } function st() { var t = []; return function e(n, r) { return t.push(n + " ") > i.cacheLength && delete e[t.shift()], e[n + " "] = r; }; } function at(t) { return t[b] = !0, t; } function lt(t) { var e = d.createElement("fieldset"); try { return !!t(e); } catch (t) { return !1; } finally { e.parentNode && e.parentNode.removeChild(e), e = null; } } function ct(t, e) { for (var n = t.split("|"), r = n.length; r--;)i.attrHandle[n[r]] = e; } function ut(t, e) { var n = e && t, i = n && 1 === t.nodeType && 1 === e.nodeType && t.sourceIndex - e.sourceIndex; if (i) return i; if (n) for (; n = n.nextSibling;)if (n === e) return -1; return t ? 1 : -1; } function ht(t) { return function (e) { return "input" === e.nodeName.toLowerCase() && e.type === t; }; } function ft(t) { return function (e) { var n = e.nodeName.toLowerCase(); return ("input" === n || "button" === n) && e.type === t; }; } function dt(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 && rt(e) === t : e.disabled === t : "label" in e && e.disabled === t; }; } function pt(t) { return at((function (e) { return e = +e, at((function (n, i) { for (var r, o = t([], n.length, e), s = o.length; s--;)n[r = o[s]] && (n[r] = !(i[r] = n[r])); })); })); } function vt(t) { return t && void 0 !== t.getElementsByTagName && t; } for (e in n = ot.support = {}, o = ot.isXML = function (t) { var e = t && (t.ownerDocument || t).documentElement; return !!e && "HTML" !== e.nodeName; }, f = ot.setDocument = function (t) { var e, r, s = t ? t.ownerDocument || t : w; return s !== d && 9 === s.nodeType && s.documentElement ? (p = (d = s).documentElement, v = !o(d), w !== d && (r = d.defaultView) && r.top !== r && (r.addEventListener ? r.addEventListener("unload", it, !1) : r.attachEvent && r.attachEvent("onunload", it)), n.attributes = lt((function (t) { return t.className = "i", !t.getAttribute("className"); })), n.getElementsByTagName = lt((function (t) { return t.appendChild(d.createComment("")), !t.getElementsByTagName("*").length; })), n.getElementsByClassName = K.test(d.getElementsByClassName), n.getById = lt((function (t) { return p.appendChild(t).id = b, !d.getElementsByName || !d.getElementsByName(b).length; })), n.getById ? (i.filter.ID = function (t) { var e = t.replace(Z, tt); return function (t) { return t.getAttribute("id") === e; }; }, i.find.ID = function (t, e) { if (void 0 !== e.getElementById && v) { var n = e.getElementById(t); return n ? [n] : []; } }) : (i.filter.ID = function (t) { var e = t.replace(Z, tt); return function (t) { var n = void 0 !== t.getAttributeNode && t.getAttributeNode("id"); return n && n.value === e; }; }, i.find.ID = function (t, e) { if (void 0 !== e.getElementById && v) { var n, i, r, o = e.getElementById(t); if (o) { if ((n = o.getAttributeNode("id")) && n.value === t) return [o]; for (r = e.getElementsByName(t), i = 0; o = r[i++];)if ((n = o.getAttributeNode("id")) && n.value === t) return [o]; } return []; } }), i.find.TAG = n.getElementsByTagName ? function (t, e) { return void 0 !== e.getElementsByTagName ? e.getElementsByTagName(t) : n.qsa ? e.querySelectorAll(t) : void 0; } : function (t, e) { var n, i = [], r = 0, o = e.getElementsByTagName(t); if ("*" === t) { for (; n = o[r++];)1 === n.nodeType && i.push(n); return i; } return o; }, i.find.CLASS = n.getElementsByClassName && function (t, e) { if (void 0 !== e.getElementsByClassName && v) return e.getElementsByClassName(t); }, m = [], g = [], (n.qsa = K.test(d.querySelectorAll)) && (lt((function (t) { p.appendChild(t).innerHTML = "<a id='" + b + "'></a><select id='" + b + "-\r\\' msallowcapture=''><option selected=''></option></select>", t.querySelectorAll("[msallowcapture^='']").length && g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"), t.querySelectorAll("[selected]").length || g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|" + F + ")"), t.querySelectorAll("[id~=" + b + "-]").length || g.push("~="), t.querySelectorAll(":checked").length || g.push(":checked"), t.querySelectorAll("a#" + b + "+*").length || g.push(".#.+[+~]"); })), lt((function (t) { t.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>"; var e = d.createElement("input"); e.setAttribute("type", "hidden"), t.appendChild(e).setAttribute("name", "D"), t.querySelectorAll("[name=d]").length && g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="), 2 !== t.querySelectorAll(":enabled").length && g.push(":enabled", ":disabled"), p.appendChild(t).disabled = !0, 2 !== t.querySelectorAll(":disabled").length && g.push(":enabled", ":disabled"), t.querySelectorAll("*,:x"), g.push(",.*:"); }))), (n.matchesSelector = K.test(y = p.matches || p.webkitMatchesSelector || p.mozMatchesSelector || p.oMatchesSelector || p.msMatchesSelector)) && lt((function (t) { n.disconnectedMatch = y.call(t, "*"), y.call(t, "[s!='']:x"), m.push("!=", M); })), g = g.length && new RegExp(g.join("|")), m = m.length && new RegExp(m.join("|")), e = K.test(p.compareDocumentPosition), _ = e || K.test(p.contains) ? function (t, e) { var n = 9 === t.nodeType ? t.documentElement : t, i = e && e.parentNode; return t === i || !(!i || 1 !== i.nodeType || !(n.contains ? n.contains(i) : t.compareDocumentPosition && 16 & t.compareDocumentPosition(i))
vendor: 5,062 bytes, line 28
28); } : function (t, e) { if (e) for (; e = e.parentNode;)if (e === t) return !0; return !1; }, S = e ? function (t, e) { if (t === e) return h = !0, 0; var i = !t.compareDocumentPosition - !e.compareDocumentPosition; return i || (1 & (i = (t.ownerDocument || t) === (e.ownerDocument || e) ? t.compareDocumentPosition(e) : 1) || !n.sortDetached && e.compareDocumentPosition(t) === i ? t === d || t.ownerDocument === w && _(w, t) ? -1 : e === d || e.ownerDocument === w && _(w, e) ? 1 : u ? $(u, t) - $(u, e) : 0 : 4 & i ? -1 : 1); } : function (t, e) { if (t === e) return h = !0, 0; var n, i = 0, r = t.parentNode, o = e.parentNode, s = [t], a = [e]; if (!r || !o) return t === d ? -1 : e === d ? 1 : r ? -1 : o ? 1 : u ? $(u, t) - $(u, e) : 0; if (r === o) return ut(t, e); for (n = t; n = n.parentNode;)s.unshift(n); for (n = e; n = n.parentNode;)a.unshift(n); for (; s[i] === a[i];)i++; return i ? ut(s[i], a[i]) : s[i] === w ? -1 : a[i] === w ? 1 : 0; }, d) : d; }, ot.matches = function (t, e) { return ot(t, null, null, e); }, ot.matchesSelector = function (t, e) { if ((t.ownerDocument || t) !== d && f(t), e = e.replace(U, "='$1']"), n.matchesSelector && v && !k[e + " "] && (!m || !m.test(e)) && (!g || !g.test(e))) try { var i = y.call(t, e); if (i || n.disconnectedMatch || t.document && 11 !== t.document.nodeType) return i; } catch (t) { } return ot(e, d, null, [t]).length > 0; }, ot.contains = function (t, e) { return (t.ownerDocument || t) !== d && f(t), _(t, e); }, ot.attr = function (t, e) { (t.ownerDocument || t) !== d && f(t); var r = i.attrHandle[e.toLowerCase()], o = r && j.call(i.attrHandle, e.toLowerCase()) ? r(t, e, !v) : void 0; return void 0 !== o ? o : n.attributes || !v ? t.getAttribute(e) : (o = t.getAttributeNode(e)) && o.specified ? o.value : null; }, ot.escape = function (t) { return (t + "").replace(et, nt); }, ot.error = function (t) { throw new Error("Syntax error, unrecognized expression: " + t); }, ot.uniqueSort = function (t) { var e, i = [], r = 0, o = 0; if (h = !n.detectDuplicates, u = !n.sortStable && t.slice(0), t.sort(S), h) { for (; e = t[o++];)e === t[o] && (r = i.push(o)); for (; r--;)t.splice(i[r], 1); } return u = null, t; }, r = ot.getText = function (t) { var e, n = "", i = 0, o = t.nodeType; if (o) { if (1 === o || 9 === o || 11 === o) { if ("string" == typeof t.textContent) return t.textContent; for (t = t.firstChild; t; t = t.nextSibling)n += r(t); } else if (3 === o || 4 === o) return t.nodeValue; } else for (; e = t[i++];)n += r(e); return n; }, i = ot.selectors = { cacheLength: 50, createPseudo: at, match: X, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: !0 }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: !0 }, "~": { dir: "previousSibling" } }, preFilter: { ATTR: function (t) { return t[1] = t[1].replace(Z, tt), t[3] = (t[3] || t[4] || t[5] || "").replace(Z, tt), "~=" === t[2] && (t[3] = " " + t[3] + " "), t.slice(0, 4); }, CHILD: function (t) { return t[1] = t[1].toLowerCase(), "nth" === t[1].slice(0, 3) ? (t[3] || ot.error(t[0]), t[4] = +(t[4] ? t[5] + (t[6] || 1) : 2 * ("even" === t[3] || "odd" === t[3])), t[5] = +(t[7] + t[8] || "odd" === t[3])) : t[3] && ot.error(t[0]), t; }, PSEUDO: function (t) { var e, n = !t[6] && t[2]; return X.CHILD.test(t[0]) ? null : (t[3] ? t[2] = t[4] || t[5] || "" : n && W.test(n) && (e = s(n, !0)) && (e = n.indexOf(")", n.length - e) - n.length) && (t[0] = t[0].slice(0, e), t[2] = n.slice(0, e)), t.slice(0, 3)); } }, filter: { TAG: function (t) { var e = t.replace(Z, tt).toLowerCase(); return "*" === t ? function () { return !0; } : function (t) { return t.nodeName && t.nodeName.toLowerCase() === e; }; }, CLASS: function (t) { var e = E[t + " "]; return e || (e = new RegExp("(^|[\\x20\\t\\r\\n\\f])" + t + "(" + I + "|$)")) && E(t, (function (t) { return e.test("string" == typeof t.className && t.className || void 0 !== t.getAttribute && t.getAttribute("class") || ""); })); }, ATTR: function (t, e, n) { return function (i) { var r = ot.attr(i, t); return null == r ? "!=" === e : !e || (r += "", "=" === e ? r === n : "!=" === e ? r !== n : "^=" === e ? n && 0 === r.indexOf(n) : "*=" === e ? n && r.indexOf(n) > -1 : "$=" === e ? n && r.slice(-n.length) === n : "~=" === e ? (" " + r.replace(B, " ") + " ").indexOf(n) > -1 : "|=" === e && (r === n || r.slice(0, n.length + 1) === n + "-")); }; }, CHILD: function (t, e, n, i, r) { var o = "nth" !== t.slice(0, 3), s = "last" !== t.slice(-4), a = "of-type" === e; return 1 === i && 0 === r ? function (t) { return !!t.parentNode; } : function (e, n, l) { var c, u, h, f, d, p, v = o !== s ? "nextSibling" : "previousSibling", g = e.parentNode, m = a && e.nodeName.toLowerCase(), y = !l && !a, _ = !1; if (g) { if (o) { for (; v;) { for (f = e; f = f[v];)if (a ? f.nodeName.toLowerCase() === m : 1 === f.nodeType) return !1; p = v = "only" === t && !p && "nextSibling"; } return !0; } if (p = [s ? g.firstChild : g.lastChild], s && y) { for (_ = (d = (c = (u = (h = (f = g)[b] || (f[b] = {}))[f.uniqueID] || (h[f.uniqueID] = {}
28))[t] || [])[0] === x && c[1]) && c[2], f = d && g.childNodes[d]; f = ++d && f && f[v] || (_ = d = 0) || p.pop();)if (1 === f.nodeType && ++_ && f === e) { u[t] = [x, d, _]; break; } } else if (y && (_ = d = (c = (u = (h = (f = e)[b] || (f[b] = {}))[f.uniqueID] || (h[f.uniqueID] = {}))[t] || [])[0] === x && c[1]), !1 === _) for (; (f = ++d && f && f[v] || (_ = d = 0) || p.pop()) && ((a ? f.nodeName.toLowerCase() !== m : 1 !== f.nodeType) || !++_ || (y && ((u = (h = f[b] || (f[b] = {}))[f.uniqueID] || (h[f.uniqueID] = {}))[t] = [x, _]), f !== e));); return (_ -= r) === i || _ % i == 0 && _ / i >= 0; } }; }, PSEUDO: function (t, e) { var n, r = i.pseudos[t] || i.setFilters[t.toLowerCase()] || ot.error("unsupported pseudo: " + t); return r[b] ? r(e) : r.length > 1 ? (n = [t, t, "", e], i.setFilters.hasOwnProperty(t.toLowerCase()) ? at((function (t, n) { for (var i, o = r(t, e), s = o.length; s--;)t[i = $(t, o[s])] = !(n[i] = o[s]); })) : function (t) { return r(t, 0, n); }) : r; } }, pseudos: { not: at((function (t) { var e = [], n = [], i = a(t.replace(L, "$1")); return i[b] ? at((function (t, e, n, r) { for (var o, s = i(t, null, r, []), a = t.length; a--;)(o = s[a]) && (t[a] = !(e[a] = o)); })) : function (t, r, o) { return e[0] = t, i(e, null, o, n), e[0] = null, !n.pop(); }; })), has: at((function (t) { return function (e) { return ot(t, e).length > 0; }; })), contains: at((function (t) { return t = t.replace(Z, tt), function (e) { return (e.textContent || e.innerText || r(e)).indexOf(t) > -1; }; })), lang: at((function (t) { return z.test(t || "") || ot.error("unsupported lang: " + t), t = t.replace(Z, tt).toLowerCase(), function (e) { var n; do { if (n = v ? e.lang : e.getAttribute("xml:lang") || e.getAttribute("lang")) return (n = n.toLowerCase()) === t || 0 === n.indexOf(t + "-"); } while ((e = e.parentNode) && 1 === e.nodeType); return !1; }; })), target: function (e) { var n = t.location && t.location.hash; return n && n.slice(1) === e.id; }, root: function (t) { return t === p; }, focus: function (t) { return t === d.activeElement && (!d.hasFocus || d.hasFocus()) && !!(t.type || t.href || ~t.tabIndex); }, enabled: dt(!1), disabled: dt(!0), checked: function (t) { var e = t.nodeName.toLowerCase(); return "input" === e && !!t.checked || "option" === e && !!t.selected; }, selected: function (t) { return t.parentNode && t.parentNode.selectedIndex, !0 === t.selected; }, empty: function (t) { for (t = t.firstChild; t; t = t.nextSibling)if (t.nodeType < 6) return !1; return !0; }, parent: function (t) { return !i.pseudos.empty(t); }, header: function (t) { return G.test(t.nodeName); }, input: function (t) { return Q.test(t.nodeName); }, button: function (t) { var e = t.nodeName.toLowerCase(); return "input" === e && "button" === t.type || "button" === e; }, text: function (t) { var e; return "input" === t.nodeName.toLowerCase() && "text" === t.type && (null == (e = t.getAttribute("type")) || "text" === e.toLowerCase()); }, first: pt((function () { return [0]; })), last: pt((function (t, e) { return [e - 1]; })), eq: pt((function (t, e, n) { return [n < 0 ? n + e : n]; })), even: pt((function (t, e) { for (var n = 0; n < e; n += 2)t.push(n); return t; })), odd: pt((function (t, e) { for (var n = 1; n < e; n += 2)t.push(n); return t; })), lt: pt((function (t, e, n) { for (var i = n < 0 ? n + e : n; --i >= 0;)t.push(i); return t; })), gt: pt((function (t, e, n) { for (var i = n < 0 ? n + e : n; ++i < e;)t.push(i); return t; })) } }, i.pseudos.nth = i.pseudos.eq, { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 }) i.pseudos[e] = ht(e); for (e in { submit: !0, reset: !0 }) i.pseudos[e] = ft(e); function gt() { } function mt(t) { for (var e = 0, n = t.length, i = ""; e < n; e++)i += t[e].value; return i; } function yt(t, e, n) { var i = e.dir, r = e.next, o = r || i, s = n && "parentNode" === o, a = C++; return e.first ? function (e, n, r) { for (; e = e[i];)if (1 === e.nodeType || s) return t(e, n, r); return !1; } : function (e, n, l) { var c, u, h, f = [x, a]; if (l) { for (; e = e[i];)if ((1 === e.nodeType || s) && t(e, n, l)) return !0; } else for (; e = e[i];)if (1 === e.nodeType || s) if (u = (h = e[b] || (e[b] = {}))[e.uniqueID] || (h[e.uniqueID] = {}), r && r === e.nodeName.toLowerCase()) e = e[i] || e;
28 else { if ((c = u[o]) && c[0] === x && c[1] === a) return f[2] = c[2]; if (u[o] = f, f[2] = t(e, n, l)) return !0; } return !1; }; } function _t(t) { return t.length > 1 ? function (e, n, i) { for (var r = t.length; r--;)if (!t[r](e, n, i)) return !1; return !0; } : t[0]; } function bt(t, e, n, i, r) { for (var o, s = [], a = 0, l = t.length, c = null != e; a < l; a++)(o = t[a]) && (n && !n(o, i, r) || (s.push(o), c && e.push(a))); return s; } function wt(t, e, n, i, r, o) { return i && !i[b] && (i = wt(i)), r && !r[b] && (r = wt(r, o)), at((function (o, s, a, l) { var c, u, h, f = [], d = [], p = s.length, v = o || function (t, e, n) { for (var i = 0, r = e.length; i < r; i++)ot(t, e[i], n); return n; }(e || "*", a.nodeType ? [a] : a, []), g = !t || !o && e ? v : bt(v, f, t, a, l), m = n ? r || (o ? t : p || i) ? [] : s : g; if (n && n(g, m, a, l), i) for (c = bt(m, d), i(c, [], a, l), u = c.length; u--;)(h = c[u]) && (m[d[u]] = !(g[d[u]] = h)); if (o) { if (r || t) { if (r) { for (c = [], u = m.length; u--;)(h = m[u]) && c.push(g[u] = h); r(null, m = [], c, l); } for (u = m.length; u--;)(h = m[u]) && (c = r ? $(o, h) : f[u]) > -1 && (o[c] = !(s[c] = h)); } } else m = bt(m === s ? m.splice(p, m.length) : m), r ? r(null, s, m, l) : D.apply(s, m); })); } function xt(t) { for (var e, n, r, o = t.length, s = i.relative[t[0].type], a = s || i.relative[" "], l = s ? 1 : 0, u = yt((function (t) { return t === e; }), a, !0), h = yt((function (t) { return $(e, t) > -1; }), a, !0), f = [function (t, n, i) { var r = !s && (i || n !== c) || ((e = n).nodeType ? u(t, n, i) : h(t, n, i)); return e = null, r; }]; l < o; l++)if (n = i.relative[t[l].type]) f = [yt(_t(f), n)]; else { if ((n = i.filter[t[l].type].apply(null, t[l].matches))[b]) { for (r = ++l; r < o && !i.relative[t[r].type]; r++); return wt(l > 1 && _t(f), l > 1 && mt(t.slice(0, l - 1).concat({ value: " " === t[l - 2].type ? "*" : "" })).replace(L, "$1"), n, l < r && xt(t.slice(l, r)), r < o && xt(t = t.slice(r)), r < o && mt(t)); } f.push(n); } return _t(f); } return gt.prototype = i.filters = i.pseudos, i.setFilters = new gt, s = ot.tokenize = function (t, e) { var n, r, o, s, a, l, c, u = T[t + " "]; if (u) return e ? 0 : u.slice(0); for (a = t, l = [], c = i.preFilter; a;) { for (s in n && !(r = H.exec(a)) || (r && (a = a.slice(r[0].length) || a), l.push(o = [])), n = !1, (r = q.exec(a)) && (n = r.shift(), o.push({ value: n, type: r[0].replace(L, " ") }), a = a.slice(n.length)), i.filter) !(r = X[s].exec(a)) || c[s] && !(r = c[s](r)) || (n = r.shift(), o.push({ value: n, type: s, matches: r }), a = a.slice(n.length)); if (!n) break; } return e ? a.length : a ? ot.error(t) : T(t, l).slice(0); }, a = ot.compile = function (t, e) { var n, r = [], o = [], a = k[t + " "]; if (!a) { for (e || (e = s(t)), n = e.length; n--;)(a = xt(e[n]))[b] ? r.push(a) : o.push(a); a = k(t, function (t, e) { var n = e.length > 0, r = t.length > 0, o = function (o, s, a, l, u) { var h, p, g, m = 0, y = "0", _ = o && [], b = [], w = c, C = o || r && i.find.TAG("*", u), E = x += null == w ? 1 : Math.random() || .1, T = C.length; for (u && (c = s === d || s || u); y !== T && null != (h = C[y]); y++) { if (r && h) { for (p = 0, s || h.ownerDocument === d || (f(h), a = !v); g = t[p++];)if (g(h, s || d, a)) { l.push(h); break; } u && (x = E); } n && ((h = !g && h) && m--, o && _.push(h)); } if (m += y, n && y !== m) { for (p = 0; g = e[p++];)g(_, b, s, a); if (o) { if (m > 0) for (; y--;)_[y] || b[y] || (b[y] = O.call(l)); b = bt(b); } D.apply(l, b), u && !o && b.length > 0 && m + e.length > 1 && ot.uniqueSort(l); } return u && (x = E, c = w), _; }; return n ? at(o) : o; }(o, r)), a.selector = t; } return a; }, l = ot.select = function (t, e, n, r) { var o, l, c, u, h, f = "function" == typeof t && t, d = !r && s(t = f.selector || t); if (n = n || [], 1 === d.length) { if ((l = d[0] = d[0].slice(0)).length > 2 && "ID" === (c = l[0]).type && 9 === e.nodeType && v && i.relative[l[1].type]) { if (!(e = (i.find.ID(c.matches[0].replace(Z, tt), e) || [])[0])) return n; f && (e = e.parentNode), t = t.slice(l.shift().value.length); } for (o = X.needsContext.test(t) ? 0 : l.length; o-- && (c = l[o], !i.relative[u = c.type]);)if ((h = i.find[u]) && (r = h(c.matches[0].replace(Z, tt), Y.test(l[0].type) && vt(e.parentNode) || e))) { if (l.splice(o, 1), !(t = r.length && mt(l))) return D.apply(n, r), n; break; } } return (f || a(t, d))(r, e, !v, n, !e || Y.test(t) && vt(e.parentNode) || e), n; }, n.sortStable = b.split("").sort(S).join("") === b, n.detectDuplicates = !!h, f(), n.sortDetached = lt((function (t) { return 1 & t.compareDocumentPosition(d.createElement("fieldset")); })), lt((function (t) { return t.innerHTML = "<a href='#'></a>
28", "#" === t.firstChild.getAttribute("href"); })) || ct("type|href|height|width", (function (t, e, n) { if (!n) return t.getAttribute(e, "type" === e.toLowerCase() ? 1 : 2); })), n.attributes && lt((function (t) { return t.innerHTML = "<input/>", t.firstChild.setAttribute("value", ""), "" === t.firstChild.getAttribute("value"); })) || ct("value", (function (t, e, n) { if (!n && "input" === t.nodeName.toLowerCase()) return t.defaultValue; })), lt((function (t) { return null == t.getAttribute("disabled"); })) || ct(F, (function (t, e, n) { var i; if (!n) return !0 === t[e] ? e.toLowerCase() : (i = t.getAttributeNode(e)) && i.specified ? i.value : null; })), ot; }(n); E.find = S, E.expr = S.selectors, E.expr[":"] = E.expr.pseudos, E.uniqueSort = E.unique = S.uniqueSort, E.text = S.getText, E.isXMLDoc = S.isXML, E.contains = S.contains, E.escapeSelector = S.escape; var j = function (t, e, n) { for (var i = [], r = void 0 !== n; (t = t[e]) && 9 !== t.nodeType;)if (1 === t.nodeType) { if (r && E(t).is(n)) break; i.push(t); } return i; }, A = function (t, e) { for (var n = []; t; t = t.nextSibling)1 === t.nodeType && t !== e && n.push(t); return n; }, O = E.expr.match.needsContext; function R(t, e) { return t.nodeName && t.nodeName.toLowerCase() === e.toLowerCase(); } var D = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; function V(t, e, n) { return y(e) ? E.grep(t, (function (t, i) { return !!e.call(t, i, t) !== n; })) : e.nodeType ? E.grep(t, (function (t) { return t === e !== n; })) : "string" != typeof e ? E.grep(t, (function (t) { return h.call(e, t) > -1 !== n; })) : E.filter(e, t, n); } E.filter = function (t, e, n) { var i = e[0]; return n && (t = ":not(" + t + ")"), 1 === e.length && 1 === i.nodeType ? E.find.matchesSelector(i, t) ? [i] : [] : E.find.matches(t, E.grep(e, (function (t) { return 1 === t.nodeType; }))); }, E.fn.extend({ find: function (t) { var e, n, i = this.length, r = this; if ("string" != typeof t) return this.pushStack(E(t).filter((function () { for (e = 0; e < i; e++)if (E.contains(r[e], this)) return !0; }))); for (n = this.pushStack([]), e = 0; e < i; e++)E.find(t, r[e], n); return i > 1 ? E.uniqueSort(n) : n; }, filter: function (t) { return this.pushStack(V(this, t || [], !1)); }, not: function (t) { return this.pushStack(V(this, t || [], !0)); }, is: function (t) { return !!V(this, "string" == typeof t && O.test(t) ? E(t) : t || [], !1).length; } }); var $, F = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/; (E.fn.init = function (t, e, n) { var i, r; if (!t) return this; if (n = n || $, "string" == typeof t) { if (!(i = "<" === t[0] && ">" === t[t.length - 1] && t.length >= 3 ? [null, t, null] : F.exec(t)) || !i[1] && e) return !e || e.jquery ? (e || n).find(t) : this.constructor(e).find(t); if (i[1]) { if (e = e instanceof E ? e[0] : e, E.merge(this, E.parseHTML(i[1], e && e.nodeType ? e.ownerDocument || e : s, !0)), D.test(i[1]) && E.isPlainObject(e)) for (i in e) y(this[i]) ? this[i](e[i]) : this.attr(i, e[i]); return this; } return (r = s.getElementById(i[2])) && (this[0] = r, this.length = 1), this; } return t.nodeType ? (this[0] = t, this.length = 1, this) : y(t) ? void 0 !== n.ready ? n.ready(t) : t(E) : E.makeArray(t, this); }).prototype = E.fn, $ = E(s); var I = /^(?:parents|prev(?:Until|All))/, P = { children: !0, contents: !0, next: !0, prev: !0 }; function N(t, e) { for (; (t = t[e]) && 1 !== t.nodeType;); return t; } E.fn.extend({ has: function (t) { var e = E(t, this), n = e.length; return this.filter((function () { for (var t = 0; t < n; t++)if (E.contains(this, e[t])) return !0; })); }, closest: function (t, e) { var n, i = 0, r = this.length, o = [], s = "string" != typeof t && E(t); if (!O.test(t)) for (; i < r; i++)for (n = this[i]; n && n !== e; n = n.parentNode)if (n.nodeType < 11 && (s ? s.index(n) > -1 : 1 === n.nodeType && E.find.matchesSelector(n, t))) { o.push(n); break; } return this.pushStack(o.length > 1 ? E.uniqueSort(o) : o); }, index: function (t) { return t ? "string" == typeof t ? h.call(E(t), this[0]) : h.call(this, t.jquery ? t[0] : t) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1; }, add: function (t, e) { return this.pushStack(E.uniqueSort(E.merge(this.get(), E(t, e)))); }, addBack: function (t) { return this.add(null == t ? this.prevObject : this.prevObject.filter(t)); } }), E.each({ parent: function (t) { var e = t.parentNode;
28 return e && 11 !== e.nodeType ? e : null; }, parents: function (t) { return j(t, "parentNode"); }, parentsUntil: function (t, e, n) { return j(t, "parentNode", n); }, next: function (t) { return N(t, "nextSibling"); }, prev: function (t) { return N(t, "previousSibling"); }, nextAll: function (t) { return j(t, "nextSibling"); }, prevAll: function (t) { return j(t, "previousSibling"); }, nextUntil: function (t, e, n) { return j(t, "nextSibling", n); }, prevUntil: function (t, e, n) { return j(t, "previousSibling", n); }, siblings: function (t) { return A((t.parentNode || {}).firstChild, t); }, children: function (t) { return A(t.firstChild); }, contents: function (t) { return R(t, "iframe") ? t.contentDocument : (R(t, "template") && (t = t.content || t), E.merge([], t.childNodes)); } }, (function (t, e) { E.fn[t] = function (n, i) { var r = E.map(this, e, n); return "Until" !== t.slice(-5) && (i = n), i && "string" == typeof i && (r = E.filter(i, r)), this.length > 1 && (P[t] || E.uniqueSort(r), I.test(t) && r.reverse()), this.pushStack(r); }; })); var M = /[^\x20\t\r\n\f]+/g; function B(t) { return t; } function L(t) { throw t; } function H(t, e, n, i) { var r; try { t && y(r = t.promise) ? r.call(t).done(e).fail(n) : t && y(r = t.then) ? r.call(t, e, n) : e.apply(void 0, [t].slice(i)); } catch (t) { n.apply(void 0, [t]); } } E.Callbacks = function (t) { t = "string" == typeof t ? function (t) { var e = {}; return E.each(t.match(M) || [], (function (t, n) { e[n] = !0; })), e; }(t) : E.extend({}, t); var e, n, i, r, o = [], s = [], a = -1, l = function () { for (r = r || t.once, i = e = !0; s.length; a = -1)for (n = s.shift(); ++a < o.length;)!1 === o[a].apply(n[0], n[1]) && t.stopOnFalse && (a = o.length, n = !1); t.memory || (n = !1), e = !1, r && (o = n ? [] : ""); }, c = { add: function () { return o && (n && !e && (a = o.length - 1, s.push(n)), function e(n) { E.each(n, (function (n, i) { y(i) ? t.unique && c.has(i) || o.push(i) : i && i.length && "string" !== x(i) && e(i); })); }(arguments), n && !e && l()), this; }, remove: function () { return E.each(arguments, (function (t, e) { for (var n; (n = E.inArray(e, o, n)) > -1;)o.splice(n, 1), n <= a && a--; })), this; }, has: function (t) { return t ? E.inArray(t, o) > -1 : o.length > 0; }, empty: function () { return o && (o = []), this; }, disable: function () { return r = s = [], o = n = "", this; }, disabled: function () { return !o; }, lock: function () { return r = s = [], n || e || (o = n = ""), this; }, locked: function () { return !!r; }, fireWith: function (t, n) { return r || (n = [t, (n = n || []).slice ? n.slice() : n], s.push(n), e || l()), this; }, fire: function () { return c.fireWith(this, arguments), this; }, fired: function () { return !!i; } }; return c; }, E.extend({ Deferred: function (t) { var e = [["notify", "progress", E.Callbacks("memory"), E.Callbacks("memory"), 2], ["resolve", "done", E.Callbacks("once memory"), E.Callbacks("once memory"), 0, "resolved"], ["reject", "fail", E.Callbacks("once memory"), E.Callbacks("once memory"), 1, "rejected"]], i = "pending", r = { state: function () { return i; }, always: function () { return o.done(arguments).fail(arguments), this; }, catch: function (t) { return r.then(null, t); }, pipe: function () { var t = arguments; return E.Deferred((function (n) { E.each(e, (function (e, i) { var r = y(t[i[4]]) && t[i[4]]; o[i[1]]((function () { var t = r && r.apply(this, arguments); t && y(t.promise) ? t.promise().progress(n.notify).done(n.resolve).fail(n.reject) : n[i[0] + "With"](this, r ? [t] : arguments); })); })), t = null; })).promise(); }, then: function (t, i, r) { var o = 0; function s(t, e, i, r) { return function () { var a = this, l = arguments, c = function () { var n, c; if (!(t < o)) { if ((n = i.apply(a, l)) === e.promise()) throw new TypeError("Thenable self-resolution"); c = n && ("object" == typeof n || "function" == typeof n) && n.then, y(c) ? r ? c.call(n, s(o, e, B, r), s(o, e, L, r)) : (o++, c.call(n, s(o, e, B, r), s(o, e, L, r), s(o, e, B, e.notifyWith))) : (i !== B && (a = void 0, l = [n]), (r || e.resolveWith)(a, l)); } }, u = r ? c : function () { try { c(); } catch (n) { E.Deferred.exceptionHook && E.Deferred.exceptionHook(n, u.stackTrace), t + 1 >= o && (i !== L && (a = void 0, l = [n]), e.rejectWith(a, l)); } }; t ? u() : (E.Deferred.getStackHook && (u.stackTrace = E.Deferred.getStackHook()), n.setTimeout(u)); }; } return E.Deferred((function (n) { e[0][3].add(s(0, n, y(r) ? r : B, n.notifyWith)), e[1][3].add(s(0, n, y(t) ? t : B)), e[2][3].add(s(0, n, y(i) ? i : L)); })).promise(); }, promise: function (t) { return null != t ? E.extend(t, r) : r; } }, o = {}; return E.each(e, (function (t, n) { var s = n[2], a = n[5]; r[n[1]] = s.add, a && s.add((function () { i = a; }), e[3 - t][2].disable, e[3 - t][3].disable, e[0][2].lock, e[0][3].lock), s.add(n[3].fire), o[n[0]] = function () { return o[n[0] + "With"](this === o ? void 0 : this, arguments), this; }, o[n[0] + "With"] = s.fireWith; })), r.promise(o), t && t.call(o, o), o; }, when: function (t) { var e = arguments.length, n = e, i = Array(n), r = l.call(arguments), o = E.Deferred(), s = function (t) { return function (n) { i[t] = this, r[t] = arguments.length > 1 ? l.call(arguments) : n, --e || o.resolveWith(i, r); }; }; if (e <= 1 && (H(t, o.done(s(n)).resolve, o.reject, !e), "pending" === o.state() || y(r[n] && r[n].then))) return o.then(); for (; n--;)H(r[n], s(n), o.reject); return o.promise(); } }); var q = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; E.Deferred.exceptionHook = function (t, e) { n.console && n.console.warn && t && q.test(t.name) && n.console.warn("jQuery.Deferred exception: " + t.message, t.stack, e); }, E.readyException = function (t) { n.setTimeout((function () { throw t; })); }; var U = E.Deferred(); function W() { s.removeEventListener("DOMContentLoaded", W), n.removeEventListener("load", W), E.ready(); }
28 E.fn.ready = function (t) { return U.then(t).catch((function (t) { E.readyException(t); })), this; }, E.extend({ isReady: !1, readyWait: 1, ready: function (t) { (!0 === t ? --E.readyWait : E.isReady) || (E.isReady = !0, !0 !== t && --E.readyWait > 0 || U.resolveWith(s, [E])); } }), E.ready.then = U.then, "complete" === s.readyState || "loading" !== s.readyState && !s.documentElement.doScroll ? n.setTimeout(E.ready) : (s.addEventListener("DOMContentLoaded", W), n.addEventListener("load", W)); var z = function (t, e, n, i, r, o, s) { var a = 0, l = t.length, c = null == n; if ("object" === x(n)) for (a in r = !0, n) z(t, e, a, n[a], !0, o, s); else if (void 0 !== i && (r = !0, y(i) || (s = !0), c && (s ? (e.call(t, i), e = null) : (c = e, e = function (t, e, n) { return c.call(E(t), n); })), e)) for (; a < l; a++)e(t[a], n, s ? i : i.call(t[a], a, e(t[a], n))); return r ? t : c ? e.call(t) : l ? e(t[0], n) : o; }, X = /^-ms-/, Q = /-([a-z])/g; function G(t, e) { return e.toUpperCase(); } function K(t) { return t.replace(X, "ms-").replace(Q, G); } var J = function (t) { return 1 === t.nodeType || 9 === t.nodeType || !+t.nodeType; }; function Y() { this.expando = E.expando + Y.uid++; } Y.uid = 1, Y.prototype = { cache: function (t) { var e = t[this.expando]; return e || (e = {}, J(t) && (t.nodeType ? t[this.expando] = e : Object.defineProperty(t, this.expando, { value: e, configurable: !0 }))), e; }, set: function (t, e, n) { var i, r = this.cache(t); if ("string" == typeof e) r[K(e)] = n; else for (i in e) r[K(i)] = e[i]; return r; }, get: function (t, e) { return void 0 === e ? this.cache(t) : t[this.expando] && t[this.expando][K(e)]; }, access: function (t, e, n) { return void 0 === e || e && "string" == typeof e && void 0 === n ? this.get(t, e) : (this.set(t, e, n), void 0 !== n ? n : e); }, remove: function (t, e) { var n, i = t[this.expando]; if (void 0 !== i) { if (void 0 !== e) { n = (e = Array.isArray(e) ? e.map(K) : (e = K(e)) in i ? [e] : e.match(M) || []).length; for (; n--;)delete i[e[n]]; } (void 0 === e || E.isEmptyObject(i)) && (t.nodeType ? t[this.expando] = void 0 : delete t[this.expando]); } }, hasData: function (t) { var e = t[this.expando]; return void 0 !== e && !E.isEmptyObject(e); } }; var Z = new Y, tt = new Y, et = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, nt = /[A-Z]/g; function it(t, e, n) { var i; if (void 0 === n && 1 === t.nodeType) if (i = "data-" + e.replace(nt, "-$&").toLowerCase(), "string" == typeof (n = t.getAttribute(i))) { try { n = function (t) { return "true" === t || "false" !== t && ("null" === t ? null : t === +t + "" ? +t : et.test(t) ? JSON.parse(t) : t); }(n); } catch (t) { } tt.set(t, e, n); } else n = void 0; return n; } E.extend({ hasData: function (t) { return tt.hasData(t) || Z.hasData(t); }, data: function (t, e, n) { return tt.access(t, e, n); }, removeData: function (t, e) { tt.remove(t, e); }, _data: function (t, e, n) { return Z.access(t, e, n); }, _removeData: function (t, e) { Z.remove(t, e); } }), E.fn.extend({ data: function (t, e) { var n, i, r, o = this[0], s = o && o.attributes; if (void 0 === t) { if (this.length && (r = tt.get(o), 1 === o.nodeType && !Z.get(o, "hasDataAttrs"))) { for (n = s.length; n--;)s[n] && 0 === (i = s[n].name).indexOf("data-") && (i = K(i.slice(5)), it(o, i, r[i])); Z.set(o, "hasDataAttrs", !0); } return r; } return "object" == typeof t ? this.each((function () { tt.set(this, t); })) : z(this, (function (e) { var n; if (o && void 0 === e) return void 0 !== (n = tt.get(o, t)) || void 0 !== (n = it(o, t)) ? n : void 0; this.each((function () { tt.set(this, t, e); })); }), null, e, arguments.length > 1, null, !0); }, removeData: function (t) { return this.each((function () { tt.remove(this, t); })); } }), E.extend({ queue: function (t, e, n) { var i; if (t) return e = (e || "fx") + "queue", i = Z.get(t, e), n && (!i || Array.isArray(n) ? i = Z.access(t, e, E.makeArray(n)) : i.push(n)), i || []; }, dequeue: function (t, e) { e = e || "fx"; var n = E.queue(t, e), i = n.length, r = n.shift(), o = E._queueHooks(t, e); "inprogress" === r && (r = n.shift(), i--), r && ("fx" === e && n.unshift("inprogress"), delete o.stop, r.call(t, (function () { E.dequeue(t, e); }), o)), !i && o && o.empty.fire(); }, _queueHooks: function (t, e) { var n = e + "queueHooks"; return Z.get(t, n) || Z.access(t, n, { empty: E.Callbacks("once memory").add((function () { Z.remove(t, [e + "queue", n]); })) }); } }), E.fn.extend({ queue: function (t, e) { var n = 2; return "string" != typeof t && (e = t, t = "fx", n--), arguments.length < n ? E.queue(this[0], t) : void 0 === e ? this : this.each((function () { var n = E.queue(this, t, e); E._queueHooks(this, t), "fx" === t && "inprogress" !== n[0] && E.dequeue(this, t); })); }, dequeue: function (t) { return this.each((function () { E.dequeue(this, t); })); }, clearQueue: function (t) { return this.queue(t || "fx", []); }, promise: function (t, e) { var n, i = 1, r = E.Deferred(), o = this, s = this.length, a = function () { --i || r.resolveWith(o, [o]); }; for ("string" != typeof t && (e = t, t = void 0), t = t || "fx"; s--;)(n = Z.get(o[s], t + "queueHooks")) && n.empty && (i++, n.empty.add(a)); return a(), r.promise(e); } }); var rt = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, ot = new RegExp("^(?:([+-])=|)(" + rt + ")([a-z
28%]*)$", "i"), st = ["Top", "Right", "Bottom", "Left"], at = function (t, e) { return "none" === (t = e || t).style.display || "" === t.style.display && E.contains(t.ownerDocument, t) && "none" === E.css(t, "display"); }, lt = function (t, e, n, i) { var r, o, s = {}; for (o in e) s[o] = t.style[o], t.style[o] = e[o]; for (o in r = n.apply(t, i || []), e) t.style[o] = s[o]; return r; }; function ct(t, e, n, i) { var r, o, s = 20, a = i ? function () { return i.cur(); } : function () { return E.css(t, e, ""); }, l = a(), c = n && n[3] || (E.cssNumber[e] ? "" : "px"), u = (E.cssNumber[e] || "px" !== c && +l) && ot.exec(E.css(t, e)); if (u && u[3] !== c) { for (l /= 2, c = c || u[3], u = +l || 1; s--;)E.style(t, e, u + c), (1 - o) * (1 - (o = a() / l || .5)) <= 0 && (s = 0), u /= o; u *= 2, E.style(t, e, 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 ut = {}; function ht(t) { var e, n = t.ownerDocument, i = t.nodeName, r = ut[i]; return r || (e = n.body.appendChild(n.createElement(i)), r = E.css(e, "display"), e.parentNode.removeChild(e), "none" === r && (r = "block"), ut[i] = r, r); } function ft(t, e) { for (var n, i, r = [], o = 0, s = t.length; o < s; o++)(i = t[o]).style && (n = i.style.display, e ? ("none" === n && (r[o] = Z.get(i, "display") || null, r[o] || (i.style.display = "")), "" === i.style.display && at(i) && (r[o] = ht(i))) : "none" !== n && (r[o] = "none", Z.set(i, "display", n))); for (o = 0; o < s; o++)null != r[o] && (t[o].style.display = r[o]); return t; } E.fn.extend({ show: function () { return ft(this, !0); }, hide: function () { return ft(this); }, toggle: function (t) { return "boolean" == typeof t ? t ? this.show() : this.hide() : this.each((function () { at(this) ? E(this).show() : E(this).hide(); })); } }); var dt = /^(?:checkbox|radio)$/i, pt = /<([a-z][^\/\0>\x20\t\r\n\f]+)/i, vt = /^$|^module$|\/(?:java|ecma)script/i, gt = { 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 mt(t, e) { var n; return n = void 0 !== t.getElementsByTagName ? t.getElementsByTagName(e || "*") : void 0 !== t.querySelectorAll ? t.querySelectorAll(e || "*") : [], void 0 === e || e && R(t, e) ? E.merge([t], n) : n; } function yt(t, e) { for (var n = 0, i = t.length; n < i; n++)Z.set(t[n], "globalEval", !e || Z.get(e[n], "globalEval")); } gt.optgroup = gt.option, gt.tbody = gt.tfoot = gt.colgroup = gt.caption = gt.thead, gt.th = gt.td; var _t, bt, wt = /<|&#?\w+;/; function xt(t, e, n, i, r) { for (var o, s, a, l, c, u, h = e.createDocumentFragment(), f = [], d = 0, p = t.length; d < p; d++)if ((o = t[d]) || 0 === o) if ("object" === x(o)) E.merge(f, o.nodeType ? [o] : o); else if (wt.test(o)) { for (s = s || h.appendChild(e.createElement("div")), a = (pt.exec(o) || ["", ""])[1].toLowerCase(), l = gt[a] || gt._default, s.innerHTML = l[1] + E.htmlPrefilter(o) + l[2], u = l[0]; u--;)s = s.lastChild; E.merge(f, s.childNodes), (s = h.firstChild).textContent = ""; } else f.push(e.createTextNode(o)); for (h.textContent = "", d = 0; o = f[d++];)if (i && E.inArray(o, i) > -1) r && r.push(o); else if (c = E.contains(o.ownerDocument, o), s = mt(h.appendChild(o), "script"), c && yt(s), n) for (u = 0; o = s[u++];)vt.test(o.type || "") && n.push(o); return h; } _t = s.createDocumentFragment().appendChild(s.createElement("div")), (bt = s.createElement("input")).setAttribute("type", "radio"), bt.setAttribute("checked", "checked"), bt.setAttribute("name", "t"), _t.appendChild(bt), m.checkClone = _t.cloneNode(!0).cloneNode(!0).lastChild.checked, _t.innerHTML = "<textarea>x</textarea>", m.noCloneChecked = !!_t.cloneNode(!0).lastChild.defaultValue; var Ct = s.documentElement, Et = /^key/, Tt = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, kt = /^([^.]*)(?:\.(.+)|)/; function St() { return !0; } function jt() { return !1; } function At() { try { return s.activeElement; } catch (t) { } } function Ot(t, e, n, i, r, o) { var s, a; if ("object" == typeof e) { for (a in "string" != typeof n && (i = i || n, n = void 0), e) Ot(t, a, n, i, e[a], o); return t; } 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 = jt; else if (!r) return t; return 1 === o && (s = r, r = function (t) { return E().off(t), s.apply(this, arguments); }, r.guid = s.guid || (s.guid = E.guid++)), t.each((function () { E.event.add(this, e, r, i, n); })); } E.event = { global: {}, add: function (t, e, n, i, r) { var o, s, a, l, c, u, h, f, d, p, v, g = Z.get(t); if (g) for (n.handler && (n = (o = n).handler, r = o.selector), r && E.find.matchesSelector(Ct, r), n.guid || (n.guid = E.guid++), (l = g.events) || (l = g.events = {}), (s = g.handle) || (s = g.handle = function (e) { return void 0 !== E && E.event.triggered !== e.type ? E.event.dispatch.apply(t, arguments) : void 0; }), c = (e = (e || "").match(M) || [""]).length; c--;)d = v = (a = kt.exec(e[c]) || [])[1], p = (a[2] || "").split(".").sort(), d && (h = E.event.special[d] || {}
vendor: 5,376 bytes, line 28
28, d = (r ? h.delegateType : h.bindType) || d, h = E.event.special[d] || {}, u = E.extend({ type: d, origType: v, data: i, handler: n, guid: n.guid, selector: r, needsContext: r && E.expr.match.needsContext.test(r), namespace: p.join(".") }, o), (f = l[d]) || ((f = l[d] = []).delegateCount = 0, h.setup && !1 !== h.setup.call(t, i, p, s) || t.addEventListener && t.addEventListener(d, s)), h.add && (h.add.call(t, u), u.handler.guid || (u.handler.guid = n.guid)), r ? f.splice(f.delegateCount++, 0, u) : f.push(u), E.event.global[d] = !0); }, remove: function (t, e, n, i, r) { var o, s, a, l, c, u, h, f, d, p, v, g = Z.hasData(t) && Z.get(t); if (g && (l = g.events)) { for (c = (e = (e || "").match(M) || [""]).length; c--;)if (d = v = (a = kt.exec(e[c]) || [])[1], p = (a[2] || "").split(".").sort(), d) { for (h = E.event.special[d] || {}, f = l[d = (i ? h.delegateType : h.bindType) || d] || [], a = a[2] && new RegExp("(^|\\.)" + p.join("\\.(?:.*\\.|)") + "(\\.|$)"), s = o = f.length; o--;)u = f[o], !r && v !== u.origType || n && n.guid !== u.guid || a && !a.test(u.namespace) || i && i !== u.selector && ("**" !== i || !u.selector) || (f.splice(o, 1), u.selector && f.delegateCount--, h.remove && h.remove.call(t, u)); s && !f.length && (h.teardown && !1 !== h.teardown.call(t, p, g.handle) || E.removeEvent(t, d, g.handle), delete l[d]); } else for (d in l) E.event.remove(t, d + e[c], n, i, !0); E.isEmptyObject(l) && Z.remove(t, "handle events"); } }, dispatch: function (t) { var e, n, i, r, o, s, a = E.event.fix(t), l = new Array(arguments.length), c = (Z.get(this, "events") || {})[a.type] || [], u = E.event.special[a.type] || {}; for (l[0] = a, e = 1; e < arguments.length; e++)l[e] = arguments[e]; if (a.delegateTarget = this, !u.preDispatch || !1 !== u.preDispatch.call(this, a)) { for (s = E.event.handlers.call(this, a, c), e = 0; (r = s[e++]) && !a.isPropagationStopped();)for (a.currentTarget = r.elem, n = 0; (o = r.handlers[n++]) && !a.isImmediatePropagationStopped();)a.rnamespace && !a.rnamespace.test(o.namespace) || (a.handleObj = o, a.data = o.data, void 0 !== (i = ((E.event.special[o.origType] || {}).handle || o.handler).apply(r.elem, l)) && !1 === (a.result = i) && (a.preventDefault(), a.stopPropagation())); return u.postDispatch && u.postDispatch.call(this, a), a.result; } }, handlers: function (t, e) { var n, i, r, o, s, a = [], l = e.delegateCount, c = t.target; if (l && c.nodeType && !("click" === t.type && t.button >= 1)) for (; c !== this; c = c.parentNode || this)if (1 === c.nodeType && ("click" !== t.type || !0 !== c.disabled)) { for (o = [], s = {}, n = 0; n < l; n++)void 0 === s[r = (i = e[n]).selector + " "] && (s[r] = i.needsContext ? E(r, this).index(c) > -1 : E.find(r, this, null, [c]).length), s[r] && o.push(i); o.length && a.push({ elem: c, handlers: o }); } return c = this, l < e.length && a.push({ elem: c, handlers: e.slice(l) }), a; }, addProp: function (t, e) { Object.defineProperty(E.Event.prototype, t, { enumerable: !0, configurable: !0, get: y(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 (t) { return t[E.expando] ? t : new E.Event(t); }, special: { load: { noBubble: !0 }, focus: { trigger: function () { if (this !== At() && this.focus) return this.focus(), !1; }, delegateType: "focusin" }, blur: { trigger: function () { if (this === At() && this.blur) return this.blur(), !1; }, delegateType: "focusout" }, click: { trigger: function () { if ("checkbox" === this.type && this.click && R(this, "input")) return this.click(), !1; }, _default: function (t) { return R(t.target, "a"); } }, beforeunload: { postDispatch: function (t) { void 0 !== t.result && t.originalEvent && (t.originalEvent.returnValue = t.result); } } } }, E.removeEvent = function (t, e, n) { t.removeEventListener && t.removeEventListener(e, n); }, E.Event = function (t, e) { if (!(this instanceof E.Event)) return new E.Event(t, e); t && t.type ? (this.originalEvent = t, this.type = t.type, this.isDefaultPrevented = t.defaultPrevented || void 0 === t.defaultPrevented && !1 === t.returnValue ? St : jt, this.target = t.target && 3 === t.target.nodeType ? t.target.parentNode : t.target, this.currentTarget = t.currentTarget, this.relatedTarget = t.relatedTarget) : this.type = t, e && E.extend(this, e), this.timeStamp = t && t.timeStamp || Date.now(), this[E.expando] = !0; }, E.Event.prototype = { constructor: E.Event, isDefaultPrevented: jt, isPropagationStopped: jt, isImmediatePropagationStopped: jt, isSimulated: !1, preventDefault: function () { var t = this.originalEvent; this.isDefaultPrevented = St, t && !this.isSimulated && t.preventDefault(); }, stopPropagation: function () { var t = this.originalEvent; this.isPropagationStopped = St, t && !this.isSimulated && t.stopPropagation(); }, stopImmediatePropagation: function () { var t = this.originalEvent; this.isImmediatePropagationStopped = St, t && !this.isSimulated && t.stopImmediatePropagation(), this.stopPropagation(); } }, E.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, charCo
28de: !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 (t) { var e = t.button; return null == t.which && Et.test(t.type) ? null != t.charCode ? t.charCode : t.keyCode : !t.which && void 0 !== e && Tt.test(t.type) ? 1 & e ? 1 : 2 & e ? 3 : 4 & e ? 2 : 0 : t.which; } }, E.event.addProp), E.each({ mouseenter: "mouseover", mouseleave: "mouseout", pointerenter: "pointerover", pointerleave: "pointerout" }, (function (t, e) { E.event.special[t] = { delegateType: e, bindType: e, handle: function (t) { var n, i = this, r = t.relatedTarget, o = t.handleObj; return r && (r === i || E.contains(i, r)) || (t.type = o.origType, n = o.handler.apply(this, arguments), t.type = e), n; } }; })), E.fn.extend({ on: function (t, e, n, i) { return Ot(this, t, e, n, i); }, one: function (t, e, n, i) { return Ot(this, t, e, n, i, 1); }, off: function (t, e, n) { var i, r; if (t && t.preventDefault && t.handleObj) return i = t.handleObj, E(t.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this; if ("object" == typeof t) { for (r in t) this.off(r, e, t[r]); return this; } return !1 !== e && "function" != typeof e || (n = e, e = void 0), !1 === n && (n = jt), this.each((function () { E.event.remove(this, t, n, e); })); } }); var Rt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, Dt = /<script|<style|<link/i, Vt = /checked\s*(?:[^=]|=\s*.checked.)/i, $t = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g; function Ft(t, e) { return R(t, "table") && R(11 !== e.nodeType ? e : e.firstChild, "tr") && E(t).children("tbody")[0] || t; } function It(t) { return t.type = (null !== t.getAttribute("type")) + "/" + t.type, t; } function Pt(t) { return "true/" === (t.type || "").slice(0, 5) ? t.type = t.type.slice(5) : t.removeAttribute("type"), t; } function Nt(t, e) { var n, i, r, o, s, a, l, c; if (1 === e.nodeType) { if (Z.hasData(t) && (o = Z.access(t), s = Z.set(e, o), c = o.events)) for (r in delete s.handle, s.events = {}, c) for (n = 0, i = c[r].length; n < i;
28 n++)E.event.add(e, r, c[r][n]); tt.hasData(t) && (a = tt.access(t), l = E.extend({}, a), tt.set(e, l)); } } function Mt(t, e) { var n = e.nodeName.toLowerCase(); "input" === n && dt.test(t.type) ? e.checked = t.checked : "input" !== n && "textarea" !== n || (e.defaultValue = t.defaultValue); } function Bt(t, e, n, i) { e = c.apply([], e); var r, o, s, a, l, u, h = 0, f = t.length, d = f - 1, p = e[0], v = y(p); if (v || f > 1 && "string" == typeof p && !m.checkClone && Vt.test(p)) return t.each((function (r) { var o = t.eq(r); v && (e[0] = p.call(this, r, o.html())), Bt(o, e, n, i); })); if (f && (o = (r = xt(e, t[0].ownerDocument, !1, t, i)).firstChild, 1 === r.childNodes.length && (r = o), o || i)) { for (a = (s = E.map(mt(r, "script"), It)).length; h < f; h++)l = r, h !== d && (l = E.clone(l, !0, !0), a && E.merge(s, mt(l, "script"))), n.call(t[h], l, h); if (a) for (u = s[s.length - 1].ownerDocument, E.map(s, Pt), h = 0; h < a; h++)l = s[h], vt.test(l.type || "") && !Z.access(l, "globalEval") && E.contains(u, l) && (l.src && "module" !== (l.type || "").toLowerCase() ? E._evalUrl && E._evalUrl(l.src) : w(l.textContent.replace($t, ""), u, l)); } return t; } function Lt(t, e, n) { for (var i, r = e ? E.filter(e, t) : t, o = 0; null != (i = r[o]); o++)n || 1 !== i.nodeType || E.cleanData(mt(i)), i.parentNode && (n && E.contains(i.ownerDocument, i) && yt(mt(i, "script")), i.parentNode.removeChild(i)); return t; } E.extend({ htmlPrefilter: function (t) { return t.replace(Rt, "<$1></$2>"); }, clone: function (t, e, n) { var i, r, o, s, a = t.cloneNode(!0), l = E.contains(t.ownerDocument, t); if (!(m.noCloneChecked || 1 !== t.nodeType && 11 !== t.nodeType || E.isXMLDoc(t))) for (s = mt(a), i = 0, r = (o = mt(t)).length; i < r; i++)Mt(o[i], s[i]); if (e) if (n) for (o = o || mt(t), s = s || mt(a), i = 0, r = o.length; i < r; i++)Nt(o[i], s[i]); else Nt(t, a); return (s = mt(a, "script")).length > 0 && yt(s, !l && mt(t, "script")), a; }, cleanData: function (t) { for (var e, n, i, r = E.event.special, o = 0; void 0 !== (n = t[o]); o++)if (J(n)) { if (e = n[Z.expando]) { if (e.events) for (i in e.events) r[i] ? E.event.remove(n, i) : E.removeEvent(n, i, e.handle); n[Z.expando] = void 0; } n[tt.expando] && (n[tt.expando] = void 0); } } }), E.fn.extend({ detach: function (t) { return Lt(this, t, !0); }, remove: function (t) { return Lt(this, t); }, text: function (t) { return z(this, (function (t) { return void 0 === t ? E.text(this) : this.empty().each((function () { 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = t); })); }), null, t, arguments.length); }, append: function () { return Bt(this, arguments, (function (t) { 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || Ft(this, t).appendChild(t); })); }, prepend: function () { return Bt(this, arguments, (function (t) { if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { var e = Ft(this, t); e.insertBefore(t, e.firstChild); } })); }, before: function () { return Bt(this, arguments, (function (t) { this.parentNode && this.parentNode.insertBefore(t, this); })); }, after: function () { return Bt(this, arguments, (function (t) { this.parentNode && this.parentNode.insertBefore(t, this.nextSibling); })); }, empty: function () { for (var t, e = 0; null != (t = this[e]); e++)1 === t.nodeType && (E.cleanData(mt(t, !1)), t.textContent = ""); return this; }, clone: function (t, e) { return t = null != t && t, e = null == e ? t : e, this.map((function () { return E.clone(this, t, e); })); }, html: function (t) { return z(this, (function (t) { var e = this[0] || {}, n = 0, i = this.length; if (void 0 === t && 1 === e.nodeType) return e.innerHTML; if ("string" == typeof t && !Dt.test(t) && !gt[(pt.exec(t) || ["", ""])[1].toLowerCase()]) { t = E.htmlPrefilter(t); try { for (; n < i; n++)1 === (e = this[n] || {}).nodeType && (E.cleanData(mt(e, !1)), e.innerHTML = t); e = 0; } catch (t) { } } e && this.empty().append(t); }), null, t, arguments.length); }, replaceWith: function () { var t = []; return Bt(this, arguments, (function (e) { var n = this.parentNode; E.inArray(this, t) < 0 && (E.cleanData(mt(this)), n && n.replaceChild(e, this)); }), t); } }
28), E.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, (function (t, e) { E.fn[t] = function (t) { for (var n, i = [], r = E(t), o = r.length - 1, s = 0; s <= o; s++)n = s === o ? this : this.clone(!0), E(r[s])[e](n), u.apply(i, n.get()); return this.pushStack(i); }; })); var Ht = new RegExp("^(" + rt + ")(?!px)[a-z%]+$", "i"), qt = function (t) { var e = t.ownerDocument.defaultView; return e && e.opener || (e = n), e.getComputedStyle(t); }, Ut = new RegExp(st.join("|"), "i"); function Wt(t, e, n) { var i, r, o, s, a = t.style; return (n = n || qt(t)) && ("" !== (s = n.getPropertyValue(e) || n[e]) || E.contains(t.ownerDocument, t) || (s = E.style(t, e)), !m.pixelBoxStyles() && Ht.test(s) && Ut.test(e) && (i = a.width, r = a.minWidth, o = a.maxWidth, a.minWidth = a.maxWidth = a.width = s, s = n.width, a.width = i, a.minWidth = r, a.maxWidth = o)), void 0 !== s ? s + "" : s; } function zt(t, e) { return { get: function () { if (!t()) return (this.get = e).apply(this, arguments); delete this.get; } }; } !function () { function t() { if (u) { c.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", u.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%", Ct.appendChild(c).appendChild(u); var t = n.getComputedStyle(u); i = "1%" !== t.top, l = 12 === e(t.marginLeft), u.style.right = "60%", a = 36 === e(t.right), r = 36 === e(t.width), u.style.position = "absolute", o = 36 === u.offsetWidth || "absolute", Ct.removeChild(c), u = null; } } function e(t) { return Math.round(parseFloat(t)); } var i, r, o, a, l, c = s.createElement("div"), u = s.createElement("div"); u.style && (u.style.backgroundClip = "content-box", u.cloneNode(!0).style.backgroundClip = "", m.clearCloneStyle = "content-box" === u.style.backgroundClip, E.extend(m, { boxSizingReliable: function () { return t(), r; }, pixelBoxStyles: function () { return t(), a; }, pixelPosition: function () { return t(), i; }, reliableMarginLeft: function () { return t(), l; }, scrollboxSize: function () { return t(), o; } })); }(); var Xt = /^(none|table(?!-c[ea]).+)/, Qt = /^--/, Gt = { position: "absolute", visibility: "hidden", display: "block" }, Kt = { letterSpacing: "0", fontWeight: "400" }, Jt = ["Webkit", "Moz", "ms"], Yt = s.createElement("div").style; function Zt(t) { var e = E.cssProps[t]; return e || (e = E.cssProps[t] = function (t) { if (t in Yt) return t; for (var e = t[0].toUpperCase() + t.slice(1), n = Jt.length; n--;)if ((t = Jt[n] + e) in Yt) return t; }(t) || t), e; } function te(t, e, n) { var i = ot.exec(e); return i ? Math.max(0, i[2] - (n || 0)) + (i[3] || "px") : e; } function ee(t, e, n, i, r, o) { var s = "width" === e ? 1 : 0, a = 0, l = 0; if (n === (i ? "border" : "content")) return 0; for (; s < 4; s += 2)"margin" === n && (l += E.css(t, n + st[s], !0, r)), i ? ("content" === n && (l -= E.css(t, "padding" + st[s], !0, r)), "margin" !== n && (l -= E.css(t, "border" + st[s] + "Width", !0, r))) : (l += E.css(t, "padding" + st[s], !0, r), "padding" !== n ? l += E.css(t, "border" + st[s] + "Width", !0, r) : a += E.css(t, "border" + st[s] + "Width", !0, r)); return !i && o >= 0 && (l += Math.max(0, Math.ceil(t["offset" + e[0].toUpperCase() + e.slice(1)] - o - l - a - .5))), l; } function ne(t, e, n) { var i = qt(t), r = Wt(t, e, i), o = "border-box" === E.css(t, "boxSizing", !1, i), s = o; if (Ht.test(r)) { if (!n) return r; r = "auto"; } return s = s && (m.boxSizingReliable() || r === t.style[e]), ("auto" === r || !parseFloat(r) && "inline" === E.css(t, "display", !1, i)) && (r = t["offset" + e[0].toUpperCase() + e.slice(1)], s = !0), (r = parseFloat(r) || 0) + ee(t, e, n || (o ? "border" : "content"), s, i, r) + "px"; } function ie(t, e, n, i, r) { return new ie.prototype.init(t, e, n, i, r); } E.extend({ cssHooks: { opacity: { get: function (t, e) { if (e) { var n = Wt(t, "opacity"); return "" === n ? "1" : n; } } } }, cssNumber: { animationIterationCount: !0, columnCount: !0, fillOpacity: !0, flexGrow: !0, flexShrink: !0, fontWeight: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, widows: !0, zIndex: !0, zoom: !0 }, cssProps: {}, style: function (t, e, n, i) { if (t && 3 !== t.nodeType && 8 !== t.nodeType && t.style) { var r, o, s, a = K(e), l = Qt.test(e), c = t.style; if (l || (e = Zt(a)), s = E.cssHooks[e] || E.cssHooks[a], void 0 === n) return s && "get" in s && void 0 !== (r = s.get(t, !1, i)) ? r : c[e]; "string" === (o = typeof n) && (r = ot.exec(n)) && r[1] && (n = ct(t, e, r), o = "number"), null != n && n == n && ("number" === o && (n += r && r[3] || (E.cssNumber[a] ? "" : "px")), m.clearCloneStyle || "" !== n || 0 !== e.indexOf("background") || (c[e] = "inherit"), s && "set" in s && void 0 === (n = s.set(t, n, i)) || (l ? c.setProperty(e, n) : c[e] = n)); } }, css: function (t, e, n, i) { var r, o, s, a = K(e); return Qt.test(e) || (e = Zt(a)), (s = E.cssHooks[e] || E.cssHooks[a]) && "get" in s && (r = s.get(t, !0, n)), void 0 === r && (r = Wt(t, e, i)), "normal" === r && e in Kt && (r = Kt[e]), "" === n || n ? (o = parseFloat(r), !0 === n || isFinite(o) ? o || 0 : r) : r; } }), E.each(["height", "width"], (function (t, e) { E.cssHooks[e] = { get: function (t, n, i) { if (n) return !Xt.test(E.css(t, "dis
28play")) || t.getClientRects().length && t.getBoundingClientRect().width ? ne(t, e, i) : lt(t, Gt, (function () { return ne(t, e, i); })); }, set: function (t, n, i) { var r, o = qt(t), s = "border-box" === E.css(t, "boxSizing", !1, o), a = i && ee(t, e, i, s, o); return s && m.scrollboxSize() === o.position && (a -= Math.ceil(t["offset" + e[0].toUpperCase() + e.slice(1)] - parseFloat(o[e]) - ee(t, e, "border", !1, o) - .5)), a && (r = ot.exec(n)) && "px" !== (r[3] || "px") && (t.style[e] = n, n = E.css(t, e)), te(0, n, a); } }; })), E.cssHooks.marginLeft = zt(m.reliableMarginLeft, (function (t, e) { if (e) return (parseFloat(Wt(t, "marginLeft")) || t.getBoundingClientRect().left - lt(t, { marginLeft: 0 }, (function () { return t.getBoundingClientRect().left; }))) + "px"; })), E.each({ margin: "", padding: "", border: "Width" }, (function (t, e) { E.cssHooks[t + e] = { expand: function (n) { for (var i = 0, r = {}, o = "string" == typeof n ? n.split(" ") : [n]; i < 4; i++)r[t + st[i] + e] = o[i] || o[i - 2] || o[0]; return r; } }, "margin" !== t && (E.cssHooks[t + e].set = te); })), E.fn.extend({ css: function (t, e) { return z(this, (function (t, e, n) { var i, r, o = {}, s = 0; if (Array.isArray(e)) { for (i = qt(t), r = e.length; s < r; s++)o[e[s]] = E.css(t, e[s], !1, i); return o; } return void 0 !== n ? E.style(t, e, n) : E.css(t, e); }), t, e, arguments.length > 1); } }), E.Tween = ie, ie.prototype = { constructor: ie, init: function (t, e, n, i, r, o) { this.elem = t, this.prop = n, this.easing = r || E.easing._default, this.options = e, this.start = this.now = this.cur(), this.end = i, this.unit = o || (E.cssNumber[n] ? "" : "px"); }, cur: function () { var t = ie.propHooks[this.prop]; return t && t.get ? t.get(this) : ie.propHooks._default.get(this); }, run: function (t) { var e, n = ie.propHooks[this.prop]; return this.options.duration ? this.pos = e = E.easing[this.easing](t, this.options.duration * t, 0, 1, this.options.duration) : this.pos = e = t, this.now = (this.end - this.start) * e + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : ie.propHooks._default.set(this), this; } }, ie.prototype.init.prototype = ie.prototype, ie.propHooks = { _default: { get: function (t) { var e; return 1 !== t.elem.nodeType || null != t.elem[t.prop] && null == t.elem.style[t.prop] ? t.elem[t.prop] : (e = E.css(t.elem, t.prop, "")) && "auto" !== e ? e : 0; }, set: function (t) { E.fx.step[t.prop] ? E.fx.step[t.prop](t) : 1 !== t.elem.nodeType || null == t.elem.style[E.cssProps[t.prop]] && !E.cssHooks[t.prop] ? t.elem[t.prop] = t.now : E.style(t.elem, t.prop, t.now + t.unit); } } }, ie.propHooks.scrollTop = ie.propHooks.scrollLeft = { set: function (t) { t.elem.nodeType && t.elem.parentNode && (t.elem[t.prop] = t.now); } }, E.easing = { linear: function (t) { return t; }, swing: function (t) { return .5 - Math.cos(t * Math.PI) / 2; }, _default: "swing" }, E.fx = ie.prototype.init, E.fx.step = {}; var re, oe, se = /^(?:toggle|show|hide)$/, ae = /queueHooks$/; function le() { oe && (!1 === s.hidden && n.requestAnimationFrame ? n.requestAnimationFrame(le) : n.setTimeout(le, E.fx.interval), E.fx.tick()); } function ce() { return n.setTimeout((function () { re = void 0; })), re = Date.now(); } function ue(t, e) { var n, i = 0, r = { height: t }; for (e = e ? 1 : 0; i < 4; i += 2 - e)r["margin" + (n = st[i])] = r["padding" + n] = t; return e && (r.opacity = r.width = t), r; } function he(t, e, n) { for (var i, r = (fe.tweeners[e] || []).concat(fe.tweeners["*"]), o = 0, s = r.length; o < s; o++)if (i = r[o].call(n, e, t)) return i; } function fe(t, e, n) { var i, r, o = 0, s = fe.prefilters.length, a = E.Deferred().always((function () { delete l.elem; })), l = function () { if (r) return !1; for (var e = re || ce(), n = Math.max(0, c.startTime + c.duration - e), i = 1 - (n / c.duration || 0), o = 0, s = c.tweens.length; o < s; o++)c.tweens[o].run(i); return a.notifyWith(t, [c, i, n]), i < 1 && s ? n : (s || a.notifyWith(t, [c, 1, 0]), a.resolveWith(t, [c]), !1); }, c = a.promise({ elem: t, props: E.extend({}, e), opts: E.extend(!0, { specialEasing: {}, easing: E.easing._default }, n), originalProperties: e, originalOptions: n, startTime: re || ce(), duration: n.duration, tweens: [], createTween: function (e, n) { var i = E.Tween(t, c.opts, e, n, c.opts.specialEasing[e] || c.opts.easing); return c.tweens.push(i), i; }, stop: function (e) { var n = 0, i = e ? c.tweens.length : 0; if (r) return this; for (r = !0; n < i; n++)c.tweens[n].run(1); return e ? (a.notifyWith(t, [c, 1, 0]), a.resolveWith(t, [c, e])) : a.rejectWith(t, [c, e]), this; } }), u = c.props; for (!function (t, e) { var n, i, r, o, s; for (n in t) if (r = e[i = K(n)], o = t[n], Array.isArray(o) && (r = o[1], o = t[n] = o[0]), n !== i && (t[i] = o, delete t[n]), (s = E.cssHooks[i]) && "expand" in s) for (n in o = s.expand(o), delete t[i], o) n in t || (t[n] = o[n], e[n] = r); else e[i] = r; }(u, c.opts.specialEasing); o < s; o++)if (i = fe.prefilters[o].call(c, t, u, c.opts)) return y(i.stop) && (E._queueHooks(c.elem, c.opts.queue).stop = i.stop.bind(i)), i; return E.map(u, he, c), y(c.opts.start) && c.opts.start.call(t, c), c.progress(c.opts.progress).done(c.opts.done, c.opts.complete).fail(c.opts.fail).always(c.opts.always), E.fx.timer(E.extend(l, { elem: t, anim: c, queue: c.opts.queue })), c; } E.Animation = E.extend(fe, { tweeners: { "*": [function (t, e) { var n = this.createTween(t, e); return ct(n.elem, t, ot.exec(e), n), n; }] }, tweener: function (t, e) { y(t) ? (e = t, t = ["*"]) : t = t.match(M); for (var n, i = 0, r = t.length; i < r; i++)n = t[i], fe.tweeners[n] = fe.tweeners[n] || [], fe.tweeners[n].unshift(e); }, prefilters: [function (t, e, n) { var i, r, o, s, a, l, c, u, h = "width" in e || "height" in e, f = this, d = {}, p = t.style, v = t.nodeType && at(t), g = Z.get(t, "fxshow"); for (i in n.queue || (null == (s = E._queueHooks(t, "fx")).unqueued && (s.unqueued = 0, a = s.empty.fire, s.empty.fire = function () { s.unqueued || a(); }), s.unqueued++, f.always((function () { f.always((function () { s.unqueued--, E.queue(t, "fx").length || s.empty.fire(); })); }))), e) if (r = e[i], se.test(r)) { if (delete e[i], o = o || "toggle" === r, r === (v ? "hide" : "show")) { if ("show" !== r || !g || void 0 === g[i]) continue; v = !0; } d[i] = g && g[i] || E.style(t, i); } if ((l = !E.isEmptyObject(e)) || !E.isEmptyObject(d)) for (i in h && 1 === t.nodeType && (n.overflow = [p.overflow, p.overflowX, p.overflowY], null == (c = g && g.display) && (c = Z.get(t, "display")), "none" === (u = E.css(t, "dis
28play")) && (c ? u = c : (ft([t], !0), c = t.style.display || c, u = E.css(t, "display"), ft([t]))), ("inline" === u || "inline-block" === u && null != c) && "none" === E.css(t, "float") && (l || (f.done((function () { p.display = c; })), null == c && (u = p.display, c = "none" === u ? "" : u)), p.display = "inline-block")), n.overflow && (p.overflow = "hidden", f.always((function () { p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2]; }))), l = !1, d) l || (g ? "hidden" in g && (v = g.hidden) : g = Z.access(t, "fxshow", { display: c }), o && (g.hidden = !v), v && ft([t], !0), f.done((function () { for (i in v || ft([t]), Z.remove(t, "fxshow"), d) E.style(t, i, d[i]); }))), l = he(v ? g[i] : 0, i, f), i in g || (g[i] = l.start, v && (l.end = l.start, l.start = 0)); }], prefilter: function (t, e) { e ? fe.prefilters.unshift(t) : fe.prefilters.push(t); } }), E.speed = function (t, e, n) { var i = t && "object" == typeof t ? E.extend({}, t) : { complete: n || !n && e || y(t) && t, duration: t, easing: n && e || e && !y(e) && e }; return E.fx.off ? i.duration = 0 : "number" != typeof i.duration && (i.duration in E.fx.speeds ? i.duration = E.fx.speeds[i.duration] : i.duration = E.fx.speeds._default), null != i.queue && !0 !== i.queue || (i.queue = "fx"), i.old = i.complete, i.complete = function () { y(i.old) && i.old.call(this), i.queue && E.dequeue(this, i.queue); }, i; }, E.fn.extend({ fadeTo: function (t, e, n, i) { return this.filter(at).css("opacity", 0).show().end().animate({ opacity: e }, t, n, i); }, animate: function (t, e, n, i) { var r = E.isEmptyObject(t), o = E.speed(e, n, i), s = function () { var e = fe(this, E.extend({}, t), o); (r || Z.get(this, "finish")) && e.stop(!0); }; return s.finish = s, r || !1 === o.queue ? this.each(s) : this.queue(o.queue, s); }, stop: function (t, e, n) { var i = function (t) { var e = t.stop; delete t.stop, e(n); }; return "string" != typeof t && (n = e, e = t, t = void 0), e && !1 !== t && this.queue(t || "fx", []), this.each((function () { var e = !0, r = null != t && t + "queueHooks", o = E.timers, s = Z.get(this); if (r) s[r] && s[r].stop && i(s[r]); else for (r in s) s[r] && s[r].stop && ae.test(r) && i(s[r]); for (r = o.length; r--;)o[r].elem !== this || null != t && o[r].queue !== t || (o[r].anim.stop(n), e = !1, o.splice(r, 1)); !e && n || E.dequeue(this, t); })); }, finish: function (t) { return !1 !== t && (t = t || "fx"), this.each((function () { var e, n = Z.get(this), i = n[t + "queue"], r = n[t + "queueHooks"], o = E.timers, s = i ? i.length : 0; for (n.finish = !0, E.queue(this, t, []), r && r.stop && r.stop.call(this, !0), e = o.length; e--;)o[e].elem === this && o[e].queue === t && (o[e].anim.stop(!0), o.splice(e, 1)); for (e = 0; e < s; e++)i[e] && i[e].finish && i[e].finish.call(this); delete n.finish; })); } }), E.each(["toggle", "show", "hide"], (function (t, e) { var n = E.fn[e]; E.fn[e] = function (t, i, r) { return null == t || "boolean" == typeof t ? n.apply(this, arguments) : this.animate(ue(e, !0), t, i, r); }; })), E.each({ slideDown: ue("show"), slideUp: ue("hide"), slideToggle: ue("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, (function (t, e) { E.fn[t] = function (t, n, i) { return this.animate(e, t, n, i); }; })), E.timers = [], E.fx.tick = function () { var t, e = 0, n = E.timers; for (re = Date.now(); e < n.length; e++)(t = n[e])() || n[e] !== t || n.splice(e--, 1); n.length || E.fx.stop(), re = void 0; }, E.fx.timer = function (t) { E.timers.push(t), E.fx.start(); }, E.fx.interval = 13, E.fx.start = function () { oe || (oe = !0, le()); }, E.fx.stop = function () { oe = null; }, E.fx.speeds = { slow: 600, fast: 200, _default: 400 }, E.fn.delay = function (t, e) { return t = E.fx && E.fx.speeds[t] || t, e = e || "fx", this.queue(e, (function (e, i) { var r = n.setTimeout(e, t); i.stop = function () { n.clearTimeout(r); }; })); }, function () { var t = s.createElement("input"), e = s.createElement("select").appendChild(s.createElement("option")); t.type = "checkbox", m.checkOn = "" !== t.value, m.optSelected = e.selected, (t = s.createElement("input")).value = "t", t.type = "radio", m.radioValue = "t" === t.value; }(); var de, pe = E.expr.attrHandle; E.fn.extend({ attr: function (t, e) { return z(this, E.attr, t, e, arguments.length > 1); }, removeAttr: function (t) { return this.each((function () { E.removeAttr(this, t); })); } }), E.extend({ attr: function (t, e, n) { var i, r, o = t.nodeType; if (3 !== o && 8 !== o && 2 !== o) return void 0 === t.getAttribute ? E.prop(t, e, n) : (1 === o && E.isXMLDoc(t) || (r = E.attrHooks[e.toLowerCase()] || (E.expr.match.bool.test(e) ? de : void 0)), void 0 !== n ? null === n ? void E.removeAttr(t, e) : r && "set" in r && void 0 !== (i = r.set(t, n, e)) ? i : (t.setAttribute(e, n + ""), n) : r && "get" in r && null !== (i = r.get(t, e)) ? i : null == (i = E.find.attr(t, e)) ? void 0 : i); }, attrHooks: { type: { set: function (t, e) { if (!m.radioValue && "radio" === e && R(t, "input")) { var n = t.value; return t.setAttribute("type", e), n && (t.value = n), e; } } } }, removeAttr: function (t, e) { var n, i = 0, r = e && e.match(M); if (r && 1 === t.nodeType) for (; n = r[i++];)t.removeAttribute(n); } }), de = { set: function (t, e, n) { return !1 === e ? E.removeAttr(t, n) : t.setAttribute(n, n), n; } }, E.each(E.expr.match.bool.source.match(/\w+/g), (function (t, e) { var n = pe[e] || E.find.attr; pe[e] = function (t, e, i) { var r, o, s = e.toLowerCase(); return i || (o = pe[s], pe[s] = r, r = null != n(t, e, i) ? s : null, pe[s] = o), r; }; })); var ve = /^(?:input|select|textarea|button)$/i, ge = /^(?:a|area)$/i; function me(t) { return (t.match(M) || []).join(" "); } function ye(t) { return t.getAttribute && t.getAttribute("class") || ""; } function _e(t) { return Array.isArray(t) ? t : "string" == typeof t && t.match(M) || []; } E.fn.extend({ prop: function (t, e) { return z(this, E.prop, t, e, arguments.length > 1); }, removeProp: function (t) { return this.each((function () { delete this[E.propFix[t] || t]; })); } }), E.extend({ prop: function (t, e, n) { var i, r, o = t.nodeType; if (3 !== o && 8 !== o && 2 !== o) return 1 === o && E.isXMLDoc(t) || (e = E.propFix[e] || e, r = E.propHooks[e]), void 0 !== n ? r && "set" in r && void 0 !== (i = r.set(t, n, e)) ? i : t[e] = n : r && "get" in r && null !== (i = r.get(t, e)) ? i : t[e]; }, propHooks: { tabIndex: { get: function (t) { var e = E.find.attr(t, "tabindex");
28 return e ? parseInt(e, 10) : ve.test(t.nodeName) || ge.test(t.nodeName) && t.href ? 0 : -1; } } }, propFix: { for: "htmlFor", class: "className" } }), m.optSelected || (E.propHooks.selected = { get: function (t) { var e = t.parentNode; return e && e.parentNode && e.parentNode.selectedIndex, null; }, set: function (t) { var e = t.parentNode; e && (e.selectedIndex, e.parentNode && e.parentNode.selectedIndex); } }), E.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], (function () { E.propFix[this.toLowerCase()] = this; })), E.fn.extend({ addClass: function (t) { var e, n, i, r, o, s, a, l = 0; if (y(t)) return this.each((function (e) { E(this).addClass(t.call(this, e, ye(this))); })); if ((e = _e(t)).length) for (; n = this[l++];)if (r = ye(n), i = 1 === n.nodeType && " " + me(r) + " ") { for (s = 0; o = e[s++];)i.indexOf(" " + o + " ") < 0 && (i += o + " "); r !== (a = me(i)) && n.setAttribute("class", a); } return this; }, removeClass: function (t) { var e, n, i, r, o, s, a, l = 0; if (y(t)) return this.each((function (e) { E(this).removeClass(t.call(this, e, ye(this))); })); if (!arguments.length) return this.attr("class", ""); if ((e = _e(t)).length) for (; n = this[l++];)if (r = ye(n), i = 1 === n.nodeType && " " + me(r) + " ") { for (s = 0; o = e[s++];)for (; i.indexOf(" " + o + " ") > -1;)i = i.replace(" " + o + " ", " "); r !== (a = me(i)) && n.setAttribute("class", a); } return this; }, toggleClass: function (t, e) { var n = typeof t, i = "string" === n || Array.isArray(t); return "boolean" == typeof e && i ? e ? this.addClass(t) : this.removeClass(t) : y(t) ? this.each((function (n) { E(this).toggleClass(t.call(this, n, ye(this), e), e); })) : this.each((function () { var e, r, o, s; if (i) for (r = 0, o = E(this), s = _e(t); e = s[r++];)o.hasClass(e) ? o.removeClass(e) : o.addClass(e); else void 0 !== t && "boolean" !== n || ((e = ye(this)) && Z.set(this, "__className__", e), this.setAttribute && this.setAttribute("class", e || !1 === t ? "" : Z.get(this, "__className__") || "")); })); }, hasClass: function (t) { var e, n, i = 0; for (e = " " + t + " "; n = this[i++];)if (1 === n.nodeType && (" " + me(ye(n)) + " ").indexOf(e) > -1) return !0; return !1; } }); var be = /\r/g; E.fn.extend({ val: function (t) { var e, n, i, r = this[0]; return arguments.length ? (i = y(t), this.each((function (n) { var r; 1 === this.nodeType && (null == (r = i ? t.call(this, n, E(this).val()) : t) ? r = "" : "number" == typeof r ? r += "" : Array.isArray(r) && (r = E.map(r, (function (t) { return null == t ? "" : t + ""; }))), (e = E.valHooks[this.type] || E.valHooks[this.nodeName.toLowerCase()]) && "set" in e && void 0 !== e.set(this, r, "value") || (this.value = r)); }))) : r ? (e = E.valHooks[r.type] || E.valHooks[r.nodeName.toLowerCase()]) && "get" in e && void 0 !== (n = e.get(r, "value")) ? n : "string" == typeof (n = r.value) ? n.replace(be, "") : null == n ? "" : n : void 0; } }), E.extend({ valHooks: { option: { get: function (t) { var e = E.find.attr(t, "value"); return null != e ? e : me(E.text(t)); } }, select: { get: function (t) { var e, n, i, r = t.options, o = t.selectedIndex, s = "select-one" === t.type, a = s ? null : [], l = s ? o + 1 : r.length; for (i = o < 0 ? l : s ? o : 0; i < l; i++)if (((n = r[i]).selected || i === o) && !n.disabled && (!n.parentNode.disabled || !R(n.parentNode, "optgroup"))) { if (e = E(n).val(), s) return e; a.push(e); } return a; }, set: function (t, e) { for (var n, i, r = t.options, o = E.makeArray(e), s = r.length; s--;)((i = r[s]).selected = E.inArray(E.valHooks.option.get(i), o) > -1) && (n = !0); return n || (t.selectedIndex = -1), o; } } } }), E.each(["radio", "checkbox"], (function () { E.valHooks[this] = { set: function (t, e) { if (Array.isArray(e)) return t.checked = E.inArray(E(t).val(), e) > -1; } }, m.checkOn || (E.valHooks[this].get = function (t) { return null === t.getAttribute("value") ? "on" : t.value; }); })), m.focusin = "onfocusin" in n; var we = /^(?:focusinfocus|focusoutblur)$/, xe = function (t) { t.stopPropagation(); }; E.extend(E.event, { trigger: function (t, e, i, r) { var o, a, l, c, u, h, f, d, v = [i || s], g = p.call(t, "type") ? t.type : t, m = p.call(t, "namespace") ? t.namespace.split(".") : []; if (a = d = l = i = i || s, 3 !== i.nodeType && 8 !== i.nodeType && !we.test(g + E.event.triggered) && (g.indexOf(".") >
28 -1 && (m = g.split("."), g = m.shift(), m.sort()), u = g.indexOf(":") < 0 && "on" + g, (t = t[E.expando] ? t : new E.Event(g, "object" == typeof t && t)).isTrigger = r ? 2 : 3, t.namespace = m.join("."), t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + m.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = i), e = null == e ? [t] : E.makeArray(e, [t]), f = E.event.special[g] || {}, r || !f.trigger || !1 !== f.trigger.apply(i, e))) { if (!r && !f.noBubble && !_(i)) { for (c = f.delegateType || g, we.test(c + g) || (a = a.parentNode); a; a = a.parentNode)v.push(a), l = a; l === (i.ownerDocument || s) && v.push(l.defaultView || l.parentWindow || n); } for (o = 0; (a = v[o++]) && !t.isPropagationStopped();)d = a, t.type = o > 1 ? c : f.bindType || g, (h = (Z.get(a, "events") || {})[t.type] && Z.get(a, "handle")) && h.apply(a, e), (h = u && a[u]) && h.apply && J(a) && (t.result = h.apply(a, e), !1 === t.result && t.preventDefault()); return t.type = g, r || t.isDefaultPrevented() || f._default && !1 !== f._default.apply(v.pop(), e) || !J(i) || u && y(i[g]) && !_(i) && ((l = i[u]) && (i[u] = null), E.event.triggered = g, t.isPropagationStopped() && d.addEventListener(g, xe), i[g](), t.isPropagationStopped() && d.removeEventListener(g, xe), E.event.triggered = void 0, l && (i[u] = l)), t.result; } }, simulate: function (t, e, n) { var i = E.extend(new E.Event, n, { type: t, isSimulated: !0 }); E.event.trigger(i, null, e); } }), E.fn.extend({ trigger: function (t, e) { return this.each((function () { E.event.trigger(t, e, this); })); }, triggerHandler: function (t, e) { var n = this[0]; if (n) return E.event.trigger(t, e, n, !0); } }), m.focusin || E.each({ focus: "focusin", blur: "focusout" }, (function (t, e) { var n = function (t) { E.event.simulate(e, t.target, E.event.fix(t)); }; E.event.special[e] = { setup: function () { var i = this.ownerDocument || this, r = Z.access(i, e); r || i.addEventListener(t, n, !0), Z.access(i, e, (r || 0) + 1); }, teardown: function () { var i = this.ownerDocument || this, r = Z.access(i, e) - 1; r ? Z.access(i, e, r) : (i.removeEventListener(t, n, !0), Z.remove(i, e)); } }; })); var Ce = n.location, Ee = Date.now(), Te = /\?/; E.parseXML = function (t) { var e; if (!t || "string" != typeof t) return null; try { e = (new n.DOMParser).parseFromString(t, "text/xml"); } catch (t) { e = void 0; } return e && !e.getElementsByTagName("parsererror").length || E.error("Invalid XML: " + t), e; }; var ke = /\[\]$/, Se = /\r?\n/g, je = /^(?:submit|button|image|reset|file)$/i, Ae = /^(?:input|select|textarea|keygen)/i; function Oe(t, e, n, i) { var r; if (Array.isArray(e)) E.each(e, (function (e, r) { n || ke.test(t) ? i(t, r) : Oe(t + "[" + ("object" == typeof r && null != r ? e : "") + "]", r, n, i); })); else if (n || "object" !== x(e)) i(t, e); else for (r in e) Oe(t + "[" + r + "]", e[r], n, i); } E.param = function (t, e) { var n, i = [], r = function (t, e) { var n = y(e) ? e() : e; i[i.length] = encodeURIComponent(t) + "=" + encodeURIComponent(null == n ? "" : n); }; if (Array.isArray(t) || t.jquery && !E.isPlainObject(t)) E.each(t, (function () { r(this.name, this.value); })); else for (n in t) Oe(n, t[n], e, r); return i.join("&"); }, E.fn.extend({ serialize: function () { return E.param(this.serializeArray()); }, serializeArray: function () { return this.map((function () { var t = E.prop(this, "elements"); return t ? E.makeArray(t) : this; })).filter((function () { var t = this.type; return this.name && !E(this).is(":disabled") && Ae.test(this.nodeName) && !je.test(t) && (this.checked || !dt.test(t)); })).map((function (t, e) { var n = E(this).val(); return null == n ? null : Array.isArray(n) ? E.map(n, (function (t) { return { name: e.name, value: t.replace(Se, "\r\n") }; })) : { name: e.name, value: n.replace(Se, "\r\n") }; })).get(); } }); var Re = /%20/g, De = /#.*$/, Ve = /([?&])_=[^&]*/, $e = /^(.*?):[ \t]*([^\r\n]*)$/gm, Fe = /^(?:GET|HEAD)$/, Ie = /^\/\//, Pe = {}, Ne = {}, Me = "*/".concat("*"), Be = s.createElement("a"); function Le(t) { return function (e, n) { "string" != typeof e && (n = e, e = "*"); var i, r = 0, o = e.toLowerCase().match(M) || []; if (y(n)) for (; i = o[r++];)"+" === i[0] ? (i = i.slice(1) || "*", (t[i] = t[i] || []).unshift(n)) : (t[i] = t[i] || []).push(n); }; } function He(t, e, n, i) { var r = {}, o = t === Ne; function s(a) { var l;
vendor: 5,547 bytes, line 28
28 return r[a] = !0, E.each(t[a] || [], (function (t, a) { var c = a(e, n, i); return "string" != typeof c || o || r[c] ? o ? !(l = c) : void 0 : (e.dataTypes.unshift(c), s(c), !1); })), l; } return s(e.dataTypes[0]) || !r["*"] && s("*"); } function qe(t, e) { var n, i, r = E.ajaxSettings.flatOptions || {}; for (n in e) void 0 !== e[n] && ((r[n] ? t : i || (i = {}))[n] = e[n]); return i && E.extend(!0, t, i), t; } Be.href = Ce.href, E.extend({ active: 0, lastModified: {}, etag: {}, ajaxSettings: { url: Ce.href, type: "GET", isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ce.protocol), global: !0, processData: !0, async: !0, contentType: "application/x-www-form-urlencoded; charset=UTF-8", accepts: { "*": Me, 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": E.parseXML }, flatOptions: { url: !0, context: !0 } }, ajaxSetup: function (t, e) { return e ? qe(qe(t, E.ajaxSettings), e) : qe(E.ajaxSettings, t); }, ajaxPrefilter: Le(Pe), ajaxTransport: Le(Ne), ajax: function (t, e) { "object" == typeof t && (e = t, t = void 0), e = e || {}; var i, r, o, a, l, c, u, h, f, d, p = E.ajaxSetup({}, e), v = p.context || p, g = p.context && (v.nodeType || v.jquery) ? E(v) : E.event, m = E.Deferred(), y = E.Callbacks("once memory"), _ = p.statusCode || {}, b = {}, w = {}, x = "canceled", C = { readyState: 0, getResponseHeader: function (t) { var e; if (u) { if (!a) for (a = {}; e = $e.exec(o);)a[e[1].toLowerCase()] = e[2]; e = a[t.toLowerCase()]; } return null == e ? null : e; }, getAllResponseHeaders: function () { return u ? o : null; }, setRequestHeader: function (t, e) { return null == u && (t = w[t.toLowerCase()] = w[t.toLowerCase()] || t, b[t] = e), this; }, overrideMimeType: function (t) { return null == u && (p.mimeType = t), this; }, statusCode: function (t) { var e; if (t) if (u) C.always(t[C.status]); else for (e in t) _[e] = [_[e], t[e]]; return this; }, abort: function (t) { var e = t || x; return i && i.abort(e), T(0, e), this; } }; if (m.promise(C), p.url = ((t || p.url || Ce.href) + "").replace(Ie, Ce.protocol + "//"), p.type = e.method || e.type || p.method || p.type, p.dataTypes = (p.dataType || "*").toLowerCase().match(M) || [""], null == p.crossDomain) { c = s.createElement("a"); try { c.href = p.url, c.href = c.href, p.crossDomain = Be.protocol + "//" + Be.host != c.protocol + "//" + c.host; } catch (t) { p.crossDomain = !0; } } if (p.data && p.processData && "string" != typeof p.data && (p.data = E.param(p.data, p.traditional)), He(Pe, p, e, C), u) return C; for (f in (h = E.event && p.global) && 0 == E.active++ && E.event.trigger("ajaxStart"), p.type = p.type.toUpperCase(), p.hasContent = !Fe.test(p.type), r = p.url.replace(De, ""), p.hasContent ? p.data && p.processData && 0 === (p.contentType || "").indexOf("application/x-www-form-urlencoded") && (p.data = p.data.replace(Re, "+")) : (d = p.url.slice(r.length), p.data && (p.processData || "string" == typeof p.data) && (r += (Te.test(r) ? "&" : "?") + p.data, delete p.data), !1 === p.cache && (r = r.replace(Ve, "$1"), d = (Te.test(r) ? "&" : "?") + "_=" + Ee++ + d), p.url = r + d), p.ifModified && (E.lastModified[r] && C.setRequestHeader("If-Modified-Since", E.lastModified[r]), E.etag[r] && C.setRequestHeader("If-None-Match", E.etag[r])), (p.data && p.hasContent && !1 !== p.contentType || e.contentType) && C.setRequestHeader("Content-Type", p.contentType), C.setRequestHeader("Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + Me + "; q=0.01" : "") : p.accepts["*"]), p.headers) C.setRequestHeader(f, p.headers[f]); if (p.beforeSend && (!1 === p.beforeSend.call(v, C, p) || u)) return C.abort(); if (x = "abort", y.add(p.complete), C.done(p.success), C.fail(p.error), i = He(Ne, p, e, C)) { if (C.readyState = 1, h && g.trigger("ajaxSend", [C, p]), u) return C; p.async && p.timeout > 0 && (l = n.setTimeout((function () { C.abort("timeout"); }), p.timeout)); try { u = !1, i.send(b, T); } catch (t) { if (u) throw t; T(-1, t); } } else T(-1, "No Transport"); function T(t, e, s, a) { var c, f, d, b, w, x = e; u || (u = !0, l && n.clearTimeout(l), i = void 0, o = a || "", C.readyState = t > 0 ? 4 : 0, c = t >= 200 && t < 300 || 304 === t, s && (b = function (t, e, n) { for (var i, r, o, s, a = t.contents, l = t.dataTypes; "*" === l[0];)l.shift(), void 0 === i && (i = t.mimeType || e.getResponseHeader("Content-Type")); if (i) for (r in a) if (a[r] && a[r].test(i)) { l.unshift(r); break; } if (l[0] in n) o = l[0]; else { for (r in n) { if (!l[0] || t.converters[r + " " + l[0]]) { o = r; break; } s || (s = r); } o = o || s; } if (o) return o !== l[0] && l.unshift(o), n[o]; }(p, C, s)), b = function (t, e, n, i) { var r, o, s, a, l, c = {}, u = t.dataTypes.slice(); if (u[1]) for (s in t.converters) c[s.toLowerCase()] = t.converters[s]; for (o = u.shift(); o;)if (t.responseFields[o] && (n[t.responseFields[o]] = e), !l && i && t.dataFilter && (e = t.dataFilter(e, t.dataType)), l = o, o = u.shift()) if ("*" === o) o = l; else if ("*" !== l && l !== o) { if (!(s = c[l + " " + o] || c["* " + o])) for (r in c) if ((a = r.split(" "))[1] === o && (s = c[l + " " + a[0]] || c["* " + a[0]])) { !0 === s ? s = c[r] : !0 !== c[r] && (
28o = a[0], u.unshift(a[1])); break; } if (!0 !== s) if (s && t.throws) e = s(e); else try { e = s(e); } catch (t) { return { state: "parsererror", error: s ? t : "No conversion from " + l + " to " + o }; } } return { state: "success", data: e }; }(p, b, C, c), c ? (p.ifModified && ((w = C.getResponseHeader("Last-Modified")) && (E.lastModified[r] = w), (w = C.getResponseHeader("etag")) && (E.etag[r] = w)), 204 === t || "HEAD" === p.type ? x = "nocontent" : 304 === t ? x = "notmodified" : (x = b.state, f = b.data, c = !(d = b.error))) : (d = x, !t && x || (x = "error", t < 0 && (t = 0))), C.status = t, C.statusText = (e || x) + "", c ? m.resolveWith(v, [f, x, C]) : m.rejectWith(v, [C, x, d]), C.statusCode(_), _ = void 0, h && g.trigger(c ? "ajaxSuccess" : "ajaxError", [C, p, c ? f : d]), y.fireWith(v, [C, x]), h && (g.trigger("ajaxComplete", [C, p]), --E.active || E.event.trigger("ajaxStop"))); } return C; }, getJSON: function (t, e, n) { return E.get(t, e, n, "json"); }, getScript: function (t, e) { return E.get(t, void 0, e, "script"); } }), E.each(["get", "post"], (function (t, e) { E[e] = function (t, n, i, r) { return y(n) && (r = r || i, i = n, n = void 0), E.ajax(E.extend({ url: t, type: e, dataType: r, data: n, success: i }, E.isPlainObject(t) && t)); }; })), E._evalUrl = function (t) { return E.ajax({ url: t, type: "GET", dataType: "script", cache: !0, async: !1, global: !1, throws: !0 }); }, E.fn.extend({ wrapAll: function (t) { var e; return this[0] && (y(t) && (t = t.call(this[0])), e = E(t, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && e.insertBefore(this[0]), e.map((function () { for (var t = this; t.firstElementChild;)t = t.firstElementChild; return t; })).append(this)), this; }, wrapInner: function (t) { return y(t) ? this.each((function (e) { E(this).wrapInner(t.call(this, e)); })) : this.each((function () { var e = E(this), n = e.contents(); n.length ? n.wrapAll(t) : e.append(t); })); }, wrap: function (t) { var e = y(t); return this.each((function (n) { E(this).wrapAll(e ? t.call(this, n) : t); })); }, unwrap: function (t) { return this.parent(t).not("body").each((function () { E(this).replaceWith(this.childNodes); })), this; } }), E.expr.pseudos.hidden = function (t) { return !E.expr.pseudos.visible(t); }, E.expr.pseudos.visible = function (t) { return !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length); }, E.ajaxSettings.xhr = function () { try { return new n.XMLHttpRequest; } catch (t) { } }; var Ue = { 0: 200, 1223: 204 }, We = E.ajaxSettings.xhr(); m.cors = !!We && "withCredentials" in We, m.ajax = We = !!We, E.ajaxTransport((function (t) { var e, i; if (m.cors || We && !t.crossDomain) return { send: function (r, o) { var s, a = t.xhr(); if (a.open(t.type, t.url, t.async, t.username, t.password), t.xhrFields) for (s in t.xhrFields) a[s] = t.xhrFields[s]; for (s in t.mimeType && a.overrideMimeType && a.overrideMimeType(t.mimeType), t.crossDomain || r["X-Requested-With"] || (r["X-Requested-With"] = "XMLHttpRequest"), r) a.setRequestHeader(s, r[s]); e = function (t) { return function () { e && (e = i = a.onload = a.onerror = a.onabort = a.ontimeout = a.onreadystatechange = null, "abort" === t ? a.abort() : "error" === t ? "number" != typeof a.status ? o(0, "error") : o(a.status, a.statusText) : o(Ue[a.status] || a.status, a.statusText, "text" !== (a.responseType || "text") || "string" != typeof a.responseText ? { binary: a.response } : { text: a.responseText }, a.getAllResponseHeaders())); }; }, a.onload = e(), i = a.onerror = a.ontimeout = e("error"), void 0 !== a.onabort ? a.onabort = i : a.onreadystatechange = function () { 4 === a.readyState && n.setTimeout((function () { e && i(); })); }, e = e("abort"); try { a.send(t.hasContent && t.data || null); } catch (t) { if (e) throw t; } }, abort: function () { e && e(); } }; })), E.ajaxPrefilter((function (t) { t.crossDomain && (t.contents.script = !1); })), E.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" }, contents: { script: /\b(?:java|ecma)script\b/ }, converters: { "text script": function (t) { return E.globalEval(t), t; } } }), E.ajaxPrefilter("script", (function (t) { void 0 === t.cache && (t.cache = !1), t.crossDomain && (t.type = "GET"); })), E.ajaxTransport("script", (function (t) { var e, n; if (t.crossDomain) return { send: function (i, r) { e = E("<script>").prop({ charset: t.scriptCharset, src: t.url }).on("load error", n = function (t) { e.remove(), n = null, t && r("error" === t.type ? 404 : 200, t.type); }), s.head.appendChild(e[0]); }, abort: function () { n && n(); } }; })); var ze, Xe = [], Qe = /(=)\?(?=&|$)|\?\?/; E.ajaxSetup({ jsonp: "callback", jsonpCallback: function () { var t = Xe.pop() || E.expando + "_" + Ee++; return this[t] = !0, t; } }), E.ajaxPrefilter("json jsonp", (function (t, e, i) { var r, o, s, a = !1 !== t.jsonp && (Qe.test(t.url) ? "url" : "string" == typeof t.data && 0 === (t.contentType || "").indexOf("application/x-www-form-urlencoded") && Qe.test(t.data) && "data"); if (a || "jsonp" === t.dataTypes[0]) return r = t.jsonpCallback = y(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, a ? t[a] = t[a].replace(Qe, "$1" + r) : !1 !== t.jsonp && (t.url += (Te.test(t.url) ? "&" : "?") + t.jsonp + "=" + r), t.converters["script json"] = function () { return s || E.error(r + " was not called"), s[0]; }, t.dataTypes[0] = "json", o = n[r], n[r] = function () { s = arguments; }, i.always((function () { void 0 === o ? E(n).removeProp(r) : n[r] = o, t[r] && (t.jsonpCallback = e.jsonpCallback, Xe.push(r)), s && y(o) && o(s[0]), s = o = void 0; })), "script"; })), m.createHTMLDocument = ((ze = s.implementation.createHTMLDocument("").body).innerHTML = "<form></form><form></form>", 2 === ze.childNodes.length), E.parseHTML = function (t, e, n) { return "string" != typeof t ? [] : ("boolean" == typeof e && (n = e, e = !1), e || (m.createHTMLDocument ? ((i = (e = s.implementation.createHTMLDocument("")).createElement("base")).href = s.location.href, e.head.appendChild(i)) : e = s), o = !n && [], (r = D.exec(t)) ? [e.createElement(r[1])] : (r = xt([t], e, o), o && o.length && E(o).remove(), E.merge([], r.childNodes))); var i, r, o; }, E.fn.load = function (t, e, n) { var i, r, o, s = this, a = t.indexOf(" "); return a > -1 && (i = me(t.slice(a)), t = t.slice(0, a)), y(e) ? (n = e, e = void 0) : e && "object" == typeof e && (r = "POST"), s.length > 0 && E.ajax({ url: t, type: r || "GET", dataType: "html", data: e }).done((function (t) { o = arguments, s.html(i ? E("<div>").append(E.parseHTML(t)).find(i) : t); })).always(n && function (t, e) { s.each((function () { n.apply(this, o || [t.responseText, e, t]); })); }), this; }, E.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], (function (t, e) { E.fn[e] = function (t) { return this.on(e, t); }; })), E.expr.pseudos.animated = function (t) { return E.grep(E.timers, (function (e) { return t === e.elem; })).length; }, E.offset = { setOffset: function (t, e, n) { var i, r, o, s, a, l, c = E.css(t, "position"), u = E(t), h 
vendor: 2,645 bytes, line 28
28= {}; "static" === c && (t.style.position = "relative"), a = u.offset(), o = E.css(t, "top"), l = E.css(t, "left"), ("absolute" === c || "fixed" === c) && (o + l).indexOf("auto") > -1 ? (s = (i = u.position()).top, r = i.left) : (s = parseFloat(o) || 0, r = parseFloat(l) || 0), y(e) && (e = e.call(t, n, E.extend({}, a))), null != e.top && (h.top = e.top - a.top + s), null != e.left && (h.left = e.left - a.left + r), "using" in e ? e.using.call(t, h) : u.css(h); } }, E.fn.extend({ offset: function (t) { if (arguments.length) return void 0 === t ? this : this.each((function (e) { E.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 t, e, n, i = this[0], r = { top: 0, left: 0 }; if ("fixed" === E.css(i, "position")) e = i.getBoundingClientRect(); else { for (e = this.offset(), n = i.ownerDocument, t = i.offsetParent || n.documentElement; t && (t === n.body || t === n.documentElement) && "static" === E.css(t, "position");)t = t.parentNode; t && t !== i && 1 === t.nodeType && ((r = E(t).offset()).top += E.css(t, "borderTopWidth", !0), r.left += E.css(t, "borderLeftWidth", !0)); } return { top: e.top - r.top - E.css(i, "marginTop", !0), left: e.left - r.left - E.css(i, "marginLeft", !0) }; } }, offsetParent: function () { return this.map((function () { for (var t = this.offsetParent; t && "static" === E.css(t, "position");)t = t.offsetParent; return t || Ct; })); } }), E.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, (function (t, e) { var n = "pageYOffset" === e; E.fn[t] = function (i) { return z(this, (function (t, i, r) { var o; if (_(t) ? o = t : 9 === t.nodeType && (o = t.defaultView), void 0 === r) return o ? o[e] : t[i]; o ? o.scrollTo(n ? o.pageXOffset : r, n ? r : o.pageYOffset) : t[i] = r; }), t, i, arguments.length); }; })), E.each(["top", "left"], (function (t, e) { E.cssHooks[e] = zt(m.pixelPosition, (function (t, n) { if (n) return n = Wt(t, e), Ht.test(n) ? E(t).position()[e] + "px" : n; })); })), E.each({ Height: "height", Width: "width" }, (function (t, e) { E.each({ padding: "inner" + t, content: e, "": "outer" + t }, (function (n, i) { E.fn[i] = function (r, o) { var s = arguments.length && (n || "boolean" != typeof r), a = n || (!0 === r || !0 === o ? "margin" : "border"); return z(this, (function (e, n, r) { var o; return _(e) ? 0 === i.indexOf("outer") ? e["inner" + t] : e.document.documentElement["client" + t] : 9 === e.
28nodeType ? (o = e.documentElement, Math.max(e.body["scroll" + t], o["scroll" + t], e.body["offset" + t], o["offset" + t], o["client" + t])) : void 0 === r ? E.css(e, n, a) : E.style(e, n, r, a); }), e, s ? r : void 0, s); }; })); })), E.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 (t, e) { E.fn[e] = function (t, n) { return arguments.length > 0 ? this.on(e, null, t, n) : this.trigger(e); }; })), E.fn.extend({ hover: function (t, e) { return this.mouseenter(t).mouseleave(e || t); } }), E.fn.extend({ bind: function (t, e, n) { return this.on(t, null, e, n); }, unbind: function (t, e) { return this.off(t, null, e); }, delegate: function (t, e, n, i) { return this.on(e, t, n, i); }, undelegate: function (t, e, n) { return 1 === arguments.length ? this.off(t, "**") : this.off(e, t || "**", n); } }), E.proxy = function (t, e) { var n, i, r; if ("string" == typeof e && (n = t[e], e = t, t = n), y(t)) return i = l.call(arguments, 2), r = function () { return t.apply(e || this, i.concat(l.call(arguments))); }, r.guid = t.guid = t.guid || E.guid++, r; }, E.holdReady = function (t) { t ? E.readyWait++ : E.ready(!0); }, E.isArray = Array.isArray, E.parseJSON = JSON.parse, E.nodeName = R, E.isFunction = y, E.isWindow = _, E.camel
28Case = K, E.type = x, E.now = Date.now, E.isNumeric = function (t) { var e = E.type(t); return ("number" === e || "string" === e) && !isNaN(t - parseFloat(t)); }, void 0 === (i = function () { return E; }.apply(e, [])) || (t.exports = i); var Ge = n.jQuery, Ke = n.$; return E.noConflict = function (t) { return n.$ === E && (n.$ = Ke), t && n.jQuery === E && (n.jQuery = Ge), E; }, r || (n.jQuery = n.$ = E), E;
29        }));
30    }, 1: function (t, e, n) {
31/**
32* @license
33* MarionetteJS (Backbone.Marionette)
34* ----------------------------------
35* v3.5.1
36*
37* Copyright (c)2017 Derick Bailey, Muted Solutions, LLC.
38* Distributed under MIT license
39*
40* http://marionettejs.com
41*/var i; i = function (t, e, n) { "use strict"; t = t && t.hasOwnProperty("default") ? t.default : t, e = e && e.hasOwnProperty("default") ? e.default : e, n = n && n.hasOwnProperty("default") ? n.default : n; var i = "3.5.1", r = function (t) { return function (e) { for (var n = arguments.length, i = Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)i[r - 1] = arguments[r]; return t.apply(e, i); }; }, o = t.Model.extend, s = function t(n, i) { e.isObject(n) && (n = n.prev + " is going to be removed in the future. Please use " + n.next + " instead." + (n.url ? " See: " + n.url : "")), $t.DEV_MODE && (void 0 !== i && i || t._cache[n] || (t._warn("Deprecation warning: " + n), t._cache[n] = !0)); }; s._console = "undefined" != typeof console ? console : {}, s._warn = function () { var t = s._console.warn || s._console.log || e.noop; return t.apply(s._console, arguments); }, s._cache = {}; var a = function (t) { return document.documentElement.contains(t && t.parentNode); }, l = function (t, n) { var i = this; t && e.each(n, (function (e) { var n = t[e]; void 0 !== n && (i[e] = n); })); }, c = function (t) { if (t) return this.options && void 0 !== this.options[t] ? this.options[t] : this[t]; }, u = function (t) { var n = this; return e.reduce(t, (function (t, i, r) { return e.isFunction(i) || (i = n[i]), i && (t[r] = i), t; }), {}); }, h = /(^|:)(\w)/gi; function f(t, e, n) { return n.toUpperCase(); } var d = e.memoize((function (t) { return "on" + t.replace(h, f); })); function p(t) { for (var n = arguments.length, i = Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)i[r - 1] = arguments[r]; var o = d(t), s = c.call(this, o), a = void 0; return e.isFunction(s) && (a = s.apply(this, i)), this.trigger.apply(this, arguments), a; } function v(t) { for (var n = arguments.length, i = Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)i[r - 1] = arguments[r]; return e.isFunction(t.triggerMethod) ? t.triggerMethod.apply(t, i) : p.apply(t, i); } function g(t, n, i) { t._getImmediateChildren && e.each(t._getImmediateChildren(), (function (t) { i(t) && v(t, n, t); })); } function m(t) { return !t._isAttached; } function y(t) { return !!m(t) && (t._isAttached = !0, !0); } function _(t) { return t._isAttached; } function b(t) { return !!_(t) && (t._isAttached = !1, !0); } function w(t) { t._isAttached && t._isRendered && v(t, "dom:refresh", t); } function x(t) { t._isAttached && t._isRendered && v(t, "dom:remove", t); } function C() { g(this, "before:attach", m); } function E() { g(this, "attach", y), w(this); } function T() { g(this, "before:detach", _), x(this); } function k() { g(this, "detach", b); } function S() { x(this); } function j() { w(this); } function A(t) { t._areViewEventsMonitored || !1 === t.monitorViewEvents || (t._areViewEventsMonitored = !0, t.on({ "before:attach": C, attach: E, "before:detach": T, detach: k, "before:render": S, render: j })); } var O = ["description", "fileName", "lineNumber", "name", "message", "number"], R = o.call(Error, { urlRoot: "http://marionettejs.com/docs/v3.5.1/", constructor: function (t, n) { e.isObject(t) ? t = (n = t).message : n || (n = {}); var i = Error.call(this, t); e.extend(this, e.pick(i, O), e.pick(n, O)), this.captureStackTrace(), n.url && (this.url = this.urlRoot + n.url); }, captureStackTrace: function () { Error.captureStackTrace && Error.captureStackTrace(this, R); }, toString: function () { return this.name + ": " + this.message + (this.url ? " See: " + this.url : ""); } }); function D(t, n, i, r) { if (!e.isObject(i)) throw new R({ message: "Bindings must be an object.", url: "marionette.functions.html#marionettebindevents" }); e.each(i, (function (i, o) { e.isString(i) ? function (t, n, i, r, o) { var a = r.split(/\s+/); a.length > 1 && s("Multiple handlers for a single event are deprecated. If needed, use a single handler to call multiple methods."), e.each(a, (function (e) { var r = t[e]; if (!r) throw new R('Method "' + e + '" was configured as an event handler, but does not exist.'); t[o](n, i, r); })); }(t, n, o, i, r) : t[r](n, o, i); })); } function V(t, e) { return t && e ? (D(this, t, e, "listenTo"), this) : this; } function $(t, e) { return t ? e ? (D(this, t, e, "stopListening"), this) : (this.stopListening(t), this) : this; } function F(t, n, i, r) { if (!e.isObject(i)) throw new R({ message: "Bindings must be an object.", url: "marionette.functions.html#marionettebindrequests" }); var o = u.call(t, i); n[r](o, t); } function I(t, e) { return t && e ? (F(this, t, e, "reply"), this) : this; } function P(t, e) { return t ? e ? (F(this, t, e, "stopReplying"), this) : (t.stopReplying(null, null, this), this) : this; } R.extend = o; var N = { normalizeMethods: u, _setOptions: function (t) { this.options = e.extend({}, e.result(this, "options"), t); }, mergeOptions: l, getOption: c, bindEvents: V, unbindEvents: $ }, M = { _initRadio: function () { var t = e.result(this, "channelName"); if (t) { if (!n) throw new R({ name: "BackboneRadioMissing", message: 'The dependency "backbone.radio" is missing.' }); var i = this._channel = n.channel(t), r = e.result(this, "radioEvents"); this.bindEvents(i, r); var o = e.result(this, "radioRequests"); this.bindRequests(i, o), this.on("destroy", this._destroyRadio); } }, _destroyRadio: function () { this._channel.stopReplying(null, null, this); }, getChannel: function () { return this._channel; }, bindEvents: V, unbindEvents: $, bindRequests: I, unbindRequests: P }, B = ["channelName", "radioEvents", "radioRequests"], L = function (t) { this.hasOwnProperty("options") || this._setOptions(t), this.mergeOptions(t, B), this._setCid(), this._initRadio(), this.initialize.apply(this, arguments); }; L.extend = o, e.extend(L.prototype, t.Events, N, M, { cidPrefix: "mno", _isDestroyed: !1, isDestroyed: function () { return this._isDestroyed; }, initialize: function () { }, _setCid: function () { this.cid || (this.cid = e.uniqueId(this.cidPrefix)); }, destroy: function () { if (this._isDestroyed) return this; for (var t = arguments.length, e = Array(t), n = 0; n < t; n++)e[n] = arguments[n]; return this.triggerMethod.apply(this, ["before:destroy", this].concat(e)), this._isDestroyed = !0, this.triggerMethod.apply(this, ["destroy", this].concat(e)), this.stopListening(), this; }, triggerMethod: p }); var H = function (t) { this.templateId = t; }; e.extend(H, { templateCaches: {}, get: function (t, e) { var n = this.templateCaches[t]; return n || (n = new H(t), this.templateCaches[t] = n), n.load(e); }, clear: function () { for (var t = void 0, e = arguments.length, n = Array(e), i = 0; i < e; i++)n[i] = arguments[i]; var r = n.length; if (r > 0) for (t = 0; t < r; t++)delete this.templateCaches[n[t]]; else this.templateCaches = {}; } }), e.extend(H.prototype, { load: function (t) { if (this.compiledTemplate) return this.compiledTemplate; var e = this.loadTemplate(this.templateId, t); return this.compiledTemplate = this.compileTemplate(e, t), this.compiledTemplate; }, loadTemplate: function (e, n) { var i = t.$(e); if (!i.length) throw new R({ name: "NoTemplateError", message: 'Could not find template: "' + e + '"' }); return i.html(); }, compileTemplate: function (t, n) { return e.template(t, n); } }); var q = e.invokeMap || e.invoke; function U(t, n) { return e.chain(n).map((function (n, i) { var r = function (t, n) { return t.behaviorClass ? t.behaviorClass : e.isFunction(t) ? t : e.isFunction($t.Behaviors.behaviorsLookup) ? $t.Behaviors.behaviorsLookup(t, n)[n] : $t.Behaviors.behaviorsLookup[n]; }(n, i), o = new r(n === r ? {} : n, t), s = U(t, e.result(o, "behaviors")); return [o].concat(s); }
41)).flatten().value(); } var W = { _initBehaviors: function () { this._behaviors = this._getBehaviors(); }, _getBehaviors: function () { var t = e.result(this, "behaviors"); return e.isObject(t) ? U(this, t) : {}; }, _getBehaviorTriggers: function () { var t = q(this._behaviors, "getTriggers"); return e.reduce(t, (function (t, n) { return e.extend(t, n); }), {}); }, _getBehaviorEvents: function () { var t = q(this._behaviors, "getEvents"); return e.reduce(t, (function (t, n) { return e.extend(t, n); }), {}); }, _proxyBehaviorViewProperties: function () { q(this._behaviors, "proxyViewProperties"); }, _delegateBehaviorEntityEvents: function () { q(this._behaviors, "delegateEntityEvents"); }, _undelegateBehaviorEntityEvents: function () { q(this._behaviors, "undelegateEntityEvents"); }, _destroyBehaviors: function () { for (var t = arguments.length, e = Array(t), n = 0; n < t; n++)e[n] = arguments[n]; q.apply(void 0, [this._behaviors, "destroy"].concat(e)); }, _removeBehavior: function (t) { this._isDestroyed || (this.undelegate(".trig" + t.cid + " ." + t.cid), this._behaviors = e.without(this._behaviors, t)); }, _bindBehaviorUIElements: function () { q(this._behaviors, "bindUIElements"); }, _unbindBehaviorUIElements: function () { q(this._behaviors, "unbindUIElements"); }, _triggerEventOnBehaviors: function () { for (var t = this._behaviors, e = 0, n = t && t.length; e < n; e++)p.apply(t[e], arguments); } }, z = { _delegateEntityEvents: function (t, n) { var i = e.result(this, "modelEvents"); i && ($.call(this, t, i), V.call(this, t, i)); var r = e.result(this, "collectionEvents"); r && ($.call(this, n, r), V.call(this, n, r)); }, _undelegateEntityEvents: function (t, n) { var i = e.result(this, "modelEvents"); $.call(this, t, i); var r = e.result(this, "collectionEvents"); $.call(this, n, r); } }, X = /^(\S+)\s*(.*)$/, Q = function (t, e) { var n = t.match(X); return n[1] + "." + e + " " + n[2]; }, G = { childViewEventPrefix: !0, triggersStopPropagation: !0, triggersPreventDefault: !0 }; function K(t) { return !!G[t]; } var J = { _getViewTriggers: function (t, n) { var i = this; return e.reduce(n, (function (n, r, o) { return n[o = Q(o, "trig" + i.cid)] = function (t, n) { e.isString(n) && (n = { event: n }); var i = n.event, r = !!n.preventDefault; K("triggersPreventDefault") && (r = !1 !== n.preventDefault); var o = !!n.stopPropagation; return K("triggersStopPropagation") && (o = !1 !== n.stopPropagation), function (e) { r && e.preventDefault(), o && e.stopPropagation(), t.triggerMethod(i, t, e); }; }(t, r), n; }), {}); } }, Y = function (t, e) { return t.replace(/@ui\.[a-zA-Z-_$0-9]*/g, (function (t) { return e[t.slice(4)]; })); }, Z = function t(n, i, r) { return e.each(n, (function (o, s) { e.isString(o) ? n[s] = Y(o, i) : e.isObject(o) && e.isArray(r) && (e.extend(o, t(e.pick(o, r), i)), e.each(r, (function (t) { var n = o[t]; e.isString(n) && (o[t] = Y(n, i)); }))); })), n; }, tt = { normalizeUIKeys: function (t) { return function (t, n) { return e.reduce(t, (function (t, e, i) { return t[Y(i, n)] = e, t; }), {}); }(t, this._getUIBindings()); }, normalizeUIString: function (t) { var e = this._getUIBindings(); return Y(t, e); }, normalizeUIValues: function (t, e) { var n = this._getUIBindings(); return Z(t, n, e); }, _getUIBindings: function () { var t = e.result(this, "_uiBindings"), n = e.result(this, "ui"); return t || n; }, _bindUIElements: function () { var t = this; if (this.ui) { this._uiBindings || (this._uiBindings = this.ui); var n = e.result(this, "_uiBindings"); this._ui = {}, e.each(n, (function (e, n) { t._ui[n] = t.$(e); })), this.ui = this._ui; } }, _unbindUIElements: function () { var t = this; this.ui && this._uiBindings && (e.each(this.ui, (function (e, n) { delete t.ui[n]; })), this.ui = this._uiBindings, delete this._uiBindings, delete this._ui); }, _getUI: function (t) { return this._ui[t]; } }; function et(e) { return e instanceof t.$ ? e : t.$(e); } function nt(t) { return this.prototype.Dom = e.extend({}, this.prototype.Dom, t), this; } var it = { createBuffer: function () { return document.createDocumentFragment(); }, getEl: function (t) { return et(t); }, findEl: function (t, e) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : et(t); return n.find(e); }, hasEl: function (t, e) { return t.contains(e && e.parentNode); }, detachEl: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : et(t); e.detach(); }, replaceEl: function (t, e) { if (t !== e) { var n = e.parentNode; n && n.replaceChild(t, e); } }, swapEl: function (t, e) { if (t !== e) { var n = t.parentNode, i = e.parentNode; if (n && i) { var r = t.nextSibling, o = e.nextSibling; n.insertBefore(e, r), i.insertBefore(t, o); } } }, setContents: function (t, e) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : et(t); n.html(e); }, appendContents: function (t, e) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, i = n._$el, r = void 0 === i ? et(t) : i, o = n._$contents, s = void 0 === o ? et(e) : o; r.append(s); }, hasContents: function (t) { return !!t && t.hasChildNodes(); }, detachContents: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : et(t); e.contents().detach(); } }, rt = { Dom: it, supportsRenderLifecycle: !0, supportsDestroyLifecycle: !0, _isDestroyed: !1, isDestroyed: function () { return !!this._isDestroyed; }, _isRendered: !1, isRendered: function () { return !!this._isRendered; }, _isAttached: !1, isAttached: function () { return !!this._isAttached; }, delegateEvents: function (n) { this._proxyBehaviorViewProperties(), this._buildEventProxies(); var i = this._getEvents(n); void 0 === n && (this.events = i); var r = e.extend({}, this._getBehaviorEvents(), i, this._getBehaviorTriggers(), this.getTriggers()); return t.View.prototype.delegateEvents.call(this, r), this; }, _getEvents: function (t) { var n = t || this.events;
41 return e.isFunction(n) ? this.normalizeUIKeys(n.call(this)) : this.normalizeUIKeys(n); }, getTriggers: function () { if (this.triggers) { var t = this.normalizeUIKeys(e.result(this, "triggers")); return this._getViewTriggers(this, t); } }, delegateEntityEvents: function () { return this._delegateEntityEvents(this.model, this.collection), this._delegateBehaviorEntityEvents(), this; }, undelegateEntityEvents: function () { return this._undelegateEntityEvents(this.model, this.collection), this._undelegateBehaviorEntityEvents(), this; }, destroy: function () { if (this._isDestroyed) return this; for (var t = this._isAttached && !this._shouldDisableEvents, e = arguments.length, n = Array(e), i = 0; i < e; i++)n[i] = arguments[i]; return this.triggerMethod.apply(this, ["before:destroy", this].concat(n)), t && this.triggerMethod("before:detach", this), this.unbindUIElements(), this._removeElement(), t && (this._isAttached = !1, this.triggerMethod("detach", this)), this._removeChildren(), this._isDestroyed = !0, this._isRendered = !1, this._destroyBehaviors.apply(this, n), this.triggerMethod.apply(this, ["destroy", this].concat(n)), this.stopListening(), this; }, _removeElement: function () { this.$el.off().removeData(), this.Dom.detachEl(this.el, this.$el); }, bindUIElements: function () { return this._bindUIElements(), this._bindBehaviorUIElements(), this; }, unbindUIElements: function () { return this._unbindUIElements(), this._unbindBehaviorUIElements(), this; }, getUI: function (t) { return this._getUI(t); }, childViewEventPrefix: function () { return !!K("childViewEventPrefix") && "childview"; }, triggerMethod: function () { var t = p.apply(this, arguments); return this._triggerEventOnBehaviors.apply(this, arguments), t; }, _buildEventProxies: function () { this._childViewEvents = e.result(this, "childViewEvents"), this._childViewTriggers = e.result(this, "childViewTriggers"); }, _proxyChildViewEvents: function (t) { this.listenTo(t, "all", this._childViewEventHandler); }, _childViewEventHandler: function (t) { for (var n = this.normalizeMethods(this._childViewEvents), i = arguments.length, r = Array(i > 1 ? i - 1 : 0), o = 1; o < i; o++)r[o - 1] = arguments[o]; void 0 !== n && e.isFunction(n[t]) && n[t].apply(this, r); var s = this._childViewTriggers; s && e.isString(s[t]) && this.triggerMethod.apply(this, [s[t]].concat(r)); var a = e.result(this, "childViewEventPrefix"); if (!1 !== a) { var l = a + ":" + t; this.triggerMethod.apply(this, [l].concat(r)); } } }; function ot(t) { t._isRendered || (t.supportsRenderLifecycle || v(t, "before:render", t), t.render(), t.supportsRenderLifecycle || (t._isRendered = !0, v(t, "render", t))); } function st(t) { if (t.destroy) t.destroy(); else { t.supportsDestroyLifecycle || v(t, "before:destroy", t); var e = t._isAttached && !t._shouldDisableEvents; e && v(t, "before:detach", t), t.remove(), e && (t._isAttached = !1, v(t, "detach", t)), t._isDestroyed = !0, t.supportsDestroyLifecycle || v(t, "destroy", t); } } e.extend(rt, W, N, z, J, tt); var at = ["allowMissingEl", "parentEl", "replaceElement"], lt = L.extend({ Dom: it, cidPrefix: "mnr", replaceElement: !1, _isReplaced: !1, _isSwappingView: !1, constructor: function (e) { if (this._setOptions(e), this.mergeOptions(e, at), this._initEl = this.el = this.getOption("el"), this.el = this.el instanceof t.$ ? this.el[0] : this.el, !this.el) throw new R({ name: "NoElError", message: 'An "el" must be specified for a region.' }); this.$el = this.getEl(this.el), L.call(this, e); }, show: function (t, e) { if (this._ensureElement(e)) return (t = this._getView(t, e)) === this.currentView || (this._isSwappingView = !!this.currentView, this.triggerMethod("before:show", this, t, e), t._isAttached || this.empty(e), this._setupChildView(t), this.currentView = t, ot(t), this._attachView(t, e), this.triggerMethod("show", this, t, e), this._isSwappingView = !1), this; }, _setupChildView: function (t) { A(t), this._proxyChildViewEvents(t), t.on("destroy", this._empty, this); }, _proxyChildViewEvents: function (t) { var e = this._parentView; e && e._proxyChildViewEvents(t); }, _shouldDisableMonitoring: function () { return this._parentView && !1 === this._parentView.monitorViewEvents; }, _attachView: function (t) { var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, i = !t._isAttached && a(this.el) && !this._shouldDisableMonitoring(), r = void 0 === n.replaceElement ? !!e.result(this, "replaceElement") : !!n.replaceElement; i && v(t, "before:attach", t), r ? this._replaceEl(t) : this.attachHtml(t), i && (t._isAttached = !0, v(t, "attach", t)); }, _ensureElement: function () { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; if (e.isObject(this.el) || (this.$el = this.getEl(this.el), this.el = this.$el[0], this.$el = this.Dom.getEl(this.el)), !this.$el || 0 === this.$el.length) { var n = void 0 === t.allowMissingEl ? !!e.result(this, "allowMissingEl") : !!t.allowMissingEl; if (n) return !1; throw new R('An "el" must exist in DOM for this region ' + this.cid); } return !0; }, _getView: function (e) { if (!e) throw new R({ name: "ViewNotValid", message: "The view passed is undefined and therefore invalid. You must pass a view instance to show." }); if (e._isDestroyed) throw new R({ name: "ViewDestroyedError", message: 'View (cid: "' + e.cid + '") has already been destroyed and cannot be used.' }); if (e instanceof t.View) return e; var n = this._getViewOptions(e); return new pt(n); }, _getViewOptions: function (t) { return e.isFunction(t) ? { template: t } : e.isObject(t) ? t : { template: function () { return t; } }; }, getEl: function (t) { var n = e.result(this, "parentEl"); return n && e.isString(t) ? this.Dom.findEl(n, t) : this.Dom.getEl(t); }, _replaceEl: function (t) { this._restoreEl(), t.on("before:destroy", this._restoreEl, this), this.Dom.replaceEl(t.el, this.el), this._isReplaced = !0; }, _restoreEl: function () { if (this._isReplaced) { var t = this.currentView; t && (this._detachView(t), this._isReplaced = !1); } }, isReplaced: function () { return !!this._isReplaced; }, isSwappingView: function () { return !!this._isSwappingView; }, attachHtml: function (t) { this.Dom.appendContents(this.el, t.el, { _$el: this.$el, _$contents: t.$el }); }, empty: function () { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { allowMissingEl: !0 }, e = this.currentView; if (!e) return this._ensureElement(t) && this.detachHtml(), this; var n = !t.preventDestroy; return n || s("The preventDestroy option is deprecated. Use Region#detachView"), this._empty(e, n), this; }, _empty: function (t, e) { t.off("destroy", this._empty, this), this.triggerMethod("before:empty", this, t), this._restoreEl(), delete this.currentView, t._isDestroyed || (e ? this.removeView(t) : this._detachView(t), this._stopChildViewEvents(t)), this.triggerMethod("empty", this, t); }, _stopChildViewEvents: function (t) { this._parentView && this._parentView.stopListening(t); }, destroyView: function (t) { return t._isDestroyed || (t._shouldDisableEvents = this._shouldDisableMonitoring(), st(t)), t; }, removeView: function (t) { this.destroyView(t); }, detachView: function () { var t = this.currentView; if (t) return this._empty(t), t; }, _detachView: function (t) { var e = t._isAttached && !this._shouldDisableMonitoring(), n = this._isReplaced; e && v(t, "before:detach", t), n ? this.Dom.replaceEl(this.el, t.el) : this.detachHtml(), e && (t._isAttached = !1, v(t, "detach", t)); }, detachHtml: function () { this.Dom.detachContents(this.el, this.$el); }, hasView: function () { return !!this.currentView; }, reset: function (t) { return this.empty(t), this.$el && (this.el = this._initEl), delete this.$el, this; }
41, destroy: function (t) { return this._isDestroyed ? this : (this.reset(t), this._name && this._parentView._removeReferences(this._name), delete this._parentView, delete this._name, L.prototype.destroy.apply(this, arguments)); } }, { setDomApi: nt }), ct = function (t, n) { return t instanceof lt ? t : function (t, n) { var i = e.extend({}, n); if (e.isString(t)) return e.extend(i, { el: t }), ut(i); if (e.isFunction(t)) return e.extend(i, { regionClass: t }), ut(i); if (e.isObject(t)) return t.selector && s("The selector option on a Region definition object is deprecated. Use el to pass a selector string"), e.extend(i, { el: t.selector }, t), ut(i); throw new R({ message: "Improper region configuration type.", url: "marionette.region.html#region-configuration-types" }); }(t, n); }; function ut(t) { return new (0, t.regionClass)(e.omit(t, "regionClass")); } var ht = { regionClass: lt, _initRegions: function () { this.regions = this.regions || {}, this._regions = {}, this.addRegions(e.result(this, "regions")); }, _reInitRegions: function () { q(this._regions, "reset"); }, addRegion: function (t, e) { var n = {}; return n[t] = e, this.addRegions(n)[t]; }, addRegions: function (t) { if (!e.isEmpty(t)) return t = this.normalizeUIValues(t, ["selector", "el"]), this.regions = e.extend({}, this.regions, t), this._addRegions(t); }, _addRegions: function (t) { var n = this, i = { regionClass: this.regionClass, parentEl: e.partial(e.result, this, "el") }; return e.reduce(t, (function (t, e, r) { return t[r] = ct(e, i), n._addRegion(t[r], r), t; }), {}); }, _addRegion: function (t, e) { this.triggerMethod("before:add:region", this, e, t), t._parentView = this, t._name = e, this._regions[e] = t, this.triggerMethod("add:region", this, e, t); }, removeRegion: function (t) { var e = this._regions[t]; return this._removeRegion(e, t), e; }, removeRegions: function () { var t = this._getRegions(); return e.each(this._regions, e.bind(this._removeRegion, this)), t; }, _removeRegion: function (t, e) { this.triggerMethod("before:remove:region", this, e, t), t.destroy(), this.triggerMethod("remove:region", this, e, t); }, _removeReferences: function (t) { delete this.regions[t], delete this._regions[t]; }, emptyRegions: function () { var t = this.getRegions(); return q(t, "empty"), t; }, hasRegion: function (t) { return !!this.getRegion(t); }, getRegion: function (t) { return this._isRendered || this.render(), this._regions[t]; }, _getRegions: function () { return e.clone(this._regions); }, getRegions: function () { return this._isRendered || this.render(), this._getRegions(); }, showChildView: function (t, e) { for (var n = this.getRegion(t), i = arguments.length, r = Array(i > 2 ? i - 2 : 0), o = 2; o < i; o++)r[o - 2] = arguments[o]; return n.show.apply(n, [e].concat(r)); }, detachChildView: function (t) { return this.getRegion(t).detachView(); }, getChildView: function (t) { return this.getRegion(t).currentView; } }, ft = { render: function (t, n) { if (!t) throw new R({ name: "TemplateNotFoundError", message: "Cannot render the template since its false, null or undefined." }); return (e.isFunction(t) ? t : H.get(t))(n); } }, dt = ["behaviors", "childViewEventPrefix", "childViewEvents", "childViewTriggers", "collectionEvents", "events", "modelEvents", "regionClass", "regions", "template", "templateContext", "triggers", "ui"], pt = t.View.extend({ constructor: function (n) { this.render = e.bind(this.render, this), this._setOptions(n), this.mergeOptions(n, dt), A(this), this._initBehaviors(), this._initRegions(); var i = Array.prototype.slice.call(arguments); i[0] = this.options, t.View.prototype.constructor.apply(this, i), this.delegateEntityEvents(), this._triggerEventOnBehaviors("initialize", this); }, serializeData: function () { return this.model || this.collection ? this.model ? this.serializeModel() : { items: this.serializeCollection() } : {}; }, serializeModel: function () { return this.model ? e.clone(this.model.attributes) : {}; }, serializeCollection: function () { return this.collection ? this.collection.map((function (t) { return e.clone(t.attributes); })) : {}; }, setElement: function () { return t.View.prototype.setElement.apply(this, arguments), this._isRendered = this.Dom.hasContents(this.el), this._isAttached = a(this.el), this._isRendered && this.bindUIElements(), this; }, render: function () { return this._isDestroyed || (this.triggerMethod("before:render", this), this._isRendered && this._reInitRegions(), this._renderTemplate(), this.bindUIElements(), this._isRendered = !0, this.triggerMethod("render", this)), this; }, _renderTemplate: function () { var t = this.getTemplate(); if (!1 !== t) { var e = this.mixinTemplateContext(this.serializeData()), n = this._renderHtml(t, e); this.attachElContent(n); } else s("template:false is deprecated.  Use _.noop."); }, _renderHtml: function (t, e) { return ft.render(t, e, this); }, getTemplate: function () { return this.template; }, mixinTemplateContext: function () { var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = e.result(this, "templateContext"); return e.extend(t, n); }, attachElContent: function (t) { return this.Dom.setContents(this.el, t, this.$el), this; }, _removeChildren: function () { this.removeRegions(); }, _getImmediateChildren: function () { return e.chain(this._getRegions()).map("currentView").compact().value(
41); } }, { setRenderer: function (t) { return this.prototype._renderHtml = t, this; }, setDomApi: nt }); e.extend(pt.prototype, rt, ht); var vt = ["forEach", "each", "map", "find", "detect", "filter", "select", "reject", "every", "all", "some", "any", "include", "contains", "invoke", "toArray", "first", "initial", "rest", "last", "without", "isEmpty", "pluck", "reduce", "partition"], gt = function (t, n) { e.each(vt, (function (i) { t[i] = function () { var t = e.result(this, n), r = Array.prototype.slice.call(arguments); return e[i].apply(e, [t].concat(r)); }; })); }, mt = function (t) { this._views = {}, this._indexByModel = {}, this._indexByCustom = {}, this._updateLength(), e.each(t, e.bind(this.add, this)); }; gt(mt.prototype, "_getViews"), e.extend(mt.prototype, { _getViews: function () { return e.values(this._views); }, add: function (t, e) { return this._add(t, e)._updateLength(); }, _add: function (t, e) { var n = t.cid; return this._views[n] = t, t.model && (this._indexByModel[t.model.cid] = n), e && (this._indexByCustom[e] = n), this; }, findByModel: function (t) { return this.findByModelCid(t.cid); }, findByModelCid: function (t) { var e = this._indexByModel[t]; return this.findByCid(e); }, findByCustom: function (t) { var e = this._indexByCustom[t]; return this.findByCid(e); }, findByIndex: function (t) { return e.values(this._views)[t]; }, findByCid: function (t) { return this._views[t]; }, remove: function (t) { return this._remove(t)._updateLength(); }, _remove: function (t) { var n = t.cid; return t.model && delete this._indexByModel[t.model.cid], e.some(this._indexByCustom, e.bind((function (t, e) { if (t === n) return delete this._indexByCustom[e], !0; }), this)), delete this._views[n], this; }, _updateLength: function () { return this.length = e.size(this._views), this; } }); var yt = ["behaviors", "childView", "childViewEventPrefix", "childViewEvents", "childViewOptions", "childViewTriggers", "collectionEvents", "events", "filter", "emptyView", "emptyViewOptions", "modelEvents", "reorderOnSort", "sort", "triggers", "ui", "viewComparator"], _t = t.View.extend({ sort: !0, constructor: function (n) { this.render = e.bind(this.render, this), this._setOptions(n), this.mergeOptions(n, yt), A(this), this._initBehaviors(), this.once("render", this._initialEvents), this._initChildViewStorage(), this._bufferedChildren = []; var i = Array.prototype.slice.call(arguments); i[0] = this.options, t.View.prototype.constructor.apply(this, i), this.delegateEntityEvents(), this._triggerEventOnBehaviors("initialize", this); }, _startBuffering: function () { this._isBuffering = !0; }, _endBuffering: function () { var t = this._isAttached && !1 !== this.monitorViewEvents ? this._getImmediateChildren() : []; this._isBuffering = !1, e.each(t, (function (t) { v(t, "before:attach", t); })), this.attachBuffer(this, this._createBuffer()), e.each(t, (function (t) { t._isAttached = !0, v(t, "attach", t); })), this._bufferedChildren = []; }, _getImmediateChildren: function () { return e.values(this.children._views); }, _initialEvents: function () { this.collection && (this.listenTo(this.collection, "add", this._onCollectionAdd), this.listenTo(this.collection, "update", this._onCollectionUpdate), this.listenTo(this.collection, "reset", this.render), this.sort && this.listenTo(this.collection, "sort", this._sortViews)); }, _onCollectionAdd: function (t, n, i) { var r = void 0 !== i.at && (i.index || n.indexOf(t)); (this.filter || !1 === r) && (r = e.indexOf(this._filteredSortedModels(r), t)), this._shouldAddChild(t, r) && (this._destroyEmptyView(), this._addChild(t, r)); }, _onCollectionUpdate: function (t, e) { var n = e.changes; this._removeChildModels(n.removed); }, _removeChildModels: function (t) { var e = this._getRemovedViews(t); e.length && (this.children._updateLength(), this._updateIndices(e, !1), this.isEmpty() && this._showEmptyView()); }, _getRemovedViews: function (t) { var n = this; return e.reduce(t, (function (t, e) { var i = e && n.children.findByModel(e); return !i || i._isDestroyed || (n._removeChildView(i), t.push(i)), t; }), []); }, _removeChildView: function (t) { this.triggerMethod("before:remove:child", this, t), this.children._remove(t), t._shouldDisableEvents = !1 === this.monitorViewEvents, st(t), this.stopListening(t), this.triggerMethod("remove:child", this, t); }, setElement: function () { return t.View.prototype.setElement.apply(this, arguments), this._isAttached = a(this.el), this; }, render: function () { return this._isDestroyed || (this.triggerMethod("before:render", this), this._renderChildren(), this._isRendered = !0, this.triggerMethod("render", this)), this; }, setFilter: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = e.preventRender, i = this._isRendered && !this._isDestroyed, r = this.filter !== t, o = i && r && !n; if (o) { var s = this._filteredSortedModels(); this.filter = t; var a = this._filteredSortedModels(); this._applyModelDeltas(a, s); } else this.filter = t; return this; }, removeFilter: function (t) { return this.setFilter(null, t); }, _applyModelDeltas: function (t, n) { var i = this, r = {}; e.each(t, (function (t, e) { !i.children.findByModel(t) && i._onCollectionAdd(t, i.c
41ollection, { at: e }), r[t.cid] = !0; })); var o = e.filter(n, (function (t) { return !r[t.cid] && i.children.findByModel(t); })); this._removeChildModels(o); }, reorder: function () { var t = this, n = this.children, i = this._filteredSortedModels(); if (!i.length && this._showingEmptyView) return this; if (e.some(i, (function (t) { return !n.findByModel(t); }))) this.render(); else { var r = [], o = e.reduce(this.children._views, (function (t, n) { var o = e.indexOf(i, n.model); return -1 === o ? (r.push(n.model), t) : (n._index = o, t[o] = n.el, t); }), new Array(i.length)); this.triggerMethod("before:reorder", this); var s = this.Dom.createBuffer(); e.each(o, (function (e) { t.Dom.appendContents(s, e); })), this._appendReorderedChildren(s), this._removeChildModels(r), this.triggerMethod("reorder", this); } return this; }, resortView: function () { return this.reorderOnSort ? this.reorder() : this._renderChildren(), this; }, _sortViews: function () { var t = this, n = this._filteredSortedModels(); e.find(n, (function (e, n) { var i = t.children.findByModel(e); return !i || i._index !== n; })) && this.resortView(); }, _emptyViewIndex: -1, _appendReorderedChildren: function (t) { this.Dom.appendContents(this.el, t, { _$el: this.$el }); }, _renderChildren: function () { this._isRendered && (this._destroyEmptyView(), this._destroyChildren()); var t = this._filteredSortedModels(); this.isEmpty({ processedModels: t }) ? this._showEmptyView() : (this.triggerMethod("before:render:children", this), this._startBuffering(), this._showCollection(t), this._endBuffering(), this.triggerMethod("render:children", this)); }, _createView: function (t, e) { var n = this._getChildView(t), i = this._getChildViewOptions(t, e); return this.buildChildView(t, n, i); }, _setupChildView: function (t, e) { A(t), this._proxyChildViewEvents(t), this.sort && (t._index = e); }, _showCollection: function (t) { e.each(t, e.bind(this._addChild, this)), this.children._updateLength(); }, _filteredSortedModels: function (t) { if (!this.collection || !this.collection.length) return []; var e = this.getViewComparator(), n = this.collection.models; if (t = Math.min(Math.max(t, 0), n.length - 1), e) { var i = void 0; t && (i = n[t], n = n.slice(0, t).concat(n.slice(t + 1))), n = this._sortModelsBy(n, e), i && n.splice(t, 0, i); } return n = this._filterModels(n); }, getViewComparator: function () { return this.viewComparator; }, _filterModels: function (t) { var n = this; return this.filter && (t = e.filter(t, (function (t, e) { return n._shouldAddChild(t, e); }))), t; }, _sortModelsBy: function (t, n) { return "string" == typeof n ? e.sortBy(t, (function (t) { return t.get(n); })) : 1 === n.length ? e.sortBy(t, e.bind(n, this)) : e.clone(t).sort(e.bind(n, this)); }, _showEmptyView: function () { var n = this._getEmptyView(); if (n && !this._showingEmptyView) { this._showingEmptyView = !0; var i = new t.Model, r = this.emptyViewOptions || this.childViewOptions; e.isFunction(r) && (r = r.call(this, i, this._emptyViewIndex)); var o = this.buildChildView(i, n, r); this.triggerMethod("before:render:empty", this, o), this.addChildView(o, 0), this.triggerMethod("render:empty", this, o); } }, _destroyEmptyView: function () { this._showingEmptyView && (this.triggerMethod("before:remove:empty", this), this._destroyChildren(), delete this._showingEmptyView, this.triggerMethod("remove:empty", this)); }, _getEmptyView: function () { var t = this.emptyView; if (t) return this._getView(t); }, _getChildView: function (t) { var e = this.childView; if (!e) throw new R({ name: "NoChildViewError", message: 'A "childView" must be specified' }); if (!(e = this._getView(e, t))) throw new R({ name: "InvalidChildViewError", message: '"childView" must be a view class or a function that returns a view class' }); return e; }, _getView: function (n, i) { return n.prototype instanceof t.View || n === t.View ? n : e.isFunction(n) ? n.call(this, i) : void 0; }, _addChild: function (t, e) { var n = this._createView(t, e); return this.addChildView(n, e), n; }, _getChildViewOptions: function (t, n) { return e.isFunction(this.childViewOptions) ? this.childViewOptions(t, n) : this.childViewOptions; }, addChildView: function (t, e) { return this.triggerMethod("before:add:child", this, t), this._setupChildView(t, e), this._isBuffering ? this.children._add(t) : (this._updateIndices(t, !0), this.children.add(t)), ot(t), this._attachView(t, e), this.triggerMethod("add:child", this, t), t; }, _updateIndices: function (t, n) { if (this.sort) if (n) { var i = e.isArray(t) ? e.max(t, "_index") : t; e.isObject(i) && e.each(this.children._views, (function (t) { t._index >= i._index && (t._index += 1); })); } else e.each(e.sortBy(this.children._views, "_index"), (function (t, e) { t._index = e; })); }, _attachView: function (t, e) { var n = !t._isAttached && !this._isBuffering && this._isAttached && !1 !== this.monitorViewEvents; n && v(t, "before:attach", t), this.attachHtml(this, t, e), n && (t._isAttached = !0, v(t, "attach", t)); }, buildChildView: function (t, n, i) { return new n(e.extend({ model: t }, i)); }, removeChildView: function (t) { return !t || t._isDestroyed || (this._removeChildView(t), this.children._updateLength(), this._updateIndices(t, !1)), t; }, isEmpty: function (t) { var n = void 0; return e.result(t, "processedModels") ? n = t.processedModels : (n = this.collection ? this.collection.models : [], n = this._filterModels(n)), 0 === n.length; }, attachBuffer: function (t, e) { this.Dom.appendContents(t.el, e, { _$el: t.$el }); }, _createBuffer: function () { var t = this, n = this.Dom.createBuffer(); return e.each(this._bufferedChildren, (function (e) { t.Dom.appendContents(n, e.el, { _$contents: e.$el }); })), n; }, attachHtml: function (t, e, n) { t._isBuffering ? t._bufferedChildren.splice(n, 0, e) : t._insertBefore(e, n) || t._insertAfter(e); }, _insertBefore: function (t, n) { var i = void 0; return this.sort && n < this.children.length - 1 && (i = e.find(this.children._views, (function (t) { return t._index === n + 1; }))), !!i && (this.beforeEl(i.el, t.el), !0); }, beforeEl: function (t, e) { this.$(t).before(e); }, _insertAfter: function (t) { this.Dom.appendContents(this.el, t.el, { _$el: this.$el, _$contents: t.$el }); }
41, _initChildViewStorage: function () { this.children = new mt; }, _removeChildren: function () { this._destroyChildren(); }, _destroyChildren: function (t) { this.children.length && (this.triggerMethod("before:destroy:children", this), e.each(this.children._views, e.bind(this._removeChildView, this)), this.children._updateLength(), this.triggerMethod("destroy:children", this)); }, _shouldAddChild: function (t, n) { var i = this.filter; return !e.isFunction(i) || i.call(this, t, n, this.collection); } }, { setDomApi: nt }); e.extend(_t.prototype, rt); var bt = function () { this._init(); }; function wt(t, e) { return e.model && e.model.get(t); } gt(bt.prototype, "_views"), e.extend(bt.prototype, { _init: function () { this._views = [], this._viewsByCid = {}, this._indexByModel = {}, this._updateLength(); }, _add: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : this._views.length, n = t.cid; this._viewsByCid[n] = t, t.model && (this._indexByModel[t.model.cid] = n), this._views.splice(e, 0, t), this._updateLength(); }, _sort: function (t, n) { return "string" == typeof t ? (t = e.partial(wt, t), this._sortBy(t)) : 1 === t.length ? this._sortBy(e.bind(t, n)) : this._views.sort(e.bind(t, n)); }, _sortBy: function (t) { var n = e.sortBy(this._views, t); return this._set(n), n; }, _set: function (t) { this._views.length = 0, this._views.push.apply(this._views, t.slice(0)), this._updateLength(); }, _swap: function (t, e) { var n = this.findIndexByView(t), i = this.findIndexByView(e); if (-1 !== n && -1 !== i) { var r = this._views[n]; this._views[n] = this._views[i], this._views[i] = r; } }, findByModel: function (t) { return this.findByModelCid(t.cid); }, findByModelCid: function (t) { var e = this._indexByModel[t]; return this.findByCid(e); }, findByIndex: function (t) { return this._views[t]; }, findIndexByView: function (t) { return this._views.indexOf(t); }, findByCid: function (t) { return this._viewsByCid[t]; }, hasView: function (t) { return !!this.findByCid(t.cid); }, _remove: function (t) { if (this._viewsByCid[t.cid]) { t.model && delete this._indexByModel[t.model.cid], delete this._viewsByCid[t.cid]; var e = this.findIndexByView(t); this._views.splice(e, 1), this._updateLength(); } }, _updateLength: function () { this.length = this._views.length; } }); var xt = ["behaviors", "childView", "childViewEventPrefix", "childViewEvents", "childViewOptions", "childViewTriggers", "collectionEvents", "emptyView", "emptyViewOptions", "events", "modelEvents", "sortWithCollection", "triggers", "ui", "viewComparator", "viewFilter"], Ct = t.View.extend({ sortWithCollection: !0, constructor: function (e) { this._setOptions(e), this.mergeOptions(e, xt), A(this), this.once("render", this._initialEvents), this._initChildViewStorage(), this._initBehaviors(); var n = Array.prototype.slice.call(arguments); n[0] = this.options, t.View.prototype.constructor.apply(this, n), this.getEmptyRegion(), this.delegateEntityEvents(), this._triggerEventOnBehaviors("initialize", this); }, _initChildViewStorage: function () { this.children = new bt; }, getEmptyRegion: function () { return this._emptyRegion && !this._emptyRegion.isDestroyed() || (this._emptyRegion = new lt({ el: this.el, replaceElement: !1 }), this._emptyRegion._parentView = this), this._emptyRegion; }, _initialEvents: function () { this.listenTo(this.collection, { sort: this._onCollectionSort, reset: this._onCollectionReset, update: this._onCollectionUpdate }); }, _onCollectionSort: function (t, e) { var n = e.add, i = e.merge, r = e.remove; this.sortWithCollection && !1 !== this.viewComparator && (n || r || i || this.sort()); }, _onCollectionReset: function () { this.render(); }, _onCollectionUpdate: function (t, e) { var n = e.changes, i = n.removed.length && this._removeChildModels(n.removed); this._addedViews = n.added.length && this._addChildModels(n.added), this._detachChildren(i), this._showChildren(), this._removeChildViews(i); }, _removeChildModels: function (t) { var n = this; return e.reduce(t, (function (t, e) { var i = n._removeChildModel(e); return i && t.push(i), t; }), []); }, _removeChildModel: function (t) { var e = this.children.findByModel(t); return e && this._removeChild(e), e; }, _removeChild: function (t) { this.triggerMethod("before:remove:child", this, t), this.children._remove(t), this.triggerMethod("remove:child", this, t); }, _addChildModels: function (t) { return e.map(t, e.bind(this._addChildModel, this)); }, _addChildModel: function (t) { var e = this._createChildView(t); return this._addChild(e), e; }, _createChildView: function (t) { var e = this._getChildView(t), n = this._getChildViewOptions(t); return this.buildChildView(t, e, n); }, _addChild: function (t, e) { this.triggerMethod("before:add:child", this, t), this._setupChildView(t), this.children._add(t, e), this.triggerMethod("add:child", this, t); }, _getChildView: function (t) { var e = this.childView; if (!e) throw new R({ name: "NoChildViewError", message: 'A "childView" must be specified' }); if (!(e = this._getView(e, t))) throw new R({ name: "InvalidChildViewError", message: '"childView" must be a view class or a function that returns a view class' }); return e; }, _getView: function (n, i) { return n.prototype instanceof t.View || n === t.View ? n : e.isFunction(n) ? n.call(this, i) : void 0; }, _getChildViewOptions: function (t) { return e.isFunction(this.childViewOptions) ? this.childViewOptions(t) : this.childViewOptions; }, buildChildView: function (t, n, i) { return new n(e.extend({ model: t }, i)); }, _setupChildView: function (t) { A(t), t.on("destroy", this.removeChildView, this), this._proxyChildViewEvents(t); }, _getImmediateChildren: function () { return this.children._views; }, setElement: function () { return t.View.prototype.setElement.apply(this, arguments), this._isAttached = a(this.el), this; }, render: function () { return this._isDestroyed || (this.triggerMethod("before:render", this), this._destroyChildren(), this.children._init(), this.collection && this._addChildModels(this.collection.models), this._showChildren(), this._isRendered = !0, this.triggerMethod("render", this)), this; }
41, sort: function () { return this._isDestroyed ? this : this.children.length ? (this._showChildren(), this) : this; }, _showChildren: function () { this.isEmpty() ? this._showEmptyView() : (this._sortChildren(), this.filter()); }, isEmpty: function (t) { return t || !this.children.length; }, _showEmptyView: function () { var t = this._getEmptyView(); if (t) { var e = this._getEmptyViewOptions(); this.getEmptyRegion().show(new t(e)); } }, _getEmptyView: function () { var t = this.emptyView; if (t) return this._getView(t); }, _destroyEmptyView: function () { var t = this.getEmptyRegion(); t.hasView() && t.empty(); }, _getEmptyViewOptions: function () { var t = this.emptyViewOptions || this.childViewOptions; return e.isFunction(t) ? t.call(this) : t; }, _sortChildren: function () { var t = this.getComparator(); t && (delete this._addedViews, this.triggerMethod("before:sort", this), this.children._sort(t, this), this.triggerMethod("sort", this)); }, setComparator: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = e.preventRender, i = this.viewComparator !== t, r = i && !n; return this.viewComparator = t, r && this.sort(), this; }, removeComparator: function (t) { return this.setComparator(null, t); }, getComparator: function () { return this.viewComparator ? this.viewComparator : !(!this.sortWithCollection || !1 === this.viewComparator || !this.collection) && this._viewComparator; }, _viewComparator: function (t) { return this.collection.indexOf(t.model); }, filter: function () { if (this._isDestroyed) return this; if (!this.children.length) return this; var t = this._filterChildren(); return this._renderChildren(t), this; }, _filterChildren: function () { var t = this, n = this._getFilter(), i = this._addedViews; if (delete this._addedViews, !n) return i || this.children._views; this.triggerMethod("before:filter", this); var r = [], o = []; return e.each(this.children._views, (function (e, i, s) { (n.call(t, e, i, s) ? r : o).push(e); })), this._detachChildren(o), this.triggerMethod("filter", this, r, o), r; }, _getFilter: function () { var t = this.getFilter(); if (!t) return !1; if (e.isFunction(t)) return t; if (e.isObject(t)) { var n = e.matches(t); return function (t) { return n(t.model && t.model.attributes); }; } if (e.isString(t)) return function (e) { return e.model && e.model.get(t); }; throw new R({ name: "InvalidViewFilterError", message: '"viewFilter" must be a function, predicate object literal, a string indicating a model attribute, or falsy' }); }, getFilter: function () { return this.viewFilter; }, setFilter: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = e.preventRender, i = this.viewFilter !== t, r = i && !n; return this.viewFilter = t, r && this.filter(), this; }, removeFilter: function (t) { return this.setFilter(null, t); }, _detachChildren: function (t) { e.each(t, e.bind(this._detachChildView, this)); }, _detachChildView: function (t) { var e = t._isAttached && !1 !== this.monitorViewEvents; e && v(t, "before:detach", t), this.detachHtml(t), e && (t._isAttached = !1, v(t, "detach", t)); }, detachHtml: function (t) { this.Dom.detachEl(t.el, t.$el); }, _renderChildren: function (t) { if (this.isEmpty(!t.length)) this._showEmptyView(); else { this._destroyEmptyView(), this.triggerMethod("before:render:children", this, t); var e = this._getBuffer(t); this._attachChildren(e, t), this.triggerMethod("render:children", this, t); } }, _attachChildren: function (t, n) { n = this._isAttached && !1 !== this.monitorViewEvents ? n : [], e.each(n, (function (t) { t._isAttached || v(t, "before:attach", t); })), this.attachHtml(t), e.each(n, (function (t) { t._isAttached || (t._isAttached = !0, v(t, "attach", t)); })); }, _getBuffer: function (t) { var n = this, i = this.Dom.createBuffer(); return e.each(t, (function (t) { ot(t), n.Dom.appendContents(i, t.el, { _$contents: t.$el }); })), i; }, attachHtml: function (t) { this.Dom.appendContents(this.el, t, { _$el: this.$el }); }, swapChildViews: function (t, e) { if (!this.children.hasView(t) || !this.children.hasView(e)) throw new R({ name: "ChildSwapError", message: "Both views must be children of the collection view" }); return this.children._swap(t, e), this.Dom.swapEl(t.el, e.el), this.Dom.hasEl(this.el, t.el) !== this.Dom.hasEl(this.el, e.el) && this.filter(), this; }, addChildView: function (t, e) { return !t || t._isDestroyed || ((!e || e >= this.children.length) && (this._addedViews = [t]), this._addChild(t, e), this._showChildren()), t; }, detachChildView: function (t) { return this.removeChildView(t, { shouldDetach: !0 }), t; }, removeChildView: function (t, e) { return t ? (this._removeChildView(t, e), this._removeChild(t), this.isEmpty() && this._showEmptyView(), t) : t; }, _removeChildViews: function (t) { e.each(t, e.bind(this._removeChildView, this)); }, _removeChildView: function (t) { var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = e.shouldDetach; t.off("destroy", this.removeChildView, this), n ? this._detachChildView(t) : this._destroyChildView(t), this.stopListening(t); }, _destroyChildView: function (t) { t._isDestroyed || (t._shouldDisableEvents = !1 === this.monitorViewEvents, st(t)); }, _removeChildren: function () { this._destroyChildren(), this.getEmptyRegion().destroy(), delete this._addedViews; }, _destroyChildren: function () { this.children && this.children.length && (this.triggerMethod("before:destroy:children", this), !1 === this.monitorViewEvents && this.Dom.detachContents(this.el, this.$el), e.each(this.children._views, e.bind(this._removeChildView, this)), this.triggerMethod("destroy:children", this)); } }, { setDomApi: nt }); e.extend(Ct.prototype, rt); var Et = ["childViewContainer", "template", "templateContext"], Tt = _t.extend({ constructor: function (t) { s("CompositeView is deprecated. Convert to View at your earliest convenience"), this.mergeOptions(t, Et), _t.prototype.constructor.apply(this, arguments); }, _initialEvents: function () { this.collection && (this.listenTo(this.collection, "add", this._onCollectionAdd), this.listenTo(this.collection, "update", this._onCollectionUpdate), this.listenTo(this.collection, "reset", this.renderChildren), this.sort && this.listenTo(this.collection, "sort", this._sortViews)); }, _getChildView: function (t) { var e = this.childView; if (!e) return this.constructor; if (!(e = this._getView(e, t))) throw new R({ name: "InvalidChildViewError", message: '"childView" must be a view class or a function that returns a view class' }); return e; }, serializeData: function () { return this.serializeModel(); }, render: function () { return this._isDestroyed || (this._isRendering = !0, this.resetChildViewContainer(), this.triggerMethod("before:render", this), this._renderTemplate(), this.bindUIElements(), this.renderChildren(), this._isRendering = !1, this._isRendered = !0, this.triggerMethod("render", this)), this; }, renderChildren: function () { (this._isRendered || this._isRendering) && _t.prototype._renderChildren.call(this); }, attachBuffer: function (t, e) { var n = this.getChildViewContainer(t); this.Dom.appendContents(n[0], e, { _$el: n }); }, _insertAfter: function (t) { var e = this.getChildViewContainer(this, t); this.Dom.appendContents(e[0], t.el, { _$el: e, _$contents: t.$el }); }, _appendReorderedChildren: function (t) { var e = this.getChildViewContainer(this); this.Dom.appendContents(e[0], t, { _$el: e }); }, getChildViewContainer: function (t, n) { if (t.$childViewContainer) return t.$childViewContainer; var i = void 0; if (t.childViewContainer) { var r = e.result(t, "childViewContainer");
41 if ((i = "@" === r.charAt(0) && t.ui ? t.ui[r.substr(4)] : this.$(r)).length <= 0) throw new R({ name: "ChildViewContainerMissingError", message: 'The specified "childViewContainer" was not found: ' + t.childViewContainer }); } else i = t.$el; return t.$childViewContainer = i, i; }, resetChildViewContainer: function () { this.$childViewContainer && (this.$childViewContainer = void 0); } }), kt = e.pick(pt.prototype, "serializeModel", "getTemplate", "_renderTemplate", "_renderHtml", "mixinTemplateContext", "attachElContent"); e.extend(Tt.prototype, kt); var St = ["collectionEvents", "events", "modelEvents", "triggers", "ui"], jt = L.extend({ cidPrefix: "mnb", constructor: function (t, n) { this.view = n, this.defaults && s("Behavior defaults are deprecated. For similar functionality set options on the Behavior class."), this.defaults = e.clone(e.result(this, "defaults", {})), this._setOptions(e.extend({}, this.defaults, t)), this.mergeOptions(this.options, St), this.ui = e.extend({}, e.result(this, "ui"), e.result(n, "ui")), L.apply(this, arguments); }, $: function () { return this.view.$.apply(this.view, arguments); }, destroy: function () { return this.stopListening(), this.view._removeBehavior(this), this; }, proxyViewProperties: function () { return this.$el = this.view.$el, this.el = this.view.el, this; }, bindUIElements: function () { return this._bindUIElements(), this; }, unbindUIElements: function () { return this._unbindUIElements(), this; }, getUI: function (t) { return this._getUI(t); }, delegateEntityEvents: function () { return this._delegateEntityEvents(this.view.model, this.view.collection), this; }, undelegateEntityEvents: function () { return this._undelegateEntityEvents(this.view.model, this.view.collection), this; }, getEvents: function () { var t = this, n = this.normalizeUIKeys(e.result(this, "events")); return e.reduce(n, (function (n, i, r) { return e.isFunction(i) || (i = t[i]), i ? (n[r = Q(r, t.cid)] = e.bind(i, t), n) : n; }), {}); }, getTriggers: function () { if (this.triggers) { var t = this.normalizeUIKeys(e.result(this, "triggers")); return this._getViewTriggers(this.view, t); } } }); e.extend(jt.prototype, z, J, tt); var At = ["region", "regionClass"], Ot = L.extend({ cidPrefix: "mna", constructor: function (t) { this._setOptions(t), this.mergeOptions(t, At), this._initRegion(), L.prototype.constructor.apply(this, arguments); }, regionClass: lt, _initRegion: function () { var t = this.region; if (t) { var e = { regionClass: this.regionClass }; this._region = ct(t, e); } }, getRegion: function () { return this._region; }, showView: function (t) { for (var e = this.getRegion(), n = arguments.length, i = Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)i[r - 1] = arguments[r]; return e.show.apply(e, [t].concat(i)); }, getView: function () { return this.getRegion().currentView; }, start: function (t) { return this.triggerMethod("before:start", this, t), this.triggerMethod("start", this, t), this; } }), Rt = ["appRoutes", "controller"], Dt = t.Router.extend({ constructor: function (e) { this._setOptions(e), this.mergeOptions(e, Rt), t.Router.apply(this, arguments); var n = this.appRoutes, i = this._getController(); this.processAppRoutes(i, n), this.on("route", this._processOnRoute, this); }, appRoute: function (t, e) { var n = this._getController(); return this._addAppRoute(n, t, e), this; }, _processOnRoute: function (t, n) { if (e.isFunction(this.onRoute)) { var i = e.invert(this.appRoutes)[t]; this.onRoute(t, i, n); } }, processAppRoutes: function (t, n) { var i = this; if (!n) return this; var r = e.keys(n).reverse(); return e.each(r, (function (e) { i._addAppRoute(t, e, n[e]); })), this; }, _getController: function () { return this.controller; }, _addAppRoute: function (t, n, i) { var r = t[i]; if (!r) throw new R('Method "' + i + '" was not found on the controller'); this.route(n, i, e.bind(r, t)); }, triggerMethod: p }); e.extend(Dt.prototype, N); var Vt = t.Marionette, $t = t.Marionette = {}; return $t.noConflict = function () { return t.Marionette = Vt, this; }, $t.bindEvents = r(V), $t.unbindEvents = r($), $t.bindRequests = r(I), $t.unbindRequests = r(P), $t.mergeOptions = r(l), $t.getOption = r(c), $t.normalizeMethods = r(u), $t.extend = o, $t.isNodeAttached = a, $t.deprecate = s, $t.triggerMethod = r(p), $t.triggerMethodOn = v, $t.isEnabled = K, $t.setEnabled = function (t, e) { return G[t] = e; }, $t.monitorViewEvents = A, $t.Behaviors = {}, $t.Behaviors.behaviorsLookup = function () { throw new R({ message: "You must define where your behaviors are stored.", url: "marionette.behaviors.md#behaviorslookup" }); }
41, $t.Application = Ot, $t.AppRouter = Dt, $t.Renderer = ft, $t.TemplateCache = H, $t.View = pt, $t.CollectionView = _t, $t.NextCollectionView = Ct, $t.CompositeView = Tt, $t.Behavior = jt, $t.Region = lt, $t.Error = R, $t.Object = L, $t.DEV_MODE = !1, $t.FEATURES = G, $t.VERSION = i, $t.DomApi = it, $t.setDomApi = function (t) { _t.setDomApi(t), Tt.setDomApi(t), Ct.setDomApi(t), lt.setDomApi(t), pt.setDomApi(t); }, $t; }, t.exports = i(n(6), n(4), n(7)), this && this.Marionette && (this.Mn = this.Marionette);
42    }, 11: function (t, e, n) {
43        (function (t) {
44            /*!
45             * Bootstrap v3.3.7 (http://getbootstrap.com)
46             * Copyright 2011-2016 Twitter, Inc.
47             * Licensed under the MIT license
48             */
49            if (void 0 === t) throw new Error("Bootstrap's JavaScript requires jQuery"); !function (t) { "use strict"; var e = t.fn.jquery.split(" ")[0].split("."); if (e[0] < 2 && e[1] < 9 || 1 == e[0] && 9 == e[1] && e[2] < 1 || e[0] > 3) throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4"); }(t), function (t) { "use strict"; t.fn.emulateTransitionEnd = function (e) { var n = !1, i = this; t(this).one("bsTransitionEnd", (function () { n = !0; })); return setTimeout((function () { n || t(i).trigger(t.support.transition.end); }), e), this; }, t((function () { t.support.transition = function () { var t = document.createElement("bootstrap"), e = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd otransitionend", transition: "transitionend" }; for (var n in e) if (void 0 !== t.style[n]) return { end: e[n] }; return !1; }(), t.support.transition && (t.event.special.bsTransitionEnd = { bindType: t.support.transition.end, delegateType: t.support.transition.end, handle: function (e) { if (t(e.target).is(this)) return e.handleObj.handler.apply(this, arguments); } }); })); }(t), function (t) { "use strict"; var e = '[data-dismiss="alert"]', n = function (n) { t(n).on("click", e, this.close); }; n.VERSION = "3.3.7", n.TRANSITION_DURATION = 150, n.prototype.close = function (e) { var i = t(this), r = i.attr("data-target"); r || (r = (r = i.attr("href")) && r.replace(/.*(?=#[^\s]*$)/, "")); var o = t("#" === r ? [] : r); function s() { o.detach().trigger("closed.bs.alert").remove(); } e && e.preventDefault(), o.length || (o = i.closest(".alert")), o.trigger(e = t.Event("close.bs.alert")), e.isDefaultPrevented() || (o.removeClass("in"), t.support.transition && o.hasClass("fade") ? o.one("bsTransitionEnd", s).emulateTransitionEnd(n.TRANSITION_DURATION) : s()); }; var i = t.fn.alert; t.fn.alert = function (e) { return this.each((function () { var i = t(this), r = i.data("bs.alert"); r || i.data("bs.alert", r = new n(this)), "string" == typeof e && r[e].call(i); })); }, t.fn.alert.Constructor = n, t.fn.alert.noConflict = function () { return t.fn.alert = i, this; }, t(document).on("click.bs.alert.data-api", e, n.prototype.close); }(t), function (t) { "use strict"; var e = function (n, i) { this.$element = t(n), this.options = t.extend({}, e.DEFAULTS, i), this.isLoading = !1; }; function n(n) { return this.each((function () { var i = t(this), r = i.data("bs.button"), o = "object" == typeof n && n; r || i.data("bs.button", r = new e(this, o)), "toggle" == n ? r.toggle(
49) : n && r.setState(n); })); } e.VERSION = "3.3.7", e.DEFAULTS = { loadingText: "loading..." }, e.prototype.setState = function (e) { var n = "disabled", i = this.$element, r = i.is("input") ? "val" : "html", o = i.data(); e += "Text", null == o.resetText && i.data("resetText", i[r]()), setTimeout(t.proxy((function () { i[r](null == o[e] ? this.options[e] : o[e]), "loadingText" == e ? (this.isLoading = !0, i.addClass(n).attr(n, n).prop(n, !0)) : this.isLoading && (this.isLoading = !1, i.removeClass(n).removeAttr(n).prop(n, !1)); }), this), 0); }, e.prototype.toggle = function () { var t = !0, e = this.$element.closest('[data-toggle="buttons"]'); if (e.length) { var n = this.$element.find("input"); "radio" == n.prop("type") ? (n.prop("checked") && (t = !1), e.find(".active").removeClass("active"), this.$element.addClass("active")) : "checkbox" == n.prop("type") && (n.prop("checked") !== this.$element.hasClass("active") && (t = !1), this.$element.toggleClass("active")), n.prop("checked", this.$element.hasClass("active")), t && n.trigger("change"); } else this.$element.attr("aria-pressed", !this.$element.hasClass("active")), this.$element.toggleClass("active"); }; var i = t.fn.button; t.fn.button = n, t.fn.button.Constructor = e, t.fn.button.noConflict = function () { return t.fn.button = i, this; }, t(document).on("click.bs.button.data-api", '[data-toggle^="button"]', (function (e) { var i = t(e.target).closest(".btn"); n.call(i, "toggle"), t(e.target).is('input[type="radio"], input[type="checkbox"]') || (e.preventDefault(), i.is("input,button") ? i.trigger("focus") : i.find("input:visible,button:visible").first().trigger("focus")); })).on("focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', (function (e) { t(e.target).closest(".btn").toggleClass("focus", /^focus(in)?$/.test(e.type)); })); }(t), function (t) { "use strict"; var e = function (e, n) { this.$element = t(e), this.$indicators = this.$element.find(".carousel-indicators"), this.options = n, this.paused = null, this.sliding = null, this.interval = null, this.$active = null, this.$items = null, this.options.keyboard && this.$element.on("keydown.bs.carousel", t.proxy(this.keydown, this)), "hover" == this.options.pause && !("ontouchstart" in document.documentElement) && this.$element.on("mouseenter.bs.carousel", t.proxy(this.pause, this)).on("mouseleave.bs.carousel", t.proxy(this.cycle, this)); }; function n(n) { return this.each((function () { var i = t(this), r = i.data("bs.carousel"), o = t.extend({}, e.DEFAULTS, i.data(), "object" == typeof n && n), s = "string" == typeof n ? n : o.slide; r || i.data("bs.carousel", r = new e(this, o)), "number" == typeof n ? r.to(n) : s ? r[s]() : o.interval && r.pause().cycle(); })); } e.VERSION = "3.3.7", e.TRANSITION_DURATION = 600, e.DEFAULTS = { interval: 5e3, pause: "hover", wrap: !0, keyboard: !0 }, e.prototype.keydown = function (t) { if (!/input|textarea/i.test(t.target.tagName)) { switch (t.which) { case 37: this.prev(); break; case 39: this.next(); break; default: return; }t.preventDefault(); } }, e.prototype.cycle = function (e) { return e || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(t.proxy(this.next, this), this.options.interval)), this; }, e.prototype.getItemIndex = function (t) { return this.$items = t.parent().children(".item"), this.$items.index(t || this.$active); }, e.prototype.getItemForDirection = function (t, e) { var n = this.getItemIndex(e); if (("prev" == t && 0 === n || "next" == t && n == this.$items.length - 1) && !this.options.wrap) return e; var i = (n + ("prev" == t ? -1 : 1)) % this.$items.length; return this.$items.eq(i); }, e.prototype.to = function (t) { var e = this, n = this.getItemIndex(this.$active = this.$element.find(".item.active")); if (!(t > this.$items.length - 1 || t < 0)) return this.sliding ? this.$element.one("slid.bs.carousel", (function () { e.to(t); })) : n == t ? this.pause().cycle() : this.slide(t > n ? "next" : "prev", this.$items.eq(t)); }, e.prototype.pause = function (e) { return e || (this.paused = !0), this.$element.find(".next, .prev").length && t.support.transition && (this.$element.trigger(t.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this; }, e.prototype.next = function () { if (!this.sliding) return this.slide("next"); }, e.prototype.prev = function () { if (!this.sliding) return this.slide("prev"); }, e.prototype.slide = function (n, i) { var r = this.$element.find(".
49item.active"), o = i || this.getItemForDirection(n, r), s = this.interval, a = "next" == n ? "left" : "right", l = this; if (o.hasClass("active")) return this.sliding = !1; var c = o[0], u = t.Event("slide.bs.carousel", { relatedTarget: c, direction: a }); if (this.$element.trigger(u), !u.isDefaultPrevented()) { if (this.sliding = !0, s && this.pause(), this.$indicators.length) { this.$indicators.find(".active").removeClass("active"); var h = t(this.$indicators.children()[this.getItemIndex(o)]); h && h.addClass("active"); } var f = t.Event("slid.bs.carousel", { relatedTarget: c, direction: a }); return t.support.transition && this.$element.hasClass("slide") ? (o.addClass(n), o[0].offsetWidth, r.addClass(a), o.addClass(a), r.one("bsTransitionEnd", (function () { o.removeClass([n, a].join(" ")).addClass("active"), r.removeClass(["active", a].join(" ")), l.sliding = !1, setTimeout((function () { l.$element.trigger(f); }), 0); })).emulateTransitionEnd(e.TRANSITION_DURATION)) : (r.removeClass("active"), o.addClass("active"), this.sliding = !1, this.$element.trigger(f)), s && this.cycle(), this; } }; var i = t.fn.carousel; t.fn.carousel = n, t.fn.carousel.Constructor = e, t.fn.carousel.noConflict = function () { return t.fn.carousel = i, this; }; var r = function (e) { var i, r = t(this), o = t(r.attr("data-target") || (i = r.attr("href")) && i.replace(/.*(?=#[^\s]+$)/, "")); if (o.hasClass("carousel")) { var s = t.extend({}, o.data(), r.data()), a = r.attr("data-slide-to"); a && (s.interval = !1), n.call(o, s), a && o.data("bs.carousel").to(a), e.preventDefault(); } }; t(document).on("click.bs.carousel.data-api", "[data-slide]", r).on("click.bs.carousel.data-api", "[data-slide-to]", r), t(window).on("load", (function () { t('[data-ride="carousel"]').each((function () { var e = t(this); n.call(e, e.data()); })); })); }(t), function (t) { "use strict"; var e = function (n, i) { this.$element = t(n), this.options = t.extend({}, e.DEFAULTS, i), this.$trigger = t('[data-toggle="collapse"][href="#' + n.id + '"],[data-toggle="collapse"][data-target="#' + n.id + '"]'), this.transitioning = null, this.options.parent ? this.$parent = this.getParent() : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle(); }; function n(e) { var n, i = e.attr("data-target") || (n = e.attr("href")) && n.replace(/.*(?=#[^\s]+$)/, ""); return t(i); } function i(n) { return this.each((function () { var i = t(this), r = i.data("bs.collapse"), o = t.extend({}, e.DEFAULTS, i.data(), "object" == typeof n && n); !r && o.toggle && /show|hide/.test(n) && (o.toggle = !1), r || i.data("bs.collapse", r = new e(this, o)), "string" == typeof n && r[n](); })); } e.VERSION = "3.3.7", e.TRANSITION_DURATION = 350, e.DEFAULTS = { toggle: !0 }, e.prototype.dimension = function () { return this.$element.hasClass("width") ? "width" : "height"; }, e.prototype.show = function () { if (!this.transitioning && !this.$element.hasClass("in")) { var n, r = this.$parent && this.$parent.children(".panel").children(".in, .collapsing"); if (!(r && r.length && (n = r.data("bs.collapse")) && n.transitioning)) { var o = t.Event("show.bs.collapse"); if (this.$element.trigger(o), !o.isDefaultPrevented()) { r && r.length && (i.call(r, "hide"), n || r.data("bs.collapse", null)); var s = this.dimension(); this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded", !0), this.$trigger.removeClass("collapsed").attr("aria-expanded", !0), this.transitioning = 1; var a = function () { this.$element.removeClass("collapsing").addClass("collapse in")[s](""), this.transitioning = 0, this.$element.trigger("shown.bs.collapse"); }; if (!t.support.transition) return a.call(this); var l = t.camelCase(["scroll", s].join("-")); this.$element.one("bsTransitionEnd", t.proxy(a, this)).emulateTransitionEnd(e.TRANSITION_DURATION)[s](this.$element[0][l]); } } } }, e.prototype.hide = function () { if (!this.transitioning && this.$element.hasClass("in")) { var n = t.Event("hide.bs.collapse"); if (this.$element.trigger(n), !n.isDefaultPrevented()) { var i = this.dimension(); this.$element[i](this.$element[i]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1), this.$trigger.addClass("collapsed").attr("aria-expanded", !1), this.transitioning = 1; var r = function () { this.transitioning = 0, this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse"); }; if (!t.support.transition) return r.call(this); this.$element[i](0).one("bsTransitionEnd", t.proxy(r, this)).emulateTransitionEnd(e.TRANSITION_DURATION); } } }, e.prototype.toggle = function () { this[this.$element.hasClass("in") ? "hide" : "show"](); }, e.prototype.getParent = function () { return t(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(t.proxy((function (e, i) { var r = t(i); this.addAriaAndCollapsedClass(n(r), r); }), this)).end(); }, e.prototype.addAriaAndCollapsedClass = function (t, e) { var n = t.hasClass("in"); t.attr("aria-expanded", n), e.toggleClass("collapsed", !n).attr("aria-expanded", n); }; var r = t.fn.collapse; t.fn.collapse = i, t.fn.collapse.Constructor = e, t.fn.collapse.noConflict = function () { return t.fn.collapse = r, this; }, t(document).on("click.bs.collapse.data-api", '[data-toggle="collapse"]', (function (e) { var r = t(this); r.attr("data-target") || e.preventDefault(); var o = n(r), s = o.data("bs.collapse") ? "toggle" : r.data(); i.call(o, s); })); }(t), function (t) { "use strict"; var e = '[data-toggle="dropdown"]', n = function (e) { t(e).on("click.bs.dropdown", this.toggle); }; function i(e) { var n = e.attr("data-target"); n || (n = (n = e.attr("href")) && /#[A-Za-z]/.test(n) && n.replace(/.*(?=#[^\s]*$)/, "")); var i = n && t(n); return i && i.length ? i : e.parent(); } function r(n) { n && 3 === n.which || (t(".dropdown-backdrop").remove(), t(e).each((function () { var e = t(this), r = i(e), o = { relatedTarget: this }; r.hasClass("open") && (n && "click" == n.type && /input|textarea/i.test(n.target.tagName) && t.contains(r[0], n.target) || (r.trigger(n = t.Event("hide.bs.dropdown", o)), n.isDefaultPrevented() || (e.attr("aria-expanded", "false"), r.removeClass("open").trigger(t.Event("hidden.bs.dropdown", o))))); }))); } n.VERSION = "3.3.7", n.prototype.toggle = function (e) { var n = t(this); if (!n.is(".disabled, :disabled")) { var o = i(n), s = o.hasClass("open"); if (r(), !s) { "ontouchstart" in document.documentElement && !o.closest(".
49navbar-nav").length && t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click", r); var a = { relatedTarget: this }; if (o.trigger(e = t.Event("show.bs.dropdown", a)), e.isDefaultPrevented()) return; n.trigger("focus").attr("aria-expanded", "true"), o.toggleClass("open").trigger(t.Event("shown.bs.dropdown", a)); } return !1; } }, n.prototype.keydown = function (n) { if (/(38|40|27|32)/.test(n.which) && !/input|textarea/i.test(n.target.tagName)) { var r = t(this); if (n.preventDefault(), n.stopPropagation(), !r.is(".disabled, :disabled")) { var o = i(r), s = o.hasClass("open"); if (!s && 27 != n.which || s && 27 == n.which) return 27 == n.which && o.find(e).trigger("focus"), r.trigger("click"); var a = o.find(".dropdown-menu li:not(.disabled):visible a"); if (a.length) { var l = a.index(n.target); 38 == n.which && l > 0 && l--, 40 == n.which && l < a.length - 1 && l++, ~l || (l = 0), a.eq(l).trigger("focus"); } } } }; var o = t.fn.dropdown; t.fn.dropdown = function (e) { return this.each((function () { var i = t(this), r = i.data("bs.dropdown"); r || i.data("bs.dropdown", r = new n(this)), "string" == typeof e && r[e].call(i); })); }, t.fn.dropdown.Constructor = n, t.fn.dropdown.noConflict = function () { return t.fn.dropdown = o, this; }, t(document).on("click.bs.dropdown.data-api", r).on("click.bs.dropdown.data-api", ".dropdown form", (function (t) { t.stopPropagation(); })).on("click.bs.dropdown.data-api", e, n.prototype.toggle).on("keydown.bs.dropdown.data-api", e, n.prototype.keydown).on("keydown.bs.dropdown.data-api", ".dropdown-menu", n.prototype.keydown); }(t), function (t) { "use strict"; var e = function (e, n) { this.options = n, this.$body = t(document.body), this.$element = t(e), this.$dialog = this.$element.find(".modal-dialog"), this.$backdrop = null, this.isShown = null, this.originalBodyPad = null, this.scrollbarWidth = 0, this.ignoreBackdropClick = !1, this.options.remote && this.$element.find(".modal-content").load(this.options.remote, t.proxy((function () { this.$element.trigger("loaded.bs.modal"); }), this)); }; function n(n, i) { return this.each((function () { var r = t(this), o = r.data("bs.modal"), s = t.extend({}, e.DEFAULTS, r.data(), "object" == typeof n && n); o || r.data("bs.modal", o = new e(this, s)), "string" == typeof n ? o[n](i) : s.show && o.show(i); })); } e.VERSION = "3.3.7", e.TRANSITION_DURATION = 300, e.BACKDROP_TRANSITION_DURATION = 150, e.DEFAULTS = { backdrop: !0, keyboard: !0, show: !0 }, e.prototype.toggle = function (t) { return this.isShown ? this.hide() : this.show(t); }, e.prototype.show = function (n) { var i = this, r = t.Event("show.bs.modal", { relatedTarget: n }); this.$element.trigger(r), this.isShown || r.isDefaultPrevented() || (this.isShown = !0, this.checkScrollbar(), this.setScrollbar(), this.$body.addClass("modal-open"), this.escape(), this.resize(), this.$element.on("click.dismiss.bs.modal", '[data-dismiss="modal"]', t.proxy(this.hide, this)), this.$dialog.on("mousedown.dismiss.bs.modal", (function () { i.$element.one("mouseup.dismiss.bs.modal", (function (e) { t(e.target).is(i.$element) && (i.ignoreBackdropClick = !0); })); })), this.backdrop((function () { var r = t.support.transition && i.$element.hasClass("fade"); i.$element.parent().length || i.$element.appendTo(i.$body), i.$element.show().scrollTop(0), i.adjustDialog(), r && i.$element[0].offsetWidth, i.$element.addClass("in"), i.enforceFocus(); var o = t.Event("shown.bs.modal", { relatedTarget: n }); r ? i.$dialog.one("bsTransitionEnd", (function () { i.$element.trigger("focus").trigger(o); })).emulateTransitionEnd(e.TRANSITION_DURATION) : i.$element.trigger("focus").trigger(o); }))); }, e.prototype.hide = function (n) { n && n.preventDefault(), n = t.Event("hide.bs.modal"), this.$element.trigger(n), this.isShown && !n.isDefaultPrevented() && (this.isShown = !1, this.escape(), this.resize(), t(document).off("focusin.bs.modal"), this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"), this.$dialog.off("mousedown.dismiss.bs.modal"), t.support.transition && this.$element.hasClass("fade") ? this.$element.one("bsTransitionEnd", t.proxy(this.hideModal, this)).emulateTransitionEnd(e.TRANSITION_DURATION) : this.hideModal()); }, e.prototype.enforceFocus = function () { t(document).off("focusin.bs.modal").on("focusin.bs.modal", t.proxy((function (t) { document === t.target || this.$element[0] === t.target || this.$element.has(t.target).length || this.$element.trigger("focus"); }), this)); }, e.prototype.escape = function () { this.isShown && this.options.keyboard ? this.$element.on("key
49down.dismiss.bs.modal", t.proxy((function (t) { 27 == t.which && this.hide(); }), this)) : this.isShown || this.$element.off("keydown.dismiss.bs.modal"); }, e.prototype.resize = function () { this.isShown ? t(window).on("resize.bs.modal", t.proxy(this.handleUpdate, this)) : t(window).off("resize.bs.modal"); }, e.prototype.hideModal = function () { var t = this; this.$element.hide(), this.backdrop((function () { t.$body.removeClass("modal-open"), t.resetAdjustments(), t.resetScrollbar(), t.$element.trigger("hidden.bs.modal"); })); }, e.prototype.removeBackdrop = function () { this.$backdrop && this.$backdrop.remove(), this.$backdrop = null; }, e.prototype.backdrop = function (n) { var i = this, r = this.$element.hasClass("fade") ? "fade" : ""; if (this.isShown && this.options.backdrop) { var o = t.support.transition && r; if (this.$backdrop = t(document.createElement("div")).addClass("modal-backdrop " + r).appendTo(this.$body), this.$element.on("click.dismiss.bs.modal", t.proxy((function (t) { this.ignoreBackdropClick ? this.ignoreBackdropClick = !1 : t.target === t.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus() : this.hide()); }), this)), o && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !n) return; o ? this.$backdrop.one("bsTransitionEnd", n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION) : n(); } else if (!this.isShown && this.$backdrop) { this.$backdrop.removeClass("in"); var s = function () { i.removeBackdrop(), n && n(); }; t.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one("bsTransitionEnd", s).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION) : s(); } else n && n(); }, e.prototype.handleUpdate = function () { this.adjustDialog(); }, e.prototype.adjustDialog = function () { var t = this.$element[0].scrollHeight > document.documentElement.clientHeight; this.$element.css({ paddingLeft: !this.bodyIsOverflowing && t ? this.scrollbarWidth : "", paddingRight: this.bodyIsOverflowing && !t ? this.scrollbarWidth : "" }); }, e.prototype.resetAdjustments = function () { this.$element.css({ paddingLeft: "", paddingRight: "" }); }, e.prototype.checkScrollbar = function () { var t = window.innerWidth; if (!t) { var e = document.documentElement.getBoundingClientRect(); t = e.right - Math.abs(e.left); } this.bodyIsOverflowing = document.body.clientWidth < t, this.scrollbarWidth = this.measureScrollbar(); }, e.prototype.setScrollbar = function () { var t = parseInt(this.$body.css("padding-right") || 0, 10); this.originalBodyPad = document.body.style.paddingRight || "", this.bodyIsOverflowing && this.$body.css("padding-right", t + this.scrollbarWidth); }, e.prototype.resetScrollbar = function () { this.$body.css("padding-right", this.originalBodyPad); }, e.prototype.measureScrollbar = function () { var t = document.createElement("div"); t.className = "modal-scrollbar-measure", this.$body.append(t); var e = t.offsetWidth - t.clientWidth; return this.$body[0].removeChild(t), e; }; var i = t.fn.modal; t.fn.modal = n, t.fn.modal.Constructor = e, t.fn.modal.noConflict = function () { return t.fn.modal = i, this; }, t(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', (function (e) { var i = t(this), r = i.attr("href"), o = t(i.attr("data-target") || r && r.replace(/.*(?=#[^\s]+$)/, "")), s = o.data("bs.modal") ? "toggle" : t.extend({ remote: !/#/.test(r) && r }, o.data(), i.data()); i.is("a") && e.preventDefault(), o.one("show.bs.modal", (function (t) { t.isDefaultPrevented() || o.one("hidden.bs.modal", (function () { i.is(":visible") && i.trigger("focus"); })); })), n.call(o, s, this); })); }(t), function (t) { "use strict"; var e = function (t, e) { this.type = null, this.options = null, this.enabled = null, this.timeout = null, this.hoverState = null, this.$element = null, this.inState = null, this.init("tooltip", t, e); }; e.VERSION = "3.3.7", e.TRANSITION_DURATION = 150, e.DEFAULTS = { animation: !0, placement: "top", selector: !1, template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', trigger: "hover focus", title: "", delay: 0, html: !1, container: !1, viewport: { selector: "body", padding: 0 } }, e.prototype.init = function (e, n, i) { if (this.enabled = !0, this.type = e, this.$element = t(n), this.options = this.getOptions(i), this.$viewport = this.options.viewport && t(t.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport), this.inState = { click: !1, hover: !1, focus: !1 }, this.$element[0] instanceof document.constructor && !this.options.selector) throw new Error("`selector` option must be specified when initializing " + this.type + " on the window.document object!"); for (var r = this.options.trigger.split(" "), o = r.length; o--;) { var s = r[o]; if ("click" == s) this.$element.on("click." + this.type, this.options.selector, t.proxy(this.toggle, this)); else if ("manual" != s) { var a = "hover" == s ? "mouseenter" : "focusin", l = "hover" == s ? "mouseleave" : "focusout"; this.$element.on(a + "." + this.type, this.options.selector, t.proxy(this.enter, this)), this.$element.on(l + "." + this.type, this.options.selector, t.proxy(this.leave, this)); } } this.options.selector ? this._options = t.extend({}, this.options, { trigger: "manual", selector: "" }) : this.fixTitle(); }, e.prototype.getDefaults = function () { return e.DEFAULTS; }, e.prototype.getOptions = function (e) { return (e = t.extend({}, this.getDefaults(), this.$element.data(), e)).delay && "number" == typeof e.delay && (e.delay = { show: e.delay, hide: e.delay }), e; }, e.prototype.getDelegateOptions = function () { var e = {}, n = this.getDefaults(); return this._options && t.each(this._options, (function (t, i) { n[t] != i && (e[t] = i); })), e; }, e.prototype.enter = function (e) { var n = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type); if (n || (n = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, n)), e instanceof t.Event && (n.inState["focusin" == e.type ? "focus" : "hover"] = !0), n.tip().hasClass("in") || "in" == n.hoverState) n.hoverState = "in"; else { if (clearTimeout(n.timeout), n.hoverState = "in", !n.options.delay || !n.options.delay.show) return n.show(); n.timeout = setTimeout((function () { "in" == n.hoverState && n.show(); }), n.options.delay.show); } }, e.prototype.isInStateTrue = function () { for (var t in this.inState) if (this.inState[t]) return !0; return !1; }, e.prototype.leave = function (e) { var n = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type); if (n || (n = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, n)), e instanceof t.Event && (n.inState["focusout" == e.type ? "focus" : "hover"] = !1), !n.isInStateTrue()) { if (clearTimeout(n.timeout), n.hoverState = "out", !n.options.delay || !n.options.delay.hide) return n.hide(); n.timeout = setTimeout((function () { "out" == n.hoverState && n.hide(); }), n.options.delay.hide); } }, e.prototype.show = function () { var n = t.Event("show.bs." + this.type); if (this.hasContent() && this.enabled) { this.$element.trigger(n); var i = t.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]); if (n.isDefaultPrevented() || !i) return; var r = this, o = this.tip(), s = this.getUID(this.type); this.setContent(), o.attr("id", s), this.$element.attr("aria-describedby", s), this.options.animation && o.addClass("fade"); var a = "function" == typeof this.options.placement ? this.options.placement.call(this, o[0], this.$element[0]) : this.options.placement, l = /\s?auto?\s?/i, c = l.test(a); c && (a = a.replace(l, "") || "top"), o.detach().css({ top: 0, left: 0, display: "block" }).addClass(a).data("bs." + this.type, this), this.options.container ? o.appendTo(this.options.container) : o.insertAfter(this.$element), this.$element.trigger("inserted.bs." + this.type); var u = this.getPosition(), h = o[0].offsetWidth, f = o[0].offsetHeight; if (c) { var d = a, p = this.getPosition(this.$viewport); a = "bottom" == a && u.bottom + f > p.bottom ? "top" : "top" == a && u.top - f < p.top ? "bottom" : "right" == a && u.right + h > p.width ? "left" : "left" == a && u.left - h < p.left ? "right" : a, o.removeClass(d).addClass(a); } var v = this.getCalculatedOffset(a, u, h, f); this.applyPlacement(v, a); var g = function () { var t = r.hoverState; r.$element.trigger("shown.bs." + r.type), r.hoverState = null, "out" == t && r.leave(r); }; t.support.transition && this.$tip.hasClass("fade") ? o.one("bsTransitionEnd", g).emulateTransitionEnd(e.TRANSITION_DURATION) : g(); } }, e.prototype.applyPlacement = function (e, n) { var i = this.tip(), r = i[0].offsetWidth, o = i[0].offsetHeight, s = parseInt(i.css("margin-top"), 10), a = parseInt(i.css("margin-left"), 10); isNaN(s) && (s = 0), isNaN(a) && (a = 0), e.top += s, e.left += a, t.offset.setOffset(i[0], t.extend({ using: function (t) { i.css({ top: Math.round(t.top), left: Math.round(t.left) }); } }, e), 0), i.addClass("in"); var l = i[0].offsetWidth, c = i[0].offsetHeight; "top" == n && c != o && (e.top = e.top + o - c); var u = this.getViewportAdjustedDelta(n, e, l, c); u.left ? e.left += u.left : e.top += u.top;
49 var h = /top|bottom/.test(n), f = h ? 2 * u.left - r + l : 2 * u.top - o + c, d = h ? "offsetWidth" : "offsetHeight"; i.offset(e), this.replaceArrow(f, i[0][d], h); }, e.prototype.replaceArrow = function (t, e, n) { this.arrow().css(n ? "left" : "top", 50 * (1 - t / e) + "%").css(n ? "top" : "left", ""); }, e.prototype.setContent = function () { var t = this.tip(), e = this.getTitle(); t.find(".tooltip-inner")[this.options.html ? "html" : "text"](e), t.removeClass("fade in top bottom left right"); }, e.prototype.hide = function (n) { var i = this, r = t(this.$tip), o = t.Event("hide.bs." + this.type); function s() { "in" != i.hoverState && r.detach(), i.$element && i.$element.removeAttr("aria-describedby").trigger("hidden.bs." + i.type), n && n(); } if (this.$element.trigger(o), !o.isDefaultPrevented()) return r.removeClass("in"), t.support.transition && r.hasClass("fade") ? r.one("bsTransitionEnd", s).emulateTransitionEnd(e.TRANSITION_DURATION) : s(), this.hoverState = null, this; }, e.prototype.fixTitle = function () { var t = this.$element; (t.attr("title") || "string" != typeof t.attr("data-original-title")) && t.attr("data-original-title", t.attr("title") || "").attr("title", ""); }, e.prototype.hasContent = function () { return this.getTitle(); }, e.prototype.getPosition = function (e) { var n = (e = e || this.$element)[0], i = "BODY" == n.tagName, r = n.getBoundingClientRect(); null == r.width && (r = t.extend({}, r, { width: r.right - r.left, height: r.bottom - r.top })); var o = window.SVGElement && n instanceof window.SVGElement, s = i ? { top: 0, left: 0 } : o ? null : e.offset(), a = { scroll: i ? document.documentElement.scrollTop || document.body.scrollTop : e.scrollTop() }, l = i ? { width: t(window).width(), height: t(window).height() } : null; return t.extend({}, r, a, l, s); }, e.prototype.getCalculatedOffset = function (t, e, n, i) { return "bottom" == t ? { top: e.top + e.height, left: e.left + e.width / 2 - n / 2 } : "top" == t ? { top: e.top - i, left: e.left + e.width / 2 - n / 2 } : "left" == t ? { top: e.top + e.height / 2 - i / 2, left: e.left - n } : { top: e.top + e.height / 2 - i / 2, left: e.left + e.width }; }, e.prototype.getViewportAdjustedDelta = function (t, e, n, i) { var r = { top: 0, left: 0 }; if (!this.$viewport) return r; var o = this.options.viewport && this.options.viewport.padding || 0, s = this.getPosition(this.$viewport); if (/right|left/.test(t)) { var a = e.top - o - s.scroll, l = e.top + o - s.scroll + i; a < s.top ? r.top = s.top - a : l > s.top + s.height && (r.top = s.top + s.height - l); } else { var c = e.left - o, u = e.left + o + n; c < s.left ? r.left = s.left - c : u > s.right && (r.left = s.left + s.width - u); } return r; }, e.prototype.getTitle = function () { var t = this.$element, e = this.options; return t.attr("data-original-title") || ("function" == typeof e.title ? e.title.call(t[0]) : e.title); }, e.prototype.getUID = function (t) { do { t += ~~(1e6 * Math.random()); } while (document.getElementById(t)); return t; }, e.prototype.tip = function () { if (!this.$tip && (this.$tip = t(this.options.template), 1 != this.$tip.length)) throw new Error(this.type + " `template` option must consist of exactly 1 top-level element!"); return this.$tip; }, e.prototype.arrow = function () { return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow"); }, e.prototype.enable = function () { this.enabled = !0; }, e.prototype.disable = function () { this.enabled = !1; }, e.prototype.toggleEnabled = function () { this.enabled = !this.enabled; }, e.prototype.toggle = function (e) { var n = this; e && ((n = t(e.currentTarget).data("bs." + this.type)) || (n = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, n))), e ? (n.inState.click = !n.inState.click, n.isInStateTrue() ? n.enter(n) : n.leave(n)) : n.tip().hasClass("in") ? n.leave(n) : n.enter(n); }, e.prototype.destroy = function () { var t = this; clearTimeout(this.timeout), this.hide((function () { t.$element.off("." + t.type).removeData("bs." + t.type), t.$tip && t.$tip.detach(), t.$tip = null, t.$arrow = null, t.$viewport = null, t.$element = null; })); }; var n = t.fn.tooltip; t.fn.tooltip = function (n) { return this.each((function () { var i = t(this), r = i.data("bs.tooltip"), o = "object" == typeof n && n; !r && /destroy|hide/.test(n) || (r || i.data("bs.tooltip", r = new e(this, o)), "string" == typeof n && r[n]()); })); }, t.fn.tooltip.Constructor = e, t.fn.tooltip.noConflict = function () { return t.fn.tooltip = n, this; }; }(t), function (t) { "use strict"; var e = function (t, e) { this.init("popover", t, e); }; if (!t.fn.tooltip) throw new Error("Popover requires tooltip.js"); e.VERSION = "3.3.7", e.DEFAULTS = t.extend({}, t.fn.tooltip.Constructor.DEFAULTS, { placement: "right", trigger: "click", content: "", template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' }), (e.prototype = t.extend({}, t.fn.tooltip.Constructor.prototype)).constructor = e, e.prototype.getDefaults = function () { return e.DEFAULTS; }, e.prototype.setContent = function () { var t = this.tip(), e = this.getTitle(), n = this.getContent(); t.find(".popover-title")[this.options.html ? "html" : "text"](e), t.find(".popover-content").children().detach().end()[this.options.html ? "string" == typeof n ? "html" : "append" : "text"](n), t.removeClass("fade top bottom left right in"), t.find(".popover-title").html() || t.find(".popover-title").hide(); }, e.prototype.hasContent = function () { return this.getTitle() || this.getContent(); }, e.prototype.getContent = function () { var t = this.$element, e = this.options; return t.attr("data-content") || ("function" == typeof e.content ? e.content.call(t[0]) : e.content); }, e.prototype.arrow = function () { return this.$arrow = this.$arrow || this.tip().find(".arrow"); }; var n = t.fn.popover; t.fn.popover = function (n) { return this.each((function () { var i = t(this), r = i.data("bs.popover"), o = "object" == typeof n && n; !r && /destroy|hide/.test(n) || (r || i.data("bs.popover", r = new e(this, o)), "string" == typeof n && r[n]()); })); }, t.fn.popover.Constructor = e, t.fn.popover.noConflict = function () { return t.fn.popover = n, this; }; }(t), function (t) { "use strict"; function e(n, i) { this.$body = t(document.body), this.$scrollElement = t(n).is(document.body) ? t(window) : t(n), this.options = t.extend({}, e.DEFAULTS, i), this.selector = (this.options.target || "") + " .nav li > a", this.offsets = [], this.targets = [], this.activeTarget = null, this.scrollHeight = 0, this.$scrollElement.on("scroll.bs.scrollspy", t.proxy(this.process, this)), this.refresh(), this.process(); } function n(n) { return this.each((function () { var i = t(this), r = i.data("bs.scrollspy"), o = "object" == typeof n && n; r || i.data("bs.scrollspy", r = new e(this, o)), "string" == typeof n && r[n](); })); } e.VERSION = "3.3.7", e.DEFAULTS = { offset: 10 }, e.prototype.getScrollHeight = function () { return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight); }, e.prototype.refresh = function () { var e = this, n = "offset", i = 0; this.offsets = [], this.targets = [], this.scrollHeight = this.get
49ScrollHeight(), t.isWindow(this.$scrollElement[0]) || (n = "position", i = this.$scrollElement.scrollTop()), this.$body.find(this.selector).map((function () { var e = t(this), r = e.data("target") || e.attr("href"), o = /^#./.test(r) && t(r); return o && o.length && o.is(":visible") && [[o[n]().top + i, r]] || null; })).sort((function (t, e) { return t[0] - e[0]; })).each((function () { e.offsets.push(this[0]), e.targets.push(this[1]); })); }, e.prototype.process = function () { var t, e = this.$scrollElement.scrollTop() + this.options.offset, n = this.getScrollHeight(), i = this.options.offset + n - this.$scrollElement.height(), r = this.offsets, o = this.targets, s = this.activeTarget; if (this.scrollHeight != n && this.refresh(), e >= i) return s != (t = o[o.length - 1]) && this.activate(t); if (s && e < r[0]) return this.activeTarget = null, this.clear(); for (t = r.length; t--;)s != o[t] && e >= r[t] && (void 0 === r[t + 1] || e < r[t + 1]) && this.activate(o[t]); }, e.prototype.activate = function (e) { this.activeTarget = e, this.clear(); var n = this.selector + '[data-target="' + e + '"],' + this.selector + '[href="' + e + '"]', i = t(n).parents("li").addClass("active"); i.parent(".dropdown-menu").length && (i = i.closest("li.dropdown").addClass("active")), i.trigger("activate.bs.scrollspy"); }, e.prototype.clear = function () { t(this.selector).parentsUntil(this.options.target, ".active").removeClass("active"); }; var i = t.fn.scrollspy; t.fn.scrollspy = n, t.fn.scrollspy.Constructor = e, t.fn.scrollspy.noConflict = function () { return t.fn.scrollspy = i, this; }, t(window).on("load.bs.scrollspy.data-api", (function () { t('[data-spy="scroll"]').each((function () { var e = t(this); n.call(e, e.data()); })); })); }(t), function (t) { "use strict"; var e = function (e) { this.element = t(e); }; function n(n) { return this.each((function () { var i = t(this), r = i.data("bs.tab"); r || i.data("bs.tab", r = new e(this)), "string" == typeof n && r[n](); })); } e.VERSION = "3.3.7", e.TRANSITION_DURATION = 150, e.prototype.show = function (m) { var e = this.element, n = e.closest("ul:not(.dropdown-menu)"), i = e.data("target"); if (i || (i = (i = e.attr("href")) && i.replace(/.*(?=#[^\s]*$)/, "")), !e.parent("li").hasClass("active")) { var r = n.find(".active:last a"), o = t.Event("hide.bs.tab", { relatedTarget: e[0] }), s = t.Event("show.bs.tab", { relatedTarget: r[0] }); if (r.trigger(o), e.trigger(s), !s.isDefaultPrevented() && !o.isDefaultPrevented()) { var a = t(i); this.activate(e.closest("li"), n), this.activate(a, a.parent(), (function () { r.trigger({ type: "hidden.bs.tab", relatedTarget: e[0] }), e.trigger({ type: "shown.bs.tab", relatedTarget: r[0] }); })); } } }, e.prototype.activate = function (n, i, r) { var o = i.find(">
49 .active"), s = r && t.support.transition && (o.length && o.hasClass("fade") || !!i.find("> .fade").length); function a() { o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !1), n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded", !0), s ? (n[0].offsetWidth, n.addClass("in")) : n.removeClass("fade"), n.parent(".dropdown-menu").length && n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !0), r && r(); } o.length && s ? o.one("bsTransitionEnd", a).emulateTransitionEnd(e.TRANSITION_DURATION) : a(), o.removeClass("in"); }; var i = t.fn.tab; t.fn.tab = n, t.fn.tab.Constructor = e, t.fn.tab.noConflict = function () { return t.fn.tab = i, this; }; var r = function (e) { e.preventDefault(), n.call(t(this), "show"); }; var a = function () { var a = $(this).closest("li"); a.siblings("li").removeClass("active"); a.addClass("active"); a.closest(".container").parent().find(".tab-pane").removeClass("fade in active"); var s = $(this).attr("href"); $(s).addClass("fade in active").show(); return false; }; t(document).on("click ul.nav-tabs li a", '[data-toggle="tab"]', a).on("click.bs.tab.data-api", '[data-toggle="pill"]', r); }(t), function (t) { "use strict"; var e = function (n, i) { this.options = t.extend({}, e.DEFAULTS, i), this.$target = t(this.options.target).on("scroll.bs.affix.data-api", t.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", t.proxy(this.checkPositionWithEventLoop, this)), this.$element = t(n), this.affixed = null, this.unpin = null, this.pinnedOffset = null, this.checkPosition(); }; function n(n) { return this.each((function () { var i = t(this), r = i.data("bs.affix"), o = "object" == typeof n && n; r || i.data("bs.affix", r = new e(this, o)), "string" == typeof n && r[n](); })); } e.VERSION = "3.3.7", e.RESET = "affix affix-top affix-bottom", e.DEFAULTS = { offset: 0, target: window }, e.prototype.getState = function (t, e, n, i) { var r = this.$target.scrollTop(), o = this.$element.offset(), s = this.$target.height(); if (null != n && "top" == this.affixed) return r < n && "top"; if ("bottom" == this.affixed) return null != n ? !(r + this.unpin <= o.top) && "bottom" : !(r + s <= t - i) && "bottom"; var a = null == this.affixed, l = a ? r : o.top; return null != n && r <= n ? "top" : null != i && l + (a ? s : e) >= t - i && "bottom"; }, e.prototype.getPinnedOffset = function () { if (this.pinnedOffset) return this.pinnedOffset; this.$element.removeClass(e.RESET).addClass("affix"); var t = this.$target.scrollTop(), n = this.$element.offset(); return this.pinnedOffset = n.top - t; }, e.prototype.checkPositionWithEventLoop = function () { setTimeout(t.proxy(this.checkPosition, this), 1); }, e.prototype.checkPosition = function () { if (this.$element.is(":visible")) { var n = this.$element.height(), i = this.options.offset, r = i.top, o = i.bottom, s = Math.max(t(document).height(), t(document.body).height()); "object" != typeof i && (o = r = i), "function" == typeof r && (r = i.top(this.$element)), "function" == typeof o && (o = i.bottom(this.$element)); var a = this.getState(s, n, r, o); if (this.affixed != a) { null != this.unpin && this.$element.css("top", ""); var l = "affix" + (a ? "-" + a : ""), c = t.Event(l + ".bs.affix"); if (this.$element.trigger(c), c.isDefaultPrevented()) return; this.affixed = a, this.unpin = "bottom" == a ? this.getPinnedOffset() : null, this.$element.removeClass(e.RESET).addClass(l).trigger(l.replace("affix", "affixed") + ".bs.affix"); } "bottom" == a && this.$element.offset({ top: s - n - o }); } }; var i = t.fn.affix; t.fn.affix = n, t.fn.affix.Constructor = e, t.fn.affix.noConflict = function () { return t.fn.affix = i, this; }, t(window).on("load", (function () { t('[data-spy="affix"]').each((function () { var e = t(this), i = e.data(); i.offset = i.offset || {}, null != i.offsetBottom && (i.offset.bottom = i.offsetBottom), null != i.offsetTop && (i.offset.top = i.offsetTop), n.call(e, i); })); })); }(t);
50        }).call(e, n(0));
51    }, 12: function (t, e, n) { (function (t) { !function (t) { "use strict"; function e(e) { return e.is('[type="checkbox"]') ? e.prop("checked") : e.is('[type="radio"]') ? !!t('[name="' + e.attr("name") + '"]:checked').length : e.is("select[multiple]") ? (e.val() || []).length : e.val(); } var n = function (i, r) { this.options = r, this.validators = t.extend({}, n.VALIDATORS, r.custom), this.$element = t(i), this.$btn = t('button[type="submit"], input[type="submit"]').filter('[form="' + this.$element.attr("id") + '"]').add(this.$element.find('input[type="submit"], button[type="submit"]')), this.update(), this.$element.on("input.bs.validator change.bs.validator focusout.bs.validator", t.proxy(this.onInput, this)), this.$element.on("submit.bs.validator", t.proxy(this.onSubmit, this)), this.$element.on("reset.bs.validator", t.proxy(this.reset, this)), this.$element.find("[data-match]").each((function () { var n = t(this), i = n.attr("data-match"); t(i).on("input.bs.validator", (function (t) { e(n) && n.trigger("input.bs.validator"); })); })), this.$inputs.filter((function () { return e(t(this)) && !t(this).closest(".has-error").length; })).trigger("focusout"), this.$element.attr("novalidate", !0); }; function i(e) { return this.each((function () { var i = t(this), r = t.extend({}, n.DEFAULTS, i.data(), "object" == typeof e && e), o = i.data("bs.validator");
51 (o || "destroy" != e) && (o || i.data("bs.validator", o = new n(this, r)), "string" == typeof e && o[e]()); })); } n.VERSION = "0.11.9", n.INPUT_SELECTOR = ':input:not([type="hidden"], [type="submit"], [type="reset"], button)', n.FOCUS_OFFSET = 20, n.DEFAULTS = { delay: 500, html: !1, disable: !0, focus: !0, custom: {}, errors: { match: "Does not match", minlength: "Not long enough" }, feedback: { success: "glyphicon-ok", error: "glyphicon-remove" } }, n.VALIDATORS = { native: function (t) { var e = t[0]; if (e.checkValidity) return !e.checkValidity() && !e.validity.valid && (e.validationMessage || "error!"); }, match: function (e) { var i = e.attr("data-match"); return e.val() !== t(i).val() && n.DEFAULTS.errors.match; }, minlength: function (t) { var e = t.attr("data-minlength"); return t.val().length < e && n.DEFAULTS.errors.minlength; } }, n.prototype.update = function () { var e = this; return this.$inputs = this.$element.find(n.INPUT_SELECTOR).add(this.$element.find('[data-validate="true"]')).not(this.$element.find('[data-validate="false"]').each((function () { e.clearErrors(t(this)); }))), this.toggleSubmit(), this; }, n.prototype.onInput = function (e) { var n = this, i = t(e.target), r = "focusout" !== e.type; this.$inputs.is(i) && this.validateInput(i, r).done((function () { n.toggleSubmit(); })); }, n.prototype.validateInput = function (n, i) { e(n); var r = n.data("bs.validator.errors"); n.is('[type="radio"]') && (n = this.$element.find('input[name="' + n.attr("name") + '"]')); var o = t.Event("validate.bs.validator", { relatedTarget: n[0] }); if (this.$element.trigger(o), !o.isDefaultPrevented()) { var s = this; return this.runValidators(n).done((function (e) { n.data("bs.validator.errors", e), e.length ? i ? s.defer(n, s.showErrors) : s.showErrors(n) : s.clearErrors(n), r && e.toString() === r.toString() || (o = e.length ? t.Event("invalid.bs.validator", { relatedTarget: n[0], detail: e }) : t.Event("valid.bs.validator", { relatedTarget: n[0], detail: r }), s.$element.trigger(o)), s.toggleSubmit(), s.$element.trigger(t.Event("validated.bs.validator", { relatedTarget: n[0] })); })); } }, n.prototype.runValidators = function (n) { var i = [], r = t.Deferred(); function o(t) { return function (t) { return n.attr("data-" + t + "-error"); }(t) || ((e = n[0].validity).typeMismatch ? n.attr("data-type-error") : e.patternMismatch ? n.attr("data-pattern-error") : e.stepMismatch ? n.attr("data-step-error") : e.rangeOverflow ? n.attr("data-max-error") : e.rangeUnderflow ? n.attr("data-min-error") : e.valueMissing ? n.attr("data-required-error") : null) || n.attr("data-error"); var e; } return n.data("bs.validator.deferred") && n.data("bs.validator.deferred").reject(), n.data("bs.validator.deferred", r), t.each(this.validators, t.proxy((function (t, r) { var s = null; !e(n) && !n.attr("required") || void 0 === n.attr("data-" + t) && "native" != t || !(s = r.call(this, n)) || (s = o(t) || s, !~i.indexOf(s) && i.push(s)); }), this)), !i.length && e(n) && n.attr("data-remote") ? this.defer(n, (function () { var s = {}; s[n.attr("name")] = e(n), t.get(n.attr("data-remote"), s).fail((function (t, e, n) { i.push(o("remote") || n); })).always((function () { r.resolve(i); })); })) : r.resolve(i), r.promise(); }, n.prototype.validate = function () { var e = this; return t.when(this.$inputs.map((function (n) { return e.validateInput(t(this), !1); }))).then((function () { e.toggleSubmit(), e.focusError(); })), this; }, n.prototype.focusError = function () { if (this.options.focus) { var e = this.$element.find(".has-error:first :input"); 0 !== e.length && (t("html, body").animate({ scrollTop: e.offset().top - n.FOCUS_OFFSET }, 250), e.focus()); } }, n.prototype.showErrors = function (e) { var n = this.options.html ? "html" : "text", i = e.data("bs.validator.errors"), r = e.closest(".form-group"), o = r.find(".help-block.with-errors"), s = r.find(".form-control-feedback"); i.length && (i = t("<ul/>").addClass("list-unstyled").append(t.map(i, (function (e) { return t("<li/>")[n](e); }))), void 0 === o.data("bs.validator.originalContent") && o.data("bs.validator.originalContent", o.html()), o.empty().append(i), r.addClass("has-error has-danger"), r.hasClass("has-feedback") && s.removeClass(this.options.feedback.success) && s.addClass(this.options.feedback.error) && r.removeClass("has-success")); }, n.prototype.clearErrors = function (t) { var n = t.closest(".form-group"), i = n.find(".help-block.with-errors"), r = n.find(".form-control-feedback"); i.html(i.data("bs.validator.originalContent")), n.removeClass("has-error has-danger has-success"), n.hasClass("has-feedback") && r.removeClass(this.options.feedback.error) && r.removeClass(this.options.feedback.success) && e(t) && r.addClass(this.options.feedback.success) && n.addClass("has-success"); }, n.prototype.hasErrors = function () { return !!this.$inputs.filter((function () { return !!(t(this).data("bs.validator.errors") || []).length; })).length; }, n.prototype.isIncomplete = function () { return !!this.$inputs.filter("[required]").filter((function () { var n = e(t(this)); return !("string" == typeof n ? t.trim(n) : n); })).length; }, n.prototype.onSubmit = function (t) { this.validate(), (this.isIncomplete() || this.hasErrors()) && t.preventDefault(); }, n.prototype.toggleSubmit = function () { this.options.disable && this.$btn.toggleClass("disabled", this.isIncomplete() || this.hasErrors()); }, n.prototype.defer = function (e, n) { if (n = t.proxy(n, this, e), !this.options.delay) return n(); window.clearTimeout(e.data("bs.validator.timeout")), e.data("bs.validator.timeout", window.setTimeout(n, this.options.delay)); }, n.prototype.reset = function () { return this.$element.find(".form-control-feedback").removeClass(this.options.feedback.error).removeClass(this.options.feedback.success), this.$inputs.removeData(["bs.validator.errors", "bs.validator.deferred"]).each((function () { var e = t(this), n = e.data("bs.validator.timeout"); window.clearTimeout(n) && e.removeData("bs.validator.timeout"); })), this.$element.find(".help-block.with-errors").each((function () { var e = t(this), n = e.data("bs.validator.originalContent"); e.removeData("bs.validator.originalContent").html(n); })), this.$btn.removeClass("disabled"), this.$element.find(".has-error, .has-danger, .has-success").removeClass("has-error has-danger has-success"), this; }, n.prototype.destroy = function () { return this.reset(), this.$element.removeAttr("novalidate").removeData("bs.validator").off(".b
51s.validator"), this.$inputs.off(".bs.validator"), this.options = null, this.validators = null, this.$element = null, this.$btn = null, this.$inputs = null, this; }; var r = t.fn.validator; t.fn.validator = i, t.fn.validator.Constructor = n, t.fn.validator.noConflict = function () { return t.fn.validator = r, this; }, t(window).on("load", (function () { t('form[data-toggle="validator"]').each((function () { var e = t(this); i.call(e, e.data()); })); })); }(t); }).call(e, n(0)); }, 16: function (t, e, n) { var i, r; i = [n, e, n(1), n(0), n(316), n(345), n(344)], r = function (t, e, n, i, r, o, s) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var a = new n.Application; a.once("start", (function () { (new r.default).render(), (new o.default).render(), (new s.default).render(); })), i((function () { a.start(); })); }.apply(e, i), void 0 === r || (t.exports = r); }, 17: function (t, e, n) { var i, r; i = [n, e, n(1)], r = function (t, e, n) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), n.Renderer.render = function (t, e) { if (!t) throw new n.Error({ name: "TemplateNotFounError", message: "Cannot render the template since it is not defined." }); try { return t.render(e); } catch (t) { throw new n.Error({ name: "TemplateRenderError", message: t.message }); } }; }.apply(e, i), void 0 === r || (t.exports = r); }, 3: function (t, e, n) { var i, r; i = [n, e, n(4)], r = function (t, e, n) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.Options = function (t) { return function (e) { var i = e.prototype; i.className = t.className, i.template = t.template, i.regions = n.extend({}, i.regions, t.regions), i.triggers = n.extend({}, i.triggers, t.triggers), i.ui = n.extend({}, i.ui, t.ui), i.el = t.el || void 0, i.tagName = t.tagName || "div", i.childViewEvents = n.extend({}, i.childViewEvents, t.childViewEvents), i.bindings = n.extend({}, i.bindings, t.bindings); }; }, e.childView = function (t) { return function (e, i, r) { if (e.childViewEvents || (e.childViewEvents = {}), n.isFunction(e.childViewEvents)) throw new Error('The "childView" decorator is not compatible with a childViewEvents method'); if (!t) throw new Error('The "childView" decorator requires an eventName argument'); return e.childViewEvents[t] = i, r; }; }, e.model = function (t) { return function (e, i, r) { if (e.modelEvents || (e.modelEvents = {}), n.isFunction(e.modelEvents)) throw new Error("The on decorator is not compatible with an modelEvents method"); if (!t) throw new Error("The on decorator requires an eventName argument"); return e.modelEvents[t] = i, r; }; }, e.on = function (t) { return function (e, i, r) { if (e.events || (e.events = {}), n.isFunction(e.events)) throw new Error("The on decorator is not compatible with an events method"); if (!t) throw new Error("The on decorator requires an eventName argument"); return e.events[t] = i, r; }; }; }.apply(e, i), void 0 === r || (t.exports = r); }, 311: function (t, e, n) { (function (t, e) { !function (t, n) { "use strict"; if (!t.setImmediate) { var i, r, o, s, a, l = 1, c = {}, u = !1, h = t.document, f = Object.getPrototypeOf && Object.getPrototypeOf(t); f = f && f.setTimeout ? f : t, "[object process]" === {}.toString.call(t.process) ? i = function (t) { e.nextTick((function () { p(t); })); } : !function () { if (t.postMessage && !t.importScripts) { var e = !0, n = t.onmessage; return t.onmessage = function () { e = !1; }, t.postMessage("", "*"), t.onmessage = n, e; } }() ? t.MessageChannel ? ((o = new MessageChannel).port1.onmessage = function (t) { p(t.data); }, i = function (t) { o.port2.postMessage(t); }) : h && "onreadystatechange" in h.createElement("script") ? (r = h.documentElement, i = function (t) { var e = h.createElement("script"); e.onreadystatechange = function () { p(t), e.onreadystatechange = null, r.removeChild(e), e = null; }, r.appendChild(e); }) : i = function (t) { setTimeout(p, 0, t); } : (s = "setImmediate$" + Math.random() + "$", a = function (e) { e.source === t && "string" == typeof e.data && 0 === e.data.indexOf(s) && p(+e.data.slice(s.length)); }, t.addEventListener ? t.addEventListener("message", a, !1) : t.attachEvent("onmessage", a), i = function (e) { t.postMessage(s + e, "*"); }), f.setImmediate = function (t) { "function" != typeof t && (t = new Function("" + t)); for (var e = new Array(arguments.length - 1), n = 0; n < e.length; n++)e[n] = arguments[n + 1]; var r = { callback: t, args: e }; return c[l] = r, i(l), l++; }, f.clearImmediate = d; } function d(t) { delete c[t]; } function p(t) { if (u) setTimeout(p, 0, t); else { var e = c[t]; if (e) { u = !0; try { !function (t) { var e = t.callback, n = t.args; switch (n.length) { case 0: e(); break; case 1: e(n[0]); break; case 2: e(n[0], n[1]); break; case 3: e(n[0], n[1], n[2]); break; default: e.apply(void 0, n); } }(e); } finally { d(t), u = !1; } } } } }("undefined" == typeof self ? void 0 === t ? this : t : self); }).call(e, n(5), n(9)); }, 312: function (t, e, n) { (function (t) { var i = void 0 !== t && t || "undefined" != typeof self && self || window, r = Function.prototype.apply; function o(t, e) { this._id = t, this._clearFn = e; } e.setTimeout = function () { return new o(r.call(setTimeout, i, arguments), clearTimeout); }, e.setInterval = function () { return new o(r.call(setInterval, i, arguments), clearInterval); }, e.clearTimeout = e.clearInterval = function (t) { t && t.close(); }, o.prototype.unref = o.prototype.ref = function () { }, o.prototype.close = function () { this._clearFn.call(i, this._id); }, e.enroll = function (t, e) { clearTimeout(t._idleTimeoutId), t._idleTimeout = e; }, e.unenroll = function (t) { clearTimeout(t._idleTimeoutId), t._idleTimeout = -1; }, e._unrefActive = e.active = function (t) { clearTimeout(t._idleTimeoutId); var e = t._idleTimeout; e >= 0 && (t._idleTimeoutId = setTimeout((function () { t._onTimeout && t._onTimeout(); }), e)); }, n(311), e.setImmediate = "undefined" != typeof self && self.setImmediate || void 0 !== t && t.setImmediate || this && this.setImmediate, e.clearImmediate = "undefined" != typeof self && self.clearImmediate || void 0 !== t && t.clearImmediate || this && this.clearImmediate; }).call(e, n(5)); }, 316: function (t, e, n) { var i, r, o, s = this && this.__extends || (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) { t.__proto__ = e; } || function (t, e) { for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]); }, function (t, e) { function n() { this.constructor = t; } o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n); }), a = this && this.__decorate || function (t, e, n, i) { var r, o = arguments.length, s = o < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) s = Reflect.decorate(t, e, n, i); else for (var a = t.length - 1; a >= 0; a--)(r = t[a]) && (s = (o < 3 ? r(s) : o > 3 ? r(e, n, s) : r(e, n)) || s); return o > 3 && s && Object.defineProperty(e, n, s), s; }; i = [n, e, n(1), n(3)], r = function (t, e, n, i) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var r = function (t) { function e() { return t.call(this) || this; } return s(e, t), e.prototype.onRender = function () { console.log("common viewcontroller rendered"); }, e = a([i.Options({ template: !1, el: "body" })], e); }(n.View); e.default = r; }.apply(e, i), void 0 === r || (t.exports = r); }, 344: function (t, e, n) { var i, r, o, s = this && this.__extends || (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) { t.__proto__ = e; } || function (t, e) { for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]); }, function (t, e) { function n() { this.constructor = t; } o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n); }), a = this && this.__decorate || function (t, e, n, i) { var r, o = arguments.length, s = o < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) s = Reflect.decorate(t, e, n, i); else for (var a = t.length - 1; a >= 0; a--)(r = t[a]) && (s = (o < 3 ? r(s) : o > 3 ? r(e, n, s) : r(e, n)) || s); return o > 3 && s && Object.defineProperty(e, n, s), s; }; i = [n, e, n(0), n(1), n(3)], r = function (t, e, n, i, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function (t) { function e() { return t.call(this) || this; } return s(e, t), e.prototype.onRender = function () { console.log("form viewcontroller rendered"); }, e.prototype.onClearInputBtnClick = function (t) { n(t.currentTarget).siblings("input").val(""), console.log("clicked"); }, a([r.on("click @ui.clearInputButton")], e.prototype, "onClearInputBtnClick", null), e = a([r.Options({ template: !1, el: ".js-form-group", ui: { clearInputButton: ".js-btn-clear-x" } })], e); }(i.View); e.default = o; }.apply(e, i), void 0 === r || (t.exports = r); }, 345: function (t, e, n) { var i, r, o, s = this && this.__extends || (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, e) { t.__proto__ = e; } || function (t, e) { for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]); }, function (t, e) { function n() { this.constructor = t; } o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n); }), a = this && this.__decorate || function (t, e, n, i) { var r, o = arguments.length, s = o < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, n) : i; if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) s = Reflect.decorate(t, e, n, i); else for (var a = t.length - 1; a >= 0; a--)(r = t[a]) && (s = (o < 3 ? r(s) : o > 3 ? r(e, n, s) : r(e, n)) || s); return o > 3 && s && Object.defineProperty(e, n, s), s; }; i = [n, e, n(0), n(1), n(3)], r = function (t, e, n, i, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }); var o = function (t) { function e() { return t.call(this) || this; } var i; return s(e, t), i = e, e.prototype.onRender = function () { console.log("nav main viewcontroller rendered"), this.windowResizeCheck(); }, e.prototype.onHamburgerBtnClick = function (t) { t.preventDefault(), this.toggleMainNav(), n(document.body).toggleClass("overflow-hidden"); }, e.prototype.toggleMainNav = function () { this.ui.navMain.toggleClass("active"), this.ui.hamburgerBtn.toggleClass("switch-to-close-btn"); }, e.prototype.toggleNavStates = function (t) { this.ui.navPrimaryLink.not(t).toggleClass("fade-back"); }, e.prototype.clearAllNavStates = function () { this.ui.navLink.removeClass("active"), this.ui.navLink.removeClass("fade-back"); }, e.prototype.windowResizeCheck = function () { n(window).resize((function () { n(window).width() <= i.NAV_SWAP_BREAKPOINT || n(document.body).removeClass("overflow-hidden"); })); }, e.prototype.stopScrolling = function (t) { return t.preventDefault(), t.stopPropagation(), !1; }, e.NAV_SWAP_BREAKPOINT = 998, a([r.on("click @ui.hamburgerBtn")], e.prototype, "onHamburgerBtnClick", null), e = i = a([r.Options({ template: !1, el: ".js-nav-shared", ui: { hamburgerBtn: ".js-hamburger-btn", navMain: ".js-nav-primary-wrap", navLink: ".js-nav-link", navLogo: ".js-nav-logo", navPrimaryLink: ".js-nav-primary-wrap .js-nav-link" } })], e); }(i.View); e.default = o; }.apply(e, i), void 0 === r || (t.exports = r); }, 354: function (t, e) { t.exports = function (t) { return t.webpackPolyfill || (t.deprecate = function () { }, t.paths = [], t.children || (t.children = []), Object.defineProperty(t, "loaded", { enumerable: !0, get: function () { return t.l; } }), Object.defineProperty(t, "id", { enumerable: !0, get: function () { return t.i; } }), t.webpackPolyfill = 1), t; }; }, 4: function (t, e, n) { (function (t, n) { var i; !function () { var r = "object" == typeof self && self.self === self && self || "object" == typeof t && t.global === t && t || this || {}, o = r._, s = Array.prototype, a = Object.prototype, l = "undefined" != typeof Symbol ? Symbol.prototype : null, c = s.push, u = s.slice, h = a.toString, f = a.hasOwnProperty, d = Array.isArray, p = Object.keys, v = Object.create, g = function () { }, m = function (t) { return t instanceof m ? t : this instanceof m ? void (this._wrapped = t) 
51: new m(t); }; void 0 === e || e.nodeType ? r._ = m : (void 0 !== n && !n.nodeType && n.exports && (e = n.exports = m), e._ = m), m.VERSION = "1.9.1"; var y, _ = function (t, e, n) { if (void 0 === e) return t; switch (null == n ? 3 : n) { case 1: return function (n) { return t.call(e, n); }; case 3: return function (n, i, r) { return t.call(e, n, i, r); }; case 4: return function (n, i, r, o) { return t.call(e, n, i, r, o); }; }return function () { return t.apply(e, arguments); }; }, b = function (t, e, n) { return m.iteratee !== y ? m.iteratee(t, e) : null == t ? m.identity : m.isFunction(t) ? _(t, e, n) : m.isObject(t) && !m.isArray(t) ? m.matcher(t) : m.property(t); }; m.iteratee = y = function (t, e) { return b(t, e, 1 / 0); }; var w = function (t, e) { return e = null == e ? t.length - 1 : +e, function () { for (var n = Math.max(arguments.length - e, 0), i = Array(n), r = 0; r < n; r++)i[r] = arguments[r + e]; switch (e) { case 0: return t.call(this, i); case 1: return t.call(this, arguments[0], i); case 2: return t.call(this, arguments[0], arguments[1], i); }var o = Array(e + 1); for (r = 0; r < e; r++)o[r] = arguments[r]; return o[e] = i, t.apply(this, o); }; }, x = function (t) { if (!m.isObject(t)) return {}; if (v) return v(t); g.prototype = t; var e = new g; return g.prototype = null, e; }, C = function (t) { return function (e) { return null == e ? void 0 : e[t]; }; }, E = function (t, e) { return null != t && f.call(t, e); }, T = function (t, e) { for (var n = e.length, i = 0; i < n; i++) { if (null == t) return; t = t[e[i]]; } return n ? t : void 0; }, k = Math.pow(2, 53) - 1, S = C("length"), j = function (t) { var e = S(t); return "number" == typeof e && e >= 0 && e <= k; }; m.each = m.forEach = function (t, e, n) { var i, r; if (e = _(e, n), j(t)) for (i = 0, r = t.length; i < r; i++)e(t[i], i, t); else { var o = m.keys(t); for (i = 0, r = o.length; i < r; i++)e(t[o[i]], o[i], t); } return t; }, m.map = m.collect = function (t, e, n) { e = b(e, n); for (var i = !j(t) && m.keys(t), r = (i || t).length, o = Array(r), s = 0; s < r; s++) { var a = i ? i[s] : s; o[s] = e(t[a], a, t); } return o; }; var A = function (t) { var e = function (e, n, i, r) { var o = !j(e) && m.keys(e), s = (o || e).length, a = t > 0 ? 0 : s - 1; for (r || (i = e[o ? o[a] : a], a += t); a >= 0 && a < s; a += t) { var l = o ? o[a] : a; i = n(i, e[l], l, e); } return i; }; return function (t, n, i, r) { var o = arguments.length >= 3; return e(t, _(n, r, 4), i, o); }; }; m.reduce = m.foldl = m.inject = A(1), m.reduceRight = m.foldr = A(-1), m.find = m.detect = function (t, e, n) { var i = (j(t) ? m.findIndex : m.findKey)(t, e, n); if (void 0 !== i && -1 !== i) return t[i]; }, m.filter = m.select = function (t, e, n) { var i = []; return e = b(e, n), m.each(t, (function (t, n, r) { e(t, n, r) && i.push(t); })), i; }, m.reject = function (t, e, n) { return m.filter(t, m.negate(b(e)), n); }, m.every = m.all = function (t, e, n) { e = b(e, n); for (var i = !j(t) && m.keys(t), r = (i || t).length, o = 0; o < r; o++) { var s = i ? i[o] : o; if (!e(t[s], s, t)) return !1; } return !0; }, m.some = m.any = function (t, e, n) { e = b(e, n); for (var i = !j(t) && m.keys(t), r = (i || t).length, o = 0; o < r; o++) { var s = i ? i[o] : o; if (e(t[s], s, t)) return !0; } return !1; }, m.contains = m.includes = m.include = function (t, e, n, i) { return j(t) || (t = m.values(t)), ("number" != typeof n || i) && (n = 0), m.indexOf(t, e, n) >= 0; }, m.invoke = w((function (t, e, n) { var i, r; return m.isFunction(e) ? r = e : m.isArray(e) && (i = e.slice(0, -1), e = e[e.length - 1]), m.map(t, (function (t) { var o = r; if (!o) { if (i && i.length && (t = T(t, i)), null == t) return; o = t[e]; } return null == o ? o : o.apply(t, n); })); })), m.pluck = function (t, e) { return m.map(t, m.property(e)); }, m.where = function (t, e) { return m.filter(t, m.matcher(e)); }, m.findWhere = function (t, e) { return m.find(t, m.matcher(e)); }, m.max = function (t, e, n) { var i, r, o = -1 / 0, s = -1 / 0; if (null == e || "number" == typeof e && "object" != typeof t[0] && null != t) for (var a = 0, l = (t = j(t) ? t : m.values(t)).length; a < l; a++)null != (i = t[a]) && i > o && (o = i); else e = b(e, n), m.each(t, (function (t, n, i) { ((r = e(t, n, i)) > s || r === -1 / 0 && o === -1 / 0) && (o = t, s = r); })); return o; }, m.min = function (t, e, n) { var i, r, o = 1 / 0, s = 1 / 0; if (null == e || "number" == typeof e && "object" != typeof t[0] && null != t) for (var a = 0, l = (t = j(t) ? t : m.values(t)).length; a < l; a++)null != (i = t[a]) && i < o && (o = i); else e = b(e, n), m.each(t, (function (t, n, i) { ((r = e(t, n, i)) < s || r === 1 / 0 && o === 1 / 0) && (o = t, s = r); })); return o; }, m.shuffle = function (t) { return m.sample(t, 1 / 0); }, m.sample = function (t, e, n) { if (null == e || n) return j(t) || (t = m.values(t)), t[m.random(t.length - 1)]; var i = j(t) ? m.clone(t) : m.values(t), r = S(i); e = Math.max(Math.min(e, r), 0); for (var o = r - 1, s = 0; s < e; s++) { var a = m.random(s, o), l = i[s]; i[s] = i[a], i[a] = l; } return i.slice(0, e); }, m.sortBy = function (t, e, n) { var i = 0; return e = b(e, n), m.pluck(m.map(t, (function (t, n, r) { return { value: t, index: i++, criteria: e(t, n, r) }; })).sort((function (t, e) { var n = t.criteria, i = e.criteria; if (n !== i) { if (n > i || void 0 === n) return 1; if (n < i || void 0 === i) return -1; } return t.index - e.index; })), "value"); }; var O = function (t, e) { return function (n, i, r) { var o = e ? [[], []] : {}; return i = b(i, r), m.each(n, (function (e, r) { var s = i(e, r, n); t(o, e, s); })), o; }; }; m.groupBy = O((function (t, e, n) { E(t, n) ? t[n].push(e) : t[n] = [e]; })), m.indexBy = O((function (t, e, n) { t[n] = e; })), m.countBy = O((function (t, e, n) { E(t, n) ? t[n]++ : t[n] = 1; })); var R = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; m.toArray = function (t) { return t ? m.isArray(t) ? u.call(t) : m.isString(t) ? t.match(R) : j(t) ? m.map(t, m.identity) : m.values(t) : []; }, m.size = function (t) { return null == t ? 0 : j(t) ? t.length : m.keys(t).length; }, m.partition = O((function (t, e, n) { t[n ? 0 : 1].push(e); }), !0), m.first = m.head = m.take = function (t, e, n) { return null == t || t.length < 1 ? null == e ? void 0 : [] : null == e || n ? t[0] : m.initial(t, t.length - e); }, m.initial = function (t, e, n) { return u.call(t, 0, Math.max(0, t.length - (null == e || n ? 1 : e))); }, m.last = function (t, e, n) { return null == t || t.length < 1 ? null == e ? void 0 : [] : null == e || n ? t[t.length - 1] : m.rest(t, Math.max(0, t.length - e)); }, m.rest = m.tail = m.drop = function (t, e, n) { return u.call(t, null == e || n ? 1 : e); }, m.compact = function (t) { return m.filter(t, Boolean); }; var D = function (t, e, n, i) { for (var r = (i = i || []).length, o = 0, s = S(t); o < s; o++) { var a = t[o]; if (j(a) && (m.isArray(a) || m.isArguments(a))) if (e) for (var l = 0, c = a.length; l < c;)i[r++] = a[l++]; else D(a, e, n, i), r = i.length; else n || (i[r++] = a); } return i; }; m.flatten = function (t, e) { return D(t, e, !1); }, m.without = w((function (t, e) { return m.difference(t, e); })), m.uniq = m.unique = function (t, e, n, i) { m.isBoolean(e) || (i = n, n = e, e = !1), null != n && (n = b(n, i)); for (var r = [], o = [], s = 0, a = S(t); s < a; s++) { var l = t[s], c = n ? n(l, s, t) : l; e && !n ? (s && o === c || r.push(l), o = c) : n ? m.contains(o, c
51) || (o.push(c), r.push(l)) : m.contains(r, l) || r.push(l); } return r; }, m.union = w((function (t) { return m.uniq(D(t, !0, !0)); })), m.intersection = function (t) { for (var e = [], n = arguments.length, i = 0, r = S(t); i < r; i++) { var o = t[i]; if (!m.contains(e, o)) { var s; for (s = 1; s < n && m.contains(arguments[s], o); s++); s === n && e.push(o); } } return e; }, m.difference = w((function (t, e) { return e = D(e, !0, !0), m.filter(t, (function (t) { return !m.contains(e, t); })); })), m.unzip = function (t) { for (var e = t && m.max(t, S).length || 0, n = Array(e), i = 0; i < e; i++)n[i] = m.pluck(t, i); return n; }, m.zip = w(m.unzip), m.object = function (t, e) { for (var n = {}, i = 0, r = S(t); i < r; i++)e ? n[t[i]] = e[i] : n[t[i][0]] = t[i][1]; return n; }; var V = function (t) { return function (e, n, i) { n = b(n, i); for (var r = S(e), o = t > 0 ? 0 : r - 1; o >= 0 && o < r; o += t)if (n(e[o], o, e)) return o; return -1; }; }; m.findIndex = V(1), m.findLastIndex = V(-1), m.sortedIndex = function (t, e, n, i) { for (var r = (n = b(n, i, 1))(e), o = 0, s = S(t); o < s;) { var a = Math.floor((o + s) / 2); n(t[a]) < r ? o = a + 1 : s = a; } return o; }; var $ = function (t, e, n) { return function (i, r, o) { var s = 0, a = S(i); if ("number" == typeof o) t > 0 ? s = o >= 0 ? o : Math.max(o + a, s) : a = o >= 0 ? Math.min(o + 1, a) : o + a + 1; else if (n && o && a) return i[o = n(i, r)] === r ? o : -1; if (r != r) return (o = e(u.call(i, s, a), m.isNaN)) >= 0 ? o + s : -1; for (o = t > 0 ? s : a - 1; o >= 0 && o < a; o += t)if (i[o] === r) return o; return -1; }; }; m.indexOf = $(1, m.findIndex, m.sortedIndex), m.lastIndexOf = $(-1, m.findLastIndex), m.range = function (t, e, n) { null == e && (e = t || 0, t = 0), n || (n = e < t ? -1 : 1); for (var i = Math.max(Math.ceil((e - t) / n), 0), r = Array(i), o = 0; o < i; o++, t += n)r[o] = t; return r; }, m.chunk = function (t, e) { if (null == e || e < 1) return []; for (var n = [], i = 0, r = t.length; i < r;)n.push(u.call(t, i, i += e)); return n; }; var F = function (t, e, n, i, r) { if (!(i instanceof e)) return t.apply(n, r); var o = x(t.prototype), s = t.apply(o, r); return m.isObject(s) ? s : o; }; m.bind = w((function (t, e, n) { if (!m.isFunction(t)) throw new TypeError("Bind must be called on a function"); var i = w((function (r) { return F(t, i, e, this, n.concat(r)); })); return i; })), m.partial = w((function (t, e) { var n = m.partial.placeholder, i = function () { for (var r = 0, o = e.length, s = Array(o), a = 0; a < o; a++)s[a] = e[a] === n ? arguments[r++] : e[a]; for (; r < arguments.length;)s.push(arguments[r++]); return F(t, i, this, this, s); }; return i; })), m.partial.placeholder = m, m.bindAll = w((function (t, e) { var n = (e = D(e, !1, !1)).length; if (n < 1) throw new Error("bindAll must be passed function names"); for (; n--;) { var i = e[n]; t[i] = m.bind(t[i], t); } })), m.memoize = function (t, e) { var n = function (i) { var r = n.cache, o = "" + (e ? e.apply(this, arguments) : i); return E(r, o) || (r[o] = t.apply(this, arguments)), r[o]; }; return n.cache = {}, n; }, m.delay = w((function (t, e, n) { return setTimeout((function () { return t.apply(null, n); }), e); })), m.defer = m.partial(m.delay, m, 1), m.throttle = function (t, e, n) { var i, r, o, s, a = 0; n || (n = {}); var l = function () { a = !1 === n.leading ? 0 : m.now(), i = null, s = t.apply(r, o), i || (r = o = null); }, c = function () { var c = m.now(); a || !1 !== n.leading || (a = c); var u = e - (c - a); return r = this, o = arguments, u <= 0 || u > e ? (i && (clearTimeout(i), i = null), a = c, s = t.apply(r, o), i || (r = o = null)) : i || !1 === n.trailing || (i = setTimeout(l, u)), s; }; return c.cancel = function () { clearTimeout(i), a = 0, i = r = o = null; }, c; }, m.debounce = function (t, e, n) { var i, r, o = function (e, n) { i = null, n && (r = t.apply(e, n)); }, s = w((function (s) { if (i && clearTimeout(i), n) { var a = !i; i = setTimeout(o, e), a && (r = t.apply(this, s)); } else i = m.delay(o, e, this, s); return r; })); return s.cancel = function () { clearTimeout(i), i = null; }, s; }, m.wrap = function (t, e) { return m.partial(e, t); }, m.negate = function (t) { return function () { return !t.apply(this, arguments); }; }, m.compose = function () { var t = arguments, e = t.length - 1; return function () { for (var n = e, i = t[e].apply(this, arguments); n--;)i = t[n].call(this, i); return i; }; }, m.after = function (t, e) { return function () { if (--t < 1) return e.apply(this, arguments); }; }, m.before = function (t, e) { var n; return function () { return --t > 0 && (n = e.apply(this, arguments)), t <= 1 && (e = null), n; }; }, m.once = m.partial(m.before, 2), m.restArguments = w; var I = !{ toString: null }.propertyIsEnumerable("toString"), P = ["valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleStr
51ing"], N = function (t, e) { var n = P.length, i = t.constructor, r = m.isFunction(i) && i.prototype || a, o = "constructor"; for (E(t, o) && !m.contains(e, o) && e.push(o); n--;)(o = P[n]) in t && t[o] !== r[o] && !m.contains(e, o) && e.push(o); }; m.keys = function (t) { if (!m.isObject(t)) return []; if (p) return p(t); var e = []; for (var n in t) E(t, n) && e.push(n); return I && N(t, e), e; }, m.allKeys = function (t) { if (!m.isObject(t)) return []; var e = []; for (var n in t) e.push(n); return I && N(t, e), e; }, m.values = function (t) { for (var e = m.keys(t), n = e.length, i = Array(n), r = 0; r < n; r++)i[r] = t[e[r]]; return i; }, m.mapObject = function (t, e, n) { e = b(e, n); for (var i = m.keys(t), r = i.length, o = {}, s = 0; s < r; s++) { var a = i[s]; o[a] = e(t[a], a, t); } return o; }, m.pairs = function (t) { for (var e = m.keys(t), n = e.length, i = Array(n), r = 0; r < n; r++)i[r] = [e[r], t[e[r]]]; return i; }, m.invert = function (t) { for (var e = {}, n = m.keys(t), i = 0, r = n.length; i < r; i++)e[t[n[i]]] = n[i]; return e; }, m.functions = m.methods = function (t) { var e = []; for (var n in t) m.isFunction(t[n]) && e.push(n); return e.sort(); }; var M = function (t, e) { return function (n) { var i = arguments.length; if (e && (n = Object(n)), i < 2 || null == n) return n; for (var r = 1; r < i; r++)for (var o = arguments[r], s = t(o), a = s.length, l = 0; l < a; l++) { var c = s[l]; e && void 0 !== n[c] || (n[c] = o[c]); } return n; }; }; m.extend = M(m.allKeys), m.extendOwn = m.assign = M(m.keys), m.findKey = function (t, e, n) { e = b(e, n); for (var i, r = m.keys(t), o = 0, s = r.length; o < s; o++)if (e(t[i = r[o]], i, t)) return i; }; var B, L, H = function (t, e, n) { return e in n; }; m.pick = w((function (t, e) { var n = {}, i = e[0]; if (null == t) return n; m.isFunction(i) ? (e.length > 1 && (i = _(i, e[1])), e = m.allKeys(t)) : (i = H, e = D(e, !1, !1), t = Object(t)); for (var r = 0, o = e.length; r < o; r++) { var s = e[r], a = t[s]; i(a, s, t) && (n[s] = a); } return n; })), m.omit = w((function (t, e) { var n, i = e[0]; return m.isFunction(i) ? (i = m.negate(i), e.length > 1 && (n = e[1])) : (e = m.map(D(e, !1, !1), String), i = function (t, n) { return !m.contains(e, n); }), m.pick(t, i, n); })), m.defaults = M(m.allKeys, !0), m.create = function (t, e) { var n = x(t); return e && m.extendOwn(n, e), n; }, m.clone = function (t) { return m.isObject(t) ? m.isArray(t) ? t.slice() : m.extend({}, t) : t; }, m.tap = function (t, e) { return e(t), t; }, m.isMatch = function (t, e) { var n = m.keys(e), i = n.length; if (null == t) return !i; for (var r = Object(t), o = 0; o < i; o++) { var s = n[o]; if (e[s] !== r[s] || !(s in r)) return !1; } return !0; }, B = function (t, e, n, i) { if (t === e) return 0 !== t || 1 / t == 1 / e; if (null == t || null == e) return !1; if (t != t) return e != e; var r = typeof t; return ("function" === r || "object" === r || "object" == typeof e) && L(t, e, n, i); }, L = function (t, e, n, i) { t instanceof m && (t = t._wrapped), e instanceof m && (e = e._wrapped); var r = h.call(t); if (r !== h.call(e)) return !1; switch (r) { case "[object RegExp]": case "[object String]": return "" + t == "" + e; case "[object Number]": return +t != +t ? +e != +e : 0 == +t ? 1 / +t == 1 / e : +t == +e; case "[object Date]": case "[object Boolean]": return +t == +e; case "[object Symbol]": return l.valueOf.call(t) === l.valueOf.call(e); }var o = "[object Array]" === r; if (!o) { if ("object" != typeof t || "object" != typeof e) return !1; var s = t.constructor, a = e.constructor; if (s !== a && !(m.isFunction(s) && s instanceof s && m.isFunction(a) && a instanceof a) && "constructor" in t && "constructor" in e) return !1; } i = i || []; for (var c = (n = n || []).length; c--;)if (n[c] === t) return i[c] === e; if (n.push(t), i.push(e), o) { if ((c = t.length) !== e.length) return !1; for (; c--;)if (!B(t[c], e[c], n, i)) return !1; } else { var u, f = m.keys(t); if (c = f.length, m.keys(e).length !== c) return !1; for (; c--;)if (u = f[c], !E(e, u) || !B(t[u], e[u], n, i)) return !1; } return n.pop(), i.pop(), !0; }, m.isEqual = function (t, e) { return B(t, e); }, m.isEmpty = function (t) { return null == t || (j(t) && (m.isArray(t) || m.isString(t) || m.isArguments(t)) ? 0 === t.length : 0 === m.keys(t).length); }, m.isElement = function (t) { return !(!t || 1 !== t.nodeType); }, m.isArray = d || function (t) { return "[object Array]" === h.call(t); }, m.isObject = function (t) { var e = typeof t; return "function" === e || "object" === e && !!t; }, m.each(["Arguments", "Function", "String", "Number", "Date", "RegExp", "Error", "Symbol", "Map", "WeakMap", "Set", "WeakSet"], (function (t) { m["is" + t] = function (e) { return h.call(e) === "[object " + t + "]"; }; })), m.isArguments(arguments) || (m.isArguments = function (t) { return E(t, "callee"); }); var q = r.document && r.document.childNodes; "function" != typeof /./ && "object" != typeof Int8Array && "function" != typeof q && (m.isFunction = function (t) { return "function" == typeof t || !1; }), m.isFinite = function (t) { return !m.isSymbol(t) && isFinite(t) && !isNaN(parseFloat(t)); }, m.isNaN = function (t) { return m.isNumber(t) && isNaN(t); }, m.isBoolean = function (t) { return !0 === t || !1 === t || "[object Boolean]" === h.call(t); }, m.isNull = function (t) { return null === t; }, m.isUndefined = function (t) { return void 0 === t; }, m.has = function (t, e) { if (!m.isArray(e)) return E(t, e); for (var n = e.length, i = 0; i < n; i++) { var r = e[i]; if (null == t || !f.call(t, r)) return !1; t = t[r]; } return !!n; }, m.noConflict = function () { return r._ = o, this; }, m.identity = function (t) { return t; }, m.constant = function (t) { return function () { return t; }; }, m.noop = function () { }, m.property = function (t) { return m.isArray(t) ? function (e) { return T(e, t); } : C(t); }, m.propertyOf = function (t) { return null == t ? function () { } : function (e) { return m.isArray(e) ? T(t, e) : t[e]; }; }, m.matcher = m.matches = function (t) { return t = m.extendOwn({}, t), function (e) { return m.isMatch(e, t); }; }, m.times = function (t, e, n) { var i = Array(Math.max(0, t)); e = _(e, n, 1); for (var r = 0; r < t; r++)i[r] = e(r); return i; }, m.random = function (t, e) { return null == e && (e = t, t = 0), t + Math.floor(Math.random() * (e - t + 1)); }, m.now = Date.now || function () { return (new Date).getTime(); }; var U = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#x27;", "`": "&#x60;" }, W = m.invert(U), z = function (t) { var e = function (e) { return t[e]; }, n = "(?:" + m.keys(t).join("|") + ")", i = RegExp(n), r = RegExp(n, "g"); return function (t) { return t = null == t ? "" : "" + t, i.test(t) ? t.replace(r, e) : t; }; }; m.escape = z(U), m.unescape = z(W), m.result = function (t, e, n) { m.isArray(e) || (e = [e]); var i = e.length; if (!i) return m.isFunction(n) ? n.call(t) : n; for (var r = 0; r < i; r++) { var o = null == t ? void 0 : t[e[r]];
51 void 0 === o && (o = n, r = i), t = m.isFunction(o) ? o.call(t) : o; } return t; }; var X = 0; m.uniqueId = function (t) { var e = ++X + ""; return t ? t + e : e; }, m.templateSettings = { evaluate: /<%([\s\S]+?)%>/g, interpolate: /<%=([\s\S]+?)%>/g, escape: /<%-([\s\S]+?)%>/g }; var Q = /(.)^/, G = { "'": "'", "\\": "\\", "\r": "r", "\n": "n", "\u2028": "u2028", "\u2029": "u2029" }, K = /\\|'|\r|\n|\u2028|\u2029/g, J = function (t) { return "\\" + G[t]; }; m.template = function (t, e, n) { !e && n && (e = n), e = m.defaults({}, e, m.templateSettings); var i, r = RegExp([(e.escape || Q).source, (e.interpolate || Q).source, (e.evaluate || Q).source].join("|") + "|$", "g"), o = 0, s = "__p+='"; t.replace(r, (function (e, n, i, r, a) { return s += t.slice(o, a).replace(K, J), o = a + e.length, n ? s += "'+\n((__t=(" + n + "))==null?'':_.escape(__t))+\n'" : i ? s += "'+\n((__t=(" + i + "))==null?'':__t)+\n'" : r && (s += "';\n" + r + "\n__p+='"), e; })), s += "';\n", e.variable || (s = "with(obj||{}){\n" + s + "}\n"), s = "var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n" + s + "return __p;\n"; try { i = new Function(e.variable || "obj", "_", s); } catch (t) { throw t.source = s, t; } var a = function (t) { return i.call(this, t, m); }, l = e.variable || "obj"; return a.source = "function(" + l + "){\n" + s + "}", a; }, m.chain = function (t) { var e = m(t); return e._chain = !0, e; }; var Y = function (t, e) { return t._chain ? m(e).chain() : e; }; m.mixin = function (t) { return m.each(m.functions(t), (function (e) { var n = m[e] = t[e]; m.prototype[e] = function () { var t = [this._wrapped]; return c.apply(t, arguments), Y(this, n.apply(m, t)); }; })), m; }, m.mixin(m), m.each(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], (function (t) { var e = s[t]; m.prototype[t] = function () { var n = this._wrapped; return e.apply(n, arguments), "shift" !== t && "splice" !== t || 0 !== n.length || delete n[0], Y(this, n); }; })), m.each(["concat", "join", "slice"], (function (t) { var e = s[t]; m.prototype[t] = function () { return Y(this, e.apply(this._wrapped, arguments)); }; })), m.prototype.value = function () { return this._wrapped; }, m.prototype.valueOf = m.prototype.toJSON = m.prototype.value, m.prototype.toString = function () { return String(this._wrapped); }, void 0 === (i = function () { return m; }.apply(e, [])) || (n.exports = i); }(); }).call(e, n(5), n(354)(t)); }, 5: function (t, e) { var n; n = function () { return this; }(); try { n = n || Function("return this")() || (0, eval)("this"); } catch (t) { "object" == typeof window && (n = window); } t.exports = n; }, 57: function (t, e, n) { n(0), n(4), n(6), n(1), n(7), n(8), n(11), n(12), n(17), n(16); }, 6: function (t, e, n) { (function (i) { var r, o, s, a; s = function (t, e, n, i) { var r = t.Backbone, o = Array.prototype.slice; e.VERSION = "1.3.3", e.$ = i, e.noConflict = function () { return t.Backbone = r, this; }, e.emulateHTTP = !1, e.emulateJSON = !1; var s = function (t, e, i) { n.each(e, (function (e, r) { n[r] && (t.prototype[r] = function (t, e, i) { switch (t) { case 1: return function () { return n[e](this[i]); }; case 2: return function (t) { return n[e](this[i], t); }; case 3: return function (t, r) { return n[e](this[i], a(t, this), r); }; case 4: return function (t, r, o) { return n[e](this[i], a(t, this), r, o); }; default: return function () { var t = o.call(arguments); return t.unshift(this[i]), n[e].apply(n, t); }; } }(e, r, i)); })); }, a = function (t, e) { return n.isFunction(t) ? t : n.isObject(t) && !e._isModel(t) ? l(t) : n.isString(t) ? function (e) { return e.get(t); } : t; }, l = function (t) { var e = n.matches(t); return function (t) { return e(t.attributes); }; }, c = e.Events = {}, u = /\s+/, h = function (t, e, i, r, o) { var s, a = 0; if (i && "object" == typeof i) { void 0 !== r && "context" in o && void 0 === o.context && (o.context = r); for (s = n.keys(i); a < s.length; a++)e = h(t, e, s[a], i[s[a]], o); } else if (i && u.test(i)) for (s = i.split(u); a < s.length; a++)e = t(e, s[a], r, o); else e = t(e, i, r, o); return e; }; c.on = function (t, e, n) { return f(this, t, e, n); }; var f = function (t, e, n, i, r) { return t._events = h(d, t._events || {}, e, n, { context: i, ctx: t, listening: r }), r && ((t._listeners || (t._listeners = {}))[r.id] = r), t; }; c.listenTo = function (t, e, i) { if (!t) return this; var r = t._listenId || (t._listenId = n.uniqueId("l")), o = this._listeningTo || (this._listeningTo = {}), s = o[r]; if (!s) { var a = this._listenId || (this._listenId = n.uniqueId("l"));
51 s = o[r] = { obj: t, objId: r, id: a, listeningTo: o, count: 0 }; } return f(t, e, i, this, s), this; }; var d = function (t, e, n, i) { if (n) { var r = t[e] || (t[e] = []), o = i.context, s = i.ctx, a = i.listening; a && a.count++, r.push({ callback: n, context: o, ctx: o || s, listening: a }); } return t; }; c.off = function (t, e, n) { return this._events ? (this._events = h(p, this._events, t, e, { context: n, listeners: this._listeners }), this) : this; }, c.stopListening = function (t, e, i) { var r = this._listeningTo; if (!r) return this; for (var o = t ? [t._listenId] : n.keys(r), s = 0; s < o.length; s++) { var a = r[o[s]]; if (!a) break; a.obj.off(e, i, this); } return this; }; var p = function (t, e, i, r) { if (t) { var o, s = 0, a = r.context, l = r.listeners; if (e || i || a) { for (var c = e ? [e] : n.keys(t); s < c.length; s++) { var u = t[e = c[s]]; if (!u) break; for (var h = [], f = 0; f < u.length; f++) { var d = u[f]; i && i !== d.callback && i !== d.callback._callback || a && a !== d.context ? h.push(d) : (o = d.listening) && 0 == --o.count && (delete l[o.id], delete o.listeningTo[o.objId]); } h.length ? t[e] = h : delete t[e]; } return t; } for (var p = n.keys(l); s < p.length; s++)delete l[(o = l[p[s]]).id], delete o.listeningTo[o.objId]; } }; c.once = function (t, e, i) { var r = h(v, {}, t, e, n.bind(this.off, this)); return "string" == typeof t && null == i && (e = void 0), this.on(r, e, i); }, c.listenToOnce = function (t, e, i) { var r = h(v, {}, e, i, n.bind(this.stopListening, this, t)); return this.listenTo(t, r); }; var v = function (t, e, i, r) { if (i) { var o = t[e] = n.once((function () { r(e, o), i.apply(this, arguments); })); o._callback = i; } return t; }; c.trigger = function (t) { if (!this._events) return this; for (var e = Math.max(0, arguments.length - 1), n = Array(e), i = 0; i < e; i++)n[i] = arguments[i + 1]; return h(g, this._events, t, void 0, n), this; }; var g = function (t, e, n, i) { if (t) { var r = t[e], o = t.all; r && o && (o = o.slice()), r && m(r, i), o && m(o, [e].concat(i)); } return t; }, m = function (t, e) { var n, i = -1, r = t.length, o = e[0], s = e[1], a = e[2]; switch (e.length) { case 0: for (; ++i < r;)(n = t[i]).callback.call(n.ctx); return; case 1: for (; ++i < r;)(n = t[i]).callback.call(n.ctx, o); return; case 2: for (; ++i < r;)(n = t[i]).callback.call(n.ctx, o, s); return; case 3: for (; ++i < r;)(n = t[i]).callback.call(n.ctx, o, s, a); return; default: for (; ++i < r;)(n = t[i]).callback.apply(n.ctx, e); return; } }; c.bind = c.on, c.unbind = c.off, n.extend(e, c); var y = e.Model = function (t, e) { var i = t || {}; e || (e = {}), this.cid = n.uniqueId(this.cidPrefix), this.attributes = {}, e.collection && (this.collection = e.collection), e.parse && (i = this.parse(i, e) || {}); var r = n.result(this, "defaults"); i = n.defaults(n.extend({}, r, i), r), this.set(i, e), this.changed = {}, this.initialize.apply(this, arguments); }; n.extend(y.prototype, c, { changed: null, validationError: null, idAttribute: "id", cidPrefix: "c", initialize: function () { }, toJSON: function (t) { return n.clone(this.attributes); }, sync: function () { return e.sync.apply(this, arguments); }, get: function (t) { return this.attributes[t]; }, escape: function (t) { return n.escape(this.get(t)); }, has: function (t) { return null != this.get(t); }, matches: function (t) { return !!n.iteratee(t, this)(this.attributes); }, set: function (t, e, i) { if (null == t) return this; var r; if ("object" == typeof t ? (r = t, i = e) : (r = {})[t] = e, i || (i = {}), !this._validate(r, i)) return !1; var o = i.unset, s = i.silent, a = [], l = this._changing; this._changing = !0, l || (this._previousAttributes = n.clone(this.attributes), this.changed = {}); var c = this.attributes, u = this.changed, h = this._previousAttributes; for (var f in r) e = r[f], n.isEqual(c[f], e) || a.push(f), n.isEqual(h[f], e) ? delete u[f] : u[f] = e, o ? delete c[f] : c[f] = e; if (this.idAttribute in r && (this.id = this.get(this.idAttribute)), !s) { a.length && (this._pending = i); for (var d = 0; d < a.length; d++)this.trigger("change:" + a[d], this, c[a[d]], i); } if (l) return this; if (!s) for (; this._pending;)i = this._pending, this._pending = !1, this.trigger("change", this, i); return this._pending = !1, this._changing = !1, this; }, unset: function (t, e) { return this.set(t, void 0, n.extend({}, e, { unset: !0 })); }, clear: function (t) { var e = {}; for (var i in this.attributes) e[i] = void 0; return this.set(e, n.extend({}, t, { unset: !0 })); }, hasChanged: function (t) { return null == t ? !n.isEmpty(this.changed) : n.has(this.changed, t); }, changedAttributes: function (t) { if (!t) return !!this.hasChanged() && n.clone(this.changed); var e = this._changing ? this._previousAttributes : this.attributes, i = {}; for (var r in t) { var o = t[r]; n.isEqual(e[r], o) || (i[r] = o); } return !!n.size(i) && i; }, previous: function (t) { return null != t && this._previousAttributes ? this._previousAttributes[t] : null; }, previousAttributes: function () { return n.clone(this._previousAttributes); }, fetch: function (t) { t = n.extend({ parse: !0 }, t); var e = this, i = t.success; return t.success = function (n) { var r = t.parse ? e.parse(n, t) : n; if (!e.set(r, t)) return !1; i && i.call(t.context, e, n, t), e.trigger("sync", e, n, t); }, P(this, t), this.sync("read", this, t); }, save: function (t, e, i) { var r; null == t || "object" == typeof t ? (r = t, i = e) : (r = {})[t] = e; var o = (i = n.extend({ validate: !0, parse: !0 }, i)).wait; if (r && !o) { if (!this.set(r, i)) return !1; }
51 else if (!this._validate(r, i)) return !1; var s = this, a = i.success, l = this.attributes; i.success = function (t) { s.attributes = l; var e = i.parse ? s.parse(t, i) : t; if (o && (e = n.extend({}, r, e)), e && !s.set(e, i)) return !1; a && a.call(i.context, s, t, i), s.trigger("sync", s, t, i); }, P(this, i), r && o && (this.attributes = n.extend({}, l, r)); var c = this.isNew() ? "create" : i.patch ? "patch" : "update"; "patch" !== c || i.attrs || (i.attrs = r); var u = this.sync(c, this, i); return this.attributes = l, u; }, destroy: function (t) { t = t ? n.clone(t) : {}; var e = this, i = t.success, r = t.wait, o = function () { e.stopListening(), e.trigger("destroy", e, e.collection, t); }; t.success = function (n) { r && o(), i && i.call(t.context, e, n, t), e.isNew() || e.trigger("sync", e, n, t); }; var s = !1; return this.isNew() ? n.defer(t.success) : (P(this, t), s = this.sync("delete", this, t)), r || o(), s; }, url: function () { var t = n.result(this, "urlRoot") || n.result(this.collection, "url") || I(); if (this.isNew()) return t; var e = this.get(this.idAttribute); return t.replace(/[^\/]$/, "$&/") + encodeURIComponent(e); }, parse: function (t, e) { return t; }, clone: function () { return new this.constructor(this.attributes); }, isNew: function () { return !this.has(this.idAttribute); }, isValid: function (t) { return this._validate({}, n.extend({}, t, { validate: !0 })); }, _validate: function (t, e) { if (!e.validate || !this.validate) return !0; t = n.extend({}, this.attributes, t); var i = this.validationError = this.validate(t, e) || null; return !i || (this.trigger("invalid", this, i, n.extend(e, { validationError: i })), !1); } }), s(y, { keys: 1, values: 1, pairs: 1, invert: 1, pick: 0, omit: 0, chain: 1, isEmpty: 1 }, "attributes"); var _ = e.Collection = function (t, e) { e || (e = {}), e.model && (this.model = e.model), void 0 !== e.comparator && (this.comparator = e.comparator), this._reset(), this.initialize.apply(this, arguments), t && this.reset(t, n.extend({ silent: !0 }, e)); }, b = { add: !0, remove: !0, merge: !0 }, w = { add: !0, remove: !1 }, x = function (t, e, n) { n = Math.min(Math.max(n, 0), t.length); var i, r = Array(t.length - n), o = e.length; for (i = 0; i < r.length; i++)r[i] = t[i + n]; for (i = 0; i < o; i++)t[i + n] = e[i]; for (i = 0; i < r.length; i++)t[i + o + n] = r[i]; }; n.extend(_.prototype, c, { model: y, initialize: function () { }, toJSON: function (t) { return this.map((function (e) { return e.toJSON(t); })); }, sync: function () { return e.sync.apply(this, arguments); }, add: function (t, e) { return this.set(t, n.extend({ merge: !1 }, e, w)); }, remove: function (t, e) { e = n.extend({}, e); var i = !n.isArray(t); t = i ? [t] : t.slice(); var r = this._removeModels(t, e); return !e.silent && r.length && (e.changes = { added: [], merged: [], removed: r }, this.trigger("update", this, e)), i ? r[0] : r; }, set: function (t, e) { if (null != t) { (e = n.extend({}, b, e)).parse && !this._isModel(t) && (t = this.parse(t, e) || []); var i = !n.isArray(t); t = i ? [t] : t.slice(); var r = e.at; null != r && (r = +r), r > this.length && (r = this.length), r < 0 && (r += this.length + 1); var o, s, a = [], l = [], c = [], u = [], h = {}, f = e.add, d = e.merge, p = e.remove, v = !1, g = this.comparator && null == r && !1 !== e.sort, m = n.isString(this.comparator) ? this.comparator : null; for (s = 0; s < t.length; s++) { o = t[s]; var y = this.get(o); if (y) { if (d && o !== y) { var _ = this._isModel(o) ? o.attributes : o; e.parse && (_ = y.parse(_, e)), y.set(_, e), c.push(y), g && !v && (v = y.hasChanged(m)); } h[y.cid] || (h[y.cid] = !0, a.push(y)), t[s] = y; } else f && (o = t[s] = this._prepareModel(o, e)) && (l.push(o), this._addReference(o, e), h[o.cid] = !0, a.push(o)); } if (p) { for (s = 0; s < this.length; s++)h[(o = this.models[s]).cid] || u.push(o); u.length && this._removeModels(u, e); } var w = !1, C = !g && f && p; if (a.length && C ? (w = this.length !== a.length || n.some(this.models, (function (t, e) { return t !== a[e]; })), this.models.length = 0, x(this.models, a, 0), this.length = this.models.length) : l.length && (g && (v = !0), x(this.models, l, null == r ? this.length : r), this.length = this.models.length), v && this.sort({ silent: !0 }), !e.silent) { for (s = 0; s < l.length; s++)null != r && (e.index = r + s), (o = l[s]).trigger("add", o, this, e); (v || w) && this.trigger("sort", this, e), (l.length || u.length || c.length) && (e.changes = { added: l, removed: u, merged: c }, this.trigger("update", this, e)); } return i ? t[0] : t; } }, reset: function (t, e) { e = e ? n.clone(e) : {}; for (var i = 0; i < this.models.length; i++)this._removeReference(this.models[i], e); return e.previousModels = this.models, this._reset(), t = this.add(t, n.extend({ silent: !0 }, e)), e.silent || this.trigger("reset", this, e), t; }, push: function (t, e) { return this.add(t, n.extend({ at: this.length }, e)); }, pop: function (t) { var e = this.at(this.length - 1); return this.remove(e, t); }, unshift: function (t, e) { return this.add(t, n.extend({ at: 0 }, e)); }, shift: function (t) { var e = this.at(0); return this.remove(e, t); }, slice: function () { return o.apply(this.models, arguments); }, get: function (t) { if (null != t) return this._byId[t] || this._byId[this.modelId(t.attributes || t)] || t.cid && this._byId[t.cid]; }, has: function (t) { return null != this.get(t); }, at: function (t) { return t < 0 && (t += this.length), this.models[t]; }, where: function (t, e) { return this[e ? "find" : "filter"](t); }, findWhere: function (t) { return this.where(t, !0); }, sort: function (t) { var e = this.comparator; if (!e) throw new Error("Cannot sort a set without a comparator"); t || (t = {}); var i = e.length; return n.isFunction(e) && (e = n.bind(e, this)), 1 === i || n.isString(e) ? this.models = this.sortBy(e) : this.models.sort(e), t.silent || this.trigger("sort", this, t), this; }
51, pluck: function (t) { return this.map(t + ""); }, fetch: function (t) { var e = (t = n.extend({ parse: !0 }, t)).success, i = this; return t.success = function (n) { var r = t.reset ? "reset" : "set"; i[r](n, t), e && e.call(t.context, i, n, t), i.trigger("sync", i, n, t); }, P(this, t), this.sync("read", this, t); }, create: function (t, e) { var i = (e = e ? n.clone(e) : {}).wait; if (!(t = this._prepareModel(t, e))) return !1; i || this.add(t, e); var r = this, o = e.success; return e.success = function (t, e, n) { i && r.add(t, n), o && o.call(n.context, t, e, n); }, t.save(null, e), t; }, parse: function (t, e) { return t; }, clone: function () { return new this.constructor(this.models, { model: this.model, comparator: this.comparator }); }, modelId: function (t) { return t[this.model.prototype.idAttribute || "id"]; }, _reset: function () { this.length = 0, this.models = [], this._byId = {}; }, _prepareModel: function (t, e) { if (this._isModel(t)) return t.collection || (t.collection = this), t; (e = e ? n.clone(e) : {}).collection = this; var i = new this.model(t, e); return i.validationError ? (this.trigger("invalid", this, i.validationError, e), !1) : i; }, _removeModels: function (t, e) { for (var n = [], i = 0; i < t.length; i++) { var r = this.get(t[i]); if (r) { var o = this.indexOf(r); this.models.splice(o, 1), this.length--, delete this._byId[r.cid]; var s = this.modelId(r.attributes); null != s && delete this._byId[s], e.silent || (e.index = o, r.trigger("remove", r, this, e)), n.push(r), this._removeReference(r, e); } } return n; }, _isModel: function (t) { return t instanceof y; }, _addReference: function (t, e) { this._byId[t.cid] = t; var n = this.modelId(t.attributes); null != n && (this._byId[n] = t), t.on("all", this._onModelEvent, this); }, _removeReference: function (t, e) { delete this._byId[t.cid]; var n = this.modelId(t.attributes); null != n && delete this._byId[n], this === t.collection && delete t.collection, t.off("all", this._onModelEvent, this); }, _onModelEvent: function (t, e, n, i) { if (e) { if (("add" === t || "remove" === t) && n !== this) return; if ("destroy" === t && this.remove(e, i), "change" === t) { var r = this.modelId(e.previousAttributes()), o = this.modelId(e.attributes); r !== o && (null != r && delete this._byId[r], null != o && (this._byId[o] = e)); } } this.trigger.apply(this, arguments); } }), s(_, { forEach: 3, each: 3, map: 3, collect: 3, reduce: 0, foldl: 0, inject: 0, reduceRight: 0, foldr: 0, find: 3, detect: 3, filter: 3, select: 3, reject: 3, every: 3, all: 3, some: 3, any: 3, include: 3, includes: 3, contains: 3, invoke: 0, max: 3, min: 3, toArray: 1, size: 1, first: 3, head: 3, take: 3, initial: 3, rest: 3, tail: 3, drop: 3, last: 3, without: 0, difference: 0, indexOf: 3, shuffle: 1, lastIndexOf: 3, isEmpty: 1, chain: 1, sample: 3, partition: 3, groupBy: 3, countBy: 3, sortBy: 3, indexBy: 3, findIndex: 3, findLastIndex: 3 }, "models"); var C = e.View = function (t) { this.cid = n.uniqueId("view"), n.extend(this, n.pick(t, T)), this._ensureElement(), this.initialize.apply(this, arguments); }, E = /^(\S+)\s*(.*)$/, T = ["model", "collection", "el", "id", "attributes", "className", "tagName", "events"]; n.extend(C.prototype, c, { tagName: "div", $: function (t) { return this.$el.find(t); }, initialize: function () { }, render: function () { return this; }, remove: function () { return this._removeElement(), this.stopListening(), this; }, _removeElement: function () { this.$el.remove(); }, setElement: function (t) { return this.undelegateEvents(), this._setElement(t), this.delegateEvents(), this; }, _setElement: function (t) { this.$el = t instanceof e.$ ? t : e.$(t), this.el = this.$el[0]; }, delegateEvents: function (t) { if (t || (t = n.result(this, "events")), !t) return this; for (var e in this.undelegateEvents(), t) { var i = t[e]; if (n.isFunction(i) || (i = this[i]), i) { var r = e.match(E); this.delegate(r[1], r[2], n.bind(i, this)); } } return this; }, delegate: function (t, e, n) { return this.$el.on(t + ".delegateEvents" + this.cid, e, n), this; }, undelegateEvents: function () { return this.$el && this.$el.off(".delegateEvents" + this.cid), this; }, undelegate: function (t, e, n) { return this.$el.off(t + ".delegateEvents" + this.cid, e, n), this; }, _createElement: function (t) { return document.createElement(t); }, _ensureElement: function () { if (this.el) this.setElement(n.result(this, "el")); else { var t = n.extend({}, n.result(this, "attributes")); this.id && (t.id = n.result(this, "id")), this.className && (t.class = n.result(this, "className")), this.setElement(this._createElement(n.result(this, "tagName"))), this._setAttributes(t); } }, _setAttributes: function (t) { this.$el.attr(t); } }), e.sync = function (t, i, r) { var o = k[t]; n.defaults(r || (r = {}), { emulateHTTP: e.emulateHTTP, emulateJSON: e.emulateJSON }); var s = { type: o, dataType: "json" }; if (r.url || (s.url = n.result(i, "url") || I()), null != r.data || !i || "create" !== t && "update" !== t && "patch" !== t || (s.contentType = "application/json", s.data = JSON.stringify(r.attrs || i.toJSON(r))), r.emulateJSON && (s.contentType = "application/x-www-form-urlencoded", s.data = s.data ? { model: s.data } : {}
51), r.emulateHTTP && ("PUT" === o || "DELETE" === o || "PATCH" === o)) { s.type = "POST", r.emulateJSON && (s.data._method = o); var a = r.beforeSend; r.beforeSend = function (t) { if (t.setRequestHeader("X-HTTP-Method-Override", o), a) return a.apply(this, arguments); }; } "GET" === s.type || r.emulateJSON || (s.processData = !1); var l = r.error; r.error = function (t, e, n) { r.textStatus = e, r.errorThrown = n, l && l.call(r.context, t, e, n); }; var c = r.xhr = e.ajax(n.extend(s, r)); return i.trigger("request", i, c, r), c; }; var k = { create: "POST", update: "PUT", patch: "PATCH", delete: "DELETE", read: "GET" }; e.ajax = function () { return e.$.ajax.apply(e.$, arguments); }; var S = e.Router = function (t) { t || (t = {}), t.routes && (this.routes = t.routes), this._bindRoutes(), this.initialize.apply(this, arguments); }, j = /\((.*?)\)/g, A = /(\(\?)?:\w+/g, O = /\*\w+/g, R = /[\-{}\[\]+?.,\\\^$|#\s]/g; n.extend(S.prototype, c, { initialize: function () { }, route: function (t, i, r) { n.isRegExp(t) || (t = this._routeToRegExp(t)), n.isFunction(i) && (r = i, i = ""), r || (r = this[i]); var o = this; return e.history.route(t, (function (n) { var s = o._extractParameters(t, n); !1 !== o.execute(r, s, i) && (o.trigger.apply(o, ["route:" + i].concat(s)), o.trigger("route", i, s), e.history.trigger("route", o, i, s)); })), this; }, execute: function (t, e, n) { t && t.apply(this, e); }, navigate: function (t, n) { return e.history.navigate(t, n), this; }, _bindRoutes: function () { if (this.routes) { this.routes = n.result(this, "routes"); for (var t, e = n.keys(this.routes); null != (t = e.pop());)this.route(t, this.routes[t]); } }, _routeToRegExp: function (t) { return t = t.replace(R, "\\$&").replace(j, "(?:$1)?").replace(A, (function (t, e) { return e ? t : "([^/?]+)"; })).replace(O, "([^?]*?)"), new RegExp("^" + t + "(?:\\?([\\s\\S]*))?$"); }, _extractParameters: function (t, e) { var i = t.exec(e).slice(1); return n.map(i, (function (t, e) { return e === i.length - 1 ? t || null : t ? decodeURIComponent(t) : null; })); } }); var D = e.History = function () { this.handlers = [], this.checkUrl = n.bind(this.checkUrl, this), "undefined" != typeof window && (this.location = window.location, this.history = window.history); }, V = /^[#\/]|\s+$/g, $ = /^\/+|\/+$/g, F = /#.*$/; D.started = !1, n.extend(D.prototype, c, { interval: 50, atRoot: function () { return this.location.pathname.replace(/[^\/]$/, "$&/") === this.root && !this.getSearch(); }, matchRoot: function () { return this.decodeFragment(this.location.pathname).slice(0, this.root.length - 1) + "/" === this.root; }, decodeFragment: function (t) { return decodeURI(t.replace(/%25/g, "%2525")); }, getSearch: function () { var t = this.location.href.replace(/#.*/, "").match(/\?.+/); return t ? t[0] : ""; }, getHash: function (t) { var e = (t || this).location.href.match(/#(.*)$/); return e ? e[1] : ""; }, getPath: function () { var t = this.decodeFragment(this.location.pathname + this.getSearch()).slice(this.root.length - 1); return "/" === t.charAt(0) ? t.slice(1) : t; }, getFragment: function (t) { return null == t && (t = this._usePushState || !this._wantsHashChange ? this.getPath() : this.getHash()), t.replace(V, ""); }, start: function (t) { if (D.started) throw new Error("Backbone.history has already been started"); if (D.started = !0, this.options = n.extend({ root: "/" }, this.options, t), this.root = this.options.root, this._wantsHashChange = !1 !== this.options.hashChange, this._hasHashChange = "onhashchange" in window && (void 0 === document.documentMode || document.documentMode > 7), this._useHashChange = this._wantsHashChange && this._hasHashChange, this._wantsPushState = !!this.options.pushState, this._hasPushState = !(!this.history || !this.history.pushState), this._usePushState = this._wantsPushState && this._hasPushState, this.fragment = this.getFragment(), this.root = ("/" + this.root + "/").replace($, "/"), this._wantsHashChange && this._wantsPushState) { if (!this._hasPushState && !this.atRoot()) { var e = this.root.slice(0, -1) || "/"; return this.location.replace(e + "#" + this.getPath()), !0; } this._hasPushState && this.atRoot() && this.navigate(this.getHash(), { replace: !0 }); } if (!this._hasHashChange && this._wantsHashChange && !this._usePushState) { this.iframe = document.createElement("iframe"), this.iframe.src = "javascript:0", this.iframe.style.display = "none", this.iframe.tabIndex = -1; var i = document.body, r = i.insertBefore(this.iframe, i.firstChild).contentWindow; r.document.open(), r.document.close(), r.location.hash = "#" + this.fragment; } var o = window.addEventListener || function (t, e) { return attachEvent("on" + t, e); }; if (this._usePushState ? o("popstate", this.checkUrl, !1) : this._useHashChange && !this.iframe ? o("hashchange", this.checkUrl, !1) : this._wantsHashChange && (this._checkUrlInterval = setInterval(this.checkUrl, this.interval)), !this.options.silent) return this.loadUrl(); }, stop: function () { var t = window.removeEventListener || function (t, e) { return detachEvent("on" + t, e); }; this._usePushState ? t("popstate", this.checkUrl, !1) : this._useHashChange && !this.iframe && t("hashchange", this.checkUrl, !1), this.iframe && (document.body.removeChild(this.iframe), this.iframe = null), this._checkUrlInterval && clearInterval(this._checkUrlInterval), D.started = !1; }, route: function (t, e) { this.handlers.unshift({ route: t, callback: e }); }, checkUrl: function (t) { var e = this.getFragment(); if (e === this.fragment && this.iframe && (e = this.getHash(this.iframe.contentWindow)), e === this.fragment) return !1; this.iframe && this.navigate(e), this.loadUrl(); }, loadUrl: function (t) { return !!this.matchRoot() && (t = this.fragment = this.getFragment(t), n.some(this.handlers, (function (e) { if (e.route.test(t)) return e.callback(t), !0; }))); }, navigate: function (t, e) { if (!D.started) return !1; e && !0 !== e || (e = { trigger: !!e }), t = this.getFragment(t || ""); var n = this.root; "" !== t && "?" !== t.charAt(0) || (n = n.slice(0, -1) || "/"); var i = n + t; if (t = this.decodeFragment(t.replace(F, "")), this.fragment !== t) { if (this.fragment = t, this._usePushState) this.history[e.replace ? "replaceState" : "pushState"]({}, document.title, i); else { if (!this._wantsHashChange) return this.location.assign(i); if (this._updateHash(this.location, t, e.replace), this.iframe && t !== this.getHash(this.iframe.contentWindow)) { var r = this.iframe.contentWindow; e.replace || (r.document.open(), r.document.close()), this._updateHash(r.location, t, e.replace); } } return e.trigger ? this.loadUrl(t) : void 0; } }, _updateHash: function (t, e, n) { if (n) { var i = t.href.replace(/(javascript:|#).*$/, ""); t.replace(i + "#" + e); } else t.hash = "#" + e; } }), e.history = new D, y.extend = _.extend = S.extend = C.extend = D.extend = function (t, e) { var i, r = this; return i = t && n.has(t, "constructor") ? t.constructor : function () { return r.apply(this, arguments); }, n.extend(i, r, e), i.prototype = n.create(r.prototype, t), i.prototype.constructor = i, i.__super__ = r.prototype, i; }; var I = function () { throw new Error('A "url" property or function must be specified'); }, P = function (t, e) { var n = e.error; e.error = function (i) { n && n.call(e.context, t, i, e), t.trigger("error", t, i, e); }; }; return e; }, a = "object" == typeof self && self.self === self && self || "object" == typeof i && i.global === i && i, r = [n(4), n(0), e], o = function (t, e, n) { a.Backbone = s(a, n, t, e); }.apply(e, r), void 0 === o || (t.exports = o); }).call(e, n(5)); }, 7: function (t, e, n) { var i; i = function (t, e) { "use strict"; t = "default" in t ? t.default : t, e = "default" in e ? e.default : e; var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol ? "symbol" : typeof t; }, i = e.Radio, r = e.Radio = {}; r.VERSION = "2.0.0", r.noConflict = function () { return e.Radio = i, this; }, r.DEBUG = !1, r._debugText = function (t, e, n) { return t + (n ? " on the " + n + " channel" : "") + ': "' + e + '"'; }, r.debugLog = function (t, e, n) { r.DEBUG && console && console.warn && console.warn(r._debugText(t, e, n)); }; var o = /\s+/; function s(t, e, n, i) { var r = t[e]; if (!(n && n !== r.callback && n !== r.callback._callback || i && i !== r.context)) return delete t[e], !0; } r._eventsApi = function (e, i, r, s) { if (!r) return !1; var a = {}; if ("object" === (void 0 === r ? "undefined" : n(r))) { for (var l in r) { var c = e[i].apply(e, [l, r[l]].concat(s)); o.test(l) ? t.extend(a, c) : a[l] = c; } return a; } if (o.test(r)) { for (var u = r.split(o), h = 0, f = u.length; h < f; h++)a[u[h]] = e[i].apply(e, [u[h]].concat(s)); return a; } return !1; }, r._callHandler = function (t, e, n) { var i = n[0], r = n[1], o = n[2]; switch (n.length) { case 0: return t.call(e); case 1: return t.call(e, i); case 2: return t.call(e, i, r); case 3: return t.call(e, i, r, o); default: return t.apply(e, n); } }; var a, l, c = {}; function u(e) { return c[e] || (c[e] = t.bind(r.log, r, e)); } function h(e) { return t.isFunction(e) ? e : function () { return e; }; } t.extend(r, { log: function (e, n) { if ("undefined" != typeof console) { var i = t.toArray(arguments).slice(2); console.log("[" + e + '] "' + n + '"', i); } }, tuneIn: function (t) { var e = r.channel(t); return e._tunedIn = !0, e.on("all", u(t)), this; }, tuneOut: function (t) { var e = r.channel(t); return e._tunedIn = !1, e.off("all", u(t)), delete c[t], this; } }), r.Requests = { request: function (e) { var n = t.toArray(arguments).slice(1), i = r._eventsApi(this, "request", e, n); if (i) return i; var o = this.channelName, s = this._requests; if (o && this._tunedIn && r.log.apply(this, [o, e].concat(n)), s && (s[e] || s.default)) { var a = s[e] || s.default; return n = s[e] ? n : arguments, r._callHandler(a.callback, a.context, n); } r.debugLog("An unhandled request was fired", e, o); }, reply: function (t, e, n) { return r._eventsApi(this, "reply", t, [e, n]) || (this._requests || (this._requests = {}), this._requests[t] && r.debugLog("A request was overwritten", t, this.channelName), this._requests[t] = { callback: h(e), context: n || this }), this; }, replyOnce: function (e, n, i) { if (r._eventsApi(this, "replyOnce", e, [n, i])) return this; var o = this, s = t.once((function () { return o.stopReplying(e), h(n).apply(this, arguments); })); return this.reply(e, s, i); }, stopReplying: function (e, n, i) { return r._eventsApi(this, "stopReplying", e) || (e || n || i ? function (e, n, i, r) { e || (e = {}); for (var o = n ? [n] : t.keys(e), a = !1, l = 0, c = o.length; l < c; l++)e[n = o[l]] && s(e, n, i, r) && (a = !0); return a; }(this._requests, e, n, i) || r.debugLog("Attempted to remove the unregistered request", e, this.channelName) : delete this._requests), this; } }, r._channels = {}, r.channel = function (t) { if (!t) throw new Error("You must provide a name for the channel."); return r._channels[t] ? r._channels[t] : r._channels[t] = new r.Channel(t); }, r.Channel = function (t) { this.channelName = t; }, t.extend(r.Channel.prototype, e.Events, r.Requests, { reset: function () { return this.off(), this.stopListening(), this.stopReplying(), this; } }); var f = [e.Events, r.Requests]; return t.each(f, (function (e) { t.each(e, (function (e, n) { r[n] = function (e) { return l = t.toArray(arguments).slice(1), (a = this.channel(e))[n].apply(a, l); }; })); })), r.reset = function (e) { var n = e ? [this._channels[e]] : this._channels; t.each(n, (function (t) { t.reset(); })); }, r; }, t.exports = i(n(4), n(6)); }, 8: function (t, e, n) { (function (e, n, i, r) { var o; o = function () { var t, o, s; return function t(e, n, i) { function r(s, a) { if (!n[s]) { if (!e[s]) { var l = "function" == typeof _dereq_ && _dereq_; if (!a && l) return l(s, !0); if (o) return o(s, !0); var c = new Error("Cannot find module '" + s + "'"); throw c.code = "MODULE_NOT_FOUND", c; } var u = n[s] = { exports: {} }; e[s][0].call(u.exports, (function (t) { var n = e[s][1][t]; return r(n || t); }), u, u.exports, t, e, n, i); } return n[s].exports; } for (var o = "function" == typeof _dereq_ && _dereq_, s = 0; s < i.length; s++)r(i[s]); return r; }({ 1: [function (t, e, n) { "use strict"; e.exports = function (t) { var e = t._SomePromiseArray; function n(t) { var n = new e(t), i = n.promise(); return n.setHowMany(1), n.setUnwrap(), n.init(), i; } t.any = function (t) { return n(t); }, t.prototype.any = function () { return n(this); }; }; }, {}], 2: [function (t, n, i) { "use strict"; var r; try { throw new Error; } catch (t) { r = t; } var o = t("./schedule"), s = t("./queue"), a = t("./util"); function l() { this._customScheduler = !1, this._isTickUsed = !1, this._lateQueue = new s(16), this._normalQueue = new s(16), this._haveDrainedQueues = !1, this._trampolineEnabled = !0; var t = this; this.drainQueues = function () { t._drainQueues(); }, this._schedule = o; } function c(t, e, n) { this._lateQueue.push(t, e, n), this._queueTick(); } function u(t, e, n) { this._normalQueue.push(t, e, n), this._queueTick(); } function h(t) { this._normalQueue._pushOne(t), this._queueTick(); } l.prototype.setScheduler = function (t) { var e = this._schedule; return this._schedule = t, this._customScheduler = !0, e; }
51, l.prototype.hasCustomScheduler = function () { return this._customScheduler; }, l.prototype.enableTrampoline = function () { this._trampolineEnabled = !0; }, l.prototype.disableTrampolineIfNecessary = function () { a.hasDevTools && (this._trampolineEnabled = !1); }, l.prototype.haveItemsQueued = function () { return this._isTickUsed || this._haveDrainedQueues; }, l.prototype.fatalError = function (t, n) { n ? (e.stderr.write("Fatal " + (t instanceof Error ? t.stack : t) + "\n"), e.exit(2)) : this.throwLater(t); }, l.prototype.throwLater = function (t, e) { if (1 === arguments.length && (e = t, t = function () { throw e; }), "undefined" != typeof setTimeout) setTimeout((function () { t(e); }), 0); else try { this._schedule((function () { t(e); })); } catch (t) { throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n"); } }, a.hasDevTools ? (l.prototype.invokeLater = function (t, e, n) { this._trampolineEnabled ? c.call(this, t, e, n) : this._schedule((function () { setTimeout((function () { t.call(e, n); }), 100); })); }, l.prototype.invoke = function (t, e, n) { this._trampolineEnabled ? u.call(this, t, e, n) : this._schedule((function () { t.call(e, n); })); }, l.prototype.settlePromises = function (t) { this._trampolineEnabled ? h.call(this, t) : this._schedule((function () { t._settlePromises(); })); }) : (l.prototype.invokeLater = c, l.prototype.invoke = u, l.prototype.settlePromises = h), l.prototype._drainQueue = function (t) { for (; t.length() > 0;) { var e = t.shift(); if ("function" == typeof e) { var n = t.shift(), i = t.shift(); e.call(n, i); } else e._settlePromises(); } }, l.prototype._drainQueues = function () { this._drainQueue(this._normalQueue), this._reset(), this._haveDrainedQueues = !0, this._drainQueue(this._lateQueue); }, l.prototype._queueTick = function () { this._isTickUsed || (this._isTickUsed = !0, this._schedule(this.drainQueues)); }, l.prototype._reset = function () { this._isTickUsed = !1; }, n.exports = l, n.exports.firstLineError = r; }, { "./queue": 26, "./schedule": 29, "./util": 36 }], 3: [function (t, e, n) { "use strict"; e.exports = function (t, e, n, i) { var r = !1, o = function (t, e) { this._reject(e); }, s = function (t, e) { e.promiseRejectionQueued = !0, e.bindingPromise._then(o, o, null, this, t); }, a = function (t, e) { 0 == (50397184 & this._bitField) && this._resolveCallback(e.target); }, l = function (t, e) { e.promiseRejectionQueued || this._reject(t); }; t.prototype.bind = function (o) { r || (r = !0, t.prototype._propagateFrom = i.propagateFromFunction(), t.prototype._boundValue = i.boundValueFunction()); var c = n(o), u = new t(e); u._propagateFrom(this, 1); var h = this._target(); if (u._setBoundTo(c), c instanceof t) { var f = { promiseRejectionQueued: !1, promise: u, target: h, bindingPromise: c }; h._then(e, s, void 0, u, f), c._then(a, l, void 0, u, f), u._setOnCancel(c); } else u._resolveCallback(h); return u; }, t.prototype._setBoundTo = function (t) { void 0 !== t ? (this._bitField = 2097152 | this._bitField, this._boundTo = t) : this._bitField = -2097153 & this._bitField; }, t.prototype._isBound = function () { return 2097152 == (2097152 & this._bitField); }, t.bind = function (e, n) { return t.resolve(n).bind(e); }; }; }, {}], 4: [function (t, e, i) { "use strict"; var r; void 0 !== n && (r = n); var o = t("./promise")(); o.noConflict = function () { try { n === o && (n = r); } catch (t) { } return o; }, e.exports = o; }, { "./promise": 22 }], 5: [function (t, e, n) { "use strict"; var i = Object.create; if (i) { var r = i(null), o = i(null); r[" size"] = o[" size"] = 0; } e.exports = function (e) { var n, i = t("./util"), r = i.canEvaluate; function o(t, n) { var r; if (null != t && (r = t[n]), "function" != typeof r) { var o = "Object " + i.classString(t) + " has no method '" + i.toString(n) + "'"; throw new e.TypeError(o); } return r; } function s(t) { return o(t, this.pop()).apply(t, this); } function a(t) { return t[this]; } function l(t) { var e = +this; return e < 0 && (e = Math.max(0, e + t.length)), t[e]; } i.isIdentifier, e.prototype.call = function (t) { var e = [].slice.call(arguments, 1); return e.push(t), this._then(s, void 0, void 0, e, void 0); }, e.prototype.get = function (t) { var e; if ("number" == typeof t) e = l; else if (r) { var i = n(t); e = null !== i ? i : a; } else e = a; return this._then(e, void 0, void 0, t, void 0); }; }; }, { "./util": 36 }], 6: [function (t, e, n) { "use strict"; e.exports = function (e, n, i, r) { var o = t("./util"), s = o.tryCatch, a = o.errorObj, l = e._async; e.prototype.break = e.prototype.cancel = function () { if (!r.cancellation()) return this._warn("cancellation is disabled"); for (var t = this, e = t; t._isCancellable();) { if (!t._cancelBy(e)) { e._isFollowing() ? e._followee().cancel() : e._cancelBranched(); break; } var n = t._cancellationParent; if (null == n || !n._isCancellable()) { t._isFollowing() ? t._followee().cancel() : t._cancelBranched(); break; } t._isFollowing() && t._followee().cancel(), t._setWillBeCancelled(), e = t, t = n; } }, e.prototype._branchHasCancelled = function () { this._branchesRemainingToCancel--; }, e.prototype._enoughBranchesHaveCancelled = function () { return void 0 === this._branchesRemainingToCancel || this._branchesRemainingToCancel <= 0; }, e.prototype._cancelBy = function (t) { return t === this ? (this._branchesRemainingToCancel = 0, this._invokeOnCancel(), !0) : (this._branchHasCancelled(), !!this._enoughBranchesHaveCancelled() && (this._invokeOnCancel(), !0)); }, e.prototype._cancelBranched = function () { this._enoughBranchesHaveCancelled() && this._cancel(); }, e.prototype._cancel = function () { this._isCancellable() && (this._setCancelled(), l.invoke(this._cancelPromises, this, void 0)); }, e.prototype._cancelPromises = function () { this._length() > 0 && this._settlePromises(); }, e.prototype._unsetOnCancel = function () { this._onCancelField = void 0; }, e.prototype._isCancellable = function () { return this.isPending() && !this._isCancelled(); }, e.prototype.isCancellable = function () { return this.isPending() && !this.isCancelled(); }, e.prototype._doInvokeOnCancel = function (t, e) { if (o.isArray(t)) for (var n = 0; n < t.length; ++n)this._doInvokeOnCancel(t[n], e); else if (void 0 !== t) if ("function" == typeof t) { if (!e) { var i = s(t).call(this._boundValue()); i === a && (this._attachExtraTrace(i.e), l.throwLater(i.e)); } } else t._resultCancelled(this); }, e.prototype._invokeOnCancel = function () { var t = this._onCancel(); this._unsetOnCancel(), l.invoke(this._doInvokeOnCancel, this, t); }, e.prototype._invokeInternalOnCancel = function () { this._isCancellable() && (this._doInvokeOnCancel(this._onCancel(), !0), this._unsetOnCancel()); }, e.prototype._resultCancelled = function () { this.cancel(); }; }; }, { "./util": 36 }], 7: [function (t, e, n) { "use strict"; e.exports = function (e) { var n = t("./util"), i = t("./es5").keys, r = n.tryCatch, o = n.errorObj; return function (t, s, a) { return function (l) { var c = a._boundValue(); t: for (var u = 0; u < t.length; ++u) { var h = t[u]; if (h === Error || null != h && h.prototype instanceof Error) { if (l instanceof h) return r(s).call(c, l); } else if ("function" == typeof h) { var f = r(h).call(c, l); if (f === o) return f; if (f) return r(s).call(c, l); } else if (n.isObject(l)) { for (var d = i(h), p = 0; p < d.length; ++p) { var v = d[p]; if (h[v] != l[v]) continue t; } return r(s).call(c, l); } } return e; }; }; }; }, { "./es5": 13, "./util": 36 }], 8: [function (t, e, n) { "use strict"; e.exports = function (t) { var e = !1, n = []; function i() { this._trace = new i.CapturedTrace(r()); } function r() { var t = n.length - 1; if (t >= 0) return n[t]; } return t.prototype._promiseCreated = function () { }, t.prototype._pushContext = function () { }, t.prototype._popContext = function () { return null; }, t._peekContext = t.prototype._peekContext = function () { }, i.prototype._pushContext = function () { void 0 !== this._trace && (this._trace._promiseCreated = null, n.push(this._trace)); }, i.prototype._popContext = function () { if (void 0 !== this._trace) { var t = n.pop(), e = t._promiseCreated; return t._promiseCreated = null, e; } return null; }, i.CapturedTrace = null, i.create = function () { if (e) return new i; }, i.deactivateLongStackTraces = function () { }, i.activateLongStackTraces = function () { var n = t.prototype._pushContext, o = t.prototype._popContext, s = t._peekContext, a = t.prototype._peekContext, l = t.prototype._promiseCreated; i.deactivateLongStackTraces = function () { t.prototype._pushContext = n, t.prototype._popContext = o, t._peekContext = s, t.prototype._peekContext = a, t.prototype._promiseCreated = l, e = !1; }, e = !0, t.prototype._pushContext = i.prototype._pushContext, t.prototype._popContext = i.prototype._popContext, t._peekContext = t.prototype._peekContext = r, t.prototype._promiseCreated = function () { var t = this._peekContext(); t && null == t._promiseCreated && (t._promiseCreated = this); }; }, i; }; }, {}], 9: [function (t, n, i) { "use strict"; n.exports = function (n, i) { var r, o, s, a = n._getDomain, l = n._async, c = t("./errors").Warning, u = t("./util"), h = u.canAttachTrace, f = /[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/, d = /\((?:timers\.js):\d+:\d+\)/, p = /[\/<\(](.+?):(\d+):(\d+)\)?\s*$/, v = null, g = null, m = !1, y = !(0 == u.env("BLUEBIRD_DEBUG")), _ = !(0 == u.env("BLUEBIRD_WARNINGS") || !y && !u.env("BLUEBIRD_WARNINGS")), b = !(0 == u.env("BLUEBIRD_LONG_STACK_TRACES") || !y && !u.env("BLUEBIRD_LONG_STACK_TRACES")), w = 0 != u.env("BLUEBIRD_W_FORGOTTEN_RETURN") && (_ || !!u.env("BLUEBIRD_W_FORGOTTEN_RETURN")); n.prototype.suppressUnhandledRejections = function () { var t = this._target(); t._bitField = -1048577 & t._bitField | 524288; }, n.prototype._ensurePossibleRejectionHandled = function () { if (0 == (524288 & this._bitField)) { this._setRejectionIsUnhandled(); var t = this; setTimeout((function () { t._notifyUnhandledRejection(); }), 1); } }, n.prototype._notifyUnhandledRejectionIsHandled = function () { q("rejectionHandled", r, void 0, this); }, n.prototype._setReturnedNonUndefined = function () { this._bitField = 268435456 | this._bitField; }, n.prototype._returnedNonUndefined = function () { return 0 != (268435456 & this._bitField); }, n.prototype._notifyUnhandledRejection = function () { if (this._isRejectionUnhandled()) { var t = this._settledValue(); this._setUnhandledRejectionIsNotified(), q("unhandledRejection", o, t, this); } }, n.prototype._setUnhandledRejectionIsNotified = function () { this._bitField = 262144 | this._bitField; }, n.prototype._unsetUnhandledRejectionIsNotified = function () { this._bitField = -262145 & this._bitField; }
51, n.prototype._isUnhandledRejectionNotified = function () { return (262144 & this._bitField) > 0; }, n.prototype._setRejectionIsUnhandled = function () { this._bitField = 1048576 | this._bitField; }, n.prototype._unsetRejectionIsUnhandled = function () { this._bitField = -1048577 & this._bitField, this._isUnhandledRejectionNotified() && (this._unsetUnhandledRejectionIsNotified(), this._notifyUnhandledRejectionIsHandled()); }, n.prototype._isRejectionUnhandled = function () { return (1048576 & this._bitField) > 0; }, n.prototype._warn = function (t, e, n) { return M(t, e, n || this); }, n.onPossiblyUnhandledRejection = function (t) { var e = a(); o = "function" == typeof t ? null === e ? t : u.domainBind(e, t) : void 0; }, n.onUnhandledRejectionHandled = function (t) { var e = a(); r = "function" == typeof t ? null === e ? t : u.domainBind(e, t) : void 0; }; var x = function () { }; n.longStackTraces = function () { if (l.haveItemsQueued() && !J.longStackTraces) throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n"); if (!J.longStackTraces && W()) { var t = n.prototype._captureStackTrace, e = n.prototype._attachExtraTrace; J.longStackTraces = !0, x = function () { if (l.haveItemsQueued() && !J.longStackTraces) throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n"); n.prototype._captureStackTrace = t, n.prototype._attachExtraTrace = e, i.deactivateLongStackTraces(), l.enableTrampoline(), J.longStackTraces = !1; }, n.prototype._captureStackTrace = P, n.prototype._attachExtraTrace = N, i.activateLongStackTraces(), l.disableTrampolineIfNecessary(); } }, n.hasLongStackTraces = function () { return J.longStackTraces && W(); }; var C = function () { try { if ("function" == typeof CustomEvent) { var t = new CustomEvent("CustomEvent"); return u.global.dispatchEvent(t), function (t, e) { var n = new CustomEvent(t.toLowerCase(), { detail: e, cancelable: !0 }); return !u.global.dispatchEvent(n); }; } return "function" == typeof Event ? (t = new Event("CustomEvent"), u.global.dispatchEvent(t), function (t, e) { var n = new Event(t.toLowerCase(), { cancelable: !0 }); return n.detail = e, !u.global.dispatchEvent(n); }) : ((t = document.createEvent("CustomEvent")).initCustomEvent("testingtheevent", !1, !0, {}), u.global.dispatchEvent(t), function (t, e) { var n = document.createEvent("CustomEvent"); return n.initCustomEvent(t.toLowerCase(), !1, !0, e), !u.global.dispatchEvent(n); }); } catch (t) { } return function () { return !1; }; }(), E = u.isNode ? function () { return e.emit.apply(e, arguments); } : u.global ? function (t) { var e = "on" + t.toLowerCase(), n = u.global[e]; return !!n && (n.apply(u.global, [].slice.call(arguments, 1)), !0); } : function () { return !1; }; function T(t, e) { return { promise: e }; } var k = { promiseCreated: T, promiseFulfilled: T, promiseRejected: T, promiseResolved: T, promiseCancelled: T, promiseChained: function (t, e, n) { return { promise: e, child: n }; }, warning: function (t, e) { return { warning: e }; }, unhandledRejection: function (t, e, n) { return { reason: e, promise: n }; }, rejectionHandled: T }, S = function (t) { var e = !1; try { e = E.apply(null, arguments); } catch (t) { l.throwLater(t), e = !0; } var n = !1; try { n = C(t, k[t].apply(null, arguments)); } catch (t) { l.throwLater(t), n = !0; } return n || e; }; function j() { return !1; } function A(t, e, n) { var i = this; try { t(e, n, (function (t) { if ("function" != typeof t) throw new TypeError("onCancel must be a function, got: " + u.toString(t)); i._attachCancellationCallback(t); })); } catch (t) { return t; } } function O(t) { if (!this._isCancellable()) return this; var e = this._onCancel(); void 0 !== e ? u.isArray(e) ? e.push(t) : this._setOnCancel([e, t]) : this._setOnCancel(t); } function R() { return this._onCancelField; } function D(t) { this._onCancelField = t; } function V() { this._cancellationParent = void 0, this._onCancelField = void 0; } function $(t, e) { if (0 != (1 & e)) { this._cancellationParent = t; var n = t._branchesRemainingToCancel; void 0 === n && (n = 0), t._branchesRemainingToCancel = n + 1; } 0 != (2 & e) && t._isBound() && this._setBoundTo(t._boundTo); } n.config = function (t) { if ("longStackTraces" in (t = Object(t)) && (t.longStackTraces ? n.longStackTraces() : !t.longStackTraces && n.hasLongStackTraces() && x()), "warnings" in t) { var e = t.warnings; J.warnings = !!e, w = J.warnings, u.isObject(e) && "wForgottenReturn" in e && (w = !!e.wForgottenReturn); } if ("cancellation" in t && t.cancellation && !J.cancellation) { if (l.haveItemsQueued()) throw new Error("cannot enable c
51ancellation after promises are in use"); n.prototype._clearCancellationData = V, n.prototype._propagateFrom = $, n.prototype._onCancel = R, n.prototype._setOnCancel = D, n.prototype._attachCancellationCallback = O, n.prototype._execute = A, F = $, J.cancellation = !0; } return "monitoring" in t && (t.monitoring && !J.monitoring ? (J.monitoring = !0, n.prototype._fireEvent = S) : !t.monitoring && J.monitoring && (J.monitoring = !1, n.prototype._fireEvent = j)), n; }, n.prototype._fireEvent = j, n.prototype._execute = function (t, e, n) { try { t(e, n); } catch (t) { return t; } }, n.prototype._onCancel = function () { }, n.prototype._setOnCancel = function (t) { }, n.prototype._attachCancellationCallback = function (t) { }, n.prototype._captureStackTrace = function () { }, n.prototype._attachExtraTrace = function () { }, n.prototype._clearCancellationData = function () { }, n.prototype._propagateFrom = function (t, e) { }; var F = function (t, e) { 0 != (2 & e) && t._isBound() && this._setBoundTo(t._boundTo); }; function I() { var t = this._boundTo; return void 0 !== t && t instanceof n ? t.isFulfilled() ? t.value() : void 0 : t; } function P() { this._trace = new G(this._peekContext()); } function N(t, e) { if (h(t)) { var n = this._trace; if (void 0 !== n && e && (n = n._parent), void 0 !== n) n.attachExtraTrace(t); else if (!t.__stackCleaned__) { var i = L(t); u.notEnumerableProp(t, "stack", i.message + "\n" + i.stack.join("\n")), u.notEnumerableProp(t, "__stackCleaned__", !0); } } } function M(t, e, i) { if (J.warnings) { var r, o = new c(t); if (e) i._attachExtraTrace(o); else if (J.longStackTraces && (r = n._peekContext())) r.attachExtraTrace(o); else { var s = L(o); o.stack = s.message + "\n" + s.stack.join("\n"); } S("warning", o) || H(o, "", !0); } } function B(t) { for (var e = [], n = 0; n < t.length; ++n) { var i = t[n], r = "    (No stack trace)" === i || v.test(i), o = r && z(i); r && !o && (m && " " !== i.charAt(0) && (i = "    " + i), e.push(i)); } return e; } function L(t) { var e = t.stack, n = t.toString(); return e = "string" == typeof e && e.length > 0 ? function (t) { for (var e = t.stack.replace(/\s+$/g, "").split("\n"), n = 0; n < e.length; ++n) { var i = e[n]; if ("    (No stack trace)" === i || v.test(i)) break; } return n > 0 && "SyntaxError" != t.name && (e = e.slice(n)), e; }(t) : ["    (No stack trace)"], { message: n, stack: "SyntaxError" == t.name ? e : B(e) }; } function H(t, e, n) { if ("undefined" != typeof console) { var i; if (u.isObject(t)) { var r = t.stack; i = e + g(r, t); } else i = e + String(t); "function" == typeof s ? s(i, n) : "function" != typeof console.log && "object" != typeof console.log || console.log(i); } } function q(t, e, n, i) { var r = !1; try { "function" == typeof e && (r = !0, "rejectionHandled" === t ? e(i) : e(n, i)); } catch (t) { l.throwLater(t); } "unhandledRejection" === t ? S(t, n, i) || r || H(n, "Unhandled rejection ") : S(t, i); } function U(t) { var e; if ("function" == typeof t) e = "[function " + (t.name || "anonymous") + "]"; else { if (e = t && "function" == typeof t.toString ? t.toString() : u.toString(t), /\[object [a-zA-Z0-9$_]+\]/.test(e)) try { e = JSON.stringify(t); } catch (t) { } 0 === e.length && (e = "(empty array)"); } return "(<" + function (t) { var e = 41; return t.length < e ? t : t.substr(0, e - 3) + "..."; }(e) + ">, no stack trace)"; } function W() { return "function" == typeof K; } var z = function () { return !1; }, X = /[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/; function Q(t) { var e = t.match(X); if (e) return { fileName: e[1], line: parseInt(e[2], 10) }; } function G(t) { this._parent = t, this._promisesCreated = 0; var e = this._length = 1 + (void 0 === t ? 0 : t._length); K(this, G), e > 32 && this.uncycle(); } u.inherits(G, Error), i.CapturedTrace = G, G.prototype.uncycle = function () { var t = this._length; if (!(t < 2)) { for (var e = [], n = {}, i = 0, r = this; void 0 !== r; ++i)e.push(r), r = r._parent; for (i = (t = this._length = i) - 1; i >= 0; --i) { var o = e[i].stack; void 0 === n[o] && (n[o] = i); } for (i = 0; i < t; ++i) { var s = n[e[i].stack]; if (void 0 !== s && s !== i) { s > 0 && (e[s - 1]._parent = void 0, e[s - 1]._length = 1), e[i]._parent = void 0, e[i]._length = 1; var a = i >
51 0 ? e[i - 1] : this; s < t - 1 ? (a._parent = e[s + 1], a._parent.uncycle(), a._length = a._parent._length + 1) : (a._parent = void 0, a._length = 1); for (var l = a._length + 1, c = i - 2; c >= 0; --c)e[c]._length = l, l++; return; } } } }, G.prototype.attachExtraTrace = function (t) { if (!t.__stackCleaned__) { this.uncycle(); for (var e = L(t), n = e.message, i = [e.stack], r = this; void 0 !== r;)i.push(B(r.stack.split("\n"))), r = r._parent; !function (t) { for (var e = t[0], n = 1; n < t.length; ++n) { for (var i = t[n], r = e.length - 1, o = e[r], s = -1, a = i.length - 1; a >= 0; --a)if (i[a] === o) { s = a; break; } for (a = s; a >= 0; --a) { var l = i[a]; if (e[r] !== l) break; e.pop(), r--; } e = i; } }(i), function (t) { for (var e = 0; e < t.length; ++e)(0 === t[e].length || e + 1 < t.length && t[e][0] === t[e + 1][0]) && (t.splice(e, 1), e--); }(i), u.notEnumerableProp(t, "stack", function (t, e) { for (var n = 0; n < e.length - 1; ++n)e[n].push("From previous event:"), e[n] = e[n].join("\n"); return n < e.length && (e[n] = e[n].join("\n")), t + "\n" + e.join("\n"); }(n, i)), u.notEnumerableProp(t, "__stackCleaned__", !0); } }; var K = function () { var t = /^\s*at\s*/, e = function (t, e) { return "string" == typeof t ? t : void 0 !== e.name && void 0 !== e.message ? e.toString() : U(e); }; if ("number" == typeof Error.stackTraceLimit && "function" == typeof Error.captureStackTrace) { Error.stackTraceLimit += 6, v = t, g = e; var n = Error.captureStackTrace; return z = function (t) { return f.test(t); }, function (t, e) { Error.stackTraceLimit += 6, n(t, e), Error.stackTraceLimit -= 6; }; } var i, r = new Error; if ("string" == typeof r.stack && r.stack.split("\n")[0].indexOf("stackDetection@") >= 0) return v = /@/, g = e, m = !0, function (t) { t.stack = (new Error).stack; }; try { throw new Error; } catch (t) { i = "stack" in t; } return !("stack" in r) && i && "number" == typeof Error.stackTraceLimit ? (v = t, g = e, function (t) { Error.stackTraceLimit += 6; try { throw new Error; } catch (e) { t.stack = e.stack; } Error.stackTraceLimit -= 6; }) : (g = function (t, e) { return "string" == typeof t ? t : "object" != typeof e && "function" != typeof e || void 0 === e.name || void 0 === e.message ? U(e) : e.toString(); }, null); }(); "undefined" != typeof console && void 0 !== console.warn && (s = function (t) { console.warn(t); }, u.isNode && e.stderr.isTTY ? s = function (t, e) { var n = e ? "�[33m" : "�[31m"; console.warn(n + t + "�[0m\n"); } : u.isNode || "string" != typeof (new Error).stack || (s = function (t, e) { console.warn("%c" + t, e ? "color: darkorange" : "color: red"); })); var J = { warnings: _, longStackTraces: !1, cancellation: !1, monitoring: !1 }; return b && n.longStackTraces(), { longStackTraces: function () { return J.longStackTraces; }, warnings: function () { return J.warnings; }, cancellation: function () { return J.cancellation; }, monitoring: function () { return J.monitoring; }, propagateFromFunction: function () { return F; }, boundValueFunction: function () { return I; }, checkForgottenReturns: function (t, e, n, i, r) { if (void 0 === t && null !== e && w) { if (void 0 !== r && r._returnedNonUndefined()) return; if (0 == (65535 & i._bitField)) return; n && (n += " "); var o = "", s = ""; if (e._trace) { for (var a = e._trace.stack.split("\n"), l = B(a), c = l.length - 1; c >= 0; --c) { var u = l[c]; if (!d.test(u)) { var h = u.match(p); h && (o = "at " + h[1] + ":" + h[2] + ":" + h[3] + " "); break; } } if (l.length > 0) { var f = l[0]; for (c = 0; c < a.length; ++c)if (a[c] === f) { c > 0 && (s = "\n" + a[c - 1]); break; } } } var v = "a promise was created in a " + n + "handler " + o + "but was not returned from it, see http://goo.gl/rRqMUw" + s; i._warn(v, !0, e); } }, setBounds: function (t, e) { if (W()) { for (var n, i, r = t.stack.split("\n"), o = e.stack.split("\n"), s = -1, a = -1, l = 0; l < r.length; ++l)if (c = Q(r[l])) { n = c.fileName, s = c.line; break; } for (l = 0; l < o.length; ++l) { var c; if (c = Q(o[l])) { i = c.fileName, a = c.line; break; } } s < 0 || a < 0 || !n || !i || n !== i || s >= a || (z = function (t) { if (f.test(t)) return !0; var e = Q(t); return !!(e && e.fileName === n && s <= e.line && e.line <= a); }); } }, warn: M, deprecated: function (t, e) { var n = t + " is deprecated and will be removed in a future version."; return e && (n += " Use " + e + " instead."), M(n); }, CapturedTrace: G, fireDomEvent: C, fireGlobalEvent: E }; }; }, { "./errors": 12, "./util": 36 }], 10: [function (t, e, n) { "use strict"; e.exports = function (t) { function e() { return this.value; } function n() { throw this.reason; } t.prototype.return = t.prototype.thenReturn = function (n) { return n instanceof t && n.suppressUnhandledRejections(), this._then(e, void 0, void 0, { value: n }, void 0); }, t.prototype.throw = t.prototype.thenThrow = function (t) { return this._then(n, void 0, void 0, { reason: t }, void 0); }, t.prototype.catchThrow = function (t) { if (arguments.length <= 1) return this._then(void 0, n, void 0, { reason: t }, void 0); var e = arguments[1], i = function () { throw e; }; return this.caught(t, i); }, t.prototype.catchReturn = function (n) { if (arguments.length <= 1) return n instanceof t && n.suppressUnhandledRejections(), this._then(void 0, e, void 0, { value: n }, void 0); var i = arguments[1]; i instanceof t && i.suppressUnhandledRejections(); var r = function () { return i; }; return this.caught(n, r); }; }; }, {}], 11: [function (t, e, n) { "use strict"; e.exports = function (t, e) { var n = t.reduce, i = t.all; function r() { return i(this); } t.prototype.each = function (t) { return n(this, t, e, 0)._then(r, void 0, void 0, this, void 0); }, t.prototype.mapSeries = function (t) { return n(this, t, e, e); }, t.each = function (t, i) { return n(t, i, e, 0)._then(r, void 0, void 0, t, void 0); }, t.mapSeries = function (t, i) { return n(t, i, e, e); }; }; }, {}], 12: [function (t, e, n) { "use strict"; var i, r, o = t("./es5"), s = o.freeze, a = t("./util"), l = a.inherits, c = a.notEnumerableProp; function u(t, e) { function n(i) { if (!(this instanceof n)) return new n(i); c(this, "message", "string" == typeof i ? i : e), c(this, "name", t), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : Error.call(this); } return l(n, Error), n; }
51 var h = u("Warning", "warning"), f = u("CancellationError", "cancellation error"), d = u("TimeoutError", "timeout error"), p = u("AggregateError", "aggregate error"); try { i = TypeError, r = RangeError; } catch (t) { i = u("TypeError", "type error"), r = u("RangeError", "range error"); } for (var v = "join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "), g = 0; g < v.length; ++g)"function" == typeof Array.prototype[v[g]] && (p.prototype[v[g]] = Array.prototype[v[g]]); o.defineProperty(p.prototype, "length", { value: 0, configurable: !1, writable: !0, enumerable: !0 }), p.prototype.isOperational = !0; var m = 0; function y(t) { if (!(this instanceof y)) return new y(t); c(this, "name", "OperationalError"), c(this, "message", t), this.cause = t, this.isOperational = !0, t instanceof Error ? (c(this, "message", t.message), c(this, "stack", t.stack)) : Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); } p.prototype.toString = function () { var t = Array(4 * m + 1).join(" "), e = "\n" + t + "AggregateError of:\n"; m++, t = Array(4 * m + 1).join(" "); for (var n = 0; n < this.length; ++n) { for (var i = this[n] === this ? "[Circular AggregateError]" : this[n] + "", r = i.split("\n"), o = 0; o < r.length; ++o)r[o] = t + r[o]; e += (i = r.join("\n")) + "\n"; } return m--, e; }, l(y, Error); var _ = Error.__BluebirdErrorTypes__; _ || (_ = s({ CancellationError: f, TimeoutError: d, OperationalError: y, RejectionError: y, AggregateError: p }), o.defineProperty(Error, "__BluebirdErrorTypes__", { value: _, writable: !1, enumerable: !1, configurable: !1 })), e.exports = { Error: Error, TypeError: i, RangeError: r, CancellationError: _.CancellationError, OperationalError: _.OperationalError, TimeoutError: _.TimeoutError, AggregateError: _.AggregateError, Warning: h }; }, { "./es5": 13, "./util": 36 }], 13: [function (t, e, n) { var i = function () { "use strict"; return void 0 === this; }(); if (i) e.exports = { freeze: Object.freeze, defineProperty: Object.defineProperty, getDescriptor: Object.getOwnPropertyDescriptor, keys: Object.keys, names: Object.getOwnPropertyNames, getPrototypeOf: Object.getPrototypeOf, isArray: Array.isArray, isES5: i, propertyIsWritable: function (t, e) { var n = Object.getOwnPropertyDescriptor(t, e); return !(n && !n.writable && !n.set); } }; else { var r = {}.hasOwnProperty, o = {}.toString, s = {}.constructor.prototype, a = function (t) { var e = []; for (var n in t) r.call(t, n) && e.push(n); return e; }; e.exports = { isArray: function (t) { try { return "[object Array]" === o.call(t); } catch (t) { return !1; } }, keys: a, names: a, defineProperty: function (t, e, n) { return t[e] = n.value, t; }, getDescriptor: function (t, e) { return { value: t[e] }; }, freeze: function (t) { return t; }, getPrototypeOf: function (t) { try { return Object(t).constructor.prototype; } catch (t) { return s; } }, isES5: i, propertyIsWritable: function () { return !0; } }; } }, {}], 14: [function (t, e, n) { "use strict"; e.exports = function (t, e) { var n = t.map; t.prototype.filter = function (t, i) { return n(this, t, i, e); }, t.filter = function (t, i, r) { return n(t, i, r, e); }; }; }, {}], 15: [function (t, e, n) { "use strict"; e.exports = function (e, n, i) { var r = t("./util"), o = e.CancellationError, s = r.errorObj, a = t("./catch_filter")(i); function l(t, e, n) { this.promise = t, this.type = e, this.handler = n, this.called = !1, this.cancelPromise = null; } function c(t) { this.finallyHandler = t; } function u(t, e) { return null != t.cancelPromise && (arguments.length > 1 ? t.cancelPromise._reject(e) : t.cancelPromise._cancel(), t.cancelPromise = null, !0); } function h() { return d.call(this, this.promise._target()._settledValue()); } function f(t) { if (!u(this, t)) return s.e = t, s; } function d(t) { var r = this.promise, a = this.handler; if (!this.called) { this.called = !0; var l = this.isFinallyHandler() ? a.call(r._boundValue()) : a.call(r._boundValue(), t); if (l === i) return l; if (void 0 !== l) { r._setReturnedNonUndefined(); var d = n(l, r); if (d instanceof e) { if (null != this.cancelPromise) { if (d._isCancelled()) { var p = new o("late cancellation observer"); return r._attachExtraTrace(p), s.e = p, s; } d.isPending() && d._attachCancellationCallback(new c(this)); } return d._then(h, f, void 0, this, void 0); } } } return r.isRejected() ? (u(this), s.e = t, s) : (u(this), t); } return l.prototype.isFinallyHandler = function () { return 0 === this.type; }, c.prototype._resultCancelled = function () { u(this.finallyHandler); }, e.prototype._passThrough = function (t, e, n, i) { return "function" != typeof t ? this.then() : this._then(n, i, void 0, new l(this, e, t), void 0); }, e.prototype.lastly = e.prototype.finally = function (t) { return this._passThrough(t, 0, d, d); }, e.prototype.tap = function (t) { return this._passThrough(t, 1, d); }, e.prototype.tapCatch = function (t) { var n = arguments.length; if (1 === n) return this._passThrough(t, 1, void 0, d); var i, o = new Array(n - 1), s = 0; for (i = 0; i < n - 1; ++i) { var l = arguments[i]; if (!r.isObject(l)) return e.reject(new TypeError("tapCatch statement predicate: expecting an object but got " + r.classString(l))); o[s++] = l; } o.length = s; var c = arguments[i]; return this._passThrough(a(o, c, this), 1, void 0, d); }, l; }; }, { "./catch_filter": 7, "./util": 36 }], 16: [function (t, e, n) { "use strict"; e.exports = function (e, n, i, r, o, s) { var a = t("./errors").TypeError, l = t("./util"), c = l.errorObj, u = l.tryCatch, h = []; function f(t, n, r, o) { if (s.cancellation()) { var a = new e(i), l = this._finallyPromise = new e(i); this._promise = a.lastly((function () { return l; })), a._captureStackTrace(), a._setOnCancel(this); } else (this._promise = new e(i))._captureStackTrace(); this._stack = o, this._generatorFunction = t, this._receiver = n, this._generator = void 0, this._yieldHandlers = "function" == typeof r ? [r].concat(h) : h, this._yieldedPromise = null, this._cancellationPhase = !1; } l.inherits(f, o), f.prototype._isResolved = function () { return null === this._promise; }, f.prototype._cleanup = function () { this._promise = this._generator = null, s.cancellation() && null !== this._finallyPromise && (this._finallyPromise._fulfill(), this._finallyPromise = null); }, f.prototype._promiseCancelled = function () { if (!this._isResolved()) { var t; if (void 0 !== this._generator.return) this._promise._pushContext(), t = u(this._generator.return).c
51all(this._generator, void 0), this._promise._popContext(); else { var n = new e.CancellationError("generator .return() sentinel"); e.coroutine.returnSentinel = n, this._promise._attachExtraTrace(n), this._promise._pushContext(), t = u(this._generator.throw).call(this._generator, n), this._promise._popContext(); } this._cancellationPhase = !0, this._yieldedPromise = null, this._continue(t); } }, f.prototype._promiseFulfilled = function (t) { this._yieldedPromise = null, this._promise._pushContext(); var e = u(this._generator.next).call(this._generator, t); this._promise._popContext(), this._continue(e); }, f.prototype._promiseRejected = function (t) { this._yieldedPromise = null, this._promise._attachExtraTrace(t), this._promise._pushContext(); var e = u(this._generator.throw).call(this._generator, t); this._promise._popContext(), this._continue(e); }, f.prototype._resultCancelled = function () { if (this._yieldedPromise instanceof e) { var t = this._yieldedPromise; this._yieldedPromise = null, t.cancel(); } }, f.prototype.promise = function () { return this._promise; }, f.prototype._run = function () { this._generator = this._generatorFunction.call(this._receiver), this._receiver = this._generatorFunction = void 0, this._promiseFulfilled(void 0); }, f.prototype._continue = function (t) { var n = this._promise; if (t === c) return this._cleanup(), this._cancellationPhase ? n.cancel() : n._rejectCallback(t.e, !1); var i = t.value; if (!0 === t.done) return this._cleanup(), this._cancellationPhase ? n.cancel() : n._resolveCallback(i); var o = r(i, this._promise); if (o instanceof e || (o = function (t, n, i) { for (var o = 0; o < n.length; ++o) { i._pushContext(); var s = u(n[o])(t); if (i._popContext(), s === c) { i._pushContext(); var a = e.reject(c.e); return i._popContext(), a; } var l = r(s, i); if (l instanceof e) return l; } return null; }(o, this._yieldHandlers, this._promise), null !== o)) { var s = (o = o._target())._bitField; 0 == (50397184 & s) ? (this._yieldedPromise = o, o._proxy(this, null)) : 0 != (33554432 & s) ? e._async.invoke(this._promiseFulfilled, this, o._value()) : 0 != (16777216 & s) ? e._async.invoke(this._promiseRejected, this, o._reason()) : this._promiseCancelled(); } else this._promiseRejected(new a("A value %s was yielded that could not be treated as a promise\n\n    See http://goo.gl/MqrFmX\n\n".replace("%s", String(i)) + "From coroutine:\n" + this._stack.split("\n").slice(1, -7).join("\n"))); }, e.coroutine = function (t, e) { if ("function" != typeof t) throw new a("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n"); var n = Object(e).yieldHandler, i = f, r = (new Error).stack; return function () { var e = t.apply(this, arguments), o = new i(void 0, void 0, n, r), s = o.promise(); return o._generator = e, o._promiseFulfilled(void 0), s; }; }, e.coroutine.addYieldHandler = function (t) { if ("function" != typeof t) throw new a("expecting a function but got " + l.classString(t)); h.push(t); }, e.spawn = function (t) { if (s.deprecated("Promise.spawn()", "Promise.coroutine()"), "function" != typeof t) return n("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n"); var i = new f(t, this), r = i.promise(); return i._run(e.spawn), r; }; }; }, { "./errors": 12, "./util": 36 }], 17: [function (t, e, n) { "use strict"; e.exports = function (e, n, i, r, o, s) { var a = t("./util"); a.canEvaluate, a.tryCatch, a.errorObj, e.join = function () { var t, e = arguments.length - 1; e > 0 && "function" == typeof arguments[e] && (t = arguments[e]); var i = [].slice.call(arguments); t && i.pop(); var r = new n(i).promise(); return void 0 !== t ? r.spread(t) : r; }; }; }, { "./util": 36 }], 18: [function (t, e, n) { "use strict"; e.exports = function (e, n, i, r, o, s) { var a = e._getDomain, l = t("./util"), c = l.tryCatch, u = l.errorObj, h = e._async; function f(t, e, n, i) { this.constructor$(t), this._promise._captureStackTrace(); var r = a(); this._callback = null === r ? e : l.domainBind(r, e), this._preservedValues = i === o ? new Array(this.length()) : null, this._limit = n, this._inFlight = 0, this._queue = [], h.invoke(this._asyncInit, this, void 0); } function d(t, n, r, o) { if ("function" != typeof n) return i("expecting a function but got " + l.classString(n)); var s = 0; if (void 0 !== r) { if ("object" != typeof r || null === r) return e.reject(new TypeError("options argument must be an object but it is " + l.classString(r))); if ("number" != typeof r.concurrency) return e.reject(new TypeError("'concurrency' must be a number but it is " + l.classString(r.concurrency))); s = r.concurrency; } return new f(t, n, s = "number" == typeof s && isFinite(s) && s >= 1 ? s : 0, o).promise(); } l.inherits(f, n), f.prototype._asyncInit = function () { this._init$(void 0, -2); }, f.prototype._init = function () { }, f.prototype._promiseFulfilled = function (t, n) { var i = this._values, o = this.length(), a = this._preservedValues, l = this._limit; if (n < 0) { if (i[n = -1 * n - 1] = t, l >= 1 && (this._inFlight--, this._drainQueue(), this._isResolved())) return !0; } else { if (l >= 1 && this._inFlight >= l) return i[n] = t, this._queue.push(n), !1; null !== a && (a[n] = t);
51 var h = this._promise, f = this._callback, d = h._boundValue(); h._pushContext(); var p = c(f).call(d, t, n, o), v = h._popContext(); if (s.checkForgottenReturns(p, v, null !== a ? "Promise.filter" : "Promise.map", h), p === u) return this._reject(p.e), !0; var g = r(p, this._promise); if (g instanceof e) { var m = (g = g._target())._bitField; if (0 == (50397184 & m)) return l >= 1 && this._inFlight++, i[n] = g, g._proxy(this, -1 * (n + 1)), !1; if (0 == (33554432 & m)) return 0 != (16777216 & m) ? (this._reject(g._reason()), !0) : (this._cancel(), !0); p = g._value(); } i[n] = p; } return ++this._totalResolved >= o && (null !== a ? this._filter(i, a) : this._resolve(i), !0); }, f.prototype._drainQueue = function () { for (var t = this._queue, e = this._limit, n = this._values; t.length > 0 && this._inFlight < e;) { if (this._isResolved()) return; var i = t.pop(); this._promiseFulfilled(n[i], i); } }, f.prototype._filter = function (t, e) { for (var n = e.length, i = new Array(n), r = 0, o = 0; o < n; ++o)t[o] && (i[r++] = e[o]); i.length = r, this._resolve(i); }, f.prototype.preservedValues = function () { return this._preservedValues; }, e.prototype.map = function (t, e) { return d(this, t, e, null); }, e.map = function (t, e, n, i) { return d(t, e, n, i); }; }; }, { "./util": 36 }], 19: [function (t, e, n) { "use strict"; e.exports = function (e, n, i, r, o) { var s = t("./util"), a = s.tryCatch; e.method = function (t) { if ("function" != typeof t) throw new e.TypeError("expecting a function but got " + s.classString(t)); return function () { var i = new e(n); i._captureStackTrace(), i._pushContext(); var r = a(t).apply(this, arguments), s = i._popContext(); return o.checkForgottenReturns(r, s, "Promise.method", i), i._resolveFromSyncValue(r), i; }; }, e.attempt = e.try = function (t) { if ("function" != typeof t) return r("expecting a function but got " + s.classString(t)); var i, l = new e(n); if (l._captureStackTrace(), l._pushContext(), arguments.length > 1) { o.deprecated("calling Promise.try with more than 1 argument"); var c = arguments[1], u = arguments[2]; i = s.isArray(c) ? a(t).apply(u, c) : a(t).call(u, c); } else i = a(t)(); var h = l._popContext(); return o.checkForgottenReturns(i, h, "Promise.try", l), l._resolveFromSyncValue(i), l; }, e.prototype._resolveFromSyncValue = function (t) { t === s.errorObj ? this._rejectCallback(t.e, !1) : this._resolveCallback(t, !0); }; }; }, { "./util": 36 }], 20: [function (t, e, n) { "use strict"; var i = t("./util"), r = i.maybeWrapAsError, o = t("./errors").OperationalError, s = t("./es5"), a = /^(?:name|message|stack|cause)$/; function l(t) { var e; if (function (t) { return t instanceof Error && s.getPrototypeOf(t) === Error.prototype; }(t)) { (e = new o(t)).name = t.name, e.message = t.message, e.stack = t.stack; for (var n = s.keys(t), r = 0; r < n.length; ++r) { var l = n[r]; a.test(l) || (e[l] = t[l]); } return e; } return i.markAsOriginatingFromRejection(t), t; } e.exports = function (t, e) { return function (n, i) { if (null !== t) { if (n) { var o = l(r(n)); t._attachExtraTrace(o), t._reject(o); } else if (e) { var s = [].slice.call(arguments, 1); t._fulfill(s); } else t._fulfill(i); t = null; } }; }; }, { "./errors": 12, "./es5": 13, "./util": 36 }], 21: [function (t, e, n) { "use strict"; e.exports = function (e) { var n = t("./util"), i = e._async, r = n.tryCatch, o = n.errorObj; function s(t, e) { if (!n.isArray(t)) return a.call(this, t, e); var s = r(e).apply(this._boundValue(), [null].concat(t)); s === o && i.throwLater(s.e); } function a(t, e) { var n = this._boundValue(), s = void 0 === t ? r(e).call(n, null) : r(e).call(n, null, t); s === o && i.throwLater(s.e); } function l(t, e) { if (!t) { var n = new Error(t + ""); n.cause = t, t = n; } var s = r(e).call(this._boundValue(), t); s === o && i.throwLater(s.e); } e.prototype.asCallback = e.prototype.nodeify = function (t, e) { if ("function" == typeof t) { var n = a; void 0 !== e && Object(e).spread && (n = s), this._then(n, l, void 0, this, t); } return this; }; }; }, { "./util": 36 }], 22: [function (t, n, i) { "use strict"; n.exports = function () { var i = function () { return new p("circular promise resolution chain\n\n    See http://goo.gl/MqrFmX\n"); }, r = function () { return new A.PromiseInspection(this._target()); }, o = function (t) { return A.reject(new p(t)); }; function s() { } var a, l = {}, c = t("./util"); a = c.isNode ? function () { var t = e.domain; return void 0 === t && (t = null), t; } : function () { return null; }, c.notEnumerableProp(A, "_getDomain", a); var u = t("./es5"), h = t("./async"), f = new h; u.defineProperty(A, "_async", { value: f }); var d = t("./errors"), p = A.TypeError = d.TypeError; A.RangeError = d.RangeError; var v = A.CancellationError = d.CancellationError; A.TimeoutError = d.TimeoutError, A.OperationalError = d.OperationalError, A.RejectionError = d.OperationalError, A.AggregateError = d.AggregateError; var g = function () { }, m = {}, y = {}, _ = t("./thenables")(A, g), b = t("./promise_array")(A, g, _, o, s), w = t("./context")(A), x = w.create, C = t("./debuggability")(A, w), E = (C.CapturedTrace, t("./finally")(A, _, y)), T = t("./catch_filter")(y), k = t("./nodeback"), S = c.errorObj, j = c.tryCatch; function A(t) { t !== g && function (t, e) { if (null == t || t.constructor !== A) throw new p("the promise constructor cannot be invoked directly\n\n    See http://goo.gl/MqrFmX\n"); if ("function" != typeof e) throw new p("expecting a function but got " + c.classString(e)); }(this, t), this._bitField = 0, this._fulfillmentHandler0 = void 0, this._rejectionHandler0 = void 0, this._promise0 = void 0, this._receiver0 = void 0, this._resolveFromExecutor(t), this._promiseCreated(), this._fireEvent("promiseCreated", this); } function O(t) { this.promise._resolveCallback(t); } function R(t) { this.promise._rejectCallback(t, !1); } function D(t) { var e = new A(g); e._fulfillmentHandler0 = t, e._rejectionHandler0 = t, e._promise0 = t, e._receiver0 = t; } return A.prototype.toString = function () { return "[object Promise]"; }, A.prototype.caught = A.prototype.catch = function (t) { var e = arguments.length; if (e > 1) { var n, i = new Array(e - 1), r = 0; for (n = 0; n < e - 1; ++n) { var s = arguments[n]; if (!c.isObject(s)) return o("Catch statement predicate: expecting an object but got " + c.classString(s)); i[r++] = s; } return i.length = r, t = arguments[n], this.then(void 0, T(i, t, this)); } return this.then(void 0, t); }, A.prototype.reflect = function () { return this._then(r, r, void 0, this, void 0); }, A.prototype.then = function (t, e) { if (C.warnings() && arguments.length > 0 && "function" != typeof t && "function" != typeof e) { var n = ".then() only accepts functions but was passed: " + c.classString(t); arguments.length > 1 && (n += ", " + c.classString(e)), this._warn(n); } return this._then(t, e, void 0, void 0, void 0); }, A.prototype.done = function (t, e) { this._then(t, e, void 0, void 0, void 0)._setIsFinal(); }, A.prototype.spread = function (t) { return "function" != typeof t ? o("expecting a function but got " + c.classString(t)) : this.all()._then(t, void 0, void 0, m, void 0); }, A.prototype.toJSON = function () { var t = { isFulfilled: !1, isRejected: !1, fulfillmentValue: void 0, rejectionReason: void 0 }; return this.isFulfilled() ? (t.fulfillmentValue = this.value(), t.isFulfilled = !0) : this.isRejected() && (t.rejectionReason = this.reason(), t.isRejected = !0), t; }, A.prototype.all = function () { return arguments.length > 0 && this._warn(".all() was passed arguments but it does not take any"), new b(this).promise(); }, A.prototype.error = function (t) { return this.caught(c.originatesFromRejection, t); }, A.getNewLibraryCopy = n.exports, A.is = function (t) { return t instanceof A; }, A.fromNode = A.fromCallback = function (t) { var e = new A(g); e._captureStackTrace(); var n = arguments.length > 1 && !!Object(arguments[1]).multiArgs, i = j(t)(k(e, n)); return i === S && e._rejectCallback(i.e, !0), e._isFateSealed() || e._setAsyncGuaranteed(), e; }, A.all = function (t) { return new b(t).promise(); }, A.cast = function (t) { var e = _(t); return e instanceof A || ((e = new A(g))._captureStackTrace(), e._setFulfilled(), e._rejectionHandler0 = t), e; }, A.resolve = A.fulfilled = A.cast, A.reject = A.rejected = function (t) { var e = new A(g); return e._captureStackTrace(), e._rejectCallback(t, !0), e; }, A.setScheduler = function (t) { if ("function" != typeof t) throw new p("expecting a function but got " + c.classString(t)); return f.setScheduler(t); }, A.prototype._then = function (t, e, n, i, r) { var o = void 0 !== r, s = o ? r : new A(g), l = this._target(), u = l._bitField; o || (s._propagateFrom(this, 3), s._captureStackTrace(), void 0 === i && 0 != (2097152 & this._bitField) && (i = 0 != (50397184 & u) ? this._boundValue() : l === this ? void 0 : this._boundTo), this._fireEvent("promiseChained", this, s));
51 var h = a(); if (0 != (50397184 & u)) { var d, p, m = l._settlePromiseCtx; 0 != (33554432 & u) ? (p = l._rejectionHandler0, d = t) : 0 != (16777216 & u) ? (p = l._fulfillmentHandler0, d = e, l._unsetRejectionIsUnhandled()) : (m = l._settlePromiseLateCancellationObserver, p = new v("late cancellation observer"), l._attachExtraTrace(p), d = e), f.invoke(m, l, { handler: null === h ? d : "function" == typeof d && c.domainBind(h, d), promise: s, receiver: i, value: p }); } else l._addCallbacks(t, e, s, i, h); return s; }, A.prototype._length = function () { return 65535 & this._bitField; }, A.prototype._isFateSealed = function () { return 0 != (117506048 & this._bitField); }, A.prototype._isFollowing = function () { return 67108864 == (67108864 & this._bitField); }, A.prototype._setLength = function (t) { this._bitField = -65536 & this._bitField | 65535 & t; }, A.prototype._setFulfilled = function () { this._bitField = 33554432 | this._bitField, this._fireEvent("promiseFulfilled", this); }, A.prototype._setRejected = function () { this._bitField = 16777216 | this._bitField, this._fireEvent("promiseRejected", this); }, A.prototype._setFollowing = function () { this._bitField = 67108864 | this._bitField, this._fireEvent("promiseResolved", this); }, A.prototype._setIsFinal = function () { this._bitField = 4194304 | this._bitField; }, A.prototype._isFinal = function () { return (4194304 & this._bitField) > 0; }, A.prototype._unsetCancelled = function () { this._bitField = -65537 & this._bitField; }, A.prototype._setCancelled = function () { this._bitField = 65536 | this._bitField, this._fireEvent("promiseCancelled", this); }, A.prototype._setWillBeCancelled = function () { this._bitField = 8388608 | this._bitField; }, A.prototype._setAsyncGuaranteed = function () { f.hasCustomScheduler() || (this._bitField = 134217728 | this._bitField); }, A.prototype._receiverAt = function (t) { var e = 0 === t ? this._receiver0 : this[4 * t - 4 + 3]; if (e !== l) return void 0 === e && this._isBound() ? this._boundValue() : e; }, A.prototype._promiseAt = function (t) { return this[4 * t - 4 + 2]; }, A.prototype._fulfillmentHandlerAt = function (t) { return this[4 * t - 4 + 0]; }, A.prototype._rejectionHandlerAt = function (t) { return this[4 * t - 4 + 1]; }, A.prototype._boundValue = function () { }, A.prototype._migrateCallback0 = function (t) { t._bitField; var e = t._fulfillmentHandler0, n = t._rejectionHandler0, i = t._promise0, r = t._receiverAt(0); void 0 === r && (r = l), this._addCallbacks(e, n, i, r, null); }, A.prototype._migrateCallbackAt = function (t, e) { var n = t._fulfillmentHandlerAt(e), i = t._rejectionHandlerAt(e), r = t._promiseAt(e), o = t._receiverAt(e); void 0 === o && (o = l), this._addCallbacks(n, i, r, o, null); }, A.prototype._addCallbacks = function (t, e, n, i, r) { var o = this._length(); if (o >= 65531 && (o = 0, this._setLength(0)), 0 === o) this._promise0 = n, this._receiver0 = i, "function" == typeof t && (this._fulfillmentHandler0 = null === r ? t : c.domainBind(r, t)), "function" == typeof e && (this._rejectionHandler0 = null === r ? e : c.domainBind(r, e)); else { var s = 4 * o - 4; this[s + 2] = n, this[s + 3] = i, "function" == typeof t && (this[s + 0] = null === r ? t : c.domainBind(r, t)), "function" == typeof e && (this[s + 1] = null === r ? e : c.domainBind(r, e)); } return this._setLength(o + 1), o; }, A.prototype._proxy = function (t, e) { this._addCallbacks(void 0, void 0, e, t, null); }, A.prototype._resolveCallback = function (t, e) { if (0 == (117506048 & this._bitField)) { if (t === this) return this._rejectCallback(i(), !1); var n = _(t, this); if (!(n instanceof A)) return this._fulfill(t); e && this._propagateFrom(n, 2); var r = n._target(); if (r !== this) { var o = r._bitField; if (0 == (50397184 & o)) { var s = this._length(); s > 0 && r._migrateCallback0(this); for (var a = 1; a < s; ++a)r._migrateCallbackAt(this, a); this._setFollowing(), this._setLength(0), this._setFollowee(r); } else if (0 != (33554432 & o)) this._fulfill(r._value()); else if (0 != (16777216 & o)) this._reject(r._reason()); else { var l = new v("late cancellation observer"); r._attachExtraTrace(l), this._reject(l); } } else this._reject(i()); } }, A.prototype._rejectCallback = function (t, e, n) { var i = c.ensureErrorObject(t), r = i === t; if (!r && !n && C.warnings()) { var o = "a promise was rejected with a non-error: " + c.classString(t); this._warn(o, !0); } this._attachExtraTrace(i, !!e && r), this._reject(t); }, A.prototype._resolveFromExecutor = function (t) { if (t !== g) { var e = this; this._captureStackTrace(), this._pushContext(); var n = !0, i = this._execute(t, (function (t) { e._resolveCallback(t); }), (function (t) { e._rejectCallback(t, n); })); n = !1, this._popContext(), void 0 !== i && e._rejectCallback(i, !0); } }, A.prototype._settlePromiseFromHandler = function (t, e, n, i) { var r = i._bitField; if (0 == (65536 & r)) { var o; i._pushContext(), e === m ? n && "number" == typeof n.length ? o = j(t).apply(this._boundValue(), n) : (o = S).e = new p("cannot .spread() a non-array: " + c.classString(n)) : o = j(t).call(e, n); var s = i._popContext(); 0 == (65536 & (r = i._bitField)) && (o === y ? i._reject(n) : o === S ? i._rejectCallback(o.e, !1) : (C.checkForgottenReturns(o, s, "", i, this), i._resolveCallback(o))); } }, A.prototype._target = function () { for (var t = this; t._isFollowing();)t = t._followee(); return t; }, A.prototype._followee = function () { return this._rejectionHandler0; }, A.prototype._setFollowee = function (t) { this._rejectionHandler0 = t; }, A.prototype._settlePromise = function (t, e, n, i) { var o = t instanceof A, a = this._bitField, l = 0 != (134217728 & a); 0 != (65536 & a) ? (o && t._invokeInternalOnCancel(), n instanceof E && n.isFinallyHandler() ? (n.cancelPromise = t, j(e).call(n, i) === S && t._reject(S.e)) : e === r ? t._fulfill(r.call(n)) : n instanceof s ? n._promiseCancelled(t) : o || t instanceof b ? t._cancel() : n.cancel()) : "function" == typeof e ? o ? (l && t._setAsyncGuaranteed(), this._settlePromiseFromHandler(e, n, i, t)) : e.call(n, i, t) : n instanceof s ? n._isResolved() || (0 != (33554432 & a) ? n._promiseFulfilled(i, t) : n._promiseRe
51jected(i, t)) : o && (l && t._setAsyncGuaranteed(), 0 != (33554432 & a) ? t._fulfill(i) : t._reject(i)); }, A.prototype._settlePromiseLateCancellationObserver = function (t) { var e = t.handler, n = t.promise, i = t.receiver, r = t.value; "function" == typeof e ? n instanceof A ? this._settlePromiseFromHandler(e, i, r, n) : e.call(i, r, n) : n instanceof A && n._reject(r); }, A.prototype._settlePromiseCtx = function (t) { this._settlePromise(t.promise, t.handler, t.receiver, t.value); }, A.prototype._settlePromise0 = function (t, e, n) { var i = this._promise0, r = this._receiverAt(0); this._promise0 = void 0, this._receiver0 = void 0, this._settlePromise(i, t, r, e); }, A.prototype._clearCallbackDataAtIndex = function (t) { var e = 4 * t - 4; this[e + 2] = this[e + 3] = this[e + 0] = this[e + 1] = void 0; }, A.prototype._fulfill = function (t) { var e = this._bitField; if (!((117506048 & e) >>> 16)) { if (t === this) { var n = i(); return this._attachExtraTrace(n), this._reject(n); } this._setFulfilled(), this._rejectionHandler0 = t, (65535 & e) > 0 && (0 != (134217728 & e) ? this._settlePromises() : f.settlePromises(this)); } }, A.prototype._reject = function (t) { var e = this._bitField; if (!((117506048 & e) >>> 16)) { if (this._setRejected(), this._fulfillmentHandler0 = t, this._isFinal()) return f.fatalError(t, c.isNode); (65535 & e) > 0 ? f.settlePromises(this) : this._ensurePossibleRejectionHandled(); } }, A.prototype._fulfillPromises = function (t, e) { for (var n = 1; n < t; n++) { var i = this._fulfillmentHandlerAt(n), r = this._promiseAt(n), o = this._receiverAt(n); this._clearCallbackDataAtIndex(n), this._settlePromise(r, i, o, e); } }, A.prototype._rejectPromises = function (t, e) { for (var n = 1; n < t; n++) { var i = this._rejectionHandlerAt(n), r = this._promiseAt(n), o = this._receiverAt(n); this._clearCallbackDataAtIndex(n), this._settlePromise(r, i, o, e); } }, A.prototype._settlePromises = function () { var t = this._bitField, e = 65535 & t; if (e > 0) { if (0 != (16842752 & t)) { var n = this._fulfillmentHandler0; this._settlePromise0(this._rejectionHandler0, n, t), this._rejectPromises(e, n); } else { var i = this._rejectionHandler0; this._settlePromise0(this._fulfillmentHandler0, i, t), this._fulfillPromises(e, i); } this._setLength(0); } this._clearCancellationData(); }, A.prototype._settledValue = function () { var t = this._bitField; return 0 != (33554432 & t) ? this._rejectionHandler0 : 0 != (16777216 & t) ? this._fulfillmentHandler0 : void 0; }, A.defer = A.pending = function () { return C.deprecated("Promise.defer", "new Promise"), { promise: new A(g), resolve: O, reject: R }; }, c.notEnumerableProp(A, "_makeSelfResolutionError", i), t("./method")(A, g, _, o, C), t("./bind")(A, g, _, C), t("./cancel")(A, b, o, C), t("./direct_resolve")(A), t("./synchronous_inspection")(A), t("./join")(A, b, _, g, f, a), A.Promise = A, A.version = "3.5.1", t("./map.js")(A, b, o, _, g, C), t("./call_get.js")(A), t("./using.js")(A, o, _, x, g, C), t("./timers.js")(A, g, C), t("./generators.js")(A, o, g, _, s, C), t("./nodeify.js")(A), t("./promisify.js")(A, g), t("./props.js")(A, b, _, o), t("./race.js")(A, g, _, o), t("./reduce.js")(A, b, o, _, g, C), t("./settle.js")(A, b, C), t("./some.js")(A, b, o), t("./filter.js")(A, g), t("./each.js")(A, g), t("./any.js")(A), c.toFastProperties(A), c.toFastProperties(A.prototype), D({ a: 1 }), D({ b: 2 }), D({ c: 3 }), D(1), D((function () { })), D(void 0), D(!1), D(new A(g)), C.setBounds(h.firstLineError, c.lastLineError), A; }; }, { "./any.js": 1, "./async": 2, "./bind": 3, "./call_get.js": 5, "./cancel": 6, "./catch_filter": 7, "./context": 8, "./debuggability": 9, "./direct_resolve": 10, "./each.js": 11, "./errors": 12, "./es5": 13, "./filter.js": 14, "./finally": 15, "./generators.js": 16, "./join": 17, "./map.js": 18, "./method": 19, "./nodeback": 20, "./nodeify.js": 21, "./promise_array": 23, "./promisify.js": 24, "./props.js": 25, "./race.js": 27, "./reduce.js": 28, "./settle.js": 30, "./some.js": 31, "./synchronous_inspection": 32, "./thenables": 33, "./timers.js": 34, "./using.js": 35, "./util": 36 }], 23: [function (t, e, n) { "use strict"; e.exports = function (e, n, i, r, o) { var s = t("./util"); function a(t) { var i = this._promise = new e(n); t instanceof e && i._propagateFrom(t, 3), i._setOnCancel(this), this._values = t, this._length = 0, this._totalResolved = 0, this._init(void 0, -2); } return s.isArray, s.inherits(a, o), a.prototype.length = function () { return this._length; }, a.prototype.promise = function () { return this._promise; }, a.prototype._init = function t(n, o) { var a = i(this._values, this._promise); if (a instanceof e) { var l = (a = a._target())._bitField; if (this._values = a, 0 == (50397184 & l)) return this._promise._setAsyncGuaranteed(), a._then(t, this._reject, void 0, this, o); if (0 == (33554432 & l)) return 0 != (16777216 & l) ? this._reject(a._reason()) : this._cancel();
51 a = a._value(); } if (null !== (a = s.asArray(a))) 0 !== a.length ? this._iterate(a) : -5 === o ? this._resolveEmptyArray() : this._resolve(function (t) { switch (t) { case -2: return []; case -3: return {}; case -6: return new Map; } }(o)); else { var c = r("expecting an array or an iterable object but got " + s.classString(a)).reason(); this._promise._rejectCallback(c, !1); } }, a.prototype._iterate = function (t) { var n = this.getActualLength(t.length); this._length = n, this._values = this.shouldCopyValues() ? new Array(n) : this._values; for (var r = this._promise, o = !1, s = null, a = 0; a < n; ++a) { var l = i(t[a], r); s = l instanceof e ? (l = l._target())._bitField : null, o ? null !== s && l.suppressUnhandledRejections() : null !== s ? 0 == (50397184 & s) ? (l._proxy(this, a), this._values[a] = l) : o = 0 != (33554432 & s) ? this._promiseFulfilled(l._value(), a) : 0 != (16777216 & s) ? this._promiseRejected(l._reason(), a) : this._promiseCancelled(a) : o = this._promiseFulfilled(l, a); } o || r._setAsyncGuaranteed(); }, a.prototype._isResolved = function () { return null === this._values; }, a.prototype._resolve = function (t) { this._values = null, this._promise._fulfill(t); }, a.prototype._cancel = function () { !this._isResolved() && this._promise._isCancellable() && (this._values = null, this._promise._cancel()); }, a.prototype._reject = function (t) { this._values = null, this._promise._rejectCallback(t, !1); }, a.prototype._promiseFulfilled = function (t, e) { return this._values[e] = t, ++this._totalResolved >= this._length && (this._resolve(this._values), !0); }, a.prototype._promiseCancelled = function () { return this._cancel(), !0; }
51, a.prototype._promiseRejected = function (t) { return this._totalResolved++, this._reject(t), !0; }, a.prototype._resultCancelled = function () { if (!this._isResolved()) { var t = this._values; if (this._cancel(), t instanceof e) t.cancel(); else for (var n = 0; n < t.length; ++n)t[n] instanceof e && t[n].cancel(); } }, a.prototype.shouldCopyValues = function () { return !0; }, a.prototype.getActualLength = function (t) { return t; }, a; }; }, { "./util": 36 }], 24: [function (t, e, n) { "use strict"; e.exports = function (e, n) { var i, r = {}, o = t("./util"), s = t("./nodeback"), a = o.withAppended, l = o.maybeWrapAsError, c = o.canEvaluate, u = t("./errors").TypeError, h = { __isPromisified__: !0 }, f = new RegExp("^(?:" + ["arity", "length", "name", "arguments", "caller", "callee", "prototype", "__isPromisified__"].join("|") + ")$"), d = function (t) { return o.isIdentifier(t) && "_" !== t.charAt(0) && "constructor" !== t; }; function p(t) { return !f.test(t); } function v(t) { try { return !0 === t.__isPromisified__; } catch (t) { return !1; } } function g(t, e, n) { var i = o.getDataPropertyOrDefault(t, e + n, h); return !!i && v(i); } function m(t, e, n, i) { for (var r = o.inheritedDataKeys(t), s = [], a = 0; a < r.length; ++a) { var l = r[a], c = t[l], h = i === d || d(l); "function" != typeof c || v(c) || g(t, l, e) || !i(l, c, t, h) || s.push(l, c); } return function (t, e, n) { for (var i = 0; i < t.length; i += 2) { var r = t[i]; if (n.test(r)) for (var o = r.replace(n, ""), s = 0; s < t.length; s += 2)if (t[s] === o) throw new u("Cannot promisify an API that has normal methods with '%s'-suffix\n\n    See http://goo.gl/MqrFmX\n".replace("%s", e)); } }(s, e, n), s; } var y = c ? i : function (t, i, c, u, h, f) { var d = function () { return this; }(), p = t; function v() { var o = i; i === r && (o = this); var c = new e(n); c._captureStackTrace(); var u = "string" == typeof p && this !== d ? this[p] : t, h = s(c, f); try { u.apply(o, a(arguments, h)); } catch (t) { c._rejectCallback(l(t), !0, !0); } return c._isFateSealed() || c._setAsyncGuaranteed(), c; } return "string" == typeof p && (t = u), o.notEnumerableProp(v, "__isPromisified__", !0), v; }; function _(t, e, n, i, s) { for (var a = new RegExp(e.replace(/([$])/, "\\$") + "$"), l = m(t, e, a, n), c = 0, u = l.length; c < u; c += 2) { var h = l[c], f = l[c + 1], d = h + e; if (i === y) t[d] = y(h, r, h, f, e, s); else { var p = i(f, (function () { return y(h, r, h, f, e, s); })); o.notEnumerableProp(p, "__isPromisified__", !0), t[d] = p; } } return o.toFastProperties(t), t; } e.promisify = function (t, e) { if ("function" != typeof t) throw new u("expecting a function but got " + o.classString(t)); if (v(t)) return t; var n = function (t, e, n) { return y(t, e, void 0, t, null, n); }(t, void 0 === (e = Object(e)).context ? r : e.context, !!e.multiArgs); return o.copyDescriptors(t, n, p), n; }, e.promisifyAll = function (t, e) { if ("function" != typeof t && "object" != typeof t) throw new u("the target of promisifyAll must be an object or a function\n\n    See http://goo.gl/MqrFmX\n"); var n = !!(e = Object(e)).multiArgs, i = e.suffix; "string" != typeof i && (i = "Async"); var r = e.filter; "function" != typeof r && (r = d); var s = e.promisifier; if ("function" != typeof s && (s = y), !o.isIdentifier(i)) throw new RangeError("suffix must be a valid identifier\n\n    See http://goo.gl/MqrFmX\n"); for (var a = o.inheritedDataKeys(t), l = 0; l < a.length; ++l) { var c = t[a[l]]; "constructor" !== a[l] && o.isClass(c) && (_(c.prototype, i, r, s, n), _(c, i, r, s, n)); } return _(t, i, r, s, n); }; }; }, { "./errors": 12, "./nodeback": 20, "./util": 36 }], 25: [function (t, e, n) { "use strict"; e.exports = function (e, n, i, r) { var o, s = t("./util"), a = s.isObject, l = t("./es5"); "function" == typeof Map && (o = Map); var c = function () { var t = 0, e = 0; function n(n, i) { this[t] = n, this[t + e] = i, t++; } return function (i) { e = i.size, t = 0; var r = new Array(2 * i.size); return i.forEach(n, r), r; }; }(); function u(t) { var e, n = !1; if (void 0 !== o && t instanceof o) e = c(t), n = !0; else { var i = l.keys(t), r = i.length; e = new Array(2 * r); for (var s = 0; s < r; ++s) { var a = i[s]; e[s] = t[a], e[s + r] = a; } } this.constructor$(e), this._isMap = n, this._init$(void 0, n ? -6 : -3); } function h(t) { var n, o = i(t); return a(o) ? (n = o instanceof e ? o._then(e.props, void 0, void 0, void 0, void 0) : new u(o).promise(), o instanceof e && n._propagateFrom(o, 2), n) : r("cannot await properties of a non-object\n\n    See http://goo.gl/MqrFmX\n"); } s.inherits(u, n), u.prototype._init = function () { }, u.prototype._promiseFulfilled = function (t, e) { if (this._values[e] = t, ++this._totalResolved >= this._length) { var n; if (this._isMap) n = function (t) { for (var e = new o, n = t.length / 2 | 0, i = 0; i < n; ++i) { var r = t[n + i], s = t[i]; e.set(r, s); } return e; }(this._values); else { n = {}; for (var i = this.length(), r = 0, s = this.length(); r < s; ++r)n[this._values[r + i]] = this._values[r]; } return this._resolve(n), !0; } return !1; }, u.prototype.shouldCopyValues = function () { return !1; }, u.prototype.getActualLength = function (t) { return t >> 1; }, e.prototype.props = function () { return h(this); }, e.props = function (t) { return h(t); }; }; }, { "./es5": 13, "./util": 36 }], 26: [function (t, e, n) { "use strict"; function i(t) { this._capacity = t, this._length = 0, this._front = 0; } i.prototype._willBeOverCapacity = function (t) { return this._capacity < t; }, i.prototype._pushOne = function (t) { var e = this.length(); this._checkCapacity(e + 1), this[this._front + e & this._capacity - 1] = t, this._length = e + 1; }, i.prototype.push = function (t, e, n) { var i = this.length() + 3; if (this._willBeOverCapacity(i)) return this._pushOne(t), this._pushOne(e), void this._pushOne(n); var r = this._front + i - 3; this._checkCapacity(i); var o = this._capacity - 1; this[r + 0 & o] = t, this[r + 1 & o] = e, this[r + 2 & o] = n, this._length = i; }, i.prototype.shift = function () { var t = this._front, e = this[t]; return this[t] = void 0, this._front = t + 1 & this._capacity - 1, this._length--, e; }, i.prototype.length = function () { return this._length; }, i.prototype._checkCapacity = function (t) { this._capacity < t && this._resizeTo(this._capacity << 1); }, i.prototype._resizeTo = function (t) { var e = this._capacity; this._capacity = t, function (t, e, n, i, r) { for (var o = 0; o < r; ++o)n[o + i] = t[o + e], t[o + e] = void 0; }(this, 0, this, e, this._front + this._length & e - 1); }, e.exports = i; }, {}], 27: [function (t, e, n) { "use strict"; e.exports = function (e, n, i, r) { var o = t("./util"); function s(t, a) { var l, c = i(t); if (c instanceof e) return (l = c).then((function (t) { return s(t, l); })); if (null === (t = o.asArray(t))) return r("expecting an array or an iterable object but got " + o.classString(t)); var u = new e(n); void 0 !== a && u._propagateFrom(a, 3); for (var h = u._fulfill, f = u._reject, d = 0, p = t.length; d < p; ++d) { var v = t[d]; (void 0 !== v || d in t) && e.cast(v)._then(h, f, void 0, u, null); } return u; } e.race = function (t) { return s(t, void 0); }, e.prototype.race = function () { return s(this, void 0); }; }; }, { "./util": 36 }], 28: [function (t, e, n) { "use strict"; e.exports = function (e, n, i, r, o, s) { var a = e._getDomain, l = t("./util"), c = l.tryCatch; function u(t, n, i, r) { this.constructor$(t); var s = a(); this._fn = null === s ? n : l.domainBind(s, n), void 0 !== i && (i = e.resolve(i))._attachCancellationCallback(this), this._initialValue = i, this._currentCancellable = null, this._eachValues = r === o ? Array(this._length) : 0 === r ? null : void 0, this._promise._captureStackTrace(), this._init$(void 0, -5); } function h(t, e) { this.isFulfilled() ? e._resolve(t) : e._reject(t); } function f(t, e, n, r) { return "function" != typeof e ? i("expecting a function but got " + l.classString(e)) : new u(t, e, n, r).promise(); } function d(t) { this.accum = t, this.array._gotAccum(t); var n = r(this.value, this.array._promise); return n instanceof e ? (this.array._currentCancellable = n, n._then(p, void 0, void 0, this, void 0)) : p.call(this, n); } function p(t) { var n, i = this.array, r = i._promise, o = c(i._fn); r._pushContext(), (n = void 0 !== i._eachValues ? o.call(r._boundValue(), t, this.index, this.length) : o.call(r._boundValue(), this.accum, t, this.index, this.length)) instanceof e && (i._currentCancellable = n); var a = r._popContext(); return s.checkForgottenReturns(n, a, void 0 !== i._eachValues ? "Promise.each" : "Promise.reduce", r), n; } l.inherits(u, n), u.prototype._gotAccum = function (t) { void 0 !== this._eachValues && null !== this._eachValues && t !== o && this._eachValues.push(t); }, u.prototype._eachComplete = function (t) { return null !== this._eachValues && this._eachValues.push(t), this._eachValues; }, u.prototype._init = function () { }, u.prototype._resolveEmptyArray = function () { this._resolve(void 0 !== this._eachValues ? this._eachValues : this._initialValue); }, u.prototype.shouldCopyValues = function () { return !1; }, u.prototype._resolve = function (t) { this._promise._resolveCallback(t), this._values = null; }, u.prototype._resultCancelled = function (t) { if (t === this._initialValue) return this._cancel(); this._isResolved() || (this._resultCancelled$(), this._currentCancellable instanceof e && this._currentCancellable.cancel(), this._initialValue instanceof e && this._initialValue.cancel()); }, u.prototype._iterate = function (t) { var n, i; this._values = t; var r = t.length; if (void 0 !== this._initialValue ? (n = this._initialValue, i = 0) : (n = e.resolve(t[0]), i = 1), this._currentCancellable = n, !n.isRejected()) for (; i < r;
51 ++i) { var o = { accum: null, value: t[i], index: i, length: r, array: this }; n = n._then(d, void 0, void 0, o, void 0); } void 0 !== this._eachValues && (n = n._then(this._eachComplete, void 0, void 0, this, void 0)), n._then(h, h, void 0, n, this); }, e.prototype.reduce = function (t, e) { return f(this, t, e, null); }, e.reduce = function (t, e, n, i) { return f(t, e, n, i); }; }; }, { "./util": 36 }], 29: [function (t, n, o) { "use strict"; var s, a, l, c, u, h = t("./util"), f = h.getNativePromise(); if (h.isNode && "undefined" == typeof MutationObserver) { var d = i.setImmediate, p = e.nextTick; s = h.isRecentNode ? function (t) { d.call(i, t); } : function (t) { p.call(e, t); }; } else if ("function" == typeof f && "function" == typeof f.resolve) { var v = f.resolve(); s = function (t) { v.then(t); }; } else s = "undefined" == typeof MutationObserver || "undefined" != typeof window && window.navigator && (window.navigator.standalone || window.cordova) ? void 0 !== r ? function (t) { r(t); } : "undefined" != typeof setTimeout ? function (t) { setTimeout(t, 0); } : function () { throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n"); } : (a = document.createElement("div"), l = { attributes: !0 }, c = !1, u = document.createElement("div"), new MutationObserver((function () { a.classList.toggle("foo"), c = !1; })).observe(u, l), function (t) { var e = new MutationObserver((function () { e.disconnect(), t(); })); e.observe(a, l), c || (c = !0, u.classList.toggle("foo")); }); n.exports = s; }, { "./util": 36 }], 30: [function (t, e, n) { "use strict"; e.exports = function (e, n, i) { var r = e.PromiseInspection; function o(t) { this.constructor$(t); } t("./util").inherits(o, n), o.prototype._promiseResolved = function (t, e) { return this._values[t] = e, ++this._totalResolved >= this._length && (this._resolve(this._values), !0); }, o.prototype._promiseFulfilled = function (t, e) { var n = new r; return n._bitField = 33554432, n._settledValueField = t, this._promiseResolved(e, n); }
51, o.prototype._promiseRejected = function (t, e) { var n = new r; return n._bitField = 16777216, n._settledValueField = t, this._promiseResolved(e, n); }, e.settle = function (t) { return i.deprecated(".settle()", ".reflect()"), new o(t).promise(); }, e.prototype.settle = function () { return e.settle(this); }; }; }, { "./util": 36 }], 31: [function (t, e, n) { "use strict"; e.exports = function (e, n, i) { var r = t("./util"), o = t("./errors").RangeError, s = t("./errors").AggregateError, a = r.isArray, l = {}; function c(t) { this.constructor$(t), this._howMany = 0, this._unwrap = !1, this._initialized = !1; } function u(t, e) { if ((0 | e) !== e || e < 0) return i("expecting a positive integer\n\n    See http://goo.gl/MqrFmX\n"); var n = new c(t), r = n.promise(); return n.setHowMany(e), n.init(), r; } r.inherits(c, n), c.prototype._init = function () { if (this._initialized) if (0 !== this._howMany) { this._init$(void 0, -5); var t = a(this._values); !this._isResolved() && t && this._howMany > this._canPossiblyFulfill() && this._reject(this._getRangeError(this.length())); } else this._resolve([]); }, c.prototype.init = function () { this._initialized = !0, this._init(); }, c.prototype.setUnwrap = function () { this._unwrap = !0; }, c.prototype.howMany = function () { return this._howMany; }, c.prototype.setHowMany = function (t) { this._howMany = t; }, c.prototype._promiseFulfilled = function (t) { return this._addFulfilled(t), this._fulfilled() === this.howMany() && (this._values.length = this.howMany(), 1 === this.howMany() && this._unwrap ? this._resolve(this._values[0]) : this._resolve(this._values), !0); }
51, c.prototype._promiseRejected = function (t) { return this._addRejected(t), this._checkOutcome(); }, c.prototype._promiseCancelled = function () { return this._values instanceof e || null == this._values ? this._cancel() : (this._addRejected(l), this._checkOutcome()); }, c.prototype._checkOutcome = function () { if (this.howMany() > this._canPossiblyFulfill()) { for (var t = new s, e = this.length(); e < this._values.length; ++e)this._values[e] !== l && t.push(this._values[e]); return t.length > 0 ? this._reject(t) : this._cancel(), !0; } return !1; }, c.prototype._fulfilled = function () { return this._totalResolved; }, c.prototype._rejected = function () { return this._values.length - this.length(); }, c.prototype._addRejected = function (t) { this._values.push(t); }, c.prototype._addFulfilled = function (t) { this._values[this._totalResolved++] = t; }, c.prototype._canPossiblyFulfill = function () { return this.length() - this._rejected(); }, c.prototype._getRangeError = function (t) { var e = "Input array must contain at least " + this._howMany + " items but contains only " + t + " items"; return new o(e); }, c.prototype._resolveEmptyArray = function () { this._reject(this._getRangeError(0)); }, e.some = function (t, e) { return u(t, e); }, e.prototype.some = function (t) { return u(this, t); }, e._SomePromiseArray = c; }; }, { "./errors": 12, "./util": 36 }], 32: [function (t, e, n) { "use strict"; e.exports = function (t) { function e(t) { void 0 !== t ? (t = t._target(), this._bitField = t._bitField, this._settledValueField = t._isFateSealed() ? t._settledValue() : void 0) : (this._bitField = 0, this._settledValueField = void 0); } e.prototype._settledValue = function () { return this._settledValueField; }; var n = e.prototype.value = function () { if (!this.isFulfilled()) throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n    See http://goo.gl/MqrFmX\n"); return this._settledValue(); }, i = e.prototype.error = e.prototype.reason = function () { if (!this.isRejected()) throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n    See http://goo.gl/MqrFmX\n"); return this._settledValue(); }, r = e.prototype.isFulfilled = function () { return 0 != (33554432 & this._bitField); }, o = e.prototype.isRejected = function () { return 0 != (16777216 & this._bitField); }, s = e.prototype.isPending = function () { return 0 == (50397184 & this._bitField); }, a = e.prototype.isResolved = function () { return 0 != (50331648 & this._bitField); }; e.prototype.isCancelled = function () { return 0 != (8454144 & this._bitField); }, t.prototype.__isCancelled = function () { return 65536 == (65536 & this._bitField); }, t.prototype._isCancelled = function () { return this._target().__isCancelled(); }, t.prototype.isCancelled = function () { return 0 != (8454144 & this._target()._bitField); }, t.prototype.isPending = function () { return s.call(this._target()); }, t.prototype.isRejected = function () { return o.call(this._target()); }, t.prototype.isFulfilled = function () { return r.call(this._target()); }, t.prototype.isResolved = function () { return a.call(this._target()); }, t.prototype.value = function () { return n.call(this._target()); }, t.prototype.reason = function () { var t = this._target(); return t._unsetRejectionIsUnhandled(), i.call(t); }, t.prototype._value = function () { return this._settledValue(); }, t.prototype._reason = function () { return this._unsetRejectionIsUnhandled(), this._settledValue(); }, t.PromiseInspection = e; }; }, {}], 33: [function (t, e, n) { "use strict"; e.exports = function (e, n) { var i = t("./util"), r = i.errorObj, o = i.isObject, s = {}.hasOwnProperty; return function (t, a) { if (o(t)) { if (t instanceof e) return t; var l = function (t) { try { return function (t) { return t.then; }(t); } catch (t) { return r.e = t, r; } }(t); if (l === r) { a && a._pushContext(); var c = e.reject(l.e); return a && a._popContext(), c; } if ("function" == typeof l) return function (t) { try { return s.call(t, "_promise0"); } catch (t) { return !1; } }(t) ? (c = new e(n), t._then(c._fulfill, c._reject, void 0, c, null), c) : function (t, o, s) { var a = new e(n), l = a; s && s._pushContext(), a._captureStackTrace(), s && s._popContext(); var c = !0, u = i.tryCatch(o).call(t, h, f); function h(t) { a && (a._resolveCallback(t), a = null); } function f(t) { a && (a._rejectCallback(t, c, !0), a = null); } return c = !1, a && u === r && (a._rejectCallback(u.e, !0, !0), a = null), l; }(t, l, a); } return t; }; }; }, { "./util": 36 }], 34: [function (t, e, n) { "use strict"; e.exports = function (e, n, i) { var r = t("./util"), o = e.TimeoutError; function s(t) { this.handle = t; } s.prototype._resultCancelled = function () { clearTimeout(this.handle); }; var a = function (t) { return l(+this).thenReturn(t); }, l = e.delay = function (t, r) { var o, l; return void 0 !== r ? (o = e.resolve(r)._then(a, null, null, t, void 0), i.cancellation() && r instanceof e && o._setOnCancel(r)) : (o = new e(n), l = setTimeout((function () { o._fulfill(); }), +t), i.cancellation() && o._setOnCancel(new s(l)), o._captureStackTrace()), o._setAsyncGuaranteed(), o; }; function c(t) { return clearTimeout(this.handle), t; } function u(t) { throw clearTimeout(this.handle), t; } e.prototype.delay = function (t) { return l(t, this); }, e.prototype.timeout = function (t, e) { var n, a; t = +t; var l = new s(setTimeout((function () { n.isPending() && function (t, e, n) { var i; i = "string" != typeof e ? e instanceof Error ? e : new o("operation timed out") : new o(e), r.markAsOriginatingFromRejection(i), t._attachExtraTrace(i), t._reject(i), null != n && n.cancel(); }(n, e, a); }), t));
51 return i.cancellation() ? (a = this.then(), (n = a._then(c, u, void 0, l, void 0))._setOnCancel(l)) : n = this._then(c, u, void 0, l, void 0), n; }; }; }, { "./util": 36 }], 35: [function (t, e, n) { "use strict"; e.exports = function (e, n, i, r, o, s) { var a = t("./util"), l = t("./errors").TypeError, c = t("./util").inherits, u = a.errorObj, h = a.tryCatch, f = {}; function d(t) { setTimeout((function () { throw t; }), 0); } function p(t, n) { var r = 0, s = t.length, a = new e(o); return function o() { if (r >= s) return a._fulfill(); var l = function (t) { var e = i(t); return e !== t && "function" == typeof t._isDisposable && "function" == typeof t._getDisposer && t._isDisposable() && e._setDisposable(t._getDisposer()), e; }(t[r++]); if (l instanceof e && l._isDisposable()) { try { l = i(l._getDisposer().tryDispose(n), t.promise); } catch (t) { return d(t); } if (l instanceof e) return l._then(o, d, null, null, null); } o(); }(), a; } function v(t, e, n) { this._data = t, this._promise = e, this._context = n; } function g(t, e, n) { this.constructor$(t, e, n); } function m(t) { return v.isDisposer(t) ? (this.resources[this.index]._setDisposable(t), t.promise()) : t; } function y(t) { this.length = t, this.promise = null, this[t - 1] = null; } v.prototype.data = function () { return this._data; }, v.prototype.promise = function () { return this._promise; }, v.prototype.resource = function () { return this.promise().isFulfilled() ? this.promise().value() : f; }, v.prototype.tryDispose = function (t) { var e = this.resource(), n = this._context; void 0 !== n && n._pushContext(); var i = e !== f ? this.doDispose(e, t) : null; return void 0 !== n && n._popContext(), this._promise._unsetDisposable(), this._data = null, i; }, v.isDisposer = function (t) { return null != t && "function" == typeof t.resource && "function" == typeof t.tryDispose; }, c(g, v), g.prototype.doDispose = function (t, e) { return this.data().call(t, t, e); }, y.prototype._resultCancelled = function () { for (var t = this.length, n = 0; n < t; ++n) { var i = this[n]; i instanceof e && i.cancel(); } }, e.using = function () { var t = arguments.length; if (t < 2) return n("you must pass at least 2 arguments to Promise.using"); var r, o = arguments[t - 1]; if ("function" != typeof o) return n("expecting a function but got " + a.classString(o)); var l = !0; 2 === t && Array.isArray(arguments[0]) ? (t = (r = arguments[0]).length, l = !1) : (r = arguments, t--); for (var c = new y(t), f = 0; f < t; ++f) { var d = r[f]; if (v.isDisposer(d)) { var g = d; (d = d.promise())._setDisposable(g); } else { var _ = i(d); _ instanceof e && (d = _._then(m, null, null, { resources: c, index: f }, void 0)); } c[f] = d; } var b = new Array(c.length); for (f = 0; f < b.length; ++f)b[f] = e.resolve(c[f]).reflect(); var w = e.all(b).then((function (t) { for (var e = 0; e < t.length; ++e) { var n = t[e]; if (n.isRejected()) return u.e = n.error(), u; if (!n.isFulfilled()) return void w.cancel(); t[e] = n.value(); } x._pushContext(), o = h(o); var i = l ? o.apply(void 0, t) : o(t), r = x._popContext(); return s.checkForgottenReturns(i, r, "Promise.using", x), i; })), x = w.lastly((function () { var t = new e.PromiseInspection(w); return p(c, t); })); return c.promise = x, x._setOnCancel(c), x; }, e.prototype._setDisposable = function (t) { this._bitField = 131072 | this._bitField, this._disposer = t; }, e.prototype._isDisposable = function () { return (131072 & this._bitField) > 0; }, e.prototype._getDisposer = function () { return this._disposer; }, e.prototype._unsetDisposable = function () { this._bitField = -131073 & this._bitField, this._disposer = void 0; }, e.prototype.disposer = function (t) { if ("function" == typeof t) return new g(t, this, r()); throw new l; }; }; }, { "./errors": 12, "./util": 36 }], 36: [function (t, r, o) { "use strict"; var s = t("./es5"), a = "undefined" == typeof navigator, l = { e: {} }, c, u = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== i ? i : void 0 !== this ? this : null; function h() { try { var t = c; return c = null, t.apply(this, arguments); } catch (t) { return l.e = t, l; } } function f(t) { return c = t, h; } var d = function (t, e) { var n = {}.hasOwnProperty; function i() { for (var i in this.constructor = t, this.constructor$ = e, e.prototype) n.call(e.prototype, i) && "$" !== i.charAt(i.length - 1) && (this[i + "$"] = e.prototype[i]); } return i.prototype = e.prototype, t.prototype = new i, t.prototype; }; function p(t) { return null == t || !0 === t || !1 === t || "string" == typeof t || "number" == typeof t; } function v(t) { return "function" == typeof t || "object" == typeof t && null !== t; } function g(t) { return p(t) ? new Error(j(t)) : t; } function m(t, e) { var n, i = t.length, r = new Array(i + 1); for (n = 0; n < i; ++n)r[n] = t[n]; return r[n] = e, r; } function y(t, e, n) { if (!s.isES5) return {}.hasOwnProperty.call(t, e) ? t[e] : void 0; var i = Object.getOwnPropertyDescriptor(t, e); return null != i ? null == i.get && null == i.set ? i.value : n : void 0; } function _(t, e, n) { if (p(t)) return t; var i = { value: n, configurable: !0, enumerable: !1, writable: !0 }; return s.defineProperty(t, e, i), t; } function b(t) { throw t; } var w = function () { var t = [Array.prototype, Object.prototype, Function.prototype], e = function (e) { for (var n = 0; n < t.length; ++n)if (t[n] === e) return !0; return !1; }; if (s.isES5) { var n = Object.getOwnPropertyNames; return function (t) { for (var i = [], r = Object.create(null); null != t && !e(t);) { var o; try { o = n(t); } catch (t) { return i; } for (var a = 0; a < o.length; ++a) { var l = o[a]; if (!r[l]) { r[l] = !0; var c = Object.getOwnPropertyDescriptor(t, l); null != c && null == c.get && null == c.set && i.push(l); } } t = s.getPrototypeOf(t); } return i; }; } var i = {}.hasOwnProperty; return function (n) { if (e(n)) return []; var r = []; t: for (var o in n) if (i.call(n, o)) r.push(o); else { for (var s = 0; s < t.length; ++s)if (i.call(t[s], o)) continue t; r.push(o); } return r; }; }(), x = /this\s*\.\s*\S+\s*=/; function C(t) { try { if ("function" == typeof t) { var e = s.names(t.prototype), n = s.isES5 && e.length > 1, i = e.length > 0 && !(1 === e.length && "constructor" === e[0]), r = x.test(t + "") && s.names(t).length > 0; if (n || i || r) return !0; } return !1; } catch (t) { return !1; } } function E(t) { function e() { } e.prototype = t; for (var n = 8; n--;)new e; return t; } var T = /^[a-z$_][a-z$_0-9]*$/i; function k(t) { return T.test(t); } function S(t, e, n) { for (var i = new Array(t), r = 0; r < t; ++r)i[r] = e + r + n; return i; } function j(t) { try { return t + ""; } catch (t) { return "[no string representation]"; } } function A(t) { return t instanceof Error || null !== t && "object" == typeof t && "string" == typeof t.message && "string" == typeof t.name; } function O(t) { try { _(t, "isOperational", !0); } catch (t) { } } function R(t) { return null != t && (t instanceof Error.__BluebirdErrorTypes__.OperationalError || !0 === t.isOperational); } function D(t) { return A(t) && s.propertyIsWritable(t, "stack"); } var V = "stack" in new Error ? function (t) { return D(t) ? t : new Error(j(t)); } : function (t) { if (D(t)) return t; try { throw new Error(j(t)); } catch (t) { return t; } }; function $(t) { return {}.toString.call(t); } function F(t, e, n) { for (var i = s.names(t), r = 0; r < i.length; ++r) { var o = i[r]; if (n(o)) try { s.defineProperty(e, o, s.getDescriptor(t, o)); } catch (t) { } } } var I = function (t) { return s.isArray(t) ? t : null; }; if ("undefined" != typeof Symbol && Symbol.iterator) { var P = "function" == typeof Array.from ? function (t) { return Array.from(t); } : function (t) { for (var e, n = [], i = t[Symbol.iterator](); !(e = i.next()).done;)n.push(e.value); return n; }; I = function (t) { return s.isArray(t) ? t : null != t && "function" == typeof t[Symbol.iterator] ? P(t) : null; }; } var N = void 0 !== e && "[object process]" === $(e).toLowerCase(), M = void 0 !== e && void 0 !== e.env; function B(t) { return M ? e.env[t] : void 0; } function L() { if ("function" == typeof n) try { var t = new n((function () { })); if ("[object Promise]" === {}.toString.call(t)) return n; } catch (t) { } } function H(t, e) { return t.bind(e); } var q = { isClass: C, isIdentifier: k, inheritedDataKeys: w, getDataPropertyOrDefault: y, thrower: b, isArray: s.isArray, asArray: I, notEnumerableProp: _, isPrimitive: p, isObject: v, isError: A, canEvaluate: a, errorObj: l, tryCatch: f, inherits: d, withAppended: m, maybeWrapAsError: g, toFastProperties: E, filledRange: 
51S, toString: j, canAttachTrace: D, ensureErrorObject: V, originatesFromRejection: R, markAsOriginatingFromRejection: O, classString: $, copyDescriptors: F, hasDevTools: "undefined" != typeof chrome && chrome && "function" == typeof chrome.loadTimes, isNode: N, hasEnvVariables: M, env: B, global: u, getNativePromise: L, domainBind: H }, U; q.isRecentNode = q.isNode && (U = e.versions.node.split(".").map(Number), 0 === U[0] && U[1] > 10 || U[0] > 0), q.isNode && q.toFastProperties(e); try { throw new Error; } catch (t) { q.lastLineError = t; } r.exports = q; }, { "./es5": 13 }] }, {}, [4])(4); }, t.exports = o(), "undefined" != typeof window && null !== window ? window.P = window.Promise : "undefined" != typeof self && null !== self && (self.P = self.Promise); }).call(e, n(9), n(8), n(5), n(312).setImmediate); }, 9: function (t, e) { var n, i, r = t.exports = {}; function o() { throw new Error("setTimeout has not been defined"); } function s() { throw new Error("clearTimeout has not been defined"); } function a(t) { if (n === setTimeout) return setTimeout(t, 0); if ((n === o || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0); try { return n(t, 0); } catch (e) { try { return n.call(null, t, 0); } catch (e) { return n.call(this, t, 0); } } } !function () { try { n = "function" == typeof setTimeout ? setTimeout : o; } catch (t) { n = o; } try { i = "function" == typeof clearTimeout ? clearTimeout : s; } catch (t) { i = s; } }(); var l, c = [], u = !1, h = -1; function f() { u && l && (u = !1, l.length ? c = l.concat(c) : h = -1, c.length && d()); } function d() { if (!u) { var t = a(f); u = !0; for (var e = c.length; e;) { for (l = c, c = []; ++h < e;)l && l[h].run(); h = -1, e = c.length; } l = null, u = !1, function (t) { if (i === clearTimeout) return clearTimeout(t); if ((i === s || !i) && clearTimeout) return i = clearTimeout, clearTimeout(t); try { i(t); } catch (e) { try { return i.call(null, t); } catch (e) { return i.call(this, t); } } }(t); } } function p(t, e) { this.fun = t, this.array = e; } function v() { } r.nextTick = function (t) { var e = new Array(arguments.length - 1); if (arguments.length > 1) for (var n = 1; n < arguments.length; n++)e[n - 1] = arguments[n]; c.push(new p(t, e)), 1 !== c.length || u || a(d); }, p.prototype.run = function () { this.fun.apply(null, this.array); }, r.title = "browser", r.browser = !0, r.env = {}, r.argv = [], r.version = "", r.versions = {}, r.on = v, r.addListener = v, r.once = v, r.off = v, r.removeListener = v, r.removeAllListeners = v, r.emit = v, r.prependListener = v, r.prependOnceListener = v, r.listeners = function (t) { return []; }, r.binding = function (t) { throw new Error("process.binding is not supported"); }, r.cwd = function () { return "/"; }, r.chdir = function (t) { throw new Error("process.chdir is not supported"); }, r.umask = function () { return 0; }; }
52}), $(document).ready((function () {
53    "agree" != localStorage.getItem("cookieConsent") && $(".cookie-alert").delay(500).fadeIn(), $(".cookie-alert-close").click((function () { $(".cookie-alert").fadeOut(), localStorage.setItem("cookieConsent", "agree"); })); $('select.js-tab-select').on('change', function (e) {
54        $(this).closest(".container").parent().find(".tab-pane").removeClass("fade in active");
55        var selectedTab = $(this).closest(".container").find("li")[this.value];
56        if (selectedTab) {
57            var selectedTabID = $(selectedTab).find("a").attr("href");
58            if (selectedTabID) {
59                $(selectedTabID).addClass("fade in active");
60            }
61        }
62    });
63}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.