Skip to content

Instantly share code, notes, and snippets.

@Poky85
Last active September 22, 2016 07:38
Show Gist options
  • Save Poky85/e441799fdf314684d3eb41744a2ba4c6 to your computer and use it in GitHub Desktop.
Save Poky85/e441799fdf314684d3eb41744a2ba4c6 to your computer and use it in GitHub Desktop.
Example of webpack-md5-hash plugin bug. Compare this file with https://gist.github.com/Poky85/d8fe2d4711d532fbb3ea25a5efbbf992. The only difference between bundle are module IDs. Despite this the bundle hashes are the same.
!function(t) {
function e(n) {
if (i[n])
return i[n].exports;
var r = i[n] = {
exports: {},
id: n,
loaded: !1
};
return t[n].call(r.exports, r, r.exports, e),
r.loaded = !0,
r.exports
}
var n = window.webpackJsonp;
window.webpackJsonp = function(o, a) {
for (var s, u, c = 0, l = []; c < o.length; c++)
u = o[c],
r[u] && l.push.apply(l, r[u]),
r[u] = 0;
for (s in a) {
var f = a[s];
switch (typeof f) {
case "object":
t[s] = function(e) {
var n = e.slice(1)
, i = e[0];
return function(e, r, o) {
t[i].apply(this, [e, r, o].concat(n))
}
}(f);
break;
case "function":
t[s] = f;
break;
default:
t[s] = t[f]
}
}
for (n && n(o, a); l.length; )
l.shift().call(null , e);
if (a[0])
return i[0] = 0,
e(0)
}
;
var i = {}
, r = {
0: 0
};
return e.e = function(t, n) {
if (0 === r[t])
return n.call(null , e);
if (void 0 !== r[t])
r[t].push(n);
else {
r[t] = [n];
var i = document.getElementsByTagName("head")[0]
, o = document.createElement("script");
o.type = "text/javascript",
o.charset = "utf-8",
o.async = !0,
o.src = e.p + window.webpackManifest[t],
i.appendChild(o)
}
}
,
e.m = t,
e.c = i,
e.p = "https://skrz.cz/assets/",
e(0)
}(function(t) {
for (var e in t)
if (Object.prototype.hasOwnProperty.call(t, e))
switch (typeof t[e]) {
case "function":
break;
case "object":
t[e] = function(e) {
var n = e.slice(1)
, i = t[e[0]];
return function(t, e, r) {
i.apply(this, [t, e, r].concat(n))
}
}(t[e]);
break;
default:
t[e] = t[t[e]]
}
return t
}([function(t, e, n) {
t.exports = n(874)
}
, function(t, e, n) {
var i, r;
/*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
!function(e, n) {
"object" == typeof t && "object" == typeof t.exports ? t.exports = e.document ? n(e, !0) : function(t) {
if (!t.document)
throw new Error("jQuery requires a window with a document");
return n(t)
}
: n(e)
}("undefined" != typeof window ? window : this, function(n, o) {
function a(t) {
var e = !!t && "length"in t && t.length
, n = mt.type(t);
return "function" !== n && !mt.isWindow(t) && ("array" === n || 0 === e || "number" == typeof e && e > 0 && e - 1 in t)
}
function s(t, e, n) {
if (mt.isFunction(e))
return mt.grep(t, function(t, i) {
return !!e.call(t, i, t) !== n
});
if (e.nodeType)
return mt.grep(t, function(t) {
return t === e !== n
});
if ("string" == typeof e) {
if (Dt.test(e))
return mt.filter(e, t, n);
e = mt.filter(e, t)
}
return mt.grep(t, function(t) {
return mt.inArray(t, e) > -1 !== n
})
}
function u(t, e) {
do
t = t[e];
while (t && 1 !== t.nodeType);return t
}
function c(t) {
var e = {};
return mt.each(t.match(jt) || [], function(t, n) {
e[n] = !0
}),
e
}
function l() {
st.addEventListener ? (st.removeEventListener("DOMContentLoaded", f),
n.removeEventListener("load", f)) : (st.detachEvent("onreadystatechange", f),
n.detachEvent("onload", f))
}
function f() {
(st.addEventListener || "load" === n.event.type || "complete" === st.readyState) && (l(),
mt.ready())
}
function h(t, e, n) {
if (void 0 === n && 1 === t.nodeType) {
var i = "data-" + e.replace(Rt, "-$1").toLowerCase();
if (n = t.getAttribute(i),
"string" == typeof n) {
try {
n = "true" === n || "false" !== n && ("null" === n ? null : +n + "" === n ? +n : Pt.test(n) ? mt.parseJSON(n) : n)
} catch (r) {}
mt.data(t, e, n)
} else
n = void 0
}
return n
}
function d(t) {
var e;
for (e in t)
if (("data" !== e || !mt.isEmptyObject(t[e])) && "toJSON" !== e)
return !1;
return !0
}
function p(t, e, n, i) {
if (Ft(t)) {
var r, o, a = mt.expando, s = t.nodeType, u = s ? mt.cache : t, c = s ? t[a] : t[a] && a;
if (c && u[c] && (i || u[c].data) || void 0 !== n || "string" != typeof e)
return c || (c = s ? t[a] = at.pop() || mt.guid++ : a),
u[c] || (u[c] = s ? {} : {
toJSON: mt.noop
}),
"object" != typeof e && "function" != typeof e || (i ? u[c] = mt.extend(u[c], e) : u[c].data = mt.extend(u[c].data, e)),
o = u[c],
i || (o.data || (o.data = {}),
o = o.data),
void 0 !== n && (o[mt.camelCase(e)] = n),
"string" == typeof e ? (r = o[e],
null == r && (r = o[mt.camelCase(e)])) : r = o,
r
}
}
function v(t, e, n) {
if (Ft(t)) {
var i, r, o = t.nodeType, a = o ? mt.cache : t, s = o ? t[mt.expando] : mt.expando;
if (a[s]) {
if (e && (i = n ? a[s] : a[s].data)) {
mt.isArray(e) ? e = e.concat(mt.map(e, mt.camelCase)) : e in i ? e = [e] : (e = mt.camelCase(e),
e = e in i ? [e] : e.split(" ")),
r = e.length;
for (; r--; )
delete i[e[r]];
if (n ? !d(i) : !mt.isEmptyObject(i))
return
}
(n || (delete a[s].data,
d(a[s]))) && (o ? mt.cleanData([t], !0) : vt.deleteExpando || a != a.window ? delete a[s] : a[s] = void 0)
}
}
}
function g(t, e, n, i) {
var r, o = 1, a = 20, s = i ? function() {
return i.cur()
}
: function() {
return mt.css(t, e, "")
}
, u = s(), c = n && n[3] || (mt.cssNumber[e] ? "" : "px"), l = (mt.cssNumber[e] || "px" !== c && +u) && Bt.exec(mt.css(t, e));
if (l && l[3] !== c) {
c = c || l[3],
n = n || [],
l = +u || 1;
do
o = o || ".5",
l /= o,
mt.style(t, e, l + c);
while (o !== (o = s() / u) && 1 !== o && --a)
}
return n && (l = +l || +u || 0,
r = n[1] ? l + (n[1] + 1) * n[2] : +n[2],
i && (i.unit = c,
i.start = l,
i.end = r)),
r
}
function m(t) {
var e = Xt.split("|")
, n = t.createDocumentFragment();
if (n.createElement)
for (; e.length; )
n.createElement(e.pop());
return n
}
function y(t, e) {
var n, i, r = 0, o = "undefined" != typeof t.getElementsByTagName ? t.getElementsByTagName(e || "*") : "undefined" != typeof t.querySelectorAll ? t.querySelectorAll(e || "*") : void 0;
if (!o)
for (o = [],
n = t.childNodes || t; null != (i = n[r]); r++)
!e || mt.nodeName(i, e) ? o.push(i) : mt.merge(o, y(i, e));
return void 0 === e || e && mt.nodeName(t, e) ? mt.merge([t], o) : o
}
function b(t, e) {
for (var n, i = 0; null != (n = t[i]); i++)
mt._data(n, "globalEval", !e || mt._data(e[i], "globalEval"))
}
function w(t) {
qt.test(t.type) && (t.defaultChecked = t.checked)
}
function x(t, e, n, i, r) {
for (var o, a, s, u, c, l, f, h = t.length, d = m(e), p = [], v = 0; v < h; v++)
if (a = t[v],
a || 0 === a)
if ("object" === mt.type(a))
mt.merge(p, a.nodeType ? [a] : a);
else if (Kt.test(a)) {
for (u = u || d.appendChild(e.createElement("div")),
c = (Wt.exec(a) || ["", ""])[1].toLowerCase(),
f = Gt[c] || Gt._default,
u.innerHTML = f[1] + mt.htmlPrefilter(a) + f[2],
o = f[0]; o--; )
u = u.lastChild;
if (!vt.leadingWhitespace && Yt.test(a) && p.push(e.createTextNode(Yt.exec(a)[0])),
!vt.tbody)
for (a = "table" !== c || Zt.test(a) ? "<table>" !== f[1] || Zt.test(a) ? 0 : u : u.firstChild,
o = a && a.childNodes.length; o--; )
mt.nodeName(l = a.childNodes[o], "tbody") && !l.childNodes.length && a.removeChild(l);
for (mt.merge(p, u.childNodes),
u.textContent = ""; u.firstChild; )
u.removeChild(u.firstChild);
u = d.lastChild
} else
p.push(e.createTextNode(a));
for (u && d.removeChild(u),
vt.appendChecked || mt.grep(y(p, "input"), w),
v = 0; a = p[v++]; )
if (i && mt.inArray(a, i) > -1)
r && r.push(a);
else if (s = mt.contains(a.ownerDocument, a),
u = y(d.appendChild(a), "script"),
s && b(u),
n)
for (o = 0; a = u[o++]; )
Vt.test(a.type || "") && n.push(a);
return u = null ,
d
}
function T() {
return !0
}
function S() {
return !1
}
function _() {
try {
return st.activeElement
} catch (t) {}
}
function C(t, e, n, i, r, o) {
var a, s;
if ("object" == typeof e) {
"string" != typeof n && (i = i || n,
n = void 0);
for (s in e)
C(t, s, n, i, e[s], o);
return t
}
if (null == i && null == r ? (r = n,
i = n = void 0) : null == r && ("string" == typeof n ? (r = i,
i = void 0) : (r = i,
i = n,
n = void 0)),
r === !1)
r = S;
else if (!r)
return t;
return 1 === o && (a = r,
r = function(t) {
return mt().off(t),
a.apply(this, arguments)
}
,
r.guid = a.guid || (a.guid = mt.guid++)),
t.each(function() {
mt.event.add(this, e, r, i, n)
})
}
function E(t, e) {
return mt.nodeName(t, "table") && mt.nodeName(11 !== e.nodeType ? e : e.firstChild, "tr") ? t.getElementsByTagName("tbody")[0] || t.appendChild(t.ownerDocument.createElement("tbody")) : t
}
function D(t) {
return t.type = (null !== mt.find.attr(t, "type")) + "/" + t.type,
t
}
function k(t) {
var e = ue.exec(t.type);
return e ? t.type = e[1] : t.removeAttribute("type"),
t
}
function A(t, e) {
if (1 === e.nodeType && mt.hasData(t)) {
var n, i, r, o = mt._data(t), a = mt._data(e, o), s = o.events;
if (s) {
delete a.handle,
a.events = {};
for (n in s)
for (i = 0,
r = s[n].length; i < r; i++)
mt.event.add(e, n, s[n][i])
}
a.data && (a.data = mt.extend({}, a.data))
}
}
function M(t, e) {
var n, i, r;
if (1 === e.nodeType) {
if (n = e.nodeName.toLowerCase(),
!vt.noCloneEvent && e[mt.expando]) {
r = mt._data(e);
for (i in r.events)
mt.removeEvent(e, i, r.handle);
e.removeAttribute(mt.expando)
}
"script" === n && e.text !== t.text ? (D(e).text = t.text,
k(e)) : "object" === n ? (e.parentNode && (e.outerHTML = t.outerHTML),
vt.html5Clone && t.innerHTML && !mt.trim(e.innerHTML) && (e.innerHTML = t.innerHTML)) : "input" === n && qt.test(t.type) ? (e.defaultChecked = e.checked = t.checked,
e.value !== t.value && (e.value = t.value)) : "option" === n ? e.defaultSelected = e.selected = t.defaultSelected : "input" !== n && "textarea" !== n || (e.defaultValue = t.defaultValue)
}
}
function O(t, e, n, i) {
e = ct.apply([], e);
var r, o, a, s, u, c, l = 0, f = t.length, h = f - 1, d = e[0], p = mt.isFunction(d);
if (p || f > 1 && "string" == typeof d && !vt.checkClone && se.test(d))
return t.each(function(r) {
var o = t.eq(r);
p && (e[0] = d.call(this, r, o.html())),
O(o, e, n, i)
});
if (f && (c = x(e, t[0].ownerDocument, !1, t, i),
r = c.firstChild,
1 === c.childNodes.length && (c = r),
r || i)) {
for (s = mt.map(y(c, "script"), D),
a = s.length; l < f; l++)
o = c,
l !== h && (o = mt.clone(o, !0, !0),
a && mt.merge(s, y(o, "script"))),
n.call(t[l], o, l);
if (a)
for (u = s[s.length - 1].ownerDocument,
mt.map(s, k),
l = 0; l < a; l++)
o = s[l],
Vt.test(o.type || "") && !mt._data(o, "globalEval") && mt.contains(u, o) && (o.src ? mt._evalUrl && mt._evalUrl(o.src) : mt.globalEval((o.text || o.textContent || o.innerHTML || "").replace(ce, "")));
c = r = null
}
return t
}
function N(t, e, n) {
for (var i, r = e ? mt.filter(e, t) : t, o = 0; null != (i = r[o]); o++)
n || 1 !== i.nodeType || mt.cleanData(y(i)),
i.parentNode && (n && mt.contains(i.ownerDocument, i) && b(y(i, "script")),
i.parentNode.removeChild(i));
return t
}
function j(t, e) {
var n = mt(e.createElement(t)).appendTo(e.body)
, i = mt.css(n[0], "display");
return n.detach(),
i
}
function I(t) {
var e = st
, n = de[t];
return n || (n = j(t, e),
"none" !== n && n || (he = (he || mt("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),
e = (he[0].contentWindow || he[0].contentDocument).document,
e.write(),
e.close(),
n = j(t, e),
he.detach()),
de[t] = n),
n
}
function L(t, e) {
return {
get: function() {
return t() ? void delete this.get : (this.get = e).apply(this, arguments)
}
}
}
function F(t) {
if (t in ke)
return t;
for (var e = t.charAt(0).toUpperCase() + t.slice(1), n = De.length; n--; )
if (t = De[n] + e,
t in ke)
return t
}
function P(t, e) {
for (var n, i, r, o = [], a = 0, s = t.length; a < s; a++)
i = t[a],
i.style && (o[a] = mt._data(i, "olddisplay"),
n = i.style.display,
e ? (o[a] || "none" !== n || (i.style.display = ""),
"" === i.style.display && Ut(i) && (o[a] = mt._data(i, "olddisplay", I(i.nodeName)))) : (r = Ut(i),
(n && "none" !== n || !r) && mt._data(i, "olddisplay", r ? n : mt.css(i, "display"))));
for (a = 0; a < s; a++)
i = t[a],
i.style && (e && "none" !== i.style.display && "" !== i.style.display || (i.style.display = e ? o[a] || "" : "none"));
return t
}
function R(t, e, n) {
var i = _e.exec(e);
return i ? Math.max(0, i[1] - (n || 0)) + (i[2] || "px") : e
}
function z(t, e, n, i, r) {
for (var o = n === (i ? "border" : "content") ? 4 : "width" === e ? 1 : 0, a = 0; o < 4; o += 2)
"margin" === n && (a += mt.css(t, n + Ht[o], !0, r)),
i ? ("content" === n && (a -= mt.css(t, "padding" + Ht[o], !0, r)),
"margin" !== n && (a -= mt.css(t, "border" + Ht[o] + "Width", !0, r))) : (a += mt.css(t, "padding" + Ht[o], !0, r),
"padding" !== n && (a += mt.css(t, "border" + Ht[o] + "Width", !0, r)));
return a
}
function B(t, e, n) {
var i = !0
, r = "width" === e ? t.offsetWidth : t.offsetHeight
, o = ye(t)
, a = vt.boxSizing && "border-box" === mt.css(t, "boxSizing", !1, o);
if (r <= 0 || null == r) {
if (r = be(t, e, o),
(r < 0 || null == r) && (r = t.style[e]),
ve.test(r))
return r;
i = a && (vt.boxSizingReliable() || r === t.style[e]),
r = parseFloat(r) || 0
}
return r + z(t, e, n || (a ? "border" : "content"), i, o) + "px"
}
function H(t, e, n, i, r) {
return new H.prototype.init(t,e,n,i,r)
}
function U() {
return n.setTimeout(function() {
Ae = void 0
}),
Ae = mt.now()
}
function $(t, e) {
var n, i = {
height: t
}, r = 0;
for (e = e ? 1 : 0; r < 4; r += 2 - e)
n = Ht[r],
i["margin" + n] = i["padding" + n] = t;
return e && (i.opacity = i.width = t),
i
}
function q(t, e, n) {
for (var i, r = (Y.tweeners[e] || []).concat(Y.tweeners["*"]), o = 0, a = r.length; o < a; o++)
if (i = r[o].call(n, e, t))
return i
}
function W(t, e, n) {
var i, r, o, a, s, u, c, l, f = this, h = {}, d = t.style, p = t.nodeType && Ut(t), v = mt._data(t, "fxshow");
n.queue || (s = mt._queueHooks(t, "fx"),
null == s.unqueued && (s.unqueued = 0,
u = s.empty.fire,
s.empty.fire = function() {
s.unqueued || u()
}
),
s.unqueued++,
f.always(function() {
f.always(function() {
s.unqueued--,
mt.queue(t, "fx").length || s.empty.fire()
})
})),
1 === t.nodeType && ("height"in e || "width"in e) && (n.overflow = [d.overflow, d.overflowX, d.overflowY],
c = mt.css(t, "display"),
l = "none" === c ? mt._data(t, "olddisplay") || I(t.nodeName) : c,
"inline" === l && "none" === mt.css(t, "float") && (vt.inlineBlockNeedsLayout && "inline" !== I(t.nodeName) ? d.zoom = 1 : d.display = "inline-block")),
n.overflow && (d.overflow = "hidden",
vt.shrinkWrapBlocks() || f.always(function() {
d.overflow = n.overflow[0],
d.overflowX = n.overflow[1],
d.overflowY = n.overflow[2]
}));
for (i in e)
if (r = e[i],
Oe.exec(r)) {
if (delete e[i],
o = o || "toggle" === r,
r === (p ? "hide" : "show")) {
if ("show" !== r || !v || void 0 === v[i])
continue;p = !0
}
h[i] = v && v[i] || mt.style(t, i)
} else
c = void 0;
if (mt.isEmptyObject(h))
"inline" === ("none" === c ? I(t.nodeName) : c) && (d.display = c);
else {
v ? "hidden"in v && (p = v.hidden) : v = mt._data(t, "fxshow", {}),
o && (v.hidden = !p),
p ? mt(t).show() : f.done(function() {
mt(t).hide()
}),
f.done(function() {
var e;
mt._removeData(t, "fxshow");
for (e in h)
mt.style(t, e, h[e])
});
for (i in h)
a = q(p ? v[i] : 0, i, f),
i in v || (v[i] = a.start,
p && (a.end = a.start,
a.start = "width" === i || "height" === i ? 1 : 0))
}
}
function V(t, e) {
var n, i, r, o, a;
for (n in t)
if (i = mt.camelCase(n),
r = e[i],
o = t[n],
mt.isArray(o) && (r = o[1],
o = t[n] = o[0]),
n !== i && (t[i] = o,
delete t[n]),
a = mt.cssHooks[i],
a && "expand"in a) {
o = a.expand(o),
delete t[i];
for (n in o)
n in t || (t[n] = o[n],
e[n] = r)
} else
e[i] = r
}
function Y(t, e, n) {
var i, r, o = 0, a = Y.prefilters.length, s = mt.Deferred().always(function() {
delete u.elem
}), u = function() {
if (r)
return !1;
for (var e = Ae || U(), n = Math.max(0, c.startTime + c.duration - e), i = n / c.duration || 0, o = 1 - i, a = 0, u = c.tweens.length; a < u; a++)
c.tweens[a].run(o);
return s.notifyWith(t, [c, o, n]),
o < 1 && u ? n : (s.resolveWith(t, [c]),
!1)
}
, c = s.promise({
elem: t,
props: mt.extend({}, e),
opts: mt.extend(!0, {
specialEasing: {},
easing: mt.easing._default
}, n),
originalProperties: e,
originalOptions: n,
startTime: Ae || U(),
duration: n.duration,
tweens: [],
createTween: function(e, n) {
var i = mt.Tween(t, c.opts, e, n, c.opts.specialEasing[e] || c.opts.easing);
return c.tweens.push(i),
i
},
stop: function(e) {
var n = 0
, i = e ? c.tweens.length : 0;
if (r)
return this;
for (r = !0; n < i; n++)
c.tweens[n].run(1);
return e ? (s.notifyWith(t, [c, 1, 0]),
s.resolveWith(t, [c, e])) : s.rejectWith(t, [c, e]),
this
}
}), l = c.props;
for (V(l, c.opts.specialEasing); o < a; o++)
if (i = Y.prefilters[o].call(c, t, l, c.opts))
return mt.isFunction(i.stop) && (mt._queueHooks(c.elem, c.opts.queue).stop = mt.proxy(i.stop, i)),
i;
return mt.map(l, q, c),
mt.isFunction(c.opts.start) && c.opts.start.call(t, c),
mt.fx.timer(mt.extend(u, {
elem: t,
anim: c,
queue: c.opts.queue
})),
c.progress(c.opts.progress).done(c.opts.done, c.opts.complete).fail(c.opts.fail).always(c.opts.always)
}
function X(t) {
return mt.attr(t, "class") || ""
}
function G(t) {
return function(e, n) {
"string" != typeof e && (n = e,
e = "*");
var i, r = 0, o = e.toLowerCase().match(jt) || [];
if (mt.isFunction(n))
for (; i = o[r++]; )
"+" === i.charAt(0) ? (i = i.slice(1) || "*",
(t[i] = t[i] || []).unshift(n)) : (t[i] = t[i] || []).push(n)
}
}
function K(t, e, n, i) {
function r(s) {
var u;
return o[s] = !0,
mt.each(t[s] || [], function(t, s) {
var c = s(e, n, i);
return "string" != typeof c || a || o[c] ? a ? !(u = c) : void 0 : (e.dataTypes.unshift(c),
r(c),
!1)
}),
u
}
var o = {}
, a = t === nn;
return r(e.dataTypes[0]) || !o["*"] && r("*")
}
function Z(t, e) {
var n, i, r = mt.ajaxSettings.flatOptions || {};
for (i in e)
void 0 !== e[i] && ((r[i] ? t : n || (n = {}))[i] = e[i]);
return n && mt.extend(!0, t, n),
t
}
function Q(t, e, n) {
for (var i, r, o, a, s = t.contents, u = t.dataTypes; "*" === u[0]; )
u.shift(),
void 0 === r && (r = t.mimeType || e.getResponseHeader("Content-Type"));
if (r)
for (a in s)
if (s[a] && s[a].test(r)) {
u.unshift(a);
break
}
if (u[0]in n)
o = u[0];
else {
for (a in n) {
if (!u[0] || t.converters[a + " " + u[0]]) {
o = a;
break
}
i || (i = a)
}
o = o || i
}
if (o)
return o !== u[0] && u.unshift(o),
n[o]
}
function J(t, e, n, i) {
var r, o, a, s, u, c = {}, l = t.dataTypes.slice();
if (l[1])
for (a in t.converters)
c[a.toLowerCase()] = t.converters[a];
for (o = l.shift(); o; )
if (t.responseFields[o] && (n[t.responseFields[o]] = e),
!u && i && t.dataFilter && (e = t.dataFilter(e, t.dataType)),
u = o,
o = l.shift())
if ("*" === o)
o = u;
else if ("*" !== u && u !== o) {
if (a = c[u + " " + o] || c["* " + o],
!a)
for (r in c)
if (s = r.split(" "),
s[1] === o && (a = c[u + " " + s[0]] || c["* " + s[0]])) {
a === !0 ? a = c[r] : c[r] !== !0 && (o = s[0],
l.unshift(s[1]));
break
}
if (a !== !0)
if (a && t["throws"])
e = a(e);
else
try {
e = a(e)
} catch (f) {
return {
state: "parsererror",
error: a ? f : "No conversion from " + u + " to " + o
}
}
}
return {
state: "success",
data: e
}
}
function tt(t) {
return t.style && t.style.display || mt.css(t, "display")
}
function et(t) {
if (!mt.contains(t.ownerDocument || st, t))
return !0;
for (; t && 1 === t.nodeType; ) {
if ("none" === tt(t) || "hidden" === t.type)
return !0;
t = t.parentNode
}
return !1
}
function nt(t, e, n, i) {
var r;
if (mt.isArray(e))
mt.each(e, function(e, r) {
n || un.test(t) ? i(t, r) : nt(t + "[" + ("object" == typeof r && null != r ? e : "") + "]", r, n, i)
});
else if (n || "object" !== mt.type(e))
i(t, e);
else
for (r in e)
nt(t + "[" + r + "]", e[r], n, i)
}
function it() {
try {
return new n.XMLHttpRequest
} catch (t) {}
}
function rt() {
try {
return new n.ActiveXObject("Microsoft.XMLHTTP")
} catch (t) {}
}
function ot(t) {
return mt.isWindow(t) ? t : 9 === t.nodeType && (t.defaultView || t.parentWindow)
}
var at = []
, st = n.document
, ut = at.slice
, ct = at.concat
, lt = at.push
, ft = at.indexOf
, ht = {}
, dt = ht.toString
, pt = ht.hasOwnProperty
, vt = {}
, gt = "1.12.4"
, mt = function(t, e) {
return new mt.fn.init(t,e)
}
, yt = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g
, bt = /^-ms-/
, wt = /-([\da-z])/gi
, xt = function(t, e) {
return e.toUpperCase()
}
;
mt.fn = mt.prototype = {
jquery: gt,
constructor: mt,
selector: "",
length: 0,
toArray: function() {
return ut.call(this)
},
get: function(t) {
return null != t ? t < 0 ? this[t + this.length] : this[t] : ut.call(this)
},
pushStack: function(t) {
var e = mt.merge(this.constructor(), t);
return e.prevObject = this,
e.context = this.context,
e
},
each: function(t) {
return mt.each(this, t)
},
map: function(t) {
return this.pushStack(mt.map(this, function(e, n) {
return t.call(e, n, e)
}))
},
slice: function() {
return this.pushStack(ut.apply(this, arguments))
},
first: function() {
return this.eq(0)
},
last: function() {
return this.eq(-1)
},
eq: function(t) {
var e = this.length
, n = +t + (t < 0 ? e : 0);
return this.pushStack(n >= 0 && n < e ? [this[n]] : [])
},
end: function() {
return this.prevObject || this.constructor()
},
push: lt,
sort: at.sort,
splice: at.splice
},
mt.extend = mt.fn.extend = function() {
var t, e, n, i, r, o, a = arguments[0] || {}, s = 1, u = arguments.length, c = !1;
for ("boolean" == typeof a && (c = a,
a = arguments[s] || {},
s++),
"object" == typeof a || mt.isFunction(a) || (a = {}),
s === u && (a = this,
s--); s < u; s++)
if (null != (r = arguments[s]))
for (i in r)
t = a[i],
n = r[i],
a !== n && (c && n && (mt.isPlainObject(n) || (e = mt.isArray(n))) ? (e ? (e = !1,
o = t && mt.isArray(t) ? t : []) : o = t && mt.isPlainObject(t) ? t : {},
a[i] = mt.extend(c, o, n)) : void 0 !== n && (a[i] = n));
return a
}
,
mt.extend({
expando: "jQuery" + (gt + Math.random()).replace(/\D/g, ""),
isReady: !0,
error: function(t) {
throw new Error(t)
},
noop: function() {},
isFunction: function(t) {
return "function" === mt.type(t)
},
isArray: Array.isArray || function(t) {
return "array" === mt.type(t)
}
,
isWindow: function(t) {
return null != t && t == t.window
},
isNumeric: function(t) {
var e = t && t.toString();
return !mt.isArray(t) && e - parseFloat(e) + 1 >= 0
},
isEmptyObject: function(t) {
var e;
for (e in t)
return !1;
return !0
},
isPlainObject: function(t) {
var e;
if (!t || "object" !== mt.type(t) || t.nodeType || mt.isWindow(t))
return !1;
try {
if (t.constructor && !pt.call(t, "constructor") && !pt.call(t.constructor.prototype, "isPrototypeOf"))
return !1
} catch (n) {
return !1
}
if (!vt.ownFirst)
for (e in t)
return pt.call(t, e);
for (e in t)
;
return void 0 === e || pt.call(t, e)
},
type: function(t) {
return null == t ? t + "" : "object" == typeof t || "function" == typeof t ? ht[dt.call(t)] || "object" : typeof t
},
globalEval: function(t) {
t && mt.trim(t) && (n.execScript || function(t) {
n.eval.call(n, t)
}
)(t)
},
camelCase: function(t) {
return t.replace(bt, "ms-").replace(wt, xt)
},
nodeName: function(t, e) {
return t.nodeName && t.nodeName.toLowerCase() === e.toLowerCase()
},
each: function(t, e) {
var n, i = 0;
if (a(t))
for (n = t.length; i < n && e.call(t[i], i, t[i]) !== !1; i++)
;
else
for (i in t)
if (e.call(t[i], i, t[i]) === !1)
break;
return t
},
trim: function(t) {
return null == t ? "" : (t + "").replace(yt, "")
},
makeArray: function(t, e) {
var n = e || [];
return null != t && (a(Object(t)) ? mt.merge(n, "string" == typeof t ? [t] : t) : lt.call(n, t)),
n
},
inArray: function(t, e, n) {
var i;
if (e) {
if (ft)
return ft.call(e, t, n);
for (i = e.length,
n = n ? n < 0 ? Math.max(0, i + n) : n : 0; n < i; n++)
if (n in e && e[n] === t)
return n
}
return -1
},
merge: function(t, e) {
for (var n = +e.length, i = 0, r = t.length; i < n; )
t[r++] = e[i++];
if (n !== n)
for (; void 0 !== e[i]; )
t[r++] = e[i++];
return t.length = r,
t
},
grep: function(t, e, n) {
for (var i, r = [], o = 0, a = t.length, s = !n; o < a; o++)
i = !e(t[o], o),
i !== s && r.push(t[o]);
return r
},
map: function(t, e, n) {
var i, r, o = 0, s = [];
if (a(t))
for (i = t.length; o < i; o++)
r = e(t[o], o, n),
null != r && s.push(r);
else
for (o in t)
r = e(t[o], o, n),
null != r && s.push(r);
return ct.apply([], s)
},
guid: 1,
proxy: function(t, e) {
var n, i, r;
if ("string" == typeof e && (r = t[e],
e = t,
t = r),
mt.isFunction(t))
return n = ut.call(arguments, 2),
i = function() {
return t.apply(e || this, n.concat(ut.call(arguments)))
}
,
i.guid = t.guid = t.guid || mt.guid++,
i
},
now: function() {
return +new Date
},
support: vt
}),
"function" == typeof Symbol && (mt.fn[Symbol.iterator] = at[Symbol.iterator]),
mt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function(t, e) {
ht["[object " + e + "]"] = e.toLowerCase()
});
var Tt = /*!
* Sizzle CSS Selector Engine v2.2.1
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-10-17
*/
function(t) {
function e(t, e, n, i) {
var r, o, a, s, u, c, f, d, p = e && e.ownerDocument, v = e ? e.nodeType : 9;
if (n = n || [],
"string" != typeof t || !t || 1 !== v && 9 !== v && 11 !== v)
return n;
if (!i && ((e ? e.ownerDocument || e : B) !== N && O(e),
e = e || N,
I)) {
if (11 !== v && (c = mt.exec(t)))
if (r = c[1]) {
if (9 === v) {
if (!(a = e.getElementById(r)))
return n;
if (a.id === r)
return n.push(a),
n
} else if (p && (a = p.getElementById(r)) && R(e, a) && a.id === r)
return n.push(a),
n
} else {
if (c[2])
return Q.apply(n, e.getElementsByTagName(t)),
n;
if ((r = c[3]) && x.getElementsByClassName && e.getElementsByClassName)
return Q.apply(n, e.getElementsByClassName(r)),
n
}
if (x.qsa && !W[t + " "] && (!L || !L.test(t))) {
if (1 !== v)
p = e,
d = t;
else if ("object" !== e.nodeName.toLowerCase()) {
for ((s = e.getAttribute("id")) ? s = s.replace(bt, "\\$&") : e.setAttribute("id", s = z),
f = C(t),
o = f.length,
u = ht.test(s) ? "#" + s : "[id='" + s + "']"; o--; )
f[o] = u + " " + h(f[o]);
d = f.join(","),
p = yt.test(t) && l(e.parentNode) || e
}
if (d)
try {
return Q.apply(n, p.querySelectorAll(d)),
n
} catch (g) {} finally {
s === z && e.removeAttribute("id")
}
}
}
return D(t.replace(st, "$1"), e, n, i)
}
function n() {
function t(n, i) {
return e.push(n + " ") > T.cacheLength && delete t[e.shift()],
t[n + " "] = i
}
var e = [];
return t
}
function i(t) {
return t[z] = !0,
t
}
function r(t) {
var e = N.createElement("div");
try {
return !!t(e)
} catch (n) {
return !1
} finally {
e.parentNode && e.parentNode.removeChild(e),
e = null
}
}
function o(t, e) {
for (var n = t.split("|"), i = n.length; i--; )
T.attrHandle[n[i]] = e
}
function a(t, e) {
var n = e && t
, i = n && 1 === t.nodeType && 1 === e.nodeType && (~e.sourceIndex || Y) - (~t.sourceIndex || Y);
if (i)
return i;
if (n)
for (; n = n.nextSibling; )
if (n === e)
return -1;
return t ? 1 : -1
}
function s(t) {
return function(e) {
var n = e.nodeName.toLowerCase();
return "input" === n && e.type === t
}
}
function u(t) {
return function(e) {
var n = e.nodeName.toLowerCase();
return ("input" === n || "button" === n) && e.type === t
}
}
function c(t) {
return i(function(e) {
return e = +e,
i(function(n, i) {
for (var r, o = t([], n.length, e), a = o.length; a--; )
n[r = o[a]] && (n[r] = !(i[r] = n[r]))
})
})
}
function l(t) {
return t && "undefined" != typeof t.getElementsByTagName && t
}
function f() {}
function h(t) {
for (var e = 0, n = t.length, i = ""; e < n; e++)
i += t[e].value;
return i
}
function d(t, e, n) {
var i = e.dir
, r = n && "parentNode" === i
, o = U++;
return e.first ? function(e, n, o) {
for (; e = e[i]; )
if (1 === e.nodeType || r)
return t(e, n, o)
}
: function(e, n, a) {
var s, u, c, l = [H, o];
if (a) {
for (; e = e[i]; )
if ((1 === e.nodeType || r) && t(e, n, a))
return !0
} else
for (; e = e[i]; )
if (1 === e.nodeType || r) {
if (c = e[z] || (e[z] = {}),
u = c[e.uniqueID] || (c[e.uniqueID] = {}),
(s = u[i]) && s[0] === H && s[1] === o)
return l[2] = s[2];
if (u[i] = l,
l[2] = t(e, n, a))
return !0
}
}
}
function p(t) {
return t.length > 1 ? function(e, n, i) {
for (var r = t.length; r--; )
if (!t[r](e, n, i))
return !1;
return !0
}
: t[0]
}
function v(t, n, i) {
for (var r = 0, o = n.length; r < o; r++)
e(t, n[r], i);
return i
}
function g(t, e, n, i, r) {
for (var o, a = [], s = 0, u = t.length, c = null != e; s < u; s++)
(o = t[s]) && (n && !n(o, i, r) || (a.push(o),
c && e.push(s)));
return a
}
function m(t, e, n, r, o, a) {
return r && !r[z] && (r = m(r)),
o && !o[z] && (o = m(o, a)),
i(function(i, a, s, u) {
var c, l, f, h = [], d = [], p = a.length, m = i || v(e || "*", s.nodeType ? [s] : s, []), y = !t || !i && e ? m : g(m, h, t, s, u), b = n ? o || (i ? t : p || r) ? [] : a : y;
if (n && n(y, b, s, u),
r)
for (c = g(b, d),
r(c, [], s, u),
l = c.length; l--; )
(f = c[l]) && (b[d[l]] = !(y[d[l]] = f));
if (i) {
if (o || t) {
if (o) {
for (c = [],
l = b.length; l--; )
(f = b[l]) && c.push(y[l] = f);
o(null , b = [], c, u)
}
for (l = b.length; l--; )
(f = b[l]) && (c = o ? tt(i, f) : h[l]) > -1 && (i[c] = !(a[c] = f))
}
} else
b = g(b === a ? b.splice(p, b.length) : b),
o ? o(null , a, b, u) : Q.apply(a, b)
})
}
function y(t) {
for (var e, n, i, r = t.length, o = T.relative[t[0].type], a = o || T.relative[" "], s = o ? 1 : 0, u = d(function(t) {
return t === e
}, a, !0), c = d(function(t) {
return tt(e, t) > -1
}, a, !0), l = [function(t, n, i) {
var r = !o && (i || n !== k) || ((e = n).nodeType ? u(t, n, i) : c(t, n, i));
return e = null ,
r
}
]; s < r; s++)
if (n = T.relative[t[s].type])
l = [d(p(l), n)];
else {
if (n = T.filter[t[s].type].apply(null , t[s].matches),
n[z]) {
for (i = ++s; i < r && !T.relative[t[i].type]; i++)
;
return m(s > 1 && p(l), s > 1 && h(t.slice(0, s - 1).concat({
value: " " === t[s - 2].type ? "*" : ""
})).replace(st, "$1"), n, s < i && y(t.slice(s, i)), i < r && y(t = t.slice(i)), i < r && h(t))
}
l.push(n)
}
return p(l)
}
function b(t, n) {
var r = n.length > 0
, o = t.length > 0
, a = function(i, a, s, u, c) {
var l, f, h, d = 0, p = "0", v = i && [], m = [], y = k, b = i || o && T.find.TAG("*", c), w = H += null == y ? 1 : Math.random() || .1, x = b.length;
for (c && (k = a === N || a || c); p !== x && null != (l = b[p]); p++) {
if (o && l) {
for (f = 0,
a || l.ownerDocument === N || (O(l),
s = !I); h = t[f++]; )
if (h(l, a || N, s)) {
u.push(l);
break
}
c && (H = w)
}
r && ((l = !h && l) && d--,
i && v.push(l))
}
if (d += p,
r && p !== d) {
for (f = 0; h = n[f++]; )
h(v, m, a, s);
if (i) {
if (d > 0)
for (; p--; )
v[p] || m[p] || (m[p] = K.call(u));
m = g(m)
}
Q.apply(u, m),
c && !i && m.length > 0 && d + n.length > 1 && e.uniqueSort(u)
}
return c && (H = w,
k = y),
v
}
;
return r ? i(a) : a
}
var w, x, T, S, _, C, E, D, k, A, M, O, N, j, I, L, F, P, R, z = "sizzle" + 1 * new Date, B = t.document, H = 0, U = 0, $ = n(), q = n(), W = n(), V = function(t, e) {
return t === e && (M = !0),
0
}
, Y = 1 << 31, X = {}.hasOwnProperty, G = [], K = G.pop, Z = G.push, Q = G.push, J = G.slice, tt = function(t, e) {
for (var n = 0, i = t.length; n < i; n++)
if (t[n] === e)
return n;
return -1
}
, et = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", nt = "[\\x20\\t\\r\\n\\f]", it = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", rt = "\\[" + nt + "*(" + it + ")(?:" + nt + "*([*^$|!~]?=)" + nt + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + it + "))|)" + nt + "*\\]", ot = ":(" + it + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + rt + ")*)|.*)\\)|)", at = new RegExp(nt + "+","g"), st = new RegExp("^" + nt + "+|((?:^|[^\\\\])(?:\\\\.)*)" + nt + "+$","g"), ut = new RegExp("^" + nt + "*," + nt + "*"), ct = new RegExp("^" + nt + "*([>+~]|" + nt + ")" + nt + "*"), lt = new RegExp("=" + nt + "*([^\\]'\"]*?)" + nt + "*\\]","g"), ft = new RegExp(ot), ht = new RegExp("^" + it + "$"), dt = {
ID: new RegExp("^#(" + it + ")"),
CLASS: new RegExp("^\\.(" + it + ")"),
TAG: new RegExp("^(" + it + "|[*])"),
ATTR: new RegExp("^" + rt),
PSEUDO: new RegExp("^" + ot),
CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + nt + "*(even|odd|(([+-]|)(\\d*)n|)" + nt + "*(?:([+-]|)" + nt + "*(\\d+)|))" + nt + "*\\)|)","i"),
bool: new RegExp("^(?:" + et + ")$","i"),
needsContext: new RegExp("^" + nt + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + nt + "*((?:-\\d)?\\d*)" + nt + "*\\)|)(?=[^-]|$)","i")
}, pt = /^(?:input|select|textarea|button)$/i, vt = /^h\d$/i, gt = /^[^{]+\{\s*\[native \w/, mt = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, yt = /[+~]/, bt = /'|\\/g, wt = new RegExp("\\\\([\\da-f]{1,6}" + nt + "?|(" + nt + ")|.)","ig"), xt = function(t, e, n) {
var i = "0x" + e - 65536;
return i !== i || n ? e : i < 0 ? String.fromCharCode(i + 65536) : String.fromCharCode(i >> 10 | 55296, 1023 & i | 56320)
}
, Tt = function() {
O()
}
;
try {
Q.apply(G = J.call(B.childNodes), B.childNodes),
G[B.childNodes.length].nodeType
} catch (St) {
Q = {
apply: G.length ? function(t, e) {
Z.apply(t, J.call(e))
}
: function(t, e) {
for (var n = t.length, i = 0; t[n++] = e[i++]; )
;
t.length = n - 1
}
}
}
x = e.support = {},
_ = e.isXML = function(t) {
var e = t && (t.ownerDocument || t).documentElement;
return !!e && "HTML" !== e.nodeName
}
,
O = e.setDocument = function(t) {
var e, n, i = t ? t.ownerDocument || t : B;
return i !== N && 9 === i.nodeType && i.documentElement ? (N = i,
j = N.documentElement,
I = !_(N),
(n = N.defaultView) && n.top !== n && (n.addEventListener ? n.addEventListener("unload", Tt, !1) : n.attachEvent && n.attachEvent("onunload", Tt)),
x.attributes = r(function(t) {
return t.className = "i",
!t.getAttribute("className")
}),
x.getElementsByTagName = r(function(t) {
return t.appendChild(N.createComment("")),
!t.getElementsByTagName("*").length
}),
x.getElementsByClassName = gt.test(N.getElementsByClassName),
x.getById = r(function(t) {
return j.appendChild(t).id = z,
!N.getElementsByName || !N.getElementsByName(z).length
}),
x.getById ? (T.find.ID = function(t, e) {
if ("undefined" != typeof e.getElementById && I) {
var n = e.getElementById(t);
return n ? [n] : []
}
}
,
T.filter.ID = function(t) {
var e = t.replace(wt, xt);
return function(t) {
return t.getAttribute("id") === e
}
}
) : (delete T.find.ID,
T.filter.ID = function(t) {
var e = t.replace(wt, xt);
return function(t) {
var n = "undefined" != typeof t.getAttributeNode && t.getAttributeNode("id");
return n && n.value === e
}
}
),
T.find.TAG = x.getElementsByTagName ? function(t, e) {
return "undefined" != typeof e.getElementsByTagName ? e.getElementsByTagName(t) : x.qsa ? e.querySelectorAll(t) : void 0
}
: function(t, e) {
var n, i = [], r = 0, o = e.getElementsByTagName(t);
if ("*" === t) {
for (; n = o[r++]; )
1 === n.nodeType && i.push(n);
return i
}
return o
}
,
T.find.CLASS = x.getElementsByClassName && function(t, e) {
if ("undefined" != typeof e.getElementsByClassName && I)
return e.getElementsByClassName(t)
}
,
F = [],
L = [],
(x.qsa = gt.test(N.querySelectorAll)) && (r(function(t) {
j.appendChild(t).innerHTML = "<a id='" + z + "'></a><select id='" + z + "-\r\\' msallowcapture=''><option selected=''></option></select>",
t.querySelectorAll("[msallowcapture^='']").length && L.push("[*^$]=" + nt + "*(?:''|\"\")"),
t.querySelectorAll("[selected]").length || L.push("\\[" + nt + "*(?:value|" + et + ")"),
t.querySelectorAll("[id~=" + z + "-]").length || L.push("~="),
t.querySelectorAll(":checked").length || L.push(":checked"),
t.querySelectorAll("a#" + z + "+*").length || L.push(".#.+[+~]")
}),
r(function(t) {
var e = N.createElement("input");
e.setAttribute("type", "hidden"),
t.appendChild(e).setAttribute("name", "D"),
t.querySelectorAll("[name=d]").length && L.push("name" + nt + "*[*^$|!~]?="),
t.querySelectorAll(":enabled").length || L.push(":enabled", ":disabled"),
t.querySelectorAll("*,:x"),
L.push(",.*:")
})),
(x.matchesSelector = gt.test(P = j.matches || j.webkitMatchesSelector || j.mozMatchesSelector || j.oMatchesSelector || j.msMatchesSelector)) && r(function(t) {
x.disconnectedMatch = P.call(t, "div"),
P.call(t, "[s!='']:x"),
F.push("!=", ot)
}),
L = L.length && new RegExp(L.join("|")),
F = F.length && new RegExp(F.join("|")),
e = gt.test(j.compareDocumentPosition),
R = e || gt.test(j.contains) ? function(t, e) {
var n = 9 === t.nodeType ? t.documentElement : t
, i = e && e.parentNode;
return t === i || !(!i || 1 !== i.nodeType || !(n.contains ? n.contains(i) : t.compareDocumentPosition && 16 & t.compareDocumentPosition(i)))
}
: function(t, e) {
if (e)
for (; e = e.parentNode; )
if (e === t)
return !0;
return !1
}
,
V = e ? function(t, e) {
if (t === e)
return M = !0,
0;
var n = !t.compareDocumentPosition - !e.compareDocumentPosition;
return n ? n : (n = (t.ownerDocument || t) === (e.ownerDocument || e) ? t.compareDocumentPosition(e) : 1,
1 & n || !x.sortDetached && e.compareDocumentPosition(t) === n ? t === N || t.ownerDocument === B && R(B, t) ? -1 : e === N || e.ownerDocument === B && R(B, e) ? 1 : A ? tt(A, t) - tt(A, e) : 0 : 4 & n ? -1 : 1)
}
: function(t, e) {
if (t === e)
return M = !0,
0;
var n, i = 0, r = t.parentNode, o = e.parentNode, s = [t], u = [e];
if (!r || !o)
return t === N ? -1 : e === N ? 1 : r ? -1 : o ? 1 : A ? tt(A, t) - tt(A, e) : 0;
if (r === o)
return a(t, e);
for (n = t; n = n.parentNode; )
s.unshift(n);
for (n = e; n = n.parentNode; )
u.unshift(n);
for (; s[i] === u[i]; )
i++;
return i ? a(s[i], u[i]) : s[i] === B ? -1 : u[i] === B ? 1 : 0
}
,
N) : N
}
,
e.matches = function(t, n) {
return e(t, null , null , n)
}
,
e.matchesSelector = function(t, n) {
if ((t.ownerDocument || t) !== N && O(t),
n = n.replace(lt, "='$1']"),
x.matchesSelector && I && !W[n + " "] && (!F || !F.test(n)) && (!L || !L.test(n)))
try {
var i = P.call(t, n);
if (i || x.disconnectedMatch || t.document && 11 !== t.document.nodeType)
return i
} catch (r) {}
return e(n, N, null , [t]).length > 0
}
,
e.contains = function(t, e) {
return (t.ownerDocument || t) !== N && O(t),
R(t, e)
}
,
e.attr = function(t, e) {
(t.ownerDocument || t) !== N && O(t);
var n = T.attrHandle[e.toLowerCase()]
, i = n && X.call(T.attrHandle, e.toLowerCase()) ? n(t, e, !I) : void 0;
return void 0 !== i ? i : x.attributes || !I ? t.getAttribute(e) : (i = t.getAttributeNode(e)) && i.specified ? i.value : null
}
,
e.error = function(t) {
throw new Error("Syntax error, unrecognized expression: " + t)
}
,
e.uniqueSort = function(t) {
var e, n = [], i = 0, r = 0;
if (M = !x.detectDuplicates,
A = !x.sortStable && t.slice(0),
t.sort(V),
M) {
for (; e = t[r++]; )
e === t[r] && (i = n.push(r));
for (; i--; )
t.splice(n[i], 1)
}
return A = null ,
t
}
,
S = e.getText = function(t) {
var e, n = "", i = 0, r = t.nodeType;
if (r) {
if (1 === r || 9 === r || 11 === r) {
if ("string" == typeof t.textContent)
return t.textContent;
for (t = t.firstChild; t; t = t.nextSibling)
n += S(t)
} else if (3 === r || 4 === r)
return t.nodeValue
} else
for (; e = t[i++]; )
n += S(e);
return n
}
,
T = e.selectors = {
cacheLength: 50,
createPseudo: i,
match: dt,
attrHandle: {},
find: {},
relative: {
">": {
dir: "parentNode",
first: !0
},
" ": {
dir: "parentNode"
},
"+": {
dir: "previousSibling",
first: !0
},
"~": {
dir: "previousSibling"
}
},
preFilter: {
ATTR: function(t) {
return t[1] = t[1].replace(wt, xt),
t[3] = (t[3] || t[4] || t[5] || "").replace(wt, xt),
"~=" === t[2] && (t[3] = " " + t[3] + " "),
t.slice(0, 4)
},
CHILD: function(t) {
return t[1] = t[1].toLowerCase(),
"nth" === t[1].slice(0, 3) ? (t[3] || e.error(t[0]),
t[4] = +(t[4] ? t[5] + (t[6] || 1) : 2 * ("even" === t[3] || "odd" === t[3])),
t[5] = +(t[7] + t[8] || "odd" === t[3])) : t[3] && e.error(t[0]),
t
},
PSEUDO: function(t) {
var e, n = !t[6] && t[2];
return dt.CHILD.test(t[0]) ? null : (t[3] ? t[2] = t[4] || t[5] || "" : n && ft.test(n) && (e = C(n, !0)) && (e = n.indexOf(")", n.length - e) - n.length) && (t[0] = t[0].slice(0, e),
t[2] = n.slice(0, e)),
t.slice(0, 3))
}
},
filter: {
TAG: function(t) {
var e = t.replace(wt, xt).toLowerCase();
return "*" === t ? function() {
return !0
}
: function(t) {
return t.nodeName && t.nodeName.toLowerCase() === e
}
},
CLASS: function(t) {
var e = $[t + " "];
return e || (e = new RegExp("(^|" + nt + ")" + t + "(" + nt + "|$)")) && $(t, function(t) {
return e.test("string" == typeof t.className && t.className || "undefined" != typeof t.getAttribute && t.getAttribute("class") || "")
})
},
ATTR: function(t, n, i) {
return function(r) {
var o = e.attr(r, t);
return null == o ? "!=" === n : !n || (o += "",
"=" === n ? o === i : "!=" === n ? o !== i : "^=" === n ? i && 0 === o.indexOf(i) : "*=" === n ? i && o.indexOf(i) > -1 : "$=" === n ? i && o.slice(-i.length) === i : "~=" === n ? (" " + o.replace(at, " ") + " ").indexOf(i) > -1 : "|=" === n && (o === i || o.slice(0, i.length + 1) === i + "-"))
}
},
CHILD: function(t, e, n, i, r) {
var o = "nth" !== t.slice(0, 3)
, a = "last" !== t.slice(-4)
, s = "of-type" === e;
return 1 === i && 0 === r ? function(t) {
return !!t.parentNode
}
: function(e, n, u) {
var c, l, f, h, d, p, v = o !== a ? "nextSibling" : "previousSibling", g = e.parentNode, m = s && e.nodeName.toLowerCase(), y = !u && !s, b = !1;
if (g) {
if (o) {
for (; v; ) {
for (h = e; h = h[v]; )
if (s ? h.nodeName.toLowerCase() === m : 1 === h.nodeType)
return !1;
p = v = "only" === t && !p && "nextSibling"
}
return !0
}
if (p = [a ? g.firstChild : g.lastChild],
a && y) {
for (h = g,
f = h[z] || (h[z] = {}),
l = f[h.uniqueID] || (f[h.uniqueID] = {}),
c = l[t] || [],
d = c[0] === H && c[1],
b = d && c[2],
h = d && g.childNodes[d]; h = ++d && h && h[v] || (b = d = 0) || p.pop(); )
if (1 === h.nodeType && ++b && h === e) {
l[t] = [H, d, b];
break
}
} else if (y && (h = e,
f = h[z] || (h[z] = {}),
l = f[h.uniqueID] || (f[h.uniqueID] = {}),
c = l[t] || [],
d = c[0] === H && c[1],
b = d),
b === !1)
for (; (h = ++d && h && h[v] || (b = d = 0) || p.pop()) && ((s ? h.nodeName.toLowerCase() !== m : 1 !== h.nodeType) || !++b || (y && (f = h[z] || (h[z] = {}),
l = f[h.uniqueID] || (f[h.uniqueID] = {}),
l[t] = [H, b]),
h !== e)); )
;
return b -= r,
b === i || b % i === 0 && b / i >= 0
}
}
},
PSEUDO: function(t, n) {
var r, o = T.pseudos[t] || T.setFilters[t.toLowerCase()] || e.error("unsupported pseudo: " + t);
return o[z] ? o(n) : o.length > 1 ? (r = [t, t, "", n],
T.setFilters.hasOwnProperty(t.toLowerCase()) ? i(function(t, e) {
for (var i, r = o(t, n), a = r.length; a--; )
i = tt(t, r[a]),
t[i] = !(e[i] = r[a])
}) : function(t) {
return o(t, 0, r)
}
) : o
}
},
pseudos: {
not: i(function(t) {
var e = []
, n = []
, r = E(t.replace(st, "$1"));
return r[z] ? i(function(t, e, n, i) {
for (var o, a = r(t, null , i, []), s = t.length; s--; )
(o = a[s]) && (t[s] = !(e[s] = o))
}) : function(t, i, o) {
return e[0] = t,
r(e, null , o, n),
e[0] = null ,
!n.pop()
}
}),
has: i(function(t) {
return function(n) {
return e(t, n).length > 0
}
}),
contains: i(function(t) {
return t = t.replace(wt, xt),
function(e) {
return (e.textContent || e.innerText || S(e)).indexOf(t) > -1
}
}),
lang: i(function(t) {
return ht.test(t || "") || e.error("unsupported lang: " + t),
t = t.replace(wt, xt).toLowerCase(),
function(e) {
var n;
do
if (n = I ? e.lang : e.getAttribute("xml:lang") || e.getAttribute("lang"))
return n = n.toLowerCase(),
n === t || 0 === n.indexOf(t + "-");
while ((e = e.parentNode) && 1 === e.nodeType);return !1
}
}),
target: function(e) {
var n = t.location && t.location.hash;
return n && n.slice(1) === e.id
},
root: function(t) {
return t === j
},
focus: function(t) {
return t === N.activeElement && (!N.hasFocus || N.hasFocus()) && !!(t.type || t.href || ~t.tabIndex)
},
enabled: function(t) {
return t.disabled === !1
},
disabled: function(t) {
return t.disabled === !0
},
checked: function(t) {
var e = t.nodeName.toLowerCase();
return "input" === e && !!t.checked || "option" === e && !!t.selected
},
selected: function(t) {
return t.parentNode && t.parentNode.selectedIndex,
t.selected === !0
},
empty: function(t) {
for (t = t.firstChild; t; t = t.nextSibling)
if (t.nodeType < 6)
return !1;
return !0
},
parent: function(t) {
return !T.pseudos.empty(t)
},
header: function(t) {
return vt.test(t.nodeName)
},
input: function(t) {
return pt.test(t.nodeName)
},
button: function(t) {
var e = t.nodeName.toLowerCase();
return "input" === e && "button" === t.type || "button" === e
},
text: function(t) {
var e;
return "input" === t.nodeName.toLowerCase() && "text" === t.type && (null == (e = t.getAttribute("type")) || "text" === e.toLowerCase())
},
first: c(function() {
return [0]
}),
last: c(function(t, e) {
return [e - 1]
}),
eq: c(function(t, e, n) {
return [n < 0 ? n + e : n]
}),
even: c(function(t, e) {
for (var n = 0; n < e; n += 2)
t.push(n);
return t
}),
odd: c(function(t, e) {
for (var n = 1; n < e; n += 2)
t.push(n);
return t
}),
lt: c(function(t, e, n) {
for (var i = n < 0 ? n + e : n; --i >= 0; )
t.push(i);
return t
}),
gt: c(function(t, e, n) {
for (var i = n < 0 ? n + e : n; ++i < e; )
t.push(i);
return t
})
}
},
T.pseudos.nth = T.pseudos.eq;
for (w in {
radio: !0,
checkbox: !0,
file: !0,
password: !0,
image: !0
})
T.pseudos[w] = s(w);
for (w in {
submit: !0,
reset: !0
})
T.pseudos[w] = u(w);
return f.prototype = T.filters = T.pseudos,
T.setFilters = new f,
C = e.tokenize = function(t, n) {
var i, r, o, a, s, u, c, l = q[t + " "];
if (l)
return n ? 0 : l.slice(0);
for (s = t,
u = [],
c = T.preFilter; s; ) {
i && !(r = ut.exec(s)) || (r && (s = s.slice(r[0].length) || s),
u.push(o = [])),
i = !1,
(r = ct.exec(s)) && (i = r.shift(),
o.push({
value: i,
type: r[0].replace(st, " ")
}),
s = s.slice(i.length));
for (a in T.filter)
!(r = dt[a].exec(s)) || c[a] && !(r = c[a](r)) || (i = r.shift(),
o.push({
value: i,
type: a,
matches: r
}),
s = s.slice(i.length));
if (!i)
break
}
return n ? s.length : s ? e.error(t) : q(t, u).slice(0)
}
,
E = e.compile = function(t, e) {
var n, i = [], r = [], o = W[t + " "];
if (!o) {
for (e || (e = C(t)),
n = e.length; n--; )
o = y(e[n]),
o[z] ? i.push(o) : r.push(o);
o = W(t, b(r, i)),
o.selector = t
}
return o
}
,
D = e.select = function(t, e, n, i) {
var r, o, a, s, u, c = "function" == typeof t && t, f = !i && C(t = c.selector || t);
if (n = n || [],
1 === f.length) {
if (o = f[0] = f[0].slice(0),
o.length > 2 && "ID" === (a = o[0]).type && x.getById && 9 === e.nodeType && I && T.relative[o[1].type]) {
if (e = (T.find.ID(a.matches[0].replace(wt, xt), e) || [])[0],
!e)
return n;
c && (e = e.parentNode),
t = t.slice(o.shift().value.length)
}
for (r = dt.needsContext.test(t) ? 0 : o.length; r-- && (a = o[r],
!T.relative[s = a.type]); )
if ((u = T.find[s]) && (i = u(a.matches[0].replace(wt, xt), yt.test(o[0].type) && l(e.parentNode) || e))) {
if (o.splice(r, 1),
t = i.length && h(o),
!t)
return Q.apply(n, i),
n;
break
}
}
return (c || E(t, f))(i, e, !I, n, !e || yt.test(t) && l(e.parentNode) || e),
n
}
,
x.sortStable = z.split("").sort(V).join("") === z,
x.detectDuplicates = !!M,
O(),
x.sortDetached = r(function(t) {
return 1 & t.compareDocumentPosition(N.createElement("div"))
}),
r(function(t) {
return t.innerHTML = "<a href='#'></a>",
"#" === t.firstChild.getAttribute("href")
}) || o("type|href|height|width", function(t, e, n) {
if (!n)
return t.getAttribute(e, "type" === e.toLowerCase() ? 1 : 2)
}),
x.attributes && r(function(t) {
return t.innerHTML = "<input/>",
t.firstChild.setAttribute("value", ""),
"" === t.firstChild.getAttribute("value")
}) || o("value", function(t, e, n) {
if (!n && "input" === t.nodeName.toLowerCase())
return t.defaultValue
}),
r(function(t) {
return null == t.getAttribute("disabled")
}) || o(et, function(t, e, n) {
var i;
if (!n)
return t[e] === !0 ? e.toLowerCase() : (i = t.getAttributeNode(e)) && i.specified ? i.value : null
}),
e
}(n);
mt.find = Tt,
mt.expr = Tt.selectors,
mt.expr[":"] = mt.expr.pseudos,
mt.uniqueSort = mt.unique = Tt.uniqueSort,
mt.text = Tt.getText,
mt.isXMLDoc = Tt.isXML,
mt.contains = Tt.contains;
var St = function(t, e, n) {
for (var i = [], r = void 0 !== n; (t = t[e]) && 9 !== t.nodeType; )
if (1 === t.nodeType) {
if (r && mt(t).is(n))
break;
i.push(t)
}
return i
}
, _t = function(t, e) {
for (var n = []; t; t = t.nextSibling)
1 === t.nodeType && t !== e && n.push(t);
return n
}
, Ct = mt.expr.match.needsContext
, Et = /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/
, Dt = /^.[^:#\[\.,]*$/;
mt.filter = function(t, e, n) {
var i = e[0];
return n && (t = ":not(" + t + ")"),
1 === e.length && 1 === i.nodeType ? mt.find.matchesSelector(i, t) ? [i] : [] : mt.find.matches(t, mt.grep(e, function(t) {
return 1 === t.nodeType
}))
}
,
mt.fn.extend({
find: function(t) {
var e, n = [], i = this, r = i.length;
if ("string" != typeof t)
return this.pushStack(mt(t).filter(function() {
for (e = 0; e < r; e++)
if (mt.contains(i[e], this))
return !0
}));
for (e = 0; e < r; e++)
mt.find(t, i[e], n);
return n = this.pushStack(r > 1 ? mt.unique(n) : n),
n.selector = this.selector ? this.selector + " " + t : t,
n
},
filter: function(t) {
return this.pushStack(s(this, t || [], !1))
},
not: function(t) {
return this.pushStack(s(this, t || [], !0))
},
is: function(t) {
return !!s(this, "string" == typeof t && Ct.test(t) ? mt(t) : t || [], !1).length
}
});
var kt, At = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, Mt = mt.fn.init = function(t, e, n) {
var i, r;
if (!t)
return this;
if (n = n || kt,
"string" == typeof t) {
if (i = "<" === t.charAt(0) && ">" === t.charAt(t.length - 1) && t.length >= 3 ? [null , t, null ] : At.exec(t),
!i || !i[1] && e)
return !e || e.jquery ? (e || n).find(t) : this.constructor(e).find(t);
if (i[1]) {
if (e = e instanceof mt ? e[0] : e,
mt.merge(this, mt.parseHTML(i[1], e && e.nodeType ? e.ownerDocument || e : st, !0)),
Et.test(i[1]) && mt.isPlainObject(e))
for (i in e)
mt.isFunction(this[i]) ? this[i](e[i]) : this.attr(i, e[i]);
return this
}
if (r = st.getElementById(i[2]),
r && r.parentNode) {
if (r.id !== i[2])
return kt.find(t);
this.length = 1,
this[0] = r
}
return this.context = st,
this.selector = t,
this
}
return t.nodeType ? (this.context = this[0] = t,
this.length = 1,
this) : mt.isFunction(t) ? "undefined" != typeof n.ready ? n.ready(t) : t(mt) : (void 0 !== t.selector && (this.selector = t.selector,
this.context = t.context),
mt.makeArray(t, this))
}
;
Mt.prototype = mt.fn,
kt = mt(st);
var Ot = /^(?:parents|prev(?:Until|All))/
, Nt = {
children: !0,
contents: !0,
next: !0,
prev: !0
};
mt.fn.extend({
has: function(t) {
var e, n = mt(t, this), i = n.length;
return this.filter(function() {
for (e = 0; e < i; e++)
if (mt.contains(this, n[e]))
return !0
})
},
closest: function(t, e) {
for (var n, i = 0, r = this.length, o = [], a = Ct.test(t) || "string" != typeof t ? mt(t, e || this.context) : 0; i < r; i++)
for (n = this[i]; n && n !== e; n = n.parentNode)
if (n.nodeType < 11 && (a ? a.index(n) > -1 : 1 === n.nodeType && mt.find.matchesSelector(n, t))) {
o.push(n);
break
}
return this.pushStack(o.length > 1 ? mt.uniqueSort(o) : o)
},
index: function(t) {
return t ? "string" == typeof t ? mt.inArray(this[0], mt(t)) : mt.inArray(t.jquery ? t[0] : t, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
},
add: function(t, e) {
return this.pushStack(mt.uniqueSort(mt.merge(this.get(), mt(t, e))))
},
addBack: function(t) {
return this.add(null == t ? this.prevObject : this.prevObject.filter(t))
}
}),
mt.each({
parent: function(t) {
var e = t.parentNode;
return e && 11 !== e.nodeType ? e : null
},
parents: function(t) {
return St(t, "parentNode")
},
parentsUntil: function(t, e, n) {
return St(t, "parentNode", n)
},
next: function(t) {
return u(t, "nextSibling")
},
prev: function(t) {
return u(t, "previousSibling")
},
nextAll: function(t) {
return St(t, "nextSibling")
},
prevAll: function(t) {
return St(t, "previousSibling")
},
nextUntil: function(t, e, n) {
return St(t, "nextSibling", n)
},
prevUntil: function(t, e, n) {
return St(t, "previousSibling", n)
},
siblings: function(t) {
return _t((t.parentNode || {}).firstChild, t)
},
children: function(t) {
return _t(t.firstChild)
},
contents: function(t) {
return mt.nodeName(t, "iframe") ? t.contentDocument || t.contentWindow.document : mt.merge([], t.childNodes)
}
}, function(t, e) {
mt.fn[t] = function(n, i) {
var r = mt.map(this, e, n);
return "Until" !== t.slice(-5) && (i = n),
i && "string" == typeof i && (r = mt.filter(i, r)),
this.length > 1 && (Nt[t] || (r = mt.uniqueSort(r)),
Ot.test(t) && (r = r.reverse())),
this.pushStack(r)
}
});
var jt = /\S+/g;
mt.Callbacks = function(t) {
t = "string" == typeof t ? c(t) : mt.extend({}, t);
var e, n, i, r, o = [], a = [], s = -1, u = function() {
for (r = t.once,
i = e = !0; a.length; s = -1)
for (n = a.shift(); ++s < o.length; )
o[s].apply(n[0], n[1]) === !1 && t.stopOnFalse && (s = o.length,
n = !1);
t.memory || (n = !1),
e = !1,
r && (o = n ? [] : "")
}
, l = {
add: function() {
return o && (n && !e && (s = o.length - 1,
a.push(n)),
function i(e) {
mt.each(e, function(e, n) {
mt.isFunction(n) ? t.unique && l.has(n) || o.push(n) : n && n.length && "string" !== mt.type(n) && i(n)
})
}(arguments),
n && !e && u()),
this
},
remove: function() {
return mt.each(arguments, function(t, e) {
for (var n; (n = mt.inArray(e, o, n)) > -1; )
o.splice(n, 1),
n <= s && s--
}),
this
},
has: function(t) {
return t ? mt.inArray(t, o) > -1 : o.length > 0
},
empty: function() {
return o && (o = []),
this
},
disable: function() {
return r = a = [],
o = n = "",
this
},
disabled: function() {
return !o
},
lock: function() {
return r = !0,
n || l.disable(),
this
},
locked: function() {
return !!r
},
fireWith: function(t, n) {
return r || (n = n || [],
n = [t, n.slice ? n.slice() : n],
a.push(n),
e || u()),
this
},
fire: function() {
return l.fireWith(this, arguments),
this
},
fired: function() {
return !!i
}
};
return l
}
,
mt.extend({
Deferred: function(t) {
var e = [["resolve", "done", mt.Callbacks("once memory"), "resolved"], ["reject", "fail", mt.Callbacks("once memory"), "rejected"], ["notify", "progress", mt.Callbacks("memory")]]
, n = "pending"
, i = {
state: function() {
return n
},
always: function() {
return r.done(arguments).fail(arguments),
this
},
then: function() {
var t = arguments;
return mt.Deferred(function(n) {
mt.each(e, function(e, o) {
var a = mt.isFunction(t[e]) && t[e];
r[o[1]](function() {
var t = a && a.apply(this, arguments);
t && mt.isFunction(t.promise) ? t.promise().progress(n.notify).done(n.resolve).fail(n.reject) : n[o[0] + "With"](this === i ? n.promise() : this, a ? [t] : arguments)
})
}),
t = null
}).promise()
},
promise: function(t) {
return null != t ? mt.extend(t, i) : i
}
}
, r = {};
return i.pipe = i.then,
mt.each(e, function(t, o) {
var a = o[2]
, s = o[3];
i[o[1]] = a.add,
s && a.add(function() {
n = s
}, e[1 ^ t][2].disable, e[2][2].lock),
r[o[0]] = function() {
return r[o[0] + "With"](this === r ? i : this, arguments),
this
}
,
r[o[0] + "With"] = a.fireWith
}),
i.promise(r),
t && t.call(r, r),
r
},
when: function(t) {
var e, n, i, r = 0, o = ut.call(arguments), a = o.length, s = 1 !== a || t && mt.isFunction(t.promise) ? a : 0, u = 1 === s ? t : mt.Deferred(), c = function(t, n, i) {
return function(r) {
n[t] = this,
i[t] = arguments.length > 1 ? ut.call(arguments) : r,
i === e ? u.notifyWith(n, i) : --s || u.resolveWith(n, i)
}
}
;
if (a > 1)
for (e = new Array(a),
n = new Array(a),
i = new Array(a); r < a; r++)
o[r] && mt.isFunction(o[r].promise) ? o[r].promise().progress(c(r, n, e)).done(c(r, i, o)).fail(u.reject) : --s;
return s || u.resolveWith(i, o),
u.promise()
}
});
var It;
mt.fn.ready = function(t) {
return mt.ready.promise().done(t),
this
}
,
mt.extend({
isReady: !1,
readyWait: 1,
holdReady: function(t) {
t ? mt.readyWait++ : mt.ready(!0)
},
ready: function(t) {
(t === !0 ? --mt.readyWait : mt.isReady) || (mt.isReady = !0,
t !== !0 && --mt.readyWait > 0 || (It.resolveWith(st, [mt]),
mt.fn.triggerHandler && (mt(st).triggerHandler("ready"),
mt(st).off("ready"))))
}
}),
mt.ready.promise = function(t) {
if (!It)
if (It = mt.Deferred(),
"complete" === st.readyState || "loading" !== st.readyState && !st.documentElement.doScroll)
n.setTimeout(mt.ready);
else if (st.addEventListener)
st.addEventListener("DOMContentLoaded", f),
n.addEventListener("load", f);
else {
st.attachEvent("onreadystatechange", f),
n.attachEvent("onload", f);
var e = !1;
try {
e = null == n.frameElement && st.documentElement
} catch (i) {}
e && e.doScroll && !function r() {
if (!mt.isReady) {
try {
e.doScroll("left")
} catch (t) {
return n.setTimeout(r, 50)
}
l(),
mt.ready()
}
}()
}
return It.promise(t)
}
,
mt.ready.promise();
var Lt;
for (Lt in mt(vt))
break;
vt.ownFirst = "0" === Lt,
vt.inlineBlockNeedsLayout = !1,
mt(function() {
var t, e, n, i;
n = st.getElementsByTagName("body")[0],
n && n.style && (e = st.createElement("div"),
i = st.createElement("div"),
i.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px",
n.appendChild(i).appendChild(e),
"undefined" != typeof e.style.zoom && (e.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",
vt.inlineBlockNeedsLayout = t = 3 === e.offsetWidth,
t && (n.style.zoom = 1)),
n.removeChild(i))
}),
function() {
var t = st.createElement("div");
vt.deleteExpando = !0;
try {
delete t.test
} catch (e) {
vt.deleteExpando = !1
}
t = null
}();
var Ft = function(t) {
var e = mt.noData[(t.nodeName + " ").toLowerCase()]
, n = +t.nodeType || 1;
return (1 === n || 9 === n) && (!e || e !== !0 && t.getAttribute("classid") === e)
}
, Pt = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/
, Rt = /([A-Z])/g;
mt.extend({
cache: {},
noData: {
"applet ": !0,
"embed ": !0,
"object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
},
hasData: function(t) {
return t = t.nodeType ? mt.cache[t[mt.expando]] : t[mt.expando],
!!t && !d(t)
},
data: function(t, e, n) {
return p(t, e, n)
},
removeData: function(t, e) {
return v(t, e)
},
_data: function(t, e, n) {
return p(t, e, n, !0)
},
_removeData: function(t, e) {
return v(t, e, !0)
}
}),
mt.fn.extend({
data: function(t, e) {
var n, i, r, o = this[0], a = o && o.attributes;
if (void 0 === t) {
if (this.length && (r = mt.data(o),
1 === o.nodeType && !mt._data(o, "parsedAttrs"))) {
for (n = a.length; n--; )
a[n] && (i = a[n].name,
0 === i.indexOf("data-") && (i = mt.camelCase(i.slice(5)),
h(o, i, r[i])));
mt._data(o, "parsedAttrs", !0)
}
return r
}
return "object" == typeof t ? this.each(function() {
mt.data(this, t)
}) : arguments.length > 1 ? this.each(function() {
mt.data(this, t, e)
}) : o ? h(o, t, mt.data(o, t)) : void 0
},
removeData: function(t) {
return this.each(function() {
mt.removeData(this, t)
})
}
}),
mt.extend({
queue: function(t, e, n) {
var i;
if (t)
return e = (e || "fx") + "queue",
i = mt._data(t, e),
n && (!i || mt.isArray(n) ? i = mt._data(t, e, mt.makeArray(n)) : i.push(n)),
i || []
},
dequeue: function(t, e) {
e = e || "fx";
var n = mt.queue(t, e)
, i = n.length
, r = n.shift()
, o = mt._queueHooks(t, e)
, a = function() {
mt.dequeue(t, e)
}
;
"inprogress" === r && (r = n.shift(),
i--),
r && ("fx" === e && n.unshift("inprogress"),
delete o.stop,
r.call(t, a, o)),
!i && o && o.empty.fire()
},
_queueHooks: function(t, e) {
var n = e + "queueHooks";
return mt._data(t, n) || mt._data(t, n, {
empty: mt.Callbacks("once memory").add(function() {
mt._removeData(t, e + "queue"),
mt._removeData(t, n)
})
})
}
}),
mt.fn.extend({
queue: function(t, e) {
var n = 2;
return "string" != typeof t && (e = t,
t = "fx",
n--),
arguments.length < n ? mt.queue(this[0], t) : void 0 === e ? this : this.each(function() {
var n = mt.queue(this, t, e);
mt._queueHooks(this, t),
"fx" === t && "inprogress" !== n[0] && mt.dequeue(this, t)
})
},
dequeue: function(t) {
return this.each(function() {
mt.dequeue(this, t)
})
},
clearQueue: function(t) {
return this.queue(t || "fx", [])
},
promise: function(t, e) {
var n, i = 1, r = mt.Deferred(), o = this, a = this.length, s = function() {
--i || r.resolveWith(o, [o])
}
;
for ("string" != typeof t && (e = t,
t = void 0),
t = t || "fx"; a--; )
n = mt._data(o[a], t + "queueHooks"),
n && n.empty && (i++,
n.empty.add(s));
return s(),
r.promise(e)
}
}),
function() {
var t;
vt.shrinkWrapBlocks = function() {
if (null != t)
return t;
t = !1;
var e, n, i;
return n = st.getElementsByTagName("body")[0],
n && n.style ? (e = st.createElement("div"),
i = st.createElement("div"),
i.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px",
n.appendChild(i).appendChild(e),
"undefined" != typeof e.style.zoom && (e.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",
e.appendChild(st.createElement("div")).style.width = "5px",
t = 3 !== e.offsetWidth),
n.removeChild(i),
t) : void 0
}
}();
var zt = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source
, Bt = new RegExp("^(?:([+-])=|)(" + zt + ")([a-z%]*)$","i")
, Ht = ["Top", "Right", "Bottom", "Left"]
, Ut = function(t, e) {
return t = e || t,
"none" === mt.css(t, "display") || !mt.contains(t.ownerDocument, t)
}
, $t = function(t, e, n, i, r, o, a) {
var s = 0
, u = t.length
, c = null == n;
if ("object" === mt.type(n)) {
r = !0;
for (s in n)
$t(t, e, s, n[s], !0, o, a)
} else if (void 0 !== i && (r = !0,
mt.isFunction(i) || (a = !0),
c && (a ? (e.call(t, i),
e = null ) : (c = e,
e = function(t, e, n) {
return c.call(mt(t), n)
}
)),
e))
for (; s < u; s++)
e(t[s], n, a ? i : i.call(t[s], s, e(t[s], n)));
return r ? t : c ? e.call(t) : u ? e(t[0], n) : o
}
, qt = /^(?:checkbox|radio)$/i
, Wt = /<([\w:-]+)/
, Vt = /^$|\/(?:java|ecma)script/i
, Yt = /^\s+/
, Xt = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";
!function() {
var t = st.createElement("div")
, e = st.createDocumentFragment()
, n = st.createElement("input");
t.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",
vt.leadingWhitespace = 3 === t.firstChild.nodeType,
vt.tbody = !t.getElementsByTagName("tbody").length,
vt.htmlSerialize = !!t.getElementsByTagName("link").length,
vt.html5Clone = "<:nav></:nav>" !== st.createElement("nav").cloneNode(!0).outerHTML,
n.type = "checkbox",
n.checked = !0,
e.appendChild(n),
vt.appendChecked = n.checked,
t.innerHTML = "<textarea>x</textarea>",
vt.noCloneChecked = !!t.cloneNode(!0).lastChild.defaultValue,
e.appendChild(t),
n = st.createElement("input"),
n.setAttribute("type", "radio"),
n.setAttribute("checked", "checked"),
n.setAttribute("name", "t"),
t.appendChild(n),
vt.checkClone = t.cloneNode(!0).cloneNode(!0).lastChild.checked,
vt.noCloneEvent = !!t.addEventListener,
t[mt.expando] = 1,
vt.attributes = !t.getAttribute(mt.expando)
}();
var Gt = {
option: [1, "<select multiple='multiple'>", "</select>"],
legend: [1, "<fieldset>", "</fieldset>"],
area: [1, "<map>", "</map>"],
param: [1, "<object>", "</object>"],
thead: [1, "<table>", "</table>"],
tr: [2, "<table><tbody>", "</tbody></table>"],
col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
_default: vt.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]
};
Gt.optgroup = Gt.option,
Gt.tbody = Gt.tfoot = Gt.colgroup = Gt.caption = Gt.thead,
Gt.th = Gt.td;
var Kt = /<|&#?\w+;/
, Zt = /<tbody/i;
!function() {
var t, e, i = st.createElement("div");
for (t in {
submit: !0,
change: !0,
focusin: !0
})
e = "on" + t,
(vt[t] = e in n) || (i.setAttribute(e, "t"),
vt[t] = i.attributes[e].expando === !1);
i = null
}();
var Qt = /^(?:input|select|textarea)$/i
, Jt = /^key/
, te = /^(?:mouse|pointer|contextmenu|drag|drop)|click/
, ee = /^(?:focusinfocus|focusoutblur)$/
, ne = /^([^.]*)(?:\.(.+)|)/;
mt.event = {
global: {},
add: function(t, e, n, i, r) {
var o, a, s, u, c, l, f, h, d, p, v, g = mt._data(t);
if (g) {
for (n.handler && (u = n,
n = u.handler,
r = u.selector),
n.guid || (n.guid = mt.guid++),
(a = g.events) || (a = g.events = {}),
(l = g.handle) || (l = g.handle = function(t) {
return "undefined" == typeof mt || t && mt.event.triggered === t.type ? void 0 : mt.event.dispatch.apply(l.elem, arguments)
}
,
l.elem = t),
e = (e || "").match(jt) || [""],
s = e.length; s--; )
o = ne.exec(e[s]) || [],
d = v = o[1],
p = (o[2] || "").split(".").sort(),
d && (c = mt.event.special[d] || {},
d = (r ? c.delegateType : c.bindType) || d,
c = mt.event.special[d] || {},
f = mt.extend({
type: d,
origType: v,
data: i,
handler: n,
guid: n.guid,
selector: r,
needsContext: r && mt.expr.match.needsContext.test(r),
namespace: p.join(".")
}, u),
(h = a[d]) || (h = a[d] = [],
h.delegateCount = 0,
c.setup && c.setup.call(t, i, p, l) !== !1 || (t.addEventListener ? t.addEventListener(d, l, !1) : t.attachEvent && t.attachEvent("on" + d, l))),
c.add && (c.add.call(t, f),
f.handler.guid || (f.handler.guid = n.guid)),
r ? h.splice(h.delegateCount++, 0, f) : h.push(f),
mt.event.global[d] = !0);
t = null
}
},
remove: function(t, e, n, i, r) {
var o, a, s, u, c, l, f, h, d, p, v, g = mt.hasData(t) && mt._data(t);
if (g && (l = g.events)) {
for (e = (e || "").match(jt) || [""],
c = e.length; c--; )
if (s = ne.exec(e[c]) || [],
d = v = s[1],
p = (s[2] || "").split(".").sort(),
d) {
for (f = mt.event.special[d] || {},
d = (i ? f.delegateType : f.bindType) || d,
h = l[d] || [],
s = s[2] && new RegExp("(^|\\.)" + p.join("\\.(?:.*\\.|)") + "(\\.|$)"),
u = o = h.length; o--; )
a = h[o],
!r && v !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || i && i !== a.selector && ("**" !== i || !a.selector) || (h.splice(o, 1),
a.selector && h.delegateCount--,
f.remove && f.remove.call(t, a));
u && !h.length && (f.teardown && f.teardown.call(t, p, g.handle) !== !1 || mt.removeEvent(t, d, g.handle),
delete l[d])
} else
for (d in l)
mt.event.remove(t, d + e[c], n, i, !0);
mt.isEmptyObject(l) && (delete g.handle,
mt._removeData(t, "events"))
}
},
trigger: function(t, e, i, r) {
var o, a, s, u, c, l, f, h = [i || st], d = pt.call(t, "type") ? t.type : t, p = pt.call(t, "namespace") ? t.namespace.split(".") : [];
if (s = l = i = i || st,
3 !== i.nodeType && 8 !== i.nodeType && !ee.test(d + mt.event.triggered) && (d.indexOf(".") > -1 && (p = d.split("."),
d = p.shift(),
p.sort()),
a = d.indexOf(":") < 0 && "on" + d,
t = t[mt.expando] ? t : new mt.Event(d,"object" == typeof t && t),
t.isTrigger = r ? 2 : 3,
t.namespace = p.join("."),
t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + p.join("\\.(?:.*\\.|)") + "(\\.|$)") : null ,
t.result = void 0,
t.target || (t.target = i),
e = null == e ? [t] : mt.makeArray(e, [t]),
c = mt.event.special[d] || {},
r || !c.trigger || c.trigger.apply(i, e) !== !1)) {
if (!r && !c.noBubble && !mt.isWindow(i)) {
for (u = c.delegateType || d,
ee.test(u + d) || (s = s.parentNode); s; s = s.parentNode)
h.push(s),
l = s;
l === (i.ownerDocument || st) && h.push(l.defaultView || l.parentWindow || n)
}
for (f = 0; (s = h[f++]) && !t.isPropagationStopped(); )
t.type = f > 1 ? u : c.bindType || d,
o = (mt._data(s, "events") || {})[t.type] && mt._data(s, "handle"),
o && o.apply(s, e),
o = a && s[a],
o && o.apply && Ft(s) && (t.result = o.apply(s, e),
t.result === !1 && t.preventDefault());
if (t.type = d,
!r && !t.isDefaultPrevented() && (!c._default || c._default.apply(h.pop(), e) === !1) && Ft(i) && a && i[d] && !mt.isWindow(i)) {
l = i[a],
l && (i[a] = null ),
mt.event.triggered = d;
try {
i[d]()
} catch (v) {}
mt.event.triggered = void 0,
l && (i[a] = l)
}
return t.result
}
},
dispatch: function(t) {
t = mt.event.fix(t);
var e, n, i, r, o, a = [], s = ut.call(arguments), u = (mt._data(this, "events") || {})[t.type] || [], c = mt.event.special[t.type] || {};
if (s[0] = t,
t.delegateTarget = this,
!c.preDispatch || c.preDispatch.call(this, t) !== !1) {
for (a = mt.event.handlers.call(this, t, u),
e = 0; (r = a[e++]) && !t.isPropagationStopped(); )
for (t.currentTarget = r.elem,
n = 0; (o = r.handlers[n++]) && !t.isImmediatePropagationStopped(); )
t.rnamespace && !t.rnamespace.test(o.namespace) || (t.handleObj = o,
t.data = o.data,
i = ((mt.event.special[o.origType] || {}).handle || o.handler).apply(r.elem, s),
void 0 !== i && (t.result = i) === !1 && (t.preventDefault(),
t.stopPropagation()));
return c.postDispatch && c.postDispatch.call(this, t),
t.result
}
},
handlers: function(t, e) {
var n, i, r, o, a = [], s = e.delegateCount, u = t.target;
if (s && u.nodeType && ("click" !== t.type || isNaN(t.button) || t.button < 1))
for (; u != this; u = u.parentNode || this)
if (1 === u.nodeType && (u.disabled !== !0 || "click" !== t.type)) {
for (i = [],
n = 0; n < s; n++)
o = e[n],
r = o.selector + " ",
void 0 === i[r] && (i[r] = o.needsContext ? mt(r, this).index(u) > -1 : mt.find(r, this, null , [u]).length),
i[r] && i.push(o);
i.length && a.push({
elem: u,
handlers: i
})
}
return s < e.length && a.push({
elem: this,
handlers: e.slice(s)
}),
a
},
fix: function(t) {
if (t[mt.expando])
return t;
var e, n, i, r = t.type, o = t, a = this.fixHooks[r];
for (a || (this.fixHooks[r] = a = te.test(r) ? this.mouseHooks : Jt.test(r) ? this.keyHooks : {}),
i = a.props ? this.props.concat(a.props) : this.props,
t = new mt.Event(o),
e = i.length; e--; )
n = i[e],
t[n] = o[n];
return t.target || (t.target = o.srcElement || st),
3 === t.target.nodeType && (t.target = t.target.parentNode),
t.metaKey = !!t.metaKey,
a.filter ? a.filter(t, o) : t
},
props: "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
fixHooks: {},
keyHooks: {
props: "char charCode key keyCode".split(" "),
filter: function(t, e) {
return null == t.which && (t.which = null != e.charCode ? e.charCode : e.keyCode),
t
}
},
mouseHooks: {
props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
filter: function(t, e) {
var n, i, r, o = e.button, a = e.fromElement;
return null == t.pageX && null != e.clientX && (i = t.target.ownerDocument || st,
r = i.documentElement,
n = i.body,
t.pageX = e.clientX + (r && r.scrollLeft || n && n.scrollLeft || 0) - (r && r.clientLeft || n && n.clientLeft || 0),
t.pageY = e.clientY + (r && r.scrollTop || n && n.scrollTop || 0) - (r && r.clientTop || n && n.clientTop || 0)),
!t.relatedTarget && a && (t.relatedTarget = a === t.target ? e.toElement : a),
t.which || void 0 === o || (t.which = 1 & o ? 1 : 2 & o ? 3 : 4 & o ? 2 : 0),
t
}
},
special: {
load: {
noBubble: !0
},
focus: {
trigger: function() {
if (this !== _() && this.focus)
try {
return this.focus(),
!1
} catch (t) {}
},
delegateType: "focusin"
},
blur: {
trigger: function() {
if (this === _() && this.blur)
return this.blur(),
!1
},
delegateType: "focusout"
},
click: {
trigger: function() {
if (mt.nodeName(this, "input") && "checkbox" === this.type && this.click)
return this.click(),
!1
},
_default: function(t) {
return mt.nodeName(t.target, "a")
}
},
beforeunload: {
postDispatch: function(t) {
void 0 !== t.result && t.originalEvent && (t.originalEvent.returnValue = t.result)
}
}
},
simulate: function(t, e, n) {
var i = mt.extend(new mt.Event, n, {
type: t,
isSimulated: !0
});
mt.event.trigger(i, null , e),
i.isDefaultPrevented() && n.preventDefault()
}
},
mt.removeEvent = st.removeEventListener ? function(t, e, n) {
t.removeEventListener && t.removeEventListener(e, n)
}
: function(t, e, n) {
var i = "on" + e;
t.detachEvent && ("undefined" == typeof t[i] && (t[i] = null ),
t.detachEvent(i, n))
}
,
mt.Event = function(t, e) {
return this instanceof mt.Event ? (t && t.type ? (this.originalEvent = t,
this.type = t.type,
this.isDefaultPrevented = t.defaultPrevented || void 0 === t.defaultPrevented && t.returnValue === !1 ? T : S) : this.type = t,
e && mt.extend(this, e),
this.timeStamp = t && t.timeStamp || mt.now(),
void (this[mt.expando] = !0)) : new mt.Event(t,e)
}
,
mt.Event.prototype = {
constructor: mt.Event,
isDefaultPrevented: S,
isPropagationStopped: S,
isImmediatePropagationStopped: S,
preventDefault: function() {
var t = this.originalEvent;
this.isDefaultPrevented = T,
t && (t.preventDefault ? t.preventDefault() : t.returnValue = !1)
},
stopPropagation: function() {
var t = this.originalEvent;
this.isPropagationStopped = T,
t && !this.isSimulated && (t.stopPropagation && t.stopPropagation(),
t.cancelBubble = !0)
},
stopImmediatePropagation: function() {
var t = this.originalEvent;
this.isImmediatePropagationStopped = T,
t && t.stopImmediatePropagation && t.stopImmediatePropagation(),
this.stopPropagation()
}
},
mt.each({
mouseenter: "mouseover",
mouseleave: "mouseout",
pointerenter: "pointerover",
pointerleave: "pointerout"
}, function(t, e) {
mt.event.special[t] = {
delegateType: e,
bindType: e,
handle: function(t) {
var n, i = this, r = t.relatedTarget, o = t.handleObj;
return r && (r === i || mt.contains(i, r)) || (t.type = o.origType,
n = o.handler.apply(this, arguments),
t.type = e),
n
}
}
}),
vt.submit || (mt.event.special.submit = {
setup: function() {
return !mt.nodeName(this, "form") && void mt.event.add(this, "click._submit keypress._submit", function(t) {
var e = t.target
, n = mt.nodeName(e, "input") || mt.nodeName(e, "button") ? mt.prop(e, "form") : void 0;
n && !mt._data(n, "submit") && (mt.event.add(n, "submit._submit", function(t) {
t._submitBubble = !0
}),
mt._data(n, "submit", !0))
})
},
postDispatch: function(t) {
t._submitBubble && (delete t._submitBubble,
this.parentNode && !t.isTrigger && mt.event.simulate("submit", this.parentNode, t))
},
teardown: function() {
return !mt.nodeName(this, "form") && void mt.event.remove(this, "._submit")
}
}),
vt.change || (mt.event.special.change = {
setup: function() {
return Qt.test(this.nodeName) ? ("checkbox" !== this.type && "radio" !== this.type || (mt.event.add(this, "propertychange._change", function(t) {
"checked" === t.originalEvent.propertyName && (this._justChanged = !0)
}),
mt.event.add(this, "click._change", function(t) {
this._justChanged && !t.isTrigger && (this._justChanged = !1),
mt.event.simulate("change", this, t)
})),
!1) : void mt.event.add(this, "beforeactivate._change", function(t) {
var e = t.target;
Qt.test(e.nodeName) && !mt._data(e, "change") && (mt.event.add(e, "change._change", function(t) {
!this.parentNode || t.isSimulated || t.isTrigger || mt.event.simulate("change", this.parentNode, t)
}),
mt._data(e, "change", !0))
})
},
handle: function(t) {
var e = t.target;
if (this !== e || t.isSimulated || t.isTrigger || "radio" !== e.type && "checkbox" !== e.type)
return t.handleObj.handler.apply(this, arguments)
},
teardown: function() {
return mt.event.remove(this, "._change"),
!Qt.test(this.nodeName)
}
}),
vt.focusin || mt.each({
focus: "focusin",
blur: "focusout"
}, function(t, e) {
var n = function(t) {
mt.event.simulate(e, t.target, mt.event.fix(t))
}
;
mt.event.special[e] = {
setup: function() {
var i = this.ownerDocument || this
, r = mt._data(i, e);
r || i.addEventListener(t, n, !0),
mt._data(i, e, (r || 0) + 1)
},
teardown: function() {
var i = this.ownerDocument || this
, r = mt._data(i, e) - 1;
r ? mt._data(i, e, r) : (i.removeEventListener(t, n, !0),
mt._removeData(i, e))
}
}
}),
mt.fn.extend({
on: function(t, e, n, i) {
return C(this, t, e, n, i)
},
one: function(t, e, n, i) {
return C(this, t, e, n, i, 1)
},
off: function(t, e, n) {
var i, r;
if (t && t.preventDefault && t.handleObj)
return i = t.handleObj,
mt(t.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler),
this;
if ("object" == typeof t) {
for (r in t)
this.off(r, e, t[r]);
return this
}
return e !== !1 && "function" != typeof e || (n = e,
e = void 0),
n === !1 && (n = S),
this.each(function() {
mt.event.remove(this, t, n, e)
})
},
trigger: function(t, e) {
return this.each(function() {
mt.event.trigger(t, e, this)
})
},
triggerHandler: function(t, e) {
var n = this[0];
if (n)
return mt.event.trigger(t, e, n, !0)
}
});
var ie = / jQuery\d+="(?:null|\d+)"/g
, re = new RegExp("<(?:" + Xt + ")[\\s/>]","i")
, oe = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi
, ae = /<script|<style|<link/i
, se = /checked\s*(?:[^=]|=\s*.checked.)/i
, ue = /^true\/(.*)/
, ce = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g
, le = m(st)
, fe = le.appendChild(st.createElement("div"));
mt.extend({
htmlPrefilter: function(t) {
return t.replace(oe, "<$1></$2>")
},
clone: function(t, e, n) {
var i, r, o, a, s, u = mt.contains(t.ownerDocument, t);
if (vt.html5Clone || mt.isXMLDoc(t) || !re.test("<" + t.nodeName + ">") ? o = t.cloneNode(!0) : (fe.innerHTML = t.outerHTML,
fe.removeChild(o = fe.firstChild)),
!(vt.noCloneEvent && vt.noCloneChecked || 1 !== t.nodeType && 11 !== t.nodeType || mt.isXMLDoc(t)))
for (i = y(o),
s = y(t),
a = 0; null != (r = s[a]); ++a)
i[a] && M(r, i[a]);
if (e)
if (n)
for (s = s || y(t),
i = i || y(o),
a = 0; null != (r = s[a]); a++)
A(r, i[a]);
else
A(t, o);
return i = y(o, "script"),
i.length > 0 && b(i, !u && y(t, "script")),
i = s = r = null ,
o
},
cleanData: function(t, e) {
for (var n, i, r, o, a = 0, s = mt.expando, u = mt.cache, c = vt.attributes, l = mt.event.special; null != (n = t[a]); a++)
if ((e || Ft(n)) && (r = n[s],
o = r && u[r])) {
if (o.events)
for (i in o.events)
l[i] ? mt.event.remove(n, i) : mt.removeEvent(n, i, o.handle);
u[r] && (delete u[r],
c || "undefined" == typeof n.removeAttribute ? n[s] = void 0 : n.removeAttribute(s),
at.push(r))
}
}
}),
mt.fn.extend({
domManip: O,
detach: function(t) {
return N(this, t, !0)
},
remove: function(t) {
return N(this, t)
},
text: function(t) {
return $t(this, function(t) {
return void 0 === t ? mt.text(this) : this.empty().append((this[0] && this[0].ownerDocument || st).createTextNode(t))
}, null , t, arguments.length)
},
append: function() {
return O(this, arguments, function(t) {
if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
var e = E(this, t);
e.appendChild(t)
}
})
},
prepend: function() {
return O(this, arguments, function(t) {
if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
var e = E(this, t);
e.insertBefore(t, e.firstChild)
}
})
},
before: function() {
return O(this, arguments, function(t) {
this.parentNode && this.parentNode.insertBefore(t, this)
})
},
after: function() {
return O(this, arguments, function(t) {
this.parentNode && this.parentNode.insertBefore(t, this.nextSibling)
})
},
empty: function() {
for (var t, e = 0; null != (t = this[e]); e++) {
for (1 === t.nodeType && mt.cleanData(y(t, !1)); t.firstChild; )
t.removeChild(t.firstChild);
t.options && mt.nodeName(t, "select") && (t.options.length = 0)
}
return this
},
clone: function(t, e) {
return t = null != t && t,
e = null == e ? t : e,
this.map(function() {
return mt.clone(this, t, e)
})
},
html: function(t) {
return $t(this, function(t) {
var e = this[0] || {}
, n = 0
, i = this.length;
if (void 0 === t)
return 1 === e.nodeType ? e.innerHTML.replace(ie, "") : void 0;
if ("string" == typeof t && !ae.test(t) && (vt.htmlSerialize || !re.test(t)) && (vt.leadingWhitespace || !Yt.test(t)) && !Gt[(Wt.exec(t) || ["", ""])[1].toLowerCase()]) {
t = mt.htmlPrefilter(t);
try {
for (; n < i; n++)
e = this[n] || {},
1 === e.nodeType && (mt.cleanData(y(e, !1)),
e.innerHTML = t);
e = 0
} catch (r) {}
}
e && this.empty().append(t)
}, null , t, arguments.length)
},
replaceWith: function() {
var t = [];
return O(this, arguments, function(e) {
var n = this.parentNode;
mt.inArray(this, t) < 0 && (mt.cleanData(y(this)),
n && n.replaceChild(e, this))
}, t)
}
}),
mt.each({
appendTo: "append",
prependTo: "prepend",
insertBefore: "before",
insertAfter: "after",
replaceAll: "replaceWith"
}, function(t, e) {
mt.fn[t] = function(t) {
for (var n, i = 0, r = [], o = mt(t), a = o.length - 1; i <= a; i++)
n = i === a ? this : this.clone(!0),
mt(o[i])[e](n),
lt.apply(r, n.get());
return this.pushStack(r)
}
});
var he, de = {
HTML: "block",
BODY: "block"
}, pe = /^margin/, ve = new RegExp("^(" + zt + ")(?!px)[a-z%]+$","i"), ge = function(t, e, n, i) {
var r, o, a = {};
for (o in e)
a[o] = t.style[o],
t.style[o] = e[o];
r = n.apply(t, i || []);
for (o in e)
t.style[o] = a[o];
return r
}
, me = st.documentElement;
!function() {
function t() {
var t, l, f = st.documentElement;
f.appendChild(u),
c.style.cssText = "-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",
e = r = s = !1,
i = a = !0,
n.getComputedStyle && (l = n.getComputedStyle(c),
e = "1%" !== (l || {}).top,
s = "2px" === (l || {}).marginLeft,
r = "4px" === (l || {
width: "4px"
}).width,
c.style.marginRight = "50%",
i = "4px" === (l || {
marginRight: "4px"
}).marginRight,
t = c.appendChild(st.createElement("div")),
t.style.cssText = c.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",
t.style.marginRight = t.style.width = "0",
c.style.width = "1px",
a = !parseFloat((n.getComputedStyle(t) || {}).marginRight),
c.removeChild(t)),
c.style.display = "none",
o = 0 === c.getClientRects().length,
o && (c.style.display = "",
c.innerHTML = "<table><tr><td></td><td>t</td></tr></table>",
c.childNodes[0].style.borderCollapse = "separate",
t = c.getElementsByTagName("td"),
t[0].style.cssText = "margin:0;border:0;padding:0;display:none",
o = 0 === t[0].offsetHeight,
o && (t[0].style.display = "",
t[1].style.display = "none",
o = 0 === t[0].offsetHeight)),
f.removeChild(u)
}
var e, i, r, o, a, s, u = st.createElement("div"), c = st.createElement("div");
c.style && (c.style.cssText = "float:left;opacity:.5",
vt.opacity = "0.5" === c.style.opacity,
vt.cssFloat = !!c.style.cssFloat,
c.style.backgroundClip = "content-box",
c.cloneNode(!0).style.backgroundClip = "",
vt.clearCloneStyle = "content-box" === c.style.backgroundClip,
u = st.createElement("div"),
u.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",
c.innerHTML = "",
u.appendChild(c),
vt.boxSizing = "" === c.style.boxSizing || "" === c.style.MozBoxSizing || "" === c.style.WebkitBoxSizing,
mt.extend(vt, {
reliableHiddenOffsets: function() {
return null == e && t(),
o
},
boxSizingReliable: function() {
return null == e && t(),
r
},
pixelMarginRight: function() {
return null == e && t(),
i
},
pixelPosition: function() {
return null == e && t(),
e
},
reliableMarginRight: function() {
return null == e && t(),
a
},
reliableMarginLeft: function() {
return null == e && t(),
s
}
}))
}();
var ye, be, we = /^(top|right|bottom|left)$/;
n.getComputedStyle ? (ye = function(t) {
var e = t.ownerDocument.defaultView;
return e && e.opener || (e = n),
e.getComputedStyle(t)
}
,
be = function(t, e, n) {
var i, r, o, a, s = t.style;
return n = n || ye(t),
a = n ? n.getPropertyValue(e) || n[e] : void 0,
"" !== a && void 0 !== a || mt.contains(t.ownerDocument, t) || (a = mt.style(t, e)),
n && !vt.pixelMarginRight() && ve.test(a) && pe.test(e) && (i = s.width,
r = s.minWidth,
o = s.maxWidth,
s.minWidth = s.maxWidth = s.width = a,
a = n.width,
s.width = i,
s.minWidth = r,
s.maxWidth = o),
void 0 === a ? a : a + ""
}
) : me.currentStyle && (ye = function(t) {
return t.currentStyle
}
,
be = function(t, e, n) {
var i, r, o, a, s = t.style;
return n = n || ye(t),
a = n ? n[e] : void 0,
null == a && s && s[e] && (a = s[e]),
ve.test(a) && !we.test(e) && (i = s.left,
r = t.runtimeStyle,
o = r && r.left,
o && (r.left = t.currentStyle.left),
s.left = "fontSize" === e ? "1em" : a,
a = s.pixelLeft + "px",
s.left = i,
o && (r.left = o)),
void 0 === a ? a : a + "" || "auto"
}
);
var xe = /alpha\([^)]*\)/i
, Te = /opacity\s*=\s*([^)]*)/i
, Se = /^(none|table(?!-c[ea]).+)/
, _e = new RegExp("^(" + zt + ")(.*)$","i")
, Ce = {
position: "absolute",
visibility: "hidden",
display: "block"
}
, Ee = {
letterSpacing: "0",
fontWeight: "400"
}
, De = ["Webkit", "O", "Moz", "ms"]
, ke = st.createElement("div").style;
mt.extend({
cssHooks: {
opacity: {
get: function(t, e) {
if (e) {
var n = be(t, "opacity");
return "" === n ? "1" : n
}
}
}
},
cssNumber: {
animationIterationCount: !0,
columnCount: !0,
fillOpacity: !0,
flexGrow: !0,
flexShrink: !0,
fontWeight: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
widows: !0,
zIndex: !0,
zoom: !0
},
cssProps: {
"float": vt.cssFloat ? "cssFloat" : "styleFloat"
},
style: function(t, e, n, i) {
if (t && 3 !== t.nodeType && 8 !== t.nodeType && t.style) {
var r, o, a, s = mt.camelCase(e), u = t.style;
if (e = mt.cssProps[s] || (mt.cssProps[s] = F(s) || s),
a = mt.cssHooks[e] || mt.cssHooks[s],
void 0 === n)
return a && "get"in a && void 0 !== (r = a.get(t, !1, i)) ? r : u[e];
if (o = typeof n,
"string" === o && (r = Bt.exec(n)) && r[1] && (n = g(t, e, r),
o = "number"),
null != n && n === n && ("number" === o && (n += r && r[3] || (mt.cssNumber[s] ? "" : "px")),
vt.clearCloneStyle || "" !== n || 0 !== e.indexOf("background") || (u[e] = "inherit"),
!(a && "set"in a && void 0 === (n = a.set(t, n, i)))))
try {
u[e] = n
} catch (c) {}
}
},
css: function(t, e, n, i) {
var r, o, a, s = mt.camelCase(e);
return e = mt.cssProps[s] || (mt.cssProps[s] = F(s) || s),
a = mt.cssHooks[e] || mt.cssHooks[s],
a && "get"in a && (o = a.get(t, !0, n)),
void 0 === o && (o = be(t, e, i)),
"normal" === o && e in Ee && (o = Ee[e]),
"" === n || n ? (r = parseFloat(o),
n === !0 || isFinite(r) ? r || 0 : o) : o
}
}),
mt.each(["height", "width"], function(t, e) {
mt.cssHooks[e] = {
get: function(t, n, i) {
if (n)
return Se.test(mt.css(t, "display")) && 0 === t.offsetWidth ? ge(t, Ce, function() {
return B(t, e, i)
}) : B(t, e, i)
},
set: function(t, n, i) {
var r = i && ye(t);
return R(t, n, i ? z(t, e, i, vt.boxSizing && "border-box" === mt.css(t, "boxSizing", !1, r), r) : 0)
}
}
}),
vt.opacity || (mt.cssHooks.opacity = {
get: function(t, e) {
return Te.test((e && t.currentStyle ? t.currentStyle.filter : t.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : e ? "1" : ""
},
set: function(t, e) {
var n = t.style
, i = t.currentStyle
, r = mt.isNumeric(e) ? "alpha(opacity=" + 100 * e + ")" : ""
, o = i && i.filter || n.filter || "";
n.zoom = 1,
(e >= 1 || "" === e) && "" === mt.trim(o.replace(xe, "")) && n.removeAttribute && (n.removeAttribute("filter"),
"" === e || i && !i.filter) || (n.filter = xe.test(o) ? o.replace(xe, r) : o + " " + r)
}
}),
mt.cssHooks.marginRight = L(vt.reliableMarginRight, function(t, e) {
if (e)
return ge(t, {
display: "inline-block"
}, be, [t, "marginRight"])
}),
mt.cssHooks.marginLeft = L(vt.reliableMarginLeft, function(t, e) {
if (e)
return (parseFloat(be(t, "marginLeft")) || (mt.contains(t.ownerDocument, t) ? t.getBoundingClientRect().left - ge(t, {
marginLeft: 0
}, function() {
return t.getBoundingClientRect().left
}) : 0)) + "px"
}),
mt.each({
margin: "",
padding: "",
border: "Width"
}, function(t, e) {
mt.cssHooks[t + e] = {
expand: function(n) {
for (var i = 0, r = {}, o = "string" == typeof n ? n.split(" ") : [n]; i < 4; i++)
r[t + Ht[i] + e] = o[i] || o[i - 2] || o[0];
return r
}
},
pe.test(t) || (mt.cssHooks[t + e].set = R)
}),
mt.fn.extend({
css: function(t, e) {
return $t(this, function(t, e, n) {
var i, r, o = {}, a = 0;
if (mt.isArray(e)) {
for (i = ye(t),
r = e.length; a < r; a++)
o[e[a]] = mt.css(t, e[a], !1, i);
return o
}
return void 0 !== n ? mt.style(t, e, n) : mt.css(t, e)
}, t, e, arguments.length > 1)
},
show: function() {
return P(this, !0)
},
hide: function() {
return P(this)
},
toggle: function(t) {
return "boolean" == typeof t ? t ? this.show() : this.hide() : this.each(function() {
Ut(this) ? mt(this).show() : mt(this).hide()
})
}
}),
mt.Tween = H,
H.prototype = {
constructor: H,
init: function(t, e, n, i, r, o) {
this.elem = t,
this.prop = n,
this.easing = r || mt.easing._default,
this.options = e,
this.start = this.now = this.cur(),
this.end = i,
this.unit = o || (mt.cssNumber[n] ? "" : "px")
},
cur: function() {
var t = H.propHooks[this.prop];
return t && t.get ? t.get(this) : H.propHooks._default.get(this)
},
run: function(t) {
var e, n = H.propHooks[this.prop];
return this.options.duration ? this.pos = e = mt.easing[this.easing](t, this.options.duration * t, 0, 1, this.options.duration) : this.pos = e = t,
this.now = (this.end - this.start) * e + this.start,
this.options.step && this.options.step.call(this.elem, this.now, this),
n && n.set ? n.set(this) : H.propHooks._default.set(this),
this
}
},
H.prototype.init.prototype = H.prototype,
H.propHooks = {
_default: {
get: function(t) {
var e;
return 1 !== t.elem.nodeType || null != t.elem[t.prop] && null == t.elem.style[t.prop] ? t.elem[t.prop] : (e = mt.css(t.elem, t.prop, ""),
e && "auto" !== e ? e : 0)
},
set: function(t) {
mt.fx.step[t.prop] ? mt.fx.step[t.prop](t) : 1 !== t.elem.nodeType || null == t.elem.style[mt.cssProps[t.prop]] && !mt.cssHooks[t.prop] ? t.elem[t.prop] = t.now : mt.style(t.elem, t.prop, t.now + t.unit)
}
}
},
H.propHooks.scrollTop = H.propHooks.scrollLeft = {
set: function(t) {
t.elem.nodeType && t.elem.parentNode && (t.elem[t.prop] = t.now)
}
},
mt.easing = {
linear: function(t) {
return t
},
swing: function(t) {
return .5 - Math.cos(t * Math.PI) / 2
},
_default: "swing"
},
mt.fx = H.prototype.init,
mt.fx.step = {};
var Ae, Me, Oe = /^(?:toggle|show|hide)$/, Ne = /queueHooks$/;
mt.Animation = mt.extend(Y, {
tweeners: {
"*": [function(t, e) {
var n = this.createTween(t, e);
return g(n.elem, t, Bt.exec(e), n),
n
}
]
},
tweener: function(t, e) {
mt.isFunction(t) ? (e = t,
t = ["*"]) : t = t.match(jt);
for (var n, i = 0, r = t.length; i < r; i++)
n = t[i],
Y.tweeners[n] = Y.tweeners[n] || [],
Y.tweeners[n].unshift(e)
},
prefilters: [W],
prefilter: function(t, e) {
e ? Y.prefilters.unshift(t) : Y.prefilters.push(t)
}
}),
mt.speed = function(t, e, n) {
var i = t && "object" == typeof t ? mt.extend({}, t) : {
complete: n || !n && e || mt.isFunction(t) && t,
duration: t,
easing: n && e || e && !mt.isFunction(e) && e
};
return i.duration = mt.fx.off ? 0 : "number" == typeof i.duration ? i.duration : i.duration in mt.fx.speeds ? mt.fx.speeds[i.duration] : mt.fx.speeds._default,
null != i.queue && i.queue !== !0 || (i.queue = "fx"),
i.old = i.complete,
i.complete = function() {
mt.isFunction(i.old) && i.old.call(this),
i.queue && mt.dequeue(this, i.queue)
}
,
i
}
,
mt.fn.extend({
fadeTo: function(t, e, n, i) {
return this.filter(Ut).css("opacity", 0).show().end().animate({
opacity: e
}, t, n, i)
},
animate: function(t, e, n, i) {
var r = mt.isEmptyObject(t)
, o = mt.speed(e, n, i)
, a = function() {
var e = Y(this, mt.extend({}, t), o);
(r || mt._data(this, "finish")) && e.stop(!0)
}
;
return a.finish = a,
r || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)
},
stop: function(t, e, n) {
var i = function(t) {
var e = t.stop;
delete t.stop,
e(n)
}
;
return "string" != typeof t && (n = e,
e = t,
t = void 0),
e && t !== !1 && this.queue(t || "fx", []),
this.each(function() {
var e = !0
, r = null != t && t + "queueHooks"
, o = mt.timers
, a = mt._data(this);
if (r)
a[r] && a[r].stop && i(a[r]);
else
for (r in a)
a[r] && a[r].stop && Ne.test(r) && i(a[r]);
for (r = o.length; r--; )
o[r].elem !== this || null != t && o[r].queue !== t || (o[r].anim.stop(n),
e = !1,
o.splice(r, 1));
!e && n || mt.dequeue(this, t)
})
},
finish: function(t) {
return t !== !1 && (t = t || "fx"),
this.each(function() {
var e, n = mt._data(this), i = n[t + "queue"], r = n[t + "queueHooks"], o = mt.timers, a = i ? i.length : 0;
for (n.finish = !0,
mt.queue(this, t, []),
r && r.stop && r.stop.call(this, !0),
e = o.length; e--; )
o[e].elem === this && o[e].queue === t && (o[e].anim.stop(!0),
o.splice(e, 1));
for (e = 0; e < a; e++)
i[e] && i[e].finish && i[e].finish.call(this);
delete n.finish
})
}
}),
mt.each(["toggle", "show", "hide"], function(t, e) {
var n = mt.fn[e];
mt.fn[e] = function(t, i, r) {
return null == t || "boolean" == typeof t ? n.apply(this, arguments) : this.animate($(e, !0), t, i, r)
}
}),
mt.each({
slideDown: $("show"),
slideUp: $("hide"),
slideToggle: $("toggle"),
fadeIn: {
opacity: "show"
},
fadeOut: {
opacity: "hide"
},
fadeToggle: {
opacity: "toggle"
}
}, function(t, e) {
mt.fn[t] = function(t, n, i) {
return this.animate(e, t, n, i)
}
}),
mt.timers = [],
mt.fx.tick = function() {
var t, e = mt.timers, n = 0;
for (Ae = mt.now(); n < e.length; n++)
t = e[n],
t() || e[n] !== t || e.splice(n--, 1);
e.length || mt.fx.stop(),
Ae = void 0
}
,
mt.fx.timer = function(t) {
mt.timers.push(t),
t() ? mt.fx.start() : mt.timers.pop()
}
,
mt.fx.interval = 13,
mt.fx.start = function() {
Me || (Me = n.setInterval(mt.fx.tick, mt.fx.interval))
}
,
mt.fx.stop = function() {
n.clearInterval(Me),
Me = null
}
,
mt.fx.speeds = {
slow: 600,
fast: 200,
_default: 400
},
mt.fn.delay = function(t, e) {
return t = mt.fx ? mt.fx.speeds[t] || t : t,
e = e || "fx",
this.queue(e, function(e, i) {
var r = n.setTimeout(e, t);
i.stop = function() {
n.clearTimeout(r)
}
})
}
,
function() {
var t, e = st.createElement("input"), n = st.createElement("div"), i = st.createElement("select"), r = i.appendChild(st.createElement("option"));
n = st.createElement("div"),
n.setAttribute("className", "t"),
n.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",
t = n.getElementsByTagName("a")[0],
e.setAttribute("type", "checkbox"),
n.appendChild(e),
t = n.getElementsByTagName("a")[0],
t.style.cssText = "top:1px",
vt.getSetAttribute = "t" !== n.className,
vt.style = /top/.test(t.getAttribute("style")),
vt.hrefNormalized = "/a" === t.getAttribute("href"),
vt.checkOn = !!e.value,
vt.optSelected = r.selected,
vt.enctype = !!st.createElement("form").enctype,
i.disabled = !0,
vt.optDisabled = !r.disabled,
e = st.createElement("input"),
e.setAttribute("value", ""),
vt.input = "" === e.getAttribute("value"),
e.value = "t",
e.setAttribute("type", "radio"),
vt.radioValue = "t" === e.value
}();
var je = /\r/g
, Ie = /[\x20\t\r\n\f]+/g;
mt.fn.extend({
val: function(t) {
var e, n, i, r = this[0];
return arguments.length ? (i = mt.isFunction(t),
this.each(function(n) {
var r;
1 === this.nodeType && (r = i ? t.call(this, n, mt(this).val()) : t,
null == r ? r = "" : "number" == typeof r ? r += "" : mt.isArray(r) && (r = mt.map(r, function(t) {
return null == t ? "" : t + ""
})),
e = mt.valHooks[this.type] || mt.valHooks[this.nodeName.toLowerCase()],
e && "set"in e && void 0 !== e.set(this, r, "value") || (this.value = r))
})) : r ? (e = mt.valHooks[r.type] || mt.valHooks[r.nodeName.toLowerCase()],
e && "get"in e && void 0 !== (n = e.get(r, "value")) ? n : (n = r.value,
"string" == typeof n ? n.replace(je, "") : null == n ? "" : n)) : void 0
}
}),
mt.extend({
valHooks: {
option: {
get: function(t) {
var e = mt.find.attr(t, "value");
return null != e ? e : mt.trim(mt.text(t)).replace(Ie, " ")
}
},
select: {
get: function(t) {
for (var e, n, i = t.options, r = t.selectedIndex, o = "select-one" === t.type || r < 0, a = o ? null : [], s = o ? r + 1 : i.length, u = r < 0 ? s : o ? r : 0; u < s; u++)
if (n = i[u],
(n.selected || u === r) && (vt.optDisabled ? !n.disabled : null === n.getAttribute("disabled")) && (!n.parentNode.disabled || !mt.nodeName(n.parentNode, "optgroup"))) {
if (e = mt(n).val(),
o)
return e;
a.push(e)
}
return a
},
set: function(t, e) {
for (var n, i, r = t.options, o = mt.makeArray(e), a = r.length; a--; )
if (i = r[a],
mt.inArray(mt.valHooks.option.get(i), o) > -1)
try {
i.selected = n = !0
} catch (s) {
i.scrollHeight
}
else
i.selected = !1;
return n || (t.selectedIndex = -1),
r
}
}
}
}),
mt.each(["radio", "checkbox"], function() {
mt.valHooks[this] = {
set: function(t, e) {
if (mt.isArray(e))
return t.checked = mt.inArray(mt(t).val(), e) > -1
}
},
vt.checkOn || (mt.valHooks[this].get = function(t) {
return null === t.getAttribute("value") ? "on" : t.value
}
)
});
var Le, Fe, Pe = mt.expr.attrHandle, Re = /^(?:checked|selected)$/i, ze = vt.getSetAttribute, Be = vt.input;
mt.fn.extend({
attr: function(t, e) {
return $t(this, mt.attr, t, e, arguments.length > 1)
},
removeAttr: function(t) {
return this.each(function() {
mt.removeAttr(this, t)
})
}
}),
mt.extend({
attr: function(t, e, n) {
var i, r, o = t.nodeType;
if (3 !== o && 8 !== o && 2 !== o)
return "undefined" == typeof t.getAttribute ? mt.prop(t, e, n) : (1 === o && mt.isXMLDoc(t) || (e = e.toLowerCase(),
r = mt.attrHooks[e] || (mt.expr.match.bool.test(e) ? Fe : Le)),
void 0 !== n ? null === n ? void mt.removeAttr(t, e) : r && "set"in r && void 0 !== (i = r.set(t, n, e)) ? i : (t.setAttribute(e, n + ""),
n) : r && "get"in r && null !== (i = r.get(t, e)) ? i : (i = mt.find.attr(t, e),
null == i ? void 0 : i))
},
attrHooks: {
type: {
set: function(t, e) {
if (!vt.radioValue && "radio" === e && mt.nodeName(t, "input")) {
var n = t.value;
return t.setAttribute("type", e),
n && (t.value = n),
e
}
}
}
},
removeAttr: function(t, e) {
var n, i, r = 0, o = e && e.match(jt);
if (o && 1 === t.nodeType)
for (; n = o[r++]; )
i = mt.propFix[n] || n,
mt.expr.match.bool.test(n) ? Be && ze || !Re.test(n) ? t[i] = !1 : t[mt.camelCase("default-" + n)] = t[i] = !1 : mt.attr(t, n, ""),
t.removeAttribute(ze ? n : i)
}
}),
Fe = {
set: function(t, e, n) {
return e === !1 ? mt.removeAttr(t, n) : Be && ze || !Re.test(n) ? t.setAttribute(!ze && mt.propFix[n] || n, n) : t[mt.camelCase("default-" + n)] = t[n] = !0,
n
}
},
mt.each(mt.expr.match.bool.source.match(/\w+/g), function(t, e) {
var n = Pe[e] || mt.find.attr;
Be && ze || !Re.test(e) ? Pe[e] = function(t, e, i) {
var r, o;
return i || (o = Pe[e],
Pe[e] = r,
r = null != n(t, e, i) ? e.toLowerCase() : null ,
Pe[e] = o),
r
}
: Pe[e] = function(t, e, n) {
if (!n)
return t[mt.camelCase("default-" + e)] ? e.toLowerCase() : null
}
}),
Be && ze || (mt.attrHooks.value = {
set: function(t, e, n) {
return mt.nodeName(t, "input") ? void (t.defaultValue = e) : Le && Le.set(t, e, n)
}
}),
ze || (Le = {
set: function(t, e, n) {
var i = t.getAttributeNode(n);
if (i || t.setAttributeNode(i = t.ownerDocument.createAttribute(n)),
i.value = e += "",
"value" === n || e === t.getAttribute(n))
return e
}
},
Pe.id = Pe.name = Pe.coords = function(t, e, n) {
var i;
if (!n)
return (i = t.getAttributeNode(e)) && "" !== i.value ? i.value : null
}
,
mt.valHooks.button = {
get: function(t, e) {
var n = t.getAttributeNode(e);
if (n && n.specified)
return n.value
},
set: Le.set
},
mt.attrHooks.contenteditable = {
set: function(t, e, n) {
Le.set(t, "" !== e && e, n)
}
},
mt.each(["width", "height"], function(t, e) {
mt.attrHooks[e] = {
set: function(t, n) {
if ("" === n)
return t.setAttribute(e, "auto"),
n
}
}
})),
vt.style || (mt.attrHooks.style = {
get: function(t) {
return t.style.cssText || void 0
},
set: function(t, e) {
return t.style.cssText = e + ""
}
});
var He = /^(?:input|select|textarea|button|object)$/i
, Ue = /^(?:a|area)$/i;
mt.fn.extend({
prop: function(t, e) {
return $t(this, mt.prop, t, e, arguments.length > 1)
},
removeProp: function(t) {
return t = mt.propFix[t] || t,
this.each(function() {
try {
this[t] = void 0,
delete this[t]
} catch (e) {}
})
}
}),
mt.extend({
prop: function(t, e, n) {
var i, r, o = t.nodeType;
if (3 !== o && 8 !== o && 2 !== o)
return 1 === o && mt.isXMLDoc(t) || (e = mt.propFix[e] || e,
r = mt.propHooks[e]),
void 0 !== n ? r && "set"in r && void 0 !== (i = r.set(t, n, e)) ? i : t[e] = n : r && "get"in r && null !== (i = r.get(t, e)) ? i : t[e]
},
propHooks: {
tabIndex: {
get: function(t) {
var e = mt.find.attr(t, "tabindex");
return e ? parseInt(e, 10) : He.test(t.nodeName) || Ue.test(t.nodeName) && t.href ? 0 : -1
}
}
},
propFix: {
"for": "htmlFor",
"class": "className"
}
}),
vt.hrefNormalized || mt.each(["href", "src"], function(t, e) {
mt.propHooks[e] = {
get: function(t) {
return t.getAttribute(e, 4)
}
}
}),
vt.optSelected || (mt.propHooks.selected = {
get: function(t) {
var e = t.parentNode;
return e && (e.selectedIndex,
e.parentNode && e.parentNode.selectedIndex),
null
},
set: function(t) {
var e = t.parentNode;
e && (e.selectedIndex,
e.parentNode && e.parentNode.selectedIndex)
}
}),
mt.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
mt.propFix[this.toLowerCase()] = this
}),
vt.enctype || (mt.propFix.enctype = "encoding");
var $e = /[\t\r\n\f]/g;
mt.fn.extend({
addClass: function(t) {
var e, n, i, r, o, a, s, u = 0;
if (mt.isFunction(t))
return this.each(function(e) {
mt(this).addClass(t.call(this, e, X(this)))
});
if ("string" == typeof t && t)
for (e = t.match(jt) || []; n = this[u++]; )
if (r = X(n),
i = 1 === n.nodeType && (" " + r + " ").replace($e, " ")) {
for (a = 0; o = e[a++]; )
i.indexOf(" " + o + " ") < 0 && (i += o + " ");
s = mt.trim(i),
r !== s && mt.attr(n, "class", s)
}
return this
},
removeClass: function(t) {
var e, n, i, r, o, a, s, u = 0;
if (mt.isFunction(t))
return this.each(function(e) {
mt(this).removeClass(t.call(this, e, X(this)))
});
if (!arguments.length)
return this.attr("class", "");
if ("string" == typeof t && t)
for (e = t.match(jt) || []; n = this[u++]; )
if (r = X(n),
i = 1 === n.nodeType && (" " + r + " ").replace($e, " ")) {
for (a = 0; o = e[a++]; )
for (; i.indexOf(" " + o + " ") > -1; )
i = i.replace(" " + o + " ", " ");
s = mt.trim(i),
r !== s && mt.attr(n, "class", s)
}
return this
},
toggleClass: function(t, e) {
var n = typeof t;
return "boolean" == typeof e && "string" === n ? e ? this.addClass(t) : this.removeClass(t) : mt.isFunction(t) ? this.each(function(n) {
mt(this).toggleClass(t.call(this, n, X(this), e), e)
}) : this.each(function() {
var e, i, r, o;
if ("string" === n)
for (i = 0,
r = mt(this),
o = t.match(jt) || []; e = o[i++]; )
r.hasClass(e) ? r.removeClass(e) : r.addClass(e);
else
void 0 !== t && "boolean" !== n || (e = X(this),
e && mt._data(this, "__className__", e),
mt.attr(this, "class", e || t === !1 ? "" : mt._data(this, "__className__") || ""));
})
},
hasClass: function(t) {
var e, n, i = 0;
for (e = " " + t + " "; n = this[i++]; )
if (1 === n.nodeType && (" " + X(n) + " ").replace($e, " ").indexOf(e) > -1)
return !0;
return !1
}
}),
mt.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(t, e) {
mt.fn[e] = function(t, n) {
return arguments.length > 0 ? this.on(e, null , t, n) : this.trigger(e)
}
}),
mt.fn.extend({
hover: function(t, e) {
return this.mouseenter(t).mouseleave(e || t)
}
});
var qe = n.location
, We = mt.now()
, Ve = /\?/
, Ye = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
mt.parseJSON = function(t) {
if (n.JSON && n.JSON.parse)
return n.JSON.parse(t + "");
var e, i = null , r = mt.trim(t + "");
return r && !mt.trim(r.replace(Ye, function(t, n, r, o) {
return e && n && (i = 0),
0 === i ? t : (e = r || n,
i += !o - !r,
"")
})) ? Function("return " + r)() : mt.error("Invalid JSON: " + t)
}
,
mt.parseXML = function(t) {
var e, i;
if (!t || "string" != typeof t)
return null ;
try {
n.DOMParser ? (i = new n.DOMParser,
e = i.parseFromString(t, "text/xml")) : (e = new n.ActiveXObject("Microsoft.XMLDOM"),
e.async = "false",
e.loadXML(t))
} catch (r) {
e = void 0
}
return e && e.documentElement && !e.getElementsByTagName("parsererror").length || mt.error("Invalid XML: " + t),
e
}
;
var Xe = /#.*$/
, Ge = /([?&])_=[^&]*/
, Ke = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm
, Ze = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/
, Qe = /^(?:GET|HEAD)$/
, Je = /^\/\//
, tn = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/
, en = {}
, nn = {}
, rn = "*/".concat("*")
, on = qe.href
, an = tn.exec(on.toLowerCase()) || [];
mt.extend({
active: 0,
lastModified: {},
etag: {},
ajaxSettings: {
url: on,
type: "GET",
isLocal: Ze.test(an[1]),
global: !0,
processData: !0,
async: !0,
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
accepts: {
"*": rn,
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": mt.parseJSON,
"text xml": mt.parseXML
},
flatOptions: {
url: !0,
context: !0
}
},
ajaxSetup: function(t, e) {
return e ? Z(Z(t, mt.ajaxSettings), e) : Z(mt.ajaxSettings, t)
},
ajaxPrefilter: G(en),
ajaxTransport: G(nn),
ajax: function(t, e) {
function i(t, e, i, r) {
var o, f, y, b, x, S = e;
2 !== w && (w = 2,
u && n.clearTimeout(u),
l = void 0,
s = r || "",
T.readyState = t > 0 ? 4 : 0,
o = t >= 200 && t < 300 || 304 === t,
i && (b = Q(h, T, i)),
b = J(h, b, T, o),
o ? (h.ifModified && (x = T.getResponseHeader("Last-Modified"),
x && (mt.lastModified[a] = x),
x = T.getResponseHeader("etag"),
x && (mt.etag[a] = x)),
204 === t || "HEAD" === h.type ? S = "nocontent" : 304 === t ? S = "notmodified" : (S = b.state,
f = b.data,
y = b.error,
o = !y)) : (y = S,
!t && S || (S = "error",
t < 0 && (t = 0))),
T.status = t,
T.statusText = (e || S) + "",
o ? v.resolveWith(d, [f, S, T]) : v.rejectWith(d, [T, S, y]),
T.statusCode(m),
m = void 0,
c && p.trigger(o ? "ajaxSuccess" : "ajaxError", [T, h, o ? f : y]),
g.fireWith(d, [T, S]),
c && (p.trigger("ajaxComplete", [T, h]),
--mt.active || mt.event.trigger("ajaxStop")))
}
"object" == typeof t && (e = t,
t = void 0),
e = e || {};
var r, o, a, s, u, c, l, f, h = mt.ajaxSetup({}, e), d = h.context || h, p = h.context && (d.nodeType || d.jquery) ? mt(d) : mt.event, v = mt.Deferred(), g = mt.Callbacks("once memory"), m = h.statusCode || {}, y = {}, b = {}, w = 0, x = "canceled", T = {
readyState: 0,
getResponseHeader: function(t) {
var e;
if (2 === w) {
if (!f)
for (f = {}; e = Ke.exec(s); )
f[e[1].toLowerCase()] = e[2];
e = f[t.toLowerCase()]
}
return null == e ? null : e
},
getAllResponseHeaders: function() {
return 2 === w ? s : null
},
setRequestHeader: function(t, e) {
var n = t.toLowerCase();
return w || (t = b[n] = b[n] || t,
y[t] = e),
this
},
overrideMimeType: function(t) {
return w || (h.mimeType = t),
this
},
statusCode: function(t) {
var e;
if (t)
if (w < 2)
for (e in t)
m[e] = [m[e], t[e]];
else
T.always(t[T.status]);
return this
},
abort: function(t) {
var e = t || x;
return l && l.abort(e),
i(0, e),
this
}
};
if (v.promise(T).complete = g.add,
T.success = T.done,
T.error = T.fail,
h.url = ((t || h.url || on) + "").replace(Xe, "").replace(Je, an[1] + "//"),
h.type = e.method || e.type || h.method || h.type,
h.dataTypes = mt.trim(h.dataType || "*").toLowerCase().match(jt) || [""],
null == h.crossDomain && (r = tn.exec(h.url.toLowerCase()),
h.crossDomain = !(!r || r[1] === an[1] && r[2] === an[2] && (r[3] || ("http:" === r[1] ? "80" : "443")) === (an[3] || ("http:" === an[1] ? "80" : "443")))),
h.data && h.processData && "string" != typeof h.data && (h.data = mt.param(h.data, h.traditional)),
K(en, h, e, T),
2 === w)
return T;
c = mt.event && h.global,
c && 0 === mt.active++ && mt.event.trigger("ajaxStart"),
h.type = h.type.toUpperCase(),
h.hasContent = !Qe.test(h.type),
a = h.url,
h.hasContent || (h.data && (a = h.url += (Ve.test(a) ? "&" : "?") + h.data,
delete h.data),
h.cache === !1 && (h.url = Ge.test(a) ? a.replace(Ge, "$1_=" + We++) : a + (Ve.test(a) ? "&" : "?") + "_=" + We++)),
h.ifModified && (mt.lastModified[a] && T.setRequestHeader("If-Modified-Since", mt.lastModified[a]),
mt.etag[a] && T.setRequestHeader("If-None-Match", mt.etag[a])),
(h.data && h.hasContent && h.contentType !== !1 || e.contentType) && T.setRequestHeader("Content-Type", h.contentType),
T.setRequestHeader("Accept", h.dataTypes[0] && h.accepts[h.dataTypes[0]] ? h.accepts[h.dataTypes[0]] + ("*" !== h.dataTypes[0] ? ", " + rn + "; q=0.01" : "") : h.accepts["*"]);
for (o in h.headers)
T.setRequestHeader(o, h.headers[o]);
if (h.beforeSend && (h.beforeSend.call(d, T, h) === !1 || 2 === w))
return T.abort();
x = "abort";
for (o in {
success: 1,
error: 1,
complete: 1
})
T[o](h[o]);
if (l = K(nn, h, e, T)) {
if (T.readyState = 1,
c && p.trigger("ajaxSend", [T, h]),
2 === w)
return T;
h.async && h.timeout > 0 && (u = n.setTimeout(function() {
T.abort("timeout")
}, h.timeout));
try {
w = 1,
l.send(y, i)
} catch (S) {
if (!(w < 2))
throw S;
i(-1, S)
}
} else
i(-1, "No Transport");
return T
},
getJSON: function(t, e, n) {
return mt.get(t, e, n, "json")
},
getScript: function(t, e) {
return mt.get(t, void 0, e, "script")
}
}),
mt.each(["get", "post"], function(t, e) {
mt[e] = function(t, n, i, r) {
return mt.isFunction(n) && (r = r || i,
i = n,
n = void 0),
mt.ajax(mt.extend({
url: t,
type: e,
dataType: r,
data: n,
success: i
}, mt.isPlainObject(t) && t))
}
}),
mt._evalUrl = function(t) {
return mt.ajax({
url: t,
type: "GET",
dataType: "script",
cache: !0,
async: !1,
global: !1,
"throws": !0
})
}
,
mt.fn.extend({
wrapAll: function(t) {
if (mt.isFunction(t))
return this.each(function(e) {
mt(this).wrapAll(t.call(this, e))
});
if (this[0]) {
var e = mt(t, this[0].ownerDocument).eq(0).clone(!0);
this[0].parentNode && e.insertBefore(this[0]),
e.map(function() {
for (var t = this; t.firstChild && 1 === t.firstChild.nodeType; )
t = t.firstChild;
return t
}).append(this)
}
return this
},
wrapInner: function(t) {
return mt.isFunction(t) ? this.each(function(e) {
mt(this).wrapInner(t.call(this, e))
}) : this.each(function() {
var e = mt(this)
, n = e.contents();
n.length ? n.wrapAll(t) : e.append(t)
})
},
wrap: function(t) {
var e = mt.isFunction(t);
return this.each(function(n) {
mt(this).wrapAll(e ? t.call(this, n) : t)
})
},
unwrap: function() {
return this.parent().each(function() {
mt.nodeName(this, "body") || mt(this).replaceWith(this.childNodes)
}).end()
}
}),
mt.expr.filters.hidden = function(t) {
return vt.reliableHiddenOffsets() ? t.offsetWidth <= 0 && t.offsetHeight <= 0 && !t.getClientRects().length : et(t)
}
,
mt.expr.filters.visible = function(t) {
return !mt.expr.filters.hidden(t)
}
;
var sn = /%20/g
, un = /\[\]$/
, cn = /\r?\n/g
, ln = /^(?:submit|button|image|reset|file)$/i
, fn = /^(?:input|select|textarea|keygen)/i;
mt.param = function(t, e) {
var n, i = [], r = function(t, e) {
e = mt.isFunction(e) ? e() : null == e ? "" : e,
i[i.length] = encodeURIComponent(t) + "=" + encodeURIComponent(e)
}
;
if (void 0 === e && (e = mt.ajaxSettings && mt.ajaxSettings.traditional),
mt.isArray(t) || t.jquery && !mt.isPlainObject(t))
mt.each(t, function() {
r(this.name, this.value)
});
else
for (n in t)
nt(n, t[n], e, r);
return i.join("&").replace(sn, "+")
}
,
mt.fn.extend({
serialize: function() {
return mt.param(this.serializeArray())
},
serializeArray: function() {
return this.map(function() {
var t = mt.prop(this, "elements");
return t ? mt.makeArray(t) : this
}).filter(function() {
var t = this.type;
return this.name && !mt(this).is(":disabled") && fn.test(this.nodeName) && !ln.test(t) && (this.checked || !qt.test(t))
}).map(function(t, e) {
var n = mt(this).val();
return null == n ? null : mt.isArray(n) ? mt.map(n, function(t) {
return {
name: e.name,
value: t.replace(cn, "\r\n")
}
}) : {
name: e.name,
value: n.replace(cn, "\r\n")
}
}).get()
}
}),
mt.ajaxSettings.xhr = void 0 !== n.ActiveXObject ? function() {
return this.isLocal ? rt() : st.documentMode > 8 ? it() : /^(get|post|head|put|delete|options)$/i.test(this.type) && it() || rt()
}
: it;
var hn = 0
, dn = {}
, pn = mt.ajaxSettings.xhr();
n.attachEvent && n.attachEvent("onunload", function() {
for (var t in dn)
dn[t](void 0, !0)
}),
vt.cors = !!pn && "withCredentials"in pn,
pn = vt.ajax = !!pn,
pn && mt.ajaxTransport(function(t) {
if (!t.crossDomain || vt.cors) {
var e;
return {
send: function(i, r) {
var o, a = t.xhr(), s = ++hn;
if (a.open(t.type, t.url, t.async, t.username, t.password),
t.xhrFields)
for (o in t.xhrFields)
a[o] = t.xhrFields[o];
t.mimeType && a.overrideMimeType && a.overrideMimeType(t.mimeType),
t.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest");
for (o in i)
void 0 !== i[o] && a.setRequestHeader(o, i[o] + "");
a.send(t.hasContent && t.data || null ),
e = function(n, i) {
var o, u, c;
if (e && (i || 4 === a.readyState))
if (delete dn[s],
e = void 0,
a.onreadystatechange = mt.noop,
i)
4 !== a.readyState && a.abort();
else {
c = {},
o = a.status,
"string" == typeof a.responseText && (c.text = a.responseText);
try {
u = a.statusText
} catch (l) {
u = ""
}
o || !t.isLocal || t.crossDomain ? 1223 === o && (o = 204) : o = c.text ? 200 : 404
}
c && r(o, u, c, a.getAllResponseHeaders())
}
,
t.async ? 4 === a.readyState ? n.setTimeout(e) : a.onreadystatechange = dn[s] = e : e()
},
abort: function() {
e && e(void 0, !0)
}
}
}
}),
mt.ajaxSetup({
accepts: {
script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
},
contents: {
script: /\b(?:java|ecma)script\b/
},
converters: {
"text script": function(t) {
return mt.globalEval(t),
t
}
}
}),
mt.ajaxPrefilter("script", function(t) {
void 0 === t.cache && (t.cache = !1),
t.crossDomain && (t.type = "GET",
t.global = !1)
}),
mt.ajaxTransport("script", function(t) {
if (t.crossDomain) {
var e, n = st.head || mt("head")[0] || st.documentElement;
return {
send: function(i, r) {
e = st.createElement("script"),
e.async = !0,
t.scriptCharset && (e.charset = t.scriptCharset),
e.src = t.url,
e.onload = e.onreadystatechange = function(t, n) {
(n || !e.readyState || /loaded|complete/.test(e.readyState)) && (e.onload = e.onreadystatechange = null ,
e.parentNode && e.parentNode.removeChild(e),
e = null ,
n || r(200, "success"))
}
,
n.insertBefore(e, n.firstChild)
},
abort: function() {
e && e.onload(void 0, !0)
}
}
}
});
var vn = []
, gn = /(=)\?(?=&|$)|\?\?/;
mt.ajaxSetup({
jsonp: "callback",
jsonpCallback: function() {
var t = vn.pop() || mt.expando + "_" + We++;
return this[t] = !0,
t
}
}),
mt.ajaxPrefilter("json jsonp", function(t, e, i) {
var r, o, a, s = t.jsonp !== !1 && (gn.test(t.url) ? "url" : "string" == typeof t.data && 0 === (t.contentType || "").indexOf("application/x-www-form-urlencoded") && gn.test(t.data) && "data");
if (s || "jsonp" === t.dataTypes[0])
return r = t.jsonpCallback = mt.isFunction(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback,
s ? t[s] = t[s].replace(gn, "$1" + r) : t.jsonp !== !1 && (t.url += (Ve.test(t.url) ? "&" : "?") + t.jsonp + "=" + r),
t.converters["script json"] = function() {
return a || mt.error(r + " was not called"),
a[0]
}
,
t.dataTypes[0] = "json",
o = n[r],
n[r] = function() {
a = arguments
}
,
i.always(function() {
void 0 === o ? mt(n).removeProp(r) : n[r] = o,
t[r] && (t.jsonpCallback = e.jsonpCallback,
vn.push(r)),
a && mt.isFunction(o) && o(a[0]),
a = o = void 0
}),
"script"
}),
mt.parseHTML = function(t, e, n) {
if (!t || "string" != typeof t)
return null ;
"boolean" == typeof e && (n = e,
e = !1),
e = e || st;
var i = Et.exec(t)
, r = !n && [];
return i ? [e.createElement(i[1])] : (i = x([t], e, r),
r && r.length && mt(r).remove(),
mt.merge([], i.childNodes))
}
;
var mn = mt.fn.load;
mt.fn.load = function(t, e, n) {
if ("string" != typeof t && mn)
return mn.apply(this, arguments);
var i, r, o, a = this, s = t.indexOf(" ");
return s > -1 && (i = mt.trim(t.slice(s, t.length)),
t = t.slice(0, s)),
mt.isFunction(e) ? (n = e,
e = void 0) : e && "object" == typeof e && (r = "POST"),
a.length > 0 && mt.ajax({
url: t,
type: r || "GET",
dataType: "html",
data: e
}).done(function(t) {
o = arguments,
a.html(i ? mt("<div>").append(mt.parseHTML(t)).find(i) : t)
}).always(n && function(t, e) {
a.each(function() {
n.apply(this, o || [t.responseText, e, t])
})
}
),
this
}
,
mt.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(t, e) {
mt.fn[e] = function(t) {
return this.on(e, t)
}
}),
mt.expr.filters.animated = function(t) {
return mt.grep(mt.timers, function(e) {
return t === e.elem
}).length
}
,
mt.offset = {
setOffset: function(t, e, n) {
var i, r, o, a, s, u, c, l = mt.css(t, "position"), f = mt(t), h = {};
"static" === l && (t.style.position = "relative"),
s = f.offset(),
o = mt.css(t, "top"),
u = mt.css(t, "left"),
c = ("absolute" === l || "fixed" === l) && mt.inArray("auto", [o, u]) > -1,
c ? (i = f.position(),
a = i.top,
r = i.left) : (a = parseFloat(o) || 0,
r = parseFloat(u) || 0),
mt.isFunction(e) && (e = e.call(t, n, mt.extend({}, s))),
null != e.top && (h.top = e.top - s.top + a),
null != e.left && (h.left = e.left - s.left + r),
"using"in e ? e.using.call(t, h) : f.css(h)
}
},
mt.fn.extend({
offset: function(t) {
if (arguments.length)
return void 0 === t ? this : this.each(function(e) {
mt.offset.setOffset(this, t, e)
});
var e, n, i = {
top: 0,
left: 0
}, r = this[0], o = r && r.ownerDocument;
return o ? (e = o.documentElement,
mt.contains(e, r) ? ("undefined" != typeof r.getBoundingClientRect && (i = r.getBoundingClientRect()),
n = ot(o),
{
top: i.top + (n.pageYOffset || e.scrollTop) - (e.clientTop || 0),
left: i.left + (n.pageXOffset || e.scrollLeft) - (e.clientLeft || 0)
}) : i) : void 0
},
position: function() {
if (this[0]) {
var t, e, n = {
top: 0,
left: 0
}, i = this[0];
return "fixed" === mt.css(i, "position") ? e = i.getBoundingClientRect() : (t = this.offsetParent(),
e = this.offset(),
mt.nodeName(t[0], "html") || (n = t.offset()),
n.top += mt.css(t[0], "borderTopWidth", !0),
n.left += mt.css(t[0], "borderLeftWidth", !0)),
{
top: e.top - n.top - mt.css(i, "marginTop", !0),
left: e.left - n.left - mt.css(i, "marginLeft", !0)
}
}
},
offsetParent: function() {
return this.map(function() {
for (var t = this.offsetParent; t && !mt.nodeName(t, "html") && "static" === mt.css(t, "position"); )
t = t.offsetParent;
return t || me
})
}
}),
mt.each({
scrollLeft: "pageXOffset",
scrollTop: "pageYOffset"
}, function(t, e) {
var n = /Y/.test(e);
mt.fn[t] = function(i) {
return $t(this, function(t, i, r) {
var o = ot(t);
return void 0 === r ? o ? e in o ? o[e] : o.document.documentElement[i] : t[i] : void (o ? o.scrollTo(n ? mt(o).scrollLeft() : r, n ? r : mt(o).scrollTop()) : t[i] = r)
}, t, i, arguments.length, null )
}
}),
mt.each(["top", "left"], function(t, e) {
mt.cssHooks[e] = L(vt.pixelPosition, function(t, n) {
if (n)
return n = be(t, e),
ve.test(n) ? mt(t).position()[e] + "px" : n
})
}),
mt.each({
Height: "height",
Width: "width"
}, function(t, e) {
mt.each({
padding: "inner" + t,
content: e,
"": "outer" + t
}, function(n, i) {
mt.fn[i] = function(i, r) {
var o = arguments.length && (n || "boolean" != typeof i)
, a = n || (i === !0 || r === !0 ? "margin" : "border");
return $t(this, function(e, n, i) {
var r;
return mt.isWindow(e) ? e.document.documentElement["client" + t] : 9 === e.nodeType ? (r = e.documentElement,
Math.max(e.body["scroll" + t], r["scroll" + t], e.body["offset" + t], r["offset" + t], r["client" + t])) : void 0 === i ? mt.css(e, n, a) : mt.style(e, n, i, a)
}, e, o ? i : void 0, o, null )
}
})
}),
mt.fn.extend({
bind: function(t, e, n) {
return this.on(t, null , e, n)
},
unbind: function(t, e) {
return this.off(t, null , e)
},
delegate: function(t, e, n, i) {
return this.on(e, t, n, i)
},
undelegate: function(t, e, n) {
return 1 === arguments.length ? this.off(t, "**") : this.off(e, t || "**", n)
}
}),
mt.fn.size = function() {
return this.length
}
,
mt.fn.andSelf = mt.fn.addBack,
i = [],
r = function() {
return mt
}
.apply(e, i),
!(void 0 !== r && (t.exports = r));
var yn = n.jQuery
, bn = n.$;
return mt.noConflict = function(t) {
return n.$ === mt && (n.$ = bn),
t && n.jQuery === mt && (n.jQuery = yn),
mt
}
,
o || (n.jQuery = n.$ = mt),
mt
})
}
, , function(t, e, n) {
var i = n(13)
, r = n(77)
, o = n(45)
, a = n(46)
, s = n(78)
, u = "prototype"
, c = function(t, e, n) {
var l, f, h, d, p = t & c.F, v = t & c.G, g = t & c.S, m = t & c.P, y = t & c.B, b = v ? i : g ? i[e] || (i[e] = {}) : (i[e] || {})[u], w = v ? r : r[e] || (r[e] = {}), x = w[u] || (w[u] = {});
v && (n = e);
for (l in n)
f = !p && b && void 0 !== b[l],
h = (f ? b : n)[l],
d = y && f ? s(h, i) : m && "function" == typeof h ? s(Function.call, h) : h,
b && a(b, l, h, t & c.U),
w[l] != h && o(w, l, d),
m && x[l] != h && (x[l] = h)
}
;
i.core = r,
c.F = 1,
c.G = 2,
c.S = 4,
c.P = 8,
c.B = 16,
c.W = 32,
c.U = 64,
c.R = 128,
t.exports = c
}
, , , , function(t, e, n) {
function i(t, e) {
var n, i = function(r) {
return t.length > 1 ? function() {
var o = r ? r.concat() : [];
return n = e ? n || this : this,
o.push.apply(o, arguments) < t.length && arguments.length ? i.call(n, o) : t.apply(n, o)
}
: t
}
;
return i()
}
var r, o, a, s, u, c, l, f, h, d = {}.toString;
r = n(876),
o = n(877),
a = n(879),
s = n(880),
u = n(878),
c = function(t) {
return t
}
,
l = i(function(t, e) {
return d.call(e).slice(8, -1) === t
}),
f = i(function(t, e) {
var n, i = [];
for (n = 0; n < t; ++n)
i.push(e);
return i
}),
s.empty = o.empty,
s.slice = o.slice,
s.take = o.take,
s.drop = o.drop,
s.splitAt = o.splitAt,
s.takeWhile = o.takeWhile,
s.dropWhile = o.dropWhile,
s.span = o.span,
s.breakStr = o.breakList,
h = {
Func: r,
List: o,
Obj: a,
Str: s,
Num: u,
id: c,
isType: l,
replicate: f
},
h.each = o.each,
h.map = o.map,
h.filter = o.filter,
h.compact = o.compact,
h.reject = o.reject,
h.partition = o.partition,
h.find = o.find,
h.head = o.head,
h.first = o.first,
h.tail = o.tail,
h.last = o.last,
h.initial = o.initial,
h.empty = o.empty,
h.reverse = o.reverse,
h.difference = o.difference,
h.intersection = o.intersection,
h.union = o.union,
h.countBy = o.countBy,
h.groupBy = o.groupBy,
h.fold = o.fold,
h.foldl = o.foldl,
h.fold1 = o.fold1,
h.foldl1 = o.foldl1,
h.foldr = o.foldr,
h.foldr1 = o.foldr1,
h.unfoldr = o.unfoldr,
h.andList = o.andList,
h.orList = o.orList,
h.any = o.any,
h.all = o.all,
h.unique = o.unique,
h.uniqueBy = o.uniqueBy,
h.sort = o.sort,
h.sortWith = o.sortWith,
h.sortBy = o.sortBy,
h.sum = o.sum,
h.product = o.product,
h.mean = o.mean,
h.average = o.average,
h.concat = o.concat,
h.concatMap = o.concatMap,
h.flatten = o.flatten,
h.maximum = o.maximum,
h.minimum = o.minimum,
h.maximumBy = o.maximumBy,
h.minimumBy = o.minimumBy,
h.scan = o.scan,
h.scanl = o.scanl,
h.scan1 = o.scan1,
h.scanl1 = o.scanl1,
h.scanr = o.scanr,
h.scanr1 = o.scanr1,
h.slice = o.slice,
h.take = o.take,
h.drop = o.drop,
h.splitAt = o.splitAt,
h.takeWhile = o.takeWhile,
h.dropWhile = o.dropWhile,
h.span = o.span,
h.breakList = o.breakList,
h.zip = o.zip,
h.zipWith = o.zipWith,
h.zipAll = o.zipAll,
h.zipAllWith = o.zipAllWith,
h.at = o.at,
h.elemIndex = o.elemIndex,
h.elemIndices = o.elemIndices,
h.findIndex = o.findIndex,
h.findIndices = o.findIndices,
h.apply = r.apply,
h.curry = r.curry,
h.flip = r.flip,
h.fix = r.fix,
h.over = r.over,
h.split = s.split,
h.join = s.join,
h.lines = s.lines,
h.unlines = s.unlines,
h.words = s.words,
h.unwords = s.unwords,
h.chars = s.chars,
h.unchars = s.unchars,
h.repeat = s.repeat,
h.capitalize = s.capitalize,
h.camelize = s.camelize,
h.dasherize = s.dasherize,
h.values = a.values,
h.keys = a.keys,
h.pairsToObj = a.pairsToObj,
h.objToPairs = a.objToPairs,
h.listsToObj = a.listsToObj,
h.objToLists = a.objToLists,
h.max = u.max,
h.min = u.min,
h.negate = u.negate,
h.abs = u.abs,
h.signum = u.signum,
h.quot = u.quot,
h.rem = u.rem,
h.div = u.div,
h.mod = u.mod,
h.recip = u.recip,
h.pi = u.pi,
h.tau = u.tau,
h.exp = u.exp,
h.sqrt = u.sqrt,
h.ln = u.ln,
h.pow = u.pow,
h.sin = u.sin,
h.tan = u.tan,
h.cos = u.cos,
h.acos = u.acos,
h.asin = u.asin,
h.atan = u.atan,
h.atan2 = u.atan2,
h.truncate = u.truncate,
h.round = u.round,
h.ceiling = u.ceiling,
h.floor = u.floor,
h.isItNaN = u.isItNaN,
h.even = u.even,
h.odd = u.odd,
h.gcd = u.gcd,
h.lcm = u.lcm,
h.VERSION = "1.1.2",
t.exports = h
}
, , , function(t, e, n) {
var i = n(17);
t.exports = function(t) {
if (!i(t))
throw TypeError(t + " is not an object!");
return t
}
}
, , , function(t, e) {
var n = t.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")();
"number" == typeof __g && (__g = n)
}
, , function(t, e) {
t.exports = function(t) {
try {
return !!t()
} catch (e) {
return !0
}
}
}
, , function(t, e) {
t.exports = function(t) {
return "object" == typeof t ? null !== t : "function" == typeof t
}
}
, , function(t, e, n) {
var i = n(213)("wks")
, r = n(113)
, o = n(13).Symbol
, a = "function" == typeof o
, s = t.exports = function(t) {
return i[t] || (i[t] = a && o[t] || (a ? o : r)("Symbol." + t))
}
;
s.store = i
}
, , function(t, e, n) {
t.exports = !n(15)(function() {
return 7 != Object.defineProperty({}, "a", {
get: function() {
return 7
}
}).a
})
}
, function(t, e, n) {
var i = n(10)
, r = n(472)
, o = n(70)
, a = Object.defineProperty;
e.f = n(21) ? Object.defineProperty : function(t, e, n) {
if (i(t),
e = o(e, !0),
i(n),
r)
try {
return a(t, e, n)
} catch (s) {}
if ("get"in n || "set"in n)
throw TypeError("Accessors not supported!");
return "value"in n && (t[e] = n.value),
t
}
}
, , , , function(t, e, n) {
var i = n(90)
, r = Math.min;
t.exports = function(t) {
return t > 0 ? r(i(t), 9007199254740991) : 0
}
}
, , , , function(t, e, n) {
var i = n(60);
t.exports = function(t) {
return Object(i(t))
}
}
, , , , , function(t, e) {
var n = {}.hasOwnProperty;
t.exports = function(t, e) {
return n.call(t, e)
}
}
, , , , , , , , , function(t, e) {
t.exports = function(t) {
if ("function" != typeof t)
throw TypeError(t + " is not a function!");
return t
}
}
, function(t, e, n) {
var i = n(22)
, r = n(89);
t.exports = n(21) ? function(t, e, n) {
return i.f(t, e, r(1, n))
}
: function(t, e, n) {
return t[e] = n,
t
}
}
, function(t, e, n) {
var i = n(13)
, r = n(45)
, o = n(35)
, a = n(113)("src")
, s = "toString"
, u = Function[s]
, c = ("" + u).split(s);
n(77).inspectSource = function(t) {
return u.call(t)
}
,
(t.exports = function(t, e, n, s) {
var u = "function" == typeof n;
u && (o(n, "name") || r(n, "name", e)),
t[e] !== n && (u && (o(n, a) || r(n, a, t[e] ? "" + t[e] : c.join(String(e)))),
t === i ? t[e] = n : s ? t[e] ? t[e] = n : r(t, e, n) : (delete t[e],
r(t, e, n)))
}
)(Function.prototype, s, function() {
return "function" == typeof this && this[a] || u.call(this)
})
}
, function(t, e, n) {
var i = n(3)
, r = n(15)
, o = n(60)
, a = /"/g
, s = function(t, e, n, i) {
var r = String(o(t))
, s = "<" + e;
return "" !== n && (s += " " + n + '="' + String(i).replace(a, "&quot;") + '"'),
s + ">" + r + "</" + e + ">"
}
;
t.exports = function(t, e) {
var n = {};
n[t] = e(s),
i(i.P + i.F * r(function() {
var e = ""[t]('"');
return e !== e.toLowerCase() || e.split('"').length > 3
}), "String", n)
}
}
, function(t, e, n) {
var i = n(164)
, r = n(60);
t.exports = function(t) {
return i(r(t))
}
}
, , , , , , function(t, e, n) {
var i = n(165)
, r = n(89)
, o = n(48)
, a = n(70)
, s = n(35)
, u = n(472)
, c = Object.getOwnPropertyDescriptor;
e.f = n(21) ? c : function(t, e) {
if (t = o(t),
e = a(e, !0),
u)
try {
return c(t, e)
} catch (n) {}
if (s(t, e))
return r(!i.f.call(t, e), t[e])
}
}
, function(t, e, n) {
var i = n(35)
, r = n(30)
, o = n(323)("IE_PROTO")
, a = Object.prototype;
t.exports = Object.getPrototypeOf || function(t) {
return t = r(t),
i(t, o) ? t[o] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? a : null
}
}
, , , , function(t, e) {
var n = {}.toString;
t.exports = function(t) {
return n.call(t).slice(8, -1)
}
}
, function(t, e) {
t.exports = function(t) {
if (void 0 == t)
throw TypeError("Can't call method on " + t);
return t
}
}
, function(t, e, n) {
var i = n(15);
t.exports = function(t, e) {
return !!t && i(function() {
e ? t.call(null , function() {}, 1) : t.call(null )
})
}
}
, , , , , , , function(t, e, n) {
var i = n(78)
, r = n(164)
, o = n(30)
, a = n(26)
, s = n(520);
t.exports = function(t, e) {
var n = 1 == t
, u = 2 == t
, c = 3 == t
, l = 4 == t
, f = 6 == t
, h = 5 == t || f
, d = e || s;
return function(e, s, p) {
for (var v, g, m = o(e), y = r(m), b = i(s, p, 3), w = a(y.length), x = 0, T = n ? d(e, w) : u ? d(e, 0) : void 0; w > x; x++)
if ((h || x in y) && (v = y[x],
g = b(v, x, m),
t))
if (n)
T[x] = g;
else if (g)
switch (t) {
case 3:
return !0;
case 5:
return v;
case 6:
return x;
case 2:
T.push(v)
}
else if (l)
return !1;
return f ? -1 : c || l ? l : T
}
}
}
, function(t, e, n) {
var i = n(3)
, r = n(77)
, o = n(15);
t.exports = function(t, e) {
var n = (r.Object || {})[t] || Object[t]
, a = {};
a[t] = e(n),
i(i.S + i.F * o(function() {
n(1)
}), "Object", a)
}
}
, function(t, e, n) {
var i = n(17);
t.exports = function(t, e) {
if (!i(t))
return t;
var n, r;
if (e && "function" == typeof (n = t.toString) && !i(r = n.call(t)))
return r;
if ("function" == typeof (n = t.valueOf) && !i(r = n.call(t)))
return r;
if (!e && "function" == typeof (n = t.toString) && !i(r = n.call(t)))
return r;
throw TypeError("Can't convert object to primitive value")
}
}
, , , , , , , function(t, e) {
var n = t.exports = {
version: "2.4.0"
};
"number" == typeof __e && (__e = n)
}
, function(t, e, n) {
var i = n(44);
t.exports = function(t, e, n) {
if (i(t),
void 0 === e)
return t;
switch (n) {
case 1:
return function(n) {
return t.call(e, n)
}
;
case 2:
return function(n, i) {
return t.call(e, n, i)
}
;
case 3:
return function(n, i, r) {
return t.call(e, n, i, r)
}
}
return function() {
return t.apply(e, arguments)
}
}
}
, function(t, e, n) {
var i = n(488)
, r = n(3)
, o = n(213)("metadata")
, a = o.store || (o.store = new (n(491)))
, s = function(t, e, n) {
var r = a.get(t);
if (!r) {
if (!n)
return;
a.set(t, r = new i)
}
var o = r.get(e);
if (!o) {
if (!n)
return;
r.set(e, o = new i)
}
return o
}
, u = function(t, e, n) {
var i = s(e, n, !1);
return void 0 !== i && i.has(t)
}
, c = function(t, e, n) {
var i = s(e, n, !1);
return void 0 === i ? void 0 : i.get(t)
}
, l = function(t, e, n, i) {
s(n, i, !0).set(t, e)
}
, f = function(t, e) {
var n = s(t, e, !1)
, i = [];
return n && n.forEach(function(t, e) {
i.push(e)
}),
i
}
, h = function(t) {
return void 0 === t || "symbol" == typeof t ? t : String(t)
}
, d = function(t) {
r(r.S, "Reflect", t)
}
;
t.exports = {
store: a,
map: s,
has: u,
get: c,
set: l,
keys: f,
key: h,
exp: d
}
}
, function(t, e, n) {
"use strict";
if (n(21)) {
var i = n(106)
, r = n(13)
, o = n(15)
, a = n(3)
, s = n(214)
, u = n(330)
, c = n(78)
, l = n(105)
, f = n(89)
, h = n(45)
, d = n(110)
, p = n(90)
, v = n(26)
, g = n(112)
, m = n(70)
, y = n(35)
, b = n(485)
, w = n(163)
, x = n(17)
, T = n(30)
, S = n(315)
, _ = n(107)
, C = n(55)
, E = n(108).f
, D = n(332)
, k = n(113)
, A = n(19)
, M = n(68)
, O = n(204)
, N = n(324)
, j = n(333)
, I = n(132)
, L = n(210)
, F = n(111)
, P = n(308)
, R = n(465)
, z = n(22)
, B = n(54)
, H = z.f
, U = B.f
, $ = r.RangeError
, q = r.TypeError
, W = r.Uint8Array
, V = "ArrayBuffer"
, Y = "Shared" + V
, X = "BYTES_PER_ELEMENT"
, G = "prototype"
, K = Array[G]
, Z = u.ArrayBuffer
, Q = u.DataView
, J = M(0)
, tt = M(2)
, et = M(3)
, nt = M(4)
, it = M(5)
, rt = M(6)
, ot = O(!0)
, at = O(!1)
, st = j.values
, ut = j.keys
, ct = j.entries
, lt = K.lastIndexOf
, ft = K.reduce
, ht = K.reduceRight
, dt = K.join
, pt = K.sort
, vt = K.slice
, gt = K.toString
, mt = K.toLocaleString
, yt = A("iterator")
, bt = A("toStringTag")
, wt = k("typed_constructor")
, xt = k("def_constructor")
, Tt = s.CONSTR
, St = s.TYPED
, _t = s.VIEW
, Ct = "Wrong length!"
, Et = M(1, function(t, e) {
return Nt(N(t, t[xt]), e)
})
, Dt = o(function() {
return 1 === new W(new Uint16Array([1]).buffer)[0]
})
, kt = !!W && !!W[G].set && o(function() {
new W(1).set({})
})
, At = function(t, e) {
if (void 0 === t)
throw q(Ct);
var n = +t
, i = v(t);
if (e && !b(n, i))
throw $(Ct);
return i
}
, Mt = function(t, e) {
var n = p(t);
if (n < 0 || n % e)
throw $("Wrong offset!");
return n
}
, Ot = function(t) {
if (x(t) && St in t)
return t;
throw q(t + " is not a typed array!")
}
, Nt = function(t, e) {
if (!(x(t) && wt in t))
throw q("It is not a typed array constructor!");
return new t(e)
}
, jt = function(t, e) {
return It(N(t, t[xt]), e)
}
, It = function(t, e) {
for (var n = 0, i = e.length, r = Nt(t, i); i > n; )
r[n] = e[n++];
return r
}
, Lt = function(t, e, n) {
H(t, e, {
get: function() {
return this._d[n]
}
})
}
, Ft = function(t) {
var e, n, i, r, o, a, s = T(t), u = arguments.length, l = u > 1 ? arguments[1] : void 0, f = void 0 !== l, h = D(s);
if (void 0 != h && !S(h)) {
for (a = h.call(s),
i = [],
e = 0; !(o = a.next()).done; e++)
i.push(o.value);
s = i
}
for (f && u > 2 && (l = c(l, arguments[2], 2)),
e = 0,
n = v(s.length),
r = Nt(this, n); n > e; e++)
r[e] = f ? l(s[e], e) : s[e];
return r
}
, Pt = function() {
for (var t = 0, e = arguments.length, n = Nt(this, e); e > t; )
n[t] = arguments[t++];
return n
}
, Rt = !!W && o(function() {
mt.call(new W(1))
})
, zt = function() {
return mt.apply(Rt ? vt.call(Ot(this)) : Ot(this), arguments)
}
, Bt = {
copyWithin: function(t, e) {
return R.call(Ot(this), t, e, arguments.length > 2 ? arguments[2] : void 0)
},
every: function(t) {
return nt(Ot(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
fill: function(t) {
return P.apply(Ot(this), arguments)
},
filter: function(t) {
return jt(this, tt(Ot(this), t, arguments.length > 1 ? arguments[1] : void 0))
},
find: function(t) {
return it(Ot(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
findIndex: function(t) {
return rt(Ot(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
forEach: function(t) {
J(Ot(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
indexOf: function(t) {
return at(Ot(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
includes: function(t) {
return ot(Ot(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
join: function(t) {
return dt.apply(Ot(this), arguments)
},
lastIndexOf: function(t) {
return lt.apply(Ot(this), arguments)
},
map: function(t) {
return Et(Ot(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
reduce: function(t) {
return ft.apply(Ot(this), arguments)
},
reduceRight: function(t) {
return ht.apply(Ot(this), arguments)
},
reverse: function() {
for (var t, e = this, n = Ot(e).length, i = Math.floor(n / 2), r = 0; r < i; )
t = e[r],
e[r++] = e[--n],
e[n] = t;
return e
},
some: function(t) {
return et(Ot(this), t, arguments.length > 1 ? arguments[1] : void 0)
},
sort: function(t) {
return pt.call(Ot(this), t)
},
subarray: function(t, e) {
var n = Ot(this)
, i = n.length
, r = g(t, i);
return new (N(n, n[xt]))(n.buffer,n.byteOffset + r * n.BYTES_PER_ELEMENT,v((void 0 === e ? i : g(e, i)) - r))
}
}
, Ht = function(t, e) {
return jt(this, vt.call(Ot(this), t, e))
}
, Ut = function(t) {
Ot(this);
var e = Mt(arguments[1], 1)
, n = this.length
, i = T(t)
, r = v(i.length)
, o = 0;
if (r + e > n)
throw $(Ct);
for (; o < r; )
this[e + o] = i[o++]
}
, $t = {
entries: function() {
return ct.call(Ot(this))
},
keys: function() {
return ut.call(Ot(this))
},
values: function() {
return st.call(Ot(this))
}
}
, qt = function(t, e) {
return x(t) && t[St] && "symbol" != typeof e && e in t && String(+e) == String(e)
}
, Wt = function(t, e) {
return qt(t, e = m(e, !0)) ? f(2, t[e]) : U(t, e)
}
, Vt = function(t, e, n) {
return !(qt(t, e = m(e, !0)) && x(n) && y(n, "value")) || y(n, "get") || y(n, "set") || n.configurable || y(n, "writable") && !n.writable || y(n, "enumerable") && !n.enumerable ? H(t, e, n) : (t[e] = n.value,
t)
}
;
Tt || (B.f = Wt,
z.f = Vt),
a(a.S + a.F * !Tt, "Object", {
getOwnPropertyDescriptor: Wt,
defineProperty: Vt
}),
o(function() {
gt.call({})
}) && (gt = mt = function() {
return dt.call(this)
}
);
var Yt = d({}, Bt);
d(Yt, $t),
h(Yt, yt, $t.values),
d(Yt, {
slice: Ht,
set: Ut,
constructor: function() {},
toString: gt,
toLocaleString: zt
}),
Lt(Yt, "buffer", "b"),
Lt(Yt, "byteOffset", "o"),
Lt(Yt, "byteLength", "l"),
Lt(Yt, "length", "e"),
H(Yt, bt, {
get: function() {
return this[St]
}
}),
t.exports = function(t, e, n, u) {
u = !!u;
var c = t + (u ? "Clamped" : "") + "Array"
, f = "Uint8Array" != c
, d = "get" + t
, p = "set" + t
, g = r[c]
, m = g || {}
, y = g && C(g)
, b = !g || !s.ABV
, T = {}
, S = g && g[G]
, D = function(t, n) {
var i = t._d;
return i.v[d](n * e + i.o, Dt)
}
, k = function(t, n, i) {
var r = t._d;
u && (i = (i = Math.round(i)) < 0 ? 0 : i > 255 ? 255 : 255 & i),
r.v[p](n * e + r.o, i, Dt)
}
, A = function(t, e) {
H(t, e, {
get: function() {
return D(this, e)
},
set: function(t) {
return k(this, e, t)
},
enumerable: !0
})
}
;
b ? (g = n(function(t, n, i, r) {
l(t, g, c, "_d");
var o, a, s, u, f = 0, d = 0;
if (x(n)) {
if (!(n instanceof Z || (u = w(n)) == V || u == Y))
return St in n ? It(g, n) : Ft.call(g, n);
o = n,
d = Mt(i, e);
var p = n.byteLength;
if (void 0 === r) {
if (p % e)
throw $(Ct);
if (a = p - d,
a < 0)
throw $(Ct)
} else if (a = v(r) * e,
a + d > p)
throw $(Ct);
s = a / e
} else
s = At(n, !0),
a = s * e,
o = new Z(a);
for (h(t, "_d", {
b: o,
o: d,
l: a,
e: s,
v: new Q(o)
}); f < s; )
A(t, f++)
}),
S = g[G] = _(Yt),
h(S, "constructor", g)) : L(function(t) {
new g(null ),
new g(t)
}, !0) || (g = n(function(t, n, i, r) {
l(t, g, c);
var o;
return x(n) ? n instanceof Z || (o = w(n)) == V || o == Y ? void 0 !== r ? new m(n,Mt(i, e),r) : void 0 !== i ? new m(n,Mt(i, e)) : new m(n) : St in n ? It(g, n) : Ft.call(g, n) : new m(At(n, f))
}),
J(y !== Function.prototype ? E(m).concat(E(y)) : E(m), function(t) {
t in g || h(g, t, m[t])
}),
g[G] = S,
i || (S.constructor = g));
var M = S[yt]
, O = !!M && ("values" == M.name || void 0 == M.name)
, N = $t.values;
h(g, wt, !0),
h(S, St, c),
h(S, _t, !0),
h(S, xt, g),
(u ? new g(1)[bt] == c : bt in S) || H(S, bt, {
get: function() {
return c
}
}),
T[c] = g,
a(a.G + a.W + a.F * (g != m), T),
a(a.S, c, {
BYTES_PER_ELEMENT: e,
from: Ft,
of: Pt
}),
X in S || h(S, X, e),
a(a.P, c, Bt),
F(c),
a(a.P + a.F * kt, c, {
set: Ut
}),
a(a.P + a.F * !O, c, $t),
a(a.P + a.F * (S.toString != gt), c, {
toString: gt
}),
a(a.P + a.F * o(function() {
new g(1).slice()
}), c, {
slice: Ht
}),
a(a.P + a.F * (o(function() {
return [1, 2].toLocaleString() != new g([1, 2]).toLocaleString()
}) || !o(function() {
S.toLocaleString.call([1, 2])
})), c, {
toLocaleString: zt
}),
I[c] = O ? M : N,
i || O || h(S, yt, N)
}
} else
t.exports = function() {}
}
, , , , , , , , function(t, e, n) {
var i = n(113)("meta")
, r = n(17)
, o = n(35)
, a = n(22).f
, s = 0
, u = Object.isExtensible || function() {
return !0
}
, c = !n(15)(function() {
return u(Object.preventExtensions({}))
})
, l = function(t) {
a(t, i, {
value: {
i: "O" + ++s,
w: {}
}
})
}
, f = function(t, e) {
if (!r(t))
return "symbol" == typeof t ? t : ("string" == typeof t ? "S" : "P") + t;
if (!o(t, i)) {
if (!u(t))
return "F";
if (!e)
return "E";
l(t)
}
return t[i].i
}
, h = function(t, e) {
if (!o(t, i)) {
if (!u(t))
return !0;
if (!e)
return !1;
l(t)
}
return t[i].w
}
, d = function(t) {
return c && p.NEED && u(t) && !o(t, i) && l(t),
t
}
, p = t.exports = {
KEY: i,
NEED: !1,
fastKey: f,
getWeak: h,
onFreeze: d
}
}
, function(t, e) {
t.exports = function(t, e) {
return {
enumerable: !(1 & t),
configurable: !(2 & t),
writable: !(4 & t),
value: e
}
}
}
, function(t, e) {
var n = Math.ceil
, i = Math.floor;
t.exports = function(t) {
return isNaN(t = +t) ? 0 : (t > 0 ? i : n)(t)
}
}
, function(t, e, n) {
!function(n, i) {
t.exports = e = i()
}(this, function() {
var t = t || function(t, e) {
var n = {}
, i = n.lib = {}
, r = i.Base = function() {
function t() {}
return {
extend: function(e) {
t.prototype = this;
var n = new t;
return e && n.mixIn(e),
n.hasOwnProperty("init") || (n.init = function() {
n.$super.init.apply(this, arguments)
}
),
n.init.prototype = n,
n.$super = this,
n
},
create: function() {
var t = this.extend();
return t.init.apply(t, arguments),
t
},
init: function() {},
mixIn: function(t) {
for (var e in t)
t.hasOwnProperty(e) && (this[e] = t[e]);
t.hasOwnProperty("toString") && (this.toString = t.toString)
},
clone: function() {
return this.init.prototype.extend(this)
}
}
}()
, o = i.WordArray = r.extend({
init: function(t, n) {
t = this.words = t || [],
n != e ? this.sigBytes = n : this.sigBytes = 4 * t.length
},
toString: function(t) {
return (t || s).stringify(this)
},
concat: function(t) {
var e = this.words
, n = t.words
, i = this.sigBytes
, r = t.sigBytes;
if (this.clamp(),
i % 4)
for (var o = 0; o < r; o++) {
var a = n[o >>> 2] >>> 24 - o % 4 * 8 & 255;
e[i + o >>> 2] |= a << 24 - (i + o) % 4 * 8
}
else
for (var o = 0; o < r; o += 4)
e[i + o >>> 2] = n[o >>> 2];
return this.sigBytes += r,
this
},
clamp: function() {
var e = this.words
, n = this.sigBytes;
e[n >>> 2] &= 4294967295 << 32 - n % 4 * 8,
e.length = t.ceil(n / 4)
},
clone: function() {
var t = r.clone.call(this);
return t.words = this.words.slice(0),
t
},
random: function(e) {
for (var n, i = [], r = function(e) {
var e = e
, n = 987654321
, i = 4294967295;
return function() {
n = 36969 * (65535 & n) + (n >> 16) & i,
e = 18e3 * (65535 & e) + (e >> 16) & i;
var r = (n << 16) + e & i;
return r /= 4294967296,
r += .5,
r * (t.random() > .5 ? 1 : -1)
}
}
, a = 0; a < e; a += 4) {
var s = r(4294967296 * (n || t.random()));
n = 987654071 * s(),
i.push(4294967296 * s() | 0)
}
return new o.init(i,e)
}
})
, a = n.enc = {}
, s = a.Hex = {
stringify: function(t) {
for (var e = t.words, n = t.sigBytes, i = [], r = 0; r < n; r++) {
var o = e[r >>> 2] >>> 24 - r % 4 * 8 & 255;
i.push((o >>> 4).toString(16)),
i.push((15 & o).toString(16))
}
return i.join("")
},
parse: function(t) {
for (var e = t.length, n = [], i = 0; i < e; i += 2)
n[i >>> 3] |= parseInt(t.substr(i, 2), 16) << 24 - i % 8 * 4;
return new o.init(n,e / 2)
}
}
, u = a.Latin1 = {
stringify: function(t) {
for (var e = t.words, n = t.sigBytes, i = [], r = 0; r < n; r++) {
var o = e[r >>> 2] >>> 24 - r % 4 * 8 & 255;
i.push(String.fromCharCode(o))
}
return i.join("")
},
parse: function(t) {
for (var e = t.length, n = [], i = 0; i < e; i++)
n[i >>> 2] |= (255 & t.charCodeAt(i)) << 24 - i % 4 * 8;
return new o.init(n,e)
}
}
, c = a.Utf8 = {
stringify: function(t) {
try {
return decodeURIComponent(escape(u.stringify(t)))
} catch (e) {
throw new Error("Malformed UTF-8 data")
}
},
parse: function(t) {
return u.parse(unescape(encodeURIComponent(t)))
}
}
, l = i.BufferedBlockAlgorithm = r.extend({
reset: function() {
this._data = new o.init,
this._nDataBytes = 0
},
_append: function(t) {
"string" == typeof t && (t = c.parse(t)),
this._data.concat(t),
this._nDataBytes += t.sigBytes
},
_process: function(e) {
var n = this._data
, i = n.words
, r = n.sigBytes
, a = this.blockSize
, s = 4 * a
, u = r / s;
u = e ? t.ceil(u) : t.max((0 | u) - this._minBufferSize, 0);
var c = u * a
, l = t.min(4 * c, r);
if (c) {
for (var f = 0; f < c; f += a)
this._doProcessBlock(i, f);
var h = i.splice(0, c);
n.sigBytes -= l
}
return new o.init(h,l)
},
clone: function() {
var t = r.clone.call(this);
return t._data = this._data.clone(),
t
},
_minBufferSize: 0
})
, f = (i.Hasher = l.extend({
cfg: r.extend(),
init: function(t) {
this.cfg = this.cfg.extend(t),
this.reset()
},
reset: function() {
l.reset.call(this),
this._doReset()
},
update: function(t) {
return this._append(t),
this._process(),
this
},
finalize: function(t) {
t && this._append(t);
var e = this._doFinalize();
return e
},
blockSize: 16,
_createHelper: function(t) {
return function(e, n) {
return new t.init(n).finalize(e)
}
},
_createHmacHelper: function(t) {
return function(e, n) {
return new f.HMAC.init(t,n).finalize(e)
}
}
}),
n.algo = {});
return n
}(Math);
return t
})
}
, , , , , , , , , , , , , , function(t, e) {
t.exports = function(t, e, n, i) {
if (!(t instanceof e) || void 0 !== i && i in t)
throw TypeError(n + ": incorrect invocation!");
return t
}
}
, function(t, e) {
t.exports = !1
}
, function(t, e, n) {
var i = n(10)
, r = n(478)
, o = n(311)
, a = n(323)("IE_PROTO")
, s = function() {}
, u = "prototype"
, c = function() {
var t, e = n(310)("iframe"), i = o.length, r = "<", a = ">";
for (e.style.display = "none",
n(313).appendChild(e),
e.src = "javascript:",
t = e.contentWindow.document,
t.open(),
t.write(r + "script" + a + "document.F=Object" + r + "/script" + a),
t.close(),
c = t.F; i--; )
delete c[u][o[i]];
return c()
}
;
t.exports = Object.create || function(t, e) {
var n;
return null !== t ? (s[u] = i(t),
n = new s,
s[u] = null ,
n[a] = t) : n = c(),
void 0 === e ? n : r(n, e)
}
}
, function(t, e, n) {
var i = n(480)
, r = n(311).concat("length", "prototype");
e.f = Object.getOwnPropertyNames || function(t) {
return i(t, r)
}
}
, function(t, e, n) {
var i = n(480)
, r = n(311);
t.exports = Object.keys || function(t) {
return i(t, r)
}
}
, function(t, e, n) {
var i = n(46);
t.exports = function(t, e, n) {
for (var r in e)
i(t, r, e[r], n);
return t
}
}
, function(t, e, n) {
"use strict";
var i = n(13)
, r = n(22)
, o = n(21)
, a = n(19)("species");
t.exports = function(t) {
var e = i[t];
o && e && !e[a] && r.f(e, a, {
configurable: !0,
get: function() {
return this
}
})
}
}
, function(t, e, n) {
var i = n(90)
, r = Math.max
, o = Math.min;
t.exports = function(t, e) {
return t = i(t),
t < 0 ? r(t + e, 0) : o(t, e)
}
}
, function(t, e) {
var n = 0
, i = Math.random();
t.exports = function(t) {
return "Symbol(".concat(void 0 === t ? "" : t, ")_", (++n + i).toString(36))
}
}
, function(t, e, n) {
!function(i, r) {
t.exports = e = r(n(91))
}(this, function(t) {
return function(e) {
function n(t, e, n, i, r, o, a) {
var s = t + (e & n | ~e & i) + r + a;
return (s << o | s >>> 32 - o) + e
}
function i(t, e, n, i, r, o, a) {
var s = t + (e & i | n & ~i) + r + a;
return (s << o | s >>> 32 - o) + e
}
function r(t, e, n, i, r, o, a) {
var s = t + (e ^ n ^ i) + r + a;
return (s << o | s >>> 32 - o) + e
}
function o(t, e, n, i, r, o, a) {
var s = t + (n ^ (e | ~i)) + r + a;
return (s << o | s >>> 32 - o) + e
}
var a = t
, s = a.lib
, u = s.WordArray
, c = s.Hasher
, l = a.algo
, f = [];
!function() {
for (var t = 0; t < 64; t++)
f[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0
}();
var h = l.MD5 = c.extend({
_doReset: function() {
this._hash = new u.init([1732584193, 4023233417, 2562383102, 271733878])
},
_doProcessBlock: function(t, e) {
for (var a = 0; a < 16; a++) {
var s = e + a
, u = t[s];
t[s] = 16711935 & (u << 8 | u >>> 24) | 4278255360 & (u << 24 | u >>> 8)
}
var c = this._hash.words
, l = t[e + 0]
, h = t[e + 1]
, d = t[e + 2]
, p = t[e + 3]
, v = t[e + 4]
, g = t[e + 5]
, m = t[e + 6]
, y = t[e + 7]
, b = t[e + 8]
, w = t[e + 9]
, x = t[e + 10]
, T = t[e + 11]
, S = t[e + 12]
, _ = t[e + 13]
, C = t[e + 14]
, E = t[e + 15]
, D = c[0]
, k = c[1]
, A = c[2]
, M = c[3];
D = n(D, k, A, M, l, 7, f[0]),
M = n(M, D, k, A, h, 12, f[1]),
A = n(A, M, D, k, d, 17, f[2]),
k = n(k, A, M, D, p, 22, f[3]),
D = n(D, k, A, M, v, 7, f[4]),
M = n(M, D, k, A, g, 12, f[5]),
A = n(A, M, D, k, m, 17, f[6]),
k = n(k, A, M, D, y, 22, f[7]),
D = n(D, k, A, M, b, 7, f[8]),
M = n(M, D, k, A, w, 12, f[9]),
A = n(A, M, D, k, x, 17, f[10]),
k = n(k, A, M, D, T, 22, f[11]),
D = n(D, k, A, M, S, 7, f[12]),
M = n(M, D, k, A, _, 12, f[13]),
A = n(A, M, D, k, C, 17, f[14]),
k = n(k, A, M, D, E, 22, f[15]),
D = i(D, k, A, M, h, 5, f[16]),
M = i(M, D, k, A, m, 9, f[17]),
A = i(A, M, D, k, T, 14, f[18]),
k = i(k, A, M, D, l, 20, f[19]),
D = i(D, k, A, M, g, 5, f[20]),
M = i(M, D, k, A, x, 9, f[21]),
A = i(A, M, D, k, E, 14, f[22]),
k = i(k, A, M, D, v, 20, f[23]),
D = i(D, k, A, M, w, 5, f[24]),
M = i(M, D, k, A, C, 9, f[25]),
A = i(A, M, D, k, p, 14, f[26]),
k = i(k, A, M, D, b, 20, f[27]),
D = i(D, k, A, M, _, 5, f[28]),
M = i(M, D, k, A, d, 9, f[29]),
A = i(A, M, D, k, y, 14, f[30]),
k = i(k, A, M, D, S, 20, f[31]),
D = r(D, k, A, M, g, 4, f[32]),
M = r(M, D, k, A, b, 11, f[33]),
A = r(A, M, D, k, T, 16, f[34]),
k = r(k, A, M, D, C, 23, f[35]),
D = r(D, k, A, M, h, 4, f[36]),
M = r(M, D, k, A, v, 11, f[37]),
A = r(A, M, D, k, y, 16, f[38]),
k = r(k, A, M, D, x, 23, f[39]),
D = r(D, k, A, M, _, 4, f[40]),
M = r(M, D, k, A, l, 11, f[41]),
A = r(A, M, D, k, p, 16, f[42]),
k = r(k, A, M, D, m, 23, f[43]),
D = r(D, k, A, M, w, 4, f[44]),
M = r(M, D, k, A, S, 11, f[45]),
A = r(A, M, D, k, E, 16, f[46]),
k = r(k, A, M, D, d, 23, f[47]),
D = o(D, k, A, M, l, 6, f[48]),
M = o(M, D, k, A, y, 10, f[49]),
A = o(A, M, D, k, C, 15, f[50]),
k = o(k, A, M, D, g, 21, f[51]),
D = o(D, k, A, M, S, 6, f[52]),
M = o(M, D, k, A, p, 10, f[53]),
A = o(A, M, D, k, x, 15, f[54]),
k = o(k, A, M, D, h, 21, f[55]),
D = o(D, k, A, M, b, 6, f[56]),
M = o(M, D, k, A, E, 10, f[57]),
A = o(A, M, D, k, m, 15, f[58]),
k = o(k, A, M, D, _, 21, f[59]),
D = o(D, k, A, M, v, 6, f[60]),
M = o(M, D, k, A, T, 10, f[61]),
A = o(A, M, D, k, d, 15, f[62]),
k = o(k, A, M, D, w, 21, f[63]),
c[0] = c[0] + D | 0,
c[1] = c[1] + k | 0,
c[2] = c[2] + A | 0,
c[3] = c[3] + M | 0
},
_doFinalize: function() {
var t = this._data
, n = t.words
, i = 8 * this._nDataBytes
, r = 8 * t.sigBytes;
n[r >>> 5] |= 128 << 24 - r % 32;
var o = e.floor(i / 4294967296)
, a = i;
n[(r + 64 >>> 9 << 4) + 15] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8),
n[(r + 64 >>> 9 << 4) + 14] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8),
t.sigBytes = 4 * (n.length + 1),
this._process();
for (var s = this._hash, u = s.words, c = 0; c < 4; c++) {
var l = u[c];
u[c] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8)
}
return s
},
clone: function() {
var t = c.clone.call(this);
return t._hash = this._hash.clone(),
t
}
});
a.MD5 = c._createHelper(h),
a.HmacMD5 = c._createHmacHelper(h)
}(Math),
t.MD5
})
}
, , , , , , , , , , , , , , , , function(t, e, n) {
var i = n(19)("unscopables")
, r = Array.prototype;
void 0 == r[i] && n(45)(r, i, {}),
t.exports = function(t) {
r[i][t] = !0
}
}
, function(t, e, n) {
var i = n(78)
, r = n(474)
, o = n(315)
, a = n(10)
, s = n(26)
, u = n(332)
, c = {}
, l = {}
, e = t.exports = function(t, e, n, f, h) {
var d, p, v, g, m = h ? function() {
return t
}
: u(t), y = i(n, f, e ? 2 : 1), b = 0;
if ("function" != typeof m)
throw TypeError(t + " is not iterable!");
if (o(m)) {
for (d = s(t.length); d > b; b++)
if (g = e ? y(a(p = t[b])[0], p[1]) : y(t[b]),
g === c || g === l)
return g
} else
for (v = m.call(t); !(p = v.next()).done; )
if (g = r(v, y, p.value, e),
g === c || g === l)
return g
}
;
e.BREAK = c,
e.RETURN = l
}
, function(t, e) {
t.exports = {}
}
, function(t, e, n) {
var i = n(22).f
, r = n(35)
, o = n(19)("toStringTag");
t.exports = function(t, e, n) {
t && !r(t = n ? t : t.prototype, o) && i(t, o, {
configurable: !0,
value: e
})
}
}
, function(t, e, n) {
var i = n(3)
, r = n(60)
, o = n(15)
, a = n(328)
, s = "[" + a + "]"
, u = "​…"
, c = RegExp("^" + s + s + "*")
, l = RegExp(s + s + "*$")
, f = function(t, e, n) {
var r = {}
, s = o(function() {
return !!a[t]() || u[t]() != u
})
, c = r[t] = s ? e(h) : a[t];
n && (r[n] = c),
i(i.P + i.F * s, "String", r)
}
, h = f.trim = function(t, e) {
return t = String(r(t)),
1 & e && (t = t.replace(c, "")),
2 & e && (t = t.replace(l, "")),
t
}
;
t.exports = f
}
, function(t, e, n) {
!function(i, r, o) {
t.exports = e = r(n(91), n(703), n(114), n(704), n(702))
}(this, function(t) {
return function() {
var e = t
, n = e.lib
, i = n.BlockCipher
, r = e.algo
, o = []
, a = []
, s = []
, u = []
, c = []
, l = []
, f = []
, h = []
, d = []
, p = [];
!function() {
for (var t = [], e = 0; e < 256; e++)
e < 128 ? t[e] = e << 1 : t[e] = e << 1 ^ 283;
for (var n = 0, i = 0, e = 0; e < 256; e++) {
var r = i ^ i << 1 ^ i << 2 ^ i << 3 ^ i << 4;
r = r >>> 8 ^ 255 & r ^ 99,
o[n] = r,
a[r] = n;
var v = t[n]
, g = t[v]
, m = t[g]
, y = 257 * t[r] ^ 16843008 * r;
s[n] = y << 24 | y >>> 8,
u[n] = y << 16 | y >>> 16,
c[n] = y << 8 | y >>> 24,
l[n] = y;
var y = 16843009 * m ^ 65537 * g ^ 257 * v ^ 16843008 * n;
f[r] = y << 24 | y >>> 8,
h[r] = y << 16 | y >>> 16,
d[r] = y << 8 | y >>> 24,
p[r] = y,
n ? (n = v ^ t[t[t[m ^ v]]],
i ^= t[t[i]]) : n = i = 1
}
}();
var v = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54]
, g = r.AES = i.extend({
_doReset: function() {
for (var t = this._key, e = t.words, n = t.sigBytes / 4, i = this._nRounds = n + 6, r = 4 * (i + 1), a = this._keySchedule = [], s = 0; s < r; s++)
if (s < n)
a[s] = e[s];
else {
var u = a[s - 1];
s % n ? n > 6 && s % n == 4 && (u = o[u >>> 24] << 24 | o[u >>> 16 & 255] << 16 | o[u >>> 8 & 255] << 8 | o[255 & u]) : (u = u << 8 | u >>> 24,
u = o[u >>> 24] << 24 | o[u >>> 16 & 255] << 16 | o[u >>> 8 & 255] << 8 | o[255 & u],
u ^= v[s / n | 0] << 24),
a[s] = a[s - n] ^ u
}
for (var c = this._invKeySchedule = [], l = 0; l < r; l++) {
var s = r - l;
if (l % 4)
var u = a[s];
else
var u = a[s - 4];
l < 4 || s <= 4 ? c[l] = u : c[l] = f[o[u >>> 24]] ^ h[o[u >>> 16 & 255]] ^ d[o[u >>> 8 & 255]] ^ p[o[255 & u]]
}
},
encryptBlock: function(t, e) {
this._doCryptBlock(t, e, this._keySchedule, s, u, c, l, o)
},
decryptBlock: function(t, e) {
var n = t[e + 1];
t[e + 1] = t[e + 3],
t[e + 3] = n,
this._doCryptBlock(t, e, this._invKeySchedule, f, h, d, p, a);
var n = t[e + 1];
t[e + 1] = t[e + 3],
t[e + 3] = n
},
_doCryptBlock: function(t, e, n, i, r, o, a, s) {
for (var u = this._nRounds, c = t[e] ^ n[0], l = t[e + 1] ^ n[1], f = t[e + 2] ^ n[2], h = t[e + 3] ^ n[3], d = 4, p = 1; p < u; p++) {
var v = i[c >>> 24] ^ r[l >>> 16 & 255] ^ o[f >>> 8 & 255] ^ a[255 & h] ^ n[d++]
, g = i[l >>> 24] ^ r[f >>> 16 & 255] ^ o[h >>> 8 & 255] ^ a[255 & c] ^ n[d++]
, m = i[f >>> 24] ^ r[h >>> 16 & 255] ^ o[c >>> 8 & 255] ^ a[255 & l] ^ n[d++]
, y = i[h >>> 24] ^ r[c >>> 16 & 255] ^ o[l >>> 8 & 255] ^ a[255 & f] ^ n[d++];
c = v,
l = g,
f = m,
h = y
}
var v = (s[c >>> 24] << 24 | s[l >>> 16 & 255] << 16 | s[f >>> 8 & 255] << 8 | s[255 & h]) ^ n[d++]
, g = (s[l >>> 24] << 24 | s[f >>> 16 & 255] << 16 | s[h >>> 8 & 255] << 8 | s[255 & c]) ^ n[d++]
, m = (s[f >>> 24] << 24 | s[h >>> 16 & 255] << 16 | s[c >>> 8 & 255] << 8 | s[255 & l]) ^ n[d++]
, y = (s[h >>> 24] << 24 | s[c >>> 16 & 255] << 16 | s[l >>> 8 & 255] << 8 | s[255 & f]) ^ n[d++];
t[e] = v,
t[e + 1] = g,
t[e + 2] = m,
t[e + 3] = y
},
keySize: 8
});
e.AES = i._createHelper(g)
}(),
t.AES
})
}
, function(t, e, n) {
!function(i, r) {
t.exports = e = r(n(91))
}(this, function(t) {
return t.enc.Utf8
})
}
, , , , function(t, e, n) {
!function() {
function t(t) {
this.message = t
}
var n = e
, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
t.prototype = new Error,
t.prototype.name = "InvalidCharacterError",
n.btoa || (n.btoa = function(e) {
for (var n, r, o = String(e), a = 0, s = i, u = ""; o.charAt(0 | a) || (s = "=",
a % 1); u += s.charAt(63 & n >> 8 - a % 1 * 8)) {
if (r = o.charCodeAt(a += .75),
r > 255)
throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");
n = n << 8 | r
}
return u
}
),
n.atob || (n.atob = function(e) {
var n = String(e).replace(/=+$/, "");
if (n.length % 4 == 1)
throw new t("'atob' failed: The string to be decoded is not correctly encoded.");
for (var r, o, a = 0, s = 0, u = ""; o = n.charAt(s++); ~o && (r = a % 4 ? 64 * r + o : o,
a++ % 4) ? u += String.fromCharCode(255 & r >> (-2 * a & 6)) : 0)
o = i.indexOf(o);
return u
}
)
}()
}
, , , , , , , , , , , , , , , , , , , , , , , function(t, e, n) {
var i = n(59)
, r = n(19)("toStringTag")
, o = "Arguments" == i(function() {
return arguments
}())
, a = function(t, e) {
try {
return t[e]
} catch (n) {}
}
;
t.exports = function(t) {
var e, n, s;
return void 0 === t ? "Undefined" : null === t ? "Null" : "string" == typeof (n = a(e = Object(t), r)) ? n : o ? i(e) : "Object" == (s = i(e)) && "function" == typeof e.callee ? "Arguments" : s
}
}
, function(t, e, n) {
var i = n(59);
t.exports = Object("z").propertyIsEnumerable(0) ? Object : function(t) {
return "String" == i(t) ? t.split("") : Object(t)
}
}
, function(t, e) {
e.f = {}.propertyIsEnumerable
}
, , function(t, e, n) {
var i;
/*! Hammer.JS - v2.0.7 - 2016-04-22
* http://hammerjs.github.io/
*
* Copyright (c) 2016 Jorik Tangelder;
* Licensed under the MIT license */
!function(r, o, a, s) {
"use strict";
function u(t, e, n) {
return setTimeout(d(t, n), e)
}
function c(t, e, n) {
return !!Array.isArray(t) && (l(t, n[e], n),
!0)
}
function l(t, e, n) {
var i;
if (t)
if (t.forEach)
t.forEach(e, n);
else if (t.length !== s)
for (i = 0; i < t.length; )
e.call(n, t[i], i, t),
i++;
else
for (i in t)
t.hasOwnProperty(i) && e.call(n, t[i], i, t)
}
function f(t, e, n) {
var i = "DEPRECATED METHOD: " + e + "\n" + n + " AT \n";
return function() {
var e = new Error("get-stack-trace")
, n = e && e.stack ? e.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace"
, o = r.console && (r.console.warn || r.console.log);
return o && o.call(r.console, i, n),
t.apply(this, arguments)
}
}
function h(t, e, n) {
var i, r = e.prototype;
i = t.prototype = Object.create(r),
i.constructor = t,
i._super = r,
n && vt(i, n)
}
function d(t, e) {
return function() {
return t.apply(e, arguments)
}
}
function p(t, e) {
return typeof t == yt ? t.apply(e ? e[0] || s : s, e) : t
}
function v(t, e) {
return t === s ? e : t
}
function g(t, e, n) {
l(w(e), function(e) {
t.addEventListener(e, n, !1)
})
}
function m(t, e, n) {
l(w(e), function(e) {
t.removeEventListener(e, n, !1)
})
}
function y(t, e) {
for (; t; ) {
if (t == e)
return !0;
t = t.parentNode
}
return !1
}
function b(t, e) {
return t.indexOf(e) > -1
}
function w(t) {
return t.trim().split(/\s+/g)
}
function x(t, e, n) {
if (t.indexOf && !n)
return t.indexOf(e);
for (var i = 0; i < t.length; ) {
if (n && t[i][n] == e || !n && t[i] === e)
return i;
i++
}
return -1
}
function T(t) {
return Array.prototype.slice.call(t, 0)
}
function S(t, e, n) {
for (var i = [], r = [], o = 0; o < t.length; ) {
var a = e ? t[o][e] : t[o];
x(r, a) < 0 && i.push(t[o]),
r[o] = a,
o++
}
return n && (i = e ? i.sort(function(t, n) {
return t[e] > n[e]
}) : i.sort()),
i
}
function _(t, e) {
for (var n, i, r = e[0].toUpperCase() + e.slice(1), o = 0; o < gt.length; ) {
if (n = gt[o],
i = n ? n + r : e,
i in t)
return i;
o++
}
return s
}
function C() {
return _t++
}
function E(t) {
var e = t.ownerDocument || t;
return e.defaultView || e.parentWindow || r
}
function D(t, e) {
var n = this;
this.manager = t,
this.callback = e,
this.element = t.element,
this.target = t.options.inputTarget,
this.domHandler = function(e) {
p(t.options.enable, [t]) && n.handler(e)
}
,
this.init()
}
function k(t) {
var e, n = t.options.inputClass;
return new (e = n ? n : Dt ? U : kt ? W : Et ? Y : H)(t,A)
}
function A(t, e, n) {
var i = n.pointers.length
, r = n.changedPointers.length
, o = e & It && i - r === 0
, a = e & (Ft | Pt) && i - r === 0;
n.isFirst = !!o,
n.isFinal = !!a,
o && (t.session = {}),
n.eventType = e,
M(t, n),
t.emit("hammer.input", n),
t.recognize(n),
t.session.prevInput = n
}
function M(t, e) {
var n = t.session
, i = e.pointers
, r = i.length;
n.firstInput || (n.firstInput = j(e)),
r > 1 && !n.firstMultiple ? n.firstMultiple = j(e) : 1 === r && (n.firstMultiple = !1);
var o = n.firstInput
, a = n.firstMultiple
, s = a ? a.center : o.center
, u = e.center = I(i);
e.timeStamp = xt(),
e.deltaTime = e.timeStamp - o.timeStamp,
e.angle = R(s, u),
e.distance = P(s, u),
O(n, e),
e.offsetDirection = F(e.deltaX, e.deltaY);
var c = L(e.deltaTime, e.deltaX, e.deltaY);
e.overallVelocityX = c.x,
e.overallVelocityY = c.y,
e.overallVelocity = wt(c.x) > wt(c.y) ? c.x : c.y,
e.scale = a ? B(a.pointers, i) : 1,
e.rotation = a ? z(a.pointers, i) : 0,
e.maxPointers = n.prevInput ? e.pointers.length > n.prevInput.maxPointers ? e.pointers.length : n.prevInput.maxPointers : e.pointers.length,
N(n, e);
var l = t.element;
y(e.srcEvent.target, l) && (l = e.srcEvent.target),
e.target = l
}
function O(t, e) {
var n = e.center
, i = t.offsetDelta || {}
, r = t.prevDelta || {}
, o = t.prevInput || {};
e.eventType !== It && o.eventType !== Ft || (r = t.prevDelta = {
x: o.deltaX || 0,
y: o.deltaY || 0
},
i = t.offsetDelta = {
x: n.x,
y: n.y
}),
e.deltaX = r.x + (n.x - i.x),
e.deltaY = r.y + (n.y - i.y)
}
function N(t, e) {
var n, i, r, o, a = t.lastInterval || e, u = e.timeStamp - a.timeStamp;
if (e.eventType != Pt && (u > jt || a.velocity === s)) {
var c = e.deltaX - a.deltaX
, l = e.deltaY - a.deltaY
, f = L(u, c, l);
i = f.x,
r = f.y,
n = wt(f.x) > wt(f.y) ? f.x : f.y,
o = F(c, l),
t.lastInterval = e
} else
n = a.velocity,
i = a.velocityX,
r = a.velocityY,
o = a.direction;
e.velocity = n,
e.velocityX = i,
e.velocityY = r,
e.direction = o
}
function j(t) {
for (var e = [], n = 0; n < t.pointers.length; )
e[n] = {
clientX: bt(t.pointers[n].clientX),
clientY: bt(t.pointers[n].clientY)
},
n++;
return {
timeStamp: xt(),
pointers: e,
center: I(e),
deltaX: t.deltaX,
deltaY: t.deltaY
}
}
function I(t) {
var e = t.length;
if (1 === e)
return {
x: bt(t[0].clientX),
y: bt(t[0].clientY)
};
for (var n = 0, i = 0, r = 0; r < e; )
n += t[r].clientX,
i += t[r].clientY,
r++;
return {
x: bt(n / e),
y: bt(i / e)
}
}
function L(t, e, n) {
return {
x: e / t || 0,
y: n / t || 0
}
}
function F(t, e) {
return t === e ? Rt : wt(t) >= wt(e) ? t < 0 ? zt : Bt : e < 0 ? Ht : Ut
}
function P(t, e, n) {
n || (n = Vt);
var i = e[n[0]] - t[n[0]]
, r = e[n[1]] - t[n[1]];
return Math.sqrt(i * i + r * r)
}
function R(t, e, n) {
n || (n = Vt);
var i = e[n[0]] - t[n[0]]
, r = e[n[1]] - t[n[1]];
return 180 * Math.atan2(r, i) / Math.PI
}
function z(t, e) {
return R(e[1], e[0], Yt) + R(t[1], t[0], Yt)
}
function B(t, e) {
return P(e[0], e[1], Yt) / P(t[0], t[1], Yt)
}
function H() {
this.evEl = Gt,
this.evWin = Kt,
this.pressed = !1,
D.apply(this, arguments)
}
function U() {
this.evEl = Jt,
this.evWin = te,
D.apply(this, arguments),
this.store = this.manager.session.pointerEvents = []
}
function $() {
this.evTarget = ne,
this.evWin = ie,
this.started = !1,
D.apply(this, arguments)
}
function q(t, e) {
var n = T(t.touches)
, i = T(t.changedTouches);
return e & (Ft | Pt) && (n = S(n.concat(i), "identifier", !0)),
[n, i]
}
function W() {
this.evTarget = oe,
this.targetIds = {},
D.apply(this, arguments)
}
function V(t, e) {
var n = T(t.touches)
, i = this.targetIds;
if (e & (It | Lt) && 1 === n.length)
return i[n[0].identifier] = !0,
[n, n];
var r, o, a = T(t.changedTouches), s = [], u = this.target;
if (o = n.filter(function(t) {
return y(t.target, u)
}),
e === It)
for (r = 0; r < o.length; )
i[o[r].identifier] = !0,
r++;
for (r = 0; r < a.length; )
i[a[r].identifier] && s.push(a[r]),
e & (Ft | Pt) && delete i[a[r].identifier],
r++;
return s.length ? [S(o.concat(s), "identifier", !0), s] : void 0
}
function Y() {
D.apply(this, arguments);
var t = d(this.handler, this);
this.touch = new W(this.manager,t),
this.mouse = new H(this.manager,t),
this.primaryTouch = null ,
this.lastTouches = []
}
function X(t, e) {
t & It ? (this.primaryTouch = e.changedPointers[0].identifier,
G.call(this, e)) : t & (Ft | Pt) && G.call(this, e)
}
function G(t) {
var e = t.changedPointers[0];
if (e.identifier === this.primaryTouch) {
var n = {
x: e.clientX,
y: e.clientY
};
this.lastTouches.push(n);
var i = this.lastTouches
, r = function() {
var t = i.indexOf(n);
t > -1 && i.splice(t, 1)
}
;
setTimeout(r, ae)
}
}
function K(t) {
for (var e = t.srcEvent.clientX, n = t.srcEvent.clientY, i = 0; i < this.lastTouches.length; i++) {
var r = this.lastTouches[i]
, o = Math.abs(e - r.x)
, a = Math.abs(n - r.y);
if (o <= se && a <= se)
return !0
}
return !1
}
function Z(t, e) {
this.manager = t,
this.set(e)
}
function Q(t) {
if (b(t, de))
return de;
var e = b(t, pe)
, n = b(t, ve);
return e && n ? de : e || n ? e ? pe : ve : b(t, he) ? he : fe
}
function J() {
if (!ce)
return !1;
var t = {}
, e = r.CSS && r.CSS.supports;
return ["auto", "manipulation", "pan-y", "pan-x", "pan-x pan-y", "none"].forEach(function(n) {
t[n] = !e || r.CSS.supports("touch-action", n)
}),
t
}
function tt(t) {
this.options = vt({}, this.defaults, t || {}),
this.id = C(),
this.manager = null ,
this.options.enable = v(this.options.enable, !0),
this.state = me,
this.simultaneous = {},
this.requireFail = []
}
function et(t) {
return t & Te ? "cancel" : t & we ? "end" : t & be ? "move" : t & ye ? "start" : ""
}
function nt(t) {
return t == Ut ? "down" : t == Ht ? "up" : t == zt ? "left" : t == Bt ? "right" : ""
}
function it(t, e) {
var n = e.manager;
return n ? n.get(t) : t
}
function rt() {
tt.apply(this, arguments)
}
function ot() {
rt.apply(this, arguments),
this.pX = null ,
this.pY = null
}
function at() {
rt.apply(this, arguments)
}
function st() {
tt.apply(this, arguments),
this._timer = null ,
this._input = null
}
function ut() {
rt.apply(this, arguments)
}
function ct() {
rt.apply(this, arguments)
}
function lt() {
tt.apply(this, arguments),
this.pTime = !1,
this.pCenter = !1,
this._timer = null ,
this._input = null ,
this.count = 0
}
function ft(t, e) {
return e = e || {},
e.recognizers = v(e.recognizers, ft.defaults.preset),
new ht(t,e)
}
function ht(t, e) {
this.options = vt({}, ft.defaults, e || {}),
this.options.inputTarget = this.options.inputTarget || t,
this.handlers = {},
this.session = {},
this.recognizers = [],
this.oldCssProps = {},
this.element = t,
this.input = k(this),
this.touchAction = new Z(this,this.options.touchAction),
dt(this, !0),
l(this.options.recognizers, function(t) {
var e = this.add(new t[0](t[1]));
t[2] && e.recognizeWith(t[2]),
t[3] && e.requireFailure(t[3])
}, this)
}
function dt(t, e) {
var n = t.element;
if (n.style) {
var i;
l(t.options.cssProps, function(r, o) {
i = _(n.style, o),
e ? (t.oldCssProps[i] = n.style[i],
n.style[i] = r) : n.style[i] = t.oldCssProps[i] || ""
}),
e || (t.oldCssProps = {})
}
}
function pt(t, e) {
var n = o.createEvent("Event");
n.initEvent(t, !0, !0),
n.gesture = e,
e.target.dispatchEvent(n)
}
var vt, gt = ["", "webkit", "Moz", "MS", "ms", "o"], mt = o.createElement("div"), yt = "function", bt = Math.round, wt = Math.abs, xt = Date.now;
vt = "function" != typeof Object.assign ? function(t) {
if (t === s || null === t)
throw new TypeError("Cannot convert undefined or null to object");
for (var e = Object(t), n = 1; n < arguments.length; n++) {
var i = arguments[n];
if (i !== s && null !== i)
for (var r in i)
i.hasOwnProperty(r) && (e[r] = i[r])
}
return e
}
: Object.assign;
var Tt = f(function(t, e, n) {
for (var i = Object.keys(e), r = 0; r < i.length; )
(!n || n && t[i[r]] === s) && (t[i[r]] = e[i[r]]),
r++;
return t
}, "extend", "Use `assign`.")
, St = f(function(t, e) {
return Tt(t, e, !0)
}, "merge", "Use `assign`.")
, _t = 1
, Ct = /mobile|tablet|ip(ad|hone|od)|android/i
, Et = "ontouchstart"in r
, Dt = _(r, "PointerEvent") !== s
, kt = Et && Ct.test(navigator.userAgent)
, At = "touch"
, Mt = "pen"
, Ot = "mouse"
, Nt = "kinect"
, jt = 25
, It = 1
, Lt = 2
, Ft = 4
, Pt = 8
, Rt = 1
, zt = 2
, Bt = 4
, Ht = 8
, Ut = 16
, $t = zt | Bt
, qt = Ht | Ut
, Wt = $t | qt
, Vt = ["x", "y"]
, Yt = ["clientX", "clientY"];
D.prototype = {
handler: function() {},
init: function() {
this.evEl && g(this.element, this.evEl, this.domHandler),
this.evTarget && g(this.target, this.evTarget, this.domHandler),
this.evWin && g(E(this.element), this.evWin, this.domHandler)
},
destroy: function() {
this.evEl && m(this.element, this.evEl, this.domHandler),
this.evTarget && m(this.target, this.evTarget, this.domHandler),
this.evWin && m(E(this.element), this.evWin, this.domHandler)
}
};
var Xt = {
mousedown: It,
mousemove: Lt,
mouseup: Ft
}
, Gt = "mousedown"
, Kt = "mousemove mouseup";
h(H, D, {
handler: function(t) {
var e = Xt[t.type];
e & It && 0 === t.button && (this.pressed = !0),
e & Lt && 1 !== t.which && (e = Ft),
this.pressed && (e & Ft && (this.pressed = !1),
this.callback(this.manager, e, {
pointers: [t],
changedPointers: [t],
pointerType: Ot,
srcEvent: t
}))
}
});
var Zt = {
pointerdown: It,
pointermove: Lt,
pointerup: Ft,
pointercancel: Pt,
pointerout: Pt
}
, Qt = {
2: At,
3: Mt,
4: Ot,
5: Nt
}
, Jt = "pointerdown"
, te = "pointermove pointerup pointercancel";
r.MSPointerEvent && !r.PointerEvent && (Jt = "MSPointerDown",
te = "MSPointerMove MSPointerUp MSPointerCancel"),
h(U, D, {
handler: function(t) {
var e = this.store
, n = !1
, i = t.type.toLowerCase().replace("ms", "")
, r = Zt[i]
, o = Qt[t.pointerType] || t.pointerType
, a = o == At
, s = x(e, t.pointerId, "pointerId");
r & It && (0 === t.button || a) ? s < 0 && (e.push(t),
s = e.length - 1) : r & (Ft | Pt) && (n = !0),
s < 0 || (e[s] = t,
this.callback(this.manager, r, {
pointers: e,
changedPointers: [t],
pointerType: o,
srcEvent: t
}),
n && e.splice(s, 1))
}
});
var ee = {
touchstart: It,
touchmove: Lt,
touchend: Ft,
touchcancel: Pt
}
, ne = "touchstart"
, ie = "touchstart touchmove touchend touchcancel";
h($, D, {
handler: function(t) {
var e = ee[t.type];
if (e === It && (this.started = !0),
this.started) {
var n = q.call(this, t, e);
e & (Ft | Pt) && n[0].length - n[1].length === 0 && (this.started = !1),
this.callback(this.manager, e, {
pointers: n[0],
changedPointers: n[1],
pointerType: At,
srcEvent: t
})
}
}
});
var re = {
touchstart: It,
touchmove: Lt,
touchend: Ft,
touchcancel: Pt
}
, oe = "touchstart touchmove touchend touchcancel";
h(W, D, {
handler: function(t) {
var e = re[t.type]
, n = V.call(this, t, e);
n && this.callback(this.manager, e, {
pointers: n[0],
changedPointers: n[1],
pointerType: At,
srcEvent: t
})
}
});
var ae = 2500
, se = 25;
h(Y, D, {
handler: function(t, e, n) {
var i = n.pointerType == At
, r = n.pointerType == Ot;
if (!(r && n.sourceCapabilities && n.sourceCapabilities.firesTouchEvents)) {
if (i)
X.call(this, e, n);
else if (r && K.call(this, n))
return;
this.callback(t, e, n)
}
},
destroy: function() {
this.touch.destroy(),
this.mouse.destroy()
}
});
var ue = _(mt.style, "touchAction")
, ce = ue !== s
, le = "compute"
, fe = "auto"
, he = "manipulation"
, de = "none"
, pe = "pan-x"
, ve = "pan-y"
, ge = J();
Z.prototype = {
set: function(t) {
t == le && (t = this.compute()),
ce && this.manager.element.style && ge[t] && (this.manager.element.style[ue] = t),
this.actions = t.toLowerCase().trim()
},
update: function() {
this.set(this.manager.options.touchAction)
},
compute: function() {
var t = [];
return l(this.manager.recognizers, function(e) {
p(e.options.enable, [e]) && (t = t.concat(e.getTouchAction()))
}),
Q(t.join(" "))
},
preventDefaults: function(t) {
var e = t.srcEvent
, n = t.offsetDirection;
if (this.manager.session.prevented)
return void e.preventDefault();
var i = this.actions
, r = b(i, de) && !ge[de]
, o = b(i, ve) && !ge[ve]
, a = b(i, pe) && !ge[pe];
if (r) {
var s = 1 === t.pointers.length
, u = t.distance < 2
, c = t.deltaTime < 250;
if (s && u && c)
return
}
return a && o ? void 0 : r || o && n & $t || a && n & qt ? this.preventSrc(e) : void 0
},
preventSrc: function(t) {
this.manager.session.prevented = !0,
t.preventDefault()
}
};
var me = 1
, ye = 2
, be = 4
, we = 8
, xe = we
, Te = 16
, Se = 32;
tt.prototype = {
defaults: {},
set: function(t) {
return vt(this.options, t),
this.manager && this.manager.touchAction.update(),
this
},
recognizeWith: function(t) {
if (c(t, "recognizeWith", this))
return this;
var e = this.simultaneous;
return t = it(t, this),
e[t.id] || (e[t.id] = t,
t.recognizeWith(this)),
this
},
dropRecognizeWith: function(t) {
return c(t, "dropRecognizeWith", this) ? this : (t = it(t, this),
delete this.simultaneous[t.id],
this)
},
requireFailure: function(t) {
if (c(t, "requireFailure", this))
return this;
var e = this.requireFail;
return t = it(t, this),
x(e, t) === -1 && (e.push(t),
t.requireFailure(this)),
this
},
dropRequireFailure: function(t) {
if (c(t, "dropRequireFailure", this))
return this;
t = it(t, this);
var e = x(this.requireFail, t);
return e > -1 && this.requireFail.splice(e, 1),
this
},
hasRequireFailures: function() {
return this.requireFail.length > 0
},
canRecognizeWith: function(t) {
return !!this.simultaneous[t.id]
},
emit: function(t) {
function e(e) {
n.manager.emit(e, t)
}
var n = this
, i = this.state;
i < we && e(n.options.event + et(i)),
e(n.options.event),
t.additionalEvent && e(t.additionalEvent),
i >= we && e(n.options.event + et(i))
},
tryEmit: function(t) {
return this.canEmit() ? this.emit(t) : void (this.state = Se)
},
canEmit: function() {
for (var t = 0; t < this.requireFail.length; ) {
if (!(this.requireFail[t].state & (Se | me)))
return !1;
t++
}
return !0
},
recognize: function(t) {
var e = vt({}, t);
return p(this.options.enable, [this, e]) ? (this.state & (xe | Te | Se) && (this.state = me),
this.state = this.process(e),
void (this.state & (ye | be | we | Te) && this.tryEmit(e))) : (this.reset(),
void (this.state = Se))
},
process: function(t) {},
getTouchAction: function() {},
reset: function() {}
},
h(rt, tt, {
defaults: {
pointers: 1
},
attrTest: function(t) {
var e = this.options.pointers;
return 0 === e || t.pointers.length === e
},
process: function(t) {
var e = this.state
, n = t.eventType
, i = e & (ye | be)
, r = this.attrTest(t);
return i && (n & Pt || !r) ? e | Te : i || r ? n & Ft ? e | we : e & ye ? e | be : ye : Se
}
}),
h(ot, rt, {
defaults: {
event: "pan",
threshold: 10,
pointers: 1,
direction: Wt
},
getTouchAction: function() {
var t = this.options.direction
, e = [];
return t & $t && e.push(ve),
t & qt && e.push(pe),
e
},
directionTest: function(t) {
var e = this.options
, n = !0
, i = t.distance
, r = t.direction
, o = t.deltaX
, a = t.deltaY;
return r & e.direction || (e.direction & $t ? (r = 0 === o ? Rt : o < 0 ? zt : Bt,
n = o != this.pX,
i = Math.abs(t.deltaX)) : (r = 0 === a ? Rt : a < 0 ? Ht : Ut,
n = a != this.pY,
i = Math.abs(t.deltaY))),
t.direction = r,
n && i > e.threshold && r & e.direction
},
attrTest: function(t) {
return rt.prototype.attrTest.call(this, t) && (this.state & ye || !(this.state & ye) && this.directionTest(t))
},
emit: function(t) {
this.pX = t.deltaX,
this.pY = t.deltaY;
var e = nt(t.direction);
e && (t.additionalEvent = this.options.event + e),
this._super.emit.call(this, t)
}
}),
h(at, rt, {
defaults: {
event: "pinch",
threshold: 0,
pointers: 2
},
getTouchAction: function() {
return [de]
},
attrTest: function(t) {
return this._super.attrTest.call(this, t) && (Math.abs(t.scale - 1) > this.options.threshold || this.state & ye)
},
emit: function(t) {
if (1 !== t.scale) {
var e = t.scale < 1 ? "in" : "out";
t.additionalEvent = this.options.event + e
}
this._super.emit.call(this, t)
}
}),
h(st, tt, {
defaults: {
event: "press",
pointers: 1,
time: 251,
threshold: 9
},
getTouchAction: function() {
return [fe]
},
process: function(t) {
var e = this.options
, n = t.pointers.length === e.pointers
, i = t.distance < e.threshold
, r = t.deltaTime > e.time;
if (this._input = t,
!i || !n || t.eventType & (Ft | Pt) && !r)
this.reset();
else if (t.eventType & It)
this.reset(),
this._timer = u(function() {
this.state = xe,
this.tryEmit()
}, e.time, this);
else if (t.eventType & Ft)
return xe;
return Se
},
reset: function() {
clearTimeout(this._timer)
},
emit: function(t) {
this.state === xe && (t && t.eventType & Ft ? this.manager.emit(this.options.event + "up", t) : (this._input.timeStamp = xt(),
this.manager.emit(this.options.event, this._input)))
}
}),
h(ut, rt, {
defaults: {
event: "rotate",
threshold: 0,
pointers: 2
},
getTouchAction: function() {
return [de]
},
attrTest: function(t) {
return this._super.attrTest.call(this, t) && (Math.abs(t.rotation) > this.options.threshold || this.state & ye)
}
}),
h(ct, rt, {
defaults: {
event: "swipe",
threshold: 10,
velocity: .3,
direction: $t | qt,
pointers: 1
},
getTouchAction: function() {
return ot.prototype.getTouchAction.call(this)
},
attrTest: function(t) {
var e, n = this.options.direction;
return n & ($t | qt) ? e = t.overallVelocity : n & $t ? e = t.overallVelocityX : n & qt && (e = t.overallVelocityY),
this._super.attrTest.call(this, t) && n & t.offsetDirection && t.distance > this.options.threshold && t.maxPointers == this.options.pointers && wt(e) > this.options.velocity && t.eventType & Ft
},
emit: function(t) {
var e = nt(t.offsetDirection);
e && this.manager.emit(this.options.event + e, t),
this.manager.emit(this.options.event, t)
}
}),
h(lt, tt, {
defaults: {
event: "tap",
pointers: 1,
taps: 1,
interval: 300,
time: 250,
threshold: 9,
posThreshold: 10
},
getTouchAction: function() {
return [he]
},
process: function(t) {
var e = this.options
, n = t.pointers.length === e.pointers
, i = t.distance < e.threshold
, r = t.deltaTime < e.time;
if (this.reset(),
t.eventType & It && 0 === this.count)
return this.failTimeout();
if (i && r && n) {
if (t.eventType != Ft)
return this.failTimeout();
var o = !this.pTime || t.timeStamp - this.pTime < e.interval
, a = !this.pCenter || P(this.pCenter, t.center) < e.posThreshold;
this.pTime = t.timeStamp,
this.pCenter = t.center,
a && o ? this.count += 1 : this.count = 1,
this._input = t;
var s = this.count % e.taps;
if (0 === s)
return this.hasRequireFailures() ? (this._timer = u(function() {
this.state = xe,
this.tryEmit()
}, e.interval, this),
ye) : xe
}
return Se
},
failTimeout: function() {
return this._timer = u(function() {
this.state = Se
}, this.options.interval, this),
Se
},
reset: function() {
clearTimeout(this._timer)
},
emit: function() {
this.state == xe && (this._input.tapCount = this.count,
this.manager.emit(this.options.event, this._input))
}
}),
ft.VERSION = "2.0.7",
ft.defaults = {
domEvents: !1,
touchAction: le,
enable: !0,
inputTarget: null ,
inputClass: null ,
preset: [[ut, {
enable: !1
}], [at, {
enable: !1
}, ["rotate"]], [ct, {
direction: $t
}], [ot, {
direction: $t
}, ["swipe"]], [lt], [lt, {
event: "doubletap",
taps: 2
}, ["tap"]], [st]],
cssProps: {
userSelect: "none",
touchSelect: "none",
touchCallout: "none",
contentZooming: "none",
userDrag: "none",
tapHighlightColor: "rgba(0,0,0,0)"
}
};
var _e = 1
, Ce = 2;
ht.prototype = {
set: function(t) {
return vt(this.options, t),
t.touchAction && this.touchAction.update(),
t.inputTarget && (this.input.destroy(),
this.input.target = t.inputTarget,
this.input.init()),
this
},
stop: function(t) {
this.session.stopped = t ? Ce : _e
},
recognize: function(t) {
var e = this.session;
if (!e.stopped) {
this.touchAction.preventDefaults(t);
var n, i = this.recognizers, r = e.curRecognizer;
(!r || r && r.state & xe) && (r = e.curRecognizer = null );
for (var o = 0; o < i.length; )
n = i[o],
e.stopped === Ce || r && n != r && !n.canRecognizeWith(r) ? n.reset() : n.recognize(t),
!r && n.state & (ye | be | we) && (r = e.curRecognizer = n),
o++
}
},
get: function(t) {
if (t instanceof tt)
return t;
for (var e = this.recognizers, n = 0; n < e.length; n++)
if (e[n].options.event == t)
return e[n];
return null
},
add: function(t) {
if (c(t, "add", this))
return this;
var e = this.get(t.options.event);
return e && this.remove(e),
this.recognizers.push(t),
t.manager = this,
this.touchAction.update(),
t
},
remove: function(t) {
if (c(t, "remove", this))
return this;
if (t = this.get(t)) {
var e = this.recognizers
, n = x(e, t);
n !== -1 && (e.splice(n, 1),
this.touchAction.update())
}
return this
},
on: function(t, e) {
if (t !== s && e !== s) {
var n = this.handlers;
return l(w(t), function(t) {
n[t] = n[t] || [],
n[t].push(e)
}),
this
}
},
off: function(t, e) {
if (t !== s) {
var n = this.handlers;
return l(w(t), function(t) {
e ? n[t] && n[t].splice(x(n[t], e), 1) : delete n[t]
}),
this
}
},
emit: function(t, e) {
this.options.domEvents && pt(t, e);
var n = this.handlers[t] && this.handlers[t].slice();
if (n && n.length) {
e.type = t,
e.preventDefault = function() {
e.srcEvent.preventDefault()
}
;
for (var i = 0; i < n.length; )
n[i](e),
i++
}
},
destroy: function() {
this.element && dt(this, !1),
this.handlers = {},
this.session = {},
this.input.destroy(),
this.element = null
}
},
vt(ft, {
INPUT_START: It,
INPUT_MOVE: Lt,
INPUT_END: Ft,
INPUT_CANCEL: Pt,
STATE_POSSIBLE: me,
STATE_BEGAN: ye,
STATE_CHANGED: be,
STATE_ENDED: we,
STATE_RECOGNIZED: xe,
STATE_CANCELLED: Te,
STATE_FAILED: Se,
DIRECTION_NONE: Rt,
DIRECTION_LEFT: zt,
DIRECTION_RIGHT: Bt,
DIRECTION_UP: Ht,
DIRECTION_DOWN: Ut,
DIRECTION_HORIZONTAL: $t,
DIRECTION_VERTICAL: qt,
DIRECTION_ALL: Wt,
Manager: ht,
Input: D,
TouchAction: Z,
TouchInput: W,
MouseInput: H,
PointerEventInput: U,
TouchMouseInput: Y,
SingleTouchInput: $,
Recognizer: tt,
AttrRecognizer: rt,
Tap: lt,
Pan: ot,
Swipe: ct,
Pinch: at,
Rotate: ut,
Press: st,
on: g,
off: m,
each: l,
merge: St,
extend: Tt,
assign: vt,
inherit: h,
bindFn: d,
prefixed: _
});
var Ee = "undefined" != typeof r ? r : "undefined" != typeof self ? self : {};
Ee.Hammer = ft,
i = function() {
return ft
}
.call(e, n, e, t),
!(i !== s && (t.exports = i))
}(window, document, "Hammer")
}
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(t, e, n) {
var i, r;
/**!
* Sortable
* @author RubaXa <trash@rubaxa.org>
* @license MIT
*/
!function(o) {
"use strict";
i = o,
r = "function" == typeof i ? i.call(e, n, e, t) : i,
!(void 0 !== r && (t.exports = r))
}(function() {
"use strict";
function t(t, e) {
if (!t || !t.nodeType || 1 !== t.nodeType)
throw "Sortable: `el` must be HTMLElement, and not " + {}.toString.call(t);
this.el = t,
this.options = e = y({}, e),
t[R] = this;
var n = {
group: Math.random(),
sort: !0,
disabled: !1,
store: null ,
handle: null ,
scroll: !0,
scrollSensitivity: 30,
scrollSpeed: 10,
draggable: /[uo]l/i.test(t.nodeName) ? "li" : ">*",
ghostClass: "sortable-ghost",
chosenClass: "sortable-chosen",
ignore: "a, img",
filter: null ,
animation: 0,
setData: function(t, e) {
t.setData("Text", e.textContent)
},
dropBubble: !1,
dragoverBubble: !1,
dataIdAttr: "data-id",
delay: 0,
forceFallback: !1,
fallbackClass: "sortable-fallback",
fallbackOnBody: !1
};
for (var i in n)
!(i in e) && (e[i] = n[i]);
X(e);
for (var o in this)
"_" === o.charAt(0) && (this[o] = this[o].bind(this));
this.nativeDraggable = !e.forceFallback && U,
r(t, "mousedown", this._onTapStart),
r(t, "touchstart", this._onTapStart),
this.nativeDraggable && (r(t, "dragover", this),
r(t, "dragenter", this)),
V.push(this._onDragOver),
e.store && this.sort(e.store.get(this))
}
function e(t) {
T && T.state !== t && (s(T, "display", t ? "none" : ""),
!t && T.state && S.insertBefore(T, b),
T.state = t)
}
function n(t, e, n) {
if (t) {
n = n || B;
do
if (">*" === e && t.parentNode === n || g(t, e))
return t;
while (t = "host"in t ? t.host : t.parentNode)
}
return null
}
function i(t) {
t.dataTransfer && (t.dataTransfer.dropEffect = "move"),
t.preventDefault()
}
function r(t, e, n) {
t.addEventListener(e, n, !1)
}
function o(t, e, n) {
t.removeEventListener(e, n, !1)
}
function a(t, e, n) {
if (t)
if (t.classList)
t.classList[n ? "add" : "remove"](e);
else {
var i = (" " + t.className + " ").replace(P, " ").replace(" " + e + " ", " ");
t.className = (i + (n ? " " + e : "")).replace(P, " ")
}
}
function s(t, e, n) {
var i = t && t.style;
if (i) {
if (void 0 === n)
return B.defaultView && B.defaultView.getComputedStyle ? n = B.defaultView.getComputedStyle(t, "") : t.currentStyle && (n = t.currentStyle),
void 0 === e ? n : n[e];
e in i || (e = "-webkit-" + e),
i[e] = n + ("string" == typeof n ? "" : "px")
}
}
function u(t, e, n) {
if (t) {
var i = t.getElementsByTagName(e)
, r = 0
, o = i.length;
if (n)
for (; r < o; r++)
n(i[r], r);
return i
}
return []
}
function c(t, e, n, i, r, o, a) {
var s = B.createEvent("Event")
, u = (t || e[R]).options
, c = "on" + n.charAt(0).toUpperCase() + n.substr(1);
s.initEvent(n, !0, !0),
s.to = e,
s.from = r || e,
s.item = i || e,
s.clone = T,
s.oldIndex = o,
s.newIndex = a,
e.dispatchEvent(s),
u[c] && u[c].call(t, s)
}
function l(t, e, n, i, r, o) {
var a, s, u = t[R], c = u.options.onMove;
return a = B.createEvent("Event"),
a.initEvent("move", !0, !0),
a.to = e,
a.from = t,
a.dragged = n,
a.draggedRect = i,
a.related = r || e,
a.relatedRect = o || e.getBoundingClientRect(),
t.dispatchEvent(a),
c && (s = c.call(u, a)),
s
}
function f(t) {
t.draggable = !1
}
function h() {
q = !1
}
function d(t, e) {
var n = t.lastElementChild
, i = n.getBoundingClientRect();
return (e.clientY - (i.top + i.height) > 5 || e.clientX - (i.right + i.width) > 5) && n
}
function p(t) {
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, i = 0; n--; )
i += e.charCodeAt(n);
return i.toString(36)
}
function v(t, e) {
var n = 0;
if (!t || !t.parentNode)
return -1;
for (; t && (t = t.previousElementSibling); )
"TEMPLATE" !== t.nodeName.toUpperCase() && g(t, e) && n++;
return n
}
function g(t, e) {
if (t) {
e = e.split(".");
var n = e.shift().toUpperCase()
, i = new RegExp("\\s(" + e.join("|") + ")(?=\\s)","g");
return !("" !== n && t.nodeName.toUpperCase() != n || e.length && ((" " + t.className + " ").match(i) || []).length != e.length)
}
return !1
}
function m(t, e) {
var n, i;
return function() {
void 0 === n && (n = arguments,
i = this,
setTimeout(function() {
1 === n.length ? t.call(i, n[0]) : t.apply(i, n),
n = void 0
}, e))
}
}
function y(t, e) {
if (t && e)
for (var n in e)
e.hasOwnProperty(n) && (t[n] = e[n]);
return t
}
if ("undefined" == typeof window || "undefined" == typeof window.document)
return function() {
throw new Error("Sortable.js requires a window with a document")
}
;
var b, w, x, T, S, _, C, E, D, k, A, M, O, N, j, I, L, F = {}, P = /\s+/g, R = "Sortable" + (new Date).getTime(), z = window, B = z.document, H = z.parseInt, U = !!("draggable"in B.createElement("div")), $ = function(t) {
return t = B.createElement("x"),
t.style.cssText = "pointer-events:auto",
"auto" === t.style.pointerEvents
}(), q = !1, W = Math.abs, V = ([].slice,
[]), Y = m(function(t, e, n) {
if (n && e.scroll) {
var i, r, o, a, s = e.scrollSensitivity, u = e.scrollSpeed, c = t.clientX, l = t.clientY, f = window.innerWidth, h = window.innerHeight;
if (E !== n && (C = e.scroll,
E = n,
C === !0)) {
C = n;
do
if (C.offsetWidth < C.scrollWidth || C.offsetHeight < C.scrollHeight)
break;
while (C = C.parentNode)
}
C && (i = C,
r = C.getBoundingClientRect(),
o = (W(r.right - c) <= s) - (W(r.left - c) <= s),
a = (W(r.bottom - l) <= s) - (W(r.top - l) <= s)),
o || a || (o = (f - c <= s) - (c <= s),
a = (h - l <= s) - (l <= s),
(o || a) && (i = z)),
F.vx === o && F.vy === a && F.el === i || (F.el = i,
F.vx = o,
F.vy = a,
clearInterval(F.pid),
i && (F.pid = setInterval(function() {
i === z ? z.scrollTo(z.pageXOffset + o * u, z.pageYOffset + a * u) : (a && (i.scrollTop += a * u),
o && (i.scrollLeft += o * u))
}, 24)))
}
}, 30), X = function(t) {
var e = t.group;
e && "object" == typeof e || (e = t.group = {
name: e
}),
["pull", "put"].forEach(function(t) {
t in e || (e[t] = !0)
}),
t.groups = " " + e.name + (e.put.join ? " " + e.put.join(" ") : "") + " "
}
;
return t.prototype = {
constructor: t,
_onTapStart: function(t) {
var e = this
, i = this.el
, r = this.options
, o = t.type
, a = t.touches && t.touches[0]
, s = (a || t).target
, u = t.target.shadowRoot && t.path[0] || s
, l = r.filter;
if (!("mousedown" === o && 0 !== t.button || r.disabled) && (s = n(s, r.draggable, i))) {
if (M = v(s, r.draggable),
"function" == typeof l) {
if (l.call(this, t, s, this))
return c(e, u, "filter", s, i, M),
void t.preventDefault()
} else if (l && (l = l.split(",").some(function(t) {
if (t = n(u, t.trim(), i))
return c(e, t, "filter", s, i, M),
!0
})))
return void t.preventDefault();
r.handle && !n(u, r.handle, i) || this._prepareDragStart(t, a, s)
}
},
_prepareDragStart: function(t, e, n) {
var i, o = this, s = o.el, c = o.options, l = s.ownerDocument;
n && !b && n.parentNode === s && (j = t,
S = s,
b = n,
w = b.parentNode,
_ = b.nextSibling,
N = c.group,
i = function() {
o._disableDelayedDrag(),
b.draggable = !0,
a(b, o.options.chosenClass, !0),
o._triggerDragStart(e)
}
,
c.ignore.split(",").forEach(function(t) {
u(b, t.trim(), f)
}),
r(l, "mouseup", o._onDrop),
r(l, "touchend", o._onDrop),
r(l, "touchcancel", o._onDrop),
c.delay ? (r(l, "mouseup", o._disableDelayedDrag),
r(l, "touchend", o._disableDelayedDrag),
r(l, "touchcancel", o._disableDelayedDrag),
r(l, "mousemove", o._disableDelayedDrag),
r(l, "touchmove", o._disableDelayedDrag),
o._dragStartTimer = setTimeout(i, c.delay)) : i())
},
_disableDelayedDrag: function() {
var t = this.el.ownerDocument;
clearTimeout(this._dragStartTimer),
o(t, "mouseup", this._disableDelayedDrag),
o(t, "touchend", this._disableDelayedDrag),
o(t, "touchcancel", this._disableDelayedDrag),
o(t, "mousemove", this._disableDelayedDrag),
o(t, "touchmove", this._disableDelayedDrag)
},
_triggerDragStart: function(t) {
t ? (j = {
target: b,
clientX: t.clientX,
clientY: t.clientY
},
this._onDragStart(j, "touch")) : this.nativeDraggable ? (r(b, "dragend", this),
r(S, "dragstart", this._onDragStart)) : this._onDragStart(j, !0);
try {
B.selection ? setTimeout(function() {
B.selection.empty()
}) : window.getSelection().removeAllRanges()
} catch (e) {}
},
_dragStarted: function() {
S && b && (a(b, this.options.ghostClass, !0),
t.active = this,
c(this, S, "start", b, S, M))
},
_emulateDragOver: function() {
if (I) {
if (this._lastX === I.clientX && this._lastY === I.clientY)
return;
this._lastX = I.clientX,
this._lastY = I.clientY,
$ || s(x, "display", "none");
var t = B.elementFromPoint(I.clientX, I.clientY)
, e = t
, n = " " + this.options.group.name
, i = V.length;
if (e)
do {
if (e[R] && e[R].options.groups.indexOf(n) > -1) {
for (; i--; )
V[i]({
clientX: I.clientX,
clientY: I.clientY,
target: t,
rootEl: e
});
break
}
t = e
} while (e = e.parentNode);$ || s(x, "display", "")
}
},
_onTouchMove: function(e) {
if (j) {
t.active || this._dragStarted(),
this._appendGhost();
var n = e.touches ? e.touches[0] : e
, i = n.clientX - j.clientX
, r = n.clientY - j.clientY
, o = e.touches ? "translate3d(" + i + "px," + r + "px,0)" : "translate(" + i + "px," + r + "px)";
L = !0,
I = n,
s(x, "webkitTransform", o),
s(x, "mozTransform", o),
s(x, "msTransform", o),
s(x, "transform", o),
e.preventDefault()
}
},
_appendGhost: function() {
if (!x) {
var t, e = b.getBoundingClientRect(), n = s(b), i = this.options;
x = b.cloneNode(!0),
a(x, i.ghostClass, !1),
a(x, i.fallbackClass, !0),
s(x, "top", e.top - H(n.marginTop, 10)),
s(x, "left", e.left - H(n.marginLeft, 10)),
s(x, "width", e.width),
s(x, "height", e.height),
s(x, "opacity", "0.8"),
s(x, "position", "fixed"),
s(x, "zIndex", "100000"),
s(x, "pointerEvents", "none"),
i.fallbackOnBody && B.body.appendChild(x) || S.appendChild(x),
t = x.getBoundingClientRect(),
s(x, "width", 2 * e.width - t.width),
s(x, "height", 2 * e.height - t.height)
}
},
_onDragStart: function(t, e) {
var n = t.dataTransfer
, i = this.options;
this._offUpEvents(),
"clone" == N.pull && (T = b.cloneNode(!0),
s(T, "display", "none"),
S.insertBefore(T, b)),
e ? ("touch" === e ? (r(B, "touchmove", this._onTouchMove),
r(B, "touchend", this._onDrop),
r(B, "touchcancel", this._onDrop)) : (r(B, "mousemove", this._onTouchMove),
r(B, "mouseup", this._onDrop)),
this._loopId = setInterval(this._emulateDragOver, 50)) : (n && (n.effectAllowed = "move",
i.setData && i.setData.call(this, n, b)),
r(B, "drop", this),
setTimeout(this._dragStarted, 0))
},
_onDragOver: function(t) {
var i, r, o, a = this.el, u = this.options, c = u.group, f = c.put, p = N === c, v = u.sort;
if (void 0 !== t.preventDefault && (t.preventDefault(),
!u.dragoverBubble && t.stopPropagation()),
L = !0,
N && !u.disabled && (p ? v || (o = !S.contains(b)) : N.pull && f && (N.name === c.name || f.indexOf && ~f.indexOf(N.name))) && (void 0 === t.rootEl || t.rootEl === this.el)) {
if (Y(t, u, this.el),
q)
return;
if (i = n(t.target, u.draggable, a),
r = b.getBoundingClientRect(),
o)
return e(!0),
void (T || _ ? S.insertBefore(b, T || _) : v || S.appendChild(b));
if (0 === a.children.length || a.children[0] === x || a === t.target && (i = d(a, t))) {
if (i) {
if (i.animated)
return;
m = i.getBoundingClientRect()
}
e(p),
l(S, a, b, r, i, m) !== !1 && (b.contains(a) || (a.appendChild(b),
w = a),
this._animate(r, b),
i && this._animate(m, i))
} else if (i && !i.animated && i !== b && void 0 !== i.parentNode[R]) {
D !== i && (D = i,
k = s(i),
A = s(i.parentNode));
var g, m = i.getBoundingClientRect(), y = m.right - m.left, C = m.bottom - m.top, E = /left|right|inline/.test(k.cssFloat + k.display) || "flex" == A.display && 0 === A["flex-direction"].indexOf("row"), M = i.offsetWidth > b.offsetWidth, O = i.offsetHeight > b.offsetHeight, j = (E ? (t.clientX - m.left) / y : (t.clientY - m.top) / C) > .5, I = i.nextElementSibling, F = l(S, a, b, r, i, m);
if (F !== !1) {
if (q = !0,
setTimeout(h, 30),
e(p),
1 === F || F === -1)
g = 1 === F;
else if (E) {
var P = b.offsetTop
, z = i.offsetTop;
g = P === z ? i.previousElementSibling === b && !M || j && M : z > P
} else
g = I !== b && !O || j && O;
b.contains(a) || (g && !I ? a.appendChild(b) : i.parentNode.insertBefore(b, g ? I : i)),
w = b.parentNode,
this._animate(r, b),
this._animate(m, i)
}
}
}
},
_animate: function(t, e) {
var n = this.options.animation;
if (n) {
var i = e.getBoundingClientRect();
s(e, "transition", "none"),
s(e, "transform", "translate3d(" + (t.left - i.left) + "px," + (t.top - i.top) + "px,0)"),
e.offsetWidth,
s(e, "transition", "all " + n + "ms"),
s(e, "transform", "translate3d(0,0,0)"),
clearTimeout(e.animated),
e.animated = setTimeout(function() {
s(e, "transition", ""),
s(e, "transform", ""),
e.animated = !1
}, n)
}
},
_offUpEvents: function() {
var t = this.el.ownerDocument;
o(B, "touchmove", this._onTouchMove),
o(t, "mouseup", this._onDrop),
o(t, "touchend", this._onDrop),
o(t, "touchcancel", this._onDrop)
},
_onDrop: function(e) {
var n = this.el
, i = this.options;
clearInterval(this._loopId),
clearInterval(F.pid),
clearTimeout(this._dragStartTimer),
o(B, "mousemove", this._onTouchMove),
this.nativeDraggable && (o(B, "drop", this),
o(n, "dragstart", this._onDragStart)),
this._offUpEvents(),
e && (L && (e.preventDefault(),
!i.dropBubble && e.stopPropagation()),
x && x.parentNode.removeChild(x),
b && (this.nativeDraggable && o(b, "dragend", this),
f(b),
a(b, this.options.ghostClass, !1),
a(b, this.options.chosenClass, !1),
S !== w ? (O = v(b, i.draggable),
O >= 0 && (c(null , w, "sort", b, S, M, O),
c(this, S, "sort", b, S, M, O),
c(null , w, "add", b, S, M, O),
c(this, S, "remove", b, S, M, O))) : (T && T.parentNode.removeChild(T),
b.nextSibling !== _ && (O = v(b, i.draggable),
O >= 0 && (c(this, S, "update", b, S, M, O),
c(this, S, "sort", b, S, M, O)))),
t.active && (null != O && O !== -1 || (O = M),
c(this, S, "end", b, S, M, O),
this.save()))),
this._nulling()
},
_nulling: function() {
t.active === this && (S = b = w = x = _ = T = C = E = j = I = L = O = D = k = N = t.active = null )
},
handleEvent: function(t) {
var e = t.type;
"dragover" === e || "dragenter" === e ? b && (this._onDragOver(t),
i(t)) : "drop" !== e && "dragend" !== e || this._onDrop(t)
},
toArray: function() {
for (var t, e = [], i = this.el.children, r = 0, o = i.length, a = this.options; r < o; r++)
t = i[r],
n(t, a.draggable, this.el) && e.push(t.getAttribute(a.dataIdAttr) || p(t));
return e
},
sort: function(t) {
var e = {}
, i = this.el;
this.toArray().forEach(function(t, r) {
var o = i.children[r];
n(o, this.options.draggable, i) && (e[t] = o)
}, this),
t.forEach(function(t) {
e[t] && (i.removeChild(e[t]),
i.appendChild(e[t]))
})
},
save: function() {
var t = this.options.store;
t && t.set(this)
},
closest: function(t, e) {
return n(t, e || this.options.draggable, this.el)
},
option: function(t, e) {
var n = this.options;
return void 0 === e ? n[t] : (n[t] = e,
void ("group" === t && X(n)))
},
destroy: function() {
var t = this.el;
t[R] = null ,
o(t, "mousedown", this._onTapStart),
o(t, "touchstart", this._onTapStart),
this.nativeDraggable && (o(t, "dragover", this),
o(t, "dragenter", this)),
Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(t) {
t.removeAttribute("draggable")
}),
V.splice(V.indexOf(this._onDragOver), 1),
this._onDrop(),
this.el = t = null
}
},
t.utils = {
on: r,
off: o,
css: s,
find: u,
is: function(t, e) {
return !!n(t, e, t)
},
extend: y,
throttle: m,
closest: n,
toggleClass: a,
index: v
},
t.create = function(e, n) {
return new t(e,n)
}
,
t.version = "1.4.2",
t
})
}
, function(t, e, n) {
var i = n(48)
, r = n(26)
, o = n(112);
t.exports = function(t) {
return function(e, n, a) {
var s, u = i(e), c = r(u.length), l = o(a, c);
if (t && n != n) {
for (; c > l; )
if (s = u[l++],
s != s)
return !0
} else
for (; c > l; l++)
if ((t || l in u) && u[l] === n)
return t || l || 0;
return !t && -1
}
}
}
, function(t, e, n) {
"use strict";
var i = n(13)
, r = n(3)
, o = n(46)
, a = n(110)
, s = n(88)
, u = n(131)
, c = n(105)
, l = n(17)
, f = n(15)
, h = n(210)
, d = n(133)
, p = n(314);
t.exports = function(t, e, n, v, g, m) {
var y = i[t]
, b = y
, w = g ? "set" : "add"
, x = b && b.prototype
, T = {}
, S = function(t) {
var e = x[t];
o(x, t, "delete" == t ? function(t) {
return !(m && !l(t)) && e.call(this, 0 === t ? 0 : t)
}
: "has" == t ? function(t) {
return !(m && !l(t)) && e.call(this, 0 === t ? 0 : t)
}
: "get" == t ? function(t) {
return m && !l(t) ? void 0 : e.call(this, 0 === t ? 0 : t)
}
: "add" == t ? function(t) {
return e.call(this, 0 === t ? 0 : t),
this
}
: function(t, n) {
return e.call(this, 0 === t ? 0 : t, n),
this
}
)
}
;
if ("function" == typeof b && (m || x.forEach && !f(function() {
(new b).entries().next()
}))) {
var _ = new b
, C = _[w](m ? {} : -0, 1) != _
, E = f(function() {
_.has(1)
})
, D = h(function(t) {
new b(t)
})
, k = !m && f(function() {
for (var t = new b, e = 5; e--; )
t[w](e, e);
return !t.has(-0)
});
D || (b = e(function(e, n) {
c(e, b, t);
var i = p(new y, e, b);
return void 0 != n && u(n, g, i[w], i),
i
}),
b.prototype = x,
x.constructor = b),
(E || k) && (S("delete"),
S("has"),
g && S("get")),
(k || C) && S(w),
m && x.clear && delete x.clear
} else
b = v.getConstructor(e, t, g, w),
a(b.prototype, n),
s.NEED = !0;
return d(b, t),
T[t] = b,
r(r.G + r.W + r.F * (b != y), T),
m || v.setStrong(b, t, g),
b
}
}
, function(t, e, n) {
"use strict";
var i = n(45)
, r = n(46)
, o = n(15)
, a = n(60)
, s = n(19);
t.exports = function(t, e, n) {
var u = s(t)
, c = n(a, u, ""[t])
, l = c[0]
, f = c[1];
o(function() {
var e = {};
return e[u] = function() {
return 7
}
,
7 != ""[t](e)
}) && (r(String.prototype, t, l),
i(RegExp.prototype, u, 2 == e ? function(t, e) {
return f.call(t, this, e)
}
: function(t) {
return f.call(t, this)
}
))
}
}
, function(t, e, n) {
"use strict";
var i = n(10);
t.exports = function() {
var t = i(this)
, e = "";
return t.global && (e += "g"),
t.ignoreCase && (e += "i"),
t.multiline && (e += "m"),
t.unicode && (e += "u"),
t.sticky && (e += "y"),
e
}
}
, function(t, e) {
t.exports = function(t, e, n) {
var i = void 0 === n;
switch (e.length) {
case 0:
return i ? t() : t.call(n);
case 1:
return i ? t(e[0]) : t.call(n, e[0]);
case 2:
return i ? t(e[0], e[1]) : t.call(n, e[0], e[1]);
case 3:
return i ? t(e[0], e[1], e[2]) : t.call(n, e[0], e[1], e[2]);
case 4:
return i ? t(e[0], e[1], e[2], e[3]) : t.call(n, e[0], e[1], e[2], e[3])
}
return t.apply(n, e)
}
}
, function(t, e, n) {
var i = n(17)
, r = n(59)
, o = n(19)("match");
t.exports = function(t) {
var e;
return i(t) && (void 0 !== (e = t[o]) ? !!e : "RegExp" == r(t))
}
}
, function(t, e, n) {
var i = n(19)("iterator")
, r = !1;
try {
var o = [7][i]();
o["return"] = function() {
r = !0
}
,
Array.from(o, function() {
throw 2
})
} catch (a) {}
t.exports = function(t, e) {
if (!e && !r)
return !1;
var n = !1;
try {
var o = [7]
, a = o[i]();
a.next = function() {
return {
done: n = !0
}
}
,
o[i] = function() {
return a
}
,
t(o)
} catch (s) {}
return n
}
}
, function(t, e, n) {
t.exports = n(106) || !n(15)(function() {
var t = Math.random();
__defineSetter__.call(null , t, function() {}),
delete n(13)[t]
})
}
, function(t, e) {
e.f = Object.getOwnPropertySymbols
}
, function(t, e, n) {
var i = n(13)
, r = "__core-js_shared__"
, o = i[r] || (i[r] = {});
t.exports = function(t) {
return o[t] || (o[t] = {})
}
}
, function(t, e, n) {
for (var i, r = n(13), o = n(45), a = n(113), s = a("typed_array"), u = a("view"), c = !(!r.ArrayBuffer || !r.DataView), l = c, f = 0, h = 9, d = "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(","); f < h; )
(i = r[d[f++]]) ? (o(i.prototype, s, !0),
o(i.prototype, u, !0)) : l = !1;
t.exports = {
ABV: c,
CONSTR: l,
TYPED: s,
VIEW: u
}
}
, function(t, e, n) {
var i, r;
!function(n, o) {
i = [],
r = function() {
return n.Chartist = o()
}
.apply(e, i),
!(void 0 !== r && (t.exports = r))
}(this, function() {
var t = {
version: "0.9.8"
};
return function(t, e, n) {
"use strict";
n.namespaces = {
svg: "http://www.w3.org/2000/svg",
xmlns: "http://www.w3.org/2000/xmlns/",
xhtml: "http://www.w3.org/1999/xhtml",
xlink: "http://www.w3.org/1999/xlink",
ct: "http://gionkunz.github.com/chartist-js/ct"
},
n.noop = function(t) {
return t
}
,
n.alphaNumerate = function(t) {
return String.fromCharCode(97 + t % 26)
}
,
n.extend = function(t) {
t = t || {};
var e = Array.prototype.slice.call(arguments, 1);
return e.forEach(function(e) {
for (var i in e)
"object" != typeof e[i] || null === e[i] || e[i]instanceof Array ? t[i] = e[i] : t[i] = n.extend({}, t[i], e[i])
}),
t
}
,
n.replaceAll = function(t, e, n) {
return t.replace(new RegExp(e,"g"), n)
}
,
n.ensureUnit = function(t, e) {
return "number" == typeof t && (t += e),
t
}
,
n.quantity = function(t) {
if ("string" == typeof t) {
var e = /^(\d+)\s*(.*)$/g.exec(t);
return {
value: +e[1],
unit: e[2] || void 0
}
}
return {
value: t
}
}
,
n.querySelector = function(t) {
return t instanceof Node ? t : e.querySelector(t)
}
,
n.times = function(t) {
return Array.apply(null , new Array(t))
}
,
n.sum = function(t, e) {
return t + (e ? e : 0)
}
,
n.mapMultiply = function(t) {
return function(e) {
return e * t
}
}
,
n.mapAdd = function(t) {
return function(e) {
return e + t
}
}
,
n.serialMap = function(t, e) {
var i = []
, r = Math.max.apply(null , t.map(function(t) {
return t.length
}));
return n.times(r).forEach(function(n, r) {
var o = t.map(function(t) {
return t[r]
});
i[r] = e.apply(null , o)
}),
i
}
,
n.roundWithPrecision = function(t, e) {
var i = Math.pow(10, e || n.precision);
return Math.round(t * i) / i
}
,
n.precision = 8,
n.escapingMap = {
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
'"': "&quot;",
"'": "&#039;"
},
n.serialize = function(t) {
return null === t || void 0 === t ? t : ("number" == typeof t ? t = "" + t : "object" == typeof t && (t = JSON.stringify({
data: t
})),
Object.keys(n.escapingMap).reduce(function(t, e) {
return n.replaceAll(t, e, n.escapingMap[e])
}, t))
}
,
n.deserialize = function(t) {
if ("string" != typeof t)
return t;
t = Object.keys(n.escapingMap).reduce(function(t, e) {
return n.replaceAll(t, n.escapingMap[e], e)
}, t);
try {
t = JSON.parse(t),
t = void 0 !== t.data ? t.data : t
} catch (e) {}
return t
}
,
n.createSvg = function(t, e, i, r) {
var o;
return e = e || "100%",
i = i || "100%",
Array.prototype.slice.call(t.querySelectorAll("svg")).filter(function(t) {
return t.getAttributeNS(n.namespaces.xmlns, "ct")
}).forEach(function(e) {
t.removeChild(e)
}),
o = new n.Svg("svg").attr({
width: e,
height: i
}).addClass(r).attr({
style: "width: " + e + "; height: " + i + ";"
}),
t.appendChild(o._node),
o
}
,
n.normalizeData = function(t) {
if (t = t || {
series: [],
labels: []
},
t.series = t.series || [],
t.labels = t.labels || [],
t.series.length > 0 && 0 === t.labels.length) {
var e, i = n.getDataArray(t);
e = i.every(function(t) {
return t instanceof Array
}) ? Math.max.apply(null , i.map(function(t) {
return t.length
})) : i.length,
t.labels = n.times(e).map(function() {
return ""
})
}
return t
}
,
n.reverseData = function(t) {
t.labels.reverse(),
t.series.reverse();
for (var e = 0; e < t.series.length; e++)
"object" == typeof t.series[e] && void 0 !== t.series[e].data ? t.series[e].data.reverse() : t.series[e]instanceof Array && t.series[e].reverse()
}
,
n.getDataArray = function(t, e, i) {
function r(t) {
if (!n.isFalseyButZero(t)) {
if ((t.data || t)instanceof Array)
return (t.data || t).map(r);
if (t.hasOwnProperty("value"))
return r(t.value);
if (i) {
var e = {};
return "string" == typeof i ? e[i] = n.getNumberOrUndefined(t) : e.y = n.getNumberOrUndefined(t),
e.x = t.hasOwnProperty("x") ? n.getNumberOrUndefined(t.x) : e.x,
e.y = t.hasOwnProperty("y") ? n.getNumberOrUndefined(t.y) : e.y,
e
}
return n.getNumberOrUndefined(t)
}
}
return (e && !t.reversed || !e && t.reversed) && (n.reverseData(t),
t.reversed = !t.reversed),
t.series.map(r)
}
,
n.normalizePadding = function(t, e) {
return e = e || 0,
"number" == typeof t ? {
top: t,
right: t,
bottom: t,
left: t
} : {
top: "number" == typeof t.top ? t.top : e,
right: "number" == typeof t.right ? t.right : e,
bottom: "number" == typeof t.bottom ? t.bottom : e,
left: "number" == typeof t.left ? t.left : e
}
}
,
n.getMetaData = function(t, e) {
var i = t.data ? t.data[e] : t[e];
return i ? n.serialize(i.meta) : void 0
}
,
n.orderOfMagnitude = function(t) {
return Math.floor(Math.log(Math.abs(t)) / Math.LN10)
}
,
n.projectLength = function(t, e, n) {
return e / n.range * t
}
,
n.getAvailableHeight = function(t, e) {
return Math.max((n.quantity(e.height).value || t.height()) - (e.chartPadding.top + e.chartPadding.bottom) - e.axisX.offset, 0)
}
,
n.getHighLow = function(t, e, i) {
function r(t) {
if (void 0 !== t)
if (t instanceof Array)
for (var e = 0; e < t.length; e++)
r(t[e]);
else {
var n = i ? +t[i] : +t;
a && n > o.high && (o.high = n),
s && n < o.low && (o.low = n)
}
}
e = n.extend({}, e, i ? e["axis" + i.toUpperCase()] : {});
var o = {
high: void 0 === e.high ? -Number.MAX_VALUE : +e.high,
low: void 0 === e.low ? Number.MAX_VALUE : +e.low
}
, a = void 0 === e.high
, s = void 0 === e.low;
return (a || s) && r(t),
(e.referenceValue || 0 === e.referenceValue) && (o.high = Math.max(e.referenceValue, o.high),
o.low = Math.min(e.referenceValue, o.low)),
o.high <= o.low && (0 === o.low ? o.high = 1 : o.low < 0 ? o.high = 0 : o.high > 0 ? o.low = 0 : (o.high = 1,
o.low = 0)),
o
}
,
n.isNum = function(t) {
return !isNaN(t) && isFinite(t)
}
,
n.isFalseyButZero = function(t) {
return !t && 0 !== t
}
,
n.getNumberOrUndefined = function(t) {
return isNaN(+t) ? void 0 : +t
}
,
n.getMultiValue = function(t, e) {
return n.isNum(t) ? +t : t ? t[e || "y"] || 0 : 0
}
,
n.rho = function(t) {
function e(t, n) {
return t % n === 0 ? n : e(n, t % n)
}
function n(t) {
return t * t + 1
}
if (1 === t)
return t;
var i, r = 2, o = 2;
if (t % 2 === 0)
return 2;
do
r = n(r) % t,
o = n(n(o)) % t,
i = e(Math.abs(r - o), t);
while (1 === i);return i
}
,
n.getBounds = function(t, e, i, r) {
var o, a, s, u = 0, c = {
high: e.high,
low: e.low
};
c.valueRange = c.high - c.low,
c.oom = n.orderOfMagnitude(c.valueRange),
c.step = Math.pow(10, c.oom),
c.min = Math.floor(c.low / c.step) * c.step,
c.max = Math.ceil(c.high / c.step) * c.step,
c.range = c.max - c.min,
c.numberOfSteps = Math.round(c.range / c.step);
var l = n.projectLength(t, c.step, c)
, f = l < i
, h = r ? n.rho(c.range) : 0;
if (r && n.projectLength(t, 1, c) >= i)
c.step = 1;
else if (r && h < c.step && n.projectLength(t, h, c) >= i)
c.step = h;
else
for (; ; ) {
if (f && n.projectLength(t, c.step, c) <= i)
c.step *= 2;
else {
if (f || !(n.projectLength(t, c.step / 2, c) >= i))
break;
if (c.step /= 2,
r && c.step % 1 !== 0) {
c.step *= 2;
break
}
}
if (u++ > 1e3)
throw new Error("Exceeded maximum number of iterations while optimizing scale step!")
}
var d = 2.221e-16;
for (c.step = Math.max(c.step, d),
a = c.min,
s = c.max; a + c.step <= c.low; )
a += c.step;
for (; s - c.step >= c.high; )
s -= c.step;
c.min = a,
c.max = s,
c.range = c.max - c.min;
var p = [];
for (o = c.min; o <= c.max; o += c.step) {
var v = n.roundWithPrecision(o);
v !== p[p.length - 1] && p.push(o)
}
return c.values = p,
c
}
,
n.polarToCartesian = function(t, e, n, i) {
var r = (i - 90) * Math.PI / 180;
return {
x: t + n * Math.cos(r),
y: e + n * Math.sin(r)
}
}
,
n.createChartRect = function(t, e, i) {
var r = !(!e.axisX && !e.axisY)
, o = r ? e.axisY.offset : 0
, a = r ? e.axisX.offset : 0
, s = t.width() || n.quantity(e.width).value || 0
, u = t.height() || n.quantity(e.height).value || 0
, c = n.normalizePadding(e.chartPadding, i);
s = Math.max(s, o + c.left + c.right),
u = Math.max(u, a + c.top + c.bottom);
var l = {
padding: c,
width: function() {
return this.x2 - this.x1
},
height: function() {
return this.y1 - this.y2
}
};
return r ? ("start" === e.axisX.position ? (l.y2 = c.top + a,
l.y1 = Math.max(u - c.bottom, l.y2 + 1)) : (l.y2 = c.top,
l.y1 = Math.max(u - c.bottom - a, l.y2 + 1)),
"start" === e.axisY.position ? (l.x1 = c.left + o,
l.x2 = Math.max(s - c.right, l.x1 + 1)) : (l.x1 = c.left,
l.x2 = Math.max(s - c.right - o, l.x1 + 1))) : (l.x1 = c.left,
l.x2 = Math.max(s - c.right, l.x1 + 1),
l.y2 = c.top,
l.y1 = Math.max(u - c.bottom, l.y2 + 1)),
l
}
,
n.createGrid = function(t, e, i, r, o, a, s, u) {
var c = {};
c[i.units.pos + "1"] = t,
c[i.units.pos + "2"] = t,
c[i.counterUnits.pos + "1"] = r,
c[i.counterUnits.pos + "2"] = r + o;
var l = a.elem("line", c, s.join(" "));
u.emit("draw", n.extend({
type: "grid",
axis: i,
index: e,
group: a,
element: l
}, c))
}
,
n.createLabel = function(t, e, i, r, o, a, s, u, c, l, f) {
var h, d = {};
if (d[o.units.pos] = t + s[o.units.pos],
d[o.counterUnits.pos] = s[o.counterUnits.pos],
d[o.units.len] = e,
d[o.counterUnits.len] = Math.max(0, a - 10),
l) {
var p = '<span class="' + c.join(" ") + '" style="' + o.units.len + ": " + Math.round(d[o.units.len]) + "px; " + o.counterUnits.len + ": " + Math.round(d[o.counterUnits.len]) + 'px">' + r[i] + "</span>";
h = u.foreignObject(p, n.extend({
style: "overflow: visible;"
}, d))
} else
h = u.elem("text", d, c.join(" ")).text(r[i]);
f.emit("draw", n.extend({
type: "label",
axis: o,
index: i,
group: u,
element: h,
text: r[i]
}, d))
}
,
n.getSeriesOption = function(t, e, n) {
if (t.name && e.series && e.series[t.name]) {
var i = e.series[t.name];
return i.hasOwnProperty(n) ? i[n] : e[n]
}
return e[n]
}
,
n.optionsProvider = function(e, i, r) {
function o(e) {
var o = s;
if (s = n.extend({}, c),
i)
for (u = 0; u < i.length; u++) {
var a = t.matchMedia(i[u][0]);
a.matches && (s = n.extend(s, i[u][1]))
}
r && e && r.emit("optionsChanged", {
previousOptions: o,
currentOptions: s
})
}
function a() {
l.forEach(function(t) {
t.removeListener(o)
})
}
var s, u, c = n.extend({}, e), l = [];
if (!t.matchMedia)
throw "window.matchMedia not found! Make sure you're using a polyfill.";
if (i)
for (u = 0; u < i.length; u++) {
var f = t.matchMedia(i[u][0]);
f.addListener(o),
l.push(f)
}
return o(),
{
removeMediaQueryListeners: a,
getCurrentOptions: function() {
return n.extend({}, s)
}
}
}
,
n.splitIntoSegments = function(t, e, i) {
var r = {
increasingX: !1,
fillHoles: !1
};
i = n.extend({}, r, i);
for (var o = [], a = !0, s = 0; s < t.length; s += 2)
void 0 === e[s / 2].value ? i.fillHoles || (a = !0) : (i.increasingX && s >= 2 && t[s] <= t[s - 2] && (a = !0),
a && (o.push({
pathCoordinates: [],
valueData: []
}),
a = !1),
o[o.length - 1].pathCoordinates.push(t[s], t[s + 1]),
o[o.length - 1].valueData.push(e[s / 2]));
return o
}
}(window, document, t),
function(t, e, n) {
"use strict";
n.Interpolation = {},
n.Interpolation.none = function(t) {
var e = {
fillHoles: !1
};
return t = n.extend({}, e, t),
function(e, i) {
for (var r = new n.Svg.Path, o = !0, a = 0; a < e.length; a += 2) {
var s = e[a]
, u = e[a + 1]
, c = i[a / 2];
void 0 !== c.value ? (o ? r.move(s, u, !1, c) : r.line(s, u, !1, c),
o = !1) : t.fillHoles || (o = !0)
}
return r
}
}
,
n.Interpolation.simple = function(t) {
var e = {
divisor: 2,
fillHoles: !1
};
t = n.extend({}, e, t);
var i = 1 / Math.max(1, t.divisor);
return function(e, r) {
for (var o, a, s, u = new n.Svg.Path, c = 0; c < e.length; c += 2) {
var l = e[c]
, f = e[c + 1]
, h = (l - o) * i
, d = r[c / 2];
void 0 !== d.value ? (void 0 === s ? u.move(l, f, !1, d) : u.curve(o + h, a, l - h, f, l, f, !1, d),
o = l,
a = f,
s = d) : t.fillHoles || (o = l = s = void 0)
}
return u
}
}
,
n.Interpolation.cardinal = function(t) {
var e = {
tension: 1,
fillHoles: !1
};
t = n.extend({}, e, t);
var i = Math.min(1, Math.max(0, t.tension))
, r = 1 - i;
return function o(e, a) {
var s = n.splitIntoSegments(e, a, {
fillHoles: t.fillHoles
});
if (s.length) {
if (s.length > 1) {
var u = [];
return s.forEach(function(t) {
u.push(o(t.pathCoordinates, t.valueData))
}),
n.Svg.Path.join(u)
}
if (e = s[0].pathCoordinates,
a = s[0].valueData,
e.length <= 4)
return n.Interpolation.none()(e, a);
for (var c, l = (new n.Svg.Path).move(e[0], e[1], !1, a[0]), f = 0, h = e.length; h - 2 * !c > f; f += 2) {
var d = [{
x: +e[f - 2],
y: +e[f - 1]
}, {
x: +e[f],
y: +e[f + 1]
}, {
x: +e[f + 2],
y: +e[f + 3]
}, {
x: +e[f + 4],
y: +e[f + 5]
}];
c ? f ? h - 4 === f ? d[3] = {
x: +e[0],
y: +e[1]
} : h - 2 === f && (d[2] = {
x: +e[0],
y: +e[1]
},
d[3] = {
x: +e[2],
y: +e[3]
}) : d[0] = {
x: +e[h - 2],
y: +e[h - 1]
} : h - 4 === f ? d[3] = d[2] : f || (d[0] = {
x: +e[f],
y: +e[f + 1]
}),
l.curve(i * (-d[0].x + 6 * d[1].x + d[2].x) / 6 + r * d[2].x, i * (-d[0].y + 6 * d[1].y + d[2].y) / 6 + r * d[2].y, i * (d[1].x + 6 * d[2].x - d[3].x) / 6 + r * d[2].x, i * (d[1].y + 6 * d[2].y - d[3].y) / 6 + r * d[2].y, d[2].x, d[2].y, !1, a[(f + 2) / 2])
}
return l
}
return n.Interpolation.none()([])
}
}
,
n.Interpolation.monotoneCubic = function(t) {
var e = {
fillHoles: !1
};
return t = n.extend({}, e, t),
function i(e, r) {
var o = n.splitIntoSegments(e, r, {
fillHoles: t.fillHoles,
increasingX: !0
});
if (o.length) {
if (o.length > 1) {
var a = [];
return o.forEach(function(t) {
a.push(i(t.pathCoordinates, t.valueData))
}),
n.Svg.Path.join(a)
}
if (e = o[0].pathCoordinates,
r = o[0].valueData,
e.length <= 4)
return n.Interpolation.none()(e, r);
var s, u, c = [], l = [], f = e.length / 2, h = [], d = [], p = [], v = [];
for (s = 0; s < f; s++)
c[s] = e[2 * s],
l[s] = e[2 * s + 1];
for (s = 0; s < f - 1; s++)
p[s] = l[s + 1] - l[s],
v[s] = c[s + 1] - c[s],
d[s] = p[s] / v[s];
for (h[0] = d[0],
h[f - 1] = d[f - 2],
s = 1; s < f - 1; s++)
0 === d[s] || 0 === d[s - 1] || d[s - 1] > 0 != d[s] > 0 ? h[s] = 0 : (h[s] = 3 * (v[s - 1] + v[s]) / ((2 * v[s] + v[s - 1]) / d[s - 1] + (v[s] + 2 * v[s - 1]) / d[s]),
isFinite(h[s]) || (h[s] = 0));
for (u = (new n.Svg.Path).move(c[0], l[0], !1, r[0]),
s = 0; s < f - 1; s++)
u.curve(c[s] + v[s] / 3, l[s] + h[s] * v[s] / 3, c[s + 1] - v[s] / 3, l[s + 1] - h[s + 1] * v[s] / 3, c[s + 1], l[s + 1], !1, r[s + 1]);
return u
}
return n.Interpolation.none()([])
}
}
,
n.Interpolation.step = function(t) {
var e = {
postpone: !0,
fillHoles: !1
};
return t = n.extend({}, e, t),
function(e, i) {
for (var r, o, a, s = new n.Svg.Path, u = 0; u < e.length; u += 2) {
var c = e[u]
, l = e[u + 1]
, f = i[u / 2];
void 0 !== f.value ? (void 0 === a ? s.move(c, l, !1, f) : (t.postpone ? s.line(c, o, !1, a) : s.line(r, l, !1, f),
s.line(c, l, !1, f)),
r = c,
o = l,
a = f) : t.fillHoles || (r = o = a = void 0)
}
return s
}
}
}(window, document, t),
function(t, e, n) {
"use strict";
n.EventEmitter = function() {
function t(t, e) {
i[t] = i[t] || [],
i[t].push(e)
}
function e(t, e) {
i[t] && (e ? (i[t].splice(i[t].indexOf(e), 1),
0 === i[t].length && delete i[t]) : delete i[t])
}
function n(t, e) {
i[t] && i[t].forEach(function(t) {
t(e)
}),
i["*"] && i["*"].forEach(function(n) {
n(t, e)
})
}
var i = [];
return {
addEventHandler: t,
removeEventHandler: e,
emit: n
}
}
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t) {
var e = [];
if (t.length)
for (var n = 0; n < t.length; n++)
e.push(t[n]);
return e
}
function r(t, e) {
var i = e || this.prototype || n.Class
, r = Object.create(i);
n.Class.cloneDefinitions(r, t);
var o = function() {
var t, e = r.constructor || function() {}
;
return t = this === n ? Object.create(r) : this,
e.apply(t, Array.prototype.slice.call(arguments, 0)),
t
}
;
return o.prototype = r,
o["super"] = i,
o.extend = this.extend,
o
}
function o() {
var t = i(arguments)
, e = t[0];
return t.splice(1, t.length - 1).forEach(function(t) {
Object.getOwnPropertyNames(t).forEach(function(n) {
delete e[n],
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n))
})
}),
e
}
n.Class = {
extend: r,
cloneDefinitions: o
}
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t, e, i) {
return t && (this.data = t,
this.eventEmitter.emit("data", {
type: "update",
data: this.data
})),
e && (this.options = n.extend({}, i ? this.options : this.defaultOptions, e),
this.initializeTimeoutId || (this.optionsProvider.removeMediaQueryListeners(),
this.optionsProvider = n.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter))),
this.initializeTimeoutId || this.createChart(this.optionsProvider.getCurrentOptions()),
this
}
function r() {
return this.initializeTimeoutId ? t.clearTimeout(this.initializeTimeoutId) : (t.removeEventListener("resize", this.resizeListener),
this.optionsProvider.removeMediaQueryListeners()),
this
}
function o(t, e) {
return this.eventEmitter.addEventHandler(t, e),
this
}
function a(t, e) {
return this.eventEmitter.removeEventHandler(t, e),
this
}
function s() {
t.addEventListener("resize", this.resizeListener),
this.optionsProvider = n.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter),
this.eventEmitter.addEventHandler("optionsChanged", function() {
this.update()
}
.bind(this)),
this.options.plugins && this.options.plugins.forEach(function(t) {
t instanceof Array ? t[0](this, t[1]) : t(this)
}
.bind(this)),
this.eventEmitter.emit("data", {
type: "initial",
data: this.data
}),
this.createChart(this.optionsProvider.getCurrentOptions()),
this.initializeTimeoutId = void 0
}
function u(t, e, i, r, o) {
this.container = n.querySelector(t),
this.data = e,
this.defaultOptions = i,
this.options = r,
this.responsiveOptions = o,
this.eventEmitter = n.EventEmitter(),
this.supportsForeignObject = n.Svg.isSupported("Extensibility"),
this.supportsAnimations = n.Svg.isSupported("AnimationEventsAttribute"),
this.resizeListener = function() {
this.update()
}
.bind(this),
this.container && (this.container.__chartist__ && this.container.__chartist__.detach(),
this.container.__chartist__ = this),
this.initializeTimeoutId = setTimeout(s.bind(this), 0)
}
n.Base = n.Class.extend({
constructor: u,
optionsProvider: void 0,
container: void 0,
svg: void 0,
eventEmitter: void 0,
createChart: function() {
throw new Error("Base chart type can't be instantiated!")
},
update: i,
detach: r,
on: o,
off: a,
version: n.version,
supportsForeignObject: !1
})
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t, i, r, o, a) {
t instanceof Element ? this._node = t : (this._node = e.createElementNS(n.namespaces.svg, t),
"svg" === t && this.attr({
"xmlns:ct": n.namespaces.ct
})),
i && this.attr(i),
r && this.addClass(r),
o && (a && o._node.firstChild ? o._node.insertBefore(this._node, o._node.firstChild) : o._node.appendChild(this._node))
}
function r(t, e) {
return "string" == typeof t ? e ? this._node.getAttributeNS(e, t) : this._node.getAttribute(t) : (Object.keys(t).forEach(function(e) {
if (void 0 !== t[e])
if (e.indexOf(":") !== -1) {
var i = e.split(":");
this._node.setAttributeNS(n.namespaces[i[0]], e, t[e])
} else
this._node.setAttribute(e, t[e]);
}
.bind(this)),
this)
}
function o(t, e, i, r) {
return new n.Svg(t,e,i,this,r)
}
function a() {
return this._node.parentNode instanceof SVGElement ? new n.Svg(this._node.parentNode) : null
}
function s() {
for (var t = this._node; "svg" !== t.nodeName; )
t = t.parentNode;
return new n.Svg(t)
}
function u(t) {
var e = this._node.querySelector(t);
return e ? new n.Svg(e) : null
}
function c(t) {
var e = this._node.querySelectorAll(t);
return e.length ? new n.Svg.List(e) : null
}
function l(t, i, r, o) {
if ("string" == typeof t) {
var a = e.createElement("div");
a.innerHTML = t,
t = a.firstChild
}
t.setAttribute("xmlns", n.namespaces.xmlns);
var s = this.elem("foreignObject", i, r, o);
return s._node.appendChild(t),
s
}
function f(t) {
return this._node.appendChild(e.createTextNode(t)),
this
}
function h() {
for (; this._node.firstChild; )
this._node.removeChild(this._node.firstChild);
return this
}
function d() {
return this._node.parentNode.removeChild(this._node),
this.parent()
}
function p(t) {
return this._node.parentNode.replaceChild(t._node, this._node),
t
}
function v(t, e) {
return e && this._node.firstChild ? this._node.insertBefore(t._node, this._node.firstChild) : this._node.appendChild(t._node),
this
}
function g() {
return this._node.getAttribute("class") ? this._node.getAttribute("class").trim().split(/\s+/) : []
}
function m(t) {
return this._node.setAttribute("class", this.classes(this._node).concat(t.trim().split(/\s+/)).filter(function(t, e, n) {
return n.indexOf(t) === e
}).join(" ")),
this
}
function y(t) {
var e = t.trim().split(/\s+/);
return this._node.setAttribute("class", this.classes(this._node).filter(function(t) {
return e.indexOf(t) === -1
}).join(" ")),
this
}
function b() {
return this._node.setAttribute("class", ""),
this
}
function w() {
return this._node.getBoundingClientRect().height
}
function x() {
return this._node.getBoundingClientRect().width
}
function T(t, e, i) {
return void 0 === e && (e = !0),
Object.keys(t).forEach(function(r) {
function o(t, e) {
var o, a, s, u = {};
t.easing && (s = t.easing instanceof Array ? t.easing : n.Svg.Easing[t.easing],
delete t.easing),
t.begin = n.ensureUnit(t.begin, "ms"),
t.dur = n.ensureUnit(t.dur, "ms"),
s && (t.calcMode = "spline",
t.keySplines = s.join(" "),
t.keyTimes = "0;1"),
e && (t.fill = "freeze",
u[r] = t.from,
this.attr(u),
a = n.quantity(t.begin || 0).value,
t.begin = "indefinite"),
o = this.elem("animate", n.extend({
attributeName: r
}, t)),
e && setTimeout(function() {
try {
o._node.beginElement()
} catch (e) {
u[r] = t.to,
this.attr(u),
o.remove()
}
}
.bind(this), a),
i && o._node.addEventListener("beginEvent", function() {
i.emit("animationBegin", {
element: this,
animate: o._node,
params: t
})
}
.bind(this)),
o._node.addEventListener("endEvent", function() {
i && i.emit("animationEnd", {
element: this,
animate: o._node,
params: t
}),
e && (u[r] = t.to,
this.attr(u),
o.remove())
}
.bind(this))
}
t[r]instanceof Array ? t[r].forEach(function(t) {
o.bind(this)(t, !1)
}
.bind(this)) : o.bind(this)(t[r], e)
}
.bind(this)),
this
}
function S(t) {
var e = this;
this.svgElements = [];
for (var i = 0; i < t.length; i++)
this.svgElements.push(new n.Svg(t[i]));
Object.keys(n.Svg.prototype).filter(function(t) {
return ["constructor", "parent", "querySelector", "querySelectorAll", "replace", "append", "classes", "height", "width"].indexOf(t) === -1
}).forEach(function(t) {
e[t] = function() {
var i = Array.prototype.slice.call(arguments, 0);
return e.svgElements.forEach(function(e) {
n.Svg.prototype[t].apply(e, i)
}),
e
}
})
}
n.Svg = n.Class.extend({
constructor: i,
attr: r,
elem: o,
parent: a,
root: s,
querySelector: u,
querySelectorAll: c,
foreignObject: l,
text: f,
empty: h,
remove: d,
replace: p,
append: v,
classes: g,
addClass: m,
removeClass: y,
removeAllClasses: b,
height: w,
width: x,
animate: T
}),
n.Svg.isSupported = function(t) {
return e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#" + t, "1.1")
}
;
var _ = {
easeInSine: [.47, 0, .745, .715],
easeOutSine: [.39, .575, .565, 1],
easeInOutSine: [.445, .05, .55, .95],
easeInQuad: [.55, .085, .68, .53],
easeOutQuad: [.25, .46, .45, .94],
easeInOutQuad: [.455, .03, .515, .955],
easeInCubic: [.55, .055, .675, .19],
easeOutCubic: [.215, .61, .355, 1],
easeInOutCubic: [.645, .045, .355, 1],
easeInQuart: [.895, .03, .685, .22],
easeOutQuart: [.165, .84, .44, 1],
easeInOutQuart: [.77, 0, .175, 1],
easeInQuint: [.755, .05, .855, .06],
easeOutQuint: [.23, 1, .32, 1],
easeInOutQuint: [.86, 0, .07, 1],
easeInExpo: [.95, .05, .795, .035],
easeOutExpo: [.19, 1, .22, 1],
easeInOutExpo: [1, 0, 0, 1],
easeInCirc: [.6, .04, .98, .335],
easeOutCirc: [.075, .82, .165, 1],
easeInOutCirc: [.785, .135, .15, .86],
easeInBack: [.6, -.28, .735, .045],
easeOutBack: [.175, .885, .32, 1.275],
easeInOutBack: [.68, -.55, .265, 1.55]
};
n.Svg.Easing = _,
n.Svg.List = n.Class.extend({
constructor: S
})
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t, e, i, r, o, a) {
var s = n.extend({
command: o ? t.toLowerCase() : t.toUpperCase()
}, e, a ? {
data: a
} : {});
i.splice(r, 0, s)
}
function r(t, e) {
t.forEach(function(n, i) {
w[n.command.toLowerCase()].forEach(function(r, o) {
e(n, r, i, o, t)
})
})
}
function o(t, e) {
this.pathElements = [],
this.pos = 0,
this.close = t,
this.options = n.extend({}, x, e)
}
function a(t) {
return void 0 !== t ? (this.pos = Math.max(0, Math.min(this.pathElements.length, t)),
this) : this.pos
}
function s(t) {
return this.pathElements.splice(this.pos, t),
this
}
function u(t, e, n, r) {
return i("M", {
x: +t,
y: +e
}, this.pathElements, this.pos++, n, r),
this
}
function c(t, e, n, r) {
return i("L", {
x: +t,
y: +e
}, this.pathElements, this.pos++, n, r),
this
}
function l(t, e, n, r, o, a, s, u) {
return i("C", {
x1: +t,
y1: +e,
x2: +n,
y2: +r,
x: +o,
y: +a
}, this.pathElements, this.pos++, s, u),
this
}
function f(t, e, n, r, o, a, s, u, c) {
return i("A", {
rx: +t,
ry: +e,
xAr: +n,
lAf: +r,
sf: +o,
x: +a,
y: +s
}, this.pathElements, this.pos++, u, c),
this
}
function h(t) {
var e = t.replace(/([A-Za-z])([0-9])/g, "$1 $2").replace(/([0-9])([A-Za-z])/g, "$1 $2").split(/[\s,]+/).reduce(function(t, e) {
return e.match(/[A-Za-z]/) && t.push([]),
t[t.length - 1].push(e),
t
}, []);
"Z" === e[e.length - 1][0].toUpperCase() && e.pop();
var i = e.map(function(t) {
var e = t.shift()
, i = w[e.toLowerCase()];
return n.extend({
command: e
}, i.reduce(function(e, n, i) {
return e[n] = +t[i],
e
}, {}))
})
, r = [this.pos, 0];
return Array.prototype.push.apply(r, i),
Array.prototype.splice.apply(this.pathElements, r),
this.pos += i.length,
this
}
function d() {
var t = Math.pow(10, this.options.accuracy);
return this.pathElements.reduce(function(e, n) {
var i = w[n.command.toLowerCase()].map(function(e) {
return this.options.accuracy ? Math.round(n[e] * t) / t : n[e]
}
.bind(this));
return e + n.command + i.join(",")
}
.bind(this), "") + (this.close ? "Z" : "")
}
function p(t, e) {
return r(this.pathElements, function(n, i) {
n[i] *= "x" === i[0] ? t : e
}),
this
}
function v(t, e) {
return r(this.pathElements, function(n, i) {
n[i] += "x" === i[0] ? t : e
}),
this
}
function g(t) {
return r(this.pathElements, function(e, n, i, r, o) {
var a = t(e, n, i, r, o);
(a || 0 === a) && (e[n] = a)
}),
this
}
function m(t) {
var e = new n.Svg.Path(t || this.close);
return e.pos = this.pos,
e.pathElements = this.pathElements.slice().map(function(t) {
return n.extend({}, t)
}),
e.options = n.extend({}, this.options),
e
}
function y(t) {
var e = [new n.Svg.Path];
return this.pathElements.forEach(function(i) {
i.command === t.toUpperCase() && 0 !== e[e.length - 1].pathElements.length && e.push(new n.Svg.Path),
e[e.length - 1].pathElements.push(i)
}),
e
}
function b(t, e, i) {
for (var r = new n.Svg.Path(e,i), o = 0; o < t.length; o++)
for (var a = t[o], s = 0; s < a.pathElements.length; s++)
r.pathElements.push(a.pathElements[s]);
return r
}
var w = {
m: ["x", "y"],
l: ["x", "y"],
c: ["x1", "y1", "x2", "y2", "x", "y"],
a: ["rx", "ry", "xAr", "lAf", "sf", "x", "y"]
}
, x = {
accuracy: 3
};
n.Svg.Path = n.Class.extend({
constructor: o,
position: a,
remove: s,
move: u,
line: c,
curve: l,
arc: f,
scale: p,
translate: v,
transform: g,
parse: h,
stringify: d,
clone: m,
splitByCommand: y
}),
n.Svg.Path.elementDescriptions = w,
n.Svg.Path.join = b
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t, e, n, i) {
this.units = t,
this.counterUnits = t === o.x ? o.y : o.x,
this.chartRect = e,
this.axisLength = e[t.rectEnd] - e[t.rectStart],
this.gridOffset = e[t.rectOffset],
this.ticks = n,
this.options = i
}
function r(t, e, i, r, o) {
var a = r["axis" + this.units.pos.toUpperCase()]
, s = this.ticks.map(this.projectValue.bind(this))
, u = this.ticks.map(a.labelInterpolationFnc);
s.forEach(function(c, l) {
var f, h = {
x: 0,
y: 0
};
f = s[l + 1] ? s[l + 1] - c : Math.max(this.axisLength - c, 30),
n.isFalseyButZero(u[l]) && "" !== u[l] || ("x" === this.units.pos ? (c = this.chartRect.x1 + c,
h.x = r.axisX.labelOffset.x,
"start" === r.axisX.position ? h.y = this.chartRect.padding.top + r.axisX.labelOffset.y + (i ? 5 : 20) : h.y = this.chartRect.y1 + r.axisX.labelOffset.y + (i ? 5 : 20)) : (c = this.chartRect.y1 - c,
h.y = r.axisY.labelOffset.y - (i ? f : 0),
"start" === r.axisY.position ? h.x = i ? this.chartRect.padding.left + r.axisY.labelOffset.x : this.chartRect.x1 - 10 : h.x = this.chartRect.x2 + r.axisY.labelOffset.x + 10),
a.showGrid && n.createGrid(c, l, this, this.gridOffset, this.chartRect[this.counterUnits.len](), t, [r.classNames.grid, r.classNames[this.units.dir]], o),
a.showLabel && n.createLabel(c, f, l, u, this, a.offset, h, e, [r.classNames.label, r.classNames[this.units.dir], r.classNames[a.position]], i, o))
}
.bind(this))
}
var o = {
x: {
pos: "x",
len: "width",
dir: "horizontal",
rectStart: "x1",
rectEnd: "x2",
rectOffset: "y2"
},
y: {
pos: "y",
len: "height",
dir: "vertical",
rectStart: "y2",
rectEnd: "y1",
rectOffset: "x1"
}
};
n.Axis = n.Class.extend({
constructor: i,
createGridAndLabels: r,
projectValue: function(t, e, n) {
throw new Error("Base axis can't be instantiated!")
}
}),
n.Axis.units = o
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t, e, i, r) {
var o = r.highLow || n.getHighLow(e.normalized, r, t.pos);
this.bounds = n.getBounds(i[t.rectEnd] - i[t.rectStart], o, r.scaleMinSpace || 20, r.onlyInteger),
this.range = {
min: this.bounds.min,
max: this.bounds.max
},
n.AutoScaleAxis["super"].constructor.call(this, t, i, this.bounds.values, r)
}
function r(t) {
return this.axisLength * (+n.getMultiValue(t, this.units.pos) - this.bounds.min) / this.bounds.range
}
n.AutoScaleAxis = n.Axis.extend({
constructor: i,
projectValue: r
})
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t, e, i, r) {
var o = r.highLow || n.getHighLow(e.normalized, r, t.pos);
this.divisor = r.divisor || 1,
this.ticks = r.ticks || n.times(this.divisor).map(function(t, e) {
return o.low + (o.high - o.low) / this.divisor * e
}
.bind(this)),
this.ticks.sort(function(t, e) {
return t - e
}),
this.range = {
min: o.low,
max: o.high
},
n.FixedScaleAxis["super"].constructor.call(this, t, i, this.ticks, r),
this.stepLength = this.axisLength / this.divisor
}
function r(t) {
return this.axisLength * (+n.getMultiValue(t, this.units.pos) - this.range.min) / (this.range.max - this.range.min)
}
n.FixedScaleAxis = n.Axis.extend({
constructor: i,
projectValue: r
})
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t, e, i, r) {
n.StepAxis["super"].constructor.call(this, t, i, r.ticks, r),
this.stepLength = this.axisLength / (r.ticks.length - (r.stretch ? 1 : 0))
}
function r(t, e) {
return this.stepLength * e
}
n.StepAxis = n.Axis.extend({
constructor: i,
projectValue: r
})
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t) {
this.data = n.normalizeData(this.data);
var e = {
raw: this.data,
normalized: n.getDataArray(this.data, t.reverseData, !0)
};
this.svg = n.createSvg(this.container, t.width, t.height, t.classNames.chart);
var i, r, a = this.svg.elem("g").addClass(t.classNames.gridGroup), s = this.svg.elem("g"), u = this.svg.elem("g").addClass(t.classNames.labelGroup), c = n.createChartRect(this.svg, t, o.padding);
i = void 0 === t.axisX.type ? new n.StepAxis(n.Axis.units.x,e,c,n.extend({}, t.axisX, {
ticks: e.raw.labels,
stretch: t.fullWidth
})) : t.axisX.type.call(n, n.Axis.units.x, e, c, t.axisX),
r = void 0 === t.axisY.type ? new n.AutoScaleAxis(n.Axis.units.y,e,c,n.extend({}, t.axisY, {
high: n.isNum(t.high) ? t.high : t.axisY.high,
low: n.isNum(t.low) ? t.low : t.axisY.low
})) : t.axisY.type.call(n, n.Axis.units.y, e, c, t.axisY),
i.createGridAndLabels(a, u, this.supportsForeignObject, t, this.eventEmitter),
r.createGridAndLabels(a, u, this.supportsForeignObject, t, this.eventEmitter),
e.raw.series.forEach(function(o, a) {
var u = s.elem("g");
u.attr({
"ct:series-name": o.name,
"ct:meta": n.serialize(o.meta)
}),
u.addClass([t.classNames.series, o.className || t.classNames.series + "-" + n.alphaNumerate(a)].join(" "));
var l = []
, f = [];
e.normalized[a].forEach(function(t, s) {
var u = {
x: c.x1 + i.projectValue(t, s, e.normalized[a]),
y: c.y1 - r.projectValue(t, s, e.normalized[a])
};
l.push(u.x, u.y),
f.push({
value: t,
valueIndex: s,
meta: n.getMetaData(o, s)
})
}
.bind(this));
var h = {
lineSmooth: n.getSeriesOption(o, t, "lineSmooth"),
showPoint: n.getSeriesOption(o, t, "showPoint"),
showLine: n.getSeriesOption(o, t, "showLine"),
showArea: n.getSeriesOption(o, t, "showArea"),
areaBase: n.getSeriesOption(o, t, "areaBase")
}
, d = "function" == typeof h.lineSmooth ? h.lineSmooth : h.lineSmooth ? n.Interpolation.monotoneCubic() : n.Interpolation.none()
, p = d(l, f);
if (h.showPoint && p.pathElements.forEach(function(e) {
var s = u.elem("line", {
x1: e.x,
y1: e.y,
x2: e.x + .01,
y2: e.y
}, t.classNames.point).attr({
"ct:value": [e.data.value.x, e.data.value.y].filter(n.isNum).join(","),
"ct:meta": e.data.meta
});
this.eventEmitter.emit("draw", {
type: "point",
value: e.data.value,
index: e.data.valueIndex,
meta: e.data.meta,
series: o,
seriesIndex: a,
axisX: i,
axisY: r,
group: u,
element: s,
x: e.x,
y: e.y
})
}
.bind(this)),
h.showLine) {
var v = u.elem("path", {
d: p.stringify()
}, t.classNames.line, !0);
this.eventEmitter.emit("draw", {
type: "line",
values: e.normalized[a],
path: p.clone(),
chartRect: c,
index: a,
series: o,
seriesIndex: a,
axisX: i,
axisY: r,
group: u,
element: v
})
}
if (h.showArea && r.range) {
var g = Math.max(Math.min(h.areaBase, r.range.max), r.range.min)
, m = c.y1 - r.projectValue(g);
p.splitByCommand("M").filter(function(t) {
return t.pathElements.length > 1
}).map(function(t) {
var e = t.pathElements[0]
, n = t.pathElements[t.pathElements.length - 1];
return t.clone(!0).position(0).remove(1).move(e.x, m).line(e.x, e.y).position(t.pathElements.length + 1).line(n.x, m)
}).forEach(function(n) {
var s = u.elem("path", {
d: n.stringify()
}, t.classNames.area, !0);
this.eventEmitter.emit("draw", {
type: "area",
values: e.normalized[a],
path: n.clone(),
series: o,
seriesIndex: a,
axisX: i,
axisY: r,
chartRect: c,
index: a,
group: u,
element: s
})
}
.bind(this))
}
}
.bind(this)),
this.eventEmitter.emit("created", {
bounds: r.bounds,
chartRect: c,
axisX: i,
axisY: r,
svg: this.svg,
options: t
})
}
function r(t, e, i, r) {
n.Line["super"].constructor.call(this, t, e, o, n.extend({}, o, i), r)
}
var o = {
axisX: {
offset: 30,
position: "end",
labelOffset: {
x: 0,
y: 0
},
showLabel: !0,
showGrid: !0,
labelInterpolationFnc: n.noop,
type: void 0
},
axisY: {
offset: 40,
position: "start",
labelOffset: {
x: 0,
y: 0
},
showLabel: !0,
showGrid: !0,
labelInterpolationFnc: n.noop,
type: void 0,
scaleMinSpace: 20,
onlyInteger: !1
},
width: void 0,
height: void 0,
showLine: !0,
showPoint: !0,
showArea: !1,
areaBase: 0,
lineSmooth: !0,
low: void 0,
high: void 0,
chartPadding: {
top: 15,
right: 15,
bottom: 5,
left: 10
},
fullWidth: !1,
reverseData: !1,
classNames: {
chart: "ct-chart-line",
label: "ct-label",
labelGroup: "ct-labels",
series: "ct-series",
line: "ct-line",
point: "ct-point",
area: "ct-area",
grid: "ct-grid",
gridGroup: "ct-grids",
vertical: "ct-vertical",
horizontal: "ct-horizontal",
start: "ct-start",
end: "ct-end"
}
};
n.Line = n.Base.extend({
constructor: r,
createChart: i
})
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t) {
this.data = n.normalizeData(this.data);
var e, i = {
raw: this.data,
normalized: t.distributeSeries ? n.getDataArray(this.data, t.reverseData, t.horizontalBars ? "x" : "y").map(function(t) {
return [t]
}) : n.getDataArray(this.data, t.reverseData, t.horizontalBars ? "x" : "y")
};
this.svg = n.createSvg(this.container, t.width, t.height, t.classNames.chart + (t.horizontalBars ? " " + t.classNames.horizontalBars : ""));
var r = this.svg.elem("g").addClass(t.classNames.gridGroup)
, a = this.svg.elem("g")
, s = this.svg.elem("g").addClass(t.classNames.labelGroup);
if (t.stackBars && 0 !== i.normalized.length) {
var u = n.serialMap(i.normalized, function() {
return Array.prototype.slice.call(arguments).map(function(t) {
return t
}).reduce(function(t, e) {
return {
x: t.x + (e && e.x) || 0,
y: t.y + (e && e.y) || 0
}
}, {
x: 0,
y: 0
})
});
e = n.getHighLow([u], n.extend({}, t, {
referenceValue: 0
}), t.horizontalBars ? "x" : "y")
} else
e = n.getHighLow(i.normalized, n.extend({}, t, {
referenceValue: 0
}), t.horizontalBars ? "x" : "y");
e.high = +t.high || (0 === t.high ? 0 : e.high),
e.low = +t.low || (0 === t.low ? 0 : e.low);
var c, l, f, h, d, p = n.createChartRect(this.svg, t, o.padding);
l = t.distributeSeries && t.stackBars ? i.raw.labels.slice(0, 1) : i.raw.labels,
t.horizontalBars ? (c = h = void 0 === t.axisX.type ? new n.AutoScaleAxis(n.Axis.units.x,i,p,n.extend({}, t.axisX, {
highLow: e,
referenceValue: 0
})) : t.axisX.type.call(n, n.Axis.units.x, i, p, n.extend({}, t.axisX, {
highLow: e,
referenceValue: 0
})),
f = d = void 0 === t.axisY.type ? new n.StepAxis(n.Axis.units.y,i,p,{
ticks: l
}) : t.axisY.type.call(n, n.Axis.units.y, i, p, t.axisY)) : (f = h = void 0 === t.axisX.type ? new n.StepAxis(n.Axis.units.x,i,p,{
ticks: l
}) : t.axisX.type.call(n, n.Axis.units.x, i, p, t.axisX),
c = d = void 0 === t.axisY.type ? new n.AutoScaleAxis(n.Axis.units.y,i,p,n.extend({}, t.axisY, {
highLow: e,
referenceValue: 0
})) : t.axisY.type.call(n, n.Axis.units.y, i, p, n.extend({}, t.axisY, {
highLow: e,
referenceValue: 0
})));
var v = t.horizontalBars ? p.x1 + c.projectValue(0) : p.y1 - c.projectValue(0)
, g = [];
f.createGridAndLabels(r, s, this.supportsForeignObject, t, this.eventEmitter),
c.createGridAndLabels(r, s, this.supportsForeignObject, t, this.eventEmitter),
i.raw.series.forEach(function(e, r) {
var o, s, u = r - (i.raw.series.length - 1) / 2;
o = t.distributeSeries && !t.stackBars ? f.axisLength / i.normalized.length / 2 : t.distributeSeries && t.stackBars ? f.axisLength / 2 : f.axisLength / i.normalized[r].length / 2,
s = a.elem("g"),
s.attr({
"ct:series-name": e.name,
"ct:meta": n.serialize(e.meta)
}),
s.addClass([t.classNames.series, e.className || t.classNames.series + "-" + n.alphaNumerate(r)].join(" ")),
i.normalized[r].forEach(function(a, l) {
var m, y, b, w;
if (w = t.distributeSeries && !t.stackBars ? r : t.distributeSeries && t.stackBars ? 0 : l,
m = t.horizontalBars ? {
x: p.x1 + c.projectValue(a && a.x ? a.x : 0, l, i.normalized[r]),
y: p.y1 - f.projectValue(a && a.y ? a.y : 0, w, i.normalized[r])
} : {
x: p.x1 + f.projectValue(a && a.x ? a.x : 0, w, i.normalized[r]),
y: p.y1 - c.projectValue(a && a.y ? a.y : 0, l, i.normalized[r])
},
f instanceof n.StepAxis && (f.options.stretch || (m[f.units.pos] += o * (t.horizontalBars ? -1 : 1)),
m[f.units.pos] += t.stackBars || t.distributeSeries ? 0 : u * t.seriesBarDistance * (t.horizontalBars ? -1 : 1)),
b = g[l] || v,
g[l] = b - (v - m[f.counterUnits.pos]),
void 0 !== a) {
var x = {};
x[f.units.pos + "1"] = m[f.units.pos],
x[f.units.pos + "2"] = m[f.units.pos],
!t.stackBars || "accumulate" !== t.stackMode && t.stackMode ? (x[f.counterUnits.pos + "1"] = v,
x[f.counterUnits.pos + "2"] = m[f.counterUnits.pos]) : (x[f.counterUnits.pos + "1"] = b,
x[f.counterUnits.pos + "2"] = g[l]),
x.x1 = Math.min(Math.max(x.x1, p.x1), p.x2),
x.x2 = Math.min(Math.max(x.x2, p.x1), p.x2),
x.y1 = Math.min(Math.max(x.y1, p.y2), p.y1),
x.y2 = Math.min(Math.max(x.y2, p.y2), p.y1),
y = s.elem("line", x, t.classNames.bar).attr({
"ct:value": [a.x, a.y].filter(n.isNum).join(","),
"ct:meta": n.getMetaData(e, l)
}),
this.eventEmitter.emit("draw", n.extend({
type: "bar",
value: a,
index: l,
meta: n.getMetaData(e, l),
series: e,
seriesIndex: r,
axisX: h,
axisY: d,
chartRect: p,
group: s,
element: y
}, x))
}
}
.bind(this))
}
.bind(this)),
this.eventEmitter.emit("created", {
bounds: c.bounds,
chartRect: p,
axisX: h,
axisY: d,
svg: this.svg,
options: t
})
}
function r(t, e, i, r) {
n.Bar["super"].constructor.call(this, t, e, o, n.extend({}, o, i), r)
}
var o = {
axisX: {
offset: 30,
position: "end",
labelOffset: {
x: 0,
y: 0
},
showLabel: !0,
showGrid: !0,
labelInterpolationFnc: n.noop,
scaleMinSpace: 30,
onlyInteger: !1
},
axisY: {
offset: 40,
position: "start",
labelOffset: {
x: 0,
y: 0
},
showLabel: !0,
showGrid: !0,
labelInterpolationFnc: n.noop,
scaleMinSpace: 20,
onlyInteger: !1
},
width: void 0,
height: void 0,
high: void 0,
low: void 0,
chartPadding: {
top: 15,
right: 15,
bottom: 5,
left: 10
},
seriesBarDistance: 15,
stackBars: !1,
stackMode: "accumulate",
horizontalBars: !1,
distributeSeries: !1,
reverseData: !1,
classNames: {
chart: "ct-chart-bar",
horizontalBars: "ct-horizontal-bars",
label: "ct-label",
labelGroup: "ct-labels",
series: "ct-series",
bar: "ct-bar",
grid: "ct-grid",
gridGroup: "ct-grids",
vertical: "ct-vertical",
horizontal: "ct-horizontal",
start: "ct-start",
end: "ct-end"
}
};
n.Bar = n.Base.extend({
constructor: r,
createChart: i
})
}(window, document, t),
function(t, e, n) {
"use strict";
function i(t, e, n) {
var i = e.x > t.x;
return i && "explode" === n || !i && "implode" === n ? "start" : i && "implode" === n || !i && "explode" === n ? "end" : "middle"
}
function r(t) {
this.data = n.normalizeData(this.data);
var e, r, o, s, u, c = [], l = t.startAngle, f = n.getDataArray(this.data, t.reverseData);
this.svg = n.createSvg(this.container, t.width, t.height, t.donut ? t.classNames.chartDonut : t.classNames.chartPie),
r = n.createChartRect(this.svg, t, a.padding),
o = Math.min(r.width() / 2, r.height() / 2),
u = t.total || f.reduce(function(t, e) {
return t + e
}, 0);
var h = n.quantity(t.donutWidth);
"%" === h.unit && (h.value *= o / 100),
o -= t.donut ? h.value / 2 : 0,
s = "outside" === t.labelPosition || t.donut ? o : "center" === t.labelPosition ? 0 : o / 2,
s += t.labelOffset;
var d = {
x: r.x1 + r.width() / 2,
y: r.y2 + r.height() / 2
}
, p = 1 === this.data.series.filter(function(t) {
return t.hasOwnProperty("value") ? 0 !== t.value : 0 !== t
}).length;
t.showLabel && (e = this.svg.elem("g", null , null , !0));
for (var v = 0; v < this.data.series.length; v++)
if (0 !== f[v] || !t.ignoreEmptyValues) {
var g = this.data.series[v];
c[v] = this.svg.elem("g", null , null , !0),
c[v].attr({
"ct:series-name": g.name
}),
c[v].addClass([t.classNames.series, g.className || t.classNames.series + "-" + n.alphaNumerate(v)].join(" "));
var m = l + f[v] / u * 360
, y = Math.max(0, l - (0 === v || p ? 0 : .2));
m - y >= 359.99 && (m = y + 359.99);
var b = n.polarToCartesian(d.x, d.y, o, y)
, w = n.polarToCartesian(d.x, d.y, o, m)
, x = new n.Svg.Path((!t.donut)).move(w.x, w.y).arc(o, o, 0, m - l > 180, 0, b.x, b.y);
t.donut || x.line(d.x, d.y);
var T = c[v].elem("path", {
d: x.stringify()
}, t.donut ? t.classNames.sliceDonut : t.classNames.slicePie);
if (T.attr({
"ct:value": f[v],
"ct:meta": n.serialize(g.meta)
}),
t.donut && T.attr({
style: "stroke-width: " + h.value + "px"
}),
this.eventEmitter.emit("draw", {
type: "slice",
value: f[v],
totalDataSum: u,
index: v,
meta: g.meta,
series: g,
group: c[v],
element: T,
path: x.clone(),
center: d,
radius: o,
startAngle: l,
endAngle: m
}),
t.showLabel) {
var S = n.polarToCartesian(d.x, d.y, s, l + (m - l) / 2)
, _ = t.labelInterpolationFnc(this.data.labels && !n.isFalseyButZero(this.data.labels[v]) ? this.data.labels[v] : f[v], v);
if (_ || 0 === _) {
var C = e.elem("text", {
dx: S.x,
dy: S.y,
"text-anchor": i(d, S, t.labelDirection)
}, t.classNames.label).text("" + _);
this.eventEmitter.emit("draw", {
type: "label",
index: v,
group: e,
element: C,
text: "" + _,
x: S.x,
y: S.y
})
}
}
l = m
}
this.eventEmitter.emit("created", {
chartRect: r,
svg: this.svg,
options: t
})
}
function o(t, e, i, r) {
n.Pie["super"].constructor.call(this, t, e, a, n.extend({}, a, i), r)
}
var a = {
width: void 0,
height: void 0,
chartPadding: 5,
classNames: {
chartPie: "ct-chart-pie",
chartDonut: "ct-chart-donut",
series: "ct-series",
slicePie: "ct-slice-pie",
sliceDonut: "ct-slice-donut",
label: "ct-label"
},
startAngle: 0,
total: void 0,
donut: !1,
donutWidth: 60,
showLabel: !0,
labelOffset: 0,
labelPosition: "inside",
labelInterpolationFnc: n.noop,
labelDirection: "neutral",
reverseData: !1,
ignoreEmptyValues: !1
};
n.Pie = n.Base.extend({
constructor: o,
createChart: r,
determineAnchorPosition: i
})
}(window, document, t),
t
})
}
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(t, e, n) {
"use strict";
var i = n(30)
, r = n(112)
, o = n(26);
t.exports = function(t) {
for (var e = i(this), n = o(e.length), a = arguments.length, s = r(a > 1 ? arguments[1] : void 0, n), u = a > 2 ? arguments[2] : void 0, c = void 0 === u ? n : r(u, n); c > s; )
e[s++] = t;
return e
}
}
, function(t, e, n) {
"use strict";
var i = n(22)
, r = n(89);
t.exports = function(t, e, n) {
e in t ? i.f(t, e, r(0, n)) : t[e] = n
}
}
, function(t, e, n) {
var i = n(17)
, r = n(13).document
, o = i(r) && i(r.createElement);
t.exports = function(t) {
return o ? r.createElement(t) : {}
}
}
, function(t, e) {
t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")
}
, function(t, e, n) {
var i = n(19)("match");
t.exports = function(t) {
var e = /./;
try {
"/./"[t](e)
} catch (n) {
try {
return e[i] = !1,
!"/./"[t](e)
} catch (r) {}
}
return !0
}
}
, function(t, e, n) {
t.exports = n(13).document && document.documentElement
}
, function(t, e, n) {
var i = n(17)
, r = n(322).set;
t.exports = function(t, e, n) {
var o, a = e.constructor;
return a !== n && "function" == typeof a && (o = a.prototype) !== n.prototype && i(o) && r && r(t, o),
t
}
}
, function(t, e, n) {
var i = n(132)
, r = n(19)("iterator")
, o = Array.prototype;
t.exports = function(t) {
return void 0 !== t && (i.Array === t || o[r] === t)
}
}
, function(t, e, n) {
var i = n(59);
t.exports = Array.isArray || function(t) {
return "Array" == i(t)
}
}
, function(t, e, n) {
"use strict";
var i = n(107)
, r = n(89)
, o = n(133)
, a = {};
n(45)(a, n(19)("iterator"), function() {
return this
}),
t.exports = function(t, e, n) {
t.prototype = i(a, {
next: r(1, n)
}),
o(t, e + " Iterator")
}
}
, function(t, e, n) {
"use strict";
var i = n(106)
, r = n(3)
, o = n(46)
, a = n(45)
, s = n(35)
, u = n(132)
, c = n(317)
, l = n(133)
, f = n(55)
, h = n(19)("iterator")
, d = !([].keys && "next"in [].keys())
, p = "@@iterator"
, v = "keys"
, g = "values"
, m = function() {
return this
}
;
t.exports = function(t, e, n, y, b, w, x) {
c(n, e, y);
var T, S, _, C = function(t) {
if (!d && t in A)
return A[t];
switch (t) {
case v:
return function() {
return new n(this,t)
}
;
case g:
return function() {
return new n(this,t)
}
}
return function() {
return new n(this,t)
}
}
, E = e + " Iterator", D = b == g, k = !1, A = t.prototype, M = A[h] || A[p] || b && A[b], O = M || C(b), N = b ? D ? C("entries") : O : void 0, j = "Array" == e ? A.entries || M : M;
if (j && (_ = f(j.call(new t)),
_ !== Object.prototype && (l(_, E, !0),
i || s(_, h) || a(_, h, m))),
D && M && M.name !== g && (k = !0,
O = function() {
return M.call(this)
}
),
i && !x || !d && !k && A[h] || a(A, h, O),
u[e] = O,
u[E] = m,
b)
if (T = {
values: D ? O : C(g),
keys: w ? O : C(v),
entries: N
},
x)
for (S in T)
S in A || o(A, S, T[S]);
else
r(r.P + r.F * (d || k), e, T);
return T
}
}
, function(t, e) {
var n = Math.expm1;
t.exports = !n || n(10) > 22025.465794806718 || n(10) < 22025.465794806718 || n(-2e-17) != -2e-17 ? function(t) {
return 0 == (t = +t) ? t : t > -1e-6 && t < 1e-6 ? t + t * t / 2 : Math.exp(t) - 1
}
: n
}
, function(t, e) {
t.exports = Math.sign || function(t) {
return 0 == (t = +t) || t != t ? t : t < 0 ? -1 : 1
}
}
, function(t, e, n) {
var i = n(13)
, r = n(329).set
, o = i.MutationObserver || i.WebKitMutationObserver
, a = i.process
, s = i.Promise
, u = "process" == n(59)(a);
t.exports = function() {
var t, e, n, c = function() {
var i, r;
for (u && (i = a.domain) && i.exit(); t; ) {
r = t.fn,
t = t.next;
try {
r()
} catch (o) {
throw t ? n() : e = void 0,
o
}
}
e = void 0,
i && i.enter()
}
;
if (u)
n = function() {
a.nextTick(c)
}
;
else if (o) {
var l = !0
, f = document.createTextNode("");
new o(c).observe(f, {
characterData: !0
}),
n = function() {
f.data = l = !l
}
} else if (s && s.resolve) {
var h = s.resolve();
n = function() {
h.then(c)
}
} else
n = function() {
r.call(i, c)
}
;
return function(i) {
var r = {
fn: i,
next: void 0
};
e && (e.next = r),
t || (t = r,
n()),
e = r
}
}
}
, function(t, e, n) {
var i = n(17)
, r = n(10)
, o = function(t, e) {
if (r(t),
!i(e) && null !== e)
throw TypeError(e + ": can't set as prototype!")
}
;
t.exports = {
set: Object.setPrototypeOf || ("__proto__"in {} ? function(t, e, i) {
try {
i = n(78)(Function.call, n(54).f(Object.prototype, "__proto__").set, 2),
i(t, []),
e = !(t instanceof Array)
} catch (r) {
e = !0
}
return function(t, n) {
return o(t, n),
e ? t.__proto__ = n : i(t, n),
t
}
}({}, !1) : void 0),
check: o
}
}
, function(t, e, n) {
var i = n(213)("keys")
, r = n(113);
t.exports = function(t) {
return i[t] || (i[t] = r(t))
}
}
, function(t, e, n) {
var i = n(10)
, r = n(44)
, o = n(19)("species");
t.exports = function(t, e) {
var n, a = i(t).constructor;
return void 0 === a || void 0 == (n = i(a)[o]) ? e : r(n)
}
}
, function(t, e, n) {
var i = n(90)
, r = n(60);
t.exports = function(t) {
return function(e, n) {
var o, a, s = String(r(e)), u = i(n), c = s.length;
return u < 0 || u >= c ? t ? "" : void 0 : (o = s.charCodeAt(u),
o < 55296 || o > 56319 || u + 1 === c || (a = s.charCodeAt(u + 1)) < 56320 || a > 57343 ? t ? s.charAt(u) : o : t ? s.slice(u, u + 2) : (o - 55296 << 10) + (a - 56320) + 65536)
}
}
}
, function(t, e, n) {
var i = n(209)
, r = n(60);
t.exports = function(t, e, n) {
if (i(e))
throw TypeError("String#" + n + " doesn't accept regex!");
return String(r(t))
}
}
, function(t, e, n) {
"use strict";
var i = n(90)
, r = n(60);
t.exports = function(t) {
var e = String(r(this))
, n = ""
, o = i(t);
if (o < 0 || o == 1 / 0)
throw RangeError("Count can't be negative");
for (; o > 0; (o >>>= 1) && (e += e))
1 & o && (n += e);
return n
}
}
, function(t, e) {
t.exports = "\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"
}
, function(t, e, n) {
var i, r, o, a = n(78), s = n(208), u = n(313), c = n(310), l = n(13), f = l.process, h = l.setImmediate, d = l.clearImmediate, p = l.MessageChannel, v = 0, g = {}, m = "onreadystatechange", y = function() {
var t = +this;
if (g.hasOwnProperty(t)) {
var e = g[t];
delete g[t],
e()
}
}
, b = function(t) {
y.call(t.data)
}
;
h && d || (h = function(t) {
for (var e = [], n = 1; arguments.length > n; )
e.push(arguments[n++]);
return g[++v] = function() {
s("function" == typeof t ? t : Function(t), e)
}
,
i(v),
v
}
,
d = function(t) {
delete g[t]
}
,
"process" == n(59)(f) ? i = function(t) {
f.nextTick(a(y, t, 1))
}
: p ? (r = new p,
o = r.port2,
r.port1.onmessage = b,
i = a(o.postMessage, o, 1)) : l.addEventListener && "function" == typeof postMessage && !l.importScripts ? (i = function(t) {
l.postMessage(t + "", "*")
}
,
l.addEventListener("message", b, !1)) : i = m in c("script") ? function(t) {
u.appendChild(c("script"))[m] = function() {
u.removeChild(this),
y.call(t)
}
}
: function(t) {
setTimeout(a(y, t, 1), 0)
}
),
t.exports = {
set: h,
clear: d
}
}
, function(t, e, n) {
"use strict";
var i = n(13)
, r = n(21)
, o = n(106)
, a = n(214)
, s = n(45)
, u = n(110)
, c = n(15)
, l = n(105)
, f = n(90)
, h = n(26)
, d = n(108).f
, p = n(22).f
, v = n(308)
, g = n(133)
, m = "ArrayBuffer"
, y = "DataView"
, b = "prototype"
, w = "Wrong length!"
, x = "Wrong index!"
, T = i[m]
, S = i[y]
, _ = i.Math
, C = i.RangeError
, E = i.Infinity
, D = T
, k = _.abs
, A = _.pow
, M = _.floor
, O = _.log
, N = _.LN2
, j = "buffer"
, I = "byteLength"
, L = "byteOffset"
, F = r ? "_b" : j
, P = r ? "_l" : I
, R = r ? "_o" : L
, z = function(t, e, n) {
var i, r, o, a = Array(n), s = 8 * n - e - 1, u = (1 << s) - 1, c = u >> 1, l = 23 === e ? A(2, -24) - A(2, -77) : 0, f = 0, h = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
for (t = k(t),
t != t || t === E ? (r = t != t ? 1 : 0,
i = u) : (i = M(O(t) / N),
t * (o = A(2, -i)) < 1 && (i--,
o *= 2),
t += i + c >= 1 ? l / o : l * A(2, 1 - c),
t * o >= 2 && (i++,
o /= 2),
i + c >= u ? (r = 0,
i = u) : i + c >= 1 ? (r = (t * o - 1) * A(2, e),
i += c) : (r = t * A(2, c - 1) * A(2, e),
i = 0)); e >= 8; a[f++] = 255 & r,
r /= 256,
e -= 8)
;
for (i = i << e | r,
s += e; s > 0; a[f++] = 255 & i,
i /= 256,
s -= 8)
;
return a[--f] |= 128 * h,
a
}
, B = function(t, e, n) {
var i, r = 8 * n - e - 1, o = (1 << r) - 1, a = o >> 1, s = r - 7, u = n - 1, c = t[u--], l = 127 & c;
for (c >>= 7; s > 0; l = 256 * l + t[u],
u--,
s -= 8)
;
for (i = l & (1 << -s) - 1,
l >>= -s,
s += e; s > 0; i = 256 * i + t[u],
u--,
s -= 8)
;
if (0 === l)
l = 1 - a;
else {
if (l === o)
return i ? NaN : c ? -E : E;
i += A(2, e),
l -= a
}
return (c ? -1 : 1) * i * A(2, l - e)
}
, H = function(t) {
return t[3] << 24 | t[2] << 16 | t[1] << 8 | t[0]
}
, U = function(t) {
return [255 & t]
}
, $ = function(t) {
return [255 & t, t >> 8 & 255]
}
, q = function(t) {
return [255 & t, t >> 8 & 255, t >> 16 & 255, t >> 24 & 255]
}
, W = function(t) {
return z(t, 52, 8)
}
, V = function(t) {
return z(t, 23, 4)
}
, Y = function(t, e, n) {
p(t[b], e, {
get: function() {
return this[n]
}
})
}
, X = function(t, e, n, i) {
var r = +n
, o = f(r);
if (r != o || o < 0 || o + e > t[P])
throw C(x);
var a = t[F]._b
, s = o + t[R]
, u = a.slice(s, s + e);
return i ? u : u.reverse()
}
, G = function(t, e, n, i, r, o) {
var a = +n
, s = f(a);
if (a != s || s < 0 || s + e > t[P])
throw C(x);
for (var u = t[F]._b, c = s + t[R], l = i(+r), h = 0; h < e; h++)
u[c + h] = l[o ? h : e - h - 1]
}
, K = function(t, e) {
l(t, T, m);
var n = +e
, i = h(n);
if (n != i)
throw C(w);
return i
}
;
if (a.ABV) {
if (!c(function() {
new T
}) || !c(function() {
new T(.5)
})) {
T = function(t) {
return new D(K(this, t))
}
;
for (var Z, Q = T[b] = D[b], J = d(D), tt = 0; J.length > tt; )
(Z = J[tt++])in T || s(T, Z, D[Z]);
o || (Q.constructor = T)
}
var et = new S(new T(2))
, nt = S[b].setInt8;
et.setInt8(0, 2147483648),
et.setInt8(1, 2147483649),
!et.getInt8(0) && et.getInt8(1) || u(S[b], {
setInt8: function(t, e) {
nt.call(this, t, e << 24 >> 24)
},
setUint8: function(t, e) {
nt.call(this, t, e << 24 >> 24)
}
}, !0)
} else
T = function(t) {
var e = K(this, t);
this._b = v.call(Array(e), 0),
this[P] = e
}
,
S = function(t, e, n) {
l(this, S, y),
l(t, T, y);
var i = t[P]
, r = f(e);
if (r < 0 || r > i)
throw C("Wrong offset!");
if (n = void 0 === n ? i - r : h(n),
r + n > i)
throw C(w);
this[F] = t,
this[R] = r,
this[P] = n
}
,
r && (Y(T, I, "_l"),
Y(S, j, "_b"),
Y(S, I, "_l"),
Y(S, L, "_o")),
u(S[b], {
getInt8: function(t) {
return X(this, 1, t)[0] << 24 >> 24
},
getUint8: function(t) {
return X(this, 1, t)[0]
},
getInt16: function(t) {
var e = X(this, 2, t, arguments[1]);
return (e[1] << 8 | e[0]) << 16 >> 16
},
getUint16: function(t) {
var e = X(this, 2, t, arguments[1]);
return e[1] << 8 | e[0]
},
getInt32: function(t) {
return H(X(this, 4, t, arguments[1]))
},
getUint32: function(t) {
return H(X(this, 4, t, arguments[1])) >>> 0
},
getFloat32: function(t) {
return B(X(this, 4, t, arguments[1]), 23, 4)
},
getFloat64: function(t) {
return B(X(this, 8, t, arguments[1]), 52, 8)
},
setInt8: function(t, e) {
G(this, 1, t, U, e)
},
setUint8: function(t, e) {
G(this, 1, t, U, e)
},
setInt16: function(t, e) {
G(this, 2, t, $, e, arguments[2])
},
setUint16: function(t, e) {
G(this, 2, t, $, e, arguments[2])
},
setInt32: function(t, e) {
G(this, 4, t, q, e, arguments[2])
},
setUint32: function(t, e) {
G(this, 4, t, q, e, arguments[2])
},
setFloat32: function(t, e) {
G(this, 4, t, V, e, arguments[2])
},
setFloat64: function(t, e) {
G(this, 8, t, W, e, arguments[2])
}
});
g(T, m),
g(S, y),
s(S[b], a.VIEW, !0),
e[m] = T,
e[y] = S
}
, function(t, e, n) {
var i = n(13)
, r = n(77)
, o = n(106)
, a = n(487)
, s = n(22).f;
t.exports = function(t) {
var e = r.Symbol || (r.Symbol = o ? {} : i.Symbol || {});
"_" == t.charAt(0) || t in e || s(e, t, {
value: a.f(t)
})
}
}
, function(t, e, n) {
var i = n(163)
, r = n(19)("iterator")
, o = n(132);
t.exports = n(77).getIteratorMethod = function(t) {
if (void 0 != t)
return t[r] || t["@@iterator"] || o[i(t)]
}
}
, function(t, e, n) {
"use strict";
var i = n(130)
, r = n(475)
, o = n(132)
, a = n(48);
t.exports = n(318)(Array, "Array", function(t, e) {
this._t = a(t),
this._i = 0,
this._k = e
}, function() {
var t = this._t
, e = this._k
, n = this._i++;
return !t || n >= t.length ? (this._t = void 0,
r(1)) : "keys" == e ? r(0, n) : "values" == e ? r(0, t[n]) : r(0, [n, t[n]])
}, "values"),
o.Arguments = o.Array,
i("keys"),
i("values"),
i("entries")
}
, , , function(t, e, n) {
var i, r, o = n(215);
!function(n, o) {
i = [],
r = function() {
return n.returnExportsGlobal = o()
}
.apply(e, i),
!(void 0 !== r && (t.exports = r))
}(this, function() {
return function(t, e, n) {
"use strict";
function i(t) {
t.style.display = "block"
}
function r(t) {
t.style.display = "none"
}
function o(t, e) {
return (" " + t.getAttribute("class") + " ").indexOf(" " + e + " ") > -1;
}
function a(t, e) {
do
t = t.nextSibling;
while (t && !o(t, e));return t
}
function s(t) {
return t.innerText || t.textContent
}
var u = {
currency: void 0,
tooltipOffset: {
x: 0,
y: -20
}
};
n.plugins = n.plugins || {},
n.plugins.tooltip = function(t) {
return t = n.extend({}, u, t),
function(u) {
function c(t, e, n) {
h.addEventListener(t, function(t) {
e && !o(t.target, e) || n(t)
})
}
function l(e) {
p = p || d.offsetHeight,
v = v || d.offsetWidth,
d.style.top = (e.layerY || e.offsetY) - p + t.tooltipOffset.y + "px",
d.style.left = (e.layerX || e.offsetX) - v / 2 + t.tooltipOffset.x + "px"
}
var f = "ct-point";
u instanceof n.Bar ? f = "ct-bar" : u instanceof n.Pie && (f = u.options.donut ? "ct-slice-donut" : "ct-slice-pie");
var h = u.container
, d = h.querySelector(".chartist-tooltip");
d || (d = e.createElement("div"),
d.className = "chartist-tooltip",
h.appendChild(d));
var p = d.offsetHeight
, v = d.offsetWidth;
r(d),
c("mouseover", f, function(e) {
var r = e.target
, o = ""
, c = r.getAttribute("ct:meta") || ""
, f = r.getAttribute("ct:value");
if (t.tooltipFnc)
o = t.tooltipFnc(c, f);
else {
if (c)
o += c + "<br>";
else if (u instanceof n.Pie) {
var h = a(r, "ct-label");
h.length > 0 && (o += s(h) + "<br>")
}
t.currency && (f = t.currency + f.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")),
o += f
}
d.innerHTML = o,
l(e),
i(d),
p = d.offsetHeight,
v = d.offsetWidth
}),
c("mouseout", f, function() {
r(d)
}),
c("mousemove", null , function(t) {
l(t)
})
}
}
}(window, document, o),
o.plugins.tooltips
})
}
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(t, e, n) {
(function(t, i) {
function r(t, e) {
this._id = t,
this._clearFn = e
}
var o = n(504).nextTick
, a = Function.prototype.apply
, s = Array.prototype.slice
, u = {}
, c = 0;
e.setTimeout = function() {
return new r(a.call(setTimeout, window, arguments),clearTimeout)
}
,
e.setInterval = function() {
return new r(a.call(setInterval, window, arguments),clearInterval)
}
,
e.clearTimeout = e.clearInterval = function(t) {
t.close()
}
,
r.prototype.unref = r.prototype.ref = function() {}
,
r.prototype.close = function() {
this._clearFn.call(window, this._id)
}
,
e.enroll = function(t, e) {
clearTimeout(t._idleTimeoutId),
t._idleTimeout = e
}
,
e.unenroll = function(t) {
clearTimeout(t._idleTimeoutId),
t._idleTimeout = -1
}
,
e._unrefActive = e.active = function(t) {
clearTimeout(t._idleTimeoutId);
var e = t._idleTimeout;
e >= 0 && (t._idleTimeoutId = setTimeout(function() {
t._onTimeout && t._onTimeout()
}, e))
}
,
e.setImmediate = "function" == typeof t ? t : function(t) {
var n = c++
, i = !(arguments.length < 2) && s.call(arguments, 1);
return u[n] = !0,
o(function() {
u[n] && (i ? t.apply(null , i) : t.call(null ),
e.clearImmediate(n))
}),
n
}
,
e.clearImmediate = "function" == typeof i ? i : function(t) {
delete u[t]
}
}
).call(e, n(462).setImmediate, n(462).clearImmediate)
}
, function(t, e, n) {
var i;
/*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2009-2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.2.0
*/
!function(r, o) {
"use strict";
var a, s, u, c = r, l = c.document, f = c.navigator, h = c.setTimeout, d = c.clearTimeout, p = c.setInterval, v = c.clearInterval, g = c.getComputedStyle, m = c.encodeURIComponent, y = c.ActiveXObject, b = c.Error, w = c.Number.parseInt || c.parseInt, x = c.Number.parseFloat || c.parseFloat, T = c.Number.isNaN || c.isNaN, S = c.Date.now, _ = c.Object.keys, C = c.Object.defineProperty, E = c.Object.prototype.hasOwnProperty, D = c.Array.prototype.slice, k = function() {
var t = function(t) {
return t
}
;
if ("function" == typeof c.wrap && "function" == typeof c.unwrap)
try {
var e = l.createElement("div")
, n = c.unwrap(e);
1 === e.nodeType && n && 1 === n.nodeType && (t = c.unwrap)
} catch (i) {}
return t
}(), A = function(t) {
return D.call(t, 0)
}
, M = function() {
var t, e, n, i, r, a, s = A(arguments), u = s[0] || {};
for (t = 1,
e = s.length; t < e; t++)
if (null != (n = s[t]))
for (i in n)
E.call(n, i) && (r = u[i],
a = n[i],
u !== a && a !== o && (u[i] = a));
return u
}
, O = function(t) {
var e, n, i, r;
if ("object" != typeof t || null == t || "number" == typeof t.nodeType)
e = t;
else if ("number" == typeof t.length)
for (e = [],
n = 0,
i = t.length; n < i; n++)
E.call(t, n) && (e[n] = O(t[n]));
else {
e = {};
for (r in t)
E.call(t, r) && (e[r] = O(t[r]))
}
return e
}
, N = function(t, e) {
for (var n = {}, i = 0, r = e.length; i < r; i++)
e[i]in t && (n[e[i]] = t[e[i]]);
return n
}
, j = function(t, e) {
var n = {};
for (var i in t)
e.indexOf(i) === -1 && (n[i] = t[i]);
return n
}
, I = function(t) {
if (t)
for (var e in t)
E.call(t, e) && delete t[e];
return t
}
, L = function(t, e) {
if (t && 1 === t.nodeType && t.ownerDocument && e && (1 === e.nodeType && e.ownerDocument && e.ownerDocument === t.ownerDocument || 9 === e.nodeType && !e.ownerDocument && e === t.ownerDocument))
do {
if (t === e)
return !0;
t = t.parentNode
} while (t);return !1
}
, F = function(t) {
var e;
return "string" == typeof t && t && (e = t.split("#")[0].split("?")[0],
e = t.slice(0, t.lastIndexOf("/") + 1)),
e
}
, P = function(t) {
var e, n;
return "string" == typeof t && t && (n = t.match(/^(?:|[^:@]*@|.+\)@(?=http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),
n && n[1] ? e = n[1] : (n = t.match(/\)@((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),
n && n[1] && (e = n[1]))),
e
}
, R = function() {
var t, e;
try {
throw new b
} catch (n) {
e = n
}
return e && (t = e.sourceURL || e.fileName || P(e.stack)),
t
}
, z = function() {
var t, e, n;
if (l.currentScript && (t = l.currentScript.src))
return t;
if (e = l.getElementsByTagName("script"),
1 === e.length)
return e[0].src || o;
if ("readyState"in e[0])
for (n = e.length; n--; )
if ("interactive" === e[n].readyState && (t = e[n].src))
return t;
return "loading" === l.readyState && (t = e[e.length - 1].src) ? t : (t = R()) ? t : o
}
, B = function() {
var t, e, n, i = l.getElementsByTagName("script");
for (t = i.length; t--; ) {
if (!(n = i[t].src)) {
e = null ;
break
}
if (n = F(n),
null == e)
e = n;
else if (e !== n) {
e = null ;
break
}
}
return e || o
}
, H = function() {
var t = F(z()) || B() || "";
return t + "ZeroClipboard.swf"
}
, U = function() {
return null == r.opener && (!!r.top && r != r.top || !!r.parent && r != r.parent)
}(), $ = {
bridge: null ,
version: "0.0.0",
pluginType: "unknown",
disabled: null ,
outdated: null ,
sandboxed: null ,
unavailable: null ,
degraded: null ,
deactivated: null ,
overdue: null ,
ready: null
}, q = "11.0.0", W = {}, V = {}, Y = null , X = 0, G = 0, K = {
ready: "Flash communication is established",
error: {
"flash-disabled": "Flash is disabled or not installed. May also be attempting to run Flash in a sandboxed iframe, which is impossible.",
"flash-outdated": "Flash is too outdated to support ZeroClipboard",
"flash-sandboxed": "Attempting to run Flash in a sandboxed iframe, which is impossible",
"flash-unavailable": "Flash is unable to communicate bidirectionally with JavaScript",
"flash-degraded": "Flash is unable to preserve data fidelity when communicating with JavaScript",
"flash-deactivated": "Flash is too outdated for your browser and/or is configured as click-to-activate.\nThis may also mean that the ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity.\nMay also be attempting to run Flash in a sandboxed iframe, which is impossible.",
"flash-overdue": "Flash communication was established but NOT within the acceptable time limit",
"version-mismatch": "ZeroClipboard JS version number does not match ZeroClipboard SWF version number",
"clipboard-error": "At least one error was thrown while ZeroClipboard was attempting to inject your data into the clipboard",
"config-mismatch": "ZeroClipboard configuration does not match Flash's reality",
"swf-not-found": "The ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity"
}
}, Z = ["flash-unavailable", "flash-degraded", "flash-overdue", "version-mismatch", "config-mismatch", "clipboard-error"], Q = ["flash-disabled", "flash-outdated", "flash-sandboxed", "flash-unavailable", "flash-degraded", "flash-deactivated", "flash-overdue"], J = new RegExp("^flash-(" + Q.map(function(t) {
return t.replace(/^flash-/, "")
}).join("|") + ")$"), tt = new RegExp("^flash-(" + Q.slice(1).map(function(t) {
return t.replace(/^flash-/, "")
}).join("|") + ")$"), et = {
swfPath: H(),
trustedDomains: r.location.host ? [r.location.host] : [],
cacheBust: !0,
forceEnhancedClipboard: !1,
flashLoadTimeout: 3e4,
autoActivate: !0,
bubbleEvents: !0,
containerId: "global-zeroclipboard-html-bridge",
containerClass: "global-zeroclipboard-container",
swfObjectId: "global-zeroclipboard-flash-bridge",
hoverClass: "zeroclipboard-is-hover",
activeClass: "zeroclipboard-is-active",
forceHandCursor: !1,
title: null ,
zIndex: 999999999
}, nt = function(t) {
if ("object" == typeof t && null !== t)
for (var e in t)
if (E.call(t, e))
if (/^(?:forceHandCursor|title|zIndex|bubbleEvents)$/.test(e))
et[e] = t[e];
else if (null == $.bridge)
if ("containerId" === e || "swfObjectId" === e) {
if (!mt(t[e]))
throw new Error("The specified `" + e + "` value is not valid as an HTML4 Element ID");
et[e] = t[e]
} else
et[e] = t[e];
return "string" == typeof t && t ? E.call(et, t) ? et[t] : void 0 : O(et)
}
, it = function() {
return Gt(),
{
browser: N(f, ["userAgent", "platform", "appName"]),
flash: j($, ["bridge"]),
zeroclipboard: {
version: Zt.version,
config: Zt.config()
}
}
}
, rt = function() {
return !!($.disabled || $.outdated || $.sandboxed || $.unavailable || $.degraded || $.deactivated)
}
, ot = function(t, e) {
var n, i, r, s = {};
if ("string" == typeof t && t)
r = t.toLowerCase().split(/\s+/);
else if ("object" == typeof t && t && "undefined" == typeof e)
for (n in t)
E.call(t, n) && "string" == typeof n && n && "function" == typeof t[n] && Zt.on(n, t[n]);
if (r && r.length) {
for (n = 0,
i = r.length; n < i; n++)
t = r[n].replace(/^on/, ""),
s[t] = !0,
W[t] || (W[t] = []),
W[t].push(e);
if (s.ready && $.ready && Zt.emit({
type: "ready"
}),
s.error) {
for (n = 0,
i = Q.length; n < i; n++)
if ($[Q[n].replace(/^flash-/, "")] === !0) {
Zt.emit({
type: "error",
name: Q[n]
});
break
}
a !== o && Zt.version !== a && Zt.emit({
type: "error",
name: "version-mismatch",
jsVersion: Zt.version,
swfVersion: a
})
}
}
return Zt
}
, at = function(t, e) {
var n, i, r, o, a;
if (0 === arguments.length)
o = _(W);
else if ("string" == typeof t && t)
o = t.split(/\s+/);
else if ("object" == typeof t && t && "undefined" == typeof e)
for (n in t)
E.call(t, n) && "string" == typeof n && n && "function" == typeof t[n] && Zt.off(n, t[n]);
if (o && o.length)
for (n = 0,
i = o.length; n < i; n++)
if (t = o[n].toLowerCase().replace(/^on/, ""),
a = W[t],
a && a.length)
if (e)
for (r = a.indexOf(e); r !== -1; )
a.splice(r, 1),
r = a.indexOf(e, r);
else
a.length = 0;
return Zt
}
, st = function(t) {
var e;
return e = "string" == typeof t && t ? O(W[t]) || null : O(W)
}
, ut = function(t) {
var e, n, i;
if (t = yt(t),
t && !Ct(t))
return "ready" === t.type && $.overdue === !0 ? Zt.emit({
type: "error",
name: "flash-overdue"
}) : (e = M({}, t),
St.call(this, e),
"copy" === t.type && (i = jt(V),
n = i.data,
Y = i.formatMap),
n)
}
, ct = function() {
var t = $.sandboxed;
if (Gt(),
"boolean" != typeof $.ready && ($.ready = !1),
$.sandboxed !== t && $.sandboxed === !0)
$.ready = !1,
Zt.emit({
type: "error",
name: "flash-sandboxed"
});
else if (!Zt.isFlashUnusable() && null === $.bridge) {
var e = et.flashLoadTimeout;
"number" == typeof e && e >= 0 && (X = h(function() {
"boolean" != typeof $.deactivated && ($.deactivated = !0),
$.deactivated === !0 && Zt.emit({
type: "error",
name: "flash-deactivated"
})
}, e)),
$.overdue = !1,
Ot()
}
}
, lt = function() {
Zt.clearData(),
Zt.blur(),
Zt.emit("destroy"),
Nt(),
Zt.off()
}
, ft = function(t, e) {
var n;
if ("object" == typeof t && t && "undefined" == typeof e)
n = t,
Zt.clearData();
else {
if ("string" != typeof t || !t)
return;
n = {},
n[t] = e
}
for (var i in n)
"string" == typeof i && i && E.call(n, i) && "string" == typeof n[i] && n[i] && (V[i] = n[i])
}
, ht = function(t) {
"undefined" == typeof t ? (I(V),
Y = null ) : "string" == typeof t && E.call(V, t) && delete V[t]
}
, dt = function(t) {
return "undefined" == typeof t ? O(V) : "string" == typeof t && E.call(V, t) ? V[t] : void 0
}
, pt = function(t) {
if (t && 1 === t.nodeType) {
s && (Ht(s, et.activeClass),
s !== t && Ht(s, et.hoverClass)),
s = t,
Bt(t, et.hoverClass);
var e = t.getAttribute("title") || et.title;
if ("string" == typeof e && e) {
var n = Mt($.bridge);
n && n.setAttribute("title", e)
}
var i = et.forceHandCursor === !0 || "pointer" === Ut(t, "cursor");
Yt(i),
Vt()
}
}
, vt = function() {
var t = Mt($.bridge);
t && (t.removeAttribute("title"),
t.style.left = "0px",
t.style.top = "-9999px",
t.style.width = "1px",
t.style.height = "1px"),
s && (Ht(s, et.hoverClass),
Ht(s, et.activeClass),
s = null )
}
, gt = function() {
return s || null
}
, mt = function(t) {
return "string" == typeof t && t && /^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(t)
}
, yt = function(t) {
var e;
if ("string" == typeof t && t ? (e = t,
t = {}) : "object" == typeof t && t && "string" == typeof t.type && t.type && (e = t.type),
e) {
e = e.toLowerCase(),
!t.target && (/^(copy|aftercopy|_click)$/.test(e) || "error" === e && "clipboard-error" === t.name) && (t.target = u),
M(t, {
type: e,
target: t.target || s || null ,
relatedTarget: t.relatedTarget || null ,
currentTarget: $ && $.bridge || null ,
timeStamp: t.timeStamp || S() || null
});
var n = K[t.type];
return "error" === t.type && t.name && n && (n = n[t.name]),
n && (t.message = n),
"ready" === t.type && M(t, {
target: null ,
version: $.version
}),
"error" === t.type && (J.test(t.name) && M(t, {
target: null ,
minimumVersion: q
}),
tt.test(t.name) && M(t, {
version: $.version
})),
"copy" === t.type && (t.clipboardData = {
setData: Zt.setData,
clearData: Zt.clearData
}),
"aftercopy" === t.type && (t = It(t, Y)),
t.target && !t.relatedTarget && (t.relatedTarget = bt(t.target)),
wt(t)
}
}
, bt = function(t) {
var e = t && t.getAttribute && t.getAttribute("data-clipboard-target");
return e ? l.getElementById(e) : null
}
, wt = function(t) {
if (t && /^_(?:click|mouse(?:over|out|down|up|move))$/.test(t.type)) {
var e = t.target
, n = "_mouseover" === t.type && t.relatedTarget ? t.relatedTarget : o
, i = "_mouseout" === t.type && t.relatedTarget ? t.relatedTarget : o
, r = $t(e)
, a = c.screenLeft || c.screenX || 0
, s = c.screenTop || c.screenY || 0
, u = l.body.scrollLeft + l.documentElement.scrollLeft
, f = l.body.scrollTop + l.documentElement.scrollTop
, h = r.left + ("number" == typeof t._stageX ? t._stageX : 0)
, d = r.top + ("number" == typeof t._stageY ? t._stageY : 0)
, p = h - u
, v = d - f
, g = a + p
, m = s + v
, y = "number" == typeof t.movementX ? t.movementX : 0
, b = "number" == typeof t.movementY ? t.movementY : 0;
delete t._stageX,
delete t._stageY,
M(t, {
srcElement: e,
fromElement: n,
toElement: i,
screenX: g,
screenY: m,
pageX: h,
pageY: d,
clientX: p,
clientY: v,
x: p,
y: v,
movementX: y,
movementY: b,
offsetX: 0,
offsetY: 0,
layerX: 0,
layerY: 0
})
}
return t
}
, xt = function(t) {
var e = t && "string" == typeof t.type && t.type || "";
return !/^(?:(?:before)?copy|destroy)$/.test(e)
}
, Tt = function(t, e, n, i) {
i ? h(function() {
t.apply(e, n)
}, 0) : t.apply(e, n)
}
, St = function(t) {
if ("object" == typeof t && t && t.type) {
var e = xt(t)
, n = W["*"] || []
, i = W[t.type] || []
, r = n.concat(i);
if (r && r.length) {
var o, a, s, u, l, f = this;
for (o = 0,
a = r.length; o < a; o++)
s = r[o],
u = f,
"string" == typeof s && "function" == typeof c[s] && (s = c[s]),
"object" == typeof s && s && "function" == typeof s.handleEvent && (u = s,
s = s.handleEvent),
"function" == typeof s && (l = M({}, t),
Tt(s, u, [l], e))
}
return this
}
}
, _t = function(t) {
var e = null ;
return (U === !1 || t && "error" === t.type && t.name && Z.indexOf(t.name) !== -1) && (e = !1),
e
}
, Ct = function(t) {
var e = t.target || s || null
, n = "swf" === t._source;
switch (delete t._source,
t.type) {
case "error":
var i = "flash-sandboxed" === t.name || _t(t);
"boolean" == typeof i && ($.sandboxed = i),
Q.indexOf(t.name) !== -1 ? M($, {
disabled: "flash-disabled" === t.name,
outdated: "flash-outdated" === t.name,
unavailable: "flash-unavailable" === t.name,
degraded: "flash-degraded" === t.name,
deactivated: "flash-deactivated" === t.name,
overdue: "flash-overdue" === t.name,
ready: !1
}) : "version-mismatch" === t.name && (a = t.swfVersion,
M($, {
disabled: !1,
outdated: !1,
unavailable: !1,
degraded: !1,
deactivated: !1,
overdue: !1,
ready: !1
})),
Wt();
break;
case "ready":
a = t.swfVersion;
var r = $.deactivated === !0;
M($, {
disabled: !1,
outdated: !1,
sandboxed: !1,
unavailable: !1,
degraded: !1,
deactivated: !1,
overdue: r,
ready: !r
}),
Wt();
break;
case "beforecopy":
u = e;
break;
case "copy":
var o, c, l = t.relatedTarget;
!V["text/html"] && !V["text/plain"] && l && (c = l.value || l.outerHTML || l.innerHTML) && (o = l.value || l.textContent || l.innerText) ? (t.clipboardData.clearData(),
t.clipboardData.setData("text/plain", o),
c !== o && t.clipboardData.setData("text/html", c)) : !V["text/plain"] && t.target && (o = t.target.getAttribute("data-clipboard-text")) && (t.clipboardData.clearData(),
t.clipboardData.setData("text/plain", o));
break;
case "aftercopy":
Et(t),
Zt.clearData(),
e && e !== zt() && e.focus && e.focus();
break;
case "_mouseover":
Zt.focus(e),
et.bubbleEvents === !0 && n && (e && e !== t.relatedTarget && !L(t.relatedTarget, e) && Dt(M({}, t, {
type: "mouseenter",
bubbles: !1,
cancelable: !1
})),
Dt(M({}, t, {
type: "mouseover"
})));
break;
case "_mouseout":
Zt.blur(),
et.bubbleEvents === !0 && n && (e && e !== t.relatedTarget && !L(t.relatedTarget, e) && Dt(M({}, t, {
type: "mouseleave",
bubbles: !1,
cancelable: !1
})),
Dt(M({}, t, {
type: "mouseout"
})));
break;
case "_mousedown":
Bt(e, et.activeClass),
et.bubbleEvents === !0 && n && Dt(M({}, t, {
type: t.type.slice(1)
}));
break;
case "_mouseup":
Ht(e, et.activeClass),
et.bubbleEvents === !0 && n && Dt(M({}, t, {
type: t.type.slice(1)
}));
break;
case "_click":
u = null ,
et.bubbleEvents === !0 && n && Dt(M({}, t, {
type: t.type.slice(1)
}));
break;
case "_mousemove":
et.bubbleEvents === !0 && n && Dt(M({}, t, {
type: t.type.slice(1)
}))
}
if (/^_(?:click|mouse(?:over|out|down|up|move))$/.test(t.type))
return !0
}
, Et = function(t) {
if (t.errors && t.errors.length > 0) {
var e = O(t);
M(e, {
type: "error",
name: "clipboard-error"
}),
delete e.success,
h(function() {
Zt.emit(e)
}, 0)
}
}
, Dt = function(t) {
if (t && "string" == typeof t.type && t) {
var e, n = t.target || null , i = n && n.ownerDocument || l, r = {
view: i.defaultView || c,
canBubble: !0,
cancelable: !0,
detail: "click" === t.type ? 1 : 0,
button: "number" == typeof t.which ? t.which - 1 : "number" == typeof t.button ? t.button : i.createEvent ? 0 : 1
}, o = M(r, t);
n && i.createEvent && n.dispatchEvent && (o = [o.type, o.canBubble, o.cancelable, o.view, o.detail, o.screenX, o.screenY, o.clientX, o.clientY, o.ctrlKey, o.altKey, o.shiftKey, o.metaKey, o.button, o.relatedTarget],
e = i.createEvent("MouseEvents"),
e.initMouseEvent && (e.initMouseEvent.apply(e, o),
e._source = "js",
n.dispatchEvent(e)))
}
}
, kt = function() {
var t = et.flashLoadTimeout;
if ("number" == typeof t && t >= 0) {
var e = Math.min(1e3, t / 10)
, n = et.swfObjectId + "_fallbackContent";
G = p(function() {
var t = l.getElementById(n);
qt(t) && (Wt(),
$.deactivated = null ,
Zt.emit({
type: "error",
name: "swf-not-found"
}))
}, e)
}
}
, At = function() {
var t = l.createElement("div");
return t.id = et.containerId,
t.className = et.containerClass,
t.style.position = "absolute",
t.style.left = "0px",
t.style.top = "-9999px",
t.style.width = "1px",
t.style.height = "1px",
t.style.zIndex = "" + Xt(et.zIndex),
t
}
, Mt = function(t) {
for (var e = t && t.parentNode; e && "OBJECT" === e.nodeName && e.parentNode; )
e = e.parentNode;
return e || null
}
, Ot = function() {
var t, e = $.bridge, n = Mt(e);
if (!e) {
var i = Rt(c.location.host, et)
, r = "never" === i ? "none" : "all"
, o = Ft(M({
jsVersion: Zt.version
}, et))
, a = et.swfPath + Lt(et.swfPath, et);
n = At();
var s = l.createElement("div");
n.appendChild(s),
l.body.appendChild(n);
var u = l.createElement("div")
, f = "activex" === $.pluginType;
u.innerHTML = '<object id="' + et.swfObjectId + '" name="' + et.swfObjectId + '" width="100%" height="100%" ' + (f ? 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"' : 'type="application/x-shockwave-flash" data="' + a + '"') + ">" + (f ? '<param name="movie" value="' + a + '"/>' : "") + '<param name="allowScriptAccess" value="' + i + '"/><param name="allowNetworking" value="' + r + '"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><param name="flashvars" value="' + o + '"/><div id="' + et.swfObjectId + '_fallbackContent">&nbsp;</div></object>',
e = u.firstChild,
u = null ,
k(e).ZeroClipboard = Zt,
n.replaceChild(e, s),
kt()
}
return e || (e = l[et.swfObjectId],
e && (t = e.length) && (e = e[t - 1]),
!e && n && (e = n.firstChild)),
$.bridge = e || null ,
e
}
, Nt = function() {
var t = $.bridge;
if (t) {
var e = Mt(t);
e && ("activex" === $.pluginType && "readyState"in t ? (t.style.display = "none",
function n() {
if (4 === t.readyState) {
for (var i in t)
"function" == typeof t[i] && (t[i] = null );
t.parentNode && t.parentNode.removeChild(t),
e.parentNode && e.parentNode.removeChild(e)
} else
h(n, 10)
}()) : (t.parentNode && t.parentNode.removeChild(t),
e.parentNode && e.parentNode.removeChild(e))),
Wt(),
$.ready = null ,
$.bridge = null ,
$.deactivated = null ,
a = o
}
}
, jt = function(t) {
var e = {}
, n = {};
if ("object" == typeof t && t) {
for (var i in t)
if (i && E.call(t, i) && "string" == typeof t[i] && t[i])
switch (i.toLowerCase()) {
case "text/plain":
case "text":
case "air:text":
case "flash:text":
e.text = t[i],
n.text = i;
break;
case "text/html":
case "html":
case "air:html":
case "flash:html":
e.html = t[i],
n.html = i;
break;
case "application/rtf":
case "text/rtf":
case "rtf":
case "richtext":
case "air:rtf":
case "flash:rtf":
e.rtf = t[i],
n.rtf = i
}
return {
data: e,
formatMap: n
}
}
}
, It = function(t, e) {
if ("object" != typeof t || !t || "object" != typeof e || !e)
return t;
var n = {};
for (var i in t)
if (E.call(t, i))
if ("errors" === i) {
n[i] = t[i] ? t[i].slice() : [];
for (var r = 0, o = n[i].length; r < o; r++)
n[i][r].format = e[n[i][r].format]
} else if ("success" !== i && "data" !== i)
n[i] = t[i];
else {
n[i] = {};
var a = t[i];
for (var s in a)
s && E.call(a, s) && E.call(e, s) && (n[i][e[s]] = a[s])
}
return n
}
, Lt = function(t, e) {
var n = null == e || e && e.cacheBust === !0;
return n ? (t.indexOf("?") === -1 ? "?" : "&") + "noCache=" + S() : ""
}
, Ft = function(t) {
var e, n, i, r, o = "", a = [];
if (t.trustedDomains && ("string" == typeof t.trustedDomains ? r = [t.trustedDomains] : "object" == typeof t.trustedDomains && "length"in t.trustedDomains && (r = t.trustedDomains)),
r && r.length)
for (e = 0,
n = r.length; e < n; e++)
if (E.call(r, e) && r[e] && "string" == typeof r[e]) {
if (i = Pt(r[e]),
!i)
continue;if ("*" === i) {
a.length = 0,
a.push(i);
break
}
a.push.apply(a, [i, "//" + i, c.location.protocol + "//" + i])
}
return a.length && (o += "trustedOrigins=" + m(a.join(","))),
t.forceEnhancedClipboard === !0 && (o += (o ? "&" : "") + "forceEnhancedClipboard=true"),
"string" == typeof t.swfObjectId && t.swfObjectId && (o += (o ? "&" : "") + "swfObjectId=" + m(t.swfObjectId)),
"string" == typeof t.jsVersion && t.jsVersion && (o += (o ? "&" : "") + "jsVersion=" + m(t.jsVersion)),
o
}
, Pt = function(t) {
if (null == t || "" === t)
return null ;
if (t = t.replace(/^\s+|\s+$/g, ""),
"" === t)
return null ;
var e = t.indexOf("//");
t = e === -1 ? t : t.slice(e + 2);
var n = t.indexOf("/");
return t = n === -1 ? t : e === -1 || 0 === n ? null : t.slice(0, n),
t && ".swf" === t.slice(-4).toLowerCase() ? null : t || null
}
, Rt = function() {
var t = function(t) {
var e, n, i, r = [];
if ("string" == typeof t && (t = [t]),
"object" != typeof t || !t || "number" != typeof t.length)
return r;
for (e = 0,
n = t.length; e < n; e++)
if (E.call(t, e) && (i = Pt(t[e]))) {
if ("*" === i) {
r.length = 0,
r.push("*");
break
}
r.indexOf(i) === -1 && r.push(i)
}
return r
}
;
return function(e, n) {
var i = Pt(n.swfPath);
null === i && (i = e);
var r = t(n.trustedDomains)
, o = r.length;
if (o > 0) {
if (1 === o && "*" === r[0])
return "always";
if (r.indexOf(e) !== -1)
return 1 === o && e === i ? "sameDomain" : "always"
}
return "never"
}
}(), zt = function() {
try {
return l.activeElement
} catch (t) {
return null
}
}
, Bt = function(t, e) {
var n, i, r, o = [];
if ("string" == typeof e && e && (o = e.split(/\s+/)),
t && 1 === t.nodeType && o.length > 0)
if (t.classList)
for (n = 0,
i = o.length; n < i; n++)
t.classList.add(o[n]);
else if (t.hasOwnProperty("className")) {
for (r = " " + t.className + " ",
n = 0,
i = o.length; n < i; n++)
r.indexOf(" " + o[n] + " ") === -1 && (r += o[n] + " ");
t.className = r.replace(/^\s+|\s+$/g, "")
}
return t
}
, Ht = function(t, e) {
var n, i, r, o = [];
if ("string" == typeof e && e && (o = e.split(/\s+/)),
t && 1 === t.nodeType && o.length > 0)
if (t.classList && t.classList.length > 0)
for (n = 0,
i = o.length; n < i; n++)
t.classList.remove(o[n]);
else if (t.className) {
for (r = (" " + t.className + " ").replace(/[\r\n\t]/g, " "),
n = 0,
i = o.length; n < i; n++)
r = r.replace(" " + o[n] + " ", " ");
t.className = r.replace(/^\s+|\s+$/g, "")
}
return t
}
, Ut = function(t, e) {
var n = g(t, null ).getPropertyValue(e);
return "cursor" !== e || n && "auto" !== n || "A" !== t.nodeName ? n : "pointer"
}
, $t = function(t) {
var e = {
left: 0,
top: 0,
width: 0,
height: 0
};
if (t.getBoundingClientRect) {
var n = t.getBoundingClientRect()
, i = c.pageXOffset
, r = c.pageYOffset
, o = l.documentElement.clientLeft || 0
, a = l.documentElement.clientTop || 0
, s = 0
, u = 0;
if ("relative" === Ut(l.body, "position")) {
var f = l.body.getBoundingClientRect()
, h = l.documentElement.getBoundingClientRect();
s = f.left - h.left || 0,
u = f.top - h.top || 0
}
e.left = n.left + i - o - s,
e.top = n.top + r - a - u,
e.width = "width"in n ? n.width : n.right - n.left,
e.height = "height"in n ? n.height : n.bottom - n.top
}
return e
}
, qt = function(t) {
if (!t)
return !1;
var e = g(t, null )
, n = x(e.height) > 0
, i = x(e.width) > 0
, r = x(e.top) >= 0
, o = x(e.left) >= 0
, a = n && i && r && o
, s = a ? null : $t(t)
, u = "none" !== e.display && "collapse" !== e.visibility && (a || !!s && (n || s.height > 0) && (i || s.width > 0) && (r || s.top >= 0) && (o || s.left >= 0));
return u
}
, Wt = function() {
d(X),
X = 0,
v(G),
G = 0
}
, Vt = function() {
var t;
if (s && (t = Mt($.bridge))) {
var e = $t(s);
M(t.style, {
width: e.width + "px",
height: e.height + "px",
top: e.top + "px",
left: e.left + "px",
zIndex: "" + Xt(et.zIndex)
})
}
}
, Yt = function(t) {
$.ready === !0 && ($.bridge && "function" == typeof $.bridge.setHandCursor ? $.bridge.setHandCursor(t) : $.ready = !1)
}
, Xt = function(t) {
if (/^(?:auto|inherit)$/.test(t))
return t;
var e;
return "number" != typeof t || T(t) ? "string" == typeof t && (e = Xt(w(t, 10))) : e = t,
"number" == typeof e ? e : "auto"
}
, Gt = function(t) {
var e, n, i, o = $.sandboxed, a = null ;
if (t = t === !0,
U === !1)
a = !1;
else {
try {
n = r.frameElement || null
} catch (s) {
i = {
name: s.name,
message: s.message
}
}
if (n && 1 === n.nodeType && "IFRAME" === n.nodeName)
try {
a = n.hasAttribute("sandbox")
} catch (s) {
a = null
}
else {
try {
e = document.domain || null
} catch (s) {
e = null
}
(null === e || i && "SecurityError" === i.name && /(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(i.message.toLowerCase())) && (a = !0)
}
}
return $.sandboxed = a,
o === a || t || Kt(y),
a
}
, Kt = function(t) {
function e(t) {
var e = t.match(/[\d]+/g);
return e.length = 3,
e.join(".")
}
function n(t) {
return !!t && (t = t.toLowerCase()) && (/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(t) || "chrome.plugin" === t.slice(-13))
}
function i(t) {
t && (s = !0,
t.version && (l = e(t.version)),
!l && t.description && (l = e(t.description)),
t.filename && (c = n(t.filename)))
}
var r, o, a, s = !1, u = !1, c = !1, l = "";
if (f.plugins && f.plugins.length)
r = f.plugins["Shockwave Flash"],
i(r),
f.plugins["Shockwave Flash 2.0"] && (s = !0,
l = "2.0.0.11");
else if (f.mimeTypes && f.mimeTypes.length)
a = f.mimeTypes["application/x-shockwave-flash"],
r = a && a.enabledPlugin,
i(r);
else if ("undefined" != typeof t) {
u = !0;
try {
o = new t("ShockwaveFlash.ShockwaveFlash.7"),
s = !0,
l = e(o.GetVariable("$version"))
} catch (h) {
try {
o = new t("ShockwaveFlash.ShockwaveFlash.6"),
s = !0,
l = "6.0.21"
} catch (d) {
try {
o = new t("ShockwaveFlash.ShockwaveFlash"),
s = !0,
l = e(o.GetVariable("$version"))
} catch (p) {
u = !1
}
}
}
}
$.disabled = s !== !0,
$.outdated = l && x(l) < x(q),
$.version = l || "0.0.0",
$.pluginType = c ? "pepper" : u ? "activex" : s ? "netscape" : "unknown"
}
;
Kt(y),
Gt(!0);
var Zt = function() {
return this instanceof Zt ? void ("function" == typeof Zt._createClient && Zt._createClient.apply(this, A(arguments))) : new Zt
}
;
C(Zt, "version", {
value: "2.2.0",
writable: !1,
configurable: !0,
enumerable: !0
}),
Zt.config = function() {
return nt.apply(this, A(arguments))
}
,
Zt.state = function() {
return it.apply(this, A(arguments))
}
,
Zt.isFlashUnusable = function() {
return rt.apply(this, A(arguments))
}
,
Zt.on = function() {
return ot.apply(this, A(arguments))
}
,
Zt.off = function() {
return at.apply(this, A(arguments))
}
,
Zt.handlers = function() {
return st.apply(this, A(arguments))
}
,
Zt.emit = function() {
return ut.apply(this, A(arguments))
}
,
Zt.create = function() {
return ct.apply(this, A(arguments))
}
,
Zt.destroy = function() {
return lt.apply(this, A(arguments))
}
,
Zt.setData = function() {
return ft.apply(this, A(arguments))
}
,
Zt.clearData = function() {
return ht.apply(this, A(arguments))
}
,
Zt.getData = function() {
return dt.apply(this, A(arguments))
}
,
Zt.focus = Zt.activate = function() {
return pt.apply(this, A(arguments))
}
,
Zt.blur = Zt.deactivate = function() {
return vt.apply(this, A(arguments))
}
,
Zt.activeElement = function() {
return gt.apply(this, A(arguments))
}
;
var Qt = 0
, Jt = {}
, te = 0
, ee = {}
, ne = {};
M(et, {
autoActivate: !0
});
var ie = function(t) {
var e = this;
e.id = "" + Qt++,
Jt[e.id] = {
instance: e,
elements: [],
handlers: {}
},
t && e.clip(t),
Zt.on("*", function(t) {
return e.emit(t)
}),
Zt.on("destroy", function() {
e.destroy()
}),
Zt.create()
}
, re = function(t, e) {
var n, i, r, s = {}, u = Jt[this.id], c = u && u.handlers;
if (!u)
throw new Error("Attempted to add new listener(s) to a destroyed ZeroClipboard client instance");
if ("string" == typeof t && t)
r = t.toLowerCase().split(/\s+/);
else if ("object" == typeof t && t && "undefined" == typeof e)
for (n in t)
E.call(t, n) && "string" == typeof n && n && "function" == typeof t[n] && this.on(n, t[n]);
if (r && r.length) {
for (n = 0,
i = r.length; n < i; n++)
t = r[n].replace(/^on/, ""),
s[t] = !0,
c[t] || (c[t] = []),
c[t].push(e);
if (s.ready && $.ready && this.emit({
type: "ready",
client: this
}),
s.error) {
for (n = 0,
i = Q.length; n < i; n++)
if ($[Q[n].replace(/^flash-/, "")]) {
this.emit({
type: "error",
name: Q[n],
client: this
});
break
}
a !== o && Zt.version !== a && this.emit({
type: "error",
name: "version-mismatch",
jsVersion: Zt.version,
swfVersion: a
})
}
}
return this
}
, oe = function(t, e) {
var n, i, r, o, a, s = Jt[this.id], u = s && s.handlers;
if (!u)
return this;
if (0 === arguments.length)
o = _(u);
else if ("string" == typeof t && t)
o = t.split(/\s+/);
else if ("object" == typeof t && t && "undefined" == typeof e)
for (n in t)
E.call(t, n) && "string" == typeof n && n && "function" == typeof t[n] && this.off(n, t[n]);
if (o && o.length)
for (n = 0,
i = o.length; n < i; n++)
if (t = o[n].toLowerCase().replace(/^on/, ""),
a = u[t],
a && a.length)
if (e)
for (r = a.indexOf(e); r !== -1; )
a.splice(r, 1),
r = a.indexOf(e, r);
else
a.length = 0;
return this
}
, ae = function(t) {
var e = null
, n = Jt[this.id] && Jt[this.id].handlers;
return n && (e = "string" == typeof t && t ? n[t] ? n[t].slice(0) : [] : O(n)),
e
}
, se = function(t) {
if (he.call(this, t)) {
"object" == typeof t && t && "string" == typeof t.type && t.type && (t = M({}, t));
var e = M({}, yt(t), {
client: this
});
de.call(this, e)
}
return this
}
, ue = function(t) {
if (!Jt[this.id])
throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");
t = pe(t);
for (var e = 0; e < t.length; e++)
if (E.call(t, e) && t[e] && 1 === t[e].nodeType) {
t[e].zcClippingId ? ee[t[e].zcClippingId].indexOf(this.id) === -1 && ee[t[e].zcClippingId].push(this.id) : (t[e].zcClippingId = "zcClippingId_" + te++,
ee[t[e].zcClippingId] = [this.id],
et.autoActivate === !0 && ve(t[e]));
var n = Jt[this.id] && Jt[this.id].elements;
n.indexOf(t[e]) === -1 && n.push(t[e])
}
return this
}
, ce = function(t) {
var e = Jt[this.id];
if (!e)
return this;
var n, i = e.elements;
t = "undefined" == typeof t ? i.slice(0) : pe(t);
for (var r = t.length; r--; )
if (E.call(t, r) && t[r] && 1 === t[r].nodeType) {
for (n = 0; (n = i.indexOf(t[r], n)) !== -1; )
i.splice(n, 1);
var o = ee[t[r].zcClippingId];
if (o) {
for (n = 0; (n = o.indexOf(this.id, n)) !== -1; )
o.splice(n, 1);
0 === o.length && (et.autoActivate === !0 && ge(t[r]),
delete t[r].zcClippingId)
}
}
return this
}
, le = function() {
var t = Jt[this.id];
return t && t.elements ? t.elements.slice(0) : []
}
, fe = function() {
Jt[this.id] && (this.unclip(),
this.off(),
delete Jt[this.id])
}
, he = function(t) {
if (!t || !t.type)
return !1;
if (t.client && t.client !== this)
return !1;
var e = Jt[this.id]
, n = e && e.elements
, i = !!n && n.length > 0
, r = !t.target || i && n.indexOf(t.target) !== -1
, o = t.relatedTarget && i && n.indexOf(t.relatedTarget) !== -1
, a = t.client && t.client === this;
return !(!e || !(r || o || a))
}
, de = function(t) {
var e = Jt[this.id];
if ("object" == typeof t && t && t.type && e) {
var n = xt(t)
, i = e && e.handlers["*"] || []
, r = e && e.handlers[t.type] || []
, o = i.concat(r);
if (o && o.length) {
var a, s, u, l, f, h = this;
for (a = 0,
s = o.length; a < s; a++)
u = o[a],
l = h,
"string" == typeof u && "function" == typeof c[u] && (u = c[u]),
"object" == typeof u && u && "function" == typeof u.handleEvent && (l = u,
u = u.handleEvent),
"function" == typeof u && (f = M({}, t),
Tt(u, l, [f], n))
}
}
}
, pe = function(t) {
return "string" == typeof t && (t = []),
"number" != typeof t.length ? [t] : t
}
, ve = function(t) {
if (t && 1 === t.nodeType) {
var e = function(t) {
(t || (t = c.event)) && ("js" !== t._source && (t.stopImmediatePropagation(),
t.preventDefault()),
delete t._source)
}
, n = function(n) {
(n || (n = c.event)) && (e(n),
Zt.focus(t))
}
;
t.addEventListener("mouseover", n, !1),
t.addEventListener("mouseout", e, !1),
t.addEventListener("mouseenter", e, !1),
t.addEventListener("mouseleave", e, !1),
t.addEventListener("mousemove", e, !1),
ne[t.zcClippingId] = {
mouseover: n,
mouseout: e,
mouseenter: e,
mouseleave: e,
mousemove: e
}
}
}
, ge = function(t) {
if (t && 1 === t.nodeType) {
var e = ne[t.zcClippingId];
if ("object" == typeof e && e) {
for (var n, i, r = ["move", "leave", "enter", "out", "over"], o = 0, a = r.length; o < a; o++)
n = "mouse" + r[o],
i = e[n],
"function" == typeof i && t.removeEventListener(n, i, !1);
delete ne[t.zcClippingId]
}
}
}
;
Zt._createClient = function() {
ie.apply(this, A(arguments))
}
,
Zt.prototype.on = function() {
return re.apply(this, A(arguments))
}
,
Zt.prototype.off = function() {
return oe.apply(this, A(arguments))
}
,
Zt.prototype.handlers = function() {
return ae.apply(this, A(arguments))
}
,
Zt.prototype.emit = function() {
return se.apply(this, A(arguments))
}
,
Zt.prototype.clip = function() {
return ue.apply(this, A(arguments))
}
,
Zt.prototype.unclip = function() {
return ce.apply(this, A(arguments))
}
,
Zt.prototype.elements = function() {
return le.apply(this, A(arguments))
}
,
Zt.prototype.destroy = function() {
return fe.apply(this, A(arguments))
}
,
Zt.prototype.setText = function(t) {
if (!Jt[this.id])
throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");
return Zt.setData("text/plain", t),
this
}
,
Zt.prototype.setHtml = function(t) {
if (!Jt[this.id])
throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");
return Zt.setData("text/html", t),
this
}
,
Zt.prototype.setRichText = function(t) {
if (!Jt[this.id])
throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");
return Zt.setData("application/rtf", t),
this
}
,
Zt.prototype.setData = function() {
if (!Jt[this.id])
throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");
return Zt.setData.apply(this, A(arguments)),
this
}
,
Zt.prototype.clearData = function() {
if (!Jt[this.id])
throw new Error("Attempted to clear pending clipboard data from a destroyed ZeroClipboard client instance");
return Zt.clearData.apply(this, A(arguments)),
this
}
,
Zt.prototype.getData = function() {
if (!Jt[this.id])
throw new Error("Attempted to get pending clipboard data from a destroyed ZeroClipboard client instance");
return Zt.getData.apply(this, A(arguments))
}
,
i = function() {
return Zt
}
.call(e, n, e, t),
!(i !== o && (t.exports = i))
}(function() {
return this || window
}())
}
, function(t, e, n) {
var i = n(59);
t.exports = function(t, e) {
if ("number" != typeof t && "Number" != i(t))
throw TypeError(e);
return +t
}
}
, function(t, e, n) {
"use strict";
var i = n(30)
, r = n(112)
, o = n(26);
t.exports = [].copyWithin || function(t, e) {
var n = i(this)
, a = o(n.length)
, s = r(t, a)
, u = r(e, a)
, c = arguments.length > 2 ? arguments[2] : void 0
, l = Math.min((void 0 === c ? a : r(c, a)) - u, a - s)
, f = 1;
for (u < s && s < u + l && (f = -1,
u += l - 1,
s += l - 1); l-- > 0; )
u in n ? n[s] = n[u] : delete n[s],
s += f,
u += f;
return n
}
}
, function(t, e, n) {
var i = n(131);
t.exports = function(t, e) {
var n = [];
return i(t, !1, n.push, n, e),
n
}
}
, function(t, e, n) {
var i = n(44)
, r = n(30)
, o = n(164)
, a = n(26);
t.exports = function(t, e, n, s, u) {
i(e);
var c = r(t)
, l = o(c)
, f = a(c.length)
, h = u ? f - 1 : 0
, d = u ? -1 : 1;
if (n < 2)
for (; ; ) {
if (h in l) {
s = l[h],
h += d;
break
}
if (h += d,
u ? h < 0 : f <= h)
throw TypeError("Reduce of empty array with no initial value")
}
for (; u ? h >= 0 : f > h; h += d)
h in l && (s = e(s, l[h], h, c));
return s
}
}
, function(t, e, n) {
"use strict";
var i = n(44)
, r = n(17)
, o = n(208)
, a = [].slice
, s = {}
, u = function(t, e, n) {
if (!(e in s)) {
for (var i = [], r = 0; r < e; r++)
i[r] = "a[" + r + "]";
s[e] = Function("F,a", "return new F(" + i.join(",") + ")")
}
return s[e](t, n)
}
;
t.exports = Function.bind || function(t) {
var e = i(this)
, n = a.call(arguments, 1)
, s = function() {
var i = n.concat(a.call(arguments));
return this instanceof s ? u(e, i.length, i) : o(e, i, t)
}
;
return r(e.prototype) && (s.prototype = e.prototype),
s
}
}
, function(t, e, n) {
"use strict";
var i = n(22).f
, r = n(107)
, o = n(110)
, a = n(78)
, s = n(105)
, u = n(60)
, c = n(131)
, l = n(318)
, f = n(475)
, h = n(111)
, d = n(21)
, p = n(88).fastKey
, v = d ? "_s" : "size"
, g = function(t, e) {
var n, i = p(e);
if ("F" !== i)
return t._i[i];
for (n = t._f; n; n = n.n)
if (n.k == e)
return n
}
;
t.exports = {
getConstructor: function(t, e, n, l) {
var f = t(function(t, i) {
s(t, f, e, "_i"),
t._i = r(null ),
t._f = void 0,
t._l = void 0,
t[v] = 0,
void 0 != i && c(i, n, t[l], t)
});
return o(f.prototype, {
clear: function() {
for (var t = this, e = t._i, n = t._f; n; n = n.n)
n.r = !0,
n.p && (n.p = n.p.n = void 0),
delete e[n.i];
t._f = t._l = void 0,
t[v] = 0
},
"delete": function(t) {
var e = this
, n = g(e, t);
if (n) {
var i = n.n
, r = n.p;
delete e._i[n.i],
n.r = !0,
r && (r.n = i),
i && (i.p = r),
e._f == n && (e._f = i),
e._l == n && (e._l = r),
e[v]--
}
return !!n
},
forEach: function(t) {
s(this, f, "forEach");
for (var e, n = a(t, arguments.length > 1 ? arguments[1] : void 0, 3); e = e ? e.n : this._f; )
for (n(e.v, e.k, this); e && e.r; )
e = e.p
},
has: function(t) {
return !!g(this, t)
}
}),
d && i(f.prototype, "size", {
get: function() {
return u(this[v])
}
}),
f
},
def: function(t, e, n) {
var i, r, o = g(t, e);
return o ? o.v = n : (t._l = o = {
i: r = p(e, !0),
k: e,
v: n,
p: i = t._l,
n: void 0,
r: !1
},
t._f || (t._f = o),
i && (i.n = o),
t[v]++,
"F" !== r && (t._i[r] = o)),
t
},
getEntry: g,
setStrong: function(t, e, n) {
l(t, e, function(t, e) {
this._t = t,
this._k = e,
this._l = void 0;
}, function() {
for (var t = this, e = t._k, n = t._l; n && n.r; )
n = n.p;
return t._t && (t._l = n = n ? n.n : t._t._f) ? "keys" == e ? f(0, n.k) : "values" == e ? f(0, n.v) : f(0, [n.k, n.v]) : (t._t = void 0,
f(1))
}, n ? "entries" : "values", !n, !0),
h(e)
}
}
}
, function(t, e, n) {
var i = n(163)
, r = n(466);
t.exports = function(t) {
return function() {
if (i(this) != t)
throw TypeError(t + "#toJSON isn't generic");
return r(this)
}
}
}
, function(t, e, n) {
"use strict";
var i = n(110)
, r = n(88).getWeak
, o = n(10)
, a = n(17)
, s = n(105)
, u = n(131)
, c = n(68)
, l = n(35)
, f = c(5)
, h = c(6)
, d = 0
, p = function(t) {
return t._l || (t._l = new v)
}
, v = function() {
this.a = []
}
, g = function(t, e) {
return f(t.a, function(t) {
return t[0] === e
})
}
;
v.prototype = {
get: function(t) {
var e = g(this, t);
if (e)
return e[1]
},
has: function(t) {
return !!g(this, t)
},
set: function(t, e) {
var n = g(this, t);
n ? n[1] = e : this.a.push([t, e])
},
"delete": function(t) {
var e = h(this.a, function(e) {
return e[0] === t
});
return ~e && this.a.splice(e, 1),
!!~e
}
},
t.exports = {
getConstructor: function(t, e, n, o) {
var c = t(function(t, i) {
s(t, c, e, "_i"),
t._i = d++,
t._l = void 0,
void 0 != i && u(i, n, t[o], t)
});
return i(c.prototype, {
"delete": function(t) {
if (!a(t))
return !1;
var e = r(t);
return e === !0 ? p(this)["delete"](t) : e && l(e, this._i) && delete e[this._i]
},
has: function(t) {
if (!a(t))
return !1;
var e = r(t);
return e === !0 ? p(this).has(t) : e && l(e, this._i)
}
}),
c
},
def: function(t, e, n) {
var i = r(o(e), !0);
return i === !0 ? p(t).set(e, n) : i[t._i] = n,
t
},
ufstore: p
}
}
, function(t, e, n) {
t.exports = !n(21) && !n(15)(function() {
return 7 != Object.defineProperty(n(310)("div"), "a", {
get: function() {
return 7
}
}).a
})
}
, function(t, e, n) {
var i = n(17)
, r = Math.floor;
t.exports = function(t) {
return !i(t) && isFinite(t) && r(t) === t
}
}
, function(t, e, n) {
var i = n(10);
t.exports = function(t, e, n, r) {
try {
return r ? e(i(n)[0], n[1]) : e(n)
} catch (o) {
var a = t["return"];
throw void 0 !== a && i(a.call(t)),
o
}
}
}
, function(t, e) {
t.exports = function(t, e) {
return {
value: e,
done: !!t
}
}
}
, function(t, e) {
t.exports = Math.log1p || function(t) {
return (t = +t) > -1e-8 && t < 1e-8 ? t - t * t / 2 : Math.log(1 + t)
}
}
, function(t, e, n) {
"use strict";
var i = n(109)
, r = n(212)
, o = n(165)
, a = n(30)
, s = n(164)
, u = Object.assign;
t.exports = !u || n(15)(function() {
var t = {}
, e = {}
, n = Symbol()
, i = "abcdefghijklmnopqrst";
return t[n] = 7,
i.split("").forEach(function(t) {
e[t] = t
}),
7 != u({}, t)[n] || Object.keys(u({}, e)).join("") != i
}) ? function(t, e) {
for (var n = a(t), u = arguments.length, c = 1, l = r.f, f = o.f; u > c; )
for (var h, d = s(arguments[c++]), p = l ? i(d).concat(l(d)) : i(d), v = p.length, g = 0; v > g; )
f.call(d, h = p[g++]) && (n[h] = d[h]);
return n
}
: u
}
, function(t, e, n) {
var i = n(22)
, r = n(10)
, o = n(109);
t.exports = n(21) ? Object.defineProperties : function(t, e) {
r(t);
for (var n, a = o(e), s = a.length, u = 0; s > u; )
i.f(t, n = a[u++], e[n]);
return t
}
}
, function(t, e, n) {
var i = n(48)
, r = n(108).f
, o = {}.toString
, a = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []
, s = function(t) {
try {
return r(t)
} catch (e) {
return a.slice()
}
}
;
t.exports.f = function(t) {
return a && "[object Window]" == o.call(t) ? s(t) : r(i(t))
}
}
, function(t, e, n) {
var i = n(35)
, r = n(48)
, o = n(204)(!1)
, a = n(323)("IE_PROTO");
t.exports = function(t, e) {
var n, s = r(t), u = 0, c = [];
for (n in s)
n != a && i(s, n) && c.push(n);
for (; e.length > u; )
i(s, n = e[u++]) && (~o(c, n) || c.push(n));
return c
}
}
, function(t, e, n) {
var i = n(109)
, r = n(48)
, o = n(165).f;
t.exports = function(t) {
return function(e) {
for (var n, a = r(e), s = i(a), u = s.length, c = 0, l = []; u > c; )
o.call(a, n = s[c++]) && l.push(t ? [n, a[n]] : a[n]);
return l
}
}
}
, function(t, e, n) {
var i = n(108)
, r = n(212)
, o = n(10)
, a = n(13).Reflect;
t.exports = a && a.ownKeys || function(t) {
var e = i.f(o(t))
, n = r.f;
return n ? e.concat(n(t)) : e
}
}
, function(t, e, n) {
var i = n(13).parseFloat
, r = n(134).trim;
t.exports = 1 / i(n(328) + "-0") !== -(1 / 0) ? function(t) {
var e = r(String(t), 3)
, n = i(e);
return 0 === n && "-" == e.charAt(0) ? -0 : n
}
: i
}
, function(t, e, n) {
var i = n(13).parseInt
, r = n(134).trim
, o = n(328)
, a = /^[\-+]?0[xX]/;
t.exports = 8 !== i(o + "08") || 22 !== i(o + "0x16") ? function(t, e) {
var n = r(String(t), 3);
return i(n, e >>> 0 || (a.test(n) ? 16 : 10))
}
: i
}
, function(t, e) {
t.exports = Object.is || function(t, e) {
return t === e ? 0 !== t || 1 / t === 1 / e : t != t && e != e
}
}
, function(t, e, n) {
var i = n(26)
, r = n(327)
, o = n(60);
t.exports = function(t, e, n, a) {
var s = String(o(t))
, u = s.length
, c = void 0 === n ? " " : String(n)
, l = i(e);
if (l <= u || "" == c)
return s;
var f = l - u
, h = r.call(c, Math.ceil(f / c.length));
return h.length > f && (h = h.slice(0, f)),
a ? h + s : s + h
}
}
, function(t, e, n) {
e.f = n(19)
}
, function(t, e, n) {
"use strict";
var i = n(469);
t.exports = n(205)("Map", function(t) {
return function() {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}, {
get: function(t) {
var e = i.getEntry(this, t);
return e && e.v
},
set: function(t, e) {
return i.def(this, 0 === t ? 0 : t, e)
}
}, i, !0)
}
, function(t, e, n) {
n(21) && "g" != /./g.flags && n(22).f(RegExp.prototype, "flags", {
configurable: !0,
get: n(207)
})
}
, function(t, e, n) {
"use strict";
var i = n(469);
t.exports = n(205)("Set", function(t) {
return function() {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}, {
add: function(t) {
return i.def(this, t = 0 === t ? 0 : t, t)
}
}, i)
}
, function(t, e, n) {
"use strict";
var i, r = n(68)(0), o = n(46), a = n(88), s = n(477), u = n(471), c = n(17), l = a.getWeak, f = Object.isExtensible, h = u.ufstore, d = {}, p = function(t) {
return function() {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}
, v = {
get: function(t) {
if (c(t)) {
var e = l(t);
return e === !0 ? h(this).get(t) : e ? e[this._i] : void 0
}
},
set: function(t, e) {
return u.def(this, t, e)
}
}, g = t.exports = n(205)("WeakMap", p, v, u, !0, !0);
7 != (new g).set((Object.freeze || Object)(d), 7).get(d) && (i = u.getConstructor(p),
s(i.prototype, v),
a.NEED = !0,
r(["delete", "has", "get", "set"], function(t) {
var e = g.prototype
, n = e[t];
o(e, t, function(e, r) {
if (c(e) && !f(e)) {
this._f || (this._f = new i);
var o = this._f[t](e, r);
return "set" == t ? this : o
}
return n.call(this, e, r)
})
}))
}
, function(t, e, n) {
var i, r, o;
/*!
* jQuery Validation Plugin v1.15.1
*
* http://jqueryvalidation.org/
*
* Copyright (c) 2016 Jörn Zaefferer
* Released under the MIT license
*/
!function(a) {
r = [n(1)],
i = a,
o = "function" == typeof i ? i.apply(e, r) : i,
!(void 0 !== o && (t.exports = o))
}(function(t) {
t.extend(t.fn, {
validate: function(e) {
if (!this.length)
return void (e && e.debug && window.console && console.warn("Nothing selected, can't validate, returning nothing."));
var n = t.data(this[0], "validator");
return n ? n : (this.attr("novalidate", "novalidate"),
n = new t.validator(e,this[0]),
t.data(this[0], "validator", n),
n.settings.onsubmit && (this.on("click.validate", ":submit", function(e) {
n.settings.submitHandler && (n.submitButton = e.target),
t(this).hasClass("cancel") && (n.cancelSubmit = !0),
void 0 !== t(this).attr("formnovalidate") && (n.cancelSubmit = !0)
}),
this.on("submit.validate", function(e) {
function i() {
var i, r;
return !n.settings.submitHandler || (n.submitButton && (i = t("<input type='hidden'/>").attr("name", n.submitButton.name).val(t(n.submitButton).val()).appendTo(n.currentForm)),
r = n.settings.submitHandler.call(n, n.currentForm, e),
n.submitButton && i.remove(),
void 0 !== r && r)
}
return n.settings.debug && e.preventDefault(),
n.cancelSubmit ? (n.cancelSubmit = !1,
i()) : n.form() ? n.pendingRequest ? (n.formSubmitted = !0,
!1) : i() : (n.focusInvalid(),
!1)
})),
n)
},
valid: function() {
var e, n, i;
return t(this[0]).is("form") ? e = this.validate().form() : (i = [],
e = !0,
n = t(this[0].form).validate(),
this.each(function() {
e = n.element(this) && e,
e || (i = i.concat(n.errorList))
}),
n.errorList = i),
e
},
rules: function(e, n) {
var i, r, o, a, s, u, c = this[0];
if (null != c && null != c.form) {
if (e)
switch (i = t.data(c.form, "validator").settings,
r = i.rules,
o = t.validator.staticRules(c),
e) {
case "add":
t.extend(o, t.validator.normalizeRule(n)),
delete o.messages,
r[c.name] = o,
n.messages && (i.messages[c.name] = t.extend(i.messages[c.name], n.messages));
break;
case "remove":
return n ? (u = {},
t.each(n.split(/\s/), function(e, n) {
u[n] = o[n],
delete o[n],
"required" === n && t(c).removeAttr("aria-required")
}),
u) : (delete r[c.name],
o)
}
return a = t.validator.normalizeRules(t.extend({}, t.validator.classRules(c), t.validator.attributeRules(c), t.validator.dataRules(c), t.validator.staticRules(c)), c),
a.required && (s = a.required,
delete a.required,
a = t.extend({
required: s
}, a),
t(c).attr("aria-required", "true")),
a.remote && (s = a.remote,
delete a.remote,
a = t.extend(a, {
remote: s
})),
a
}
}
}),
t.extend(t.expr[":"], {
blank: function(e) {
return !t.trim("" + t(e).val())
},
filled: function(e) {
var n = t(e).val();
return null !== n && !!t.trim("" + n)
},
unchecked: function(e) {
return !t(e).prop("checked")
}
}),
t.validator = function(e, n) {
this.settings = t.extend(!0, {}, t.validator.defaults, e),
this.currentForm = n,
this.init()
}
,
t.validator.format = function(e, n) {
return 1 === arguments.length ? function() {
var n = t.makeArray(arguments);
return n.unshift(e),
t.validator.format.apply(this, n)
}
: void 0 === n ? e : (arguments.length > 2 && n.constructor !== Array && (n = t.makeArray(arguments).slice(1)),
n.constructor !== Array && (n = [n]),
t.each(n, function(t, n) {
e = e.replace(new RegExp("\\{" + t + "\\}","g"), function() {
return n
})
}),
e)
}
,
t.extend(t.validator, {
defaults: {
messages: {},
groups: {},
rules: {},
errorClass: "error",
pendingClass: "pending",
validClass: "valid",
errorElement: "label",
focusCleanup: !1,
focusInvalid: !0,
errorContainer: t([]),
errorLabelContainer: t([]),
onsubmit: !0,
ignore: ":hidden",
ignoreTitle: !1,
onfocusin: function(t) {
this.lastActive = t,
this.settings.focusCleanup && (this.settings.unhighlight && this.settings.unhighlight.call(this, t, this.settings.errorClass, this.settings.validClass),
this.hideThese(this.errorsFor(t)))
},
onfocusout: function(t) {
this.checkable(t) || !(t.name in this.submitted) && this.optional(t) || this.element(t)
},
onkeyup: function(e, n) {
var i = [16, 17, 18, 20, 35, 36, 37, 38, 39, 40, 45, 144, 225];
9 === n.which && "" === this.elementValue(e) || t.inArray(n.keyCode, i) !== -1 || (e.name in this.submitted || e.name in this.invalid) && this.element(e)
},
onclick: function(t) {
t.name in this.submitted ? this.element(t) : t.parentNode.name in this.submitted && this.element(t.parentNode)
},
highlight: function(e, n, i) {
"radio" === e.type ? this.findByName(e.name).addClass(n).removeClass(i) : t(e).addClass(n).removeClass(i)
},
unhighlight: function(e, n, i) {
"radio" === e.type ? this.findByName(e.name).removeClass(n).addClass(i) : t(e).removeClass(n).addClass(i)
}
},
setDefaults: function(e) {
t.extend(t.validator.defaults, e)
},
messages: {
required: "This field is required.",
remote: "Please fix this field.",
email: "Please enter a valid email address.",
url: "Please enter a valid URL.",
date: "Please enter a valid date.",
dateISO: "Please enter a valid date (ISO).",
number: "Please enter a valid number.",
digits: "Please enter only digits.",
equalTo: "Please enter the same value again.",
maxlength: t.validator.format("Please enter no more than {0} characters."),
minlength: t.validator.format("Please enter at least {0} characters."),
rangelength: t.validator.format("Please enter a value between {0} and {1} characters long."),
range: t.validator.format("Please enter a value between {0} and {1}."),
max: t.validator.format("Please enter a value less than or equal to {0}."),
min: t.validator.format("Please enter a value greater than or equal to {0}."),
step: t.validator.format("Please enter a multiple of {0}.")
},
autoCreateRanges: !1,
prototype: {
init: function() {
function e(e) {
!this.form && this.hasAttribute("contenteditable") && (this.form = t(this).closest("form")[0]);
var n = t.data(this.form, "validator")
, i = "on" + e.type.replace(/^validate/, "")
, r = n.settings;
r[i] && !t(this).is(r.ignore) && r[i].call(n, this, e)
}
this.labelContainer = t(this.settings.errorLabelContainer),
this.errorContext = this.labelContainer.length && this.labelContainer || t(this.currentForm),
this.containers = t(this.settings.errorContainer).add(this.settings.errorLabelContainer),
this.submitted = {},
this.valueCache = {},
this.pendingRequest = 0,
this.pending = {},
this.invalid = {},
this.reset();
var n, i = this.groups = {};
t.each(this.settings.groups, function(e, n) {
"string" == typeof n && (n = n.split(/\s/)),
t.each(n, function(t, n) {
i[n] = e
})
}),
n = this.settings.rules,
t.each(n, function(e, i) {
n[e] = t.validator.normalizeRule(i)
}),
t(this.currentForm).on("focusin.validate focusout.validate keyup.validate", ":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable]", e).on("click.validate", "select, option, [type='radio'], [type='checkbox']", e),
this.settings.invalidHandler && t(this.currentForm).on("invalid-form.validate", this.settings.invalidHandler),
t(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required", "true")
},
form: function() {
return this.checkForm(),
t.extend(this.submitted, this.errorMap),
this.invalid = t.extend({}, this.errorMap),
this.valid() || t(this.currentForm).triggerHandler("invalid-form", [this]),
this.showErrors(),
this.valid()
},
checkForm: function() {
this.prepareForm();
for (var t = 0, e = this.currentElements = this.elements(); e[t]; t++)
this.check(e[t]);
return this.valid()
},
element: function(e) {
var n, i, r = this.clean(e), o = this.validationTargetFor(r), a = this, s = !0;
return void 0 === o ? delete this.invalid[r.name] : (this.prepareElement(o),
this.currentElements = t(o),
i = this.groups[o.name],
i && t.each(this.groups, function(t, e) {
e === i && t !== o.name && (r = a.validationTargetFor(a.clean(a.findByName(t))),
r && r.name in a.invalid && (a.currentElements.push(r),
s = a.check(r) && s))
}),
n = this.check(o) !== !1,
s = s && n,
n ? this.invalid[o.name] = !1 : this.invalid[o.name] = !0,
this.numberOfInvalids() || (this.toHide = this.toHide.add(this.containers)),
this.showErrors(),
t(e).attr("aria-invalid", !n)),
s
},
showErrors: function(e) {
if (e) {
var n = this;
t.extend(this.errorMap, e),
this.errorList = t.map(this.errorMap, function(t, e) {
return {
message: t,
element: n.findByName(e)[0]
}
}),
this.successList = t.grep(this.successList, function(t) {
return !(t.name in e)
})
}
this.settings.showErrors ? this.settings.showErrors.call(this, this.errorMap, this.errorList) : this.defaultShowErrors()
},
resetForm: function() {
t.fn.resetForm && t(this.currentForm).resetForm(),
this.invalid = {},
this.submitted = {},
this.prepareForm(),
this.hideErrors();
var e = this.elements().removeData("previousValue").removeAttr("aria-invalid");
this.resetElements(e)
},
resetElements: function(t) {
var e;
if (this.settings.unhighlight)
for (e = 0; t[e]; e++)
this.settings.unhighlight.call(this, t[e], this.settings.errorClass, ""),
this.findByName(t[e].name).removeClass(this.settings.validClass);
else
t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)
},
numberOfInvalids: function() {
return this.objectLength(this.invalid)
},
objectLength: function(t) {
var e, n = 0;
for (e in t)
t[e] && n++;
return n
},
hideErrors: function() {
this.hideThese(this.toHide)
},
hideThese: function(t) {
t.not(this.containers).text(""),
this.addWrapper(t).hide()
},
valid: function() {
return 0 === this.size()
},
size: function() {
return this.errorList.length
},
focusInvalid: function() {
if (this.settings.focusInvalid)
try {
t(this.findLastActive() || this.errorList.length && this.errorList[0].element || []).filter(":visible").focus().trigger("focusin")
} catch (e) {}
},
findLastActive: function() {
var e = this.lastActive;
return e && 1 === t.grep(this.errorList, function(t) {
return t.element.name === e.name
}).length && e
},
elements: function() {
var e = this
, n = {};
return t(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function() {
var i = this.name || t(this).attr("name");
return !i && e.settings.debug && window.console && console.error("%o has no name assigned", this),
this.hasAttribute("contenteditable") && (this.form = t(this).closest("form")[0]),
!(i in n || !e.objectLength(t(this).rules()) || (n[i] = !0,
0))
})
},
clean: function(e) {
return t(e)[0]
},
errors: function() {
var e = this.settings.errorClass.split(" ").join(".");
return t(this.settings.errorElement + "." + e, this.errorContext)
},
resetInternals: function() {
this.successList = [],
this.errorList = [],
this.errorMap = {},
this.toShow = t([]),
this.toHide = t([])
},
reset: function() {
this.resetInternals(),
this.currentElements = t([])
},
prepareForm: function() {
this.reset(),
this.toHide = this.errors().add(this.containers)
},
prepareElement: function(t) {
this.reset(),
this.toHide = this.errorsFor(t)
},
elementValue: function(e) {
var n, i, r = t(e), o = e.type;
return "radio" === o || "checkbox" === o ? this.findByName(e.name).filter(":checked").val() : "number" === o && "undefined" != typeof e.validity ? e.validity.badInput ? "NaN" : r.val() : (n = e.hasAttribute("contenteditable") ? r.text() : r.val(),
"file" === o ? "C:\\fakepath\\" === n.substr(0, 12) ? n.substr(12) : (i = n.lastIndexOf("/"),
i >= 0 ? n.substr(i + 1) : (i = n.lastIndexOf("\\"),
i >= 0 ? n.substr(i + 1) : n)) : "string" == typeof n ? n.replace(/\r/g, "") : n)
},
check: function(e) {
e = this.validationTargetFor(this.clean(e));
var n, i, r, o = t(e).rules(), a = t.map(o, function(t, e) {
return e
}).length, s = !1, u = this.elementValue(e);
if ("function" == typeof o.normalizer) {
if (u = o.normalizer.call(e, u),
"string" != typeof u)
throw new TypeError("The normalizer should return a string value.");
delete o.normalizer
}
for (i in o) {
r = {
method: i,
parameters: o[i]
};
try {
if (n = t.validator.methods[i].call(this, u, e, r.parameters),
"dependency-mismatch" === n && 1 === a) {
s = !0;
continue
}
if (s = !1,
"pending" === n)
return void (this.toHide = this.toHide.not(this.errorsFor(e)));
if (!n)
return this.formatAndAdd(e, r),
!1
} catch (c) {
throw this.settings.debug && window.console && console.log("Exception occurred when checking element " + e.id + ", check the '" + r.method + "' method.", c),
c instanceof TypeError && (c.message += ". Exception occurred when checking element " + e.id + ", check the '" + r.method + "' method."),
c
}
}
if (!s)
return this.objectLength(o) && this.successList.push(e),
!0
},
customDataMessage: function(e, n) {
return t(e).data("msg" + n.charAt(0).toUpperCase() + n.substring(1).toLowerCase()) || t(e).data("msg")
},
customMessage: function(t, e) {
var n = this.settings.messages[t];
return n && (n.constructor === String ? n : n[e])
},
findDefined: function() {
for (var t = 0; t < arguments.length; t++)
if (void 0 !== arguments[t])
return arguments[t]
},
defaultMessage: function(e, n) {
"string" == typeof n && (n = {
method: n
});
var i = this.findDefined(this.customMessage(e.name, n.method), this.customDataMessage(e, n.method), !this.settings.ignoreTitle && e.title || void 0, t.validator.messages[n.method], "<strong>Warning: No message defined for " + e.name + "</strong>")
, r = /\$?\{(\d+)\}/g;
return "function" == typeof i ? i = i.call(this, n.parameters, e) : r.test(i) && (i = t.validator.format(i.replace(r, "{$1}"), n.parameters)),
i
},
formatAndAdd: function(t, e) {
var n = this.defaultMessage(t, e);
this.errorList.push({
message: n,
element: t,
method: e.method
}),
this.errorMap[t.name] = n,
this.submitted[t.name] = n
},
addWrapper: function(t) {
return this.settings.wrapper && (t = t.add(t.parent(this.settings.wrapper))),
t
},
defaultShowErrors: function() {
var t, e, n;
for (t = 0; this.errorList[t]; t++)
n = this.errorList[t],
this.settings.highlight && this.settings.highlight.call(this, n.element, this.settings.errorClass, this.settings.validClass),
this.showLabel(n.element, n.message);
if (this.errorList.length && (this.toShow = this.toShow.add(this.containers)),
this.settings.success)
for (t = 0; this.successList[t]; t++)
this.showLabel(this.successList[t]);
if (this.settings.unhighlight)
for (t = 0,
e = this.validElements(); e[t]; t++)
this.settings.unhighlight.call(this, e[t], this.settings.errorClass, this.settings.validClass);
this.toHide = this.toHide.not(this.toShow),
this.hideErrors(),
this.addWrapper(this.toShow).show()
},
validElements: function() {
return this.currentElements.not(this.invalidElements())
},
invalidElements: function() {
return t(this.errorList).map(function() {
return this.element
})
},
showLabel: function(e, n) {
var i, r, o, a, s = this.errorsFor(e), u = this.idOrName(e), c = t(e).attr("aria-describedby");
s.length ? (s.removeClass(this.settings.validClass).addClass(this.settings.errorClass),
s.html(n)) : (s = t("<" + this.settings.errorElement + ">").attr("id", u + "-error").addClass(this.settings.errorClass).html(n || ""),
i = s,
this.settings.wrapper && (i = s.hide().show().wrap("<" + this.settings.wrapper + "/>").parent()),
this.labelContainer.length ? this.labelContainer.append(i) : this.settings.errorPlacement ? this.settings.errorPlacement.call(this, i, t(e)) : i.insertAfter(e),
s.is("label") ? s.attr("for", u) : 0 === s.parents("label[for='" + this.escapeCssMeta(u) + "']").length && (o = s.attr("id"),
c ? c.match(new RegExp("\\b" + this.escapeCssMeta(o) + "\\b")) || (c += " " + o) : c = o,
t(e).attr("aria-describedby", c),
r = this.groups[e.name],
r && (a = this,
t.each(a.groups, function(e, n) {
n === r && t("[name='" + a.escapeCssMeta(e) + "']", a.currentForm).attr("aria-describedby", s.attr("id"))
})))),
!n && this.settings.success && (s.text(""),
"string" == typeof this.settings.success ? s.addClass(this.settings.success) : this.settings.success(s, e)),
this.toShow = this.toShow.add(s)
},
errorsFor: function(e) {
var n = this.escapeCssMeta(this.idOrName(e))
, i = t(e).attr("aria-describedby")
, r = "label[for='" + n + "'], label[for='" + n + "'] *";
return i && (r = r + ", #" + this.escapeCssMeta(i).replace(/\s+/g, ", #")),
this.errors().filter(r)
},
escapeCssMeta: function(t) {
return t.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g, "\\$1")
},
idOrName: function(t) {
return this.groups[t.name] || (this.checkable(t) ? t.name : t.id || t.name)
},
validationTargetFor: function(e) {
return this.checkable(e) && (e = this.findByName(e.name)),
t(e).not(this.settings.ignore)[0]
},
checkable: function(t) {
return /radio|checkbox/i.test(t.type)
},
findByName: function(e) {
return t(this.currentForm).find("[name='" + this.escapeCssMeta(e) + "']")
},
getLength: function(e, n) {
switch (n.nodeName.toLowerCase()) {
case "select":
return t("option:selected", n).length;
case "input":
if (this.checkable(n))
return this.findByName(n.name).filter(":checked").length
}
return e.length
},
depend: function(t, e) {
return !this.dependTypes[typeof t] || this.dependTypes[typeof t](t, e)
},
dependTypes: {
"boolean": function(t) {
return t
},
string: function(e, n) {
return !!t(e, n.form).length
},
"function": function(t, e) {
return t(e)
}
},
optional: function(e) {
var n = this.elementValue(e);
return !t.validator.methods.required.call(this, n, e) && "dependency-mismatch"
},
startRequest: function(e) {
this.pending[e.name] || (this.pendingRequest++,
t(e).addClass(this.settings.pendingClass),
this.pending[e.name] = !0)
},
stopRequest: function(e, n) {
this.pendingRequest--,
this.pendingRequest < 0 && (this.pendingRequest = 0),
delete this.pending[e.name],
t(e).removeClass(this.settings.pendingClass),
n && 0 === this.pendingRequest && this.formSubmitted && this.form() ? (t(this.currentForm).submit(),
this.formSubmitted = !1) : !n && 0 === this.pendingRequest && this.formSubmitted && (t(this.currentForm).triggerHandler("invalid-form", [this]),
this.formSubmitted = !1)
},
previousValue: function(e, n) {
return n = "string" == typeof n && n || "remote",
t.data(e, "previousValue") || t.data(e, "previousValue", {
old: null ,
valid: !0,
message: this.defaultMessage(e, {
method: n
})
})
},
destroy: function() {
this.resetForm(),
t(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")
}
},
classRuleSettings: {
required: {
required: !0
},
email: {
email: !0
},
url: {
url: !0
},
date: {
date: !0
},
dateISO: {
dateISO: !0
},
number: {
number: !0
},
digits: {
digits: !0
},
creditcard: {
creditcard: !0
}
},
addClassRules: function(e, n) {
e.constructor === String ? this.classRuleSettings[e] = n : t.extend(this.classRuleSettings, e)
},
classRules: function(e) {
var n = {}
, i = t(e).attr("class");
return i && t.each(i.split(" "), function() {
this in t.validator.classRuleSettings && t.extend(n, t.validator.classRuleSettings[this])
}),
n
},
normalizeAttributeRule: function(t, e, n, i) {
/min|max|step/.test(n) && (null === e || /number|range|text/.test(e)) && (i = Number(i),
isNaN(i) && (i = void 0)),
i || 0 === i ? t[n] = i : e === n && "range" !== e && (t[n] = !0)
},
attributeRules: function(e) {
var n, i, r = {}, o = t(e), a = e.getAttribute("type");
for (n in t.validator.methods)
"required" === n ? (i = e.getAttribute(n),
"" === i && (i = !0),
i = !!i) : i = o.attr(n),
this.normalizeAttributeRule(r, a, n, i);
return r.maxlength && /-1|2147483647|524288/.test(r.maxlength) && delete r.maxlength,
r
},
dataRules: function(e) {
var n, i, r = {}, o = t(e), a = e.getAttribute("type");
for (n in t.validator.methods)
i = o.data("rule" + n.charAt(0).toUpperCase() + n.substring(1).toLowerCase()),
this.normalizeAttributeRule(r, a, n, i);
return r
},
staticRules: function(e) {
var n = {}
, i = t.data(e.form, "validator");
return i.settings.rules && (n = t.validator.normalizeRule(i.settings.rules[e.name]) || {}),
n
},
normalizeRules: function(e, n) {
return t.each(e, function(i, r) {
if (r === !1)
return void delete e[i];
if (r.param || r.depends) {
var o = !0;
switch (typeof r.depends) {
case "string":
o = !!t(r.depends, n.form).length;
break;
case "function":
o = r.depends.call(n, n)
}
o ? e[i] = void 0 === r.param || r.param : (t.data(n.form, "validator").resetElements(t(n)),
delete e[i])
}
}),
t.each(e, function(i, r) {
e[i] = t.isFunction(r) && "normalizer" !== i ? r(n) : r
}),
t.each(["minlength", "maxlength"], function() {
e[this] && (e[this] = Number(e[this]))
}),
t.each(["rangelength", "range"], function() {
var n;
e[this] && (t.isArray(e[this]) ? e[this] = [Number(e[this][0]), Number(e[this][1])] : "string" == typeof e[this] && (n = e[this].replace(/[\[\]]/g, "").split(/[\s,]+/),
e[this] = [Number(n[0]), Number(n[1])]))
}),
t.validator.autoCreateRanges && (null != e.min && null != e.max && (e.range = [e.min, e.max],
delete e.min,
delete e.max),
null != e.minlength && null != e.maxlength && (e.rangelength = [e.minlength, e.maxlength],
delete e.minlength,
delete e.maxlength)),
e
},
normalizeRule: function(e) {
if ("string" == typeof e) {
var n = {};
t.each(e.split(/\s/), function() {
n[this] = !0
}),
e = n
}
return e
},
addMethod: function(e, n, i) {
t.validator.methods[e] = n,
t.validator.messages[e] = void 0 !== i ? i : t.validator.messages[e],
n.length < 3 && t.validator.addClassRules(e, t.validator.normalizeRule(e))
},
methods: {
required: function(e, n, i) {
if (!this.depend(i, n))
return "dependency-mismatch";
if ("select" === n.nodeName.toLowerCase()) {
var r = t(n).val();
return r && r.length > 0
}
return this.checkable(n) ? this.getLength(e, n) > 0 : e.length > 0
},
email: function(t, e) {
return this.optional(e) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)
},
url: function(t, e) {
return this.optional(e) || /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(t)
},
date: function(t, e) {
return this.optional(e) || !/Invalid|NaN/.test(new Date(t).toString())
},
dateISO: function(t, e) {
return this.optional(e) || /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)
},
number: function(t, e) {
return this.optional(e) || /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)
},
digits: function(t, e) {
return this.optional(e) || /^\d+$/.test(t)
},
minlength: function(e, n, i) {
var r = t.isArray(e) ? e.length : this.getLength(e, n);
return this.optional(n) || r >= i
},
maxlength: function(e, n, i) {
var r = t.isArray(e) ? e.length : this.getLength(e, n);
return this.optional(n) || r <= i
},
rangelength: function(e, n, i) {
var r = t.isArray(e) ? e.length : this.getLength(e, n);
return this.optional(n) || r >= i[0] && r <= i[1]
},
min: function(t, e, n) {
return this.optional(e) || t >= n
},
max: function(t, e, n) {
return this.optional(e) || t <= n
},
range: function(t, e, n) {
return this.optional(e) || t >= n[0] && t <= n[1]
},
step: function(e, n, i) {
var r, o = t(n).attr("type"), a = "Step attribute on input type " + o + " is not supported.", s = ["text", "number", "range"], u = new RegExp("\\b" + o + "\\b"), c = o && !u.test(s.join()), l = function(t) {
var e = ("" + t).match(/(?:\.(\d+))?$/);
return e && e[1] ? e[1].length : 0
}
, f = function(t) {
return Math.round(t * Math.pow(10, r))
}
, h = !0;
if (c)
throw new Error(a);
return r = l(i),
(l(e) > r || f(e) % f(i) !== 0) && (h = !1),
this.optional(n) || h
},
equalTo: function(e, n, i) {
var r = t(i);
return this.settings.onfocusout && r.not(".validate-equalTo-blur").length && r.addClass("validate-equalTo-blur").on("blur.validate-equalTo", function() {
t(n).valid()
}),
e === r.val()
},
remote: function(e, n, i, r) {
if (this.optional(n))
return "dependency-mismatch";
r = "string" == typeof r && r || "remote";
var o, a, s, u = this.previousValue(n, r);
return this.settings.messages[n.name] || (this.settings.messages[n.name] = {}),
u.originalMessage = u.originalMessage || this.settings.messages[n.name][r],
this.settings.messages[n.name][r] = u.message,
i = "string" == typeof i && {
url: i
} || i,
s = t.param(t.extend({
data: e
}, i.data)),
u.old === s ? u.valid : (u.old = s,
o = this,
this.startRequest(n),
a = {},
a[n.name] = e,
t.ajax(t.extend(!0, {
mode: "abort",
port: "validate" + n.name,
dataType: "json",
data: a,
context: o.currentForm,
success: function(t) {
var i, a, s, c = t === !0 || "true" === t;
o.settings.messages[n.name][r] = u.originalMessage,
c ? (s = o.formSubmitted,
o.resetInternals(),
o.toHide = o.errorsFor(n),
o.formSubmitted = s,
o.successList.push(n),
o.invalid[n.name] = !1,
o.showErrors()) : (i = {},
a = t || o.defaultMessage(n, {
method: r,
parameters: e
}),
i[n.name] = u.message = a,
o.invalid[n.name] = !0,
o.showErrors(i)),
u.valid = c,
o.stopRequest(n, c)
}
}, i)),
"pending")
}
}
});
var e, n = {};
t.ajaxPrefilter ? t.ajaxPrefilter(function(t, e, i) {
var r = t.port;
"abort" === t.mode && (n[r] && n[r].abort(),
n[r] = i)
}) : (e = t.ajax,
t.ajax = function(i) {
var r = ("mode"in i ? i : t.ajaxSettings).mode
, o = ("port"in i ? i : t.ajaxSettings).port;
return "abort" === r ? (n[o] && n[o].abort(),
n[o] = e.apply(this, arguments),
n[o]) : e.apply(this, arguments)
}
)
})
}
, , , , , , , , , , , , function(t, e) {
function n() {
throw new Error("setTimeout has not been defined")
}
function i() {
throw new Error("clearTimeout has not been defined")
}
function r(t) {
if (l === setTimeout)
return setTimeout(t, 0);
if ((l === n || !l) && setTimeout)
return l = setTimeout,
setTimeout(t, 0);
try {
return l(t, 0)
} catch (e) {
try {
return l.call(null , t, 0)
} catch (e) {
return l.call(this, t, 0)
}
}
}
function o(t) {
if (f === clearTimeout)
return clearTimeout(t);
if ((f === i || !f) && clearTimeout)
return f = clearTimeout,
clearTimeout(t);
try {
return f(t)
} catch (e) {
try {
return f.call(null , t)
} catch (e) {
return f.call(this, t)
}
}
}
function a() {
v && d && (v = !1,
d.length ? p = d.concat(p) : g = -1,
p.length && s())
}
function s() {
if (!v) {
var t = r(a);
v = !0;
for (var e = p.length; e; ) {
for (d = p,
p = []; ++g < e; )
d && d[g].run();
g = -1,
e = p.length
}
d = null ,
v = !1,
o(t)
}
}
function u(t, e) {
this.fun = t,
this.array = e
}
function c() {}
var l, f, h = t.exports = {};
!function() {
try {
l = "function" == typeof setTimeout ? setTimeout : n
} catch (t) {
l = n
}
try {
f = "function" == typeof clearTimeout ? clearTimeout : i
} catch (t) {
f = i
}
}();
var d, p = [], v = !1, g = -1;
h.nextTick = function(t) {
var e = new Array(arguments.length - 1);
if (arguments.length > 1)
for (var n = 1; n < arguments.length; n++)
e[n - 1] = arguments[n];
p.push(new u(t,e)),
1 !== p.length || v || r(s)
}
,
u.prototype.run = function() {
this.fun.apply(null , this.array)
}
,
h.title = "browser",
h.browser = !0,
h.env = {},
h.argv = [],
h.version = "",
h.versions = {},
h.on = c,
h.addListener = c,
h.once = c,
h.off = c,
h.removeListener = c,
h.removeAllListeners = c,
h.emit = c,
h.binding = function(t) {
throw new Error("process.binding is not supported")
}
,
h.cwd = function() {
return "/"
}
,
h.chdir = function(t) {
throw new Error("process.chdir is not supported")
}
,
h.umask = function() {
return 0
}
}
, function(t, e) {
!function(t) {
"use strict";
function e() {
t(".dropdown-backdrop").remove(),
t(i).not(".dropdown-noclose").each(function() {
n(t(this)).removeClass("open")
})
}
function n(e) {
var n, i = e.attr("data-target");
return i || (i = e.attr("href"),
i = i && /#/.test(i) && i.replace(/.*(?=#[^\s]*$)/, "")),
n = i && t(i),
n && n.length || (n = e.parent()),
n
}
var i = "[data-toggle=dropdown]"
, r = function(e) {
var n = t(e).on("click.dropdown.data-api", this.toggle);
t("html").on("click.dropdown.data-api", function() {
n.parent().removeClass("open")
})
}
;
r.prototype = {
constructor: r,
toggle: function(i) {
var r, o, a = t(this);
if (!a.is(".disabled, :disabled"))
return r = n(a),
o = r.hasClass("open"),
e(),
o ? a.hasClass("dropdown-noclose") && r.toggleClass("open") : ("ontouchstart"in document.documentElement && (a.hasClass("dropdown-noclose") || t('<div class="dropdown-backdrop"/>').insertBefore(t(this)).on("click", e)),
r.toggleClass("open")),
a.focus(),
!1
},
keydown: function(e) {
var r, o, a, s, u;
if (/(38|40|27)/.test(e.keyCode) && (r = t(this),
e.preventDefault(),
e.stopPropagation(),
!r.is(".disabled, :disabled"))) {
if (a = n(r),
s = a.hasClass("open"),
!s || s && 27 == e.keyCode)
return 27 == e.which && a.find(i).focus(),
r.click();
o = t("[role=menu] li:not(.divider):visible a", a),
o.length && (u = o.index(o.filter(":focus")),
38 == e.keyCode && u > 0 && u--,
40 == e.keyCode && u < o.length - 1 && u++,
~u || (u = 0),
o.eq(u).focus())
}
}
};
var o = t.fn.dropdown;
t.fn.dropdown = function(e) {
return this.each(function() {
var n = t(this)
, i = n.data("dropdown");
i || n.data("dropdown", i = new r(this)),
"string" == typeof e && i[e].call(n)
})
}
,
t.fn.dropdown.Constructor = r,
t.fn.dropdown.noConflict = function() {
return t.fn.dropdown = o,
this
}
,
t(document).on("click.dropdown.data-api", e).on("click.dropdown.data-api", ".dropdown form", function(t) {
t.stopPropagation()
}).on("click.dropdown.data-api", i, r.prototype.toggle).on("keydown.dropdown.data-api", i + ", [role=menu]", r.prototype.keydown)
}(window.jQuery)
}
, function(t, e) {
!function(t) {
"use strict";
function e(e, n) {
var i, r = t.proxy(this.process, this), o = t(t(e).is("body") ? window : e);
this.options = t.extend({}, t.fn.scrollspy.defaults, n),
this.$scrollElement = o.on("scroll.scroll-spy.data-api", r),
this.selector = (this.options.target || (i = t(e).attr("href")) && i.replace(/.*(?=#[^\s]+$)/, "") || "") + " .nav li > a",
this.$body = t("body"),
this.refresh(),
this.process()
}
e.prototype = {
constructor: e,
refresh: function() {
var e, n = this;
this.offsets = t([]),
this.targets = t([]),
e = this.$body.find(this.selector).map(function() {
var e = t(this)
, i = e.data("target") || e.attr("href")
, r = /^#\w/.test(i) && t(i);
return r && r.length && [[r.position().top + (!t.isWindow(n.$scrollElement.get(0)) && n.$scrollElement.scrollTop()), i]] || null
}).sort(function(t, e) {
return t[0] - e[0]
}).each(function() {
n.offsets.push(this[0]),
n.targets.push(this[1])
})
},
process: function() {
var t, e = this.$scrollElement.scrollTop() + this.options.offset, n = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight, i = n - this.$scrollElement.height(), r = this.offsets, o = this.targets, a = this.activeTarget;
if (e >= i)
return a != (t = o.last()[0]) && this.activate(t);
for (t = r.length; t--; )
a != o[t] && e >= r[t] && (!r[t + 1] || e <= r[t + 1]) && this.activate(o[t])
},
activate: function(e) {
var n, i;
this.activeTarget = e,
t(this.selector).parent(".active").removeClass("active"),
i = this.selector + '[data-target="' + e + '"],' + this.selector + '[href="' + e + '"]',
n = t(i).parent("li").addClass("active"),
n.parent(".dropdown-menu").length && (n = n.closest("li.dropdown").addClass("active")),
n.trigger("activate")
}
};
var n = t.fn.scrollspy;
t.fn.scrollspy = function(n) {
return this.each(function() {
var i = t(this)
, r = i.data("scrollspy")
, o = "object" == typeof n && n;
r || i.data("scrollspy", r = new e(this,o)),
"string" == typeof n && r[n]()
})
}
,
t.fn.scrollspy.Constructor = e,
t.fn.scrollspy.defaults = {
offset: 10
},
t.fn.scrollspy.noConflict = function() {
return t.fn.scrollspy = n,
this
}
,
t(window).on("load", function() {
t('[data-spy="scroll"]').each(function() {
var e = t(this);
e.scrollspy(e.data())
})
})
}(window.jQuery)
}
, function(t, e) {
!function(t) {
"use strict";
var e = function(e) {
this.element = t(e)
}
;
e.prototype = {
constructor: e,
show: function() {
var e, n, i, r = this.element, o = r.closest("ul:not(.dropdown-menu)"), a = r.attr("data-target");
a || (a = r.attr("href"),
a = a && a.replace(/.*(?=#[^\s]*$)/, "")),
r.parent("li").hasClass("active") || (e = o.find(".active:last a")[0],
i = t.Event("show", {
relatedTarget: e
}),
r.trigger(i),
i.isDefaultPrevented() || (n = t(a),
this.activate(r.parent("li"), o),
this.activate(n, n.parent(), function() {
r.trigger({
type: "shown",
relatedTarget: e
})
})))
},
activate: function(e, n, i) {
function r() {
o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),
e.addClass("active"),
a ? (e[0].offsetWidth,
e.addClass("in")) : e.removeClass("fade"),
e.parent(".dropdown-menu") && e.closest("li.dropdown").addClass("active"),
i && i()
}
var o = n.find("> .active")
, a = i && t.support.transition && o.hasClass("fade");
a ? o.one(t.support.transition.end, r) : r(),
o.removeClass("in")
}
};
var n = t.fn.tab;
t.fn.tab = function(n) {
return this.each(function() {
var i = t(this)
, r = i.data("tab");
r || i.data("tab", r = new e(this)),
"string" == typeof n && r[n]()
})
}
,
t.fn.tab.Constructor = e,
t.fn.tab.noConflict = function() {
return t.fn.tab = n,
this
}
,
t(document).on("click.tab.data-api", '[data-toggle="tab"], [data-toggle="pill"]', function(e) {
e.preventDefault(),
t(this).tab("show")
})
}(window.jQuery)
}
, function(t, e) {
!function(t) {
"use strict";
var e = function(t, e) {
this.init("tooltip", t, e)
}
;
e.prototype = {
constructor: e,
init: function(e, n, i) {
var r, o, a, s, u;
for (this.type = e,
this.$element = t(n),
this.options = this.getOptions(i),
this.enabled = !0,
a = this.options.trigger.split(" "),
u = a.length; u--; )
s = a[u],
"click" == s ? this.$element.on("click." + this.type, this.options.selector, t.proxy(this.toggle, this)) : "manual" != s && (r = "hover" == s ? "mouseenter" : "focus",
o = "hover" == s ? "mouseleave" : "blur",
this.$element.on(r + "." + this.type, this.options.selector, t.proxy(this.enter, this)),
this.$element.on(o + "." + this.type, this.options.selector, t.proxy(this.leave, this)));
this.options.selector ? this._options = t.extend({}, this.options, {
trigger: "manual",
selector: ""
}) : this.fixTitle()
},
getOptions: function(e) {
return e = t.extend({}, t.fn[this.type].defaults, this.$element.data(), e),
e.delay && "number" == typeof e.delay && (e.delay = {
show: e.delay,
hide: e.delay
}),
e
},
enter: function(e) {
var n, i = t.fn[this.type].defaults, r = {};
return this._options && t.each(this._options, function(t, e) {
i[t] != e && (r[t] = e)
}, this),
n = t(e.currentTarget)[this.type](r).data(this.type),
n.options.delay && n.options.delay.show ? (clearTimeout(this.timeout),
n.hoverState = "in",
void (this.timeout = setTimeout(function() {
"in" == n.hoverState && n.show()
}, n.options.delay.show))) : n.show()
},
leave: function(e) {
var n = t(e.currentTarget)[this.type](this._options).data(this.type);
return this.timeout && clearTimeout(this.timeout),
n.options.delay && n.options.delay.hide ? (n.hoverState = "out",
void (this.timeout = setTimeout(function() {
"out" == n.hoverState && n.hide()
}, n.options.delay.hide))) : n.hide()
},
show: function() {
var e, n, i, r, o, a, s = t.Event("show");
if (this.hasContent() && this.enabled) {
if (this.$element.trigger(s),
s.isDefaultPrevented())
return;
switch (e = this.tip(),
this.setContent(),
this.options.animation && e.addClass("fade"),
o = "function" == typeof this.options.placement ? this.options.placement.call(this, e[0], this.$element[0]) : this.options.placement,
e.detach().css({
top: 0,
left: 0,
display: "block"
}).addClass(o),
this.options.container ? e.appendTo(this.options.container) : e.insertAfter(this.$element),
n = this.getPosition(),
i = e[0].offsetWidth,
r = e[0].offsetHeight,
o) {
case "bottom":
a = {
top: n.top + n.height,
left: n.left + n.width / 2 - i / 2
};
break;
case "top":
a = {
top: n.top - r,
left: n.left + n.width / 2 - i / 2
};
break;
case "left":
a = {
top: n.top + n.height / 2 - r / 2,
left: n.left - i
};
break;
case "right":
a = {
top: n.top + n.height / 2 - r / 2,
left: n.left + n.width
}
}
this.applyPlacement(a, o),
this.$element.trigger("shown")
}
},
applyPlacement: function(t, e) {
var n, i, r, o, a = this.tip(), s = a[0].offsetWidth, u = a[0].offsetHeight;
a.offset(t).addClass(e).addClass("in"),
n = a[0].offsetWidth,
i = a[0].offsetHeight,
"top" == e && i != u && (t.top = t.top + u - i,
o = !0),
"bottom" == e || "top" == e ? (r = 0,
t.left < 0 && (r = t.left * -2,
t.left = 0,
a.offset(t),
n = a[0].offsetWidth,
i = a[0].offsetHeight),
this.replaceArrow(r - s + n, n, "left")) : this.replaceArrow(i - u, i, "top"),
o && a.offset(t)
},
replaceArrow: function(t, e, n) {
this.arrow().css(n, t ? 50 * (1 - t / e) + "%" : "")
},
setContent: function() {
var t = this.tip()
, e = this.getTitle();
t.find(".tooltip-inner")[this.options.html ? "html" : "text"](e),
t.removeClass("fade in top bottom left right")
},
hide: function() {
function e() {
var e = setTimeout(function() {
n.off(t.support.transition.end).detach()
}, 500);
n.one(t.support.transition.end, function() {
clearTimeout(e),
n.detach()
})
}
var n = this.tip()
, i = t.Event("hide");
if (this.$element.trigger(i),
!i.isDefaultPrevented())
return n.removeClass("in"),
t.support.transition && this.$tip.hasClass("fade") ? e() : n.detach(),
this.$element.trigger("hidden"),
this
},
fixTitle: function() {
var t = this.$element;
(t.attr("title") || "string" != typeof t.attr("data-original-title")) && t.attr("data-original-title", t.attr("title") || "").attr("title", "")
},
hasContent: function() {
return this.getTitle()
},
getPosition: function() {
var e = this.$element[0];
return t.extend({}, "function" == typeof e.getBoundingClientRect ? e.getBoundingClientRect() : {
width: e.offsetWidth,
height: e.offsetHeight
}, this.$element.offset())
},
getTitle: function() {
var t, e = this.$element, n = this.options;
return t = e.attr("data-original-title") || ("function" == typeof n.title ? n.title.call(e[0]) : n.title)
},
tip: function() {
return this.$tip = this.$tip || t(this.options.template)
},
arrow: function() {
return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
},
validate: function() {
this.$element[0].parentNode || (this.hide(),
this.$element = null ,
this.options = null )
},
enable: function() {
this.enabled = !0
},
disable: function() {
this.enabled = !1
},
toggleEnabled: function() {
this.enabled = !this.enabled
},
toggle: function(e) {
var n = e ? t(e.currentTarget)[this.type](this._options).data(this.type) : this;
n.tip().hasClass("in") ? n.hide() : n.show()
},
destroy: function() {
this.hide().$element.off("." + this.type).removeData(this.type)
}
};
var n = t.fn.tooltip;
t.fn.tooltip = function(n) {
return this.each(function() {
var i = t(this)
, r = i.data("tooltip")
, o = "object" == typeof n && n;
r || i.data("tooltip", r = new e(this,o)),
"string" == typeof n && r[n]()
})
}
,
t.fn.tooltip.Constructor = e,
t.fn.tooltip.defaults = {
animation: !0,
placement: "top",
selector: !1,
template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
trigger: "hover focus",
title: "",
delay: 0,
html: !1,
container: !1
},
t.fn.tooltip.noConflict = function() {
return t.fn.tooltip = n,
this
}
}(window.jQuery)
}
, function(t, e) {
!function(t) {
"use strict";
t(function() {
t.support.transition = function() {
var t = function() {
var t, e = document.createElement("bootstrap"), n = {
WebkitTransition: "webkitTransitionEnd",
MozTransition: "transitionend",
OTransition: "oTransitionEnd otransitionend",
transition: "transitionend"
};
for (t in n)
if (void 0 !== e.style[t])
return n[t]
}();
return t && {
end: t
}
}()
})
}(window.jQuery)
}
, function(t, e) {
!function(t) {
"use strict";
function e(n, i, o, a) {
function s(t) {
t.timeout && (u.cycleTimeout = setTimeout(function() {
e(n, t, 0, !t.rev)
}, t.timeout))
}
if (!i.busy) {
var u = n[0].parentNode
, c = n[i.currSlide]
, l = n[i.nextSlide];
if (0 !== u.cycleTimeout || o)
if (o || !u.cyclePause) {
i.before.length && t.each(i.before, function(t, e) {
e.apply(l, [c, l, i, a])
});
var f = function() {
r && this.style.removeAttribute("filter"),
t.each(i.after, function(t, e) {
e.apply(l, [c, l, i, a])
}),
s(i)
}
;
i.nextSlide != i.currSlide && (i.busy = 1,
t.fn.cycle.custom(c, l, i, f));
var h = i.nextSlide + 1 == n.length;
i.nextSlide = h ? 0 : i.nextSlide + 1,
i.currSlide = h ? n.length - 1 : i.nextSlide - 1
} else
s(i)
}
}
function n(t, n, i) {
var r = t[0].parentNode
, o = r.cycleTimeout;
return o && (clearTimeout(o),
r.cycleTimeout = 0),
n.nextSlide = n.currSlide + i,
n.nextSlide < 0 ? n.nextSlide = t.length - 1 : n.nextSlide >= t.length && (n.nextSlide = 0),
e(t, n, 1, i >= 0),
!1
}
var i = "Lite-1.7"
, r = /MSIE/.test(navigator.userAgent);
t.fn.cycle = function(i) {
return this.each(function() {
i = i || {},
this.cycleTimeout && clearTimeout(this.cycleTimeout),
this.cycleTimeout = 0,
this.cyclePause = 0;
var o = t(this)
, a = i.slideExpr ? t(i.slideExpr, this) : o.children()
, s = a.get();
if (s.length < 2)
return void (window.console && console.log("terminating; too few slides: " + s.length));
var u = t.extend({}, t.fn.cycle.defaults, i || {}, t.metadata ? o.metadata() : t.meta ? o.data() : {})
, c = t.isFunction(o.data) ? o.data(u.metaAttr) : null ;
c && (u = t.extend(u, c)),
u.before = u.before ? [u.before] : [],
u.after = u.after ? [u.after] : [],
u.after.unshift(function() {
u.busy = 0
});
var l = this.className;
u.width = parseInt((l.match(/w:(\d+)/) || [])[1], 10) || u.width,
u.height = parseInt((l.match(/h:(\d+)/) || [])[1], 10) || u.height,
u.timeout = parseInt((l.match(/t:(\d+)/) || [])[1], 10) || u.timeout,
"static" == o.css("position") && o.css("position", "relative"),
u.width && o.width(u.width),
u.height && "auto" != u.height && o.height(u.height);
var f = 0;
a.css({
position: "absolute",
top: 0
}).each(function(e) {
t(this).css("z-index", s.length - e)
}),
t(s[f]).css("opacity", 1).show(),
r && s[f].style.removeAttribute("filter"),
u.fit && u.width && a.width(u.width),
u.fit && u.height && "auto" != u.height && a.height(u.height),
u.pause && o.hover(function() {
this.cyclePause = 1
}, function() {
this.cyclePause = 0
});
var h = t.fn.cycle.transitions[u.fx];
if (h && h(o, a, u),
a.each(function() {
var e = t(this);
this.cycleH = u.fit && u.height ? u.height : e.height(),
this.cycleW = u.fit && u.width ? u.width : e.width()
}),
u.cssFirst && t(a[f]).css(u.cssFirst),
u.timeout)
for (u.speed.constructor == String && (u.speed = {
slow: 600,
fast: 200
}[u.speed] || 400),
u.sync || (u.speed = u.speed / 2); u.timeout - u.speed < 250; )
u.timeout += u.speed;
u.speedIn = u.speed,
u.speedOut = u.speed,
u.slideCount = s.length,
u.currSlide = f,
u.nextSlide = 1;
var d = a[f];
u.before.length && u.before[0].apply(d, [d, d, u, !0]),
u.after.length > 1 && u.after[1].apply(d, [d, d, u, !0]),
u.click && !u.next && (u.next = u.click),
u.next && t(u.next).unbind("click.cycle").bind("click.cycle", function() {
return n(s, u, u.rev ? -1 : 1)
}),
u.prev && t(u.prev).unbind("click.cycle").bind("click.cycle", function() {
return n(s, u, u.rev ? 1 : -1)
}),
u.timeout && (this.cycleTimeout = setTimeout(function() {
e(s, u, 0, !u.rev)
}, u.timeout + (u.delay || 0)))
})
}
,
t.fn.cycle.custom = function(e, n, i, r) {
var o = t(e)
, a = t(n);
a.css(i.cssBefore);
var s = function() {
a.animate(i.animIn, i.speedIn, i.easeIn, r)
}
;
o.animate(i.animOut, i.speedOut, i.easeOut, function() {
o.css(i.cssAfter),
i.sync || s()
}),
i.sync && s()
}
,
t.fn.cycle.transitions = {
fade: function(t, e, n) {
e.not(":eq(0)").hide(),
n.cssBefore = {
opacity: 0,
display: "block"
},
n.cssAfter = {
display: "none"
},
n.animOut = {
opacity: 0
},
n.animIn = {
opacity: 1
}
},
fadeout: function(e, n, i) {
i.before.push(function(e, n, i, r) {
t(e).css("zIndex", i.slideCount + (r === !0 ? 1 : 0)),
t(n).css("zIndex", i.slideCount + (r === !0 ? 0 : 1))
}),
n.not(":eq(0)").hide(),
i.cssBefore = {
opacity: 1,
display: "block",
zIndex: 1
},
i.cssAfter = {
display: "none",
zIndex: 0
},
i.animOut = {
opacity: 0
},
i.animIn = {
opacity: 1
}
}
},
t.fn.cycle.ver = function() {
return i
}
,
t.fn.cycle.defaults = {
animIn: {},
animOut: {},
fx: "fade",
after: null ,
before: null ,
cssBefore: {},
cssAfter: {},
delay: 0,
fit: 0,
height: "auto",
metaAttr: "cycle",
next: null ,
pause: !1,
prev: null ,
speed: 1e3,
slideExpr: null ,
sync: !0,
timeout: 4e3
}
}(jQuery)
}
, function(t, e) {
!function(t) {
function e(e) {
var n, i;
if (!e.$spacer)
return n = a(e.$el),
i = t("<div></div>").height(n.height).width(n.width).css({
padding: n.padding,
margin: n.margin
}),
e.$el.after(i),
e.$spacer = i,
e
}
function n(n) {
return this.each(function() {
var o, a, s = t(this);
"number" != typeof s.data().floatingId && (n = t.extend(!0, {}, t.floating.defaults, n),
a = ++m,
s.data().floatingId = a,
o = {
data: {},
opts: n,
$el: s,
position: s.css("position"),
placement: null
},
i(o, o.$el),
r(o, o.$el),
e(o),
f(o),
s.bind("resize.floating", function(t) {
l(o)
}),
g[a] = o)
})
}
function i(t, e) {
var n;
return e = e || t.$el,
n = o(e),
t.data.origOffset = n.offset,
t.data.origPosition = n.position,
t
}
function r(t, e) {
var n;
return e = e || t.$el,
n = a(e),
t.data.origDimensions = n,
t
}
function o(t) {
return {
offset: t.offset(),
position: t.position()
}
}
function a(t) {
var e;
return e = {
height: t.height(),
width: t.width(),
paddingBottom: t.css("padding-bottom"),
paddingLeft: t.css("padding-left"),
paddingRight: t.css("padding-right"),
paddingTop: t.css("padding-top"),
marginBottom: t.css("margin-bottom"),
marginLeft: t.css("margin-left"),
marginRight: t.css("margin-right"),
marginTop: t.css("margin-top")
},
e.padding = e.paddingTop + " " + e.paddingRight + " " + e.paddingBottom + " " + e.paddingLeft,
e.margin = e.marginTop + " " + e.marginRight + " " + e.marginBottom + " " + e.marginLeft,
e
}
function s(t) {
var e;
return e = "function" == typeof t.opts.limit ? t.opts.limit() : t.opts.limit,
e > 0 ? e : 0
}
function u(t) {
var e;
return e = "function" == typeof t.opts.marginTop ? t.opts.marginTop() : t.opts.marginTop
}
function c(t) {
var e, n;
e = s(t),
n = u(t),
y.scrollTop() + Math.max(n, parseInt(t.data.origDimensions.marginTop)) <= t.data.origOffset.top ? f(t) : y.scrollTop() + Math.max(n, parseInt(t.data.origDimensions.marginTop)) + t.$el.outerHeight(!0) >= e ? f(t, "end") : h(t)
}
function l(t) {
r(t, t.$el),
d(t.$spacer, t.data.origDimensions),
c(t)
}
function f(t, e) {
var n, i, r;
e = e || "begin",
t.$el.css({
height: t.data.origDimensions.height + "px",
left: t.data.origPosition.left,
marginTop: t.data.origDimensions.marginTop,
position: "absolute",
width: t.data.origDimensions.width + "px",
zIndex: t.opts.zIndex
}),
"end" == e ? (n = s(t),
r = n - t.$el.outerHeight(!0),
i = r - (t.$el.offset().top - t.$el.position().top),
t.$el.css({
top: i
})) : t.$el.css({
top: t.data.origPosition.top
}),
t.position = "absolute",
t.placement = e
}
function h(t) {
var e;
e = u(t),
t.$el.css({
height: t.data.origDimensions.height + "px",
left: t.data.origOffset.left,
marginTop: 0,
position: "fixed",
top: Math.max(e, parseInt(t.data.origDimensions.marginTop)),
width: t.data.origDimensions.width + "px",
zIndex: t.opts.zIndex
}),
t.position = "fixed",
t.placement = null
}
function d(t, e) {
return t.height(e.height).width(e.width).css({
padding: e.padding,
margin: e.margin
}),
t
}
var p = null
, v = 1e3
, g = {}
, m = -1
, y = t(window);
t.floating = function() {}
,
t.floating.defaults = {
marginTop: 0,
limit: 0,
zIndex: 1e3
},
t.floating.debug = !1;
var b = {
_domWatcherStart: function() {
p || (p = setInterval(b._checkDom, v))
},
_domWatcherStop: function() {
p && (clearInterval(p),
p = null )
},
_checkDom: function() {
var t;
for (t in g)
g[t].$el.is(":visible") && (i(g[t], g[t].$spacer),
c(g[t]))
},
_windowResizeEvent: function(t) {
var e;
for (e in g)
g[e].$el.is(":visible") && (i(g[e], g[e].$spacer),
c(g[e]))
},
_windowScrollEvent: function(t) {
var e;
for (e in g)
c(g[e])
}
}
, w = {};
t.fn.floating = function(e) {
return w[e] ? w[e].apply(this, Array.prototype.slice.call(arguments, 1)) : "object" != typeof e && e ? void t.error("Method " + e + " does not exist on jQuery.floating") : n.apply(this, arguments)
}
,
t(window).bind("resize.floating", b._windowResizeEvent),
t(window).bind("scroll.floating", b._windowScrollEvent),
b._domWatcherStart()
}(jQuery)
}
, function(t, e, n) {
var i, r;
!function(o, a, s) {
i = [n(1)],
r = function(t) {
return s(t, o, a),
t.mobile
}
.apply(e, i),
!(void 0 !== r && (t.exports = r))
}(this, document, function(t, e, n, i) {
!function(t, e, n, i) {
function r(t) {
for (; t && "undefined" != typeof t.originalEvent; )
t = t.originalEvent;
return t
}
function o(e, n) {
var o, a, s, u, c, l, f, h, d, p = e.type;
if (e = t.Event(e),
e.type = n,
o = e.originalEvent,
a = t.event.props,
p.search(/^(mouse|click)/) > -1 && (a = M),
o)
for (f = a.length,
u; f; )
u = a[--f],
e[u] = o[u];
if (p.search(/mouse(down|up)|click/) > -1 && !e.which && (e.which = 1),
p.search(/^touch/) !== -1 && (s = r(o),
p = s.touches,
c = s.changedTouches,
l = p && p.length ? p[0] : c && c.length ? c[0] : i))
for (h = 0,
d = k.length; h < d; h++)
u = k[h],
e[u] = l[u];
return e
}
function a(e) {
for (var n, i, r = {}; e; ) {
n = t.data(e, C);
for (i in n)
n[i] && (r[i] = r.hasVirtualBinding = !0);
e = e.parentNode
}
return r
}
function s(e, n) {
for (var i; e; ) {
if (i = t.data(e, C),
i && (!n || i[n]))
return e;
e = e.parentNode
}
return null
}
function u() {
R = !1
}
function c() {
R = !0
}
function l() {
U = 0,
F.length = 0,
P = !1,
c()
}
function f() {
u()
}
function h() {
d(),
N = setTimeout(function() {
N = 0,
l()
}, t.vmouse.resetTimerDuration)
}
function d() {
N && (clearTimeout(N),
N = 0)
}
function p(e, n, i) {
var r;
return (i && i[e] || !i && s(n.target, e)) && (r = o(n, e),
t(n.target).trigger(r)),
r
}
function v(e) {
var n, i = t.data(e.target, E);
P || U && U === i || (n = p("v" + e.type, e),
n && (n.isDefaultPrevented() && e.preventDefault(),
n.isPropagationStopped() && e.stopPropagation(),
n.isImmediatePropagationStopped() && e.stopImmediatePropagation()))
}
function g(e) {
var n, i, o, s = r(e).touches;
s && 1 === s.length && (n = e.target,
i = a(n),
i.hasVirtualBinding && (U = H++,
t.data(n, E, U),
d(),
f(),
L = !1,
o = r(e).touches[0],
j = o.pageX,
I = o.pageY,
p("vmouseover", e, i),
p("vmousedown", e, i)))
}
function m(t) {
R || (L || p("vmousecancel", t, a(t.target)),
L = !0,
h())
}
function y(e) {
if (!R) {
var n = r(e).touches[0]
, i = L
, o = t.vmouse.moveDistanceThreshold
, s = a(e.target);
L = L || Math.abs(n.pageX - j) > o || Math.abs(n.pageY - I) > o,
L && !i && p("vmousecancel", e, s),
p("vmousemove", e, s),
h()
}
}
function b(t) {
if (!R) {
c();
var e, n, i = a(t.target);
p("vmouseup", t, i),
L || (e = p("vclick", t, i),
e && e.isDefaultPrevented() && (n = r(t).changedTouches[0],
F.push({
touchID: U,
x: n.clientX,
y: n.clientY
}),
P = !0)),
p("vmouseout", t, i),
L = !1,
h()
}
}
function w(e) {
var n, i = t.data(e, C);
if (i)
for (n in i)
if (i[n])
return !0;
return !1
}
function x() {}
function T(e) {
var n = e.substr(1);
return {
setup: function() {
w(this) || t.data(this, C, {});
var i = t.data(this, C);
i[e] = !0,
O[e] = (O[e] || 0) + 1,
1 === O[e] && B.bind(n, v),
t(this).bind(n, x),
z && (O.touchstart = (O.touchstart || 0) + 1,
1 === O.touchstart && B.bind("touchstart", g).bind("touchend", b).bind("touchmove", y).bind("scroll", m))
},
teardown: function() {
--O[e],
O[e] || B.unbind(n, v),
z && (--O.touchstart,
O.touchstart || B.unbind("touchstart", g).unbind("touchmove", y).unbind("touchend", b).unbind("scroll", m));
var i = t(this)
, r = t.data(this, C);
r && (r[e] = !1),
i.unbind(n, x),
w(this) || i.removeData(C)
}
}
}
var S, _, C = "virtualMouseBindings", E = "virtualTouchID", D = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "), k = "clientX clientY pageX pageY screenX screenY".split(" "), A = t.event.mouseHooks ? t.event.mouseHooks.props : [], M = t.event.props.concat(A), O = {}, N = 0, j = 0, I = 0, L = !1, F = [], P = !1, R = !1, z = "addEventListener"in n, B = t(n), H = 1, U = 0;
for (t.vmouse = {
moveDistanceThreshold: 10,
clickDistanceThreshold: 10,
resetTimerDuration: 1500
},
_ = 0; _ < D.length; _++)
t.event.special[D[_]] = T(D[_]);
z && n.addEventListener("click", function(e) {
var n, i, r, o, a, s, u = F.length, c = e.target;
if (u)
for (n = e.clientX,
i = e.clientY,
S = t.vmouse.clickDistanceThreshold,
r = c; r; ) {
for (o = 0; o < u; o++)
if (a = F[o],
s = 0,
r === c && Math.abs(a.x - n) < S && Math.abs(a.y - i) < S || t.data(r, E) === a.touchID)
return e.preventDefault(),
void e.stopPropagation();
r = r.parentNode
}
}, !0)
}(t, e, n),
function(t) {
t.mobile = {}
}(t),
function(t, e) {
var i = {
touch: "ontouchend"in n
};
t.mobile.support = t.mobile.support || {},
t.extend(t.support, i),
t.extend(t.mobile.support, i)
}(t),
function(t, e, i) {
function r(e, n, r, o) {
var a = r.type;
r.type = n,
o ? t.event.trigger(r, i, e) : t.event.dispatch.call(e, r),
r.type = a
}
var o = t(n)
, a = t.mobile.support.touch
, s = "touchmove scroll"
, u = a ? "touchstart" : "mousedown"
, c = a ? "touchend" : "mouseup"
, l = a ? "touchmove" : "mousemove";
t.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "), function(e, n) {
t.fn[n] = function(t) {
return t ? this.bind(n, t) : this.trigger(n)
}
,
t.attrFn && (t.attrFn[n] = !0)
}),
t.event.special.scrollstart = {
enabled: !0,
setup: function() {
function e(t, e) {
n = e,
r(o, n ? "scrollstart" : "scrollstop", t)
}
var n, i, o = this, a = t(o);
a.bind(s, function(r) {
t.event.special.scrollstart.enabled && (n || e(r, !0),
clearTimeout(i),
i = setTimeout(function() {
e(r, !1)
}, 50))
})
},
teardown: function() {
t(this).unbind(s)
}
},
t.event.special.tap = {
tapholdThreshold: 750,
emitTapOnTaphold: !0,
setup: function() {
var e = this
, n = t(e)
, i = !1;
n.bind("vmousedown", function(a) {
function s() {
clearTimeout(l)
}
function u() {
s(),
n.unbind("vclick", c).unbind("vmouseup", s),
o.unbind("vmousecancel", u)
}
function c(t) {
u(),
i || f !== t.target ? i && t.stopPropagation() : r(e, "tap", t)
}
if (i = !1,
a.which && 1 !== a.which)
return !1;
var l, f = a.target;
n.bind("vmouseup", s).bind("vclick", c),
o.bind("vmousecancel", u),
l = setTimeout(function() {
t.event.special.tap.emitTapOnTaphold || (i = !0),
r(e, "taphold", t.Event("taphold", {
target: f
}))
}, t.event.special.tap.tapholdThreshold)
})
},
teardown: function() {
t(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),
o.unbind("vmousecancel")
}
},
t.event.special.swipe = {
scrollSupressionThreshold: 30,
durationThreshold: 1e3,
horizontalDistanceThreshold: 30,
verticalDistanceThreshold: 30,
getLocation: function(t) {
var n = e.pageXOffset
, i = e.pageYOffset
, r = t.clientX
, o = t.clientY;
return 0 === t.pageY && Math.floor(o) > Math.floor(t.pageY) || 0 === t.pageX && Math.floor(r) > Math.floor(t.pageX) ? (r -= n,
o -= i) : (o < t.pageY - i || r < t.pageX - n) && (r = t.pageX - n,
o = t.pageY - i),
{
x: r,
y: o
}
},
start: function(e) {
var n = e.originalEvent.touches ? e.originalEvent.touches[0] : e
, i = t.event.special.swipe.getLocation(n);
return {
time: (new Date).getTime(),
coords: [i.x, i.y],
origin: t(e.target)
}
},
stop: function(e) {
var n = e.originalEvent.touches ? e.originalEvent.touches[0] : e
, i = t.event.special.swipe.getLocation(n);
return {
time: (new Date).getTime(),
coords: [i.x, i.y]
}
},
handleSwipe: function(e, n, i, o) {
if (n.time - e.time < t.event.special.swipe.durationThreshold && Math.abs(e.coords[0] - n.coords[0]) > t.event.special.swipe.horizontalDistanceThreshold && Math.abs(e.coords[1] - n.coords[1]) < t.event.special.swipe.verticalDistanceThreshold) {
var a = e.coords[0] > n.coords[0] ? "swipeleft" : "swiperight";
return r(i, "swipe", t.Event("swipe", {
target: o,
swipestart: e,
swipestop: n
}), !0),
r(i, a, t.Event(a, {
target: o,
swipestart: e,
swipestop: n
}), !0),
!0
}
return !1
},
eventInProgress: !1,
setup: function() {
var e, n = this, i = t(n), r = {};
e = t.data(this, "mobile-events"),
e || (e = {
length: 0
},
t.data(this, "mobile-events", e)),
e.length++,
e.swipe = r,
r.start = function(e) {
if (!t.event.special.swipe.eventInProgress) {
t.event.special.swipe.eventInProgress = !0;
var i, a = t.event.special.swipe.start(e), s = e.target, u = !1;
r.move = function(e) {
a && (i = t.event.special.swipe.stop(e),
u || (u = t.event.special.swipe.handleSwipe(a, i, n, s),
u && (t.event.special.swipe.eventInProgress = !1)),
Math.abs(a.coords[0] - i.coords[0]) > t.event.special.swipe.scrollSupressionThreshold && e.preventDefault())
}
,
r.stop = function() {
u = !0,
t.event.special.swipe.eventInProgress = !1,
o.off(l, r.move),
r.move = null
}
,
o.on(l, r.move).one(c, r.stop)
}
}
,
i.on(u, r.start)
},
teardown: function() {
var e, n;
e = t.data(this, "mobile-events"),
e && (n = e.swipe,
delete e.swipe,
e.length--,
0 === e.length && t.removeData(this, "mobile-events")),
n && (n.start && t(this).off(u, n.start),
n.move && o.off(l, n.move),
n.stop && o.off(c, n.stop))
}
},
t.each({
scrollstop: "scrollstart",
taphold: "tap",
swipeleft: "swipe",
swiperight: "swipe"
}, function(e, n) {
t.event.special[e] = {
setup: function() {
t(this).bind(n, t.noop)
},
teardown: function() {
t(this).unbind(n)
}
}
})
}(t, this)
})
}
, function(t, e) {
!function(t) {
var e, n, i = t("html"), r = t(window);
t.scrollLock = function(o) {
o ? (t("*").filter(function() {
return "fixed" === t(this).css("position")
}).addClass("scroll-margin"),
i.addClass("scroll-margin"),
e = r.scrollTop(),
n = r.scrollLeft(),
i.addClass("scroll-lock"),
r.scrollTop(e).scrollLeft(n)) : i.hasClass("scroll-lock") && (t(".scroll-margin").removeClass("scroll-margin"),
e = r.scrollTop(),
n = r.scrollLeft(),
i.removeClass("scroll-lock"),
r.scrollTop(e).scrollLeft(n))
}
,
t(document).ready(function() {
var e, n;
e = r.width(),
i.addClass("scroll-lock-test"),
n = r.width(),
i.removeClass("scroll-lock-test"),
t("<style type='text/css'>.scroll-margin{margin-right:" + (n - e) + "px;}</style>").appendTo("head")
})
}(jQuery)
}
, function(t, e) {
!function(t) {
_isNumeric = function(t) {
return parseFloat(t) == t
}
,
_getConvertedVal = function(t) {
return _isNumeric(t) ? +t : t
}
,
_serializeObject = function() {
var e = {}
, n = this.serializeArray();
return t.each(n, function() {
void 0 !== e[this.name] ? (e[this.name].push || (e[this.name] = [e[this.name]]),
e[this.name].push(_getConvertedVal(this.value || ""))) : e[this.name] = _getConvertedVal(this.value || "")
}),
e
}
,
t.fn.serializeObject = function() {
return _serializeObject.apply(this, arguments)
}
}(jQuery)
}
, function(t, e) {
t.exports = function(t) {
t.validator.addMethod("emailHtml5", function(t, e) {
var n = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
return this.optional(e) || n.test(t)
}, "Prosím, zadejte platný e-mail.")
}
}
, function(t, e) {
!function(t) {
var e = t(window);
t.fn.visible = function(t, n, i) {
if (!(this.length < 1)) {
var r = this.length > 1 ? this.eq(0) : this
, o = r.get(0)
, a = e.width()
, s = e.height()
, i = i ? i : "both"
, u = n !== !0 || o.offsetWidth * o.offsetHeight;
if ("function" == typeof o.getBoundingClientRect) {
var c = o.getBoundingClientRect()
, l = c.top >= 0 && c.top < s
, f = c.bottom > 0 && c.bottom <= s
, h = c.left >= 0 && c.left < a
, d = c.right > 0 && c.right <= a
, p = t ? l || f : l && f
, v = t ? h || d : h && d;
if ("both" === i)
return u && p && v;
if ("vertical" === i)
return u && p;
if ("horizontal" === i)
return u && v
} else {
var g = e.scrollTop()
, m = g + s
, y = e.scrollLeft()
, b = y + a
, w = r.offset()
, x = w.top
, T = x + r.height()
, S = w.left
, _ = S + r.width()
, C = t === !0 ? T : x
, E = t === !0 ? x : T
, D = t === !0 ? _ : S
, k = t === !0 ? S : _;
if ("both" === i)
return !!u && E <= m && C >= g && k <= b && D >= y;
if ("vertical" === i)
return !!u && E <= m && C >= g;
if ("horizontal" === i)
return !!u && k <= b && D >= y
}
}
}
}(jQuery)
}
, function(t, e, n) {
(function(t) {
"use strict";
function e(t, e, n) {
t[e] || Object[i](t, e, {
writable: !0,
configurable: !0,
value: n
})
}
if (n(698),
n(699),
n(518),
t._babelPolyfill)
throw new Error("only one instance of babel-polyfill is allowed");
t._babelPolyfill = !0;
var i = "defineProperty";
e(String.prototype, "padLeft", "".padStart),
e(String.prototype, "padRight", "".padEnd),
"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t) {
[][t] && e(Array, t, Function.call.bind([][t]))
})
}
).call(e, function() {
return this
}())
}
, function(t, e, n) {
n(527),
t.exports = n(77).RegExp.escape
}
, function(t, e, n) {
var i = n(17)
, r = n(316)
, o = n(19)("species");
t.exports = function(t) {
var e;
return r(t) && (e = t.constructor,
"function" != typeof e || e !== Array && !r(e.prototype) || (e = void 0),
i(e) && (e = e[o],
null === e && (e = void 0))),
void 0 === e ? Array : e
}
}
, function(t, e, n) {
var i = n(519);
t.exports = function(t, e) {
return new (i(t))(e)
}
}
, function(t, e, n) {
"use strict";
var i = n(10)
, r = n(70)
, o = "number";
t.exports = function(t) {
if ("string" !== t && t !== o && "default" !== t)
throw TypeError("Incorrect hint");
return r(i(this), t != o)
}
}
, function(t, e, n) {
var i = n(109)
, r = n(212)
, o = n(165);
t.exports = function(t) {
var e = i(t)
, n = r.f;
if (n)
for (var a, s = n(t), u = o.f, c = 0; s.length > c; )
u.call(t, a = s[c++]) && e.push(a);
return e
}
}
, function(t, e, n) {
var i = n(109)
, r = n(48);
t.exports = function(t, e) {
for (var n, o = r(t), a = i(o), s = a.length, u = 0; s > u; )
if (o[n = a[u++]] === e)
return n
}
}
, function(t, e, n) {
"use strict";
var i = n(525)
, r = n(208)
, o = n(44);
t.exports = function() {
for (var t = o(this), e = arguments.length, n = Array(e), a = 0, s = i._, u = !1; e > a; )
(n[a] = arguments[a++]) === s && (u = !0);
return function() {
var i, o = this, a = arguments.length, c = 0, l = 0;
if (!u && !a)
return r(t, n, o);
if (i = n.slice(),
u)
for (; e > c; c++)
i[c] === s && (i[c] = arguments[l++]);
for (; a > l; )
i.push(arguments[l++]);
return r(t, i, o)
}
}
}
, function(t, e, n) {
t.exports = n(13)
}
, function(t, e) {
t.exports = function(t, e) {
var n = e === Object(e) ? function(t) {
return e[t]
}
: e;
return function(e) {
return String(e).replace(t, n)
}
}
}
, function(t, e, n) {
var i = n(3)
, r = n(526)(/[\\^$*+?.()|[\]{}]/g, "\\$&");
i(i.S, "RegExp", {
escape: function(t) {
return r(t)
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.P, "Array", {
copyWithin: n(465)
}),
n(130)("copyWithin")
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(68)(4);
i(i.P + i.F * !n(61)([].every, !0), "Array", {
every: function(t) {
return r(this, t, arguments[1])
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.P, "Array", {
fill: n(308)
}),
n(130)("fill")
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(68)(2);
i(i.P + i.F * !n(61)([].filter, !0), "Array", {
filter: function(t) {
return r(this, t, arguments[1])
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(68)(6)
, o = "findIndex"
, a = !0;
o in [] && Array(1)[o](function() {
a = !1
}),
i(i.P + i.F * a, "Array", {
findIndex: function(t) {
return r(this, t, arguments.length > 1 ? arguments[1] : void 0)
}
}),
n(130)(o)
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(68)(5)
, o = "find"
, a = !0;
o in [] && Array(1)[o](function() {
a = !1
}),
i(i.P + i.F * a, "Array", {
find: function(t) {
return r(this, t, arguments.length > 1 ? arguments[1] : void 0)
}
}),
n(130)(o)
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(68)(0)
, o = n(61)([].forEach, !0);
i(i.P + i.F * !o, "Array", {
forEach: function(t) {
return r(this, t, arguments[1])
}
})
}
, function(t, e, n) {
"use strict";
var i = n(78)
, r = n(3)
, o = n(30)
, a = n(474)
, s = n(315)
, u = n(26)
, c = n(309)
, l = n(332);
r(r.S + r.F * !n(210)(function(t) {
Array.from(t)
}), "Array", {
from: function(t) {
var e, n, r, f, h = o(t), d = "function" == typeof this ? this : Array, p = arguments.length, v = p > 1 ? arguments[1] : void 0, g = void 0 !== v, m = 0, y = l(h);
if (g && (v = i(v, p > 2 ? arguments[2] : void 0, 2)),
void 0 == y || d == Array && s(y))
for (e = u(h.length),
n = new d(e); e > m; m++)
c(n, m, g ? v(h[m], m) : h[m]);
else
for (f = y.call(h),
n = new d; !(r = f.next()).done; m++)
c(n, m, g ? a(f, v, [r.value, m], !0) : r.value);
return n.length = m,
n
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(204)(!1)
, o = [].indexOf
, a = !!o && 1 / [1].indexOf(1, -0) < 0;
i(i.P + i.F * (a || !n(61)(o)), "Array", {
indexOf: function(t) {
return a ? o.apply(this, arguments) || 0 : r(this, t, arguments[1])
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Array", {
isArray: n(316)
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(48)
, o = [].join;
i(i.P + i.F * (n(164) != Object || !n(61)(o)), "Array", {
join: function(t) {
return o.call(r(this), void 0 === t ? "," : t)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(48)
, o = n(90)
, a = n(26)
, s = [].lastIndexOf
, u = !!s && 1 / [1].lastIndexOf(1, -0) < 0;
i(i.P + i.F * (u || !n(61)(s)), "Array", {
lastIndexOf: function(t) {
if (u)
return s.apply(this, arguments) || 0;
var e = r(this)
, n = a(e.length)
, i = n - 1;
for (arguments.length > 1 && (i = Math.min(i, o(arguments[1]))),
i < 0 && (i = n + i); i >= 0; i--)
if (i in e && e[i] === t)
return i || 0;
return -1
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(68)(1);
i(i.P + i.F * !n(61)([].map, !0), "Array", {
map: function(t) {
return r(this, t, arguments[1])
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(309);
i(i.S + i.F * n(15)(function() {
function t() {}
return !(Array.of.call(t)instanceof t)
}), "Array", {
of: function() {
for (var t = 0, e = arguments.length, n = new ("function" == typeof this ? this : Array)(e); e > t; )
r(n, t, arguments[t++]);
return n.length = e,
n
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(467);
i(i.P + i.F * !n(61)([].reduceRight, !0), "Array", {
reduceRight: function(t) {
return r(this, t, arguments.length, arguments[1], !0)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(467);
i(i.P + i.F * !n(61)([].reduce, !0), "Array", {
reduce: function(t) {
return r(this, t, arguments.length, arguments[1], !1)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(313)
, o = n(59)
, a = n(112)
, s = n(26)
, u = [].slice;
i(i.P + i.F * n(15)(function() {
r && u.call(r)
}), "Array", {
slice: function(t, e) {
var n = s(this.length)
, i = o(this);
if (e = void 0 === e ? n : e,
"Array" == i)
return u.call(this, t, e);
for (var r = a(t, n), c = a(e, n), l = s(c - r), f = Array(l), h = 0; h < l; h++)
f[h] = "String" == i ? this.charAt(r + h) : this[r + h];
return f
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(68)(3);
i(i.P + i.F * !n(61)([].some, !0), "Array", {
some: function(t) {
return r(this, t, arguments[1])
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(44)
, o = n(30)
, a = n(15)
, s = [].sort
, u = [1, 2, 3];
i(i.P + i.F * (a(function() {
u.sort(void 0)
}) || !a(function() {
u.sort(null )
}) || !n(61)(s)), "Array", {
sort: function(t) {
return void 0 === t ? s.call(o(this)) : s.call(o(this), r(t))
}
})
}
, function(t, e, n) {
n(111)("Array")
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Date", {
now: function() {
return (new Date).getTime()
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(15)
, o = Date.prototype.getTime
, a = function(t) {
return t > 9 ? t : "0" + t
}
;
i(i.P + i.F * (r(function() {
return "0385-07-25T07:06:39.999Z" != new Date(-5e13 - 1).toISOString()
}) || !r(function() {
new Date(NaN).toISOString()
})), "Date", {
toISOString: function() {
if (!isFinite(o.call(this)))
throw RangeError("Invalid time value");
var t = this
, e = t.getUTCFullYear()
, n = t.getUTCMilliseconds()
, i = e < 0 ? "-" : e > 9999 ? "+" : "";
return i + ("00000" + Math.abs(e)).slice(i ? -6 : -4) + "-" + a(t.getUTCMonth() + 1) + "-" + a(t.getUTCDate()) + "T" + a(t.getUTCHours()) + ":" + a(t.getUTCMinutes()) + ":" + a(t.getUTCSeconds()) + "." + (n > 99 ? n : "0" + a(n)) + "Z"
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(30)
, o = n(70);
i(i.P + i.F * n(15)(function() {
return null !== new Date(NaN).toJSON() || 1 !== Date.prototype.toJSON.call({
toISOString: function() {
return 1
}
})
}), "Date", {
toJSON: function(t) {
var e = r(this)
, n = o(e);
return "number" != typeof n || isFinite(n) ? e.toISOString() : null
}
})
}
, function(t, e, n) {
var i = n(19)("toPrimitive")
, r = Date.prototype;
i in r || n(45)(r, i, n(521))
}
, function(t, e, n) {
var i = Date.prototype
, r = "Invalid Date"
, o = "toString"
, a = i[o]
, s = i.getTime;
new Date(NaN) + "" != r && n(46)(i, o, function() {
var t = s.call(this);
return t === t ? a.call(this) : r
})
}
, function(t, e, n) {
var i = n(3);
i(i.P, "Function", {
bind: n(468)
})
}
, function(t, e, n) {
"use strict";
var i = n(17)
, r = n(55)
, o = n(19)("hasInstance")
, a = Function.prototype;
o in a || n(22).f(a, o, {
value: function(t) {
if ("function" != typeof this || !i(t))
return !1;
if (!i(this.prototype))
return t instanceof this;
for (; t = r(t); )
if (this.prototype === t)
return !0;
return !1
}
})
}
, function(t, e, n) {
var i = n(22).f
, r = n(89)
, o = n(35)
, a = Function.prototype
, s = /^\s*function ([^ (]*)/
, u = "name"
, c = Object.isExtensible || function() {
return !0
}
;
u in a || n(21) && i(a, u, {
configurable: !0,
get: function() {
try {
var t = this
, e = ("" + t).match(s)[1];
return o(t, u) || !c(t) || i(t, u, r(5, e)),
e
} catch (n) {
return ""
}
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(476)
, o = Math.sqrt
, a = Math.acosh;
i(i.S + i.F * !(a && 710 == Math.floor(a(Number.MAX_VALUE)) && a(1 / 0) == 1 / 0), "Math", {
acosh: function(t) {
return (t = +t) < 1 ? NaN : t > 94906265.62425156 ? Math.log(t) + Math.LN2 : r(t - 1 + o(t - 1) * o(t + 1))
}
})
}
, function(t, e, n) {
function i(t) {
return isFinite(t = +t) && 0 != t ? t < 0 ? -i(-t) : Math.log(t + Math.sqrt(t * t + 1)) : t
}
var r = n(3)
, o = Math.asinh;
r(r.S + r.F * !(o && 1 / o(0) > 0), "Math", {
asinh: i
})
}
, function(t, e, n) {
var i = n(3)
, r = Math.atanh;
i(i.S + i.F * !(r && 1 / r(-0) < 0), "Math", {
atanh: function(t) {
return 0 == (t = +t) ? t : Math.log((1 + t) / (1 - t)) / 2
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(320);
i(i.S, "Math", {
cbrt: function(t) {
return r(t = +t) * Math.pow(Math.abs(t), 1 / 3)
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Math", {
clz32: function(t) {
return (t >>>= 0) ? 31 - Math.floor(Math.log(t + .5) * Math.LOG2E) : 32
}
})
}
, function(t, e, n) {
var i = n(3)
, r = Math.exp;
i(i.S, "Math", {
cosh: function(t) {
return (r(t = +t) + r(-t)) / 2
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(319);
i(i.S + i.F * (r != Math.expm1), "Math", {
expm1: r
})
}
, function(t, e, n) {
var i = n(3)
, r = n(320)
, o = Math.pow
, a = o(2, -52)
, s = o(2, -23)
, u = o(2, 127) * (2 - s)
, c = o(2, -126)
, l = function(t) {
return t + 1 / a - 1 / a
}
;
i(i.S, "Math", {
fround: function(t) {
var e, n, i = Math.abs(t), o = r(t);
return i < c ? o * l(i / c / s) * c * s : (e = (1 + s / a) * i,
n = e - (e - i),
n > u || n != n ? o * (1 / 0) : o * n)
}
})
}
, function(t, e, n) {
var i = n(3)
, r = Math.abs;
i(i.S, "Math", {
hypot: function(t, e) {
for (var n, i, o = 0, a = 0, s = arguments.length, u = 0; a < s; )
n = r(arguments[a++]),
u < n ? (i = u / n,
o = o * i * i + 1,
u = n) : n > 0 ? (i = n / u,
o += i * i) : o += n;
return u === 1 / 0 ? 1 / 0 : u * Math.sqrt(o)
}
})
}
, function(t, e, n) {
var i = n(3)
, r = Math.imul;
i(i.S + i.F * n(15)(function() {
return r(4294967295, 5) != -5 || 2 != r.length
}), "Math", {
imul: function(t, e) {
var n = 65535
, i = +t
, r = +e
, o = n & i
, a = n & r;
return 0 | o * a + ((n & i >>> 16) * a + o * (n & r >>> 16) << 16 >>> 0)
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Math", {
log10: function(t) {
return Math.log(t) / Math.LN10
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Math", {
log1p: n(476)
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Math", {
log2: function(t) {
return Math.log(t) / Math.LN2
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Math", {
sign: n(320)
})
}
, function(t, e, n) {
var i = n(3)
, r = n(319)
, o = Math.exp;
i(i.S + i.F * n(15)(function() {
return !Math.sinh(-2e-17) != -2e-17
}), "Math", {
sinh: function(t) {
return Math.abs(t = +t) < 1 ? (r(t) - r(-t)) / 2 : (o(t - 1) - o(-t - 1)) * (Math.E / 2)
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(319)
, o = Math.exp;
i(i.S, "Math", {
tanh: function(t) {
var e = r(t = +t)
, n = r(-t);
return e == 1 / 0 ? 1 : n == 1 / 0 ? -1 : (e - n) / (o(t) + o(-t))
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Math", {
trunc: function(t) {
return (t > 0 ? Math.floor : Math.ceil)(t)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(13)
, r = n(35)
, o = n(59)
, a = n(314)
, s = n(70)
, u = n(15)
, c = n(108).f
, l = n(54).f
, f = n(22).f
, h = n(134).trim
, d = "Number"
, p = i[d]
, v = p
, g = p.prototype
, m = o(n(107)(g)) == d
, y = "trim"in String.prototype
, b = function(t) {
var e = s(t, !1);
if ("string" == typeof e && e.length > 2) {
e = y ? e.trim() : h(e, 3);
var n, i, r, o = e.charCodeAt(0);
if (43 === o || 45 === o) {
if (n = e.charCodeAt(2),
88 === n || 120 === n)
return NaN
} else if (48 === o) {
switch (e.charCodeAt(1)) {
case 66:
case 98:
i = 2,
r = 49;
break;
case 79:
case 111:
i = 8,
r = 55;
break;
default:
return +e
}
for (var a, u = e.slice(2), c = 0, l = u.length; c < l; c++)
if (a = u.charCodeAt(c),
a < 48 || a > r)
return NaN;
return parseInt(u, i)
}
}
return +e
}
;
if (!p(" 0o1") || !p("0b1") || p("+0x1")) {
p = function(t) {
var e = arguments.length < 1 ? 0 : t
, n = this;
return n instanceof p && (m ? u(function() {
g.valueOf.call(n)
}) : o(n) != d) ? a(new v(b(e)), n, p) : b(e)
}
;
for (var w, x = n(21) ? c(v) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","), T = 0; x.length > T; T++)
r(v, w = x[T]) && !r(p, w) && f(p, w, l(v, w));
p.prototype = g,
g.constructor = p,
n(46)(i, d, p)
}
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Number", {
EPSILON: Math.pow(2, -52)
})
}
, function(t, e, n) {
var i = n(3)
, r = n(13).isFinite;
i(i.S, "Number", {
isFinite: function(t) {
return "number" == typeof t && r(t)
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Number", {
isInteger: n(473)
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Number", {
isNaN: function(t) {
return t != t
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(473)
, o = Math.abs;
i(i.S, "Number", {
isSafeInteger: function(t) {
return r(t) && o(t) <= 9007199254740991
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Number", {
MAX_SAFE_INTEGER: 9007199254740991
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Number", {
MIN_SAFE_INTEGER: -9007199254740991
})
}
, function(t, e, n) {
var i = n(3)
, r = n(483);
i(i.S + i.F * (Number.parseFloat != r), "Number", {
parseFloat: r
})
}
, function(t, e, n) {
var i = n(3)
, r = n(484);
i(i.S + i.F * (Number.parseInt != r), "Number", {
parseInt: r
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(90)
, o = n(464)
, a = n(327)
, s = 1..toFixed
, u = Math.floor
, c = [0, 0, 0, 0, 0, 0]
, l = "Number.toFixed: incorrect invocation!"
, f = "0"
, h = function(t, e) {
for (var n = -1, i = e; ++n < 6; )
i += t * c[n],
c[n] = i % 1e7,
i = u(i / 1e7)
}
, d = function(t) {
for (var e = 6, n = 0; --e >= 0; )
n += c[e],
c[e] = u(n / t),
n = n % t * 1e7
}
, p = function() {
for (var t = 6, e = ""; --t >= 0; )
if ("" !== e || 0 === t || 0 !== c[t]) {
var n = String(c[t]);
e = "" === e ? n : e + a.call(f, 7 - n.length) + n
}
return e
}
, v = function(t, e, n) {
return 0 === e ? n : e % 2 === 1 ? v(t, e - 1, n * t) : v(t * t, e / 2, n)
}
, g = function(t) {
for (var e = 0, n = t; n >= 4096; )
e += 12,
n /= 4096;
for (; n >= 2; )
e += 1,
n /= 2;
return e
}
;
i(i.P + i.F * (!!s && ("0.000" !== 8e-5.toFixed(3) || "1" !== .9.toFixed(0) || "1.25" !== 1.255.toFixed(2) || "1000000000000000128" !== (0xde0b6b3a7640080).toFixed(0)) || !n(15)(function() {
s.call({})
})), "Number", {
toFixed: function(t) {
var e, n, i, s, u = o(this, l), c = r(t), m = "", y = f;
if (c < 0 || c > 20)
throw RangeError(l);
if (u != u)
return "NaN";
if (u <= -1e21 || u >= 1e21)
return String(u);
if (u < 0 && (m = "-",
u = -u),
u > 1e-21)
if (e = g(u * v(2, 69, 1)) - 69,
n = e < 0 ? u * v(2, -e, 1) : u / v(2, e, 1),
n *= 4503599627370496,
e = 52 - e,
e > 0) {
for (h(0, n),
i = c; i >= 7; )
h(1e7, 0),
i -= 7;
for (h(v(10, i, 1), 0),
i = e - 1; i >= 23; )
d(1 << 23),
i -= 23;
d(1 << i),
h(1, 1),
d(2),
y = p()
} else
h(0, n),
h(1 << -e, 0),
y = p() + a.call(f, c);
return c > 0 ? (s = y.length,
y = m + (s <= c ? "0." + a.call(f, c - s) + y : y.slice(0, s - c) + "." + y.slice(s - c))) : y = m + y,
y
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(15)
, o = n(464)
, a = 1..toPrecision;
i(i.P + i.F * (r(function() {
return "1" !== a.call(1, void 0)
}) || !r(function() {
a.call({})
})), "Number", {
toPrecision: function(t) {
var e = o(this, "Number#toPrecision: incorrect invocation!");
return void 0 === t ? a.call(e) : a.call(e, t)
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S + i.F, "Object", {
assign: n(477)
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Object", {
create: n(107)
})
}
, function(t, e, n) {
var i = n(3);
i(i.S + i.F * !n(21), "Object", {
defineProperties: n(478)
})
}
, function(t, e, n) {
var i = n(3);
i(i.S + i.F * !n(21), "Object", {
defineProperty: n(22).f
})
}
, function(t, e, n) {
var i = n(17)
, r = n(88).onFreeze;
n(69)("freeze", function(t) {
return function(e) {
return t && i(e) ? t(r(e)) : e
}
})
}
, function(t, e, n) {
var i = n(48)
, r = n(54).f;
n(69)("getOwnPropertyDescriptor", function() {
return function(t, e) {
return r(i(t), e)
}
})
}
, function(t, e, n) {
n(69)("getOwnPropertyNames", function() {
return n(479).f
})
}
, function(t, e, n) {
var i = n(30)
, r = n(55);
n(69)("getPrototypeOf", function() {
return function(t) {
return r(i(t))
}
})
}
, function(t, e, n) {
var i = n(17);
n(69)("isExtensible", function(t) {
return function(e) {
return !!i(e) && (!t || t(e))
}
})
}
, function(t, e, n) {
var i = n(17);
n(69)("isFrozen", function(t) {
return function(e) {
return !i(e) || !!t && t(e)
}
})
}
, function(t, e, n) {
var i = n(17);
n(69)("isSealed", function(t) {
return function(e) {
return !i(e) || !!t && t(e)
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Object", {
is: n(485)
})
}
, function(t, e, n) {
var i = n(30)
, r = n(109);
n(69)("keys", function() {
return function(t) {
return r(i(t))
}
})
}
, function(t, e, n) {
var i = n(17)
, r = n(88).onFreeze;
n(69)("preventExtensions", function(t) {
return function(e) {
return t && i(e) ? t(r(e)) : e
}
})
}
, function(t, e, n) {
var i = n(17)
, r = n(88).onFreeze;
n(69)("seal", function(t) {
return function(e) {
return t && i(e) ? t(r(e)) : e
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Object", {
setPrototypeOf: n(322).set
})
}
, function(t, e, n) {
"use strict";
var i = n(163)
, r = {};
r[n(19)("toStringTag")] = "z",
r + "" != "[object z]" && n(46)(Object.prototype, "toString", function() {
return "[object " + i(this) + "]"
}, !0)
}
, function(t, e, n) {
var i = n(3)
, r = n(483);
i(i.G + i.F * (parseFloat != r), {
parseFloat: r
})
}
, function(t, e, n) {
var i = n(3)
, r = n(484);
i(i.G + i.F * (parseInt != r), {
parseInt: r
})
}
, function(t, e, n) {
"use strict";
var i, r, o, a = n(106), s = n(13), u = n(78), c = n(163), l = n(3), f = n(17), h = n(44), d = n(105), p = n(131), v = n(324), g = n(329).set, m = n(321)(), y = "Promise", b = s.TypeError, w = s.process, x = s[y], w = s.process, T = "process" == c(w), S = function() {}
, _ = !!function() {
try {
var t = x.resolve(1)
, e = (t.constructor = {})[n(19)("species")] = function(t) {
t(S, S)
}
;
return (T || "function" == typeof PromiseRejectionEvent) && t.then(S)instanceof e
} catch (i) {}
}(), C = function(t, e) {
return t === e || t === x && e === o
}
, E = function(t) {
var e;
return !(!f(t) || "function" != typeof (e = t.then)) && e
}
, D = function(t) {
return C(x, t) ? new k(t) : new r(t)
}
, k = r = function(t) {
var e, n;
this.promise = new t(function(t, i) {
if (void 0 !== e || void 0 !== n)
throw b("Bad Promise constructor");
e = t,
n = i
}
),
this.resolve = h(e),
this.reject = h(n)
}
, A = function(t) {
try {
t()
} catch (e) {
return {
error: e
}
}
}
, M = function(t, e) {
if (!t._n) {
t._n = !0;
var n = t._c;
m(function() {
for (var i = t._v, r = 1 == t._s, o = 0, a = function(e) {
var n, o, a = r ? e.ok : e.fail, s = e.resolve, u = e.reject, c = e.domain;
try {
a ? (r || (2 == t._h && j(t),
t._h = 1),
a === !0 ? n = i : (c && c.enter(),
n = a(i),
c && c.exit()),
n === e.promise ? u(b("Promise-chain cycle")) : (o = E(n)) ? o.call(n, s, u) : s(n)) : u(i)
} catch (l) {
u(l)
}
}
; n.length > o; )
a(n[o++]);
t._c = [],
t._n = !1,
e && !t._h && O(t)
})
}
}
, O = function(t) {
g.call(s, function() {
var e, n, i, r = t._v;
if (N(t) && (e = A(function() {
T ? w.emit("unhandledRejection", r, t) : (n = s.onunhandledrejection) ? n({
promise: t,
reason: r
}) : (i = s.console) && i.error && i.error("Unhandled promise rejection", r)
}),
t._h = T || N(t) ? 2 : 1),
t._a = void 0,
e)
throw e.error
})
}
, N = function(t) {
if (1 == t._h)
return !1;
for (var e, n = t._a || t._c, i = 0; n.length > i; )
if (e = n[i++],
e.fail || !N(e.promise))
return !1;
return !0
}
, j = function(t) {
g.call(s, function() {
var e;
T ? w.emit("rejectionHandled", t) : (e = s.onrejectionhandled) && e({
promise: t,
reason: t._v
})
})
}
, I = function(t) {
var e = this;
e._d || (e._d = !0,
e = e._w || e,
e._v = t,
e._s = 2,
e._a || (e._a = e._c.slice()),
M(e, !0))
}
, L = function(t) {
var e, n = this;
if (!n._d) {
n._d = !0,
n = n._w || n;
try {
if (n === t)
throw b("Promise can't be resolved itself");
(e = E(t)) ? m(function() {
var i = {
_w: n,
_d: !1
};
try {
e.call(t, u(L, i, 1), u(I, i, 1))
} catch (r) {
I.call(i, r)
}
}) : (n._v = t,
n._s = 1,
M(n, !1))
} catch (i) {
I.call({
_w: n,
_d: !1
}, i)
}
}
}
;
_ || (x = function(t) {
d(this, x, y, "_h"),
h(t),
i.call(this);
try {
t(u(L, this, 1), u(I, this, 1))
} catch (e) {
I.call(this, e)
}
}
,
i = function(t) {
this._c = [],
this._a = void 0,
this._s = 0,
this._d = !1,
this._v = void 0,
this._h = 0,
this._n = !1
}
,
i.prototype = n(110)(x.prototype, {
then: function(t, e) {
var n = D(v(this, x));
return n.ok = "function" != typeof t || t,
n.fail = "function" == typeof e && e,
n.domain = T ? w.domain : void 0,
this._c.push(n),
this._a && this._a.push(n),
this._s && M(this, !1),
n.promise
},
"catch": function(t) {
return this.then(void 0, t)
}
}),
k = function() {
var t = new i;
this.promise = t,
this.resolve = u(L, t, 1),
this.reject = u(I, t, 1)
}
),
l(l.G + l.W + l.F * !_, {
Promise: x
}),
n(133)(x, y),
n(111)(y),
o = n(77)[y],
l(l.S + l.F * !_, y, {
reject: function(t) {
var e = D(this)
, n = e.reject;
return n(t),
e.promise
}
}),
l(l.S + l.F * (a || !_), y, {
resolve: function(t) {
if (t instanceof x && C(t.constructor, this))
return t;
var e = D(this)
, n = e.resolve;
return n(t),
e.promise
}
}),
l(l.S + l.F * !(_ && n(210)(function(t) {
x.all(t)["catch"](S)
})), y, {
all: function(t) {
var e = this
, n = D(e)
, i = n.resolve
, r = n.reject
, o = A(function() {
var n = []
, o = 0
, a = 1;
p(t, !1, function(t) {
var s = o++
, u = !1;
n.push(void 0),
a++,
e.resolve(t).then(function(t) {
u || (u = !0,
n[s] = t,
--a || i(n))
}, r)
}),
--a || i(n)
});
return o && r(o.error),
n.promise
},
race: function(t) {
var e = this
, n = D(e)
, i = n.reject
, r = A(function() {
p(t, !1, function(t) {
e.resolve(t).then(n.resolve, i)
})
});
return r && i(r.error),
n.promise
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(44)
, o = n(10)
, a = (n(13).Reflect || {}).apply
, s = Function.apply;
i(i.S + i.F * !n(15)(function() {
a(function() {})
}), "Reflect", {
apply: function(t, e, n) {
var i = r(t)
, u = o(n);
return a ? a(i, e, u) : s.call(i, e, u)
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(107)
, o = n(44)
, a = n(10)
, s = n(17)
, u = n(15)
, c = n(468)
, l = (n(13).Reflect || {}).construct
, f = u(function() {
function t() {}
return !(l(function() {}, [], t)instanceof t)
})
, h = !u(function() {
l(function() {})
});
i(i.S + i.F * (f || h), "Reflect", {
construct: function(t, e) {
o(t),
a(e);
var n = arguments.length < 3 ? t : o(arguments[2]);
if (h && !f)
return l(t, e, n);
if (t == n) {
switch (e.length) {
case 0:
return new t;
case 1:
return new t(e[0]);
case 2:
return new t(e[0],e[1]);
case 3:
return new t(e[0],e[1],e[2]);
case 4:
return new t(e[0],e[1],e[2],e[3])
}
var i = [null ];
return i.push.apply(i, e),
new (c.apply(t, i))
}
var u = n.prototype
, d = r(s(u) ? u : Object.prototype)
, p = Function.apply.call(t, d, e);
return s(p) ? p : d
}
})
}
, function(t, e, n) {
var i = n(22)
, r = n(3)
, o = n(10)
, a = n(70);
r(r.S + r.F * n(15)(function() {
Reflect.defineProperty(i.f({}, 1, {
value: 1
}), 1, {
value: 2
})
}), "Reflect", {
defineProperty: function(t, e, n) {
o(t),
e = a(e, !0),
o(n);
try {
return i.f(t, e, n),
!0
} catch (r) {
return !1
}
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(54).f
, o = n(10);
i(i.S, "Reflect", {
deleteProperty: function(t, e) {
var n = r(o(t), e);
return !(n && !n.configurable) && delete t[e]
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(10)
, o = function(t) {
this._t = r(t),
this._i = 0;
var e, n = this._k = [];
for (e in t)
n.push(e)
}
;
n(317)(o, "Object", function() {
var t, e = this, n = e._k;
do
if (e._i >= n.length)
return {
value: void 0,
done: !0
};
while (!((t = n[e._i++])in e._t));return {
value: t,
done: !1
}
}),
i(i.S, "Reflect", {
enumerate: function(t) {
return new o(t)
}
})
}
, function(t, e, n) {
var i = n(54)
, r = n(3)
, o = n(10);
r(r.S, "Reflect", {
getOwnPropertyDescriptor: function(t, e) {
return i.f(o(t), e)
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(55)
, o = n(10);
i(i.S, "Reflect", {
getPrototypeOf: function(t) {
return r(o(t))
}
})
}
, function(t, e, n) {
function i(t, e) {
var n, s, l = arguments.length < 3 ? t : arguments[2];
return c(t) === l ? t[e] : (n = r.f(t, e)) ? a(n, "value") ? n.value : void 0 !== n.get ? n.get.call(l) : void 0 : u(s = o(t)) ? i(s, e, l) : void 0
}
var r = n(54)
, o = n(55)
, a = n(35)
, s = n(3)
, u = n(17)
, c = n(10);
s(s.S, "Reflect", {
get: i
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Reflect", {
has: function(t, e) {
return e in t
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(10)
, o = Object.isExtensible;
i(i.S, "Reflect", {
isExtensible: function(t) {
return r(t),
!o || o(t)
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Reflect", {
ownKeys: n(482)
})
}
, function(t, e, n) {
var i = n(3)
, r = n(10)
, o = Object.preventExtensions;
i(i.S, "Reflect", {
preventExtensions: function(t) {
r(t);
try {
return o && o(t),
!0
} catch (e) {
return !1
}
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(322);
r && i(i.S, "Reflect", {
setPrototypeOf: function(t, e) {
r.check(t, e);
try {
return r.set(t, e),
!0
} catch (n) {
return !1
}
}
})
}
, function(t, e, n) {
function i(t, e, n) {
var u, h, d = arguments.length < 4 ? t : arguments[3], p = o.f(l(t), e);
if (!p) {
if (f(h = a(t)))
return i(h, e, n, d);
p = c(0)
}
return s(p, "value") ? !(p.writable === !1 || !f(d) || (u = o.f(d, e) || c(0),
u.value = n,
r.f(d, e, u),
0)) : void 0 !== p.set && (p.set.call(d, n),
!0)
}
var r = n(22)
, o = n(54)
, a = n(55)
, s = n(35)
, u = n(3)
, c = n(89)
, l = n(10)
, f = n(17);
u(u.S, "Reflect", {
set: i
})
}
, function(t, e, n) {
var i = n(13)
, r = n(314)
, o = n(22).f
, a = n(108).f
, s = n(209)
, u = n(207)
, c = i.RegExp
, l = c
, f = c.prototype
, h = /a/g
, d = /a/g
, p = new c(h) !== h;
if (n(21) && (!p || n(15)(function() {
return d[n(19)("match")] = !1,
c(h) != h || c(d) == d || "/a/i" != c(h, "i")
}))) {
c = function(t, e) {
var n = this instanceof c
, i = s(t)
, o = void 0 === e;
return !n && i && t.constructor === c && o ? t : r(p ? new l(i && !o ? t.source : t,e) : l((i = t instanceof c) ? t.source : t, i && o ? u.call(t) : e), n ? this : f, c)
}
;
for (var v = (function(t) {
t in c || o(c, t, {
configurable: !0,
get: function() {
return l[t]
},
set: function(e) {
l[t] = e
}
})
}
), g = a(l), m = 0; g.length > m; )
v(g[m++]);
f.constructor = c,
c.prototype = f,
n(46)(i, "RegExp", c)
}
n(111)("RegExp")
}
, function(t, e, n) {
n(206)("match", 1, function(t, e, n) {
return [function(n) {
"use strict";
var i = t(this)
, r = void 0 == n ? void 0 : n[e];
return void 0 !== r ? r.call(n, i) : new RegExp(n)[e](String(i))
}
, n]
})
}
, function(t, e, n) {
n(206)("replace", 2, function(t, e, n) {
return [function(i, r) {
"use strict";
var o = t(this)
, a = void 0 == i ? void 0 : i[e];
return void 0 !== a ? a.call(i, o, r) : n.call(String(o), i, r)
}
, n]
})
}
, function(t, e, n) {
n(206)("search", 1, function(t, e, n) {
return [function(n) {
"use strict";
var i = t(this)
, r = void 0 == n ? void 0 : n[e];
return void 0 !== r ? r.call(n, i) : new RegExp(n)[e](String(i))
}
, n]
})
}
, function(t, e, n) {
n(206)("split", 2, function(t, e, i) {
"use strict";
var r = n(209)
, o = i
, a = [].push
, s = "split"
, u = "length"
, c = "lastIndex";
if ("c" == "abbc"[s](/(b)*/)[1] || 4 != "test"[s](/(?:)/, -1)[u] || 2 != "ab"[s](/(?:ab)*/)[u] || 4 != "."[s](/(.?)(.?)/)[u] || "."[s](/()()/)[u] > 1 || ""[s](/.?/)[u]) {
var l = void 0 === /()??/.exec("")[1];
i = function(t, e) {
var n = String(this);
if (void 0 === t && 0 === e)
return [];
if (!r(t))
return o.call(n, t, e);
var i, s, f, h, d, p = [], v = (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.unicode ? "u" : "") + (t.sticky ? "y" : ""), g = 0, m = void 0 === e ? 4294967295 : e >>> 0, y = new RegExp(t.source,v + "g");
for (l || (i = new RegExp("^" + y.source + "$(?!\\s)",v)); (s = y.exec(n)) && (f = s.index + s[0][u],
!(f > g && (p.push(n.slice(g, s.index)),
!l && s[u] > 1 && s[0].replace(i, function() {
for (d = 1; d < arguments[u] - 2; d++)
void 0 === arguments[d] && (s[d] = void 0)
}),
s[u] > 1 && s.index < n[u] && a.apply(p, s.slice(1)),
h = s[0][u],
g = f,
p[u] >= m))); )
y[c] === s.index && y[c]++;
return g === n[u] ? !h && y.test("") || p.push("") : p.push(n.slice(g)),
p[u] > m ? p.slice(0, m) : p
}
} else
"0"[s](void 0, 0)[u] && (i = function(t, e) {
return void 0 === t && 0 === e ? [] : o.call(this, t, e)
}
);
return [function(n, r) {
var o = t(this)
, a = void 0 == n ? void 0 : n[e];
return void 0 !== a ? a.call(n, o, r) : i.call(String(o), n, r)
}
, i]
})
}
, function(t, e, n) {
"use strict";
n(489);
var i = n(10)
, r = n(207)
, o = n(21)
, a = "toString"
, s = /./[a]
, u = function(t) {
n(46)(RegExp.prototype, a, t, !0)
}
;
n(15)(function() {
return "/a/b" != s.call({
source: "a",
flags: "b"
})
}) ? u(function() {
var t = i(this);
return "/".concat(t.source, "/", "flags"in t ? t.flags : !o && t instanceof RegExp ? r.call(t) : void 0)
}) : s.name != a && u(function() {
return s.call(this)
})
}
, function(t, e, n) {
"use strict";
n(47)("anchor", function(t) {
return function(e) {
return t(this, "a", "name", e)
}
})
}
, function(t, e, n) {
"use strict";
n(47)("big", function(t) {
return function() {
return t(this, "big", "", "")
}
})
}
, function(t, e, n) {
"use strict";
n(47)("blink", function(t) {
return function() {
return t(this, "blink", "", "")
}
})
}
, function(t, e, n) {
"use strict";
n(47)("bold", function(t) {
return function() {
return t(this, "b", "", "")
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(325)(!1);
i(i.P, "String", {
codePointAt: function(t) {
return r(this, t)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(26)
, o = n(326)
, a = "endsWith"
, s = ""[a];
i(i.P + i.F * n(312)(a), "String", {
endsWith: function(t) {
var e = o(this, t, a)
, n = arguments.length > 1 ? arguments[1] : void 0
, i = r(e.length)
, u = void 0 === n ? i : Math.min(r(n), i)
, c = String(t);
return s ? s.call(e, c, u) : e.slice(u - c.length, u) === c
}
})
}
, function(t, e, n) {
"use strict";
n(47)("fixed", function(t) {
return function() {
return t(this, "tt", "", "")
}
})
}
, function(t, e, n) {
"use strict";
n(47)("fontcolor", function(t) {
return function(e) {
return t(this, "font", "color", e)
}
})
}
, function(t, e, n) {
"use strict";
n(47)("fontsize", function(t) {
return function(e) {
return t(this, "font", "size", e)
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(112)
, o = String.fromCharCode
, a = String.fromCodePoint;
i(i.S + i.F * (!!a && 1 != a.length), "String", {
fromCodePoint: function(t) {
for (var e, n = [], i = arguments.length, a = 0; i > a; ) {
if (e = +arguments[a++],
r(e, 1114111) !== e)
throw RangeError(e + " is not a valid code point");
n.push(e < 65536 ? o(e) : o(((e -= 65536) >> 10) + 55296, e % 1024 + 56320))
}
return n.join("")
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(326)
, o = "includes";
i(i.P + i.F * n(312)(o), "String", {
includes: function(t) {
return !!~r(this, t, o).indexOf(t, arguments.length > 1 ? arguments[1] : void 0)
}
})
}
, function(t, e, n) {
"use strict";
n(47)("italics", function(t) {
return function() {
return t(this, "i", "", "")
}
})
}
, function(t, e, n) {
"use strict";
var i = n(325)(!0);
n(318)(String, "String", function(t) {
this._t = String(t),
this._i = 0
}, function() {
var t, e = this._t, n = this._i;
return n >= e.length ? {
value: void 0,
done: !0
} : (t = i(e, n),
this._i += t.length,
{
value: t,
done: !1
})
})
}
, function(t, e, n) {
"use strict";
n(47)("link", function(t) {
return function(e) {
return t(this, "a", "href", e)
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(48)
, o = n(26);
i(i.S, "String", {
raw: function(t) {
for (var e = r(t.raw), n = o(e.length), i = arguments.length, a = [], s = 0; n > s; )
a.push(String(e[s++])),
s < i && a.push(String(arguments[s]));
return a.join("")
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.P, "String", {
repeat: n(327)
})
}
, function(t, e, n) {
"use strict";
n(47)("small", function(t) {
return function() {
return t(this, "small", "", "")
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(26)
, o = n(326)
, a = "startsWith"
, s = ""[a];
i(i.P + i.F * n(312)(a), "String", {
startsWith: function(t) {
var e = o(this, t, a)
, n = r(Math.min(arguments.length > 1 ? arguments[1] : void 0, e.length))
, i = String(t);
return s ? s.call(e, i, n) : e.slice(n, n + i.length) === i
}
})
}
, function(t, e, n) {
"use strict";
n(47)("strike", function(t) {
return function() {
return t(this, "strike", "", "")
}
})
}
, function(t, e, n) {
"use strict";
n(47)("sub", function(t) {
return function() {
return t(this, "sub", "", "")
}
})
}
, function(t, e, n) {
"use strict";
n(47)("sup", function(t) {
return function() {
return t(this, "sup", "", "")
}
})
}
, function(t, e, n) {
"use strict";
n(134)("trim", function(t) {
return function() {
return t(this, 3)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(13)
, r = n(35)
, o = n(21)
, a = n(3)
, s = n(46)
, u = n(88).KEY
, c = n(15)
, l = n(213)
, f = n(133)
, h = n(113)
, d = n(19)
, p = n(487)
, v = n(331)
, g = n(523)
, m = n(522)
, y = n(316)
, b = n(10)
, w = n(48)
, x = n(70)
, T = n(89)
, S = n(107)
, _ = n(479)
, C = n(54)
, E = n(22)
, D = n(109)
, k = C.f
, A = E.f
, M = _.f
, O = i.Symbol
, N = i.JSON
, j = N && N.stringify
, I = "prototype"
, L = d("_hidden")
, F = d("toPrimitive")
, P = {}.propertyIsEnumerable
, R = l("symbol-registry")
, z = l("symbols")
, B = l("op-symbols")
, H = Object[I]
, U = "function" == typeof O
, $ = i.QObject
, q = !$ || !$[I] || !$[I].findChild
, W = o && c(function() {
return 7 != S(A({}, "a", {
get: function() {
return A(this, "a", {
value: 7
}).a
}
})).a
}) ? function(t, e, n) {
var i = k(H, e);
i && delete H[e],
A(t, e, n),
i && t !== H && A(H, e, i)
}
: A
, V = function(t) {
var e = z[t] = S(O[I]);
return e._k = t,
e
}
, Y = U && "symbol" == typeof O.iterator ? function(t) {
return "symbol" == typeof t
}
: function(t) {
return t instanceof O
}
, X = function(t, e, n) {
return t === H && X(B, e, n),
b(t),
e = x(e, !0),
b(n),
r(z, e) ? (n.enumerable ? (r(t, L) && t[L][e] && (t[L][e] = !1),
n = S(n, {
enumerable: T(0, !1)
})) : (r(t, L) || A(t, L, T(1, {})),
t[L][e] = !0),
W(t, e, n)) : A(t, e, n)
}
, G = function(t, e) {
b(t);
for (var n, i = m(e = w(e)), r = 0, o = i.length; o > r; )
X(t, n = i[r++], e[n]);
return t
}
, K = function(t, e) {
return void 0 === e ? S(t) : G(S(t), e)
}
, Z = function(t) {
var e = P.call(this, t = x(t, !0));
return !(this === H && r(z, t) && !r(B, t)) && (!(e || !r(this, t) || !r(z, t) || r(this, L) && this[L][t]) || e)
}
, Q = function(t, e) {
if (t = w(t),
e = x(e, !0),
t !== H || !r(z, e) || r(B, e)) {
var n = k(t, e);
return !n || !r(z, e) || r(t, L) && t[L][e] || (n.enumerable = !0),
n
}
}
, J = function(t) {
for (var e, n = M(w(t)), i = [], o = 0; n.length > o; )
r(z, e = n[o++]) || e == L || e == u || i.push(e);
return i
}
, tt = function(t) {
for (var e, n = t === H, i = M(n ? B : w(t)), o = [], a = 0; i.length > a; )
!r(z, e = i[a++]) || n && !r(H, e) || o.push(z[e]);
return o
}
;
U || (O = function() {
if (this instanceof O)
throw TypeError("Symbol is not a constructor!");
var t = h(arguments.length > 0 ? arguments[0] : void 0)
, e = function(n) {
this === H && e.call(B, n),
r(this, L) && r(this[L], t) && (this[L][t] = !1),
W(this, t, T(1, n))
}
;
return o && q && W(H, t, {
configurable: !0,
set: e
}),
V(t)
}
,
s(O[I], "toString", function() {
return this._k
}),
C.f = Q,
E.f = X,
n(108).f = _.f = J,
n(165).f = Z,
n(212).f = tt,
o && !n(106) && s(H, "propertyIsEnumerable", Z, !0),
p.f = function(t) {
return V(d(t))
}
),
a(a.G + a.W + a.F * !U, {
Symbol: O
});
for (var et = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), nt = 0; et.length > nt; )
d(et[nt++]);
for (var et = D(d.store), nt = 0; et.length > nt; )
v(et[nt++]);
a(a.S + a.F * !U, "Symbol", {
"for": function(t) {
return r(R, t += "") ? R[t] : R[t] = O(t)
},
keyFor: function(t) {
if (Y(t))
return g(R, t);
throw TypeError(t + " is not a symbol!")
},
useSetter: function() {
q = !0
},
useSimple: function() {
q = !1
}
}),
a(a.S + a.F * !U, "Object", {
create: K,
defineProperty: X,
defineProperties: G,
getOwnPropertyDescriptor: Q,
getOwnPropertyNames: J,
getOwnPropertySymbols: tt
}),
N && a(a.S + a.F * (!U || c(function() {
var t = O();
return "[null]" != j([t]) || "{}" != j({
a: t
}) || "{}" != j(Object(t))
})), "JSON", {
stringify: function(t) {
if (void 0 !== t && !Y(t)) {
for (var e, n, i = [t], r = 1; arguments.length > r; )
i.push(arguments[r++]);
return e = i[1],
"function" == typeof e && (n = e),
!n && y(e) || (e = function(t, e) {
if (n && (e = n.call(this, t, e)),
!Y(e))
return e
}
),
i[1] = e,
j.apply(N, i)
}
}
}),
O[I][F] || n(45)(O[I], F, O[I].valueOf),
f(O, "Symbol"),
f(Math, "Math", !0),
f(i.JSON, "JSON", !0)
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(214)
, o = n(330)
, a = n(10)
, s = n(112)
, u = n(26)
, c = n(17)
, l = n(13).ArrayBuffer
, f = n(324)
, h = o.ArrayBuffer
, d = o.DataView
, p = r.ABV && l.isView
, v = h.prototype.slice
, g = r.VIEW
, m = "ArrayBuffer";
i(i.G + i.W + i.F * (l !== h), {
ArrayBuffer: h
}),
i(i.S + i.F * !r.CONSTR, m, {
isView: function(t) {
return p && p(t) || c(t) && g in t
}
}),
i(i.P + i.U + i.F * n(15)(function() {
return !new h(2).slice(1, void 0).byteLength
}), m, {
slice: function(t, e) {
if (void 0 !== v && void 0 === e)
return v.call(a(this), t);
for (var n = a(this).byteLength, i = s(t, n), r = s(void 0 === e ? n : e, n), o = new (f(this, h))(u(r - i)), c = new d(this), l = new d(o), p = 0; i < r; )
l.setUint8(p++, c.getUint8(i++));
return o
}
}),
n(111)(m)
}
, function(t, e, n) {
var i = n(3);
i(i.G + i.W + i.F * !n(214).ABV, {
DataView: n(330).DataView
})
}
, function(t, e, n) {
n(80)("Float32", 4, function(t) {
return function(e, n, i) {
return t(this, e, n, i)
}
})
}
, function(t, e, n) {
n(80)("Float64", 8, function(t) {
return function(e, n, i) {
return t(this, e, n, i)
}
})
}
, function(t, e, n) {
n(80)("Int16", 2, function(t) {
return function(e, n, i) {
return t(this, e, n, i)
}
})
}
, function(t, e, n) {
n(80)("Int32", 4, function(t) {
return function(e, n, i) {
return t(this, e, n, i)
}
})
}
, function(t, e, n) {
n(80)("Int8", 1, function(t) {
return function(e, n, i) {
return t(this, e, n, i)
}
})
}
, function(t, e, n) {
n(80)("Uint16", 2, function(t) {
return function(e, n, i) {
return t(this, e, n, i)
}
})
}
, function(t, e, n) {
n(80)("Uint32", 4, function(t) {
return function(e, n, i) {
return t(this, e, n, i)
}
})
}
, function(t, e, n) {
n(80)("Uint8", 1, function(t) {
return function(e, n, i) {
return t(this, e, n, i)
}
})
}
, function(t, e, n) {
n(80)("Uint8", 1, function(t) {
return function(e, n, i) {
return t(this, e, n, i)
}
}, !0)
}
, function(t, e, n) {
"use strict";
var i = n(471);
n(205)("WeakSet", function(t) {
return function() {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}, {
add: function(t) {
return i.def(this, t, !0)
}
}, i, !1, !0)
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(204)(!0);
i(i.P, "Array", {
includes: function(t) {
return r(this, t, arguments.length > 1 ? arguments[1] : void 0)
}
}),
n(130)("includes")
}
, function(t, e, n) {
var i = n(3)
, r = n(321)()
, o = n(13).process
, a = "process" == n(59)(o);
i(i.G, {
asap: function(t) {
var e = a && o.domain;
r(e ? e.bind(t) : t)
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(59);
i(i.S, "Error", {
isError: function(t) {
return "Error" === r(t)
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.P + i.R, "Map", {
toJSON: n(470)("Map")
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Math", {
iaddh: function(t, e, n, i) {
var r = t >>> 0
, o = e >>> 0
, a = n >>> 0;
return o + (i >>> 0) + ((r & a | (r | a) & ~(r + a >>> 0)) >>> 31) | 0
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Math", {
imulh: function(t, e) {
var n = 65535
, i = +t
, r = +e
, o = i & n
, a = r & n
, s = i >> 16
, u = r >> 16
, c = (s * a >>> 0) + (o * a >>> 16);
return s * u + (c >> 16) + ((o * u >>> 0) + (c & n) >> 16)
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Math", {
isubh: function(t, e, n, i) {
var r = t >>> 0
, o = e >>> 0
, a = n >>> 0;
return o - (i >>> 0) - ((~r & a | ~(r ^ a) & r - a >>> 0) >>> 31) | 0
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.S, "Math", {
umulh: function(t, e) {
var n = 65535
, i = +t
, r = +e
, o = i & n
, a = r & n
, s = i >>> 16
, u = r >>> 16
, c = (s * a >>> 0) + (o * a >>> 16);
return s * u + (c >>> 16) + ((o * u >>> 0) + (c & n) >>> 16)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(30)
, o = n(44)
, a = n(22);
n(21) && i(i.P + n(211), "Object", {
__defineGetter__: function(t, e) {
a.f(r(this), t, {
get: o(e),
enumerable: !0,
configurable: !0
})
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(30)
, o = n(44)
, a = n(22);
n(21) && i(i.P + n(211), "Object", {
__defineSetter__: function(t, e) {
a.f(r(this), t, {
set: o(e),
enumerable: !0,
configurable: !0
})
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(481)(!0);
i(i.S, "Object", {
entries: function(t) {
return r(t)
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(482)
, o = n(48)
, a = n(54)
, s = n(309);
i(i.S, "Object", {
getOwnPropertyDescriptors: function(t) {
for (var e, n = o(t), i = a.f, u = r(n), c = {}, l = 0; u.length > l; )
s(c, e = u[l++], i(n, e));
return c
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(30)
, o = n(70)
, a = n(55)
, s = n(54).f;
n(21) && i(i.P + n(211), "Object", {
__lookupGetter__: function(t) {
var e, n = r(this), i = o(t, !0);
do
if (e = s(n, i))
return e.get;
while (n = a(n))
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(30)
, o = n(70)
, a = n(55)
, s = n(54).f;
n(21) && i(i.P + n(211), "Object", {
__lookupSetter__: function(t) {
var e, n = r(this), i = o(t, !0);
do
if (e = s(n, i))
return e.set;
while (n = a(n))
}
})
}
, function(t, e, n) {
var i = n(3)
, r = n(481)(!1);
i(i.S, "Object", {
values: function(t) {
return r(t)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(13)
, o = n(77)
, a = n(321)()
, s = n(19)("observable")
, u = n(44)
, c = n(10)
, l = n(105)
, f = n(110)
, h = n(45)
, d = n(131)
, p = d.RETURN
, v = function(t) {
return null == t ? void 0 : u(t)
}
, g = function(t) {
var e = t._c;
e && (t._c = void 0,
e())
}
, m = function(t) {
return void 0 === t._o
}
, y = function(t) {
m(t) || (t._o = void 0,
g(t))
}
, b = function(t, e) {
c(t),
this._c = void 0,
this._o = t,
t = new w(this);
try {
var n = e(t)
, i = n;
null != n && ("function" == typeof n.unsubscribe ? n = function() {
i.unsubscribe()
}
: u(n),
this._c = n)
} catch (r) {
return void t.error(r)
}
m(this) && g(this)
}
;
b.prototype = f({}, {
unsubscribe: function() {
y(this)
}
});
var w = function(t) {
this._s = t
}
;
w.prototype = f({}, {
next: function(t) {
var e = this._s;
if (!m(e)) {
var n = e._o;
try {
var i = v(n.next);
if (i)
return i.call(n, t)
} catch (r) {
try {
y(e)
} finally {
throw r
}
}
}
},
error: function(t) {
var e = this._s;
if (m(e))
throw t;
var n = e._o;
e._o = void 0;
try {
var i = v(n.error);
if (!i)
throw t;
t = i.call(n, t)
} catch (r) {
try {
g(e)
} finally {
throw r
}
}
return g(e),
t
},
complete: function(t) {
var e = this._s;
if (!m(e)) {
var n = e._o;
e._o = void 0;
try {
var i = v(n.complete);
t = i ? i.call(n, t) : void 0
} catch (r) {
try {
g(e)
} finally {
throw r
}
}
return g(e),
t
}
}
});
var x = function(t) {
l(this, x, "Observable", "_f")._f = u(t)
}
;
f(x.prototype, {
subscribe: function(t) {
return new b(t,this._f)
},
forEach: function(t) {
var e = this;
return new (o.Promise || r.Promise)(function(n, i) {
u(t);
var r = e.subscribe({
next: function(e) {
try {
return t(e)
} catch (n) {
i(n),
r.unsubscribe()
}
},
error: i,
complete: n
})
}
)
}
}),
f(x, {
from: function(t) {
var e = "function" == typeof this ? this : x
, n = v(c(t)[s]);
if (n) {
var i = c(n.call(t));
return i.constructor === e ? i : new e(function(t) {
return i.subscribe(t)
}
)
}
return new e(function(e) {
var n = !1;
return a(function() {
if (!n) {
try {
if (d(t, !1, function(t) {
if (e.next(t),
n)
return p
}) === p)
return
} catch (i) {
if (n)
throw i;
return void e.error(i)
}
e.complete()
}
}),
function() {
n = !0
}
}
)
},
of: function() {
for (var t = 0, e = arguments.length, n = Array(e); t < e; )
n[t] = arguments[t++];
return new ("function" == typeof this ? this : x)(function(t) {
var e = !1;
return a(function() {
if (!e) {
for (var i = 0; i < n.length; ++i)
if (t.next(n[i]),
e)
return;
t.complete()
}
}),
function() {
e = !0
}
}
)
}
}),
h(x.prototype, s, function() {
return this
}),
i(i.G, {
Observable: x
}),
n(111)("Observable")
}
, function(t, e, n) {
var i = n(79)
, r = n(10)
, o = i.key
, a = i.set;
i.exp({
defineMetadata: function(t, e, n, i) {
a(t, e, r(n), o(i))
}
})
}
, function(t, e, n) {
var i = n(79)
, r = n(10)
, o = i.key
, a = i.map
, s = i.store;
i.exp({
deleteMetadata: function(t, e) {
var n = arguments.length < 3 ? void 0 : o(arguments[2])
, i = a(r(e), n, !1);
if (void 0 === i || !i["delete"](t))
return !1;
if (i.size)
return !0;
var u = s.get(e);
return u["delete"](n),
!!u.size || s["delete"](e)
}
})
}
, function(t, e, n) {
var i = n(490)
, r = n(466)
, o = n(79)
, a = n(10)
, s = n(55)
, u = o.keys
, c = o.key
, l = function(t, e) {
var n = u(t, e)
, o = s(t);
if (null === o)
return n;
var a = l(o, e);
return a.length ? n.length ? r(new i(n.concat(a))) : a : n
}
;
o.exp({
getMetadataKeys: function(t) {
return l(a(t), arguments.length < 2 ? void 0 : c(arguments[1]))
}
})
}
, function(t, e, n) {
var i = n(79)
, r = n(10)
, o = n(55)
, a = i.has
, s = i.get
, u = i.key
, c = function(t, e, n) {
var i = a(t, e, n);
if (i)
return s(t, e, n);
var r = o(e);
return null !== r ? c(t, r, n) : void 0
}
;
i.exp({
getMetadata: function(t, e) {
return c(t, r(e), arguments.length < 3 ? void 0 : u(arguments[2]))
}
})
}
, function(t, e, n) {
var i = n(79)
, r = n(10)
, o = i.keys
, a = i.key;
i.exp({
getOwnMetadataKeys: function(t) {
return o(r(t), arguments.length < 2 ? void 0 : a(arguments[1]))
}
})
}
, function(t, e, n) {
var i = n(79)
, r = n(10)
, o = i.get
, a = i.key;
i.exp({
getOwnMetadata: function(t, e) {
return o(t, r(e), arguments.length < 3 ? void 0 : a(arguments[2]))
}
})
}
, function(t, e, n) {
var i = n(79)
, r = n(10)
, o = n(55)
, a = i.has
, s = i.key
, u = function(t, e, n) {
var i = a(t, e, n);
if (i)
return !0;
var r = o(e);
return null !== r && u(t, r, n)
}
;
i.exp({
hasMetadata: function(t, e) {
return u(t, r(e), arguments.length < 3 ? void 0 : s(arguments[2]))
}
})
}
, function(t, e, n) {
var i = n(79)
, r = n(10)
, o = i.has
, a = i.key;
i.exp({
hasOwnMetadata: function(t, e) {
return o(t, r(e), arguments.length < 3 ? void 0 : a(arguments[2]))
}
})
}
, function(t, e, n) {
var i = n(79)
, r = n(10)
, o = n(44)
, a = i.key
, s = i.set;
i.exp({
metadata: function(t, e) {
return function(n, i) {
s(t, e, (void 0 !== i ? r : o)(n), a(i))
}
}
})
}
, function(t, e, n) {
var i = n(3);
i(i.P + i.R, "Set", {
toJSON: n(470)("Set")
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(325)(!0);
i(i.P, "String", {
at: function(t) {
return r(this, t)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(60)
, o = n(26)
, a = n(209)
, s = n(207)
, u = RegExp.prototype
, c = function(t, e) {
this._r = t,
this._s = e
}
;
n(317)(c, "RegExp String", function() {
var t = this._r.exec(this._s);
return {
value: t,
done: null === t
}
}),
i(i.P, "String", {
matchAll: function(t) {
if (r(this),
!a(t))
throw TypeError(t + " is not a regexp!");
var e = String(this)
, n = "flags"in u ? String(t.flags) : s.call(t)
, i = new RegExp(t.source,~n.indexOf("g") ? n : "g" + n);
return i.lastIndex = o(t.lastIndex),
new c(i,e)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(486);
i(i.P, "String", {
padEnd: function(t) {
return r(this, t, arguments.length > 1 ? arguments[1] : void 0, !1)
}
})
}
, function(t, e, n) {
"use strict";
var i = n(3)
, r = n(486);
i(i.P, "String", {
padStart: function(t) {
return r(this, t, arguments.length > 1 ? arguments[1] : void 0, !0)
}
})
}
, function(t, e, n) {
"use strict";
n(134)("trimLeft", function(t) {
return function() {
return t(this, 1)
}
}, "trimStart")
}
, function(t, e, n) {
"use strict";
n(134)("trimRight", function(t) {
return function() {
return t(this, 2)
}
}, "trimEnd")
}
, function(t, e, n) {
n(331)("asyncIterator")
}
, function(t, e, n) {
n(331)("observable")
}
, function(t, e, n) {
var i = n(3);
i(i.S, "System", {
global: n(13)
})
}
, function(t, e, n) {
for (var i = n(333), r = n(46), o = n(13), a = n(45), s = n(132), u = n(19), c = u("iterator"), l = u("toStringTag"), f = s.Array, h = ["NodeList", "DOMTokenList", "MediaList", "StyleSheetList", "CSSRuleList"], d = 0; d < 5; d++) {
var p, v = h[d], g = o[v], m = g && g.prototype;
if (m) {
m[c] || a(m, c, f),
m[l] || a(m, l, v),
s[v] = f;
for (p in i)
m[p] || r(m, p, i[p], !0)
}
}
}
, function(t, e, n) {
var i = n(3)
, r = n(329);
i(i.G + i.B, {
setImmediate: r.set,
clearImmediate: r.clear
})
}
, function(t, e, n) {
var i = n(13)
, r = n(3)
, o = n(208)
, a = n(524)
, s = i.navigator
, u = !!s && /MSIE .\./.test(s.userAgent)
, c = function(t) {
return u ? function(e, n) {
return t(o(a, [].slice.call(arguments, 2), "function" == typeof e ? e : Function(e)), n)
}
: t
}
;
r(r.G + r.B + r.F * u, {
setTimeout: c(i.setTimeout),
setInterval: c(i.setInterval)
})
}
, function(t, e, n) {
n(647),
n(586),
n(588),
n(587),
n(590),
n(592),
n(597),
n(591),
n(589),
n(599),
n(598),
n(594),
n(595),
n(593),
n(585),
n(596),
n(600),
n(601),
n(553),
n(555),
n(554),
n(603),
n(602),
n(573),
n(583),
n(584),
n(574),
n(575),
n(576),
n(577),
n(578),
n(579),
n(580),
n(581),
n(582),
n(556),
n(557),
n(558),
n(559),
n(560),
n(561),
n(562),
n(563),
n(564),
n(565),
n(566),
n(567),
n(568),
n(569),
n(570),
n(571),
n(572),
n(634),
n(639),
n(646),
n(637),
n(629),
n(630),
n(635),
n(640),
n(642),
n(625),
n(626),
n(627),
n(628),
n(631),
n(632),
n(633),
n(636),
n(638),
n(641),
n(643),
n(644),
n(645),
n(548),
n(550),
n(549),
n(552),
n(551),
n(537),
n(535),
n(541),
n(538),
n(544),
n(546),
n(534),
n(540),
n(531),
n(545),
n(529),
n(543),
n(542),
n(536),
n(539),
n(528),
n(530),
n(533),
n(532),
n(547),
n(333),
n(619),
n(624),
n(489),
n(620),
n(621),
n(622),
n(623),
n(604),
n(488),
n(490),
n(491),
n(659),
n(648),
n(649),
n(654),
n(657),
n(658),
n(652),
n(655),
n(653),
n(656),
n(650),
n(651),
n(605),
n(606),
n(607),
n(608),
n(609),
n(612),
n(610),
n(611),
n(613),
n(614),
n(615),
n(616),
n(618),
n(617),
n(660),
n(686),
n(689),
n(688),
n(690),
n(691),
n(687),
n(692),
n(693),
n(671),
n(674),
n(670),
n(668),
n(669),
n(672),
n(673),
n(663),
n(685),
n(694),
n(662),
n(664),
n(666),
n(665),
n(667),
n(676),
n(677),
n(679),
n(678),
n(681),
n(680),
n(682),
n(683),
n(684),
n(661),
n(675),
n(697),
n(696),
n(695),
t.exports = n(77)
}
, function(t, e, n) {
(function(e, n) {
!function(e) {
"use strict";
function i(t, e, n, i) {
var r = Object.create((e || o).prototype)
, a = new p(i || []);
return r._invoke = f(t, n, a),
r
}
function r(t, e, n) {
try {
return {
type: "normal",
arg: t.call(e, n)
}
} catch (i) {
return {
type: "throw",
arg: i
}
}
}
function o() {}
function a() {}
function s() {}
function u(t) {
["next", "throw", "return"].forEach(function(e) {
t[e] = function(t) {
return this._invoke(e, t)
}
})
}
function c(t) {
this.arg = t
}
function l(t) {
function e(n, i, o, a) {
var s = r(t[n], t, i);
if ("throw" !== s.type) {
var u = s.arg
, l = u.value;
return l instanceof c ? Promise.resolve(l.arg).then(function(t) {
e("next", t, o, a)
}, function(t) {
e("throw", t, o, a)
}) : Promise.resolve(l).then(function(t) {
u.value = t,
o(u)
}, a)
}
a(s.arg)
}
function i(t, n) {
function i() {
return new Promise(function(i, r) {
e(t, n, i, r)
}
)
}
return o = o ? o.then(i, i) : i()
}
"object" == typeof n && n.domain && (e = n.domain.bind(e));
var o;
this._invoke = i
}
function f(t, e, n) {
var i = _;
return function(o, a) {
if (i === E)
throw new Error("Generator is already running");
if (i === D) {
if ("throw" === o)
throw a;
return g()
}
for (; ; ) {
var s = n.delegate;
if (s) {
if ("return" === o || "throw" === o && s.iterator[o] === m) {
n.delegate = null ;
var u = s.iterator["return"];
if (u) {
var c = r(u, s.iterator, a);
if ("throw" === c.type) {
o = "throw",
a = c.arg;
continue
}
}
if ("return" === o)
continue
}
var c = r(s.iterator[o], s.iterator, a);
if ("throw" === c.type) {
n.delegate = null ,
o = "throw",
a = c.arg;
continue
}
o = "next",
a = m;
var l = c.arg;
if (!l.done)
return i = C,
l;
n[s.resultName] = l.value,
n.next = s.nextLoc,
n.delegate = null
}
if ("next" === o)
n.sent = n._sent = a;
else if ("throw" === o) {
if (i === _)
throw i = D,
a;
n.dispatchException(a) && (o = "next",
a = m)
} else
"return" === o && n.abrupt("return", a);
i = E;
var c = r(t, e, n);
if ("normal" === c.type) {
i = n.done ? D : C;
var l = {
value: c.arg,
done: n.done
};
if (c.arg !== k)
return l;
n.delegate && "next" === o && (a = m)
} else
"throw" === c.type && (i = D,
o = "throw",
a = c.arg)
}
}
}
function h(t) {
var e = {
tryLoc: t[0]
};
1 in t && (e.catchLoc = t[1]),
2 in t && (e.finallyLoc = t[2],
e.afterLoc = t[3]),
this.tryEntries.push(e)
}
function d(t) {
var e = t.completion || {};
e.type = "normal",
delete e.arg,
t.completion = e
}
function p(t) {
this.tryEntries = [{
tryLoc: "root"
}],
t.forEach(h, this),
this.reset(!0)
}
function v(t) {
if (t) {
var e = t[w];
if (e)
return e.call(t);
if ("function" == typeof t.next)
return t;
if (!isNaN(t.length)) {
var n = -1
, i = function r() {
for (; ++n < t.length; )
if (y.call(t, n))
return r.value = t[n],
r.done = !1,
r;
return r.value = m,
r.done = !0,
r
}
;
return i.next = i
}
}
return {
next: g
}
}
function g() {
return {
value: m,
done: !0
}
}
var m, y = Object.prototype.hasOwnProperty, b = "function" == typeof Symbol ? Symbol : {}, w = b.iterator || "@@iterator", x = b.toStringTag || "@@toStringTag", T = "object" == typeof t, S = e.regeneratorRuntime;
if (S)
return void (T && (t.exports = S));
S = e.regeneratorRuntime = T ? t.exports : {},
S.wrap = i;
var _ = "suspendedStart"
, C = "suspendedYield"
, E = "executing"
, D = "completed"
, k = {}
, A = s.prototype = o.prototype;
a.prototype = A.constructor = s,
s.constructor = a,
s[x] = a.displayName = "GeneratorFunction",
S.isGeneratorFunction = function(t) {
var e = "function" == typeof t && t.constructor;
return !!e && (e === a || "GeneratorFunction" === (e.displayName || e.name))
}
,
S.mark = function(t) {
return Object.setPrototypeOf ? Object.setPrototypeOf(t, s) : (t.__proto__ = s,
x in t || (t[x] = "GeneratorFunction")),
t.prototype = Object.create(A),
t
}
,
S.awrap = function(t) {
return new c(t)
}
,
u(l.prototype),
S.async = function(t, e, n, r) {
var o = new l(i(t, e, n, r));
return S.isGeneratorFunction(e) ? o : o.next().then(function(t) {
return t.done ? t.value : o.next()
})
}
,
u(A),
A[w] = function() {
return this
}
,
A[x] = "Generator",
A.toString = function() {
return "[object Generator]"
}
,
S.keys = function(t) {
var e = [];
for (var n in t)
e.push(n);
return e.reverse(),
function i() {
for (; e.length; ) {
var n = e.pop();
if (n in t)
return i.value = n,
i.done = !1,
i
}
return i.done = !0,
i
}
}
,
S.values = v,
p.prototype = {
constructor: p,
reset: function(t) {
if (this.prev = 0,
this.next = 0,
this.sent = this._sent = m,
this.done = !1,
this.delegate = null ,
this.tryEntries.forEach(d),
!t)
for (var e in this)
"t" === e.charAt(0) && y.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = m)
},
stop: function() {
this.done = !0;
var t = this.tryEntries[0]
, e = t.completion;
if ("throw" === e.type)
throw e.arg;
return this.rval
},
dispatchException: function(t) {
function e(e, i) {
return o.type = "throw",
o.arg = t,
n.next = e,
!!i
}
if (this.done)
throw t;
for (var n = this, i = this.tryEntries.length - 1; i >= 0; --i) {
var r = this.tryEntries[i]
, o = r.completion;
if ("root" === r.tryLoc)
return e("end");
if (r.tryLoc <= this.prev) {
var a = y.call(r, "catchLoc")
, s = y.call(r, "finallyLoc");
if (a && s) {
if (this.prev < r.catchLoc)
return e(r.catchLoc, !0);
if (this.prev < r.finallyLoc)
return e(r.finallyLoc)
} else if (a) {
if (this.prev < r.catchLoc)
return e(r.catchLoc, !0)
} else {
if (!s)
throw new Error("try statement without catch or finally");
if (this.prev < r.finallyLoc)
return e(r.finallyLoc)
}
}
}
},
abrupt: function(t, e) {
for (var n = this.tryEntries.length - 1; n >= 0; --n) {
var i = this.tryEntries[n];
if (i.tryLoc <= this.prev && y.call(i, "finallyLoc") && this.prev < i.finallyLoc) {
var r = i;
break
}
}
r && ("break" === t || "continue" === t) && r.tryLoc <= e && e <= r.finallyLoc && (r = null );
var o = r ? r.completion : {};
return o.type = t,
o.arg = e,
r ? this.next = r.finallyLoc : this.complete(o),
k
},
complete: function(t, e) {
if ("throw" === t.type)
throw t.arg;
"break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = t.arg,
this.next = "end") : "normal" === t.type && e && (this.next = e)
},
finish: function(t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var n = this.tryEntries[e];
if (n.finallyLoc === t)
return this.complete(n.completion, n.afterLoc),
d(n),
k
}
},
"catch": function(t) {
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
var n = this.tryEntries[e];
if (n.tryLoc === t) {
var i = n.completion;
if ("throw" === i.type) {
var r = i.arg;
d(n)
}
return r
}
}
throw new Error("illegal catch attempt")
},
delegateYield: function(t, e, n) {
return this.delegate = {
iterator: v(t),
resultName: e,
nextLoc: n
},
k
}
}
}("object" == typeof e ? e : "object" == typeof window ? window : "object" == typeof self ? self : this)
}
).call(e, function() {
return this
}(), n(504))
}
, function(t, e) {
/*!
* Datepicker for Bootstrap v1.5.0-dev (https://github.com/eternicode/bootstrap-datepicker)
*
* Copyright 2012 Stefan Petre
* Improvements by Andrew Rowls
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/
!function(t, e) {
function n() {
return new Date(Date.UTC.apply(Date, arguments))
}
function i() {
var t = new Date;
return n(t.getFullYear(), t.getMonth(), t.getDate())
}
function r(t, e) {
return t.getUTCFullYear() === e.getUTCFullYear() && t.getUTCMonth() === e.getUTCMonth() && t.getUTCDate() === e.getUTCDate()
}
function o(t) {
return function() {
return this[t].apply(this, arguments)
}
}
function a(e, n) {
function i(t, e) {
return e.toLowerCase()
}
var r, o = t(e).data(), a = {}, s = new RegExp("^" + n.toLowerCase() + "([A-Z])");
n = new RegExp("^" + n.toLowerCase());
for (var u in o)
n.test(u) && (r = u.replace(s, i),
a[r] = o[u]);
return a
}
function s(e) {
var n = {};
if (v[e] || (e = e.split("-")[0],
v[e])) {
var i = v[e];
return t.each(p, function(t, e) {
e in i && (n[e] = i[e])
}),
n
}
}
var u = function() {
var e = {
get: function(t) {
return this.slice(t)[0]
},
contains: function(t) {
for (var e = t && t.valueOf(), n = 0, i = this.length; n < i; n++)
if (this[n].valueOf() === e)
return n;
return -1
},
remove: function(t) {
this.splice(t, 1)
},
replace: function(e) {
e && (t.isArray(e) || (e = [e]),
this.clear(),
this.push.apply(this, e))
},
clear: function() {
this.length = 0
},
copy: function() {
var t = new u;
return t.replace(this),
t
}
};
return function() {
var n = [];
return n.push.apply(n, arguments),
t.extend(n, e),
n
}
}()
, c = function(e, n) {
this._process_options(n),
this.dates = new u,
this.viewDate = this.o.defaultViewDate,
this.focusDate = null ,
this.element = t(e),
this.isInline = !1,
this.isInput = this.element.is("input"),
this.component = !!this.element.hasClass("date") && this.element.find(".add-on, .input-group-addon, .btn"),
this.hasInput = this.component && this.element.find("input").length,
this.component && 0 === this.component.length && (this.component = !1),
this.picker = t(g.template),
this._buildEvents(),
this._attachEvents(),
this.isInline ? this.picker.addClass("datepicker-inline").appendTo(this.element) : this.picker.addClass("datepicker-dropdown dropdown-menu"),
this.o.rtl && this.picker.addClass("datepicker-rtl"),
this.viewMode = this.o.startView,
this.o.calendarWeeks && this.picker.find("tfoot .today, tfoot .clear").attr("colspan", function(t, e) {
return parseInt(e) + 1
}),
this._allow_update = !1,
this.setStartDate(this._o.startDate),
this.setEndDate(this._o.endDate),
this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),
this.setDatesDisabled(this.o.datesDisabled),
this.fillDow(),
this.fillMonths(),
this._allow_update = !0,
this.update(),
this.showMode(),
this.isInline && this.show()
}
;
c.prototype = {
constructor: c,
_process_options: function(r) {
this._o = t.extend({}, this._o, r);
var o = this.o = t.extend({}, this._o)
, a = o.language;
switch (v[a] || (a = a.split("-")[0],
v[a] || (a = d.language)),
o.language = a,
o.startView) {
case 2:
case "decade":
o.startView = 2;
break;
case 1:
case "year":
o.startView = 1;
break;
default:
o.startView = 0
}
switch (o.minViewMode) {
case 1:
case "months":
o.minViewMode = 1;
break;
case 2:
case "years":
o.minViewMode = 2;
break;
default:
o.minViewMode = 0
}
o.startView = Math.max(o.startView, o.minViewMode),
o.multidate !== !0 && (o.multidate = Number(o.multidate) || !1,
o.multidate !== !1 && (o.multidate = Math.max(0, o.multidate))),
o.multidateSeparator = String(o.multidateSeparator),
o.weekStart %= 7,
o.weekEnd = (o.weekStart + 6) % 7;
var s = g.parseFormat(o.format);
if (o.startDate !== -(1 / 0) && (o.startDate ? o.startDate instanceof Date ? o.startDate = this._local_to_utc(this._zero_time(o.startDate)) : o.startDate = g.parseDate(o.startDate, s, o.language) : o.startDate = -(1 / 0)),
o.endDate !== 1 / 0 && (o.endDate ? o.endDate instanceof Date ? o.endDate = this._local_to_utc(this._zero_time(o.endDate)) : o.endDate = g.parseDate(o.endDate, s, o.language) : o.endDate = 1 / 0),
o.daysOfWeekDisabled = o.daysOfWeekDisabled || [],
t.isArray(o.daysOfWeekDisabled) || (o.daysOfWeekDisabled = o.daysOfWeekDisabled.split(/[,\s]*/)),
o.daysOfWeekDisabled = t.map(o.daysOfWeekDisabled, function(t) {
return parseInt(t, 10)
}),
o.datesDisabled = o.datesDisabled || [],
!t.isArray(o.datesDisabled)) {
var u = [];
u.push(g.parseDate(o.datesDisabled, s, o.language)),
o.datesDisabled = u
}
o.datesDisabled = t.map(o.datesDisabled, function(t) {
return g.parseDate(t, s, o.language)
});
var c = String(o.orientation).toLowerCase().split(/\s+/g)
, l = o.orientation.toLowerCase();
if (c = t.grep(c, function(t) {
return /^auto|left|right|top|bottom$/.test(t)
}),
o.orientation = {
x: "auto",
y: "auto"
},
l && "auto" !== l)
if (1 === c.length)
switch (c[0]) {
case "top":
case "bottom":
o.orientation.y = c[0];
break;
case "left":
case "right":
o.orientation.x = c[0]
}
else
l = t.grep(c, function(t) {
return /^left|right$/.test(t)
}),
o.orientation.x = l[0] || "auto",
l = t.grep(c, function(t) {
return /^top|bottom$/.test(t)
}),
o.orientation.y = l[0] || "auto";
if (o.defaultViewDate) {
var f = o.defaultViewDate.year || (new Date).getFullYear()
, h = o.defaultViewDate.month || 0
, p = o.defaultViewDate.day || 1;
o.defaultViewDate = n(f, h, p)
} else
o.defaultViewDate = i();
o.showOnFocus = o.showOnFocus === e || o.showOnFocus
},
_events: [],
_secondaryEvents: [],
_applyEvents: function(t) {
for (var n, i, r, o = 0; o < t.length; o++)
n = t[o][0],
2 === t[o].length ? (i = e,
r = t[o][1]) : 3 === t[o].length && (i = t[o][1],
r = t[o][2]),
n.on(r, i)
},
_unapplyEvents: function(t) {
for (var n, i, r, o = 0; o < t.length; o++)
n = t[o][0],
2 === t[o].length ? (r = e,
i = t[o][1]) : 3 === t[o].length && (r = t[o][1],
i = t[o][2]),
n.off(i, r)
},
_buildEvents: function() {
var e = {
keyup: t.proxy(function(e) {
t.inArray(e.keyCode, [27, 37, 39, 38, 40, 32, 13, 9]) === -1 && this.update()
}, this),
keydown: t.proxy(this.keydown, this),
paste: t.proxy(this.paste, this)
};
this.o.showOnFocus === !0 && (e.focus = t.proxy(this.show, this)),
this.isInput ? this._events = [[this.element, e]] : this.component && this.hasInput ? this._events = [[this.element.find("input"), e], [this.component, {
click: t.proxy(this.show, this)
}]] : this.element.is("div") ? this.isInline = !0 : this._events = [[this.element, {
click: t.proxy(this.show, this)
}]],
this._events.push([this.element, "*", {
blur: t.proxy(function(t) {
this._focused_from = t.target
}, this)
}], [this.element, {
blur: t.proxy(function(t) {
this._focused_from = t.target
}, this)
}]),
this.o.immediateUpdates && this._events.push([this.element, {
"changeYear changeMonth": t.proxy(function(t) {
this.update(t.date)
}, this)
}]),
this._secondaryEvents = [[this.picker, {
click: t.proxy(this.click, this)
}], [t(window), {
resize: t.proxy(this.place, this)
}], [t(document), {
mousedown: t.proxy(function(e) {
this.element.is(e.target) || this.element.find(e.target).length || this.picker.is(e.target) || this.picker.find(e.target).length || t(this.picker).hide()
}, this)
}]]
},
_attachEvents: function() {
this._detachEvents(),
this._applyEvents(this._events)
},
_detachEvents: function() {
this._unapplyEvents(this._events)
},
_attachSecondaryEvents: function() {
this._detachSecondaryEvents(),
this._applyEvents(this._secondaryEvents)
},
_detachSecondaryEvents: function() {
this._unapplyEvents(this._secondaryEvents)
},
_trigger: function(e, n) {
var i = n || this.dates.get(-1)
, r = this._utc_to_local(i);
this.element.trigger({
type: e,
date: r,
dates: t.map(this.dates, this._utc_to_local),
format: t.proxy(function(t, e) {
0 === arguments.length ? (t = this.dates.length - 1,
e = this.o.format) : "string" == typeof t && (e = t,
t = this.dates.length - 1),
e = e || this.o.format;
var n = this.dates.get(t);
return g.formatDate(n, e, this.o.language)
}, this)
})
},
show: function() {
if (!this.element.attr("readonly") || this.o.enableOnReadonly !== !1)
return this.isInline || this.picker.appendTo(this.o.container),
this.place(),
this.picker.show(),
this._attachSecondaryEvents(),
this._trigger("show"),
(window.navigator.msMaxTouchPoints || "ontouchstart"in document) && this.o.disableTouchKeyboard && t(this.element).blur(),
this
},
hide: function() {
return this.isInline ? this : this.picker.is(":visible") ? (this.focusDate = null ,
this.picker.hide().detach(),
this._detachSecondaryEvents(),
this.viewMode = this.o.startView,
this.showMode(),
this.o.forceParse && (this.isInput && this.element.val() || this.hasInput && this.element.find("input").val()) && this.setValue(),
this._trigger("hide"),
this) : this
},
remove: function() {
return this.hide(),
this._detachEvents(),
this._detachSecondaryEvents(),
this.picker.remove(),
delete this.element.data().datepicker,
this.isInput || delete this.element.data().date,
this
},
paste: function(e) {
var n;
if (e.originalEvent.clipboardData && e.originalEvent.clipboardData.types && t.inArray("text/plain", e.originalEvent.clipboardData.types) !== -1)
n = e.originalEvent.clipboardData.getData("text/plain");
else {
if (!window.clipboardData)
return;
n = window.clipboardData.getData("Text")
}
this.setDate(n),
this.update(),
e.preventDefault()
},
_utc_to_local: function(t) {
return t && new Date(t.getTime() + 6e4 * t.getTimezoneOffset())
},
_local_to_utc: function(t) {
return t && new Date(t.getTime() - 6e4 * t.getTimezoneOffset())
},
_zero_time: function(t) {
return t && new Date(t.getFullYear(),t.getMonth(),t.getDate())
},
_zero_utc_time: function(t) {
return t && new Date(Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()))
},
getDates: function() {
return t.map(this.dates, this._utc_to_local)
},
getUTCDates: function() {
return t.map(this.dates, function(t) {
return new Date(t)
})
},
getDate: function() {
return this._utc_to_local(this.getUTCDate())
},
getUTCDate: function() {
var t = this.dates.get(-1);
return "undefined" != typeof t ? new Date(t) : null
},
clearDates: function() {
var t;
this.isInput ? t = this.element : this.component && (t = this.element.find("input")),
t && t.val("").change(),
this.update(),
this._trigger("changeDate"),
this.o.autoclose && this.hide()
},
setDates: function() {
var e = t.isArray(arguments[0]) ? arguments[0] : arguments;
return this.update.apply(this, e),
this._trigger("changeDate"),
this.setValue(),
this
},
setUTCDates: function() {
var e = t.isArray(arguments[0]) ? arguments[0] : arguments;
return this.update.apply(this, t.map(e, this._utc_to_local)),
this._trigger("changeDate"),
this.setValue(),
this
},
setDate: o("setDates"),
setUTCDate: o("setUTCDates"),
setValue: function() {
var t = this.getFormattedDate();
return this.isInput ? this.element.val(t).change() : this.component && this.element.find("input").val(t).change(),
this
},
getFormattedDate: function(n) {
n === e && (n = this.o.format);
var i = this.o.language;
return t.map(this.dates, function(t) {
return g.formatDate(t, n, i)
}).join(this.o.multidateSeparator)
},
setStartDate: function(t) {
return this._process_options({
startDate: t
}),
this.update(),
this.updateNavArrows(),
this
},
setEndDate: function(t) {
return this._process_options({
endDate: t
}),
this.update(),
this.updateNavArrows(),
this
},
setDaysOfWeekDisabled: function(t) {
return this._process_options({
daysOfWeekDisabled: t
}),
this.update(),
this.updateNavArrows(),
this
},
setDatesDisabled: function(t) {
this._process_options({
datesDisabled: t
}),
this.update(),
this.updateNavArrows()
},
place: function() {
if (this.isInline)
return this;
var e = this.picker.outerWidth()
, n = this.picker.outerHeight()
, i = 10
, r = t(this.o.container).width()
, o = t(this.o.container).height()
, a = t(this.o.container).scrollTop()
, s = t(this.o.container).offset()
, u = [];
this.element.parents().each(function() {
var e = t(this).css("z-index");
"auto" !== e && 0 !== e && u.push(parseInt(e))
});
var c = Math.max.apply(Math, u) + 10
, l = this.component ? this.component.parent().offset() : this.element.offset()
, f = this.component ? this.component.outerHeight(!0) : this.element.outerHeight(!1)
, h = this.component ? this.component.outerWidth(!0) : this.element.outerWidth(!1)
, d = l.left - s.left
, p = l.top - s.top;
this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),
"auto" !== this.o.orientation.x ? (this.picker.addClass("datepicker-orient-" + this.o.orientation.x),
"right" === this.o.orientation.x && (d -= e - h)) : l.left < 0 ? (this.picker.addClass("datepicker-orient-left"),
d -= l.left - i) : d + e > r ? (this.picker.addClass("datepicker-orient-right"),
d = l.left + h - e) : this.picker.addClass("datepicker-orient-left");
var v, g, m = this.o.orientation.y;
if ("auto" === m && (v = -a + p - n,
g = a + o - (p + f + n),
m = Math.max(v, g) === g ? "top" : "bottom"),
this.picker.addClass("datepicker-orient-" + m),
"top" === m ? p += f : p -= n + parseInt(this.picker.css("padding-top")),
this.o.rtl) {
var y = r - (d + h);
this.picker.css({
top: p,
right: y,
zIndex: c
})
} else
this.picker.css({
top: p,
left: d,
zIndex: c
});
return this
},
_allow_update: !0,
update: function() {
if (!this._allow_update)
return this;
var e = this.dates.copy()
, n = []
, i = !1;
return arguments.length ? (t.each(arguments, t.proxy(function(t, e) {
e instanceof Date && (e = this._local_to_utc(e)),
n.push(e)
}, this)),
i = !0) : (n = this.isInput ? this.element.val() : this.element.data("date") || this.element.find("input").val(),
n = n && this.o.multidate ? n.split(this.o.multidateSeparator) : [n],
delete this.element.data().date),
n = t.map(n, t.proxy(function(t) {
return g.parseDate(t, this.o.format, this.o.language)
}, this)),
n = t.grep(n, t.proxy(function(t) {
return t < this.o.startDate || t > this.o.endDate || !t
}, this), !0),
this.dates.replace(n),
this.dates.length ? this.viewDate = new Date(this.dates.get(-1)) : this.viewDate < this.o.startDate ? this.viewDate = new Date(this.o.startDate) : this.viewDate > this.o.endDate && (this.viewDate = new Date(this.o.endDate)),
i ? this.setValue() : n.length && String(e) !== String(this.dates) && this._trigger("changeDate"),
!this.dates.length && e.length && this._trigger("clearDate"),
this.fill(),
this
},
fillDow: function() {
var t = this.o.weekStart
, e = "<tr>";
if (this.o.calendarWeeks) {
this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan", function(t, e) {
return parseInt(e) + 1
});
var n = '<th class="cw">&#160;</th>';
e += n
}
for (; t < this.o.weekStart + 7; )
e += '<th class="dow">' + v[this.o.language].daysMin[t++ % 7] + "</th>";
e += "</tr>",
this.picker.find(".datepicker-days thead").append(e)
},
fillMonths: function() {
for (var t = "", e = 0; e < 12; )
t += '<span class="month">' + v[this.o.language].monthsShort[e++] + "</span>";
this.picker.find(".datepicker-months td").html(t)
},
setRange: function(e) {
e && e.length ? this.range = t.map(e, function(t) {
return t.valueOf()
}) : delete this.range,
this.fill()
},
getClassNames: function(e) {
var n = []
, i = this.viewDate.getUTCFullYear()
, o = this.viewDate.getUTCMonth()
, a = new Date;
return e.getUTCFullYear() < i || e.getUTCFullYear() === i && e.getUTCMonth() < o ? n.push("old") : (e.getUTCFullYear() > i || e.getUTCFullYear() === i && e.getUTCMonth() > o) && n.push("new"),
this.focusDate && e.valueOf() === this.focusDate.valueOf() && n.push("focused"),
this.o.todayHighlight && e.getUTCFullYear() === a.getFullYear() && e.getUTCMonth() === a.getMonth() && e.getUTCDate() === a.getDate() && n.push("today"),
this.dates.contains(e) !== -1 && n.push("active"),
(e.valueOf() < this.o.startDate || e.valueOf() > this.o.endDate || t.inArray(e.getUTCDay(), this.o.daysOfWeekDisabled) !== -1) && n.push("disabled"),
this.o.datesDisabled.length > 0 && t.grep(this.o.datesDisabled, function(t) {
return r(e, t)
}).length > 0 && n.push("disabled", "disabled-date"),
this.range && (e > this.range[0] && e < this.range[this.range.length - 1] && n.push("range"),
t.inArray(e.valueOf(), this.range) !== -1 && n.push("selected")),
n
},
fill: function() {
var i, r = new Date(this.viewDate), o = r.getUTCFullYear(), a = r.getUTCMonth(), s = this.o.startDate !== -(1 / 0) ? this.o.startDate.getUTCFullYear() : -(1 / 0), u = this.o.startDate !== -(1 / 0) ? this.o.startDate.getUTCMonth() : -(1 / 0), c = this.o.endDate !== 1 / 0 ? this.o.endDate.getUTCFullYear() : 1 / 0, l = this.o.endDate !== 1 / 0 ? this.o.endDate.getUTCMonth() : 1 / 0, f = v[this.o.language].today || v.en.today || "", h = v[this.o.language].clear || v.en.clear || "";
if (!isNaN(o) && !isNaN(a)) {
this.picker.find(".datepicker-days thead .datepicker-switch").text(v[this.o.language].months[a] + " " + o),
this.picker.find("tfoot .today").text(f).toggle(this.o.todayBtn !== !1),
this.picker.find("tfoot .clear").text(h).toggle(this.o.clearBtn !== !1),
this.updateNavArrows(),
this.fillMonths();
var d = n(o, a - 1, 28)
, p = g.getDaysInMonth(d.getUTCFullYear(), d.getUTCMonth());
d.setUTCDate(p),
d.setUTCDate(p - (d.getUTCDay() - this.o.weekStart + 7) % 7);
var m = new Date(d);
m.setUTCDate(m.getUTCDate() + 42),
m = m.valueOf();
for (var y, b = []; d.valueOf() < m; ) {
if (d.getUTCDay() === this.o.weekStart && (b.push("<tr>"),
this.o.calendarWeeks)) {
var w = new Date(+d + (this.o.weekStart - d.getUTCDay() - 7) % 7 * 864e5)
, x = new Date(Number(w) + (11 - w.getUTCDay()) % 7 * 864e5)
, T = new Date(Number(T = n(x.getUTCFullYear(), 0, 1)) + (11 - T.getUTCDay()) % 7 * 864e5)
, S = (x - T) / 864e5 / 7 + 1;
b.push('<td class="cw">' + S + "</td>")
}
if (y = this.getClassNames(d),
y.push("day"),
this.o.beforeShowDay !== t.noop) {
var _ = this.o.beforeShowDay(this._utc_to_local(d));
_ === e ? _ = {} : "boolean" == typeof _ ? _ = {
enabled: _
} : "string" == typeof _ && (_ = {
classes: _
}),
_.enabled === !1 && y.push("disabled"),
_.classes && (y = y.concat(_.classes.split(/\s+/))),
_.tooltip && (i = _.tooltip)
}
y = t.unique(y),
b.push('<td class="' + y.join(" ") + '"' + (i ? ' title="' + i + '"' : "") + ">" + d.getUTCDate() + "</td>"),
i = null ,
d.getUTCDay() === this.o.weekEnd && b.push("</tr>"),
d.setUTCDate(d.getUTCDate() + 1)
}
this.picker.find(".datepicker-days tbody").empty().append(b.join(""));
var C = this.picker.find(".datepicker-months").find("th:eq(1)").text(o).end().find("span").removeClass("active");
if (t.each(this.dates, function(t, e) {
e.getUTCFullYear() === o && C.eq(e.getUTCMonth()).addClass("active")
}),
(o < s || o > c) && C.addClass("disabled"),
o === s && C.slice(0, u).addClass("disabled"),
o === c && C.slice(l + 1).addClass("disabled"),
this.o.beforeShowMonth !== t.noop) {
var E = this;
t.each(C, function(e, n) {
if (!t(n).hasClass("disabled")) {
var i = new Date(o,e,1)
, r = E.o.beforeShowMonth(i);
r === !1 && t(n).addClass("disabled")
}
})
}
b = "",
o = 10 * parseInt(o / 10, 10);
var D = this.picker.find(".datepicker-years").find("th:eq(1)").text(o + "-" + (o + 9)).end().find("td");
o -= 1;
for (var k, A = t.map(this.dates, function(t) {
return t.getUTCFullYear()
}), M = -1; M < 11; M++)
k = ["year"],
M === -1 ? k.push("old") : 10 === M && k.push("new"),
t.inArray(o, A) !== -1 && k.push("active"),
(o < s || o > c) && k.push("disabled"),
b += '<span class="' + k.join(" ") + '">' + o + "</span>",
o += 1;
D.html(b)
}
},
updateNavArrows: function() {
if (this._allow_update) {
var t = new Date(this.viewDate)
, e = t.getUTCFullYear()
, n = t.getUTCMonth();
switch (this.viewMode) {
case 0:
this.o.startDate !== -(1 / 0) && e <= this.o.startDate.getUTCFullYear() && n <= this.o.startDate.getUTCMonth() ? this.picker.find(".prev").css({
visibility: "hidden"
}) : this.picker.find(".prev").css({
visibility: "visible"
}),
this.o.endDate !== 1 / 0 && e >= this.o.endDate.getUTCFullYear() && n >= this.o.endDate.getUTCMonth() ? this.picker.find(".next").css({
visibility: "hidden"
}) : this.picker.find(".next").css({
visibility: "visible"
});
break;
case 1:
case 2:
this.o.startDate !== -(1 / 0) && e <= this.o.startDate.getUTCFullYear() ? this.picker.find(".prev").css({
visibility: "hidden"
}) : this.picker.find(".prev").css({
visibility: "visible"
}),
this.o.endDate !== 1 / 0 && e >= this.o.endDate.getUTCFullYear() ? this.picker.find(".next").css({
visibility: "hidden"
}) : this.picker.find(".next").css({
visibility: "visible"
})
}
}
},
click: function(e) {
e.preventDefault();
var i, r, o, a = t(e.target).closest("span, td, th");
if (1 === a.length)
switch (a[0].nodeName.toLowerCase()) {
case "th":
switch (a[0].className) {
case "datepicker-switch":
this.showMode(1);
break;
case "prev":
case "next":
var s = g.modes[this.viewMode].navStep * ("prev" === a[0].className ? -1 : 1);
switch (this.viewMode) {
case 0:
this.viewDate = this.moveMonth(this.viewDate, s),
this._trigger("changeMonth", this.viewDate);
break;
case 1:
case 2:
this.viewDate = this.moveYear(this.viewDate, s),
1 === this.viewMode && this._trigger("changeYear", this.viewDate)
}
this.fill();
break;
case "today":
var u = new Date;
u = n(u.getFullYear(), u.getMonth(), u.getDate(), 0, 0, 0),
this.showMode(-2);
var c = "linked" === this.o.todayBtn ? null : "view";
this._setDate(u, c);
break;
case "clear":
this.clearDates()
}
break;
case "span":
a.hasClass("disabled") || (this.viewDate.setUTCDate(1),
a.hasClass("month") ? (o = 1,
r = a.parent().find("span").index(a),
i = this.viewDate.getUTCFullYear(),
this.viewDate.setUTCMonth(r),
this._trigger("changeMonth", this.viewDate),
1 === this.o.minViewMode ? (this._setDate(n(i, r, o)),
this.showMode()) : this.showMode(-1)) : (o = 1,
r = 0,
i = parseInt(a.text(), 10) || 0,
this.viewDate.setUTCFullYear(i),
this._trigger("changeYear", this.viewDate),
2 === this.o.minViewMode && this._setDate(n(i, r, o)),
this.showMode(-1)),
this.fill());
break;
case "td":
a.hasClass("day") && !a.hasClass("disabled") && (o = parseInt(a.text(), 10) || 1,
i = this.viewDate.getUTCFullYear(),
r = this.viewDate.getUTCMonth(),
a.hasClass("old") ? 0 === r ? (r = 11,
i -= 1) : r -= 1 : a.hasClass("new") && (11 === r ? (r = 0,
i += 1) : r += 1),
this._setDate(n(i, r, o)))
}
this.picker.is(":visible") && this._focused_from && t(this._focused_from).focus(),
delete this._focused_from
},
_toggle_multidate: function(t) {
var e = this.dates.contains(t);
if (t || this.dates.clear(),
e !== -1 ? (this.o.multidate === !0 || this.o.multidate > 1 || this.o.toggleActive) && this.dates.remove(e) : this.o.multidate === !1 ? (this.dates.clear(),
this.dates.push(t)) : this.dates.push(t),
"number" == typeof this.o.multidate)
for (; this.dates.length > this.o.multidate; )
this.dates.remove(0)
},
_setDate: function(t, e) {
e && "date" !== e || this._toggle_multidate(t && new Date(t)),
e && "view" !== e || (this.viewDate = t && new Date(t)),
this.fill(),
this.setValue(),
e && "view" === e || this._trigger("changeDate");
var n;
this.isInput ? n = this.element : this.component && (n = this.element.find("input")),
n && n.change(),
!this.o.autoclose || e && "date" !== e || this.hide()
},
moveMonth: function(t, n) {
if (!t)
return e;
if (!n)
return t;
var i, r, o = new Date(t.valueOf()), a = o.getUTCDate(), s = o.getUTCMonth(), u = Math.abs(n);
if (n = n > 0 ? 1 : -1,
1 === u)
r = n === -1 ? function() {
return o.getUTCMonth() === s
}
: function() {
return o.getUTCMonth() !== i
}
,
i = s + n,
o.setUTCMonth(i),
(i < 0 || i > 11) && (i = (i + 12) % 12);
else {
for (var c = 0; c < u; c++)
o = this.moveMonth(o, n);
i = o.getUTCMonth(),
o.setUTCDate(a),
r = function() {
return i !== o.getUTCMonth()
}
}
for (; r(); )
o.setUTCDate(--a),
o.setUTCMonth(i);
return o
},
moveYear: function(t, e) {
return this.moveMonth(t, 12 * e)
},
dateWithinRange: function(t) {
return t >= this.o.startDate && t <= this.o.endDate
},
keydown: function(t) {
if (!this.picker.is(":visible"))
return void (40 !== t.keyCode && 27 !== t.keyCode || this.show());
var e, n, r, o = !1, a = this.focusDate || this.viewDate;
switch (t.keyCode) {
case 27:
this.focusDate ? (this.focusDate = null ,
this.viewDate = this.dates.get(-1) || this.viewDate,
this.fill()) : this.hide(),
t.preventDefault();
break;
case 37:
case 39:
if (!this.o.keyboardNavigation)
break;
e = 37 === t.keyCode ? -1 : 1,
t.ctrlKey ? (n = this.moveYear(this.dates.get(-1) || i(), e),
r = this.moveYear(a, e),
this._trigger("changeYear", this.viewDate)) : t.shiftKey ? (n = this.moveMonth(this.dates.get(-1) || i(), e),
r = this.moveMonth(a, e),
this._trigger("changeMonth", this.viewDate)) : (n = new Date(this.dates.get(-1) || i()),
n.setUTCDate(n.getUTCDate() + e),
r = new Date(a),
r.setUTCDate(a.getUTCDate() + e)),
this.dateWithinRange(r) && (this.focusDate = this.viewDate = r,
this.setValue(),
this.fill(),
t.preventDefault());
break;
case 38:
case 40:
if (!this.o.keyboardNavigation)
break;
e = 38 === t.keyCode ? -1 : 1,
t.ctrlKey ? (n = this.moveYear(this.dates.get(-1) || i(), e),
r = this.moveYear(a, e),
this._trigger("changeYear", this.viewDate)) : t.shiftKey ? (n = this.moveMonth(this.dates.get(-1) || i(), e),
r = this.moveMonth(a, e),
this._trigger("changeMonth", this.viewDate)) : (n = new Date(this.dates.get(-1) || i()),
n.setUTCDate(n.getUTCDate() + 7 * e),
r = new Date(a),
r.setUTCDate(a.getUTCDate() + 7 * e)),
this.dateWithinRange(r) && (this.focusDate = this.viewDate = r,
this.setValue(),
this.fill(),
t.preventDefault());
break;
case 32:
break;
case 13:
a = this.focusDate || this.dates.get(-1) || this.viewDate,
this.o.keyboardNavigation && (this._toggle_multidate(a),
o = !0),
this.focusDate = null ,
this.viewDate = this.dates.get(-1) || this.viewDate,
this.setValue(),
this.fill(),
this.picker.is(":visible") && (t.preventDefault(),
"function" == typeof t.stopPropagation ? t.stopPropagation() : t.cancelBubble = !0,
this.o.autoclose && this.hide());
break;
case 9:
this.focusDate = null ,
this.viewDate = this.dates.get(-1) || this.viewDate,
this.fill(),
this.hide()
}
if (o) {
this.dates.length ? this._trigger("changeDate") : this._trigger("clearDate");
var s;
this.isInput ? s = this.element : this.component && (s = this.element.find("input")),
s && s.change()
}
},
showMode: function(t) {
t && (this.viewMode = Math.max(this.o.minViewMode, Math.min(2, this.viewMode + t))),
this.picker.children("div").hide().filter(".datepicker-" + g.modes[this.viewMode].clsName).css("display", "block"),
this.updateNavArrows()
}
};
var l = function(e, n) {
this.element = t(e),
this.inputs = t.map(n.inputs, function(t) {
return t.jquery ? t[0] : t
}),
delete n.inputs,
h.call(t(this.inputs), n).on("changeDate", t.proxy(this.dateUpdated, this)),
this.pickers = t.map(this.inputs, function(e) {
return t(e).data("datepicker")
}),
this.updateDates()
}
;
l.prototype = {
updateDates: function() {
this.dates = t.map(this.pickers, function(t) {
return t.getUTCDate()
}),
this.updateRanges()
},
updateRanges: function() {
var e = t.map(this.dates, function(t) {
return t.valueOf()
});
t.each(this.pickers, function(t, n) {
n.setRange(e)
})
},
dateUpdated: function(e) {
if (!this.updating) {
this.updating = !0;
var n = t(e.target).data("datepicker")
, i = n.getUTCDate()
, r = t.inArray(e.target, this.inputs)
, o = r - 1
, a = r + 1
, s = this.inputs.length;
if (r !== -1) {
if (t.each(this.pickers, function(t, e) {
e.getUTCDate() || e.setUTCDate(i)
}),
i < this.dates[o])
for (; o >= 0 && i < this.dates[o]; )
this.pickers[o--].setUTCDate(i);
else if (i > this.dates[a])
for (; a < s && i > this.dates[a]; )
this.pickers[a++].setUTCDate(i);
this.updateDates(),
delete this.updating
}
}
},
remove: function() {
t.map(this.pickers, function(t) {
t.remove()
}),
delete this.element.data().datepicker
}
};
var f = t.fn.datepicker
, h = function(n) {
var i = Array.apply(null , arguments);
i.shift();
var r;
return this.each(function() {
var o = t(this)
, u = o.data("datepicker")
, f = "object" == typeof n && n;
if (!u) {
var h = a(this, "date")
, p = t.extend({}, d, h, f)
, v = s(p.language)
, g = t.extend({}, d, v, h, f);
if (o.hasClass("input-daterange") || g.inputs) {
var m = {
inputs: g.inputs || o.find("input").toArray()
};
o.data("datepicker", u = new l(this,t.extend(g, m)))
} else
o.data("datepicker", u = new c(this,g))
}
if ("string" == typeof n && "function" == typeof u[n] && (r = u[n].apply(u, i),
r !== e))
return !1
}),
r !== e ? r : this
}
;
t.fn.datepicker = h;
var d = t.fn.datepicker.defaults = {
autoclose: !1,
beforeShowDay: t.noop,
beforeShowMonth: t.noop,
calendarWeeks: !1,
clearBtn: !1,
toggleActive: !1,
daysOfWeekDisabled: [],
datesDisabled: [],
endDate: 1 / 0,
forceParse: !0,
format: "mm/dd/yyyy",
keyboardNavigation: !0,
language: "en",
minViewMode: 0,
multidate: !1,
multidateSeparator: ",",
orientation: "auto",
rtl: !1,
startDate: -(1 / 0),
startView: 0,
todayBtn: !1,
todayHighlight: !1,
weekStart: 0,
disableTouchKeyboard: !1,
enableOnReadonly: !0,
container: "body",
immediateUpdates: !1
}
, p = t.fn.datepicker.locale_opts = ["format", "rtl", "weekStart"];
t.fn.datepicker.Constructor = c;
var v = t.fn.datepicker.dates = {
en: {
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
today: "Today",
clear: "Clear"
}
}
, g = {
modes: [{
clsName: "days",
navFnc: "Month",
navStep: 1
}, {
clsName: "months",
navFnc: "FullYear",
navStep: 1
}, {
clsName: "years",
navFnc: "FullYear",
navStep: 10
}],
isLeapYear: function(t) {
return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0
},
getDaysInMonth: function(t, e) {
return [31, g.isLeapYear(t) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][e]
},
validParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g,
nonpunctuation: /[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,
parseFormat: function(t) {
var e = t.replace(this.validParts, "\0").split("\0")
, n = t.match(this.validParts);
if (!e || !e.length || !n || 0 === n.length)
throw new Error("Invalid date format.");
return {
separators: e,
parts: n
}
},
parseDate: function(i, r, o) {
function a() {
var t = this.slice(0, h[l].length)
, e = h[l].slice(0, t.length);
return t.toLowerCase() === e.toLowerCase()
}
if (!i)
return e;
if (i instanceof Date)
return i;
"string" == typeof r && (r = g.parseFormat(r));
var s, u, l, f = /([\-+]\d+)([dmwy])/, h = i.match(/([\-+]\d+)([dmwy])/g);
if (/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(i)) {
for (i = new Date,
l = 0; l < h.length; l++)
switch (s = f.exec(h[l]),
u = parseInt(s[1]),
s[2]) {
case "d":
i.setUTCDate(i.getUTCDate() + u);
break;
case "m":
i = c.prototype.moveMonth.call(c.prototype, i, u);
break;
case "w":
i.setUTCDate(i.getUTCDate() + 7 * u);
break;
case "y":
i = c.prototype.moveYear.call(c.prototype, i, u)
}
return n(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate(), 0, 0, 0)
}
h = i && i.match(this.nonpunctuation) || [],
i = new Date;
var d, p, m = {}, y = ["yyyy", "yy", "M", "MM", "m", "mm", "d", "dd"], b = {
yyyy: function(t, e) {
return t.setUTCFullYear(e)
},
yy: function(t, e) {
return t.setUTCFullYear(2e3 + e)
},
m: function(t, e) {
if (isNaN(t))
return t;
for (e -= 1; e < 0; )
e += 12;
for (e %= 12,
t.setUTCMonth(e); t.getUTCMonth() !== e; )
t.setUTCDate(t.getUTCDate() - 1);
return t
},
d: function(t, e) {
return t.setUTCDate(e)
}
};
b.M = b.MM = b.mm = b.m,
b.dd = b.d,
i = n(i.getFullYear(), i.getMonth(), i.getDate(), 0, 0, 0);
var w = r.parts.slice();
if (h.length !== w.length && (w = t(w).filter(function(e, n) {
return t.inArray(n, y) !== -1
}).toArray()),
h.length === w.length) {
var x;
for (l = 0,
x = w.length; l < x; l++) {
if (d = parseInt(h[l], 10),
s = w[l],
isNaN(d))
switch (s) {
case "MM":
p = t(v[o].months).filter(a),
d = t.inArray(p[0], v[o].months) + 1;
break;
case "M":
p = t(v[o].monthsShort).filter(a),
d = t.inArray(p[0], v[o].monthsShort) + 1
}
m[s] = d
}
var T, S;
for (l = 0; l < y.length; l++)
S = y[l],
S in m && !isNaN(m[S]) && (T = new Date(i),
b[S](T, m[S]),
isNaN(T) || (i = T))
}
return i
},
formatDate: function(e, n, i) {
if (!e)
return "";
"string" == typeof n && (n = g.parseFormat(n));
var r = {
d: e.getUTCDate(),
D: v[i].daysShort[e.getUTCDay()],
DD: v[i].days[e.getUTCDay()],
m: e.getUTCMonth() + 1,
M: v[i].monthsShort[e.getUTCMonth()],
MM: v[i].months[e.getUTCMonth()],
yy: e.getUTCFullYear().toString().substring(2),
yyyy: e.getUTCFullYear()
};
r.dd = (r.d < 10 ? "0" : "") + r.d,
r.mm = (r.m < 10 ? "0" : "") + r.m,
e = [];
for (var o = t.extend([], n.separators), a = 0, s = n.parts.length; a <= s; a++)
o.length && e.push(o.shift()),
e.push(r[n.parts[a]]);
return e.join("")
},
headTemplate: '<thead><tr><th class="prev">&#171;</th><th colspan="5" class="datepicker-switch"></th><th class="next">&#187;</th></tr></thead>',
contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>',
footTemplate: '<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'
};
g.template = '<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">' + g.headTemplate + "<tbody></tbody>" + g.footTemplate + '</table></div><div class="datepicker-months"><table class="table-condensed">' + g.headTemplate + g.contTemplate + g.footTemplate + '</table></div><div class="datepicker-years"><table class="table-condensed">' + g.headTemplate + g.contTemplate + g.footTemplate + "</table></div></div>",
t.fn.datepicker.DPGlobal = g,
t.fn.datepicker.noConflict = function() {
return t.fn.datepicker = f,
this
}
,
t.fn.datepicker.version = "1.4.1-dev",
t(document).on("focus.datepicker.data-api click.datepicker.data-api", '[data-provide="datepicker"]', function(e) {
var n = t(this);
n.data("datepicker") || (e.preventDefault(),
h.call(n, "show"))
}),
t(function() {
h.call(t('[data-provide="datepicker-inline"]'))
})
}(window.jQuery)
}
, function(t, e) {
!function(t) {
t.fn.datepicker.dates.cs = {
days: ["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"],
daysShort: ["Ned", "Pon", "Úte", "Stř", "Čtv", "Pát", "Sob"],
daysMin: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
months: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"],
monthsShort: ["Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "Čnc", "Srp", "Zář", "Říj", "Lis", "Pro"],
today: "Dnes",
clear: "Vymazat",
weekStart: 1,
format: "d.m.yyyy"
}
}(jQuery)
}
, function(t, e, n) {
!function(i, r) {
t.exports = e = r(n(91))
}(this, function(t) {
t.lib.Cipher || function(e) {
var n = t
, i = n.lib
, r = i.Base
, o = i.WordArray
, a = i.BufferedBlockAlgorithm
, s = n.enc
, u = (s.Utf8,
s.Base64)
, c = n.algo
, l = c.EvpKDF
, f = i.Cipher = a.extend({
cfg: r.extend(),
createEncryptor: function(t, e) {
return this.create(this._ENC_XFORM_MODE, t, e)
},
createDecryptor: function(t, e) {
return this.create(this._DEC_XFORM_MODE, t, e)
},
init: function(t, e, n) {
this.cfg = this.cfg.extend(n),
this._xformMode = t,
this._key = e,
this.reset()
},
reset: function() {
a.reset.call(this),
this._doReset()
},
process: function(t) {
return this._append(t),
this._process()
},
finalize: function(t) {
t && this._append(t);
var e = this._doFinalize();
return e
},
keySize: 4,
ivSize: 4,
_ENC_XFORM_MODE: 1,
_DEC_XFORM_MODE: 2,
_createHelper: function() {
function t(t) {
return "string" == typeof t ? S : w
}
return function(e) {
return {
encrypt: function(n, i, r) {
return t(i).encrypt(e, n, i, r)
},
decrypt: function(n, i, r) {
return t(i).decrypt(e, n, i, r)
}
}
}
}()
})
, h = (i.StreamCipher = f.extend({
_doFinalize: function() {
var t = this._process(!0);
return t
},
blockSize: 1
}),
n.mode = {})
, d = i.BlockCipherMode = r.extend({
createEncryptor: function(t, e) {
return this.Encryptor.create(t, e)
},
createDecryptor: function(t, e) {
return this.Decryptor.create(t, e)
},
init: function(t, e) {
this._cipher = t,
this._iv = e
}
})
, p = h.CBC = function() {
function t(t, n, i) {
var r = this._iv;
if (r) {
var o = r;
this._iv = e
} else
var o = this._prevBlock;
for (var a = 0; a < i; a++)
t[n + a] ^= o[a]
}
var n = d.extend();
return n.Encryptor = n.extend({
processBlock: function(e, n) {
var i = this._cipher
, r = i.blockSize;
t.call(this, e, n, r),
i.encryptBlock(e, n),
this._prevBlock = e.slice(n, n + r)
}
}),
n.Decryptor = n.extend({
processBlock: function(e, n) {
var i = this._cipher
, r = i.blockSize
, o = e.slice(n, n + r);
i.decryptBlock(e, n),
t.call(this, e, n, r),
this._prevBlock = o
}
}),
n
}()
, v = n.pad = {}
, g = v.Pkcs7 = {
pad: function(t, e) {
for (var n = 4 * e, i = n - t.sigBytes % n, r = i << 24 | i << 16 | i << 8 | i, a = [], s = 0; s < i; s += 4)
a.push(r);
var u = o.create(a, i);
t.concat(u);
},
unpad: function(t) {
var e = 255 & t.words[t.sigBytes - 1 >>> 2];
t.sigBytes -= e
}
}
, m = (i.BlockCipher = f.extend({
cfg: f.cfg.extend({
mode: p,
padding: g
}),
reset: function() {
f.reset.call(this);
var t = this.cfg
, e = t.iv
, n = t.mode;
if (this._xformMode == this._ENC_XFORM_MODE)
var i = n.createEncryptor;
else {
var i = n.createDecryptor;
this._minBufferSize = 1
}
this._mode = i.call(n, this, e && e.words)
},
_doProcessBlock: function(t, e) {
this._mode.processBlock(t, e)
},
_doFinalize: function() {
var t = this.cfg.padding;
if (this._xformMode == this._ENC_XFORM_MODE) {
t.pad(this._data, this.blockSize);
var e = this._process(!0)
} else {
var e = this._process(!0);
t.unpad(e)
}
return e
},
blockSize: 4
}),
i.CipherParams = r.extend({
init: function(t) {
this.mixIn(t)
},
toString: function(t) {
return (t || this.formatter).stringify(this)
}
}))
, y = n.format = {}
, b = y.OpenSSL = {
stringify: function(t) {
var e = t.ciphertext
, n = t.salt;
if (n)
var i = o.create([1398893684, 1701076831]).concat(n).concat(e);
else
var i = e;
return i.toString(u)
},
parse: function(t) {
var e = u.parse(t)
, n = e.words;
if (1398893684 == n[0] && 1701076831 == n[1]) {
var i = o.create(n.slice(2, 4));
n.splice(0, 4),
e.sigBytes -= 16
}
return m.create({
ciphertext: e,
salt: i
})
}
}
, w = i.SerializableCipher = r.extend({
cfg: r.extend({
format: b
}),
encrypt: function(t, e, n, i) {
i = this.cfg.extend(i);
var r = t.createEncryptor(n, i)
, o = r.finalize(e)
, a = r.cfg;
return m.create({
ciphertext: o,
key: n,
iv: a.iv,
algorithm: t,
mode: a.mode,
padding: a.padding,
blockSize: t.blockSize,
formatter: i.format
})
},
decrypt: function(t, e, n, i) {
i = this.cfg.extend(i),
e = this._parse(e, i.format);
var r = t.createDecryptor(n, i).finalize(e.ciphertext);
return r
},
_parse: function(t, e) {
return "string" == typeof t ? e.parse(t, this) : t
}
})
, x = n.kdf = {}
, T = x.OpenSSL = {
execute: function(t, e, n, i) {
i || (i = o.random(8));
var r = l.create({
keySize: e + n
}).compute(t, i)
, a = o.create(r.words.slice(e), 4 * n);
return r.sigBytes = 4 * e,
m.create({
key: r,
iv: a,
salt: i
})
}
}
, S = i.PasswordBasedCipher = w.extend({
cfg: w.cfg.extend({
kdf: T
}),
encrypt: function(t, e, n, i) {
i = this.cfg.extend(i);
var r = i.kdf.execute(n, t.keySize, t.ivSize);
i.iv = r.iv;
var o = w.encrypt.call(this, t, e, r.key, i);
return o.mixIn(r),
o
},
decrypt: function(t, e, n, i) {
i = this.cfg.extend(i),
e = this._parse(e, i.format);
var r = i.kdf.execute(n, t.keySize, t.ivSize, e.salt);
i.iv = r.iv;
var o = w.decrypt.call(this, t, e, r.key, i);
return o
}
})
}()
})
}
, function(t, e, n) {
!function(i, r) {
t.exports = e = r(n(91))
}(this, function(t) {
return function() {
var e = t
, n = e.lib
, i = n.WordArray
, r = e.enc;
r.Base64 = {
stringify: function(t) {
var e = t.words
, n = t.sigBytes
, i = this._map;
t.clamp();
for (var r = [], o = 0; o < n; o += 3)
for (var a = e[o >>> 2] >>> 24 - o % 4 * 8 & 255, s = e[o + 1 >>> 2] >>> 24 - (o + 1) % 4 * 8 & 255, u = e[o + 2 >>> 2] >>> 24 - (o + 2) % 4 * 8 & 255, c = a << 16 | s << 8 | u, l = 0; l < 4 && o + .75 * l < n; l++)
r.push(i.charAt(c >>> 6 * (3 - l) & 63));
var f = i.charAt(64);
if (f)
for (; r.length % 4; )
r.push(f);
return r.join("")
},
parse: function(t) {
var e = t.length
, n = this._map
, r = n.charAt(64);
if (r) {
var o = t.indexOf(r);
o != -1 && (e = o)
}
for (var a = [], s = 0, u = 0; u < e; u++)
if (u % 4) {
var c = n.indexOf(t.charAt(u - 1)) << u % 4 * 2
, l = n.indexOf(t.charAt(u)) >>> 6 - u % 4 * 2
, f = c | l;
a[s >>> 2] |= f << 24 - s % 4 * 8,
s++
}
return i.create(a, s)
},
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
}
}(),
t.enc.Base64
})
}
, function(t, e, n) {
!function(i, r, o) {
t.exports = e = r(n(91), n(706), n(705))
}(this, function(t) {
return function() {
var e = t
, n = e.lib
, i = n.Base
, r = n.WordArray
, o = e.algo
, a = o.MD5
, s = o.EvpKDF = i.extend({
cfg: i.extend({
keySize: 4,
hasher: a,
iterations: 1
}),
init: function(t) {
this.cfg = this.cfg.extend(t)
},
compute: function(t, e) {
for (var n = this.cfg, i = n.hasher.create(), o = r.create(), a = o.words, s = n.keySize, u = n.iterations; a.length < s; ) {
c && i.update(c);
var c = i.update(t).finalize(e);
i.reset();
for (var l = 1; l < u; l++)
c = i.finalize(c),
i.reset();
o.concat(c)
}
return o.sigBytes = 4 * s,
o
}
});
e.EvpKDF = function(t, e, n) {
return s.create(n).compute(t, e)
}
}(),
t.EvpKDF
})
}
, function(t, e, n) {
!function(i, r) {
t.exports = e = r(n(91))
}(this, function(t) {
!function() {
var e = t
, n = e.lib
, i = n.Base
, r = e.enc
, o = r.Utf8
, a = e.algo;
a.HMAC = i.extend({
init: function(t, e) {
t = this._hasher = new t.init,
"string" == typeof e && (e = o.parse(e));
var n = t.blockSize
, i = 4 * n;
e.sigBytes > i && (e = t.finalize(e)),
e.clamp();
for (var r = this._oKey = e.clone(), a = this._iKey = e.clone(), s = r.words, u = a.words, c = 0; c < n; c++)
s[c] ^= 1549556828,
u[c] ^= 909522486;
r.sigBytes = a.sigBytes = i,
this.reset()
},
reset: function() {
var t = this._hasher;
t.reset(),
t.update(this._iKey)
},
update: function(t) {
return this._hasher.update(t),
this
},
finalize: function(t) {
var e = this._hasher
, n = e.finalize(t);
e.reset();
var i = e.finalize(this._oKey.clone().concat(n));
return i
}
})
}()
})
}
, function(t, e, n) {
!function(i, r) {
t.exports = e = r(n(91))
}(this, function(t) {
return function() {
var e = t
, n = e.lib
, i = n.WordArray
, r = n.Hasher
, o = e.algo
, a = []
, s = o.SHA1 = r.extend({
_doReset: function() {
this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
},
_doProcessBlock: function(t, e) {
for (var n = this._hash.words, i = n[0], r = n[1], o = n[2], s = n[3], u = n[4], c = 0; c < 80; c++) {
if (c < 16)
a[c] = 0 | t[e + c];
else {
var l = a[c - 3] ^ a[c - 8] ^ a[c - 14] ^ a[c - 16];
a[c] = l << 1 | l >>> 31
}
var f = (i << 5 | i >>> 27) + u + a[c];
f += c < 20 ? (r & o | ~r & s) + 1518500249 : c < 40 ? (r ^ o ^ s) + 1859775393 : c < 60 ? (r & o | r & s | o & s) - 1894007588 : (r ^ o ^ s) - 899497514,
u = s,
s = o,
o = r << 30 | r >>> 2,
r = i,
i = f
}
n[0] = n[0] + i | 0,
n[1] = n[1] + r | 0,
n[2] = n[2] + o | 0,
n[3] = n[3] + s | 0,
n[4] = n[4] + u | 0
},
_doFinalize: function() {
var t = this._data
, e = t.words
, n = 8 * this._nDataBytes
, i = 8 * t.sigBytes;
return e[i >>> 5] |= 128 << 24 - i % 32,
e[(i + 64 >>> 9 << 4) + 14] = Math.floor(n / 4294967296),
e[(i + 64 >>> 9 << 4) + 15] = n,
t.sigBytes = 4 * e.length,
this._process(),
this._hash
},
clone: function() {
var t = r.clone.call(this);
return t._hash = this._hash.clone(),
t
}
});
e.SHA1 = r._createHelper(s),
e.HmacSHA1 = r._createHmacHelper(s)
}(),
t.SHA1
})
}
, function(t, e, n) {
var i, r;
!function(o, a) {
"use strict";
i = a,
r = "function" == typeof i ? i.call(e, n, e, t) : i,
!(void 0 !== r && (t.exports = r))
}(this, function() {
var t, e, n = Array, i = n.prototype, r = Object, o = r.prototype, a = Function, s = a.prototype, u = String, c = u.prototype, l = Number, f = l.prototype, h = i.slice, d = i.splice, p = i.push, v = i.unshift, g = i.concat, m = i.join, y = s.call, b = s.apply, w = Math.max, x = Math.min, T = o.toString, S = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag, _ = Function.prototype.toString, C = /^\s*class /, E = function(t) {
try {
var e = _.call(t)
, n = e.replace(/\/\/.*\n/g, "")
, i = n.replace(/\/\*[.\s\S]*\*\//g, "")
, r = i.replace(/\n/gm, " ").replace(/ {2}/g, " ");
return C.test(r)
} catch (o) {
return !1
}
}
, D = function(t) {
try {
return !E(t) && (_.call(t),
!0)
} catch (e) {
return !1
}
}
, k = "[object Function]", A = "[object GeneratorFunction]", t = function(t) {
if (!t)
return !1;
if ("function" != typeof t && "object" != typeof t)
return !1;
if (S)
return D(t);
if (E(t))
return !1;
var e = T.call(t);
return e === k || e === A
}
, M = RegExp.prototype.exec, O = function(t) {
try {
return M.call(t),
!0
} catch (e) {
return !1
}
}
, N = "[object RegExp]";
e = function(t) {
return "object" == typeof t && (S ? O(t) : T.call(t) === N)
}
;
var j, I = String.prototype.valueOf, L = function(t) {
try {
return I.call(t),
!0
} catch (e) {
return !1
}
}
, F = "[object String]";
j = function(t) {
return "string" == typeof t || "object" == typeof t && (S ? L(t) : T.call(t) === F)
}
;
var P = r.defineProperty && function() {
try {
var t = {};
r.defineProperty(t, "x", {
enumerable: !1,
value: t
});
for (var e in t)
return !1;
return t.x === t
} catch (n) {
return !1
}
}()
, R = function(t) {
var e;
return e = P ? function(t, e, n, i) {
!i && e in t || r.defineProperty(t, e, {
configurable: !0,
enumerable: !1,
writable: !0,
value: n
})
}
: function(t, e, n, i) {
!i && e in t || (t[e] = n)
}
,
function(n, i, r) {
for (var o in i)
t.call(i, o) && e(n, o, i[o], r)
}
}(o.hasOwnProperty)
, z = function(t) {
var e = typeof t;
return null === t || "object" !== e && "function" !== e
}
, B = l.isNaN || function(t) {
return t !== t
}
, H = {
ToInteger: function(t) {
var e = +t;
return B(e) ? e = 0 : 0 !== e && e !== 1 / 0 && e !== -(1 / 0) && (e = (e > 0 || -1) * Math.floor(Math.abs(e))),
e
},
ToPrimitive: function(e) {
var n, i, r;
if (z(e))
return e;
if (i = e.valueOf,
t(i) && (n = i.call(e),
z(n)))
return n;
if (r = e.toString,
t(r) && (n = r.call(e),
z(n)))
return n;
throw new TypeError
},
ToObject: function(t) {
if (null == t)
throw new TypeError("can't convert " + t + " to object");
return r(t)
},
ToUint32: function(t) {
return t >>> 0
}
}
, U = function() {}
;
R(s, {
bind: function(e) {
var n = this;
if (!t(n))
throw new TypeError("Function.prototype.bind called on incompatible " + n);
for (var i, o = h.call(arguments, 1), s = function() {
if (this instanceof i) {
var t = b.call(n, this, g.call(o, h.call(arguments)));
return r(t) === t ? t : this
}
return b.call(n, e, g.call(o, h.call(arguments)))
}
, u = w(0, n.length - o.length), c = [], l = 0; l < u; l++)
p.call(c, "$" + l);
return i = a("binder", "return function (" + m.call(c, ",") + "){ return binder.apply(this, arguments); }")(s),
n.prototype && (U.prototype = n.prototype,
i.prototype = new U,
U.prototype = null ),
i
}
});
var $ = y.bind(o.hasOwnProperty)
, q = y.bind(o.toString)
, W = y.bind(h)
, V = b.bind(h)
, Y = y.bind(c.slice)
, X = y.bind(c.split)
, G = y.bind(c.indexOf)
, K = y.bind(p)
, Z = y.bind(o.propertyIsEnumerable)
, Q = y.bind(i.sort)
, J = n.isArray || function(t) {
return "[object Array]" === q(t)
}
, tt = 1 !== [].unshift(0);
R(i, {
unshift: function() {
return v.apply(this, arguments),
this.length
}
}, tt),
R(n, {
isArray: J
});
var et = r("a")
, nt = "a" !== et[0] || !(0 in et)
, it = function(t) {
var e = !0
, n = !0
, i = !1;
if (t)
try {
t.call("foo", function(t, n, i) {
"object" != typeof i && (e = !1)
}),
t.call([1], function() {
"use strict";
n = "string" == typeof this
}, "x")
} catch (r) {
i = !0
}
return !!t && !i && e && n
}
;
R(i, {
forEach: function(e) {
var n, i = H.ToObject(this), r = nt && j(this) ? X(this, "") : i, o = -1, a = H.ToUint32(r.length);
if (arguments.length > 1 && (n = arguments[1]),
!t(e))
throw new TypeError("Array.prototype.forEach callback must be a function");
for (; ++o < a; )
o in r && ("undefined" == typeof n ? e(r[o], o, i) : e.call(n, r[o], o, i))
}
}, !it(i.forEach)),
R(i, {
map: function(e) {
var i, r = H.ToObject(this), o = nt && j(this) ? X(this, "") : r, a = H.ToUint32(o.length), s = n(a);
if (arguments.length > 1 && (i = arguments[1]),
!t(e))
throw new TypeError("Array.prototype.map callback must be a function");
for (var u = 0; u < a; u++)
u in o && ("undefined" == typeof i ? s[u] = e(o[u], u, r) : s[u] = e.call(i, o[u], u, r));
return s
}
}, !it(i.map)),
R(i, {
filter: function(e) {
var n, i, r = H.ToObject(this), o = nt && j(this) ? X(this, "") : r, a = H.ToUint32(o.length), s = [];
if (arguments.length > 1 && (i = arguments[1]),
!t(e))
throw new TypeError("Array.prototype.filter callback must be a function");
for (var u = 0; u < a; u++)
u in o && (n = o[u],
("undefined" == typeof i ? e(n, u, r) : e.call(i, n, u, r)) && K(s, n));
return s
}
}, !it(i.filter)),
R(i, {
every: function(e) {
var n, i = H.ToObject(this), r = nt && j(this) ? X(this, "") : i, o = H.ToUint32(r.length);
if (arguments.length > 1 && (n = arguments[1]),
!t(e))
throw new TypeError("Array.prototype.every callback must be a function");
for (var a = 0; a < o; a++)
if (a in r && !("undefined" == typeof n ? e(r[a], a, i) : e.call(n, r[a], a, i)))
return !1;
return !0
}
}, !it(i.every)),
R(i, {
some: function(e) {
var n, i = H.ToObject(this), r = nt && j(this) ? X(this, "") : i, o = H.ToUint32(r.length);
if (arguments.length > 1 && (n = arguments[1]),
!t(e))
throw new TypeError("Array.prototype.some callback must be a function");
for (var a = 0; a < o; a++)
if (a in r && ("undefined" == typeof n ? e(r[a], a, i) : e.call(n, r[a], a, i)))
return !0;
return !1
}
}, !it(i.some));
var rt = !1;
i.reduce && (rt = "object" == typeof i.reduce.call("es5", function(t, e, n, i) {
return i
})),
R(i, {
reduce: function(e) {
var n = H.ToObject(this)
, i = nt && j(this) ? X(this, "") : n
, r = H.ToUint32(i.length);
if (!t(e))
throw new TypeError("Array.prototype.reduce callback must be a function");
if (0 === r && 1 === arguments.length)
throw new TypeError("reduce of empty array with no initial value");
var o, a = 0;
if (arguments.length >= 2)
o = arguments[1];
else
for (; ; ) {
if (a in i) {
o = i[a++];
break
}
if (++a >= r)
throw new TypeError("reduce of empty array with no initial value")
}
for (; a < r; a++)
a in i && (o = e(o, i[a], a, n));
return o
}
}, !rt);
var ot = !1;
i.reduceRight && (ot = "object" == typeof i.reduceRight.call("es5", function(t, e, n, i) {
return i
})),
R(i, {
reduceRight: function(e) {
var n = H.ToObject(this)
, i = nt && j(this) ? X(this, "") : n
, r = H.ToUint32(i.length);
if (!t(e))
throw new TypeError("Array.prototype.reduceRight callback must be a function");
if (0 === r && 1 === arguments.length)
throw new TypeError("reduceRight of empty array with no initial value");
var o, a = r - 1;
if (arguments.length >= 2)
o = arguments[1];
else
for (; ; ) {
if (a in i) {
o = i[a--];
break
}
if (--a < 0)
throw new TypeError("reduceRight of empty array with no initial value")
}
if (a < 0)
return o;
do
a in i && (o = e(o, i[a], a, n));
while (a--);return o
}
}, !ot);
var at = i.indexOf && [0, 1].indexOf(1, 2) !== -1;
R(i, {
indexOf: function(t) {
var e = nt && j(this) ? X(this, "") : H.ToObject(this)
, n = H.ToUint32(e.length);
if (0 === n)
return -1;
var i = 0;
for (arguments.length > 1 && (i = H.ToInteger(arguments[1])),
i = i >= 0 ? i : w(0, n + i); i < n; i++)
if (i in e && e[i] === t)
return i;
return -1
}
}, at);
var st = i.lastIndexOf && [0, 1].lastIndexOf(0, -3) !== -1;
R(i, {
lastIndexOf: function(t) {
var e = nt && j(this) ? X(this, "") : H.ToObject(this)
, n = H.ToUint32(e.length);
if (0 === n)
return -1;
var i = n - 1;
for (arguments.length > 1 && (i = x(i, H.ToInteger(arguments[1]))),
i = i >= 0 ? i : n - Math.abs(i); i >= 0; i--)
if (i in e && t === e[i])
return i;
return -1
}
}, st);
var ut = function() {
var t = [1, 2]
, e = t.splice();
return 2 === t.length && J(e) && 0 === e.length
}();
R(i, {
splice: function(t, e) {
return 0 === arguments.length ? [] : d.apply(this, arguments)
}
}, !ut);
var ct = function() {
var t = {};
return i.splice.call(t, 0, 0, 1),
1 === t.length
}();
R(i, {
splice: function(t, e) {
if (0 === arguments.length)
return [];
var n = arguments;
return this.length = w(H.ToInteger(this.length), 0),
arguments.length > 0 && "number" != typeof e && (n = W(arguments),
n.length < 2 ? K(n, this.length - t) : n[1] = H.ToInteger(e)),
d.apply(this, n)
}
}, !ct);
var lt = function() {
var t = new n(1e5);
return t[8] = "x",
t.splice(1, 1),
7 === t.indexOf("x")
}()
, ft = function() {
var t = 256
, e = [];
return e[t] = "a",
e.splice(t + 1, 0, "b"),
"a" === e[t]
}();
R(i, {
splice: function(t, e) {
for (var n, i = H.ToObject(this), r = [], o = H.ToUint32(i.length), a = H.ToInteger(t), s = a < 0 ? w(o + a, 0) : x(a, o), c = x(w(H.ToInteger(e), 0), o - s), l = 0; l < c; )
n = u(s + l),
$(i, n) && (r[l] = i[n]),
l += 1;
var f, h = W(arguments, 2), d = h.length;
if (d < c) {
l = s;
for (var p = o - c; l < p; )
n = u(l + c),
f = u(l + d),
$(i, n) ? i[f] = i[n] : delete i[f],
l += 1;
l = o;
for (var v = o - c + d; l > v; )
delete i[l - 1],
l -= 1
} else if (d > c)
for (l = o - c; l > s; )
n = u(l + c - 1),
f = u(l + d - 1),
$(i, n) ? i[f] = i[n] : delete i[f],
l -= 1;
l = s;
for (var g = 0; g < h.length; ++g)
i[l] = h[g],
l += 1;
return i.length = o - c + d,
r
}
}, !lt || !ft);
var ht, dt = i.join;
try {
ht = "1,2,3" !== Array.prototype.join.call("123", ",")
} catch (pt) {
ht = !0
}
ht && R(i, {
join: function(t) {
var e = "undefined" == typeof t ? "," : t;
return dt.call(j(this) ? X(this, "") : this, e)
}
}, ht);
var vt = "1,2" !== [1, 2].join(void 0);
vt && R(i, {
join: function(t) {
var e = "undefined" == typeof t ? "," : t;
return dt.call(this, e)
}
}, vt);
var gt = function(t) {
for (var e = H.ToObject(this), n = H.ToUint32(e.length), i = 0; i < arguments.length; )
e[n + i] = arguments[i],
i += 1;
return e.length = n + i,
n + i
}
, mt = function() {
var t = {}
, e = Array.prototype.push.call(t, void 0);
return 1 !== e || 1 !== t.length || "undefined" != typeof t[0] || !$(t, 0)
}();
R(i, {
push: function(t) {
return J(this) ? p.apply(this, arguments) : gt.apply(this, arguments)
}
}, mt);
var yt = function() {
var t = []
, e = t.push(void 0);
return 1 !== e || 1 !== t.length || "undefined" != typeof t[0] || !$(t, 0)
}();
R(i, {
push: gt
}, yt),
R(i, {
slice: function(t, e) {
var n = j(this) ? X(this, "") : this;
return V(n, arguments)
}
}, nt);
var bt = function() {
try {
return [1, 2].sort(null ),
[1, 2].sort({}),
!0
} catch (t) {}
return !1
}()
, wt = function() {
try {
return [1, 2].sort(/a/),
!1
} catch (t) {}
return !0
}()
, xt = function() {
try {
return [1, 2].sort(void 0),
!0
} catch (t) {}
return !1
}();
R(i, {
sort: function(e) {
if ("undefined" == typeof e)
return Q(this);
if (!t(e))
throw new TypeError("Array.prototype.sort callback must be a function");
return Q(this, e)
}
}, bt || !xt || !wt);
var Tt = !Z({
toString: null
}, "toString")
, St = Z(function() {}, "prototype")
, _t = !$("x", "0")
, Ct = function(t) {
var e = t.constructor;
return e && e.prototype === t
}
, Et = {
$window: !0,
$console: !0,
$parent: !0,
$self: !0,
$frame: !0,
$frames: !0,
$frameElement: !0,
$webkitIndexedDB: !0,
$webkitStorageInfo: !0,
$external: !0
}
, Dt = function() {
if ("undefined" == typeof window)
return !1;
for (var t in window)
try {
!Et["$" + t] && $(window, t) && null !== window[t] && "object" == typeof window[t] && Ct(window[t])
} catch (e) {
return !0
}
return !1
}()
, kt = function(t) {
if ("undefined" == typeof window || !Dt)
return Ct(t);
try {
return Ct(t)
} catch (e) {
return !1
}
}
, At = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"]
, Mt = At.length
, Ot = function(t) {
return "[object Arguments]" === q(t)
}
, Nt = function(e) {
return null !== e && "object" == typeof e && "number" == typeof e.length && e.length >= 0 && !J(e) && t(e.callee)
}
, jt = Ot(arguments) ? Ot : Nt;
R(r, {
keys: function(e) {
var n = t(e)
, i = jt(e)
, r = null !== e && "object" == typeof e
, o = r && j(e);
if (!r && !n && !i)
throw new TypeError("Object.keys called on a non-object");
var a = []
, s = St && n;
if (o && _t || i)
for (var c = 0; c < e.length; ++c)
K(a, u(c));
if (!i)
for (var l in e)
s && "prototype" === l || !$(e, l) || K(a, u(l));
if (Tt)
for (var f = kt(e), h = 0; h < Mt; h++) {
var d = At[h];
f && "constructor" === d || !$(e, d) || K(a, d)
}
return a
}
});
var It = r.keys && function() {
return 2 === r.keys(arguments).length
}(1, 2)
, Lt = r.keys && function() {
var t = r.keys(arguments);
return 1 !== arguments.length || 1 !== t.length || 1 !== t[0]
}(1)
, Ft = r.keys;
R(r, {
keys: function(t) {
return Ft(jt(t) ? W(t) : t)
}
}, !It || Lt);
var Pt, Rt, zt = 0 !== new Date((-0xc782b5b342b24)).getUTCMonth(), Bt = new Date((-0x55d318d56a724)), Ht = new Date(14496624e5), Ut = "Mon, 01 Jan -45875 11:59:59 GMT" !== Bt.toUTCString(), $t = Bt.getTimezoneOffset();
$t < -720 ? (Pt = "Tue Jan 02 -45875" !== Bt.toDateString(),
Rt = !/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Ht.toString())) : (Pt = "Mon Jan 01 -45875" !== Bt.toDateString(),
Rt = !/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Ht.toString()));
var qt = y.bind(Date.prototype.getFullYear)
, Wt = y.bind(Date.prototype.getMonth)
, Vt = y.bind(Date.prototype.getDate)
, Yt = y.bind(Date.prototype.getUTCFullYear)
, Xt = y.bind(Date.prototype.getUTCMonth)
, Gt = y.bind(Date.prototype.getUTCDate)
, Kt = y.bind(Date.prototype.getUTCDay)
, Zt = y.bind(Date.prototype.getUTCHours)
, Qt = y.bind(Date.prototype.getUTCMinutes)
, Jt = y.bind(Date.prototype.getUTCSeconds)
, te = y.bind(Date.prototype.getUTCMilliseconds)
, ee = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
, ne = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
, ie = function(t, e) {
return Vt(new Date(e,t,0))
}
;
R(Date.prototype, {
getFullYear: function() {
if (!(this && this instanceof Date))
throw new TypeError("this is not a Date object.");
var t = qt(this);
return t < 0 && Wt(this) > 11 ? t + 1 : t
},
getMonth: function() {
if (!(this && this instanceof Date))
throw new TypeError("this is not a Date object.");
var t = qt(this)
, e = Wt(this);
return t < 0 && e > 11 ? 0 : e
},
getDate: function() {
if (!(this && this instanceof Date))
throw new TypeError("this is not a Date object.");
var t = qt(this)
, e = Wt(this)
, n = Vt(this);
if (t < 0 && e > 11) {
if (12 === e)
return n;
var i = ie(0, t + 1);
return i - n + 1
}
return n
},
getUTCFullYear: function() {
if (!(this && this instanceof Date))
throw new TypeError("this is not a Date object.");
var t = Yt(this);
return t < 0 && Xt(this) > 11 ? t + 1 : t
},
getUTCMonth: function() {
if (!(this && this instanceof Date))
throw new TypeError("this is not a Date object.");
var t = Yt(this)
, e = Xt(this);
return t < 0 && e > 11 ? 0 : e
},
getUTCDate: function() {
if (!(this && this instanceof Date))
throw new TypeError("this is not a Date object.");
var t = Yt(this)
, e = Xt(this)
, n = Gt(this);
if (t < 0 && e > 11) {
if (12 === e)
return n;
var i = ie(0, t + 1);
return i - n + 1
}
return n
}
}, zt),
R(Date.prototype, {
toUTCString: function() {
if (!(this && this instanceof Date))
throw new TypeError("this is not a Date object.");
var t = Kt(this)
, e = Gt(this)
, n = Xt(this)
, i = Yt(this)
, r = Zt(this)
, o = Qt(this)
, a = Jt(this);
return ee[t] + ", " + (e < 10 ? "0" + e : e) + " " + ne[n] + " " + i + " " + (r < 10 ? "0" + r : r) + ":" + (o < 10 ? "0" + o : o) + ":" + (a < 10 ? "0" + a : a) + " GMT"
}
}, zt || Ut),
R(Date.prototype, {
toDateString: function() {
if (!(this && this instanceof Date))
throw new TypeError("this is not a Date object.");
var t = this.getDay()
, e = this.getDate()
, n = this.getMonth()
, i = this.getFullYear();
return ee[t] + " " + ne[n] + " " + (e < 10 ? "0" + e : e) + " " + i
}
}, zt || Pt),
(zt || Rt) && (Date.prototype.toString = function() {
if (!(this && this instanceof Date))
throw new TypeError("this is not a Date object.");
var t = this.getDay()
, e = this.getDate()
, n = this.getMonth()
, i = this.getFullYear()
, r = this.getHours()
, o = this.getMinutes()
, a = this.getSeconds()
, s = this.getTimezoneOffset()
, u = Math.floor(Math.abs(s) / 60)
, c = Math.floor(Math.abs(s) % 60);
return ee[t] + " " + ne[n] + " " + (e < 10 ? "0" + e : e) + " " + i + " " + (r < 10 ? "0" + r : r) + ":" + (o < 10 ? "0" + o : o) + ":" + (a < 10 ? "0" + a : a) + " GMT" + (s > 0 ? "-" : "+") + (u < 10 ? "0" + u : u) + (c < 10 ? "0" + c : c)
}
,
P && r.defineProperty(Date.prototype, "toString", {
configurable: !0,
enumerable: !1,
writable: !0
}));
var re = -621987552e5
, oe = "-000001"
, ae = Date.prototype.toISOString && new Date(re).toISOString().indexOf(oe) === -1
, se = Date.prototype.toISOString && "1969-12-31T23:59:59.999Z" !== new Date((-1)).toISOString()
, ue = y.bind(Date.prototype.getTime);
R(Date.prototype, {
toISOString: function() {
if (!isFinite(this) || !isFinite(ue(this)))
throw new RangeError("Date.prototype.toISOString called on non-finite value.");
var t = Yt(this)
, e = Xt(this);
t += Math.floor(e / 12),
e = (e % 12 + 12) % 12;
var n = [e + 1, Gt(this), Zt(this), Qt(this), Jt(this)];
t = (t < 0 ? "-" : t > 9999 ? "+" : "") + Y("00000" + Math.abs(t), 0 <= t && t <= 9999 ? -4 : -6);
for (var i = 0; i < n.length; ++i)
n[i] = Y("00" + n[i], -2);
return t + "-" + W(n, 0, 2).join("-") + "T" + W(n, 2).join(":") + "." + Y("000" + te(this), -3) + "Z"
}
}, ae || se);
var ce = function() {
try {
return Date.prototype.toJSON && null === new Date(NaN).toJSON() && new Date(re).toJSON().indexOf(oe) !== -1 && Date.prototype.toJSON.call({
toISOString: function() {
return !0
}
})
} catch (t) {
return !1
}
}();
ce || (Date.prototype.toJSON = function(e) {
var n = r(this)
, i = H.ToPrimitive(n);
if ("number" == typeof i && !isFinite(i))
return null ;
var o = n.toISOString;
if (!t(o))
throw new TypeError("toISOString property is not callable");
return o.call(n)
}
);
var le = 1e15 === Date.parse("+033658-09-27T01:46:40.000Z")
, fe = !isNaN(Date.parse("2012-04-04T24:00:00.500Z")) || !isNaN(Date.parse("2012-11-31T23:59:59.000Z")) || !isNaN(Date.parse("2012-12-31T23:59:60.000Z"))
, he = isNaN(Date.parse("2000-01-01T00:00:00.000Z"));
if (he || fe || !le) {
var de = Math.pow(2, 31) - 1
, pe = B(new Date(1970,0,1,0,0,0,de + 1).getTime());
Date = function(t) {
var e = function(n, i, r, o, a, s, c) {
var l, f = arguments.length;
if (this instanceof t) {
var h = s
, d = c;
if (pe && f >= 7 && c > de) {
var p = Math.floor(c / de) * de
, v = Math.floor(p / 1e3);
h += v,
d -= 1e3 * v
}
l = 1 === f && u(n) === n ? new t(e.parse(n)) : f >= 7 ? new t(n,i,r,o,a,h,d) : f >= 6 ? new t(n,i,r,o,a,h) : f >= 5 ? new t(n,i,r,o,a) : f >= 4 ? new t(n,i,r,o) : f >= 3 ? new t(n,i,r) : f >= 2 ? new t(n,i) : f >= 1 ? new t(n instanceof t ? +n : n) : new t
} else
l = t.apply(this, arguments);
return z(l) || R(l, {
constructor: e
}, !0),
l
}
, n = new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$")
, i = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365]
, r = function(t, e) {
var n = e > 1 ? 1 : 0;
return i[e] + Math.floor((t - 1969 + n) / 4) - Math.floor((t - 1901 + n) / 100) + Math.floor((t - 1601 + n) / 400) + 365 * (t - 1970)
}
, o = function(e) {
var n = 0
, i = e;
if (pe && i > de) {
var r = Math.floor(i / de) * de
, o = Math.floor(r / 1e3);
n += o,
i -= 1e3 * o
}
return l(new t(1970,0,1,0,0,n,i))
}
;
for (var a in t)
$(t, a) && (e[a] = t[a]);
R(e, {
now: t.now,
UTC: t.UTC
}, !0),
e.prototype = t.prototype,
R(e.prototype, {
constructor: e
}, !0);
var s = function(e) {
var i = n.exec(e);
if (i) {
var a, s = l(i[1]), u = l(i[2] || 1) - 1, c = l(i[3] || 1) - 1, f = l(i[4] || 0), h = l(i[5] || 0), d = l(i[6] || 0), p = Math.floor(1e3 * l(i[7] || 0)), v = Boolean(i[4] && !i[8]), g = "-" === i[9] ? 1 : -1, m = l(i[10] || 0), y = l(i[11] || 0), b = h > 0 || d > 0 || p > 0;
return f < (b ? 24 : 25) && h < 60 && d < 60 && p < 1e3 && u > -1 && u < 12 && m < 24 && y < 60 && c > -1 && c < r(s, u + 1) - r(s, u) && (a = 60 * (24 * (r(s, u) + c) + f + m * g),
a = 1e3 * (60 * (a + h + y * g) + d) + p,
v && (a = o(a)),
-864e13 <= a && a <= 864e13) ? a : NaN
}
return t.parse.apply(this, arguments)
}
;
return R(e, {
parse: s
}),
e
}(Date)
}
Date.now || (Date.now = function() {
return (new Date).getTime()
}
);
var ve = f.toFixed && ("0.000" !== 8e-5.toFixed(3) || "1" !== .9.toFixed(0) || "1.25" !== 1.255.toFixed(2) || "1000000000000000128" !== (0xde0b6b3a7640080).toFixed(0))
, ge = {
base: 1e7,
size: 6,
data: [0, 0, 0, 0, 0, 0],
multiply: function(t, e) {
for (var n = -1, i = e; ++n < ge.size; )
i += t * ge.data[n],
ge.data[n] = i % ge.base,
i = Math.floor(i / ge.base)
},
divide: function(t) {
for (var e = ge.size, n = 0; --e >= 0; )
n += ge.data[e],
ge.data[e] = Math.floor(n / t),
n = n % t * ge.base
},
numToString: function() {
for (var t = ge.size, e = ""; --t >= 0; )
if ("" !== e || 0 === t || 0 !== ge.data[t]) {
var n = u(ge.data[t]);
"" === e ? e = n : e += Y("0000000", 0, 7 - n.length) + n
}
return e
},
pow: function Fe(t, e, n) {
return 0 === e ? n : e % 2 === 1 ? Fe(t, e - 1, n * t) : Fe(t * t, e / 2, n)
},
log: function(t) {
for (var e = 0, n = t; n >= 4096; )
e += 12,
n /= 4096;
for (; n >= 2; )
e += 1,
n /= 2;
return e
}
}
, me = function(t) {
var e, n, i, r, o, a, s, c;
if (e = l(t),
e = B(e) ? 0 : Math.floor(e),
e < 0 || e > 20)
throw new RangeError("Number.toFixed called with invalid number of decimals");
if (n = l(this),
B(n))
return "NaN";
if (n <= -1e21 || n >= 1e21)
return u(n);
if (i = "",
n < 0 && (i = "-",
n = -n),
r = "0",
n > 1e-21)
if (o = ge.log(n * ge.pow(2, 69, 1)) - 69,
a = o < 0 ? n * ge.pow(2, -o, 1) : n / ge.pow(2, o, 1),
a *= 4503599627370496,
o = 52 - o,
o > 0) {
for (ge.multiply(0, a),
s = e; s >= 7; )
ge.multiply(1e7, 0),
s -= 7;
for (ge.multiply(ge.pow(10, s, 1), 0),
s = o - 1; s >= 23; )
ge.divide(1 << 23),
s -= 23;
ge.divide(1 << s),
ge.multiply(1, 1),
ge.divide(2),
r = ge.numToString()
} else
ge.multiply(0, a),
ge.multiply(1 << -o, 0),
r = ge.numToString() + Y("0.00000000000000000000", 2, 2 + e);
return e > 0 ? (c = r.length,
r = c <= e ? i + Y("0.0000000000000000000", 0, e - c + 2) + r : i + Y(r, 0, c - e) + "." + Y(r, c - e)) : r = i + r,
r
}
;
R(f, {
toFixed: me
}, ve);
var ye = function() {
try {
return "1" === 1..toPrecision(void 0)
} catch (t) {
return !0
}
}()
, be = f.toPrecision;
R(f, {
toPrecision: function(t) {
return "undefined" == typeof t ? be.call(this) : be.call(this, t)
}
}, ye),
2 !== "ab".split(/(?:ab)*/).length || 4 !== ".".split(/(.?)(.?)/).length || "t" === "tesst".split(/(s)*/)[1] || 4 !== "test".split(/(?:)/, -1).length || "".split(/.?/).length || ".".split(/()()/).length > 1 ? !function() {
var t = "undefined" == typeof /()??/.exec("")[1]
, n = Math.pow(2, 32) - 1;
c.split = function(i, r) {
var o = String(this);
if ("undefined" == typeof i && 0 === r)
return [];
if (!e(i))
return X(this, i, r);
var a, s, u, c, l = [], f = (i.ignoreCase ? "i" : "") + (i.multiline ? "m" : "") + (i.unicode ? "u" : "") + (i.sticky ? "y" : ""), h = 0, d = new RegExp(i.source,f + "g");
t || (a = new RegExp("^" + d.source + "$(?!\\s)",f));
var v = "undefined" == typeof r ? n : H.ToUint32(r);
for (s = d.exec(o); s && (u = s.index + s[0].length,
!(u > h && (K(l, Y(o, h, s.index)),
!t && s.length > 1 && s[0].replace(a, function() {
for (var t = 1; t < arguments.length - 2; t++)
"undefined" == typeof arguments[t] && (s[t] = void 0)
}),
s.length > 1 && s.index < o.length && p.apply(l, W(s, 1)),
c = s[0].length,
h = u,
l.length >= v))); )
d.lastIndex === s.index && d.lastIndex++,
s = d.exec(o);
return h === o.length ? !c && d.test("") || K(l, "") : K(l, Y(o, h)),
l.length > v ? W(l, 0, v) : l
}
}() : "0".split(void 0, 0).length && (c.split = function(t, e) {
return "undefined" == typeof t && 0 === e ? [] : X(this, t, e)
}
);
var we = c.replace
, xe = function() {
var t = [];
return "x".replace(/x(.)?/g, function(e, n) {
K(t, n)
}),
1 === t.length && "undefined" == typeof t[0]
}();
xe || (c.replace = function(n, i) {
var r = t(i)
, o = e(n) && /\)[*?]/.test(n.source);
if (r && o) {
var a = function(t) {
var e = arguments.length
, r = n.lastIndex;
n.lastIndex = 0;
var o = n.exec(t) || [];
return n.lastIndex = r,
K(o, arguments[e - 2], arguments[e - 1]),
i.apply(this, o)
}
;
return we.call(this, n, a)
}
return we.call(this, n, i)
}
);
var Te = c.substr
, Se = "".substr && "b" !== "0b".substr(-1);
R(c, {
substr: function(t, e) {
var n = t;
return t < 0 && (n = w(this.length + t, 0)),
Te.call(this, n, e)
}
}, Se);
var _e = "\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"
, Ce = "​"
, Ee = "[" + _e + "]"
, De = new RegExp("^" + Ee + Ee + "*")
, ke = new RegExp(Ee + Ee + "*$")
, Ae = c.trim && (_e.trim() || !Ce.trim());
R(c, {
trim: function() {
if ("undefined" == typeof this || null === this)
throw new TypeError("can't convert " + this + " to object");
return u(this).replace(De, "").replace(ke, "")
}
}, Ae);
var Me = y.bind(String.prototype.trim)
, Oe = c.lastIndexOf && "abcあい".lastIndexOf("あい", 2) !== -1;
R(c, {
lastIndexOf: function(t) {
if ("undefined" == typeof this || null === this)
throw new TypeError("can't convert " + this + " to object");
for (var e = u(this), n = u(t), i = arguments.length > 1 ? l(arguments[1]) : NaN, r = B(i) ? 1 / 0 : H.ToInteger(i), o = x(w(r, 0), e.length), a = n.length, s = o + a; s > 0; ) {
s = w(0, s - a);
var c = G(Y(e, s, o + a), n);
if (c !== -1)
return s + c
}
return -1
}
}, Oe);
var Ne = c.lastIndexOf;
if (R(c, {
lastIndexOf: function(t) {
return Ne.apply(this, arguments)
}
}, 1 !== c.lastIndexOf.length),
8 === parseInt(_e + "08") && 22 === parseInt(_e + "0x16") || (parseInt = function(t) {
var e = /^[\-+]?0[xX]/;
return function(n, i) {
var r = Me(String(n))
, o = l(i) || (e.test(r) ? 16 : 10);
return t(r, o)
}
}(parseInt)),
1 / parseFloat("-0") !== -(1 / 0) && (parseFloat = function(t) {
return function(e) {
var n = Me(String(e))
, i = t(n);
return 0 === i && "-" === Y(n, 0, 1) ? -0 : i
}
}(parseFloat)),
"RangeError: test" !== String(new RangeError("test"))) {
var je = function() {
if ("undefined" == typeof this || null === this)
throw new TypeError("can't convert " + this + " to object");
var t = this.name;
"undefined" == typeof t ? t = "Error" : "string" != typeof t && (t = u(t));
var e = this.message;
return "undefined" == typeof e ? e = "" : "string" != typeof e && (e = u(e)),
t ? e ? t + ": " + e : t : e
}
;
Error.prototype.toString = je
}
if (P) {
var Ie = function(t, e) {
if (Z(t, e)) {
var n = Object.getOwnPropertyDescriptor(t, e);
n.configurable && (n.enumerable = !1,
Object.defineProperty(t, e, n))
}
}
;
Ie(Error.prototype, "message"),
"" !== Error.prototype.message && (Error.prototype.message = ""),
Ie(Error.prototype, "name")
}
if ("/a/gim" !== String(/a/gim)) {
var Le = function() {
var t = "/" + this.source + "/";
return this.global && (t += "g"),
this.ignoreCase && (t += "i"),
this.multiline && (t += "m"),
t
}
;
RegExp.prototype.toString = Le
}
})
}
, , , , , function(t, e) {
/*!
* fancyBox - jQuery Plugin
* version: 2.1.5 (Fri, 14 Jun 2013)
* requires jQuery v1.6 or later
*
* Examples at http://fancyapps.com/fancybox/
* License: www.fancyapps.com/fancybox/#license
*
* Copyright 2012 Janis Skarnelis - janis@fancyapps.com
*
*/
t.exports = function(t) {
"use strict";
var e = t("html")
, n = t(window)
, i = t(document)
, r = t.fancybox = function() {
r.open.apply(this, arguments)
}
, o = navigator.userAgent.match(/msie/i)
, a = null
, s = void 0 !== document.createTouch
, u = function(e) {
return e && e.hasOwnProperty && e instanceof t
}
, c = function(e) {
return e && "string" === t.type(e)
}
, l = function(t) {
return c(t) && t.indexOf("%") > 0
}
, f = function(t) {
return t && !(t.style.overflow && "hidden" === t.style.overflow) && (t.clientWidth && t.scrollWidth > t.clientWidth || t.clientHeight && t.scrollHeight > t.clientHeight)
}
, h = function(t, e) {
var n = parseInt(t, 10) || 0;
return e && l(t) && (n = r.getViewport()[e] / 100 * n),
Math.ceil(n)
}
, d = function(t, e) {
return h(t, e) + "px"
}
;
t.extend(r, {
version: "2.1.5",
defaults: {
padding: 15,
margin: 20,
width: 800,
height: 600,
minWidth: 100,
minHeight: 100,
maxWidth: 9999,
maxHeight: 9999,
pixelRatio: 1,
autoSize: !0,
autoHeight: !1,
autoWidth: !1,
autoResize: !0,
autoCenter: !s,
fitToView: !0,
aspectRatio: !1,
topRatio: .5,
leftRatio: .5,
scrolling: "auto",
wrapCSS: "",
arrows: !0,
closeBtn: !0,
closeClick: !1,
nextClick: !1,
mouseWheel: !0,
autoPlay: !1,
playSpeed: 3e3,
preload: 3,
modal: !1,
loop: !0,
ajax: {
dataType: "html",
headers: {
"X-fancyBox": !0
}
},
iframe: {
scrolling: "auto",
preload: !0
},
swf: {
wmode: "transparent",
allowfullscreen: "true",
allowscriptaccess: "always"
},
keys: {
next: {
13: "left",
34: "up",
39: "left",
40: "up"
},
prev: {
8: "right",
33: "down",
37: "right",
38: "down"
},
close: [27],
play: [32],
toggle: [70]
},
direction: {
next: "left",
prev: "right"
},
scrollOutside: !0,
index: 0,
type: null ,
href: null ,
content: null ,
title: null ,
tpl: {
wrap: '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',
image: '<img class="fancybox-image" src="{href}" alt="" />',
iframe: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen' + (o ? ' allowtransparency="true"' : "") + "></iframe>",
error: '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',
closeBtn: '<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',
next: '<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',
prev: '<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>',
loading: '<div id="fancybox-loading"><div></div></div>'
},
openEffect: "fade",
openSpeed: 250,
openEasing: "swing",
openOpacity: !0,
openMethod: "zoomIn",
closeEffect: "fade",
closeSpeed: 250,
closeEasing: "swing",
closeOpacity: !0,
closeMethod: "zoomOut",
nextEffect: "elastic",
nextSpeed: 250,
nextEasing: "swing",
nextMethod: "changeIn",
prevEffect: "elastic",
prevSpeed: 250,
prevEasing: "swing",
prevMethod: "changeOut",
helpers: {
overlay: !0,
title: !0
},
onCancel: t.noop,
beforeLoad: t.noop,
afterLoad: t.noop,
beforeShow: t.noop,
afterShow: t.noop,
beforeChange: t.noop,
beforeClose: t.noop,
afterClose: t.noop
},
group: {},
opts: {},
previous: null ,
coming: null ,
current: null ,
isActive: !1,
isOpen: !1,
isOpened: !1,
wrap: null ,
skin: null ,
outer: null ,
inner: null ,
player: {
timer: null ,
isActive: !1
},
ajaxLoad: null ,
imgPreload: null ,
transitions: {},
helpers: {},
open: function(e, n) {
if (e && (t.isPlainObject(n) || (n = {}),
!1 !== r.close(!0)))
return t.isArray(e) || (e = u(e) ? t(e).get() : [e]),
t.each(e, function(i, o) {
var a, s, l, f, h, d, p, v = {};
"object" === t.type(o) && (o.nodeType && (o = t(o)),
u(o) ? (v = {
href: o.data("fancybox-href") || o.attr("href"),
title: t("<div/>").text(o.data("fancybox-title") || o.attr("title") || "").html(),
isDom: !0,
element: o
},
t.metadata && t.extend(!0, v, o.metadata())) : v = o),
a = n.href || v.href || (c(o) ? o : null ),
s = void 0 !== n.title ? n.title : v.title || "",
l = n.content || v.content,
f = l ? "html" : n.type || v.type,
!f && v.isDom && (f = o.data("fancybox-type"),
f || (h = o.prop("class").match(/fancybox\.(\w+)/),
f = h ? h[1] : null )),
c(a) && (f || (r.isImage(a) ? f = "image" : r.isSWF(a) ? f = "swf" : "#" === a.charAt(0) ? f = "inline" : c(o) && (f = "html",
l = o)),
"ajax" === f && (d = a.split(/\s+/, 2),
a = d.shift(),
p = d.shift())),
l || ("inline" === f ? a ? l = t(c(a) ? a.replace(/.*(?=#[^\s]+$)/, "") : a) : v.isDom && (l = o) : "html" === f ? l = a : f || a || !v.isDom || (f = "inline",
l = o)),
t.extend(v, {
href: a,
type: f,
content: l,
title: s,
selector: p
}),
e[i] = v
}),
r.opts = t.extend(!0, {}, r.defaults, n),
void 0 !== n.keys && (r.opts.keys = !!n.keys && t.extend({}, r.defaults.keys, n.keys)),
r.group = e,
r._start(r.opts.index)
},
cancel: function() {
var t = r.coming;
t && !1 === r.trigger("onCancel") || (r.hideLoading(),
t && (r.ajaxLoad && r.ajaxLoad.abort(),
r.ajaxLoad = null ,
r.imgPreload && (r.imgPreload.onload = r.imgPreload.onerror = null ),
t.wrap && t.wrap.stop(!0, !0).trigger("onReset").remove(),
r.coming = null ,
r.current || r._afterZoomOut(t)))
},
close: function(e) {
r.cancel(),
!1 !== r.trigger("beforeClose") && (r.unbindEvents(),
r.isActive && (r.isOpen && e !== !0 ? (r.isOpen = r.isOpened = !1,
r.isClosing = !0,
t(".fancybox-item, .fancybox-nav").remove(),
r.wrap.stop(!0, !0).removeClass("fancybox-opened"),
r.transitions[r.current.closeMethod]()) : (t(".fancybox-wrap").stop(!0).trigger("onReset").remove(),
r._afterZoomOut())))
},
play: function(t) {
var e = function() {
clearTimeout(r.player.timer)
}
, n = function() {
e(),
r.current && r.player.isActive && (r.player.timer = setTimeout(r.next, r.current.playSpeed))
}
, o = function() {
e(),
i.unbind(".player"),
r.player.isActive = !1,
r.trigger("onPlayEnd")
}
, a = function() {
r.current && (r.current.loop || r.current.index < r.group.length - 1) && (r.player.isActive = !0,
i.bind({
"onCancel.player beforeClose.player": o,
"onUpdate.player": n,
"beforeLoad.player": e
}),
n(),
r.trigger("onPlayStart"))
}
;
t === !0 || !r.player.isActive && t !== !1 ? a() : o()
},
next: function(t) {
var e = r.current;
e && (c(t) || (t = e.direction.next),
r.jumpto(e.index + 1, t, "next"))
},
prev: function(t) {
var e = r.current;
e && (c(t) || (t = e.direction.prev),
r.jumpto(e.index - 1, t, "prev"))
},
jumpto: function(t, e, n) {
var i = r.current;
i && (t = h(t),
r.direction = e || i.direction[t >= i.index ? "next" : "prev"],
r.router = n || "jumpto",
i.loop && (t < 0 && (t = i.group.length + t % i.group.length),
t %= i.group.length),
void 0 !== i.group[t] && (r.cancel(),
r._start(t)))
},
reposition: function(e, n) {
var i, o = r.current, a = o ? o.wrap : null ;
a && (i = r._getPosition(n),
e && "scroll" === e.type ? (delete i.position,
a.stop(!0, !0).animate(i, 200)) : (a.css(i),
o.pos = t.extend({}, o.dim, i)))
},
update: function(t) {
var e = t && t.originalEvent && t.originalEvent.type
, n = !e || "orientationchange" === e;
n && (clearTimeout(a),
a = null ),
r.isOpen && !a && (a = setTimeout(function() {
var i = r.current;
i && !r.isClosing && (r.wrap.removeClass("fancybox-tmp"),
(n || "load" === e || "resize" === e && i.autoResize) && r._setDimension(),
"scroll" === e && i.canShrink || r.reposition(t),
r.trigger("onUpdate"),
a = null )
}, n && !s ? 0 : 300))
},
toggle: function(e) {
r.isOpen && (r.current.fitToView = "boolean" === t.type(e) ? e : !r.current.fitToView,
s && (r.wrap.removeAttr("style").addClass("fancybox-tmp"),
r.trigger("onUpdate")),
r.update())
},
hideLoading: function() {
i.unbind(".loading"),
t("#fancybox-loading").remove()
},
showLoading: function() {
var e, n;
r.hideLoading(),
e = t(r.opts.tpl.loading).click(r.cancel).appendTo("body"),
i.bind("keydown.loading", function(t) {
27 === (t.which || t.keyCode) && (t.preventDefault(),
r.cancel())
}),
r.defaults.fixed || (n = r.getViewport(),
e.css({
position: "absolute",
top: .5 * n.h + n.y,
left: .5 * n.w + n.x
})),
r.trigger("onLoading")
},
getViewport: function() {
var t = r.current && r.current.locked || !1
, e = {
x: n.scrollLeft(),
y: n.scrollTop()
};
return t && t.length ? (e.w = t[0].clientWidth,
e.h = t[0].clientHeight) : (e.w = s && window.innerWidth ? window.innerWidth : n.width(),
e.h = s && window.innerHeight ? window.innerHeight : n.height()),
e
},
unbindEvents: function() {
r.wrap && u(r.wrap) && r.wrap.unbind(".fb"),
i.unbind(".fb"),
n.unbind(".fb")
},
bindEvents: function() {
var e, o = r.current;
o && (n.bind("orientationchange.fb" + (s ? "" : " resize.fb") + (o.autoCenter && !o.locked ? " scroll.fb" : ""), r.update),
e = o.keys,
e && i.bind("keydown.fb", function(n) {
var i = n.which || n.keyCode
, a = n.target || n.srcElement;
return (27 !== i || !r.coming) && void (n.ctrlKey || n.altKey || n.shiftKey || n.metaKey || a && (a.type || t(a).is("[contenteditable]")) || t.each(e, function(e, a) {
return o.group.length > 1 && void 0 !== a[i] ? (r[e](a[i]),
n.preventDefault(),
!1) : t.inArray(i, a) > -1 ? (r[e](),
n.preventDefault(),
!1) : void 0
}))
}),
t.fn.mousewheel && o.mouseWheel && r.wrap.bind("mousewheel.fb", function(e, n, i, a) {
for (var s = e.target || null , u = t(s), c = !1; u.length && !(c || u.is(".fancybox-skin") || u.is(".fancybox-wrap")); )
c = f(u[0]),
u = t(u).parent();
0 === n || c || r.group.length > 1 && !o.canShrink && (a > 0 || i > 0 ? r.prev(a > 0 ? "down" : "left") : (a < 0 || i < 0) && r.next(a < 0 ? "up" : "right"),
e.preventDefault())
}))
},
trigger: function(e, n) {
var o, a = n || r.coming || r.current;
if (a) {
if (t.isFunction(a[e]) && (o = a[e].apply(a, Array.prototype.slice.call(arguments, 1))),
o === !1)
return !1;
a.helpers && t.each(a.helpers, function(n, i) {
i && r.helpers[n] && t.isFunction(r.helpers[n][e]) && r.helpers[n][e](t.extend(!0, {}, r.helpers[n].defaults, i), a)
})
}
i.trigger(e)
},
isImage: function(t) {
return c(t) && t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)
},
isSWF: function(t) {
return c(t) && t.match(/\.(swf)((\?|#).*)?$/i)
},
_start: function(e) {
var n, i, o, a, u, c = {};
if (e = h(e),
n = r.group[e] || null ,
!n)
return !1;
if (c = t.extend(!0, {}, r.opts, n),
a = c.margin,
u = c.padding,
"number" === t.type(a) && (c.margin = [a, a, a, a]),
"number" === t.type(u) && (c.padding = [u, u, u, u]),
c.modal && t.extend(!0, c, {
closeBtn: !1,
closeClick: !1,
nextClick: !1,
arrows: !1,
mouseWheel: !1,
keys: null ,
helpers: {
overlay: {
closeClick: !1
}
}
}),
c.autoSize && (c.autoWidth = c.autoHeight = !0),
"auto" === c.width && (c.autoWidth = !0),
"auto" === c.height && (c.autoHeight = !0),
c.group = r.group,
c.index = e,
r.coming = c,
!1 === r.trigger("beforeLoad"))
return void (r.coming = null );
if (o = c.type,
i = c.href,
!o)
return r.coming = null ,
!(!r.current || !r.router || "jumpto" === r.router) && (r.current.index = e,
r[r.router](r.direction));
if (r.isActive = !0,
"image" !== o && "swf" !== o || (c.autoHeight = c.autoWidth = !1,
c.scrolling = "visible"),
"image" === o && (c.aspectRatio = !0),
"iframe" === o && s && (c.scrolling = "scroll"),
c.wrap = t(c.tpl.wrap).addClass("fancybox-" + (s ? "mobile" : "desktop") + " fancybox-type-" + o + " fancybox-tmp " + c.wrapCSS).appendTo(c.parent || "body"),
t.extend(c, {
skin: t(".fancybox-skin", c.wrap),
outer: t(".fancybox-outer", c.wrap),
inner: t(".fancybox-inner", c.wrap)
}),
t.each(["Top", "Right", "Bottom", "Left"], function(t, e) {
c.skin.css("padding" + e, d(c.padding[t]))
}),
r.trigger("onReady"),
"inline" === o || "html" === o) {
if (!c.content || !c.content.length)
return r._error("content")
} else if (!i)
return r._error("href");
"image" === o ? r._loadImage() : "ajax" === o ? r._loadAjax() : "iframe" === o ? r._loadIframe() : r._afterLoad()
},
_error: function(e) {
t.extend(r.coming, {
type: "html",
autoWidth: !0,
autoHeight: !0,
minWidth: 0,
minHeight: 0,
scrolling: "no",
hasError: e,
content: r.coming.tpl.error
}),
r._afterLoad()
},
_loadImage: function() {
var t = r.imgPreload = new Image;
t.onload = function() {
this.onload = this.onerror = null ,
r.coming.width = this.width / r.opts.pixelRatio,
r.coming.height = this.height / r.opts.pixelRatio,
r._afterLoad()
}
,
t.onerror = function() {
this.onload = this.onerror = null ,
r._error("image")
}
,
t.src = r.coming.href,
t.complete !== !0 && r.showLoading()
},
_loadAjax: function() {
var e = r.coming;
r.showLoading(),
r.ajaxLoad = t.ajax(t.extend({}, e.ajax, {
url: e.href,
error: function(t, e) {
r.coming && "abort" !== e ? r._error("ajax", t) : r.hideLoading()
},
success: function(t, n) {
"success" === n && (e.content = t,
r._afterLoad())
}
}))
},
_loadIframe: function() {
var e = r.coming
, n = t(e.tpl.iframe.replace(/\{rnd\}/g, (new Date).getTime())).attr("scrolling", s ? "auto" : e.iframe.scrolling).attr("src", e.href);
t(e.wrap).bind("onReset", function() {
try {
t(this).find("iframe").hide().attr("src", "//about:blank").end().empty()
} catch (e) {}
}),
e.iframe.preload && (r.showLoading(),
n.one("load", function() {
t(this).data("ready", 1),
s || t(this).bind("load.fb", r.update),
t(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),
r._afterLoad()
})),
e.content = n.appendTo(e.inner),
e.iframe.preload || r._afterLoad()
},
_preloadImages: function() {
var t, e, n = r.group, i = r.current, o = n.length, a = i.preload ? Math.min(i.preload, o - 1) : 0;
for (e = 1; e <= a; e += 1)
t = n[(i.index + e) % o],
"image" === t.type && t.href && ((new Image).src = t.href)
},
_afterLoad: function() {
var e, n, i, o, a, s, c = r.coming, l = r.current, f = "fancybox-placeholder";
if (r.hideLoading(),
c && r.isActive !== !1) {
if (!1 === r.trigger("afterLoad", c, l))
return c.wrap.stop(!0).trigger("onReset").remove(),
void (r.coming = null );
switch (l && (r.trigger("beforeChange", l),
l.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),
r.unbindEvents(),
e = c,
n = c.content,
i = c.type,
o = c.scrolling,
t.extend(r, {
wrap: e.wrap,
skin: e.skin,
outer: e.outer,
inner: e.inner,
current: e,
previous: l
}),
a = e.href,
i) {
case "inline":
case "ajax":
case "html":
e.selector ? n = t("<div>").html(n).find(e.selector) : u(n) && (n.data(f) || n.data(f, t('<div class="' + f + '"></div>').insertAfter(n).hide()),
n = n.show().detach(),
e.wrap.bind("onReset", function() {
t(this).find(n).length && n.hide().replaceAll(n.data(f)).data(f, !1)
}));
break;
case "image":
n = e.tpl.image.replace(/\{href\}/g, a);
break;
case "swf":
n = '<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="' + a + '"></param>',
s = "",
t.each(e.swf, function(t, e) {
n += '<param name="' + t + '" value="' + e + '"></param>',
s += " " + t + '="' + e + '"'
}),
n += '<embed src="' + a + '" type="application/x-shockwave-flash" width="100%" height="100%"' + s + "></embed></object>"
}
u(n) && n.parent().is(e.inner) || e.inner.append(n),
r.trigger("beforeShow"),
e.inner.css("overflow", "yes" === o ? "scroll" : "no" === o ? "hidden" : o),
r._setDimension(),
r.reposition(),
r.isOpen = !1,
r.coming = null ,
r.bindEvents(),
r.isOpened ? l.prevMethod && r.transitions[l.prevMethod]() : t(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(),
r.transitions[r.isOpened ? e.nextMethod : e.openMethod](),
r._preloadImages()
}
},
_setDimension: function() {
var e, n, i, o, a, s, u, c, f, p, v, g, m, y, b, w = r.getViewport(), x = 0, T = !1, S = !1, _ = r.wrap, C = r.skin, E = r.inner, D = r.current, k = D.width, A = D.height, M = D.minWidth, O = D.minHeight, N = D.maxWidth, j = D.maxHeight, I = D.scrolling, L = D.scrollOutside ? D.scrollbarWidth : 0, F = D.margin, P = h(F[1] + F[3]), R = h(F[0] + F[2]);
if (_.add(C).add(E).width("auto").height("auto").removeClass("fancybox-tmp"),
e = h(C.outerWidth(!0) - C.width()),
n = h(C.outerHeight(!0) - C.height()),
i = P + e,
o = R + n,
a = l(k) ? (w.w - i) * h(k) / 100 : k,
s = l(A) ? (w.h - o) * h(A) / 100 : A,
"iframe" === D.type) {
if (y = D.content,
D.autoHeight && 1 === y.data("ready"))
try {
y[0].contentWindow.document.location && (E.width(a).height(9999),
b = y.contents().find("body"),
L && b.css("overflow-x", "hidden"),
s = b.outerHeight(!0))
} catch (z) {}
} else
(D.autoWidth || D.autoHeight) && (E.addClass("fancybox-tmp"),
D.autoWidth || E.width(a),
D.autoHeight || E.height(s),
D.autoWidth && (a = E.width()),
D.autoHeight && (s = E.height()),
E.removeClass("fancybox-tmp"));
if (k = h(a),
A = h(s),
f = a / s,
M = h(l(M) ? h(M, "w") - i : M),
N = h(l(N) ? h(N, "w") - i : N),
O = h(l(O) ? h(O, "h") - o : O),
j = h(l(j) ? h(j, "h") - o : j),
u = N,
c = j,
D.fitToView && (N = Math.min(w.w - i, N),
j = Math.min(w.h - o, j)),
g = w.w - P,
m = w.h - R,
D.aspectRatio ? (k > N && (k = N,
A = h(k / f)),
A > j && (A = j,
k = h(A * f)),
k < M && (k = M,
A = h(k / f)),
A < O && (A = O,
k = h(A * f))) : (k = Math.max(M, Math.min(k, N)),
D.autoHeight && "iframe" !== D.type && (E.width(k),
A = E.height()),
A = Math.max(O, Math.min(A, j))),
D.fitToView)
if (E.width(k).height(A),
_.width(k + e),
p = _.width(),
v = _.height(),
D.aspectRatio)
for (; (p > g || v > m) && k > M && A > O && !(x++ > 19); )
A = Math.max(O, Math.min(j, A - 10)),
k = h(A * f),
k < M && (k = M,
A = h(k / f)),
k > N && (k = N,
A = h(k / f)),
E.width(k).height(A),
_.width(k + e),
p = _.width(),
v = _.height();
else
k = Math.max(M, Math.min(k, k - (p - g))),
A = Math.max(O, Math.min(A, A - (v - m)));
L && "auto" === I && A < s && k + e + L < g && (k += L),
E.width(k).height(A),
_.width(k + e),
p = _.width(),
v = _.height(),
T = (p > g || v > m) && k > M && A > O,
S = D.aspectRatio ? k < u && A < c && k < a && A < s : (k < u || A < c) && (k < a || A < s),
t.extend(D, {
dim: {
width: d(p),
height: d(v)
},
origWidth: a,
origHeight: s,
canShrink: T,
canExpand: S,
wPadding: e,
hPadding: n,
wrapSpace: v - C.outerHeight(!0),
skinSpace: C.height() - A
}),
!y && D.autoHeight && A > O && A < j && !S && E.height("auto")
},
_getPosition: function(t) {
var e = r.current
, n = r.getViewport()
, i = e.margin
, o = r.wrap.width() + i[1] + i[3]
, a = r.wrap.height() + i[0] + i[2]
, s = {
position: "absolute",
top: i[0],
left: i[3]
};
return e.autoCenter && e.fixed && !t && a <= n.h && o <= n.w ? s.position = "fixed" : e.locked || (s.top += n.y,
s.left += n.x),
s.top = d(Math.max(s.top, s.top + (n.h - a) * e.topRatio)),
s.left = d(Math.max(s.left, s.left + (n.w - o) * e.leftRatio)),
s
},
_afterZoomIn: function() {
var e = r.current;
e && (r.isOpen = r.isOpened = !0,
r.wrap.css("overflow", "visible").addClass("fancybox-opened").hide().show(0),
r.update(),
(e.closeClick || e.nextClick && r.group.length > 1) && r.inner.css("cursor", "pointer").bind("click.fb", function(n) {
t(n.target).is("a") || t(n.target).parent().is("a") || (n.preventDefault(),
r[e.closeClick ? "close" : "next"]())
}),
e.closeBtn && t(e.tpl.closeBtn).appendTo(r.skin).bind("click.fb", function(t) {
t.preventDefault(),
r.close()
}),
e.arrows && r.group.length > 1 && ((e.loop || e.index > 0) && t(e.tpl.prev).appendTo(r.outer).bind("click.fb", r.prev),
(e.loop || e.index < r.group.length - 1) && t(e.tpl.next).appendTo(r.outer).bind("click.fb", r.next)),
r.trigger("afterShow"),
e.loop || e.index !== e.group.length - 1 ? r.opts.autoPlay && !r.player.isActive && (r.opts.autoPlay = !1,
r.play(!0)) : r.play(!1))
},
_afterZoomOut: function(e) {
e = e || r.current,
t(".fancybox-wrap").trigger("onReset").remove(),
t.extend(r, {
group: {},
opts: {},
router: !1,
current: null ,
isActive: !1,
isOpened: !1,
isOpen: !1,
isClosing: !1,
wrap: null ,
skin: null ,
outer: null ,
inner: null
}),
r.trigger("afterClose", e)
}
}),
r.transitions = {
getOrigPosition: function() {
var t = r.current
, e = t.element
, n = t.orig
, i = {}
, o = 50
, a = 50
, s = t.hPadding
, c = t.wPadding
, l = r.getViewport();
return !n && t.isDom && e.is(":visible") && (n = e.find("img:first"),
n.length || (n = e)),
u(n) ? (i = n.offset(),
n.is("img") && (o = n.outerWidth(),
a = n.outerHeight())) : (i.top = l.y + (l.h - a) * t.topRatio,
i.left = l.x + (l.w - o) * t.leftRatio),
("fixed" === r.wrap.css("position") || t.locked) && (i.top -= l.y,
i.left -= l.x),
i = {
top: d(i.top - s * t.topRatio),
left: d(i.left - c * t.leftRatio),
width: d(o + c),
height: d(a + s)
}
},
step: function(t, e) {
var n, i, o, a = e.prop, s = r.current, u = s.wrapSpace, c = s.skinSpace;
"width" !== a && "height" !== a || (n = e.end === e.start ? 1 : (t - e.start) / (e.end - e.start),
r.isClosing && (n = 1 - n),
i = "width" === a ? s.wPadding : s.hPadding,
o = t - i,
r.skin[a](h("width" === a ? o : o - u * n)),
r.inner[a](h("width" === a ? o : o - u * n - c * n)))
},
zoomIn: function() {
var e = r.current
, n = e.pos
, i = e.openEffect
, o = "elastic" === i
, a = t.extend({
opacity: 1
}, n);
delete a.position,
o ? (n = this.getOrigPosition(),
e.openOpacity && (n.opacity = .1)) : "fade" === i && (n.opacity = .1),
r.wrap.css(n).animate(a, {
duration: "none" === i ? 0 : e.openSpeed,
easing: e.openEasing,
step: o ? this.step : null ,
complete: r._afterZoomIn
})
},
zoomOut: function() {
var t = r.current
, e = t.closeEffect
, n = "elastic" === e
, i = {
opacity: .1
};
n && (i = this.getOrigPosition(),
t.closeOpacity && (i.opacity = .1)),
r.wrap.animate(i, {
duration: "none" === e ? 0 : t.closeSpeed,
easing: t.closeEasing,
step: n ? this.step : null ,
complete: r._afterZoomOut
})
},
changeIn: function() {
var t, e = r.current, n = e.nextEffect, i = e.pos, o = {
opacity: 1
}, a = r.direction, s = 200;
i.opacity = .1,
"elastic" === n && (t = "down" === a || "up" === a ? "top" : "left",
"down" === a || "right" === a ? (i[t] = d(h(i[t]) - s),
o[t] = "+=" + s + "px") : (i[t] = d(h(i[t]) + s),
o[t] = "-=" + s + "px")),
"none" === n ? r._afterZoomIn() : r.wrap.css(i).animate(o, {
duration: e.nextSpeed,
easing: e.nextEasing,
complete: r._afterZoomIn
})
},
changeOut: function() {
var e = r.previous
, n = e.prevEffect
, i = {
opacity: .1
}
, o = r.direction
, a = 200;
"elastic" === n && (i["down" === o || "up" === o ? "top" : "left"] = ("up" === o || "left" === o ? "-" : "+") + "=" + a + "px"),
e.wrap.animate(i, {
duration: "none" === n ? 0 : e.prevSpeed,
easing: e.prevEasing,
complete: function() {
t(this).trigger("onReset").remove()
}
})
}
},
r.helpers.overlay = {
defaults: {
closeClick: !0,
speedOut: 200,
showEarly: !0,
css: {},
locked: !s,
fixed: !0
},
overlay: null ,
fixed: !1,
el: t("html"),
create: function(e) {
var n;
e = t.extend({}, this.defaults, e),
this.overlay && this.close(),
n = r.coming ? r.coming.parent : e.parent,
this.overlay = t('<div class="fancybox-overlay"></div>').appendTo(n && n.length ? n : "body"),
this.fixed = !1,
e.fixed && r.defaults.fixed && (this.overlay.addClass("fancybox-overlay-fixed"),
this.fixed = !0)
},
open: function(e) {
var i = this;
e = t.extend({}, this.defaults, e),
this.overlay ? this.overlay.unbind(".overlay").width("auto").height("auto") : this.create(e),
this.fixed || (n.bind("resize.overlay", t.proxy(this.update, this)),
this.update()),
e.closeClick && this.overlay.bind("click.overlay", function(e) {
if (t(e.target).hasClass("fancybox-overlay"))
return r.isActive ? r.close() : i.close(),
!1
}),
this.overlay.css(e.css).show()
},
close: function() {
n.unbind("resize.overlay"),
this.el.hasClass("fancybox-lock") && (t(".fancybox-margin").removeClass("fancybox-margin"),
this.el.removeClass("fancybox-lock"),
n.scrollTop(this.scrollV).scrollLeft(this.scrollH)),
t(".fancybox-overlay").remove().hide(),
t.extend(this, {
overlay: null ,
fixed: !1
})
},
update: function() {
var t, e = "100%";
this.overlay.width(e).height("100%"),
o ? (t = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth),
i.width() > t && (e = i.width())) : i.width() > n.width() && (e = i.width()),
this.overlay.width(e).height(i.height())
},
onReady: function(e, n) {
var i = this.overlay;
t(".fancybox-overlay").stop(!0, !0),
i || this.create(e),
e.locked && this.fixed && n.fixed && (n.locked = this.overlay.append(n.wrap),
n.fixed = !1),
e.showEarly === !0 && this.beforeShow.apply(this, arguments)
},
beforeShow: function(e, i) {
i.locked && !this.el.hasClass("fancybox-lock") && (this.fixPosition !== !1 && t("*").filter(function() {
return "fixed" === t(this).css("position") && !t(this).hasClass("fancybox-overlay") && !t(this).hasClass("fancybox-wrap")
}).addClass("fancybox-margin"),
this.el.addClass("fancybox-margin"),
this.scrollV = n.scrollTop(),
this.scrollH = n.scrollLeft(),
this.el.addClass("fancybox-lock"),
n.scrollTop(this.scrollV).scrollLeft(this.scrollH)),
this.open(e)
},
onUpdate: function() {
this.fixed || this.update()
},
afterClose: function(e) {
this.overlay && !r.coming && this.overlay.fadeOut(e.speedOut, t.proxy(this.close, this))
}
},
r.helpers.title = {
defaults: {
type: "float",
position: "bottom"
},
beforeShow: function(e) {
var n, i, a = r.current, s = a.title, u = e.type;
if (t.isFunction(s) && (s = s.call(a.element, a)),
c(s) && "" !== t.trim(s)) {
switch (n = t('<div class="fancybox-title fancybox-title-' + u + '-wrap">' + s + "</div>"),
u) {
case "inside":
i = r.skin;
break;
case "outside":
i = r.wrap;
break;
case "over":
i = r.inner;
break;
default:
i = r.skin,
n.appendTo("body"),
o && n.width(n.width()),
n.wrapInner('<span class="child"></span>'),
r.current.margin[2] += Math.abs(h(n.css("margin-bottom")))
}
n["top" === e.position ? "prependTo" : "appendTo"](i)
}
}
},
t.fn.fancybox = function(e) {
var n, o = t(this), a = this.selector || "", s = function(i) {
var s, u, c = t(this).blur(), l = n;
i.ctrlKey || i.altKey || i.shiftKey || i.metaKey || c.is(".fancybox-wrap") || (s = e.groupAttr || "data-fancybox-group",
u = c.attr(s),
u || (s = "rel",
u = c.get(0)[s]),
u && "" !== u && "nofollow" !== u && (c = a.length ? t(a) : o,
c = c.filter("[" + s + '="' + u + '"]'),
l = c.index(this)),
e.index = l,
r.open(c, e) !== !1 && i.preventDefault())
}
;
return e = e || {},
n = e.index || 0,
a && e.live !== !1 ? i.undelegate(a, "click.fb-start").delegate(a + ":not('.fancybox-item, .fancybox-nav')", "click.fb-start", s) : o.unbind("click.fb-start").bind("click.fb-start", s),
this.filter("[data-fancybox-start=1]").trigger("click"),
this
}
,
i.ready(function() {
var n, i;
void 0 === t.scrollbarWidth && (t.scrollbarWidth = function() {
var e = t('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body")
, n = e.children()
, i = n.innerWidth() - n.height(99).innerWidth();
return e.remove(),
i
}
),
void 0 === t.support.fixedPosition && (t.support.fixedPosition = function() {
var e = t('<div style="position:fixed;top:20px;"></div>').appendTo("body")
, n = 20 === e[0].offsetTop || 15 === e[0].offsetTop;
return e.remove(),
n
}()),
t.extend(r.defaults, {
scrollbarWidth: t.scrollbarWidth(),
fixed: t.support.fixedPosition,
parent: t("body")
}),
n = t(window).width(),
e.addClass("fancybox-lock-test"),
i = t(window).width(),
e.removeClass("fancybox-lock-test"),
t("<style type='text/css'>.fancybox-margin{margin-right:" + (i - n) + "px;}</style>").appendTo("head")
})
}
}
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(t, e, n) {
var i = n(1);
(function() {
!function(t, e) {
"use strict";
var n = t.fn.val
, i = t.fn.prop;
e.Placeholders.nativeSupport || (t.fn.val = function(t) {
var e = n.apply(this, arguments)
, i = this.eq(0).data("placeholder-value");
return void 0 === t && this.eq(0).data("placeholder-active") && e === i ? "" : e
}
,
t.fn.prop = function(t, e) {
return void 0 === e && this.eq(0).data("placeholder-active") && "value" === t ? "" : i.apply(this, arguments)
}
)
}(i, this)
}
).call(window)
}
, function(t, e) {
(function() {
/*!
* The MIT License
*
* Copyright (c) 2012 James Allardice
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
!function(t) {
"use strict";
function e() {}
function n() {
try {
return document.activeElement
} catch (t) {}
}
function i(t, e) {
for (var n = 0, i = t.length; n < i; n++)
if (t[n] === e)
return !0;
return !1
}
function r(t, e, n) {
return t.addEventListener ? t.addEventListener(e, n, !1) : t.attachEvent ? t.attachEvent("on" + e, n) : void 0
}
function o(t, e) {
var n;
t.createTextRange ? (n = t.createTextRange(),
n.move("character", e),
n.select()) : t.selectionStart && (t.focus(),
t.setSelectionRange(e, e))
}
function a(t, e) {
try {
return t.type = e,
!0
} catch (n) {
return !1
}
}
function s(t, e) {
if (t && t.getAttribute(D))
e(t);
else
for (var n, i = t ? t.getElementsByTagName("input") : z, r = t ? t.getElementsByTagName("textarea") : B, o = i ? i.length : 0, a = r ? r.length : 0, s = o + a, u = 0; u < s; u++)
n = u < o ? i[u] : r[u - o],
e(n)
}
function u(t) {
s(t, l)
}
function c(t) {
s(t, f)
}
function l(t, e) {
var n = !!e && t.value !== e
, i = t.value === t.getAttribute(D);
if ((n || i) && "true" === t.getAttribute(k)) {
t.removeAttribute(k),
t.value = t.value.replace(t.getAttribute(D), ""),
t.className = t.className.replace(E, "");
var r = t.getAttribute(I);
parseInt(r, 10) >= 0 && (t.setAttribute("maxLength", r),
t.removeAttribute(I));
var o = t.getAttribute(A);
return o && (t.type = o),
!0
}
return !1
}
function f(t) {
var e = t.getAttribute(D);
if ("" === t.value && e) {
t.setAttribute(k, "true"),
t.value = e,
t.className += " " + C;
var n = t.getAttribute(I);
n || (t.setAttribute(I, t.maxLength),
t.removeAttribute("maxLength"));
var i = t.getAttribute(A);
return i ? t.type = "text" : "password" === t.type && a(t, "text") && t.setAttribute(A, "password"),
!0
}
return !1
}
function h(t) {
return function() {
H && t.value === t.getAttribute(D) && "true" === t.getAttribute(k) ? o(t, 0) : l(t)
}
}
function d(t) {
return function() {
f(t)
}
}
function p(t) {
return function() {
u(t)
}
}
function v(t) {
return function(e) {
if (x = t.value,
"true" === t.getAttribute(k) && x === t.getAttribute(D) && i(S, e.keyCode))
return e.preventDefault && e.preventDefault(),
!1
}
}
function g(t) {
return function() {
l(t, x),
"" === t.value && (t.blur(),
o(t, 0))
}
}
function m(t) {
return function() {
t === n() && t.value === t.getAttribute(D) && "true" === t.getAttribute(k) && o(t, 0)
}
}
function y(t) {
var e = t.form;
e && "string" == typeof e && (e = document.getElementById(e),
e.getAttribute(M) || (r(e, "submit", p(e)),
e.setAttribute(M, "true"))),
r(t, "focus", h(t)),
r(t, "blur", d(t)),
H && (r(t, "keydown", v(t)),
r(t, "keyup", g(t)),
r(t, "click", m(t))),
t.setAttribute(O, "true"),
t.setAttribute(D, W),
(H || t !== n()) && f(t)
}
var b = document.createElement("input")
, w = void 0 !== b.placeholder;
if (t.Placeholders = {
nativeSupport: w,
disable: w ? e : u,
enable: w ? e : c
},
!w) {
var x, T = ["text", "search", "url", "tel", "email", "password", "number", "textarea"], S = [27, 33, 34, 35, 36, 37, 38, 39, 40, 8, 46], _ = "#ccc", C = "placeholdersjs", E = new RegExp("(?:^|\\s)" + C + "(?!\\S)"), D = "data-placeholder-value", k = "data-placeholder-active", A = "data-placeholder-type", M = "data-placeholder-submit", O = "data-placeholder-bound", N = "data-placeholder-focus", j = "data-placeholder-live", I = "data-placeholder-maxlength", L = 100, F = document.getElementsByTagName("head")[0], P = document.documentElement, R = t.Placeholders, z = document.getElementsByTagName("input"), B = document.getElementsByTagName("textarea"), H = "false" === P.getAttribute(N), U = "false" !== P.getAttribute(j), $ = document.createElement("style");
$.type = "text/css";
var q = document.createTextNode("." + C + " {color:" + _ + ";}");
$.styleSheet ? $.styleSheet.cssText = q.nodeValue : $.appendChild(q),
F.insertBefore($, F.firstChild);
for (var W, V, Y = 0, X = z.length + B.length; Y < X; Y++)
V = Y < z.length ? z[Y] : B[Y - z.length],
W = V.attributes.placeholder,
W && (W = W.nodeValue,
W && i(T, V.type) && y(V));
var G = setInterval(function() {
for (var t = 0, e = z.length + B.length; t < e; t++)
V = t < z.length ? z[t] : B[t - z.length],
W = V.attributes.placeholder,
W ? (W = W.nodeValue,
W && i(T, V.type) && (V.getAttribute(O) || y(V),
(W !== V.getAttribute(D) || "password" === V.type && !V.getAttribute(A)) && ("password" === V.type && !V.getAttribute(A) && a(V, "text") && V.setAttribute(A, "password"),
V.value === V.getAttribute(D) && (V.value = W),
V.setAttribute(D, W)))) : V.getAttribute(k) && (l(V),
V.removeAttribute(D));
U || clearInterval(G)
}, L);
r(t, "beforeunload", function() {
R.disable()
})
}
}(this)
}
).call(window)
}
, function(t, e, n) {
var i, r, o;
!function(a) {
r = [n(1), n(492)],
i = a,
o = "function" == typeof i ? i.apply(e, r) : i,
!(void 0 !== o && (t.exports = o))
}(function(t) {
t.extend(t.validator.messages, {
required: "Tento údaj je povinný.",
remote: "Prosím, opravte tento údaj.",
email: "Prosím, zadejte platný e-mail.",
url: "Prosím, zadejte platné URL.",
date: "Prosím, zadejte platné datum.",
dateISO: "Prosím, zadejte platné datum (ISO).",
number: "Prosím, zadejte číslo.",
digits: "Prosím, zadávejte pouze číslice.",
creditcard: "Prosím, zadejte číslo kreditní karty.",
equalTo: "Prosím, zadejte znovu stejnou hodnotu.",
extension: "Prosím, zadejte soubor se správnou příponou.",
maxlength: t.validator.format("Prosím, zadejte nejvíce {0} znaků."),
minlength: t.validator.format("Prosím, zadejte nejméně {0} znaků."),
rangelength: t.validator.format("Prosím, zadejte od {0} do {1} znaků."),
range: t.validator.format("Prosím, zadejte hodnotu od {0} do {1}."),
max: t.validator.format("Prosím, zadejte hodnotu menší nebo rovnu {0}."),
min: t.validator.format("Prosím, zadejte hodnotu větší nebo rovnu {0}.")
})
})
}
, function(t, e, n) {
var i, r, o;
/*!
* jQuery Cookie Plugin v1.4.1
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2013 Klaus Hartl
* Released under the MIT license
*/
!function(a) {
r = [n(1)],
i = a,
o = "function" == typeof i ? i.apply(e, r) : i,
!(void 0 !== o && (t.exports = o))
}(function(t) {
function e(t) {
return s.raw ? t : encodeURIComponent(t)
}
function n(t) {
return s.raw ? t : decodeURIComponent(t)
}
function i(t) {
return e(s.json ? JSON.stringify(t) : String(t))
}
function r(t) {
0 === t.indexOf('"') && (t = t.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, "\\"));
try {
return t = decodeURIComponent(t.replace(a, " ")),
s.json ? JSON.parse(t) : t
} catch (e) {}
}
function o(e, n) {
var i = s.raw ? e : r(e);
return t.isFunction(n) ? n(i) : i
}
var a = /\+/g
, s = t.cookie = function(r, a, u) {
if (void 0 !== a && !t.isFunction(a)) {
if (u = t.extend({}, s.defaults, u),
"number" == typeof u.expires) {
var c = u.expires
, l = u.expires = new Date;
l.setTime(+l + 864e5 * c)
}
return document.cookie = [e(r), "=", i(a), u.expires ? "; expires=" + u.expires.toUTCString() : "", u.path ? "; path=" + u.path : "", u.domain ? "; domain=" + u.domain : "", u.secure ? "; secure" : ""].join("")
}
for (var f = r ? void 0 : {}, h = document.cookie ? document.cookie.split("; ") : [], d = 0, p = h.length; d < p; d++) {
var v = h[d].split("=")
, g = n(v.shift())
, m = v.join("=");
if (r && r === g) {
f = o(m, a);
break
}
r || void 0 === (m = o(m)) || (f[g] = m)
}
return f
}
;
s.defaults = {},
t.removeCookie = function(e, n) {
return void 0 !== t.cookie(e) && (t.cookie(e, "", t.extend({}, n, {
expires: -1
})),
!t.cookie(e))
}
})
}
, , , , , , , function(t, e, n) {
var i, r;
n(517),
n(707),
n(7),
i = n(1),
window.jQuery = i,
n(865),
n(864),
n(875),
n(712)(i),
n(867),
n(492),
n(866),
n(515)(i),
n(700),
n(701),
n(881),
n(509),
n(508),
n(506),
n(507),
n(505),
n(510),
n(511),
n(512),
n(513),
n(514),
n(516),
n(140),
r = n(215),
n(336),
n(135),
n(114),
n(136),
n(167),
n(203),
n(463)
}
, function(t, e) {
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
window.matchMedia || (window.matchMedia = function() {
"use strict";
var t = window.styleMedia || window.media;
if (!t) {
var e = document.createElement("style")
, n = document.getElementsByTagName("script")[0]
, i = null ;
e.type = "text/css",
e.id = "matchmediajs-test",
n.parentNode.insertBefore(e, n),
i = "getComputedStyle"in window && window.getComputedStyle(e, null ) || e.currentStyle,
t = {
matchMedium: function(t) {
var n = "@media " + t + "{ #matchmediajs-test { width: 1px; } }";
return e.styleSheet ? e.styleSheet.cssText = n : e.textContent = n,
"1px" === i.width
}
}
}
return function(e) {
return {
matches: t.matchMedium(e || "all"),
media: e || "all"
}
}
}())
}
, function(t, e) {
function n(t, e) {
var n, i = function(r) {
return t.length > 1 ? function() {
var o = r ? r.concat() : [];
return n = e ? n || this : this,
o.push.apply(o, arguments) < t.length && arguments.length ? i.call(n, o) : t.apply(n, o)
}
: t
}
;
return i()
}
var i, r, o, a, s, u, c = [].slice, l = {}.toString;
i = n(function(t, e) {
return t.apply(null , e)
}),
r = function(t) {
return n(t)
}
,
o = n(function(t, e, n) {
return t(n, e)
}),
a = function(t) {
return function(e) {
return function() {
return t(e(e)).apply(null , arguments)
}
}(function(e) {
return function() {
return t(e(e)).apply(null , arguments)
}
})
}
,
s = n(function(t, e, n, i) {
return t(e(n), e(i))
}),
u = function(t) {
var e;
return e = {},
function() {
var n, i, r;
return n = c.call(arguments),
i = function() {
var t, e, i, o = [];
for (t = 0,
i = (e = n).length; t < i; ++t)
r = e[t],
o.push(r + l.call(r).slice(8, -1));
return o
}().join(""),
e[i] = i in e ? e[i] : t.apply(null , n)
}
}
,
t.exports = {
curry: r,
flip: o,
fix: a,
apply: i,
over: s,
memoize: u
}
}
, function(t, e) {
function n(t, e) {
var n, i = function(r) {
return t.length > 1 ? function() {
var o = r ? r.concat() : [];
return n = e ? n || this : this,
o.push.apply(o, arguments) < t.length && arguments.length ? i.call(n, o) : t.apply(n, o)
}
: t
}
;
return i()
}
function i(t, e) {
for (var n = -1, i = e.length >>> 0; ++n < i; )
if (t === e[n])
return !0;
return !1
}
function r() {
var t = arguments;
return function() {
var e, n;
for (n = t[0].apply(this, arguments),
e = 1; e < t.length; ++e)
n = t[e](n);
return n
}
}
function o(t) {
return !t
}
var a, s, u, c, l, f, h, d, p, v, g, m, y, b, w, x, T, S, _, C, E, D, k, A, M, O, N, j, I, L, F, P, R, z, B, H, U, $, q, W, V, Y, X, G, K, Z, Q, J, tt, et, nt, it, rt, ot, at, st, ut, ct, lt, ft, ht, dt, pt, vt, gt, mt, yt, bt, wt, xt = {}.toString, Tt = [].slice;
a = n(function(t, e) {
var n, i, r;
for (n = 0,
i = e.length; n < i; ++n)
r = e[n],
t(r);
return e
}),
s = n(function(t, e) {
var n, i, r, o = [];
for (n = 0,
i = e.length; n < i; ++n)
r = e[n],
o.push(t(r));
return o
}),
u = function(t) {
var e, n, i, r = [];
for (e = 0,
n = t.length; e < n; ++e)
i = t[e],
i && r.push(i);
return r
}
,
c = n(function(t, e) {
var n, i, r, o = [];
for (n = 0,
i = e.length; n < i; ++n)
r = e[n],
t(r) && o.push(r);
return o
}),
l = n(function(t, e) {
var n, i, r, o = [];
for (n = 0,
i = e.length; n < i; ++n)
r = e[n],
t(r) || o.push(r);
return o
}),
f = n(function(t, e) {
var n, i, r, o, a;
for (n = [],
i = [],
r = 0,
o = e.length; r < o; ++r)
a = e[r],
(t(a) ? n : i).push(a);
return [n, i]
}),
h = n(function(t, e) {
var n, i, r;
for (n = 0,
i = e.length; n < i; ++n)
if (r = e[n],
t(r))
return r
}),
d = p = function(t) {
return t[0]
}
,
v = function(t) {
if (t.length)
return t.slice(1)
}
,
g = function(t) {
return t[t.length - 1]
}
,
m = function(t) {
if (t.length)
return t.slice(0, -1)
}
,
y = function(t) {
return !t.length
}
,
b = function(t) {
return t.concat().reverse()
}
,
w = function(t) {
var e, n, r, o;
for (e = [],
n = 0,
r = t.length; n < r; ++n)
o = t[n],
i(o, e) || e.push(o);
return e
}
,
x = n(function(t, e) {
var n, r, o, a, s, u = [];
for (n = [],
r = 0,
o = e.length; r < o; ++r)
a = e[r],
s = t(a),
i(s, n) || (n.push(s),
u.push(a));
return u
}),
T = S = n(function(t, e, n) {
var i, r, o;
for (i = 0,
r = n.length; i < r; ++i)
o = n[i],
e = t(e, o);
return e
}),
_ = C = n(function(t, e) {
return T(t, e[0], e.slice(1))
}),
E = n(function(t, e, n) {
var i, r;
for (i = n.length - 1; i >= 0; --i)
r = n[i],
e = t(r, e);
return e
}),
D = n(function(t, e) {
return E(t, e[e.length - 1], e.slice(0, -1))
}),
k = n(function(t, e) {
var n, i, r;
for (n = [],
i = e; null != (r = t(i)); )
n.push(r[0]),
i = r[1];
return n
}),
A = function(t) {
return [].concat.apply([], t)
}
,
M = n(function(t, e) {
var n;
return [].concat.apply([], function() {
var i, r, o, a = [];
for (i = 0,
o = (r = e).length; i < o; ++i)
n = r[i],
a.push(t(n));
return a
}())
}),
O = function(t) {
var e;
return [].concat.apply([], function() {
var n, i, r, o = [];
for (n = 0,
r = (i = t).length; n < r; ++n)
e = i[n],
"Array" === xt.call(e).slice(8, -1) ? o.push(O(e)) : o.push(e);
return o
}())
}
,
N = function(t) {
var e, n, r, o, a, s, u, c;
e = Tt.call(arguments, 1),
n = [];
t: for (r = 0,
o = t.length; r < o; ++r) {
for (a = t[r],
s = 0,
u = e.length; s < u; ++s)
if (c = e[s],
i(a, c))
continue t;
n.push(a)
}
return n
}
,
j = function(t) {
var e, n, r, o, a, s, u, c;
e = Tt.call(arguments, 1),
n = [];
t: for (r = 0,
o = t.length; r < o; ++r) {
for (a = t[r],
s = 0,
u = e.length; s < u; ++s)
if (c = e[s],
!i(a, c))
continue t;
n.push(a)
}
return n
}
,
I = function() {
var t, e, n, r, o, a, s, u;
for (t = Tt.call(arguments),
e = [],
n = 0,
r = t.length; n < r; ++n)
for (o = t[n],
a = 0,
s = o.length; a < s; ++a)
u = o[a],
i(u, e) || e.push(u);
return e
}
,
L = n(function(t, e) {
var n, i, r, o, a;
for (n = {},
i = 0,
r = e.length; i < r; ++i)
o = e[i],
a = t(o),
a in n ? n[a] += 1 : n[a] = 1;
return n
}),
F = n(function(t, e) {
var n, i, r, o, a;
for (n = {},
i = 0,
r = e.length; i < r; ++i)
o = e[i],
a = t(o),
a in n ? n[a].push(o) : n[a] = [o];
return n
}),
P = function(t) {
var e, n, i;
for (e = 0,
n = t.length; e < n; ++e)
if (i = t[e],
!i)
return !1;
return !0
}
,
R = function(t) {
var e, n, i;
for (e = 0,
n = t.length; e < n; ++e)
if (i = t[e])
return !0;
return !1
}
,
z = n(function(t, e) {
var n, i, r;
for (n = 0,
i = e.length; n < i; ++n)
if (r = e[n],
t(r))
return !0;
return !1
}),
B = n(function(t, e) {
var n, i, r;
for (n = 0,
i = e.length; n < i; ++n)
if (r = e[n],
!t(r))
return !1;
return !0
}),
H = function(t) {
return t.concat().sort(function(t, e) {
return t > e ? 1 : t < e ? -1 : 0
})
}
,
U = n(function(t, e) {
return e.concat().sort(t)
}),
$ = n(function(t, e) {
return e.concat().sort(function(e, n) {
return t(e) > t(n) ? 1 : t(e) < t(n) ? -1 : 0
})
}),
q = function(t) {
var e, n, i, r;
for (e = 0,
n = 0,
i = t.length; n < i; ++n)
r = t[n],
e += r;
return e
}
,
W = function(t) {
var e, n, i, r;
for (e = 1,
n = 0,
i = t.length; n < i; ++n)
r = t[n],
e *= r;
return e
}
,
V = Y = function(t) {
var e, n, i, r;
for (e = 0,
n = 0,
i = t.length; n < i; ++n)
r = t[n],
e += r;
return e / t.length
}
,
X = function(t) {
var e, n, i, r, o;
for (e = t[0],
n = 0,
r = (i = t.slice(1)).length; n < r; ++n)
o = i[n],
o > e && (e = o);
return e
}
,
G = function(t) {
var e, n, i, r, o;
for (e = t[0],
n = 0,
r = (i = t.slice(1)).length; n < r; ++n)
o = i[n],
o < e && (e = o);
return e
}
,
K = n(function(t, e) {
var n, i, r, o, a;
for (n = e[0],
i = 0,
o = (r = e.slice(1)).length; i < o; ++i)
a = r[i],
t(a) > t(n) && (n = a);
return n
}),
Z = n(function(t, e) {
var n, i, r, o, a;
for (n = e[0],
i = 0,
o = (r = e.slice(1)).length; i < o; ++i)
a = r[i],
t(a) < t(n) && (n = a);
return n
}),
Q = J = n(function(t, e, n) {
var i, r;
return i = e,
[e].concat(function() {
var e, o, a, s = [];
for (e = 0,
a = (o = n).length; e < a; ++e)
r = o[e],
s.push(i = t(i, r));
return s
}())
}),
tt = et = n(function(t, e) {
if (e.length)
return Q(t, e[0], e.slice(1))
}),
nt = n(function(t, e, n) {
return n = n.concat().reverse(),
Q(t, e, n).reverse()
}),
it = n(function(t, e) {
if (e.length)
return e = e.concat().reverse(),
Q(t, e[0], e.slice(1)).reverse()
}),
rt = n(function(t, e, n) {
return n.slice(t, e)
}),
ot = n(function(t, e) {
return t <= 0 ? e.slice(0, 0) : e.slice(0, t)
}),
at = n(function(t, e) {
return t <= 0 ? e : e.slice(t)
}),
st = n(function(t, e) {
return [ot(t, e), at(t, e)]
}),
ut = n(function(t, e) {
var n, i;
if (n = e.length,
!n)
return e;
for (i = 0; i < n && t(e[i]); )
i += 1;
return e.slice(0, i)
}),
ct = n(function(t, e) {
var n, i;
if (n = e.length,
!n)
return e;
for (i = 0; i < n && t(e[i]); )
i += 1;
return e.slice(i)
}),
lt = n(function(t, e) {
return [ut(t, e), ct(t, e)]
}),
ft = n(function(t, e) {
return lt(r(t, o), e)
}),
ht = n(function(t, e) {
var n, i, r, o, a, s;
for (n = [],
i = e.length,
r = 0,
o = t.length; r < o && (a = r,
s = t[r],
a !== i); ++r)
n.push([s, e[a]]);
return n
}),
dt = n(function(t, e, n) {
var i, r, o, a, s, u;
for (i = [],
r = n.length,
o = 0,
a = e.length; o < a && (s = o,
u = e[o],
s !== r); ++o)
i.push(t(u, n[s]));
return i
}),
pt = function() {
var t, e, n, i, r, o, a, s, u, c = [];
for (t = Tt.call(arguments),
e = void 0,
n = 0,
i = t.length; n < i; ++n)
r = t[n],
e <= (o = r.length) || (e = o);
for (n = 0; n < e; ++n) {
for (a = n,
s = [],
u = 0,
i = t.length; u < i; ++u)
r = t[u],
s.push(r[a]);
c.push(s)
}
return c
}
,
vt = function(t) {
function e() {
var t, e, i, r = [];
for (t = 0,
i = (e = n).length; t < i; ++t)
a = e[t],
r.push(a[u]);
return r
}
var n, i, r, o, a, s, u, c = [];
for (n = Tt.call(arguments, 1),
i = void 0,
r = 0,
o = n.length; r < o; ++r)
a = n[r],
i <= (s = a.length) || (i = s);
for (r = 0; r < i; ++r)
u = r,
c.push(t.apply(null , e()));
return c
}
,
gt = n(function(t, e) {
return t < 0 ? e[e.length + t] : e[t]
}),
mt = n(function(t, e) {
var n, i, r, o;
for (n = 0,
i = e.length; n < i; ++n)
if (r = n,
o = e[n],
o === t)
return r
}),
yt = n(function(t, e) {
var n, i, r, o, a = [];
for (n = 0,
i = e.length; n < i; ++n)
r = n,
o = e[n],
o === t && a.push(r);
return a
}),
bt = n(function(t, e) {
var n, i, r, o;
for (n = 0,
i = e.length; n < i; ++n)
if (r = n,
o = e[n],
t(o))
return r
}),
wt = n(function(t, e) {
var n, i, r, o, a = [];
for (n = 0,
i = e.length; n < i; ++n)
r = n,
o = e[n],
t(o) && a.push(r);
return a
}),
t.exports = {
each: a,
map: s,
filter: c,
compact: u,
reject: l,
partition: f,
find: h,
head: d,
first: p,
tail: v,
last: g,
initial: m,
empty: y,
reverse: b,
difference: N,
intersection: j,
union: I,
countBy: L,
groupBy: F,
fold: T,
fold1: _,
foldl: S,
foldl1: C,
foldr: E,
foldr1: D,
unfoldr: k,
andList: P,
orList: R,
any: z,
all: B,
unique: w,
uniqueBy: x,
sort: H,
sortWith: U,
sortBy: $,
sum: q,
product: W,
mean: V,
average: Y,
concat: A,
concatMap: M,
flatten: O,
maximum: X,
minimum: G,
maximumBy: K,
minimumBy: Z,
scan: Q,
scan1: tt,
scanl: J,
scanl1: et,
scanr: nt,
scanr1: it,
slice: rt,
take: ot,
drop: at,
splitAt: st,
takeWhile: ut,
dropWhile: ct,
span: lt,
breakList: ft,
zip: ht,
zipWith: dt,
zipAll: pt,
zipAllWith: vt,
at: gt,
elemIndex: mt,
elemIndices: yt,
findIndex: bt,
findIndices: wt
}
}
, function(t, e) {
function n(t, e) {
var n, i = function(r) {
return t.length > 1 ? function() {
var o = r ? r.concat() : [];
return n = e ? n || this : this,
o.push.apply(o, arguments) < t.length && arguments.length ? i.call(n, o) : t.apply(n, o)
}
: t
}
;
return i()
}
var i, r, o, a, s, u, c, l, f, h, d, p, v, g, m, y, b, w, x, T, S, _, C, E, D, k, A, M, O, N, j, I;
i = n(function(t, e) {
return t > e ? t : e
}),
r = n(function(t, e) {
return t < e ? t : e
}),
o = function(t) {
return -t
}
,
a = Math.abs,
s = function(t) {
return t < 0 ? -1 : t > 0 ? 1 : 0
}
,
u = n(function(t, e) {
return ~~(t / e)
}),
c = n(function(t, e) {
return t % e
}),
l = n(function(t, e) {
return Math.floor(t / e)
}),
f = n(function(t, e) {
var n;
return (t % (n = e) + n) % n
}),
h = function(t) {
return 1 / t
}
,
d = Math.PI,
p = 2 * d,
v = Math.exp,
g = Math.sqrt,
m = Math.log,
y = n(function(t, e) {
return Math.pow(t, e)
}),
b = Math.sin,
w = Math.tan,
x = Math.cos,
T = Math.asin,
S = Math.acos,
_ = Math.atan,
C = n(function(t, e) {
return Math.atan2(t, e)
}),
E = function(t) {
return ~~t
}
,
D = Math.round,
k = Math.ceil,
A = Math.floor,
M = function(t) {
return t !== t
}
,
O = function(t) {
return t % 2 === 0
}
,
N = function(t) {
return t % 2 !== 0
}
,
j = n(function(t, e) {
var n;
for (t = Math.abs(t),
e = Math.abs(e); 0 !== e; )
n = t % e,
t = e,
e = n;
return t
}),
I = n(function(t, e) {
return Math.abs(Math.floor(t / j(t, e) * e))
}),
t.exports = {
max: i,
min: r,
negate: o,
abs: a,
signum: s,
quot: u,
rem: c,
div: l,
mod: f,
recip: h,
pi: d,
tau: p,
exp: v,
sqrt: g,
ln: m,
pow: y,
sin: b,
tan: w,
cos: x,
acos: S,
asin: T,
atan: _,
atan2: C,
truncate: E,
round: D,
ceiling: k,
floor: A,
isItNaN: M,
even: O,
odd: N,
gcd: j,
lcm: I
}
}
, function(t, e) {
function n(t, e) {
var n, i = function(r) {
return t.length > 1 ? function() {
var o = r ? r.concat() : [];
return n = e ? n || this : this,
o.push.apply(o, arguments) < t.length && arguments.length ? i.call(n, o) : t.apply(n, o)
}
: t
}
;
return i()
}
var i, r, o, a, s, u, c, l, f, h, d, p, v, g;
i = function(t) {
var e, n, i = [];
for (e in t)
n = t[e],
i.push(n);
return i
}
,
r = function(t) {
var e, n = [];
for (e in t)
n.push(e);
return n
}
,
o = function(t) {
var e, n, i, r = {};
for (e = 0,
n = t.length; e < n; ++e)
i = t[e],
r[i[0]] = i[1];
return r
}
,
a = function(t) {
var e, n, i = [];
for (e in t)
n = t[e],
i.push([e, n]);
return i
}
,
s = n(function(t, e) {
var n, i, r, o, a = {};
for (n = 0,
i = t.length; n < i; ++n)
r = n,
o = t[n],
a[o] = e[r];
return a
}),
u = function(t) {
var e, n, i, r;
e = [],
n = [];
for (i in t)
r = t[i],
e.push(i),
n.push(r);
return [e, n]
}
,
c = function(t) {
var e;
for (e in t)
return !1;
return !0
}
,
l = n(function(t, e) {
var n, i;
for (n in e)
i = e[n],
t(i);
return e
}),
f = n(function(t, e) {
var n, i, r = {};
for (n in e)
i = e[n],
r[n] = t(i);
return r
}),
h = function(t) {
var e, n, i = {};
for (e in t)
n = t[e],
n && (i[e] = n);
return i
}
,
d = n(function(t, e) {
var n, i, r = {};
for (n in e)
i = e[n],
t(i) && (r[n] = i);
return r
}),
p = n(function(t, e) {
var n, i, r = {};
for (n in e)
i = e[n],
t(i) || (r[n] = i);
return r
}),
v = n(function(t, e) {
var n, i, r, o;
n = {},
i = {};
for (r in e)
o = e[r],
(t(o) ? n : i)[r] = o;
return [n, i]
}),
g = n(function(t, e) {
var n, i;
for (n in e)
if (i = e[n],
t(i))
return i
}),
t.exports = {
values: i,
keys: r,
pairsToObj: o,
objToPairs: a,
listsToObj: s,
objToLists: u,
empty: c,
each: l,
map: f,
filter: d,
compact: h,
reject: p,
partition: v,
find: g
}
}
, function(t, e) {
function n(t, e) {
var n, i = function(r) {
return t.length > 1 ? function() {
var o = r ? r.concat() : [];
return n = e ? n || this : this,
o.push.apply(o, arguments) < t.length && arguments.length ? i.call(n, o) : t.apply(n, o)
}
: t
}
;
return i()
}
var i, r, o, a, s, u, c, l, f, h, d, p, v;
i = n(function(t, e) {
return e.split(t)
}),
r = n(function(t, e) {
return e.join(t)
}),
o = function(t) {
return t.length ? t.split("\n") : []
}
,
a = function(t) {
return t.join("\n")
}
,
s = function(t) {
return t.length ? t.split(/[ ]+/) : []
}
,
u = function(t) {
return t.join(" ")
}
,
c = function(t) {
return t.split("")
}
,
l = function(t) {
return t.join("")
}
,
f = function(t) {
return t.split("").reverse().join("")
}
,
h = n(function(t, e) {
var n, i;
for (n = "",
i = 0; i < t; ++i)
n += e;
return n
}),
d = function(t) {
return t.charAt(0).toUpperCase() + t.slice(1)
}
,
p = function(t) {
return t.replace(/[-_]+(.)?/g, function(t, e) {
return (null != e ? e : "").toUpperCase()
})
}
,
v = function(t) {
return t.replace(/([^-A-Z])([A-Z]+)/g, function(t, e, n) {
return e + "-" + (n.length > 1 ? n : n.toLowerCase())
}).replace(/^([A-Z]+)/, function(t, e) {
return e.length > 1 ? e + "-" : e.toLowerCase()
})
}
,
t.exports = {
split: i,
join: r,
lines: o,
unlines: a,
words: s,
unwords: u,
chars: c,
unchars: l,
reverse: f,
repeat: h,
capitalize: d,
camelize: p,
dasherize: v
}
}
, function(t, e, n) {
var i, r;
(function(o) {
/*!
* typeahead.js 0.11.1
* https://github.com/twitter/typeahead.js
* Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT
*/
!function(o, a) {
i = [n(1)],
r = function(t) {
return a(t)
}
.apply(e, i),
!(void 0 !== r && (t.exports = r))
}(this, function(t) {
var e = function() {
"use strict";
return {
isMsie: function() {
return !!/(msie|trident)/i.test(navigator.userAgent) && navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]
},
isBlankString: function(t) {
return !t || /^\s*$/.test(t)
},
escapeRegExChars: function(t) {
return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")
},
isString: function(t) {
return "string" == typeof t
},
isNumber: function(t) {
return "number" == typeof t
},
isArray: t.isArray,
isFunction: t.isFunction,
isObject: t.isPlainObject,
isUndefined: function(t) {
return "undefined" == typeof t
},
isElement: function(t) {
return !(!t || 1 !== t.nodeType)
},
isJQuery: function(e) {
return e instanceof t
},
toStr: function(t) {
return e.isUndefined(t) || null === t ? "" : t + ""
},
bind: t.proxy,
each: function(e, n) {
function i(t, e) {
return n(e, t)
}
t.each(e, i)
},
map: t.map,
filter: t.grep,
every: function(e, n) {
var i = !0;
return e ? (t.each(e, function(t, r) {
if (!(i = n.call(null , r, t, e)))
return !1
}),
!!i) : i
},
some: function(e, n) {
var i = !1;
return e ? (t.each(e, function(t, r) {
if (i = n.call(null , r, t, e))
return !1
}),
!!i) : i
},
mixin: t.extend,
identity: function(t) {
return t
},
clone: function(e) {
return t.extend(!0, {}, e)
},
getIdGenerator: function() {
var t = 0;
return function() {
return t++
}
},
templatify: function(e) {
function n() {
return String(e)
}
return t.isFunction(e) ? e : n
},
defer: function(t) {
setTimeout(t, 0)
},
debounce: function(t, e, n) {
var i, r;
return function() {
var o, a, s = this, u = arguments;
return o = function() {
i = null ,
n || (r = t.apply(s, u))
}
,
a = n && !i,
clearTimeout(i),
i = setTimeout(o, e),
a && (r = t.apply(s, u)),
r
}
},
throttle: function(t, e) {
var n, i, r, o, a, s;
return a = 0,
s = function() {
a = new Date,
r = null ,
o = t.apply(n, i)
}
,
function() {
var u = new Date
, c = e - (u - a);
return n = this,
i = arguments,
c <= 0 ? (clearTimeout(r),
r = null ,
a = u,
o = t.apply(n, i)) : r || (r = setTimeout(s, c)),
o
}
},
stringify: function(t) {
return e.isString(t) ? t : JSON.stringify(t)
},
noop: function() {}
}
}()
, n = function() {
"use strict";
function t(t) {
var a, s;
return s = e.mixin({}, o, t),
a = {
css: r(),
classes: s,
html: n(s),
selectors: i(s)
},
{
css: a.css,
html: a.html,
classes: a.classes,
selectors: a.selectors,
mixin: function(t) {
e.mixin(t, a)
}
}
}
function n(t) {
return {
wrapper: '<span class="' + t.wrapper + '"></span>',
menu: '<div class="' + t.menu + '"></div>'
}
}
function i(t) {
var n = {};
return e.each(t, function(t, e) {
n[e] = "." + t
}),
n
}
function r() {
var t = {
wrapper: {
position: "relative",
display: "inline-block"
},
hint: {
position: "absolute",
top: "0",
left: "0",
borderColor: "transparent",
boxShadow: "none",
opacity: "1"
},
input: {
position: "relative",
verticalAlign: "top",
backgroundColor: "transparent"
},
inputWithNoHint: {
position: "relative",
verticalAlign: "top"
},
menu: {
position: "absolute",
top: "100%",
left: "0",
zIndex: "100",
display: "none"
},
ltr: {
left: "0",
right: "auto"
},
rtl: {
left: "auto",
right: " 0"
}
};
return e.isMsie() && e.mixin(t.input, {
backgroundImage: "url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"
}),
t
}
var o = {
wrapper: "twitter-typeahead",
input: "tt-input",
hint: "tt-hint",
menu: "tt-menu",
dataset: "tt-dataset",
suggestion: "tt-suggestion",
selectable: "tt-selectable",
empty: "tt-empty",
open: "tt-open",
cursor: "tt-cursor",
highlight: "tt-highlight"
};
return t
}()
, i = function() {
"use strict";
function n(e) {
e && e.el || t.error("EventBus initialized without el"),
this.$el = t(e.el)
}
var i, r;
return i = "typeahead:",
r = {
render: "rendered",
cursorchange: "cursorchanged",
select: "selected",
autocomplete: "autocompleted"
},
e.mixin(n.prototype, {
_trigger: function(e, n) {
var r;
return r = t.Event(i + e),
(n = n || []).unshift(r),
this.$el.trigger.apply(this.$el, n),
r
},
before: function(t) {
var e, n;
return e = [].slice.call(arguments, 1),
n = this._trigger("before" + t, e),
n.isDefaultPrevented()
},
trigger: function(t) {
var e;
this._trigger(t, [].slice.call(arguments, 1)),
(e = r[t]) && this._trigger(e, [].slice.call(arguments, 1))
}
}),
n
}()
, r = function() {
"use strict";
function t(t, e, n, i) {
var r;
if (!n)
return this;
for (e = e.split(c),
n = i ? u(n, i) : n,
this._callbacks = this._callbacks || {}; r = e.shift(); )
this._callbacks[r] = this._callbacks[r] || {
sync: [],
async: []
},
this._callbacks[r][t].push(n);
return this
}
function e(e, n, i) {
return t.call(this, "async", e, n, i)
}
function n(e, n, i) {
return t.call(this, "sync", e, n, i)
}
function i(t) {
var e;
if (!this._callbacks)
return this;
for (t = t.split(c); e = t.shift(); )
delete this._callbacks[e];
return this
}
function r(t) {
var e, n, i, r, o;
if (!this._callbacks)
return this;
for (t = t.split(c),
i = [].slice.call(arguments, 1); (e = t.shift()) && (n = this._callbacks[e]); )
r = a(n.sync, this, [e].concat(i)),
o = a(n.async, this, [e].concat(i)),
r() && l(o);
return this
}
function a(t, e, n) {
function i() {
for (var i, r = 0, o = t.length; !i && r < o; r += 1)
i = t[r].apply(e, n) === !1;
return !i
}
return i
}
function s() {
var t;
return t = window.setImmediate ? function(t) {
o(function() {
t()
})
}
: function(t) {
setTimeout(function() {
t()
}, 0)
}
}
function u(t, e) {
return t.bind ? t.bind(e) : function() {
t.apply(e, [].slice.call(arguments, 0))
}
}
var c = /\s+/
, l = s();
return {
onSync: n,
onAsync: e,
off: i,
trigger: r
}
}()
, a = function(t) {
"use strict";
function n(t, n, i) {
for (var r, o = [], a = 0, s = t.length; a < s; a++)
o.push(e.escapeRegExChars(t[a]));
return r = i ? "\\b(" + o.join("|") + ")\\b" : "(" + o.join("|") + ")",
n ? new RegExp(r) : new RegExp(r,"i")
}
var i = {
node: null ,
pattern: null ,
tagName: "strong",
className: null ,
wordsOnly: !1,
caseSensitive: !1
};
return function(r) {
function o(e) {
var n, i, o;
return (n = s.exec(e.data)) && (o = t.createElement(r.tagName),
r.className && (o.className = r.className),
i = e.splitText(n.index),
i.splitText(n[0].length),
o.appendChild(i.cloneNode(!0)),
e.parentNode.replaceChild(o, i)),
!!n
}
function a(t, e) {
for (var n, i = 3, r = 0; r < t.childNodes.length; r++)
n = t.childNodes[r],
n.nodeType === i ? r += e(n) ? 1 : 0 : a(n, e)
}
var s;
r = e.mixin({}, i, r),
r.node && r.pattern && (r.pattern = e.isArray(r.pattern) ? r.pattern : [r.pattern],
s = n(r.pattern, r.caseSensitive, r.wordsOnly),
a(r.node, o))
}
}(window.document)
, s = function() {
"use strict";
function n(n, r) {
n = n || {},
n.input || t.error("input is missing"),
r.mixin(this),
this.$hint = t(n.hint),
this.$input = t(n.input),
this.query = this.$input.val(),
this.queryWhenFocused = this.hasFocus() ? this.query : null ,
this.$overflowHelper = i(this.$input),
this._checkLanguageDirection(),
0 === this.$hint.length && (this.setHint = this.getHint = this.clearHint = this.clearHintIfInvalid = e.noop)
}
function i(e) {
return t('<pre aria-hidden="true"></pre>').css({
position: "absolute",
visibility: "hidden",
whiteSpace: "pre",
fontFamily: e.css("font-family"),
fontSize: e.css("font-size"),
fontStyle: e.css("font-style"),
fontVariant: e.css("font-variant"),
fontWeight: e.css("font-weight"),
wordSpacing: e.css("word-spacing"),
letterSpacing: e.css("letter-spacing"),
textIndent: e.css("text-indent"),
textRendering: e.css("text-rendering"),
textTransform: e.css("text-transform")
}).insertAfter(e)
}
function o(t, e) {
return n.normalizeQuery(t) === n.normalizeQuery(e)
}
function a(t) {
return t.altKey || t.ctrlKey || t.metaKey || t.shiftKey
}
var s;
return s = {
9: "tab",
27: "esc",
37: "left",
39: "right",
13: "enter",
38: "up",
40: "down"
},
n.normalizeQuery = function(t) {
return e.toStr(t).replace(/^\s*/g, "").replace(/\s{2,}/g, " ")
}
,
e.mixin(n.prototype, r, {
_onBlur: function() {
this.resetInputValue(),
this.trigger("blurred")
},
_onFocus: function() {
this.queryWhenFocused = this.query,
this.trigger("focused")
},
_onKeydown: function(t) {
var e = s[t.which || t.keyCode];
this._managePreventDefault(e, t),
e && this._shouldTrigger(e, t) && this.trigger(e + "Keyed", t)
},
_onInput: function() {
this._setQuery(this.getInputValue()),
this.clearHintIfInvalid(),
this._checkLanguageDirection()
},
_managePreventDefault: function(t, e) {
var n;
switch (t) {
case "up":
case "down":
n = !a(e);
break;
default:
n = !1
}
n && e.preventDefault()
},
_shouldTrigger: function(t, e) {
var n;
switch (t) {
case "tab":
n = !a(e);
break;
default:
n = !0
}
return n
},
_checkLanguageDirection: function() {
var t = (this.$input.css("direction") || "ltr").toLowerCase();
this.dir !== t && (this.dir = t,
this.$hint.attr("dir", t),
this.trigger("langDirChanged", t))
},
_setQuery: function(t, e) {
var n, i;
n = o(t, this.query),
i = !!n && this.query.length !== t.length,
this.query = t,
e || n ? !e && i && this.trigger("whitespaceChanged", this.query) : this.trigger("queryChanged", this.query)
},
bind: function() {
var t, n, i, r, o = this;
return t = e.bind(this._onBlur, this),
n = e.bind(this._onFocus, this),
i = e.bind(this._onKeydown, this),
r = e.bind(this._onInput, this),
this.$input.on("blur.tt", t).on("focus.tt", n).on("keydown.tt", i),
!e.isMsie() || e.isMsie() > 9 ? this.$input.on("input.tt", r) : this.$input.on("keydown.tt keypress.tt cut.tt paste.tt", function(t) {
s[t.which || t.keyCode] || e.defer(e.bind(o._onInput, o, t))
}),
this
},
focus: function() {
this.$input.focus()
},
blur: function() {
this.$input.blur()
},
getLangDir: function() {
return this.dir
},
getQuery: function() {
return this.query || ""
},
setQuery: function(t, e) {
this.setInputValue(t),
this._setQuery(t, e)
},
hasQueryChangedSinceLastFocus: function() {
return this.query !== this.queryWhenFocused
},
getInputValue: function() {
return this.$input.val()
},
setInputValue: function(t) {
this.$input.val(t),
this.clearHintIfInvalid(),
this._checkLanguageDirection()
},
resetInputValue: function() {
this.setInputValue(this.query)
},
getHint: function() {
return this.$hint.val()
},
setHint: function(t) {
this.$hint.val(t)
},
clearHint: function() {
this.setHint("")
},
clearHintIfInvalid: function() {
var t, e, n, i;
t = this.getInputValue(),
e = this.getHint(),
n = t !== e && 0 === e.indexOf(t),
i = "" !== t && n && !this.hasOverflow(),
!i && this.clearHint()
},
hasFocus: function() {
return this.$input.is(":focus")
},
hasOverflow: function() {
var t = this.$input.width() - 2;
return this.$overflowHelper.text(this.getInputValue()),
this.$overflowHelper.width() >= t
},
isCursorAtEnd: function() {
var t, n, i;
return t = this.$input.val().length,
n = this.$input[0].selectionStart,
e.isNumber(n) ? n === t : !document.selection || (i = document.selection.createRange(),
i.moveStart("character", -t),
t === i.text.length)
},
destroy: function() {
this.$hint.off(".tt"),
this.$input.off(".tt"),
this.$overflowHelper.remove(),
this.$hint = this.$input = this.$overflowHelper = t("<div>")
}
}),
n
}()
, u = function() {
"use strict";
function n(n, r) {
n = n || {},
n.templates = n.templates || {},
n.templates.notFound = n.templates.notFound || n.templates.empty,
n.source || t.error("missing source"),
n.node || t.error("missing node"),
n.name && !s(n.name) && t.error("invalid dataset name: " + n.name),
r.mixin(this),
this.highlight = !!n.highlight,
this.name = n.name || c(),
this.limit = n.limit || 5,
this.displayFn = i(n.display || n.displayKey),
this.templates = o(n.templates, this.displayFn),
this.source = n.source.__ttAdapter ? n.source.__ttAdapter() : n.source,
this.async = e.isUndefined(n.async) ? this.source.length > 2 : !!n.async,
this._resetLastSuggestion(),
this.$el = t(n.node).addClass(this.classes.dataset).addClass(this.classes.dataset + "-" + this.name)
}
function i(t) {
function n(e) {
return e[t]
}
return t = t || e.stringify,
e.isFunction(t) ? t : n
}
function o(n, i) {
function r(e) {
return t("<div>").text(i(e))
}
return {
notFound: n.notFound && e.templatify(n.notFound),
pending: n.pending && e.templatify(n.pending),
header: n.header && e.templatify(n.header),
footer: n.footer && e.templatify(n.footer),
suggestion: n.suggestion || r
}
}
function s(t) {
return /^[_a-zA-Z0-9-]+$/.test(t)
}
var u, c;
return u = {
val: "tt-selectable-display",
obj: "tt-selectable-object"
},
c = e.getIdGenerator(),
n.extractData = function(e) {
var n = t(e);
return n.data(u.obj) ? {
val: n.data(u.val) || "",
obj: n.data(u.obj) || null
} : null
}
,
e.mixin(n.prototype, r, {
_overwrite: function(t, e) {
e = e || [],
e.length ? this._renderSuggestions(t, e) : this.async && this.templates.pending ? this._renderPending(t) : !this.async && this.templates.notFound ? this._renderNotFound(t) : this._empty(),
this.trigger("rendered", this.name, e, !1)
},
_append: function(t, e) {
e = e || [],
e.length && this.$lastSuggestion.length ? this._appendSuggestions(t, e) : e.length ? this._renderSuggestions(t, e) : !this.$lastSuggestion.length && this.templates.notFound && this._renderNotFound(t),
this.trigger("rendered", this.name, e, !0)
},
_renderSuggestions: function(t, e) {
var n;
n = this._getSuggestionsFragment(t, e),
this.$lastSuggestion = n.children().last(),
this.$el.html(n).prepend(this._getHeader(t, e)).append(this._getFooter(t, e))
},
_appendSuggestions: function(t, e) {
var n, i;
n = this._getSuggestionsFragment(t, e),
i = n.children().last(),
this.$lastSuggestion.after(n),
this.$lastSuggestion = i
},
_renderPending: function(t) {
var e = this.templates.pending;
this._resetLastSuggestion(),
e && this.$el.html(e({
query: t,
dataset: this.name
}))
},
_renderNotFound: function(t) {
var e = this.templates.notFound;
this._resetLastSuggestion(),
e && this.$el.html(e({
query: t,
dataset: this.name
}))
},
_empty: function() {
this.$el.empty(),
this._resetLastSuggestion()
},
_getSuggestionsFragment: function(n, i) {
var r, o = this;
return r = document.createDocumentFragment(),
e.each(i, function(e) {
var i, a;
a = o._injectQuery(n, e),
i = t(o.templates.suggestion(a)).data(u.obj, e).data(u.val, o.displayFn(e)).addClass(o.classes.suggestion + " " + o.classes.selectable),
r.appendChild(i[0])
}),
this.highlight && a({
className: this.classes.highlight,
node: r,
pattern: n
}),
t(r)
},
_getFooter: function(t, e) {
return this.templates.footer ? this.templates.footer({
query: t,
suggestions: e,
dataset: this.name
}) : null
},
_getHeader: function(t, e) {
return this.templates.header ? this.templates.header({
query: t,
suggestions: e,
dataset: this.name
}) : null
},
_resetLastSuggestion: function() {
this.$lastSuggestion = t()
},
_injectQuery: function(t, n) {
return e.isObject(n) ? e.mixin({
_query: t
}, n) : n
},
update: function(e) {
function n(t) {
a || (a = !0,
t = (t || []).slice(0, r.limit),
s = t.length,
r._overwrite(e, t),
s < r.limit && r.async && r.trigger("asyncRequested", e))
}
function i(n) {
n = n || [],
!o && s < r.limit && (r.cancel = t.noop,
s += n.length,
r._append(e, n.slice(0, r.limit - s)),
r.async && r.trigger("asyncReceived", e))
}
var r = this
, o = !1
, a = !1
, s = 0;
this.cancel(),
this.cancel = function() {
o = !0,
r.cancel = t.noop,
r.async && r.trigger("asyncCanceled", e)
}
,
this.source(e, n, i),
!a && n([])
},
cancel: t.noop,
clear: function() {
this._empty(),
this.cancel(),
this.trigger("cleared")
},
isEmpty: function() {
return this.$el.is(":empty")
},
destroy: function() {
this.$el = t("<div>")
}
}),
n
}()
, c = function() {
"use strict";
function n(n, i) {
function r(e) {
var n = o.$node.find(e.node).first();
return e.node = n.length ? n : t("<div>").appendTo(o.$node),
new u(e,i)
}
var o = this;
n = n || {},
n.node || t.error("node is required"),
i.mixin(this),
this.$node = t(n.node),
this.query = null ,
this.datasets = e.map(n.datasets, r)
}
return e.mixin(n.prototype, r, {
_onSelectableClick: function(e) {
this.trigger("selectableClicked", t(e.currentTarget))
},
_onRendered: function(t, e, n, i) {
this.$node.toggleClass(this.classes.empty, this._allDatasetsEmpty()),
this.trigger("datasetRendered", e, n, i)
},
_onCleared: function() {
this.$node.toggleClass(this.classes.empty, this._allDatasetsEmpty()),
this.trigger("datasetCleared")
},
_propagate: function() {
this.trigger.apply(this, arguments)
},
_allDatasetsEmpty: function() {
function t(t) {
return t.isEmpty()
}
return e.every(this.datasets, t)
},
_getSelectables: function() {
return this.$node.find(this.selectors.selectable)
},
_removeCursor: function() {
var t = this.getActiveSelectable();
t && t.removeClass(this.classes.cursor)
},
_ensureVisible: function(t) {
var e, n, i, r;
e = t.position().top,
n = e + t.outerHeight(!0),
i = this.$node.scrollTop(),
r = this.$node.height() + parseInt(this.$node.css("paddingTop"), 10) + parseInt(this.$node.css("paddingBottom"), 10),
e < 0 ? this.$node.scrollTop(i + e) : r < n && this.$node.scrollTop(i + (n - r))
},
bind: function() {
var t, n = this;
return t = e.bind(this._onSelectableClick, this),
this.$node.on("click.tt", this.selectors.selectable, t),
e.each(this.datasets, function(t) {
t.onSync("asyncRequested", n._propagate, n).onSync("asyncCanceled", n._propagate, n).onSync("asyncReceived", n._propagate, n).onSync("rendered", n._onRendered, n).onSync("cleared", n._onCleared, n)
}),
this
},
isOpen: function() {
return this.$node.hasClass(this.classes.open)
},
open: function() {
this.$node.addClass(this.classes.open)
},
close: function() {
this.$node.removeClass(this.classes.open),
this._removeCursor()
},
setLanguageDirection: function(t) {
this.$node.attr("dir", t)
},
selectableRelativeToCursor: function(t) {
var e, n, i, r;
return n = this.getActiveSelectable(),
e = this._getSelectables(),
i = n ? e.index(n) : -1,
r = i + t,
r = (r + 1) % (e.length + 1) - 1,
r = r < -1 ? e.length - 1 : r,
r === -1 ? null : e.eq(r)
},
setCursor: function(t) {
this._removeCursor(),
(t = t && t.first()) && (t.addClass(this.classes.cursor),
this._ensureVisible(t))
},
getSelectableData: function(t) {
return t && t.length ? u.extractData(t) : null
},
getActiveSelectable: function() {
var t = this._getSelectables().filter(this.selectors.cursor).first();
return t.length ? t : null
},
getTopSelectable: function() {
var t = this._getSelectables().first();
return t.length ? t : null
},
update: function(t) {
function n(e) {
e.update(t)
}
var i = t !== this.query;
return i && (this.query = t,
e.each(this.datasets, n)),
i
},
empty: function() {
function t(t) {
t.clear()
}
e.each(this.datasets, t),
this.query = null ,
this.$node.addClass(this.classes.empty)
},
destroy: function() {
function n(t) {
t.destroy()
}
this.$node.off(".tt"),
this.$node = t("<div>"),
e.each(this.datasets, n)
}
}),
n
}()
, l = function() {
"use strict";
function t() {
c.apply(this, [].slice.call(arguments, 0))
}
var n = c.prototype;
return e.mixin(t.prototype, c.prototype, {
open: function() {
return !this._allDatasetsEmpty() && this._show(),
n.open.apply(this, [].slice.call(arguments, 0))
},
close: function() {
return this._hide(),
n.close.apply(this, [].slice.call(arguments, 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment