var liveViewLabel='Live View',formCodeLabel='Have you got a code? Enter it here',formNameLabel='Name',formEmailAddressLabel='Email Address',formTelephoneLabel='Telephone',personalVideoLabel='Personal Video',formNotesLabel='What would you like to see?',submitLabel='Submit',cancelLabel='Cancel',commentsLabel='Comments',closeLabel='Close',requiredFieldLabel='Required Field',loadingImagesLabel='Loading Images',krte='',liveViewCSS='https://player.aos.tv/css/liveView.css',threeSixtyCSS='https://player.aos.tv/css/threeSixty.css',logScript='https://player.aos.tv/log.php',playerDomain='https://player.aos.tv',pageProtocol='https://https';function createMethod(a) {
return function () {
throw new Error('The "' + a + "\" method is not available on the playback technology's API")
}
}
function playList(a, b) {
var c = this;
c.pl = c.pl || {};
var d = parseInt(a, 10);
return c.pl._guessVideoType = function (a) {
var b = {
webm: "video/webm",
mp4: "video/mp4",
ogv: "video/ogg"
},
c = a.split(".").pop().split("?").shift();
return b[c] || ""
},
c.pl.init = function (a, b) {
b = b || {},
c.pl.videos = [],
c.pl.current = 0,
c.on("ended", c.pl._videoEnd),
b.getVideoSource && (c.pl.getVideoSource = b.getVideoSource),
c.pl._addVideos(a)
},
c.pl._updatePoster = function (a) {
c.poster(a),
c.removeChild(c.posterImage),
c.posterImage = c.addChild("posterImage")
},
c.pl._addVideos = function (a) {
for (var b = 0, d = a.length; d > b; b++) {
for (var e = [], f = 0, g = a[b].src.length; g > f; f++)
e.push({
type: c.pl._guessVideoType(a[b].src[f]),
src: a[b].src[f]
});
a[b].src = e,
c.pl.videos.push(a[b])
}
},
c.pl._nextPrev = function (a) {
var b,
d;
if ("next" === a ? (b = c.pl.videos.length - 1, d = 1) : (b = 0, d = -1), c.pl.current !== b) {
var e = c.pl.current + d;
c.pl._setVideo(e),
c.trigger(a, [c.pl.videos[e]])
}
},
c.pl._setVideo = function (a) {
a < c.pl.videos.length && (c.pl.current = a, c.pl.currentVideo = c.pl.videos[a], c.paused() || c.pl._resumeVideo(), c.pl.getVideoSource ? c.pl.getVideoSource(c.pl.videos[a], function (a, b) {
c.pl._setVideoSource(a, b)
}) : c.pl._setVideoSource(c.pl.videos[a].src, c.pl.videos[a].poster)),
c.liveContent.setEnabled && c.liveContent.setEnabled(c.pl.videos[a].lc)
},
c.pl._setVideoSource = function (a, b) {
c.src(a),
c.pl._updatePoster(b)
},
c.pl._resumeVideo = function () {
c.one("loadstart", function () {
c.play()
})
},
c.pl._videoEnd = function () {
c.pl.current === c.pl.videos.length - 1 ? c.trigger("lastVideoEnded") : (c.pl._resumeVideo(), c.next())
},
a instanceof Array ? (c.pl.init(a, b), c.pl._setVideo(0), c) : d === d ? (c.pl._setVideo(d), c) : "string" == typeof a && "undefined" != typeof c.pl[a] ? (c.pl[a].apply(c), c) : void 0
}
function onresizeFunc(a, b) {
b.css({
"margin-top": 0,
top: "0px",
left: "0px"
}),
losjqisafe("#colors_ctrls").css({
top: a.offset().top + a.height - 50,
left: a.offset().left
})
}
function preload(a) {
if ("undefined" != typeof document.body)
try {
var b = document.createElement("div");
b.className = "preloadDiv";
var c = b.style;
c.position = "absolute",
c.top = c.left = 0,
c.visibility = "hidden",
document.body.appendChild(b),
b.innerHTML = ''
} catch (a) {}
}
var jqueryloaded = !1;
if ("undefined" != typeof jQuery) {
var jQueryCurrent = jQuery.noConflict();
jqueryloaded = !0
}
!function (a, b) {
function c(a) {
return K.isWindow(a) ? a : 9 === a.nodeType && (a.defaultView || a.parentWindow)
}
function d(a) {
if (!sb[a]) {
var b = H.body,
c = K("<" + a + ">").appendTo(b),
d = c.css("display");
c.remove(),
("none" === d || "" === d) && (ob || (ob = H.createElement("iframe"), ob.frameBorder = ob.width = ob.height = 0), b.appendChild(ob), pb && ob.createElement || (pb = (ob.contentWindow || ob.contentDocument).document, pb.write(("CSS1Compat" === H.compatMode ? "" : "") + "
"), pb.close()), c = pb.createElement(a), pb.body.appendChild(c), d = K.css(c, "display"), b.removeChild(ob)),
sb[a] = d
}
return sb[a]
}
function e(a, b) {
var c = {};
return K.each(vb.concat.apply([], vb.slice(0, b)), function () {
c[this] = a
}),
c
}
function f() {
rb = b
}
function g() {
return setTimeout(f, 0),
rb = K.now()
}
function h() {
try {
return new a.ActiveXObject("Microsoft.XMLHTTP")
} catch (a) {}
}
function i() {
try {
return new a.XMLHttpRequest
} catch (a) {}
}
function j(a, c) {
a.dataFilter && (c = a.dataFilter(c, a.dataType));
var d,
e,
f,
g,
h,
i,
j,
k,
l = a.dataTypes,
m = {},
n = l.length,
o = l[0];
for (d = 1; n > d; d++) {
if (1 === d)
for (e in a.converters)
"string" == typeof e && (m[e.toLowerCase()] = a.converters[e]);
if (g = o, o = l[d], "*" === o)
o = g;
else if ("*" !== g && g !== o) {
if (h = g + " " + o, i = m[h] || m["* " + o], !i) {
k = b;
for (j in m)
if (f = j.split(" "), (f[0] === g || "*" === f[0]) && (k = m[f[1] + " " + o])) {
j = m[j],
j === !0 ? i = k : k === !0 && (i = j);
break
}
}
!i && !k && K.error("No conversion from " + h.replace(" ", " to ")),
i !== !0 && (c = i ? i(c) : k(j(c)))
}
}
return c
}
function k(a, c, d) {
var e,
f,
g,
h,
i = a.contents,
j = a.dataTypes,
k = a.responseFields;
for (f in k)
f in d && (c[k[f]] = d[f]);
for (; "*" === j[0]; )
j.shift(), e === b && (e = a.mimeType || c.getResponseHeader("content-type"));
if (e)
for (f in i)
if (i[f] && i[f].test(e)) {
j.unshift(f);
break
}
if (j[0]in d)
g = j[0];
else {
for (f in d) {
if (!j[0] || a.converters[f + " " + j[0]]) {
g = f;
break
}
h || (h = f)
}
g = g || h
}
return g ? (g !== j[0] && j.unshift(g), d[g]) : void 0
}
function l(a, b, c, d) {
if (K.isArray(b))
K.each(b, function (b, e) {
c || Ta.test(a) ? d(a, e) : l(a + "[" + ("object" == typeof e || K.isArray(e) ? b : "") + "]", e, c, d)
});
else if (c || null == b || "object" != typeof b)
d(a, b);
else
for (var e in b)
l(a + "[" + e + "]", b[e], c, d)
}
function m(a, c) {
var d,
e,
f = K.ajaxSettings.flatOptions || {};
for (d in c)
c[d] !== b && ((f[d] ? a : e || (e = {}))[d] = c[d]);
e && K.extend(!0, a, e)
}
function n(a, c, d, e, f, g) {
f = f || c.dataTypes[0],
g = g || {},
g[f] = !0;
for (var h, i = a[f], j = 0, k = i ? i.length : 0, l = a === gb; k > j && (l || !h); j++)
h = i[j](c, d, e), "string" == typeof h && (!l || g[h] ? h = b : (c.dataTypes.unshift(h), h = n(a, c, d, e, h, g)));
return (l || !h) && !g["*"] && (h = n(a, c, d, e, "*", g)),
h
}
function o(a) {
return function (b, c) {
if ("string" != typeof b && (c = b, b = "*"), K.isFunction(c))
for (var d, e, f, g = b.toLowerCase().split(cb), h = 0, i = g.length; i > h; h++)
d = g[h], f = /^\+/.test(d), f && (d = d.substr(1) || "*"), e = a[d] = a[d] || [], e[f ? "unshift" : "push"](c)
}
}
function p(a, b, c) {
var d = "width" === b ? a.offsetWidth : a.offsetHeight,
e = "width" === b ? Oa : Pa,
f = 0,
g = e.length;
if (d > 0) {
if ("border" !== c)
for (; g > f; f++)
c || (d -= parseFloat(K.css(a, "padding" + e[f])) || 0), "margin" === c ? d += parseFloat(K.css(a, c + e[f])) || 0 : d -= parseFloat(K.css(a, "border" + e[f] + "Width")) || 0;
return d + "px"
}
if (d = Ea(a, b, b), (0 > d || null == d) && (d = a.style[b] || 0), d = parseFloat(d) || 0, c)
for (; g > f; f++)
d += parseFloat(K.css(a, "padding" + e[f])) || 0, "padding" !== c && (d += parseFloat(K.css(a, "border" + e[f] + "Width")) || 0), "margin" === c && (d += parseFloat(K.css(a, c + e[f])) || 0);
return d + "px"
}
function q(a, b) {
b.src ? K.ajax({
url: b.src,
async: !1,
dataType: "script"
}) : K.globalEval((b.text || b.textContent || b.innerHTML || "").replace(Ba, "/*$0*/")),
b.parentNode && b.parentNode.removeChild(b)
}
function r(a) {
var b = H.createElement("div");
return Da.appendChild(b),
b.innerHTML = a.outerHTML,
b.firstChild
}
function s(a) {
var b = (a.nodeName || "").toLowerCase();
"input" === b ? t(a) : "script" !== b && "undefined" != typeof a.getElementsByTagName && K.grep(a.getElementsByTagName("input"), t)
}
function t(a) {
("checkbox" === a.type || "radio" === a.type) && (a.defaultChecked = a.checked)
}
function u(a) {
return "undefined" != typeof a.getElementsByTagName ? a.getElementsByTagName("*") : "undefined" != typeof a.querySelectorAll ? a.querySelectorAll("*") : []
}
function v(a, b) {
var c;
1 === b.nodeType && (b.clearAttributes && b.clearAttributes(), b.mergeAttributes && b.mergeAttributes(a), c = b.nodeName.toLowerCase(), "object" === c ? b.outerHTML = a.outerHTML : "input" !== c || "checkbox" !== a.type && "radio" !== a.type ? "option" === c ? b.selected = a.defaultSelected : ("input" === c || "textarea" === c) && (b.defaultValue = a.defaultValue) : (a.checked && (b.defaultChecked = b.checked = a.checked), b.value !== a.value && (b.value = a.value)), b.removeAttribute(K.expando))
}
function w(a, b) {
if (1 === b.nodeType && K.hasData(a)) {
var c,
d,
e,
f = K._data(a),
g = K._data(b, f),
h = f.events;
if (h) {
delete g.handle,
g.events = {};
for (c in h)
for (d = 0, e = h[c].length; e > d; d++)
K.event.add(b, c + (h[c][d].namespace ? "." : "") + h[c][d].namespace, h[c][d], h[c][d].data)
}
g.data && (g.data = K.extend({}, g.data))
}
}
function x(a) {
return K.nodeName(a, "table") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a
}
function y(a) {
var b = pa.split("|"),
c = a.createDocumentFragment();
if (c.createElement)
for (; b.length; )
c.createElement(b.pop());
return c
}
function z(a, b, c) {
if (b = b || 0, K.isFunction(b))
return K.grep(a, function (a, d) {
var e = !!b.call(a, d, a);
return e === c
});
if (b.nodeType)
return K.grep(a, function (a) {
return a === b === c
});
if ("string" == typeof b) {
var d = K.grep(a, function (a) {
return 1 === a.nodeType
});
if (la.test(b))
return K.filter(b, d, !c);
b = K.filter(b, d)
}
return K.grep(a, function (a) {
return K.inArray(a, b) >= 0 === c
})
}
function A(a) {
return !a || !a.parentNode || 11 === a.parentNode.nodeType
}
function B() {
return !0
}
function C() {
return !1
}
function D(a, b, c) {
var d = b + "defer",
e = b + "queue",
f = b + "mark",
g = K._data(a, d);
g && ("queue" === c || !K._data(a, e)) && ("mark" === c || !K._data(a, f)) && setTimeout(function () {
!K._data(a, e) && !K._data(a, f) && (K.removeData(a, d, !0), g.fire())
}, 0)
}
function E(a) {
for (var b in a)
if (("data" !== b || !K.isEmptyObject(a[b])) && "toJSON" !== b)
return !1;
return !0
}
function F(a, c, d) {
if (d === b && 1 === a.nodeType) {
var e = "data-" + c.replace(O, "-$1").toLowerCase();
if (d = a.getAttribute(e), "string" == typeof d) {
try {
d = "true" === d || "false" !== d && ("null" === d ? null : K.isNumeric(d) ? parseFloat(d) : N.test(d) ? K.parseJSON(d) : d)
} catch (a) {}
K.data(a, c, d)
} else
d = b
}
return d
}
function G(a) {
var b,
c,
d = L[a] = {};
for (a = a.split(/\s+/), b = 0, c = a.length; c > b; b++)
d[a[b]] = !0;
return d
}
var H = a.document,
I = a.navigator,
J = a.location,
K = function () {
function c() {
if (!h.isReady) {
try {
H.documentElement.doScroll("left")
} catch (a) {
return void setTimeout(c, 1)
}
h.ready()
}
}
var d,
e,
f,
g,
h = function (a, b) {
return new h.fn.init(a, b, d)
},
i = a.jQuery,
j = a.$,
k = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
l = /\S/,
m = /^\s+/,
n = /\s+$/,
o = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
p = /^[\],:{}\s]*$/,
q = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
r = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
s = /(?:^|:|,)(?:\s*\[)+/g,
t = /(webkit)[ \/]([\w.]+)/,
u = /(opera)(?:.*version)?[ \/]([\w.]+)/,
v = /(msie) ([\w.]+)/,
w = /(mozilla)(?:.*? rv:([\w.]+))?/,
x = /-([a-z]|[0-9])/gi,
y = /^-ms-/,
z = function (a, b) {
return (b + "").toUpperCase()
},
A = I.userAgent,
B = Object.prototype.toString,
C = Object.prototype.hasOwnProperty,
D = Array.prototype.push,
E = Array.prototype.slice,
F = String.prototype.trim,
G = Array.prototype.indexOf,
J = {};
return h.fn = h.prototype = {
constructor: h,
init: function (a, c, d) {
var e,
f,
g,
i;
if (!a)
return this;
if (a.nodeType)
return this.context = this[0] = a, this.length = 1, this;
if ("body" === a && !c && H.body)
return this.context = H, this[0] = H.body, this.selector = a, this.length = 1, this;
if ("string" == typeof a) {
if (e = "<" !== a.charAt(0) || ">" !== a.charAt(a.length - 1) || a.length < 3 ? k.exec(a) : [null, a, null], e && (e[1] || !c)) {
if (e[1])
return c = c instanceof h ? c[0] : c, i = c ? c.ownerDocument || c : H, g = o.exec(a), g ? h.isPlainObject(c) ? (a = [H.createElement(g[1])], h.fn.attr.call(a, c, !0)) : a = [i.createElement(g[1])] : (g = h.buildFragment([e[1]], [i]), a = (g.cacheable ? h.clone(g.fragment) : g.fragment).childNodes), h.merge(this, a);
if (f = H.getElementById(e[2]), f && f.parentNode) {
if (f.id !== e[2])
return d.find(a);
this.length = 1,
this[0] = f
}
return this.context = H,
this.selector = a,
this
}
return !c || c.jquery ? (c || d).find(a) : this.constructor(c).find(a)
}
return h.isFunction(a) ? d.ready(a) : (a.selector !== b && (this.selector = a.selector, this.context = a.context), h.makeArray(a, this))
},
selector: "",
jquery: "1.7.1",
length: 0,
size: function () {
return this.length
},
toArray: function () {
return E.call(this, 0)
},
get: function (a) {
return null == a ? this.toArray() : 0 > a ? this[this.length + a] : this[a]
},
pushStack: function (a, b, c) {
var d = this.constructor();
return h.isArray(a) ? D.apply(d, a) : h.merge(d, a),
d.prevObject = this,
d.context = this.context,
"find" === b ? d.selector = this.selector + (this.selector ? " " : "") + c : b && (d.selector = this.selector + "." + b + "(" + c + ")"),
d
},
each: function (a, b) {
return h.each(this, a, b)
},
ready: function (a) {
return h.bindReady(),
f.add(a),
this
},
eq: function (a) {
return a = +a,
-1 === a ? this.slice(a) : this.slice(a, a + 1)
},
first: function () {
return this.eq(0)
},
last: function () {
return this.eq(-1)
},
slice: function () {
return this.pushStack(E.apply(this, arguments), "slice", E.call(arguments).join(","))
},
map: function (a) {
return this.pushStack(h.map(this, function (b, c) {
return a.call(b, c, b)
}))
},
end: function () {
return this.prevObject || this.constructor(null)
},
push: D,
sort: [].sort,
splice: [].splice
},
h.fn.init.prototype = h.fn,
h.extend = h.fn.extend = function () {
var a,
c,
d,
e,
f,
g,
i = arguments[0] || {},
j = 1,
k = arguments.length,
l = !1;
for ("boolean" == typeof i && (l = i, i = arguments[1] || {}, j = 2), "object" != typeof i && !h.isFunction(i) && (i = {}), k === j && (i = this, --j); k > j; j++)
if (null != (a = arguments[j]))
for (c in a)
d = i[c], e = a[c], i !== e && (l && e && (h.isPlainObject(e) || (f = h.isArray(e))) ? (f ? (f = !1, g = d && h.isArray(d) ? d : []) : g = d && h.isPlainObject(d) ? d : {}, i[c] = h.extend(l, g, e)) : e !== b && (i[c] = e));
return i
},
h.extend({
noConflict: function (b) {
return a.$ === h && (a.$ = j),
b && a.jQuery === h && (a.jQuery = i),
h
},
isReady: !1,
readyWait: 1,
holdReady: function (a) {
a ? h.readyWait++ : h.ready(!0)
},
ready: function (a) {
if (a === !0 && !--h.readyWait || a !== !0 && !h.isReady) {
if (!H.body)
return setTimeout(h.ready, 1);
if (h.isReady = !0, a !== !0 && --h.readyWait > 0)
return;
f.fireWith(H, [h]),
h.fn.trigger && h(H).trigger("ready").off("ready")
}
},
bindReady: function () {
if (!f) {
if (f = h.Callbacks("once memory"), "complete" === H.readyState)
return setTimeout(h.ready, 1);
if (H.addEventListener)
H.addEventListener("DOMContentLoaded", g, !1), a.addEventListener("load", h.ready, !1);
else if (H.attachEvent) {
H.attachEvent("onreadystatechange", g),
a.attachEvent("onload", h.ready);
var b = !1;
try {
b = null == a.frameElement
} catch (a) {}
H.documentElement.doScroll && b && c()
}
}
},
isFunction: function (a) {
return "function" === h.type(a)
},
isArray: Array.isArray || function (a) {
return "array" === h.type(a)
},
isWindow: function (a) {
return a && "object" == typeof a && "setInterval" in a
},
isNumeric: function (a) {
return !isNaN(parseFloat(a)) && isFinite(a)
},
type: function (a) {
return null == a ? String(a) : J[B.call(a)] || "object"
},
isPlainObject: function (a) {
if (!a || "object" !== h.type(a) || a.nodeType || h.isWindow(a))
return !1;
try {
if (a.constructor && !C.call(a, "constructor") && !C.call(a.constructor.prototype, "isPrototypeOf"))
return !1
} catch (a) {
return !1
}
var c;
for (c in a);
return c === b || C.call(a, c)
},
isEmptyObject: function (a) {
for (var b in a)
return !1;
return !0
},
error: function (a) {
throw new Error(a)
},
parseJSON: function (b) {
return "string" == typeof b && b ? (b = h.trim(b), a.JSON && a.JSON.parse ? a.JSON.parse(b) : p.test(b.replace(q, "@").replace(r, "]").replace(s, "")) ? new Function("return " + b)() : void h.error("Invalid JSON: " + b)) : null
},
parseXML: function (c) {
var d,
e;
try {
a.DOMParser ? (e = new DOMParser, d = e.parseFromString(c, "text/xml")) : (d = new ActiveXObject("Microsoft.XMLDOM"), d.async = "false", d.loadXML(c))
} catch (a) {
d = b
}
return (!d || !d.documentElement || d.getElementsByTagName("parsererror").length) && h.error("Invalid XML: " + c),
d
},
noop: function () {},
globalEval: function (b) {
b && l.test(b) && (a.execScript || function (b) {
a.eval.call(a, b)
})(b)
},
camelCase: function (a) {
return a.replace(y, "ms-").replace(x, z)
},
nodeName: function (a, b) {
return a.nodeName && a.nodeName.toUpperCase() === b.toUpperCase()
},
each: function (a, c, d) {
var e,
f = 0,
g = a.length,
i = g === b || h.isFunction(a);
if (d)
if (i) {
for (e in a)
if (c.apply(a[e], d) === !1)
break
} else
for (; g > f && c.apply(a[f++], d) !== !1; );
else if (i) {
for (e in a)
if (c.call(a[e], e, a[e]) === !1)
break
} else
for (; g > f && c.call(a[f], f, a[f++]) !== !1; );
return a
},
trim: F ? function (a) {
return null == a ? "" : F.call(a)
}
: function (a) {
return null == a ? "" : (a + "").replace(m, "").replace(n, "")
},
makeArray: function (a, b) {
var c = b || [];
if (null != a) {
var d = h.type(a);
null == a.length || "string" === d || "function" === d || "regexp" === d || h.isWindow(a) ? D.call(c, a) : h.merge(c, a)
}
return c
},
inArray: function (a, b, c) {
var d;
if (b) {
if (G)
return G.call(b, a, c);
for (d = b.length, c = c ? 0 > c ? Math.max(0, d + c) : c : 0; d > c; c++)
if (c in b && b[c] === a)
return c
}
return -1
},
merge: function (a, c) {
var d = a.length,
e = 0;
if ("number" == typeof c.length)
for (var f = c.length; f > e; e++)
a[d++] = c[e];
else
for (; c[e] !== b; )
a[d++] = c[e++];
return a.length = d,
a
},
grep: function (a, b, c) {
var d,
e = [];
c = !!c;
for (var f = 0, g = a.length; g > f; f++)
d = !!b(a[f], f), c !== d && e.push(a[f]);
return e
},
map: function (a, c, d) {
var e,
f,
g = [],
i = 0,
j = a.length,
k = a instanceof h || j !== b && "number" == typeof j && (j > 0 && a[0] && a[j - 1] || 0 === j || h.isArray(a));
if (k)
for (; j > i; i++)
e = c(a[i], i, d), null != e && (g[g.length] = e);
else
for (f in a)
e = c(a[f], f, d), null != e && (g[g.length] = e);
return g.concat.apply([], g)
},
guid: 1,
proxy: function (a, c) {
if ("string" == typeof c) {
var d = a[c];
c = a,
a = d
}
if (!h.isFunction(a))
return b;
var e = E.call(arguments, 2),
f = function () {
return a.apply(c, e.concat(E.call(arguments)))
};
return f.guid = a.guid = a.guid || f.guid || h.guid++,
f
},
access: function (a, c, d, e, f, g) {
var i = a.length;
if ("object" == typeof c) {
for (var j in c)
h.access(a, j, c[j], e, f, d);
return a
}
if (d !== b) {
e = !g && e && h.isFunction(d);
for (var k = 0; i > k; k++)
f(a[k], c, e ? d.call(a[k], k, f(a[k], c)) : d, g);
return a
}
return i ? f(a[0], c) : b
},
now: function () {
return (new Date).getTime()
},
uaMatch: function (a) {
a = a.toLowerCase();
var b = t.exec(a) || u.exec(a) || v.exec(a) || a.indexOf("compatible") < 0 && w.exec(a) || [];
return {
browser: b[1] || "",
version: b[2] || "0"
}
},
sub: function () {
function a(b, c) {
return new a.fn.init(b, c)
}
h.extend(!0, a, this),
a.superclass = this,
a.fn = a.prototype = this(),
a.fn.constructor = a,
a.sub = this.sub,
a.fn.init = function (c, d) {
return d && d instanceof h && !(d instanceof a) && (d = a(d)),
h.fn.init.call(this, c, d, b)
},
a.fn.init.prototype = a.fn;
var b = a(H);
return a
},
browser: {}
}),
h.each("Boolean Number String Function Array Date RegExp Object".split(" "), function (a, b) {
J["[object " + b + "]"] = b.toLowerCase()
}),
e = h.uaMatch(A),
e.browser && (h.browser[e.browser] = !0, h.browser.version = e.version),
h.browser.webkit && (h.browser.safari = !0),
l.test(" ") && (m = /^[\s\xA0]+/, n = /[\s\xA0]+$/),
d = h(H),
H.addEventListener ? g = function () {
H.removeEventListener("DOMContentLoaded", g, !1),
h.ready()
}
: H.attachEvent && (g = function () {
"complete" === H.readyState && (H.detachEvent("onreadystatechange", g), h.ready())
}),
h
}
(),
L = {};
K.Callbacks = function (a) {
a = a ? L[a] || G(a) : {};
var c,
d,
e,
f,
g,
h = [],
i = [],
j = function (b) {
var c,
d,
e,
f;
for (c = 0, d = b.length; d > c; c++)
e = b[c], f = K.type(e), "array" === f ? j(e) : "function" === f && (!a.unique || !l.has(e)) && h.push(e)
},
k = function (b, j) {
for (j = j || [], c = !a.memory || [b, j], d = !0, g = e || 0, e = 0, f = h.length; h && f > g; g++)
if (h[g].apply(b, j) === !1 && a.stopOnFalse) {
c = !0;
break
}
d = !1,
h && (a.once ? c === !0 ? l.disable() : h = [] : i && i.length && (c = i.shift(), l.fireWith(c[0], c[1])))
},
l = {
add: function () {
if (h) {
var a = h.length;
j(arguments),
d ? f = h.length : c && c !== !0 && (e = a, k(c[0], c[1]))
}
return this
},
remove: function () {
if (h)
for (var b = arguments, c = 0, e = b.length; e > c; c++)
for (var i = 0; i < h.length && (b[c] !== h[i] || (d && f >= i && (f--, g >= i && g--), h.splice(i--, 1), !a.unique)); i++);
return this
},
has: function (a) {
if (h)
for (var b = 0, c = h.length; c > b; b++)
if (a === h[b])
return !0;
return !1
},
empty: function () {
return h = [],
this
},
disable: function () {
return h = i = c = b,
this
},
disabled: function () {
return !h
},
lock: function () {
return i = b,
(!c || c === !0) && l.disable(),
this
},
locked: function () {
return !i
},
fireWith: function (b, e) {
return i && (d ? a.once || i.push([b, e]) : (!a.once || !c) && k(b, e)),
this
},
fire: function () {
return l.fireWith(this, arguments),
this
},
fired: function () {
return !!c
}
};
return l
};
var M = [].slice;
K.extend({
Deferred: function (a) {
var b,
c = K.Callbacks("once memory"),
d = K.Callbacks("once memory"),
e = K.Callbacks("memory"),
f = "pending",
g = {
resolve: c,
reject: d,
notify: e
},
h = {
done: c.add,
fail: d.add,
progress: e.add,
state: function () {
return f
},
isResolved: c.fired,
isRejected: d.fired,
then: function (a, b, c) {
return i.done(a).fail(b).progress(c),
this
},
always: function () {
return i.done.apply(i, arguments).fail.apply(i, arguments),
this
},
pipe: function (a, b, c) {
return K.Deferred(function (d) {
K.each({
done: [a, "resolve"],
fail: [b, "reject"],
progress: [c, "notify"]
}, function (a, b) {
var c,
e = b[0],
f = b[1];
K.isFunction(e) ? i[a](function () {
c = e.apply(this, arguments),
c && K.isFunction(c.promise) ? c.promise().then(d.resolve, d.reject, d.notify) : d[f + "With"](this === i ? d : this, [c])
}) : i[a](d[f])
})
}).promise()
},
promise: function (a) {
if (null == a)
a = h;
else
for (var b in h)
a[b] = h[b];
return a
}
},
i = h.promise({});
for (b in g)
i[b] = g[b].fire, i[b + "With"] = g[b].fireWith;
return i.done(function () {
f = "resolved"
}, d.disable, e.lock).fail(function () {
f = "rejected"
}, c.disable, e.lock),
a && a.call(i, i),
i
},
when: function (a) {
function b(a) {
return function (b) {
g[a] = arguments.length > 1 ? M.call(arguments, 0) : b,
i.notifyWith(j, g)
}
}
function c(a) {
return function (b) {
d[a] = arguments.length > 1 ? M.call(arguments, 0) : b,
--h || i.resolveWith(i, d)
}
}
var d = M.call(arguments, 0),
e = 0,
f = d.length,
g = Array(f),
h = f,
i = 1 >= f && a && K.isFunction(a.promise) ? a : K.Deferred(),
j = i.promise();
if (f > 1) {
for (; f > e; e++)
d[e] && d[e].promise && K.isFunction(d[e].promise) ? d[e].promise().then(c(e), i.reject, b(e)) : --h;
h || i.resolveWith(i, d)
} else
i !== a && i.resolveWith(i, f ? [a] : []);
return j
}
}),
K.support = function () {
var b,
c,
d,
e,
f,
g,
h,
i,
j,
k,
l,
m,
n = H.createElement("div");
if (H.documentElement, n.setAttribute("className", "t"), n.innerHTML = "
a", c = n.getElementsByTagName("*"), d = n.getElementsByTagName("a")[0], !c || !c.length || !d)
return {};
e = H.createElement("select"),
f = e.appendChild(H.createElement("option")),
g = n.getElementsByTagName("input")[0],
b = {
leadingWhitespace: 3 === n.firstChild.nodeType,
tbody: !n.getElementsByTagName("tbody").length,
htmlSerialize: !!n.getElementsByTagName("link").length,
style: /top/.test(d.getAttribute("style")),
hrefNormalized: "/a" === d.getAttribute("href"),
opacity: /^0.55/.test(d.style.opacity),
cssFloat: !!d.style.cssFloat,
checkOn: "on" === g.value,
optSelected: f.selected,
getSetAttribute: "t" !== n.className,
enctype: !!H.createElement("form").enctype,
html5Clone: "<:nav>" !== H.createElement("nav").cloneNode(!0).outerHTML,
submitBubbles: !0,
changeBubbles: !0,
focusinBubbles: !1,
deleteExpando: !0,
noCloneEvent: !0,
inlineBlockNeedsLayout: !1,
shrinkWrapBlocks: !1,
reliableMarginRight: !0
},
g.checked = !0,
b.noCloneChecked = g.cloneNode(!0).checked,
e.disabled = !0,
b.optDisabled = !f.disabled;
try {
delete n.test
} catch (a) {
b.deleteExpando = !1
}
if (!n.addEventListener && n.attachEvent && n.fireEvent && (n.attachEvent("onclick", function () {
b.noCloneEvent = !1
}), n.cloneNode(!0).fireEvent("onclick")), g = H.createElement("input"), g.value = "t", g.setAttribute("type", "radio"), b.radioValue = "t" === g.value, g.setAttribute("checked", "checked"), n.appendChild(g), i = H.createDocumentFragment(), i.appendChild(n.lastChild), b.checkClone = i.cloneNode(!0).cloneNode(!0).lastChild.checked, b.appendChecked = g.checked, i.removeChild(g), i.appendChild(n), n.innerHTML = "", a.getComputedStyle && (h = H.createElement("div"), h.style.width = "0", h.style.marginRight = "0", n.style.width = "2px", n.appendChild(h), b.reliableMarginRight = 0 === (parseInt((a.getComputedStyle(h, null) || {
marginRight: 0
}).marginRight, 10) || 0)), n.attachEvent)
for (l in {
submit: 1,
change: 1,
focusin: 1
})
k = "on" + l, m = k in n, m || (n.setAttribute(k, "return;"), m = "function" == typeof n[k]), b[l + "Bubbles"] = m;
return i.removeChild(n),
i = e = f = h = n = g = null,
K(function () {
var a,
c,
d,
e,
f,
g,
h,
i,
k,
l,
o = H.getElementsByTagName("body")[0];
!o || (g = 1, h = "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;", i = "visibility:hidden;border:0;", k = "style='" + h + "border:5px solid #000;padding:0;'", l = "
", a = H.createElement("div"), a.style.cssText = i + "width:0;height:0;position:static;top:0;margin-top:" + g + "px", o.insertBefore(a, o.firstChild), n = H.createElement("div"), a.appendChild(n), n.innerHTML = "
t
", j = n.getElementsByTagName("td"), m = 0 === j[0].offsetHeight, j[0].style.display = "", j[1].style.display = "none", b.reliableHiddenOffsets = m && 0 === j[0].offsetHeight, n.innerHTML = "", n.style.width = n.style.paddingLeft = "1px", K.boxModel = b.boxModel = 2 === n.offsetWidth, "undefined" != typeof n.style.zoom && (n.style.display = "inline", n.style.zoom = 1, b.inlineBlockNeedsLayout = 2 === n.offsetWidth, n.style.display = "", n.innerHTML = "", b.shrinkWrapBlocks = 2 !== n.offsetWidth), n.style.cssText = h + i, n.innerHTML = l, c = n.firstChild, d = c.firstChild, e = c.nextSibling.firstChild.firstChild, f = {
doesNotAddBorder: 5 !== d.offsetTop,
doesAddBorderForTableAndCells: 5 === e.offsetTop
}, d.style.position = "fixed", d.style.top = "20px", f.fixedPosition = 20 === d.offsetTop || 15 === d.offsetTop, d.style.position = d.style.top = "", c.style.overflow = "hidden", c.style.position = "relative", f.subtractsBorderForOverflowNotVisible = -5 === d.offsetTop, f.doesNotIncludeMarginInBodyOffset = o.offsetTop !== g, o.removeChild(a), n = a = null, K.extend(b, f))
}),
b
}
();
var N = /^(?:\{.*\}|\[.*\])$/,
O = /([A-Z])/g;
K.extend({
cache: {},
uuid: 0,
expando: "jQuery" + (K.fn.jquery + Math.random()).replace(/\D/g, ""),
noData: {
embed: !0,
object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
applet: !0
},
hasData: function (a) {
return a = a.nodeType ? K.cache[a[K.expando]] : a[K.expando],
!!a && !E(a)
},
data: function (a, c, d, e) {
if (K.acceptData(a)) {
var f,
g,
h,
i = K.expando,
j = "string" == typeof c,
k = a.nodeType,
l = k ? K.cache : a,
m = k ? a[i] : a[i] && i,
n = "events" === c;
if ((!m || !l[m] || !n && !e && !l[m].data) && j && d === b)
return;
return m || (k ? a[i] = m = ++K.uuid : m = i),
l[m] || (l[m] = {}, k || (l[m].toJSON = K.noop)),
("object" == typeof c || "function" == typeof c) && (e ? l[m] = K.extend(l[m], c) : l[m].data = K.extend(l[m].data, c)),
f = g = l[m],
e || (g.data || (g.data = {}), g = g.data),
d !== b && (g[K.camelCase(c)] = d),
n && !g[c] ? f.events : (j ? (h = g[c], null == h && (h = g[K.camelCase(c)])) : h = g, h)
}
},
removeData: function (a, b, c) {
if (K.acceptData(a)) {
var d,
e,
f,
g = K.expando,
h = a.nodeType,
i = h ? K.cache : a,
j = h ? a[g] : g;
if (!i[j])
return;
if (b && (d = c ? i[j] : i[j].data)) {
K.isArray(b) || (b in d ? b = [b] : (b = K.camelCase(b), b = b in d ? [b] : b.split(" ")));
for (e = 0, f = b.length; f > e; e++)
delete d[b[e]];
if (!(c ? E : K.isEmptyObject)(d))
return
}
if (!c && (delete i[j].data, !E(i[j])))
return;
K.support.deleteExpando || !i.setInterval ? delete i[j] : i[j] = null,
h && (K.support.deleteExpando ? delete a[g] : a.removeAttribute ? a.removeAttribute(g) : a[g] = null)
}
},
_data: function (a, b, c) {
return K.data(a, b, c, !0)
},
acceptData: function (a) {
if (a.nodeName) {
var b = K.noData[a.nodeName.toLowerCase()];
if (b)
return b !== !0 && a.getAttribute("classid") === b
}
return !0
}
}),
K.fn.extend({
data: function (a, c) {
var d,
e,
f,
g = null;
if ("undefined" == typeof a) {
if (this.length && (g = K.data(this[0]), 1 === this[0].nodeType && !K._data(this[0], "parsedAttrs"))) {
e = this[0].attributes;
for (var h = 0, i = e.length; i > h; h++)
f = e[h].name, 0 === f.indexOf("data-") && (f = K.camelCase(f.substring(5)), F(this[0], f, g[f]));
K._data(this[0], "parsedAttrs", !0)
}
return g
}
return "object" == typeof a ? this.each(function () {
K.data(this, a)
}) : (d = a.split("."), d[1] = d[1] ? "." + d[1] : "", c === b ? (g = this.triggerHandler("getData" + d[1] + "!", [d[0]]), g === b && this.length && (g = K.data(this[0], a), g = F(this[0], a, g)), g === b && d[1] ? this.data(d[0]) : g) : this.each(function () {
var b = K(this),
e = [d[0], c];
b.triggerHandler("setData" + d[1] + "!", e),
K.data(this, a, c),
b.triggerHandler("changeData" + d[1] + "!", e)
}))
},
removeData: function (a) {
return this.each(function () {
K.removeData(this, a)
})
}
}),
K.extend({
_mark: function (a, b) {
a && (b = (b || "fx") + "mark", K._data(a, b, (K._data(a, b) || 0) + 1))
},
_unmark: function (a, b, c) {
if (a !== !0 && (c = b, b = a, a = !1), b) {
c = c || "fx";
var d = c + "mark",
e = a ? 0 : (K._data(b, d) || 1) - 1;
e ? K._data(b, d, e) : (K.removeData(b, d, !0), D(b, c, "mark"))
}
},
queue: function (a, b, c) {
var d;
return a ? (b = (b || "fx") + "queue", d = K._data(a, b), c && (!d || K.isArray(c) ? d = K._data(a, b, K.makeArray(c)) : d.push(c)), d || []) : void 0
},
dequeue: function (a, b) {
b = b || "fx";
var c = K.queue(a, b),
d = c.shift(),
e = {};
"inprogress" === d && (d = c.shift()),
d && ("fx" === b && c.unshift("inprogress"), K._data(a, b + ".run", e), d.call(a, function () {
K.dequeue(a, b)
}, e)),
c.length || (K.removeData(a, b + "queue " + b + ".run", !0), D(a, b, "queue"))
}
}),
K.fn.extend({
queue: function (a, c) {
return "string" != typeof a && (c = a, a = "fx"),
c === b ? K.queue(this[0], a) : this.each(function () {
var b = K.queue(this, a, c);
"fx" === a && "inprogress" !== b[0] && K.dequeue(this, a)
})
},
dequeue: function (a) {
return this.each(function () {
K.dequeue(this, a)
})
},
delay: function (a, b) {
return a = K.fx ? K.fx.speeds[a] || a : a,
b = b || "fx",
this.queue(b, function (b, c) {
var d = setTimeout(b, a);
c.stop = function () {
clearTimeout(d)
}
})
},
clearQueue: function (a) {
return this.queue(a || "fx", [])
},
promise: function (a, c) {
function d() {
--i || f.resolveWith(g, [g])
}
"string" != typeof a && (c = a, a = b),
a = a || "fx";
for (var e, f = K.Deferred(), g = this, h = g.length, i = 1, j = a + "defer", k = a + "queue", l = a + "mark"; h--; )
(e = K.data(g[h], j, b, !0) || (K.data(g[h], k, b, !0) || K.data(g[h], l, b, !0)) && K.data(g[h], j, K.Callbacks("once memory"), !0)) && (i++, e.add(d));
return d(),
f.promise()
}
});
var P,
Q,
R,
S = /[\n\t\r]/g,
T = /\s+/,
U = /\r/g,
V = /^(?:button|input)$/i,
W = /^(?:button|input|object|select|textarea)$/i,
X = /^a(?:rea)?$/i,
Y = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
Z = K.support.getSetAttribute;
K.fn.extend({
attr: function (a, b) {
return K.access(this, a, b, !0, K.attr)
},
removeAttr: function (a) {
return this.each(function () {
K.removeAttr(this, a)
})
},
prop: function (a, b) {
return K.access(this, a, b, !0, K.prop)
},
removeProp: function (a) {
return a = K.propFix[a] || a,
this.each(function () {
try {
this[a] = b,
delete this[a]
} catch (a) {}
})
},
addClass: function (a) {
var b,
c,
d,
e,
f,
g,
h;
if (K.isFunction(a))
return this.each(function (b) {
K(this).addClass(a.call(this, b, this.className))
});
if (a && "string" == typeof a)
for (b = a.split(T), c = 0, d = this.length; d > c; c++)
if (e = this[c], 1 === e.nodeType)
if (e.className || 1 !== b.length) {
for (f = " " + e.className + " ", g = 0, h = b.length; h > g; g++)
~f.indexOf(" " + b[g] + " ") || (f += b[g] + " ");
e.className = K.trim(f)
} else
e.className = a;
return this
},
removeClass: function (a) {
var c,
d,
e,
f,
g,
h,
i;
if (K.isFunction(a))
return this.each(function (b) {
K(this).removeClass(a.call(this, b, this.className))
});
if (a && "string" == typeof a || a === b)
for (c = (a || "").split(T), d = 0, e = this.length; e > d; d++)
if (f = this[d], 1 === f.nodeType && f.className)
if (a) {
for (g = (" " + f.className + " ").replace(S, " "), h = 0, i = c.length; i > h; h++)
g = g.replace(" " + c[h] + " ", " ");
f.className = K.trim(g)
} else
f.className = "";
return this
},
toggleClass: function (a, b) {
var c = typeof a,
d = "boolean" == typeof b;
return K.isFunction(a) ? this.each(function (c) {
K(this).toggleClass(a.call(this, c, this.className, b), b)
}) : this.each(function () {
if ("string" === c)
for (var e, f = 0, g = K(this), h = b, i = a.split(T); e = i[f++]; )
h = d ? h : !g.hasClass(e), g[h ? "addClass" : "removeClass"](e);
else ("undefined" === c || "boolean" === c) && (this.className && K._data(this, "__className__", this.className), this.className = this.className || a === !1 ? "" : K._data(this, "__className__") || "")
})
},
hasClass: function (a) {
for (var b = " " + a + " ", c = 0, d = this.length; d > c; c++)
if (1 === this[c].nodeType && (" " + this[c].className + " ").replace(S, " ").indexOf(b) > -1)
return !0;
return !1
},
val: function (a) {
var c,
d,
e,
f = this[0];
return arguments.length ? (e = K.isFunction(a), this.each(function (d) {
var f,
g = K(this);
1 === this.nodeType && (f = e ? a.call(this, d, g.val()) : a, null == f ? f = "" : "number" == typeof f ? f += "" : K.isArray(f) && (f = K.map(f, function (a) {
return null == a ? "" : a + ""
})), c = K.valHooks[this.nodeName.toLowerCase()] || K.valHooks[this.type], c && "set" in c && c.set(this, f, "value") !== b || (this.value = f))
})) : f ? (c = K.valHooks[f.nodeName.toLowerCase()] || K.valHooks[f.type], c && "get" in c && (d = c.get(f, "value")) !== b ? d : (d = f.value, "string" == typeof d ? d.replace(U, "") : null == d ? "" : d)) : void 0
}
}),
K.extend({
valHooks: {
option: {
get: function (a) {
var b = a.attributes.value;
return !b || b.specified ? a.value : a.text
}
},
select: {
get: function (a) {
var b,
c,
d,
e,
f = a.selectedIndex,
g = [],
h = a.options,
i = "select-one" === a.type;
if (0 > f)
return null;
for (c = i ? f : 0, d = i ? f + 1 : h.length; d > c; c++)
if (e = h[c], e.selected && (K.support.optDisabled ? !e.disabled : null === e.getAttribute("disabled")) && (!e.parentNode.disabled || !K.nodeName(e.parentNode, "optgroup"))) {
if (b = K(e).val(), i)
return b;
g.push(b)
}
return i && !g.length && h.length ? K(h[f]).val() : g
},
set: function (a, b) {
var c = K.makeArray(b);
return K(a).find("option").each(function () {
this.selected = K.inArray(K(this).val(), c) >= 0
}),
c.length || (a.selectedIndex = -1),
c
}
}
},
attrFn: {
val: !0,
css: !0,
html: !0,
text: !0,
data: !0,
width: !0,
height: !0,
offset: !0
},
attr: function (a, c, d, e) {
var f,
g,
h,
i = a.nodeType;
return a && 3 !== i && 8 !== i && 2 !== i ? e && c in K.attrFn ? K(a)[c](d) : "undefined" == typeof a.getAttribute ? K.prop(a, c, d) : (h = 1 !== i || !K.isXMLDoc(a), h && (c = c.toLowerCase(), g = K.attrHooks[c] || (Y.test(c) ? Q : P)), d !== b ? null === d ? void K.removeAttr(a, c) : g && "set" in g && h && (f = g.set(a, d, c)) !== b ? f : (a.setAttribute(c, "" + d), d) : g && "get" in g && h && null !== (f = g.get(a, c)) ? f : (f = a.getAttribute(c), null === f ? b : f)) : void 0
},
removeAttr: function (a, b) {
var c,
d,
e,
f,
g = 0;
if (b && 1 === a.nodeType)
for (d = b.toLowerCase().split(T), f = d.length; f > g; g++)
e = d[g], e && (c = K.propFix[e] || e, K.attr(a, e, ""), a.removeAttribute(Z ? e : c), Y.test(e) && c in a && (a[c] = !1))
},
attrHooks: {
type: {
set: function (a, b) {
if (V.test(a.nodeName) && a.parentNode)
K.error("type property can't be changed");
else if (!K.support.radioValue && "radio" === b && K.nodeName(a, "input")) {
var c = a.value;
return a.setAttribute("type", b),
c && (a.value = c),
b
}
}
},
value: {
get: function (a, b) {
return P && K.nodeName(a, "button") ? P.get(a, b) : b in a ? a.value : null
},
set: function (a, b, c) {
return P && K.nodeName(a, "button") ? P.set(a, b, c) : void(a.value = b)
}
}
},
propFix: {
tabindex: "tabIndex",
readonly: "readOnly",
for : "htmlFor", class: "className", maxlength: "maxLength", cellspacing: "cellSpacing", cellpadding: "cellPadding", rowspan: "rowSpan", colspan: "colSpan", usemap: "useMap", frameborder: "frameBorder", contenteditable: "contentEditable"
},
prop: function (a, c, d) {
var e,
f,
g,
h = a.nodeType;
return a && 3 !== h && 8 !== h && 2 !== h ? (g = 1 !== h || !K.isXMLDoc(a), g && (c = K.propFix[c] || c, f = K.propHooks[c]), d !== b ? f && "set" in f && (e = f.set(a, d, c)) !== b ? e : a[c] = d : f && "get" in f && null !== (e = f.get(a, c)) ? e : a[c]) : void 0
},
propHooks: {
tabIndex: {
get: function (a) {
var c = a.getAttributeNode("tabindex");
return c && c.specified ? parseInt(c.value, 10) : W.test(a.nodeName) || X.test(a.nodeName) && a.href ? 0 : b
}
}
}
}),
K.attrHooks.tabindex = K.propHooks.tabIndex,
Q = {
get: function (a, c) {
var d,
e = K.prop(a, c);
return e === !0 || "boolean" != typeof e && (d = a.getAttributeNode(c)) && d.nodeValue !== !1 ? c.toLowerCase() : b
},
set: function (a, b, c) {
var d;
return b === !1 ? K.removeAttr(a, c) : (d = K.propFix[c] || c, d in a && (a[d] = !0), a.setAttribute(c, c.toLowerCase())),
c
}
},
Z || (R = {
name: !0,
id: !0
}, P = K.valHooks.button = {
get: function (a, c) {
var d;
return d = a.getAttributeNode(c),
d && (R[c] ? "" !== d.nodeValue : d.specified) ? d.nodeValue : b
},
set: function (a, b, c) {
var d = a.getAttributeNode(c);
return d || (d = H.createAttribute(c), a.setAttributeNode(d)),
d.nodeValue = b + ""
}
}, K.attrHooks.tabindex.set = P.set, K.each(["width", "height"], function (a, b) {
K.attrHooks[b] = K.extend(K.attrHooks[b], {
set: function (a, c) {
return "" === c ? (a.setAttribute(b, "auto"), c) : void 0
}
})
}), K.attrHooks.contenteditable = {
get: P.get,
set: function (a, b, c) {
"" === b && (b = "false"),
P.set(a, b, c)
}
}),
K.support.hrefNormalized || K.each(["href", "src", "width", "height"], function (a, c) {
K.attrHooks[c] = K.extend(K.attrHooks[c], {
get: function (a) {
var d = a.getAttribute(c, 2);
return null === d ? b : d
}
})
}),
K.support.style || (K.attrHooks.style = {
get: function (a) {
return a.style.cssText.toLowerCase() || b
},
set: function (a, b) {
return a.style.cssText = "" + b
}
}),
K.support.optSelected || (K.propHooks.selected = K.extend(K.propHooks.selected, {
get: function (a) {
var b = a.parentNode;
return b && (b.selectedIndex, b.parentNode && b.parentNode.selectedIndex),
null
}
})),
K.support.enctype || (K.propFix.enctype = "encoding"),
K.support.checkOn || K.each(["radio", "checkbox"], function () {
K.valHooks[this] = {
get: function (a) {
return null === a.getAttribute("value") ? "on" : a.value
}
}
}),
K.each(["radio", "checkbox"], function () {
K.valHooks[this] = K.extend(K.valHooks[this], {
set: function (a, b) {
return K.isArray(b) ? a.checked = K.inArray(K(a).val(), b) >= 0 : void 0
}
})
});
var $ = /^(?:textarea|input|select)$/i,
_ = /^([^\.]*)?(?:\.(.+))?$/,
aa = /\bhover(\.\S+)?\b/,
ba = /^key/,
ca = /^(?:mouse|contextmenu)|click/,
da = /^(?:focusinfocus|focusoutblur)$/,
ea = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
fa = function (a) {
var b = ea.exec(a);
return b && (b[1] = (b[1] || "").toLowerCase(), b[3] = b[3] && new RegExp("(?:^|\\s)" + b[3] + "(?:\\s|$)")),
b
},
ga = function (a, b) {
var c = a.attributes || {};
return (!b[1] || a.nodeName.toLowerCase() === b[1]) && (!b[2] || (c.id || {}).value === b[2]) && (!b[3] || b[3].test((c.class || {}).value))
},
ha = function (a) {
return K.event.special.hover ? a : a.replace(aa, "mouseenter$1 mouseleave$1")
};
K.event = {
add: function (a, c, d, e, f) {
var g,
h,
i,
j,
k,
l,
m,
n,
o,
p,
q;
if (3 !== a.nodeType && 8 !== a.nodeType && c && d && (g = K._data(a))) {
for (d.handler && (o = d, d = o.handler), d.guid || (d.guid = K.guid++), i = g.events, i || (g.events = i = {}), h = g.handle, h || (g.handle = h = function (a) {
return "undefined" == typeof K || a && K.event.triggered === a.type ? b : K.event.dispatch.apply(h.elem, arguments)
}, h.elem = a), c = K.trim(ha(c)).split(" "), j = 0; j < c.length; j++)
k = _.exec(c[j]) || [], l = k[1], m = (k[2] || "")
.split(".").sort(), q = K.event.special[l] || {},
l = (f ? q.delegateType : q.bindType) || l,
q = K.event.special[l] || {},
n = K.extend({
type: l,
origType: k[1],
data: e,
handler: d,
guid: d.guid,
selector: f,
quick: fa(f),
namespace: m.join(".")
}, o),
p = i[l],
p || (p = i[l] = [], p.delegateCount = 0, q.setup && q.setup.call(a, e, m, h) !== !1 || (a.addEventListener ? a.addEventListener(l, h, !1) : a.attachEvent && a.attachEvent("on" + l, h))),
q.add && (q.add.call(a, n), n.handler.guid || (n.handler.guid = d.guid)),
f ? p.splice(p.delegateCount++, 0, n) : p.push(n),
K.event.global[l] = !0;
a = null
}
},
global: {},
remove: function (a, b, c, d, e) {
var f,
g,
h,
i,
j,
k,
l,
m,
n,
o,
p,
q,
r = K.hasData(a) && K._data(a);
if (r && (m = r.events)) {
for (b = K.trim(ha(b || "")).split(" "), f = 0; f < b.length; f++)
if (g = _.exec(b[f]) || [], h = i = g[1], j = g[2], h) {
for (n = K.event.special[h] || {}, h = (d ? n.delegateType : n.bindType) || h, p = m[h] || [], k = p.length, j = j ? new RegExp("(^|\\.)" + j.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null, l = 0; l < p.length; l++)
q = p[l], (e || i === q.origType) && (!c || c.guid === q.guid) && (!j || j.test(q.namespace)) && (!d || d === q.selector || "**" === d && q.selector) && (p.splice(l--, 1), q.selector && p.delegateCount--, n.remove && n.remove.call(a, q));
0 === p.length && k !== p.length && ((!n.teardown || n.teardown.call(a, j) === !1) && K.removeEvent(a, h, r.handle), delete m[h])
} else
for (h in m)
K.event.remove(a, h + b[f], c, d, !0);
K.isEmptyObject(m) && (o = r.handle, o && (o.elem = null), K.removeData(a, ["events", "handle"], !0))
}
},
customEvent: {
getData: !0,
setData: !0,
changeData: !0
},
trigger: function (c, d, e, f) {
if (!e || 3 !== e.nodeType && 8 !== e.nodeType) {
var g,
h,
i,
j,
k,
l,
m,
n,
o,
p,
q = c.type || c,
r = [];
if (da.test(q + K.event.triggered))
return;
if (q.indexOf("!") >= 0 && (q = q.slice(0, -1), h = !0), q.indexOf(".") >= 0 && (r = q.split("."), q = r.shift(), r.sort()), (!e || K.event.customEvent[q]) && !K.event.global[q])
return;
if (c = "object" == typeof c ? c[K.expando] ? c : new K.Event(q, c) : new K.Event(q), c.type = q, c.isTrigger = !0, c.exclusive = h, c.namespace = r.join("."), c.namespace_re = c.namespace ? new RegExp("(^|\\.)" + r.join("\\.(?:.*\\.)?") + "(\\.|$)") : null, l = q.indexOf(":") < 0 ? "on" + q : "", !e) {
g = K.cache;
for (i in g)
g[i].events && g[i].events[q] && K.event.trigger(c, d, g[i].handle.elem, !0);
return
}
if (c.result = b, c.target || (c.target = e), d = null != d ? K.makeArray(d) : [], d.unshift(c), m = K.event.special[q] || {}, m.trigger && m.trigger.apply(e, d) === !1)
return;
if (o = [[e, m.bindType || q]], !f && !m.noBubble && !K.isWindow(e)) {
for (p = m.delegateType || q, j = da.test(p + q) ? e : e.parentNode, k = null; j; j = j.parentNode)
o.push([j, p]), k = j;
k && k === e.ownerDocument && o.push([k.defaultView || k.parentWindow || a, p])
}
for (i = 0; i < o.length && !c.isPropagationStopped(); i++)
j = o[i][0], c.type = o[i][1], n = (K._data(j, "events") || {})[c.type] && K._data(j, "handle"), n && n.apply(j, d), n = l && j[l], n && K.acceptData(j) && n.apply(j, d) === !1 && c.preventDefault();
return c.type = q,
!f && !c.isDefaultPrevented() && (!m._default || m._default.apply(e.ownerDocument, d) === !1) && ("click" !== q || !K.nodeName(e, "a")) && K.acceptData(e) && l && e[q] && ("focus" !== q && "blur" !== q || 0 !== c.target.offsetWidth) && !K.isWindow(e) && (k = e[l], k && (e[l] = null), K.event.triggered = q, e[q](), K.event.triggered = b, k && (e[l] = k)),
c.result
}
},
dispatch: function (c) {
c = K.event.fix(c || a.event);
var d,
e,
f,
g,
h,
i,
j,
k,
l,
m,
n = (K._data(this, "events") || {})[c.type] || [],
o = n.delegateCount,
p = [].slice.call(arguments, 0),
q = !c.exclusive && !c.namespace,
r = [];
if (p[0] = c, c.delegateTarget = this, o && !c.target.disabled && (!c.button || "click" !== c.type))
for (g = K(this), g.context = this.ownerDocument || this, f = c.target; f != this; f = f.parentNode || this) {
for (i = {}, k = [], g[0] = f, d = 0; o > d; d++)
l = n[d], m = l.selector, i[m] === b && (i[m] = l.quick ? ga(f, l.quick) : g.is(m)), i[m] && k.push(l);
k.length && r.push({
elem: f,
matches: k
})
}
for (n.length > o && r.push({
elem: this,
matches: n.slice(o)
}), d = 0; d < r.length && !c.isPropagationStopped(); d++)
for (j = r[d], c.currentTarget = j.elem, e = 0; e < j.matches.length && !c.isImmediatePropagationStopped(); e++)
l = j.matches[e], (q || !c.namespace && !l.namespace || c.namespace_re && c.namespace_re.test(l.namespace)) && (c.data = l.data, c.handleObj = l, h = ((K.event.special[l.origType] || {}).handle || l.handler).apply(j.elem, p), h !== b && (c.result = h, h === !1 && (c.preventDefault(), c.stopPropagation())));
return c.result
},
props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
fixHooks: {},
keyHooks: {
props: "char charCode key keyCode".split(" "),
filter: function (a, b) {
return null == a.which && (a.which = null != b.charCode ? b.charCode : b.keyCode),
a
}
},
mouseHooks: {
props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
filter: function (a, c) {
var d,
e,
f,
g = c.button,
h = c.fromElement;
return null == a.pageX && null != c.clientX && (d = a.target.ownerDocument || H, e = d.documentElement, f = d.body, a.pageX = c.clientX + (e && e.scrollLeft || f && f.scrollLeft || 0) - (e && e.clientLeft || f && f.clientLeft || 0), a.pageY = c.clientY + (e && e.scrollTop || f && f.scrollTop || 0) - (e && e.clientTop || f && f.clientTop || 0)),
!a.relatedTarget && h && (a.relatedTarget = h === a.target ? c.toElement : h),
!a.which && g !== b && (a.which = 1 & g ? 1 : 2 & g ? 3 : 4 & g ? 2 : 0),
a
}
},
fix: function (a) {
if (a[K.expando])
return a;
var c,
d,
e = a,
f = K.event.fixHooks[a.type] || {},
g = f.props ? this.props.concat(f.props) : this.props;
for (a = K.Event(e), c = g.length; c; )
d = g[--c], a[d] = e[d];
return a.target || (a.target = e.srcElement || H),
3 === a.target.nodeType && (a.target = a.target.parentNode),
a.metaKey === b && (a.metaKey = a.ctrlKey),
f.filter ? f.filter(a, e) : a
},
special: {
ready: {
setup: K.bindReady
},
load: {
noBubble: !0
},
focus: {
delegateType: "focusin"
},
blur: {
delegateType: "focusout"
},
beforeunload: {
setup: function (a, b, c) {
K.isWindow(this) && (this.onbeforeunload = c)
},
teardown: function (a, b) {
this.onbeforeunload === b && (this.onbeforeunload = null)
}
}
},
simulate: function (a, b, c, d) {
var e = K.extend(new K.Event, c, {
type: a,
isSimulated: !0,
originalEvent: {}
});
d ? K.event.trigger(e, null, b) : K.event.dispatch.call(b, e),
e.isDefaultPrevented() && c.preventDefault()
}
},
K.event.handle = K.event.dispatch,
K.removeEvent = H.removeEventListener ? function (a, b, c) {
a.removeEventListener && a.removeEventListener(b, c, !1)
}
: function (a, b, c) {
a.detachEvent && a.detachEvent("on" + b, c)
},
K.Event = function (a, b) {
return this instanceof K.Event ? (a && a.type ? (this.originalEvent = a, this.type = a.type, this.isDefaultPrevented = a.defaultPrevented || a.returnValue === !1 || a.getPreventDefault && a.getPreventDefault() ? B : C) : this.type = a, b && K.extend(this, b), this.timeStamp = a && a.timeStamp || K.now(), void(this[K.expando] = !0)) : new K.Event(a, b)
},
K.Event.prototype = {
preventDefault: function () {
this.isDefaultPrevented = B;
var a = this.originalEvent;
!a || (a.preventDefault ? a.preventDefault() : a.returnValue = !1)
},
stopPropagation: function () {
this.isPropagationStopped = B;
var a = this.originalEvent;
!a || (a.stopPropagation && a.stopPropagation(), a.cancelBubble = !0)
},
stopImmediatePropagation: function () {
this.isImmediatePropagationStopped = B,
this.stopPropagation()
},
isDefaultPrevented: C,
isPropagationStopped: C,
isImmediatePropagationStopped: C
},
K.each({
mouseenter: "mouseover",
mouseleave: "mouseout"
}, function (a, b) {
K.event.special[a] = {
delegateType: b,
bindType: b,
handle: function (a) {
var c,
d = this,
e = a.relatedTarget,
f = a.handleObj;
return f.selector,
(!e || e !== d && !K.contains(d, e)) && (a.type = f.origType, c = f.handler.apply(this, arguments), a.type = b),
c
}
}
}),
K.support.submitBubbles || (K.event.special.submit = {
setup: function () {
return !K.nodeName(this, "form") && void K.event.add(this, "click._submit keypress._submit", function (a) {
var c = a.target,
d = K.nodeName(c, "input") || K.nodeName(c, "button") ? c.form : b;
d && !d._submit_attached && (K.event.add(d, "submit._submit", function (a) {
this.parentNode && !a.isTrigger && K.event.simulate("submit", this.parentNode, a, !0)
}), d._submit_attached = !0)
})
},
teardown: function () {
return !K.nodeName(this, "form") && void K.event.remove(this, "._submit")
}
}),
K.support.changeBubbles || (K.event.special.change = {
setup: function () {
return $.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (K.event.add(this, "propertychange._change", function (a) {
"checked" === a.originalEvent.propertyName && (this._just_changed = !0)
}), K.event.add(this, "click._change", function (a) {
this._just_changed && !a.isTrigger && (this._just_changed = !1, K.event.simulate("change", this, a, !0))
})), !1) : void K.event.add(this, "beforeactivate._change", function (a) {
var b = a.target;
$.test(b.nodeName) && !b._change_attached && (K.event.add(b, "change._change", function (a) {
this.parentNode && !a.isSimulated && !a.isTrigger && K.event.simulate("change", this.parentNode, a, !0)
}), b._change_attached = !0)
})
},
handle: function (a) {
var b = a.target;
return this !== b || a.isSimulated || a.isTrigger || "radio" !== b.type && "checkbox" !== b.type ? a.handleObj.handler.apply(this, arguments) : void 0
},
teardown: function () {
return K.event.remove(this, "._change"),
$.test(this.nodeName)
}
}),
K.support.focusinBubbles || K.each({
focus: "focusin",
blur: "focusout"
}, function (a, b) {
var c = 0,
d = function (a) {
K.event.simulate(b, a.target, K.event.fix(a), !0)
};
K.event.special[b] = {
setup: function () {
0 === c++ && H.addEventListener(a, d, !0)
},
teardown: function () {
0 === --c && H.removeEventListener(a, d, !0)
}
}
}),
K.fn.extend({
on: function (a, c, d, e, f) {
var g,
h;
if ("object" == typeof a) {
"string" != typeof c && (d = c, c = b);
for (h in a)
this.on(h, c, d, a[h], f);
return this
}
if (null == d && null == e ? (e = c, d = c = b) : null == e && ("string" == typeof c ? (e = d, d = b) : (e = d, d = c, c = b)), e === !1)
e = C;
else if (!e)
return this;
return 1 === f && (g = e, e = function (a) {
return K().off(a),
g.apply(this, arguments)
}, e.guid = g.guid || (g.guid = K.guid++)),
this.each(function () {
K.event.add(this, a, e, d, c)
})
},
one: function (a, b, c, d) {
return this.on.call(this, a, b, c, d, 1)
},
off: function (a, c, d) {
if (a && a.preventDefault && a.handleObj) {
var e = a.handleObj;
return K(a.delegateTarget).off(e.namespace ? e.type + "." + e.namespace : e.type, e.selector, e.handler),
this
}
if ("object" == typeof a) {
for (var f in a)
this.off(f, c, a[f]);
return this
}
return (c === !1 || "function" == typeof c) && (d = c, c = b),
d === !1 && (d = C),
this.each(function () {
K.event.remove(this, a, d, c)
})
},
bind: function (a, b, c) {
return this.on(a, null, b, c)
},
unbind: function (a, b) {
return this.off(a, null, b)
},
live: function (a, b, c) {
return K(this.context).on(a, this.selector, b, c),
this
},
die: function (a, b) {
return K(this.context).off(a, this.selector || "**", b),
this
},
delegate: function (a, b, c, d) {
return this.on(b, a, c, d)
},
undelegate: function (a, b, c) {
return 1 == arguments.length ? this.off(a, "**") : this.off(b, a, c)
},
trigger: function (a, b) {
return this.each(function () {
K.event.trigger(a, b, this)
})
},
triggerHandler: function (a, b) {
return this[0] ? K.event.trigger(a, b, this[0], !0) : void 0
},
toggle: function (a) {
var b = arguments,
c = a.guid || K.guid++,
d = 0,
e = function (c) {
var e = (K._data(this, "lastToggle" + a.guid) || 0) % d;
return K._data(this, "lastToggle" + a.guid, e + 1),
c.preventDefault(),
b[e].apply(this, arguments) || !1
};
for (e.guid = c; d < b.length; )
b[d++].guid = c;
return this.click(e)
},
hover: function (a, b) {
return this.mouseenter(a).mouseleave(b || a)
}
}),
K.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function (a, b) {
K.fn[b] = function (a, c) {
return null == c && (c = a, a = null),
arguments.length > 0 ? this.on(b, null, a, c) : this.trigger(b)
},
K.attrFn && (K.attrFn[b] = !0),
ba.test(b) && (K.event.fixHooks[b] = K.event.keyHooks),
ca.test(b) && (K.event.fixHooks[b] = K.event.mouseHooks)
}),
function () {
function a(a, b, c, d, f, g) {
for (var h = 0, i = d.length; i > h; h++) {
var j = d[h];
if (j) {
var k = !1;
for (j = j[a]; j; ) {
if (j[e] === c) {
k = d[j.sizset];
break
}
if (1 === j.nodeType)
if (g || (j[e] = c, j.sizset = h), "string" != typeof b) {
if (j === b) {
k = !0;
break
}
} else if (m.filter(b, [j]).length > 0) {
k = j;
break
}
j = j[a]
}
d[h] = k
}
}
}
function c(a, b, c, d, f, g) {
for (var h = 0, i = d.length; i > h; h++) {
var j = d[h];
if (j) {
var k = !1;
for (j = j[a]; j; ) {
if (j[e] === c) {
k = d[j.sizset];
break
}
if (1 === j.nodeType && !g && (j[e] = c, j.sizset = h), j.nodeName.toLowerCase() === b) {
k = j;
break
}
j = j[a]
}
d[h] = k
}
}
}
var d = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e = "sizcache" + (Math.random() + "").replace(".", ""),
f = 0,
g = Object.prototype.toString,
h = !1,
i = !0,
j = /\\/g,
k = /\r\n/g,
l = /\W/;
[0, 0].sort(function () {
return i = !1,
0
});
var m = function (a, b, c, e) {
c = c || [],
b = b || H;
var f = b;
if (1 !== b.nodeType && 9 !== b.nodeType)
return [];
if (!a || "string" != typeof a)
return c;
var h,
i,
j,
k,
l,
n,
q,
r,
t = !0,
u = m.isXML(b),
w = [],
x = a;
do
if (d.exec(""), h = d.exec(x), h && (x = h[3], w.push(h[1]), h[2])) {
k = h[3];
break
}
while (h);
if (w.length > 1 && p.exec(a))
if (2 === w.length && o.relative[w[0]])
i = v(w[0] + w[1], b, e);
else
for (i = o.relative[w[0]] ? [b] : m(w.shift(), b); w.length; )
a = w.shift(), o.relative[a] && (a += w.shift()), i = v(a, i, e);
else if (!e && w.length > 1 && 9 === b.nodeType && !u && o.match.ID.test(w[0]) && !o.match.ID.test(w[w.length - 1]) && (l = m.find(w.shift(), b, u), b = l.expr ? m.filter(l.expr, l.set)[0] : l.set[0]), b)
for (l = e ? {
expr: w.pop(),
set: s(e)
}
: m.find(w.pop(), 1 !== w.length || "~" !== w[0] && "+" !== w[0] || !b.parentNode ? b : b.parentNode, u), i = l.expr ? m.filter(l.expr, l.set) : l.set, w.length > 0 ? j = s(i) : t = !1; w.length; )
n = w.pop(), q = n, o.relative[n] ? q = w.pop() : n = "", null == q && (q = b), o.relative[n](j, q, u);
else
j = w = [];
if (j || (j = i), j || m.error(n || a), "[object Array]" === g.call(j))
if (t)
if (b && 1 === b.nodeType)
for (r = 0; null != j[r]; r++)
j[r] && (j[r] === !0 || 1 === j[r].nodeType && m.contains(b, j[r])) && c.push(i[r]);
else
for (r = 0; null != j[r]; r++)
j[r] && 1 === j[r].nodeType && c.push(i[r]);
else
c.push.apply(c, j);
else
s(j, c);
return k && (m(k, f, c, e), m.uniqueSort(c)),
c
};
m.uniqueSort = function (a) {
if (t && (h = i, a.sort(t), h))
for (var b = 1; b < a.length; b++)
a[b] === a[b - 1] && a.splice(b--, 1);
return a
},
m.matches = function (a, b) {
return m(a, null, null, b)
},
m.matchesSelector = function (a, b) {
return m(b, null, null, [a]).length > 0
},
m.find = function (a, b, c) {
var d,
e,
f,
g,
h,
i;
if (!a)
return [];
for (e = 0, f = o.order.length; f > e; e++)
if (h = o.order[e], (g = o.leftMatch[h].exec(a)) && (i = g[1], g.splice(1, 1), "\\" !== i.substr(i.length - 1) && (g[1] = (g[1] || "").replace(j, ""), d = o.find[h](g, b, c), null != d))) {
a = a.replace(o.match[h], "");
break
}
return d || (d = "undefined" != typeof b.getElementsByTagName ? b.getElementsByTagName("*") : []), {
set: d,
expr: a
}
},
m.filter = function (a, c, d, e) {
for (var f, g, h, i, j, k, l, n, p, q = a, r = [], s = c, t = c && c[0] && m.isXML(c[0]); a && c.length; ) {
for (h in o.filter)
if (null != (f = o.leftMatch[h].exec(a)) && f[2]) {
if (k = o.filter[h], l = f[1], g = !1, f.splice(1, 1), "\\" === l.substr(l.length - 1))
continue;
if (s === r && (r = []), o.preFilter[h])
if (f = o.preFilter[h](f, s, d, r, e, t)) {
if (f === !0)
continue
} else
g = i = !0;
if (f)
for (n = 0; null != (j = s[n]); n++)
j && (i = k(j, f, n, s), p = e ^ i, d && null != i ? p ? g = !0 : s[n] = !1 : p && (r.push(j), g = !0));
if (i !== b) {
if (d || (s = r), a = a.replace(o.match[h], ""), !g)
return [];
break
}
}
if (a === q) {
if (null != g)
break;
m.error(a)
}
q = a
}
return s
},
m.error = function (a) {
throw new Error("Syntax error, unrecognized expression: " + a)
};
var n = m.getText = function (a) {
var b,
c,
d = a.nodeType,
e = "";
if (d) {
if (1 === d || 9 === d) {
if ("string" == typeof a.textContent)
return a.textContent;
if ("string" == typeof a.innerText)
return a.innerText.replace(k, "");
for (a = a.firstChild; a; a = a.nextSibling)
e += n(a)
} else if (3 === d || 4 === d)
return a.nodeValue
} else
for (b = 0; c = a[b]; b++)
8 !== c.nodeType && (e += n(c));
return e
},
o = m.selectors = {
order: ["ID", "NAME", "TAG"],
match: {
ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
},
leftMatch: {},
attrMap: {
class: "className",
for : "htmlFor"
},
attrHandle: {
href: function (a) {
return a.getAttribute("href")
},
type: function (a) {
return a.getAttribute("type")
}
},
relative: {
"+": function (a, b) {
var c = "string" == typeof b,
d = c && !l.test(b),
e = c && !d;
d && (b = b.toLowerCase());
for (var f, g = 0, h = a.length; h > g; g++)
if (f = a[g]) {
for (; (f = f.previousSibling) && 1 !== f.nodeType; );
a[g] = e || f && f.nodeName.toLowerCase() === b ? f || !1 : f === b
}
e && m.filter(b, a, !0)
},
">": function (a, b) {
var c,
d = "string" == typeof b,
e = 0,
f = a.length;
if (d && !l.test(b)) {
for (b = b.toLowerCase(); f > e; e++)
if (c = a[e]) {
var g = c.parentNode;
a[e] = g.nodeName.toLowerCase() === b && g
}
} else {
for (; f > e; e++)
c = a[e], c && (a[e] = d ? c.parentNode : c.parentNode === b);
d && m.filter(b, a, !0)
}
},
"": function (b, d, e) {
var g,
h = f++,
i = a;
"string" == typeof d && !l.test(d) && (d = d.toLowerCase(), g = d, i = c),
i("parentNode", d, h, b, g, e)
},
"~": function (b, d, e) {
var g,
h = f++,
i = a;
"string" == typeof d && !l.test(d) && (d = d.toLowerCase(), g = d, i = c),
i("previousSibling", d, h, b, g, e)
}
},
find: {
ID: function (a, b, c) {
if ("undefined" != typeof b.getElementById && !c) {
var d = b.getElementById(a[1]);
return d && d.parentNode ? [d] : []
}
},
NAME: function (a, b) {
if ("undefined" != typeof b.getElementsByName) {
for (var c = [], d = b.getElementsByName(a[1]), e = 0, f = d.length; f > e; e++)
d[e].getAttribute("name") === a[1] && c.push(d[e]);
return 0 === c.length ? null : c
}
},
TAG: function (a, b) {
return "undefined" != typeof b.getElementsByTagName ? b.getElementsByTagName(a[1]) : void 0
}
},
preFilter: {
CLASS: function (a, b, c, d, e, f) {
if (a = " " + a[1].replace(j, "") + " ", f)
return a;
for (var g, h = 0; null != (g = b[h]); h++)
g && (e ^ (g.className && (" " + g.className + " ").replace(/[\t\n\r]/g, " ").indexOf(a) >= 0) ? c || d.push(g) : c && (b[h] = !1));
return !1
},
ID: function (a) {
return a[1].replace(j, "")
},
TAG: function (a) {
return a[1].replace(j, "").toLowerCase()
},
CHILD: function (a) {
if ("nth" === a[1]) {
a[2] || m.error(a[0]),
a[2] = a[2].replace(/^\+|\s*/g, "");
var b = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even" === a[2] && "2n" || "odd" === a[2] && "2n+1" || !/\D/.test(a[2]) && "0n+" + a[2] || a[2]);
a[2] = b[1] + (b[2] || 1) - 0,
a[3] = b[3] - 0
} else
a[2] && m.error(a[0]);
return a[0] = f++,
a
},
ATTR: function (a, b, c, d, e, f) {
var g = a[1] = a[1].replace(j, "");
return !f && o.attrMap[g] && (a[1] = o.attrMap[g]),
a[4] = (a[4] || a[5] || "").replace(j, ""),
"~=" === a[2] && (a[4] = " " + a[4] + " "),
a
},
PSEUDO: function (a, b, c, e, f) {
if ("not" === a[1]) {
if (!((d.exec(a[3]) || "").length > 1 || /^\w/.test(a[3]))) {
var g = m.filter(a[3], b, c, !0 ^ f);
return c || e.push.apply(e, g),
!1
}
a[3] = m(a[3], null, null, b)
} else if (o.match.POS.test(a[0]) || o.match.CHILD.test(a[0]))
return !0;
return a
},
POS: function (a) {
return a.unshift(!0),
a
}
},
filters: {
enabled: function (a) {
return a.disabled === !1 && "hidden" !== a.type
},
disabled: function (a) {
return a.disabled === !0
},
checked: function (a) {
return a.checked === !0
},
selected: function (a) {
return a.parentNode && a.parentNode.selectedIndex,
a.selected === !0
},
parent: function (a) {
return !!a.firstChild
},
empty: function (a) {
return !a.firstChild
},
has: function (a, b, c) {
return !!m(c[3], a).length
},
header: function (a) {
return /h\d/i.test(a.nodeName)
},
text: function (a) {
var b = a.getAttribute("type"),
c = a.type;
return "input" === a.nodeName.toLowerCase() && "text" === c && (b === c || null === b)
},
radio: function (a) {
return "input" === a.nodeName.toLowerCase() && "radio" === a.type
},
checkbox: function (a) {
return "input" === a.nodeName.toLowerCase() && "checkbox" === a.type
},
file: function (a) {
return "input" === a.nodeName.toLowerCase() && "file" === a.type
},
password: function (a) {
return "input" === a.nodeName.toLowerCase() && "password" === a.type
},
submit: function (a) {
var b = a.nodeName.toLowerCase();
return ("input" === b || "button" === b) && "submit" === a.type
},
image: function (a) {
return "input" === a.nodeName.toLowerCase() && "image" === a.type
},
reset: function (a) {
var b = a.nodeName.toLowerCase();
return ("input" === b || "button" === b) && "reset" === a.type
},
button: function (a) {
var b = a.nodeName.toLowerCase();
return "input" === b && "button" === a.type || "button" === b
},
input: function (a) {
return /input|select|textarea|button/i.test(a.nodeName)
},
focus: function (a) {
return a === a.ownerDocument.activeElement
}
},
setFilters: {
first: function (a, b) {
return 0 === b
},
last: function (a, b, c, d) {
return b === d.length - 1
},
even: function (a, b) {
return b % 2 === 0
},
odd: function (a, b) {
return b % 2 === 1
},
lt: function (a, b, c) {
return b < c[3] - 0
},
gt: function (a, b, c) {
return b > c[3] - 0
},
nth: function (a, b, c) {
return c[3] - 0 === b
},
eq: function (a, b, c) {
return c[3] - 0 === b
}
},
filter: {
PSEUDO: function (a, b, c, d) {
var e = b[1],
f = o.filters[e];
if (f)
return f(a, c, b, d);
if ("contains" === e)
return (a.textContent || a.innerText || n([a]) || "").indexOf(b[3]) >= 0;
if ("not" === e) {
for (var g = b[3], h = 0, i = g.length; i > h; h++)
if (g[h] === a)
return !1;
return !0
}
m.error(e)
},
CHILD: function (a, b) {
var c,
d,
f,
g,
h,
i,
j = b[1],
k = a;
switch (j) {
case "only":
case "first":
for (; k = k.previousSibling; )
if (1 === k.nodeType)
return !1;
if ("first" === j)
return !0;
k = a;
case "last":
for (; k = k.nextSibling; )
if (1 === k.nodeType)
return !1;
return !0;
case "nth":
if (c = b[2], d = b[3], 1 === c && 0 === d)
return !0;
if (f = b[0], g = a.parentNode, g && (g[e] !== f || !a.nodeIndex)) {
for (h = 0, k = g.firstChild; k; k = k.nextSibling)
1 === k.nodeType && (k.nodeIndex = ++h);
g[e] = f
}
return i = a.nodeIndex - d,
0 === c ? 0 === i : i % c === 0 && i / c >= 0
}
},
ID: function (a, b) {
return 1 === a.nodeType && a.getAttribute("id") === b
},
TAG: function (a, b) {
return "*" === b && 1 === a.nodeType || !!a.nodeName && a.nodeName.toLowerCase() === b
},
CLASS: function (a, b) {
return (" " + (a.className || a.getAttribute("class")) + " ").indexOf(b) > -1
},
ATTR: function (a, b) {
var c = b[1],
d = m.attr ? m.attr(a, c) : o.attrHandle[c] ? o.attrHandle[c](a) : null != a[c] ? a[c] : a.getAttribute(c),
e = d + "",
f = b[2],
g = b[4];
return null == d ? "!=" === f : !f && m.attr ? null != d : "=" === f ? e === g : "*=" === f ? e.indexOf(g) >= 0 : "~=" === f ? (" " + e + " ").indexOf(g) >= 0 : g ? "!=" === f ? e !== g : "^=" === f ? 0 === e.indexOf(g) : "$=" === f ? e.substr(e.length - g.length) === g : "|=" === f && (e === g || e.substr(0, g.length + 1) === g + "-") : e && d !== !1
},
POS: function (a, b, c, d) {
var e = b[2],
f = o.setFilters[e];
return f ? f(a, c, b, d) : void 0
}
}
},
p = o.match.POS,
q = function (a, b) {
return "\\" + (b - 0 + 1)
};
for (var r in o.match)
o.match[r] = new RegExp(o.match[r].source + /(?![^\[]*\])(?![^\(]*\))/.source), o.leftMatch[r] = new RegExp(/(^(?:.|\r|\n)*?)/.source + o.match[r].source.replace(/\\(\d+)/g, q));
var s = function (a, b) {
return a = Array.prototype.slice.call(a, 0),
b ? (b.push.apply(b, a), b) : a
};
try {
Array.prototype.slice.call(H.documentElement.childNodes, 0)[0].nodeType
} catch (a) {
s = function (a, b) {
var c = 0,
d = b || [];
if ("[object Array]" === g.call(a))
Array.prototype.push.apply(d, a);
else if ("number" == typeof a.length)
for (var e = a.length; e > c; c++)
d.push(a[c]);
else
for (; a[c]; c++)
d.push(a[c]);
return d
}
}
var t,
u;
H.documentElement.compareDocumentPosition ? t = function (a, b) {
return a === b ? (h = !0, 0) : a.compareDocumentPosition && b.compareDocumentPosition ? 4 & a.compareDocumentPosition(b) ? -1 : 1 : a.compareDocumentPosition ? -1 : 1
}
: (t = function (a, b) {
if (a === b)
return h = !0, 0;
if (a.sourceIndex && b.sourceIndex)
return a.sourceIndex - b.sourceIndex;
var c,
d,
e = [],
f = [],
g = a.parentNode,
i = b.parentNode,
j = g;
if (g === i)
return u(a, b);
if (!g)
return -1;
if (!i)
return 1;
for (; j; )
e.unshift(j), j = j.parentNode;
for (j = i; j; )
f.unshift(j), j = j.parentNode;
c = e.length,
d = f.length;
for (var k = 0; c > k && d > k; k++)
if (e[k] !== f[k])
return u(e[k], f[k]);
return k === c ? u(a, f[k], -1) : u(e[k], b, 1)
}, u = function (a, b, c) {
if (a === b)
return c;
for (var d = a.nextSibling; d; ) {
if (d === b)
return -1;
d = d.nextSibling
}
return 1
}),
function () {
var a = H.createElement("div"),
c = "script" + (new Date).getTime(),
d = H.documentElement;
a.innerHTML = "",
d.insertBefore(a, d.firstChild),
H.getElementById(c) && (o.find.ID = function (a, c, d) {
if ("undefined" != typeof c.getElementById && !d) {
var e = c.getElementById(a[1]);
return e ? e.id === a[1] || "undefined" != typeof e.getAttributeNode && e.getAttributeNode("id").nodeValue === a[1] ? [e] : b : []
}
}, o.filter.ID = function (a, b) {
var c = "undefined" != typeof a.getAttributeNode && a.getAttributeNode("id");
return 1 === a.nodeType && c && c.nodeValue === b
}),
d.removeChild(a),
d = a = null
}
(),
function () {
var a = H.createElement("div");
a.appendChild(H.createComment("")),
a.getElementsByTagName("*").length > 0 && (o.find.TAG = function (a, b) {
var c = b.getElementsByTagName(a[1]);
if ("*" === a[1]) {
for (var d = [], e = 0; c[e]; e++)
1 === c[e].nodeType && d.push(c[e]);
c = d
}
return c
}),
a.innerHTML = "",
a.firstChild && "undefined" != typeof a.firstChild.getAttribute && "#" !== a.firstChild.getAttribute("href") && (o.attrHandle.href = function (a) {
return a.getAttribute("href", 2)
}),
a = null
}
(),
H.querySelectorAll && function () {
var a = m,
b = H.createElement("div"),
c = "__sizzle__";
if (b.innerHTML = "", !b.querySelectorAll || 0 !== b.querySelectorAll(".TEST").length) {
m = function (b, d, e, f) {
if (d = d || H, !f && !m.isXML(d)) {
var g = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);
if (g && (1 === d.nodeType || 9 === d.nodeType)) {
if (g[1])
return s(d.getElementsByTagName(b), e);
if (g[2] && o.find.CLASS && d.getElementsByClassName)
return s(d.getElementsByClassName(g[2]), e)
}
if (9 === d.nodeType) {
if ("body" === b && d.body)
return s([d.body], e);
if (g && g[3]) {
var h = d.getElementById(g[3]);
if (!h || !h.parentNode)
return s([], e);
if (h.id === g[3])
return s([h], e)
}
try {
return s(d.querySelectorAll(b), e)
} catch (a) {}
} else if (1 === d.nodeType && "object" !== d.nodeName.toLowerCase()) {
var i = d,
j = d.getAttribute("id"),
k = j || c,
l = d.parentNode,
n = /^\s*[+~]/.test(b);
j ? k = k.replace(/'/g, "\\$&") : d.setAttribute("id", k),
n && l && (d = d.parentNode);
try {
if (!n || l)
return s(d.querySelectorAll("[id='" + k + "'] " + b), e)
} catch (a) {}
finally {
j || i.removeAttribute("id")
}
}
}
return a(b, d, e, f)
};
for (var d in a)
m[d] = a[d];
b = null
}
}
(),
function () {
var a = H.documentElement,
b = a.matchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || a.msMatchesSelector;
if (b) {
var c = !b.call(H.createElement("div"), "div"),
d = !1;
try {
b.call(H.documentElement, "[test!='']:sizzle")
} catch (a) {
d = !0
}
m.matchesSelector = function (a, e) {
if (e = e.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"), !m.isXML(a))
try {
if (d || !o.match.PSEUDO.test(e) && !/!=/.test(e)) {
var f = b.call(a, e);
if (f || !c || a.document && 11 !== a.document.nodeType)
return f
}
} catch (a) {}
return m(e, null, null, [a]).length > 0
}
}
}
(),
function () {
var a = H.createElement("div");
if (a.innerHTML = "", a.getElementsByClassName && 0 !== a.getElementsByClassName("e").length) {
if (a.lastChild.className = "e", 1 === a.getElementsByClassName("e").length)
return;
o.order.splice(1, 0, "CLASS"),
o.find.CLASS = function (a, b, c) {
return "undefined" == typeof b.getElementsByClassName || c ? void 0 : b.getElementsByClassName(a[1])
},
a = null
}
}
(),
H.documentElement.contains ? m.contains = function (a, b) {
return a !== b && (!a.contains || a.contains(b))
}
: H.documentElement.compareDocumentPosition ? m.contains = function (a, b) {
return !!(16 & a.compareDocumentPosition(b))
}
: m.contains = function () {
return !1
},
m.isXML = function (a) {
var b = (a ? a.ownerDocument || a : 0).documentElement;
return !!b && "HTML" !== b.nodeName
};
var v = function (a, b, c) {
for (var d, e = [], f = "", g = b.nodeType ? [b] : b; d = o.match.PSEUDO.exec(a); )
f += d[0], a = a.replace(o.match.PSEUDO, "");
a = o.relative[a] ? a + "*" : a;
for (var h = 0, i = g.length; i > h; h++)
m(a, g[h], e, c);
return m.filter(f, e)
};
m.attr = K.attr,
m.selectors.attrMap = {},
K.find = m,
K.expr = m.selectors,
K.expr[":"] = K.expr.filters,
K.unique = m.uniqueSort,
K.text = m.getText,
K.isXMLDoc = m.isXML,
K.contains = m.contains
}
();
var ia = /Until$/,
ja = /^(?:parents|prevUntil|prevAll)/,
ka = /,/,
la = /^.[^:#\[\.,]*$/,
ma = Array.prototype.slice,
na = K.expr.match.POS,
oa = {
children: !0,
contents: !0,
next: !0,
prev: !0
};
K.fn.extend({
find: function (a) {
var b,
c,
d = this;
if ("string" != typeof a)
return K(a).filter(function () {
for (b = 0, c = d.length; c > b; b++)
if (K.contains(d[b], this))
return !0
});
var e,
f,
g,
h = this.pushStack("", "find", a);
for (b = 0, c = this.length; c > b; b++)
if (e = h.length, K.find(a, this[b], h), b > 0)
for (f = e; f < h.length; f++)
for (g = 0; e > g; g++)
if (h[g] === h[f]) {
h.splice(f--, 1);
break
}
return h
},
has: function (a) {
var b = K(a);
return this.filter(function () {
for (var a = 0, c = b.length; c > a; a++)
if (K.contains(this, b[a]))
return !0
})
},
not: function (a) {
return this.pushStack(z(this, a, !1), "not", a)
},
filter: function (a) {
return this.pushStack(z(this, a, !0), "filter", a)
},
is: function (a) {
return !!a && ("string" == typeof a ? na.test(a) ? K(a, this.context).index(this[0]) >= 0 : K.filter(a, this).length > 0 : this.filter(a).length > 0)
},
closest: function (a, b) {
var c,
d,
e = [],
f = this[0];
if (K.isArray(a)) {
for (var g = 1; f && f.ownerDocument && f !== b; ) {
for (c = 0; c < a.length; c++)
K(f).is(a[c]) && e.push({
selector: a[c],
elem: f,
level: g
});
f = f.parentNode,
g++
}
return e
}
var h = na.test(a) || "string" != typeof a ? K(a, b || this.context) : 0;
for (c = 0, d = this.length; d > c; c++)
for (f = this[c]; f; ) {
if (h ? h.index(f) > -1 : K.find.matchesSelector(f, a)) {
e.push(f);
break
}
if (f = f.parentNode, !f || !f.ownerDocument || f === b || 11 === f.nodeType)
break
}
return e = e.length > 1 ? K.unique(e) : e,
this.pushStack(e, "closest", a)
},
index: function (a) {
return a ? "string" == typeof a ? K.inArray(this[0], K(a)) : K.inArray(a.jquery ? a[0] : a, this) : this[0] && this[0].parentNode ? this.prevAll().length : -1
},
add: function (a, b) {
var c = "string" == typeof a ? K(a, b) : K.makeArray(a && a.nodeType ? [a] : a),
d = K.merge(this.get(), c);
return this.pushStack(A(c[0]) || A(d[0]) ? d : K.unique(d))
},
andSelf: function () {
return this.add(this.prevObject)
}
}),
K.each({
parent: function (a) {
var b = a.parentNode;
return b && 11 !== b.nodeType ? b : null
},
parents: function (a) {
return K.dir(a, "parentNode")
},
parentsUntil: function (a, b, c) {
return K.dir(a, "parentNode", c)
},
next: function (a) {
return K.nth(a, 2, "nextSibling")
},
prev: function (a) {
return K.nth(a, 2, "previousSibling")
},
nextAll: function (a) {
return K.dir(a, "nextSibling")
},
prevAll: function (a) {
return K.dir(a, "previousSibling")
},
nextUntil: function (a, b, c) {
return K.dir(a, "nextSibling", c)
},
prevUntil: function (a, b, c) {
return K.dir(a, "previousSibling", c)
},
siblings: function (a) {
return K.sibling(a.parentNode.firstChild, a)
},
children: function (a) {
return K.sibling(a.firstChild)
},
contents: function (a) {
return K.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : K.makeArray(a.childNodes)
}
}, function (a, b) {
K.fn[a] = function (c, d) {
var e = K.map(this, b, c);
return ia.test(a) || (d = c),
d && "string" == typeof d && (e = K.filter(d, e)),
e = this.length > 1 && !oa[a] ? K.unique(e) : e,
(this.length > 1 || ka.test(d)) && ja.test(a) && (e = e.reverse()),
this.pushStack(e, a, ma.call(arguments).join(","))
}
}),
K.extend({
filter: function (a, b, c) {
return c && (a = ":not(" + a + ")"),
1 === b.length ? K.find.matchesSelector(b[0], a) ? [b[0]] : [] : K.find.matches(a, b)
},
dir: function (a, c, d) {
for (var e = [], f = a[c]; f && 9 !== f.nodeType && (d === b || 1 !== f.nodeType || !K(f).is(d)); )
1 === f.nodeType && e.push(f), f = f[c];
return e
},
nth: function (a, b, c) {
b = b || 1;
for (var d = 0; a && (1 !== a.nodeType || ++d !== b); a = a[c]);
return a
},
sibling: function (a, b) {
for (var c = []; a; a = a.nextSibling)
1 === a.nodeType && a !== b && c.push(a);
return c
}
});
var pa = "abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
qa = / jQuery\d+="(?:\d+|null)"/g,
ra = /^\s+/,
sa = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
ta = /<([\w:]+)/,
ua = /", ""],
legend: [1, ""],
thead: [1, "