docs-panacea-jekyll-theme 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -0
- data/README.md +47 -0
- data/_layouts/default.html +100 -0
- data/assets/.DS_Store +0 -0
- data/assets/css/asciidoctor.css +398 -0
- data/assets/css/coderay.css +90 -0
- data/assets/css/font-awesome.css +1801 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/css/foundation.css +8545 -0
- data/assets/css/foundation.min.css +8331 -0
- data/assets/css/normalize.css +427 -0
- data/assets/images/header-page.png +0 -0
- data/assets/images/logo-panacea.svg +147 -0
- data/assets/js/foundation.min.js +6069 -0
- data/assets/js/foundation/foundation.abide.js +325 -0
- data/assets/js/foundation/foundation.accordion.js +71 -0
- data/assets/js/foundation/foundation.alert.js +46 -0
- data/assets/js/foundation/foundation.clearing.js +573 -0
- data/assets/js/foundation/foundation.dropdown.js +444 -0
- data/assets/js/foundation/foundation.equalizer.js +77 -0
- data/assets/js/foundation/foundation.interchange.js +349 -0
- data/assets/js/foundation/foundation.joyride.js +939 -0
- data/assets/js/foundation/foundation.js +691 -0
- data/assets/js/foundation/foundation.magellan.js +199 -0
- data/assets/js/foundation/foundation.offcanvas.js +154 -0
- data/assets/js/foundation/foundation.orbit.js +512 -0
- data/assets/js/foundation/foundation.reveal.js +455 -0
- data/assets/js/foundation/foundation.slider.js +268 -0
- data/assets/js/foundation/foundation.tab.js +221 -0
- data/assets/js/foundation/foundation.tooltip.js +301 -0
- data/assets/js/foundation/foundation.topbar.js +444 -0
- data/assets/js/toc.js +82 -0
- data/assets/js/vendor/fastclick.js +169 -0
- data/assets/js/vendor/jquery.cookie.js +57 -0
- data/assets/js/vendor/jquery.js +2339 -0
- data/assets/js/vendor/modernizr.js +304 -0
- data/assets/js/vendor/placeholder.js +75 -0
- metadata +39 -2
data/assets/js/toc.js
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
// https://github.com/ghiculescu/jekyll-table-of-contents
|
2
|
+
(function($){
|
3
|
+
$.fn.toc = function(options) {
|
4
|
+
var defaults = {
|
5
|
+
noBackToTopLinks: false,
|
6
|
+
title: '<i>Jump to...</i>',
|
7
|
+
minimumHeaders: 3,
|
8
|
+
headers: 'h1, h2, h3, h4, h5, h6',
|
9
|
+
listType: 'ol', // values: [ol|ul]
|
10
|
+
showEffect: 'show', // values: [show|slideDown|fadeIn|none]
|
11
|
+
showSpeed: 'slow' // set to 0 to deactivate effect
|
12
|
+
},
|
13
|
+
settings = $.extend(defaults, options);
|
14
|
+
|
15
|
+
var headers = $(settings.headers).filter(function() {
|
16
|
+
// get all headers with an ID
|
17
|
+
var previousSiblingName = $(this).prev().attr( "name" );
|
18
|
+
if (!this.id && previousSiblingName) {
|
19
|
+
this.id = $(this).attr( "id", previousSiblingName.replace(/\./g, "-") );
|
20
|
+
}
|
21
|
+
return this.id;
|
22
|
+
}), output = $(this);
|
23
|
+
if (!headers.length || headers.length < settings.minimumHeaders || !output.length) {
|
24
|
+
return;
|
25
|
+
}
|
26
|
+
|
27
|
+
if (0 === settings.showSpeed) {
|
28
|
+
settings.showEffect = 'none';
|
29
|
+
}
|
30
|
+
|
31
|
+
var render = {
|
32
|
+
show: function() { output.hide().html(html).show(settings.showSpeed); },
|
33
|
+
slideDown: function() { output.hide().html(html).slideDown(settings.showSpeed); },
|
34
|
+
fadeIn: function() { output.hide().html(html).fadeIn(settings.showSpeed); },
|
35
|
+
none: function() { output.html(html); }
|
36
|
+
};
|
37
|
+
|
38
|
+
var get_level = function(ele) { return parseInt(ele.nodeName.replace("H", ""), 10); }
|
39
|
+
var highest_level = headers.map(function(_, ele) { return get_level(ele); }).get().sort()[0];
|
40
|
+
var return_to_top = '<i class="icon-arrow-up back-to-top"> </i>';
|
41
|
+
|
42
|
+
var level = get_level(headers[0]),
|
43
|
+
this_level,
|
44
|
+
html = settings.title + " <"+settings.listType+">";
|
45
|
+
headers.on('click', function() {
|
46
|
+
if (!settings.noBackToTopLinks) {
|
47
|
+
window.location.hash = this.id;
|
48
|
+
}
|
49
|
+
})
|
50
|
+
.addClass('clickable-header')
|
51
|
+
.each(function(_, header) {
|
52
|
+
this_level = get_level(header);
|
53
|
+
if (!settings.noBackToTopLinks && this_level === highest_level) {
|
54
|
+
$(header).addClass('top-level-header').after(return_to_top);
|
55
|
+
}
|
56
|
+
if (this_level === level) // same level as before; same indenting
|
57
|
+
html += "<li><a href='#" + header.id + "'>" + header.innerHTML + "</a>";
|
58
|
+
else if (this_level <= level){ // higher level than before; end parent ol
|
59
|
+
for(i = this_level; i < level; i++) {
|
60
|
+
html += "</li></"+settings.listType+">"
|
61
|
+
}
|
62
|
+
html += "<li><a href='#" + header.id + "'>" + header.innerHTML + "</a>";
|
63
|
+
}
|
64
|
+
else if (this_level > level) { // lower level than before; expand the previous to contain a ol
|
65
|
+
for(i = this_level; i > level; i--) {
|
66
|
+
html += "<"+settings.listType+"><li>"
|
67
|
+
}
|
68
|
+
html += "<a href='#" + header.id + "'>" + header.innerHTML + "</a>";
|
69
|
+
}
|
70
|
+
level = this_level; // update for the next one
|
71
|
+
});
|
72
|
+
html += "</"+settings.listType+">";
|
73
|
+
if (!settings.noBackToTopLinks) {
|
74
|
+
$(document).on('click', '.back-to-top', function() {
|
75
|
+
$(window).scrollTop(0);
|
76
|
+
window.location.hash = '';
|
77
|
+
});
|
78
|
+
}
|
79
|
+
|
80
|
+
render[settings.showEffect]();
|
81
|
+
};
|
82
|
+
})(jQuery);
|
@@ -0,0 +1,169 @@
|
|
1
|
+
/**
|
2
|
+
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
|
3
|
+
*
|
4
|
+
* @version 1.0.3
|
5
|
+
* @codingstandard ftlabs-jsv2
|
6
|
+
* @copyright The Financial Times Limited [All Rights Reserved]
|
7
|
+
* @license MIT License (see LICENSE.txt)
|
8
|
+
*/
|
9
|
+
function FastClick(a, b) {
|
10
|
+
"use strict";
|
11
|
+
function c(a, b) {
|
12
|
+
return function () {
|
13
|
+
return a.apply(b, arguments)
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
var d;
|
18
|
+
if (b = b || {}, this.trackingClick = !1, this.trackingClickStart = 0, this.targetElement = null, this.touchStartX = 0, this.touchStartY = 0, this.lastTouchIdentifier = 0, this.touchBoundary = b.touchBoundary || 10, this.layer = a, this.tapDelay = b.tapDelay || 200, !FastClick.notNeeded(a)) {
|
19
|
+
for (var e = ["onMouse", "onClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel"], f = this, g = 0, h = e.length; h > g; g++)f[e[g]] = c(f[e[g]], f);
|
20
|
+
deviceIsAndroid && (a.addEventListener("mouseover", this.onMouse, !0), a.addEventListener("mousedown", this.onMouse, !0), a.addEventListener("mouseup", this.onMouse, !0)), a.addEventListener("click", this.onClick, !0), a.addEventListener("touchstart", this.onTouchStart, !1), a.addEventListener("touchmove", this.onTouchMove, !1), a.addEventListener("touchend", this.onTouchEnd, !1), a.addEventListener("touchcancel", this.onTouchCancel, !1), Event.prototype.stopImmediatePropagation || (a.removeEventListener = function (b, c, d) {
|
21
|
+
var e = Node.prototype.removeEventListener;
|
22
|
+
"click" === b ? e.call(a, b, c.hijacked || c, d) : e.call(a, b, c, d)
|
23
|
+
}, a.addEventListener = function (b, c, d) {
|
24
|
+
var e = Node.prototype.addEventListener;
|
25
|
+
"click" === b ? e.call(a, b, c.hijacked || (c.hijacked = function (a) {
|
26
|
+
a.propagationStopped || c(a)
|
27
|
+
}), d) : e.call(a, b, c, d)
|
28
|
+
}), "function" == typeof a.onclick && (d = a.onclick, a.addEventListener("click", function (a) {
|
29
|
+
d(a)
|
30
|
+
}, !1), a.onclick = null)
|
31
|
+
}
|
32
|
+
}
|
33
|
+
var deviceIsAndroid = navigator.userAgent.indexOf("Android") > 0, deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent), deviceIsIOS4 = deviceIsIOS && /OS 4_\d(_\d)?/.test(navigator.userAgent), deviceIsIOSWithBadTarget = deviceIsIOS && /OS ([6-9]|\d{2})_\d/.test(navigator.userAgent), deviceIsBlackBerry10 = navigator.userAgent.indexOf("BB10") > 0;
|
34
|
+
FastClick.prototype.needsClick = function (a) {
|
35
|
+
"use strict";
|
36
|
+
switch (a.nodeName.toLowerCase()) {
|
37
|
+
case"button":
|
38
|
+
case"select":
|
39
|
+
case"textarea":
|
40
|
+
if (a.disabled)return !0;
|
41
|
+
break;
|
42
|
+
case"input":
|
43
|
+
if (deviceIsIOS && "file" === a.type || a.disabled)return !0;
|
44
|
+
break;
|
45
|
+
case"label":
|
46
|
+
case"video":
|
47
|
+
return !0
|
48
|
+
}
|
49
|
+
return /\bneedsclick\b/.test(a.className)
|
50
|
+
}, FastClick.prototype.needsFocus = function (a) {
|
51
|
+
"use strict";
|
52
|
+
switch (a.nodeName.toLowerCase()) {
|
53
|
+
case"textarea":
|
54
|
+
return !0;
|
55
|
+
case"select":
|
56
|
+
return !deviceIsAndroid;
|
57
|
+
case"input":
|
58
|
+
switch (a.type) {
|
59
|
+
case"button":
|
60
|
+
case"checkbox":
|
61
|
+
case"file":
|
62
|
+
case"image":
|
63
|
+
case"radio":
|
64
|
+
case"submit":
|
65
|
+
return !1
|
66
|
+
}
|
67
|
+
return !a.disabled && !a.readOnly;
|
68
|
+
default:
|
69
|
+
return /\bneedsfocus\b/.test(a.className)
|
70
|
+
}
|
71
|
+
}, FastClick.prototype.sendClick = function (a, b) {
|
72
|
+
"use strict";
|
73
|
+
var c, d;
|
74
|
+
document.activeElement && document.activeElement !== a && document.activeElement.blur(), d = b.changedTouches[0], c = document.createEvent("MouseEvents"), c.initMouseEvent(this.determineEventType(a), !0, !0, window, 1, d.screenX, d.screenY, d.clientX, d.clientY, !1, !1, !1, !1, 0, null), c.forwardedTouchEvent = !0, a.dispatchEvent(c)
|
75
|
+
}, FastClick.prototype.determineEventType = function (a) {
|
76
|
+
"use strict";
|
77
|
+
return deviceIsAndroid && "select" === a.tagName.toLowerCase() ? "mousedown" : "click"
|
78
|
+
}, FastClick.prototype.focus = function (a) {
|
79
|
+
"use strict";
|
80
|
+
var b;
|
81
|
+
deviceIsIOS && a.setSelectionRange && 0 !== a.type.indexOf("date") && "time" !== a.type ? (b = a.value.length, a.setSelectionRange(b, b)) : a.focus()
|
82
|
+
}, FastClick.prototype.updateScrollParent = function (a) {
|
83
|
+
"use strict";
|
84
|
+
var b, c;
|
85
|
+
if (b = a.fastClickScrollParent, !b || !b.contains(a)) {
|
86
|
+
c = a;
|
87
|
+
do {
|
88
|
+
if (c.scrollHeight > c.offsetHeight) {
|
89
|
+
b = c, a.fastClickScrollParent = c;
|
90
|
+
break
|
91
|
+
}
|
92
|
+
c = c.parentElement
|
93
|
+
} while (c)
|
94
|
+
}
|
95
|
+
b && (b.fastClickLastScrollTop = b.scrollTop)
|
96
|
+
}, FastClick.prototype.getTargetElementFromEventTarget = function (a) {
|
97
|
+
"use strict";
|
98
|
+
return a.nodeType === Node.TEXT_NODE ? a.parentNode : a
|
99
|
+
}, FastClick.prototype.onTouchStart = function (a) {
|
100
|
+
"use strict";
|
101
|
+
var b, c, d;
|
102
|
+
if (a.targetTouches.length > 1)return !0;
|
103
|
+
if (b = this.getTargetElementFromEventTarget(a.target), c = a.targetTouches[0], deviceIsIOS) {
|
104
|
+
if (d = window.getSelection(), d.rangeCount && !d.isCollapsed)return !0;
|
105
|
+
if (!deviceIsIOS4) {
|
106
|
+
if (c.identifier && c.identifier === this.lastTouchIdentifier)return a.preventDefault(), !1;
|
107
|
+
this.lastTouchIdentifier = c.identifier, this.updateScrollParent(b)
|
108
|
+
}
|
109
|
+
}
|
110
|
+
return this.trackingClick = !0, this.trackingClickStart = a.timeStamp, this.targetElement = b, this.touchStartX = c.pageX, this.touchStartY = c.pageY, a.timeStamp - this.lastClickTime < this.tapDelay && a.preventDefault(), !0
|
111
|
+
}, FastClick.prototype.touchHasMoved = function (a) {
|
112
|
+
"use strict";
|
113
|
+
var b = a.changedTouches[0], c = this.touchBoundary;
|
114
|
+
return Math.abs(b.pageX - this.touchStartX) > c || Math.abs(b.pageY - this.touchStartY) > c ? !0 : !1
|
115
|
+
}, FastClick.prototype.onTouchMove = function (a) {
|
116
|
+
"use strict";
|
117
|
+
return this.trackingClick ? ((this.targetElement !== this.getTargetElementFromEventTarget(a.target) || this.touchHasMoved(a)) && (this.trackingClick = !1, this.targetElement = null), !0) : !0
|
118
|
+
}, FastClick.prototype.findControl = function (a) {
|
119
|
+
"use strict";
|
120
|
+
return void 0 !== a.control ? a.control : a.htmlFor ? document.getElementById(a.htmlFor) : a.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")
|
121
|
+
}, FastClick.prototype.onTouchEnd = function (a) {
|
122
|
+
"use strict";
|
123
|
+
var b, c, d, e, f, g = this.targetElement;
|
124
|
+
if (!this.trackingClick)return !0;
|
125
|
+
if (a.timeStamp - this.lastClickTime < this.tapDelay)return this.cancelNextClick = !0, !0;
|
126
|
+
if (this.cancelNextClick = !1, this.lastClickTime = a.timeStamp, c = this.trackingClickStart, this.trackingClick = !1, this.trackingClickStart = 0, deviceIsIOSWithBadTarget && (f = a.changedTouches[0], g = document.elementFromPoint(f.pageX - window.pageXOffset, f.pageY - window.pageYOffset) || g, g.fastClickScrollParent = this.targetElement.fastClickScrollParent), d = g.tagName.toLowerCase(), "label" === d) {
|
127
|
+
if (b = this.findControl(g)) {
|
128
|
+
if (this.focus(g), deviceIsAndroid)return !1;
|
129
|
+
g = b
|
130
|
+
}
|
131
|
+
} else if (this.needsFocus(g))return a.timeStamp - c > 100 || deviceIsIOS && window.top !== window && "input" === d ? (this.targetElement = null, !1) : (this.focus(g), this.sendClick(g, a), deviceIsIOS && "select" === d || (this.targetElement = null, a.preventDefault()), !1);
|
132
|
+
return deviceIsIOS && !deviceIsIOS4 && (e = g.fastClickScrollParent, e && e.fastClickLastScrollTop !== e.scrollTop) ? !0 : (this.needsClick(g) || (a.preventDefault(), this.sendClick(g, a)), !1)
|
133
|
+
}, FastClick.prototype.onTouchCancel = function () {
|
134
|
+
"use strict";
|
135
|
+
this.trackingClick = !1, this.targetElement = null
|
136
|
+
}, FastClick.prototype.onMouse = function (a) {
|
137
|
+
"use strict";
|
138
|
+
return this.targetElement ? a.forwardedTouchEvent ? !0 : a.cancelable && (!this.needsClick(this.targetElement) || this.cancelNextClick) ? (a.stopImmediatePropagation ? a.stopImmediatePropagation() : a.propagationStopped = !0, a.stopPropagation(), a.preventDefault(), !1) : !0 : !0
|
139
|
+
}, FastClick.prototype.onClick = function (a) {
|
140
|
+
"use strict";
|
141
|
+
var b;
|
142
|
+
return this.trackingClick ? (this.targetElement = null, this.trackingClick = !1, !0) : "submit" === a.target.type && 0 === a.detail ? !0 : (b = this.onMouse(a), b || (this.targetElement = null), b)
|
143
|
+
}, FastClick.prototype.destroy = function () {
|
144
|
+
"use strict";
|
145
|
+
var a = this.layer;
|
146
|
+
deviceIsAndroid && (a.removeEventListener("mouseover", this.onMouse, !0), a.removeEventListener("mousedown", this.onMouse, !0), a.removeEventListener("mouseup", this.onMouse, !0)), a.removeEventListener("click", this.onClick, !0), a.removeEventListener("touchstart", this.onTouchStart, !1), a.removeEventListener("touchmove", this.onTouchMove, !1), a.removeEventListener("touchend", this.onTouchEnd, !1), a.removeEventListener("touchcancel", this.onTouchCancel, !1)
|
147
|
+
}, FastClick.notNeeded = function (a) {
|
148
|
+
"use strict";
|
149
|
+
var b, c, d;
|
150
|
+
if ("undefined" == typeof window.ontouchstart)return !0;
|
151
|
+
if (c = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1]) {
|
152
|
+
if (!deviceIsAndroid)return !0;
|
153
|
+
if (b = document.querySelector("meta[name=viewport]")) {
|
154
|
+
if (-1 !== b.content.indexOf("user-scalable=no"))return !0;
|
155
|
+
if (c > 31 && document.documentElement.scrollWidth <= window.outerWidth)return !0
|
156
|
+
}
|
157
|
+
}
|
158
|
+
if (deviceIsBlackBerry10 && (d = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/), d[1] >= 10 && d[2] >= 3 && (b = document.querySelector("meta[name=viewport]")))) {
|
159
|
+
if (-1 !== b.content.indexOf("user-scalable=no"))return !0;
|
160
|
+
if (document.documentElement.scrollWidth <= window.outerWidth)return !0
|
161
|
+
}
|
162
|
+
return "none" === a.style.msTouchAction ? !0 : !1
|
163
|
+
}, FastClick.attach = function (a, b) {
|
164
|
+
"use strict";
|
165
|
+
return new FastClick(a, b)
|
166
|
+
}, "function" == typeof define && "object" == typeof define.amd && define.amd ? define(function () {
|
167
|
+
"use strict";
|
168
|
+
return FastClick
|
169
|
+
}) : "undefined" != typeof module && module.exports ? (module.exports = FastClick.attach, module.exports.FastClick = FastClick) : window.FastClick = FastClick;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery Cookie Plugin v1.4.1
|
3
|
+
* https://github.com/carhartl/jquery-cookie
|
4
|
+
*
|
5
|
+
* Copyright 2013 Klaus Hartl
|
6
|
+
* Released under the MIT license
|
7
|
+
*/
|
8
|
+
!function (a) {
|
9
|
+
"function" == typeof define && define.amd ? define(["jquery"], a) : a("object" == typeof exports ? require("jquery") : jQuery)
|
10
|
+
}(function (a) {
|
11
|
+
function b(a) {
|
12
|
+
return h.raw ? a : encodeURIComponent(a)
|
13
|
+
}
|
14
|
+
|
15
|
+
function c(a) {
|
16
|
+
return h.raw ? a : decodeURIComponent(a)
|
17
|
+
}
|
18
|
+
|
19
|
+
function d(a) {
|
20
|
+
return b(h.json ? JSON.stringify(a) : String(a))
|
21
|
+
}
|
22
|
+
|
23
|
+
function e(a) {
|
24
|
+
0 === a.indexOf('"') && (a = a.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, "\\"));
|
25
|
+
try {
|
26
|
+
return a = decodeURIComponent(a.replace(g, " ")), h.json ? JSON.parse(a) : a
|
27
|
+
} catch (b) {
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
function f(b, c) {
|
32
|
+
var d = h.raw ? b : e(b);
|
33
|
+
return a.isFunction(c) ? c(d) : d
|
34
|
+
}
|
35
|
+
|
36
|
+
var g = /\+/g, h = a.cookie = function (e, g, i) {
|
37
|
+
if (void 0 !== g && !a.isFunction(g)) {
|
38
|
+
if (i = a.extend({}, h.defaults, i), "number" == typeof i.expires) {
|
39
|
+
var j = i.expires, k = i.expires = new Date;
|
40
|
+
k.setTime(+k + 864e5 * j)
|
41
|
+
}
|
42
|
+
return document.cookie = [b(e), "=", d(g), i.expires ? "; expires=" + i.expires.toUTCString() : "", i.path ? "; path=" + i.path : "", i.domain ? "; domain=" + i.domain : "", i.secure ? "; secure" : ""].join("")
|
43
|
+
}
|
44
|
+
for (var l = e ? void 0 : {}, m = document.cookie ? document.cookie.split("; ") : [], n = 0, o = m.length; o > n; n++) {
|
45
|
+
var p = m[n].split("="), q = c(p.shift()), r = p.join("=");
|
46
|
+
if (e && e === q) {
|
47
|
+
l = f(r, g);
|
48
|
+
break
|
49
|
+
}
|
50
|
+
e || void 0 === (r = f(r)) || (l[q] = r)
|
51
|
+
}
|
52
|
+
return l
|
53
|
+
};
|
54
|
+
h.defaults = {}, a.removeCookie = function (b, c) {
|
55
|
+
return void 0 === a.cookie(b) ? !1 : (a.cookie(b, "", a.extend({}, c, {expires: -1})), !a.cookie(b))
|
56
|
+
}
|
57
|
+
});
|
@@ -0,0 +1,2339 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery JavaScript Library v2.1.1
|
3
|
+
* http://jquery.com/
|
4
|
+
*
|
5
|
+
* Includes Sizzle.js
|
6
|
+
* http://sizzlejs.com/
|
7
|
+
*
|
8
|
+
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
|
9
|
+
* Released under the MIT license
|
10
|
+
* http://jquery.org/license
|
11
|
+
*
|
12
|
+
* Date: 2014-05-01T17:11Z
|
13
|
+
*/
|
14
|
+
!function (a, b) {
|
15
|
+
"object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function (a) {
|
16
|
+
if (!a.document)throw new Error("jQuery requires a window with a document");
|
17
|
+
return b(a)
|
18
|
+
} : b(a)
|
19
|
+
}("undefined" != typeof window ? window : this, function (a, b) {
|
20
|
+
function c(a) {
|
21
|
+
var b = a.length, c = _.type(a);
|
22
|
+
return "function" === c || _.isWindow(a) ? !1 : 1 === a.nodeType && b ? !0 : "array" === c || 0 === b || "number" == typeof b && b > 0 && b - 1 in a
|
23
|
+
}
|
24
|
+
|
25
|
+
function d(a, b, c) {
|
26
|
+
if (_.isFunction(b))return _.grep(a, function (a, d) {
|
27
|
+
return !!b.call(a, d, a) !== c
|
28
|
+
});
|
29
|
+
if (b.nodeType)return _.grep(a, function (a) {
|
30
|
+
return a === b !== c
|
31
|
+
});
|
32
|
+
if ("string" == typeof b) {
|
33
|
+
if (hb.test(b))return _.filter(b, a, c);
|
34
|
+
b = _.filter(b, a)
|
35
|
+
}
|
36
|
+
return _.grep(a, function (a) {
|
37
|
+
return U.call(b, a) >= 0 !== c
|
38
|
+
})
|
39
|
+
}
|
40
|
+
|
41
|
+
function e(a, b) {
|
42
|
+
for (; (a = a[b]) && 1 !== a.nodeType;);
|
43
|
+
return a
|
44
|
+
}
|
45
|
+
|
46
|
+
function f(a) {
|
47
|
+
var b = ob[a] = {};
|
48
|
+
return _.each(a.match(nb) || [], function (a, c) {
|
49
|
+
b[c] = !0
|
50
|
+
}), b
|
51
|
+
}
|
52
|
+
|
53
|
+
function g() {
|
54
|
+
Z.removeEventListener("DOMContentLoaded", g, !1), a.removeEventListener("load", g, !1), _.ready()
|
55
|
+
}
|
56
|
+
|
57
|
+
function h() {
|
58
|
+
Object.defineProperty(this.cache = {}, 0, {
|
59
|
+
get: function () {
|
60
|
+
return {}
|
61
|
+
}
|
62
|
+
}), this.expando = _.expando + Math.random()
|
63
|
+
}
|
64
|
+
|
65
|
+
function i(a, b, c) {
|
66
|
+
var d;
|
67
|
+
if (void 0 === c && 1 === a.nodeType)if (d = "data-" + b.replace(ub, "-$1").toLowerCase(), c = a.getAttribute(d), "string" == typeof c) {
|
68
|
+
try {
|
69
|
+
c = "true" === c ? !0 : "false" === c ? !1 : "null" === c ? null : +c + "" === c ? +c : tb.test(c) ? _.parseJSON(c) : c
|
70
|
+
} catch (e) {
|
71
|
+
}
|
72
|
+
sb.set(a, b, c)
|
73
|
+
} else c = void 0;
|
74
|
+
return c
|
75
|
+
}
|
76
|
+
|
77
|
+
function j() {
|
78
|
+
return !0
|
79
|
+
}
|
80
|
+
|
81
|
+
function k() {
|
82
|
+
return !1
|
83
|
+
}
|
84
|
+
|
85
|
+
function l() {
|
86
|
+
try {
|
87
|
+
return Z.activeElement
|
88
|
+
} catch (a) {
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
function m(a, b) {
|
93
|
+
return _.nodeName(a, "table") && _.nodeName(11 !== b.nodeType ? b : b.firstChild, "tr") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a
|
94
|
+
}
|
95
|
+
|
96
|
+
function n(a) {
|
97
|
+
return a.type = (null !== a.getAttribute("type")) + "/" + a.type, a
|
98
|
+
}
|
99
|
+
|
100
|
+
function o(a) {
|
101
|
+
var b = Kb.exec(a.type);
|
102
|
+
return b ? a.type = b[1] : a.removeAttribute("type"), a
|
103
|
+
}
|
104
|
+
|
105
|
+
function p(a, b) {
|
106
|
+
for (var c = 0, d = a.length; d > c; c++)rb.set(a[c], "globalEval", !b || rb.get(b[c], "globalEval"))
|
107
|
+
}
|
108
|
+
|
109
|
+
function q(a, b) {
|
110
|
+
var c, d, e, f, g, h, i, j;
|
111
|
+
if (1 === b.nodeType) {
|
112
|
+
if (rb.hasData(a) && (f = rb.access(a), g = rb.set(b, f), j = f.events)) {
|
113
|
+
delete g.handle, g.events = {};
|
114
|
+
for (e in j)for (c = 0, d = j[e].length; d > c; c++)_.event.add(b, e, j[e][c])
|
115
|
+
}
|
116
|
+
sb.hasData(a) && (h = sb.access(a), i = _.extend({}, h), sb.set(b, i))
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
function r(a, b) {
|
121
|
+
var c = a.getElementsByTagName ? a.getElementsByTagName(b || "*") : a.querySelectorAll ? a.querySelectorAll(b || "*") : [];
|
122
|
+
return void 0 === b || b && _.nodeName(a, b) ? _.merge([a], c) : c
|
123
|
+
}
|
124
|
+
|
125
|
+
function s(a, b) {
|
126
|
+
var c = b.nodeName.toLowerCase();
|
127
|
+
"input" === c && yb.test(a.type) ? b.checked = a.checked : ("input" === c || "textarea" === c) && (b.defaultValue = a.defaultValue)
|
128
|
+
}
|
129
|
+
|
130
|
+
function t(b, c) {
|
131
|
+
var d, e = _(c.createElement(b)).appendTo(c.body), f = a.getDefaultComputedStyle && (d = a.getDefaultComputedStyle(e[0])) ? d.display : _.css(e[0], "display");
|
132
|
+
return e.detach(), f
|
133
|
+
}
|
134
|
+
|
135
|
+
function u(a) {
|
136
|
+
var b = Z, c = Ob[a];
|
137
|
+
return c || (c = t(a, b), "none" !== c && c || (Nb = (Nb || _("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement), b = Nb[0].contentDocument, b.write(), b.close(), c = t(a, b), Nb.detach()), Ob[a] = c), c
|
138
|
+
}
|
139
|
+
|
140
|
+
function v(a, b, c) {
|
141
|
+
var d, e, f, g, h = a.style;
|
142
|
+
return c = c || Rb(a), c && (g = c.getPropertyValue(b) || c[b]), c && ("" !== g || _.contains(a.ownerDocument, a) || (g = _.style(a, b)), Qb.test(g) && Pb.test(b) && (d = h.width, e = h.minWidth, f = h.maxWidth, h.minWidth = h.maxWidth = h.width = g, g = c.width, h.width = d, h.minWidth = e, h.maxWidth = f)), void 0 !== g ? g + "" : g
|
143
|
+
}
|
144
|
+
|
145
|
+
function w(a, b) {
|
146
|
+
return {
|
147
|
+
get: function () {
|
148
|
+
return a() ? void delete this.get : (this.get = b).apply(this, arguments)
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
function x(a, b) {
|
154
|
+
if (b in a)return b;
|
155
|
+
for (var c = b[0].toUpperCase() + b.slice(1), d = b, e = Xb.length; e--;)if (b = Xb[e] + c, b in a)return b;
|
156
|
+
return d
|
157
|
+
}
|
158
|
+
|
159
|
+
function y(a, b, c) {
|
160
|
+
var d = Tb.exec(b);
|
161
|
+
return d ? Math.max(0, d[1] - (c || 0)) + (d[2] || "px") : b
|
162
|
+
}
|
163
|
+
|
164
|
+
function z(a, b, c, d, e) {
|
165
|
+
for (var f = c === (d ? "border" : "content") ? 4 : "width" === b ? 1 : 0, g = 0; 4 > f; f += 2)"margin" === c && (g += _.css(a, c + wb[f], !0, e)), d ? ("content" === c && (g -= _.css(a, "padding" + wb[f], !0, e)), "margin" !== c && (g -= _.css(a, "border" + wb[f] + "Width", !0, e))) : (g += _.css(a, "padding" + wb[f], !0, e), "padding" !== c && (g += _.css(a, "border" + wb[f] + "Width", !0, e)));
|
166
|
+
return g
|
167
|
+
}
|
168
|
+
|
169
|
+
function A(a, b, c) {
|
170
|
+
var d = !0, e = "width" === b ? a.offsetWidth : a.offsetHeight, f = Rb(a), g = "border-box" === _.css(a, "boxSizing", !1, f);
|
171
|
+
if (0 >= e || null == e) {
|
172
|
+
if (e = v(a, b, f), (0 > e || null == e) && (e = a.style[b]), Qb.test(e))return e;
|
173
|
+
d = g && (Y.boxSizingReliable() || e === a.style[b]), e = parseFloat(e) || 0
|
174
|
+
}
|
175
|
+
return e + z(a, b, c || (g ? "border" : "content"), d, f) + "px"
|
176
|
+
}
|
177
|
+
|
178
|
+
function B(a, b) {
|
179
|
+
for (var c, d, e, f = [], g = 0, h = a.length; h > g; g++)d = a[g], d.style && (f[g] = rb.get(d, "olddisplay"), c = d.style.display, b ? (f[g] || "none" !== c || (d.style.display = ""), "" === d.style.display && xb(d) && (f[g] = rb.access(d, "olddisplay", u(d.nodeName)))) : (e = xb(d), "none" === c && e || rb.set(d, "olddisplay", e ? c : _.css(d, "display"))));
|
180
|
+
for (g = 0; h > g; g++)d = a[g], d.style && (b && "none" !== d.style.display && "" !== d.style.display || (d.style.display = b ? f[g] || "" : "none"));
|
181
|
+
return a
|
182
|
+
}
|
183
|
+
|
184
|
+
function C(a, b, c, d, e) {
|
185
|
+
return new C.prototype.init(a, b, c, d, e)
|
186
|
+
}
|
187
|
+
|
188
|
+
function D() {
|
189
|
+
return setTimeout(function () {
|
190
|
+
Yb = void 0
|
191
|
+
}), Yb = _.now()
|
192
|
+
}
|
193
|
+
|
194
|
+
function E(a, b) {
|
195
|
+
var c, d = 0, e = {height: a};
|
196
|
+
for (b = b ? 1 : 0; 4 > d; d += 2 - b)c = wb[d], e["margin" + c] = e["padding" + c] = a;
|
197
|
+
return b && (e.opacity = e.width = a), e
|
198
|
+
}
|
199
|
+
|
200
|
+
function F(a, b, c) {
|
201
|
+
for (var d, e = (cc[b] || []).concat(cc["*"]), f = 0, g = e.length; g > f; f++)if (d = e[f].call(c, b, a))return d
|
202
|
+
}
|
203
|
+
|
204
|
+
function G(a, b, c) {
|
205
|
+
var d, e, f, g, h, i, j, k, l = this, m = {}, n = a.style, o = a.nodeType && xb(a), p = rb.get(a, "fxshow");
|
206
|
+
c.queue || (h = _._queueHooks(a, "fx"), null == h.unqueued && (h.unqueued = 0, i = h.empty.fire, h.empty.fire = function () {
|
207
|
+
h.unqueued || i()
|
208
|
+
}), h.unqueued++, l.always(function () {
|
209
|
+
l.always(function () {
|
210
|
+
h.unqueued--, _.queue(a, "fx").length || h.empty.fire()
|
211
|
+
})
|
212
|
+
})), 1 === a.nodeType && ("height"in b || "width"in b) && (c.overflow = [n.overflow, n.overflowX, n.overflowY], j = _.css(a, "display"), k = "none" === j ? rb.get(a, "olddisplay") || u(a.nodeName) : j, "inline" === k && "none" === _.css(a, "float") && (n.display = "inline-block")), c.overflow && (n.overflow = "hidden", l.always(function () {
|
213
|
+
n.overflow = c.overflow[0], n.overflowX = c.overflow[1], n.overflowY = c.overflow[2]
|
214
|
+
}));
|
215
|
+
for (d in b)if (e = b[d], $b.exec(e)) {
|
216
|
+
if (delete b[d], f = f || "toggle" === e, e === (o ? "hide" : "show")) {
|
217
|
+
if ("show" !== e || !p || void 0 === p[d])continue;
|
218
|
+
o = !0
|
219
|
+
}
|
220
|
+
m[d] = p && p[d] || _.style(a, d)
|
221
|
+
} else j = void 0;
|
222
|
+
if (_.isEmptyObject(m))"inline" === ("none" === j ? u(a.nodeName) : j) && (n.display = j); else {
|
223
|
+
p ? "hidden"in p && (o = p.hidden) : p = rb.access(a, "fxshow", {}), f && (p.hidden = !o), o ? _(a).show() : l.done(function () {
|
224
|
+
_(a).hide()
|
225
|
+
}), l.done(function () {
|
226
|
+
var b;
|
227
|
+
rb.remove(a, "fxshow");
|
228
|
+
for (b in m)_.style(a, b, m[b])
|
229
|
+
});
|
230
|
+
for (d in m)g = F(o ? p[d] : 0, d, l), d in p || (p[d] = g.start, o && (g.end = g.start, g.start = "width" === d || "height" === d ? 1 : 0))
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
function H(a, b) {
|
235
|
+
var c, d, e, f, g;
|
236
|
+
for (c in a)if (d = _.camelCase(c), e = b[d], f = a[c], _.isArray(f) && (e = f[1], f = a[c] = f[0]), c !== d && (a[d] = f, delete a[c]), g = _.cssHooks[d], g && "expand"in g) {
|
237
|
+
f = g.expand(f), delete a[d];
|
238
|
+
for (c in f)c in a || (a[c] = f[c], b[c] = e)
|
239
|
+
} else b[d] = e
|
240
|
+
}
|
241
|
+
|
242
|
+
function I(a, b, c) {
|
243
|
+
var d, e, f = 0, g = bc.length, h = _.Deferred().always(function () {
|
244
|
+
delete i.elem
|
245
|
+
}), i = function () {
|
246
|
+
if (e)return !1;
|
247
|
+
for (var b = Yb || D(), c = Math.max(0, j.startTime + j.duration - b), d = c / j.duration || 0, f = 1 - d, g = 0, i = j.tweens.length; i > g; g++)j.tweens[g].run(f);
|
248
|
+
return h.notifyWith(a, [j, f, c]), 1 > f && i ? c : (h.resolveWith(a, [j]), !1)
|
249
|
+
}, j = h.promise({
|
250
|
+
elem: a,
|
251
|
+
props: _.extend({}, b),
|
252
|
+
opts: _.extend(!0, {specialEasing: {}}, c),
|
253
|
+
originalProperties: b,
|
254
|
+
originalOptions: c,
|
255
|
+
startTime: Yb || D(),
|
256
|
+
duration: c.duration,
|
257
|
+
tweens: [],
|
258
|
+
createTween: function (b, c) {
|
259
|
+
var d = _.Tween(a, j.opts, b, c, j.opts.specialEasing[b] || j.opts.easing);
|
260
|
+
return j.tweens.push(d), d
|
261
|
+
},
|
262
|
+
stop: function (b) {
|
263
|
+
var c = 0, d = b ? j.tweens.length : 0;
|
264
|
+
if (e)return this;
|
265
|
+
for (e = !0; d > c; c++)j.tweens[c].run(1);
|
266
|
+
return b ? h.resolveWith(a, [j, b]) : h.rejectWith(a, [j, b]), this
|
267
|
+
}
|
268
|
+
}), k = j.props;
|
269
|
+
for (H(k, j.opts.specialEasing); g > f; f++)if (d = bc[f].call(j, a, k, j.opts))return d;
|
270
|
+
return _.map(k, F, j), _.isFunction(j.opts.start) && j.opts.start.call(a, j), _.fx.timer(_.extend(i, {
|
271
|
+
elem: a,
|
272
|
+
anim: j,
|
273
|
+
queue: j.opts.queue
|
274
|
+
})), j.progress(j.opts.progress).done(j.opts.done, j.opts.complete).fail(j.opts.fail).always(j.opts.always)
|
275
|
+
}
|
276
|
+
|
277
|
+
function J(a) {
|
278
|
+
return function (b, c) {
|
279
|
+
"string" != typeof b && (c = b, b = "*");
|
280
|
+
var d, e = 0, f = b.toLowerCase().match(nb) || [];
|
281
|
+
if (_.isFunction(c))for (; d = f[e++];)"+" === d[0] ? (d = d.slice(1) || "*", (a[d] = a[d] || []).unshift(c)) : (a[d] = a[d] || []).push(c)
|
282
|
+
}
|
283
|
+
}
|
284
|
+
|
285
|
+
function K(a, b, c, d) {
|
286
|
+
function e(h) {
|
287
|
+
var i;
|
288
|
+
return f[h] = !0, _.each(a[h] || [], function (a, h) {
|
289
|
+
var j = h(b, c, d);
|
290
|
+
return "string" != typeof j || g || f[j] ? g ? !(i = j) : void 0 : (b.dataTypes.unshift(j), e(j), !1)
|
291
|
+
}), i
|
292
|
+
}
|
293
|
+
|
294
|
+
var f = {}, g = a === vc;
|
295
|
+
return e(b.dataTypes[0]) || !f["*"] && e("*")
|
296
|
+
}
|
297
|
+
|
298
|
+
function L(a, b) {
|
299
|
+
var c, d, e = _.ajaxSettings.flatOptions || {};
|
300
|
+
for (c in b)void 0 !== b[c] && ((e[c] ? a : d || (d = {}))[c] = b[c]);
|
301
|
+
return d && _.extend(!0, a, d), a
|
302
|
+
}
|
303
|
+
|
304
|
+
function M(a, b, c) {
|
305
|
+
for (var d, e, f, g, h = a.contents, i = a.dataTypes; "*" === i[0];)i.shift(), void 0 === d && (d = a.mimeType || b.getResponseHeader("Content-Type"));
|
306
|
+
if (d)for (e in h)if (h[e] && h[e].test(d)) {
|
307
|
+
i.unshift(e);
|
308
|
+
break
|
309
|
+
}
|
310
|
+
if (i[0]in c)f = i[0]; else {
|
311
|
+
for (e in c) {
|
312
|
+
if (!i[0] || a.converters[e + " " + i[0]]) {
|
313
|
+
f = e;
|
314
|
+
break
|
315
|
+
}
|
316
|
+
g || (g = e)
|
317
|
+
}
|
318
|
+
f = f || g
|
319
|
+
}
|
320
|
+
return f ? (f !== i[0] && i.unshift(f), c[f]) : void 0
|
321
|
+
}
|
322
|
+
|
323
|
+
function N(a, b, c, d) {
|
324
|
+
var e, f, g, h, i, j = {}, k = a.dataTypes.slice();
|
325
|
+
if (k[1])for (g in a.converters)j[g.toLowerCase()] = a.converters[g];
|
326
|
+
for (f = k.shift(); f;)if (a.responseFields[f] && (c[a.responseFields[f]] = b), !i && d && a.dataFilter && (b = a.dataFilter(b, a.dataType)), i = f, f = k.shift())if ("*" === f)f = i; else if ("*" !== i && i !== f) {
|
327
|
+
if (g = j[i + " " + f] || j["* " + f], !g)for (e in j)if (h = e.split(" "), h[1] === f && (g = j[i + " " + h[0]] || j["* " + h[0]])) {
|
328
|
+
g === !0 ? g = j[e] : j[e] !== !0 && (f = h[0], k.unshift(h[1]));
|
329
|
+
break
|
330
|
+
}
|
331
|
+
if (g !== !0)if (g && a["throws"])b = g(b); else try {
|
332
|
+
b = g(b)
|
333
|
+
} catch (l) {
|
334
|
+
return {state: "parsererror", error: g ? l : "No conversion from " + i + " to " + f}
|
335
|
+
}
|
336
|
+
}
|
337
|
+
return {state: "success", data: b}
|
338
|
+
}
|
339
|
+
|
340
|
+
function O(a, b, c, d) {
|
341
|
+
var e;
|
342
|
+
if (_.isArray(b))_.each(b, function (b, e) {
|
343
|
+
c || zc.test(a) ? d(a, e) : O(a + "[" + ("object" == typeof e ? b : "") + "]", e, c, d)
|
344
|
+
}); else if (c || "object" !== _.type(b))d(a, b); else for (e in b)O(a + "[" + e + "]", b[e], c, d)
|
345
|
+
}
|
346
|
+
|
347
|
+
function P(a) {
|
348
|
+
return _.isWindow(a) ? a : 9 === a.nodeType && a.defaultView
|
349
|
+
}
|
350
|
+
|
351
|
+
var Q = [], R = Q.slice, S = Q.concat, T = Q.push, U = Q.indexOf, V = {}, W = V.toString, X = V.hasOwnProperty, Y = {}, Z = a.document, $ = "2.1.1", _ = function (a, b) {
|
352
|
+
return new _.fn.init(a, b)
|
353
|
+
}, ab = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, bb = /^-ms-/, cb = /-([\da-z])/gi, db = function (a, b) {
|
354
|
+
return b.toUpperCase()
|
355
|
+
};
|
356
|
+
_.fn = _.prototype = {
|
357
|
+
jquery: $, constructor: _, selector: "", length: 0, toArray: function () {
|
358
|
+
return R.call(this)
|
359
|
+
}, get: function (a) {
|
360
|
+
return null != a ? 0 > a ? this[a + this.length] : this[a] : R.call(this)
|
361
|
+
}, pushStack: function (a) {
|
362
|
+
var b = _.merge(this.constructor(), a);
|
363
|
+
return b.prevObject = this, b.context = this.context, b
|
364
|
+
}, each: function (a, b) {
|
365
|
+
return _.each(this, a, b)
|
366
|
+
}, map: function (a) {
|
367
|
+
return this.pushStack(_.map(this, function (b, c) {
|
368
|
+
return a.call(b, c, b)
|
369
|
+
}))
|
370
|
+
}, slice: function () {
|
371
|
+
return this.pushStack(R.apply(this, arguments))
|
372
|
+
}, first: function () {
|
373
|
+
return this.eq(0)
|
374
|
+
}, last: function () {
|
375
|
+
return this.eq(-1)
|
376
|
+
}, eq: function (a) {
|
377
|
+
var b = this.length, c = +a + (0 > a ? b : 0);
|
378
|
+
return this.pushStack(c >= 0 && b > c ? [this[c]] : [])
|
379
|
+
}, end: function () {
|
380
|
+
return this.prevObject || this.constructor(null)
|
381
|
+
}, push: T, sort: Q.sort, splice: Q.splice
|
382
|
+
}, _.extend = _.fn.extend = function () {
|
383
|
+
var a, b, c, d, e, f, g = arguments[0] || {}, h = 1, i = arguments.length, j = !1;
|
384
|
+
for ("boolean" == typeof g && (j = g, g = arguments[h] || {}, h++), "object" == typeof g || _.isFunction(g) || (g = {}), h === i && (g = this, h--); i > h; h++)if (null != (a = arguments[h]))for (b in a)c = g[b], d = a[b], g !== d && (j && d && (_.isPlainObject(d) || (e = _.isArray(d))) ? (e ? (e = !1, f = c && _.isArray(c) ? c : []) : f = c && _.isPlainObject(c) ? c : {}, g[b] = _.extend(j, f, d)) : void 0 !== d && (g[b] = d));
|
385
|
+
return g
|
386
|
+
}, _.extend({
|
387
|
+
expando: "jQuery" + ($ + Math.random()).replace(/\D/g, ""), isReady: !0, error: function (a) {
|
388
|
+
throw new Error(a)
|
389
|
+
}, noop: function () {
|
390
|
+
}, isFunction: function (a) {
|
391
|
+
return "function" === _.type(a)
|
392
|
+
}, isArray: Array.isArray, isWindow: function (a) {
|
393
|
+
return null != a && a === a.window
|
394
|
+
}, isNumeric: function (a) {
|
395
|
+
return !_.isArray(a) && a - parseFloat(a) >= 0
|
396
|
+
}, isPlainObject: function (a) {
|
397
|
+
return "object" !== _.type(a) || a.nodeType || _.isWindow(a) ? !1 : a.constructor && !X.call(a.constructor.prototype, "isPrototypeOf") ? !1 : !0
|
398
|
+
}, isEmptyObject: function (a) {
|
399
|
+
var b;
|
400
|
+
for (b in a)return !1;
|
401
|
+
return !0
|
402
|
+
}, type: function (a) {
|
403
|
+
return null == a ? a + "" : "object" == typeof a || "function" == typeof a ? V[W.call(a)] || "object" : typeof a
|
404
|
+
}, globalEval: function (a) {
|
405
|
+
var b, c = eval;
|
406
|
+
a = _.trim(a), a && (1 === a.indexOf("use strict") ? (b = Z.createElement("script"), b.text = a, Z.head.appendChild(b).parentNode.removeChild(b)) : c(a))
|
407
|
+
}, camelCase: function (a) {
|
408
|
+
return a.replace(bb, "ms-").replace(cb, db)
|
409
|
+
}, nodeName: function (a, b) {
|
410
|
+
return a.nodeName && a.nodeName.toLowerCase() === b.toLowerCase()
|
411
|
+
}, each: function (a, b, d) {
|
412
|
+
var e, f = 0, g = a.length, h = c(a);
|
413
|
+
if (d) {
|
414
|
+
if (h)for (; g > f && (e = b.apply(a[f], d), e !== !1); f++); else for (f in a)if (e = b.apply(a[f], d), e === !1)break
|
415
|
+
} else if (h)for (; g > f && (e = b.call(a[f], f, a[f]), e !== !1); f++); else for (f in a)if (e = b.call(a[f], f, a[f]), e === !1)break;
|
416
|
+
return a
|
417
|
+
}, trim: function (a) {
|
418
|
+
return null == a ? "" : (a + "").replace(ab, "")
|
419
|
+
}, makeArray: function (a, b) {
|
420
|
+
var d = b || [];
|
421
|
+
return null != a && (c(Object(a)) ? _.merge(d, "string" == typeof a ? [a] : a) : T.call(d, a)), d
|
422
|
+
}, inArray: function (a, b, c) {
|
423
|
+
return null == b ? -1 : U.call(b, a, c)
|
424
|
+
}, merge: function (a, b) {
|
425
|
+
for (var c = +b.length, d = 0, e = a.length; c > d; d++)a[e++] = b[d];
|
426
|
+
return a.length = e, a
|
427
|
+
}, grep: function (a, b, c) {
|
428
|
+
for (var d, e = [], f = 0, g = a.length, h = !c; g > f; f++)d = !b(a[f], f), d !== h && e.push(a[f]);
|
429
|
+
return e
|
430
|
+
}, map: function (a, b, d) {
|
431
|
+
var e, f = 0, g = a.length, h = c(a), i = [];
|
432
|
+
if (h)for (; g > f; f++)e = b(a[f], f, d), null != e && i.push(e); else for (f in a)e = b(a[f], f, d), null != e && i.push(e);
|
433
|
+
return S.apply([], i)
|
434
|
+
}, guid: 1, proxy: function (a, b) {
|
435
|
+
var c, d, e;
|
436
|
+
return "string" == typeof b && (c = a[b], b = a, a = c), _.isFunction(a) ? (d = R.call(arguments, 2), e = function () {
|
437
|
+
return a.apply(b || this, d.concat(R.call(arguments)))
|
438
|
+
}, e.guid = a.guid = a.guid || _.guid++, e) : void 0
|
439
|
+
}, now: Date.now, support: Y
|
440
|
+
}), _.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function (a, b) {
|
441
|
+
V["[object " + b + "]"] = b.toLowerCase()
|
442
|
+
});
|
443
|
+
var eb = /*!
|
444
|
+
* Sizzle CSS Selector Engine v1.10.19
|
445
|
+
* http://sizzlejs.com/
|
446
|
+
*
|
447
|
+
* Copyright 2013 jQuery Foundation, Inc. and other contributors
|
448
|
+
* Released under the MIT license
|
449
|
+
* http://jquery.org/license
|
450
|
+
*
|
451
|
+
* Date: 2014-04-18
|
452
|
+
*/
|
453
|
+
function (a) {
|
454
|
+
function b(a, b, c, d) {
|
455
|
+
var e, f, g, h, i, j, l, n, o, p;
|
456
|
+
if ((b ? b.ownerDocument || b : O) !== G && F(b), b = b || G, c = c || [], !a || "string" != typeof a)return c;
|
457
|
+
if (1 !== (h = b.nodeType) && 9 !== h)return [];
|
458
|
+
if (I && !d) {
|
459
|
+
if (e = sb.exec(a))if (g = e[1]) {
|
460
|
+
if (9 === h) {
|
461
|
+
if (f = b.getElementById(g), !f || !f.parentNode)return c;
|
462
|
+
if (f.id === g)return c.push(f), c
|
463
|
+
} else if (b.ownerDocument && (f = b.ownerDocument.getElementById(g)) && M(b, f) && f.id === g)return c.push(f), c
|
464
|
+
} else {
|
465
|
+
if (e[2])return _.apply(c, b.getElementsByTagName(a)), c;
|
466
|
+
if ((g = e[3]) && v.getElementsByClassName && b.getElementsByClassName)return _.apply(c, b.getElementsByClassName(g)), c
|
467
|
+
}
|
468
|
+
if (v.qsa && (!J || !J.test(a))) {
|
469
|
+
if (n = l = N, o = b, p = 9 === h && a, 1 === h && "object" !== b.nodeName.toLowerCase()) {
|
470
|
+
for (j = z(a), (l = b.getAttribute("id")) ? n = l.replace(ub, "\\$&") : b.setAttribute("id", n), n = "[id='" + n + "'] ", i = j.length; i--;)j[i] = n + m(j[i]);
|
471
|
+
o = tb.test(a) && k(b.parentNode) || b, p = j.join(",")
|
472
|
+
}
|
473
|
+
if (p)try {
|
474
|
+
return _.apply(c, o.querySelectorAll(p)), c
|
475
|
+
} catch (q) {
|
476
|
+
} finally {
|
477
|
+
l || b.removeAttribute("id")
|
478
|
+
}
|
479
|
+
}
|
480
|
+
}
|
481
|
+
return B(a.replace(ib, "$1"), b, c, d)
|
482
|
+
}
|
483
|
+
|
484
|
+
function c() {
|
485
|
+
function a(c, d) {
|
486
|
+
return b.push(c + " ") > w.cacheLength && delete a[b.shift()], a[c + " "] = d
|
487
|
+
}
|
488
|
+
|
489
|
+
var b = [];
|
490
|
+
return a
|
491
|
+
}
|
492
|
+
|
493
|
+
function d(a) {
|
494
|
+
return a[N] = !0, a
|
495
|
+
}
|
496
|
+
|
497
|
+
function e(a) {
|
498
|
+
var b = G.createElement("div");
|
499
|
+
try {
|
500
|
+
return !!a(b)
|
501
|
+
} catch (c) {
|
502
|
+
return !1
|
503
|
+
} finally {
|
504
|
+
b.parentNode && b.parentNode.removeChild(b), b = null
|
505
|
+
}
|
506
|
+
}
|
507
|
+
|
508
|
+
function f(a, b) {
|
509
|
+
for (var c = a.split("|"), d = a.length; d--;)w.attrHandle[c[d]] = b
|
510
|
+
}
|
511
|
+
|
512
|
+
function g(a, b) {
|
513
|
+
var c = b && a, d = c && 1 === a.nodeType && 1 === b.nodeType && (~b.sourceIndex || W) - (~a.sourceIndex || W);
|
514
|
+
if (d)return d;
|
515
|
+
if (c)for (; c = c.nextSibling;)if (c === b)return -1;
|
516
|
+
return a ? 1 : -1
|
517
|
+
}
|
518
|
+
|
519
|
+
function h(a) {
|
520
|
+
return function (b) {
|
521
|
+
var c = b.nodeName.toLowerCase();
|
522
|
+
return "input" === c && b.type === a
|
523
|
+
}
|
524
|
+
}
|
525
|
+
|
526
|
+
function i(a) {
|
527
|
+
return function (b) {
|
528
|
+
var c = b.nodeName.toLowerCase();
|
529
|
+
return ("input" === c || "button" === c) && b.type === a
|
530
|
+
}
|
531
|
+
}
|
532
|
+
|
533
|
+
function j(a) {
|
534
|
+
return d(function (b) {
|
535
|
+
return b = +b, d(function (c, d) {
|
536
|
+
for (var e, f = a([], c.length, b), g = f.length; g--;)c[e = f[g]] && (c[e] = !(d[e] = c[e]))
|
537
|
+
})
|
538
|
+
})
|
539
|
+
}
|
540
|
+
|
541
|
+
function k(a) {
|
542
|
+
return a && typeof a.getElementsByTagName !== V && a
|
543
|
+
}
|
544
|
+
|
545
|
+
function l() {
|
546
|
+
}
|
547
|
+
|
548
|
+
function m(a) {
|
549
|
+
for (var b = 0, c = a.length, d = ""; c > b; b++)d += a[b].value;
|
550
|
+
return d
|
551
|
+
}
|
552
|
+
|
553
|
+
function n(a, b, c) {
|
554
|
+
var d = b.dir, e = c && "parentNode" === d, f = Q++;
|
555
|
+
return b.first ? function (b, c, f) {
|
556
|
+
for (; b = b[d];)if (1 === b.nodeType || e)return a(b, c, f)
|
557
|
+
} : function (b, c, g) {
|
558
|
+
var h, i, j = [P, f];
|
559
|
+
if (g) {
|
560
|
+
for (; b = b[d];)if ((1 === b.nodeType || e) && a(b, c, g))return !0
|
561
|
+
} else for (; b = b[d];)if (1 === b.nodeType || e) {
|
562
|
+
if (i = b[N] || (b[N] = {}), (h = i[d]) && h[0] === P && h[1] === f)return j[2] = h[2];
|
563
|
+
if (i[d] = j, j[2] = a(b, c, g))return !0
|
564
|
+
}
|
565
|
+
}
|
566
|
+
}
|
567
|
+
|
568
|
+
function o(a) {
|
569
|
+
return a.length > 1 ? function (b, c, d) {
|
570
|
+
for (var e = a.length; e--;)if (!a[e](b, c, d))return !1;
|
571
|
+
return !0
|
572
|
+
} : a[0]
|
573
|
+
}
|
574
|
+
|
575
|
+
function p(a, c, d) {
|
576
|
+
for (var e = 0, f = c.length; f > e; e++)b(a, c[e], d);
|
577
|
+
return d
|
578
|
+
}
|
579
|
+
|
580
|
+
function q(a, b, c, d, e) {
|
581
|
+
for (var f, g = [], h = 0, i = a.length, j = null != b; i > h; h++)(f = a[h]) && (!c || c(f, d, e)) && (g.push(f), j && b.push(h));
|
582
|
+
return g
|
583
|
+
}
|
584
|
+
|
585
|
+
function r(a, b, c, e, f, g) {
|
586
|
+
return e && !e[N] && (e = r(e)), f && !f[N] && (f = r(f, g)), d(function (d, g, h, i) {
|
587
|
+
var j, k, l, m = [], n = [], o = g.length, r = d || p(b || "*", h.nodeType ? [h] : h, []), s = !a || !d && b ? r : q(r, m, a, h, i), t = c ? f || (d ? a : o || e) ? [] : g : s;
|
588
|
+
if (c && c(s, t, h, i), e)for (j = q(t, n), e(j, [], h, i), k = j.length; k--;)(l = j[k]) && (t[n[k]] = !(s[n[k]] = l));
|
589
|
+
if (d) {
|
590
|
+
if (f || a) {
|
591
|
+
if (f) {
|
592
|
+
for (j = [], k = t.length; k--;)(l = t[k]) && j.push(s[k] = l);
|
593
|
+
f(null, t = [], j, i)
|
594
|
+
}
|
595
|
+
for (k = t.length; k--;)(l = t[k]) && (j = f ? bb.call(d, l) : m[k]) > -1 && (d[j] = !(g[j] = l))
|
596
|
+
}
|
597
|
+
} else t = q(t === g ? t.splice(o, t.length) : t), f ? f(null, g, t, i) : _.apply(g, t)
|
598
|
+
})
|
599
|
+
}
|
600
|
+
|
601
|
+
function s(a) {
|
602
|
+
for (var b, c, d, e = a.length, f = w.relative[a[0].type], g = f || w.relative[" "], h = f ? 1 : 0, i = n(function (a) {
|
603
|
+
return a === b
|
604
|
+
}, g, !0), j = n(function (a) {
|
605
|
+
return bb.call(b, a) > -1
|
606
|
+
}, g, !0), k = [function (a, c, d) {
|
607
|
+
return !f && (d || c !== C) || ((b = c).nodeType ? i(a, c, d) : j(a, c, d))
|
608
|
+
}]; e > h; h++)if (c = w.relative[a[h].type])k = [n(o(k), c)]; else {
|
609
|
+
if (c = w.filter[a[h].type].apply(null, a[h].matches), c[N]) {
|
610
|
+
for (d = ++h; e > d && !w.relative[a[d].type]; d++);
|
611
|
+
return r(h > 1 && o(k), h > 1 && m(a.slice(0, h - 1).concat({value: " " === a[h - 2].type ? "*" : ""})).replace(ib, "$1"), c, d > h && s(a.slice(h, d)), e > d && s(a = a.slice(d)), e > d && m(a))
|
612
|
+
}
|
613
|
+
k.push(c)
|
614
|
+
}
|
615
|
+
return o(k)
|
616
|
+
}
|
617
|
+
|
618
|
+
function t(a, c) {
|
619
|
+
var e = c.length > 0, f = a.length > 0, g = function (d, g, h, i, j) {
|
620
|
+
var k, l, m, n = 0, o = "0", p = d && [], r = [], s = C, t = d || f && w.find.TAG("*", j), u = P += null == s ? 1 : Math.random() || .1, v = t.length;
|
621
|
+
for (j && (C = g !== G && g); o !== v && null != (k = t[o]); o++) {
|
622
|
+
if (f && k) {
|
623
|
+
for (l = 0; m = a[l++];)if (m(k, g, h)) {
|
624
|
+
i.push(k);
|
625
|
+
break
|
626
|
+
}
|
627
|
+
j && (P = u)
|
628
|
+
}
|
629
|
+
e && ((k = !m && k) && n--, d && p.push(k))
|
630
|
+
}
|
631
|
+
if (n += o, e && o !== n) {
|
632
|
+
for (l = 0; m = c[l++];)m(p, r, g, h);
|
633
|
+
if (d) {
|
634
|
+
if (n > 0)for (; o--;)p[o] || r[o] || (r[o] = Z.call(i));
|
635
|
+
r = q(r)
|
636
|
+
}
|
637
|
+
_.apply(i, r), j && !d && r.length > 0 && n + c.length > 1 && b.uniqueSort(i)
|
638
|
+
}
|
639
|
+
return j && (P = u, C = s), p
|
640
|
+
};
|
641
|
+
return e ? d(g) : g
|
642
|
+
}
|
643
|
+
|
644
|
+
var u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N = "sizzle" + -new Date, O = a.document, P = 0, Q = 0, R = c(), S = c(), T = c(), U = function (a, b) {
|
645
|
+
return a === b && (E = !0), 0
|
646
|
+
}, V = "undefined", W = 1 << 31, X = {}.hasOwnProperty, Y = [], Z = Y.pop, $ = Y.push, _ = Y.push, ab = Y.slice, bb = Y.indexOf || function (a) {
|
647
|
+
for (var b = 0, c = this.length; c > b; b++)if (this[b] === a)return b;
|
648
|
+
return -1
|
649
|
+
}, cb = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", db = "[\\x20\\t\\r\\n\\f]", eb = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", fb = eb.replace("w", "w#"), gb = "\\[" + db + "*(" + eb + ")(?:" + db + "*([*^$|!~]?=)" + db + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + fb + "))|)" + db + "*\\]", hb = ":(" + eb + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + gb + ")*)|.*)\\)|)", ib = new RegExp("^" + db + "+|((?:^|[^\\\\])(?:\\\\.)*)" + db + "+$", "g"), jb = new RegExp("^" + db + "*," + db + "*"), kb = new RegExp("^" + db + "*([>+~]|" + db + ")" + db + "*"), lb = new RegExp("=" + db + "*([^\\]'\"]*?)" + db + "*\\]", "g"), mb = new RegExp(hb), nb = new RegExp("^" + fb + "$"), ob = {
|
650
|
+
ID: new RegExp("^#(" + eb + ")"),
|
651
|
+
CLASS: new RegExp("^\\.(" + eb + ")"),
|
652
|
+
TAG: new RegExp("^(" + eb.replace("w", "w*") + ")"),
|
653
|
+
ATTR: new RegExp("^" + gb),
|
654
|
+
PSEUDO: new RegExp("^" + hb),
|
655
|
+
CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + db + "*(even|odd|(([+-]|)(\\d*)n|)" + db + "*(?:([+-]|)" + db + "*(\\d+)|))" + db + "*\\)|)", "i"),
|
656
|
+
bool: new RegExp("^(?:" + cb + ")$", "i"),
|
657
|
+
needsContext: new RegExp("^" + db + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + db + "*((?:-\\d)?\\d*)" + db + "*\\)|)(?=[^-]|$)", "i")
|
658
|
+
}, pb = /^(?:input|select|textarea|button)$/i, qb = /^h\d$/i, rb = /^[^{]+\{\s*\[native \w/, sb = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, tb = /[+~]/, ub = /'|\\/g, vb = new RegExp("\\\\([\\da-f]{1,6}" + db + "?|(" + db + ")|.)", "ig"), wb = function (a, b, c) {
|
659
|
+
var d = "0x" + b - 65536;
|
660
|
+
return d !== d || c ? b : 0 > d ? String.fromCharCode(d + 65536) : String.fromCharCode(d >> 10 | 55296, 1023 & d | 56320)
|
661
|
+
};
|
662
|
+
try {
|
663
|
+
_.apply(Y = ab.call(O.childNodes), O.childNodes), Y[O.childNodes.length].nodeType
|
664
|
+
} catch (xb) {
|
665
|
+
_ = {
|
666
|
+
apply: Y.length ? function (a, b) {
|
667
|
+
$.apply(a, ab.call(b))
|
668
|
+
} : function (a, b) {
|
669
|
+
for (var c = a.length, d = 0; a[c++] = b[d++];);
|
670
|
+
a.length = c - 1
|
671
|
+
}
|
672
|
+
}
|
673
|
+
}
|
674
|
+
v = b.support = {}, y = b.isXML = function (a) {
|
675
|
+
var b = a && (a.ownerDocument || a).documentElement;
|
676
|
+
return b ? "HTML" !== b.nodeName : !1
|
677
|
+
}, F = b.setDocument = function (a) {
|
678
|
+
var b, c = a ? a.ownerDocument || a : O, d = c.defaultView;
|
679
|
+
return c !== G && 9 === c.nodeType && c.documentElement ? (G = c, H = c.documentElement, I = !y(c), d && d !== d.top && (d.addEventListener ? d.addEventListener("unload", function () {
|
680
|
+
F()
|
681
|
+
}, !1) : d.attachEvent && d.attachEvent("onunload", function () {
|
682
|
+
F()
|
683
|
+
})), v.attributes = e(function (a) {
|
684
|
+
return a.className = "i", !a.getAttribute("className")
|
685
|
+
}), v.getElementsByTagName = e(function (a) {
|
686
|
+
return a.appendChild(c.createComment("")), !a.getElementsByTagName("*").length
|
687
|
+
}), v.getElementsByClassName = rb.test(c.getElementsByClassName) && e(function (a) {
|
688
|
+
return a.innerHTML = "<div class='a'></div><div class='a i'></div>", a.firstChild.className = "i", 2 === a.getElementsByClassName("i").length
|
689
|
+
}), v.getById = e(function (a) {
|
690
|
+
return H.appendChild(a).id = N, !c.getElementsByName || !c.getElementsByName(N).length
|
691
|
+
}), v.getById ? (w.find.ID = function (a, b) {
|
692
|
+
if (typeof b.getElementById !== V && I) {
|
693
|
+
var c = b.getElementById(a);
|
694
|
+
return c && c.parentNode ? [c] : []
|
695
|
+
}
|
696
|
+
}, w.filter.ID = function (a) {
|
697
|
+
var b = a.replace(vb, wb);
|
698
|
+
return function (a) {
|
699
|
+
return a.getAttribute("id") === b
|
700
|
+
}
|
701
|
+
}) : (delete w.find.ID, w.filter.ID = function (a) {
|
702
|
+
var b = a.replace(vb, wb);
|
703
|
+
return function (a) {
|
704
|
+
var c = typeof a.getAttributeNode !== V && a.getAttributeNode("id");
|
705
|
+
return c && c.value === b
|
706
|
+
}
|
707
|
+
}), w.find.TAG = v.getElementsByTagName ? function (a, b) {
|
708
|
+
return typeof b.getElementsByTagName !== V ? b.getElementsByTagName(a) : void 0
|
709
|
+
} : function (a, b) {
|
710
|
+
var c, d = [], e = 0, f = b.getElementsByTagName(a);
|
711
|
+
if ("*" === a) {
|
712
|
+
for (; c = f[e++];)1 === c.nodeType && d.push(c);
|
713
|
+
return d
|
714
|
+
}
|
715
|
+
return f
|
716
|
+
}, w.find.CLASS = v.getElementsByClassName && function (a, b) {
|
717
|
+
return typeof b.getElementsByClassName !== V && I ? b.getElementsByClassName(a) : void 0
|
718
|
+
}, K = [], J = [], (v.qsa = rb.test(c.querySelectorAll)) && (e(function (a) {
|
719
|
+
a.innerHTML = "<select msallowclip=''><option selected=''></option></select>", a.querySelectorAll("[msallowclip^='']").length && J.push("[*^$]=" + db + "*(?:''|\"\")"), a.querySelectorAll("[selected]").length || J.push("\\[" + db + "*(?:value|" + cb + ")"), a.querySelectorAll(":checked").length || J.push(":checked")
|
720
|
+
}), e(function (a) {
|
721
|
+
var b = c.createElement("input");
|
722
|
+
b.setAttribute("type", "hidden"), a.appendChild(b).setAttribute("name", "D"), a.querySelectorAll("[name=d]").length && J.push("name" + db + "*[*^$|!~]?="), a.querySelectorAll(":enabled").length || J.push(":enabled", ":disabled"), a.querySelectorAll("*,:x"), J.push(",.*:")
|
723
|
+
})), (v.matchesSelector = rb.test(L = H.matches || H.webkitMatchesSelector || H.mozMatchesSelector || H.oMatchesSelector || H.msMatchesSelector)) && e(function (a) {
|
724
|
+
v.disconnectedMatch = L.call(a, "div"), L.call(a, "[s!='']:x"), K.push("!=", hb)
|
725
|
+
}), J = J.length && new RegExp(J.join("|")), K = K.length && new RegExp(K.join("|")), b = rb.test(H.compareDocumentPosition), M = b || rb.test(H.contains) ? function (a, b) {
|
726
|
+
var c = 9 === a.nodeType ? a.documentElement : a, d = b && b.parentNode;
|
727
|
+
return a === d || !(!d || 1 !== d.nodeType || !(c.contains ? c.contains(d) : a.compareDocumentPosition && 16 & a.compareDocumentPosition(d)))
|
728
|
+
} : function (a, b) {
|
729
|
+
if (b)for (; b = b.parentNode;)if (b === a)return !0;
|
730
|
+
return !1
|
731
|
+
}, U = b ? function (a, b) {
|
732
|
+
if (a === b)return E = !0, 0;
|
733
|
+
var d = !a.compareDocumentPosition - !b.compareDocumentPosition;
|
734
|
+
return d ? d : (d = (a.ownerDocument || a) === (b.ownerDocument || b) ? a.compareDocumentPosition(b) : 1, 1 & d || !v.sortDetached && b.compareDocumentPosition(a) === d ? a === c || a.ownerDocument === O && M(O, a) ? -1 : b === c || b.ownerDocument === O && M(O, b) ? 1 : D ? bb.call(D, a) - bb.call(D, b) : 0 : 4 & d ? -1 : 1)
|
735
|
+
} : function (a, b) {
|
736
|
+
if (a === b)return E = !0, 0;
|
737
|
+
var d, e = 0, f = a.parentNode, h = b.parentNode, i = [a], j = [b];
|
738
|
+
if (!f || !h)return a === c ? -1 : b === c ? 1 : f ? -1 : h ? 1 : D ? bb.call(D, a) - bb.call(D, b) : 0;
|
739
|
+
if (f === h)return g(a, b);
|
740
|
+
for (d = a; d = d.parentNode;)i.unshift(d);
|
741
|
+
for (d = b; d = d.parentNode;)j.unshift(d);
|
742
|
+
for (; i[e] === j[e];)e++;
|
743
|
+
return e ? g(i[e], j[e]) : i[e] === O ? -1 : j[e] === O ? 1 : 0
|
744
|
+
}, c) : G
|
745
|
+
}, b.matches = function (a, c) {
|
746
|
+
return b(a, null, null, c)
|
747
|
+
}, b.matchesSelector = function (a, c) {
|
748
|
+
if ((a.ownerDocument || a) !== G && F(a), c = c.replace(lb, "='$1']"), !(!v.matchesSelector || !I || K && K.test(c) || J && J.test(c)))try {
|
749
|
+
var d = L.call(a, c);
|
750
|
+
if (d || v.disconnectedMatch || a.document && 11 !== a.document.nodeType)return d
|
751
|
+
} catch (e) {
|
752
|
+
}
|
753
|
+
return b(c, G, null, [a]).length > 0
|
754
|
+
}, b.contains = function (a, b) {
|
755
|
+
return (a.ownerDocument || a) !== G && F(a), M(a, b)
|
756
|
+
}, b.attr = function (a, b) {
|
757
|
+
(a.ownerDocument || a) !== G && F(a);
|
758
|
+
var c = w.attrHandle[b.toLowerCase()], d = c && X.call(w.attrHandle, b.toLowerCase()) ? c(a, b, !I) : void 0;
|
759
|
+
return void 0 !== d ? d : v.attributes || !I ? a.getAttribute(b) : (d = a.getAttributeNode(b)) && d.specified ? d.value : null
|
760
|
+
}, b.error = function (a) {
|
761
|
+
throw new Error("Syntax error, unrecognized expression: " + a)
|
762
|
+
}, b.uniqueSort = function (a) {
|
763
|
+
var b, c = [], d = 0, e = 0;
|
764
|
+
if (E = !v.detectDuplicates, D = !v.sortStable && a.slice(0), a.sort(U), E) {
|
765
|
+
for (; b = a[e++];)b === a[e] && (d = c.push(e));
|
766
|
+
for (; d--;)a.splice(c[d], 1)
|
767
|
+
}
|
768
|
+
return D = null, a
|
769
|
+
}, x = b.getText = function (a) {
|
770
|
+
var b, c = "", d = 0, e = a.nodeType;
|
771
|
+
if (e) {
|
772
|
+
if (1 === e || 9 === e || 11 === e) {
|
773
|
+
if ("string" == typeof a.textContent)return a.textContent;
|
774
|
+
for (a = a.firstChild; a; a = a.nextSibling)c += x(a)
|
775
|
+
} else if (3 === e || 4 === e)return a.nodeValue
|
776
|
+
} else for (; b = a[d++];)c += x(b);
|
777
|
+
return c
|
778
|
+
}, w = b.selectors = {
|
779
|
+
cacheLength: 50,
|
780
|
+
createPseudo: d,
|
781
|
+
match: ob,
|
782
|
+
attrHandle: {},
|
783
|
+
find: {},
|
784
|
+
relative: {
|
785
|
+
">": {dir: "parentNode", first: !0},
|
786
|
+
" ": {dir: "parentNode"},
|
787
|
+
"+": {dir: "previousSibling", first: !0},
|
788
|
+
"~": {dir: "previousSibling"}
|
789
|
+
},
|
790
|
+
preFilter: {
|
791
|
+
ATTR: function (a) {
|
792
|
+
return a[1] = a[1].replace(vb, wb), a[3] = (a[3] || a[4] || a[5] || "").replace(vb, wb), "~=" === a[2] && (a[3] = " " + a[3] + " "), a.slice(0, 4)
|
793
|
+
}, CHILD: function (a) {
|
794
|
+
return a[1] = a[1].toLowerCase(), "nth" === a[1].slice(0, 3) ? (a[3] || b.error(a[0]), a[4] = +(a[4] ? a[5] + (a[6] || 1) : 2 * ("even" === a[3] || "odd" === a[3])), a[5] = +(a[7] + a[8] || "odd" === a[3])) : a[3] && b.error(a[0]), a
|
795
|
+
}, PSEUDO: function (a) {
|
796
|
+
var b, c = !a[6] && a[2];
|
797
|
+
return ob.CHILD.test(a[0]) ? null : (a[3] ? a[2] = a[4] || a[5] || "" : c && mb.test(c) && (b = z(c, !0)) && (b = c.indexOf(")", c.length - b) - c.length) && (a[0] = a[0].slice(0, b), a[2] = c.slice(0, b)), a.slice(0, 3))
|
798
|
+
}
|
799
|
+
},
|
800
|
+
filter: {
|
801
|
+
TAG: function (a) {
|
802
|
+
var b = a.replace(vb, wb).toLowerCase();
|
803
|
+
return "*" === a ? function () {
|
804
|
+
return !0
|
805
|
+
} : function (a) {
|
806
|
+
return a.nodeName && a.nodeName.toLowerCase() === b
|
807
|
+
}
|
808
|
+
}, CLASS: function (a) {
|
809
|
+
var b = R[a + " "];
|
810
|
+
return b || (b = new RegExp("(^|" + db + ")" + a + "(" + db + "|$)")) && R(a, function (a) {
|
811
|
+
return b.test("string" == typeof a.className && a.className || typeof a.getAttribute !== V && a.getAttribute("class") || "")
|
812
|
+
})
|
813
|
+
}, ATTR: function (a, c, d) {
|
814
|
+
return function (e) {
|
815
|
+
var f = b.attr(e, a);
|
816
|
+
return null == f ? "!=" === c : c ? (f += "", "=" === c ? f === d : "!=" === c ? f !== d : "^=" === c ? d && 0 === f.indexOf(d) : "*=" === c ? d && f.indexOf(d) > -1 : "$=" === c ? d && f.slice(-d.length) === d : "~=" === c ? (" " + f + " ").indexOf(d) > -1 : "|=" === c ? f === d || f.slice(0, d.length + 1) === d + "-" : !1) : !0
|
817
|
+
}
|
818
|
+
}, CHILD: function (a, b, c, d, e) {
|
819
|
+
var f = "nth" !== a.slice(0, 3), g = "last" !== a.slice(-4), h = "of-type" === b;
|
820
|
+
return 1 === d && 0 === e ? function (a) {
|
821
|
+
return !!a.parentNode
|
822
|
+
} : function (b, c, i) {
|
823
|
+
var j, k, l, m, n, o, p = f !== g ? "nextSibling" : "previousSibling", q = b.parentNode, r = h && b.nodeName.toLowerCase(), s = !i && !h;
|
824
|
+
if (q) {
|
825
|
+
if (f) {
|
826
|
+
for (; p;) {
|
827
|
+
for (l = b; l = l[p];)if (h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType)return !1;
|
828
|
+
o = p = "only" === a && !o && "nextSibling"
|
829
|
+
}
|
830
|
+
return !0
|
831
|
+
}
|
832
|
+
if (o = [g ? q.firstChild : q.lastChild], g && s) {
|
833
|
+
for (k = q[N] || (q[N] = {}), j = k[a] || [], n = j[0] === P && j[1], m = j[0] === P && j[2], l = n && q.childNodes[n]; l = ++n && l && l[p] || (m = n = 0) || o.pop();)if (1 === l.nodeType && ++m && l === b) {
|
834
|
+
k[a] = [P, n, m];
|
835
|
+
break
|
836
|
+
}
|
837
|
+
} else if (s && (j = (b[N] || (b[N] = {}))[a]) && j[0] === P)m = j[1]; else for (; (l = ++n && l && l[p] || (m = n = 0) || o.pop()) && ((h ? l.nodeName.toLowerCase() !== r : 1 !== l.nodeType) || !++m || (s && ((l[N] || (l[N] = {}))[a] = [P, m]), l !== b)););
|
838
|
+
return m -= e, m === d || m % d === 0 && m / d >= 0
|
839
|
+
}
|
840
|
+
}
|
841
|
+
}, PSEUDO: function (a, c) {
|
842
|
+
var e, f = w.pseudos[a] || w.setFilters[a.toLowerCase()] || b.error("unsupported pseudo: " + a);
|
843
|
+
return f[N] ? f(c) : f.length > 1 ? (e = [a, a, "", c], w.setFilters.hasOwnProperty(a.toLowerCase()) ? d(function (a, b) {
|
844
|
+
for (var d, e = f(a, c), g = e.length; g--;)d = bb.call(a, e[g]), a[d] = !(b[d] = e[g])
|
845
|
+
}) : function (a) {
|
846
|
+
return f(a, 0, e)
|
847
|
+
}) : f
|
848
|
+
}
|
849
|
+
},
|
850
|
+
pseudos: {
|
851
|
+
not: d(function (a) {
|
852
|
+
var b = [], c = [], e = A(a.replace(ib, "$1"));
|
853
|
+
return e[N] ? d(function (a, b, c, d) {
|
854
|
+
for (var f, g = e(a, null, d, []), h = a.length; h--;)(f = g[h]) && (a[h] = !(b[h] = f))
|
855
|
+
}) : function (a, d, f) {
|
856
|
+
return b[0] = a, e(b, null, f, c), !c.pop()
|
857
|
+
}
|
858
|
+
}), has: d(function (a) {
|
859
|
+
return function (c) {
|
860
|
+
return b(a, c).length > 0
|
861
|
+
}
|
862
|
+
}), contains: d(function (a) {
|
863
|
+
return function (b) {
|
864
|
+
return (b.textContent || b.innerText || x(b)).indexOf(a) > -1
|
865
|
+
}
|
866
|
+
}), lang: d(function (a) {
|
867
|
+
return nb.test(a || "") || b.error("unsupported lang: " + a), a = a.replace(vb, wb).toLowerCase(), function (b) {
|
868
|
+
var c;
|
869
|
+
do if (c = I ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang"))return c = c.toLowerCase(), c === a || 0 === c.indexOf(a + "-"); while ((b = b.parentNode) && 1 === b.nodeType);
|
870
|
+
return !1
|
871
|
+
}
|
872
|
+
}), target: function (b) {
|
873
|
+
var c = a.location && a.location.hash;
|
874
|
+
return c && c.slice(1) === b.id
|
875
|
+
}, root: function (a) {
|
876
|
+
return a === H
|
877
|
+
}, focus: function (a) {
|
878
|
+
return a === G.activeElement && (!G.hasFocus || G.hasFocus()) && !!(a.type || a.href || ~a.tabIndex)
|
879
|
+
}, enabled: function (a) {
|
880
|
+
return a.disabled === !1
|
881
|
+
}, disabled: function (a) {
|
882
|
+
return a.disabled === !0
|
883
|
+
}, checked: function (a) {
|
884
|
+
var b = a.nodeName.toLowerCase();
|
885
|
+
return "input" === b && !!a.checked || "option" === b && !!a.selected
|
886
|
+
}, selected: function (a) {
|
887
|
+
return a.parentNode && a.parentNode.selectedIndex, a.selected === !0
|
888
|
+
}, empty: function (a) {
|
889
|
+
for (a = a.firstChild; a; a = a.nextSibling)if (a.nodeType < 6)return !1;
|
890
|
+
return !0
|
891
|
+
}, parent: function (a) {
|
892
|
+
return !w.pseudos.empty(a)
|
893
|
+
}, header: function (a) {
|
894
|
+
return qb.test(a.nodeName)
|
895
|
+
}, input: function (a) {
|
896
|
+
return pb.test(a.nodeName)
|
897
|
+
}, button: function (a) {
|
898
|
+
var b = a.nodeName.toLowerCase();
|
899
|
+
return "input" === b && "button" === a.type || "button" === b
|
900
|
+
}, text: function (a) {
|
901
|
+
var b;
|
902
|
+
return "input" === a.nodeName.toLowerCase() && "text" === a.type && (null == (b = a.getAttribute("type")) || "text" === b.toLowerCase())
|
903
|
+
}, first: j(function () {
|
904
|
+
return [0]
|
905
|
+
}), last: j(function (a, b) {
|
906
|
+
return [b - 1]
|
907
|
+
}), eq: j(function (a, b, c) {
|
908
|
+
return [0 > c ? c + b : c]
|
909
|
+
}), even: j(function (a, b) {
|
910
|
+
for (var c = 0; b > c; c += 2)a.push(c);
|
911
|
+
return a
|
912
|
+
}), odd: j(function (a, b) {
|
913
|
+
for (var c = 1; b > c; c += 2)a.push(c);
|
914
|
+
return a
|
915
|
+
}), lt: j(function (a, b, c) {
|
916
|
+
for (var d = 0 > c ? c + b : c; --d >= 0;)a.push(d);
|
917
|
+
return a
|
918
|
+
}), gt: j(function (a, b, c) {
|
919
|
+
for (var d = 0 > c ? c + b : c; ++d < b;)a.push(d);
|
920
|
+
return a
|
921
|
+
})
|
922
|
+
}
|
923
|
+
}, w.pseudos.nth = w.pseudos.eq;
|
924
|
+
for (u in{radio: !0, checkbox: !0, file: !0, password: !0, image: !0})w.pseudos[u] = h(u);
|
925
|
+
for (u in{submit: !0, reset: !0})w.pseudos[u] = i(u);
|
926
|
+
return l.prototype = w.filters = w.pseudos, w.setFilters = new l, z = b.tokenize = function (a, c) {
|
927
|
+
var d, e, f, g, h, i, j, k = S[a + " "];
|
928
|
+
if (k)return c ? 0 : k.slice(0);
|
929
|
+
for (h = a, i = [], j = w.preFilter; h;) {
|
930
|
+
(!d || (e = jb.exec(h))) && (e && (h = h.slice(e[0].length) || h), i.push(f = [])), d = !1, (e = kb.exec(h)) && (d = e.shift(), f.push({
|
931
|
+
value: d,
|
932
|
+
type: e[0].replace(ib, " ")
|
933
|
+
}), h = h.slice(d.length));
|
934
|
+
for (g in w.filter)!(e = ob[g].exec(h)) || j[g] && !(e = j[g](e)) || (d = e.shift(), f.push({
|
935
|
+
value: d,
|
936
|
+
type: g,
|
937
|
+
matches: e
|
938
|
+
}), h = h.slice(d.length));
|
939
|
+
if (!d)break
|
940
|
+
}
|
941
|
+
return c ? h.length : h ? b.error(a) : S(a, i).slice(0)
|
942
|
+
}, A = b.compile = function (a, b) {
|
943
|
+
var c, d = [], e = [], f = T[a + " "];
|
944
|
+
if (!f) {
|
945
|
+
for (b || (b = z(a)), c = b.length; c--;)f = s(b[c]), f[N] ? d.push(f) : e.push(f);
|
946
|
+
f = T(a, t(e, d)), f.selector = a
|
947
|
+
}
|
948
|
+
return f
|
949
|
+
}, B = b.select = function (a, b, c, d) {
|
950
|
+
var e, f, g, h, i, j = "function" == typeof a && a, l = !d && z(a = j.selector || a);
|
951
|
+
if (c = c || [], 1 === l.length) {
|
952
|
+
if (f = l[0] = l[0].slice(0), f.length > 2 && "ID" === (g = f[0]).type && v.getById && 9 === b.nodeType && I && w.relative[f[1].type]) {
|
953
|
+
if (b = (w.find.ID(g.matches[0].replace(vb, wb), b) || [])[0], !b)return c;
|
954
|
+
j && (b = b.parentNode), a = a.slice(f.shift().value.length)
|
955
|
+
}
|
956
|
+
for (e = ob.needsContext.test(a) ? 0 : f.length; e-- && (g = f[e], !w.relative[h = g.type]);)if ((i = w.find[h]) && (d = i(g.matches[0].replace(vb, wb), tb.test(f[0].type) && k(b.parentNode) || b))) {
|
957
|
+
if (f.splice(e, 1), a = d.length && m(f), !a)return _.apply(c, d), c;
|
958
|
+
break
|
959
|
+
}
|
960
|
+
}
|
961
|
+
return (j || A(a, l))(d, b, !I, c, tb.test(a) && k(b.parentNode) || b), c
|
962
|
+
}, v.sortStable = N.split("").sort(U).join("") === N, v.detectDuplicates = !!E, F(), v.sortDetached = e(function (a) {
|
963
|
+
return 1 & a.compareDocumentPosition(G.createElement("div"))
|
964
|
+
}), e(function (a) {
|
965
|
+
return a.innerHTML = "<a href='#'></a>", "#" === a.firstChild.getAttribute("href")
|
966
|
+
}) || f("type|href|height|width", function (a, b, c) {
|
967
|
+
return c ? void 0 : a.getAttribute(b, "type" === b.toLowerCase() ? 1 : 2)
|
968
|
+
}), v.attributes && e(function (a) {
|
969
|
+
return a.innerHTML = "<input/>", a.firstChild.setAttribute("value", ""), "" === a.firstChild.getAttribute("value")
|
970
|
+
}) || f("value", function (a, b, c) {
|
971
|
+
return c || "input" !== a.nodeName.toLowerCase() ? void 0 : a.defaultValue
|
972
|
+
}), e(function (a) {
|
973
|
+
return null == a.getAttribute("disabled")
|
974
|
+
}) || f(cb, function (a, b, c) {
|
975
|
+
var d;
|
976
|
+
return c ? void 0 : a[b] === !0 ? b.toLowerCase() : (d = a.getAttributeNode(b)) && d.specified ? d.value : null
|
977
|
+
}), b
|
978
|
+
}(a);
|
979
|
+
_.find = eb, _.expr = eb.selectors, _.expr[":"] = _.expr.pseudos, _.unique = eb.uniqueSort, _.text = eb.getText, _.isXMLDoc = eb.isXML, _.contains = eb.contains;
|
980
|
+
var fb = _.expr.match.needsContext, gb = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, hb = /^.[^:#\[\.,]*$/;
|
981
|
+
_.filter = function (a, b, c) {
|
982
|
+
var d = b[0];
|
983
|
+
return c && (a = ":not(" + a + ")"), 1 === b.length && 1 === d.nodeType ? _.find.matchesSelector(d, a) ? [d] : [] : _.find.matches(a, _.grep(b, function (a) {
|
984
|
+
return 1 === a.nodeType
|
985
|
+
}))
|
986
|
+
}, _.fn.extend({
|
987
|
+
find: function (a) {
|
988
|
+
var b, c = this.length, d = [], e = this;
|
989
|
+
if ("string" != typeof a)return this.pushStack(_(a).filter(function () {
|
990
|
+
for (b = 0; c > b; b++)if (_.contains(e[b], this))return !0
|
991
|
+
}));
|
992
|
+
for (b = 0; c > b; b++)_.find(a, e[b], d);
|
993
|
+
return d = this.pushStack(c > 1 ? _.unique(d) : d), d.selector = this.selector ? this.selector + " " + a : a, d
|
994
|
+
}, filter: function (a) {
|
995
|
+
return this.pushStack(d(this, a || [], !1))
|
996
|
+
}, not: function (a) {
|
997
|
+
return this.pushStack(d(this, a || [], !0))
|
998
|
+
}, is: function (a) {
|
999
|
+
return !!d(this, "string" == typeof a && fb.test(a) ? _(a) : a || [], !1).length
|
1000
|
+
}
|
1001
|
+
});
|
1002
|
+
var ib, jb = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, kb = _.fn.init = function (a, b) {
|
1003
|
+
var c, d;
|
1004
|
+
if (!a)return this;
|
1005
|
+
if ("string" == typeof a) {
|
1006
|
+
if (c = "<" === a[0] && ">" === a[a.length - 1] && a.length >= 3 ? [null, a, null] : jb.exec(a), !c || !c[1] && b)return !b || b.jquery ? (b || ib).find(a) : this.constructor(b).find(a);
|
1007
|
+
if (c[1]) {
|
1008
|
+
if (b = b instanceof _ ? b[0] : b, _.merge(this, _.parseHTML(c[1], b && b.nodeType ? b.ownerDocument || b : Z, !0)), gb.test(c[1]) && _.isPlainObject(b))for (c in b)_.isFunction(this[c]) ? this[c](b[c]) : this.attr(c, b[c]);
|
1009
|
+
return this
|
1010
|
+
}
|
1011
|
+
return d = Z.getElementById(c[2]), d && d.parentNode && (this.length = 1, this[0] = d), this.context = Z, this.selector = a, this
|
1012
|
+
}
|
1013
|
+
return a.nodeType ? (this.context = this[0] = a, this.length = 1, this) : _.isFunction(a) ? "undefined" != typeof ib.ready ? ib.ready(a) : a(_) : (void 0 !== a.selector && (this.selector = a.selector, this.context = a.context), _.makeArray(a, this))
|
1014
|
+
};
|
1015
|
+
kb.prototype = _.fn, ib = _(Z);
|
1016
|
+
var lb = /^(?:parents|prev(?:Until|All))/, mb = {children: !0, contents: !0, next: !0, prev: !0};
|
1017
|
+
_.extend({
|
1018
|
+
dir: function (a, b, c) {
|
1019
|
+
for (var d = [], e = void 0 !== c; (a = a[b]) && 9 !== a.nodeType;)if (1 === a.nodeType) {
|
1020
|
+
if (e && _(a).is(c))break;
|
1021
|
+
d.push(a)
|
1022
|
+
}
|
1023
|
+
return d
|
1024
|
+
}, sibling: function (a, b) {
|
1025
|
+
for (var c = []; a; a = a.nextSibling)1 === a.nodeType && a !== b && c.push(a);
|
1026
|
+
return c
|
1027
|
+
}
|
1028
|
+
}), _.fn.extend({
|
1029
|
+
has: function (a) {
|
1030
|
+
var b = _(a, this), c = b.length;
|
1031
|
+
return this.filter(function () {
|
1032
|
+
for (var a = 0; c > a; a++)if (_.contains(this, b[a]))return !0
|
1033
|
+
})
|
1034
|
+
}, closest: function (a, b) {
|
1035
|
+
for (var c, d = 0, e = this.length, f = [], g = fb.test(a) || "string" != typeof a ? _(a, b || this.context) : 0; e > d; d++)for (c = this[d]; c && c !== b; c = c.parentNode)if (c.nodeType < 11 && (g ? g.index(c) > -1 : 1 === c.nodeType && _.find.matchesSelector(c, a))) {
|
1036
|
+
f.push(c);
|
1037
|
+
break
|
1038
|
+
}
|
1039
|
+
return this.pushStack(f.length > 1 ? _.unique(f) : f)
|
1040
|
+
}, index: function (a) {
|
1041
|
+
return a ? "string" == typeof a ? U.call(_(a), this[0]) : U.call(this, a.jquery ? a[0] : a) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
|
1042
|
+
}, add: function (a, b) {
|
1043
|
+
return this.pushStack(_.unique(_.merge(this.get(), _(a, b))))
|
1044
|
+
}, addBack: function (a) {
|
1045
|
+
return this.add(null == a ? this.prevObject : this.prevObject.filter(a))
|
1046
|
+
}
|
1047
|
+
}), _.each({
|
1048
|
+
parent: function (a) {
|
1049
|
+
var b = a.parentNode;
|
1050
|
+
return b && 11 !== b.nodeType ? b : null
|
1051
|
+
}, parents: function (a) {
|
1052
|
+
return _.dir(a, "parentNode")
|
1053
|
+
}, parentsUntil: function (a, b, c) {
|
1054
|
+
return _.dir(a, "parentNode", c)
|
1055
|
+
}, next: function (a) {
|
1056
|
+
return e(a, "nextSibling")
|
1057
|
+
}, prev: function (a) {
|
1058
|
+
return e(a, "previousSibling")
|
1059
|
+
}, nextAll: function (a) {
|
1060
|
+
return _.dir(a, "nextSibling")
|
1061
|
+
}, prevAll: function (a) {
|
1062
|
+
return _.dir(a, "previousSibling")
|
1063
|
+
}, nextUntil: function (a, b, c) {
|
1064
|
+
return _.dir(a, "nextSibling", c)
|
1065
|
+
}, prevUntil: function (a, b, c) {
|
1066
|
+
return _.dir(a, "previousSibling", c)
|
1067
|
+
}, siblings: function (a) {
|
1068
|
+
return _.sibling((a.parentNode || {}).firstChild, a)
|
1069
|
+
}, children: function (a) {
|
1070
|
+
return _.sibling(a.firstChild)
|
1071
|
+
}, contents: function (a) {
|
1072
|
+
return a.contentDocument || _.merge([], a.childNodes)
|
1073
|
+
}
|
1074
|
+
}, function (a, b) {
|
1075
|
+
_.fn[a] = function (c, d) {
|
1076
|
+
var e = _.map(this, b, c);
|
1077
|
+
return "Until" !== a.slice(-5) && (d = c), d && "string" == typeof d && (e = _.filter(d, e)), this.length > 1 && (mb[a] || _.unique(e), lb.test(a) && e.reverse()), this.pushStack(e)
|
1078
|
+
}
|
1079
|
+
});
|
1080
|
+
var nb = /\S+/g, ob = {};
|
1081
|
+
_.Callbacks = function (a) {
|
1082
|
+
a = "string" == typeof a ? ob[a] || f(a) : _.extend({}, a);
|
1083
|
+
var b, c, d, e, g, h, i = [], j = !a.once && [], k = function (f) {
|
1084
|
+
for (b = a.memory && f, c = !0, h = e || 0, e = 0, g = i.length, d = !0; i && g > h; h++)if (i[h].apply(f[0], f[1]) === !1 && a.stopOnFalse) {
|
1085
|
+
b = !1;
|
1086
|
+
break
|
1087
|
+
}
|
1088
|
+
d = !1, i && (j ? j.length && k(j.shift()) : b ? i = [] : l.disable())
|
1089
|
+
}, l = {
|
1090
|
+
add: function () {
|
1091
|
+
if (i) {
|
1092
|
+
var c = i.length;
|
1093
|
+
!function f(b) {
|
1094
|
+
_.each(b, function (b, c) {
|
1095
|
+
var d = _.type(c);
|
1096
|
+
"function" === d ? a.unique && l.has(c) || i.push(c) : c && c.length && "string" !== d && f(c)
|
1097
|
+
})
|
1098
|
+
}(arguments), d ? g = i.length : b && (e = c, k(b))
|
1099
|
+
}
|
1100
|
+
return this
|
1101
|
+
}, remove: function () {
|
1102
|
+
return i && _.each(arguments, function (a, b) {
|
1103
|
+
for (var c; (c = _.inArray(b, i, c)) > -1;)i.splice(c, 1), d && (g >= c && g--, h >= c && h--)
|
1104
|
+
}), this
|
1105
|
+
}, has: function (a) {
|
1106
|
+
return a ? _.inArray(a, i) > -1 : !(!i || !i.length)
|
1107
|
+
}, empty: function () {
|
1108
|
+
return i = [], g = 0, this
|
1109
|
+
}, disable: function () {
|
1110
|
+
return i = j = b = void 0, this
|
1111
|
+
}, disabled: function () {
|
1112
|
+
return !i
|
1113
|
+
}, lock: function () {
|
1114
|
+
return j = void 0, b || l.disable(), this
|
1115
|
+
}, locked: function () {
|
1116
|
+
return !j
|
1117
|
+
}, fireWith: function (a, b) {
|
1118
|
+
return !i || c && !j || (b = b || [], b = [a, b.slice ? b.slice() : b], d ? j.push(b) : k(b)), this
|
1119
|
+
}, fire: function () {
|
1120
|
+
return l.fireWith(this, arguments), this
|
1121
|
+
}, fired: function () {
|
1122
|
+
return !!c
|
1123
|
+
}
|
1124
|
+
};
|
1125
|
+
return l
|
1126
|
+
}, _.extend({
|
1127
|
+
Deferred: function (a) {
|
1128
|
+
var b = [["resolve", "done", _.Callbacks("once memory"), "resolved"], ["reject", "fail", _.Callbacks("once memory"), "rejected"], ["notify", "progress", _.Callbacks("memory")]], c = "pending", d = {
|
1129
|
+
state: function () {
|
1130
|
+
return c
|
1131
|
+
}, always: function () {
|
1132
|
+
return e.done(arguments).fail(arguments), this
|
1133
|
+
}, then: function () {
|
1134
|
+
var a = arguments;
|
1135
|
+
return _.Deferred(function (c) {
|
1136
|
+
_.each(b, function (b, f) {
|
1137
|
+
var g = _.isFunction(a[b]) && a[b];
|
1138
|
+
e[f[1]](function () {
|
1139
|
+
var a = g && g.apply(this, arguments);
|
1140
|
+
a && _.isFunction(a.promise) ? a.promise().done(c.resolve).fail(c.reject).progress(c.notify) : c[f[0] + "With"](this === d ? c.promise() : this, g ? [a] : arguments)
|
1141
|
+
})
|
1142
|
+
}), a = null
|
1143
|
+
}).promise()
|
1144
|
+
}, promise: function (a) {
|
1145
|
+
return null != a ? _.extend(a, d) : d
|
1146
|
+
}
|
1147
|
+
}, e = {};
|
1148
|
+
return d.pipe = d.then, _.each(b, function (a, f) {
|
1149
|
+
var g = f[2], h = f[3];
|
1150
|
+
d[f[1]] = g.add, h && g.add(function () {
|
1151
|
+
c = h
|
1152
|
+
}, b[1 ^ a][2].disable, b[2][2].lock), e[f[0]] = function () {
|
1153
|
+
return e[f[0] + "With"](this === e ? d : this, arguments), this
|
1154
|
+
}, e[f[0] + "With"] = g.fireWith
|
1155
|
+
}), d.promise(e), a && a.call(e, e), e
|
1156
|
+
}, when: function (a) {
|
1157
|
+
var b, c, d, e = 0, f = R.call(arguments), g = f.length, h = 1 !== g || a && _.isFunction(a.promise) ? g : 0, i = 1 === h ? a : _.Deferred(), j = function (a, c, d) {
|
1158
|
+
return function (e) {
|
1159
|
+
c[a] = this, d[a] = arguments.length > 1 ? R.call(arguments) : e, d === b ? i.notifyWith(c, d) : --h || i.resolveWith(c, d)
|
1160
|
+
}
|
1161
|
+
};
|
1162
|
+
if (g > 1)for (b = new Array(g), c = new Array(g), d = new Array(g); g > e; e++)f[e] && _.isFunction(f[e].promise) ? f[e].promise().done(j(e, d, f)).fail(i.reject).progress(j(e, c, b)) : --h;
|
1163
|
+
return h || i.resolveWith(d, f), i.promise()
|
1164
|
+
}
|
1165
|
+
});
|
1166
|
+
var pb;
|
1167
|
+
_.fn.ready = function (a) {
|
1168
|
+
return _.ready.promise().done(a), this
|
1169
|
+
}, _.extend({
|
1170
|
+
isReady: !1, readyWait: 1, holdReady: function (a) {
|
1171
|
+
a ? _.readyWait++ : _.ready(!0)
|
1172
|
+
}, ready: function (a) {
|
1173
|
+
(a === !0 ? --_.readyWait : _.isReady) || (_.isReady = !0, a !== !0 && --_.readyWait > 0 || (pb.resolveWith(Z, [_]), _.fn.triggerHandler && (_(Z).triggerHandler("ready"), _(Z).off("ready"))))
|
1174
|
+
}
|
1175
|
+
}), _.ready.promise = function (b) {
|
1176
|
+
return pb || (pb = _.Deferred(), "complete" === Z.readyState ? setTimeout(_.ready) : (Z.addEventListener("DOMContentLoaded", g, !1), a.addEventListener("load", g, !1))), pb.promise(b)
|
1177
|
+
}, _.ready.promise();
|
1178
|
+
var qb = _.access = function (a, b, c, d, e, f, g) {
|
1179
|
+
var h = 0, i = a.length, j = null == c;
|
1180
|
+
if ("object" === _.type(c)) {
|
1181
|
+
e = !0;
|
1182
|
+
for (h in c)_.access(a, b, h, c[h], !0, f, g)
|
1183
|
+
} else if (void 0 !== d && (e = !0, _.isFunction(d) || (g = !0), j && (g ? (b.call(a, d), b = null) : (j = b, b = function (a, b, c) {
|
1184
|
+
return j.call(_(a), c)
|
1185
|
+
})), b))for (; i > h; h++)b(a[h], c, g ? d : d.call(a[h], h, b(a[h], c)));
|
1186
|
+
return e ? a : j ? b.call(a) : i ? b(a[0], c) : f
|
1187
|
+
};
|
1188
|
+
_.acceptData = function (a) {
|
1189
|
+
return 1 === a.nodeType || 9 === a.nodeType || !+a.nodeType
|
1190
|
+
}, h.uid = 1, h.accepts = _.acceptData, h.prototype = {
|
1191
|
+
key: function (a) {
|
1192
|
+
if (!h.accepts(a))return 0;
|
1193
|
+
var b = {}, c = a[this.expando];
|
1194
|
+
if (!c) {
|
1195
|
+
c = h.uid++;
|
1196
|
+
try {
|
1197
|
+
b[this.expando] = {value: c}, Object.defineProperties(a, b)
|
1198
|
+
} catch (d) {
|
1199
|
+
b[this.expando] = c, _.extend(a, b)
|
1200
|
+
}
|
1201
|
+
}
|
1202
|
+
return this.cache[c] || (this.cache[c] = {}), c
|
1203
|
+
}, set: function (a, b, c) {
|
1204
|
+
var d, e = this.key(a), f = this.cache[e];
|
1205
|
+
if ("string" == typeof b)f[b] = c; else if (_.isEmptyObject(f))_.extend(this.cache[e], b); else for (d in b)f[d] = b[d];
|
1206
|
+
return f
|
1207
|
+
}, get: function (a, b) {
|
1208
|
+
var c = this.cache[this.key(a)];
|
1209
|
+
return void 0 === b ? c : c[b]
|
1210
|
+
}, access: function (a, b, c) {
|
1211
|
+
var d;
|
1212
|
+
return void 0 === b || b && "string" == typeof b && void 0 === c ? (d = this.get(a, b), void 0 !== d ? d : this.get(a, _.camelCase(b))) : (this.set(a, b, c), void 0 !== c ? c : b)
|
1213
|
+
}, remove: function (a, b) {
|
1214
|
+
var c, d, e, f = this.key(a), g = this.cache[f];
|
1215
|
+
if (void 0 === b)this.cache[f] = {}; else {
|
1216
|
+
_.isArray(b) ? d = b.concat(b.map(_.camelCase)) : (e = _.camelCase(b), b in g ? d = [b, e] : (d = e, d = d in g ? [d] : d.match(nb) || [])), c = d.length;
|
1217
|
+
for (; c--;)delete g[d[c]]
|
1218
|
+
}
|
1219
|
+
}, hasData: function (a) {
|
1220
|
+
return !_.isEmptyObject(this.cache[a[this.expando]] || {})
|
1221
|
+
}, discard: function (a) {
|
1222
|
+
a[this.expando] && delete this.cache[a[this.expando]]
|
1223
|
+
}
|
1224
|
+
};
|
1225
|
+
var rb = new h, sb = new h, tb = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, ub = /([A-Z])/g;
|
1226
|
+
_.extend({
|
1227
|
+
hasData: function (a) {
|
1228
|
+
return sb.hasData(a) || rb.hasData(a)
|
1229
|
+
}, data: function (a, b, c) {
|
1230
|
+
return sb.access(a, b, c)
|
1231
|
+
}, removeData: function (a, b) {
|
1232
|
+
sb.remove(a, b)
|
1233
|
+
}, _data: function (a, b, c) {
|
1234
|
+
return rb.access(a, b, c)
|
1235
|
+
}, _removeData: function (a, b) {
|
1236
|
+
rb.remove(a, b)
|
1237
|
+
}
|
1238
|
+
}), _.fn.extend({
|
1239
|
+
data: function (a, b) {
|
1240
|
+
var c, d, e, f = this[0], g = f && f.attributes;
|
1241
|
+
if (void 0 === a) {
|
1242
|
+
if (this.length && (e = sb.get(f), 1 === f.nodeType && !rb.get(f, "hasDataAttrs"))) {
|
1243
|
+
for (c = g.length; c--;)g[c] && (d = g[c].name, 0 === d.indexOf("data-") && (d = _.camelCase(d.slice(5)), i(f, d, e[d])));
|
1244
|
+
rb.set(f, "hasDataAttrs", !0)
|
1245
|
+
}
|
1246
|
+
return e
|
1247
|
+
}
|
1248
|
+
return "object" == typeof a ? this.each(function () {
|
1249
|
+
sb.set(this, a)
|
1250
|
+
}) : qb(this, function (b) {
|
1251
|
+
var c, d = _.camelCase(a);
|
1252
|
+
if (f && void 0 === b) {
|
1253
|
+
if (c = sb.get(f, a), void 0 !== c)return c;
|
1254
|
+
if (c = sb.get(f, d), void 0 !== c)return c;
|
1255
|
+
if (c = i(f, d, void 0), void 0 !== c)return c
|
1256
|
+
} else this.each(function () {
|
1257
|
+
var c = sb.get(this, d);
|
1258
|
+
sb.set(this, d, b), -1 !== a.indexOf("-") && void 0 !== c && sb.set(this, a, b)
|
1259
|
+
})
|
1260
|
+
}, null, b, arguments.length > 1, null, !0)
|
1261
|
+
}, removeData: function (a) {
|
1262
|
+
return this.each(function () {
|
1263
|
+
sb.remove(this, a)
|
1264
|
+
})
|
1265
|
+
}
|
1266
|
+
}), _.extend({
|
1267
|
+
queue: function (a, b, c) {
|
1268
|
+
var d;
|
1269
|
+
return a ? (b = (b || "fx") + "queue", d = rb.get(a, b), c && (!d || _.isArray(c) ? d = rb.access(a, b, _.makeArray(c)) : d.push(c)), d || []) : void 0
|
1270
|
+
}, dequeue: function (a, b) {
|
1271
|
+
b = b || "fx";
|
1272
|
+
var c = _.queue(a, b), d = c.length, e = c.shift(), f = _._queueHooks(a, b), g = function () {
|
1273
|
+
_.dequeue(a, b)
|
1274
|
+
};
|
1275
|
+
"inprogress" === e && (e = c.shift(), d--), e && ("fx" === b && c.unshift("inprogress"), delete f.stop, e.call(a, g, f)), !d && f && f.empty.fire()
|
1276
|
+
}, _queueHooks: function (a, b) {
|
1277
|
+
var c = b + "queueHooks";
|
1278
|
+
return rb.get(a, c) || rb.access(a, c, {
|
1279
|
+
empty: _.Callbacks("once memory").add(function () {
|
1280
|
+
rb.remove(a, [b + "queue", c])
|
1281
|
+
})
|
1282
|
+
})
|
1283
|
+
}
|
1284
|
+
}), _.fn.extend({
|
1285
|
+
queue: function (a, b) {
|
1286
|
+
var c = 2;
|
1287
|
+
return "string" != typeof a && (b = a, a = "fx", c--), arguments.length < c ? _.queue(this[0], a) : void 0 === b ? this : this.each(function () {
|
1288
|
+
var c = _.queue(this, a, b);
|
1289
|
+
_._queueHooks(this, a), "fx" === a && "inprogress" !== c[0] && _.dequeue(this, a)
|
1290
|
+
})
|
1291
|
+
}, dequeue: function (a) {
|
1292
|
+
return this.each(function () {
|
1293
|
+
_.dequeue(this, a)
|
1294
|
+
})
|
1295
|
+
}, clearQueue: function (a) {
|
1296
|
+
return this.queue(a || "fx", [])
|
1297
|
+
}, promise: function (a, b) {
|
1298
|
+
var c, d = 1, e = _.Deferred(), f = this, g = this.length, h = function () {
|
1299
|
+
--d || e.resolveWith(f, [f])
|
1300
|
+
};
|
1301
|
+
for ("string" != typeof a && (b = a, a = void 0), a = a || "fx"; g--;)c = rb.get(f[g], a + "queueHooks"), c && c.empty && (d++, c.empty.add(h));
|
1302
|
+
return h(), e.promise(b)
|
1303
|
+
}
|
1304
|
+
});
|
1305
|
+
var vb = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, wb = ["Top", "Right", "Bottom", "Left"], xb = function (a, b) {
|
1306
|
+
return a = b || a, "none" === _.css(a, "display") || !_.contains(a.ownerDocument, a)
|
1307
|
+
}, yb = /^(?:checkbox|radio)$/i;
|
1308
|
+
!function () {
|
1309
|
+
var a = Z.createDocumentFragment(), b = a.appendChild(Z.createElement("div")), c = Z.createElement("input");
|
1310
|
+
c.setAttribute("type", "radio"), c.setAttribute("checked", "checked"), c.setAttribute("name", "t"), b.appendChild(c), Y.checkClone = b.cloneNode(!0).cloneNode(!0).lastChild.checked, b.innerHTML = "<textarea>x</textarea>", Y.noCloneChecked = !!b.cloneNode(!0).lastChild.defaultValue
|
1311
|
+
}();
|
1312
|
+
var zb = "undefined";
|
1313
|
+
Y.focusinBubbles = "onfocusin"in a;
|
1314
|
+
var Ab = /^key/, Bb = /^(?:mouse|pointer|contextmenu)|click/, Cb = /^(?:focusinfocus|focusoutblur)$/, Db = /^([^.]*)(?:\.(.+)|)$/;
|
1315
|
+
_.event = {
|
1316
|
+
global: {},
|
1317
|
+
add: function (a, b, c, d, e) {
|
1318
|
+
var f, g, h, i, j, k, l, m, n, o, p, q = rb.get(a);
|
1319
|
+
if (q)for (c.handler && (f = c, c = f.handler, e = f.selector), c.guid || (c.guid = _.guid++), (i = q.events) || (i = q.events = {}), (g = q.handle) || (g = q.handle = function (b) {
|
1320
|
+
return typeof _ !== zb && _.event.triggered !== b.type ? _.event.dispatch.apply(a, arguments) : void 0
|
1321
|
+
}), b = (b || "").match(nb) || [""], j = b.length; j--;)h = Db.exec(b[j]) || [], n = p = h[1], o = (h[2] || "").split(".").sort(), n && (l = _.event.special[n] || {}, n = (e ? l.delegateType : l.bindType) || n, l = _.event.special[n] || {}, k = _.extend({
|
1322
|
+
type: n,
|
1323
|
+
origType: p,
|
1324
|
+
data: d,
|
1325
|
+
handler: c,
|
1326
|
+
guid: c.guid,
|
1327
|
+
selector: e,
|
1328
|
+
needsContext: e && _.expr.match.needsContext.test(e),
|
1329
|
+
namespace: o.join(".")
|
1330
|
+
}, f), (m = i[n]) || (m = i[n] = [], m.delegateCount = 0, l.setup && l.setup.call(a, d, o, g) !== !1 || a.addEventListener && a.addEventListener(n, g, !1)), l.add && (l.add.call(a, k), k.handler.guid || (k.handler.guid = c.guid)), e ? m.splice(m.delegateCount++, 0, k) : m.push(k), _.event.global[n] = !0)
|
1331
|
+
},
|
1332
|
+
remove: function (a, b, c, d, e) {
|
1333
|
+
var f, g, h, i, j, k, l, m, n, o, p, q = rb.hasData(a) && rb.get(a);
|
1334
|
+
if (q && (i = q.events)) {
|
1335
|
+
for (b = (b || "").match(nb) || [""], j = b.length; j--;)if (h = Db.exec(b[j]) || [], n = p = h[1], o = (h[2] || "").split(".").sort(), n) {
|
1336
|
+
for (l = _.event.special[n] || {}, n = (d ? l.delegateType : l.bindType) || n, m = i[n] || [], h = h[2] && new RegExp("(^|\\.)" + o.join("\\.(?:.*\\.|)") + "(\\.|$)"), g = f = m.length; f--;)k = m[f], !e && p !== k.origType || c && c.guid !== k.guid || h && !h.test(k.namespace) || d && d !== k.selector && ("**" !== d || !k.selector) || (m.splice(f, 1), k.selector && m.delegateCount--, l.remove && l.remove.call(a, k));
|
1337
|
+
g && !m.length && (l.teardown && l.teardown.call(a, o, q.handle) !== !1 || _.removeEvent(a, n, q.handle), delete i[n])
|
1338
|
+
} else for (n in i)_.event.remove(a, n + b[j], c, d, !0);
|
1339
|
+
_.isEmptyObject(i) && (delete q.handle, rb.remove(a, "events"))
|
1340
|
+
}
|
1341
|
+
},
|
1342
|
+
trigger: function (b, c, d, e) {
|
1343
|
+
var f, g, h, i, j, k, l, m = [d || Z], n = X.call(b, "type") ? b.type : b, o = X.call(b, "namespace") ? b.namespace.split(".") : [];
|
1344
|
+
if (g = h = d = d || Z, 3 !== d.nodeType && 8 !== d.nodeType && !Cb.test(n + _.event.triggered) && (n.indexOf(".") >= 0 && (o = n.split("."), n = o.shift(), o.sort()), j = n.indexOf(":") < 0 && "on" + n, b = b[_.expando] ? b : new _.Event(n, "object" == typeof b && b), b.isTrigger = e ? 2 : 3, b.namespace = o.join("."), b.namespace_re = b.namespace ? new RegExp("(^|\\.)" + o.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, b.result = void 0, b.target || (b.target = d), c = null == c ? [b] : _.makeArray(c, [b]), l = _.event.special[n] || {}, e || !l.trigger || l.trigger.apply(d, c) !== !1)) {
|
1345
|
+
if (!e && !l.noBubble && !_.isWindow(d)) {
|
1346
|
+
for (i = l.delegateType || n, Cb.test(i + n) || (g = g.parentNode); g; g = g.parentNode)m.push(g), h = g;
|
1347
|
+
h === (d.ownerDocument || Z) && m.push(h.defaultView || h.parentWindow || a)
|
1348
|
+
}
|
1349
|
+
for (f = 0; (g = m[f++]) && !b.isPropagationStopped();)b.type = f > 1 ? i : l.bindType || n, k = (rb.get(g, "events") || {})[b.type] && rb.get(g, "handle"), k && k.apply(g, c), k = j && g[j], k && k.apply && _.acceptData(g) && (b.result = k.apply(g, c), b.result === !1 && b.preventDefault());
|
1350
|
+
return b.type = n, e || b.isDefaultPrevented() || l._default && l._default.apply(m.pop(), c) !== !1 || !_.acceptData(d) || j && _.isFunction(d[n]) && !_.isWindow(d) && (h = d[j], h && (d[j] = null), _.event.triggered = n, d[n](), _.event.triggered = void 0, h && (d[j] = h)), b.result
|
1351
|
+
}
|
1352
|
+
},
|
1353
|
+
dispatch: function (a) {
|
1354
|
+
a = _.event.fix(a);
|
1355
|
+
var b, c, d, e, f, g = [], h = R.call(arguments), i = (rb.get(this, "events") || {})[a.type] || [], j = _.event.special[a.type] || {};
|
1356
|
+
if (h[0] = a, a.delegateTarget = this, !j.preDispatch || j.preDispatch.call(this, a) !== !1) {
|
1357
|
+
for (g = _.event.handlers.call(this, a, i), b = 0; (e = g[b++]) && !a.isPropagationStopped();)for (a.currentTarget = e.elem, c = 0; (f = e.handlers[c++]) && !a.isImmediatePropagationStopped();)(!a.namespace_re || a.namespace_re.test(f.namespace)) && (a.handleObj = f, a.data = f.data, d = ((_.event.special[f.origType] || {}).handle || f.handler).apply(e.elem, h), void 0 !== d && (a.result = d) === !1 && (a.preventDefault(), a.stopPropagation()));
|
1358
|
+
return j.postDispatch && j.postDispatch.call(this, a), a.result
|
1359
|
+
}
|
1360
|
+
},
|
1361
|
+
handlers: function (a, b) {
|
1362
|
+
var c, d, e, f, g = [], h = b.delegateCount, i = a.target;
|
1363
|
+
if (h && i.nodeType && (!a.button || "click" !== a.type))for (; i !== this; i = i.parentNode || this)if (i.disabled !== !0 || "click" !== a.type) {
|
1364
|
+
for (d = [], c = 0; h > c; c++)f = b[c], e = f.selector + " ", void 0 === d[e] && (d[e] = f.needsContext ? _(e, this).index(i) >= 0 : _.find(e, this, null, [i]).length), d[e] && d.push(f);
|
1365
|
+
d.length && g.push({elem: i, handlers: d})
|
1366
|
+
}
|
1367
|
+
return h < b.length && g.push({elem: this, handlers: b.slice(h)}), g
|
1368
|
+
},
|
1369
|
+
props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
|
1370
|
+
fixHooks: {},
|
1371
|
+
keyHooks: {
|
1372
|
+
props: "char charCode key keyCode".split(" "), filter: function (a, b) {
|
1373
|
+
return null == a.which && (a.which = null != b.charCode ? b.charCode : b.keyCode), a
|
1374
|
+
}
|
1375
|
+
},
|
1376
|
+
mouseHooks: {
|
1377
|
+
props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
|
1378
|
+
filter: function (a, b) {
|
1379
|
+
var c, d, e, f = b.button;
|
1380
|
+
return null == a.pageX && null != b.clientX && (c = a.target.ownerDocument || Z, d = c.documentElement, e = c.body, a.pageX = b.clientX + (d && d.scrollLeft || e && e.scrollLeft || 0) - (d && d.clientLeft || e && e.clientLeft || 0), a.pageY = b.clientY + (d && d.scrollTop || e && e.scrollTop || 0) - (d && d.clientTop || e && e.clientTop || 0)), a.which || void 0 === f || (a.which = 1 & f ? 1 : 2 & f ? 3 : 4 & f ? 2 : 0), a
|
1381
|
+
}
|
1382
|
+
},
|
1383
|
+
fix: function (a) {
|
1384
|
+
if (a[_.expando])return a;
|
1385
|
+
var b, c, d, e = a.type, f = a, g = this.fixHooks[e];
|
1386
|
+
for (g || (this.fixHooks[e] = g = Bb.test(e) ? this.mouseHooks : Ab.test(e) ? this.keyHooks : {}), d = g.props ? this.props.concat(g.props) : this.props, a = new _.Event(f), b = d.length; b--;)c = d[b], a[c] = f[c];
|
1387
|
+
return a.target || (a.target = Z), 3 === a.target.nodeType && (a.target = a.target.parentNode), g.filter ? g.filter(a, f) : a
|
1388
|
+
},
|
1389
|
+
special: {
|
1390
|
+
load: {noBubble: !0}, focus: {
|
1391
|
+
trigger: function () {
|
1392
|
+
return this !== l() && this.focus ? (this.focus(), !1) : void 0
|
1393
|
+
}, delegateType: "focusin"
|
1394
|
+
}, blur: {
|
1395
|
+
trigger: function () {
|
1396
|
+
return this === l() && this.blur ? (this.blur(), !1) : void 0
|
1397
|
+
}, delegateType: "focusout"
|
1398
|
+
}, click: {
|
1399
|
+
trigger: function () {
|
1400
|
+
return "checkbox" === this.type && this.click && _.nodeName(this, "input") ? (this.click(), !1) : void 0
|
1401
|
+
}, _default: function (a) {
|
1402
|
+
return _.nodeName(a.target, "a")
|
1403
|
+
}
|
1404
|
+
}, beforeunload: {
|
1405
|
+
postDispatch: function (a) {
|
1406
|
+
void 0 !== a.result && a.originalEvent && (a.originalEvent.returnValue = a.result)
|
1407
|
+
}
|
1408
|
+
}
|
1409
|
+
},
|
1410
|
+
simulate: function (a, b, c, d) {
|
1411
|
+
var e = _.extend(new _.Event, c, {type: a, isSimulated: !0, originalEvent: {}});
|
1412
|
+
d ? _.event.trigger(e, null, b) : _.event.dispatch.call(b, e), e.isDefaultPrevented() && c.preventDefault()
|
1413
|
+
}
|
1414
|
+
}, _.removeEvent = function (a, b, c) {
|
1415
|
+
a.removeEventListener && a.removeEventListener(b, c, !1)
|
1416
|
+
}, _.Event = function (a, b) {
|
1417
|
+
return this instanceof _.Event ? (a && a.type ? (this.originalEvent = a, this.type = a.type, this.isDefaultPrevented = a.defaultPrevented || void 0 === a.defaultPrevented && a.returnValue === !1 ? j : k) : this.type = a, b && _.extend(this, b), this.timeStamp = a && a.timeStamp || _.now(), void(this[_.expando] = !0)) : new _.Event(a, b)
|
1418
|
+
}, _.Event.prototype = {
|
1419
|
+
isDefaultPrevented: k,
|
1420
|
+
isPropagationStopped: k,
|
1421
|
+
isImmediatePropagationStopped: k,
|
1422
|
+
preventDefault: function () {
|
1423
|
+
var a = this.originalEvent;
|
1424
|
+
this.isDefaultPrevented = j, a && a.preventDefault && a.preventDefault()
|
1425
|
+
},
|
1426
|
+
stopPropagation: function () {
|
1427
|
+
var a = this.originalEvent;
|
1428
|
+
this.isPropagationStopped = j, a && a.stopPropagation && a.stopPropagation()
|
1429
|
+
},
|
1430
|
+
stopImmediatePropagation: function () {
|
1431
|
+
var a = this.originalEvent;
|
1432
|
+
this.isImmediatePropagationStopped = j, a && a.stopImmediatePropagation && a.stopImmediatePropagation(), this.stopPropagation()
|
1433
|
+
}
|
1434
|
+
}, _.each({
|
1435
|
+
mouseenter: "mouseover",
|
1436
|
+
mouseleave: "mouseout",
|
1437
|
+
pointerenter: "pointerover",
|
1438
|
+
pointerleave: "pointerout"
|
1439
|
+
}, function (a, b) {
|
1440
|
+
_.event.special[a] = {
|
1441
|
+
delegateType: b, bindType: b, handle: function (a) {
|
1442
|
+
var c, d = this, e = a.relatedTarget, f = a.handleObj;
|
1443
|
+
return (!e || e !== d && !_.contains(d, e)) && (a.type = f.origType, c = f.handler.apply(this, arguments), a.type = b), c
|
1444
|
+
}
|
1445
|
+
}
|
1446
|
+
}), Y.focusinBubbles || _.each({focus: "focusin", blur: "focusout"}, function (a, b) {
|
1447
|
+
var c = function (a) {
|
1448
|
+
_.event.simulate(b, a.target, _.event.fix(a), !0)
|
1449
|
+
};
|
1450
|
+
_.event.special[b] = {
|
1451
|
+
setup: function () {
|
1452
|
+
var d = this.ownerDocument || this, e = rb.access(d, b);
|
1453
|
+
e || d.addEventListener(a, c, !0), rb.access(d, b, (e || 0) + 1)
|
1454
|
+
}, teardown: function () {
|
1455
|
+
var d = this.ownerDocument || this, e = rb.access(d, b) - 1;
|
1456
|
+
e ? rb.access(d, b, e) : (d.removeEventListener(a, c, !0), rb.remove(d, b))
|
1457
|
+
}
|
1458
|
+
}
|
1459
|
+
}), _.fn.extend({
|
1460
|
+
on: function (a, b, c, d, e) {
|
1461
|
+
var f, g;
|
1462
|
+
if ("object" == typeof a) {
|
1463
|
+
"string" != typeof b && (c = c || b, b = void 0);
|
1464
|
+
for (g in a)this.on(g, b, c, a[g], e);
|
1465
|
+
return this
|
1466
|
+
}
|
1467
|
+
if (null == c && null == d ? (d = b, c = b = void 0) : null == d && ("string" == typeof b ? (d = c, c = void 0) : (d = c, c = b, b = void 0)), d === !1)d = k; else if (!d)return this;
|
1468
|
+
return 1 === e && (f = d, d = function (a) {
|
1469
|
+
return _().off(a), f.apply(this, arguments)
|
1470
|
+
}, d.guid = f.guid || (f.guid = _.guid++)), this.each(function () {
|
1471
|
+
_.event.add(this, a, d, c, b)
|
1472
|
+
})
|
1473
|
+
}, one: function (a, b, c, d) {
|
1474
|
+
return this.on(a, b, c, d, 1)
|
1475
|
+
}, off: function (a, b, c) {
|
1476
|
+
var d, e;
|
1477
|
+
if (a && a.preventDefault && a.handleObj)return d = a.handleObj, _(a.delegateTarget).off(d.namespace ? d.origType + "." + d.namespace : d.origType, d.selector, d.handler), this;
|
1478
|
+
if ("object" == typeof a) {
|
1479
|
+
for (e in a)this.off(e, b, a[e]);
|
1480
|
+
return this
|
1481
|
+
}
|
1482
|
+
return (b === !1 || "function" == typeof b) && (c = b, b = void 0), c === !1 && (c = k), this.each(function () {
|
1483
|
+
_.event.remove(this, a, c, b)
|
1484
|
+
})
|
1485
|
+
}, trigger: function (a, b) {
|
1486
|
+
return this.each(function () {
|
1487
|
+
_.event.trigger(a, b, this)
|
1488
|
+
})
|
1489
|
+
}, triggerHandler: function (a, b) {
|
1490
|
+
var c = this[0];
|
1491
|
+
return c ? _.event.trigger(a, b, c, !0) : void 0
|
1492
|
+
}
|
1493
|
+
});
|
1494
|
+
var Eb = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, Fb = /<([\w:]+)/, Gb = /<|&#?\w+;/, Hb = /<(?:script|style|link)/i, Ib = /checked\s*(?:[^=]|=\s*.checked.)/i, Jb = /^$|\/(?:java|ecma)script/i, Kb = /^true\/(.*)/, Lb = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, Mb = {
|
1495
|
+
option: [1, "<select multiple='multiple'>", "</select>"],
|
1496
|
+
thead: [1, "<table>", "</table>"],
|
1497
|
+
col: [2, "<table><colgroup>", "</colgroup></table>"],
|
1498
|
+
tr: [2, "<table><tbody>", "</tbody></table>"],
|
1499
|
+
td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
|
1500
|
+
_default: [0, "", ""]
|
1501
|
+
};
|
1502
|
+
Mb.optgroup = Mb.option, Mb.tbody = Mb.tfoot = Mb.colgroup = Mb.caption = Mb.thead, Mb.th = Mb.td, _.extend({
|
1503
|
+
clone: function (a, b, c) {
|
1504
|
+
var d, e, f, g, h = a.cloneNode(!0), i = _.contains(a.ownerDocument, a);
|
1505
|
+
if (!(Y.noCloneChecked || 1 !== a.nodeType && 11 !== a.nodeType || _.isXMLDoc(a)))for (g = r(h), f = r(a), d = 0, e = f.length; e > d; d++)s(f[d], g[d]);
|
1506
|
+
if (b)if (c)for (f = f || r(a), g = g || r(h), d = 0, e = f.length; e > d; d++)q(f[d], g[d]); else q(a, h);
|
1507
|
+
return g = r(h, "script"), g.length > 0 && p(g, !i && r(a, "script")), h
|
1508
|
+
}, buildFragment: function (a, b, c, d) {
|
1509
|
+
for (var e, f, g, h, i, j, k = b.createDocumentFragment(), l = [], m = 0, n = a.length; n > m; m++)if (e = a[m], e || 0 === e)if ("object" === _.type(e))_.merge(l, e.nodeType ? [e] : e); else if (Gb.test(e)) {
|
1510
|
+
for (f = f || k.appendChild(b.createElement("div")), g = (Fb.exec(e) || ["", ""])[1].toLowerCase(), h = Mb[g] || Mb._default, f.innerHTML = h[1] + e.replace(Eb, "<$1></$2>") + h[2], j = h[0]; j--;)f = f.lastChild;
|
1511
|
+
_.merge(l, f.childNodes), f = k.firstChild, f.textContent = ""
|
1512
|
+
} else l.push(b.createTextNode(e));
|
1513
|
+
for (k.textContent = "", m = 0; e = l[m++];)if ((!d || -1 === _.inArray(e, d)) && (i = _.contains(e.ownerDocument, e), f = r(k.appendChild(e), "script"), i && p(f), c))for (j = 0; e = f[j++];)Jb.test(e.type || "") && c.push(e);
|
1514
|
+
return k
|
1515
|
+
}, cleanData: function (a) {
|
1516
|
+
for (var b, c, d, e, f = _.event.special, g = 0; void 0 !== (c = a[g]); g++) {
|
1517
|
+
if (_.acceptData(c) && (e = c[rb.expando], e && (b = rb.cache[e]))) {
|
1518
|
+
if (b.events)for (d in b.events)f[d] ? _.event.remove(c, d) : _.removeEvent(c, d, b.handle);
|
1519
|
+
rb.cache[e] && delete rb.cache[e]
|
1520
|
+
}
|
1521
|
+
delete sb.cache[c[sb.expando]]
|
1522
|
+
}
|
1523
|
+
}
|
1524
|
+
}), _.fn.extend({
|
1525
|
+
text: function (a) {
|
1526
|
+
return qb(this, function (a) {
|
1527
|
+
return void 0 === a ? _.text(this) : this.empty().each(function () {
|
1528
|
+
(1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) && (this.textContent = a)
|
1529
|
+
})
|
1530
|
+
}, null, a, arguments.length)
|
1531
|
+
}, append: function () {
|
1532
|
+
return this.domManip(arguments, function (a) {
|
1533
|
+
if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
|
1534
|
+
var b = m(this, a);
|
1535
|
+
b.appendChild(a)
|
1536
|
+
}
|
1537
|
+
})
|
1538
|
+
}, prepend: function () {
|
1539
|
+
return this.domManip(arguments, function (a) {
|
1540
|
+
if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
|
1541
|
+
var b = m(this, a);
|
1542
|
+
b.insertBefore(a, b.firstChild)
|
1543
|
+
}
|
1544
|
+
})
|
1545
|
+
}, before: function () {
|
1546
|
+
return this.domManip(arguments, function (a) {
|
1547
|
+
this.parentNode && this.parentNode.insertBefore(a, this)
|
1548
|
+
})
|
1549
|
+
}, after: function () {
|
1550
|
+
return this.domManip(arguments, function (a) {
|
1551
|
+
this.parentNode && this.parentNode.insertBefore(a, this.nextSibling)
|
1552
|
+
})
|
1553
|
+
}, remove: function (a, b) {
|
1554
|
+
for (var c, d = a ? _.filter(a, this) : this, e = 0; null != (c = d[e]); e++)b || 1 !== c.nodeType || _.cleanData(r(c)), c.parentNode && (b && _.contains(c.ownerDocument, c) && p(r(c, "script")), c.parentNode.removeChild(c));
|
1555
|
+
return this
|
1556
|
+
}, empty: function () {
|
1557
|
+
for (var a, b = 0; null != (a = this[b]); b++)1 === a.nodeType && (_.cleanData(r(a, !1)), a.textContent = "");
|
1558
|
+
return this
|
1559
|
+
}, clone: function (a, b) {
|
1560
|
+
return a = null == a ? !1 : a, b = null == b ? a : b, this.map(function () {
|
1561
|
+
return _.clone(this, a, b)
|
1562
|
+
})
|
1563
|
+
}, html: function (a) {
|
1564
|
+
return qb(this, function (a) {
|
1565
|
+
var b = this[0] || {}, c = 0, d = this.length;
|
1566
|
+
if (void 0 === a && 1 === b.nodeType)return b.innerHTML;
|
1567
|
+
if ("string" == typeof a && !Hb.test(a) && !Mb[(Fb.exec(a) || ["", ""])[1].toLowerCase()]) {
|
1568
|
+
a = a.replace(Eb, "<$1></$2>");
|
1569
|
+
try {
|
1570
|
+
for (; d > c; c++)b = this[c] || {}, 1 === b.nodeType && (_.cleanData(r(b, !1)), b.innerHTML = a);
|
1571
|
+
b = 0
|
1572
|
+
} catch (e) {
|
1573
|
+
}
|
1574
|
+
}
|
1575
|
+
b && this.empty().append(a)
|
1576
|
+
}, null, a, arguments.length)
|
1577
|
+
}, replaceWith: function () {
|
1578
|
+
var a = arguments[0];
|
1579
|
+
return this.domManip(arguments, function (b) {
|
1580
|
+
a = this.parentNode, _.cleanData(r(this)), a && a.replaceChild(b, this)
|
1581
|
+
}), a && (a.length || a.nodeType) ? this : this.remove()
|
1582
|
+
}, detach: function (a) {
|
1583
|
+
return this.remove(a, !0)
|
1584
|
+
}, domManip: function (a, b) {
|
1585
|
+
a = S.apply([], a);
|
1586
|
+
var c, d, e, f, g, h, i = 0, j = this.length, k = this, l = j - 1, m = a[0], p = _.isFunction(m);
|
1587
|
+
if (p || j > 1 && "string" == typeof m && !Y.checkClone && Ib.test(m))return this.each(function (c) {
|
1588
|
+
var d = k.eq(c);
|
1589
|
+
p && (a[0] = m.call(this, c, d.html())), d.domManip(a, b)
|
1590
|
+
});
|
1591
|
+
if (j && (c = _.buildFragment(a, this[0].ownerDocument, !1, this), d = c.firstChild, 1 === c.childNodes.length && (c = d), d)) {
|
1592
|
+
for (e = _.map(r(c, "script"), n), f = e.length; j > i; i++)g = c, i !== l && (g = _.clone(g, !0, !0), f && _.merge(e, r(g, "script"))), b.call(this[i], g, i);
|
1593
|
+
if (f)for (h = e[e.length - 1].ownerDocument, _.map(e, o), i = 0; f > i; i++)g = e[i], Jb.test(g.type || "") && !rb.access(g, "globalEval") && _.contains(h, g) && (g.src ? _._evalUrl && _._evalUrl(g.src) : _.globalEval(g.textContent.replace(Lb, "")))
|
1594
|
+
}
|
1595
|
+
return this
|
1596
|
+
}
|
1597
|
+
}), _.each({
|
1598
|
+
appendTo: "append",
|
1599
|
+
prependTo: "prepend",
|
1600
|
+
insertBefore: "before",
|
1601
|
+
insertAfter: "after",
|
1602
|
+
replaceAll: "replaceWith"
|
1603
|
+
}, function (a, b) {
|
1604
|
+
_.fn[a] = function (a) {
|
1605
|
+
for (var c, d = [], e = _(a), f = e.length - 1, g = 0; f >= g; g++)c = g === f ? this : this.clone(!0), _(e[g])[b](c), T.apply(d, c.get());
|
1606
|
+
return this.pushStack(d)
|
1607
|
+
}
|
1608
|
+
});
|
1609
|
+
var Nb, Ob = {}, Pb = /^margin/, Qb = new RegExp("^(" + vb + ")(?!px)[a-z%]+$", "i"), Rb = function (a) {
|
1610
|
+
return a.ownerDocument.defaultView.getComputedStyle(a, null)
|
1611
|
+
};
|
1612
|
+
!function () {
|
1613
|
+
function b() {
|
1614
|
+
g.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute", g.innerHTML = "", e.appendChild(f);
|
1615
|
+
var b = a.getComputedStyle(g, null);
|
1616
|
+
c = "1%" !== b.top, d = "4px" === b.width, e.removeChild(f)
|
1617
|
+
}
|
1618
|
+
|
1619
|
+
var c, d, e = Z.documentElement, f = Z.createElement("div"), g = Z.createElement("div");
|
1620
|
+
g.style && (g.style.backgroundClip = "content-box", g.cloneNode(!0).style.backgroundClip = "", Y.clearCloneStyle = "content-box" === g.style.backgroundClip, f.style.cssText = "border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute", f.appendChild(g), a.getComputedStyle && _.extend(Y, {
|
1621
|
+
pixelPosition: function () {
|
1622
|
+
return b(), c
|
1623
|
+
}, boxSizingReliable: function () {
|
1624
|
+
return null == d && b(), d
|
1625
|
+
}, reliableMarginRight: function () {
|
1626
|
+
var b, c = g.appendChild(Z.createElement("div"));
|
1627
|
+
return c.style.cssText = g.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0", c.style.marginRight = c.style.width = "0", g.style.width = "1px", e.appendChild(f), b = !parseFloat(a.getComputedStyle(c, null).marginRight), e.removeChild(f), b
|
1628
|
+
}
|
1629
|
+
}))
|
1630
|
+
}(), _.swap = function (a, b, c, d) {
|
1631
|
+
var e, f, g = {};
|
1632
|
+
for (f in b)g[f] = a.style[f], a.style[f] = b[f];
|
1633
|
+
e = c.apply(a, d || []);
|
1634
|
+
for (f in b)a.style[f] = g[f];
|
1635
|
+
return e
|
1636
|
+
};
|
1637
|
+
var Sb = /^(none|table(?!-c[ea]).+)/, Tb = new RegExp("^(" + vb + ")(.*)$", "i"), Ub = new RegExp("^([+-])=(" + vb + ")", "i"), Vb = {
|
1638
|
+
position: "absolute",
|
1639
|
+
visibility: "hidden",
|
1640
|
+
display: "block"
|
1641
|
+
}, Wb = {letterSpacing: "0", fontWeight: "400"}, Xb = ["Webkit", "O", "Moz", "ms"];
|
1642
|
+
_.extend({
|
1643
|
+
cssHooks: {
|
1644
|
+
opacity: {
|
1645
|
+
get: function (a, b) {
|
1646
|
+
if (b) {
|
1647
|
+
var c = v(a, "opacity");
|
1648
|
+
return "" === c ? "1" : c
|
1649
|
+
}
|
1650
|
+
}
|
1651
|
+
}
|
1652
|
+
},
|
1653
|
+
cssNumber: {
|
1654
|
+
columnCount: !0,
|
1655
|
+
fillOpacity: !0,
|
1656
|
+
flexGrow: !0,
|
1657
|
+
flexShrink: !0,
|
1658
|
+
fontWeight: !0,
|
1659
|
+
lineHeight: !0,
|
1660
|
+
opacity: !0,
|
1661
|
+
order: !0,
|
1662
|
+
orphans: !0,
|
1663
|
+
widows: !0,
|
1664
|
+
zIndex: !0,
|
1665
|
+
zoom: !0
|
1666
|
+
},
|
1667
|
+
cssProps: {"float": "cssFloat"},
|
1668
|
+
style: function (a, b, c, d) {
|
1669
|
+
if (a && 3 !== a.nodeType && 8 !== a.nodeType && a.style) {
|
1670
|
+
var e, f, g, h = _.camelCase(b), i = a.style;
|
1671
|
+
return b = _.cssProps[h] || (_.cssProps[h] = x(i, h)), g = _.cssHooks[b] || _.cssHooks[h], void 0 === c ? g && "get"in g && void 0 !== (e = g.get(a, !1, d)) ? e : i[b] : (f = typeof c, "string" === f && (e = Ub.exec(c)) && (c = (e[1] + 1) * e[2] + parseFloat(_.css(a, b)), f = "number"), null != c && c === c && ("number" !== f || _.cssNumber[h] || (c += "px"), Y.clearCloneStyle || "" !== c || 0 !== b.indexOf("background") || (i[b] = "inherit"), g && "set"in g && void 0 === (c = g.set(a, c, d)) || (i[b] = c)), void 0)
|
1672
|
+
}
|
1673
|
+
},
|
1674
|
+
css: function (a, b, c, d) {
|
1675
|
+
var e, f, g, h = _.camelCase(b);
|
1676
|
+
return b = _.cssProps[h] || (_.cssProps[h] = x(a.style, h)), g = _.cssHooks[b] || _.cssHooks[h], g && "get"in g && (e = g.get(a, !0, c)), void 0 === e && (e = v(a, b, d)), "normal" === e && b in Wb && (e = Wb[b]), "" === c || c ? (f = parseFloat(e), c === !0 || _.isNumeric(f) ? f || 0 : e) : e
|
1677
|
+
}
|
1678
|
+
}), _.each(["height", "width"], function (a, b) {
|
1679
|
+
_.cssHooks[b] = {
|
1680
|
+
get: function (a, c, d) {
|
1681
|
+
return c ? Sb.test(_.css(a, "display")) && 0 === a.offsetWidth ? _.swap(a, Vb, function () {
|
1682
|
+
return A(a, b, d)
|
1683
|
+
}) : A(a, b, d) : void 0
|
1684
|
+
}, set: function (a, c, d) {
|
1685
|
+
var e = d && Rb(a);
|
1686
|
+
return y(a, c, d ? z(a, b, d, "border-box" === _.css(a, "boxSizing", !1, e), e) : 0)
|
1687
|
+
}
|
1688
|
+
}
|
1689
|
+
}), _.cssHooks.marginRight = w(Y.reliableMarginRight, function (a, b) {
|
1690
|
+
return b ? _.swap(a, {display: "inline-block"}, v, [a, "marginRight"]) : void 0
|
1691
|
+
}), _.each({margin: "", padding: "", border: "Width"}, function (a, b) {
|
1692
|
+
_.cssHooks[a + b] = {
|
1693
|
+
expand: function (c) {
|
1694
|
+
for (var d = 0, e = {}, f = "string" == typeof c ? c.split(" ") : [c]; 4 > d; d++)e[a + wb[d] + b] = f[d] || f[d - 2] || f[0];
|
1695
|
+
return e
|
1696
|
+
}
|
1697
|
+
}, Pb.test(a) || (_.cssHooks[a + b].set = y)
|
1698
|
+
}), _.fn.extend({
|
1699
|
+
css: function (a, b) {
|
1700
|
+
return qb(this, function (a, b, c) {
|
1701
|
+
var d, e, f = {}, g = 0;
|
1702
|
+
if (_.isArray(b)) {
|
1703
|
+
for (d = Rb(a), e = b.length; e > g; g++)f[b[g]] = _.css(a, b[g], !1, d);
|
1704
|
+
return f
|
1705
|
+
}
|
1706
|
+
return void 0 !== c ? _.style(a, b, c) : _.css(a, b)
|
1707
|
+
}, a, b, arguments.length > 1)
|
1708
|
+
}, show: function () {
|
1709
|
+
return B(this, !0)
|
1710
|
+
}, hide: function () {
|
1711
|
+
return B(this)
|
1712
|
+
}, toggle: function (a) {
|
1713
|
+
return "boolean" == typeof a ? a ? this.show() : this.hide() : this.each(function () {
|
1714
|
+
xb(this) ? _(this).show() : _(this).hide()
|
1715
|
+
})
|
1716
|
+
}
|
1717
|
+
}), _.Tween = C, C.prototype = {
|
1718
|
+
constructor: C, init: function (a, b, c, d, e, f) {
|
1719
|
+
this.elem = a, this.prop = c, this.easing = e || "swing", this.options = b, this.start = this.now = this.cur(), this.end = d, this.unit = f || (_.cssNumber[c] ? "" : "px")
|
1720
|
+
}, cur: function () {
|
1721
|
+
var a = C.propHooks[this.prop];
|
1722
|
+
return a && a.get ? a.get(this) : C.propHooks._default.get(this)
|
1723
|
+
}, run: function (a) {
|
1724
|
+
var b, c = C.propHooks[this.prop];
|
1725
|
+
return this.pos = b = this.options.duration ? _.easing[this.easing](a, this.options.duration * a, 0, 1, this.options.duration) : a, this.now = (this.end - this.start) * b + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), c && c.set ? c.set(this) : C.propHooks._default.set(this), this
|
1726
|
+
}
|
1727
|
+
}, C.prototype.init.prototype = C.prototype, C.propHooks = {
|
1728
|
+
_default: {
|
1729
|
+
get: function (a) {
|
1730
|
+
var b;
|
1731
|
+
return null == a.elem[a.prop] || a.elem.style && null != a.elem.style[a.prop] ? (b = _.css(a.elem, a.prop, ""), b && "auto" !== b ? b : 0) : a.elem[a.prop]
|
1732
|
+
}, set: function (a) {
|
1733
|
+
_.fx.step[a.prop] ? _.fx.step[a.prop](a) : a.elem.style && (null != a.elem.style[_.cssProps[a.prop]] || _.cssHooks[a.prop]) ? _.style(a.elem, a.prop, a.now + a.unit) : a.elem[a.prop] = a.now
|
1734
|
+
}
|
1735
|
+
}
|
1736
|
+
}, C.propHooks.scrollTop = C.propHooks.scrollLeft = {
|
1737
|
+
set: function (a) {
|
1738
|
+
a.elem.nodeType && a.elem.parentNode && (a.elem[a.prop] = a.now)
|
1739
|
+
}
|
1740
|
+
}, _.easing = {
|
1741
|
+
linear: function (a) {
|
1742
|
+
return a
|
1743
|
+
}, swing: function (a) {
|
1744
|
+
return .5 - Math.cos(a * Math.PI) / 2
|
1745
|
+
}
|
1746
|
+
}, _.fx = C.prototype.init, _.fx.step = {};
|
1747
|
+
var Yb, Zb, $b = /^(?:toggle|show|hide)$/, _b = new RegExp("^(?:([+-])=|)(" + vb + ")([a-z%]*)$", "i"), ac = /queueHooks$/, bc = [G], cc = {
|
1748
|
+
"*": [function (a, b) {
|
1749
|
+
var c = this.createTween(a, b), d = c.cur(), e = _b.exec(b), f = e && e[3] || (_.cssNumber[a] ? "" : "px"), g = (_.cssNumber[a] || "px" !== f && +d) && _b.exec(_.css(c.elem, a)), h = 1, i = 20;
|
1750
|
+
if (g && g[3] !== f) {
|
1751
|
+
f = f || g[3], e = e || [], g = +d || 1;
|
1752
|
+
do h = h || ".5", g /= h, _.style(c.elem, a, g + f); while (h !== (h = c.cur() / d) && 1 !== h && --i)
|
1753
|
+
}
|
1754
|
+
return e && (g = c.start = +g || +d || 0, c.unit = f, c.end = e[1] ? g + (e[1] + 1) * e[2] : +e[2]), c
|
1755
|
+
}]
|
1756
|
+
};
|
1757
|
+
_.Animation = _.extend(I, {
|
1758
|
+
tweener: function (a, b) {
|
1759
|
+
_.isFunction(a) ? (b = a, a = ["*"]) : a = a.split(" ");
|
1760
|
+
for (var c, d = 0, e = a.length; e > d; d++)c = a[d], cc[c] = cc[c] || [], cc[c].unshift(b)
|
1761
|
+
}, prefilter: function (a, b) {
|
1762
|
+
b ? bc.unshift(a) : bc.push(a)
|
1763
|
+
}
|
1764
|
+
}), _.speed = function (a, b, c) {
|
1765
|
+
var d = a && "object" == typeof a ? _.extend({}, a) : {
|
1766
|
+
complete: c || !c && b || _.isFunction(a) && a,
|
1767
|
+
duration: a,
|
1768
|
+
easing: c && b || b && !_.isFunction(b) && b
|
1769
|
+
};
|
1770
|
+
return d.duration = _.fx.off ? 0 : "number" == typeof d.duration ? d.duration : d.duration in _.fx.speeds ? _.fx.speeds[d.duration] : _.fx.speeds._default, (null == d.queue || d.queue === !0) && (d.queue = "fx"), d.old = d.complete, d.complete = function () {
|
1771
|
+
_.isFunction(d.old) && d.old.call(this), d.queue && _.dequeue(this, d.queue)
|
1772
|
+
}, d
|
1773
|
+
}, _.fn.extend({
|
1774
|
+
fadeTo: function (a, b, c, d) {
|
1775
|
+
return this.filter(xb).css("opacity", 0).show().end().animate({opacity: b}, a, c, d)
|
1776
|
+
}, animate: function (a, b, c, d) {
|
1777
|
+
var e = _.isEmptyObject(a), f = _.speed(b, c, d), g = function () {
|
1778
|
+
var b = I(this, _.extend({}, a), f);
|
1779
|
+
(e || rb.get(this, "finish")) && b.stop(!0)
|
1780
|
+
};
|
1781
|
+
return g.finish = g, e || f.queue === !1 ? this.each(g) : this.queue(f.queue, g)
|
1782
|
+
}, stop: function (a, b, c) {
|
1783
|
+
var d = function (a) {
|
1784
|
+
var b = a.stop;
|
1785
|
+
delete a.stop, b(c)
|
1786
|
+
};
|
1787
|
+
return "string" != typeof a && (c = b, b = a, a = void 0), b && a !== !1 && this.queue(a || "fx", []), this.each(function () {
|
1788
|
+
var b = !0, e = null != a && a + "queueHooks", f = _.timers, g = rb.get(this);
|
1789
|
+
if (e)g[e] && g[e].stop && d(g[e]); else for (e in g)g[e] && g[e].stop && ac.test(e) && d(g[e]);
|
1790
|
+
for (e = f.length; e--;)f[e].elem !== this || null != a && f[e].queue !== a || (f[e].anim.stop(c), b = !1, f.splice(e, 1));
|
1791
|
+
(b || !c) && _.dequeue(this, a)
|
1792
|
+
})
|
1793
|
+
}, finish: function (a) {
|
1794
|
+
return a !== !1 && (a = a || "fx"), this.each(function () {
|
1795
|
+
var b, c = rb.get(this), d = c[a + "queue"], e = c[a + "queueHooks"], f = _.timers, g = d ? d.length : 0;
|
1796
|
+
for (c.finish = !0, _.queue(this, a, []), e && e.stop && e.stop.call(this, !0), b = f.length; b--;)f[b].elem === this && f[b].queue === a && (f[b].anim.stop(!0), f.splice(b, 1));
|
1797
|
+
for (b = 0; g > b; b++)d[b] && d[b].finish && d[b].finish.call(this);
|
1798
|
+
delete c.finish
|
1799
|
+
})
|
1800
|
+
}
|
1801
|
+
}), _.each(["toggle", "show", "hide"], function (a, b) {
|
1802
|
+
var c = _.fn[b];
|
1803
|
+
_.fn[b] = function (a, d, e) {
|
1804
|
+
return null == a || "boolean" == typeof a ? c.apply(this, arguments) : this.animate(E(b, !0), a, d, e)
|
1805
|
+
}
|
1806
|
+
}), _.each({
|
1807
|
+
slideDown: E("show"),
|
1808
|
+
slideUp: E("hide"),
|
1809
|
+
slideToggle: E("toggle"),
|
1810
|
+
fadeIn: {opacity: "show"},
|
1811
|
+
fadeOut: {opacity: "hide"},
|
1812
|
+
fadeToggle: {opacity: "toggle"}
|
1813
|
+
}, function (a, b) {
|
1814
|
+
_.fn[a] = function (a, c, d) {
|
1815
|
+
return this.animate(b, a, c, d)
|
1816
|
+
}
|
1817
|
+
}), _.timers = [], _.fx.tick = function () {
|
1818
|
+
var a, b = 0, c = _.timers;
|
1819
|
+
for (Yb = _.now(); b < c.length; b++)a = c[b], a() || c[b] !== a || c.splice(b--, 1);
|
1820
|
+
c.length || _.fx.stop(), Yb = void 0
|
1821
|
+
}, _.fx.timer = function (a) {
|
1822
|
+
_.timers.push(a), a() ? _.fx.start() : _.timers.pop()
|
1823
|
+
}, _.fx.interval = 13, _.fx.start = function () {
|
1824
|
+
Zb || (Zb = setInterval(_.fx.tick, _.fx.interval))
|
1825
|
+
}, _.fx.stop = function () {
|
1826
|
+
clearInterval(Zb), Zb = null
|
1827
|
+
}, _.fx.speeds = {slow: 600, fast: 200, _default: 400}, _.fn.delay = function (a, b) {
|
1828
|
+
return a = _.fx ? _.fx.speeds[a] || a : a, b = b || "fx", this.queue(b, function (b, c) {
|
1829
|
+
var d = setTimeout(b, a);
|
1830
|
+
c.stop = function () {
|
1831
|
+
clearTimeout(d)
|
1832
|
+
}
|
1833
|
+
})
|
1834
|
+
}, function () {
|
1835
|
+
var a = Z.createElement("input"), b = Z.createElement("select"), c = b.appendChild(Z.createElement("option"));
|
1836
|
+
a.type = "checkbox", Y.checkOn = "" !== a.value, Y.optSelected = c.selected, b.disabled = !0, Y.optDisabled = !c.disabled, a = Z.createElement("input"), a.value = "t", a.type = "radio", Y.radioValue = "t" === a.value
|
1837
|
+
}();
|
1838
|
+
var dc, ec, fc = _.expr.attrHandle;
|
1839
|
+
_.fn.extend({
|
1840
|
+
attr: function (a, b) {
|
1841
|
+
return qb(this, _.attr, a, b, arguments.length > 1)
|
1842
|
+
}, removeAttr: function (a) {
|
1843
|
+
return this.each(function () {
|
1844
|
+
_.removeAttr(this, a)
|
1845
|
+
})
|
1846
|
+
}
|
1847
|
+
}), _.extend({
|
1848
|
+
attr: function (a, b, c) {
|
1849
|
+
var d, e, f = a.nodeType;
|
1850
|
+
if (a && 3 !== f && 8 !== f && 2 !== f)return typeof a.getAttribute === zb ? _.prop(a, b, c) : (1 === f && _.isXMLDoc(a) || (b = b.toLowerCase(), d = _.attrHooks[b] || (_.expr.match.bool.test(b) ? ec : dc)), void 0 === c ? d && "get"in d && null !== (e = d.get(a, b)) ? e : (e = _.find.attr(a, b), null == e ? void 0 : e) : null !== c ? d && "set"in d && void 0 !== (e = d.set(a, c, b)) ? e : (a.setAttribute(b, c + ""), c) : void _.removeAttr(a, b))
|
1851
|
+
}, removeAttr: function (a, b) {
|
1852
|
+
var c, d, e = 0, f = b && b.match(nb);
|
1853
|
+
if (f && 1 === a.nodeType)for (; c = f[e++];)d = _.propFix[c] || c, _.expr.match.bool.test(c) && (a[d] = !1), a.removeAttribute(c)
|
1854
|
+
}, attrHooks: {
|
1855
|
+
type: {
|
1856
|
+
set: function (a, b) {
|
1857
|
+
if (!Y.radioValue && "radio" === b && _.nodeName(a, "input")) {
|
1858
|
+
var c = a.value;
|
1859
|
+
return a.setAttribute("type", b), c && (a.value = c), b
|
1860
|
+
}
|
1861
|
+
}
|
1862
|
+
}
|
1863
|
+
}
|
1864
|
+
}), ec = {
|
1865
|
+
set: function (a, b, c) {
|
1866
|
+
return b === !1 ? _.removeAttr(a, c) : a.setAttribute(c, c), c
|
1867
|
+
}
|
1868
|
+
}, _.each(_.expr.match.bool.source.match(/\w+/g), function (a, b) {
|
1869
|
+
var c = fc[b] || _.find.attr;
|
1870
|
+
fc[b] = function (a, b, d) {
|
1871
|
+
var e, f;
|
1872
|
+
return d || (f = fc[b], fc[b] = e, e = null != c(a, b, d) ? b.toLowerCase() : null, fc[b] = f), e
|
1873
|
+
}
|
1874
|
+
});
|
1875
|
+
var gc = /^(?:input|select|textarea|button)$/i;
|
1876
|
+
_.fn.extend({
|
1877
|
+
prop: function (a, b) {
|
1878
|
+
return qb(this, _.prop, a, b, arguments.length > 1)
|
1879
|
+
}, removeProp: function (a) {
|
1880
|
+
return this.each(function () {
|
1881
|
+
delete this[_.propFix[a] || a]
|
1882
|
+
})
|
1883
|
+
}
|
1884
|
+
}), _.extend({
|
1885
|
+
propFix: {"for": "htmlFor", "class": "className"}, prop: function (a, b, c) {
|
1886
|
+
var d, e, f, g = a.nodeType;
|
1887
|
+
if (a && 3 !== g && 8 !== g && 2 !== g)return f = 1 !== g || !_.isXMLDoc(a), f && (b = _.propFix[b] || b, e = _.propHooks[b]), void 0 !== c ? e && "set"in e && void 0 !== (d = e.set(a, c, b)) ? d : a[b] = c : e && "get"in e && null !== (d = e.get(a, b)) ? d : a[b]
|
1888
|
+
}, propHooks: {
|
1889
|
+
tabIndex: {
|
1890
|
+
get: function (a) {
|
1891
|
+
return a.hasAttribute("tabindex") || gc.test(a.nodeName) || a.href ? a.tabIndex : -1
|
1892
|
+
}
|
1893
|
+
}
|
1894
|
+
}
|
1895
|
+
}), Y.optSelected || (_.propHooks.selected = {
|
1896
|
+
get: function (a) {
|
1897
|
+
var b = a.parentNode;
|
1898
|
+
return b && b.parentNode && b.parentNode.selectedIndex, null
|
1899
|
+
}
|
1900
|
+
}), _.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () {
|
1901
|
+
_.propFix[this.toLowerCase()] = this
|
1902
|
+
});
|
1903
|
+
var hc = /[\t\r\n\f]/g;
|
1904
|
+
_.fn.extend({
|
1905
|
+
addClass: function (a) {
|
1906
|
+
var b, c, d, e, f, g, h = "string" == typeof a && a, i = 0, j = this.length;
|
1907
|
+
if (_.isFunction(a))return this.each(function (b) {
|
1908
|
+
_(this).addClass(a.call(this, b, this.className))
|
1909
|
+
});
|
1910
|
+
if (h)for (b = (a || "").match(nb) || []; j > i; i++)if (c = this[i], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(hc, " ") : " ")) {
|
1911
|
+
for (f = 0; e = b[f++];)d.indexOf(" " + e + " ") < 0 && (d += e + " ");
|
1912
|
+
g = _.trim(d), c.className !== g && (c.className = g)
|
1913
|
+
}
|
1914
|
+
return this
|
1915
|
+
}, removeClass: function (a) {
|
1916
|
+
var b, c, d, e, f, g, h = 0 === arguments.length || "string" == typeof a && a, i = 0, j = this.length;
|
1917
|
+
if (_.isFunction(a))return this.each(function (b) {
|
1918
|
+
_(this).removeClass(a.call(this, b, this.className))
|
1919
|
+
});
|
1920
|
+
if (h)for (b = (a || "").match(nb) || []; j > i; i++)if (c = this[i], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(hc, " ") : "")) {
|
1921
|
+
for (f = 0; e = b[f++];)for (; d.indexOf(" " + e + " ") >= 0;)d = d.replace(" " + e + " ", " ");
|
1922
|
+
g = a ? _.trim(d) : "", c.className !== g && (c.className = g)
|
1923
|
+
}
|
1924
|
+
return this
|
1925
|
+
}, toggleClass: function (a, b) {
|
1926
|
+
var c = typeof a;
|
1927
|
+
return "boolean" == typeof b && "string" === c ? b ? this.addClass(a) : this.removeClass(a) : this.each(_.isFunction(a) ? function (c) {
|
1928
|
+
_(this).toggleClass(a.call(this, c, this.className, b), b)
|
1929
|
+
} : function () {
|
1930
|
+
if ("string" === c)for (var b, d = 0, e = _(this), f = a.match(nb) || []; b = f[d++];)e.hasClass(b) ? e.removeClass(b) : e.addClass(b); else(c === zb || "boolean" === c) && (this.className && rb.set(this, "__className__", this.className), this.className = this.className || a === !1 ? "" : rb.get(this, "__className__") || "")
|
1931
|
+
})
|
1932
|
+
}, hasClass: function (a) {
|
1933
|
+
for (var b = " " + a + " ", c = 0, d = this.length; d > c; c++)if (1 === this[c].nodeType && (" " + this[c].className + " ").replace(hc, " ").indexOf(b) >= 0)return !0;
|
1934
|
+
return !1
|
1935
|
+
}
|
1936
|
+
});
|
1937
|
+
var ic = /\r/g;
|
1938
|
+
_.fn.extend({
|
1939
|
+
val: function (a) {
|
1940
|
+
var b, c, d, e = this[0];
|
1941
|
+
{
|
1942
|
+
if (arguments.length)return d = _.isFunction(a), this.each(function (c) {
|
1943
|
+
var e;
|
1944
|
+
1 === this.nodeType && (e = d ? a.call(this, c, _(this).val()) : a, null == e ? e = "" : "number" == typeof e ? e += "" : _.isArray(e) && (e = _.map(e, function (a) {
|
1945
|
+
return null == a ? "" : a + ""
|
1946
|
+
})), b = _.valHooks[this.type] || _.valHooks[this.nodeName.toLowerCase()], b && "set"in b && void 0 !== b.set(this, e, "value") || (this.value = e))
|
1947
|
+
});
|
1948
|
+
if (e)return b = _.valHooks[e.type] || _.valHooks[e.nodeName.toLowerCase()], b && "get"in b && void 0 !== (c = b.get(e, "value")) ? c : (c = e.value, "string" == typeof c ? c.replace(ic, "") : null == c ? "" : c)
|
1949
|
+
}
|
1950
|
+
}
|
1951
|
+
}), _.extend({
|
1952
|
+
valHooks: {
|
1953
|
+
option: {
|
1954
|
+
get: function (a) {
|
1955
|
+
var b = _.find.attr(a, "value");
|
1956
|
+
return null != b ? b : _.trim(_.text(a))
|
1957
|
+
}
|
1958
|
+
}, select: {
|
1959
|
+
get: function (a) {
|
1960
|
+
for (var b, c, d = a.options, e = a.selectedIndex, f = "select-one" === a.type || 0 > e, g = f ? null : [], h = f ? e + 1 : d.length, i = 0 > e ? h : f ? e : 0; h > i; i++)if (c = d[i], !(!c.selected && i !== e || (Y.optDisabled ? c.disabled : null !== c.getAttribute("disabled")) || c.parentNode.disabled && _.nodeName(c.parentNode, "optgroup"))) {
|
1961
|
+
if (b = _(c).val(), f)return b;
|
1962
|
+
g.push(b)
|
1963
|
+
}
|
1964
|
+
return g
|
1965
|
+
}, set: function (a, b) {
|
1966
|
+
for (var c, d, e = a.options, f = _.makeArray(b), g = e.length; g--;)d = e[g], (d.selected = _.inArray(d.value, f) >= 0) && (c = !0);
|
1967
|
+
return c || (a.selectedIndex = -1), f
|
1968
|
+
}
|
1969
|
+
}
|
1970
|
+
}
|
1971
|
+
}), _.each(["radio", "checkbox"], function () {
|
1972
|
+
_.valHooks[this] = {
|
1973
|
+
set: function (a, b) {
|
1974
|
+
return _.isArray(b) ? a.checked = _.inArray(_(a).val(), b) >= 0 : void 0
|
1975
|
+
}
|
1976
|
+
}, Y.checkOn || (_.valHooks[this].get = function (a) {
|
1977
|
+
return null === a.getAttribute("value") ? "on" : a.value
|
1978
|
+
})
|
1979
|
+
}), _.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function (a, b) {
|
1980
|
+
_.fn[b] = function (a, c) {
|
1981
|
+
return arguments.length > 0 ? this.on(b, null, a, c) : this.trigger(b)
|
1982
|
+
}
|
1983
|
+
}), _.fn.extend({
|
1984
|
+
hover: function (a, b) {
|
1985
|
+
return this.mouseenter(a).mouseleave(b || a)
|
1986
|
+
}, bind: function (a, b, c) {
|
1987
|
+
return this.on(a, null, b, c)
|
1988
|
+
}, unbind: function (a, b) {
|
1989
|
+
return this.off(a, null, b)
|
1990
|
+
}, delegate: function (a, b, c, d) {
|
1991
|
+
return this.on(b, a, c, d)
|
1992
|
+
}, undelegate: function (a, b, c) {
|
1993
|
+
return 1 === arguments.length ? this.off(a, "**") : this.off(b, a || "**", c)
|
1994
|
+
}
|
1995
|
+
});
|
1996
|
+
var jc = _.now(), kc = /\?/;
|
1997
|
+
_.parseJSON = function (a) {
|
1998
|
+
return JSON.parse(a + "")
|
1999
|
+
}, _.parseXML = function (a) {
|
2000
|
+
var b, c;
|
2001
|
+
if (!a || "string" != typeof a)return null;
|
2002
|
+
try {
|
2003
|
+
c = new DOMParser, b = c.parseFromString(a, "text/xml")
|
2004
|
+
} catch (d) {
|
2005
|
+
b = void 0
|
2006
|
+
}
|
2007
|
+
return (!b || b.getElementsByTagName("parsererror").length) && _.error("Invalid XML: " + a), b
|
2008
|
+
};
|
2009
|
+
var lc, mc, nc = /#.*$/, oc = /([?&])_=[^&]*/, pc = /^(.*?):[ \t]*([^\r\n]*)$/gm, qc = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rc = /^(?:GET|HEAD)$/, sc = /^\/\//, tc = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/, uc = {}, vc = {}, wc = "*/".concat("*");
|
2010
|
+
try {
|
2011
|
+
mc = location.href
|
2012
|
+
} catch (xc) {
|
2013
|
+
mc = Z.createElement("a"), mc.href = "", mc = mc.href
|
2014
|
+
}
|
2015
|
+
lc = tc.exec(mc.toLowerCase()) || [], _.extend({
|
2016
|
+
active: 0,
|
2017
|
+
lastModified: {},
|
2018
|
+
etag: {},
|
2019
|
+
ajaxSettings: {
|
2020
|
+
url: mc,
|
2021
|
+
type: "GET",
|
2022
|
+
isLocal: qc.test(lc[1]),
|
2023
|
+
global: !0,
|
2024
|
+
processData: !0,
|
2025
|
+
async: !0,
|
2026
|
+
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
2027
|
+
accepts: {
|
2028
|
+
"*": wc,
|
2029
|
+
text: "text/plain",
|
2030
|
+
html: "text/html",
|
2031
|
+
xml: "application/xml, text/xml",
|
2032
|
+
json: "application/json, text/javascript"
|
2033
|
+
},
|
2034
|
+
contents: {xml: /xml/, html: /html/, json: /json/},
|
2035
|
+
responseFields: {xml: "responseXML", text: "responseText", json: "responseJSON"},
|
2036
|
+
converters: {"* text": String, "text html": !0, "text json": _.parseJSON, "text xml": _.parseXML},
|
2037
|
+
flatOptions: {url: !0, context: !0}
|
2038
|
+
},
|
2039
|
+
ajaxSetup: function (a, b) {
|
2040
|
+
return b ? L(L(a, _.ajaxSettings), b) : L(_.ajaxSettings, a)
|
2041
|
+
},
|
2042
|
+
ajaxPrefilter: J(uc),
|
2043
|
+
ajaxTransport: J(vc),
|
2044
|
+
ajax: function (a, b) {
|
2045
|
+
function c(a, b, c, g) {
|
2046
|
+
var i, k, r, s, u, w = b;
|
2047
|
+
2 !== t && (t = 2, h && clearTimeout(h), d = void 0, f = g || "", v.readyState = a > 0 ? 4 : 0, i = a >= 200 && 300 > a || 304 === a, c && (s = M(l, v, c)), s = N(l, s, v, i), i ? (l.ifModified && (u = v.getResponseHeader("Last-Modified"), u && (_.lastModified[e] = u), u = v.getResponseHeader("etag"), u && (_.etag[e] = u)), 204 === a || "HEAD" === l.type ? w = "nocontent" : 304 === a ? w = "notmodified" : (w = s.state, k = s.data, r = s.error, i = !r)) : (r = w, (a || !w) && (w = "error", 0 > a && (a = 0))), v.status = a, v.statusText = (b || w) + "", i ? o.resolveWith(m, [k, w, v]) : o.rejectWith(m, [v, w, r]), v.statusCode(q), q = void 0, j && n.trigger(i ? "ajaxSuccess" : "ajaxError", [v, l, i ? k : r]), p.fireWith(m, [v, w]), j && (n.trigger("ajaxComplete", [v, l]), --_.active || _.event.trigger("ajaxStop")))
|
2048
|
+
}
|
2049
|
+
|
2050
|
+
"object" == typeof a && (b = a, a = void 0), b = b || {};
|
2051
|
+
var d, e, f, g, h, i, j, k, l = _.ajaxSetup({}, b), m = l.context || l, n = l.context && (m.nodeType || m.jquery) ? _(m) : _.event, o = _.Deferred(), p = _.Callbacks("once memory"), q = l.statusCode || {}, r = {}, s = {}, t = 0, u = "canceled", v = {
|
2052
|
+
readyState: 0,
|
2053
|
+
getResponseHeader: function (a) {
|
2054
|
+
var b;
|
2055
|
+
if (2 === t) {
|
2056
|
+
if (!g)for (g = {}; b = pc.exec(f);)g[b[1].toLowerCase()] = b[2];
|
2057
|
+
b = g[a.toLowerCase()]
|
2058
|
+
}
|
2059
|
+
return null == b ? null : b
|
2060
|
+
},
|
2061
|
+
getAllResponseHeaders: function () {
|
2062
|
+
return 2 === t ? f : null
|
2063
|
+
},
|
2064
|
+
setRequestHeader: function (a, b) {
|
2065
|
+
var c = a.toLowerCase();
|
2066
|
+
return t || (a = s[c] = s[c] || a, r[a] = b), this
|
2067
|
+
},
|
2068
|
+
overrideMimeType: function (a) {
|
2069
|
+
return t || (l.mimeType = a), this
|
2070
|
+
},
|
2071
|
+
statusCode: function (a) {
|
2072
|
+
var b;
|
2073
|
+
if (a)if (2 > t)for (b in a)q[b] = [q[b], a[b]]; else v.always(a[v.status]);
|
2074
|
+
return this
|
2075
|
+
},
|
2076
|
+
abort: function (a) {
|
2077
|
+
var b = a || u;
|
2078
|
+
return d && d.abort(b), c(0, b), this
|
2079
|
+
}
|
2080
|
+
};
|
2081
|
+
if (o.promise(v).complete = p.add, v.success = v.done, v.error = v.fail, l.url = ((a || l.url || mc) + "").replace(nc, "").replace(sc, lc[1] + "//"), l.type = b.method || b.type || l.method || l.type, l.dataTypes = _.trim(l.dataType || "*").toLowerCase().match(nb) || [""], null == l.crossDomain && (i = tc.exec(l.url.toLowerCase()), l.crossDomain = !(!i || i[1] === lc[1] && i[2] === lc[2] && (i[3] || ("http:" === i[1] ? "80" : "443")) === (lc[3] || ("http:" === lc[1] ? "80" : "443")))), l.data && l.processData && "string" != typeof l.data && (l.data = _.param(l.data, l.traditional)), K(uc, l, b, v), 2 === t)return v;
|
2082
|
+
j = l.global, j && 0 === _.active++ && _.event.trigger("ajaxStart"), l.type = l.type.toUpperCase(), l.hasContent = !rc.test(l.type), e = l.url, l.hasContent || (l.data && (e = l.url += (kc.test(e) ? "&" : "?") + l.data, delete l.data), l.cache === !1 && (l.url = oc.test(e) ? e.replace(oc, "$1_=" + jc++) : e + (kc.test(e) ? "&" : "?") + "_=" + jc++)), l.ifModified && (_.lastModified[e] && v.setRequestHeader("If-Modified-Since", _.lastModified[e]), _.etag[e] && v.setRequestHeader("If-None-Match", _.etag[e])), (l.data && l.hasContent && l.contentType !== !1 || b.contentType) && v.setRequestHeader("Content-Type", l.contentType), v.setRequestHeader("Accept", l.dataTypes[0] && l.accepts[l.dataTypes[0]] ? l.accepts[l.dataTypes[0]] + ("*" !== l.dataTypes[0] ? ", " + wc + "; q=0.01" : "") : l.accepts["*"]);
|
2083
|
+
for (k in l.headers)v.setRequestHeader(k, l.headers[k]);
|
2084
|
+
if (l.beforeSend && (l.beforeSend.call(m, v, l) === !1 || 2 === t))return v.abort();
|
2085
|
+
u = "abort";
|
2086
|
+
for (k in{success: 1, error: 1, complete: 1})v[k](l[k]);
|
2087
|
+
if (d = K(vc, l, b, v)) {
|
2088
|
+
v.readyState = 1, j && n.trigger("ajaxSend", [v, l]), l.async && l.timeout > 0 && (h = setTimeout(function () {
|
2089
|
+
v.abort("timeout")
|
2090
|
+
}, l.timeout));
|
2091
|
+
try {
|
2092
|
+
t = 1, d.send(r, c)
|
2093
|
+
} catch (w) {
|
2094
|
+
if (!(2 > t))throw w;
|
2095
|
+
c(-1, w)
|
2096
|
+
}
|
2097
|
+
} else c(-1, "No Transport");
|
2098
|
+
return v
|
2099
|
+
},
|
2100
|
+
getJSON: function (a, b, c) {
|
2101
|
+
return _.get(a, b, c, "json")
|
2102
|
+
},
|
2103
|
+
getScript: function (a, b) {
|
2104
|
+
return _.get(a, void 0, b, "script")
|
2105
|
+
}
|
2106
|
+
}), _.each(["get", "post"], function (a, b) {
|
2107
|
+
_[b] = function (a, c, d, e) {
|
2108
|
+
return _.isFunction(c) && (e = e || d, d = c, c = void 0), _.ajax({
|
2109
|
+
url: a,
|
2110
|
+
type: b,
|
2111
|
+
dataType: e,
|
2112
|
+
data: c,
|
2113
|
+
success: d
|
2114
|
+
})
|
2115
|
+
}
|
2116
|
+
}), _.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (a, b) {
|
2117
|
+
_.fn[b] = function (a) {
|
2118
|
+
return this.on(b, a)
|
2119
|
+
}
|
2120
|
+
}), _._evalUrl = function (a) {
|
2121
|
+
return _.ajax({url: a, type: "GET", dataType: "script", async: !1, global: !1, "throws": !0})
|
2122
|
+
}, _.fn.extend({
|
2123
|
+
wrapAll: function (a) {
|
2124
|
+
var b;
|
2125
|
+
return _.isFunction(a) ? this.each(function (b) {
|
2126
|
+
_(this).wrapAll(a.call(this, b))
|
2127
|
+
}) : (this[0] && (b = _(a, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && b.insertBefore(this[0]), b.map(function () {
|
2128
|
+
for (var a = this; a.firstElementChild;)a = a.firstElementChild;
|
2129
|
+
return a
|
2130
|
+
}).append(this)), this)
|
2131
|
+
}, wrapInner: function (a) {
|
2132
|
+
return this.each(_.isFunction(a) ? function (b) {
|
2133
|
+
_(this).wrapInner(a.call(this, b))
|
2134
|
+
} : function () {
|
2135
|
+
var b = _(this), c = b.contents();
|
2136
|
+
c.length ? c.wrapAll(a) : b.append(a)
|
2137
|
+
})
|
2138
|
+
}, wrap: function (a) {
|
2139
|
+
var b = _.isFunction(a);
|
2140
|
+
return this.each(function (c) {
|
2141
|
+
_(this).wrapAll(b ? a.call(this, c) : a)
|
2142
|
+
})
|
2143
|
+
}, unwrap: function () {
|
2144
|
+
return this.parent().each(function () {
|
2145
|
+
_.nodeName(this, "body") || _(this).replaceWith(this.childNodes)
|
2146
|
+
}).end()
|
2147
|
+
}
|
2148
|
+
}), _.expr.filters.hidden = function (a) {
|
2149
|
+
return a.offsetWidth <= 0 && a.offsetHeight <= 0
|
2150
|
+
}, _.expr.filters.visible = function (a) {
|
2151
|
+
return !_.expr.filters.hidden(a)
|
2152
|
+
};
|
2153
|
+
var yc = /%20/g, zc = /\[\]$/, Ac = /\r?\n/g, Bc = /^(?:submit|button|image|reset|file)$/i, Cc = /^(?:input|select|textarea|keygen)/i;
|
2154
|
+
_.param = function (a, b) {
|
2155
|
+
var c, d = [], e = function (a, b) {
|
2156
|
+
b = _.isFunction(b) ? b() : null == b ? "" : b, d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(b)
|
2157
|
+
};
|
2158
|
+
if (void 0 === b && (b = _.ajaxSettings && _.ajaxSettings.traditional), _.isArray(a) || a.jquery && !_.isPlainObject(a))_.each(a, function () {
|
2159
|
+
e(this.name, this.value)
|
2160
|
+
}); else for (c in a)O(c, a[c], b, e);
|
2161
|
+
return d.join("&").replace(yc, "+")
|
2162
|
+
}, _.fn.extend({
|
2163
|
+
serialize: function () {
|
2164
|
+
return _.param(this.serializeArray())
|
2165
|
+
}, serializeArray: function () {
|
2166
|
+
return this.map(function () {
|
2167
|
+
var a = _.prop(this, "elements");
|
2168
|
+
return a ? _.makeArray(a) : this
|
2169
|
+
}).filter(function () {
|
2170
|
+
var a = this.type;
|
2171
|
+
return this.name && !_(this).is(":disabled") && Cc.test(this.nodeName) && !Bc.test(a) && (this.checked || !yb.test(a))
|
2172
|
+
}).map(function (a, b) {
|
2173
|
+
var c = _(this).val();
|
2174
|
+
return null == c ? null : _.isArray(c) ? _.map(c, function (a) {
|
2175
|
+
return {name: b.name, value: a.replace(Ac, "\r\n")}
|
2176
|
+
}) : {name: b.name, value: c.replace(Ac, "\r\n")}
|
2177
|
+
}).get()
|
2178
|
+
}
|
2179
|
+
}), _.ajaxSettings.xhr = function () {
|
2180
|
+
try {
|
2181
|
+
return new XMLHttpRequest
|
2182
|
+
} catch (a) {
|
2183
|
+
}
|
2184
|
+
};
|
2185
|
+
var Dc = 0, Ec = {}, Fc = {0: 200, 1223: 204}, Gc = _.ajaxSettings.xhr();
|
2186
|
+
a.ActiveXObject && _(a).on("unload", function () {
|
2187
|
+
for (var a in Ec)Ec[a]()
|
2188
|
+
}), Y.cors = !!Gc && "withCredentials"in Gc, Y.ajax = Gc = !!Gc, _.ajaxTransport(function (a) {
|
2189
|
+
var b;
|
2190
|
+
return Y.cors || Gc && !a.crossDomain ? {
|
2191
|
+
send: function (c, d) {
|
2192
|
+
var e, f = a.xhr(), g = ++Dc;
|
2193
|
+
if (f.open(a.type, a.url, a.async, a.username, a.password), a.xhrFields)for (e in a.xhrFields)f[e] = a.xhrFields[e];
|
2194
|
+
a.mimeType && f.overrideMimeType && f.overrideMimeType(a.mimeType), a.crossDomain || c["X-Requested-With"] || (c["X-Requested-With"] = "XMLHttpRequest");
|
2195
|
+
for (e in c)f.setRequestHeader(e, c[e]);
|
2196
|
+
b = function (a) {
|
2197
|
+
return function () {
|
2198
|
+
b && (delete Ec[g], b = f.onload = f.onerror = null, "abort" === a ? f.abort() : "error" === a ? d(f.status, f.statusText) : d(Fc[f.status] || f.status, f.statusText, "string" == typeof f.responseText ? {text: f.responseText} : void 0, f.getAllResponseHeaders()))
|
2199
|
+
}
|
2200
|
+
}, f.onload = b(), f.onerror = b("error"), b = Ec[g] = b("abort");
|
2201
|
+
try {
|
2202
|
+
f.send(a.hasContent && a.data || null)
|
2203
|
+
} catch (h) {
|
2204
|
+
if (b)throw h
|
2205
|
+
}
|
2206
|
+
}, abort: function () {
|
2207
|
+
b && b()
|
2208
|
+
}
|
2209
|
+
} : void 0
|
2210
|
+
}), _.ajaxSetup({
|
2211
|
+
accepts: {script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
|
2212
|
+
contents: {script: /(?:java|ecma)script/},
|
2213
|
+
converters: {
|
2214
|
+
"text script": function (a) {
|
2215
|
+
return _.globalEval(a), a
|
2216
|
+
}
|
2217
|
+
}
|
2218
|
+
}), _.ajaxPrefilter("script", function (a) {
|
2219
|
+
void 0 === a.cache && (a.cache = !1), a.crossDomain && (a.type = "GET")
|
2220
|
+
}), _.ajaxTransport("script", function (a) {
|
2221
|
+
if (a.crossDomain) {
|
2222
|
+
var b, c;
|
2223
|
+
return {
|
2224
|
+
send: function (d, e) {
|
2225
|
+
b = _("<script>").prop({
|
2226
|
+
async: !0,
|
2227
|
+
charset: a.scriptCharset,
|
2228
|
+
src: a.url
|
2229
|
+
}).on("load error", c = function (a) {
|
2230
|
+
b.remove(), c = null, a && e("error" === a.type ? 404 : 200, a.type)
|
2231
|
+
}), Z.head.appendChild(b[0])
|
2232
|
+
}, abort: function () {
|
2233
|
+
c && c()
|
2234
|
+
}
|
2235
|
+
}
|
2236
|
+
}
|
2237
|
+
});
|
2238
|
+
var Hc = [], Ic = /(=)\?(?=&|$)|\?\?/;
|
2239
|
+
_.ajaxSetup({
|
2240
|
+
jsonp: "callback", jsonpCallback: function () {
|
2241
|
+
var a = Hc.pop() || _.expando + "_" + jc++;
|
2242
|
+
return this[a] = !0, a
|
2243
|
+
}
|
2244
|
+
}), _.ajaxPrefilter("json jsonp", function (b, c, d) {
|
2245
|
+
var e, f, g, h = b.jsonp !== !1 && (Ic.test(b.url) ? "url" : "string" == typeof b.data && !(b.contentType || "").indexOf("application/x-www-form-urlencoded") && Ic.test(b.data) && "data");
|
2246
|
+
return h || "jsonp" === b.dataTypes[0] ? (e = b.jsonpCallback = _.isFunction(b.jsonpCallback) ? b.jsonpCallback() : b.jsonpCallback, h ? b[h] = b[h].replace(Ic, "$1" + e) : b.jsonp !== !1 && (b.url += (kc.test(b.url) ? "&" : "?") + b.jsonp + "=" + e), b.converters["script json"] = function () {
|
2247
|
+
return g || _.error(e + " was not called"), g[0]
|
2248
|
+
}, b.dataTypes[0] = "json", f = a[e], a[e] = function () {
|
2249
|
+
g = arguments
|
2250
|
+
}, d.always(function () {
|
2251
|
+
a[e] = f, b[e] && (b.jsonpCallback = c.jsonpCallback, Hc.push(e)), g && _.isFunction(f) && f(g[0]), g = f = void 0
|
2252
|
+
}), "script") : void 0
|
2253
|
+
}), _.parseHTML = function (a, b, c) {
|
2254
|
+
if (!a || "string" != typeof a)return null;
|
2255
|
+
"boolean" == typeof b && (c = b, b = !1), b = b || Z;
|
2256
|
+
var d = gb.exec(a), e = !c && [];
|
2257
|
+
return d ? [b.createElement(d[1])] : (d = _.buildFragment([a], b, e), e && e.length && _(e).remove(), _.merge([], d.childNodes))
|
2258
|
+
};
|
2259
|
+
var Jc = _.fn.load;
|
2260
|
+
_.fn.load = function (a, b, c) {
|
2261
|
+
if ("string" != typeof a && Jc)return Jc.apply(this, arguments);
|
2262
|
+
var d, e, f, g = this, h = a.indexOf(" ");
|
2263
|
+
return h >= 0 && (d = _.trim(a.slice(h)), a = a.slice(0, h)), _.isFunction(b) ? (c = b, b = void 0) : b && "object" == typeof b && (e = "POST"), g.length > 0 && _.ajax({
|
2264
|
+
url: a,
|
2265
|
+
type: e,
|
2266
|
+
dataType: "html",
|
2267
|
+
data: b
|
2268
|
+
}).done(function (a) {
|
2269
|
+
f = arguments, g.html(d ? _("<div>").append(_.parseHTML(a)).find(d) : a)
|
2270
|
+
}).complete(c && function (a, b) {
|
2271
|
+
g.each(c, f || [a.responseText, b, a])
|
2272
|
+
}), this
|
2273
|
+
}, _.expr.filters.animated = function (a) {
|
2274
|
+
return _.grep(_.timers, function (b) {
|
2275
|
+
return a === b.elem
|
2276
|
+
}).length
|
2277
|
+
};
|
2278
|
+
var Kc = a.document.documentElement;
|
2279
|
+
_.offset = {
|
2280
|
+
setOffset: function (a, b, c) {
|
2281
|
+
var d, e, f, g, h, i, j, k = _.css(a, "position"), l = _(a), m = {};
|
2282
|
+
"static" === k && (a.style.position = "relative"), h = l.offset(), f = _.css(a, "top"), i = _.css(a, "left"), j = ("absolute" === k || "fixed" === k) && (f + i).indexOf("auto") > -1, j ? (d = l.position(), g = d.top, e = d.left) : (g = parseFloat(f) || 0, e = parseFloat(i) || 0), _.isFunction(b) && (b = b.call(a, c, h)), null != b.top && (m.top = b.top - h.top + g), null != b.left && (m.left = b.left - h.left + e), "using"in b ? b.using.call(a, m) : l.css(m)
|
2283
|
+
}
|
2284
|
+
}, _.fn.extend({
|
2285
|
+
offset: function (a) {
|
2286
|
+
if (arguments.length)return void 0 === a ? this : this.each(function (b) {
|
2287
|
+
_.offset.setOffset(this, a, b)
|
2288
|
+
});
|
2289
|
+
var b, c, d = this[0], e = {top: 0, left: 0}, f = d && d.ownerDocument;
|
2290
|
+
if (f)return b = f.documentElement, _.contains(b, d) ? (typeof d.getBoundingClientRect !== zb && (e = d.getBoundingClientRect()), c = P(f), {
|
2291
|
+
top: e.top + c.pageYOffset - b.clientTop,
|
2292
|
+
left: e.left + c.pageXOffset - b.clientLeft
|
2293
|
+
}) : e
|
2294
|
+
}, position: function () {
|
2295
|
+
if (this[0]) {
|
2296
|
+
var a, b, c = this[0], d = {top: 0, left: 0};
|
2297
|
+
return "fixed" === _.css(c, "position") ? b = c.getBoundingClientRect() : (a = this.offsetParent(), b = this.offset(), _.nodeName(a[0], "html") || (d = a.offset()), d.top += _.css(a[0], "borderTopWidth", !0), d.left += _.css(a[0], "borderLeftWidth", !0)), {
|
2298
|
+
top: b.top - d.top - _.css(c, "marginTop", !0),
|
2299
|
+
left: b.left - d.left - _.css(c, "marginLeft", !0)
|
2300
|
+
}
|
2301
|
+
}
|
2302
|
+
}, offsetParent: function () {
|
2303
|
+
return this.map(function () {
|
2304
|
+
for (var a = this.offsetParent || Kc; a && !_.nodeName(a, "html") && "static" === _.css(a, "position");)a = a.offsetParent;
|
2305
|
+
return a || Kc
|
2306
|
+
})
|
2307
|
+
}
|
2308
|
+
}), _.each({scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function (b, c) {
|
2309
|
+
var d = "pageYOffset" === c;
|
2310
|
+
_.fn[b] = function (e) {
|
2311
|
+
return qb(this, function (b, e, f) {
|
2312
|
+
var g = P(b);
|
2313
|
+
return void 0 === f ? g ? g[c] : b[e] : void(g ? g.scrollTo(d ? a.pageXOffset : f, d ? f : a.pageYOffset) : b[e] = f)
|
2314
|
+
}, b, e, arguments.length, null)
|
2315
|
+
}
|
2316
|
+
}), _.each(["top", "left"], function (a, b) {
|
2317
|
+
_.cssHooks[b] = w(Y.pixelPosition, function (a, c) {
|
2318
|
+
return c ? (c = v(a, b), Qb.test(c) ? _(a).position()[b] + "px" : c) : void 0
|
2319
|
+
})
|
2320
|
+
}), _.each({Height: "height", Width: "width"}, function (a, b) {
|
2321
|
+
_.each({padding: "inner" + a, content: b, "": "outer" + a}, function (c, d) {
|
2322
|
+
_.fn[d] = function (d, e) {
|
2323
|
+
var f = arguments.length && (c || "boolean" != typeof d), g = c || (d === !0 || e === !0 ? "margin" : "border");
|
2324
|
+
return qb(this, function (b, c, d) {
|
2325
|
+
var e;
|
2326
|
+
return _.isWindow(b) ? b.document.documentElement["client" + a] : 9 === b.nodeType ? (e = b.documentElement, Math.max(b.body["scroll" + a], e["scroll" + a], b.body["offset" + a], e["offset" + a], e["client" + a])) : void 0 === d ? _.css(b, c, g) : _.style(b, c, d, g)
|
2327
|
+
}, b, f ? d : void 0, f, null)
|
2328
|
+
}
|
2329
|
+
})
|
2330
|
+
}), _.fn.size = function () {
|
2331
|
+
return this.length
|
2332
|
+
}, _.fn.andSelf = _.fn.addBack, "function" == typeof define && define.amd && define("jquery", [], function () {
|
2333
|
+
return _
|
2334
|
+
});
|
2335
|
+
var Lc = a.jQuery, Mc = a.$;
|
2336
|
+
return _.noConflict = function (b) {
|
2337
|
+
return a.$ === _ && (a.$ = Mc), b && a.jQuery === _ && (a.jQuery = Lc), _
|
2338
|
+
}, typeof b === zb && (a.jQuery = a.$ = _), _
|
2339
|
+
});
|