├── LICENSE
├── Plugin.php
├── README.md
├── css
└── model.css
├── js
└── jquery.min.js
└── models
├── flandre.png
├── kotori.png
├── lamu.png
├── marisa.png
└── reimu.png
/LICENSE:
--------------------------------------------------------------------------------
1 | This is free and unencumbered software released into the public domain.
2 |
3 | Anyone is free to copy, modify, publish, use, compile, sell, or
4 | distribute this software, either in source code form or as a compiled
5 | binary, for any purpose, commercial or non-commercial, and by any
6 | means.
7 |
8 | In jurisdictions that recognize copyright laws, the author or authors
9 | of this software dedicate any and all copyright interest in the
10 | software to the public domain. We make this dedication for the benefit
11 | of the public at large and to the detriment of our heirs and
12 | successors. We intend this dedication to be an overt act of
13 | relinquishment in perpetuity of all present and future rights to this
14 | software under copyright law.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
24 | For more information, please refer to
25 |
--------------------------------------------------------------------------------
/Plugin.php:
--------------------------------------------------------------------------------
1 | header = array(__CLASS__, 'header');
23 | Typecho_Plugin::factory('Widget_Archive')->footer = array(__CLASS__, 'footer');
24 | return "插件启动成功,请配置相关内容";
25 | }
26 |
27 | /**
28 | * 禁用插件方法,如果禁用失败,直接抛出异常
29 | *
30 | * @static
31 | * @access public
32 | * @return void
33 | * @throws Typecho_Plugin_Exception
34 | */
35 | public static function deactivate()
36 | {
37 | return "插件禁用成功";
38 | }
39 |
40 | /**
41 | * 获取插件配置面板
42 | *
43 | * @access public
44 | * @param Typecho_Widget_Helper_Form $form 配置面板
45 | * @return void
46 | */
47 | public static function config(Typecho_Widget_Helper_Form $form)
48 | {
49 |
50 | // 插件信息与更新检测
51 | function check_update($version)
52 | {
53 | echo "";
54 | echo "";
55 | echo "
MoeTop返回顶部插件 (" . $version . ") ";
56 | echo "
By: Sanakey
";
57 | echo "
插件说明
58 | 检查更新
";
59 | echo "
感谢使用!更多说明请点击插件说明或点击前往github查看 ~
";
60 |
61 | echo "
";
62 | }
63 | check_update("1.1.0");
64 |
65 | // 读取模型文件夹
66 | $models = array();
67 | $load = glob("../usr/plugins/MoeTop/models/*");
68 | foreach ($load as $key => $value) {
69 | $single = substr($value, 29);
70 | $models[$single] = " ";
71 | };
72 |
73 | // 选择模型
74 | $chooseModels = new Typecho_Widget_Helper_Form_Element_Radio(
75 | 'chooseModels',
76 | $models,
77 | 'reimu.png',
78 | _t('选择模型'),
79 | _t('选择插件 models 目录下的模型,每个模型为一张图片。')
80 | );
81 | $form->addInput($chooseModels);
82 |
83 | // 是否开启随机
84 | $randomMode = new Typecho_Widget_Helper_Form_Element_Checkbox(
85 | 'randomMode',
86 | array('1' => _t('开启随机模式')),
87 | '1',
88 | _t('是否开启随机模式'),
89 | _t('勾选此选项后,前面选择的模型将会失效,每次刷新页面将会随机加载返回顶部图片。')
90 | );
91 | $form->addInput($randomMode);
92 |
93 | // 是否在移动端显示
94 | $isShowMobile = new Typecho_Widget_Helper_Form_Element_Radio(
95 | 'isShowMobile',
96 | array(
97 | '0' => _t('否'),
98 | '1' => _t('是'),
99 | ),
100 | '1',
101 | _t('是否在移动端显示')
102 | );
103 | $form->addInput($isShowMobile);
104 |
105 | // 是否加载jq
106 | $jquery = new Typecho_Widget_Helper_Form_Element_Radio(
107 | 'jquery',
108 | array(
109 | '0' => _t('否'),
110 | '1' => _t('是'),
111 | ),
112 | '1',
113 | _t('是否加载jQuery'),
114 | _t('插件需要加载jQuery,如果主题模板已经引用加载JQuery,则可以取消加载。')
115 | );
116 | $form->addInput($jquery);
117 |
118 | }
119 |
120 | /**
121 | * 个人用户的配置面板
122 | *
123 | * @access public
124 | * @param Typecho_Widget_Helper_Form $form
125 | * @return void
126 | */
127 | public static function personalConfig(Typecho_Widget_Helper_Form $form)
128 | { }
129 |
130 | /**
131 | * 插件实现方法
132 | *
133 | * @access public
134 | * @return void
135 | */
136 | public static function render()
137 | { }
138 |
139 |
140 | /**
141 | * 在header页头输出相关代码
142 | *
143 | * @access public
144 | * @param unknown header
145 | * @return void
146 | */
147 | public static function header()
148 | {
149 |
150 | // 获取用户配置
151 | $options = Helper::options();
152 | $jquery = $options->plugin('MoeTop')->jquery;
153 | // 输出css文件
154 | $path = $options->pluginUrl . '/MoeTop/';
155 | echo ' ';
156 | if ($jquery) {
157 | echo '';
158 | }
159 | }
160 |
161 | /**
162 | * 在页脚footer输出相关代码
163 | *
164 | * @access public
165 | * @param unknown footer
166 | * @return void
167 | */
168 | public static function footer()
169 | {
170 | // 获取用户配置
171 | $options = Helper::options();
172 | $path = $options->pluginUrl . '/MoeTop/models/';
173 | $randomMode = $options->plugin('MoeTop')->randomMode;
174 | $isShowMobile = $options->plugin('MoeTop')->isShowMobile;
175 |
176 | // 读取模型文件夹
177 | $models = array();
178 | $load = glob("usr/plugins/MoeTop/models/*");
179 | // print_r(glob("*.*"));
180 | foreach ($load as $key => $value) {
181 | $single = substr($value, 26);
182 | $models[$key] = $single;
183 | };
184 | if ($isShowMobile) {
185 | $css = '';
186 | } else {
187 | $css = '';
194 | }
195 | if ($randomMode) {
196 | $chooseModels = $models[mt_rand( 0, count($models) - 1)];
197 | } else {
198 | $chooseModels = $options->plugin('MoeTop')->chooseModels;
199 | }
200 | $models_id = preg_replace("/\.(?:gif|png|jpg|jpeg)$/i","",$chooseModels);
201 |
202 | echo <<
204 | $css
205 |
222 |
223 | HTML;
224 |
225 | }
226 | }
227 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # MoeTop
2 | 这是一款typecho插件,一款萌萌哒的返回顶部插件。
3 |
4 | ## 食用方法
5 | * 点击右上角绿色的`Clone or download`按钮,`Download ZIP`, 解压文件。
6 | * 重命名文件夹为`MoeTop`
7 | * 将`MoeTop`文件夹上传至typecho的插件`usr/plugins`目录
8 | * 登录后台启用`MoeTop`插件即可正确食用
9 |
10 | ## 配置说明
11 | * 选择自己喜欢的图片模型即可。
12 | * 支持随机模式,开启后每次刷新页面将会从插件的models文件夹中随机加载一张图片模型。
13 |
14 | ## 更新
15 | ### 1.1.0
16 | - 添加是否在移动端显示选项。
17 |
18 | ## 效果
19 | 预览效果: [Sanakeyの小站](https://keymoe.com)
20 |
21 | ## 声明
22 | 本插件使用到的所有图片来自互联网,版权归原作者所有。
23 |
24 |
25 |
--------------------------------------------------------------------------------
/css/model.css:
--------------------------------------------------------------------------------
1 |
2 | .topButton {
3 | display: none;
4 | }
5 |
6 | .back-to-top {
7 | cursor: pointer;
8 | position: fixed;
9 | z-index: 10000;
10 | max-height: 120px;
11 | transition: all .5s ease-in-out;
12 | opacity: 1;
13 | }
14 | .back-to-top.animate {
15 | animation: floatY 2s linear infinite;
16 | }
17 | .back-to-top:hover{
18 | animation-play-state:paused;
19 | -webkit-animation-play-state:paused;
20 | }
21 |
22 | @keyframes floatX {
23 | 0% {
24 | -webkit-transform: translateX(0);
25 | -ms-transform: translateX(0);
26 | transform: translateX(0)
27 | }
28 |
29 | 50% {
30 | -webkit-transform: translateX(-6px);
31 | -ms-transform: translateX(-6px);
32 | transform: translateX(-6px)
33 | }
34 |
35 | 100% {
36 | -webkit-transform: translateX(0);
37 | -ms-transform: translateX(0);
38 | transform: translateX(0)
39 | }
40 | }
41 | @keyframes floatY {
42 | 0% {
43 | -webkit-transform: translateY(0);
44 | -ms-transform: translateY(0);
45 | transform: translateY(0)
46 | }
47 |
48 | 50% {
49 | -webkit-transform: translateY(-6px);
50 | -ms-transform: translateY(-6px);
51 | transform: translateY(-6px)
52 | }
53 |
54 | 100% {
55 | -webkit-transform: translateY(0);
56 | -ms-transform: translateY(0);
57 | transform: translateY(0)
58 | }
59 | }
60 |
61 | /*kotori*/
62 | #kotori {
63 | left:-15px;
64 | bottom:-15px;
65 | max-height:110px;
66 | }
67 | #kotori:hover {
68 | left:0;
69 | bottom:0;
70 | }
71 | #kotori.hidetotop {
72 | left:-100%;
73 | bottom:-100%;
74 | }
75 |
76 | /* 东方系列 */
77 | #reimu,#marisa,#flandre{
78 | bottom:-0px;
79 | right:-15px;
80 | max-height:150px;
81 | }
82 | #reimu.animate,#marisa.animate,#flandre.animate {
83 | animation: floatX 2s linear infinite;
84 | }
85 | #reimu:hover,#marisa:hover,#flandre:hover {
86 | right:0;
87 | bottom:0;
88 | animation-play-state:paused;
89 | -webkit-animation-play-state:paused;
90 | }
91 | #reimu.hidetotop,#marisa.hidetotop,#flandre.hidetotop {
92 | right:-100%;
93 | }
94 | /* 拉姆 */
95 | #lamu {
96 | bottom:-15px;
97 | right:-15px;
98 | }
99 | #lamu:hover {
100 | right:0;
101 | bottom:0;
102 | }
103 | #lamu.hidetotop {
104 | right:-100%;
105 | bottom:-100%;
106 | }
--------------------------------------------------------------------------------
/js/jquery.min.js:
--------------------------------------------------------------------------------
1 | /*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */
2 | !function (e, t) {
3 | "use strict";
4 | "object" == typeof module && "object" == typeof module.exports ? module.exports = e.document ? t(e, !0) : function (e) {
5 | if (!e.document) throw new Error("jQuery requires a window with a document");
6 | return t(e)
7 | } : t(e)
8 | }("undefined" != typeof window ? window : this, function (e, t) {
9 | "use strict";
10 | var n = [], r = e.document, i = Object.getPrototypeOf, o = n.slice, a = n.concat, s = n.push, u = n.indexOf, l = {},
11 | c = l.toString, f = l.hasOwnProperty, p = f.toString, d = p.call(Object), h = {}, g = function e(t) {
12 | return "function" == typeof t && "number" != typeof t.nodeType
13 | }, y = function e(t) {
14 | return null != t && t === t.window
15 | }, v = {type: !0, src: !0, noModule: !0};
16 |
17 | function m(e, t, n) {
18 | var i, o = (t = t || r).createElement("script");
19 | if (o.text = e, n) for (i in v) n[i] && (o[i] = n[i]);
20 | t.head.appendChild(o).parentNode.removeChild(o)
21 | }
22 |
23 | function x(e) {
24 | return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? l[c.call(e)] || "object" : typeof e
25 | }
26 |
27 | var b = "3.3.1", w = function (e, t) {
28 | return new w.fn.init(e, t)
29 | }, T = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
30 | w.fn = w.prototype = {
31 | jquery: "3.3.1", constructor: w, length: 0, toArray: function () {
32 | return o.call(this)
33 | }, get: function (e) {
34 | return null == e ? o.call(this) : e < 0 ? this[e + this.length] : this[e]
35 | }, pushStack: function (e) {
36 | var t = w.merge(this.constructor(), e);
37 | return t.prevObject = this, t
38 | }, each: function (e) {
39 | return w.each(this, e)
40 | }, map: function (e) {
41 | return this.pushStack(w.map(this, function (t, n) {
42 | return e.call(t, n, t)
43 | }))
44 | }, slice: function () {
45 | return this.pushStack(o.apply(this, arguments))
46 | }, first: function () {
47 | return this.eq(0)
48 | }, last: function () {
49 | return this.eq(-1)
50 | }, eq: function (e) {
51 | var t = this.length, n = +e + (e < 0 ? t : 0);
52 | return this.pushStack(n >= 0 && n < t ? [this[n]] : [])
53 | }, end: function () {
54 | return this.prevObject || this.constructor()
55 | }, push: s, sort: n.sort, splice: n.splice
56 | }, w.extend = w.fn.extend = function () {
57 | var e, t, n, r, i, o, a = arguments[0] || {}, s = 1, u = arguments.length, l = !1;
58 | for ("boolean" == typeof a && (l = a, a = arguments[s] || {}, s++), "object" == typeof a || g(a) || (a = {}), s === u && (a = this, s--); s < u; s++) if (null != (e = arguments[s])) for (t in e) n = a[t], a !== (r = e[t]) && (l && r && (w.isPlainObject(r) || (i = Array.isArray(r))) ? (i ? (i = !1, o = n && Array.isArray(n) ? n : []) : o = n && w.isPlainObject(n) ? n : {}, a[t] = w.extend(l, o, r)) : void 0 !== r && (a[t] = r));
59 | return a
60 | }, w.extend({
61 | expando: "jQuery" + ("3.3.1" + Math.random()).replace(/\D/g, ""), isReady: !0, error: function (e) {
62 | throw new Error(e)
63 | }, noop: function () {
64 | }, isPlainObject: function (e) {
65 | var t, n;
66 | return !(!e || "[object Object]" !== c.call(e)) && (!(t = i(e)) || "function" == typeof(n = f.call(t, "constructor") && t.constructor) && p.call(n) === d)
67 | }, isEmptyObject: function (e) {
68 | var t;
69 | for (t in e) return !1;
70 | return !0
71 | }, globalEval: function (e) {
72 | m(e)
73 | }, each: function (e, t) {
74 | var n, r = 0;
75 | if (C(e)) {
76 | for (n = e.length; r < n; r++) if (!1 === t.call(e[r], r, e[r])) break
77 | } else for (r in e) if (!1 === t.call(e[r], r, e[r])) break;
78 | return e
79 | }, trim: function (e) {
80 | return null == e ? "" : (e + "").replace(T, "")
81 | }, makeArray: function (e, t) {
82 | var n = t || [];
83 | return null != e && (C(Object(e)) ? w.merge(n, "string" == typeof e ? [e] : e) : s.call(n, e)), n
84 | }, inArray: function (e, t, n) {
85 | return null == t ? -1 : u.call(t, e, n)
86 | }, merge: function (e, t) {
87 | for (var n = +t.length, r = 0, i = e.length; r < n; r++) e[i++] = t[r];
88 | return e.length = i, e
89 | }, grep: function (e, t, n) {
90 | for (var r, i = [], o = 0, a = e.length, s = !n; o < a; o++) (r = !t(e[o], o)) !== s && i.push(e[o]);
91 | return i
92 | }, map: function (e, t, n) {
93 | var r, i, o = 0, s = [];
94 | if (C(e)) for (r = e.length; o < r; o++) null != (i = t(e[o], o, n)) && s.push(i); else for (o in e) null != (i = t(e[o], o, n)) && s.push(i);
95 | return a.apply([], s)
96 | }, guid: 1, support: h
97 | }), "function" == typeof Symbol && (w.fn[Symbol.iterator] = n[Symbol.iterator]), w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function (e, t) {
98 | l["[object " + t + "]"] = t.toLowerCase()
99 | });
100 |
101 | function C(e) {
102 | var t = !!e && "length" in e && e.length, n = x(e);
103 | return !g(e) && !y(e) && ("array" === n || 0 === t || "number" == typeof t && t > 0 && t - 1 in e)
104 | }
105 |
106 | var E = function (e) {
107 | var t, n, r, i, o, a, s, u, l, c, f, p, d, h, g, y, v, m, x, b = "sizzle" + 1 * new Date, w = e.document, T = 0,
108 | C = 0, E = ae(), k = ae(), S = ae(), D = function (e, t) {
109 | return e === t && (f = !0), 0
110 | }, N = {}.hasOwnProperty, A = [], j = A.pop, q = A.push, L = A.push, H = A.slice, O = function (e, t) {
111 | for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
112 | return -1
113 | },
114 | P = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
115 | M = "[\\x20\\t\\r\\n\\f]", R = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
116 | I = "\\[" + M + "*(" + R + ")(?:" + M + "*([*^$|!~]?=)" + M + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + R + "))|)" + M + "*\\]",
117 | W = ":(" + R + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + I + ")*)|.*)\\)|)",
118 | $ = new RegExp(M + "+", "g"), B = new RegExp("^" + M + "+|((?:^|[^\\\\])(?:\\\\.)*)" + M + "+$", "g"),
119 | F = new RegExp("^" + M + "*," + M + "*"), _ = new RegExp("^" + M + "*([>+~]|" + M + ")" + M + "*"),
120 | z = new RegExp("=" + M + "*([^\\]'\"]*?)" + M + "*\\]", "g"), X = new RegExp(W),
121 | U = new RegExp("^" + R + "$"), V = {
122 | ID: new RegExp("^#(" + R + ")"),
123 | CLASS: new RegExp("^\\.(" + R + ")"),
124 | TAG: new RegExp("^(" + R + "|[*])"),
125 | ATTR: new RegExp("^" + I),
126 | PSEUDO: new RegExp("^" + W),
127 | CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + M + "*(even|odd|(([+-]|)(\\d*)n|)" + M + "*(?:([+-]|)" + M + "*(\\d+)|))" + M + "*\\)|)", "i"),
128 | bool: new RegExp("^(?:" + P + ")$", "i"),
129 | needsContext: new RegExp("^" + M + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + M + "*((?:-\\d)?\\d*)" + M + "*\\)|)(?=[^-]|$)", "i")
130 | }, G = /^(?:input|select|textarea|button)$/i, Y = /^h\d$/i, Q = /^[^{]+\{\s*\[native \w/,
131 | J = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, K = /[+~]/,
132 | Z = new RegExp("\\\\([\\da-f]{1,6}" + M + "?|(" + M + ")|.)", "ig"), ee = function (e, t, n) {
133 | var r = "0x" + t - 65536;
134 | return r !== r || n ? t : r < 0 ? String.fromCharCode(r + 65536) : String.fromCharCode(r >> 10 | 55296, 1023 & r | 56320)
135 | }, te = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, ne = function (e, t) {
136 | return t ? "\0" === e ? "\ufffd" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) + " " : "\\" + e
137 | }, re = function () {
138 | p()
139 | }, ie = me(function (e) {
140 | return !0 === e.disabled && ("form" in e || "label" in e)
141 | }, {dir: "parentNode", next: "legend"});
142 | try {
143 | L.apply(A = H.call(w.childNodes), w.childNodes), A[w.childNodes.length].nodeType
144 | } catch (e) {
145 | L = {
146 | apply: A.length ? function (e, t) {
147 | q.apply(e, H.call(t))
148 | } : function (e, t) {
149 | var n = e.length, r = 0;
150 | while (e[n++] = t[r++]) ;
151 | e.length = n - 1
152 | }
153 | }
154 | }
155 |
156 | function oe(e, t, r, i) {
157 | var o, s, l, c, f, h, v, m = t && t.ownerDocument, T = t ? t.nodeType : 9;
158 | if (r = r || [], "string" != typeof e || !e || 1 !== T && 9 !== T && 11 !== T) return r;
159 | if (!i && ((t ? t.ownerDocument || t : w) !== d && p(t), t = t || d, g)) {
160 | if (11 !== T && (f = J.exec(e))) if (o = f[1]) {
161 | if (9 === T) {
162 | if (!(l = t.getElementById(o))) return r;
163 | if (l.id === o) return r.push(l), r
164 | } else if (m && (l = m.getElementById(o)) && x(t, l) && l.id === o) return r.push(l), r
165 | } else {
166 | if (f[2]) return L.apply(r, t.getElementsByTagName(e)), r;
167 | if ((o = f[3]) && n.getElementsByClassName && t.getElementsByClassName) return L.apply(r, t.getElementsByClassName(o)), r
168 | }
169 | if (n.qsa && !S[e + " "] && (!y || !y.test(e))) {
170 | if (1 !== T) m = t, v = e; else if ("object" !== t.nodeName.toLowerCase()) {
171 | (c = t.getAttribute("id")) ? c = c.replace(te, ne) : t.setAttribute("id", c = b), s = (h = a(e)).length;
172 | while (s--) h[s] = "#" + c + " " + ve(h[s]);
173 | v = h.join(","), m = K.test(e) && ge(t.parentNode) || t
174 | }
175 | if (v) try {
176 | return L.apply(r, m.querySelectorAll(v)), r
177 | } catch (e) {
178 | } finally {
179 | c === b && t.removeAttribute("id")
180 | }
181 | }
182 | }
183 | return u(e.replace(B, "$1"), t, r, i)
184 | }
185 |
186 | function ae() {
187 | var e = [];
188 |
189 | function t(n, i) {
190 | return e.push(n + " ") > r.cacheLength && delete t[e.shift()], t[n + " "] = i
191 | }
192 |
193 | return t
194 | }
195 |
196 | function se(e) {
197 | return e[b] = !0, e
198 | }
199 |
200 | function ue(e) {
201 | var t = d.createElement("fieldset");
202 | try {
203 | return !!e(t)
204 | } catch (e) {
205 | return !1
206 | } finally {
207 | t.parentNode && t.parentNode.removeChild(t), t = null
208 | }
209 | }
210 |
211 | function le(e, t) {
212 | var n = e.split("|"), i = n.length;
213 | while (i--) r.attrHandle[n[i]] = t
214 | }
215 |
216 | function ce(e, t) {
217 | var n = t && e, r = n && 1 === e.nodeType && 1 === t.nodeType && e.sourceIndex - t.sourceIndex;
218 | if (r) return r;
219 | if (n) while (n = n.nextSibling) if (n === t) return -1;
220 | return e ? 1 : -1
221 | }
222 |
223 | function fe(e) {
224 | return function (t) {
225 | return "input" === t.nodeName.toLowerCase() && t.type === e
226 | }
227 | }
228 |
229 | function pe(e) {
230 | return function (t) {
231 | var n = t.nodeName.toLowerCase();
232 | return ("input" === n || "button" === n) && t.type === e
233 | }
234 | }
235 |
236 | function de(e) {
237 | return function (t) {
238 | return "form" in t ? t.parentNode && !1 === t.disabled ? "label" in t ? "label" in t.parentNode ? t.parentNode.disabled === e : t.disabled === e : t.isDisabled === e || t.isDisabled !== !e && ie(t) === e : t.disabled === e : "label" in t && t.disabled === e
239 | }
240 | }
241 |
242 | function he(e) {
243 | return se(function (t) {
244 | return t = +t, se(function (n, r) {
245 | var i, o = e([], n.length, t), a = o.length;
246 | while (a--) n[i = o[a]] && (n[i] = !(r[i] = n[i]))
247 | })
248 | })
249 | }
250 |
251 | function ge(e) {
252 | return e && "undefined" != typeof e.getElementsByTagName && e
253 | }
254 |
255 | n = oe.support = {}, o = oe.isXML = function (e) {
256 | var t = e && (e.ownerDocument || e).documentElement;
257 | return !!t && "HTML" !== t.nodeName
258 | }, p = oe.setDocument = function (e) {
259 | var t, i, a = e ? e.ownerDocument || e : w;
260 | return a !== d && 9 === a.nodeType && a.documentElement ? (d = a, h = d.documentElement, g = !o(d), w !== d && (i = d.defaultView) && i.top !== i && (i.addEventListener ? i.addEventListener("unload", re, !1) : i.attachEvent && i.attachEvent("onunload", re)), n.attributes = ue(function (e) {
261 | return e.className = "i", !e.getAttribute("className")
262 | }), n.getElementsByTagName = ue(function (e) {
263 | return e.appendChild(d.createComment("")), !e.getElementsByTagName("*").length
264 | }), n.getElementsByClassName = Q.test(d.getElementsByClassName), n.getById = ue(function (e) {
265 | return h.appendChild(e).id = b, !d.getElementsByName || !d.getElementsByName(b).length
266 | }), n.getById ? (r.filter.ID = function (e) {
267 | var t = e.replace(Z, ee);
268 | return function (e) {
269 | return e.getAttribute("id") === t
270 | }
271 | }, r.find.ID = function (e, t) {
272 | if ("undefined" != typeof t.getElementById && g) {
273 | var n = t.getElementById(e);
274 | return n ? [n] : []
275 | }
276 | }) : (r.filter.ID = function (e) {
277 | var t = e.replace(Z, ee);
278 | return function (e) {
279 | var n = "undefined" != typeof e.getAttributeNode && e.getAttributeNode("id");
280 | return n && n.value === t
281 | }
282 | }, r.find.ID = function (e, t) {
283 | if ("undefined" != typeof t.getElementById && g) {
284 | var n, r, i, o = t.getElementById(e);
285 | if (o) {
286 | if ((n = o.getAttributeNode("id")) && n.value === e) return [o];
287 | i = t.getElementsByName(e), r = 0;
288 | while (o = i[r++]) if ((n = o.getAttributeNode("id")) && n.value === e) return [o]
289 | }
290 | return []
291 | }
292 | }), r.find.TAG = n.getElementsByTagName ? function (e, t) {
293 | return "undefined" != typeof t.getElementsByTagName ? t.getElementsByTagName(e) : n.qsa ? t.querySelectorAll(e) : void 0
294 | } : function (e, t) {
295 | var n, r = [], i = 0, o = t.getElementsByTagName(e);
296 | if ("*" === e) {
297 | while (n = o[i++]) 1 === n.nodeType && r.push(n);
298 | return r
299 | }
300 | return o
301 | }, r.find.CLASS = n.getElementsByClassName && function (e, t) {
302 | if ("undefined" != typeof t.getElementsByClassName && g) return t.getElementsByClassName(e)
303 | }, v = [], y = [], (n.qsa = Q.test(d.querySelectorAll)) && (ue(function (e) {
304 | h.appendChild(e).innerHTML = " ", e.querySelectorAll("[msallowcapture^='']").length && y.push("[*^$]=" + M + "*(?:''|\"\")"), e.querySelectorAll("[selected]").length || y.push("\\[" + M + "*(?:value|" + P + ")"), e.querySelectorAll("[id~=" + b + "-]").length || y.push("~="), e.querySelectorAll(":checked").length || y.push(":checked"), e.querySelectorAll("a#" + b + "+*").length || y.push(".#.+[+~]")
305 | }), ue(function (e) {
306 | e.innerHTML = " ";
307 | var t = d.createElement("input");
308 | t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("name", "D"), e.querySelectorAll("[name=d]").length && y.push("name" + M + "*[*^$|!~]?="), 2 !== e.querySelectorAll(":enabled").length && y.push(":enabled", ":disabled"), h.appendChild(e).disabled = !0, 2 !== e.querySelectorAll(":disabled").length && y.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), y.push(",.*:")
309 | })), (n.matchesSelector = Q.test(m = h.matches || h.webkitMatchesSelector || h.mozMatchesSelector || h.oMatchesSelector || h.msMatchesSelector)) && ue(function (e) {
310 | n.disconnectedMatch = m.call(e, "*"), m.call(e, "[s!='']:x"), v.push("!=", W)
311 | }), y = y.length && new RegExp(y.join("|")), v = v.length && new RegExp(v.join("|")), t = Q.test(h.compareDocumentPosition), x = t || Q.test(h.contains) ? function (e, t) {
312 | var n = 9 === e.nodeType ? e.documentElement : e, r = t && t.parentNode;
313 | return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)))
314 | } : function (e, t) {
315 | if (t) while (t = t.parentNode) if (t === e) return !0;
316 | return !1
317 | }, D = t ? function (e, t) {
318 | if (e === t) return f = !0, 0;
319 | var r = !e.compareDocumentPosition - !t.compareDocumentPosition;
320 | return r || (1 & (r = (e.ownerDocument || e) === (t.ownerDocument || t) ? e.compareDocumentPosition(t) : 1) || !n.sortDetached && t.compareDocumentPosition(e) === r ? e === d || e.ownerDocument === w && x(w, e) ? -1 : t === d || t.ownerDocument === w && x(w, t) ? 1 : c ? O(c, e) - O(c, t) : 0 : 4 & r ? -1 : 1)
321 | } : function (e, t) {
322 | if (e === t) return f = !0, 0;
323 | var n, r = 0, i = e.parentNode, o = t.parentNode, a = [e], s = [t];
324 | if (!i || !o) return e === d ? -1 : t === d ? 1 : i ? -1 : o ? 1 : c ? O(c, e) - O(c, t) : 0;
325 | if (i === o) return ce(e, t);
326 | n = e;
327 | while (n = n.parentNode) a.unshift(n);
328 | n = t;
329 | while (n = n.parentNode) s.unshift(n);
330 | while (a[r] === s[r]) r++;
331 | return r ? ce(a[r], s[r]) : a[r] === w ? -1 : s[r] === w ? 1 : 0
332 | }, d) : d
333 | }, oe.matches = function (e, t) {
334 | return oe(e, null, null, t)
335 | }, oe.matchesSelector = function (e, t) {
336 | if ((e.ownerDocument || e) !== d && p(e), t = t.replace(z, "='$1']"), n.matchesSelector && g && !S[t + " "] && (!v || !v.test(t)) && (!y || !y.test(t))) try {
337 | var r = m.call(e, t);
338 | if (r || n.disconnectedMatch || e.document && 11 !== e.document.nodeType) return r
339 | } catch (e) {
340 | }
341 | return oe(t, d, null, [e]).length > 0
342 | }, oe.contains = function (e, t) {
343 | return (e.ownerDocument || e) !== d && p(e), x(e, t)
344 | }, oe.attr = function (e, t) {
345 | (e.ownerDocument || e) !== d && p(e);
346 | var i = r.attrHandle[t.toLowerCase()],
347 | o = i && N.call(r.attrHandle, t.toLowerCase()) ? i(e, t, !g) : void 0;
348 | return void 0 !== o ? o : n.attributes || !g ? e.getAttribute(t) : (o = e.getAttributeNode(t)) && o.specified ? o.value : null
349 | }, oe.escape = function (e) {
350 | return (e + "").replace(te, ne)
351 | }, oe.error = function (e) {
352 | throw new Error("Syntax error, unrecognized expression: " + e)
353 | }, oe.uniqueSort = function (e) {
354 | var t, r = [], i = 0, o = 0;
355 | if (f = !n.detectDuplicates, c = !n.sortStable && e.slice(0), e.sort(D), f) {
356 | while (t = e[o++]) t === e[o] && (i = r.push(o));
357 | while (i--) e.splice(r[i], 1)
358 | }
359 | return c = null, e
360 | }, i = oe.getText = function (e) {
361 | var t, n = "", r = 0, o = e.nodeType;
362 | if (o) {
363 | if (1 === o || 9 === o || 11 === o) {
364 | if ("string" == typeof e.textContent) return e.textContent;
365 | for (e = e.firstChild; e; e = e.nextSibling) n += i(e)
366 | } else if (3 === o || 4 === o) return e.nodeValue
367 | } else while (t = e[r++]) n += i(t);
368 | return n
369 | }, (r = oe.selectors = {
370 | cacheLength: 50,
371 | createPseudo: se,
372 | match: V,
373 | attrHandle: {},
374 | find: {},
375 | relative: {
376 | ">": {dir: "parentNode", first: !0},
377 | " ": {dir: "parentNode"},
378 | "+": {dir: "previousSibling", first: !0},
379 | "~": {dir: "previousSibling"}
380 | },
381 | preFilter: {
382 | ATTR: function (e) {
383 | return e[1] = e[1].replace(Z, ee), e[3] = (e[3] || e[4] || e[5] || "").replace(Z, ee), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4)
384 | }, CHILD: function (e) {
385 | return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || oe.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && oe.error(e[0]), e
386 | }, PSEUDO: function (e) {
387 | var t, n = !e[6] && e[2];
388 | return V.CHILD.test(e[0]) ? null : (e[3] ? e[2] = e[4] || e[5] || "" : n && X.test(n) && (t = a(n, !0)) && (t = n.indexOf(")", n.length - t) - n.length) && (e[0] = e[0].slice(0, t), e[2] = n.slice(0, t)), e.slice(0, 3))
389 | }
390 | },
391 | filter: {
392 | TAG: function (e) {
393 | var t = e.replace(Z, ee).toLowerCase();
394 | return "*" === e ? function () {
395 | return !0
396 | } : function (e) {
397 | return e.nodeName && e.nodeName.toLowerCase() === t
398 | }
399 | }, CLASS: function (e) {
400 | var t = E[e + " "];
401 | return t || (t = new RegExp("(^|" + M + ")" + e + "(" + M + "|$)")) && E(e, function (e) {
402 | return t.test("string" == typeof e.className && e.className || "undefined" != typeof e.getAttribute && e.getAttribute("class") || "")
403 | })
404 | }, ATTR: function (e, t, n) {
405 | return function (r) {
406 | var i = oe.attr(r, e);
407 | return null == i ? "!=" === t : !t || (i += "", "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i.replace($, " ") + " ").indexOf(n) > -1 : "|=" === t && (i === n || i.slice(0, n.length + 1) === n + "-"))
408 | }
409 | }, CHILD: function (e, t, n, r, i) {
410 | var o = "nth" !== e.slice(0, 3), a = "last" !== e.slice(-4), s = "of-type" === t;
411 | return 1 === r && 0 === i ? function (e) {
412 | return !!e.parentNode
413 | } : function (t, n, u) {
414 | var l, c, f, p, d, h, g = o !== a ? "nextSibling" : "previousSibling", y = t.parentNode,
415 | v = s && t.nodeName.toLowerCase(), m = !u && !s, x = !1;
416 | if (y) {
417 | if (o) {
418 | while (g) {
419 | p = t;
420 | while (p = p[g]) if (s ? p.nodeName.toLowerCase() === v : 1 === p.nodeType) return !1;
421 | h = g = "only" === e && !h && "nextSibling"
422 | }
423 | return !0
424 | }
425 | if (h = [a ? y.firstChild : y.lastChild], a && m) {
426 | x = (d = (l = (c = (f = (p = y)[b] || (p[b] = {}))[p.uniqueID] || (f[p.uniqueID] = {}))[e] || [])[0] === T && l[1]) && l[2], p = d && y.childNodes[d];
427 | while (p = ++d && p && p[g] || (x = d = 0) || h.pop()) if (1 === p.nodeType && ++x && p === t) {
428 | c[e] = [T, d, x];
429 | break
430 | }
431 | } else if (m && (x = d = (l = (c = (f = (p = t)[b] || (p[b] = {}))[p.uniqueID] || (f[p.uniqueID] = {}))[e] || [])[0] === T && l[1]), !1 === x) while (p = ++d && p && p[g] || (x = d = 0) || h.pop()) if ((s ? p.nodeName.toLowerCase() === v : 1 === p.nodeType) && ++x && (m && ((c = (f = p[b] || (p[b] = {}))[p.uniqueID] || (f[p.uniqueID] = {}))[e] = [T, x]), p === t)) break;
432 | return (x -= i) === r || x % r == 0 && x / r >= 0
433 | }
434 | }
435 | }, PSEUDO: function (e, t) {
436 | var n, i = r.pseudos[e] || r.setFilters[e.toLowerCase()] || oe.error("unsupported pseudo: " + e);
437 | return i[b] ? i(t) : i.length > 1 ? (n = [e, e, "", t], r.setFilters.hasOwnProperty(e.toLowerCase()) ? se(function (e, n) {
438 | var r, o = i(e, t), a = o.length;
439 | while (a--) e[r = O(e, o[a])] = !(n[r] = o[a])
440 | }) : function (e) {
441 | return i(e, 0, n)
442 | }) : i
443 | }
444 | },
445 | pseudos: {
446 | not: se(function (e) {
447 | var t = [], n = [], r = s(e.replace(B, "$1"));
448 | return r[b] ? se(function (e, t, n, i) {
449 | var o, a = r(e, null, i, []), s = e.length;
450 | while (s--) (o = a[s]) && (e[s] = !(t[s] = o))
451 | }) : function (e, i, o) {
452 | return t[0] = e, r(t, null, o, n), t[0] = null, !n.pop()
453 | }
454 | }), has: se(function (e) {
455 | return function (t) {
456 | return oe(e, t).length > 0
457 | }
458 | }), contains: se(function (e) {
459 | return e = e.replace(Z, ee), function (t) {
460 | return (t.textContent || t.innerText || i(t)).indexOf(e) > -1
461 | }
462 | }), lang: se(function (e) {
463 | return U.test(e || "") || oe.error("unsupported lang: " + e), e = e.replace(Z, ee).toLowerCase(), function (t) {
464 | var n;
465 | do {
466 | if (n = g ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return (n = n.toLowerCase()) === e || 0 === n.indexOf(e + "-")
467 | } while ((t = t.parentNode) && 1 === t.nodeType);
468 | return !1
469 | }
470 | }), target: function (t) {
471 | var n = e.location && e.location.hash;
472 | return n && n.slice(1) === t.id
473 | }, root: function (e) {
474 | return e === h
475 | }, focus: function (e) {
476 | return e === d.activeElement && (!d.hasFocus || d.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
477 | }, enabled: de(!1), disabled: de(!0), checked: function (e) {
478 | var t = e.nodeName.toLowerCase();
479 | return "input" === t && !!e.checked || "option" === t && !!e.selected
480 | }, selected: function (e) {
481 | return e.parentNode && e.parentNode.selectedIndex, !0 === e.selected
482 | }, empty: function (e) {
483 | for (e = e.firstChild; e; e = e.nextSibling) if (e.nodeType < 6) return !1;
484 | return !0
485 | }, parent: function (e) {
486 | return !r.pseudos.empty(e)
487 | }, header: function (e) {
488 | return Y.test(e.nodeName)
489 | }, input: function (e) {
490 | return G.test(e.nodeName)
491 | }, button: function (e) {
492 | var t = e.nodeName.toLowerCase();
493 | return "input" === t && "button" === e.type || "button" === t
494 | }, text: function (e) {
495 | var t;
496 | return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase())
497 | }, first: he(function () {
498 | return [0]
499 | }), last: he(function (e, t) {
500 | return [t - 1]
501 | }), eq: he(function (e, t, n) {
502 | return [n < 0 ? n + t : n]
503 | }), even: he(function (e, t) {
504 | for (var n = 0; n < t; n += 2) e.push(n);
505 | return e
506 | }), odd: he(function (e, t) {
507 | for (var n = 1; n < t; n += 2) e.push(n);
508 | return e
509 | }), lt: he(function (e, t, n) {
510 | for (var r = n < 0 ? n + t : n; --r >= 0;) e.push(r);
511 | return e
512 | }), gt: he(function (e, t, n) {
513 | for (var r = n < 0 ? n + t : n; ++r < t;) e.push(r);
514 | return e
515 | })
516 | }
517 | }).pseudos.nth = r.pseudos.eq;
518 | for (t in{radio: !0, checkbox: !0, file: !0, password: !0, image: !0}) r.pseudos[t] = fe(t);
519 | for (t in{submit: !0, reset: !0}) r.pseudos[t] = pe(t);
520 |
521 | function ye() {
522 | }
523 |
524 | ye.prototype = r.filters = r.pseudos, r.setFilters = new ye, a = oe.tokenize = function (e, t) {
525 | var n, i, o, a, s, u, l, c = k[e + " "];
526 | if (c) return t ? 0 : c.slice(0);
527 | s = e, u = [], l = r.preFilter;
528 | while (s) {
529 | n && !(i = F.exec(s)) || (i && (s = s.slice(i[0].length) || s), u.push(o = [])), n = !1, (i = _.exec(s)) && (n = i.shift(), o.push({
530 | value: n,
531 | type: i[0].replace(B, " ")
532 | }), s = s.slice(n.length));
533 | for (a in r.filter) !(i = V[a].exec(s)) || l[a] && !(i = l[a](i)) || (n = i.shift(), o.push({
534 | value: n,
535 | type: a,
536 | matches: i
537 | }), s = s.slice(n.length));
538 | if (!n) break
539 | }
540 | return t ? s.length : s ? oe.error(e) : k(e, u).slice(0)
541 | };
542 |
543 | function ve(e) {
544 | for (var t = 0, n = e.length, r = ""; t < n; t++) r += e[t].value;
545 | return r
546 | }
547 |
548 | function me(e, t, n) {
549 | var r = t.dir, i = t.next, o = i || r, a = n && "parentNode" === o, s = C++;
550 | return t.first ? function (t, n, i) {
551 | while (t = t[r]) if (1 === t.nodeType || a) return e(t, n, i);
552 | return !1
553 | } : function (t, n, u) {
554 | var l, c, f, p = [T, s];
555 | if (u) {
556 | while (t = t[r]) if ((1 === t.nodeType || a) && e(t, n, u)) return !0
557 | } else while (t = t[r]) if (1 === t.nodeType || a) if (f = t[b] || (t[b] = {}), c = f[t.uniqueID] || (f[t.uniqueID] = {}), i && i === t.nodeName.toLowerCase()) t = t[r] || t; else {
558 | if ((l = c[o]) && l[0] === T && l[1] === s) return p[2] = l[2];
559 | if (c[o] = p, p[2] = e(t, n, u)) return !0
560 | }
561 | return !1
562 | }
563 | }
564 |
565 | function xe(e) {
566 | return e.length > 1 ? function (t, n, r) {
567 | var i = e.length;
568 | while (i--) if (!e[i](t, n, r)) return !1;
569 | return !0
570 | } : e[0]
571 | }
572 |
573 | function be(e, t, n) {
574 | for (var r = 0, i = t.length; r < i; r++) oe(e, t[r], n);
575 | return n
576 | }
577 |
578 | function we(e, t, n, r, i) {
579 | for (var o, a = [], s = 0, u = e.length, l = null != t; s < u; s++) (o = e[s]) && (n && !n(o, r, i) || (a.push(o), l && t.push(s)));
580 | return a
581 | }
582 |
583 | function Te(e, t, n, r, i, o) {
584 | return r && !r[b] && (r = Te(r)), i && !i[b] && (i = Te(i, o)), se(function (o, a, s, u) {
585 | var l, c, f, p = [], d = [], h = a.length, g = o || be(t || "*", s.nodeType ? [s] : s, []),
586 | y = !e || !o && t ? g : we(g, p, e, s, u), v = n ? i || (o ? e : h || r) ? [] : a : y;
587 | if (n && n(y, v, s, u), r) {
588 | l = we(v, d), r(l, [], s, u), c = l.length;
589 | while (c--) (f = l[c]) && (v[d[c]] = !(y[d[c]] = f))
590 | }
591 | if (o) {
592 | if (i || e) {
593 | if (i) {
594 | l = [], c = v.length;
595 | while (c--) (f = v[c]) && l.push(y[c] = f);
596 | i(null, v = [], l, u)
597 | }
598 | c = v.length;
599 | while (c--) (f = v[c]) && (l = i ? O(o, f) : p[c]) > -1 && (o[l] = !(a[l] = f))
600 | }
601 | } else v = we(v === a ? v.splice(h, v.length) : v), i ? i(null, a, v, u) : L.apply(a, v)
602 | })
603 | }
604 |
605 | function Ce(e) {
606 | for (var t, n, i, o = e.length, a = r.relative[e[0].type], s = a || r.relative[" "], u = a ? 1 : 0, c = me(function (e) {
607 | return e === t
608 | }, s, !0), f = me(function (e) {
609 | return O(t, e) > -1
610 | }, s, !0), p = [function (e, n, r) {
611 | var i = !a && (r || n !== l) || ((t = n).nodeType ? c(e, n, r) : f(e, n, r));
612 | return t = null, i
613 | }]; u < o; u++) if (n = r.relative[e[u].type]) p = [me(xe(p), n)]; else {
614 | if ((n = r.filter[e[u].type].apply(null, e[u].matches))[b]) {
615 | for (i = ++u; i < o; i++) if (r.relative[e[i].type]) break;
616 | return Te(u > 1 && xe(p), u > 1 && ve(e.slice(0, u - 1).concat({value: " " === e[u - 2].type ? "*" : ""})).replace(B, "$1"), n, u < i && Ce(e.slice(u, i)), i < o && Ce(e = e.slice(i)), i < o && ve(e))
617 | }
618 | p.push(n)
619 | }
620 | return xe(p)
621 | }
622 |
623 | function Ee(e, t) {
624 | var n = t.length > 0, i = e.length > 0, o = function (o, a, s, u, c) {
625 | var f, h, y, v = 0, m = "0", x = o && [], b = [], w = l, C = o || i && r.find.TAG("*", c),
626 | E = T += null == w ? 1 : Math.random() || .1, k = C.length;
627 | for (c && (l = a === d || a || c); m !== k && null != (f = C[m]); m++) {
628 | if (i && f) {
629 | h = 0, a || f.ownerDocument === d || (p(f), s = !g);
630 | while (y = e[h++]) if (y(f, a || d, s)) {
631 | u.push(f);
632 | break
633 | }
634 | c && (T = E)
635 | }
636 | n && ((f = !y && f) && v--, o && x.push(f))
637 | }
638 | if (v += m, n && m !== v) {
639 | h = 0;
640 | while (y = t[h++]) y(x, b, a, s);
641 | if (o) {
642 | if (v > 0) while (m--) x[m] || b[m] || (b[m] = j.call(u));
643 | b = we(b)
644 | }
645 | L.apply(u, b), c && !o && b.length > 0 && v + t.length > 1 && oe.uniqueSort(u)
646 | }
647 | return c && (T = E, l = w), x
648 | };
649 | return n ? se(o) : o
650 | }
651 |
652 | return s = oe.compile = function (e, t) {
653 | var n, r = [], i = [], o = S[e + " "];
654 | if (!o) {
655 | t || (t = a(e)), n = t.length;
656 | while (n--) (o = Ce(t[n]))[b] ? r.push(o) : i.push(o);
657 | (o = S(e, Ee(i, r))).selector = e
658 | }
659 | return o
660 | }, u = oe.select = function (e, t, n, i) {
661 | var o, u, l, c, f, p = "function" == typeof e && e, d = !i && a(e = p.selector || e);
662 | if (n = n || [], 1 === d.length) {
663 | if ((u = d[0] = d[0].slice(0)).length > 2 && "ID" === (l = u[0]).type && 9 === t.nodeType && g && r.relative[u[1].type]) {
664 | if (!(t = (r.find.ID(l.matches[0].replace(Z, ee), t) || [])[0])) return n;
665 | p && (t = t.parentNode), e = e.slice(u.shift().value.length)
666 | }
667 | o = V.needsContext.test(e) ? 0 : u.length;
668 | while (o--) {
669 | if (l = u[o], r.relative[c = l.type]) break;
670 | if ((f = r.find[c]) && (i = f(l.matches[0].replace(Z, ee), K.test(u[0].type) && ge(t.parentNode) || t))) {
671 | if (u.splice(o, 1), !(e = i.length && ve(u))) return L.apply(n, i), n;
672 | break
673 | }
674 | }
675 | }
676 | return (p || s(e, d))(i, t, !g, n, !t || K.test(e) && ge(t.parentNode) || t), n
677 | }, n.sortStable = b.split("").sort(D).join("") === b, n.detectDuplicates = !!f, p(), n.sortDetached = ue(function (e) {
678 | return 1 & e.compareDocumentPosition(d.createElement("fieldset"))
679 | }), ue(function (e) {
680 | return e.innerHTML = " ", "#" === e.firstChild.getAttribute("href")
681 | }) || le("type|href|height|width", function (e, t, n) {
682 | if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2)
683 | }), n.attributes && ue(function (e) {
684 | return e.innerHTML = " ", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value")
685 | }) || le("value", function (e, t, n) {
686 | if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue
687 | }), ue(function (e) {
688 | return null == e.getAttribute("disabled")
689 | }) || le(P, function (e, t, n) {
690 | var r;
691 | if (!n) return !0 === e[t] ? t.toLowerCase() : (r = e.getAttributeNode(t)) && r.specified ? r.value : null
692 | }), oe
693 | }(e);
694 | w.find = E, w.expr = E.selectors, w.expr[":"] = w.expr.pseudos, w.uniqueSort = w.unique = E.uniqueSort, w.text = E.getText, w.isXMLDoc = E.isXML, w.contains = E.contains, w.escapeSelector = E.escape;
695 | var k = function (e, t, n) {
696 | var r = [], i = void 0 !== n;
697 | while ((e = e[t]) && 9 !== e.nodeType) if (1 === e.nodeType) {
698 | if (i && w(e).is(n)) break;
699 | r.push(e)
700 | }
701 | return r
702 | }, S = function (e, t) {
703 | for (var n = []; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e);
704 | return n
705 | }, D = w.expr.match.needsContext;
706 |
707 | function N(e, t) {
708 | return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()
709 | }
710 |
711 | var A = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
712 |
713 | function j(e, t, n) {
714 | return g(t) ? w.grep(e, function (e, r) {
715 | return !!t.call(e, r, e) !== n
716 | }) : t.nodeType ? w.grep(e, function (e) {
717 | return e === t !== n
718 | }) : "string" != typeof t ? w.grep(e, function (e) {
719 | return u.call(t, e) > -1 !== n
720 | }) : w.filter(t, e, n)
721 | }
722 |
723 | w.filter = function (e, t, n) {
724 | var r = t[0];
725 | return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? w.find.matchesSelector(r, e) ? [r] : [] : w.find.matches(e, w.grep(t, function (e) {
726 | return 1 === e.nodeType
727 | }))
728 | }, w.fn.extend({
729 | find: function (e) {
730 | var t, n, r = this.length, i = this;
731 | if ("string" != typeof e) return this.pushStack(w(e).filter(function () {
732 | for (t = 0; t < r; t++) if (w.contains(i[t], this)) return !0
733 | }));
734 | for (n = this.pushStack([]), t = 0; t < r; t++) w.find(e, i[t], n);
735 | return r > 1 ? w.uniqueSort(n) : n
736 | }, filter: function (e) {
737 | return this.pushStack(j(this, e || [], !1))
738 | }, not: function (e) {
739 | return this.pushStack(j(this, e || [], !0))
740 | }, is: function (e) {
741 | return !!j(this, "string" == typeof e && D.test(e) ? w(e) : e || [], !1).length
742 | }
743 | });
744 | var q, L = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
745 | (w.fn.init = function (e, t, n) {
746 | var i, o;
747 | if (!e) return this;
748 | if (n = n || q, "string" == typeof e) {
749 | if (!(i = "<" === e[0] && ">" === e[e.length - 1] && e.length >= 3 ? [null, e, null] : L.exec(e)) || !i[1] && t) return !t || t.jquery ? (t || n).find(e) : this.constructor(t).find(e);
750 | if (i[1]) {
751 | if (t = t instanceof w ? t[0] : t, w.merge(this, w.parseHTML(i[1], t && t.nodeType ? t.ownerDocument || t : r, !0)), A.test(i[1]) && w.isPlainObject(t)) for (i in t) g(this[i]) ? this[i](t[i]) : this.attr(i, t[i]);
752 | return this
753 | }
754 | return (o = r.getElementById(i[2])) && (this[0] = o, this.length = 1), this
755 | }
756 | return e.nodeType ? (this[0] = e, this.length = 1, this) : g(e) ? void 0 !== n.ready ? n.ready(e) : e(w) : w.makeArray(e, this)
757 | }).prototype = w.fn, q = w(r);
758 | var H = /^(?:parents|prev(?:Until|All))/, O = {children: !0, contents: !0, next: !0, prev: !0};
759 | w.fn.extend({
760 | has: function (e) {
761 | var t = w(e, this), n = t.length;
762 | return this.filter(function () {
763 | for (var e = 0; e < n; e++) if (w.contains(this, t[e])) return !0
764 | })
765 | }, closest: function (e, t) {
766 | var n, r = 0, i = this.length, o = [], a = "string" != typeof e && w(e);
767 | if (!D.test(e)) for (; r < i; r++) for (n = this[r]; n && n !== t; n = n.parentNode) if (n.nodeType < 11 && (a ? a.index(n) > -1 : 1 === n.nodeType && w.find.matchesSelector(n, e))) {
768 | o.push(n);
769 | break
770 | }
771 | return this.pushStack(o.length > 1 ? w.uniqueSort(o) : o)
772 | }, index: function (e) {
773 | return e ? "string" == typeof e ? u.call(w(e), this[0]) : u.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
774 | }, add: function (e, t) {
775 | return this.pushStack(w.uniqueSort(w.merge(this.get(), w(e, t))))
776 | }, addBack: function (e) {
777 | return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
778 | }
779 | });
780 |
781 | function P(e, t) {
782 | while ((e = e[t]) && 1 !== e.nodeType) ;
783 | return e
784 | }
785 |
786 | w.each({
787 | parent: function (e) {
788 | var t = e.parentNode;
789 | return t && 11 !== t.nodeType ? t : null
790 | }, parents: function (e) {
791 | return k(e, "parentNode")
792 | }, parentsUntil: function (e, t, n) {
793 | return k(e, "parentNode", n)
794 | }, next: function (e) {
795 | return P(e, "nextSibling")
796 | }, prev: function (e) {
797 | return P(e, "previousSibling")
798 | }, nextAll: function (e) {
799 | return k(e, "nextSibling")
800 | }, prevAll: function (e) {
801 | return k(e, "previousSibling")
802 | }, nextUntil: function (e, t, n) {
803 | return k(e, "nextSibling", n)
804 | }, prevUntil: function (e, t, n) {
805 | return k(e, "previousSibling", n)
806 | }, siblings: function (e) {
807 | return S((e.parentNode || {}).firstChild, e)
808 | }, children: function (e) {
809 | return S(e.firstChild)
810 | }, contents: function (e) {
811 | return N(e, "iframe") ? e.contentDocument : (N(e, "template") && (e = e.content || e), w.merge([], e.childNodes))
812 | }
813 | }, function (e, t) {
814 | w.fn[e] = function (n, r) {
815 | var i = w.map(this, t, n);
816 | return "Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = w.filter(r, i)), this.length > 1 && (O[e] || w.uniqueSort(i), H.test(e) && i.reverse()), this.pushStack(i)
817 | }
818 | });
819 | var M = /[^\x20\t\r\n\f]+/g;
820 |
821 | function R(e) {
822 | var t = {};
823 | return w.each(e.match(M) || [], function (e, n) {
824 | t[n] = !0
825 | }), t
826 | }
827 |
828 | w.Callbacks = function (e) {
829 | e = "string" == typeof e ? R(e) : w.extend({}, e);
830 | var t, n, r, i, o = [], a = [], s = -1, u = function () {
831 | for (i = i || e.once, r = t = !0; a.length; s = -1) {
832 | n = a.shift();
833 | while (++s < o.length) !1 === o[s].apply(n[0], n[1]) && e.stopOnFalse && (s = o.length, n = !1)
834 | }
835 | e.memory || (n = !1), t = !1, i && (o = n ? [] : "")
836 | }, l = {
837 | add: function () {
838 | return o && (n && !t && (s = o.length - 1, a.push(n)), function t(n) {
839 | w.each(n, function (n, r) {
840 | g(r) ? e.unique && l.has(r) || o.push(r) : r && r.length && "string" !== x(r) && t(r)
841 | })
842 | }(arguments), n && !t && u()), this
843 | }, remove: function () {
844 | return w.each(arguments, function (e, t) {
845 | var n;
846 | while ((n = w.inArray(t, o, n)) > -1) o.splice(n, 1), n <= s && s--
847 | }), this
848 | }, has: function (e) {
849 | return e ? w.inArray(e, o) > -1 : o.length > 0
850 | }, empty: function () {
851 | return o && (o = []), this
852 | }, disable: function () {
853 | return i = a = [], o = n = "", this
854 | }, disabled: function () {
855 | return !o
856 | }, lock: function () {
857 | return i = a = [], n || t || (o = n = ""), this
858 | }, locked: function () {
859 | return !!i
860 | }, fireWith: function (e, n) {
861 | return i || (n = [e, (n = n || []).slice ? n.slice() : n], a.push(n), t || u()), this
862 | }, fire: function () {
863 | return l.fireWith(this, arguments), this
864 | }, fired: function () {
865 | return !!r
866 | }
867 | };
868 | return l
869 | };
870 |
871 | function I(e) {
872 | return e
873 | }
874 |
875 | function W(e) {
876 | throw e
877 | }
878 |
879 | function $(e, t, n, r) {
880 | var i;
881 | try {
882 | e && g(i = e.promise) ? i.call(e).done(t).fail(n) : e && g(i = e.then) ? i.call(e, t, n) : t.apply(void 0, [e].slice(r))
883 | } catch (e) {
884 | n.apply(void 0, [e])
885 | }
886 | }
887 |
888 | w.extend({
889 | Deferred: function (t) {
890 | var n = [["notify", "progress", w.Callbacks("memory"), w.Callbacks("memory"), 2], ["resolve", "done", w.Callbacks("once memory"), w.Callbacks("once memory"), 0, "resolved"], ["reject", "fail", w.Callbacks("once memory"), w.Callbacks("once memory"), 1, "rejected"]],
891 | r = "pending", i = {
892 | state: function () {
893 | return r
894 | }, always: function () {
895 | return o.done(arguments).fail(arguments), this
896 | }, "catch": function (e) {
897 | return i.then(null, e)
898 | }, pipe: function () {
899 | var e = arguments;
900 | return w.Deferred(function (t) {
901 | w.each(n, function (n, r) {
902 | var i = g(e[r[4]]) && e[r[4]];
903 | o[r[1]](function () {
904 | var e = i && i.apply(this, arguments);
905 | e && g(e.promise) ? e.promise().progress(t.notify).done(t.resolve).fail(t.reject) : t[r[0] + "With"](this, i ? [e] : arguments)
906 | })
907 | }), e = null
908 | }).promise()
909 | }, then: function (t, r, i) {
910 | var o = 0;
911 |
912 | function a(t, n, r, i) {
913 | return function () {
914 | var s = this, u = arguments, l = function () {
915 | var e, l;
916 | if (!(t < o)) {
917 | if ((e = r.apply(s, u)) === n.promise()) throw new TypeError("Thenable self-resolution");
918 | l = e && ("object" == typeof e || "function" == typeof e) && e.then, g(l) ? i ? l.call(e, a(o, n, I, i), a(o, n, W, i)) : (o++, l.call(e, a(o, n, I, i), a(o, n, W, i), a(o, n, I, n.notifyWith))) : (r !== I && (s = void 0, u = [e]), (i || n.resolveWith)(s, u))
919 | }
920 | }, c = i ? l : function () {
921 | try {
922 | l()
923 | } catch (e) {
924 | w.Deferred.exceptionHook && w.Deferred.exceptionHook(e, c.stackTrace), t + 1 >= o && (r !== W && (s = void 0, u = [e]), n.rejectWith(s, u))
925 | }
926 | };
927 | t ? c() : (w.Deferred.getStackHook && (c.stackTrace = w.Deferred.getStackHook()), e.setTimeout(c))
928 | }
929 | }
930 |
931 | return w.Deferred(function (e) {
932 | n[0][3].add(a(0, e, g(i) ? i : I, e.notifyWith)), n[1][3].add(a(0, e, g(t) ? t : I)), n[2][3].add(a(0, e, g(r) ? r : W))
933 | }).promise()
934 | }, promise: function (e) {
935 | return null != e ? w.extend(e, i) : i
936 | }
937 | }, o = {};
938 | return w.each(n, function (e, t) {
939 | var a = t[2], s = t[5];
940 | i[t[1]] = a.add, s && a.add(function () {
941 | r = s
942 | }, n[3 - e][2].disable, n[3 - e][3].disable, n[0][2].lock, n[0][3].lock), a.add(t[3].fire), o[t[0]] = function () {
943 | return o[t[0] + "With"](this === o ? void 0 : this, arguments), this
944 | }, o[t[0] + "With"] = a.fireWith
945 | }), i.promise(o), t && t.call(o, o), o
946 | }, when: function (e) {
947 | var t = arguments.length, n = t, r = Array(n), i = o.call(arguments), a = w.Deferred(), s = function (e) {
948 | return function (n) {
949 | r[e] = this, i[e] = arguments.length > 1 ? o.call(arguments) : n, --t || a.resolveWith(r, i)
950 | }
951 | };
952 | if (t <= 1 && ($(e, a.done(s(n)).resolve, a.reject, !t), "pending" === a.state() || g(i[n] && i[n].then))) return a.then();
953 | while (n--) $(i[n], s(n), a.reject);
954 | return a.promise()
955 | }
956 | });
957 | var B = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
958 | w.Deferred.exceptionHook = function (t, n) {
959 | e.console && e.console.warn && t && B.test(t.name) && e.console.warn("jQuery.Deferred exception: " + t.message, t.stack, n)
960 | }, w.readyException = function (t) {
961 | e.setTimeout(function () {
962 | throw t
963 | })
964 | };
965 | var F = w.Deferred();
966 | w.fn.ready = function (e) {
967 | return F.then(e)["catch"](function (e) {
968 | w.readyException(e)
969 | }), this
970 | }, w.extend({
971 | isReady: !1, readyWait: 1, ready: function (e) {
972 | (!0 === e ? --w.readyWait : w.isReady) || (w.isReady = !0, !0 !== e && --w.readyWait > 0 || F.resolveWith(r, [w]))
973 | }
974 | }), w.ready.then = F.then;
975 |
976 | function _() {
977 | r.removeEventListener("DOMContentLoaded", _), e.removeEventListener("load", _), w.ready()
978 | }
979 |
980 | "complete" === r.readyState || "loading" !== r.readyState && !r.documentElement.doScroll ? e.setTimeout(w.ready) : (r.addEventListener("DOMContentLoaded", _), e.addEventListener("load", _));
981 | var z = function (e, t, n, r, i, o, a) {
982 | var s = 0, u = e.length, l = null == n;
983 | if ("object" === x(n)) {
984 | i = !0;
985 | for (s in n) z(e, t, s, n[s], !0, o, a)
986 | } else if (void 0 !== r && (i = !0, g(r) || (a = !0), l && (a ? (t.call(e, r), t = null) : (l = t, t = function (e, t, n) {
987 | return l.call(w(e), n)
988 | })), t)) for (; s < u; s++) t(e[s], n, a ? r : r.call(e[s], s, t(e[s], n)));
989 | return i ? e : l ? t.call(e) : u ? t(e[0], n) : o
990 | }, X = /^-ms-/, U = /-([a-z])/g;
991 |
992 | function V(e, t) {
993 | return t.toUpperCase()
994 | }
995 |
996 | function G(e) {
997 | return e.replace(X, "ms-").replace(U, V)
998 | }
999 |
1000 | var Y = function (e) {
1001 | return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType
1002 | };
1003 |
1004 | function Q() {
1005 | this.expando = w.expando + Q.uid++
1006 | }
1007 |
1008 | Q.uid = 1, Q.prototype = {
1009 | cache: function (e) {
1010 | var t = e[this.expando];
1011 | return t || (t = {}, Y(e) && (e.nodeType ? e[this.expando] = t : Object.defineProperty(e, this.expando, {
1012 | value: t,
1013 | configurable: !0
1014 | }))), t
1015 | }, set: function (e, t, n) {
1016 | var r, i = this.cache(e);
1017 | if ("string" == typeof t) i[G(t)] = n; else for (r in t) i[G(r)] = t[r];
1018 | return i
1019 | }, get: function (e, t) {
1020 | return void 0 === t ? this.cache(e) : e[this.expando] && e[this.expando][G(t)]
1021 | }, access: function (e, t, n) {
1022 | return void 0 === t || t && "string" == typeof t && void 0 === n ? this.get(e, t) : (this.set(e, t, n), void 0 !== n ? n : t)
1023 | }, remove: function (e, t) {
1024 | var n, r = e[this.expando];
1025 | if (void 0 !== r) {
1026 | if (void 0 !== t) {
1027 | n = (t = Array.isArray(t) ? t.map(G) : (t = G(t)) in r ? [t] : t.match(M) || []).length;
1028 | while (n--) delete r[t[n]]
1029 | }
1030 | (void 0 === t || w.isEmptyObject(r)) && (e.nodeType ? e[this.expando] = void 0 : delete e[this.expando])
1031 | }
1032 | }, hasData: function (e) {
1033 | var t = e[this.expando];
1034 | return void 0 !== t && !w.isEmptyObject(t)
1035 | }
1036 | };
1037 | var J = new Q, K = new Q, Z = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, ee = /[A-Z]/g;
1038 |
1039 | function te(e) {
1040 | return "true" === e || "false" !== e && ("null" === e ? null : e === +e + "" ? +e : Z.test(e) ? JSON.parse(e) : e)
1041 | }
1042 |
1043 | function ne(e, t, n) {
1044 | var r;
1045 | if (void 0 === n && 1 === e.nodeType) if (r = "data-" + t.replace(ee, "-$&").toLowerCase(), "string" == typeof(n = e.getAttribute(r))) {
1046 | try {
1047 | n = te(n)
1048 | } catch (e) {
1049 | }
1050 | K.set(e, t, n)
1051 | } else n = void 0;
1052 | return n
1053 | }
1054 |
1055 | w.extend({
1056 | hasData: function (e) {
1057 | return K.hasData(e) || J.hasData(e)
1058 | }, data: function (e, t, n) {
1059 | return K.access(e, t, n)
1060 | }, removeData: function (e, t) {
1061 | K.remove(e, t)
1062 | }, _data: function (e, t, n) {
1063 | return J.access(e, t, n)
1064 | }, _removeData: function (e, t) {
1065 | J.remove(e, t)
1066 | }
1067 | }), w.fn.extend({
1068 | data: function (e, t) {
1069 | var n, r, i, o = this[0], a = o && o.attributes;
1070 | if (void 0 === e) {
1071 | if (this.length && (i = K.get(o), 1 === o.nodeType && !J.get(o, "hasDataAttrs"))) {
1072 | n = a.length;
1073 | while (n--) a[n] && 0 === (r = a[n].name).indexOf("data-") && (r = G(r.slice(5)), ne(o, r, i[r]));
1074 | J.set(o, "hasDataAttrs", !0)
1075 | }
1076 | return i
1077 | }
1078 | return "object" == typeof e ? this.each(function () {
1079 | K.set(this, e)
1080 | }) : z(this, function (t) {
1081 | var n;
1082 | if (o && void 0 === t) {
1083 | if (void 0 !== (n = K.get(o, e))) return n;
1084 | if (void 0 !== (n = ne(o, e))) return n
1085 | } else this.each(function () {
1086 | K.set(this, e, t)
1087 | })
1088 | }, null, t, arguments.length > 1, null, !0)
1089 | }, removeData: function (e) {
1090 | return this.each(function () {
1091 | K.remove(this, e)
1092 | })
1093 | }
1094 | }), w.extend({
1095 | queue: function (e, t, n) {
1096 | var r;
1097 | if (e) return t = (t || "fx") + "queue", r = J.get(e, t), n && (!r || Array.isArray(n) ? r = J.access(e, t, w.makeArray(n)) : r.push(n)), r || []
1098 | }, dequeue: function (e, t) {
1099 | t = t || "fx";
1100 | var n = w.queue(e, t), r = n.length, i = n.shift(), o = w._queueHooks(e, t), a = function () {
1101 | w.dequeue(e, t)
1102 | };
1103 | "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, a, o)), !r && o && o.empty.fire()
1104 | }, _queueHooks: function (e, t) {
1105 | var n = t + "queueHooks";
1106 | return J.get(e, n) || J.access(e, n, {
1107 | empty: w.Callbacks("once memory").add(function () {
1108 | J.remove(e, [t + "queue", n])
1109 | })
1110 | })
1111 | }
1112 | }), w.fn.extend({
1113 | queue: function (e, t) {
1114 | var n = 2;
1115 | return "string" != typeof e && (t = e, e = "fx", n--), arguments.length < n ? w.queue(this[0], e) : void 0 === t ? this : this.each(function () {
1116 | var n = w.queue(this, e, t);
1117 | w._queueHooks(this, e), "fx" === e && "inprogress" !== n[0] && w.dequeue(this, e)
1118 | })
1119 | }, dequeue: function (e) {
1120 | return this.each(function () {
1121 | w.dequeue(this, e)
1122 | })
1123 | }, clearQueue: function (e) {
1124 | return this.queue(e || "fx", [])
1125 | }, promise: function (e, t) {
1126 | var n, r = 1, i = w.Deferred(), o = this, a = this.length, s = function () {
1127 | --r || i.resolveWith(o, [o])
1128 | };
1129 | "string" != typeof e && (t = e, e = void 0), e = e || "fx";
1130 | while (a--) (n = J.get(o[a], e + "queueHooks")) && n.empty && (r++, n.empty.add(s));
1131 | return s(), i.promise(t)
1132 | }
1133 | });
1134 | var re = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, ie = new RegExp("^(?:([+-])=|)(" + re + ")([a-z%]*)$", "i"),
1135 | oe = ["Top", "Right", "Bottom", "Left"], ae = function (e, t) {
1136 | return "none" === (e = t || e).style.display || "" === e.style.display && w.contains(e.ownerDocument, e) && "none" === w.css(e, "display")
1137 | }, se = function (e, t, n, r) {
1138 | var i, o, a = {};
1139 | for (o in t) a[o] = e.style[o], e.style[o] = t[o];
1140 | i = n.apply(e, r || []);
1141 | for (o in t) e.style[o] = a[o];
1142 | return i
1143 | };
1144 |
1145 | function ue(e, t, n, r) {
1146 | var i, o, a = 20, s = r ? function () {
1147 | return r.cur()
1148 | } : function () {
1149 | return w.css(e, t, "")
1150 | }, u = s(), l = n && n[3] || (w.cssNumber[t] ? "" : "px"),
1151 | c = (w.cssNumber[t] || "px" !== l && +u) && ie.exec(w.css(e, t));
1152 | if (c && c[3] !== l) {
1153 | u /= 2, l = l || c[3], c = +u || 1;
1154 | while (a--) w.style(e, t, c + l), (1 - o) * (1 - (o = s() / u || .5)) <= 0 && (a = 0), c /= o;
1155 | c *= 2, w.style(e, t, c + l), n = n || []
1156 | }
1157 | return n && (c = +c || +u || 0, i = n[1] ? c + (n[1] + 1) * n[2] : +n[2], r && (r.unit = l, r.start = c, r.end = i)), i
1158 | }
1159 |
1160 | var le = {};
1161 |
1162 | function ce(e) {
1163 | var t, n = e.ownerDocument, r = e.nodeName, i = le[r];
1164 | return i || (t = n.body.appendChild(n.createElement(r)), i = w.css(t, "display"), t.parentNode.removeChild(t), "none" === i && (i = "block"), le[r] = i, i)
1165 | }
1166 |
1167 | function fe(e, t) {
1168 | for (var n, r, i = [], o = 0, a = e.length; o < a; o++) (r = e[o]).style && (n = r.style.display, t ? ("none" === n && (i[o] = J.get(r, "display") || null, i[o] || (r.style.display = "")), "" === r.style.display && ae(r) && (i[o] = ce(r))) : "none" !== n && (i[o] = "none", J.set(r, "display", n)));
1169 | for (o = 0; o < a; o++) null != i[o] && (e[o].style.display = i[o]);
1170 | return e
1171 | }
1172 |
1173 | w.fn.extend({
1174 | show: function () {
1175 | return fe(this, !0)
1176 | }, hide: function () {
1177 | return fe(this)
1178 | }, toggle: function (e) {
1179 | return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function () {
1180 | ae(this) ? w(this).show() : w(this).hide()
1181 | })
1182 | }
1183 | });
1184 | var pe = /^(?:checkbox|radio)$/i, de = /<([a-z][^\/\0>\x20\t\r\n\f]+)/i, he = /^$|^module$|\/(?:java|ecma)script/i,
1185 | ge = {
1186 | option: [1, "", " "],
1187 | thead: [1, "
"],
1188 | col: [2, ""],
1189 | tr: [2, ""],
1190 | td: [3, ""],
1191 | _default: [0, "", ""]
1192 | };
1193 | ge.optgroup = ge.option, ge.tbody = ge.tfoot = ge.colgroup = ge.caption = ge.thead, ge.th = ge.td;
1194 |
1195 | function ye(e, t) {
1196 | var n;
1197 | return n = "undefined" != typeof e.getElementsByTagName ? e.getElementsByTagName(t || "*") : "undefined" != typeof e.querySelectorAll ? e.querySelectorAll(t || "*") : [], void 0 === t || t && N(e, t) ? w.merge([e], n) : n
1198 | }
1199 |
1200 | function ve(e, t) {
1201 | for (var n = 0, r = e.length; n < r; n++) J.set(e[n], "globalEval", !t || J.get(t[n], "globalEval"))
1202 | }
1203 |
1204 | var me = /<|?\w+;/;
1205 |
1206 | function xe(e, t, n, r, i) {
1207 | for (var o, a, s, u, l, c, f = t.createDocumentFragment(), p = [], d = 0, h = e.length; d < h; d++) if ((o = e[d]) || 0 === o) if ("object" === x(o)) w.merge(p, o.nodeType ? [o] : o); else if (me.test(o)) {
1208 | a = a || f.appendChild(t.createElement("div")), s = (de.exec(o) || ["", ""])[1].toLowerCase(), u = ge[s] || ge._default, a.innerHTML = u[1] + w.htmlPrefilter(o) + u[2], c = u[0];
1209 | while (c--) a = a.lastChild;
1210 | w.merge(p, a.childNodes), (a = f.firstChild).textContent = ""
1211 | } else p.push(t.createTextNode(o));
1212 | f.textContent = "", d = 0;
1213 | while (o = p[d++]) if (r && w.inArray(o, r) > -1) i && i.push(o); else if (l = w.contains(o.ownerDocument, o), a = ye(f.appendChild(o), "script"), l && ve(a), n) {
1214 | c = 0;
1215 | while (o = a[c++]) he.test(o.type || "") && n.push(o)
1216 | }
1217 | return f
1218 | }
1219 |
1220 | !function () {
1221 | var e = r.createDocumentFragment().appendChild(r.createElement("div")), t = r.createElement("input");
1222 | t.setAttribute("type", "radio"), t.setAttribute("checked", "checked"), t.setAttribute("name", "t"), e.appendChild(t), h.checkClone = e.cloneNode(!0).cloneNode(!0).lastChild.checked, e.innerHTML = "", h.noCloneChecked = !!e.cloneNode(!0).lastChild.defaultValue
1223 | }();
1224 | var be = r.documentElement, we = /^key/, Te = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
1225 | Ce = /^([^.]*)(?:\.(.+)|)/;
1226 |
1227 | function Ee() {
1228 | return !0
1229 | }
1230 |
1231 | function ke() {
1232 | return !1
1233 | }
1234 |
1235 | function Se() {
1236 | try {
1237 | return r.activeElement
1238 | } catch (e) {
1239 | }
1240 | }
1241 |
1242 | function De(e, t, n, r, i, o) {
1243 | var a, s;
1244 | if ("object" == typeof t) {
1245 | "string" != typeof n && (r = r || n, n = void 0);
1246 | for (s in t) De(e, s, n, r, t[s], o);
1247 | return e
1248 | }
1249 | if (null == r && null == i ? (i = n, r = n = void 0) : null == i && ("string" == typeof n ? (i = r, r = void 0) : (i = r, r = n, n = void 0)), !1 === i) i = ke; else if (!i) return e;
1250 | return 1 === o && (a = i, (i = function (e) {
1251 | return w().off(e), a.apply(this, arguments)
1252 | }).guid = a.guid || (a.guid = w.guid++)), e.each(function () {
1253 | w.event.add(this, t, i, r, n)
1254 | })
1255 | }
1256 |
1257 | w.event = {
1258 | global: {}, add: function (e, t, n, r, i) {
1259 | var o, a, s, u, l, c, f, p, d, h, g, y = J.get(e);
1260 | if (y) {
1261 | n.handler && (n = (o = n).handler, i = o.selector), i && w.find.matchesSelector(be, i), n.guid || (n.guid = w.guid++), (u = y.events) || (u = y.events = {}), (a = y.handle) || (a = y.handle = function (t) {
1262 | return "undefined" != typeof w && w.event.triggered !== t.type ? w.event.dispatch.apply(e, arguments) : void 0
1263 | }), l = (t = (t || "").match(M) || [""]).length;
1264 | while (l--) d = g = (s = Ce.exec(t[l]) || [])[1], h = (s[2] || "").split(".").sort(), d && (f = w.event.special[d] || {}, d = (i ? f.delegateType : f.bindType) || d, f = w.event.special[d] || {}, c = w.extend({
1265 | type: d,
1266 | origType: g,
1267 | data: r,
1268 | handler: n,
1269 | guid: n.guid,
1270 | selector: i,
1271 | needsContext: i && w.expr.match.needsContext.test(i),
1272 | namespace: h.join(".")
1273 | }, o), (p = u[d]) || ((p = u[d] = []).delegateCount = 0, f.setup && !1 !== f.setup.call(e, r, h, a) || e.addEventListener && e.addEventListener(d, a)), f.add && (f.add.call(e, c), c.handler.guid || (c.handler.guid = n.guid)), i ? p.splice(p.delegateCount++, 0, c) : p.push(c), w.event.global[d] = !0)
1274 | }
1275 | }, remove: function (e, t, n, r, i) {
1276 | var o, a, s, u, l, c, f, p, d, h, g, y = J.hasData(e) && J.get(e);
1277 | if (y && (u = y.events)) {
1278 | l = (t = (t || "").match(M) || [""]).length;
1279 | while (l--) if (s = Ce.exec(t[l]) || [], d = g = s[1], h = (s[2] || "").split(".").sort(), d) {
1280 | f = w.event.special[d] || {}, p = u[d = (r ? f.delegateType : f.bindType) || d] || [], s = s[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), a = o = p.length;
1281 | while (o--) c = p[o], !i && g !== c.origType || n && n.guid !== c.guid || s && !s.test(c.namespace) || r && r !== c.selector && ("**" !== r || !c.selector) || (p.splice(o, 1), c.selector && p.delegateCount--, f.remove && f.remove.call(e, c));
1282 | a && !p.length && (f.teardown && !1 !== f.teardown.call(e, h, y.handle) || w.removeEvent(e, d, y.handle), delete u[d])
1283 | } else for (d in u) w.event.remove(e, d + t[l], n, r, !0);
1284 | w.isEmptyObject(u) && J.remove(e, "handle events")
1285 | }
1286 | }, dispatch: function (e) {
1287 | var t = w.event.fix(e), n, r, i, o, a, s, u = new Array(arguments.length),
1288 | l = (J.get(this, "events") || {})[t.type] || [], c = w.event.special[t.type] || {};
1289 | for (u[0] = t, n = 1; n < arguments.length; n++) u[n] = arguments[n];
1290 | if (t.delegateTarget = this, !c.preDispatch || !1 !== c.preDispatch.call(this, t)) {
1291 | s = w.event.handlers.call(this, t, l), n = 0;
1292 | while ((o = s[n++]) && !t.isPropagationStopped()) {
1293 | t.currentTarget = o.elem, r = 0;
1294 | while ((a = o.handlers[r++]) && !t.isImmediatePropagationStopped()) t.rnamespace && !t.rnamespace.test(a.namespace) || (t.handleObj = a, t.data = a.data, void 0 !== (i = ((w.event.special[a.origType] || {}).handle || a.handler).apply(o.elem, u)) && !1 === (t.result = i) && (t.preventDefault(), t.stopPropagation()))
1295 | }
1296 | return c.postDispatch && c.postDispatch.call(this, t), t.result
1297 | }
1298 | }, handlers: function (e, t) {
1299 | var n, r, i, o, a, s = [], u = t.delegateCount, l = e.target;
1300 | if (u && l.nodeType && !("click" === e.type && e.button >= 1)) for (; l !== this; l = l.parentNode || this) if (1 === l.nodeType && ("click" !== e.type || !0 !== l.disabled)) {
1301 | for (o = [], a = {}, n = 0; n < u; n++) void 0 === a[i = (r = t[n]).selector + " "] && (a[i] = r.needsContext ? w(i, this).index(l) > -1 : w.find(i, this, null, [l]).length), a[i] && o.push(r);
1302 | o.length && s.push({elem: l, handlers: o})
1303 | }
1304 | return l = this, u < t.length && s.push({elem: l, handlers: t.slice(u)}), s
1305 | }, addProp: function (e, t) {
1306 | Object.defineProperty(w.Event.prototype, e, {
1307 | enumerable: !0, configurable: !0, get: g(t) ? function () {
1308 | if (this.originalEvent) return t(this.originalEvent)
1309 | } : function () {
1310 | if (this.originalEvent) return this.originalEvent[e]
1311 | }, set: function (t) {
1312 | Object.defineProperty(this, e, {enumerable: !0, configurable: !0, writable: !0, value: t})
1313 | }
1314 | })
1315 | }, fix: function (e) {
1316 | return e[w.expando] ? e : new w.Event(e)
1317 | }, special: {
1318 | load: {noBubble: !0}, focus: {
1319 | trigger: function () {
1320 | if (this !== Se() && this.focus) return this.focus(), !1
1321 | }, delegateType: "focusin"
1322 | }, blur: {
1323 | trigger: function () {
1324 | if (this === Se() && this.blur) return this.blur(), !1
1325 | }, delegateType: "focusout"
1326 | }, click: {
1327 | trigger: function () {
1328 | if ("checkbox" === this.type && this.click && N(this, "input")) return this.click(), !1
1329 | }, _default: function (e) {
1330 | return N(e.target, "a")
1331 | }
1332 | }, beforeunload: {
1333 | postDispatch: function (e) {
1334 | void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result)
1335 | }
1336 | }
1337 | }
1338 | }, w.removeEvent = function (e, t, n) {
1339 | e.removeEventListener && e.removeEventListener(t, n)
1340 | }, w.Event = function (e, t) {
1341 | if (!(this instanceof w.Event)) return new w.Event(e, t);
1342 | e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && !1 === e.returnValue ? Ee : ke, this.target = e.target && 3 === e.target.nodeType ? e.target.parentNode : e.target, this.currentTarget = e.currentTarget, this.relatedTarget = e.relatedTarget) : this.type = e, t && w.extend(this, t), this.timeStamp = e && e.timeStamp || Date.now(), this[w.expando] = !0
1343 | }, w.Event.prototype = {
1344 | constructor: w.Event,
1345 | isDefaultPrevented: ke,
1346 | isPropagationStopped: ke,
1347 | isImmediatePropagationStopped: ke,
1348 | isSimulated: !1,
1349 | preventDefault: function () {
1350 | var e = this.originalEvent;
1351 | this.isDefaultPrevented = Ee, e && !this.isSimulated && e.preventDefault()
1352 | },
1353 | stopPropagation: function () {
1354 | var e = this.originalEvent;
1355 | this.isPropagationStopped = Ee, e && !this.isSimulated && e.stopPropagation()
1356 | },
1357 | stopImmediatePropagation: function () {
1358 | var e = this.originalEvent;
1359 | this.isImmediatePropagationStopped = Ee, e && !this.isSimulated && e.stopImmediatePropagation(), this.stopPropagation()
1360 | }
1361 | }, w.each({
1362 | altKey: !0,
1363 | bubbles: !0,
1364 | cancelable: !0,
1365 | changedTouches: !0,
1366 | ctrlKey: !0,
1367 | detail: !0,
1368 | eventPhase: !0,
1369 | metaKey: !0,
1370 | pageX: !0,
1371 | pageY: !0,
1372 | shiftKey: !0,
1373 | view: !0,
1374 | "char": !0,
1375 | charCode: !0,
1376 | key: !0,
1377 | keyCode: !0,
1378 | button: !0,
1379 | buttons: !0,
1380 | clientX: !0,
1381 | clientY: !0,
1382 | offsetX: !0,
1383 | offsetY: !0,
1384 | pointerId: !0,
1385 | pointerType: !0,
1386 | screenX: !0,
1387 | screenY: !0,
1388 | targetTouches: !0,
1389 | toElement: !0,
1390 | touches: !0,
1391 | which: function (e) {
1392 | var t = e.button;
1393 | return null == e.which && we.test(e.type) ? null != e.charCode ? e.charCode : e.keyCode : !e.which && void 0 !== t && Te.test(e.type) ? 1 & t ? 1 : 2 & t ? 3 : 4 & t ? 2 : 0 : e.which
1394 | }
1395 | }, w.event.addProp), w.each({
1396 | mouseenter: "mouseover",
1397 | mouseleave: "mouseout",
1398 | pointerenter: "pointerover",
1399 | pointerleave: "pointerout"
1400 | }, function (e, t) {
1401 | w.event.special[e] = {
1402 | delegateType: t, bindType: t, handle: function (e) {
1403 | var n, r = this, i = e.relatedTarget, o = e.handleObj;
1404 | return i && (i === r || w.contains(r, i)) || (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n
1405 | }
1406 | }
1407 | }), w.fn.extend({
1408 | on: function (e, t, n, r) {
1409 | return De(this, e, t, n, r)
1410 | }, one: function (e, t, n, r) {
1411 | return De(this, e, t, n, r, 1)
1412 | }, off: function (e, t, n) {
1413 | var r, i;
1414 | if (e && e.preventDefault && e.handleObj) return r = e.handleObj, w(e.delegateTarget).off(r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, r.handler), this;
1415 | if ("object" == typeof e) {
1416 | for (i in e) this.off(i, t, e[i]);
1417 | return this
1418 | }
1419 | return !1 !== t && "function" != typeof t || (n = t, t = void 0), !1 === n && (n = ke), this.each(function () {
1420 | w.event.remove(this, e, n, t)
1421 | })
1422 | }
1423 | });
1424 | var Ne = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
1425 | Ae = /