1356 lines
307 KiB
JavaScript
1356 lines
307 KiB
JavaScript
/* Modernizr 2.5.3 (Custom Build) | MIT & BSD
|
|
* Build: http://www.modernizr.com/download/#-fontface-borderradius-boxshadow-flexbox-flexbox_legacy-hsla-multiplebgs-opacity-rgba-textshadow-generatedcontent-cssgradients-input-inputtypes-mq-cssclasses-addtest-teststyles-testprop-testallprops-prefixes-domprefixes
|
|
*/
|
|
;window.Modernizr=function(a,b,c){function B(a){j.cssText=a}function C(a,b){return B(n.join(a+";")+(b||""))}function D(a,b){return typeof a===b}function E(a,b){return!!~(""+a).indexOf(b)}function F(a,b){for(var d in a)if(j[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function G(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:D(f,"function")?f.bind(d||b):f}return!1}function H(a,b,c){var d=a.charAt(0).toUpperCase()+a.substr(1),e=(a+" "+p.join(d+" ")+d).split(" ");return D(b,"string")||D(b,"undefined")?F(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),G(e,b,c))}function J(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)t[c[d]]=c[d]in k;return t.list&&(t.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),t}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:/^color$/.test(f)?(g.appendChild(k),g.offsetWidth,e=k.value!=l,g.removeChild(k)):e=k.value!=l)),s[a[d]]=!!e;return s}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.5.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={},s={},t={},u=[],v=u.slice,w,x=function(a,c,d,e){var f,i,j,k=b.createElement("div"),l=b.body,m=l?l:b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),k.appendChild(j);return f=["­","<style>",a,"</style>"].join(""),k.id=h,(l?k:m).innerHTML+=f,m.appendChild(k),l||(m.style.background="",g.appendChild(m)),i=c(k,a),l?k.parentNode.removeChild(k):m.parentNode.removeChild(m),!!i},y=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return x("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},z={}.hasOwnProperty,A;!D(z,"undefined")&&!D(z.call,"undefined")?A=function(a,b){return z.call(a,b)}:A=function(a,b){return b in a&&D(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=v.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(v.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(v.call(arguments)))};return e});var I=function(a,c){var d=a.join(""),f=c.length;x(d,function(a,c){var d=b.styleSheets[b.styleSheets.length-1],g=d?d.cssRules&&d.cssRules[0]?d.cssRules[0].cssText:d.cssText||"":"",h=a.childNodes,i={};while(f--)i[h[f].id]=h[f];e.generatedcontent=(i.generatedcontent&&i.generatedcontent.offsetHeight)>=1,e.fontface=/src/i.test(g)&&g.indexOf(c.split(" ")[0])===0},f,c)}(['@font-face {font-family:"font";src:url("https://")}',['#generatedcontent:after{content:"',l,'";visibility:hidden}'].join("")],["fontface","generatedcontent"]);r.flexbox=function(){return H("flexOrder")},r["flexbox-legacy"]=function(){return H("boxDirection")},r.rgba=function(){return B("background-color:rgba(150,255,150,.5)"),E(j.backgroundColor,"rgba")},r.hsla=function(){return B("background-color:hsla(120,40%,100%,.5)"),E(j.backgroundColor,"rgba")||E(j.backgroundColor,"hsla")},r.multiplebgs=function(){return B("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},r.borderradius=function(){return H("borderRadius")},r.boxshadow=function(){return H("boxShadow")},r.textshadow=function(){return b.createElement("div").style.textShadow===""},r.opacity=function(){return C("opacity:.55"),/^0.55$/.test(j.opacity)},r.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return B((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),E(j.backgroundImage,"gradient")},r.fontface=function(){return e.fontface},r.generatedcontent=function(){return e.generatedcontent};for(var K in r)A(r,K)&&(w=K.toLowerCase(),e[w]=r[K](),u.push((e[w]?"":"no-")+w));return e.input||J(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)A(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,g.className+=" "+(b?"":"no-")+a,e[a]=b}return e},B(""),i=k=null,e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.mq=y,e.testProp=function(a){return F([a])},e.testAllProps=H,e.testStyles=x,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+u.join(" "):""),e}(this,this.document);
|
|
;Modernizr.addTest("quirks", function(){
|
|
return (document.compatMode != "CSS1Compat");
|
|
});
|
|
|
|
|
|
|
|
function is_touch_device()
|
|
{
|
|
return !!('ontouchstart' in window) // works on most browsers
|
|
// || !!('onmsgesturechange' in window) // works on ie10, but not on desktop IE10
|
|
;
|
|
// AT: this does not work in Opera mini
|
|
};
|
|
|
|
var alertFallback = true;
|
|
if (typeof console === "undefined" || typeof console.log === "undefined") {
|
|
console = {};
|
|
if (alertFallback) {
|
|
console.log = function(msg) {
|
|
//alert(msg);
|
|
};
|
|
} else {
|
|
console.log = function() {};
|
|
}
|
|
}
|
|
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
|
!function (e, t) { "use strict"; "object" == typeof module && "object" == typeof module.exports ? module.exports = e.document ? t(e, !0) : function (e) { if (!e.document) throw new Error("jQuery requires a window with a document"); return t(e) } : t(e) }("undefined" != typeof window ? window : this, function (C, e) { "use strict"; var t = [], r = Object.getPrototypeOf, s = t.slice, g = t.flat ? function (e) { return t.flat.call(e) } : function (e) { return t.concat.apply([], e) }, u = t.push, i = t.indexOf, n = {}, o = n.toString, v = n.hasOwnProperty, a = v.toString, l = a.call(Object), y = {}, m = function (e) { return "function" == typeof e && "number" != typeof e.nodeType && "function" != typeof e.item }, x = function (e) { return null != e && e === e.window }, E = C.document, c = { type: !0, src: !0, nonce: !0, noModule: !0 }; function b(e, t, n) { var r, i, o = (n = n || E).createElement("script"); if (o.text = e, t) for (r in c) (i = t[r] || t.getAttribute && t.getAttribute(r)) && o.setAttribute(r, i); n.head.appendChild(o).parentNode.removeChild(o) } function w(e) { return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? n[o.call(e)] || "object" : typeof e } var f = "3.6.0", S = function (e, t) { return new S.fn.init(e, t) }; function p(e) { var t = !!e && "length" in e && e.length, n = w(e); return !m(e) && !x(e) && ("array" === n || 0 === t || "number" == typeof t && 0 < t && t - 1 in e) } S.fn = S.prototype = { jquery: f, constructor: S, length: 0, toArray: function () { return s.call(this) }, get: function (e) { return null == e ? s.call(this) : e < 0 ? this[e + this.length] : this[e] }, pushStack: function (e) { var t = S.merge(this.constructor(), e); return t.prevObject = this, t }, each: function (e) { return S.each(this, e) }, map: function (n) { return this.pushStack(S.map(this, function (e, t) { return n.call(e, t, e) })) }, slice: function () { return this.pushStack(s.apply(this, arguments)) }, first: function () { return this.eq(0) }, last: function () { return this.eq(-1) }, even: function () { return this.pushStack(S.grep(this, function (e, t) { return (t + 1) % 2 })) }, odd: function () { return this.pushStack(S.grep(this, function (e, t) { return t % 2 })) }, eq: function (e) { var t = this.length, n = +e + (e < 0 ? t : 0); return this.pushStack(0 <= n && n < t ? [this[n]] : []) }, end: function () { return this.prevObject || this.constructor() }, push: u, sort: t.sort, splice: t.splice }, S.extend = S.fn.extend = function () { var e, t, n, r, i, o, a = arguments[0] || {}, s = 1, u = arguments.length, l = !1; for ("boolean" == typeof a && (l = a, a = arguments[s] || {}, s++), "object" == typeof a || m(a) || (a = {}), s === u && (a = this, s--); s < u; s++)if (null != (e = arguments[s])) for (t in e) r = e[t], "__proto__" !== t && a !== r && (l && r && (S.isPlainObject(r) || (i = Array.isArray(r))) ? (n = a[t], o = i && !Array.isArray(n) ? [] : i || S.isPlainObject(n) ? n : {}, i = !1, a[t] = S.extend(l, o, r)) : void 0 !== r && (a[t] = r)); return a }, S.extend({ expando: "jQuery" + (f + Math.random()).replace(/\D/g, ""), isReady: !0, error: function (e) { throw new Error(e) }, noop: function () { }, isPlainObject: function (e) { var t, n; return !(!e || "[object Object]" !== o.call(e)) && (!(t = r(e)) || "function" == typeof (n = v.call(t, "constructor") && t.constructor) && a.call(n) === l) }, isEmptyObject: function (e) { var t; for (t in e) return !1; return !0 }, globalEval: function (e, t, n) { b(e, { nonce: t && t.nonce }, n) }, each: function (e, t) { var n, r = 0; if (p(e)) { for (n = e.length; r < n; r++)if (!1 === t.call(e[r], r, e[r])) break } else for (r in e) if (!1 === t.call(e[r], r, e[r])) break; return e }, makeArray: function (e, t) { var n = t || []; return null != e && (p(Object(e)) ? S.merge(n, "string" == typeof e ? [e] : e) : u.call(n, e)), n }, inArray: function (e, t, n) { return null == t ? -1 : i.call(t, e, n) }, merge: function (e, t) { for (var n = +t.length, r = 0, i = e.length; r < n; r++)e[i++] = t[r]; return e.length = i, e }, grep: function (e, t, n) { for (var r = [], i = 0, o = e.length, a = !n; i < o; i++)!t(e[i], i) !== a && r.push(e[i]); return r }, map: function (e, t, n) { var r, i, o = 0, a = []; if (p(e)) for (r = e.length; o < r; o++)null != (i = t(e[o], o, n)) && a.push(i); else for (o in e) null != (i = t(e[o], o, n)) && a.push(i); return g(a) }, guid: 1, support: y }), "function" == typeof Symbol && (S.fn[Symbol.iterator] = t[Symbol.iterator]), S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (e, t) { n["[object " + t + "]"] = t.toLowerCase() }); var d = function (n) { var e, d, b, o, i, h, f, g, w, u, l, T, C, a, E, v, s, c, y, S = "sizzle" + 1 * new Date, p = n.document, k = 0, r = 0, m = ue(), x = ue(), A = ue(), N = ue(), j = function (e, t) { return e === t && (l = !0), 0 }, D = {}.hasOwnProperty, t = [], q = t.pop, L = t.push, H = t.push, O = t.slice, P = function (e, t) { for (var n = 0, r = e.length; n < r; n++)if (e[n] === t) return n; return -1 }, R = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", M = "[\\x20\\t\\r\\n\\f]", I = "(?:\\\\[\\da-fA-F]{1,6}" + M + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", W = "\\[" + M + "*(" + I + ")(?:" + M + "*([*^$|!~]?=)" + M + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + I + "))|)" + M + "*\\]", F = ":(" + I + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + W + ")*)|.*)\\)|)", B = new RegExp(M + "+", "g"), $ = new RegExp("^" + M + "+|((?:^|[^\\\\])(?:\\\\.)*)" + M + "+$", "g"), _ = new RegExp("^" + M + "*," + M + "*"), z = new RegExp("^" + M + "*([>+~]|" + M + ")" + M + "*"), U = new RegExp(M + "|>"), X = new RegExp(F), V = new RegExp("^" + I + "$"), G = { ID: new RegExp("^#(" + I + ")"), CLASS: new RegExp("^\\.(" + I + ")"), TAG: new RegExp("^(" + I + "|[*])"), ATTR: new RegExp("^" + W), PSEUDO: new RegExp("^" + F), CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + M + "*(even|odd|(([+-]|)(\\d*)n|)" + M + "*(?:([+-]|)" + M + "*(\\d+)|))" + M + "*\\)|)", "i"), bool: new RegExp("^(?:" + R + ")$", "i"), needsContext: new RegExp("^" + M + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + M + "*((?:-\\d)?\\d*)" + M + "*\\)|)(?=[^-]|$)", "i") }, Y = /HTML$/i, Q = /^(?:input|select|textarea|button)$/i, J = /^h\d$/i, K = /^[^{]+\{\s*\[native \w/, Z = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, ee = /[+~]/, te = new RegExp("\\\\[\\da-fA-F]{1,6}" + M + "?|\\\\([^\\r\\n\\f])", "g"), ne = function (e, t) { var n = "0x" + e.slice(1) - 65536; return t || (n < 0 ? String.fromCharCode(n + 65536) : String.fromCharCode(n >> 10 | 55296, 1023 & n | 56320)) }, re = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, ie = function (e, t) { return t ? "\0" === e ? "\ufffd" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) + " " : "\\" + e }, oe = function () { T() }, ae = be(function (e) { return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase() }, { dir: "parentNode", next: "legend" }); try { H.apply(t = O.call(p.childNodes), p.childNodes), t[p.childNodes.length].nodeType } catch (e) { H = { apply: t.length ? function (e, t) { L.apply(e, O.call(t)) } : function (e, t) { var n = e.length, r = 0; while (e[n++] = t[r++]); e.length = n - 1 } } } function se(t, e, n, r) { var i, o, a, s, u, l, c, f = e && e.ownerDocument, p = e ? e.nodeType : 9; if (n = n || [], "string" != typeof t || !t || 1 !== p && 9 !== p && 11 !== p) return n; if (!r && (T(e), e = e || C, E)) { if (11 !== p && (u = Z.exec(t))) if (i = u[1]) { if (9 === p) { if (!(a = e.getElementById(i))) return n; if (a.id === i) return n.push(a), n } else if (f && (a = f.getElementById(i)) && y(e, a) && a.id === i) return n.push(a), n } else { if (u[2]) return H.apply(n, e.getElementsByTagName(t)), n; if ((i = u[3]) && d.getElementsByClassName && e.getElementsByClassName) return H.apply(n, e.getElementsByClassName(i)), n } if (d.qsa && !N[t + " "] && (!v || !v.test(t)) && (1 !== p || "object" !== e.nodeName.toLowerCase())) { if (c = t, f = e, 1 === p && (U.test(t) || z.test(t))) { (f = ee.test(t) && ye(e.parentNode) || e) === e && d.scope || ((s = e.getAttribute("id")) ? s = s.replace(re, ie) : e.setAttribute("id", s = S)), o = (l = h(t)).length; while (o--) l[o] = (s ? "#" + s : ":scope") + " " + xe(l[o]); c = l.join(",") } try { return H.apply(n, f.querySelectorAll(c)), n } catch (e) { N(t, !0) } finally { s === S && e.removeAttribute("id") } } } return g(t.replace($, "$1"), e, n, r) } function ue() { var r = []; return function e(t, n) { return r.push(t + " ") > b.cacheLength && delete e[r.shift()], e[t + " "] = n } } function le(e) { return e[S] = !0, e } function ce(e) { var t = C.createElement("fieldset"); try { return !!e(t) } catch (e) { return !1 } finally { t.parentNode && t.parentNode.removeChild(t), t = null } } function fe(e, t) { var n = e.split("|"), r = n.length; while (r--) b.attrHandle[n[r]] = t } function pe(e, t) { var n = t && e, r = n && 1 === e.nodeType && 1 === t.nodeType && e.sourceIndex - t.sourceIndex; if (r) return r; if (n) while (n = n.nextSibling) if (n === t) return -1; return e ? 1 : -1 } function de(t) { return function (e) { return "input" === e.nodeName.toLowerCase() && e.type === t } } function he(n) { return function (e) { var t = e.nodeName.toLowerCase(); return ("input" === t || "button" === t) && e.type === n } } function ge(t) { return function (e) { return "form" in e ? e.parentNode && !1 === e.disabled ? "label" in e ? "label" in e.parentNode ? e.parentNode.disabled === t : e.disabled === t : e.isDisabled === t || e.isDisabled !== !t && ae(e) === t : e.disabled === t : "label" in e && e.disabled === t } } function ve(a) { return le(function (o) { return o = +o, le(function (e, t) { var n, r = a([], e.length, o), i = r.length; while (i--) e[n = r[i]] && (e[n] = !(t[n] = e[n])) }) }) } function ye(e) { return e && "undefined" != typeof e.getElementsByTagName && e } for (e in d = se.support = {}, i = se.isXML = function (e) { var t = e && e.namespaceURI, n = e && (e.ownerDocument || e).documentElement; return !Y.test(t || n && n.nodeName || "HTML") }, T = se.setDocument = function (e) { var t, n, r = e ? e.ownerDocument || e : p; return r != C && 9 === r.nodeType && r.documentElement && (a = (C = r).documentElement, E = !i(C), p != C && (n = C.defaultView) && n.top !== n && (n.addEventListener ? n.addEventListener("unload", oe, !1) : n.attachEvent && n.attachEvent("onunload", oe)), d.scope = ce(function (e) { return a.appendChild(e).appendChild(C.createElement("div")), "undefined" != typeof e.querySelectorAll && !e.querySelectorAll(":scope fieldset div").length }), d.attributes = ce(function (e) { return e.className = "i", !e.getAttribute("className") }), d.getElementsByTagName = ce(function (e) { return e.appendChild(C.createComment("")), !e.getElementsByTagName("*").length }), d.getElementsByClassName = K.test(C.getElementsByClassName), d.getById = ce(function (e) { return a.appendChild(e).id = S, !C.getElementsByName || !C.getElementsByName(S).length }), d.getById ? (b.filter.ID = function (e) { var t = e.replace(te, ne); return function (e) { return e.getAttribute("id") === t } }, b.find.ID = function (e, t) { if ("undefined" != typeof t.getElementById && E) { var n = t.getElementById(e); return n ? [n] : [] } }) : (b.filter.ID = function (e) { var n = e.replace(te, ne); return function (e) { var t = "undefined" != typeof e.getAttributeNode && e.getAttributeNode("id"); return t && t.value === n } }, b.find.ID = function (e, t) { if ("undefined" != typeof t.getElementById && E) { var n, r, i, o = t.getElementById(e); if (o) { if ((n = o.getAttributeNode("id")) && n.value === e) return [o]; i = t.getElementsByName(e), r = 0; while (o = i[r++]) if ((n = o.getAttributeNode("id")) && n.value === e) return [o] } return [] } }), b.find.TAG = d.getElementsByTagName ? function (e, t) { return "undefined" != typeof t.getElementsByTagName ? t.getElementsByTagName(e) : d.qsa ? t.querySelectorAll(e) : void 0 } : function (e, t) { var n, r = [], i = 0, o = t.getElementsByTagName(e); if ("*" === e) { while (n = o[i++]) 1 === n.nodeType && r.push(n); return r } return o }, b.find.CLASS = d.getElementsByClassName && function (e, t) { if ("undefined" != typeof t.getElementsByClassName && E) return t.getElementsByClassName(e) }, s = [], v = [], (d.qsa = K.test(C.querySelectorAll)) && (ce(function (e) { var t; a.appendChild(e).innerHTML = "<a id='" + S + "'></a><select id='" + S + "-\r\\' msallowcapture=''><option selected=''></option></select>", e.querySelectorAll("[msallowcapture^='']").length && v.push("[*^$]=" + M + "*(?:''|\"\")"), e.querySelectorAll("[selected]").length || v.push("\\[" + M + "*(?:value|" + R + ")"), e.querySelectorAll("[id~=" + S + "-]").length || v.push("~="), (t = C.createElement("input")).setAttribute("name", ""), e.appendChild(t), e.querySelectorAll("[name='']").length || v.push("\\[" + M + "*name" + M + "*=" + M + "*(?:''|\"\")"), e.querySelectorAll(":checked").length || v.push(":checked"), e.querySelectorAll("a#" + S + "+*").length || v.push(".#.+[+~]"), e.querySelectorAll("\\\f"), v.push("[\\r\\n\\f]") }), ce(function (e) { e.innerHTML = "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>"; var t = C.createElement("input"); t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("name", "D"), e.querySelectorAll("[name=d]").length && v.push("name" + M + "*[*^$|!~]?="), 2 !== e.querySelectorAll(":enabled").length && v.push(":enabled", ":disabled"), a.appendChild(e).disabled = !0, 2 !== e.querySelectorAll(":disabled").length && v.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), v.push(",.*:") })), (d.matchesSelector = K.test(c = a.matches || a.webkitMatchesSelector || a.mozMatchesSelector || a.oMatchesSelector || a.msMatchesSelector)) && ce(function (e) { d.disconnectedMatch = c.call(e, "*"), c.call(e, "[s!='']:x"), s.push("!=", F) }), v = v.length && new RegExp(v.join("|")), s = s.length && new RegExp(s.join("|")), t = K.test(a.compareDocumentPosition), y = t || K.test(a.contains) ? function (e, t) { var n = 9 === e.nodeType ? e.documentElement : e, r = t && t.parentNode; return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r))) } : function (e, t) { if (t) while (t = t.parentNode) if (t === e) return !0; return !1 }, j = t ? function (e, t) { if (e === t) return l = !0, 0; var n = !e.compareDocumentPosition - !t.compareDocumentPosition; return n || (1 & (n = (e.ownerDocument || e) == (t.ownerDocument || t) ? e.compareDocumentPosition(t) : 1) || !d.sortDetached && t.compareDocumentPosition(e) === n ? e == C || e.ownerDocument == p && y(p, e) ? -1 : t == C || t.ownerDocument == p && y(p, t) ? 1 : u ? P(u, e) - P(u, t) : 0 : 4 & n ? -1 : 1) } : function (e, t) { if (e === t) return l = !0, 0; var n, r = 0, i = e.parentNode, o = t.parentNode, a = [e], s = [t]; if (!i || !o) return e == C ? -1 : t == C ? 1 : i ? -1 : o ? 1 : u ? P(u, e) - P(u, t) : 0; if (i === o) return pe(e, t); n = e; while (n = n.parentNode) a.unshift(n); n = t; while (n = n.parentNode) s.unshift(n); while (a[r] === s[r]) r++; return r ? pe(a[r], s[r]) : a[r] == p ? -1 : s[r] == p ? 1 : 0 }), C }, se.matches = function (e, t) { return se(e, null, null, t) }, se.matchesSelector = function (e, t) { if (T(e), d.matchesSelector && E && !N[t + " "] && (!s || !s.test(t)) && (!v || !v.test(t))) try { var n = c.call(e, t); if (n || d.disconnectedMatch || e.document && 11 !== e.document.nodeType) return n } catch (e) { N(t, !0) } return 0 < se(t, C, null, [e]).length }, se.contains = function (e, t) { return (e.ownerDocument || e) != C && T(e), y(e, t) }, se.attr = function (e, t) { (e.ownerDocument || e) != C && T(e); var n = b.attrHandle[t.toLowerCase()], r = n && D.call(b.attrHandle, t.toLowerCase()) ? n(e, t, !E) : void 0; return void 0 !== r ? r : d.attributes || !E ? e.getAttribute(t) : (r = e.getAttributeNode(t)) && r.specified ? r.value : null }, se.escape = function (e) { return (e + "").replace(re, ie) }, se.error = function (e) { throw new Error("Syntax error, unrecognized expression: " + e) }, se.uniqueSort = function (e) { var t, n = [], r = 0, i = 0; if (l = !d.detectDuplicates, u = !d.sortStable && e.slice(0), e.sort(j), l) { while (t = e[i++]) t === e[i] && (r = n.push(i)); while (r--) e.splice(n[r], 1) } return u = null, e }, o = se.getText = function (e) { var t, n = "", r = 0, i = e.nodeType; if (i) { if (1 === i || 9 === i || 11 === i) { if ("string" == typeof e.textContent) return e.textContent; for (e = e.firstChild; e; e = e.nextSibling)n += o(e) } else if (3 === i || 4 === i) return e.nodeValue } else while (t = e[r++]) n += o(t); return n }, (b = se.selectors = { cacheLength: 50, createPseudo: le, match: G, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: !0 }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: !0 }, "~": { dir: "previousSibling" } }, preFilter: { ATTR: function (e) { return e[1] = e[1].replace(te, ne), e[3] = (e[3] || e[4] || e[5] || "").replace(te, ne), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4) }, CHILD: function (e) { return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || se.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && se.error(e[0]), e }, PSEUDO: function (e) { var t, n = !e[6] && e[2]; return G.CHILD.test(e[0]) ? null : (e[3] ? e[2] = e[4] || e[5] || "" : n && X.test(n) && (t = h(n, !0)) && (t = n.indexOf(")", n.length - t) - n.length) && (e[0] = e[0].slice(0, t), e[2] = n.slice(0, t)), e.slice(0, 3)) } }, filter: { TAG: function (e) { var t = e.replace(te, ne).toLowerCase(); return "*" === e ? function () { return !0 } : function (e) { return e.nodeName && e.nodeName.toLowerCase() === t } }, CLASS: function (e) { var t = m[e + " "]; return t || (t = new RegExp("(^|" + M + ")" + e + "(" + M + "|$)")) && m(e, function (e) { return t.test("string" == typeof e.className && e.className || "undefined" != typeof e.getAttribute && e.getAttribute("class") || "") }) }, ATTR: function (n, r, i) { return function (e) { var t = se.attr(e, n); return null == t ? "!=" === r : !r || (t += "", "=" === r ? t === i : "!=" === r ? t !== i : "^=" === r ? i && 0 === t.indexOf(i) : "*=" === r ? i && -1 < t.indexOf(i) : "$=" === r ? i && t.slice(-i.length) === i : "~=" === r ? -1 < (" " + t.replace(B, " ") + " ").indexOf(i) : "|=" === r && (t === i || t.slice(0, i.length + 1) === i + "-")) } }, CHILD: function (h, e, t, g, v) { var y = "nth" !== h.slice(0, 3), m = "last" !== h.slice(-4), x = "of-type" === e; return 1 === g && 0 === v ? function (e) { return !!e.parentNode } : function (e, t, n) { var r, i, o, a, s, u, l = y !== m ? "nextSibling" : "previousSibling", c = e.parentNode, f = x && e.nodeName.toLowerCase(), p = !n && !x, d = !1; if (c) { if (y) { while (l) { a = e; while (a = a[l]) if (x ? a.nodeName.toLowerCase() === f : 1 === a.nodeType) return !1; u = l = "only" === h && !u && "nextSibling" } return !0 } if (u = [m ? c.firstChild : c.lastChild], m && p) { d = (s = (r = (i = (o = (a = c)[S] || (a[S] = {}))[a.uniqueID] || (o[a.uniqueID] = {}))[h] || [])[0] === k && r[1]) && r[2], a = s && c.childNodes[s]; while (a = ++s && a && a[l] || (d = s = 0) || u.pop()) if (1 === a.nodeType && ++d && a === e) { i[h] = [k, s, d]; break } } else if (p && (d = s = (r = (i = (o = (a = e)[S] || (a[S] = {}))[a.uniqueID] || (o[a.uniqueID] = {}))[h] || [])[0] === k && r[1]), !1 === d) while (a = ++s && a && a[l] || (d = s = 0) || u.pop()) if ((x ? a.nodeName.toLowerCase() === f : 1 === a.nodeType) && ++d && (p && ((i = (o = a[S] || (a[S] = {}))[a.uniqueID] || (o[a.uniqueID] = {}))[h] = [k, d]), a === e)) break; return (d -= v) === g || d % g == 0 && 0 <= d / g } } }, PSEUDO: function (e, o) { var t, a = b.pseudos[e] || b.setFilters[e.toLowerCase()] || se.error("unsupported pseudo: " + e); return a[S] ? a(o) : 1 < a.length ? (t = [e, e, "", o], b.setFilters.hasOwnProperty(e.toLowerCase()) ? le(function (e, t) { var n, r = a(e, o), i = r.length; while (i--) e[n = P(e, r[i])] = !(t[n] = r[i]) }) : function (e) { return a(e, 0, t) }) : a } }, pseudos: { not: le(function (e) { var r = [], i = [], s = f(e.replace($, "$1")); return s[S] ? le(function (e, t, n, r) { var i, o = s(e, null, r, []), a = e.length; while (a--) (i = o[a]) && (e[a] = !(t[a] = i)) }) : function (e, t, n) { return r[0] = e, s(r, null, n, i), r[0] = null, !i.pop() } }), has: le(function (t) { return function (e) { return 0 < se(t, e).length } }), contains: le(function (t) { return t = t.replace(te, ne), function (e) { return -1 < (e.textContent || o(e)).indexOf(t) } }), lang: le(function (n) { return V.test(n || "") || se.error("unsupported lang: " + n), n = n.replace(te, ne).toLowerCase(), function (e) { var t; do { if (t = E ? e.lang : e.getAttribute("xml:lang") || e.getAttribute("lang")) return (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-") } while ((e = e.parentNode) && 1 === e.nodeType); return !1 } }), target: function (e) { var t = n.location && n.location.hash; return t && t.slice(1) === e.id }, root: function (e) { return e === a }, focus: function (e) { return e === C.activeElement && (!C.hasFocus || C.hasFocus()) && !!(e.type || e.href || ~e.tabIndex) }, enabled: ge(!1), disabled: ge(!0), checked: function (e) { var t = e.nodeName.toLowerCase(); return "input" === t && !!e.checked || "option" === t && !!e.selected }, selected: function (e) { return e.parentNode && e.parentNode.selectedIndex, !0 === e.selected }, empty: function (e) { for (e = e.firstChild; e; e = e.nextSibling)if (e.nodeType < 6) return !1; return !0 }, parent: function (e) { return !b.pseudos.empty(e) }, header: function (e) { return J.test(e.nodeName) }, input: function (e) { return Q.test(e.nodeName) }, button: function (e) { var t = e.nodeName.toLowerCase(); return "input" === t && "button" === e.type || "button" === t }, text: function (e) { var t; return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase()) }, first: ve(function () { return [0] }), last: ve(function (e, t) { return [t - 1] }), eq: ve(function (e, t, n) { return [n < 0 ? n + t : n] }), even: ve(function (e, t) { for (var n = 0; n < t; n += 2)e.push(n); return e }), odd: ve(function (e, t) { for (var n = 1; n < t; n += 2)e.push(n); return e }), lt: ve(function (e, t, n) { for (var r = n < 0 ? n + t : t < n ? t : n; 0 <= --r;)e.push(r); return e }), gt: ve(function (e, t, n) { for (var r = n < 0 ? n + t : n; ++r < t;)e.push(r); return e }) } }).pseudos.nth = b.pseudos.eq, { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 }) b.pseudos[e] = de(e); for (e in { submit: !0, reset: !0 }) b.pseudos[e] = he(e); function me() { } function xe(e) { for (var t = 0, n = e.length, r = ""; t < n; t++)r += e[t].value; return r } function be(s, e, t) { var u = e.dir, l = e.next, c = l || u, f = t && "parentNode" === c, p = r++; return e.first ? function (e, t, n) { while (e = e[u]) if (1 === e.nodeType || f) return s(e, t, n); return !1 } : function (e, t, n) { var r, i, o, a = [k, p]; if (n) { while (e = e[u]) if ((1 === e.nodeType || f) && s(e, t, n)) return !0 } else while (e = e[u]) if (1 === e.nodeType || f) if (i = (o = e[S] || (e[S] = {}))[e.uniqueID] || (o[e.uniqueID] = {}), l && l === e.nodeName.toLowerCase()) e = e[u] || e; else { if ((r = i[c]) && r[0] === k && r[1] === p) return a[2] = r[2]; if ((i[c] = a)[2] = s(e, t, n)) return !0 } return !1 } } function we(i) { return 1 < i.length ? function (e, t, n) { var r = i.length; while (r--) if (!i[r](e, t, n)) return !1; return !0 } : i[0] } function Te(e, t, n, r, i) { for (var o, a = [], s = 0, u = e.length, l = null != t; s < u; s++)(o = e[s]) && (n && !n(o, r, i) || (a.push(o), l && t.push(s))); return a } function Ce(d, h, g, v, y, e) { return v && !v[S] && (v = Ce(v)), y && !y[S] && (y = Ce(y, e)), le(function (e, t, n, r) { var i, o, a, s = [], u = [], l = t.length, c = e || function (e, t, n) { for (var r = 0, i = t.length; r < i; r++)se(e, t[r], n); return n }(h || "*", n.nodeType ? [n] : n, []), f = !d || !e && h ? c : Te(c, s, d, n, r), p = g ? y || (e ? d : l || v) ? [] : t : f; if (g && g(f, p, n, r), v) { i = Te(p, u), v(i, [], n, r), o = i.length; while (o--) (a = i[o]) && (p[u[o]] = !(f[u[o]] = a)) } if (e) { if (y || d) { if (y) { i = [], o = p.length; while (o--) (a = p[o]) && i.push(f[o] = a); y(null, p = [], i, r) } o = p.length; while (o--) (a = p[o]) && -1 < (i = y ? P(e, a) : s[o]) && (e[i] = !(t[i] = a)) } } else p = Te(p === t ? p.splice(l, p.length) : p), y ? y(null, t, p, r) : H.apply(t, p) }) } function Ee(e) { for (var i, t, n, r = e.length, o = b.relative[e[0].type], a = o || b.relative[" "], s = o ? 1 : 0, u = be(function (e) { return e === i }, a, !0), l = be(function (e) { return -1 < P(i, e) }, a, !0), c = [function (e, t, n) { var r = !o && (n || t !== w) || ((i = t).nodeType ? u(e, t, n) : l(e, t, n)); return i = null, r }]; s < r; s++)if (t = b.relative[e[s].type]) c = [be(we(c), t)]; else { if ((t = b.filter[e[s].type].apply(null, e[s].matches))[S]) { for (n = ++s; n < r; n++)if (b.relative[e[n].type]) break; return Ce(1 < s && we(c), 1 < s && xe(e.slice(0, s - 1).concat({ value: " " === e[s - 2].type ? "*" : "" })).replace($, "$1"), t, s < n && Ee(e.slice(s, n)), n < r && Ee(e = e.slice(n)), n < r && xe(e)) } c.push(t) } return we(c) } return me.prototype = b.filters = b.pseudos, b.setFilters = new me, h = se.tokenize = function (e, t) { var n, r, i, o, a, s, u, l = x[e + " "]; if (l) return t ? 0 : l.slice(0); a = e, s = [], u = b.preFilter; while (a) { for (o in n && !(r = _.exec(a)) || (r && (a = a.slice(r[0].length) || a), s.push(i = [])), n = !1, (r = z.exec(a)) && (n = r.shift(), i.push({ value: n, type: r[0].replace($, " ") }), a = a.slice(n.length)), b.filter) !(r = G[o].exec(a)) || u[o] && !(r = u[o](r)) || (n = r.shift(), i.push({ value: n, type: o, matches: r }), a = a.slice(n.length)); if (!n) break } return t ? a.length : a ? se.error(e) : x(e, s).slice(0) }, f = se.compile = function (e, t) { var n, v, y, m, x, r, i = [], o = [], a = A[e + " "]; if (!a) { t || (t = h(e)), n = t.length; while (n--) (a = Ee(t[n]))[S] ? i.push(a) : o.push(a); (a = A(e, (v = o, m = 0 < (y = i).length, x = 0 < v.length, r = function (e, t, n, r, i) { var o, a, s, u = 0, l = "0", c = e && [], f = [], p = w, d = e || x && b.find.TAG("*", i), h = k += null == p ? 1 : Math.random() || .1, g = d.length; for (i && (w = t == C || t || i); l !== g && null != (o = d[l]); l++) { if (x && o) { a = 0, t || o.ownerDocument == C || (T(o), n = !E); while (s = v[a++]) if (s(o, t || C, n)) { r.push(o); break } i && (k = h) } m && ((o = !s && o) && u--, e && c.push(o)) } if (u += l, m && l !== u) { a = 0; while (s = y[a++]) s(c, f, t, n); if (e) { if (0 < u) while (l--) c[l] || f[l] || (f[l] = q.call(r)); f = Te(f) } H.apply(r, f), i && !e && 0 < f.length && 1 < u + y.length && se.uniqueSort(r) } return i && (k = h, w = p), c }, m ? le(r) : r))).selector = e } return a }, g = se.select = function (e, t, n, r) { var i, o, a, s, u, l = "function" == typeof e && e, c = !r && h(e = l.selector || e); if (n = n || [], 1 === c.length) { if (2 < (o = c[0] = c[0].slice(0)).length && "ID" === (a = o[0]).type && 9 === t.nodeType && E && b.relative[o[1].type]) { if (!(t = (b.find.ID(a.matches[0].replace(te, ne), t) || [])[0])) return n; l && (t = t.parentNode), e = e.slice(o.shift().value.length) } i = G.needsContext.test(e) ? 0 : o.length; while (i--) { if (a = o[i], b.relative[s = a.type]) break; if ((u = b.find[s]) && (r = u(a.matches[0].replace(te, ne), ee.test(o[0].type) && ye(t.parentNode) || t))) { if (o.splice(i, 1), !(e = r.length && xe(o))) return H.apply(n, r), n; break } } } return (l || f(e, c))(r, t, !E, n, !t || ee.test(e) && ye(t.parentNode) || t), n }, d.sortStable = S.split("").sort(j).join("") === S, d.detectDuplicates = !!l, T(), d.sortDetached = ce(function (e) { return 1 & e.compareDocumentPosition(C.createElement("fieldset")) }), ce(function (e) { return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild.getAttribute("href") }) || fe("type|href|height|width", function (e, t, n) { if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2) }), d.attributes && ce(function (e) { return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value") }) || fe("value", function (e, t, n) { if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue }), ce(function (e) { return null == e.getAttribute("disabled") }) || fe(R, function (e, t, n) { var r; if (!n) return !0 === e[t] ? t.toLowerCase() : (r = e.getAttributeNode(t)) && r.specified ? r.value : null }), se }(C); S.find = d, S.expr = d.selectors, S.expr[":"] = S.expr.pseudos, S.uniqueSort = S.unique = d.uniqueSort, S.text = d.getText, S.isXMLDoc = d.isXML, S.contains = d.contains, S.escapeSelector = d.escape; var h = function (e, t, n) { var r = [], i = void 0 !== n; while ((e = e[t]) && 9 !== e.nodeType) if (1 === e.nodeType) { if (i && S(e).is(n)) break; r.push(e) } return r }, T = function (e, t) { for (var n = []; e; e = e.nextSibling)1 === e.nodeType && e !== t && n.push(e); return n }, k = S.expr.match.needsContext; function A(e, t) { return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase() } var N = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; function j(e, n, r) { return m(n) ? S.grep(e, function (e, t) { return !!n.call(e, t, e) !== r }) : n.nodeType ? S.grep(e, function (e) { return e === n !== r }) : "string" != typeof n ? S.grep(e, function (e) { return -1 < i.call(n, e) !== r }) : S.filter(n, e, r) } S.filter = function (e, t, n) { var r = t[0]; return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? S.find.matchesSelector(r, e) ? [r] : [] : S.find.matches(e, S.grep(t, function (e) { return 1 === e.nodeType })) }, S.fn.extend({ find: function (e) { var t, n, r = this.length, i = this; if ("string" != typeof e) return this.pushStack(S(e).filter(function () { for (t = 0; t < r; t++)if (S.contains(i[t], this)) return !0 })); for (n = this.pushStack([]), t = 0; t < r; t++)S.find(e, i[t], n); return 1 < r ? S.uniqueSort(n) : n }, filter: function (e) { return this.pushStack(j(this, e || [], !1)) }, not: function (e) { return this.pushStack(j(this, e || [], !0)) }, is: function (e) { return !!j(this, "string" == typeof e && k.test(e) ? S(e) : e || [], !1).length } }); var D, q = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/; (S.fn.init = function (e, t, n) { var r, i; if (!e) return this; if (n = n || D, "string" == typeof e) { if (!(r = "<" === e[0] && ">" === e[e.length - 1] && 3 <= e.length ? [null, e, null] : q.exec(e)) || !r[1] && t) return !t || t.jquery ? (t || n).find(e) : this.constructor(t).find(e); if (r[1]) { if (t = t instanceof S ? t[0] : t, S.merge(this, S.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : E, !0)), N.test(r[1]) && S.isPlainObject(t)) for (r in t) m(this[r]) ? this[r](t[r]) : this.attr(r, t[r]); return this } return (i = E.getElementById(r[2])) && (this[0] = i, this.length = 1), this } return e.nodeType ? (this[0] = e, this.length = 1, this) : m(e) ? void 0 !== n.ready ? n.ready(e) : e(S) : S.makeArray(e, this) }).prototype = S.fn, D = S(E); var L = /^(?:parents|prev(?:Until|All))/, H = { children: !0, contents: !0, next: !0, prev: !0 }; function O(e, t) { while ((e = e[t]) && 1 !== e.nodeType); return e } S.fn.extend({ has: function (e) { var t = S(e, this), n = t.length; return this.filter(function () { for (var e = 0; e < n; e++)if (S.contains(this, t[e])) return !0 }) }, closest: function (e, t) { var n, r = 0, i = this.length, o = [], a = "string" != typeof e && S(e); if (!k.test(e)) for (; r < i; r++)for (n = this[r]; n && n !== t; n = n.parentNode)if (n.nodeType < 11 && (a ? -1 < a.index(n) : 1 === n.nodeType && S.find.matchesSelector(n, e))) { o.push(n); break } return this.pushStack(1 < o.length ? S.uniqueSort(o) : o) }, index: function (e) { return e ? "string" == typeof e ? i.call(S(e), this[0]) : i.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1 }, add: function (e, t) { return this.pushStack(S.uniqueSort(S.merge(this.get(), S(e, t)))) }, addBack: function (e) { return this.add(null == e ? this.prevObject : this.prevObject.filter(e)) } }), S.each({ parent: function (e) { var t = e.parentNode; return t && 11 !== t.nodeType ? t : null }, parents: function (e) { return h(e, "parentNode") }, parentsUntil: function (e, t, n) { return h(e, "parentNode", n) }, next: function (e) { return O(e, "nextSibling") }, prev: function (e) { return O(e, "previousSibling") }, nextAll: function (e) { return h(e, "nextSibling") }, prevAll: function (e) { return h(e, "previousSibling") }, nextUntil: function (e, t, n) { return h(e, "nextSibling", n) }, prevUntil: function (e, t, n) { return h(e, "previousSibling", n) }, siblings: function (e) { return T((e.parentNode || {}).firstChild, e) }, children: function (e) { return T(e.firstChild) }, contents: function (e) { return null != e.contentDocument && r(e.contentDocument) ? e.contentDocument : (A(e, "template") && (e = e.content || e), S.merge([], e.childNodes)) } }, function (r, i) { S.fn[r] = function (e, t) { var n = S.map(this, i, e); return "Until" !== r.slice(-5) && (t = e), t && "string" == typeof t && (n = S.filter(t, n)), 1 < this.length && (H[r] || S.uniqueSort(n), L.test(r) && n.reverse()), this.pushStack(n) } }); var P = /[^\x20\t\r\n\f]+/g; function R(e) { return e } function M(e) { throw e } function I(e, t, n, r) { var i; try { e && m(i = e.promise) ? i.call(e).done(t).fail(n) : e && m(i = e.then) ? i.call(e, t, n) : t.apply(void 0, [e].slice(r)) } catch (e) { n.apply(void 0, [e]) } } S.Callbacks = function (r) { var e, n; r = "string" == typeof r ? (e = r, n = {}, S.each(e.match(P) || [], function (e, t) { n[t] = !0 }), n) : S.extend({}, r); var i, t, o, a, s = [], u = [], l = -1, c = function () { for (a = a || r.once, o = i = !0; u.length; l = -1) { t = u.shift(); while (++l < s.length) !1 === s[l].apply(t[0], t[1]) && r.stopOnFalse && (l = s.length, t = !1) } r.memory || (t = !1), i = !1, a && (s = t ? [] : "") }, f = { add: function () { return s && (t && !i && (l = s.length - 1, u.push(t)), function n(e) { S.each(e, function (e, t) { m(t) ? r.unique && f.has(t) || s.push(t) : t && t.length && "string" !== w(t) && n(t) }) }(arguments), t && !i && c()), this }, remove: function () { return S.each(arguments, function (e, t) { var n; while (-1 < (n = S.inArray(t, s, n))) s.splice(n, 1), n <= l && l-- }), this }, has: function (e) { return e ? -1 < S.inArray(e, s) : 0 < s.length }, empty: function () { return s && (s = []), this }, disable: function () { return a = u = [], s = t = "", this }, disabled: function () { return !s }, lock: function () { return a = u = [], t || i || (s = t = ""), this }, locked: function () { return !!a }, fireWith: function (e, t) { return a || (t = [e, (t = t || []).slice ? t.slice() : t], u.push(t), i || c()), this }, fire: function () { return f.fireWith(this, arguments), this }, fired: function () { return !!o } }; return f }, S.extend({ Deferred: function (e) { var o = [["notify", "progress", S.Callbacks("memory"), S.Callbacks("memory"), 2], ["resolve", "done", S.Callbacks("once memory"), S.Callbacks("once memory"), 0, "resolved"], ["reject", "fail", S.Callbacks("once memory"), S.Callbacks("once memory"), 1, "rejected"]], i = "pending", a = { state: function () { return i }, always: function () { return s.done(arguments).fail(arguments), this }, "catch": function (e) { return a.then(null, e) }, pipe: function () { var i = arguments; return S.Deferred(function (r) { S.each(o, function (e, t) { var n = m(i[t[4]]) && i[t[4]]; s[t[1]](function () { var e = n && n.apply(this, arguments); e && m(e.promise) ? e.promise().progress(r.notify).done(r.resolve).fail(r.reject) : r[t[0] + "With"](this, n ? [e] : arguments) }) }), i = null }).promise() }, then: function (t, n, r) { var u = 0; function l(i, o, a, s) { return function () { var n = this, r = arguments, e = function () { var e, t; if (!(i < u)) { if ((e = a.apply(n, r)) === o.promise()) throw new TypeError("Thenable self-resolution"); t = e && ("object" == typeof e || "function" == typeof e) && e.then, m(t) ? s ? t.call(e, l(u, o, R, s), l(u, o, M, s)) : (u++, t.call(e, l(u, o, R, s), l(u, o, M, s), l(u, o, R, o.notifyWith))) : (a !== R && (n = void 0, r = [e]), (s || o.resolveWith)(n, r)) } }, t = s ? e : function () { try { e() } catch (e) { S.Deferred.exceptionHook && S.Deferred.exceptionHook(e, t.stackTrace), u <= i + 1 && (a !== M && (n = void 0, r = [e]), o.rejectWith(n, r)) } }; i ? t() : (S.Deferred.getStackHook && (t.stackTrace = S.Deferred.getStackHook()), C.setTimeout(t)) } } return S.Deferred(function (e) { o[0][3].add(l(0, e, m(r) ? r : R, e.notifyWith)), o[1][3].add(l(0, e, m(t) ? t : R)), o[2][3].add(l(0, e, m(n) ? n : M)) }).promise() }, promise: function (e) { return null != e ? S.extend(e, a) : a } }, s = {}; return S.each(o, function (e, t) { var n = t[2], r = t[5]; a[t[1]] = n.add, r && n.add(function () { i = r }, o[3 - e][2].disable, o[3 - e][3].disable, o[0][2].lock, o[0][3].lock), n.add(t[3].fire), s[t[0]] = function () { return s[t[0] + "With"](this === s ? void 0 : this, arguments), this }, s[t[0] + "With"] = n.fireWith }), a.promise(s), e && e.call(s, s), s }, when: function (e) { var n = arguments.length, t = n, r = Array(t), i = s.call(arguments), o = S.Deferred(), a = function (t) { return function (e) { r[t] = this, i[t] = 1 < arguments.length ? s.call(arguments) : e, --n || o.resolveWith(r, i) } }; if (n <= 1 && (I(e, o.done(a(t)).resolve, o.reject, !n), "pending" === o.state() || m(i[t] && i[t].then))) return o.then(); while (t--) I(i[t], a(t), o.reject); return o.promise() } }); var W = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; S.Deferred.exceptionHook = function (e, t) { C.console && C.console.warn && e && W.test(e.name) && C.console.warn("jQuery.Deferred exception: " + e.message, e.stack, t) }, S.readyException = function (e) { C.setTimeout(function () { throw e }) }; var F = S.Deferred(); function B() { E.removeEventListener("DOMContentLoaded", B), C.removeEventListener("load", B), S.ready() } S.fn.ready = function (e) { return F.then(e)["catch"](function (e) { S.readyException(e) }), this }, S.extend({ isReady: !1, readyWait: 1, ready: function (e) { (!0 === e ? --S.readyWait : S.isReady) || (S.isReady = !0) !== e && 0 < --S.readyWait || F.resolveWith(E, [S]) } }), S.ready.then = F.then, "complete" === E.readyState || "loading" !== E.readyState && !E.documentElement.doScroll ? C.setTimeout(S.ready) : (E.addEventListener("DOMContentLoaded", B), C.addEventListener("load", B)); var $ = function (e, t, n, r, i, o, a) { var s = 0, u = e.length, l = null == n; if ("object" === w(n)) for (s in i = !0, n) $(e, t, s, n[s], !0, o, a); else if (void 0 !== r && (i = !0, m(r) || (a = !0), l && (a ? (t.call(e, r), t = null) : (l = t, t = function (e, t, n) { return l.call(S(e), n) })), t)) for (; s < u; s++)t(e[s], n, a ? r : r.call(e[s], s, t(e[s], n))); return i ? e : l ? t.call(e) : u ? t(e[0], n) : o }, _ = /^-ms-/, z = /-([a-z])/g; function U(e, t) { return t.toUpperCase() } function X(e) { return e.replace(_, "ms-").replace(z, U) } var V = function (e) { return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType }; function G() { this.expando = S.expando + G.uid++ } G.uid = 1, G.prototype = { cache: function (e) { var t = e[this.expando]; return t || (t = {}, V(e) && (e.nodeType ? e[this.expando] = t : Object.defineProperty(e, this.expando, { value: t, configurable: !0 }))), t }, set: function (e, t, n) { var r, i = this.cache(e); if ("string" == typeof t) i[X(t)] = n; else for (r in t) i[X(r)] = t[r]; return i }, get: function (e, t) { return void 0 === t ? this.cache(e) : e[this.expando] && e[this.expando][X(t)] }, access: function (e, t, n) { return void 0 === t || t && "string" == typeof t && void 0 === n ? this.get(e, t) : (this.set(e, t, n), void 0 !== n ? n : t) }, remove: function (e, t) { var n, r = e[this.expando]; if (void 0 !== r) { if (void 0 !== t) { n = (t = Array.isArray(t) ? t.map(X) : (t = X(t)) in r ? [t] : t.match(P) || []).length; while (n--) delete r[t[n]] } (void 0 === t || S.isEmptyObject(r)) && (e.nodeType ? e[this.expando] = void 0 : delete e[this.expando]) } }, hasData: function (e) { var t = e[this.expando]; return void 0 !== t && !S.isEmptyObject(t) } }; var Y = new G, Q = new G, J = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, K = /[A-Z]/g; function Z(e, t, n) { var r, i; if (void 0 === n && 1 === e.nodeType) if (r = "data-" + t.replace(K, "-$&").toLowerCase(), "string" == typeof (n = e.getAttribute(r))) { try { n = "true" === (i = n) || "false" !== i && ("null" === i ? null : i === +i + "" ? +i : J.test(i) ? JSON.parse(i) : i) } catch (e) { } Q.set(e, t, n) } else n = void 0; return n } S.extend({ hasData: function (e) { return Q.hasData(e) || Y.hasData(e) }, data: function (e, t, n) { return Q.access(e, t, n) }, removeData: function (e, t) { Q.remove(e, t) }, _data: function (e, t, n) { return Y.access(e, t, n) }, _removeData: function (e, t) { Y.remove(e, t) } }), S.fn.extend({ data: function (n, e) { var t, r, i, o = this[0], a = o && o.attributes; if (void 0 === n) { if (this.length && (i = Q.get(o), 1 === o.nodeType && !Y.get(o, "hasDataAttrs"))) { t = a.length; while (t--) a[t] && 0 === (r = a[t].name).indexOf("data-") && (r = X(r.slice(5)), Z(o, r, i[r])); Y.set(o, "hasDataAttrs", !0) } return i } return "object" == typeof n ? this.each(function () { Q.set(this, n) }) : $(this, function (e) { var t; if (o && void 0 === e) return void 0 !== (t = Q.get(o, n)) ? t : void 0 !== (t = Z(o, n)) ? t : void 0; this.each(function () { Q.set(this, n, e) }) }, null, e, 1 < arguments.length, null, !0) }, removeData: function (e) { return this.each(function () { Q.remove(this, e) }) } }), S.extend({ queue: function (e, t, n) { var r; if (e) return t = (t || "fx") + "queue", r = Y.get(e, t), n && (!r || Array.isArray(n) ? r = Y.access(e, t, S.makeArray(n)) : r.push(n)), r || [] }, dequeue: function (e, t) { t = t || "fx"; var n = S.queue(e, t), r = n.length, i = n.shift(), o = S._queueHooks(e, t); "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, function () { S.dequeue(e, t) }, o)), !r && o && o.empty.fire() }, _queueHooks: function (e, t) { var n = t + "queueHooks"; return Y.get(e, n) || Y.access(e, n, { empty: S.Callbacks("once memory").add(function () { Y.remove(e, [t + "queue", n]) }) }) } }), S.fn.extend({ queue: function (t, n) { var e = 2; return "string" != typeof t && (n = t, t = "fx", e--), arguments.length < e ? S.queue(this[0], t) : void 0 === n ? this : this.each(function () { var e = S.queue(this, t, n); S._queueHooks(this, t), "fx" === t && "inprogress" !== e[0] && S.dequeue(this, t) }) }, dequeue: function (e) { return this.each(function () { S.dequeue(this, e) }) }, clearQueue: function (e) { return this.queue(e || "fx", []) }, promise: function (e, t) { var n, r = 1, i = S.Deferred(), o = this, a = this.length, s = function () { --r || i.resolveWith(o, [o]) }; "string" != typeof e && (t = e, e = void 0), e = e || "fx"; while (a--) (n = Y.get(o[a], e + "queueHooks")) && n.empty && (r++, n.empty.add(s)); return s(), i.promise(t) } }); var ee = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, te = new RegExp("^(?:([+-])=|)(" + ee + ")([a-z%]*)$", "i"), ne = ["Top", "Right", "Bottom", "Left"], re = E.documentElement, ie = function (e) { return S.contains(e.ownerDocument, e) }, oe = { composed: !0 }; re.getRootNode && (ie = function (e) { return S.contains(e.ownerDocument, e) || e.getRootNode(oe) === e.ownerDocument }); var ae = function (e, t) { return "none" === (e = t || e).style.display || "" === e.style.display && ie(e) && "none" === S.css(e, "display") }; function se(e, t, n, r) { var i, o, a = 20, s = r ? function () { return r.cur() } : function () { return S.css(e, t, "") }, u = s(), l = n && n[3] || (S.cssNumber[t] ? "" : "px"), c = e.nodeType && (S.cssNumber[t] || "px" !== l && +u) && te.exec(S.css(e, t)); if (c && c[3] !== l) { u /= 2, l = l || c[3], c = +u || 1; while (a--) S.style(e, t, c + l), (1 - o) * (1 - (o = s() / u || .5)) <= 0 && (a = 0), c /= o; c *= 2, S.style(e, t, c + l), n = n || [] } return n && (c = +c || +u || 0, i = n[1] ? c + (n[1] + 1) * n[2] : +n[2], r && (r.unit = l, r.start = c, r.end = i)), i } var ue = {}; function le(e, t) { for (var n, r, i, o, a, s, u, l = [], c = 0, f = e.length; c < f; c++)(r = e[c]).style && (n = r.style.display, t ? ("none" === n && (l[c] = Y.get(r, "display") || null, l[c] || (r.style.display = "")), "" === r.style.display && ae(r) && (l[c] = (u = a = o = void 0, a = (i = r).ownerDocument, s = i.nodeName, (u = ue[s]) || (o = a.body.appendChild(a.createElement(s)), u = S.css(o, "display"), o.parentNode.removeChild(o), "none" === u && (u = "block"), ue[s] = u)))) : "none" !== n && (l[c] = "none", Y.set(r, "display", n))); for (c = 0; c < f; c++)null != l[c] && (e[c].style.display = l[c]); return e } S.fn.extend({ show: function () { return le(this, !0) }, hide: function () { return le(this) }, toggle: function (e) { return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function () { ae(this) ? S(this).show() : S(this).hide() }) } }); var ce, fe, pe = /^(?:checkbox|radio)$/i, de = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i, he = /^$|^module$|\/(?:java|ecma)script/i; ce = E.createDocumentFragment().appendChild(E.createElement("div")), (fe = E.createElement("input")).setAttribute("type", "radio"), fe.setAttribute("checked", "checked"), fe.setAttribute("name", "t"), ce.appendChild(fe), y.checkClone = ce.cloneNode(!0).cloneNode(!0).lastChild.checked, ce.innerHTML = "<textarea>x</textarea>", y.noCloneChecked = !!ce.cloneNode(!0).lastChild.defaultValue, ce.innerHTML = "<option></option>", y.option = !!ce.lastChild; var ge = { thead: [1, "<table>", "</table>"], col: [2, "<table><colgroup>", "</colgroup></table>"], tr: [2, "<table><tbody>", "</tbody></table>"], td: [3, "<table><tbody><tr>", "</tr></tbody></table>"], _default: [0, "", ""] }; function ve(e, t) { var n; return n = "undefined" != typeof e.getElementsByTagName ? e.getElementsByTagName(t || "*") : "undefined" != typeof e.querySelectorAll ? e.querySelectorAll(t || "*") : [], void 0 === t || t && A(e, t) ? S.merge([e], n) : n } function ye(e, t) { for (var n = 0, r = e.length; n < r; n++)Y.set(e[n], "globalEval", !t || Y.get(t[n], "globalEval")) } ge.tbody = ge.tfoot = ge.colgroup = ge.caption = ge.thead, ge.th = ge.td, y.option || (ge.optgroup = ge.option = [1, "<select multiple='multiple'>", "</select>"]); var me = /<|&#?\w+;/; function xe(e, t, n, r, i) { for (var o, a, s, u, l, c, f = t.createDocumentFragment(), p = [], d = 0, h = e.length; d < h; d++)if ((o = e[d]) || 0 === o) if ("object" === w(o)) S.merge(p, o.nodeType ? [o] : o); else if (me.test(o)) { a = a || f.appendChild(t.createElement("div")), s = (de.exec(o) || ["", ""])[1].toLowerCase(), u = ge[s] || ge._default, a.innerHTML = u[1] + S.htmlPrefilter(o) + u[2], c = u[0]; while (c--) a = a.lastChild; S.merge(p, a.childNodes), (a = f.firstChild).textContent = "" } else p.push(t.createTextNode(o)); f.textContent = "", d = 0; while (o = p[d++]) if (r && -1 < S.inArray(o, r)) i && i.push(o); else if (l = ie(o), a = ve(f.appendChild(o), "script"), l && ye(a), n) { c = 0; while (o = a[c++]) he.test(o.type || "") && n.push(o) } return f } var be = /^([^.]*)(?:\.(.+)|)/; function we() { return !0 } function Te() { return !1 } function Ce(e, t) { return e === function () { try { return E.activeElement } catch (e) { } }() == ("focus" === t) } function Ee(e, t, n, r, i, o) { var a, s; if ("object" == typeof t) { for (s in "string" != typeof n && (r = r || n, n = void 0), t) Ee(e, s, n, r, t[s], o); return e } if (null == r && null == i ? (i = n, r = n = void 0) : null == i && ("string" == typeof n ? (i = r, r = void 0) : (i = r, r = n, n = void 0)), !1 === i) i = Te; else if (!i) return e; return 1 === o && (a = i, (i = function (e) { return S().off(e), a.apply(this, arguments) }).guid = a.guid || (a.guid = S.guid++)), e.each(function () { S.event.add(this, t, i, r, n) }) } function Se(e, i, o) { o ? (Y.set(e, i, !1), S.event.add(e, i, { namespace: !1, handler: function (e) { var t, n, r = Y.get(this, i); if (1 & e.isTrigger && this[i]) { if (r.length) (S.event.special[i] || {}).delegateType && e.stopPropagation(); else if (r = s.call(arguments), Y.set(this, i, r), t = o(this, i), this[i](), r !== (n = Y.get(this, i)) || t ? Y.set(this, i, !1) : n = {}, r !== n) return e.stopImmediatePropagation(), e.preventDefault(), n && n.value } else r.length && (Y.set(this, i, { value: S.event.trigger(S.extend(r[0], S.Event.prototype), r.slice(1), this) }), e.stopImmediatePropagation()) } })) : void 0 === Y.get(e, i) && S.event.add(e, i, we) } S.event = { global: {}, add: function (t, e, n, r, i) { var o, a, s, u, l, c, f, p, d, h, g, v = Y.get(t); if (V(t)) { n.handler && (n = (o = n).handler, i = o.selector), i && S.find.matchesSelector(re, i), n.guid || (n.guid = S.guid++), (u = v.events) || (u = v.events = Object.create(null)), (a = v.handle) || (a = v.handle = function (e) { return "undefined" != typeof S && S.event.triggered !== e.type ? S.event.dispatch.apply(t, arguments) : void 0 }), l = (e = (e || "").match(P) || [""]).length; while (l--) d = g = (s = be.exec(e[l]) || [])[1], h = (s[2] || "").split(".").sort(), d && (f = S.event.special[d] || {}, d = (i ? f.delegateType : f.bindType) || d, f = S.event.special[d] || {}, c = S.extend({ type: d, origType: g, data: r, handler: n, guid: n.guid, selector: i, needsContext: i && S.expr.match.needsContext.test(i), namespace: h.join(".") }, o), (p = u[d]) || ((p = u[d] = []).delegateCount = 0, f.setup && !1 !== f.setup.call(t, r, h, a) || t.addEventListener && t.addEventListener(d, a)), f.add && (f.add.call(t, c), c.handler.guid || (c.handler.guid = n.guid)), i ? p.splice(p.delegateCount++, 0, c) : p.push(c), S.event.global[d] = !0) } }, remove: function (e, t, n, r, i) { var o, a, s, u, l, c, f, p, d, h, g, v = Y.hasData(e) && Y.get(e); if (v && (u = v.events)) { l = (t = (t || "").match(P) || [""]).length; while (l--) if (d = g = (s = be.exec(t[l]) || [])[1], h = (s[2] || "").split(".").sort(), d) { f = S.event.special[d] || {}, p = u[d = (r ? f.delegateType : f.bindType) || d] || [], s = s[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), a = o = p.length; while (o--) c = p[o], !i && g !== c.origType || n && n.guid !== c.guid || s && !s.test(c.namespace) || r && r !== c.selector && ("**" !== r || !c.selector) || (p.splice(o, 1), c.selector && p.delegateCount--, f.remove && f.remove.call(e, c)); a && !p.length && (f.teardown && !1 !== f.teardown.call(e, h, v.handle) || S.removeEvent(e, d, v.handle), delete u[d]) } else for (d in u) S.event.remove(e, d + t[l], n, r, !0); S.isEmptyObject(u) && Y.remove(e, "handle events") } }, dispatch: function (e) { var t, n, r, i, o, a, s = new Array(arguments.length), u = S.event.fix(e), l = (Y.get(this, "events") || Object.create(null))[u.type] || [], c = S.event.special[u.type] || {}; for (s[0] = u, t = 1; t < arguments.length; t++)s[t] = arguments[t]; if (u.delegateTarget = this, !c.preDispatch || !1 !== c.preDispatch.call(this, u)) { a = S.event.handlers.call(this, u, l), t = 0; while ((i = a[t++]) && !u.isPropagationStopped()) { u.currentTarget = i.elem, n = 0; while ((o = i.handlers[n++]) && !u.isImmediatePropagationStopped()) u.rnamespace && !1 !== o.namespace && !u.rnamespace.test(o.namespace) || (u.handleObj = o, u.data = o.data, void 0 !== (r = ((S.event.special[o.origType] || {}).handle || o.handler).apply(i.elem, s)) && !1 === (u.result = r) && (u.preventDefault(), u.stopPropagation())) } return c.postDispatch && c.postDispatch.call(this, u), u.result } }, handlers: function (e, t) { var n, r, i, o, a, s = [], u = t.delegateCount, l = e.target; if (u && l.nodeType && !("click" === e.type && 1 <= e.button)) for (; l !== this; l = l.parentNode || this)if (1 === l.nodeType && ("click" !== e.type || !0 !== l.disabled)) { for (o = [], a = {}, n = 0; n < u; n++)void 0 === a[i = (r = t[n]).selector + " "] && (a[i] = r.needsContext ? -1 < S(i, this).index(l) : S.find(i, this, null, [l]).length), a[i] && o.push(r); o.length && s.push({ elem: l, handlers: o }) } return l = this, u < t.length && s.push({ elem: l, handlers: t.slice(u) }), s }, addProp: function (t, e) { Object.defineProperty(S.Event.prototype, t, { enumerable: !0, configurable: !0, get: m(e) ? function () { if (this.originalEvent) return e(this.originalEvent) } : function () { if (this.originalEvent) return this.originalEvent[t] }, set: function (e) { Object.defineProperty(this, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) } }) }, fix: function (e) { return e[S.expando] ? e : new S.Event(e) }, special: { load: { noBubble: !0 }, click: { setup: function (e) { var t = this || e; return pe.test(t.type) && t.click && A(t, "input") && Se(t, "click", we), !1 }, trigger: function (e) { var t = this || e; return pe.test(t.type) && t.click && A(t, "input") && Se(t, "click"), !0 }, _default: function (e) { var t = e.target; return pe.test(t.type) && t.click && A(t, "input") && Y.get(t, "click") || A(t, "a") } }, beforeunload: { postDispatch: function (e) { void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result) } } } }, S.removeEvent = function (e, t, n) { e.removeEventListener && e.removeEventListener(t, n) }, S.Event = function (e, t) { if (!(this instanceof S.Event)) return new S.Event(e, t); e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && !1 === e.returnValue ? we : Te, this.target = e.target && 3 === e.target.nodeType ? e.target.parentNode : e.target, this.currentTarget = e.currentTarget, this.relatedTarget = e.relatedTarget) : this.type = e, t && S.extend(this, t), this.timeStamp = e && e.timeStamp || Date.now(), this[S.expando] = !0 }, S.Event.prototype = { constructor: S.Event, isDefaultPrevented: Te, isPropagationStopped: Te, isImmediatePropagationStopped: Te, isSimulated: !1, preventDefault: function () { var e = this.originalEvent; this.isDefaultPrevented = we, e && !this.isSimulated && e.preventDefault() }, stopPropagation: function () { var e = this.originalEvent; this.isPropagationStopped = we, e && !this.isSimulated && e.stopPropagation() }, stopImmediatePropagation: function () { var e = this.originalEvent; this.isImmediatePropagationStopped = we, e && !this.isSimulated && e.stopImmediatePropagation(), this.stopPropagation() } }, S.each({ altKey: !0, bubbles: !0, cancelable: !0, changedTouches: !0, ctrlKey: !0, detail: !0, eventPhase: !0, metaKey: !0, pageX: !0, pageY: !0, shiftKey: !0, view: !0, "char": !0, code: !0, charCode: !0, key: !0, keyCode: !0, button: !0, buttons: !0, clientX: !0, clientY: !0, offsetX: !0, offsetY: !0, pointerId: !0, pointerType: !0, screenX: !0, screenY: !0, targetTouches: !0, toElement: !0, touches: !0, which: !0 }, S.event.addProp), S.each({ focus: "focusin", blur: "focusout" }, function (e, t) { S.event.special[e] = { setup: function () { return Se(this, e, Ce), !1 }, trigger: function () { return Se(this, e), !0 }, _default: function () { return !0 }, delegateType: t } }), S.each({ mouseenter: "mouseover", mouseleave: "mouseout", pointerenter: "pointerover", pointerleave: "pointerout" }, function (e, i) { S.event.special[e] = { delegateType: i, bindType: i, handle: function (e) { var t, n = e.relatedTarget, r = e.handleObj; return n && (n === this || S.contains(this, n)) || (e.type = r.origType, t = r.handler.apply(this, arguments), e.type = i), t } } }), S.fn.extend({ on: function (e, t, n, r) { return Ee(this, e, t, n, r) }, one: function (e, t, n, r) { return Ee(this, e, t, n, r, 1) }, off: function (e, t, n) { var r, i; if (e && e.preventDefault && e.handleObj) return r = e.handleObj, S(e.delegateTarget).off(r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, r.handler), this; if ("object" == typeof e) { for (i in e) this.off(i, t, e[i]); return this } return !1 !== t && "function" != typeof t || (n = t, t = void 0), !1 === n && (n = Te), this.each(function () { S.event.remove(this, e, n, t) }) } }); var ke = /<script|<style|<link/i, Ae = /checked\s*(?:[^=]|=\s*.checked.)/i, Ne = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g; function je(e, t) { return A(e, "table") && A(11 !== t.nodeType ? t : t.firstChild, "tr") && S(e).children("tbody")[0] || e } function De(e) { return e.type = (null !== e.getAttribute("type")) + "/" + e.type, e } function qe(e) { return "true/" === (e.type || "").slice(0, 5) ? e.type = e.type.slice(5) : e.removeAttribute("type"), e } function Le(e, t) { var n, r, i, o, a, s; if (1 === t.nodeType) { if (Y.hasData(e) && (s = Y.get(e).events)) for (i in Y.remove(t, "handle events"), s) for (n = 0, r = s[i].length; n < r; n++)S.event.add(t, i, s[i][n]); Q.hasData(e) && (o = Q.access(e), a = S.extend({}, o), Q.set(t, a)) } } function He(n, r, i, o) { r = g(r); var e, t, a, s, u, l, c = 0, f = n.length, p = f - 1, d = r[0], h = m(d); if (h || 1 < f && "string" == typeof d && !y.checkClone && Ae.test(d)) return n.each(function (e) { var t = n.eq(e); h && (r[0] = d.call(this, e, t.html())), He(t, r, i, o) }); if (f && (t = (e = xe(r, n[0].ownerDocument, !1, n, o)).firstChild, 1 === e.childNodes.length && (e = t), t || o)) { for (s = (a = S.map(ve(e, "script"), De)).length; c < f; c++)u = e, c !== p && (u = S.clone(u, !0, !0), s && S.merge(a, ve(u, "script"))), i.call(n[c], u, c); if (s) for (l = a[a.length - 1].ownerDocument, S.map(a, qe), c = 0; c < s; c++)u = a[c], he.test(u.type || "") && !Y.access(u, "globalEval") && S.contains(l, u) && (u.src && "module" !== (u.type || "").toLowerCase() ? S._evalUrl && !u.noModule && S._evalUrl(u.src, { nonce: u.nonce || u.getAttribute("nonce") }, l) : b(u.textContent.replace(Ne, ""), u, l)) } return n } function Oe(e, t, n) { for (var r, i = t ? S.filter(t, e) : e, o = 0; null != (r = i[o]); o++)n || 1 !== r.nodeType || S.cleanData(ve(r)), r.parentNode && (n && ie(r) && ye(ve(r, "script")), r.parentNode.removeChild(r)); return e } S.extend({ htmlPrefilter: function (e) { return e }, clone: function (e, t, n) { var r, i, o, a, s, u, l, c = e.cloneNode(!0), f = ie(e); if (!(y.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || S.isXMLDoc(e))) for (a = ve(c), r = 0, i = (o = ve(e)).length; r < i; r++)s = o[r], u = a[r], void 0, "input" === (l = u.nodeName.toLowerCase()) && pe.test(s.type) ? u.checked = s.checked : "input" !== l && "textarea" !== l || (u.defaultValue = s.defaultValue); if (t) if (n) for (o = o || ve(e), a = a || ve(c), r = 0, i = o.length; r < i; r++)Le(o[r], a[r]); else Le(e, c); return 0 < (a = ve(c, "script")).length && ye(a, !f && ve(e, "script")), c }, cleanData: function (e) { for (var t, n, r, i = S.event.special, o = 0; void 0 !== (n = e[o]); o++)if (V(n)) { if (t = n[Y.expando]) { if (t.events) for (r in t.events) i[r] ? S.event.remove(n, r) : S.removeEvent(n, r, t.handle); n[Y.expando] = void 0 } n[Q.expando] && (n[Q.expando] = void 0) } } }), S.fn.extend({ detach: function (e) { return Oe(this, e, !0) }, remove: function (e) { return Oe(this, e) }, text: function (e) { return $(this, function (e) { return void 0 === e ? S.text(this) : this.empty().each(function () { 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = e) }) }, null, e, arguments.length) }, append: function () { return He(this, arguments, function (e) { 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || je(this, e).appendChild(e) }) }, prepend: function () { return He(this, arguments, function (e) { if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { var t = je(this, e); t.insertBefore(e, t.firstChild) } }) }, before: function () { return He(this, arguments, function (e) { this.parentNode && this.parentNode.insertBefore(e, this) }) }, after: function () { return He(this, arguments, function (e) { this.parentNode && this.parentNode.insertBefore(e, this.nextSibling) }) }, empty: function () { for (var e, t = 0; null != (e = this[t]); t++)1 === e.nodeType && (S.cleanData(ve(e, !1)), e.textContent = ""); return this }, clone: function (e, t) { return e = null != e && e, t = null == t ? e : t, this.map(function () { return S.clone(this, e, t) }) }, html: function (e) { return $(this, function (e) { var t = this[0] || {}, n = 0, r = this.length; if (void 0 === e && 1 === t.nodeType) return t.innerHTML; if ("string" == typeof e && !ke.test(e) && !ge[(de.exec(e) || ["", ""])[1].toLowerCase()]) { e = S.htmlPrefilter(e); try { for (; n < r; n++)1 === (t = this[n] || {}).nodeType && (S.cleanData(ve(t, !1)), t.innerHTML = e); t = 0 } catch (e) { } } t && this.empty().append(e) }, null, e, arguments.length) }, replaceWith: function () { var n = []; return He(this, arguments, function (e) { var t = this.parentNode; S.inArray(this, n) < 0 && (S.cleanData(ve(this)), t && t.replaceChild(e, this)) }, n) } }), S.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function (e, a) { S.fn[e] = function (e) { for (var t, n = [], r = S(e), i = r.length - 1, o = 0; o <= i; o++)t = o === i ? this : this.clone(!0), S(r[o])[a](t), u.apply(n, t.get()); return this.pushStack(n) } }); var Pe = new RegExp("^(" + ee + ")(?!px)[a-z%]+$", "i"), Re = function (e) { var t = e.ownerDocument.defaultView; return t && t.opener || (t = C), t.getComputedStyle(e) }, Me = function (e, t, n) { var r, i, o = {}; for (i in t) o[i] = e.style[i], e.style[i] = t[i]; for (i in r = n.call(e), t) e.style[i] = o[i]; return r }, Ie = new RegExp(ne.join("|"), "i"); function We(e, t, n) { var r, i, o, a, s = e.style; return (n = n || Re(e)) && ("" !== (a = n.getPropertyValue(t) || n[t]) || ie(e) || (a = S.style(e, t)), !y.pixelBoxStyles() && Pe.test(a) && Ie.test(t) && (r = s.width, i = s.minWidth, o = s.maxWidth, s.minWidth = s.maxWidth = s.width = a, a = n.width, s.width = r, s.minWidth = i, s.maxWidth = o)), void 0 !== a ? a + "" : a } function Fe(e, t) { return { get: function () { if (!e()) return (this.get = t).apply(this, arguments); delete this.get } } } !function () { function e() { if (l) { u.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", l.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%", re.appendChild(u).appendChild(l); var e = C.getComputedStyle(l); n = "1%" !== e.top, s = 12 === t(e.marginLeft), l.style.right = "60%", o = 36 === t(e.right), r = 36 === t(e.width), l.style.position = "absolute", i = 12 === t(l.offsetWidth / 3), re.removeChild(u), l = null } } function t(e) { return Math.round(parseFloat(e)) } var n, r, i, o, a, s, u = E.createElement("div"), l = E.createElement("div"); l.style && (l.style.backgroundClip = "content-box", l.cloneNode(!0).style.backgroundClip = "", y.clearCloneStyle = "content-box" === l.style.backgroundClip, S.extend(y, { boxSizingReliable: function () { return e(), r }, pixelBoxStyles: function () { return e(), o }, pixelPosition: function () { return e(), n }, reliableMarginLeft: function () { return e(), s }, scrollboxSize: function () { return e(), i }, reliableTrDimensions: function () { var e, t, n, r; return null == a && (e = E.createElement("table"), t = E.createElement("tr"), n = E.createElement("div"), e.style.cssText = "position:absolute;left:-11111px;border-collapse:separate", t.style.cssText = "border:1px solid", t.style.height = "1px", n.style.height = "9px", n.style.display = "block", re.appendChild(e).appendChild(t).appendChild(n), r = C.getComputedStyle(t), a = parseInt(r.height, 10) + parseInt(r.borderTopWidth, 10) + parseInt(r.borderBottomWidth, 10) === t.offsetHeight, re.removeChild(e)), a } })) }(); var Be = ["Webkit", "Moz", "ms"], $e = E.createElement("div").style, _e = {}; function ze(e) { var t = S.cssProps[e] || _e[e]; return t || (e in $e ? e : _e[e] = function (e) { var t = e[0].toUpperCase() + e.slice(1), n = Be.length; while (n--) if ((e = Be[n] + t) in $e) return e }(e) || e) } var Ue = /^(none|table(?!-c[ea]).+)/, Xe = /^--/, Ve = { position: "absolute", visibility: "hidden", display: "block" }, Ge = { letterSpacing: "0", fontWeight: "400" }; function Ye(e, t, n) { var r = te.exec(t); return r ? Math.max(0, r[2] - (n || 0)) + (r[3] || "px") : t } function Qe(e, t, n, r, i, o) { var a = "width" === t ? 1 : 0, s = 0, u = 0; if (n === (r ? "border" : "content")) return 0; for (; a < 4; a += 2)"margin" === n && (u += S.css(e, n + ne[a], !0, i)), r ? ("content" === n && (u -= S.css(e, "padding" + ne[a], !0, i)), "margin" !== n && (u -= S.css(e, "border" + ne[a] + "Width", !0, i))) : (u += S.css(e, "padding" + ne[a], !0, i), "padding" !== n ? u += S.css(e, "border" + ne[a] + "Width", !0, i) : s += S.css(e, "border" + ne[a] + "Width", !0, i)); return !r && 0 <= o && (u += Math.max(0, Math.ceil(e["offset" + t[0].toUpperCase() + t.slice(1)] - o - u - s - .5)) || 0), u } function Je(e, t, n) { var r = Re(e), i = (!y.boxSizingReliable() || n) && "border-box" === S.css(e, "boxSizing", !1, r), o = i, a = We(e, t, r), s = "offset" + t[0].toUpperCase() + t.slice(1); if (Pe.test(a)) { if (!n) return a; a = "auto" } return (!y.boxSizingReliable() && i || !y.reliableTrDimensions() && A(e, "tr") || "auto" === a || !parseFloat(a) && "inline" === S.css(e, "display", !1, r)) && e.getClientRects().length && (i = "border-box" === S.css(e, "boxSizing", !1, r), (o = s in e) && (a = e[s])), (a = parseFloat(a) || 0) + Qe(e, t, n || (i ? "border" : "content"), o, r, a) + "px" } function Ke(e, t, n, r, i) { return new Ke.prototype.init(e, t, n, r, i) } S.extend({ cssHooks: { opacity: { get: function (e, t) { if (t) { var n = We(e, "opacity"); return "" === n ? "1" : n } } } }, cssNumber: { animationIterationCount: !0, columnCount: !0, fillOpacity: !0, flexGrow: !0, flexShrink: !0, fontWeight: !0, gridArea: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnStart: !0, gridRow: !0, gridRowEnd: !0, gridRowStart: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, widows: !0, zIndex: !0, zoom: !0 }, cssProps: {}, style: function (e, t, n, r) { if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) { var i, o, a, s = X(t), u = Xe.test(t), l = e.style; if (u || (t = ze(s)), a = S.cssHooks[t] || S.cssHooks[s], void 0 === n) return a && "get" in a && void 0 !== (i = a.get(e, !1, r)) ? i : l[t]; "string" === (o = typeof n) && (i = te.exec(n)) && i[1] && (n = se(e, t, i), o = "number"), null != n && n == n && ("number" !== o || u || (n += i && i[3] || (S.cssNumber[s] ? "" : "px")), y.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (l[t] = "inherit"), a && "set" in a && void 0 === (n = a.set(e, n, r)) || (u ? l.setProperty(t, n) : l[t] = n)) } }, css: function (e, t, n, r) { var i, o, a, s = X(t); return Xe.test(t) || (t = ze(s)), (a = S.cssHooks[t] || S.cssHooks[s]) && "get" in a && (i = a.get(e, !0, n)), void 0 === i && (i = We(e, t, r)), "normal" === i && t in Ge && (i = Ge[t]), "" === n || n ? (o = parseFloat(i), !0 === n || isFinite(o) ? o || 0 : i) : i } }), S.each(["height", "width"], function (e, u) { S.cssHooks[u] = { get: function (e, t, n) { if (t) return !Ue.test(S.css(e, "display")) || e.getClientRects().length && e.getBoundingClientRect().width ? Je(e, u, n) : Me(e, Ve, function () { return Je(e, u, n) }) }, set: function (e, t, n) { var r, i = Re(e), o = !y.scrollboxSize() && "absolute" === i.position, a = (o || n) && "border-box" === S.css(e, "boxSizing", !1, i), s = n ? Qe(e, u, n, a, i) : 0; return a && o && (s -= Math.ceil(e["offset" + u[0].toUpperCase() + u.slice(1)] - parseFloat(i[u]) - Qe(e, u, "border", !1, i) - .5)), s && (r = te.exec(t)) && "px" !== (r[3] || "px") && (e.style[u] = t, t = S.css(e, u)), Ye(0, t, s) } } }), S.cssHooks.marginLeft = Fe(y.reliableMarginLeft, function (e, t) { if (t) return (parseFloat(We(e, "marginLeft")) || e.getBoundingClientRect().left - Me(e, { marginLeft: 0 }, function () { return e.getBoundingClientRect().left })) + "px" }), S.each({ margin: "", padding: "", border: "Width" }, function (i, o) { S.cssHooks[i + o] = { expand: function (e) { for (var t = 0, n = {}, r = "string" == typeof e ? e.split(" ") : [e]; t < 4; t++)n[i + ne[t] + o] = r[t] || r[t - 2] || r[0]; return n } }, "margin" !== i && (S.cssHooks[i + o].set = Ye) }), S.fn.extend({ css: function (e, t) { return $(this, function (e, t, n) { var r, i, o = {}, a = 0; if (Array.isArray(t)) { for (r = Re(e), i = t.length; a < i; a++)o[t[a]] = S.css(e, t[a], !1, r); return o } return void 0 !== n ? S.style(e, t, n) : S.css(e, t) }, e, t, 1 < arguments.length) } }), ((S.Tween = Ke).prototype = { constructor: Ke, init: function (e, t, n, r, i, o) { this.elem = e, this.prop = n, this.easing = i || S.easing._default, this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (S.cssNumber[n] ? "" : "px") }, cur: function () { var e = Ke.propHooks[this.prop]; return e && e.get ? e.get(this) : Ke.propHooks._default.get(this) }, run: function (e) { var t, n = Ke.propHooks[this.prop]; return this.options.duration ? this.pos = t = S.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : Ke.propHooks._default.set(this), this } }).init.prototype = Ke.prototype, (Ke.propHooks = { _default: { get: function (e) { var t; return 1 !== e.elem.nodeType || null != e.elem[e.prop] && null == e.elem.style[e.prop] ? e.elem[e.prop] : (t = S.css(e.elem, e.prop, "")) && "auto" !== t ? t : 0 }, set: function (e) { S.fx.step[e.prop] ? S.fx.step[e.prop](e) : 1 !== e.elem.nodeType || !S.cssHooks[e.prop] && null == e.elem.style[ze(e.prop)] ? e.elem[e.prop] = e.now : S.style(e.elem, e.prop, e.now + e.unit) } } }).scrollTop = Ke.propHooks.scrollLeft = { set: function (e) { e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now) } }, S.easing = { linear: function (e) { return e }, swing: function (e) { return .5 - Math.cos(e * Math.PI) / 2 }, _default: "swing" }, S.fx = Ke.prototype.init, S.fx.step = {}; var Ze, et, tt, nt, rt = /^(?:toggle|show|hide)$/, it = /queueHooks$/; function ot() { et && (!1 === E.hidden && C.requestAnimationFrame ? C.requestAnimationFrame(ot) : C.setTimeout(ot, S.fx.interval), S.fx.tick()) } function at() { return C.setTimeout(function () { Ze = void 0 }), Ze = Date.now() } function st(e, t) { var n, r = 0, i = { height: e }; for (t = t ? 1 : 0; r < 4; r += 2 - t)i["margin" + (n = ne[r])] = i["padding" + n] = e; return t && (i.opacity = i.width = e), i } function ut(e, t, n) { for (var r, i = (lt.tweeners[t] || []).concat(lt.tweeners["*"]), o = 0, a = i.length; o < a; o++)if (r = i[o].call(n, t, e)) return r } function lt(o, e, t) { var n, a, r = 0, i = lt.prefilters.length, s = S.Deferred().always(function () { delete u.elem }), u = function () { if (a) return !1; for (var e = Ze || at(), t = Math.max(0, l.startTime + l.duration - e), n = 1 - (t / l.duration || 0), r = 0, i = l.tweens.length; r < i; r++)l.tweens[r].run(n); return s.notifyWith(o, [l, n, t]), n < 1 && i ? t : (i || s.notifyWith(o, [l, 1, 0]), s.resolveWith(o, [l]), !1) }, l = s.promise({ elem: o, props: S.extend({}, e), opts: S.extend(!0, { specialEasing: {}, easing: S.easing._default }, t), originalProperties: e, originalOptions: t, startTime: Ze || at(), duration: t.duration, tweens: [], createTween: function (e, t) { var n = S.Tween(o, l.opts, e, t, l.opts.specialEasing[e] || l.opts.easing); return l.tweens.push(n), n }, stop: function (e) { var t = 0, n = e ? l.tweens.length : 0; if (a) return this; for (a = !0; t < n; t++)l.tweens[t].run(1); return e ? (s.notifyWith(o, [l, 1, 0]), s.resolveWith(o, [l, e])) : s.rejectWith(o, [l, e]), this } }), c = l.props; for (!function (e, t) { var n, r, i, o, a; for (n in e) if (i = t[r = X(n)], o = e[n], Array.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), (a = S.cssHooks[r]) && "expand" in a) for (n in o = a.expand(o), delete e[r], o) n in e || (e[n] = o[n], t[n] = i); else t[r] = i }(c, l.opts.specialEasing); r < i; r++)if (n = lt.prefilters[r].call(l, o, c, l.opts)) return m(n.stop) && (S._queueHooks(l.elem, l.opts.queue).stop = n.stop.bind(n)), n; return S.map(c, ut, l), m(l.opts.start) && l.opts.start.call(o, l), l.progress(l.opts.progress).done(l.opts.done, l.opts.complete).fail(l.opts.fail).always(l.opts.always), S.fx.timer(S.extend(u, { elem: o, anim: l, queue: l.opts.queue })), l } S.Animation = S.extend(lt, { tweeners: { "*": [function (e, t) { var n = this.createTween(e, t); return se(n.elem, e, te.exec(t), n), n }] }, tweener: function (e, t) { m(e) ? (t = e, e = ["*"]) : e = e.match(P); for (var n, r = 0, i = e.length; r < i; r++)n = e[r], lt.tweeners[n] = lt.tweeners[n] || [], lt.tweeners[n].unshift(t) }, prefilters: [function (e, t, n) { var r, i, o, a, s, u, l, c, f = "width" in t || "height" in t, p = this, d = {}, h = e.style, g = e.nodeType && ae(e), v = Y.get(e, "fxshow"); for (r in n.queue || (null == (a = S._queueHooks(e, "fx")).unqueued && (a.unqueued = 0, s = a.empty.fire, a.empty.fire = function () { a.unqueued || s() }), a.unqueued++, p.always(function () { p.always(function () { a.unqueued--, S.queue(e, "fx").length || a.empty.fire() }) })), t) if (i = t[r], rt.test(i)) { if (delete t[r], o = o || "toggle" === i, i === (g ? "hide" : "show")) { if ("show" !== i || !v || void 0 === v[r]) continue; g = !0 } d[r] = v && v[r] || S.style(e, r) } if ((u = !S.isEmptyObject(t)) || !S.isEmptyObject(d)) for (r in f && 1 === e.nodeType && (n.overflow = [h.overflow, h.overflowX, h.overflowY], null == (l = v && v.display) && (l = Y.get(e, "display")), "none" === (c = S.css(e, "display")) && (l ? c = l : (le([e], !0), l = e.style.display || l, c = S.css(e, "display"), le([e]))), ("inline" === c || "inline-block" === c && null != l) && "none" === S.css(e, "float") && (u || (p.done(function () { h.display = l }), null == l && (c = h.display, l = "none" === c ? "" : c)), h.display = "inline-block")), n.overflow && (h.overflow = "hidden", p.always(function () { h.overflow = n.overflow[0], h.overflowX = n.overflow[1], h.overflowY = n.overflow[2] })), u = !1, d) u || (v ? "hidden" in v && (g = v.hidden) : v = Y.access(e, "fxshow", { display: l }), o && (v.hidden = !g), g && le([e], !0), p.done(function () { for (r in g || le([e]), Y.remove(e, "fxshow"), d) S.style(e, r, d[r]) })), u = ut(g ? v[r] : 0, r, p), r in v || (v[r] = u.start, g && (u.end = u.start, u.start = 0)) }], prefilter: function (e, t) { t ? lt.prefilters.unshift(e) : lt.prefilters.push(e) } }), S.speed = function (e, t, n) { var r = e && "object" == typeof e ? S.extend({}, e) : { complete: n || !n && t || m(e) && e, duration: e, easing: n && t || t && !m(t) && t }; return S.fx.off ? r.duration = 0 : "number" != typeof r.duration && (r.duration in S.fx.speeds ? r.duration = S.fx.speeds[r.duration] : r.duration = S.fx.speeds._default), null != r.queue && !0 !== r.queue || (r.queue = "fx"), r.old = r.complete, r.complete = function () { m(r.old) && r.old.call(this), r.queue && S.dequeue(this, r.queue) }, r }, S.fn.extend({ fadeTo: function (e, t, n, r) { return this.filter(ae).css("opacity", 0).show().end().animate({ opacity: t }, e, n, r) }, animate: function (t, e, n, r) { var i = S.isEmptyObject(t), o = S.speed(e, n, r), a = function () { var e = lt(this, S.extend({}, t), o); (i || Y.get(this, "finish")) && e.stop(!0) }; return a.finish = a, i || !1 === o.queue ? this.each(a) : this.queue(o.queue, a) }, stop: function (i, e, o) { var a = function (e) { var t = e.stop; delete e.stop, t(o) }; return "string" != typeof i && (o = e, e = i, i = void 0), e && this.queue(i || "fx", []), this.each(function () { var e = !0, t = null != i && i + "queueHooks", n = S.timers, r = Y.get(this); if (t) r[t] && r[t].stop && a(r[t]); else for (t in r) r[t] && r[t].stop && it.test(t) && a(r[t]); for (t = n.length; t--;)n[t].elem !== this || null != i && n[t].queue !== i || (n[t].anim.stop(o), e = !1, n.splice(t, 1)); !e && o || S.dequeue(this, i) }) }, finish: function (a) { return !1 !== a && (a = a || "fx"), this.each(function () { var e, t = Y.get(this), n = t[a + "queue"], r = t[a + "queueHooks"], i = S.timers, o = n ? n.length : 0; for (t.finish = !0, S.queue(this, a, []), r && r.stop && r.stop.call(this, !0), e = i.length; e--;)i[e].elem === this && i[e].queue === a && (i[e].anim.stop(!0), i.splice(e, 1)); for (e = 0; e < o; e++)n[e] && n[e].finish && n[e].finish.call(this); delete t.finish }) } }), S.each(["toggle", "show", "hide"], function (e, r) { var i = S.fn[r]; S.fn[r] = function (e, t, n) { return null == e || "boolean" == typeof e ? i.apply(this, arguments) : this.animate(st(r, !0), e, t, n) } }), S.each({ slideDown: st("show"), slideUp: st("hide"), slideToggle: st("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, function (e, r) { S.fn[e] = function (e, t, n) { return this.animate(r, e, t, n) } }), S.timers = [], S.fx.tick = function () { var e, t = 0, n = S.timers; for (Ze = Date.now(); t < n.length; t++)(e = n[t])() || n[t] !== e || n.splice(t--, 1); n.length || S.fx.stop(), Ze = void 0 }, S.fx.timer = function (e) { S.timers.push(e), S.fx.start() }, S.fx.interval = 13, S.fx.start = function () { et || (et = !0, ot()) }, S.fx.stop = function () { et = null }, S.fx.speeds = { slow: 600, fast: 200, _default: 400 }, S.fn.delay = function (r, e) { return r = S.fx && S.fx.speeds[r] || r, e = e || "fx", this.queue(e, function (e, t) { var n = C.setTimeout(e, r); t.stop = function () { C.clearTimeout(n) } }) }, tt = E.createElement("input"), nt = E.createElement("select").appendChild(E.createElement("option")), tt.type = "checkbox", y.checkOn = "" !== tt.value, y.optSelected = nt.selected, (tt = E.createElement("input")).value = "t", tt.type = "radio", y.radioValue = "t" === tt.value; var ct, ft = S.expr.attrHandle; S.fn.extend({ attr: function (e, t) { return $(this, S.attr, e, t, 1 < arguments.length) }, removeAttr: function (e) { return this.each(function () { S.removeAttr(this, e) }) } }), S.extend({ attr: function (e, t, n) { var r, i, o = e.nodeType; if (3 !== o && 8 !== o && 2 !== o) return "undefined" == typeof e.getAttribute ? S.prop(e, t, n) : (1 === o && S.isXMLDoc(e) || (i = S.attrHooks[t.toLowerCase()] || (S.expr.match.bool.test(t) ? ct : void 0)), void 0 !== n ? null === n ? void S.removeAttr(e, t) : i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : (e.setAttribute(t, n + ""), n) : i && "get" in i && null !== (r = i.get(e, t)) ? r : null == (r = S.find.attr(e, t)) ? void 0 : r) }, attrHooks: { type: { set: function (e, t) { if (!y.radioValue && "radio" === t && A(e, "input")) { var n = e.value; return e.setAttribute("type", t), n && (e.value = n), t } } } }, removeAttr: function (e, t) { var n, r = 0, i = t && t.match(P); if (i && 1 === e.nodeType) while (n = i[r++]) e.removeAttribute(n) } }), ct = { set: function (e, t, n) { return !1 === t ? S.removeAttr(e, n) : e.setAttribute(n, n), n } }, S.each(S.expr.match.bool.source.match(/\w+/g), function (e, t) { var a = ft[t] || S.find.attr; ft[t] = function (e, t, n) { var r, i, o = t.toLowerCase(); return n || (i = ft[o], ft[o] = r, r = null != a(e, t, n) ? o : null, ft[o] = i), r } }); var pt = /^(?:input|select|textarea|button)$/i, dt = /^(?:a|area)$/i; function ht(e) { return (e.match(P) || []).join(" ") } function gt(e) { return e.getAttribute && e.getAttribute("class") || "" } function vt(e) { return Array.isArray(e) ? e : "string" == typeof e && e.match(P) || [] } S.fn.extend({ prop: function (e, t) { return $(this, S.prop, e, t, 1 < arguments.length) }, removeProp: function (e) { return this.each(function () { delete this[S.propFix[e] || e] }) } }), S.extend({ prop: function (e, t, n) { var r, i, o = e.nodeType; if (3 !== o && 8 !== o && 2 !== o) return 1 === o && S.isXMLDoc(e) || (t = S.propFix[t] || t, i = S.propHooks[t]), void 0 !== n ? i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : e[t] = n : i && "get" in i && null !== (r = i.get(e, t)) ? r : e[t] }, propHooks: { tabIndex: { get: function (e) { var t = S.find.attr(e, "tabindex"); return t ? parseInt(t, 10) : pt.test(e.nodeName) || dt.test(e.nodeName) && e.href ? 0 : -1 } } }, propFix: { "for": "htmlFor", "class": "className" } }), y.optSelected || (S.propHooks.selected = { get: function (e) { var t = e.parentNode; return t && t.parentNode && t.parentNode.selectedIndex, null }, set: function (e) { var t = e.parentNode; t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex) } }), S.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () { S.propFix[this.toLowerCase()] = this }), S.fn.extend({ addClass: function (t) { var e, n, r, i, o, a, s, u = 0; if (m(t)) return this.each(function (e) { S(this).addClass(t.call(this, e, gt(this))) }); if ((e = vt(t)).length) while (n = this[u++]) if (i = gt(n), r = 1 === n.nodeType && " " + ht(i) + " ") { a = 0; while (o = e[a++]) r.indexOf(" " + o + " ") < 0 && (r += o + " "); i !== (s = ht(r)) && n.setAttribute("class", s) } return this }, removeClass: function (t) { var e, n, r, i, o, a, s, u = 0; if (m(t)) return this.each(function (e) { S(this).removeClass(t.call(this, e, gt(this))) }); if (!arguments.length) return this.attr("class", ""); if ((e = vt(t)).length) while (n = this[u++]) if (i = gt(n), r = 1 === n.nodeType && " " + ht(i) + " ") { a = 0; while (o = e[a++]) while (-1 < r.indexOf(" " + o + " ")) r = r.replace(" " + o + " ", " "); i !== (s = ht(r)) && n.setAttribute("class", s) } return this }, toggleClass: function (i, t) { var o = typeof i, a = "string" === o || Array.isArray(i); return "boolean" == typeof t && a ? t ? this.addClass(i) : this.removeClass(i) : m(i) ? this.each(function (e) { S(this).toggleClass(i.call(this, e, gt(this), t), t) }) : this.each(function () { var e, t, n, r; if (a) { t = 0, n = S(this), r = vt(i); while (e = r[t++]) n.hasClass(e) ? n.removeClass(e) : n.addClass(e) } else void 0 !== i && "boolean" !== o || ((e = gt(this)) && Y.set(this, "__className__", e), this.setAttribute && this.setAttribute("class", e || !1 === i ? "" : Y.get(this, "__className__") || "")) }) }, hasClass: function (e) { var t, n, r = 0; t = " " + e + " "; while (n = this[r++]) if (1 === n.nodeType && -1 < (" " + ht(gt(n)) + " ").indexOf(t)) return !0; return !1 } }); var yt = /\r/g; S.fn.extend({ val: function (n) { var r, e, i, t = this[0]; return arguments.length ? (i = m(n), this.each(function (e) { var t; 1 === this.nodeType && (null == (t = i ? n.call(this, e, S(this).val()) : n) ? t = "" : "number" == typeof t ? t += "" : Array.isArray(t) && (t = S.map(t, function (e) { return null == e ? "" : e + "" })), (r = S.valHooks[this.type] || S.valHooks[this.nodeName.toLowerCase()]) && "set" in r && void 0 !== r.set(this, t, "value") || (this.value = t)) })) : t ? (r = S.valHooks[t.type] || S.valHooks[t.nodeName.toLowerCase()]) && "get" in r && void 0 !== (e = r.get(t, "value")) ? e : "string" == typeof (e = t.value) ? e.replace(yt, "") : null == e ? "" : e : void 0 } }), S.extend({ valHooks: { option: { get: function (e) { var t = S.find.attr(e, "value"); return null != t ? t : ht(S.text(e)) } }, select: { get: function (e) { var t, n, r, i = e.options, o = e.selectedIndex, a = "select-one" === e.type, s = a ? null : [], u = a ? o + 1 : i.length; for (r = o < 0 ? u : a ? o : 0; r < u; r++)if (((n = i[r]).selected || r === o) && !n.disabled && (!n.parentNode.disabled || !A(n.parentNode, "optgroup"))) { if (t = S(n).val(), a) return t; s.push(t) } return s }, set: function (e, t) { var n, r, i = e.options, o = S.makeArray(t), a = i.length; while (a--) ((r = i[a]).selected = -1 < S.inArray(S.valHooks.option.get(r), o)) && (n = !0); return n || (e.selectedIndex = -1), o } } } }), S.each(["radio", "checkbox"], function () { S.valHooks[this] = { set: function (e, t) { if (Array.isArray(t)) return e.checked = -1 < S.inArray(S(e).val(), t) } }, y.checkOn || (S.valHooks[this].get = function (e) { return null === e.getAttribute("value") ? "on" : e.value }) }), y.focusin = "onfocusin" in C; var mt = /^(?:focusinfocus|focusoutblur)$/, xt = function (e) { e.stopPropagation() }; S.extend(S.event, { trigger: function (e, t, n, r) { var i, o, a, s, u, l, c, f, p = [n || E], d = v.call(e, "type") ? e.type : e, h = v.call(e, "namespace") ? e.namespace.split(".") : []; if (o = f = a = n = n || E, 3 !== n.nodeType && 8 !== n.nodeType && !mt.test(d + S.event.triggered) && (-1 < d.indexOf(".") && (d = (h = d.split(".")).shift(), h.sort()), u = d.indexOf(":") < 0 && "on" + d, (e = e[S.expando] ? e : new S.Event(d, "object" == typeof e && e)).isTrigger = r ? 2 : 3, e.namespace = h.join("."), e.rnamespace = e.namespace ? new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, e.result = void 0, e.target || (e.target = n), t = null == t ? [e] : S.makeArray(t, [e]), c = S.event.special[d] || {}, r || !c.trigger || !1 !== c.trigger.apply(n, t))) { if (!r && !c.noBubble && !x(n)) { for (s = c.delegateType || d, mt.test(s + d) || (o = o.parentNode); o; o = o.parentNode)p.push(o), a = o; a === (n.ownerDocument || E) && p.push(a.defaultView || a.parentWindow || C) } i = 0; while ((o = p[i++]) && !e.isPropagationStopped()) f = o, e.type = 1 < i ? s : c.bindType || d, (l = (Y.get(o, "events") || Object.create(null))[e.type] && Y.get(o, "handle")) && l.apply(o, t), (l = u && o[u]) && l.apply && V(o) && (e.result = l.apply(o, t), !1 === e.result && e.preventDefault()); return e.type = d, r || e.isDefaultPrevented() || c._default && !1 !== c._default.apply(p.pop(), t) || !V(n) || u && m(n[d]) && !x(n) && ((a = n[u]) && (n[u] = null), S.event.triggered = d, e.isPropagationStopped() && f.addEventListener(d, xt), n[d](), e.isPropagationStopped() && f.removeEventListener(d, xt), S.event.triggered = void 0, a && (n[u] = a)), e.result } }, simulate: function (e, t, n) { var r = S.extend(new S.Event, n, { type: e, isSimulated: !0 }); S.event.trigger(r, null, t) } }), S.fn.extend({ trigger: function (e, t) { return this.each(function () { S.event.trigger(e, t, this) }) }, triggerHandler: function (e, t) { var n = this[0]; if (n) return S.event.trigger(e, t, n, !0) } }), y.focusin || S.each({ focus: "focusin", blur: "focusout" }, function (n, r) { var i = function (e) { S.event.simulate(r, e.target, S.event.fix(e)) }; S.event.special[r] = { setup: function () { var e = this.ownerDocument || this.document || this, t = Y.access(e, r); t || e.addEventListener(n, i, !0), Y.access(e, r, (t || 0) + 1) }, teardown: function () { var e = this.ownerDocument || this.document || this, t = Y.access(e, r) - 1; t ? Y.access(e, r, t) : (e.removeEventListener(n, i, !0), Y.remove(e, r)) } } }); var bt = C.location, wt = { guid: Date.now() }, Tt = /\?/; S.parseXML = function (e) { var t, n; if (!e || "string" != typeof e) return null; try { t = (new C.DOMParser).parseFromString(e, "text/xml") } catch (e) { } return n = t && t.getElementsByTagName("parsererror")[0], t && !n || S.error("Invalid XML: " + (n ? S.map(n.childNodes, function (e) { return e.textContent }).join("\n") : e)), t }; var Ct = /\[\]$/, Et = /\r?\n/g, St = /^(?:submit|button|image|reset|file)$/i, kt = /^(?:input|select|textarea|keygen)/i; function At(n, e, r, i) { var t; if (Array.isArray(e)) S.each(e, function (e, t) { r || Ct.test(n) ? i(n, t) : At(n + "[" + ("object" == typeof t && null != t ? e : "") + "]", t, r, i) }); else if (r || "object" !== w(e)) i(n, e); else for (t in e) At(n + "[" + t + "]", e[t], r, i) } S.param = function (e, t) { var n, r = [], i = function (e, t) { var n = m(t) ? t() : t; r[r.length] = encodeURIComponent(e) + "=" + encodeURIComponent(null == n ? "" : n) }; if (null == e) return ""; if (Array.isArray(e) || e.jquery && !S.isPlainObject(e)) S.each(e, function () { i(this.name, this.value) }); else for (n in e) At(n, e[n], t, i); return r.join("&") }, S.fn.extend({ serialize: function () { return S.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { var e = S.prop(this, "elements"); return e ? S.makeArray(e) : this }).filter(function () { var e = this.type; return this.name && !S(this).is(":disabled") && kt.test(this.nodeName) && !St.test(e) && (this.checked || !pe.test(e)) }).map(function (e, t) { var n = S(this).val(); return null == n ? null : Array.isArray(n) ? S.map(n, function (e) { return { name: t.name, value: e.replace(Et, "\r\n") } }) : { name: t.name, value: n.replace(Et, "\r\n") } }).get() } }); var Nt = /%20/g, jt = /#.*$/, Dt = /([?&])_=[^&]*/, qt = /^(.*?):[ \t]*([^\r\n]*)$/gm, Lt = /^(?:GET|HEAD)$/, Ht = /^\/\//, Ot = {}, Pt = {}, Rt = "*/".concat("*"), Mt = E.createElement("a"); function It(o) { return function (e, t) { "string" != typeof e && (t = e, e = "*"); var n, r = 0, i = e.toLowerCase().match(P) || []; if (m(t)) while (n = i[r++]) "+" === n[0] ? (n = n.slice(1) || "*", (o[n] = o[n] || []).unshift(t)) : (o[n] = o[n] || []).push(t) } } function Wt(t, i, o, a) { var s = {}, u = t === Pt; function l(e) { var r; return s[e] = !0, S.each(t[e] || [], function (e, t) { var n = t(i, o, a); return "string" != typeof n || u || s[n] ? u ? !(r = n) : void 0 : (i.dataTypes.unshift(n), l(n), !1) }), r } return l(i.dataTypes[0]) || !s["*"] && l("*") } function Ft(e, t) { var n, r, i = S.ajaxSettings.flatOptions || {}; for (n in t) void 0 !== t[n] && ((i[n] ? e : r || (r = {}))[n] = t[n]); return r && S.extend(!0, e, r), e } Mt.href = bt.href, S.extend({ active: 0, lastModified: {}, etag: {}, ajaxSettings: { url: bt.href, type: "GET", isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol), global: !0, processData: !0, async: !0, contentType: "application/x-www-form-urlencoded; charset=UTF-8", accepts: { "*": Rt, 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": S.parseXML }, flatOptions: { url: !0, context: !0 } }, ajaxSetup: function (e, t) { return t ? Ft(Ft(e, S.ajaxSettings), t) : Ft(S.ajaxSettings, e) }, ajaxPrefilter: It(Ot), ajaxTransport: It(Pt), ajax: function (e, t) { "object" == typeof e && (t = e, e = void 0), t = t || {}; var c, f, p, n, d, r, h, g, i, o, v = S.ajaxSetup({}, t), y = v.context || v, m = v.context && (y.nodeType || y.jquery) ? S(y) : S.event, x = S.Deferred(), b = S.Callbacks("once memory"), w = v.statusCode || {}, a = {}, s = {}, u = "canceled", T = { readyState: 0, getResponseHeader: function (e) { var t; if (h) { if (!n) { n = {}; while (t = qt.exec(p)) n[t[1].toLowerCase() + " "] = (n[t[1].toLowerCase() + " "] || []).concat(t[2]) } t = n[e.toLowerCase() + " "] } return null == t ? null : t.join(", ") }, getAllResponseHeaders: function () { return h ? p : null }, setRequestHeader: function (e, t) { return null == h && (e = s[e.toLowerCase()] = s[e.toLowerCase()] || e, a[e] = t), this }, overrideMimeType: function (e) { return null == h && (v.mimeType = e), this }, statusCode: function (e) { var t; if (e) if (h) T.always(e[T.status]); else for (t in e) w[t] = [w[t], e[t]]; return this }, abort: function (e) { var t = e || u; return c && c.abort(t), l(0, t), this } }; if (x.promise(T), v.url = ((e || v.url || bt.href) + "").replace(Ht, bt.protocol + "//"), v.type = t.method || t.type || v.method || v.type, v.dataTypes = (v.dataType || "*").toLowerCase().match(P) || [""], null == v.crossDomain) { r = E.createElement("a"); try { r.href = v.url, r.href = r.href, v.crossDomain = Mt.protocol + "//" + Mt.host != r.protocol + "//" + r.host } catch (e) { v.crossDomain = !0 } } if (v.data && v.processData && "string" != typeof v.data && (v.data = S.param(v.data, v.traditional)), Wt(Ot, v, t, T), h) return T; for (i in (g = S.event && v.global) && 0 == S.active++ && S.event.trigger("ajaxStart"), v.type = v.type.toUpperCase(), v.hasContent = !Lt.test(v.type), f = v.url.replace(jt, ""), v.hasContent ? v.data && v.processData && 0 === (v.contentType || "").indexOf("application/x-www-form-urlencoded") && (v.data = v.data.replace(Nt, "+")) : (o = v.url.slice(f.length), v.data && (v.processData || "string" == typeof v.data) && (f += (Tt.test(f) ? "&" : "?") + v.data, delete v.data), !1 === v.cache && (f = f.replace(Dt, "$1"), o = (Tt.test(f) ? "&" : "?") + "_=" + wt.guid++ + o), v.url = f + o), v.ifModified && (S.lastModified[f] && T.setRequestHeader("If-Modified-Since", S.lastModified[f]), S.etag[f] && T.setRequestHeader("If-None-Match", S.etag[f])), (v.data && v.hasContent && !1 !== v.contentType || t.contentType) && T.setRequestHeader("Content-Type", v.contentType), T.setRequestHeader("Accept", v.dataTypes[0] && v.accepts[v.dataTypes[0]] ? v.accepts[v.dataTypes[0]] + ("*" !== v.dataTypes[0] ? ", " + Rt + "; q=0.01" : "") : v.accepts["*"]), v.headers) T.setRequestHeader(i, v.headers[i]); if (v.beforeSend && (!1 === v.beforeSend.call(y, T, v) || h)) return T.abort(); if (u = "abort", b.add(v.complete), T.done(v.success), T.fail(v.error), c = Wt(Pt, v, t, T)) { if (T.readyState = 1, g && m.trigger("ajaxSend", [T, v]), h) return T; v.async && 0 < v.timeout && (d = C.setTimeout(function () { T.abort("timeout") }, v.timeout)); try { h = !1, c.send(a, l) } catch (e) { if (h) throw e; l(-1, e) } } else l(-1, "No Transport"); function l(e, t, n, r) { var i, o, a, s, u, l = t; h || (h = !0, d && C.clearTimeout(d), c = void 0, p = r || "", T.readyState = 0 < e ? 4 : 0, i = 200 <= e && e < 300 || 304 === e, n && (s = function (e, t, n) { var r, i, o, a, s = e.contents, u = e.dataTypes; while ("*" === u[0]) u.shift(), void 0 === r && (r = e.mimeType || t.getResponseHeader("Content-Type")); if (r) for (i in s) if (s[i] && s[i].test(r)) { u.unshift(i); break } if (u[0] in n) o = u[0]; else { for (i in n) { if (!u[0] || e.converters[i + " " + u[0]]) { o = i; break } a || (a = i) } o = o || a } if (o) return o !== u[0] && u.unshift(o), n[o] }(v, T, n)), !i && -1 < S.inArray("script", v.dataTypes) && S.inArray("json", v.dataTypes) < 0 && (v.converters["text script"] = function () { }), s = function (e, t, n, r) { var i, o, a, s, u, l = {}, c = e.dataTypes.slice(); if (c[1]) for (a in e.converters) l[a.toLowerCase()] = e.converters[a]; o = c.shift(); while (o) if (e.responseFields[o] && (n[e.responseFields[o]] = t), !u && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), u = o, o = c.shift()) if ("*" === o) o = u; else if ("*" !== u && u !== o) { if (!(a = l[u + " " + o] || l["* " + o])) for (i in l) if ((s = i.split(" "))[1] === o && (a = l[u + " " + s[0]] || l["* " + s[0]])) { !0 === a ? a = l[i] : !0 !== l[i] && (o = s[0], c.unshift(s[1])); break } if (!0 !== a) if (a && e["throws"]) t = a(t); else try { t = a(t) } catch (e) { return { state: "parsererror", error: a ? e : "No conversion from " + u + " to " + o } } } return { state: "success", data: t } }(v, s, T, i), i ? (v.ifModified && ((u = T.getResponseHeader("Last-Modified")) && (S.lastModified[f] = u), (u = T.getResponseHeader("etag")) && (S.etag[f] = u)), 204 === e || "HEAD" === v.type ? l = "nocontent" : 304 === e ? l = "notmodified" : (l = s.state, o = s.data, i = !(a = s.error))) : (a = l, !e && l || (l = "error", e < 0 && (e = 0))), T.status = e, T.statusText = (t || l) + "", i ? x.resolveWith(y, [o, l, T]) : x.rejectWith(y, [T, l, a]), T.statusCode(w), w = void 0, g && m.trigger(i ? "ajaxSuccess" : "ajaxError", [T, v, i ? o : a]), b.fireWith(y, [T, l]), g && (m.trigger("ajaxComplete", [T, v]), --S.active || S.event.trigger("ajaxStop"))) } return T }, getJSON: function (e, t, n) { return S.get(e, t, n, "json") }, getScript: function (e, t) { return S.get(e, void 0, t, "script") } }), S.each(["get", "post"], function (e, i) { S[i] = function (e, t, n, r) { return m(t) && (r = r || n, n = t, t = void 0), S.ajax(S.extend({ url: e, type: i, dataType: r, data: t, success: n }, S.isPlainObject(e) && e)) } }), S.ajaxPrefilter(function (e) { var t; for (t in e.headers) "content-type" === t.toLowerCase() && (e.contentType = e.headers[t] || "") }), S._evalUrl = function (e, t, n) { return S.ajax({ url: e, type: "GET", dataType: "script", cache: !0, async: !1, global: !1, converters: { "text script": function () { } }, dataFilter: function (e) { S.globalEval(e, t, n) } }) }, S.fn.extend({ wrapAll: function (e) { var t; return this[0] && (m(e) && (e = e.call(this[0])), t = S(e, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && t.insertBefore(this[0]), t.map(function () { var e = this; while (e.firstElementChild) e = e.firstElementChild; return e }).append(this)), this }, wrapInner: function (n) { return m(n) ? this.each(function (e) { S(this).wrapInner(n.call(this, e)) }) : this.each(function () { var e = S(this), t = e.contents(); t.length ? t.wrapAll(n) : e.append(n) }) }, wrap: function (t) { var n = m(t); return this.each(function (e) { S(this).wrapAll(n ? t.call(this, e) : t) }) }, unwrap: function (e) { return this.parent(e).not("body").each(function () { S(this).replaceWith(this.childNodes) }), this } }), S.expr.pseudos.hidden = function (e) { return !S.expr.pseudos.visible(e) }, S.expr.pseudos.visible = function (e) { return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length) }, S.ajaxSettings.xhr = function () { try { return new C.XMLHttpRequest } catch (e) { } }; var Bt = { 0: 200, 1223: 204 }, $t = S.ajaxSettings.xhr(); y.cors = !!$t && "withCredentials" in $t, y.ajax = $t = !!$t, S.ajaxTransport(function (i) { var o, a; if (y.cors || $t && !i.crossDomain) return { send: function (e, t) { var n, r = i.xhr(); if (r.open(i.type, i.url, i.async, i.username, i.password), i.xhrFields) for (n in i.xhrFields) r[n] = i.xhrFields[n]; for (n in i.mimeType && r.overrideMimeType && r.overrideMimeType(i.mimeType), i.crossDomain || e["X-Requested-With"] || (e["X-Requested-With"] = "XMLHttpRequest"), e) r.setRequestHeader(n, e[n]); o = function (e) { return function () { o && (o = a = r.onload = r.onerror = r.onabort = r.ontimeout = r.onreadystatechange = null, "abort" === e ? r.abort() : "error" === e ? "number" != typeof r.status ? t(0, "error") : t(r.status, r.statusText) : t(Bt[r.status] || r.status, r.statusText, "text" !== (r.responseType || "text") || "string" != typeof r.responseText ? { binary: r.response } : { text: r.responseText }, r.getAllResponseHeaders())) } }, r.onload = o(), a = r.onerror = r.ontimeout = o("error"), void 0 !== r.onabort ? r.onabort = a : r.onreadystatechange = function () { 4 === r.readyState && C.setTimeout(function () { o && a() }) }, o = o("abort"); try { r.send(i.hasContent && i.data || null) } catch (e) { if (o) throw e } }, abort: function () { o && o() } } }), S.ajaxPrefilter(function (e) { e.crossDomain && (e.contents.script = !1) }), S.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" }, contents: { script: /\b(?:java|ecma)script\b/ }, converters: { "text script": function (e) { return S.globalEval(e), e } } }), S.ajaxPrefilter("script", function (e) { void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET") }), S.ajaxTransport("script", function (n) { var r, i; if (n.crossDomain || n.scriptAttrs) return { send: function (e, t) { r = S("<script>").attr(n.scriptAttrs || {}).prop({ charset: n.scriptCharset, src: n.url }).on("load error", i = function (e) { r.remove(), i = null, e && t("error" === e.type ? 404 : 200, e.type) }), E.head.appendChild(r[0]) }, abort: function () { i && i() } } }); var _t, zt = [], Ut = /(=)\?(?=&|$)|\?\?/; S.ajaxSetup({ jsonp: "callback", jsonpCallback: function () { var e = zt.pop() || S.expando + "_" + wt.guid++; return this[e] = !0, e } }), S.ajaxPrefilter("json jsonp", function (e, t, n) { var r, i, o, a = !1 !== e.jsonp && (Ut.test(e.url) ? "url" : "string" == typeof e.data && 0 === (e.contentType || "").indexOf("application/x-www-form-urlencoded") && Ut.test(e.data) && "data"); if (a || "jsonp" === e.dataTypes[0]) return r = e.jsonpCallback = m(e.jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback, a ? e[a] = e[a].replace(Ut, "$1" + r) : !1 !== e.jsonp && (e.url += (Tt.test(e.url) ? "&" : "?") + e.jsonp + "=" + r), e.converters["script json"] = function () { return o || S.error(r + " was not called"), o[0] }, e.dataTypes[0] = "json", i = C[r], C[r] = function () { o = arguments }, n.always(function () { void 0 === i ? S(C).removeProp(r) : C[r] = i, e[r] && (e.jsonpCallback = t.jsonpCallback, zt.push(r)), o && m(i) && i(o[0]), o = i = void 0 }), "script" }), y.createHTMLDocument = ((_t = E.implementation.createHTMLDocument("").body).innerHTML = "<form></form><form></form>", 2 === _t.childNodes.length), S.parseHTML = function (e, t, n) { return "string" != typeof e ? [] : ("boolean" == typeof t && (n = t, t = !1), t || (y.createHTMLDocument ? ((r = (t = E.implementation.createHTMLDocument("")).createElement("base")).href = E.location.href, t.head.appendChild(r)) : t = E), o = !n && [], (i = N.exec(e)) ? [t.createElement(i[1])] : (i = xe([e], t, o), o && o.length && S(o).remove(), S.merge([], i.childNodes))); var r, i, o }, S.fn.load = function (e, t, n) { var r, i, o, a = this, s = e.indexOf(" "); return -1 < s && (r = ht(e.slice(s)), e = e.slice(0, s)), m(t) ? (n = t, t = void 0) : t && "object" == typeof t && (i = "POST"), 0 < a.length && S.ajax({ url: e, type: i || "GET", dataType: "html", data: t }).done(function (e) { o = arguments, a.html(r ? S("<div>").append(S.parseHTML(e)).find(r) : e) }).always(n && function (e, t) { a.each(function () { n.apply(this, o || [e.responseText, t, e]) }) }), this }, S.expr.pseudos.animated = function (t) { return S.grep(S.timers, function (e) { return t === e.elem }).length }, S.offset = { setOffset: function (e, t, n) { var r, i, o, a, s, u, l = S.css(e, "position"), c = S(e), f = {}; "static" === l && (e.style.position = "relative"), s = c.offset(), o = S.css(e, "top"), u = S.css(e, "left"), ("absolute" === l || "fixed" === l) && -1 < (o + u).indexOf("auto") ? (a = (r = c.position()).top, i = r.left) : (a = parseFloat(o) || 0, i = parseFloat(u) || 0), m(t) && (t = t.call(e, n, S.extend({}, s))), null != t.top && (f.top = t.top - s.top + a), null != t.left && (f.left = t.left - s.left + i), "using" in t ? t.using.call(e, f) : c.css(f) } }, S.fn.extend({ offset: function (t) { if (arguments.length) return void 0 === t ? this : this.each(function (e) { S.offset.setOffset(this, t, e) }); var e, n, r = this[0]; return r ? r.getClientRects().length ? (e = r.getBoundingClientRect(), n = r.ownerDocument.defaultView, { top: e.top + n.pageYOffset, left: e.left + n.pageXOffset }) : { top: 0, left: 0 } : void 0 }, position: function () { if (this[0]) { var e, t, n, r = this[0], i = { top: 0, left: 0 }; if ("fixed" === S.css(r, "position")) t = r.getBoundingClientRect(); else { t = this.offset(), n = r.ownerDocument, e = r.offsetParent || n.documentElement; while (e && (e === n.body || e === n.documentElement) && "static" === S.css(e, "position")) e = e.parentNode; e && e !== r && 1 === e.nodeType && ((i = S(e).offset()).top += S.css(e, "borderTopWidth", !0), i.left += S.css(e, "borderLeftWidth", !0)) } return { top: t.top - i.top - S.css(r, "marginTop", !0), left: t.left - i.left - S.css(r, "marginLeft", !0) } } }, offsetParent: function () { return this.map(function () { var e = this.offsetParent; while (e && "static" === S.css(e, "position")) e = e.offsetParent; return e || re }) } }), S.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function (t, i) { var o = "pageYOffset" === i; S.fn[t] = function (e) { return $(this, function (e, t, n) { var r; if (x(e) ? r = e : 9 === e.nodeType && (r = e.defaultView), void 0 === n) return r ? r[i] : e[t]; r ? r.scrollTo(o ? r.pageXOffset : n, o ? n : r.pageYOffset) : e[t] = n }, t, e, arguments.length) } }), S.each(["top", "left"], function (e, n) { S.cssHooks[n] = Fe(y.pixelPosition, function (e, t) { if (t) return t = We(e, n), Pe.test(t) ? S(e).position()[n] + "px" : t }) }), S.each({ Height: "height", Width: "width" }, function (a, s) { S.each({ padding: "inner" + a, content: s, "": "outer" + a }, function (r, o) { S.fn[o] = function (e, t) { var n = arguments.length && (r || "boolean" != typeof e), i = r || (!0 === e || !0 === t ? "margin" : "border"); return $(this, function (e, t, n) { var r; return x(e) ? 0 === o.indexOf("outer") ? e["inner" + a] : e.document.documentElement["client" + a] : 9 === e.nodeType ? (r = e.documentElement, Math.max(e.body["scroll" + a], r["scroll" + a], e.body["offset" + a], r["offset" + a], r["client" + a])) : void 0 === n ? S.css(e, t, i) : S.style(e, t, n, i) }, s, n ? e : void 0, n) } }) }), S.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (e, t) { S.fn[t] = function (e) { return this.on(t, e) } }), S.fn.extend({ bind: function (e, t, n) { return this.on(e, null, t, n) }, unbind: function (e, t) { return this.off(e, null, t) }, delegate: function (e, t, n, r) { return this.on(t, e, n, r) }, undelegate: function (e, t, n) { return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n) }, hover: function (e, t) { return this.mouseenter(e).mouseleave(t || e) } }), S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function (e, n) { S.fn[n] = function (e, t) { return 0 < arguments.length ? this.on(n, null, e, t) : this.trigger(n) } }); var Xt = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; S.proxy = function (e, t) { var n, r, i; if ("string" == typeof t && (n = e[t], t = e, e = n), m(e)) return r = s.call(arguments, 2), (i = function () { return e.apply(t || this, r.concat(s.call(arguments))) }).guid = e.guid = e.guid || S.guid++, i }, S.holdReady = function (e) { e ? S.readyWait++ : S.ready(!0) }, S.isArray = Array.isArray, S.parseJSON = JSON.parse, S.nodeName = A, S.isFunction = m, S.isWindow = x, S.camelCase = X, S.type = w, S.now = Date.now, S.isNumeric = function (e) { var t = S.type(e); return ("number" === t || "string" === t) && !isNaN(e - parseFloat(e)) }, S.trim = function (e) { return null == e ? "" : (e + "").replace(Xt, "") }, "function" == typeof define && define.amd && define("jquery", [], function () { return S }); var Vt = C.jQuery, Gt = C.$; return S.noConflict = function (e) { return C.$ === S && (C.$ = Gt), e && C.jQuery === S && (C.jQuery = Vt), S }, "undefined" == typeof e && (C.jQuery = C.$ = S), S });
|
|
/*! jQuery Migrate v3.3.2 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
|
"undefined" == typeof jQuery.migrateMute && (jQuery.migrateMute = !0), function (t) { "use strict"; "function" == typeof define && define.amd ? define(["jquery"], function (e) { return t(e, window) }) : "object" == typeof module && module.exports ? module.exports = t(require("jquery"), window) : t(jQuery, window) }(function (s, n) { "use strict"; function e(e) { return 0 <= function (e, t) { for (var r = /^(\d+)\.(\d+)\.(\d+)/, n = r.exec(e) || [], o = r.exec(t) || [], i = 1; i <= 3; i++) { if (+o[i] < +n[i]) return 1; if (+n[i] < +o[i]) return -1 } return 0 }(s.fn.jquery, e) } s.migrateVersion = "3.3.2", n.console && n.console.log && (s && e("3.0.0") || n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"), s.migrateWarnings && n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"), n.console.log("JQMIGRATE: Migrate is installed" + (s.migrateMute ? "" : " with logging active") + ", version " + s.migrateVersion)); var r = {}; function u(e) { var t = n.console; s.migrateDeduplicateWarnings && r[e] || (r[e] = !0, s.migrateWarnings.push(e), t && t.warn && !s.migrateMute && (t.warn("JQMIGRATE: " + e), s.migrateTrace && t.trace && t.trace())) } function t(e, t, r, n) { Object.defineProperty(e, t, { configurable: !0, enumerable: !0, get: function () { return u(n), r }, set: function (e) { u(n), r = e } }) } function o(e, t, r, n) { e[t] = function () { return u(n), r.apply(this, arguments) } } s.migrateDeduplicateWarnings = !0, s.migrateWarnings = [], void 0 === s.migrateTrace && (s.migrateTrace = !0), s.migrateReset = function () { r = {}, s.migrateWarnings.length = 0 }, "BackCompat" === n.document.compatMode && u("jQuery is not compatible with Quirks Mode"); var i, a, c, d = {}, l = s.fn.init, p = s.find, f = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/, y = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g, m = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; for (i in s.fn.init = function (e) { var t = Array.prototype.slice.call(arguments); return "string" == typeof e && "#" === e && (u("jQuery( '#' ) is not a valid selector"), t[0] = []), l.apply(this, t) }, s.fn.init.prototype = s.fn, s.find = function (t) { var r = Array.prototype.slice.call(arguments); if ("string" == typeof t && f.test(t)) try { n.document.querySelector(t) } catch (e) { t = t.replace(y, function (e, t, r, n) { return "[" + t + r + '"' + n + '"]' }); try { n.document.querySelector(t), u("Attribute selector with '#' must be quoted: " + r[0]), r[0] = t } catch (e) { u("Attribute selector with '#' was not fixed: " + r[0]) } } return p.apply(this, r) }, p) Object.prototype.hasOwnProperty.call(p, i) && (s.find[i] = p[i]); o(s.fn, "size", function () { return this.length }, "jQuery.fn.size() is deprecated and removed; use the .length property"), o(s, "parseJSON", function () { return JSON.parse.apply(null, arguments) }, "jQuery.parseJSON is deprecated; use JSON.parse"), o(s, "holdReady", s.holdReady, "jQuery.holdReady is deprecated"), o(s, "unique", s.uniqueSort, "jQuery.unique is deprecated; use jQuery.uniqueSort"), t(s.expr, "filters", s.expr.pseudos, "jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"), t(s.expr, ":", s.expr.pseudos, "jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"), e("3.1.1") && o(s, "trim", function (e) { return null == e ? "" : (e + "").replace(m, "") }, "jQuery.trim is deprecated; use String.prototype.trim"), e("3.2.0") && (o(s, "nodeName", function (e, t) { return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase() }, "jQuery.nodeName is deprecated"), o(s, "isArray", Array.isArray, "jQuery.isArray is deprecated; use Array.isArray")), e("3.3.0") && (o(s, "isNumeric", function (e) { var t = typeof e; return ("number" == t || "string" == t) && !isNaN(e - parseFloat(e)) }, "jQuery.isNumeric() is deprecated"), s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (e, t) { d["[object " + t + "]"] = t.toLowerCase() }), o(s, "type", function (e) { return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? d[Object.prototype.toString.call(e)] || "object" : typeof e }, "jQuery.type is deprecated"), o(s, "isFunction", function (e) { return "function" == typeof e }, "jQuery.isFunction() is deprecated"), o(s, "isWindow", function (e) { return null != e && e === e.window }, "jQuery.isWindow() is deprecated")), s.ajax && (a = s.ajax, c = /(=)\?(?=&|$)|\?\?/, s.ajax = function () { var e = a.apply(this, arguments); return e.promise && (o(e, "success", e.done, "jQXHR.success is deprecated and removed"), o(e, "error", e.fail, "jQXHR.error is deprecated and removed"), o(e, "complete", e.always, "jQXHR.complete is deprecated and removed")), e }, e("4.0.0") || s.ajaxPrefilter("+json", function (e) { !1 !== e.jsonp && (c.test(e.url) || "string" == typeof e.data && 0 === (e.contentType || "").indexOf("application/x-www-form-urlencoded") && c.test(e.data)) && u("JSON-to-JSONP auto-promotion is deprecated") })); var g = s.fn.removeAttr, h = s.fn.toggleClass, v = /\S+/g; function j(e) { return e.replace(/-([a-z])/g, function (e, t) { return t.toUpperCase() }) } s.fn.removeAttr = function (e) { var r = this; return s.each(e.match(v), function (e, t) { s.expr.match.bool.test(t) && (u("jQuery.fn.removeAttr no longer sets boolean properties: " + t), r.prop(t, !1)) }), g.apply(this, arguments) }; var Q, b = !(s.fn.toggleClass = function (t) { return void 0 !== t && "boolean" != typeof t ? h.apply(this, arguments) : (u("jQuery.fn.toggleClass( boolean ) is deprecated"), this.each(function () { var e = this.getAttribute && this.getAttribute("class") || ""; e && s.data(this, "__className__", e), this.setAttribute && this.setAttribute("class", !e && !1 !== t && s.data(this, "__className__") || "") })) }), w = /^[a-z]/, x = /^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/; s.swap && s.each(["height", "width", "reliableMarginRight"], function (e, t) { var r = s.cssHooks[t] && s.cssHooks[t].get; r && (s.cssHooks[t].get = function () { var e; return b = !0, e = r.apply(this, arguments), b = !1, e }) }), s.swap = function (e, t, r, n) { var o, i, a = {}; for (i in b || u("jQuery.swap() is undocumented and deprecated"), t) a[i] = e.style[i], e.style[i] = t[i]; for (i in o = r.apply(e, n || []), t) e.style[i] = a[i]; return o }, e("3.4.0") && "undefined" != typeof Proxy && (s.cssProps = new Proxy(s.cssProps || {}, { set: function () { return u("JQMIGRATE: jQuery.cssProps is deprecated"), Reflect.set.apply(this, arguments) } })), s.cssNumber || (s.cssNumber = {}), Q = s.fn.css, s.fn.css = function (e, t) { var r, n, o = this; return e && "object" == typeof e && !Array.isArray(e) ? (s.each(e, function (e, t) { s.fn.css.call(o, e, t) }), this) : ("number" == typeof t && (r = j(e), n = r, w.test(n) && x.test(n[0].toUpperCase() + n.slice(1)) || s.cssNumber[r] || u('Number-typed values are deprecated for jQuery.fn.css( "' + e + '", value )')), Q.apply(this, arguments)) }; var A, k, S, M, N = s.data; s.data = function (e, t, r) { var n, o, i; if (t && "object" == typeof t && 2 === arguments.length) { for (i in n = s.hasData(e) && N.call(this, e), o = {}, t) i !== j(i) ? (u("jQuery.data() always sets/gets camelCased names: " + i), n[i] = t[i]) : o[i] = t[i]; return N.call(this, e, o), t } return t && "string" == typeof t && t !== j(t) && (n = s.hasData(e) && N.call(this, e)) && t in n ? (u("jQuery.data() always sets/gets camelCased names: " + t), 2 < arguments.length && (n[t] = r), n[t]) : N.apply(this, arguments) }, s.fx && (S = s.Tween.prototype.run, M = function (e) { return e }, s.Tween.prototype.run = function () { 1 < s.easing[this.easing].length && (u("'jQuery.easing." + this.easing.toString() + "' should use only one argument"), s.easing[this.easing] = M), S.apply(this, arguments) }, A = s.fx.interval || 13, k = "jQuery.fx.interval is deprecated", n.requestAnimationFrame && Object.defineProperty(s.fx, "interval", { configurable: !0, enumerable: !0, get: function () { return n.document.hidden || u(k), A }, set: function (e) { u(k), A = e } })); var R = s.fn.load, H = s.event.add, C = s.event.fix; s.event.props = [], s.event.fixHooks = {}, t(s.event.props, "concat", s.event.props.concat, "jQuery.event.props.concat() is deprecated and removed"), s.event.fix = function (e) { var t, r = e.type, n = this.fixHooks[r], o = s.event.props; if (o.length) { u("jQuery.event.props are deprecated and removed: " + o.join()); while (o.length) s.event.addProp(o.pop()) } if (n && !n._migrated_ && (n._migrated_ = !0, u("jQuery.event.fixHooks are deprecated and removed: " + r), (o = n.props) && o.length)) while (o.length) s.event.addProp(o.pop()); return t = C.call(this, e), n && n.filter ? n.filter(t, e) : t }, s.event.add = function (e, t) { return e === n && "load" === t && "complete" === n.document.readyState && u("jQuery(window).on('load'...) called after load event occurred"), H.apply(this, arguments) }, s.each(["load", "unload", "error"], function (e, t) { s.fn[t] = function () { var e = Array.prototype.slice.call(arguments, 0); return "load" === t && "string" == typeof e[0] ? R.apply(this, e) : (u("jQuery.fn." + t + "() is deprecated"), e.splice(0, 0, t), arguments.length ? this.on.apply(this, e) : (this.triggerHandler.apply(this, e), this)) } }), s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function (e, r) { s.fn[r] = function (e, t) { return u("jQuery.fn." + r + "() event shorthand is deprecated"), 0 < arguments.length ? this.on(r, null, e, t) : this.trigger(r) } }), s(function () { s(n.document).triggerHandler("ready") }), s.event.special.ready = { setup: function () { this === n.document && u("'ready' event is deprecated") } }, s.fn.extend({ bind: function (e, t, r) { return u("jQuery.fn.bind() is deprecated"), this.on(e, null, t, r) }, unbind: function (e, t) { return u("jQuery.fn.unbind() is deprecated"), this.off(e, null, t) }, delegate: function (e, t, r, n) { return u("jQuery.fn.delegate() is deprecated"), this.on(t, e, r, n) }, undelegate: function (e, t, r) { return u("jQuery.fn.undelegate() is deprecated"), 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", r) }, hover: function (e, t) { return u("jQuery.fn.hover() is deprecated"), this.on("mouseenter", e).on("mouseleave", t || e) } }); function T(e) { var t = n.document.implementation.createHTMLDocument(""); return t.body.innerHTML = e, t.body && t.body.innerHTML } function P(e) { var t = e.replace(O, "<$1></$2>"); t !== e && T(e) !== T(t) && u("HTML tags must be properly nested and closed: " + e) } var O = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, q = s.htmlPrefilter; s.UNSAFE_restoreLegacyHtmlPrefilter = function () { s.htmlPrefilter = function (e) { return P(e), e.replace(O, "<$1></$2>") } }, s.htmlPrefilter = function (e) { return P(e), q(e) }; var D, _ = s.fn.offset; s.fn.offset = function () { var e = this[0]; return !e || e.nodeType && e.getBoundingClientRect ? _.apply(this, arguments) : (u("jQuery.fn.offset() requires a valid DOM element"), arguments.length ? this : void 0) }, s.ajax && (D = s.param, s.param = function (e, t) { var r = s.ajaxSettings && s.ajaxSettings.traditional; return void 0 === t && r && (u("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"), t = r), D.call(this, e, t) }); var E, F, J = s.fn.andSelf || s.fn.addBack; return s.fn.andSelf = function () { return u("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"), J.apply(this, arguments) }, s.Deferred && (E = s.Deferred, F = [["resolve", "done", s.Callbacks("once memory"), s.Callbacks("once memory"), "resolved"], ["reject", "fail", s.Callbacks("once memory"), s.Callbacks("once memory"), "rejected"], ["notify", "progress", s.Callbacks("memory"), s.Callbacks("memory")]], s.Deferred = function (e) { var i = E(), a = i.promise(); return i.pipe = a.pipe = function () { var o = arguments; return u("deferred.pipe() is deprecated"), s.Deferred(function (n) { s.each(F, function (e, t) { var r = "function" == typeof o[e] && o[e]; i[t[1]](function () { var e = r && r.apply(this, arguments); e && "function" == typeof e.promise ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[t[0] + "With"](this === a ? n.promise() : this, r ? [e] : arguments) }) }), o = null }).promise() }, e && e.call(i, i), i }, s.Deferred.exceptionHook = E.exceptionHook), s });
|
|
/*! jQuery Migrate v1.4.1 | (c) jQuery Foundation and other contributors | jquery.org/license */
|
|
"undefined" == typeof jQuery.migrateMute && (jQuery.migrateMute = !0), function (a, b, c) { function d(c) { var d = b.console; f[c] || (f[c] = !0, a.migrateWarnings.push(c), d && d.warn && !a.migrateMute && (d.warn("JQMIGRATE: " + c), a.migrateTrace && d.trace && d.trace())) } function e(b, c, e, f) { if (Object.defineProperty) try { return void Object.defineProperty(b, c, { configurable: !0, enumerable: !0, get: function () { return d(f), e }, set: function (a) { d(f), e = a } }) } catch (g) { } a._definePropertyBroken = !0, b[c] = e } a.migrateVersion = "1.4.1"; var f = {}; a.migrateWarnings = [], b.console && b.console.log && b.console.log("JQMIGRATE: Migrate is installed" + (a.migrateMute ? "" : " with logging active") + ", version " + a.migrateVersion), a.migrateTrace === c && (a.migrateTrace = !0), a.migrateReset = function () { f = {}, a.migrateWarnings.length = 0 }, "BackCompat" === document.compatMode && d("jQuery is not compatible with Quirks Mode"); var g = a("<input/>", { size: 1 }).attr("size") && a.attrFn, h = a.attr, i = a.attrHooks.value && a.attrHooks.value.get || function () { return null }, j = a.attrHooks.value && a.attrHooks.value.set || function () { return c }, k = /^(?:input|button)$/i, l = /^[238]$/, m = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, n = /^(?:checked|selected)$/i; e(a, "attrFn", g || {}, "jQuery.attrFn is deprecated"), a.attr = function (b, e, f, i) { var j = e.toLowerCase(), o = b && b.nodeType; return i && (h.length < 4 && d("jQuery.fn.attr( props, pass ) is deprecated"), b && !l.test(o) && (g ? e in g : a.isFunction(a.fn[e]))) ? a(b)[e](f) : ("type" === e && f !== c && k.test(b.nodeName) && b.parentNode && d("Can't change the 'type' of an input or button in IE 6/7/8"), !a.attrHooks[j] && m.test(j) && (a.attrHooks[j] = { get: function (b, d) { var e, f = a.prop(b, d); return f === !0 || "boolean" != typeof f && (e = b.getAttributeNode(d)) && e.nodeValue !== !1 ? d.toLowerCase() : c }, set: function (b, c, d) { var e; return c === !1 ? a.removeAttr(b, d) : (e = a.propFix[d] || d, e in b && (b[e] = !0), b.setAttribute(d, d.toLowerCase())), d } }, n.test(j) && d("jQuery.fn.attr('" + j + "') might use property instead of attribute")), h.call(a, b, e, f)) }, a.attrHooks.value = { get: function (a, b) { var c = (a.nodeName || "").toLowerCase(); return "button" === c ? i.apply(this, arguments) : ("input" !== c && "option" !== c && d("jQuery.fn.attr('value') no longer gets properties"), b in a ? a.value : null) }, set: function (a, b) { var c = (a.nodeName || "").toLowerCase(); return "button" === c ? j.apply(this, arguments) : ("input" !== c && "option" !== c && d("jQuery.fn.attr('value', val) no longer sets properties"), void (a.value = b)) } }; var o, p, q = a.fn.init, r = a.find, s = a.parseJSON, t = /^\s*</, u = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/, v = /\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g, w = /^([^<]*)(<[\w\W]+>)([^>]*)$/; a.fn.init = function (b, e, f) { var g, h; return b && "string" == typeof b && !a.isPlainObject(e) && (g = w.exec(a.trim(b))) && g[0] && (t.test(b) || d("$(html) HTML strings must start with '<' character"), g[3] && d("$(html) HTML text after last tag is ignored"), "#" === g[0].charAt(0) && (d("HTML string cannot start with a '#' character"), a.error("JQMIGRATE: Invalid selector string (XSS)")), e && e.context && e.context.nodeType && (e = e.context), a.parseHTML) ? q.call(this, a.parseHTML(g[2], e && e.ownerDocument || e || document, !0), e, f) : (h = q.apply(this, arguments), b && b.selector !== c ? (h.selector = b.selector, h.context = b.context) : (h.selector = "string" == typeof b ? b : "", b && (h.context = b.nodeType ? b : e || document)), h) }, a.fn.init.prototype = a.fn, a.find = function (a) { var b = Array.prototype.slice.call(arguments); if ("string" == typeof a && u.test(a)) try { document.querySelector(a) } catch (c) { a = a.replace(v, function (a, b, c, d) { return "[" + b + c + '"' + d + '"]' }); try { document.querySelector(a), d("Attribute selector with '#' must be quoted: " + b[0]), b[0] = a } catch (e) { d("Attribute selector with '#' was not fixed: " + b[0]) } } return r.apply(this, b) }; var x; for (x in r) Object.prototype.hasOwnProperty.call(r, x) && (a.find[x] = r[x]); a.parseJSON = function (a) { return a ? s.apply(this, arguments) : (d("jQuery.parseJSON requires a valid JSON string"), null) }, a.uaMatch = function (a) { a = a.toLowerCase(); var b = /(chrome)[ \/]([\w.]+)/.exec(a) || /(webkit)[ \/]([\w.]+)/.exec(a) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a) || /(msie) ([\w.]+)/.exec(a) || a.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a) || []; return { browser: b[1] || "", version: b[2] || "0" } }, a.browser || (o = a.uaMatch(navigator.userAgent), p = {}, o.browser && (p[o.browser] = !0, p.version = o.version), p.chrome ? p.webkit = !0 : p.webkit && (p.safari = !0), a.browser = p), e(a, "browser", a.browser, "jQuery.browser is deprecated"), a.boxModel = a.support.boxModel = "CSS1Compat" === document.compatMode, e(a, "boxModel", a.boxModel, "jQuery.boxModel is deprecated"), e(a.support, "boxModel", a.support.boxModel, "jQuery.support.boxModel is deprecated"), a.sub = function () { function b(a, c) { return new b.fn.init(a, c) } a.extend(!0, b, this), b.superclass = this, b.fn = b.prototype = this(), b.fn.constructor = b, b.sub = this.sub, b.fn.init = function (d, e) { var f = a.fn.init.call(this, d, e, c); return f instanceof b ? f : b(f) }, b.fn.init.prototype = b.fn; var c = b(document); return d("jQuery.sub() is deprecated"), b }, a.fn.size = function () { return d("jQuery.fn.size() is deprecated; use the .length property"), this.length }; var y = !1; a.swap && a.each(["height", "width", "reliableMarginRight"], function (b, c) { var d = a.cssHooks[c] && a.cssHooks[c].get; d && (a.cssHooks[c].get = function () { var a; return y = !0, a = d.apply(this, arguments), y = !1, a }) }), a.swap = function (a, b, c, e) { var f, g, h = {}; y || d("jQuery.swap() is undocumented and deprecated"); for (g in b) h[g] = a.style[g], a.style[g] = b[g]; f = c.apply(a, e || []); for (g in b) a.style[g] = h[g]; return f }, a.ajaxSetup({ converters: { "text json": a.parseJSON } }); var z = a.fn.data; a.fn.data = function (b) { var e, f, g = this[0]; return !g || "events" !== b || 1 !== arguments.length || (e = a.data(g, b), f = a._data(g, b), e !== c && e !== f || f === c) ? z.apply(this, arguments) : (d("Use of jQuery.fn.data('events') is deprecated"), f) }; var A = /\/(java|ecma)script/i; a.clean || (a.clean = function (b, c, e, f) { c = c || document, c = !c.nodeType && c[0] || c, c = c.ownerDocument || c, d("jQuery.clean() is deprecated"); var g, h, i, j, k = []; if (a.merge(k, a.buildFragment(b, c).childNodes), e) for (i = function (a) { return !a.type || A.test(a.type) ? f ? f.push(a.parentNode ? a.parentNode.removeChild(a) : a) : e.appendChild(a) : void 0 }, g = 0; null != (h = k[g]); g++)a.nodeName(h, "script") && i(h) || (e.appendChild(h), "undefined" != typeof h.getElementsByTagName && (j = a.grep(a.merge([], h.getElementsByTagName("script")), i), k.splice.apply(k, [g + 1, 0].concat(j)), g += j.length)); return k }); var B = a.event.add, C = a.event.remove, D = a.event.trigger, E = a.fn.toggle, F = a.fn.live, G = a.fn.die, H = a.fn.load, I = "ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess", J = new RegExp("\\b(?:" + I + ")\\b"), K = /(?:^|\s)hover(\.\S+|)\b/, L = function (b) { return "string" != typeof b || a.event.special.hover ? b : (K.test(b) && d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"), b && b.replace(K, "mouseenter$1 mouseleave$1")) }; a.event.props && "attrChange" !== a.event.props[0] && a.event.props.unshift("attrChange", "attrName", "relatedNode", "srcElement"), a.event.dispatch && e(a.event, "handle", a.event.dispatch, "jQuery.event.handle is undocumented and deprecated"), a.event.add = function (a, b, c, e, f) { a !== document && J.test(b) && d("AJAX events should be attached to document: " + b), B.call(this, a, L(b || ""), c, e, f) }, a.event.remove = function (a, b, c, d, e) { C.call(this, a, L(b) || "", c, d, e) }, a.each(["load", "unload", "error"], function (b, c) { a.fn[c] = function () { var a = Array.prototype.slice.call(arguments, 0); return "load" === c && "string" == typeof a[0] ? H.apply(this, a) : (d("jQuery.fn." + c + "() is deprecated"), a.splice(0, 0, c), arguments.length ? this.bind.apply(this, a) : (this.triggerHandler.apply(this, a), this)) } }), a.fn.toggle = function (b, c) { if (!a.isFunction(b) || !a.isFunction(c)) return E.apply(this, arguments); d("jQuery.fn.toggle(handler, handler...) is deprecated"); var e = arguments, f = b.guid || a.guid++, g = 0, h = function (c) { var d = (a._data(this, "lastToggle" + b.guid) || 0) % g; return a._data(this, "lastToggle" + b.guid, d + 1), c.preventDefault(), e[d].apply(this, arguments) || !1 }; for (h.guid = f; g < e.length;)e[g++].guid = f; return this.click(h) }, a.fn.live = function (b, c, e) { return d("jQuery.fn.live() is deprecated"), F ? F.apply(this, arguments) : (a(this.context).on(b, this.selector, c, e), this) }, a.fn.die = function (b, c) { return d("jQuery.fn.die() is deprecated"), G ? G.apply(this, arguments) : (a(this.context).off(b, this.selector || "**", c), this) }, a.event.trigger = function (a, b, c, e) { return c || J.test(a) || d("Global events are undocumented and deprecated"), D.call(this, a, b, c || document, e) }, a.each(I.split("|"), function (b, c) { a.event.special[c] = { setup: function () { var b = this; return b !== document && (a.event.add(document, c + "." + a.guid, function () { a.event.trigger(c, Array.prototype.slice.call(arguments, 1), b, !0) }), a._data(this, c, a.guid++)), !1 }, teardown: function () { return this !== document && a.event.remove(document, c + "." + a._data(this, c)), !1 } } }), a.event.special.ready = { setup: function () { this === document && d("'ready' event is deprecated") } }; var M = a.fn.andSelf || a.fn.addBack, N = a.fn.find; if (a.fn.andSelf = function () { return d("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"), M.apply(this, arguments) }, a.fn.find = function (a) { var b = N.apply(this, arguments); return b.context = this.context, b.selector = this.selector ? this.selector + " " + a : a, b }, a.Callbacks) { var O = a.Deferred, P = [["resolve", "done", a.Callbacks("once memory"), a.Callbacks("once memory"), "resolved"], ["reject", "fail", a.Callbacks("once memory"), a.Callbacks("once memory"), "rejected"], ["notify", "progress", a.Callbacks("memory"), a.Callbacks("memory")]]; a.Deferred = function (b) { var c = O(), e = c.promise(); return c.pipe = e.pipe = function () { var b = arguments; return d("deferred.pipe() is deprecated"), a.Deferred(function (d) { a.each(P, function (f, g) { var h = a.isFunction(b[f]) && b[f]; c[g[1]](function () { var b = h && h.apply(this, arguments); b && a.isFunction(b.promise) ? b.promise().done(d.resolve).fail(d.reject).progress(d.notify) : d[g[0] + "With"](this === e ? d.promise() : this, h ? [b] : arguments) }) }), b = null }).promise() }, c.isResolved = function () { return d("deferred.isResolved is deprecated"), "resolved" === c.state() }, c.isRejected = function () { return d("deferred.isRejected is deprecated"), "rejected" === c.state() }, b && b.call(c, c), c } } }(jQuery, window);
|
|
|
|
var JSON;if(!JSON){JSON={};}
|
|
(function(){'use strict';function f(n){return n<10?'0'+n:n;}
|
|
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
|
|
f(this.getUTCMonth()+1)+'-'+
|
|
f(this.getUTCDate())+'T'+
|
|
f(this.getUTCHours())+':'+
|
|
f(this.getUTCMinutes())+':'+
|
|
f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
|
|
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
|
|
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
|
|
if(typeof rep==='function'){value=rep.call(holder,key,value);}
|
|
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
|
|
gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
|
|
v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v;}
|
|
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==='string'){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
|
|
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
|
|
if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
|
|
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
|
|
return str('',{'':value});};}
|
|
if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
|
|
return reviver.call(holder,key,value);}
|
|
text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
|
|
('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
|
|
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
|
|
throw new SyntaxError('JSON.parse');};}}());
|
|
|
|
|
|
!function (n, r) { "object" == typeof exports && "undefined" != typeof module ? module.exports = r() : "function" == typeof define && define.amd ? define("underscore", r) : (n = "undefined" != typeof globalThis ? globalThis : n || self, function () { var t = n._, e = n._ = r(); e.noConflict = function () { return n._ = t, e } }()) }(this, (function () {
|
|
// Underscore.js 1.13.2
|
|
// https://underscorejs.org
|
|
// (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
|
|
// Underscore may be freely distributed under the MIT license.
|
|
var n = "1.13.2", r = "object" == typeof self && self.self === self && self || "object" == typeof global && global.global === global && global || Function("return this")() || {}, t = Array.prototype, e = Object.prototype, u = "undefined" != typeof Symbol ? Symbol.prototype : null, o = t.push, i = t.slice, a = e.toString, f = e.hasOwnProperty, c = "undefined" != typeof ArrayBuffer, l = "undefined" != typeof DataView, s = Array.isArray, p = Object.keys, v = Object.create, h = c && ArrayBuffer.isView, y = isNaN, d = isFinite, g = !{ toString: null }.propertyIsEnumerable("toString"), b = ["valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], m = Math.pow(2, 53) - 1; function j(n, r) { return r = null == r ? n.length - 1 : +r, function () { for (var t = Math.max(arguments.length - r, 0), e = Array(t), u = 0; u < t; u++)e[u] = arguments[u + r]; switch (r) { case 0: return n.call(this, e); case 1: return n.call(this, arguments[0], e); case 2: return n.call(this, arguments[0], arguments[1], e) }var o = Array(r + 1); for (u = 0; u < r; u++)o[u] = arguments[u]; return o[r] = e, n.apply(this, o) } } function _(n) { var r = typeof n; return "function" === r || "object" === r && !!n } function w(n) { return void 0 === n } function A(n) { return !0 === n || !1 === n || "[object Boolean]" === a.call(n) } function x(n) { var r = "[object " + n + "]"; return function (n) { return a.call(n) === r } } var S = x("String"), O = x("Number"), M = x("Date"), E = x("RegExp"), B = x("Error"), N = x("Symbol"), I = x("ArrayBuffer"), T = x("Function"), k = r.document && r.document.childNodes; "function" != typeof /./ && "object" != typeof Int8Array && "function" != typeof k && (T = function (n) { return "function" == typeof n || !1 }); var D = T, R = x("Object"), F = l && R(new DataView(new ArrayBuffer(8))), V = "undefined" != typeof Map && R(new Map), P = x("DataView"); var q = F ? function (n) { return null != n && D(n.getInt8) && I(n.buffer) } : P, U = s || x("Array"); function W(n, r) { return null != n && f.call(n, r) } var z = x("Arguments"); !function () { z(arguments) || (z = function (n) { return W(n, "callee") }) }(); var L = z; function $(n) { return O(n) && y(n) } function C(n) { return function () { return n } } function K(n) { return function (r) { var t = n(r); return "number" == typeof t && t >= 0 && t <= m } } function J(n) { return function (r) { return null == r ? void 0 : r[n] } } var G = J("byteLength"), H = K(G), Q = /\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/; var X = c ? function (n) { return h ? h(n) && !q(n) : H(n) && Q.test(a.call(n)) } : C(!1), Y = J("length"); function Z(n, r) { r = function (n) { for (var r = {}, t = n.length, e = 0; e < t; ++e)r[n[e]] = !0; return { contains: function (n) { return !0 === r[n] }, push: function (t) { return r[t] = !0, n.push(t) } } }(r); var t = b.length, u = n.constructor, o = D(u) && u.prototype || e, i = "constructor"; for (W(n, i) && !r.contains(i) && r.push(i); t--;)(i = b[t]) in n && n[i] !== o[i] && !r.contains(i) && r.push(i) } function nn(n) { if (!_(n)) return []; if (p) return p(n); var r = []; for (var t in n) W(n, t) && r.push(t); return g && Z(n, r), r } function rn(n, r) { var t = nn(r), e = t.length; if (null == n) return !e; for (var u = Object(n), o = 0; o < e; o++) { var i = t[o]; if (r[i] !== u[i] || !(i in u)) return !1 } return !0 } function tn(n) { return n instanceof tn ? n : this instanceof tn ? void (this._wrapped = n) : new tn(n) } function en(n) { return new Uint8Array(n.buffer || n, n.byteOffset || 0, G(n)) } tn.VERSION = n, tn.prototype.value = function () { return this._wrapped }, tn.prototype.valueOf = tn.prototype.toJSON = tn.prototype.value, tn.prototype.toString = function () { return String(this._wrapped) }; var un = "[object DataView]"; function on(n, r, t, e) { if (n === r) return 0 !== n || 1 / n == 1 / r; if (null == n || null == r) return !1; if (n != n) return r != r; var o = typeof n; return ("function" === o || "object" === o || "object" == typeof r) && function n(r, t, e, o) { r instanceof tn && (r = r._wrapped); t instanceof tn && (t = t._wrapped); var i = a.call(r); if (i !== a.call(t)) return !1; if (F && "[object Object]" == i && q(r)) { if (!q(t)) return !1; i = un } switch (i) { case "[object RegExp]": case "[object String]": return "" + r == "" + t; case "[object Number]": return +r != +r ? +t != +t : 0 == +r ? 1 / +r == 1 / t : +r == +t; case "[object Date]": case "[object Boolean]": return +r == +t; case "[object Symbol]": return u.valueOf.call(r) === u.valueOf.call(t); case "[object ArrayBuffer]": case un: return n(en(r), en(t), e, o) }var f = "[object Array]" === i; if (!f && X(r)) { if (G(r) !== G(t)) return !1; if (r.buffer === t.buffer && r.byteOffset === t.byteOffset) return !0; f = !0 } if (!f) { if ("object" != typeof r || "object" != typeof t) return !1; var c = r.constructor, l = t.constructor; if (c !== l && !(D(c) && c instanceof c && D(l) && l instanceof l) && "constructor" in r && "constructor" in t) return !1 } o = o || []; var s = (e = e || []).length; for (; s--;)if (e[s] === r) return o[s] === t; if (e.push(r), o.push(t), f) { if ((s = r.length) !== t.length) return !1; for (; s--;)if (!on(r[s], t[s], e, o)) return !1 } else { var p, v = nn(r); if (s = v.length, nn(t).length !== s) return !1; for (; s--;)if (p = v[s], !W(t, p) || !on(r[p], t[p], e, o)) return !1 } return e.pop(), o.pop(), !0 }(n, r, t, e) } function an(n) { if (!_(n)) return []; var r = []; for (var t in n) r.push(t); return g && Z(n, r), r } function fn(n) { var r = Y(n); return function (t) { if (null == t) return !1; var e = an(t); if (Y(e)) return !1; for (var u = 0; u < r; u++)if (!D(t[n[u]])) return !1; return n !== hn || !D(t[cn]) } } var cn = "forEach", ln = "has", sn = ["clear", "delete"], pn = ["get", ln, "set"], vn = sn.concat(cn, pn), hn = sn.concat(pn), yn = ["add"].concat(sn, cn, ln), dn = V ? fn(vn) : x("Map"), gn = V ? fn(hn) : x("WeakMap"), bn = V ? fn(yn) : x("Set"), mn = x("WeakSet"); function jn(n) { for (var r = nn(n), t = r.length, e = Array(t), u = 0; u < t; u++)e[u] = n[r[u]]; return e } function _n(n) { for (var r = {}, t = nn(n), e = 0, u = t.length; e < u; e++)r[n[t[e]]] = t[e]; return r } function wn(n) { var r = []; for (var t in n) D(n[t]) && r.push(t); return r.sort() } function An(n, r) { return function (t) { var e = arguments.length; if (r && (t = Object(t)), e < 2 || null == t) return t; for (var u = 1; u < e; u++)for (var o = arguments[u], i = n(o), a = i.length, f = 0; f < a; f++) { var c = i[f]; r && void 0 !== t[c] || (t[c] = o[c]) } return t } } var xn = An(an), Sn = An(nn), On = An(an, !0); function Mn(n) { if (!_(n)) return {}; if (v) return v(n); var r = function () { }; r.prototype = n; var t = new r; return r.prototype = null, t } function En(n) { return U(n) ? n : [n] } function Bn(n) { return tn.toPath(n) } function Nn(n, r) { for (var t = r.length, e = 0; e < t; e++) { if (null == n) return; n = n[r[e]] } return t ? n : void 0 } function In(n, r, t) { var e = Nn(n, Bn(r)); return w(e) ? t : e } function Tn(n) { return n } function kn(n) { return n = Sn({}, n), function (r) { return rn(r, n) } } function Dn(n) { return n = Bn(n), function (r) { return Nn(r, n) } } function Rn(n, r, t) { if (void 0 === r) return n; switch (null == t ? 3 : t) { case 1: return function (t) { return n.call(r, t) }; case 3: return function (t, e, u) { return n.call(r, t, e, u) }; case 4: return function (t, e, u, o) { return n.call(r, t, e, u, o) } }return function () { return n.apply(r, arguments) } } function Fn(n, r, t) { return null == n ? Tn : D(n) ? Rn(n, r, t) : _(n) && !U(n) ? kn(n) : Dn(n) } function Vn(n, r) { return Fn(n, r, 1 / 0) } function Pn(n, r, t) { return tn.iteratee !== Vn ? tn.iteratee(n, r) : Fn(n, r, t) } function qn() { } function Un(n, r) { return null == r && (r = n, n = 0), n + Math.floor(Math.random() * (r - n + 1)) } tn.toPath = En, tn.iteratee = Vn; var Wn = Date.now || function () { return (new Date).getTime() }; function zn(n) { var r = function (r) { return n[r] }, t = "(?:" + nn(n).join("|") + ")", e = RegExp(t), u = RegExp(t, "g"); return function (n) { return n = null == n ? "" : "" + n, e.test(n) ? n.replace(u, r) : n } } var Ln = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "`": "`" }, $n = zn(Ln), Cn = zn(_n(Ln)), Kn = tn.templateSettings = { evaluate: /<%([\s\S]+?)%>/g, interpolate: /<%=([\s\S]+?)%>/g, escape: /<%-([\s\S]+?)%>/g }, Jn = /(.)^/, Gn = { "'": "'", "\\": "\\", "\r": "r", "\n": "n", "\u2028": "u2028", "\u2029": "u2029" }, Hn = /\\|'|\r|\n|\u2028|\u2029/g; function Qn(n) { return "\\" + Gn[n] } var Xn = /^\s*(\w|\$)+\s*$/; var Yn = 0; function Zn(n, r, t, e, u) { if (!(e instanceof r)) return n.apply(t, u); var o = Mn(n.prototype), i = n.apply(o, u); return _(i) ? i : o } var nr = j((function (n, r) { var t = nr.placeholder, e = function () { for (var u = 0, o = r.length, i = Array(o), a = 0; a < o; a++)i[a] = r[a] === t ? arguments[u++] : r[a]; for (; u < arguments.length;)i.push(arguments[u++]); return Zn(n, e, this, this, i) }; return e })); nr.placeholder = tn; var rr = j((function (n, r, t) { if (!D(n)) throw new TypeError("Bind must be called on a function"); var e = j((function (u) { return Zn(n, e, r, this, t.concat(u)) })); return e })), tr = K(Y); function er(n, r, t, e) { if (e = e || [], r || 0 === r) { if (r <= 0) return e.concat(n) } else r = 1 / 0; for (var u = e.length, o = 0, i = Y(n); o < i; o++) { var a = n[o]; if (tr(a) && (U(a) || L(a))) if (r > 1) er(a, r - 1, t, e), u = e.length; else for (var f = 0, c = a.length; f < c;)e[u++] = a[f++]; else t || (e[u++] = a) } return e } var ur = j((function (n, r) { var t = (r = er(r, !1, !1)).length; if (t < 1) throw new Error("bindAll must be passed function names"); for (; t--;) { var e = r[t]; n[e] = rr(n[e], n) } return n })); var or = j((function (n, r, t) { return setTimeout((function () { return n.apply(null, t) }), r) })), ir = nr(or, tn, 1); function ar(n) { return function () { return !n.apply(this, arguments) } } function fr(n, r) { var t; return function () { return --n > 0 && (t = r.apply(this, arguments)), n <= 1 && (r = null), t } } var cr = nr(fr, 2); function lr(n, r, t) { r = Pn(r, t); for (var e, u = nn(n), o = 0, i = u.length; o < i; o++)if (r(n[e = u[o]], e, n)) return e } function sr(n) { return function (r, t, e) { t = Pn(t, e); for (var u = Y(r), o = n > 0 ? 0 : u - 1; o >= 0 && o < u; o += n)if (t(r[o], o, r)) return o; return -1 } } var pr = sr(1), vr = sr(-1); function hr(n, r, t, e) { for (var u = (t = Pn(t, e, 1))(r), o = 0, i = Y(n); o < i;) { var a = Math.floor((o + i) / 2); t(n[a]) < u ? o = a + 1 : i = a } return o } function yr(n, r, t) { return function (e, u, o) { var a = 0, f = Y(e); if ("number" == typeof o) n > 0 ? a = o >= 0 ? o : Math.max(o + f, a) : f = o >= 0 ? Math.min(o + 1, f) : o + f + 1; else if (t && o && f) return e[o = t(e, u)] === u ? o : -1; if (u != u) return (o = r(i.call(e, a, f), $)) >= 0 ? o + a : -1; for (o = n > 0 ? a : f - 1; o >= 0 && o < f; o += n)if (e[o] === u) return o; return -1 } } var dr = yr(1, pr, hr), gr = yr(-1, vr); function br(n, r, t) { var e = (tr(n) ? pr : lr)(n, r, t); if (void 0 !== e && -1 !== e) return n[e] } function mr(n, r, t) { var e, u; if (r = Rn(r, t), tr(n)) for (e = 0, u = n.length; e < u; e++)r(n[e], e, n); else { var o = nn(n); for (e = 0, u = o.length; e < u; e++)r(n[o[e]], o[e], n) } return n } function jr(n, r, t) { r = Pn(r, t); for (var e = !tr(n) && nn(n), u = (e || n).length, o = Array(u), i = 0; i < u; i++) { var a = e ? e[i] : i; o[i] = r(n[a], a, n) } return o } function _r(n) { var r = function (r, t, e, u) { var o = !tr(r) && nn(r), i = (o || r).length, a = n > 0 ? 0 : i - 1; for (u || (e = r[o ? o[a] : a], a += n); a >= 0 && a < i; a += n) { var f = o ? o[a] : a; e = t(e, r[f], f, r) } return e }; return function (n, t, e, u) { var o = arguments.length >= 3; return r(n, Rn(t, u, 4), e, o) } } var wr = _r(1), Ar = _r(-1); function xr(n, r, t) { var e = []; return r = Pn(r, t), mr(n, (function (n, t, u) { r(n, t, u) && e.push(n) })), e } function Sr(n, r, t) { r = Pn(r, t); for (var e = !tr(n) && nn(n), u = (e || n).length, o = 0; o < u; o++) { var i = e ? e[o] : o; if (!r(n[i], i, n)) return !1 } return !0 } function Or(n, r, t) { r = Pn(r, t); for (var e = !tr(n) && nn(n), u = (e || n).length, o = 0; o < u; o++) { var i = e ? e[o] : o; if (r(n[i], i, n)) return !0 } return !1 } function Mr(n, r, t, e) { return tr(n) || (n = jn(n)), ("number" != typeof t || e) && (t = 0), dr(n, r, t) >= 0 } var Er = j((function (n, r, t) { var e, u; return D(r) ? u = r : (r = Bn(r), e = r.slice(0, -1), r = r[r.length - 1]), jr(n, (function (n) { var o = u; if (!o) { if (e && e.length && (n = Nn(n, e)), null == n) return; o = n[r] } return null == o ? o : o.apply(n, t) })) })); function Br(n, r) { return jr(n, Dn(r)) } function Nr(n, r, t) { var e, u, o = -1 / 0, i = -1 / 0; if (null == r || "number" == typeof r && "object" != typeof n[0] && null != n) for (var a = 0, f = (n = tr(n) ? n : jn(n)).length; a < f; a++)null != (e = n[a]) && e > o && (o = e); else r = Pn(r, t), mr(n, (function (n, t, e) { ((u = r(n, t, e)) > i || u === -1 / 0 && o === -1 / 0) && (o = n, i = u) })); return o } var Ir = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; function Tr(n) { return n ? U(n) ? i.call(n) : S(n) ? n.match(Ir) : tr(n) ? jr(n, Tn) : jn(n) : [] } function kr(n, r, t) { if (null == r || t) return tr(n) || (n = jn(n)), n[Un(n.length - 1)]; var e = Tr(n), u = Y(e); r = Math.max(Math.min(r, u), 0); for (var o = u - 1, i = 0; i < r; i++) { var a = Un(i, o), f = e[i]; e[i] = e[a], e[a] = f } return e.slice(0, r) } function Dr(n, r) { return function (t, e, u) { var o = r ? [[], []] : {}; return e = Pn(e, u), mr(t, (function (r, u) { var i = e(r, u, t); n(o, r, i) })), o } } var Rr = Dr((function (n, r, t) { W(n, t) ? n[t].push(r) : n[t] = [r] })), Fr = Dr((function (n, r, t) { n[t] = r })), Vr = Dr((function (n, r, t) { W(n, t) ? n[t]++ : n[t] = 1 })), Pr = Dr((function (n, r, t) { n[t ? 0 : 1].push(r) }), !0); function qr(n, r, t) { return r in t } var Ur = j((function (n, r) { var t = {}, e = r[0]; if (null == n) return t; D(e) ? (r.length > 1 && (e = Rn(e, r[1])), r = an(n)) : (e = qr, r = er(r, !1, !1), n = Object(n)); for (var u = 0, o = r.length; u < o; u++) { var i = r[u], a = n[i]; e(a, i, n) && (t[i] = a) } return t })), Wr = j((function (n, r) { var t, e = r[0]; return D(e) ? (e = ar(e), r.length > 1 && (t = r[1])) : (r = jr(er(r, !1, !1), String), e = function (n, t) { return !Mr(r, t) }), Ur(n, e, t) })); function zr(n, r, t) { return i.call(n, 0, Math.max(0, n.length - (null == r || t ? 1 : r))) } function Lr(n, r, t) { return null == n || n.length < 1 ? null == r || t ? void 0 : [] : null == r || t ? n[0] : zr(n, n.length - r) } function $r(n, r, t) { return i.call(n, null == r || t ? 1 : r) } var Cr = j((function (n, r) { return r = er(r, !0, !0), xr(n, (function (n) { return !Mr(r, n) })) })), Kr = j((function (n, r) { return Cr(n, r) })); function Jr(n, r, t, e) { A(r) || (e = t, t = r, r = !1), null != t && (t = Pn(t, e)); for (var u = [], o = [], i = 0, a = Y(n); i < a; i++) { var f = n[i], c = t ? t(f, i, n) : f; r && !t ? (i && o === c || u.push(f), o = c) : t ? Mr(o, c) || (o.push(c), u.push(f)) : Mr(u, f) || u.push(f) } return u } var Gr = j((function (n) { return Jr(er(n, !0, !0)) })); function Hr(n) { for (var r = n && Nr(n, Y).length || 0, t = Array(r), e = 0; e < r; e++)t[e] = Br(n, e); return t } var Qr = j(Hr); function Xr(n, r) { return n._chain ? tn(r).chain() : r } function Yr(n) { return mr(wn(n), (function (r) { var t = tn[r] = n[r]; tn.prototype[r] = function () { var n = [this._wrapped]; return o.apply(n, arguments), Xr(this, t.apply(tn, n)) } })), tn } mr(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], (function (n) { var r = t[n]; tn.prototype[n] = function () { var t = this._wrapped; return null != t && (r.apply(t, arguments), "shift" !== n && "splice" !== n || 0 !== t.length || delete t[0]), Xr(this, t) } })), mr(["concat", "join", "slice"], (function (n) { var r = t[n]; tn.prototype[n] = function () { var n = this._wrapped; return null != n && (n = r.apply(n, arguments)), Xr(this, n) } })); var Zr = Yr({ __proto__: null, VERSION: n, restArguments: j, isObject: _, isNull: function (n) { return null === n }, isUndefined: w, isBoolean: A, isElement: function (n) { return !(!n || 1 !== n.nodeType) }, isString: S, isNumber: O, isDate: M, isRegExp: E, isError: B, isSymbol: N, isArrayBuffer: I, isDataView: q, isArray: U, isFunction: D, isArguments: L, isFinite: function (n) { return !N(n) && d(n) && !isNaN(parseFloat(n)) }, isNaN: $, isTypedArray: X, isEmpty: function (n) { if (null == n) return !0; var r = Y(n); return "number" == typeof r && (U(n) || S(n) || L(n)) ? 0 === r : 0 === Y(nn(n)) }, isMatch: rn, isEqual: function (n, r) { return on(n, r) }, isMap: dn, isWeakMap: gn, isSet: bn, isWeakSet: mn, keys: nn, allKeys: an, values: jn, pairs: function (n) { for (var r = nn(n), t = r.length, e = Array(t), u = 0; u < t; u++)e[u] = [r[u], n[r[u]]]; return e }, invert: _n, functions: wn, methods: wn, extend: xn, extendOwn: Sn, assign: Sn, defaults: On, create: function (n, r) { var t = Mn(n); return r && Sn(t, r), t }, clone: function (n) { return _(n) ? U(n) ? n.slice() : xn({}, n) : n }, tap: function (n, r) { return r(n), n }, get: In, has: function (n, r) { for (var t = (r = Bn(r)).length, e = 0; e < t; e++) { var u = r[e]; if (!W(n, u)) return !1; n = n[u] } return !!t }, mapObject: function (n, r, t) { r = Pn(r, t); for (var e = nn(n), u = e.length, o = {}, i = 0; i < u; i++) { var a = e[i]; o[a] = r(n[a], a, n) } return o }, identity: Tn, constant: C, noop: qn, toPath: En, property: Dn, propertyOf: function (n) { return null == n ? qn : function (r) { return In(n, r) } }, matcher: kn, matches: kn, times: function (n, r, t) { var e = Array(Math.max(0, n)); r = Rn(r, t, 1); for (var u = 0; u < n; u++)e[u] = r(u); return e }, random: Un, now: Wn, escape: $n, unescape: Cn, templateSettings: Kn, template: function (n, r, t) { !r && t && (r = t), r = On({}, r, tn.templateSettings); var e = RegExp([(r.escape || Jn).source, (r.interpolate || Jn).source, (r.evaluate || Jn).source].join("|") + "|$", "g"), u = 0, o = "__p+='"; n.replace(e, (function (r, t, e, i, a) { return o += n.slice(u, a).replace(Hn, Qn), u = a + r.length, t ? o += "'+\n((__t=(" + t + "))==null?'':_.escape(__t))+\n'" : e ? o += "'+\n((__t=(" + e + "))==null?'':__t)+\n'" : i && (o += "';\n" + i + "\n__p+='"), r })), o += "';\n"; var i, a = r.variable; if (a) { if (!Xn.test(a)) throw new Error("variable is not a bare identifier: " + a) } else o = "with(obj||{}){\n" + o + "}\n", a = "obj"; o = "var __t,__p='',__j=Array.prototype.join," + "print=function(){__p+=__j.call(arguments,'');};\n" + o + "return __p;\n"; try { i = new Function(a, "_", o) } catch (n) { throw n.source = o, n } var f = function (n) { return i.call(this, n, tn) }; return f.source = "function(" + a + "){\n" + o + "}", f }, result: function (n, r, t) { var e = (r = Bn(r)).length; if (!e) return D(t) ? t.call(n) : t; for (var u = 0; u < e; u++) { var o = null == n ? void 0 : n[r[u]]; void 0 === o && (o = t, u = e), n = D(o) ? o.call(n) : o } return n }, uniqueId: function (n) { var r = ++Yn + ""; return n ? n + r : r }, chain: function (n) { var r = tn(n); return r._chain = !0, r }, iteratee: Vn, partial: nr, bind: rr, bindAll: ur, memoize: function (n, r) { var t = function (e) { var u = t.cache, o = "" + (r ? r.apply(this, arguments) : e); return W(u, o) || (u[o] = n.apply(this, arguments)), u[o] }; return t.cache = {}, t }, delay: or, defer: ir, throttle: function (n, r, t) { var e, u, o, i, a = 0; t || (t = {}); var f = function () { a = !1 === t.leading ? 0 : Wn(), e = null, i = n.apply(u, o), e || (u = o = null) }, c = function () { var c = Wn(); a || !1 !== t.leading || (a = c); var l = r - (c - a); return u = this, o = arguments, l <= 0 || l > r ? (e && (clearTimeout(e), e = null), a = c, i = n.apply(u, o), e || (u = o = null)) : e || !1 === t.trailing || (e = setTimeout(f, l)), i }; return c.cancel = function () { clearTimeout(e), a = 0, e = u = o = null }, c }, debounce: function (n, r, t) { var e, u, o, i, a, f = function () { var c = Wn() - u; r > c ? e = setTimeout(f, r - c) : (e = null, t || (i = n.apply(a, o)), e || (o = a = null)) }, c = j((function (c) { return a = this, o = c, u = Wn(), e || (e = setTimeout(f, r), t && (i = n.apply(a, o))), i })); return c.cancel = function () { clearTimeout(e), e = o = a = null }, c }, wrap: function (n, r) { return nr(r, n) }, negate: ar, compose: function () { var n = arguments, r = n.length - 1; return function () { for (var t = r, e = n[r].apply(this, arguments); t--;)e = n[t].call(this, e); return e } }, after: function (n, r) { return function () { if (--n < 1) return r.apply(this, arguments) } }, before: fr, once: cr, findKey: lr, findIndex: pr, findLastIndex: vr, sortedIndex: hr, indexOf: dr, lastIndexOf: gr, find: br, detect: br, findWhere: function (n, r) { return br(n, kn(r)) }, each: mr, forEach: mr, map: jr, collect: jr, reduce: wr, foldl: wr, inject: wr, reduceRight: Ar, foldr: Ar, filter: xr, select: xr, reject: function (n, r, t) { return xr(n, ar(Pn(r)), t) }, every: Sr, all: Sr, some: Or, any: Or, contains: Mr, includes: Mr, include: Mr, invoke: Er, pluck: Br, where: function (n, r) { return xr(n, kn(r)) }, max: Nr, min: function (n, r, t) { var e, u, o = 1 / 0, i = 1 / 0; if (null == r || "number" == typeof r && "object" != typeof n[0] && null != n) for (var a = 0, f = (n = tr(n) ? n : jn(n)).length; a < f; a++)null != (e = n[a]) && e < o && (o = e); else r = Pn(r, t), mr(n, (function (n, t, e) { ((u = r(n, t, e)) < i || u === 1 / 0 && o === 1 / 0) && (o = n, i = u) })); return o }, shuffle: function (n) { return kr(n, 1 / 0) }, sample: kr, sortBy: function (n, r, t) { var e = 0; return r = Pn(r, t), Br(jr(n, (function (n, t, u) { return { value: n, index: e++, criteria: r(n, t, u) } })).sort((function (n, r) { var t = n.criteria, e = r.criteria; if (t !== e) { if (t > e || void 0 === t) return 1; if (t < e || void 0 === e) return -1 } return n.index - r.index })), "value") }, groupBy: Rr, indexBy: Fr, countBy: Vr, partition: Pr, toArray: Tr, size: function (n) { return null == n ? 0 : tr(n) ? n.length : nn(n).length }, pick: Ur, omit: Wr, first: Lr, head: Lr, take: Lr, initial: zr, last: function (n, r, t) { return null == n || n.length < 1 ? null == r || t ? void 0 : [] : null == r || t ? n[n.length - 1] : $r(n, Math.max(0, n.length - r)) }, rest: $r, tail: $r, drop: $r, compact: function (n) { return xr(n, Boolean) }, flatten: function (n, r) { return er(n, r, !1) }, without: Kr, uniq: Jr, unique: Jr, union: Gr, intersection: function (n) { for (var r = [], t = arguments.length, e = 0, u = Y(n); e < u; e++) { var o = n[e]; if (!Mr(r, o)) { var i; for (i = 1; i < t && Mr(arguments[i], o); i++); i === t && r.push(o) } } return r }, difference: Cr, unzip: Hr, transpose: Hr, zip: Qr, object: function (n, r) { for (var t = {}, e = 0, u = Y(n); e < u; e++)r ? t[n[e]] = r[e] : t[n[e][0]] = n[e][1]; return t }, range: function (n, r, t) { null == r && (r = n || 0, n = 0), t || (t = r < n ? -1 : 1); for (var e = Math.max(Math.ceil((r - n) / t), 0), u = Array(e), o = 0; o < e; o++, n += t)u[o] = n; return u }, chunk: function (n, r) { if (null == r || r < 1) return []; for (var t = [], e = 0, u = n.length; e < u;)t.push(i.call(n, e, e += r)); return t }, mixin: Yr, default: tn }); return Zr._ = Zr, Zr
|
|
}));
|
|
|
|
// Backbone.js 0.9.2
|
|
|
|
// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
|
// Backbone may be freely distributed under the MIT license.
|
|
// For all details and documentation:
|
|
// http://backbonejs.org
|
|
(function(){var l=this,y=l.Backbone,z=Array.prototype.slice,A=Array.prototype.splice,g;g="undefined"!==typeof exports?exports:l.Backbone={};g.VERSION="0.9.2";var f=l._;!f&&"undefined"!==typeof require&&(f=require("underscore"));var i=l.jQuery||l.Zepto||l.ender;g.setDomLibrary=function(a){i=a};g.noConflict=function(){l.Backbone=y;return this};g.emulateHTTP=!1;g.emulateJSON=!1;var p=/\s+/,k=g.Events={on:function(a,b,c){var d,e,f,g,j;if(!b)return this;a=a.split(p);for(d=this._callbacks||(this._callbacks=
|
|
{});e=a.shift();)f=(j=d[e])?j.tail:{},f.next=g={},f.context=c,f.callback=b,d[e]={tail:g,next:j?j.next:f};return this},off:function(a,b,c){var d,e,h,g,j,q;if(e=this._callbacks){if(!a&&!b&&!c)return delete this._callbacks,this;for(a=a?a.split(p):f.keys(e);d=a.shift();)if(h=e[d],delete e[d],h&&(b||c))for(g=h.tail;(h=h.next)!==g;)if(j=h.callback,q=h.context,b&&j!==b||c&&q!==c)this.on(d,j,q);return this}},trigger:function(a){var b,c,d,e,f,g;if(!(d=this._callbacks))return this;f=d.all;a=a.split(p);for(g=
|
|
z.call(arguments,1);b=a.shift();){if(c=d[b])for(e=c.tail;(c=c.next)!==e;)c.callback.apply(c.context||this,g);if(c=f){e=c.tail;for(b=[b].concat(g);(c=c.next)!==e;)c.callback.apply(c.context||this,b)}}return this}};k.bind=k.on;k.unbind=k.off;var o=g.Model=function(a,b){var c;a||(a={});b&&b.parse&&(a=this.parse(a));if(c=n(this,"defaults"))a=f.extend({},c,a);b&&b.collection&&(this.collection=b.collection);this.attributes={};this._escapedAttributes={};this.cid=f.uniqueId("c");this.changed={};this._silent=
|
|
{};this._pending={};this.set(a,{silent:!0});this.changed={};this._silent={};this._pending={};this._previousAttributes=f.clone(this.attributes);this.initialize.apply(this,arguments)};f.extend(o.prototype,k,{changed:null,_silent:null,_pending:null,idAttribute:"id",initialize:function(){},toJSON:function(){return f.clone(this.attributes)},get:function(a){return this.attributes[a]},escape:function(a){var b;if(b=this._escapedAttributes[a])return b;b=this.get(a);return this._escapedAttributes[a]=f.escape(null==
|
|
b?"":""+b)},has:function(a){return null!=this.get(a)},set:function(a,b,c){var d,e;f.isObject(a)||null==a?(d=a,c=b):(d={},d[a]=b);c||(c={});if(!d)return this;d instanceof o&&(d=d.attributes);if(c.unset)for(e in d)d[e]=void 0;if(!this._validate(d,c))return!1;this.idAttribute in d&&(this.id=d[this.idAttribute]);var b=c.changes={},h=this.attributes,g=this._escapedAttributes,j=this._previousAttributes||{};for(e in d){a=d[e];if(!f.isEqual(h[e],a)||c.unset&&f.has(h,e))delete g[e],(c.silent?this._silent:
|
|
b)[e]=!0;c.unset?delete h[e]:h[e]=a;!f.isEqual(j[e],a)||f.has(h,e)!=f.has(j,e)?(this.changed[e]=a,c.silent||(this._pending[e]=!0)):(delete this.changed[e],delete this._pending[e])}c.silent||this.change(c);return this},unset:function(a,b){(b||(b={})).unset=!0;return this.set(a,null,b)},clear:function(a){(a||(a={})).unset=!0;return this.set(f.clone(this.attributes),a)},fetch:function(a){var a=a?f.clone(a):{},b=this,c=a.success;a.success=function(d,e,f){if(!b.set(b.parse(d,f),a))return!1;c&&c(b,d)};
|
|
a.error=g.wrapError(a.error,b,a);return(this.sync||g.sync).call(this,"read",this,a)},save:function(a,b,c){var d,e;f.isObject(a)||null==a?(d=a,c=b):(d={},d[a]=b);c=c?f.clone(c):{};if(c.wait){if(!this._validate(d,c))return!1;e=f.clone(this.attributes)}a=f.extend({},c,{silent:!0});if(d&&!this.set(d,c.wait?a:c))return!1;var h=this,i=c.success;c.success=function(a,b,e){b=h.parse(a,e);if(c.wait){delete c.wait;b=f.extend(d||{},b)}if(!h.set(b,c))return false;i?i(h,a):h.trigger("sync",h,a,c)};c.error=g.wrapError(c.error,
|
|
h,c);b=this.isNew()?"create":"update";b=(this.sync||g.sync).call(this,b,this,c);c.wait&&this.set(e,a);return b},destroy:function(a){var a=a?f.clone(a):{},b=this,c=a.success,d=function(){b.trigger("destroy",b,b.collection,a)};if(this.isNew())return d(),!1;a.success=function(e){a.wait&&d();c?c(b,e):b.trigger("sync",b,e,a)};a.error=g.wrapError(a.error,b,a);var e=(this.sync||g.sync).call(this,"delete",this,a);a.wait||d();return e},url:function(){var a=n(this,"urlRoot")||n(this.collection,"url")||t();
|
|
return this.isNew()?a:a+("/"==a.charAt(a.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(a){return a},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},change:function(a){a||(a={});var b=this._changing;this._changing=!0;for(var c in this._silent)this._pending[c]=!0;var d=f.extend({},a.changes,this._silent);this._silent={};for(c in d)this.trigger("change:"+c,this,this.get(c),a);if(b)return this;for(;!f.isEmpty(this._pending);){this._pending=
|
|
{};this.trigger("change",this,a);for(c in this.changed)!this._pending[c]&&!this._silent[c]&&delete this.changed[c];this._previousAttributes=f.clone(this.attributes)}this._changing=!1;return this},hasChanged:function(a){return!arguments.length?!f.isEmpty(this.changed):f.has(this.changed,a)},changedAttributes:function(a){if(!a)return this.hasChanged()?f.clone(this.changed):!1;var b,c=!1,d=this._previousAttributes,e;for(e in a)if(!f.isEqual(d[e],b=a[e]))(c||(c={}))[e]=b;return c},previous:function(a){return!arguments.length||
|
|
!this._previousAttributes?null:this._previousAttributes[a]},previousAttributes:function(){return f.clone(this._previousAttributes)},isValid:function(){return!this.validate(this.attributes)},_validate:function(a,b){if(b.silent||!this.validate)return!0;var a=f.extend({},this.attributes,a),c=this.validate(a,b);if(!c)return!0;b&&b.error?b.error(this,c,b):this.trigger("error",this,c,b);return!1}});var r=g.Collection=function(a,b){b||(b={});b.model&&(this.model=b.model);b.comparator&&(this.comparator=b.comparator);
|
|
this._reset();this.initialize.apply(this,arguments);a&&this.reset(a,{silent:!0,parse:b.parse})};f.extend(r.prototype,k,{model:o,initialize:function(){},toJSON:function(a){return this.map(function(b){return b.toJSON(a)})},add:function(a,b){var c,d,e,g,i,j={},k={},l=[];b||(b={});a=f.isArray(a)?a.slice():[a];c=0;for(d=a.length;c<d;c++){if(!(e=a[c]=this._prepareModel(a[c],b)))throw Error("Can't add an invalid model to a collection");g=e.cid;i=e.id;j[g]||this._byCid[g]||null!=i&&(k[i]||this._byId[i])?
|
|
l.push(c):j[g]=k[i]=e}for(c=l.length;c--;)a.splice(l[c],1);c=0;for(d=a.length;c<d;c++)(e=a[c]).on("all",this._onModelEvent,this),this._byCid[e.cid]=e,null!=e.id&&(this._byId[e.id]=e);this.length+=d;A.apply(this.models,[null!=b.at?b.at:this.models.length,0].concat(a));this.comparator&&this.sort({silent:!0});if(b.silent)return this;c=0;for(d=this.models.length;c<d;c++)if(j[(e=this.models[c]).cid])b.index=c,e.trigger("add",e,this,b);return this},remove:function(a,b){var c,d,e,g;b||(b={});a=f.isArray(a)?
|
|
a.slice():[a];c=0;for(d=a.length;c<d;c++)if(g=this.getByCid(a[c])||this.get(a[c]))delete this._byId[g.id],delete this._byCid[g.cid],e=this.indexOf(g),this.models.splice(e,1),this.length--,b.silent||(b.index=e,g.trigger("remove",g,this,b)),this._removeReference(g);return this},push:function(a,b){a=this._prepareModel(a,b);this.add(a,b);return a},pop:function(a){var b=this.at(this.length-1);this.remove(b,a);return b},unshift:function(a,b){a=this._prepareModel(a,b);this.add(a,f.extend({at:0},b));return a},
|
|
shift:function(a){var b=this.at(0);this.remove(b,a);return b},get:function(a){return null==a?void 0:this._byId[null!=a.id?a.id:a]},getByCid:function(a){return a&&this._byCid[a.cid||a]},at:function(a){return this.models[a]},where:function(a){return f.isEmpty(a)?[]:this.filter(function(b){for(var c in a)if(a[c]!==b.get(c))return!1;return!0})},sort:function(a){a||(a={});if(!this.comparator)throw Error("Cannot sort a set without a comparator");var b=f.bind(this.comparator,this);1==this.comparator.length?
|
|
this.models=this.sortBy(b):this.models.sort(b);a.silent||this.trigger("reset",this,a);return this},pluck:function(a){return f.map(this.models,function(b){return b.get(a)})},reset:function(a,b){a||(a=[]);b||(b={});for(var c=0,d=this.models.length;c<d;c++)this._removeReference(this.models[c]);this._reset();this.add(a,f.extend({silent:!0},b));b.silent||this.trigger("reset",this,b);return this},fetch:function(a){a=a?f.clone(a):{};void 0===a.parse&&(a.parse=!0);var b=this,c=a.success;a.success=function(d,
|
|
e,f){b[a.add?"add":"reset"](b.parse(d,f),a);c&&c(b,d)};a.error=g.wrapError(a.error,b,a);return(this.sync||g.sync).call(this,"read",this,a)},create:function(a,b){var c=this,b=b?f.clone(b):{},a=this._prepareModel(a,b);if(!a)return!1;b.wait||c.add(a,b);var d=b.success;b.success=function(e,f){b.wait&&c.add(e,b);d?d(e,f):e.trigger("sync",a,f,b)};a.save(null,b);return a},parse:function(a){return a},chain:function(){return f(this.models).chain()},_reset:function(){this.length=0;this.models=[];this._byId=
|
|
{};this._byCid={}},_prepareModel:function(a,b){b||(b={});a instanceof o?a.collection||(a.collection=this):(b.collection=this,a=new this.model(a,b),a._validate(a.attributes,b)||(a=!1));return a},_removeReference:function(a){this==a.collection&&delete a.collection;a.off("all",this._onModelEvent,this)},_onModelEvent:function(a,b,c,d){("add"==a||"remove"==a)&&c!=this||("destroy"==a&&this.remove(b,d),b&&a==="change:"+b.idAttribute&&(delete this._byId[b.previous(b.idAttribute)],this._byId[b.id]=b),this.trigger.apply(this,
|
|
arguments))}});f.each("forEach,each,map,reduce,reduceRight,find,detect,filter,select,reject,every,all,some,any,include,contains,invoke,max,min,sortBy,sortedIndex,toArray,size,first,initial,rest,last,without,indexOf,shuffle,lastIndexOf,isEmpty,groupBy".split(","),function(a){r.prototype[a]=function(){return f[a].apply(f,[this.models].concat(f.toArray(arguments)))}});var u=g.Router=function(a){a||(a={});a.routes&&(this.routes=a.routes);this._bindRoutes();this.initialize.apply(this,arguments)},B=/:\w+/g,
|
|
C=/\*\w+/g,D=/[-[\]{}()+?.,\\^$|#\s]/g;f.extend(u.prototype,k,{initialize:function(){},route:function(a,b,c){g.history||(g.history=new m);f.isRegExp(a)||(a=this._routeToRegExp(a));c||(c=this[b]);g.history.route(a,f.bind(function(d){d=this._extractParameters(a,d);c&&c.apply(this,d);this.trigger.apply(this,["route:"+b].concat(d));g.history.trigger("route",this,b,d)},this));return this},navigate:function(a,b){g.history.navigate(a,b)},_bindRoutes:function(){if(this.routes){var a=[],b;for(b in this.routes)a.unshift([b,
|
|
this.routes[b]]);b=0;for(var c=a.length;b<c;b++)this.route(a[b][0],a[b][1],this[a[b][1]])}},_routeToRegExp:function(a){a=a.replace(D,"\\$&").replace(B,"([^/]+)").replace(C,"(.*?)");return RegExp("^"+a+"$")},_extractParameters:function(a,b){return a.exec(b).slice(1)}});var m=g.History=function(){this.handlers=[];f.bindAll(this,"checkUrl")},s=/^[#\/]/,E=/msie [\w.]+/;m.started=!1;f.extend(m.prototype,k,{interval:50,getHash:function(a){return(a=(a?a.location:window.location).href.match(/#(.*)$/))?a[1]:
|
|
""},getFragment:function(a,b){if(null==a)if(this._hasPushState||b){var a=window.location.pathname,c=window.location.search;c&&(a+=c)}else a=this.getHash();a.indexOf(this.options.root)||(a=a.substr(this.options.root.length));return a.replace(s,"")},start:function(a){if(m.started)throw Error("Backbone.history has already been started");m.started=!0;this.options=f.extend({},{root:"/"},this.options,a);this._wantsHashChange=!1!==this.options.hashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=
|
|
!(!this.options.pushState||!window.history||!window.history.pushState);var a=this.getFragment(),b=document.documentMode;if(b=E.exec(navigator.userAgent.toLowerCase())&&(!b||7>=b))this.iframe=i('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(a);this._hasPushState?i(window).bind("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!b?i(window).bind("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,
|
|
this.interval));this.fragment=a;a=window.location;b=a.pathname==this.options.root;if(this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!b)return this.fragment=this.getFragment(null,!0),window.location.replace(this.options.root+"#"+this.fragment),!0;this._wantsPushState&&this._hasPushState&&b&&a.hash&&(this.fragment=this.getHash().replace(s,""),window.history.replaceState({},document.title,a.protocol+"//"+a.host+this.options.root+this.fragment));if(!this.options.silent)return this.loadUrl()},
|
|
stop:function(){i(window).unbind("popstate",this.checkUrl).unbind("hashchange",this.checkUrl);clearInterval(this._checkUrlInterval);m.started=!1},route:function(a,b){this.handlers.unshift({route:a,callback:b})},checkUrl:function(){var a=this.getFragment();a==this.fragment&&this.iframe&&(a=this.getFragment(this.getHash(this.iframe)));if(a==this.fragment)return!1;this.iframe&&this.navigate(a);this.loadUrl()||this.loadUrl(this.getHash())},loadUrl:function(a){var b=this.fragment=this.getFragment(a);return f.any(this.handlers,
|
|
function(a){if(a.route.test(b))return a.callback(b),!0})},navigate:function(a,b){if(!m.started)return!1;if(!b||!0===b)b={trigger:b};var c=(a||"").replace(s,"");this.fragment!=c&&(this._hasPushState?(0!=c.indexOf(this.options.root)&&(c=this.options.root+c),this.fragment=c,window.history[b.replace?"replaceState":"pushState"]({},document.title,c)):this._wantsHashChange?(this.fragment=c,this._updateHash(window.location,c,b.replace),this.iframe&&c!=this.getFragment(this.getHash(this.iframe))&&(b.replace||
|
|
this.iframe.document.open().close(),this._updateHash(this.iframe.location,c,b.replace))):window.location.assign(this.options.root+a),b.trigger&&this.loadUrl(a))},_updateHash:function(a,b,c){c?a.replace(a.toString().replace(/(javascript:|#).*$/,"")+"#"+b):a.hash=b}});var v=g.View=function(a){this.cid=f.uniqueId("view");this._configure(a||{});this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()},F=/^(\S+)\s*(.*)$/,w="model,collection,el,id,attributes,className,tagName".split(",");
|
|
f.extend(v.prototype,k,{tagName:"div",$:function(a){return this.$el.find(a)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();return this},make:function(a,b,c){a=document.createElement(a);b&&i(a).attr(b);c&&i(a).html(c);return a},setElement:function(a,b){this.$el&&this.undelegateEvents();this.$el=a instanceof i?a:i(a);this.el=this.$el[0];!1!==b&&this.delegateEvents();return this},delegateEvents:function(a){if(a||(a=n(this,"events"))){this.undelegateEvents();
|
|
for(var b in a){var c=a[b];f.isFunction(c)||(c=this[a[b]]);if(!c)throw Error('Method "'+a[b]+'" does not exist');var d=b.match(F),e=d[1],d=d[2],c=f.bind(c,this),e=e+(".delegateEvents"+this.cid);""===d?this.$el.bind(e,c):this.$el.delegate(d,e,c)}}},undelegateEvents:function(){this.$el.unbind(".delegateEvents"+this.cid)},_configure:function(a){this.options&&(a=f.extend({},this.options,a));for(var b=0,c=w.length;b<c;b++){var d=w[b];a[d]&&(this[d]=a[d])}this.options=a},_ensureElement:function(){if(this.el)this.setElement(this.el,
|
|
!1);else{var a=n(this,"attributes")||{};this.id&&(a.id=this.id);this.className&&(a["class"]=this.className);this.setElement(this.make(this.tagName,a),!1)}}});o.extend=r.extend=u.extend=v.extend=function(a,b){var c=G(this,a,b);c.extend=this.extend;return c};var H={create:"POST",update:"PUT","delete":"DELETE",read:"GET"};g.sync=function(a,b,c){var d=H[a];c||(c={});var e={type:d,dataType:"json"};c.url||(e.url=n(b,"url")||t());if(!c.data&&b&&("create"==a||"update"==a))e.contentType="application/json",
|
|
e.data=JSON.stringify(b.toJSON());g.emulateJSON&&(e.contentType="application/x-www-form-urlencoded",e.data=e.data?{model:e.data}:{});if(g.emulateHTTP&&("PUT"===d||"DELETE"===d))g.emulateJSON&&(e.data._method=d),e.type="POST",e.beforeSend=function(a){a.setRequestHeader("X-HTTP-Method-Override",d)};"GET"!==e.type&&!g.emulateJSON&&(e.processData=!1);return i.ajax(f.extend(e,c))};g.wrapError=function(a,b,c){return function(d,e){e=d===b?e:d;a?a(b,e,c):b.trigger("error",b,e,c)}};var x=function(){},G=function(a,
|
|
b,c){var d;d=b&&b.hasOwnProperty("constructor")?b.constructor:function(){a.apply(this,arguments)};f.extend(d,a);x.prototype=a.prototype;d.prototype=new x;b&&f.extend(d.prototype,b);c&&f.extend(d,c);d.prototype.constructor=d;d.__super__=a.prototype;return d},n=function(a,b){return!a||!a[b]?null:f.isFunction(a[b])?a[b]():a[b]},t=function(){throw Error('A "url" property or function must be specified');}}).call(this);
|
|
|
|
|
|
/*!
|
|
* OverlayScrollbars
|
|
* https://github.com/KingSora/OverlayScrollbars
|
|
*
|
|
* Version: 1.10.2
|
|
*
|
|
* Copyright KingSora | Rene Haas.
|
|
* https://github.com/KingSora
|
|
*
|
|
* Released under the MIT license.
|
|
* Date: 30.12.2019
|
|
*/
|
|
!function(t,r){"function"==typeof define&&define.amd?define(["jquery"],function(n){return r(t,t.document,undefined,n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=r(t,t.document,undefined,require("jquery")):r(t,t.document,undefined,t.jQuery)}("undefined"!=typeof window?window:this,function(pt,bt,xi,n){"use strict";var o,f,c,a,gt="object",mt="function",yt="array",wt="string",xt="boolean",_t="number",t="null",St="class",_i="style",zt="id",Si="length",Tt="prototype",zi="offsetHeight",Ti="clientHeight",ki="scrollHeight",Oi="offsetWidth",Ci="clientWidth",Ai="scrollWidth",kt="hasOwnProperty",Hi="getBoundingClientRect",Ot=(o={},f={},{e:c=["-webkit-","-moz-","-o-","-ms-"],o:a=["WebKit","Moz","O","MS"],u:function(n){var t=f[n];if(f[kt](n))return t;for(var r,e,i,o=l(n),a=bt.createElement("div")[_i],u=0;u<c.length;u++)for(i=c[u].replace(/-/g,""),r=[n,c[u]+n,i+o,l(i)+o],e=0;e<r[Si];e++)if(a[r[e]]!==xi){t=r[e];break}return f[n]=t},s:function(n,t,r){var e=0,i=o[n];if(!o[kt](n)){for(i=pt[n];e<a[Si];e++)i=i||pt[(t?a[e]:a[e].toLowerCase())+l(n)];o[n]=i}return i||r}});function l(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Ni={wW:e(r,0,!0),wH:e(r,0),mO:e(Ot.s,0,"MutationObserver",!0),rO:e(Ot.s,0,"ResizeObserver",!0),rAF:e(Ot.s,0,"requestAnimationFrame",!1,function(n){return pt.setTimeout(n,1e3/60)}),cAF:e(Ot.s,0,"cancelAnimationFrame",!1,function(n){return pt.clearTimeout(n)}),now:function(){return Date.now&&Date.now()||(new Date).getTime()},stpP:function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},prvD:function(n){n.preventDefault&&n.cancelable?n.preventDefault():n.returnValue=!1},page:function(n){var t="page",r="client",e="X",i=((n=n.originalEvent||n).target||n.srcElement||bt).ownerDocument||bt,o=i.documentElement,a=i.body;if(n.touches===xi)return!n[t+e]&&n[r+e]&&null!=n[r+e]?{x:n[r+e]+(o&&o.scrollLeft||a&&a.scrollLeft||0)-(o&&o.clientLeft||a&&a.clientLeft||0),y:n[r+"Y"]+(o&&o.scrollTop||a&&a.scrollTop||0)-(o&&o.clientTop||a&&a.clientTop||0)}:{x:n[t+e],y:n.pageY};var u=n.touches[0];return{x:u[t+e],y:u.pageY}},mBtn:function(n){var t=n.button;return n.which||t===xi?n.which:1&t?1:2&t?3:4&t?2:0},inA:function(n,t){for(var r=0;r<t[Si];r++)try{if(t[r]===n)return r}catch(e){}return-1},isA:function(n){var t=Array.isArray;return t?t(n):this.type(n)==yt},type:function(n){return n===xi?n+"":null===n?n+"":Object[Tt].toString.call(n).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:e};function r(n){return n?pt.innerWidth||bt.documentElement[Ci]||bt.body[Ci]:pt.innerHeight||bt.documentElement[Ti]||bt.body[Ti]}function e(n,t){if(typeof n!=mt)throw"Can't bind function!";function r(){}function e(){return n.apply(this instanceof r?this:t,o.concat(Array[i].slice.call(arguments)))}var i=Tt,o=Array[i].slice.call(arguments,2);return n[i]&&(r[i]=n[i]),e[i]=new r,e}var i,u,Ct,s,v,L,R,d,h,p,b,g,m,Li,Ri=Math,Di=n,Ii=(n.easing,n),Mi=(i=[],u="__overlayScrollbars__",function(n,t){var r=arguments[Si];if(r<1)return i;if(t)n[u]=t,i.push(n);else{var e=Ni.inA(n,i);if(-1<e){if(!(1<r))return i[e][u];delete n[u],i.splice(e,1)}}}),y=(m=[],L=Ni.type,g={className:["os-theme-dark",[t,wt]],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:d=[!0,xt],clipAlways:d,normalizeRTL:d,paddingAbsolute:h=[!(R=[xt,_t,wt,yt,gt,mt,t]),xt],autoUpdate:[null,[t,xt]],autoUpdateInterval:[33,_t],nativeScrollbarsOverlaid:{showNativeScrollbars:h,initialize:d},overflowBehavior:{x:["scroll",b="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden"],y:["scroll",b]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,_t],dragScrolling:d,clickScrolling:h,touchSupport:d,snapHandle:h},textarea:{dynWidth:h,dynHeight:h,inheritedAttrs:[["style","class"],[wt,yt,t]]},callbacks:{onInitialized:p=[null,[t,mt]],onInitializationWithdrawn:p,onDestroyed:p,onScrollStart:p,onScroll:p,onScrollStop:p,onOverflowChanged:p,onOverflowAmountChanged:p,onDirectionChanged:p,onContentSizeChanged:p,onHostSizeChanged:p,onUpdated:p}},Li={v:w(),d:w(!0),p:function(n,t,C,r){var e={},i={},o=Ii.extend(!0,{},n),A=Ii.inArray,H=Ii.isEmptyObject,N=function(n,t,r,e,i,o){for(var a in t)if(t[kt](a)&&n[kt](a)){var u,f,c,l,s,v,d,h,p=!1,b=!1,g=t[a],m=L(g),y=m==gt,w=L(g)!=yt?[g]:g,x=r[a],_=n[a],S=L(_),z=o?o+".":"",T='The option "'+z+a+"\" wasn't set, because",k=[],O=[];if(x=x===xi?{}:x,y&&S==gt)e[a]={},i[a]={},N(_,g,x,e[a],i[a],z+a),Ii.each([n,e,i],function(n,t){H(t[a])&&delete t[a]});else if(!y){for(v=0;v<w[Si];v++)if(s=w[v],c=(m=L(s))==wt&&-1===A(s,R))for(k.push(wt),u=s.split(" "),O=O.concat(u),d=0;d<u[Si];d++){for(l=(f=u[d].split(":"))[0],h=0;h<f[Si];h++)if(_===f[h]){p=!0;break}if(p)break}else if(k.push(s),S===s){p=!0;break}p?((b=_!==x)&&(e[a]=_),(c?A(x,f)<0:b)&&(i[a]=c?l:_)):C&&console.warn(T+" it doesn't accept the type [ "+S.toUpperCase()+' ] with the value of "'+_+'".\r\nAccepted types are: [ '+k.join(", ").toUpperCase()+" ]."+(0<O[length]?"\r\nValid strings are: [ "+O.join(", ").split(":").join(", ")+" ].":"")),delete n[a]}}};return N(o,t,r||{},e,i),!H(o)&&C&&console.warn("The following options are discarded due to invalidity:\r\n"+pt.JSON.stringify(o,null,2)),{g:e,m:i}}},(Ct=pt.OverlayScrollbars=function(n,r,e){if(0===arguments[Si])return this;var i,t,o=[],a=Ii.isPlainObject(r);return n?(n=n[Si]!=xi?n:[n[0]||n],x(),0<n[Si]&&(a?Ii.each(n,function(n,t){(i=t)!==xi&&o.push(z(i,r,e,s,v))}):Ii.each(n,function(n,t){i=Mi(t),"!"===r&&Ct.valid(i)||Ni.type(r)==mt&&r(t,i)?o.push(i):r===xi&&o.push(i)}),t=1===o[Si]?o[0]:o),t):a||!r?t:o}).globals=function(){x();var n=Ii.extend(!0,{},s);return delete n.msie,n},Ct.defaultOptions=function(n){x();var t=s.defaultOptions;if(n===xi)return Ii.extend(!0,{},t);s.defaultOptions=Ii.extend(!0,{},t,Li.p(n,Li.d,!0,t).g)},Ct.valid=function(n){return n instanceof Ct&&!n.getState().destroyed},Ct.extension=function(n,t,r){var e=Ni.type(n)==wt,i=arguments[Si],o=0;if(i<1||!e)return Ii.extend(!0,{length:m[Si]},m);if(e)if(Ni.type(t)==mt)m.push({name:n,extensionFactory:t,defaultOptions:r});else for(;o<m[Si];o++)if(m[o].name===n){if(!(1<i))return Ii.extend(!0,{},m[o]);m.splice(o,1)}},Ct);function w(i){var o=function(n){var t,r,e;for(t in n)n[kt](t)&&(r=n[t],(e=L(r))==yt?n[t]=r[i?1:0]:e==gt&&(n[t]=o(r)));return n};return o(Ii.extend(!0,{},g))}function x(){s=s||new _(Li.v),v=v||new S(s)}function _(n){var _=this,i="overflow",S=Ii("body"),z=Ii('<div id="os-dummy-scrollbar-size"><div></div></div>'),o=z[0],e=Ii(z.children("div").eq(0));S.append(z),z.hide().show();var t,r,a,u,f,c,l,s,v,d=T(o),h={x:0===d.x,y:0===d.y},p=(r=pt.navigator.userAgent,u="substring",f=r[a="indexOf"]("MSIE "),c=r[a]("Trident/"),l=r[a]("Edge/"),s=r[a]("rv:"),v=parseInt,0<f?t=v(r[u](f+5,r[a](".",f)),10):0<c?t=v(r[u](s+3,r[a](".",s)),10):0<l&&(t=v(r[u](l+5,r[a](".",l)),10)),t);function T(n){return{x:n[zi]-n[Ti],y:n[Oi]-n[Ci]}}Ii.extend(_,{defaultOptions:n,msie:p,autoUpdateLoop:!1,autoUpdateRecommended:!Ni.mO(),nativeScrollbarSize:d,nativeScrollbarIsOverlaid:h,nativeScrollbarStyling:function(){var n=!1;z.addClass("os-viewport-native-scrollbars-invisible");try{n="none"===z.css("scrollbar-width")&&(9<p||!p)||"none"===pt.getComputedStyle(o,"::-webkit-scrollbar").getPropertyValue("display")}catch(t){}return n}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:function(){for(var n,t=bt.createElement("div")[_i],r=-1;r<Ot.e[Si];r++)if(n=r<0?"calc":Ot.e[r]+"calc",t.cssText="width:"+n+"(1px);",t[Si])return n;return null}(),restrictedMeasuring:function(){z.css(i,"hidden");var n=o[Ai],t=o[ki];z.css(i,"visible");var r=o[Ai],e=o[ki];return n-r!=0||t-e!=0}(),rtlScrollBehavior:function(){z.css({"overflow-y":"hidden","overflow-x":"scroll",direction:"rtl"}).scrollLeft(0);var n=z.offset(),t=e.offset();z.scrollLeft(999);var r=e.offset();return{i:n.left===t.left,n:t.left-r.left==0}}(),supportTransform:Ot.u("transform")!==xi,supportTransition:Ot.u("transition")!==xi,supportPassiveEvents:function(){var n=!1;try{pt.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){n=!0}}))}catch(t){}return n}(),supportResizeObserver:!!Ni.rO(),supportMutationObserver:!!Ni.mO()}),z.removeAttr(_i).remove(),function(){if(!h.x||!h.y){var g=Ri.abs,m=Ni.wW(),y=Ni.wH(),w=x();Ii(pt).on("resize",function(){if(0<Mi().length){var n=Ni.wW(),t=Ni.wH(),r=n-m,e=t-y;if(0==r&&0==e)return;var i,o=Ri.round(n/(m/100)),a=Ri.round(t/(y/100)),u=g(r),f=g(e),c=g(o),l=g(a),s=x(),v=2<u&&2<f,d=!function b(n,t){var r=g(n),e=g(t);return!(r===e||r+1===e||r-1===e)}(c,l),h=v&&d&&(s!==w&&0<w),p=_.nativeScrollbarSize;h&&(S.append(z),i=_.nativeScrollbarSize=T(z[0]),z.remove(),p.x===i.x&&p.y===i.y||Ii.each(Mi(),function(){Mi(this)&&Mi(this).update("zoom")})),m=n,y=t,w=s}})}function x(){var n=pt.screen.deviceXDPI||0,t=pt.screen.logicalXDPI||1;return pt.devicePixelRatio||n/t}}()}function S(r){var c,e=Ii.inArray,l=Ni.now,s="autoUpdate",v=Si,d=[],h=[],p=!1,b=33,g=l(),m=function(){if(0<d[v]&&p){c=Ni.rAF()(function(){m()});var n,t,r,e,i,o,a=l(),u=a-g;if(b<u){g=a-u%b,n=33;for(var f=0;f<d[v];f++)(t=d[f])!==xi&&(e=(r=t.options())[s],i=Ri.max(1,r.autoUpdateInterval),o=l(),(!0===e||null===e)&&o-h[f]>i&&(t.update("auto"),h[f]=new Date(o+=i)),n=Ri.max(1,Ri.min(n,i)));b=n}}else b=33};this.add=function(n){-1===e(n,d)&&(d.push(n),h.push(l()),0<d[v]&&!p&&(p=!0,r.autoUpdateLoop=p,m()))},this.remove=function(n){var t=e(n,d);-1<t&&(h.splice(t,1),d.splice(t,1),0===d[v]&&p&&(p=!1,r.autoUpdateLoop=p,c!==xi&&(Ni.cAF()(c),c=-1)))}}function z(r,n,t,At,Ht){var ln=Ni.type,sn=Ii.inArray,c=Ii.each,Nt=new Ct,e=Ii[Tt];if(ft(r)){if(Mi(r)){var i=Mi(r);return i.options(n),i}var Lt,Rt,Dt,It,Mt,Wt,Et,jt,I,vn,m,A,s,Ft,Pt,Ut,qt,Bt,y,v,Vt,Xt,Yt,$t,Kt,Gt,Jt,Qt,Zt,nr,o,a,tr,rr,er,u,M,d,W,ir,or,ar,ur,fr,cr,lr,sr,vr,dr,hr,f,l,h,p,b,g,w,H,pr,br,gr,N,mr,yr,wr,xr,_r,Sr,zr,Tr,kr,Or,Cr,Ar,Hr,Nr,Lr,Rr,L,Dr,Ir,Mr,Wr,Er,jr,Fr,Pr,x,_,Ur,qr,Br,Vr,Xr,Yr,$r,Kr,Gr,Jr,Qr,Zr,ne,te,S,re,z,T,k,O,ee,ie,C,R,oe,ae,ue,fe,ce,E,j,le,se,ve,de,he={},dn={},hn={},pe={},be={},D="-hidden",ge="margin-",me="padding-",ye="border-",we="top",xe="right",_e="bottom",Se="left",ze="min-",Te="max-",ke="width",Oe="height",Ce="float",Ae="",He="auto",pn="sync",Ne="scroll",Le="100%",bn="x",gn="y",F=".",Re=" ",P="scrollbar",U="-horizontal",q="-vertical",De=Ne+"Left",Ie=Ne+"Top",B="mousedown touchstart",V="mouseup touchend touchcancel",X="mousemove touchmove",Y="mouseenter",$="mouseleave",K="keydown",G="keyup",J="selectstart",Q="transitionend webkitTransitionEnd oTransitionEnd",Z="__overlayScrollbarsRO__",nn="os-",tn="os-html",rn="os-host",en=rn+"-textarea",on=rn+"-"+P+U+D,an=rn+"-"+P+q+D,un=rn+"-transition",Me=rn+"-rtl",We=rn+"-resize-disabled",Ee=rn+"-scrolling",je=rn+"-overflow",Fe=je+"-x",Pe=je+"-y",fn="os-textarea",cn=fn+"-cover",mn="os-padding",yn="os-viewport",Ue=yn+"-native-scrollbars-invisible",wn=yn+"-native-scrollbars-overlaid",xn="os-content",qe="os-content-arrange",Be="os-content-glue",Ve="os-size-auto-observer",_n="os-resize-observer",Sn="os-resize-observer-item",zn=Sn+"-final",Tn="os-text-inherit",kn=nn+P,On=kn+"-track",Cn=On+"-off",An=kn+"-handle",Hn=An+"-off",Nn=kn+"-unusable",Ln=kn+"-"+He+D,Rn=kn+"-corner",Xe=Rn+"-resize",Ye=Xe+"-both",$e=Xe+U,Ke=Xe+q,Dn=kn+U,In=kn+q,Mn="os-dragging",Ge="os-theme-none",Wn=[Ue,wn,Cn,Hn,Nn,Ln,Xe,Ye,$e,Ke,Mn].join(Re),En=[],jn={},Je={},Qe=42,Fn=[],Pn={},Un=["wrap","cols","rows"],qn=[zt,St,_i,"open"],Bn=[];return Nt.sleep=function(){nr=!0},Nt.update=function(n){if(!Ut){var t,r,e,i,o,a=ln(n)==wt;return a?n===He?(t=function u(){if(!nr&&!ee){var r,e,i,o,n=[{_:or,S:qn.concat(":visible")},{_:qt?ir:xi,S:Un}];return c(n,function(n,t){(e=t._)&&c(t.S,function(n,t){i=":"===t.charAt(0)?e.is(t):e.attr(t),o=Pn[t],r=r||gi(i,o),Pn[t]=i})}),r}}(),r=function l(){if(nr)return!1;var n,t,r,e,i,o=pi(),a=qt&&kr&&!Gr?ir.val().length:0,u=!ee&&kr&&!qt,f={},c={};return Ft&&(f={x:yr[Ai],y:yr[ki]}),u&&(n=lr.css(Ce),c[Ce]=Zt?xe:Se,c[ke]=He,lr.css(c)),i={w:o[Ai]+a,h:o[ki]+a},u&&(c[Ce]=n,c[ke]=Le,lr.css(c)),t=ei(),r=gi(i,x),e=gi(f,S),x=i,S=f,r||t||e}(),(e=t||r)&&oi({z:r,T:Pt?xi:tr})):n===pn?ee?(i=k(z.takeRecords()),o=O(T.takeRecords())):i=Nt.update(He):"zoom"===n&&oi({k:!0,z:!0}):(n=nr||n,nr=!1,Nt.update(pn)&&!n||oi({O:n})),qt||lr.find("img").each(function(n,t){-1===Ni.inA(t,Fn)&&Ii(t).off("load",Zn).on("load",Zn)}),e||i||o}},Nt.options=function(n,t){var r,e={};if(Ii.isEmptyObject(n)||!Ii.isPlainObject(n)){if(ln(n)!=wt)return a;if(!(1<arguments.length))return st(a,n);!function f(n,t,r){for(var e=t.split(F),i=e.length,o=0,a={},u=a;o<i;o++)a=a[e[o]]=o+1<i?{}:r;Ii.extend(n,u,!0)}(e,n,t),r=tt(e)}else r=tt(n);Ii.isEmptyObject(r)||oi({T:r})},Nt.destroy=function(){if(!Ut){for(var n in Ht.remove(Nt),ti(),Ze(ur),Ze(ar),jn)Nt.removeExt(n);for(;0<Bn[Si];)Bn.pop()();ri(!0),vr&&vt(vr),sr&&vt(sr),Xt&&vt(ar),it(!0),at(!0),rt(!0);for(var t=0;t<Fn[Si];t++)Ii(Fn[t]).off("load",Zn);Fn=xi,nr=Ut=!0,Mi(r,0),vi("onDestroyed")}},Nt.scroll=function(n,t,r,e){if(0===arguments.length||n===xi){var i=dn,o=hn,a=Yr&&Zt&&Dt.i,u=Yr&&Zt&&Dt.n,f=i.C,c=i.A,l=i.H;return c=a?1-c:c,f=a?l-f:f,l*=u?-1:1,{position:{x:f*=u?-1:1,y:o.C},ratio:{x:c,y:o.A},max:{x:l,y:o.H},handleOffset:{x:i.N,y:o.N},handleLength:{x:i.L,y:o.L},handleLengthRatio:{x:i.R,y:o.R},trackLength:{x:i.D,y:o.D},snappedHandleOffset:{x:i.I,y:o.I},isRTL:Zt,isRTLNormalized:Yr}}Nt.update(pn);var s,v,d,h,p,m,y,b,g,w=Yr,x=[bn,Se,"l"],_=[gn,we,"t"],S=["+=","-=","*=","/="],z=ln(t)==gt,T=z?t.complete:e,k={},O={},C="begin",A="nearest",H="never",N="ifneeded",L=Si,R=[bn,gn,"xy","yx"],D=[C,"end","center",A],I=["always",H,N],M=n[kt]("el"),W=M?n.el:n,E=!!(W instanceof Ii||Di)&&W instanceof Di,j=!E&&ft(W),F=ln(T)!=mt?xi:function(){v&&ci(!0),d&&ci(!1),T()};function P(n,t){for(s=0;s<t[L];s++)if(n===t[s])return!0;return!1}function U(n,t){var r=n?x:_;if(t=ln(t)==wt||ln(t)==_t?[t,t]:t,ln(t)==yt)return n?t[0]:t[1];if(ln(t)==gt)for(s=0;s<r[L];s++)if(r[s]in t)return t[r[s]]}function q(n,t){var r,e,i,o,a=ln(t)==wt,u=n?dn:hn,f=u.C,c=u.H,l=Zt&&n,s=l&&Dt.n&&!w,v="replace",d=eval;if((e=a?(2<t[L]&&(o=t.substr(0,2),-1<sn(o,S)&&(r=o)),t=(t=r?t.substr(2):t)[v](/min/g,0)[v](/</g,0)[v](/max/g,(s?"-":Ae)+Le)[v](/>/g,(s?"-":Ae)+Le)[v](/px/g,Ae)[v](/%/g," * "+c*(l&&Dt.n?-1:1)/100)[v](/vw/g," * "+pe.w)[v](/vh/g," * "+pe.h),hi(isNaN(t)?hi(d(t),!0).toFixed():t)):t)!==xi&&!isNaN(e)&&ln(e)==_t){var h=w&&l,p=f*(h&&Dt.n?-1:1),b=h&&Dt.i,g=h&&Dt.n;switch(p=b?c-p:p,r){case"+=":i=p+e;break;case"-=":i=p-e;break;case"*=":i=p*e;break;case"/=":i=p/e;break;default:i=e}i=b?c-i:i,i*=g?-1:1,i=l&&Dt.n?Ri.min(0,Ri.max(c,i)):Ri.max(0,Ri.min(c,i))}return i===f?xi:i}function B(n,t,r,e){var i,o,a=[r,r],u=ln(n);if(u==t)n=[n,n];else if(u==yt){if(2<(i=n[L])||i<1)n=a;else for(1===i&&(n[1]=r),s=0;s<i;s++)if(o=n[s],ln(o)!=t||!P(o,e)){n=a;break}}else n=u==gt?[n[bn]||r,n[gn]||r]:a;return{x:n[0],y:n[1]}}function V(n){var t,r,e=[],i=[we,xe,_e,Se];for(s=0;s<n[L]&&s!==i[L];s++)t=n[s],(r=ln(t))==xt?e.push(t?hi(g.css(ge+i[s])):0):e.push(r==_t?t:0);return e}if(E||j){var X,Y=M?n.margin:0,$=M?n.axis:0,K=M?n.scroll:0,G=M?n.block:0,J=[0,0,0,0],Q=ln(Y);if(0<(g=E?W:Ii(W))[L]){Y=Q==_t||Q==xt?V([Y,Y,Y,Y]):Q==yt?2===(X=Y[L])?V([Y[0],Y[1],Y[0],Y[1]]):4<=X?V(Y):J:Q==gt?V([Y[we],Y[xe],Y[_e],Y[Se]]):J,p=P($,R)?$:"xy",m=B(K,wt,"always",I),y=B(G,wt,C,D),b=Y;var Z=dn.C,nn=hn.C,tn=fr.offset(),rn=g.offset(),en={x:m.x==H||p==gn,y:m.y==H||p==bn};rn[we]-=b[0],rn[Se]-=b[3];var on={x:Ri.round(rn[Se]-tn[Se]+Z),y:Ri.round(rn[we]-tn[we]+nn)};if(Zt&&(Dt.n||Dt.i||(on.x=Ri.round(tn[Se]-rn[Se]+Z)),Dt.n&&w&&(on.x*=-1),Dt.i&&w&&(on.x=Ri.round(tn[Se]-rn[Se]+(dn.H-Z)))),y.x!=C||y.y!=C||m.x==N||m.y==N||Zt){var an=g[0],un=vn?an[Hi]():{width:an[Oi],height:an[zi]},fn={w:un[ke]+b[3]+b[1],h:un[Oe]+b[0]+b[2]},cn=function(n){var t=si(n),r=t.M,e=t.W,i=t.j,o=y[i]==(n&&Zt?C:"end"),a="center"==y[i],u=y[i]==A,f=m[i]==H,c=m[i]==N,l=pe[r],s=tn[e],v=fn[r],d=rn[e],h=a?2:1,p=d+v/2,b=s+l/2,g=v<=l&&s<=d&&d+v<=s+l;f?en[i]=!0:en[i]||((u||c)&&(en[i]=c&&g,o=v<l?b<p:p<b),on[i]-=o||a?(l/h-v/h)*(n&&Zt&&w?-1:1):0)};cn(!0),cn(!1)}en.y&&delete on.y,en.x&&delete on.x,n=on}}k[De]=q(!0,U(!0,n)),k[Ie]=q(!1,U(!1,n)),v=k[De]!==xi,d=k[Ie]!==xi,(v||d)&&(0<t||z)?z?(t.complete=F,cr.animate(k,t)):(h={duration:t,complete:F},ln(r)==yt||Ii.isPlainObject(r)?(O[De]=r[0]||r.x,O[Ie]=r[1]||r.y,h.specialEasing=O):h.easing=r,cr.animate(k,h)):(v&&cr[De](k[De]),d&&cr[Ie](k[Ie]))},Nt.scrollStop=function(n,t,r){return cr.stop(n,t,r),Nt},Nt.getElements=function(n){var t={target:pr,host:br,padding:mr,viewport:yr,content:wr,scrollbarHorizontal:{scrollbar:f[0],track:l[0],handle:h[0]},scrollbarVertical:{scrollbar:p[0],track:b[0],handle:g[0]},scrollbarCorner:hr[0]};return ln(n)==wt?st(t,n):t},Nt.getState=function(n){function t(n){if(!Ii.isPlainObject(n))return n;function t(n,t){r[kt](n)&&(r[t]=r[n],delete r[n])}var r=mi({},n);return t("w",ke),t("h",Oe),delete r.c,r}var r={destroyed:!!t(Ut),sleeping:!!t(nr),autoUpdate:t(!ee),widthAuto:t(kr),heightAuto:t(Or),padding:t(Hr),overflowAmount:t(Er),hideOverflow:t(Tr),hasOverflow:t(zr),contentScrollSize:t(_r),viewportSize:t(pe),hostSize:t(xr),documentMixed:t(y)};return ln(n)==wt?st(r,n):r},Nt.ext=function(n){var t,r="added removed on contract".split(" "),e=0;if(ln(n)==wt){if(jn[kt](n))for(t=mi({},jn[n]);e<r.length;e++)delete t[r[e]]}else for(e in t={},jn)t[e]=mi({},Nt.ext(e));return t},Nt.addExt=function(n,t){var r,e,i,o,a=Ct.extension(n),u=!0;if(a){if(jn[kt](n))return Nt.ext(n);if((r=a.extensionFactory.call(Nt,mi({},a.defaultOptions),Ii,Ni))&&(i=r.contract,ln(i)==mt&&(o=i(pt),u=ln(o)==xt?o:u),u))return e=(jn[n]=r).added,ln(e)==mt&&e(t),Nt.ext(n)}else console.warn('A extension with the name "'+n+"\" isn't registered.")},Nt.removeExt=function(n){var t,r=jn[n];return!!r&&(delete jn[n],t=r.removed,ln(t)==mt&&t(),!0)},Ct.valid(function ht(n,t,r){var e,i;return o=At.defaultOptions,Wt=At.nativeScrollbarStyling,jt=mi({},At.nativeScrollbarSize),Lt=mi({},At.nativeScrollbarIsOverlaid),Rt=mi({},At.overlayScrollbarDummySize),Dt=mi({},At.rtlScrollBehavior),tt(mi({},o,t)),Et=At.cssCalc,Mt=At.msie,It=At.autoUpdateRecommended,I=At.supportTransition,vn=At.supportTransform,m=At.supportPassiveEvents,A=At.supportResizeObserver,s=At.supportMutationObserver,Ft=At.restrictedMeasuring,M=Ii(n.ownerDocument),H=M[0],u=Ii(H.defaultView||H.parentWindow),w=u[0],d=dt(M,"html"),W=dt(d,"body"),ir=Ii(n),pr=ir[0],qt=ir.is("textarea"),Bt=ir.is("body"),y=H!==bt,v=qt?ir.hasClass(fn)&&ir.parent().hasClass(xn):ir.hasClass(rn)&&ir.children(F+mn)[Si],Lt.x&&Lt.y&&!tr.nativeScrollbarsOverlaid.initialize?(vi("onInitializationWithdrawn"),v&&(rt(!0),it(!0),at(!0)),nr=Ut=!0):(Bt&&((e={}).l=Ri.max(ir[De](),d[De](),u[De]()),e.t=Ri.max(ir[Ie](),d[Ie](),u[Ie]()),i=function(){cr.removeAttr("tabindex"),Vn(cr,B,i,!0,!0)}),rt(),it(),at(),et(),ot(!0),ot(!1),function l(){var r,t=w.top!==w,e={},i={},o={};function a(n){if(f(n)){var t=c(n),r={};(ve||se)&&(r[ke]=i.w+(t.x-e.x)*o.x),(de||se)&&(r[Oe]=i.h+(t.y-e.y)*o.y),or.css(r),Ni.stpP(n)}else u(n)}function u(n){var t=n!==xi;Vn(M,[J,X,V],[Qn,a,u],!0),wi(W,Mn),hr.releaseCapture&&hr.releaseCapture(),t&&(r&&ni(),Nt.update(He)),r=!1}function f(n){var t=(n.originalEvent||n).touches!==xi;return!nr&&!Ut&&(1===Ni.mBtn(n)||t)}function c(n){return Mt&&t?{x:n.screenX,y:n.screenY}:Ni.page(n)}Xn(hr,B,function(n){f(n)&&!le&&(ee&&(r=!0,ti()),e=c(n),i.w=br[Oi]-(Vt?0:Yt),i.h=br[zi]-(Vt?0:$t),o=ut(),Vn(M,[J,X,V],[Qn,a,u]),yi(W,Mn),hr.setCapture&&hr.setCapture(),Ni.prvD(n),Ni.stpP(n))})}(),Yn(),Ze(ur,$n),Bt&&(cr[De](e.l)[Ie](e.t),bt.activeElement==n&&yr.focus&&(cr.attr("tabindex","-1"),yr.focus(),Vn(cr,B,i,!1,!0))),Nt.update(He),Pt=!0,vi("onInitialized"),c(En,function(n,t){vi(t.n,t.a)}),En=[],ln(r)==wt&&(r=[r]),Ni.isA(r)?c(r,function(n,t){Nt.addExt(t)}):Ii.isPlainObject(r)&&c(r,function(n,t){Nt.addExt(n,t)}),setTimeout(function(){I&&!Ut&&yi(or,un)},333)),Nt}(r,n,t))&&Mi(r,Nt),Nt}function Vn(n,t,r,e,i){var o=ln(t)==yt&&ln(r)==yt,a=e?"removeEventListener":"addEventListener",u=e?"off":"on",f=!o&&t.split(Re),c=0;if(o)for(;c<t[Si];c++)Vn(n,t[c],r[c],e);else for(;c<f[Si];c++)m?n[0][a](f[c],r,{passive:i||!1}):n[u](f[c],r)}function Xn(n,t,r,e){Vn(n,t,r,!1,e),Bn.push(Ni.bind(Vn,0,n,t,r,!0,e))}function Ze(n,t){if(n){var r=Ni.rO(),e="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart",i="childNodes",o=3333333,a=function(){n[Ie](o)[De](Zt?Dt.n?-o:Dt.i?0:o:o),t()};if(t){if(A)((O=n.append(bi(_n+" observed")).contents()[0])[Z]=new r(a)).observe(O);else if(9<Mt||!It){n.prepend(bi(_n,bi({c:Sn,dir:"ltr"},bi(Sn,bi(zn))+bi(Sn,bi({c:zn,style:"width: 200%; height: 200%"})))));var u,f,c,l,s=n[0][i][0][i][0],v=Ii(s[i][1]),d=Ii(s[i][0]),h=Ii(d[0][i][0]),p=s[Oi],b=s[zi],g=At.nativeScrollbarSize,m=function(){d[De](o)[Ie](o),v[De](o)[Ie](o)},y=function(){f=0,u&&(p=c,b=l,a())},w=function(n){return c=s[Oi],l=s[zi],u=c!=p||l!=b,n&&u&&!f?(Ni.cAF()(f),f=Ni.rAF()(y)):n||y(),m(),n&&(Ni.prvD(n),Ni.stpP(n)),!1},x={},_={};di(_,Ae,[-2*(g.y+1),-2*g.x,-2*g.y,-2*(g.x+1)]),Ii(s).css(_),d.on(Ne,w),v.on(Ne,w),n.on(e,function(){w(!1)}),x[ke]=o,x[Oe]=o,h.css(x),m()}else{var S=H.attachEvent,z=Mt!==xi;if(S)n.prepend(bi(_n)),dt(n,F+_n)[0].attachEvent("onresize",a);else{var T=H.createElement(gt);T.setAttribute("tabindex","-1"),T.setAttribute(St,_n),T.onload=function(){var n=this.contentDocument.defaultView;n.addEventListener("resize",a),n.document.documentElement.style.display="none"},T.type="text/html",z&&n.prepend(T),T.data="about:blank",z||n.prepend(T),n.on(e,a)}}if(n[0]===N){var k=function(){var n=or.css("direction"),t={},r=0,e=!1;return n!==L&&(r="ltr"===n?(t[Se]=0,t[xe]=He,o):(t[Se]=He,t[xe]=0,Dt.n?-o:Dt.i?0:o),ur.children().eq(0).css(t),ur[De](r)[Ie](o),L=n,e=!0),e};k(),Xn(n,Ne,function(n){return k()&&oi(),Ni.prvD(n),Ni.stpP(n),!1})}}else if(A){var O,C=(O=n.contents()[0])[Z];C&&(C.disconnect(),delete O[Z])}else vt(n.children(F+_n).eq(0))}}function Yn(){if(s){var e,i,r,o,a,u,n=Ni.mO(),f=Ni.now();O=function(n){var t=!1;return Pt&&!nr&&(c(n,function(){return!(t=function o(n){var t=n.attributeName,r=n.target,e=n.type,i="closest";if(r===wr)return null===t;if("attributes"===e&&(t===St||t===_i)&&!qt){if(t===St&&Ii(r).hasClass(rn))return nt(n.oldValue,r.getAttribute(St));if(typeof r[i]!=mt)return!0;if(null!==r[i](F+_n)||null!==r[i](F+kn)||null!==r[i](F+Rn))return!1}return!0}(this))}),t&&(o=Ni.now(),a=Or||kr,u=function(){Ut||(f=o,qt&&ii(),a?oi():Nt.update(He))},clearTimeout(r),11<o-f||!a?u():r=setTimeout(u,11))),t},z=new n(k=function(n){var t,r=!1;return Pt&&!nr&&(c(n,function(){if(e=(t=this).target,i=t.attributeName,r=i===St?nt(t.oldValue,e.className):i!==_i||t.oldValue!==e[_i].cssText)return!1}),r&&Nt.update(He)),r}),T=new n(O)}}function ni(){s&&!ee&&(z.observe(br,{attributes:!0,attributeOldValue:!0,attributeFilter:qn}),T.observe(qt?pr:wr,{attributes:!0,attributeOldValue:!0,subtree:!qt,childList:!qt,characterData:!qt,attributeFilter:qt?Un:qn}),ee=!0)}function ti(){s&&ee&&(z.disconnect(),T.disconnect(),ee=!1)}function $n(){if(!nr){var n,t={w:N[Ai],h:N[ki]};n=gi(t,_),_=t,n&&oi({k:!0})}}function Kn(){ce&&ui(!0)}function Gn(){ce&&!W.hasClass(Mn)&&ui(!1)}function Jn(){fe&&(ui(!0),clearTimeout(R),R=setTimeout(function(){fe&&!Ut&&ui(!1)},100))}function Qn(n){return Ni.prvD(n),!1}function Zn(){oi({z:!0})}function ri(n){Vn(or,X,Jn,!fe||n,!0),Vn(or,[Y,$],[Kn,Gn],!!fe||n,!0),Pt||n||or.one("mouseover",Kn)}function ei(){var n={};return Bt&&sr&&(n.w=hi(sr.css(ze+ke)),n.h=hi(sr.css(ze+Oe)),n.c=gi(n,te),n.f=!0),!!(te=n).c}function nt(n,t){var r=t!==xi&&null!==t?t.split(Re):Ae,e=n!==xi&&null!==n?n.split(Re):Ae;if(r===Ae&&e===Ae)return!1;var i,o,a,u,f,c=function h(n,t){var r,e,i=[],o=[];for(r=0;r<n.length;r++)i[n[r]]=!0;for(r=0;r<t.length;r++)i[t[r]]?delete i[t[r]]:i[t[r]]=!0;for(e in i)o.push(e);return o}(e,r),l=!1,s=Kr!==xi&&null!==Kr?Kr.split(Re):[Ae],v=$r!==xi&&null!==$r?$r.split(Re):[Ae],d=sn(Ge,c);for(-1<d&&c.splice(d,1),o=0;o<c.length;o++)if(0!==(i=c[o]).indexOf(rn)){for(f=u=!0,a=0;a<s.length;a++)if(i===s[a]){u=!1;break}for(a=0;a<v.length;a++)if(i===v[a]){f=!1;break}if(u&&f){l=!0;break}}return l}function ii(){if(!nr){var n,t,r,e,i=!Gr,o=pe.w,a=pe.h,u={},f=kr||i;return u[ze+ke]=Ae,u[ze+Oe]=Ae,u[ke]=He,ir.css(u),n=pr[Oi],t=f?Ri.max(n,pr[Ai]-1):1,u[ke]=kr?He:Le,u[ze+ke]=Le,u[Oe]=He,ir.css(u),r=pr[zi],e=Ri.max(r,pr[ki]-1),u[ke]=t,u[Oe]=e,dr.css(u),u[ze+ke]=o,u[ze+Oe]=a,ir.css(u),{F:n,P:r,U:t,q:e}}}function oi(n){clearTimeout(er),n=n||{},Je.k|=n.k,Je.z|=n.z,Je.O|=n.O;var t,r=Ni.now(),e=!!Je.k,i=!!Je.z,o=!!Je.O,a=n.T,u=0<Qe&&Pt&&!Ut&&!o&&!a&&r-rr<Qe&&!Or&&!kr;if(u&&(er=setTimeout(oi,Qe)),!(Ut||u||nr&&!a||Pt&&!o&&(t=or.is(":hidden"))||"inline"===or.css("display"))){rr=r,Je={},!Wt||Lt.x&&Lt.y?jt=mi({},At.nativeScrollbarSize):(jt.x=0,jt.y=0),be={x:3*(jt.x+(Lt.x?0:3)),y:3*(jt.y+(Lt.y?0:3))};var f=function(){return gi.apply(this,[].slice.call(arguments).concat([o]))},c={x:cr[De](),y:cr[Ie]()},l=tr.scrollbars,s=tr.textarea,v=l.visibility,d=f(v,Ur),h=l.autoHide,p=f(h,qr),b=l.clickScrolling,g=f(b,Br),m=l.dragScrolling,y=f(m,Vr),w=tr.className,x=f(w,$r),_=tr.resize,S=f(_,Xr)&&!Bt,z=tr.paddingAbsolute,T=f(z,Dr),k=tr.clipAlways,O=f(k,Ir),C=tr.sizeAutoCapable&&!Bt,A=f(C,Pr),H=tr.nativeScrollbarsOverlaid.showNativeScrollbars,N=f(H,jr),L=tr.autoUpdate,R=f(L,Fr),D=tr.overflowBehavior,I=f(D,Wr,o),M=s.dynWidth,W=f(ne,M),E=s.dynHeight,j=f(Zr,E);if(ae="n"===h,ue="s"===h,fe="m"===h,ce="l"===h,oe=l.autoHideDelay,Kr=$r,le="n"===_,se="b"===_,ve="h"===_,de="v"===_,Yr=tr.normalizeRTL,H=H&&Lt.x&&Lt.y,Ur=v,qr=h,Br=b,Vr=m,$r=w,Xr=_,Dr=z,Ir=k,Pr=C,jr=H,Fr=L,Wr=mi({},D),ne=M,Zr=E,zr=zr||{x:!1,y:!1},x&&(wi(or,Kr+Re+Ge),yi(or,w!==xi&&null!==w&&0<w.length?w:Ge)),R&&(!0===L?(ti(),Ht.add(Nt)):null===L&&It?(ti(),Ht.add(Nt)):(Ht.remove(Nt),ni())),A)if(C)if(vr?vr.show():(vr=Ii(bi(Be)),fr.before(vr)),Xt)ar.show();else{ar=Ii(bi(Ve)),gr=ar[0],vr.before(ar);var F={w:-1,h:-1};Ze(ar,function(){var n={w:gr[Oi],h:gr[zi]};gi(n,F)&&(Pt&&Or&&0<n.h||kr&&0<n.w?oi():(Pt&&!Or&&0===n.h||!kr&&0===n.w)&&oi()),F=n}),Xt=!0,null!==Et&&ar.css(Oe,Et+"(100% + 1px)")}else Xt&&ar.hide(),vr&&vr.hide();o&&(ur.find("*").trigger(Ne),Xt&&ar.find("*").trigger(Ne));var P,U=f(t=t===xi?or.is(":hidden"):t,re),q=!!qt&&"off"!==ir.attr("wrap"),B=f(q,Gr),V=or.css("direction"),X=f(V,Rr),Y=or.css("box-sizing"),$=f(Y,Ar),K={c:o,t:hi(or.css(me+we)),r:hi(or.css(me+xe)),b:hi(or.css(me+_e)),l:hi(or.css(me+Se))};try{P=Xt?gr[Hi]():null}catch(Ot){return}Vt="border-box"===Y;var G=(Zt="rtl"===V)?Se:xe,J=Zt?xe:Se,Q=!1,Z=!(!Xt||"none"===or.css(Ce))&&(0===Ri.round(P.right-P.left)&&(!!z||0<br[Ci]-Yt));if(C&&!Z){var nn=br[Oi],tn=vr.css(ke);vr.css(ke,He);var rn=br[Oi];vr.css(ke,tn),(Q=nn!==rn)||(vr.css(ke,nn+1),rn=br[Oi],vr.css(ke,tn),Q=nn!==rn)}var en=(Z||Q)&&C&&!t,on=f(en,kr),an=!en&&kr,un=!(!Xt||!C||t)&&0===Ri.round(P.bottom-P.top),fn=f(un,Or),cn=!un&&Or,ln="-"+ke,sn=en&&Vt||!Vt,vn=un&&Vt||!Vt,dn={c:o,t:vn?hi(or.css(ye+we+ln),!0):0,r:sn?hi(or.css(ye+xe+ln),!0):0,b:vn?hi(or.css(ye+_e+ln),!0):0,l:sn?hi(or.css(ye+Se+ln),!0):0},hn={c:o,t:hi(or.css(ge+we)),r:hi(or.css(ge+xe)),b:hi(or.css(ge+_e)),l:hi(or.css(ge+Se))},pn={h:String(or.css(Te+Oe)),w:String(or.css(Te+ke))},bn={},gn={},mn=function(){return{w:br[Ci],h:br[Ti]}},yn=function(){return{w:mr[Oi]+Ri.max(0,wr[Ci]-wr[Ai]),h:mr[zi]+Ri.max(0,wr[Ti]-wr[ki])}},wn=Yt=K.l+K.r,xn=$t=K.t+K.b;if(wn*=z?1:0,xn*=z?1:0,K.c=f(K,Hr),Kt=dn.l+dn.r,Gt=dn.t+dn.b,dn.c=f(dn,Nr),Jt=hn.l+hn.r,Qt=hn.t+hn.b,hn.c=f(hn,Lr),pn.ih=hi(pn.h),pn.iw=hi(pn.w),pn.ch=-1<pn.h.indexOf("px"),pn.cw=-1<pn.w.indexOf("px"),pn.c=f(pn,Cr),re=t,Gr=q,Rr=V,Ar=Y,kr=en,Or=un,Hr=K,Nr=dn,Lr=hn,Cr=pn,X&&Xt&&ar.css(Ce,J),K.c||X||T||on||fn||$||A){var _n={},Sn={};di(gn,ge,[-K.t,-K.r,-K.b,-K.l]),z?(di(_n,Ae,[K.t,K.r,K.b,K.l]),di(qt?Sn:bn,me)):(di(_n,Ae),di(qt?Sn:bn,me,[K.t,K.r,K.b,K.l])),fr.css(_n),ir.css(Sn)}pe=yn();var zn=!!qt&&ii(),Tn=qt&&f(zn,Qr),kn=qt&&zn?{w:M?zn.U:zn.F,h:E?zn.q:zn.P}:{};if(Qr=zn,un&&(fn||T||$||pn.c||K.c||dn.c)?bn[Oe]=He:(fn||T)&&(bn[Te+Oe]=Ae,bn[Oe]=Le),en&&(on||T||$||pn.c||K.c||dn.c||X)?(bn[ke]=He,gn[Te+ke]=Le):(on||T)&&(bn[Te+ke]=Ae,bn[ke]=Le,bn[Ce]=Ae,gn[Te+ke]=Ae),en?(pn.cw||(bn[Te+ke]=Ae),gn[ke]=He,bn[ke]=He,bn[Ce]=J):gn[ke]=Ae,un?(pn.ch||(bn[Te+Oe]=Ae),gn[Oe]=kn.h||wr[Ti]):gn[Oe]=Ae,C&&vr.css(gn),lr.css(bn),bn={},gn={},e||i||Tn||X||$||T||on||en||fn||un||pn.c||N||I||O||S||d||p||y||g||W||j||B){var On="overflow",Cn=On+"-x",An=On+"-y",Hn=Ft?Lt.x||Lt.y||pe.w<be.y||pe.h<be.x||un||U:un,Nn={},Ln=zr.y&&Tr.ys&&!H&&!Wt?Lt.y?cr.css(G):-jt.y:0,Rn=zr.x&&Tr.xs&&!H&&!Wt?Lt.x?cr.css(_e):-jt.x:0;di(Nn,Ae),cr.css(Nn),Mt!==xi&&(Hn=!1),Hn&&lr.css(On,"hidden");var Dn=pi(),In=Ft&&!Hn?yr:Dn,Mn={w:kn.w||Dn[Ci],h:kn.h||Dn[Ti]},Wn=Ri.max(Dn[Ai],In[Ai]),En=Ri.max(Dn[ki],In[ki]);Nn[_e]=cn?Ae:Rn,Nn[G]=an?Ae:Ln,cr.css(Nn),pe=yn();var jn=mn(),Fn={w:Ri.max((en?Mn.w:Wn)+wn,jn.w),h:Ri.max((un?Mn.h:En)+xn,jn.h)};if(Fn.c=f(Fn,Mr),Mr=Fn,C){(Fn.c||un||en)&&(gn[ke]=Fn.w,gn[Oe]=Fn.h,qt||(Mn={w:Dn[Ci],h:Dn[Ti]}));var Pn={},Un=function(n){var t=si(n),r=t.M,e=t.B,i=n?en:un,o=n?Kt:Gt,a=n?Yt:$t,u=n?Jt:Qt,f=gn[e]+(Vt?o:-a);i&&(i||!dn.c)||(gn[e]=jn[r]-(Vt?0:a+o)-1-u),i&&pn["c"+r]&&pn["i"+r]===f&&(gn[e]=f+(Vt?0:a)+1),!(i&&Mn[r]<pe[r])||n&&qt&&q||(qt&&(Pn[e]=hi(dr.css(e))-1),gn[e]-=1),0<Mn[r]&&(gn[e]=Ri.max(1,gn[e]))};Un(!0),Un(!1),qt&&dr.css(Pn),vr.css(gn)}en&&(bn[ke]=Le),!en||Vt||ee||(bn[Ce]="none"),lr.css(bn),bn={};var qn={w:Ri.max(Dn[Ai],In[Ai]),h:Ri.max(Dn[ki],In[ki])};qn.c=i=f(qn,_r),_r=qn,Hn&&lr.css(On,Ae),pe=yn(),e=f(jn=mn(),xr),xr=jn;var Bn=qt&&(0===pe.w||0===pe.h),Vn=Er,Xn={},Yn={},$n={},Kn={},Gn={},Jn={},Qn={},Zn=mr[Hi](),nt=function(n){var t=si(n),r=si(!n).j,e=t.j,i=t.M,o=t.B,a=Ne+t.V+"Max",u=Zn[o]?Ri.abs(Zn[o]-pe[i]):0,f=Vn&&0<Vn[e]&&0===yr[a];Xn[e]="v-s"===D[e],Yn[e]="v-h"===D[e],$n[e]="s"===D[e],Kn[e]=Ri.max(0,Ri.round(100*(qn[i]-pe[i]))/100),Kn[e]*=Bn||f&&0<u&&u<1?0:1,Gn[e]=0<Kn[e],Jn[e]=Xn[e]||Yn[e]?Gn[r]&&!Xn[r]&&!Yn[r]:Gn[e],Jn[e+"s"]=!!Jn[e]&&($n[e]||Xn[e]),Qn[e]=Gn[e]&&Jn[e+"s"]};if(nt(!0),nt(!1),Kn.c=f(Kn,Er),Er=Kn,Gn.c=f(Gn,zr),zr=Gn,Jn.c=f(Jn,Tr),Tr=Jn,Lt.x||Lt.y){var tt,rt={},et={},it=o;(Gn.x||Gn.y)&&(et.w=Lt.y&&Gn.y?qn.w+Rt.y:Ae,et.h=Lt.x&&Gn.x?qn.h+Rt.x:Ae,it=f(et,Sr),Sr=et),(Gn.c||Jn.c||qn.c||X||on||fn||en||un||N)&&(bn[ge+J]=bn[ye+J]=Ae,tt=function(n){var t=si(n),r=si(!n),e=t.j,i=n?_e:G,o=n?un:en;Lt[e]&&Gn[e]&&Jn[e+"s"]?(bn[ge+i]=o?H?Ae:Rt[e]:Ae,bn[ye+i]=n&&o||H?Ae:Rt[e]+"px solid transparent"):(et[r.M]=bn[ge+i]=bn[ye+i]=Ae,it=!0)},Wt?H?wi(cr,Ue):yi(cr,Ue):(tt(!0),tt(!1))),H&&(et.w=et.h=Ae,it=!0),it&&!Wt&&(rt[ke]=Jn.y?et.w:Ae,rt[Oe]=Jn.x?et.h:Ae,sr||(sr=Ii(bi(qe)),cr.prepend(sr)),sr.css(rt)),lr.css(bn)}var ot,at={};_n={};if((e||Gn.c||Jn.c||qn.c||I||$||N||X||O||fn)&&(at[J]=Ae,(ot=function(n){function t(){at[a]=Ae,he[e.M]=0}var r=si(n),e=si(!n),i=r.j,o=r.X,a=n?_e:G;Gn[i]&&Jn[i+"s"]?(at[On+o]=Ne,H||Wt?t():(at[a]=-(Lt[i]?Rt[i]:jt[i]),he[e.M]=Lt[i]?Rt[e.j]:0)):(at[On+o]=Ae,t())})(!0),ot(!1),!Wt&&(pe.h<be.x||pe.w<be.y)&&(Gn.x&&Jn.x&&!Lt.x||Gn.y&&Jn.y&&!Lt.y)?(at[me+we]=be.x,at[ge+we]=-be.x,at[me+J]=be.y,at[ge+J]=-be.y):at[me+we]=at[ge+we]=at[me+J]=at[ge+J]=Ae,at[me+G]=at[ge+G]=Ae,Gn.x&&Jn.x||Gn.y&&Jn.y||Bn?qt&&Bn&&(_n[Cn]=_n[An]="hidden"):(!k||Yn.x||Xn.x||Yn.y||Xn.y)&&(qt&&(_n[Cn]=_n[An]=Ae),at[Cn]=at[An]="visible"),fr.css(_n),cr.css(at),at={},(Gn.c||$||on||fn)&&(!Lt.x||!Lt.y))){var ut=wr[_i];ut.webkitTransform="scale(1)",ut.display="run-in",wr[zi],ut.display=Ae,ut.webkitTransform=Ae}if(bn={},X||on||fn)if(Zt&&en){var ft=lr.css(Ce),ct=Ri.round(lr.css(Ce,Ae).css(Se,Ae).position().left);lr.css(Ce,ft),ct!==Ri.round(lr.position().left)&&(bn[Se]=ct)}else bn[Se]=Ae;if(lr.css(bn),qt&&i){var lt=function Ct(){var n=pr.selectionStart;if(n===xi)return;var t,r,e=ir.val(),i=e[Si],o=e.split("\n"),a=o[Si],u=e.substr(0,n).split("\n"),f=0,c=0,l=u[Si],s=u[u[Si]-1][Si];for(r=0;r<o[Si];r++)t=o[r][Si],c<t&&(f=r+1,c=t);return{Y:l,$:s,K:a,G:c,J:f,Q:n,Z:i}}();if(lt){var st=Jr===xi||lt.K!==Jr.K,vt=lt.Y,dt=lt.$,ht=lt.J,pt=lt.K,bt=lt.G,gt=lt.Q,mt=lt.Z<=gt&&ie,yt={x:q||dt!==bt||vt!==ht?-1:Er.x,y:(q?mt||st&&Vn&&c.y===Vn.y:(mt||st)&&vt===pt)?Er.y:-1};c.x=-1<yt.x?Zt&&Yr&&Dt.i?0:yt.x:c.x,c.y=-1<yt.y?yt.y:c.y}Jr=lt}Zt&&Dt.i&&Lt.y&&Gn.x&&Yr&&(c.x+=he.w||0),en&&or[De](0),un&&or[Ie](0),cr[De](c.x)[Ie](c.y);var wt="v"===v,xt="h"===v,_t="a"===v,St=Ni.bind(ai,0,!0,!0,Qn.x),zt=Ni.bind(ai,0,!1,!0,Qn.y),Tt=Ni.bind(ai,0,!0,!1,Qn.x),kt=Ni.bind(ai,0,!1,!1,Qn.y);Jn.x||Jn.y?yi(or,je):wi(or,je),Jn.x?yi(or,Fe):wi(or,Fe),Jn.y?yi(or,Pe):wi(or,Pe),X&&(Zt?yi(or,Me):wi(or,Me)),Bt&&yi(or,We),S&&(wi(hr,[Xe,Ye,$e,Ke].join(Re)),le?yi(or,We):(wi(or,We),yi(hr,Xe),se?yi(hr,Ye):ve?yi(hr,$e):de&&yi(hr,Ke))),(d||I||Jn.c||Gn.c||N)&&(H?N&&(wi(or,Ee),H&&(Tt(),kt())):_t?(Qn.x?St():Tt(),Qn.y?zt():kt()):wt?(St(),zt()):xt&&(Tt(),kt())),(p||N)&&(ce||fe?(ri(!0),ri()):ri(!0),ae?ui(!0):ui(!1,!0)),(e||Kn.c||fn||on||S||$||T||N||X)&&(fi(!0),ci(!0),fi(!1),ci(!1)),g&&li(!0,b),y&&li(!1,m),X&&vi("onDirectionChanged",{isRTL:Zt,dir:V}),e&&vi("onHostSizeChanged",{width:xr.w,height:xr.h}),i&&vi("onContentSizeChanged",{width:_r.w,height:_r.h}),(Gn.c||Jn.c)&&vi("onOverflowChanged",{x:Gn.x,y:Gn.y,xScrollable:Jn.xs,yScrollable:Jn.ys,clipped:Jn.x||Jn.y}),Kn.c&&vi("onOverflowAmountChanged",{x:Kn.x,y:Kn.y})}Bt&&te&&(zr.c||te.c)&&(te.f||ei(),Lt.y&&zr.x&&lr.css(ze+ke,te.w+Rt.y),Lt.x&&zr.y&&lr.css(ze+Oe,te.h+Rt.x),te.c=!1),vi("onUpdated",{forced:o})}}function tt(n){var t=Li.p(n,Li.d,!0,a);return a=mi({},a,t.g),tr=mi({},tr,t.m),t.m}function rt(e){function n(){var r=e?ir:or;c(a,function(n,t){ln(t)==wt&&(n==St?r.addClass(t):r.attr(n,t))})}var t="parent",r=fn+Re+Tn,i=qt?Re+Tn:Ae,o=tr.textarea.inheritedAttrs,a={},u=[rn,en,We,Me,on,an,un,Ee,je,Fe,Pe,Ge,fn,Tn,$r].join(Re),f={};or=or||(qt?v?ir[t]()[t]()[t]()[t]():Ii(bi(en)):ir),lr=lr||lt(xn+i),cr=cr||lt(yn+i),fr=fr||lt(mn+i),ur=ur||lt("os-resize-observer-host"),dr=dr||(qt?lt(cn):xi),e&&wi(or,u),o=ln(o)==wt?o.split(Re):o,ln(o)==yt&&qt&&c(o,function(n,t){ln(t)==wt&&(a[t]=e?or.attr(t):ir.attr(t))}),e?(v&&Pt?(ur.children().remove(),c([fr,cr,lr,dr],function(n,t){t&&wi(t.removeAttr(_i),Wn)}),yi(or,qt?en:rn)):(vt(ur),lr.contents().unwrap().unwrap().unwrap(),qt&&(ir.unwrap(),vt(or),vt(dr),n())),qt&&ir.removeAttr(_i),Bt&&wi(d,tn)):(qt&&(tr.sizeAutoCapable||(f[ke]=ir.css(ke),f[Oe]=ir.css(Oe)),v||ir.addClass(Tn).wrap(or),or=ir[t]().css(f)),v||(yi(ir,qt?r:rn),or.wrapInner(lr).wrapInner(cr).wrapInner(fr).prepend(ur),lr=dt(or,F+xn),cr=dt(or,F+yn),fr=dt(or,F+mn),qt&&(lr.prepend(dr),n())),Wt&&yi(cr,Ue),Lt.x&&Lt.y&&yi(cr,wn),Bt&&yi(d,tn),N=ur[0],br=or[0],mr=fr[0],yr=cr[0],wr=lr[0])}function et(){var r,t,e=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],i=[],n="focus";function o(n){ii(),Nt.update(He),n&&It&&clearInterval(r)}qt?(9<Mt||!It?Xn(ir,"input",o):Xn(ir,[K,G],[function a(n){var t=n.keyCode;sn(t,e)<0&&(i[Si]||(o(),r=setInterval(o,1e3/60)),sn(t,i)<0&&i.push(t))},function u(n){var t=n.keyCode,r=sn(t,i);sn(t,e)<0&&(-1<r&&i.splice(r,1),i[Si]||o(!0))}]),Xn(ir,[Ne,"drop",n,n+"out"],[function f(n){return ir[De](Dt.i&&Yr?9999999:0),ir[Ie](0),Ni.prvD(n),Ni.stpP(n),!1},function c(n){setTimeout(function(){Ut||o()},50)},function l(){ie=!0,yi(or,n)},function s(){ie=!1,i=[],wi(or,n),o(!0)}])):Xn(lr,Q,function v(n){!0!==Fr&&function s(n){if(!Pt)return!0;function t(n,t){for(var r=0;r<n[Si];r++)if(n[r]===t)return!0;return!1}var r="flex-grow",e="flex-shrink",i="flex-basis",o=[ke,ze+ke,Te+ke,ge+Se,ge+xe,Se,xe,"font-weight","word-spacing",r,e,i],a=[me+Se,me+xe,ye+Se+ke,ye+xe+ke],u=[Oe,ze+Oe,Te+Oe,ge+we,ge+_e,we,_e,"line-height",r,e,i],f=[me+we,me+_e,ye+we+ke,ye+_e+ke],c="s"===Wr.x||"v-s"===Wr.x,l=!1;return("s"===Wr.y||"v-s"===Wr.y)&&((l=t(u,n))||Vt||(l=t(f,n))),c&&!l&&((l=t(o,n))||Vt||(l=t(a,n))),l}((n=n.originalEvent||n).propertyName)&&Nt.update(He)}),Xn(cr,Ne,function d(n){nr||(t!==xi?clearTimeout(t):((ue||fe)&&ui(!0),ct()||yi(or,Ee),vi("onScrollStart",n)),j||(ci(!0),ci(!1)),vi("onScroll",n),t=setTimeout(function(){Ut||(clearTimeout(t),t=xi,(ue||fe)&&ui(!1),ct()||wi(or,Ee),vi("onScrollStop",n))},175))},!0)}function it(i){function o(n){var t=lt(kn+Re+(n?Dn:In),!0),r=lt(On,t),e=lt(An,t);return v||i||(t.append(r),r.append(e)),{nn:t,tn:r,rn:e}}var n,t;function r(n){var t=si(n),r=t.nn,e=t.tn,i=t.rn;v&&Pt?c([r,e,i],function(n,t){wi(t.removeAttr(_i),Wn)}):vt(r||o(n).nn)}i?(r(!0),r()):(n=o(!0),t=o(),f=n.nn,l=n.tn,h=n.rn,p=t.nn,b=t.tn,g=t.rn,v||(fr.after(p),fr.after(f)))}function ot(_){var S,i,z,T,r=si(_),k=r.en,t=w.top!==w,O=r.j,e=r.X,C=Ne+r.V,o="active",a="snapHandle",A=1,u=[16,17];function f(n){return Mt&&t?n["screen"+e]:Ni.page(n)[O]}function c(n){return tr.scrollbars[n]}function l(){A=.5}function s(){A=1}function v(n){-1<sn(n.keyCode,u)&&l()}function H(n){-1<sn(n.keyCode,u)&&s()}function N(n){var t=(n.originalEvent||n).touches!==xi;return!(nr||Ut||ct()||!Vr||t&&!c("touchSupport"))&&(1===Ni.mBtn(n)||t)}function d(n){if(N(n)){var t=k.D,r=k.L,e=k.H*((f(n)-z)*T/(t-r));e=isFinite(e)?e:0,Zt&&_&&!Dt.i&&(e*=-1),cr[C](Ri.round(i+e)),j&&ci(_,i+e),m||Ni.prvD(n)}else L(n)}function L(n){if(n=n||n.originalEvent,Vn(M,[X,V,K,G,J],[d,L,v,H,Qn],!0),j&&ci(_,!0),j=!1,wi(W,Mn),wi(r.rn,o),wi(r.tn,o),wi(r.nn,o),z=i=xi,T=1,s(),S!==xi&&(Nt.scrollStop(),clearTimeout(S),S=xi),n){var t=br[Hi]();n.clientX>=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom||Gn(),(ue||fe)&&ui(!1)}}function R(n){i=cr[C](),i=isNaN(i)?0:i,(Zt&&_&&!Dt.n||!Zt)&&(i=i<0?0:i),T=ut()[O],z=f(n),j=!c(a),yi(W,Mn),yi(r.rn,o),yi(r.nn,o),Vn(M,[X,V,J],[d,L,Qn]),!Mt&&y||Ni.prvD(n),Ni.stpP(n)}Xn(r.rn,B,function h(n){N(n)&&R(n)}),Xn(r.tn,[B,Y,$],[function D(n){if(N(n)){var d,h=Ri.round(pe[r.M]),p=r.tn.offset()[r.W],t=n.ctrlKey,b=n.shiftKey,g=b&&t,m=!0,y=function(n){j&&ci(_,n)},w=function(){y(),R(n)},x=function(){if(!Ut){var n=(z-p)*T,t=k.N,r=k.D,e=k.L,i=k.H,o=k.C,a=270*A,u=m?Ri.max(400,a):a,f=i*((n-e/2)/(r-e)),c=Zt&&_&&(!Dt.i&&!Dt.n||Yr),l=c?t<n:n<t,s={},v={easing:"linear",step:function(n){j&&(cr[C](n),ci(_,n))}};f=isFinite(f)?f:0,f=Zt&&_&&!Dt.i?i-f:f,b?(cr[C](f),g?(f=cr[C](),cr[C](o),f=c&&Dt.i?i-f:f,f=c&&Dt.n?-f:f,s[O]=f,Nt.scroll(s,mi(v,{duration:130,complete:w}))):w()):(d=m?l:d,(c?d?n<=t+e:t<=n:d?t<=n:n<=t+e)?(clearTimeout(S),Nt.scrollStop(),S=xi,y(!0)):(S=setTimeout(x,u),s[O]=(d?"-=":"+=")+h,Nt.scroll(s,mi(v,{duration:a}))),m=!1)}};t&&l(),T=ut()[O],z=Ni.page(n)[O],j=!c(a),yi(W,Mn),yi(r.tn,o),yi(r.nn,o),Vn(M,[V,K,G,J],[L,v,H,Qn]),x(),Ni.prvD(n),Ni.stpP(n)}},function p(n){E=!0,(ue||fe)&&ui(!0)},function b(n){E=!1,(ue||fe)&&ui(!1)}]),Xn(r.nn,B,function g(n){Ni.stpP(n)}),I&&Xn(r.nn,Q,function(n){n.target===r.nn[0]&&(fi(_),ci(_))})}function ai(n,t,r){var e=n?on:an,i=n?f:p;t?wi(or,e):yi(or,e),r?wi(i,Nn):yi(i,Nn)}function ui(n,t){if(clearTimeout(C),n)wi(f,Ln),wi(p,Ln);else{var r,e=function(){E||Ut||(!(r=h.hasClass("active")||g.hasClass("active"))&&(ue||fe||ce)&&yi(f,Ln),!r&&(ue||fe||ce)&&yi(p,Ln))};0<oe&&!0!==t?C=setTimeout(e,oe):e()}}function fi(n){var t={},r=si(n),e=r.en,i=Ri.min(1,(xr[r.M]-(Dr?n?Yt:$t:0))/_r[r.M]);t[r.B]=Ri.floor(100*i*1e6)/1e6+"%",ct()||r.rn.css(t),e.L=r.rn[0]["offset"+r["in"]],e.R=i}function ci(n,t){function r(n){return isNaN(n/y)?0:Ri.max(0,Ri.min(1,n/y))}function e(n){var t=g*n;return t=isNaN(t)?0:t,t=u&&!Dt.i?b-p-t:t,t=Ri.max(0,t)}var i,o,a=ln(t)==xt,u=Zt&&n,f=si(n),c=f.en,l="translate(",s=Ot.u("transform"),v=Ot.u("transition"),d=n?cr[De]():cr[Ie](),h=t===xi||a?d:t,p=c.L,b=f.tn[0]["offset"+f["in"]],g=b-p,m={},y=(yr[Ne+f["in"]]-yr["client"+f["in"]])*(Dt.n&&u?-1:1),w=r(d),x=e(r(h)),_=e(w);c.H=y,c.C=d,c.A=w,vn?(i=u?-(b-p-x):x,o=n?l+i+"px, 0)":l+"0, "+i+"px)",m[s]=o,I&&(m[v]=a&&1<Ri.abs(x-c.N)?function S(n){var t=Ot.u("transition"),r=n.css(t);if(r)return r;for(var e,i,o,a="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",u=new RegExp(a),f=new RegExp("^("+a+")+$"),c="property duration timing-function delay".split(" "),l=[],s=0,v=function(n){if(e=[],!n.match(f))return n;for(;n.match(u);)e.push(RegExp.$1),n=n.replace(u,Ae);return e};s<c[Si];s++)for(i=v(n.css(t+"-"+c[s])),o=0;o<i[Si];o++)l[o]=(l[o]?l[o]+Re:Ae)+i[o];return l.join(", ")}(f.rn)+", "+(s+Re+250)+"ms":Ae)):m[f.W]=x,ct()||(f.rn.css(m),vn&&I&&a&&f.rn.one(Q,function(){Ut||f.rn.css(v,Ae)})),c.N=x,c.I=_,c.D=b}function li(n,t){var r=t?"removeClass":"addClass",e=n?b:g,i=n?Cn:Hn;(n?l:h)[r](i),e[r](i)}function si(n){return{B:n?ke:Oe,"in":n?"Width":"Height",W:n?Se:we,V:n?"Left":"Top",j:n?bn:gn,X:n?"X":"Y",M:n?"w":"h",an:n?"l":"t",tn:n?l:b,rn:n?h:g,nn:n?f:p,en:n?dn:hn}}function at(n){hr=hr||lt(Rn,!0),n?v&&Pt?wi(hr.removeAttr(_i),Wn):vt(hr):v||or.append(hr)}function vi(n,t){if(Pt){var r,e=tr.callbacks[n],i=n;"on"===i.substr(0,2)&&(i=i.substr(2,1).toLowerCase()+i.substr(3)),ln(e)==mt&&e.call(Nt,t),c(jn,function(){ln((r=this).on)==mt&&r.on(i,t)})}else Ut||En.push({n:n,a:t})}function di(n,t,r){r===xi&&(r=[Ae,Ae,Ae,Ae]),n[t+we]=r[0],n[t+xe]=r[1],n[t+_e]=r[2],n[t+Se]=r[3]}function ut(){var n=mr[Hi]();return{x:vn&&1/(Ri.round(n.width)/mr[Oi])||1,y:vn&&1/(Ri.round(n.height)/mr[zi])||1}}function ft(n){var t="ownerDocument",r="HTMLElement",e=n&&n[t]&&n[t].parentWindow||pt;return typeof e[r]==gt?n instanceof e[r]:n&&typeof n==gt&&null!==n&&1===n.nodeType&&typeof n.nodeName==wt}function hi(n,t){var r=t?parseFloat(n):parseInt(n,10);return isNaN(r)?0:r}function ct(){return jr&&Lt.x&&Lt.y}function pi(){return qt?dr[0]:wr}function bi(r,n){return"<div "+(r?ln(r)==wt?'class="'+r+'"':function(){var n,t=Ae;if(Ii.isPlainObject(r))for(n in r)t+=("c"===n?"class":n)+'="'+r[n]+'" ';return t}():Ae)+">"+(n||Ae)+"</div>"}function lt(n,t){var r=ln(t)==xt,e=r?or:t||or;return v&&!e[Si]?null:v?e[r?"children":"find"](F+n.replace(/\s/g,F)).eq(0):Ii(bi(n))}function st(n,t){for(var r,e=t.split(F),i=0;i<e.length;i++){if(!n[kt](e[i]))return;r=n[e[i]],i<e.length&&ln(r)==gt&&(n=r)}return r}function gi(n,t,r){if(r)return r;if(ln(n)!=gt||ln(t)!=gt)return n!==t;for(var e in n)if("c"!==e){if(!n[kt](e)||!t[kt](e))return!0;if(gi(n[e],t[e]))return!0}return!1}function mi(){return Ii.extend.apply(this,[!0].concat([].slice.call(arguments)))}function yi(n,t){return e.addClass.call(n,t)}function wi(n,t){return e.removeClass.call(n,t)}function vt(n){return e.remove.call(n)}function dt(n,t){return e.find.call(n,t).eq(0)}}return Di&&Di.fn&&(Di.fn.overlayScrollbars=function(n,t){return Di.isPlainObject(n)?(Di.each(this,function(){y(this,n,t)}),this):y(this,n)}),y});
|
|
|
|
$(function() {
|
|
$('.b-tabs__wrapperItemInner').overlayScrollbars({ callbacks: { onOverflowChanged: function (args) {
|
|
var tree_item = $(this.getElements().content).find('div.b-tree');
|
|
if (args.xScrollable)
|
|
tree_item.addClass('hscroll');
|
|
else
|
|
tree_item.removeClass('hscroll');
|
|
if (args.yScrollable)
|
|
tree_item.addClass('vscroll');
|
|
else
|
|
tree_item.removeClass('vscroll');
|
|
}}});
|
|
$('.b-article__wrapper').overlayScrollbars({ callbacks: { onOverflowChanged: function (args) {
|
|
var article_item = $(this.getElements().content).find('div.b-article__innerWrapper');
|
|
if (1 == 0 || is_touch_device())
|
|
article_item = $(this.getElements().content).find('table.b-article__footerLayout');
|
|
if (args.xScrollable)
|
|
article_item.addClass('hscroll');
|
|
else
|
|
article_item.removeClass('hscroll');
|
|
if (args.yScrollable)
|
|
$(this.getElements().padding).addClass('vscroll');
|
|
else
|
|
$(this.getElements().padding).removeClass('vscroll');
|
|
}}});
|
|
});
|
|
|
|
/*js/libs/jquery.disable.text.select.js*/
|
|
(function($){if($.browser.mozilla){$.fn.disableTextSelect=function(){return this.each(function(){$(this).css({'MozUserSelect':'none'});});};$.fn.enableTextSelect=function(){return this.each(function(){$(this).css({'MozUserSelect':''});});};}else if($.browser.msie){$.fn.disableTextSelect=function(){return this.each(function(){$(this).bind('selectstart.disableTextSelect',function(){return false;});});};$.fn.enableTextSelect=function(){return this.each(function(){$(this).unbind('selectstart.disableTextSelect');});};}else{$.fn.disableTextSelect=function(){return this.each(function(){$(this).bind('mousedown.disableTextSelect',function(){return false;});});};$.fn.enableTextSelect=function(){return this.each(function(){$(this).unbind('mousedown.disableTextSelect');});};}})(jQuery);
|
|
/*js/libs/getscrollbarwidth.js*/
|
|
/*! Copyright (c) 2008 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
|
|
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
|
*/
|
|
|
|
/**
|
|
* Gets the width of the OS scrollbar
|
|
*/
|
|
(function($) {
|
|
var scrollbarWidth = 0;
|
|
$.getScrollbarWidth = function() {
|
|
if ( !scrollbarWidth ) {
|
|
if ( $.browser.msie ) {
|
|
var $textarea1 = $('<textarea cols="10" rows="2"></textarea>')
|
|
.css({ position: 'absolute', top: -1000, left: -1000 }).appendTo('body'),
|
|
$textarea2 = $('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>')
|
|
.css({ position: 'absolute', top: -1000, left: -1000 }).appendTo('body');
|
|
scrollbarWidth = $textarea1.width() - $textarea2.width();
|
|
$textarea1.add($textarea2).remove();
|
|
} else {
|
|
var $div = $('<div />')
|
|
.css({ width: 100, height: 100, overflow: 'auto', position: 'absolute', top: -1000, left: -1000 })
|
|
.prependTo('body').append('<div />').find('div')
|
|
.css({ width: '100%', height: 200 });
|
|
scrollbarWidth = 100 - $div.width();
|
|
$div.parent().remove();
|
|
}
|
|
}
|
|
return scrollbarWidth;
|
|
};
|
|
})(jQuery);
|
|
/*js/libs/jquery.highlight.js*/
|
|
jQuery.extend({highlight:function(e,r,i,n,a){if(3===e.nodeType){var t=(a?jQuery.removeDiacritcs(e.data):e.data).match(r);if(t){var c=document.createElement(i||"span");c.className=n||"highlight";var u=e.data.indexOf(t[1],t.index),l=e.splitText(u);l.splitText(t[1].length);var d=l.cloneNode(!0);return c.appendChild(d),l.parentNode.replaceChild(c,l),1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&(e.tagName!==i.toUpperCase()||e.className!==n))for(var o=0;o<e.childNodes.length;o++)o+=jQuery.highlight(e.childNodes[o],r,i,n,a);return 0},removeDiacritcs:function(e){return e.replace(/[\u00c0-\u00c6]/g,"A").replace(/[\u00e0-\u00e6]/g,"a").replace(/[\u00c7]/g,"C").replace(/[\u00e7]/g,"c").replace(/[\u00c8-\u00cb]/g,"E").replace(/[\u00e8-\u00eb]/g,"e").replace(/[\u00cc-\u00cf]/g,"I").replace(/[\u00ec-\u00ef]/g,"i").replace(/[\u00d1|\u0147]/g,"N").replace(/[\u00f1|\u0148]/g,"n").replace(/[\u00d2-\u00d8|\u0150]/g,"O").replace(/[\u00f2-\u00f8|\u0151]/g,"o").replace(/[\u0160]/g,"S").replace(/[\u0161]/g,"s").replace(/[\u00d9-\u00dc]/g,"U").replace(/[\u00f9-\u00fc]/g,"u").replace(/[\u00dd]/g,"Y").replace(/[\u00fd]/g,"y")},normalize:function(e){if(e){if(3==e.nodeType)for(;e.nextSibling&&3==e.nextSibling.nodeType;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else jQuery.normalize(e.firstChild);jQuery.normalize(e.nextSibling)}}}),jQuery.fn.removeHighlight=function(){var e="drex_highlight",r="span";return this.find(r+"."+e).each(function(){var e=this.parentNode;e.replaceChild(this.firstChild,this),jQuery.normalize(e)}).end()},jQuery.fn.highlight=function(e){var r={className:"drex_highlight",element:"span",caseSensitive:!1,wordsOnly:!1,wordsBoundary:"\\b",ignoreDiacritics:!1};if("string"==typeof e&&(e=[e]),e=jQuery.grep(e,function(e){return""!=e}),0===(e=jQuery.map(e,function(e){return r.ignoreDiacritics&&(e=jQuery.removeDiacritcs(e)),e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")})).length)return this;var i=r.caseSensitive?"":"i",n="("+e.join("|")+")";r.wordsOnly&&(n=(r.wordsBoundaryStart||r.wordsBoundary)+n+(r.wordsBoundaryEnd||r.wordsBoundary));var a=new RegExp(n,i);return this.each(function(){jQuery.highlight(this,a,r.element,r.className,r.ignoreDiacritics)})};
|
|
|
|
/*js/custom-button.js*/
|
|
function CustomButton( $submit ){
|
|
this.$submit = $submit;
|
|
}
|
|
|
|
|
|
CustomButton.prototype = {
|
|
constructor: CustomButton,
|
|
|
|
CLASS_HOVERED: "m-button__hovered",
|
|
CLASS_HOVERED_YES: "m-button__hovered__yes",
|
|
CLASS_PRESSED: "m-button__pressed",
|
|
CLASS_DISABLED: "m-button__disabled",
|
|
|
|
$button: null,
|
|
$submit: null,
|
|
$text: null,
|
|
|
|
run: function() {
|
|
this.doSetDomCached();
|
|
this.disableSelection();
|
|
this.flipButtonText();
|
|
this.doBindEvents();
|
|
},
|
|
|
|
doSetDomCached: function() {
|
|
this.$button = this.$submit.closest( ".b-button" );
|
|
this.$text = this.$button.find( ".b-button__text" );
|
|
},
|
|
|
|
disableSelection: function() {
|
|
this.$button.disableTextSelect();
|
|
},
|
|
|
|
flipButtonText: function() {
|
|
this.$text.text( this.$submit.prop( "value" ) );
|
|
this.$submit.prop( "value", "" );
|
|
},
|
|
|
|
doBindEvents: function() {
|
|
var that = this;
|
|
|
|
this.$submit.on( "disable", function() {
|
|
$( this ).prop( "disabled", "disabled" );
|
|
that.$button.addClass( that.CLASS_DISABLED );
|
|
});
|
|
|
|
this.$submit.on( "enable", function() {
|
|
$( this ).prop( "disabled", "" );
|
|
that.$button.removeClass( that.CLASS_DISABLED );
|
|
});
|
|
|
|
|
|
this.$button.hover(
|
|
function() {
|
|
$( this ).addClass( that.CLASS_HOVERED_YES );
|
|
|
|
if ( !$( this ).hasClass( that.CLASS_DISABLED ) ) {
|
|
if ( !$( this ).hasClass( that.CLASS_PRESSED ) ) {
|
|
$( this ).addClass( that.CLASS_HOVERED );
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
|
|
function() {
|
|
$( this ).removeClass( that.CLASS_HOVERED_YES );
|
|
$( this ).removeClass( that.CLASS_HOVERED );
|
|
}
|
|
);
|
|
|
|
$( this.$button ).on( "mousedown", function() {
|
|
if ( !$( this ).hasClass( that.CLASS_DISABLED ) ) {
|
|
$( this ).addClass( that.CLASS_PRESSED );
|
|
$( this ).removeClass( that.CLASS_HOVERED );
|
|
}
|
|
|
|
});
|
|
|
|
$( document ).on( "mouseup", function() {
|
|
$( that.$button ).removeClass( that.CLASS_PRESSED );
|
|
if ( that.$button.hasClass( that.CLASS_HOVERED_YES ) ) {
|
|
that.$button.trigger( "mouseenter" );
|
|
}
|
|
});
|
|
|
|
$( this.$button ).on( "click", function( e ) {
|
|
if ( !$( e.target).hasClass( "b-button__submit" ) ) {
|
|
if ( !that.$submit.is( ":disabled" ) ) {
|
|
that.$submit.trigger( "click" );
|
|
}
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
};
|
|
var DR_EXPLAIN = DR_EXPLAIN || {};
|
|
DR_EXPLAIN.namespace = function( ns_string ) {
|
|
var parts = ns_string.split('.'),
|
|
parent = DR_EXPLAIN,
|
|
pl, i;
|
|
if (parts[0] == "DR_EXPLAIN") {
|
|
parts = parts.slice(1);
|
|
}
|
|
pl = parts.length;
|
|
for (i = 0; i < pl; i += 1 ) {
|
|
//create a property if it doesnt exist
|
|
if (typeof parent[parts[i]] === 'undefined') {
|
|
parent[parts[i]] = {};
|
|
}
|
|
parent = parent[parts[i]];
|
|
}
|
|
return parent;
|
|
};
|
|
|
|
|
|
window.NavTree__ItemNode_Model = Backbone.Model.extend({
|
|
defaults: {
|
|
link: null,
|
|
title: "",
|
|
parent: null,
|
|
childs: null,
|
|
nodeIndex: null,
|
|
isVisible: true,
|
|
isSelected: false
|
|
},
|
|
|
|
hasParent: function() {
|
|
if ( this.get( "parent" ) !== null ) {
|
|
return true;
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
},
|
|
|
|
hasChilds: function() {
|
|
if ( this.get( "childs" ) !== null ) {
|
|
return true;
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
},
|
|
|
|
hasPrevItem: function() {
|
|
var currIndex = this.collection.indexOf( this );
|
|
var prevItem = this.collection.at( currIndex - 1 );
|
|
if ( prevItem !== undefined ) {
|
|
return true;
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
},
|
|
|
|
hasNextItem: function() {
|
|
var len = this.collection.length;
|
|
if (len == 0)
|
|
return false;
|
|
var lastItem = this.collection.at(len - 1);
|
|
if (lastItem !== this) {
|
|
return true;
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
},
|
|
|
|
getChildsCollection: function() {
|
|
return this.get( "childs" );
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__ItemKeyword_Model = Backbone.Model.extend({
|
|
defaults: {
|
|
title: "",
|
|
childs: null,
|
|
links: null,
|
|
keywordIndex: null,
|
|
isVisible: true,
|
|
isContextMenuVisible: false,
|
|
isSelected: false
|
|
},
|
|
|
|
hasChilds: function() {
|
|
if ( this.get( "childs" ) !== null ) {
|
|
return true;
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
},
|
|
|
|
hasOneLink: function() {
|
|
if ( this.get( "links" ).length === 1 ) {
|
|
return true;
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
},
|
|
|
|
hasManyLinks: function() {
|
|
if ( this.get( "links" ).length > 1 ) {
|
|
return true;
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
},
|
|
|
|
hasLinks: function() {
|
|
if ( this.get( "links" ).length > 0 ) {
|
|
return true;
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
},
|
|
|
|
|
|
getChildsCollection: function() {
|
|
return this.get( "childs" );
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__ItemsNodes_Collection = Backbone.Collection.extend({
|
|
model: NavTree__ItemNode_Model,
|
|
|
|
initialize: function( models, options ) {
|
|
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__ItemsKeywords_Collection = Backbone.Collection.extend({
|
|
model: NavTree__ItemKeyword_Model,
|
|
|
|
initialize: function( models, options ) {
|
|
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__ItemDecoration_Keyword_View =
|
|
Backbone.View.extend({
|
|
tagName: "span",
|
|
className: "b-tree__spacer",
|
|
template: null,
|
|
|
|
html_root: '<span class="b-tree__spacer"></span>',
|
|
|
|
html_index_item_folder: '<span class="b-tree__i_indexitem"><span class="b-tree__i_indexitem_inner"></span></span>',
|
|
html_index_item_article: '<span class="b-tree__i_indexitem"><span class="b-tree__i_indexitem_inner"></span></span>',
|
|
|
|
initialize: function( options ) {
|
|
this.isRoot = options.isRoot;
|
|
this.isFolder = this.model.hasManyLinks();
|
|
this.isArticle = !this.isFolder;
|
|
},
|
|
|
|
render: function() {
|
|
if ( this.isRoot ) {
|
|
if ( this.isFolder ) {
|
|
$output = this.renderFolder();
|
|
}
|
|
else {
|
|
$output = this.renderArticle();
|
|
}
|
|
}
|
|
else {
|
|
$output = this.renderChilds();
|
|
}
|
|
|
|
return $output;
|
|
},
|
|
|
|
|
|
|
|
renderFolder: function() {
|
|
return this.renderFolderIcon();
|
|
},
|
|
|
|
renderFolderExpander: function() {
|
|
var $output = $( this.html_root );
|
|
|
|
return $output;
|
|
},
|
|
|
|
renderFolderIcon: function() {
|
|
var $output = $( this.html_root );
|
|
|
|
$output.append( $( this.html_index_item_folder ) );
|
|
return $output;
|
|
},
|
|
|
|
renderArticle: function() {
|
|
var $output = $( this.html_root );
|
|
$output = $output.append( $( this.html_index_item_article ) );
|
|
|
|
return $output;
|
|
},
|
|
|
|
renderChilds: function( ) {
|
|
var $output = $( this.html_root );
|
|
|
|
return $output;
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__ItemDecoration_Search_View = Backbone.View.extend({
|
|
|
|
tagName: "span",
|
|
className: "b-tree__spacer",
|
|
template: null,
|
|
|
|
html_root: '<span class="b-tree__spacer"></span>',
|
|
html_folder_closed: '<span class="b-tree__i_folder_closed"><span class="b-tree__i_folder_closed_inner"></span></span>',
|
|
html_article: '<span class="b-tree__i_article"><span class="b-tree__i_article_inner"></span></span>',
|
|
|
|
initialize: function( options ) {
|
|
this.isRoot = options.isRoot;
|
|
this.isFolder = this.model.hasChilds();
|
|
this.isArticle = !this.isFolder;
|
|
},
|
|
|
|
render: function() {
|
|
if ( this.isRoot ) {
|
|
if ( this.isFolder ) {
|
|
$output = this.renderFolder();
|
|
}
|
|
else {
|
|
$output = this.renderArticle();
|
|
}
|
|
}
|
|
else {
|
|
$output = this.renderChilds();
|
|
}
|
|
|
|
return $output;
|
|
},
|
|
|
|
|
|
renderFolder: function() {
|
|
return this.renderFolderIcon();
|
|
},
|
|
|
|
renderFolderExpander: function() {
|
|
var $output = $( this.html_root );
|
|
|
|
return $output;
|
|
},
|
|
|
|
renderFolderIcon: function() {
|
|
var $output = $( this.html_root );
|
|
|
|
$output.append( $( this.html_folder_closed ) );
|
|
return $output;
|
|
},
|
|
|
|
renderArticle: function() {
|
|
var $output = $( this.html_root );
|
|
$output = $output.append( $( this.html_article ) );
|
|
|
|
return $output;
|
|
},
|
|
|
|
renderChilds: function( ) {
|
|
var $output = $( this.html_root );
|
|
|
|
return $output;
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__Item_View = Backbone.View.extend({
|
|
tagName: "li",
|
|
className: "b-tree__item",
|
|
template: null,
|
|
itemDecorationView: null,
|
|
|
|
|
|
initialize: function( options ) {
|
|
this.dataManager = DR_EXPLAIN.dataManager;
|
|
},
|
|
|
|
|
|
render: function( childsOutput ) {
|
|
var tpl = '<div class="b-tree__itemContent" title="<%- title %>"><span class="b-tree__itemText"><a href="<%- link %>" class="b-tree__itemLink"><%- title %></a></span></div>';
|
|
var tplSelected = '<div class="b-tree__itemContent m-tree__itemContent__selected" title="<%- title %>"><span class="b-tree__itemText m-tree__itemText__selected"><%- title %></span></div>';
|
|
if ( this.model.get( "isSelected" ) ) {
|
|
this.template = _.template( tplSelected );
|
|
}
|
|
else {
|
|
this.template = _.template( tpl );
|
|
}
|
|
|
|
$(this.el).html(this.template(this.model.toJSON()));
|
|
|
|
var decoration = this.getDecoration( );
|
|
$( this.el ).children( ".b-tree__itemContent" ).prepend( decoration );
|
|
|
|
return this;
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__ItemKeyword_View = Backbone.View.extend({
|
|
tagName: "li",
|
|
className: "b-tree__item",
|
|
template: null,
|
|
itemDecorationView: null,
|
|
|
|
|
|
initialize: function( options ) {
|
|
|
|
},
|
|
|
|
toggleFolder: function() {
|
|
if ( this.model.get( "isContextMenuVisible" ) ) {
|
|
this.showFolder();
|
|
}
|
|
else {
|
|
this.hideFolder();
|
|
}
|
|
},
|
|
|
|
showFolder: function( ) {
|
|
var $content = this.$el.children( "div" );
|
|
var $folder = $content.find( ".b-tree__i_folder_closed" );
|
|
this.toggleClasses( $folder );
|
|
},
|
|
|
|
hideFolder: function( ) {
|
|
var $content = this.$el.children( "div" );
|
|
var $folder = $content.find( ".b-tree__i_folder_opened" );
|
|
this.toggleClasses( $folder );
|
|
},
|
|
|
|
toggleClasses: function( $folder ) {
|
|
$folder.toggleClass( "b-tree__i_folder_opened b-tree__i_folder_closed" );
|
|
$folder.children( "span" ).toggleClass( "b-tree__i_folder_opened_inner b-tree__i_folder_closed_inner" );
|
|
},
|
|
|
|
render: function( childsOutput ) {
|
|
var tpl = '';
|
|
|
|
if ( this.model.hasOneLink() ) {
|
|
var nodeModel = this.model.get( "links" ).at(0);
|
|
this.model.set({ link: nodeModel.get( "link" ) });
|
|
tpl = '<div class="b-tree__itemContent" title="<%- title %>"><span class="b-tree__itemText"><a href="<%- link %>" class="b-tree__itemLink"><%- title %></a></span></div>';
|
|
}
|
|
else {
|
|
tpl = '<div class="b-tree__itemContent" title="<%- title %>"><span class="b-tree__itemText"><span class="b-tree__itemLink"><%- title %></span></span></div>';
|
|
}
|
|
|
|
this.template = _.template( tpl );
|
|
$(this.el).html(this.template(this.model.toJSON()));
|
|
if ( childsOutput !== null ) {
|
|
$( this.el ).append( $( childsOutput ) );
|
|
|
|
}
|
|
this.bindEvents();
|
|
var decoration = this.getDecoration( );
|
|
$( this.el ).children( ".b-tree__itemContent" ).prepend( decoration );
|
|
$( this.el ).prop( "id", "treeElement_" + this.model.cid );
|
|
|
|
if ( !this.model.get( "isVisible" ) ) {
|
|
this.hideExpander();
|
|
}
|
|
|
|
return this;
|
|
},
|
|
|
|
bindEvents: function() {
|
|
var that = this;
|
|
|
|
if ( this.model.hasManyLinks() ) {
|
|
this.$el.children( "div" ).on( "click", function(e){
|
|
var currContextMenuVisibleStatus = that.model.get( "isContextMenuVisible" );
|
|
that.model.set({ "isContextMenuVisible": !currContextMenuVisibleStatus });
|
|
e.stopPropagation();
|
|
});
|
|
|
|
this.model.on(
|
|
"change:isContextMenuVisible",
|
|
this.toggleFolder,
|
|
this
|
|
);
|
|
}
|
|
},
|
|
|
|
|
|
getDecoration: function( ) {
|
|
var $output = null;
|
|
|
|
var currModel = this.model;
|
|
var isRoot = true;
|
|
do {
|
|
var itemDecorationView = new NavTree__ItemDecoration_Keyword_View({
|
|
model: currModel,
|
|
isRoot: isRoot
|
|
});
|
|
if ( $output === null ) {
|
|
$output = itemDecorationView.render();
|
|
}
|
|
else {
|
|
$output = ( itemDecorationView.render() ).add( $output );
|
|
}
|
|
|
|
currModel = currModel.get( "parent" );
|
|
isRoot = false;
|
|
|
|
} while ( currModel !== null );
|
|
|
|
return $output;
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__ItemSearch_View = NavTree__Item_View.extend({
|
|
|
|
getDecoration: function( ) {
|
|
var $output = null;
|
|
|
|
var currModel = this.model;
|
|
var isRoot = true;
|
|
do {
|
|
var itemDecorationView = new NavTree__ItemDecoration_Search_View({
|
|
model: currModel,
|
|
isRoot: isRoot
|
|
});
|
|
if ( $output === null ) {
|
|
$output = itemDecorationView.render();
|
|
}
|
|
else {
|
|
$output = ( itemDecorationView.render() ).add( $output );
|
|
}
|
|
|
|
currModel = currModel.get( "parent" );
|
|
isRoot = false;
|
|
|
|
} while ( currModel !== null );
|
|
|
|
return $output;
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__Items_View = Backbone.View.extend({
|
|
tagName: "ul",
|
|
className: "b-tree__items",
|
|
|
|
itemsViewArr: null,
|
|
|
|
initialize: function( options ) {
|
|
this.itemsViewArr = options.itemsViewArr;
|
|
},
|
|
|
|
render: function() {
|
|
for ( var cid in this.itemsViewArr ) {
|
|
var itemView = this.itemsViewArr[ cid ];
|
|
var childsOutput = null;
|
|
if ( itemView.model.hasChilds() ) {
|
|
childsOutput = itemView.model.getChildsCollection().itemsView.render().el;
|
|
}
|
|
$( this.el ).append( itemView.render( childsOutput ).el );
|
|
}
|
|
return this;
|
|
},
|
|
|
|
|
|
getViewByModel: function( model ) {
|
|
return this.itemsViewArr[ model.cid ];
|
|
},
|
|
|
|
reRenderItems: function() {
|
|
for ( var index = 0; index < this.itemsViewArr.length; index += 1 ) {
|
|
var itemView = this.itemsViewArr[ index ];
|
|
itemView.reRender();
|
|
}
|
|
return this;
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__Menu_Item_View = NavTree__Item_View.extend({
|
|
|
|
render: function( childsOutput ) {
|
|
var bVisible = this.model.get( "isVisible" );
|
|
var decoration = this.getDecoration(bVisible);
|
|
var title = this.model.get("title");
|
|
var link = this.model.get("link");
|
|
var elHtml = '';
|
|
if ( this.model.get( "isSelected" ) )
|
|
{
|
|
var div = document.createElement("div");
|
|
div.className = "b-tree__itemContent m-tree__itemContent__selected";
|
|
div.title = title;
|
|
for (var i = 0; i < decoration.length; ++i)
|
|
div.appendChild(decoration[i]);
|
|
|
|
var span = document.createElement("span");
|
|
span.className = "b-tree__itemText m-tree__itemText__selected";
|
|
span.appendChild(document.createTextNode(title));
|
|
div.appendChild(span);
|
|
this.el.appendChild(div);
|
|
}
|
|
else
|
|
{
|
|
var div = document.createElement("div");
|
|
div.className = "b-tree__itemContent";
|
|
div.title = title;
|
|
for (var i = 0; i < decoration.length; ++i)
|
|
div.appendChild(decoration[i]);
|
|
|
|
var span = document.createElement("span");
|
|
span.className = "b-tree__itemText";
|
|
var aEl = document.createElement("a");
|
|
aEl.href = link;
|
|
aEl.className = "b-tree__itemLink";
|
|
aEl.appendChild(document.createTextNode(title));
|
|
span.appendChild(aEl);
|
|
div.appendChild(span);
|
|
this.el.appendChild(div);
|
|
}
|
|
|
|
|
|
if ( childsOutput !== null ) {
|
|
$( this.el ).append( $( childsOutput ) );
|
|
this.bindEvents();
|
|
}
|
|
|
|
if ( !bVisible ) {
|
|
this.$el.children( "ul" ).hide();
|
|
this.model.set({ "isVisible": 0 });
|
|
}
|
|
return this;
|
|
}
|
|
});
|
|
|
|
window.NavTree__View = Backbone.View.extend({
|
|
|
|
tagName: "div",
|
|
className: "b-tree",
|
|
models: [],
|
|
itemsViewArr: [],
|
|
|
|
initialize: function( options ) {
|
|
this.models = [];
|
|
this.$navTree = options.$navTree;
|
|
this.doCreateItemsViewArr();
|
|
},
|
|
|
|
doCreateItemsViewArr: function() {
|
|
if (this.collection)
|
|
this.fillItemsViewArrWithCollection( this.collection );
|
|
},
|
|
|
|
fillItemsViewArrWithCollection: function( collection ) {
|
|
var that = this;
|
|
var itemsViewArr = {};
|
|
collection.each(function( concreteModel, index ){
|
|
var itemView = that.createNavTreeItemView( concreteModel );
|
|
itemsViewArr[ concreteModel.cid ] = itemView;
|
|
if ( concreteModel.hasChilds() ) {
|
|
that.fillItemsViewArrWithCollection( concreteModel.get( "childs" ) );
|
|
}
|
|
|
|
that.models.push( concreteModel );
|
|
that.itemsViewArr[ concreteModel.cid ] = itemView;
|
|
});
|
|
|
|
collection.itemsView = new NavTree__Items_View({
|
|
itemsViewArr: itemsViewArr
|
|
});
|
|
},
|
|
|
|
render: function() {
|
|
var $navTree = this.$navTree.find( ".b-tree" );
|
|
$( this.el ).append( '<table class="b-tree__layout" cellspacing="0"><tr><td class="b-tree__layoutSide" />' );
|
|
if (this.collection)
|
|
$( this.el ).find( "td" ).append( this.collection.itemsView.render().el );
|
|
|
|
$navTree.empty();
|
|
$navTree.append( this.$el.children( "*" ) );
|
|
|
|
},
|
|
|
|
createNavTreeItemView: function( model ) {
|
|
return new NavTree__Menu_Item_View({
|
|
model: model
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__Keywords_View = NavTree__View.extend({
|
|
|
|
initialize: function( options ) {
|
|
this.models = [];
|
|
this.$navTree = options.$navTree;
|
|
this.doCreateItemsViewArr();
|
|
|
|
this.contextMenuView = null;
|
|
this.bindContextMenuEvents();
|
|
},
|
|
|
|
createNavTreeItemView: function( model ) {
|
|
return new NavTree__ItemKeyword_View({
|
|
model: model
|
|
});
|
|
},
|
|
|
|
bindContextMenuEvents: function() {
|
|
var flatCollection = new NavTree__ItemsKeywords_Collection( this.models );
|
|
flatCollection.on(
|
|
"change:isContextMenuVisible",
|
|
this.onContextMenuVisibleChange,
|
|
this
|
|
);
|
|
|
|
$( document ).on( "click", function() {
|
|
var openedFolderModels = flatCollection.where({ isContextMenuVisible: true });
|
|
if ( openedFolderModels.length > 0 ) {
|
|
for ( var index = 0; index < openedFolderModels.length; index += 1 ) {
|
|
openedFolderModels[ index ].set({ isContextMenuVisible: false });
|
|
}
|
|
}
|
|
|
|
});
|
|
},
|
|
|
|
onContextMenuVisibleChange: function( model, showContextMenu ) {
|
|
var view = this.getViewByModel( model );
|
|
|
|
if ( showContextMenu ) {
|
|
if ( this.contextMenuView === null ) {
|
|
this.contextMenuView = new NavTree__ContextMenu_View();
|
|
this.contextMenuView.setView( view );
|
|
|
|
var app = DR_EXPLAIN;
|
|
app.urlEncoder.doBindOpenNextPageWithEncodedStringToLinksInKeywordContextMenu();
|
|
}
|
|
|
|
if ( this.contextMenuView.model !== model ) {
|
|
this.contextMenuView.hideOld();
|
|
}
|
|
|
|
this.contextMenuView.setView( view );
|
|
this.contextMenuView.show();
|
|
}
|
|
else {
|
|
this.contextMenuView.hide();
|
|
}
|
|
},
|
|
|
|
getViewByModel: function( model ) {
|
|
return this.itemsViewArr[ model.cid ];
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__Search_View = NavTree__View.extend({
|
|
|
|
createNavTreeItemView: function( model ) {
|
|
return new NavTree__ItemSearch_View({
|
|
model: model
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
window.NavTree__ContextMenu_View = Backbone.View.extend({
|
|
|
|
tagName: "div",
|
|
className: "b-tree",
|
|
models: [],
|
|
|
|
initialize: function( options ) {
|
|
this.$el = $( "#keywordContextMenu" );
|
|
},
|
|
|
|
show: function() {
|
|
var that = this;
|
|
|
|
var tpl = '<li class="b-tree__item" title="<%- title %>"><div class="b-tree__itemContent"><span class="b-tree__spacer"><span class="b-tree__i_article"><span class="b-tree__i_article_inner"></span></span></span><span class="b-tree__itemText"><a href="<%- link %>" class="b-tree__itemLink"><%- title %></a></span></div></li>';
|
|
this.template = _.template( tpl );
|
|
|
|
var $container = $( '<ul class="b-tree__items"></ul>' );
|
|
|
|
this.$el.find( "td" ).empty();
|
|
this.model.get( "links" ).each(function( concreteModel, index ) {
|
|
$container.append(that.template(concreteModel.toJSON()));
|
|
});
|
|
|
|
var $elemInTree = this.view.$el.children( "div" ).children( ".b-tree__itemText" );
|
|
var elemInTreePos = $elemInTree.offset();
|
|
|
|
var styleOptions = {
|
|
top: elemInTreePos.top + $elemInTree.height() + "px"
|
|
};
|
|
|
|
if ($('html').attr('dir') === 'rtl') {
|
|
styleOptions.right = $(window).width() - (elemInTreePos.left + $elemInTree.outerWidth());
|
|
} else {
|
|
styleOptions.left = elemInTreePos.left + "px";
|
|
}
|
|
|
|
this.$el.css(styleOptions);
|
|
|
|
this.$el.find( "td" ).append( $container );
|
|
|
|
this.$el.show();
|
|
this.$el.addClass( "m-tree__contextMenu__visible" );
|
|
|
|
this.$el.trigger( "show", [ $elemInTree ] );
|
|
},
|
|
|
|
hide: function() {
|
|
|
|
this.$el.hide();
|
|
this.$el.removeClass( "m-tree__contextMenu__visible" );
|
|
},
|
|
|
|
hideOld: function() {
|
|
this.model.set({ "isContextMenuVisible": false });
|
|
},
|
|
|
|
setView: function( view ) {
|
|
this.view = view;
|
|
this.model = view.model;
|
|
}
|
|
});
|
|
|
|
|
|
DR_EXPLAIN.namespace('DR_EXPLAIN.utils.base64');DR_EXPLAIN.utils.base64={encString:'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',encStringS:'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_',encode:function(inp,uc,safe){if(arguments.length<1)return null;var readBuf=new Array();if(arguments.length>=3&&safe!=true&&safe!=false)return null;var enc=(arguments.length>=3&&safe)?this.encStringS:this.encString;var b=(typeof inp=="string");if(!b&&(typeof inp!="object")&&!(inp instanceof Array))return null;if(arguments.length<2){uc=true;}
|
|
if(uc!=true&&uc!=false)return null;var n=(!b||!uc)?1:2;var out='';var c=0;var j=1;var l=0;var s=0;for(var i=0;i<inp.length;i++){c=(b)?inp.charCodeAt(i):inp[i];for(var k=n-1;k>=0;k--){readBuf[k]=c&0xff;c>>=8;}
|
|
for(var m=0;m<n;m++){l=((l<<8)&0xff00)|readBuf[m];s=(0x3f<<(2*j))&l;l-=s;out+=enc.charAt(s>>(2*j));j++;if(j==4){out+=enc.charAt(l&0x3f);j=1;}}}
|
|
switch(j){case 2:s=0x3f&(16*l);out+=enc.charAt(s);out+='==';break;case 3:s=0x3f&(4*l);out+=enc.charAt(s);out+='=';break;default:break;}
|
|
return out;},decode:function(inp,outType,safe,lax){if(arguments.length<1)return null;if(arguments.length<2)outType=0;if(outType!=0&&outType!=1&&outType!=2)return null;if(arguments.length>=3&&safe!=true&&safe!=false)return null;var sEnc=(arguments.length>=3&&safe)?this.encStringS:this.encString;if(arguments.length>=4&&lax!=true&&lax!=false)return null;var aDec=new Object();for(var p=0;p<sEnc.length;p++){aDec[sEnc.charAt(p)]=p;}
|
|
var out=(outType==0)?new Array():'';lax=(arguments.length==4&&lax);var l=0;var i=0;var j=0;var c=0;var k=0;var end=inp.length;var C='';if(lax){var inpS='';var ignore=false;var cnt=0;for(var p=1;p<=inp.length;p++){c=inp.charAt(end-p);if(c=='='){if(!ignore){if(++cnt>1)ignore=true;}else{continue;}}else if(undefined!=aDec[c]){if(!ignore)ignore=true;inpS=c+inpS;}}
|
|
for(var p=0;p<=cnt;p++){if(p==2)return null;if((inpS.length+cnt)%4==0)break;}
|
|
if(inpS.length%4==1)return null;inp=inpS;end=inp.length;}else{if(inp.length%4>0)return null;for(var p=0;p<2;p++){if(inp.charAt(end-1)=='='){end--;}else{break;}}}
|
|
for(i=0;i<end;i++){l<<=6;if(undefined==(c=aDec[inp.charAt(i)]))return null;l|=(c&0x3f);if(j==0){j++;continue;}
|
|
if(outType==2){if(k==1){out+=String.fromCharCode(l>>(2*(3-j)));l&=~(0xffff<<(2*(3-j)));}
|
|
k=++k%2;}else{if(outType==0){out.push(l>>(2*(3-j)));}else{out+=String.fromCharCode(l>>(2*(3-j)));}
|
|
l&=~(0xff<<(2*(3-j)));}
|
|
j=++j%4;}
|
|
if(outType==2&&k==1)return null;return out;}};
|
|
|
|
|
|
DR_EXPLAIN.namespace('DR_EXPLAIN.utils.utf8');DR_EXPLAIN.utils.utf8={encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}
|
|
else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}
|
|
else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}}
|
|
return utftext;},decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}
|
|
else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
|
|
else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
|
|
return string;}};
|
|
|
|
|
|
DR_EXPLAIN.namespace('DR_EXPLAIN.utils');DR_EXPLAIN.utils={base64:DR_EXPLAIN.utils.base64,utf8:DR_EXPLAIN.utils.utf8,escapeUrl:function(oldUrl)
|
|
{var result=oldUrl.replace(/%/g,"%25");result=result.replace(/'/g,"%27");result=result.replace(/;/g,"%3b");return result;},escapeXml:function(str)
|
|
{var result=str.replace(/</g,"<");result=result.replace(/>/g,">");result=result.replace(/&/g,"&");return result;},str2ar:function(str)
|
|
{var retVal=new Array();for(var i=0;i<str.length;++i)
|
|
retVal.push(str.charCodeAt(i));return retVal;},ar2str:function(arr)
|
|
{var str="";for(var i=0;i<arr.length;++i)
|
|
str+=String.fromCharCode(arr[i]);return str;},bitsToByte:function(bits,cnt)
|
|
{var result=new Array();while(bits.length%cnt)
|
|
bits.push(0);var MyByte=0;for(var i=0;i<bits.length;++i){MyByte+=(bits[i]<<(i%cnt));if((i%cnt)==cnt-1){result.push(MyByte);MyByte=0;}}
|
|
return result;},byteToBits:function(bytes,cnt)
|
|
{var result=new Array();for(var i=0;i<bytes.length;i++){for(var j=0;j<cnt;++j){result.push((bytes[i]&(1<<j))>>>j);}}
|
|
return result;},intDiv:function(nom,denom)
|
|
{nom+=denom-1-(nom%denom);return Math.floor(nom/denom);},encodingPrefixLen:function(bitsLen,cnt)
|
|
{var bytesLen=this.intDiv(bitsLen+cnt-1,cnt);return this.intDiv(bytesLen+cnt-1,cnt);}};
|
|
|
|
|
|
|
|
/*js/placeholder.js*/
|
|
function InputPlaceholder( $input, $label, useNativePlaceholderIfPossible ) {
|
|
this.$input = $input;
|
|
this.$label = $label;
|
|
|
|
if ( ( useNativePlaceholderIfPossible !== true) && ( useNativePlaceholderIfPossible !== false ) ) {
|
|
this.useNativePlaceholderIfPossible = true;
|
|
}
|
|
else {
|
|
this.useNativePlaceholderIfPossible = useNativePlaceholderIfPossible;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
InputPlaceholder.prototype = {
|
|
constructor: InputPlaceholder,
|
|
|
|
isNativePlaceholderSupport: false,
|
|
useNativePlaceholderIfPossible: false,
|
|
|
|
$input: null,
|
|
$label: null,
|
|
|
|
doDefineNativePlaceholderSupport: function() {
|
|
if ( Modernizr.input.placeholder ) {
|
|
this.isNativePlaceholderSupport = false;
|
|
}
|
|
},
|
|
|
|
run: function() {
|
|
this.doDefineNativePlaceholderSupport();
|
|
|
|
if ( this.useNativePlaceholderIfPossible && this.isNativePlaceholderSupport ) {
|
|
this.HideLabel();
|
|
this.doInsertNativePlaceholderProp();
|
|
}
|
|
else {
|
|
this.doBindCustomPlaceholderEvents();
|
|
this.changeLabelVisibilityState();
|
|
}
|
|
},
|
|
|
|
doInsertNativePlaceholderProp: function() {
|
|
this.$input.prop( "placeholder", this.$label.text() );
|
|
},
|
|
|
|
ShowLabel: function() {
|
|
this.$label.show();
|
|
},
|
|
|
|
HideLabel: function() {
|
|
this.$label.hide();
|
|
},
|
|
|
|
doBindCustomPlaceholderEvents: function() {
|
|
var that = this;
|
|
this.$input.on( "keypress keydown keyup click blur focus paste keypressSync", function()
|
|
{
|
|
that.changeLabelVisibilityState();
|
|
}
|
|
);
|
|
},
|
|
|
|
changeLabelVisibilityState: function() {
|
|
if ( this.isEmptyInputValue() ) {
|
|
this.ShowLabel();
|
|
}
|
|
else {
|
|
this.HideLabel();
|
|
}
|
|
},
|
|
|
|
getInputValue: function() {
|
|
return this.$input.prop( "value" );
|
|
},
|
|
|
|
isEmptyInputValue: function() {
|
|
if ( this.getInputValue() === "" ) {
|
|
return true;
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
}
|
|
};
|
|
/*js/input-sync.js*/
|
|
function InputSync( $inputArr ) {
|
|
this.$inputArr = $inputArr;
|
|
}
|
|
|
|
InputSync.prototype ={
|
|
constructor: InputSync,
|
|
|
|
run: function() {
|
|
this.bindEvents();
|
|
},
|
|
|
|
bindEvents: function() {
|
|
var that = this;
|
|
this.$inputArr.on( 'keypress keydown keyup click blur focus paste', function(){
|
|
that.sync( $( this ) );
|
|
});
|
|
},
|
|
|
|
sync: function( $sourceInput ) {
|
|
var inputText = $sourceInput.prop( "value" );
|
|
this.$inputArr.not( $sourceInput ).prop( "value", inputText ).trigger( "keypressSync" );
|
|
}
|
|
};
|
|
DR_EXPLAIN.namespace( 'DR_EXPLAIN.data_menu' );
|
|
DR_EXPLAIN.data_menu = {
|
|
// menu
|
|
DREX_NODE_NAMES: ["Начальная страница","1- Обзор возможностей сервиса","2- Начало работы","3- Пользовательский интерфейс","1-1. Основные понятия и термины","2-1. Регистрация в сервисе","2-2. Первоначальная настройка","3-1. Геомеханические процессы","3-2. Сейсмические процессы","3-3. Горнотранспортное оборудование","3-4. Открытые горные работы","3-5. Система оповещения","3-6. Местоположение персонала","3-7. Администрирование","3-1.1. Добавление опасной зоны","3-1.2. Добавление реперов","3-1.3. Добавить показания наблюдательной станции","3-1.4. Добавить показания визуальных наблюдений","3-1.5. Формирование отчета деформаций","3-1.6. Контроль ведения журналов","3-2.1. Добавление сейсмического процесса","3-5.1. Добавление файла в систему оповещения"],
|
|
DREX_NODE_LINKS: ["index.html","overview.html","getting_started.html","user_interface.html","concepts.html","setup.html","config.html","geomekhanicheskie_protsessy.html","sejsmicheskie_protsessy.html","gornotransportnoe_oborudovanie.html","otkrytye_gornye_raboty.html","sistema_opoveshcheniya.html","mestopolozhenie_personala.html","administrirovanie.html","dobavlenie_opasnoj_zony.html","dobavlenie_reperov.html","dobavit_pokazaniya_nablyudatelnoj_stantsii.html","dobavit_pokazaniya_vizualnykh_nablyudenij.html","formirovanie_otcheta_deformatsij.html","kontrol_vedeniya_zhurnalov.html","dobavlenie_sejsmicheskogo_protsessa.html","dobavlenie_fajla_v_sistemu_opoveshcheniya.html"],
|
|
DREX_NODE_CHILD_START: [1,4,5,7,14,14,14,14,20,21,21,21,22,22,22,22,22,22,22,22,22,22],
|
|
DREX_NODE_CHILD_END: [4,5,7,14,14,14,14,20,21,21,21,22,22,22,22,22,22,22,22,22,22,22],
|
|
DREX_MENU_TYPE: 2,
|
|
DREX_HAS_ROOT_NODE: 0};
|
|
|
|
|
|
/*js/drexplain/drexplain.data.index.js*/
|
|
/*loaded separately*/
|
|
DR_EXPLAIN.namespace( 'DR_EXPLAIN.data_search' );
|
|
DR_EXPLAIN.data_search = {
|
|
|
|
DREXPLAIN_NOT_FOUND: "Ничего не найдено",
|
|
DREXPLAIN_EMPTY_STRING: "Введите текст для поиска",
|
|
DREXPLAIN_IN_PROGRESS: "Идет поиск...",
|
|
DREXPLAIN_PREVIEW_MODE_SEARCH_IS_DISABLED_NOTICE : "Поиск отключен в режиме предпросмотра.",
|
|
DREXPLAIN_ERROR_LOCAL_SEARCH : "Не удалось загрузить индексные файлы. Пожалуйста, загрузите созданные HTML файлы на ваш веб-сервер и откройте их в браузере по адресу, начинающемуся с https:// или http:// .",
|
|
DREXPLAIN_ERROR_REMOTE_SEARCH : "Не удалось загрузить индексные файлы. Пожалуйста, попросите администратора вашего веб-сервера разрешить скачивание файлов с расширением .json или свяжитесь с нами по help@drexplain.com. Код ошибки: {0}"
|
|
|
|
};
|
|
|
|
|
|
DR_EXPLAIN.namespace( 'DR_EXPLAIN.data_resize' );
|
|
DR_EXPLAIN.data_resize = {
|
|
|
|
DREXPLAIN_FIT_HEIGHT_TO_WINDOW: 1,
|
|
DREX_INITIAL_MENU_WIDTH: "280px"
|
|
|
|
};
|
|
|
|
|
|
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(o,s){function e(e){if(S)return!0;e=e||window.event,x.timeToIdle&&x.mouseUsed&&!_&&A();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",l=0;l<U.length;l++)(t=U[l]).onTap&&-1<o.indexOf("pswp__"+t.name)&&(t.onTap(),n=!0);n&&(e.stopPropagation&&e.stopPropagation(),S=!0,e=s.features.isOldAndroid?600:30,setTimeout(function(){S=!1},e))}function t(e,t,n){s[(n?"add":"remove")+"Class"](e,"pswp__"+t)}function n(){var e=1===x.getNumItemsFn();e!==F&&(t(m,"ui--one-slide",e),F=e)}function l(){t(b,"share-modal--hidden",y)}function r(){return(y=!y)?(s.removeClass(b,"pswp__share-modal--fade-in"),setTimeout(function(){y&&l()},300)):(l(),setTimeout(function(){y||s.addClass(b,"pswp__share-modal--fade-in")},30)),y||M(),0}function i(e){var t=(e=e||window.event).target||e.srcElement;return o.shout("shareLinkClick",e,t),!!t.href&&(!!t.hasAttribute("download")||(window.open(t.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),y||r(),!1))}function a(e){for(var t=0;t<x.closeElClasses.length;t++)if(s.hasClass(e,"pswp__"+x.closeElClasses[t]))return!0}function u(e){(e=(e=e||window.event).relatedTarget||e.toElement)&&"HTML"!==e.nodeName||(clearTimeout(K),K=setTimeout(function(){L.setIdle(!0)},x.timeToIdleOutside))}function c(e){var t,n=e.vGap;!o.likelyTouchDevice||x.mouseUsed||screen.width>x.fitControlsWidth?(t=x.barsSize,x.captionEl&&"auto"===t.bottom?(h||((h=s.createEl("pswp__caption pswp__caption--fake")).appendChild(s.createEl("pswp__caption__center")),m.insertBefore(h,f),s.addClass(m,"pswp__ui--fit")),x.addCaptionHTMLFn(e,h,!0)?(e=h.clientHeight,n.bottom=parseInt(e,10)||44):n.bottom=t.top):n.bottom="auto"===t.bottom?0:t.bottom,n.top=t.top):n.top=n.bottom=0}function p(){function e(e){if(e)for(var t=e.length,n=0;n<t;n++){l=e[n],r=l.className;for(var o=0;o<U.length;o++)i=U[o],-1<r.indexOf("pswp__"+i.name)&&(x[i.option]?(s.removeClass(l,"pswp__element--disabled"),i.onInit&&i.onInit(l)):s.addClass(l,"pswp__element--disabled"))}}var l,r,i;e(m.children);var t=s.getChildByClass(m,"pswp__top-bar");t&&e(t.children)}var d,m,f,h,w,g,b,v,_,C,T,I,E,F,x,S,k,K,L=this,O=!1,R=!0,y=!0,z={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return o.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return o.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},M=function(){for(var e,t,n,o,l="",r=0;r<x.shareButtons.length;r++)e=x.shareButtons[r],t=x.getImageURLForShare(e),n=x.getPageURLForShare(e),o=x.getTextForShare(e),l+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(o))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",x.parseShareButtonOut&&(l=x.parseShareButtonOut(e,l));b.children[0].innerHTML=l,b.children[0].onclick=i},D=0,A=function(){clearTimeout(K),D=0,_&&L.setIdle(!1)},P=function(e){I!==e&&(t(T,"preloader--active",!e),I=e)},U=[{name:"caption",option:"captionEl",onInit:function(e){f=e}},{name:"share-modal",option:"shareEl",onInit:function(e){b=e},onTap:function(){r()}},{name:"button--share",option:"shareEl",onInit:function(e){g=e},onTap:function(){r()}},{name:"button--zoom",option:"zoomEl",onTap:o.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){w=e}},{name:"button--close",option:"closeEl",onTap:o.close},{name:"button--arrow--left",option:"arrowEl",onTap:o.prev},{name:"button--arrow--right",option:"arrowEl",onTap:o.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){d.isFullscreen()?d.exit():d.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){T=e}}];L.init=function(){var t;s.extend(o.options,z,!0),x=o.options,m=s.getChildByClass(o.scrollWrap,"pswp__ui"),(C=o.listen)("onVerticalDrag",function(e){R&&e<.95?L.hideControls():!R&&.95<=e&&L.showControls()}),C("onPinchClose",function(e){R&&e<.9?(L.hideControls(),t=!0):t&&!R&&.9<e&&L.showControls()}),C("zoomGestureEnded",function(){(t=!1)&&!R&&L.showControls()}),C("beforeChange",L.update),C("doubleTap",function(e){var t=o.currItem.initialZoomLevel;o.getZoomLevel()!==t?o.zoomTo(t,e,333):o.zoomTo(x.getDoubleTapZoom(!1,o.currItem),e,333)}),C("preventDragEvent",function(e,t,n){var o=e.target||e.srcElement;o&&o.getAttribute("class")&&-1<e.type.indexOf("mouse")&&(0<o.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)}),C("bindEvents",function(){s.bind(m,"pswpTap click",e),s.bind(o.scrollWrap,"pswpTap",L.onGlobalTap),o.likelyTouchDevice||s.bind(o.scrollWrap,"mouseover",L.onMouseOver)}),C("unbindEvents",function(){y||r(),k&&clearInterval(k),s.unbind(document,"mouseout",u),s.unbind(document,"mousemove",A),s.unbind(m,"pswpTap click",e),s.unbind(o.scrollWrap,"pswpTap",L.onGlobalTap),s.unbind(o.scrollWrap,"mouseover",L.onMouseOver),d&&(s.unbind(document,d.eventK,L.updateFullscreen),d.isFullscreen()&&(x.hideAnimationDuration=0,d.exit()),d=null)}),C("destroy",function(){x.captionEl&&(h&&m.removeChild(h),s.removeClass(f,"pswp__caption--empty")),b&&(b.children[0].onclick=null),s.removeClass(m,"pswp__ui--over-close"),s.addClass(m,"pswp__ui--hidden"),L.setIdle(!1)}),x.showAnimationDuration||s.removeClass(m,"pswp__ui--hidden"),C("initialZoomIn",function(){x.showAnimationDuration&&s.removeClass(m,"pswp__ui--hidden")}),C("initialZoomOut",function(){s.addClass(m,"pswp__ui--hidden")}),C("parseVerticalMargin",c),p(),x.shareEl&&g&&b&&(y=!0),n(),x.timeToIdle&&C("mouseUsed",function(){s.bind(document,"mousemove",A),s.bind(document,"mouseout",u),k=setInterval(function(){2===++D&&L.setIdle(!0)},x.timeToIdle/2)}),x.fullscreenEl&&!s.features.isOldAndroid&&((d=d||L.getFullscreenAPI())?(s.bind(document,d.eventK,L.updateFullscreen),L.updateFullscreen(),s.addClass(o.template,"pswp--supports-fs")):s.removeClass(o.template,"pswp--supports-fs")),x.preloaderEl&&(P(!0),C("beforeChange",function(){clearTimeout(E),E=setTimeout(function(){o.currItem&&o.currItem.loading?o.allowProgressiveImg()&&(!o.currItem.img||o.currItem.img.naturalWidth)||P(!1):P(!0)},x.loadingIndicatorDelay)}),C("imageLoadComplete",function(e,t){o.currItem===t&&P(!0)}))},L.setIdle=function(e){t(m,"ui--idle",_=e)},L.update=function(){O=!(!R||!o.currItem)&&(L.updateIndexIndicator(),x.captionEl&&(x.addCaptionHTMLFn(o.currItem,f),t(f,"caption--empty",!o.currItem.title)),!0),y||r(),n()},L.updateFullscreen=function(e){e&&setTimeout(function(){o.setScrollOffset(0,s.getScrollY())},50),s[(d.isFullscreen()?"add":"remove")+"Class"](o.template,"pswp--fs")},L.updateIndexIndicator=function(){x.counterEl&&(w.innerHTML=o.getCurrentIndex()+1+x.indexIndicatorSep+x.getNumItemsFn())},L.onGlobalTap=function(e){var t=(e=e||window.event).target||e.srcElement;S||(e.detail&&"mouse"===e.detail.pointerType?a(t)?o.close():s.hasClass(t,"pswp__img")&&(1===o.getZoomLevel()&&o.getZoomLevel()<=o.currItem.fitRatio?x.clickToCloseNonZoomable&&o.close():o.toggleDesktopZoom(e.detail.releasePoint)):(x.tapToToggleControls&&(R?L.hideControls():L.showControls()),x.tapToClose&&(s.hasClass(t,"pswp__img")||a(t))&&o.close()))},L.onMouseOver=function(e){e=(e=e||window.event).target||e.srcElement;t(m,"ui--over-close",a(e))},L.hideControls=function(){s.addClass(m,"pswp__ui--hidden"),R=!1},L.showControls=function(){R=!0,O||L.update(),s.removeClass(m,"pswp__ui--hidden")},L.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},L.getFullscreenAPI=function(){var e,t=document.documentElement,n="fullscreenchange";return t.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:t.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:t.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:t.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){if(v=x.closeOnScroll,x.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return o.template[this.enterK]();o.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return x.closeOnScroll=v,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}});
|
|
|
|
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(p,n,e,t){var f={features:null,bind:function(e,t,n,i){var o=(i?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[o](t[a],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){t=document.createElement(t||"div");return e&&(t.className=e),t},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){f.bind(e,t,n,!0)},removeClass:function(e,t){t=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(t," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){f.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(f.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var i=e.length;i--;)if(e[i][n]===t)return i;return-1},extend:function(e,t,n){for(var i in t)t.hasOwnProperty(i)&&(n&&e.hasOwnProperty(i)||(e[i]=t[i]))},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(f.features)return f.features;var e,t,n=f.createEl().style,i="",o={};o.oldIE=document.all&&!document.addEventListener,o.touch="ontouchstart"in window,window.requestAnimationFrame&&(o.raf=window.requestAnimationFrame,o.caf=window.cancelAnimationFrame),o.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,o.pointerEvent||(e=navigator.userAgent,!/iP(hone|od)/.test(navigator.platform)||(t=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&0<t.length&&1<=(t=parseInt(t[1],10))&&t<8&&(o.isOldIOSPhone=!0),t=(t=e.match(/Android\s([0-9\.]*)/))?t[1]:0,1<=(t=parseFloat(t))&&(t<4.4&&(o.isOldAndroid=!0),o.androidVersion=t),o.isMobileOpera=/opera mini|opera mobi/i.test(e));for(var a,r,l,s=["transform","perspective","animationName"],c=["","webkit","Moz","ms","O"],u=0;u<4;u++){for(var i=c[u],d=0;d<3;d++)a=s[d],r=i+(i?a.charAt(0).toUpperCase()+a.slice(1):a),!o[a]&&r in n&&(o[a]=r);i&&!o.raf&&(i=i.toLowerCase(),o.raf=window[i+"RequestAnimationFrame"],o.raf&&(o.caf=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"]))}return o.raf||(l=0,o.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-l)),i=window.setTimeout(function(){e(t+n)},n);return l=t+n,i},o.caf=function(e){clearTimeout(e)}),o.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,f.features=o}};f.detectFeatures(),f.features.oldIE&&(f.bind=function(e,t,n,i){t=t.split(" ");for(var o,a=(i?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},l=0;l<t.length;l++)if(o=t[l])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=r;e[a]("on"+o,n["oldIE"+o])}else e[a]("on"+o,n)});var h=this,y={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};f.extend(y,t);function i(){return{x:0,y:0}}function o(e,t){f.extend(h,t.publicMethods),je.push(e)}function r(e){var t=Xt();return t-1<e?e-t:e<0?t+e:e}function a(e,t){return et[e]||(et[e]=[]),et[e].push(t)}function x(e){var t=et[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<t.length;i++)t[i].apply(h,n)}}function u(){return(new Date).getTime()}function g(e){Ne=e,h.bg.style.opacity=e*y.bgOpacity}function l(e,t,n,i,o){(!Qe||o&&o!==h.currItem)&&(i/=(o||h.currItem).fitRatio),e[le]=j+t+"px, "+n+"px"+J+" scale("+i+")"}function d(e,t){var n;!y.loop&&t&&(n=W+(Ke.x*Xe-e)/Ke.x,t=Math.round(e-wt.x),(n<0&&0<t||n>=Xt()-1&&t<0)&&(e=wt.x+t*y.mainScrollEndFriction)),wt.x=e,it(e,B)}function s(e,t){var n=bt[e]-Ve[e];return We[e]+Ye[e]+n-t/$*n}function v(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)}function c(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function m(e,t){return e=jt(h.currItem,Ge,e),t&&(Pe=e),e}function w(e){return(e=e||h.currItem).initialZoomLevel}function b(e){return 0<(e=e||h.currItem).w?y.maxSpreadZoom:1}function I(e,t,n,i){return i===h.currItem.initialZoomLevel?(n[e]=h.currItem.initialPosition[e],!0):(n[e]=s(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))}function C(e){var t="";y.escKey&&27===e.keyCode?t="close":y.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,h[t]()))}function D(e){e&&(Se||Me||Fe||Ie)&&(e.preventDefault(),e.stopPropagation())}function T(){h.setScrollOffset(0,f.getScrollY())}function M(e){rt[e]&&(rt[e].raf&&de(rt[e].raf),lt--,delete rt[e])}function S(e){rt[e]&&M(e),rt[e]||(lt++,rt[e]={})}function A(){for(var e in rt)rt.hasOwnProperty(e)&&M(e)}function E(e,t,n,i,o,a,r){var l,s=u();S(e);var c=function(){if(rt[e]){if(l=u()-s,i<=l)return M(e),a(n),void(r&&r());a((n-t)*o(l/i)+t),rt[e].raf=ue(c)}};c()}function O(e,t){return yt.x=Math.abs(e.x-t.x),yt.y=Math.abs(e.y-t.y),Math.sqrt(yt.x*yt.x+yt.y*yt.y)}function k(e,t){return Mt.prevent=!Tt(e.target,y.isClickableElement),x("preventDragEvent",e,t,Mt),Mt.prevent}function R(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t}function P(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)}function Z(){var e=Be.y-h.currItem.initialPosition.y;return 1-Math.abs(e/(Ge.y/2))}function F(e){for(;0<Et.length;)Et.pop();return se?(He=0,pt.forEach(function(e){0===He?Et[0]=e:1===He&&(Et[1]=e),He++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(Et[0]=R(e.touches[0],St),1<e.touches.length&&(Et[1]=R(e.touches[1],At))):(St.x=e.pageX,St.y=e.pageY,St.id="",Et[0]=St),Et}function L(e,t){var n,i,o,a=Be[e]+t[e],r=0<t[e],l=wt.x+t.x,s=wt.x-ft.x,c=a>Pe.min[e]||a<Pe.max[e]?y.panEndFriction:1,a=Be[e]+t[e]*c;if((y.allowPanToNext||q===h.currItem.initialZoomLevel)&&(Ze?"h"!==Le||"x"!==e||Me||(r?(a>Pe.min[e]&&(c=y.panEndFriction,Pe.min[e],n=Pe.min[e]-We[e]),(n<=0||s<0)&&1<Xt()?(o=l,s<0&&l>ft.x&&(o=ft.x)):Pe.min.x!==Pe.max.x&&(i=a)):(a<Pe.max[e]&&(c=y.panEndFriction,Pe.max[e],n=We[e]-Pe.max[e]),(n<=0||0<s)&&1<Xt()?(o=l,0<s&&l<ft.x&&(o=ft.x)):Pe.min.x!==Pe.max.x&&(i=a))):o=l,"x"===e))return void 0!==o&&(d(o,!0),Ee=o!==ft.x),Pe.min.x!==Pe.max.x&&(void 0!==i?Be.x=i:Ee||(Be.x+=t.x*c)),void 0!==o;Fe||Ee||q>h.currItem.fitRatio&&(Be[e]+=t[e]*c)}function z(e){var t;"mousedown"===e.type&&0<e.button||(Bt?e.preventDefault():Ce&&"mousedown"===e.type||(k(e,!0)&&e.preventDefault(),x("pointerDown"),se&&((t=f.arraySearch(pt,e.pointerId,"id"))<0&&(t=pt.length),pt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}),e=(t=F(e)).length,Oe=null,A(),De&&1!==e||(De=ze=!0,f.bind(window,X,h),be=Ue=_e=Ie=Ee=Se=Te=Me=!1,Le=null,x("firstTouchStart",t),v(We,Be),Ye.x=Ye.y=0,v(dt,t[0]),v(mt,dt),ft.x=Ke.x*Xe,ht=[{x:dt.x,y:dt.y}],ve=ge=u(),m(q,!0),Ct(),Dt()),!ke&&1<e&&!Fe&&!Ee&&($=q,ke=Te=!(Me=!1),Ye.y=Ye.x=0,v(We,Be),v(st,t[0]),v(ct,t[1]),P(st,ct,It),bt.x=Math.abs(It.x)-Be.x,bt.y=Math.abs(It.y)-Be.y,Re=O(st,ct))))}function _(e){var t,n;e.preventDefault(),!se||-1<(t=f.arraySearch(pt,e.pointerId,"id"))&&((n=pt[t]).x=e.pageX,n.y=e.pageY),De&&(n=F(e),Le||Se||ke?Oe=n:wt.x!==Ke.x*Xe?Le="h":(e=Math.abs(n[0].x-dt.x)-Math.abs(n[0].y-dt.y),10<=Math.abs(e)&&(Le=0<e?"h":"v",Oe=n)))}function N(e){if(ye.isOldAndroid){if(Ce&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(Ce),Ce=setTimeout(function(){Ce=0},600))}x("pointerUp"),k(e,!1)&&e.preventDefault(),!se||-1<(n=f.arraySearch(pt,e.pointerId,"id"))&&(a=pt.splice(n,1)[0],navigator.msPointerEnabled&&!navigator.pointerEnabled?(a.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],a.type||(a.type=e.pointerType||"mouse")):a.type=e.pointerType||"mouse");var t=F(e),n=t.length;if(2===(n="mouseup"===e.type?0:n))return!(Oe=null);1===n&&v(mt,t[0]),0!==n||Le||Fe||(a||("mouseup"===e.type?a={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(a={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),x("touchRelease",e,a));var i,o,a=-1;if(0===n&&(De=!1,f.unbind(window,X,h),Ct(),ke?a=0:-1!==vt&&(a=u()-vt)),vt=1===n?u():-1,a=-1!==a&&a<150?"zoom":"swipe",ke&&n<2&&(ke=!1,1===n&&(a="zoomPointerUp"),x("zoomGestureEnded")),Oe=null,Se||Me||Fe||Ie)if(A(),(we=we||kt()).calculateSwipeSpeed("x"),Ie)Z()<y.verticalDragRange?h.close():(i=Be.y,o=Ne,E("verticalDrag",0,1,300,f.easing.cubic.out,function(e){Be.y=(h.currItem.initialPosition.y-i)*e+i,g((1-o)*e+o),tt()}),x("onVerticalDrag",1));else{if((Ee||Fe)&&0===n){if(Pt(a,we))return;a="zoomPointerUp"}Fe||("swipe"===a?!Ee&&q>h.currItem.fitRatio&&Rt(we):Ft())}}var U,H,Y,W,B,G,X,V,K,q,$,j,J,Q,ee,te,ne,ie,oe,ae,re,le,se,ce,ue,de,me,pe,fe,he,ye,xe,ge,ve,we,be,Ie,Ce,De,Te,Me,Se,Ae,Ee,Oe,ke,Re,Pe,Ze,Fe,Le,ze,_e,Ne,Ue,He,Ye=i(),We=i(),Be=i(),Ge={},Xe=0,Ve={},Ke=i(),qe=0,$e=!0,je=[],Je={},Qe=!1,et={},tt=function(e){Ze&&(e&&(q>h.currItem.fitRatio?Qe||(Jt(h.currItem,!1,!0),Qe=!0):Qe&&(Jt(h.currItem),Qe=!1)),l(Ze,Be.x,Be.y,q))},nt=function(e){e.container&&l(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},it=function(e,t){t[le]=j+e+"px, 0px"+J},ot=null,at=function(){ot&&(f.unbind(document,"mousemove",at),f.addClass(p,"pswp--has_mouse"),y.mouseUsed=!0,x("mouseUsed")),ot=setTimeout(function(){ot=null},100)},rt={},lt=0,t={shout:x,listen:a,viewportSize:Ge,options:y,isMainScrollAnimating:function(){return Fe},getZoomLevel:function(){return q},getCurrentIndex:function(){return W},isDragging:function(){return De},isZooming:function(){return ke},setScrollOffset:function(e,t){Ve.x=e,he=Ve.y=t,x("updateScrollOffset",Ve)},applyZoomPan:function(e,t,n,i){Be.x=t,Be.y=n,q=e,tt(i)},init:function(){if(!U&&!H){var e;h.framework=f,h.template=p,h.bg=f.getChildByClass(p,"pswp__bg"),me=p.className,U=!0,ye=f.detectFeatures(),ue=ye.raf,de=ye.caf,le=ye.transform,fe=ye.oldIE,h.scrollWrap=f.getChildByClass(p,"pswp__scroll-wrap"),h.container=f.getChildByClass(h.scrollWrap,"pswp__container"),B=h.container.style,h.itemHolders=te=[{el:h.container.children[0],wrap:0,index:-1},{el:h.container.children[1],wrap:0,index:-1},{el:h.container.children[2],wrap:0,index:-1}],te[0].el.style.display=te[2].el.style.display="none",function(){if(le){var e=ye.perspective&&!ce;return j="translate"+(e?"3d(":"("),J=ye.perspective?", 0px)":")"}le="left",f.addClass(p,"pswp--ie"),it=function(e,t){t.left=e+"px"},nt=function(e){var t=1<e.fitRatio?1:e.fitRatio,n=e.container.style,i=t*e.w,t=t*e.h;n.width=i+"px",n.height=t+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},tt=function(){var e,t,n,i;Ze&&(e=Ze,n=(t=1<(i=h.currItem).fitRatio?1:i.fitRatio)*i.w,i=t*i.h,e.width=n+"px",e.height=i+"px",e.left=Be.x+"px",e.top=Be.y+"px")}}(),K={resize:h.updateSize,orientationchange:function(){clearTimeout(xe),xe=setTimeout(function(){Ge.x!==h.scrollWrap.clientWidth&&h.updateSize()},500)},scroll:T,keydown:C,click:D};var t=ye.isOldIOSPhone||ye.isOldAndroid||ye.isMobileOpera;for(ye.animationName&&ye.transform&&!t||(y.showAnimationDuration=y.hideAnimationDuration=0),e=0;e<je.length;e++)h["init"+je[e]]();n&&(h.ui=new n(h,f)).init(),x("firstUpdate"),W=W||y.index||0,(isNaN(W)||W<0||W>=Xt())&&(W=0),h.currItem=Gt(W),(ye.isOldIOSPhone||ye.isOldAndroid)&&($e=!1),p.setAttribute("aria-hidden","false"),y.modal&&($e?p.style.position="fixed":(p.style.position="absolute",p.style.top=f.getScrollY()+"px")),void 0===he&&(x("initialLayout"),he=pe=f.getScrollY());t="pswp--open ";for(y.mainClass&&(t+=y.mainClass+" "),y.showHideOpacity&&(t+="pswp--animate_opacity "),t+=ce?"pswp--touch":"pswp--notouch",t+=ye.animationName?" pswp--css_animation":"",t+=ye.svg?" pswp--svg":"",f.addClass(p,t),h.updateSize(),G=-1,qe=null,e=0;e<3;e++)it((e+G)*Ke.x,te[e].el.style);fe||f.bind(h.scrollWrap,V,h),a("initialZoomInEnd",function(){h.setContent(te[0],W-1),h.setContent(te[2],W+1),te[0].el.style.display=te[2].el.style.display="block",y.focus&&p.focus(),f.bind(document,"keydown",h),ye.transform&&f.bind(h.scrollWrap,"click",h),y.mouseUsed||f.bind(document,"mousemove",at),f.bind(window,"resize scroll orientationchange",h),x("bindEvents")}),h.setContent(te[1],W),h.updateCurrItem(),x("afterInit"),$e||(Q=setInterval(function(){lt||De||ke||q!==h.currItem.initialZoomLevel||h.updateSize()},1e3)),f.addClass(p,"pswp--visible")}},close:function(){U&&(H=!(U=!1),x("close"),f.unbind(window,"resize scroll orientationchange",h),f.unbind(window,"scroll",K.scroll),f.unbind(document,"keydown",h),f.unbind(document,"mousemove",at),ye.transform&&f.unbind(h.scrollWrap,"click",h),De&&f.unbind(window,X,h),clearTimeout(xe),x("unbindEvents"),Vt(h.currItem,null,!0,h.destroy))},destroy:function(){x("destroy"),Ht&&clearTimeout(Ht),p.setAttribute("aria-hidden","true"),p.className=me,Q&&clearInterval(Q),f.unbind(h.scrollWrap,V,h),f.unbind(window,"scroll",h),Ct(),A(),et=null},panTo:function(e,t,n){n||(e>Pe.min.x?e=Pe.min.x:e<Pe.max.x&&(e=Pe.max.x),t>Pe.min.y?t=Pe.min.y:t<Pe.max.y&&(t=Pe.max.y)),Be.x=e,Be.y=t,tt()},handleEvent:function(e){e=e||window.event,K[e.type]&&K[e.type](e)},goTo:function(e){var t=(e=r(e))-W;qe=t,W=e,h.currItem=Gt(W),Xe-=t,d(Ke.x*Xe),A(),Fe=!1,h.updateCurrItem()},next:function(){h.goTo(W+1)},prev:function(){h.goTo(W-1)},updateCurrZoomItem:function(e){var t;e&&x("beforeChange",0),Ze=te[1].el.children.length?(t=te[1].el.children[0],f.hasClass(t,"pswp__zoom-wrap")?t.style:null):null,Pe=h.currItem.bounds,$=q=h.currItem.initialZoomLevel,Be.x=Pe.center.x,Be.y=Pe.center.y,e&&x("afterChange")},invalidateCurrItems:function(){ee=!0;for(var e=0;e<3;e++)te[e].item&&(te[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==qe){var t,n=Math.abs(qe);if(!(e&&n<2)){h.currItem=Gt(W),Qe=!1,x("beforeChange",qe),3<=n&&(G+=qe+(0<qe?-3:3),n=3);for(var i=0;i<n;i++)0<qe?(t=te.shift(),te[2]=t,it((++G+2)*Ke.x,t.el.style),h.setContent(t,W-n+i+1+1)):(t=te.pop(),te.unshift(t),it(--G*Ke.x,t.el.style),h.setContent(t,W+n-i-1-1));!Ze||1!==Math.abs(qe)||(e=Gt(ne)).initialZoomLevel!==q&&(jt(e,Ge),Jt(e),nt(e)),qe=0,h.updateCurrZoomItem(),ne=W,x("afterChange")}}},updateSize:function(e){if(!$e&&y.modal){var t=f.getScrollY();if(he!==t&&(p.style.top=t+"px",he=t),!e&&Je.x===window.innerWidth&&Je.y===window.innerHeight)return;Je.x=window.innerWidth,Je.y=window.innerHeight,p.style.height=Je.y+"px"}if(Ge.x=h.scrollWrap.clientWidth,Ge.y=h.scrollWrap.clientHeight,T(),Ke.x=Ge.x+Math.round(Ge.x*y.spacing),Ke.y=Ge.y,d(Ke.x*Xe),x("beforeResize"),void 0!==G){for(var n,i,o,a=0;a<3;a++)n=te[a],it((a+G)*Ke.x,n.el.style),o=W+a-1,y.loop&&2<Xt()&&(o=r(o)),(i=Gt(o))&&(ee||i.needsUpdate||!i.bounds)?(h.cleanSlide(i),h.setContent(n,o),1===a&&(h.currItem=i,h.updateCurrZoomItem(!0)),i.needsUpdate=!1):-1===n.index&&0<=o&&h.setContent(n,o),i&&i.container&&(jt(i,Ge),Jt(i),nt(i));ee=!1}$=q=h.currItem.initialZoomLevel,(Pe=h.currItem.bounds)&&(Be.x=Pe.center.x,Be.y=Pe.center.y,tt(!0)),x("resize")},zoomTo:function(t,e,n,i,o){e&&($=q,bt.x=Math.abs(e.x)-Be.x,bt.y=Math.abs(e.y)-Be.y,v(We,Be));var e=m(t,!1),a={};I("x",e,a,t),I("y",e,a,t);var r=q,l=Be.x,s=Be.y;c(a);e=function(e){1===e?(q=t,Be.x=a.x,Be.y=a.y):(q=(t-r)*e+r,Be.x=(a.x-l)*e+l,Be.y=(a.y-s)*e+s),o&&o(e),tt(1===e)};n?E("customZoomTo",0,1,n,i||f.easing.sine.inOut,e):e(1)}},st={},ct={},ut={},dt={},mt={},pt=[],ft={},ht=[],yt={},xt=0,gt=i(),vt=0,wt=i(),bt=i(),It=i(),Ct=function(){Ae&&(de(Ae),Ae=null)},Dt=function(){De&&(Ae=ue(Dt),Ot())},Tt=function(e,t){return!(!e||e===document)&&(!(e.getAttribute("class")&&-1<e.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(t(e)?e:Tt(e.parentNode,t)))},Mt={},St={},At={},Et=[],Ot=function(){if(Oe){var e,t,n,i,o,a=Oe.length;if(0!==a)if(v(st,Oe[0]),ut.x=st.x-dt.x,ut.y=st.y-dt.y,ke&&1<a)dt.x=st.x,dt.y=st.y,(ut.x||ut.y||(i=Oe[1],o=ct,i.x!==o.x||i.y!==o.y))&&(v(ct,Oe[1]),Me||(Me=!0,x("zoomGestureStarted")),t=O(st,ct),(n=Zt(t))>h.currItem.initialZoomLevel+h.currItem.initialZoomLevel/15&&(Ue=!0),e=1,a=w(),i=b(),n<a?y.pinchToClose&&!Ue&&$<=h.currItem.initialZoomLevel?(g(o=1-(a-n)/(a/1.2)),x("onPinchClose",o),_e=!0):n=a-(e=1<(e=(a-n)/a)?1:e)*(a/3):i<n&&(n=i+(e=1<(e=(n-i)/(6*a))?1:e)*a),e<0&&(e=0),P(st,ct,gt),Ye.x+=gt.x-It.x,Ye.y+=gt.y-It.y,v(It,gt),Be.x=s("x",n),Be.y=s("y",n),be=q<n,q=n,tt());else if(Le&&(ze&&(ze=!1,10<=Math.abs(ut.x)&&(ut.x-=Oe[0].x-mt.x),10<=Math.abs(ut.y)&&(ut.y-=Oe[0].y-mt.y)),dt.x=st.x,dt.y=st.y,0!==ut.x||0!==ut.y)){if("v"===Le&&y.closeOnVerticalDrag&&"fit"===y.scaleMode&&q===h.currItem.initialZoomLevel){Ye.y+=ut.y,Be.y+=ut.y;var r=Z();return Ie=!0,x("onVerticalDrag",r),g(r),void tt()}e=u(),t=st.x,n=st.y,50<e-ve&&((r=2<ht.length?ht.shift():{}).x=t,r.y=n,ht.push(r),ve=e),Se=!0,Pe=h.currItem.bounds,L("x",ut)||(L("y",ut),c(Be),tt())}}},kt=function(){var t,n,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=1<ht.length?(t=u()-ve+50,ht[ht.length-2][e]):(t=u()-ge,mt[e]),i.lastFlickOffset[e]=dt[e]-n,i.lastFlickDist[e]=Math.abs(i.lastFlickOffset[e]),20<i.lastFlickDist[e]?i.lastFlickSpeed[e]=i.lastFlickOffset[e]/t:i.lastFlickSpeed[e]=0,Math.abs(i.lastFlickSpeed[e])<.1&&(i.lastFlickSpeed[e]=0),i.slowDownRatio[e]=.95,i.slowDownRatioReverse[e]=1-i.slowDownRatio[e],i.speedDecelerationRatio[e]=1},calculateOverBoundsAnimOffset:function(t,e){i.backAnimStarted[t]||(Be[t]>Pe.min[t]?i.backAnimDestination[t]=Pe.min[t]:Be[t]<Pe.max[t]&&(i.backAnimDestination[t]=Pe.max[t]),void 0!==i.backAnimDestination[t]&&(i.slowDownRatio[t]=.7,i.slowDownRatioReverse[t]=1-i.slowDownRatio[t],i.speedDecelerationRatioAbs[t]<.05&&(i.lastFlickSpeed[t]=0,i.backAnimStarted[t]=!0,E("bounceZoomPan"+t,Be[t],i.backAnimDestination[t],e||300,f.easing.sine.out,function(e){Be[t]=e,tt()}))))},calculateAnimOffset:function(e){i.backAnimStarted[e]||(i.speedDecelerationRatio[e]=i.speedDecelerationRatio[e]*(i.slowDownRatio[e]+i.slowDownRatioReverse[e]-i.slowDownRatioReverse[e]*i.timeDiff/10),i.speedDecelerationRatioAbs[e]=Math.abs(i.lastFlickSpeed[e]*i.speedDecelerationRatio[e]),i.distanceOffset[e]=i.lastFlickSpeed[e]*i.speedDecelerationRatio[e]*i.timeDiff,Be[e]+=i.distanceOffset[e])},panAnimLoop:function(){rt.zoomPan&&(rt.zoomPan.raf=ue(i.panAnimLoop),i.now=u(),i.timeDiff=i.now-i.lastNow,i.lastNow=i.now,i.calculateAnimOffset("x"),i.calculateAnimOffset("y"),tt(),i.calculateOverBoundsAnimOffset("x"),i.calculateOverBoundsAnimOffset("y"),i.speedDecelerationRatioAbs.x<.05&&i.speedDecelerationRatioAbs.y<.05&&(Be.x=Math.round(Be.x),Be.y=Math.round(Be.y),tt(),M("zoomPan")))}};return i},Rt=function(e){if(e.calculateSwipeSpeed("y"),Pe=h.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;S("zoomPan"),e.lastNow=u(),e.panAnimLoop()},Pt=function(e,t){var n,i;Fe||(xt=W),"swipe"===e&&(i=dt.x-mt.x,e=t.lastFlickDist.x<10,30<i&&(e||20<t.lastFlickOffset.x)?a=-1:i<-30&&(e||t.lastFlickOffset.x<-20)&&(a=1)),a&&((W+=a)<0?(W=y.loop?Xt()-1:0,o=!0):W>=Xt()&&(W=y.loop?0:Xt()-1,o=!0),o&&!y.loop||(qe+=a,Xe-=a,n=!0));var o=Ke.x*Xe,a=Math.abs(o-wt.x),r=n||o>wt.x==0<t.lastFlickSpeed.x?(r=0<Math.abs(t.lastFlickSpeed.x)?a/Math.abs(t.lastFlickSpeed.x):333,r=Math.min(r,400),Math.max(r,250)):333;return xt===W&&(n=!1),Fe=!0,x("mainScrollAnimStart"),E("mainScroll",wt.x,o,r,f.easing.cubic.out,d,function(){A(),Fe=!1,xt=-1,!n&&xt===W||h.updateCurrItem(),x("mainScrollAnimComplete")}),n&&h.updateCurrItem(!0),n},Zt=function(e){return 1/Re*e*$},Ft=function(){var e=q,t=w(),n=b();q<t?e=t:n<q&&(e=n);var i,o=Ne;return _e&&!be&&!Ue&&q<t?h.close():(_e&&(i=function(e){g((1-o)*e+o)}),h.zoomTo(e,0,200,f.easing.cubic.out,i)),!0};o("Gestures",{publicMethods:{initGestures:function(){function e(e,t,n,i,o){ie=e+t,oe=e+n,ae=e+i,re=o?e+o:""}(se=ye.pointerEvent)&&ye.touch&&(ye.touch=!1),se?navigator.msPointerEnabled&&!navigator.pointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):window.document.documentMode?e("mouse","down","move","up","cancel"):e("pointer","down","move","up","cancel"):ye.touch?(e("touch","start","move","end","cancel"),ce=!0):e("mouse","down","move","up"),X=oe+" "+ae+" "+re,V=ie,se&&!ce&&(ce=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),h.likelyTouchDevice=ce,K[ie]=z,K[oe]=_,K[ae]=N,re&&(K[re]=K[ae]),ye.touch&&(V+=" mousedown",X+=" mousemove mouseup",K.mousedown=K[ie],K.mousemove=K[oe],K.mouseup=K[ae]),ce||(y.allowPanToNext=!1)}}});function Lt(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}}function zt(e,t,n,i,o,a){t.loadError||i&&(t.imageAppended=!0,Jt(t,i,t===h.currItem&&Qe),n.appendChild(i),a&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))}function _t(e){function t(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,n.onload=n.onerror=null,n=null}e.loading=!0,e.loaded=!1;var n=e.img=f.createEl("pswp__img","img");return n.onload=t,n.onerror=function(){e.loadError=!0,t()},n.src=e.src,n}function Nt(e,t){return e.src&&e.loadError&&e.container&&(t&&(e.container.innerHTML=""),e.container.innerHTML=y.errorMsg.replace("%url%",e.src),1)}function Ut(){if(qt.length){for(var e,t=0;t<qt.length;t++)(e=qt[t]).holder.index===e.index&&zt(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);qt=[]}}var Ht,Yt,Wt,Bt,Gt,Xt,Vt=function(r,e,l,t){var s;Ht&&clearTimeout(Ht),Wt=Bt=!0,r.initialLayout?(s=r.initialLayout,r.initialLayout=null):s=y.getThumbBoundsFn&&y.getThumbBoundsFn(W);function c(){M("initialZoom"),l?(h.template.removeAttribute("style"),h.bg.removeAttribute("style")):(g(1),e&&(e.style.display="block"),f.addClass(p,"pswp--animated-in"),x("initialZoom"+(l?"OutEnd":"InEnd"))),t&&t(),Bt=!1}var u=l?y.hideAnimationDuration:y.showAnimationDuration;if(!u||!s||void 0===s.x)return x("initialZoom"+(l?"Out":"In")),q=r.initialZoomLevel,v(Be,r.initialPosition),tt(),p.style.opacity=l?0:1,g(1),void(u?setTimeout(function(){c()},u):c());var d,m;d=Y,m=!h.currItem.src||h.currItem.loadError||y.showHideOpacity,r.miniImg&&(r.miniImg.style.webkitBackfaceVisibility="hidden"),l||(q=s.w/r.w,Be.x=s.x,Be.y=s.y-pe,h[m?"template":"bg"].style.opacity=.001,tt()),S("initialZoom"),l&&!d&&f.removeClass(p,"pswp--animated-in"),m&&(l?f[(d?"remove":"add")+"Class"](p,"pswp--animate_opacity"):setTimeout(function(){f.addClass(p,"pswp--animate_opacity")},30)),Ht=setTimeout(function(){var t,n,i,o,a,e;x("initialZoom"+(l?"Out":"In")),l?(t=s.w/r.w,n=Be.x,i=Be.y,o=q,a=Ne,e=function(e){1===e?(q=t,Be.x=s.x,Be.y=s.y-he):(q=(t-o)*e+o,Be.x=(s.x-n)*e+n,Be.y=(s.y-he-i)*e+i),tt(),m?p.style.opacity=1-e:g(a-e*a)},d?E("initialZoom",0,1,u,f.easing.cubic.out,e,c):(e(1),Ht=setTimeout(c,u+20))):(q=r.initialZoomLevel,v(Be,r.initialPosition),tt(),g(1),m?p.style.opacity=1:g(1),Ht=setTimeout(c,u+20))},l?25:90)},Kt={},qt=[],$t={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Yt.length}},jt=function(e,t,n){if(!e.src||e.loadError)return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=Lt(),e.initialPosition=e.bounds.center,e.bounds;var i,o,a,r=!n;return r&&(e.vGap||(e.vGap={top:0,bottom:0}),x("parseVerticalMargin",e)),Kt.x=t.x,Kt.y=t.y-e.vGap.top-e.vGap.bottom,r&&(i=Kt.x/e.w,o=Kt.y/e.h,e.fitRatio=i<o?i:o,"orig"===(a=y.scaleMode)?n=1:"fit"===a&&(n=e.fitRatio),1<n&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds=Lt())),n?(i=(t=e).w*n,o=e.h*n,(a=t.bounds).center.x=Math.round((Kt.x-i)/2),a.center.y=Math.round((Kt.y-o)/2)+t.vGap.top,a.max.x=i>Kt.x?Math.round(Kt.x-i):a.center.x,a.max.y=o>Kt.y?Math.round(Kt.y-o)+t.vGap.top:a.center.y,a.min.x=i>Kt.x?0:a.center.x,a.min.y=o>Kt.y?t.vGap.top:a.center.y,r&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0},Jt=function(e,t,n){var i;e.src&&(t=t||e.container.lastChild,i=n?e.w:Math.round(e.w*e.fitRatio),n=n?e.h:Math.round(e.h*e.fitRatio),e.placeholder&&!e.loaded&&(e.placeholder.style.width=i+"px",e.placeholder.style.height=n+"px"),t.style.width=i+"px",t.style.height=n+"px",x("imageRatioChanged",[!e.loaded&&e.placeholder,t],i/e.w))};o("Controller",{publicMethods:{lazyLoadItem:function(e){e=r(e);var t=Gt(e);t&&(!t.loaded&&!t.loading||ee)&&(x("gettingData",e,t),t.src&&_t(t))},initController:function(){f.extend(y,$t,!0),h.items=Yt=e,Gt=h.getItemAt,Xt=y.getNumItemsFn,y.loop,Xt()<3&&(y.loop=!1),a("beforeChange",function(e){for(var t=y.preload,n=null===e||0<=e,i=Math.min(t[0],Xt()),o=Math.min(t[1],Xt()),a=1;a<=(n?o:i);a++)h.lazyLoadItem(W+a);for(a=1;a<=(n?i:o);a++)h.lazyLoadItem(W-a)}),a("initialLayout",function(){h.currItem.initialLayout=y.getThumbBoundsFn&&y.getThumbBoundsFn(W)}),a("mainScrollAnimComplete",Ut),a("initialZoomInEnd",Ut),a("destroy",function(){for(var e,t=0;t<Yt.length;t++)(e=Yt[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);qt=null})},getItemAt:function(e){return 0<=e&&(void 0!==Yt[e]&&Yt[e])},allowProgressiveImg:function(){return y.forceProgressiveLoading||!ce||y.mouseUsed||1200<screen.width},setContent:function(t,n){y.loop&&(n=r(n));var e=h.getItemAt(t.index);e&&(e.container=null);var i,o,a=h.getItemAt(n);a?(x("gettingData",n,a),t.index=n,o=(t.item=a).container=f.createEl("pswp__zoom-wrap"),!a.src&&a.html&&(a.html.tagName?o.appendChild(a.html):o.innerHTML=a.html),Nt(a),jt(a,Ge),!a.src||a.loadError||a.loaded?a.src&&!a.loadError&&((i=f.createEl("pswp__img","img")).style.opacity=1,i.src=a.src,Jt(a,i),zt(0,a,o,i)):(a.loadComplete=function(e){if(U){if(t&&t.index===n){if(Nt(e,!0))return e.loadComplete=e.img=null,jt(e,Ge),nt(e),void(t.index===W&&h.updateCurrZoomItem());e.imageAppended?!Bt&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):ye.transform&&(Fe||Bt)?qt.push({item:e,baseDiv:o,img:e.img,index:n,holder:t,clearPlaceholder:!0}):zt(0,e,o,e.img,0,!0)}e.loadComplete=null,e.img=null,x("imageLoadComplete",n,e)}},f.features.transform&&(e="pswp__img pswp__img--placeholder",e+=a.msrc?"":" pswp__img--placeholder--blank",e=f.createEl(e,a.msrc?"img":""),a.msrc&&(e.src=a.msrc),Jt(a,e),o.appendChild(e),a.placeholder=e),a.loading||_t(a),h.allowProgressiveImg()&&(!Wt&&ye.transform?qt.push({item:a,baseDiv:o,img:a.img,index:n,holder:t}):zt(0,a,o,a.img,0,!0))),Wt||n!==W?nt(a):(Ze=o.style,Vt(a,i||a.img)),t.el.innerHTML="",t.el.appendChild(o)):t.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});function Qt(e,t,n){var i=document.createEvent("CustomEvent"),n={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,n),e.target.dispatchEvent(i)}var en,tn,nn={};o("Tap",{publicMethods:{initTap:function(){a("firstTouchStart",h.onTapStart),a("touchRelease",h.onTapRelease),a("destroy",function(){nn={},en=null})},onTapStart:function(e){1<e.length&&(clearTimeout(en),en=null)},onTapRelease:function(e,t){var n,i,o;t&&(Se||Te||lt||(n=t,en&&(clearTimeout(en),en=null,i=n,o=nn,Math.abs(i.x-o.x)<25&&Math.abs(i.y-o.y)<25)?x("doubleTap",n):"mouse"!==t.type?"BUTTON"===e.target.tagName.toUpperCase()||f.hasClass(e.target,"pswp__single-tap")?Qt(e,t):(v(nn,n),en=setTimeout(function(){Qt(e,t),en=null},300)):Qt(e,t,"mouse")))}}}),o("DesktopZoom",{publicMethods:{initDesktopZoom:function(){fe||(ce?a("mouseUsed",function(){h.setupDesktopZoom()}):h.setupDesktopZoom(!0))},setupDesktopZoom:function(e){tn={};var t="wheel mousewheel DOMMouseScroll";a("bindEvents",function(){f.bind(p,t,h.handleMouseWheel)}),a("unbindEvents",function(){tn&&f.unbind(p,t,h.handleMouseWheel)}),h.mouseZoomedIn=!1;function n(){h.mouseZoomedIn&&(f.removeClass(p,"pswp--zoomed-in"),h.mouseZoomedIn=!1),q<1?f.addClass(p,"pswp--zoom-allowed"):f.removeClass(p,"pswp--zoom-allowed"),o()}var i,o=function(){i&&(f.removeClass(p,"pswp--dragging"),i=!1)};a("resize",n),a("afterChange",n),a("pointerDown",function(){h.mouseZoomedIn&&(i=!0,f.addClass(p,"pswp--dragging"))}),a("pointerUp",o),e||n()},handleMouseWheel:function(e){if(q<=h.currItem.fitRatio)return y.modal&&(!y.closeOnScroll||lt||De?e.preventDefault():le&&2<Math.abs(e.deltaY)&&(Y=!0,h.close())),!0;if(e.stopPropagation(),tn.x=0,"deltaX"in e)1===e.deltaMode?(tn.x=18*e.deltaX,tn.y=18*e.deltaY):(tn.x=e.deltaX,tn.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(tn.x=-.16*e.wheelDeltaX),e.wheelDeltaY?tn.y=-.16*e.wheelDeltaY:tn.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;tn.y=e.detail}m(q,!0);var t=Be.x-tn.x,n=Be.y-tn.y;(y.modal||t<=Pe.min.x&&t>=Pe.max.x&&n<=Pe.min.y&&n>=Pe.max.y)&&e.preventDefault(),h.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:Ge.x/2+Ve.x,y:Ge.y/2+Ve.y};var t=y.getDoubleTapZoom(!0,h.currItem),n=q===t;h.mouseZoomedIn=!n,h.zoomTo(n?h.currItem.initialZoomLevel:t,e,333),f[(n?"remove":"add")+"Class"](p,"pswp--zoomed-in")}}});function on(){return xn.hash.substring(1)}function an(){ln&&clearTimeout(ln),cn&&clearTimeout(cn)}function rn(){var e=on(),t={};if(e.length<5)return t;var n,i=e.split("&");for(a=0;a<i.length;a++)i[a]&&((n=i[a].split("=")).length<2||(t[n[0]]=n[1]));if(y.galleryPIDs){for(var o=t.pid,a=t.pid=0;a<Yt.length;a++)if(Yt[a].pid===o){t.pid=a;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t}var ln,sn,cn,un,dn,mn,pn,fn,hn,yn,xn,gn,vn={history:!0,galleryUID:1},wn=function(){var e,t;cn&&clearTimeout(cn),lt||De?cn=setTimeout(wn,500):(un?clearTimeout(sn):un=!0,t=W+1,(e=Gt(W)).hasOwnProperty("pid")&&(t=e.pid),e=pn+"&gid="+y.galleryUID+"&pid="+t,fn||-1===xn.hash.indexOf(e)&&(yn=!0),t=xn.href.split("#")[0]+"#"+e,gn?"#"+e!==window.location.hash&&history[fn?"replaceState":"pushState"]("",document.title,t):fn?xn.replace(t):xn.hash=e,fn=!0,sn=setTimeout(function(){un=!1},60))};o("History",{publicMethods:{initHistory:function(){var e,t;f.extend(y,vn,!0),y.history&&(xn=window.location,fn=hn=yn=!1,pn=on(),gn="pushState"in history,-1<pn.indexOf("gid=")&&(pn=(pn=pn.split("&gid=")[0]).split("?gid=")[0]),a("afterChange",h.updateURL),a("unbindEvents",function(){f.unbind(window,"hashchange",h.onHashChange)}),e=function(){mn=!0,hn||(yn?history.back():pn?xn.hash=pn:gn?history.pushState("",document.title,xn.pathname+xn.search):xn.hash=""),an()},a("unbindEvents",function(){Y&&e()}),a("destroy",function(){mn||e()}),a("firstUpdate",function(){W=rn().pid}),-1<(t=pn.indexOf("pid="))&&"&"===(pn=pn.substring(0,t)).slice(-1)&&(pn=pn.slice(0,-1)),setTimeout(function(){U&&f.bind(window,"hashchange",h.onHashChange)},40))},onHashChange:function(){if(on()===pn)return hn=!0,void h.close();un||(dn=!0,h.goTo(rn().pid),dn=!1)},updateURL:function(){an(),dn||(fn?ln=setTimeout(wn,800):wn())}}}),f.extend(h,t)}});
|
|
|
|
$(document).ready(function() {
|
|
var magnifiedImages = $('.de_wndimg[data-full-src],.de_ctrlimg[data-full-src],.de_custom_img[data-full-src]');
|
|
if (!magnifiedImages.length) {
|
|
return;
|
|
}
|
|
function toggleImageClass (area, toggleClass) {
|
|
var mapId = $(area).closest('map').attr('id');
|
|
var image = $('[usemap="#' + mapId + '"]');
|
|
image.toggleClass('forcePointerCursor', toggleClass);
|
|
}
|
|
$('.description_on_page area').mouseenter(function () {
|
|
toggleImageClass(this, true);
|
|
});
|
|
$('.description_on_page area').mouseleave(function () {
|
|
toggleImageClass(this, false);
|
|
});
|
|
magnifiedImages.each(function (index) {
|
|
var borderWidth = 10;
|
|
var borderRadius = 5;
|
|
var el = $(this);
|
|
el.attr('data-pswp-uid', index + 1);
|
|
el.click(function (e) {
|
|
e.preventDefault();
|
|
var options = {
|
|
index: 0,
|
|
galleryUID: index + 1,
|
|
getThumbBoundsFn: function (index) {
|
|
var rect = el[0].getBoundingClientRect();
|
|
var pageYScroll = window.pageYOffset || document.documentElement.scrollTop;
|
|
return {x: rect.left, y: rect.top + pageYScroll, w: rect.width};
|
|
},
|
|
history: false,
|
|
errorMsg: '<div class="pswp__error-msg">Error loading image %url%</div>',
|
|
showHideOpacity: true,
|
|
fullscreenEl: false,
|
|
captionEl: false,
|
|
shareEl: false,
|
|
counterEl: false,
|
|
arrowEl: false,
|
|
bgOpacity: 0.75
|
|
};
|
|
var items = [
|
|
{
|
|
src: el.attr('data-full-src'),
|
|
msrc: el.prop('src'),
|
|
w: parseInt(el.attr('data-full-width'), 10) + 2 * borderWidth,
|
|
h: parseInt(el.attr('data-full-height'), 10) + 2 * borderWidth
|
|
}
|
|
];
|
|
var gallery = new PhotoSwipe($('.pswp')[0], PhotoSwipeUI_Default, items, options);
|
|
gallery.listen('imageRatioChanged', function (imageList, ratio) {
|
|
for (var i = 0; i < imageList.length; ++i) {
|
|
var img = imageList[i];
|
|
if (img) {
|
|
img.style.borderWidth = borderWidth * ratio + 'px';
|
|
img.style.borderRadius = borderRadius * ratio + 'px';
|
|
}
|
|
}
|
|
});
|
|
gallery.init();
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
var spoilers = $('table.de-spoiler-text-block');
|
|
spoilers.each(function (index) {
|
|
var el = $(this);
|
|
|
|
var default_state = el.data('spoiler-text-block-state');
|
|
var toggle_show_unicode = el.data('spoiler-text-block-toggle-show-unicode');
|
|
var toggle_hide_unicode = el.data('spoiler-text-block-toggle-hide-unicode');
|
|
var toggle_normal_color = el.data('spoiler-text-block-toggle-normal-color');
|
|
var toggle_highlight_color = el.data('spoiler-text-block-toggle-highlight-color');
|
|
|
|
var toggle_el = el.find('> tbody > tr > td.de-tb-spoiler > span.de-spoiler-text-block-toggle');
|
|
|
|
var text_el = el.find('> tbody > tr > td.de-tb-text');
|
|
|
|
var first_paragraph_el = text_el.find('> *:first-child');
|
|
var toggle_and_first_paragraph = $($.merge($.merge([], toggle_el), first_paragraph_el));
|
|
|
|
toggle_and_first_paragraph.css('cursor', 'pointer');
|
|
toggle_and_first_paragraph.css('user-select', 'none');
|
|
|
|
var other_paragraphs = text_el.find('> *').not(first_paragraph_el);
|
|
|
|
toggle_and_first_paragraph.click(function (event) {
|
|
event.stopPropagation();
|
|
if (el.data('spoiler-text-block-state') == 'show')
|
|
{
|
|
if (toggle_hide_unicode != '')
|
|
{
|
|
toggle_el.css('display', 'inline-block');
|
|
toggle_el.html('&#x' + toggle_hide_unicode + ';');
|
|
}
|
|
else
|
|
{
|
|
toggle_el.css('display', 'none');
|
|
}
|
|
other_paragraphs.hide();
|
|
el.data('spoiler-text-block-state', 'hide');
|
|
}
|
|
else if (el.data('spoiler-text-block-state') == 'hide')
|
|
{
|
|
if (toggle_show_unicode != '')
|
|
{
|
|
toggle_el.css('display', 'inline-block');
|
|
toggle_el.html('&#x' + toggle_show_unicode + ';');
|
|
}
|
|
else
|
|
{
|
|
toggle_el.css('display', 'none');
|
|
}
|
|
other_paragraphs.show();
|
|
el.data('spoiler-text-block-state', 'show');
|
|
}
|
|
});
|
|
|
|
toggle_el.css('color', toggle_normal_color);
|
|
|
|
toggle_and_first_paragraph.hover(function (event) {
|
|
event.stopPropagation();
|
|
toggle_el.css('color', toggle_highlight_color);
|
|
}, function () {
|
|
toggle_el.css('color', toggle_normal_color);
|
|
});
|
|
|
|
el.data('spoiler-text-block-state', (default_state == 'show' ? 'hide' : 'show'));
|
|
first_paragraph_el.click();
|
|
});
|
|
}); |