-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathbubbles-app.min.js
167 lines (167 loc) · 84.9 KB
/
bubbles-app.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
(function(q,p){function u(a,b,d){if(d===p&&1===a.nodeType)if(d=a.getAttribute("data-"+b),"string"===typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:!c.isNaN(d)?parseFloat(d):ca.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=p;return d}function z(){return!1}function C(){return!0}function W(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function M(a){var b,d,e,f,g,k,l,r,s,m,n,p=[];f=[];g=c.data(this,this.nodeType?"events":"__events__");"function"===typeof g&&(g=g.events);
if(!(a.liveFired===this||!g||!g.live||a.button&&"click"===a.type)){a.namespace&&(n=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)"));a.liveFired=this;var y=g.live.slice(0);for(l=0;l<y.length;l++)g=y[l],g.origType.replace(h,"")===a.type?f.push(g.selector):y.splice(l--,1);f=c(a.target).closest(f,a.currentTarget);r=0;for(s=f.length;r<s;r++){m=f[r];for(l=0;l<y.length;l++)if(g=y[l],m.selector===g.selector&&(!n||n.test(g.namespace))){k=m.elem;e=null;if("mouseenter"===g.preType||
"mouseleave"===g.preType)a.type=g.preType,e=c(a.relatedTarget).closest(g.selector)[0];(!e||e!==k)&&p.push({elem:k,handleObj:g,level:m.level})}}r=0;for(s=p.length;r<s;r++){f=p[r];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;n=f.handleObj.origHandler.apply(f.elem,arguments);if(!1===n||a.isPropagationStopped())if(d=f.level,!1===n&&(b=!1),a.isImmediatePropagationStopped())break}return b}}function D(a,b){return(a&&"*"!==a?a+".":"")+b.replace(y,"`").replace(v,
"&")}function A(a,b,d){if(c.isFunction(b))return c.grep(a,function(a,c){return!!b.call(a,c,a)===d});if(b.nodeType)return c.grep(a,function(a){return a===b===d});if("string"===typeof b){var e=c.grep(a,function(a){return 1===a.nodeType});if(Ea.test(b))return c.filter(b,e,!d);b=c.filter(b,e)}return c.grep(a,function(a){return 0<=c.inArray(a,b)===d})}function I(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var b=c.data(a[d++]),f=c.data(this,b);if(b=b&&b.events){delete f.handle;
f.events={};for(var g in b)for(var k in b[g])c.event.add(this,g,b[g][k],b[g][k].data)}}})}function J(a,b){b.src?c.ajax({url:b.src,async:!1,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function N(a,b,d){var e="width"===b?a.offsetWidth:a.offsetHeight;if("border"===d)return e;c.each("width"===b?Fa:Ga,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);e="margin"===d?e+(parseFloat(c.css(a,"margin"+this))||0):e-(parseFloat(c.css(a,
"border"+this+"Width"))||0)});return e}function Q(a,b,d,e){c.isArray(b)&&b.length?c.each(b,function(b,g){d||Ha.test(a)?e(a,g):Q(a+"["+("object"===typeof g||c.isArray(g)?b:"")+"]",g,d,e)}):!d&&null!=b&&"object"===typeof b?c.isEmptyObject(b)?e(a,""):c.each(b,function(b,c){Q(a+"["+b+"]",c,d,e)}):e(a,b)}function x(a,b){var d={};c.each(ma.concat.apply([],ma.slice(0,b)),function(){d[this]=a});return d}function K(a){if(!ia[a]){var b=c("<"+a+">").appendTo("body"),d=b.css("display");b.remove();if("none"===
d||""===d)d="block";ia[a]=d}return ia[a]}function O(a){return c.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var m=q.document,c=function(){function a(){if(!b.isReady){try{m.documentElement.doScroll("left")}catch(c){setTimeout(a,1);return}b.ready()}}var b=function(a,c){return new b.fn.init(a,c)},c=q.jQuery,e=q.$,f,g=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,k=/\S/,l=/^\s+/,r=/\s+$/,h=/\W/,s=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,y=/^[\],:{}\s]*$/,B=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
t=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,P=/(?:^|:|,)(?:\s*\[)+/g,v=/(webkit)[ \/]([\w.]+)/,w=/(opera)(?:.*version)?[ \/]([\w.]+)/,F=/(msie) ([\w.]+)/,Ia=/(mozilla)(?:.*? rv:([\w.]+))?/,X=navigator.userAgent,na=!1,Y=[],R,Ja=Object.prototype.toString,ja=Object.prototype.hasOwnProperty,G=Array.prototype.push,x=Array.prototype.slice,u=String.prototype.trim,oa=Array.prototype.indexOf,M={};b.fn=b.prototype={init:function(a,c){var d,e,w;if(!a)return this;if(a.nodeType)return this.context=
this[0]=a,this.length=1,this;if("body"===a&&!c&&m.body)return this.context=m,this[0]=m.body,this.selector="body",this.length=1,this;if("string"===typeof a){if((d=g.exec(a))&&(d[1]||!c)){if(d[1])return w=c?c.ownerDocument||c:m,(e=n.exec(a))?b.isPlainObject(c)?(a=[m.createElement(e[1])],b.fn.attr.call(a,c,!0)):a=[w.createElement(e[1])]:(e=b.buildFragment([d[1]],[w]),a=(e.cacheable?e.fragment.cloneNode(!0):e.fragment).childNodes),b.merge(this,a);if((e=m.getElementById(d[2]))&&e.parentNode){if(e.id!==
d[2])return f.find(a);this.length=1;this[0]=e}this.context=m;this.selector=a;return this}return!c&&!h.test(a)?(this.selector=a,this.context=m,a=m.getElementsByTagName(a),b.merge(this,a)):!c||c.jquery?(c||f).find(a):b(c).find(a)}if(b.isFunction(a))return f.ready(a);a.selector!==p&&(this.selector=a.selector,this.context=a.context);return b.makeArray(a,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return x.call(this,0)},get:function(a){return null==
a?this.toArray():0>a?this.slice(a)[0]:this[a]},pushStack:function(a,c,d){var e=b();b.isArray(a)?G.apply(e,a):b.merge(e,a);e.prevObject=this;e.context=this.context;"find"===c?e.selector=this.selector+(this.selector?" ":"")+d:c&&(e.selector=this.selector+"."+c+"("+d+")");return e},each:function(a,c){return b.each(this,a,c)},ready:function(a){b.bindReady();b.isReady?a.call(m,b):Y&&Y.push(a);return this},eq:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},
last:function(){return this.eq(-1)},slice:function(){return this.pushStack(x.apply(this,arguments),"slice",x.call(arguments).join(","))},map:function(a){return this.pushStack(b.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||b(null)},push:G,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var a,c,d,e,f,w=arguments[0]||{},g=1,F=arguments.length,l=!1;"boolean"===typeof w&&(l=w,w=arguments[1]||{},g=2);"object"!==typeof w&&
!b.isFunction(w)&&(w={});F===g&&(w=this,--g);for(;g<F;g++)if(null!=(a=arguments[g]))for(c in a)d=w[c],e=a[c],w!==e&&(l&&e&&(b.isPlainObject(e)||(f=b.isArray(e)))?(f?(f=!1,d=d&&b.isArray(d)?d:[]):d=d&&b.isPlainObject(d)?d:{},w[c]=b.extend(l,d,e)):e!==p&&(w[c]=e));return w};b.extend({noConflict:function(a){q.$=e;a&&(q.jQuery=c);return b},isReady:!1,readyWait:1,ready:function(a){!0===a&&b.readyWait--;if(!b.readyWait||!0!==a&&!b.isReady){if(!m.body)return setTimeout(b.ready,1);b.isReady=!0;if(!(!0!==
a&&0<--b.readyWait)&&Y){var c=0,d=Y;for(Y=null;a=d[c++];)a.call(m,b);b.fn.trigger&&b(m).trigger("ready").unbind("ready")}}},bindReady:function(){if(!na){na=!0;if("complete"===m.readyState)return setTimeout(b.ready,1);if(m.addEventListener)m.addEventListener("DOMContentLoaded",R,!1),q.addEventListener("load",b.ready,!1);else if(m.attachEvent){m.attachEvent("onreadystatechange",R);q.attachEvent("onload",b.ready);var c=!1;try{c=null==q.frameElement}catch(d){}m.documentElement.doScroll&&c&&a()}}},isFunction:function(a){return"function"===
b.type(a)},isArray:Array.isArray||function(a){return"array"===b.type(a)},isWindow:function(a){return a&&"object"===typeof a&&"setInterval"in a},isNaN:function(a){return null==a||!s.test(a)||isNaN(a)},type:function(a){return null==a?String(a):M[Ja.call(a)]||"object"},isPlainObject:function(a){if(!a||("object"!==b.type(a)||a.nodeType||b.isWindow(a))||a.constructor&&!ja.call(a,"constructor")&&!ja.call(a.constructor.prototype,"isPrototypeOf"))return!1;for(var c in a);return c===p||ja.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;
return!0},error:function(a){throw a;},parseJSON:function(a){if("string"!==typeof a||!a)return null;a=b.trim(a);if(y.test(a.replace(B,"@").replace(t,"]").replace(P,"")))return q.JSON&&q.JSON.parse?q.JSON.parse(a):(new Function("return "+a))();b.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&k.test(a)){var c=m.getElementsByTagName("head")[0]||m.documentElement,d=m.createElement("script");d.type="text/javascript";b.support.scriptEval?d.appendChild(m.createTextNode(a)):d.text=
a;c.insertBefore(d,c.firstChild);c.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,w=0,f=a.length,g=f===p||b.isFunction(a);if(d)if(g)for(e in a){if(!1===c.apply(a[e],d))break}else for(;w<f&&!1!==c.apply(a[w++],d););else if(g)for(e in a){if(!1===c.call(a[e],e,a[e]))break}else for(d=a[0];w<f&&!1!==c.call(d,w,d);d=a[++w]);return a},trim:u?function(a){return null==a?"":u.call(a)}:function(a){return null==a?"":a.toString().replace(l,
"").replace(r,"")},makeArray:function(a,c){var d=c||[];if(null!=a){var e=b.type(a);null==a.length||"string"===e||"function"===e||"regexp"===e||b.isWindow(a)?G.call(d,a):b.merge(d,a)}return d},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,b){var c=a.length,d=0;if("number"===typeof b.length)for(var e=b.length;d<e;d++)a[c++]=b[d];else for(;b[d]!==p;)a[c++]=b[d++];a.length=c;return a},grep:function(a,b,c){var d=[],
e;c=!!c;for(var w=0,f=a.length;w<f;w++)e=!!b(a[w],w),c!==e&&d.push(a[w]);return d},map:function(a,b,c){for(var d=[],e,w=0,f=a.length;w<f;w++)e=b(a[w],w,c),null!=e&&(d[d.length]=e);return d.concat.apply([],d)},guid:1,proxy:function(a,c,d){2===arguments.length&&("string"===typeof c?(d=a,a=d[c],c=p):c&&!b.isFunction(c)&&(d=c,c=p));!c&&a&&(c=function(){return a.apply(d||this,arguments)});a&&(c.guid=a.guid=a.guid||c.guid||b.guid++);return c},access:function(a,c,d,e,w,f){var g=a.length;if("object"===typeof c){for(var F in c)b.access(a,
F,c[F],e,w,d);return a}if(d!==p){e=!f&&e&&b.isFunction(d);for(F=0;F<g;F++)w(a[F],c,e?d.call(a[F],F,w(a[F],c)):d,f);return a}return g?w(a[0],c):p},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();a=v.exec(a)||w.exec(a)||F.exec(a)||0>a.indexOf("compatible")&&Ia.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){M["[object "+b+"]"]=b.toLowerCase()});X=b.uaMatch(X);
X.browser&&(b.browser[X.browser]=!0,b.browser.version=X.version);b.browser.webkit&&(b.browser.safari=!0);oa&&(b.inArray=function(a,b){return oa.call(b,a)});/\s/.test("\u00a0")||(l=/^[\s\xA0]+/,r=/[\s\xA0]+$/);f=b(m);m.addEventListener?R=function(){m.removeEventListener("DOMContentLoaded",R,!1);b.ready()}:m.attachEvent&&(R=function(){"complete"===m.readyState&&(m.detachEvent("onreadystatechange",R),b.ready())});return q.jQuery=q.$=b}();(function(){c.support={};var a=m.documentElement,b=m.createElement("script"),
d=m.createElement("div"),e="script"+c.now();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),g=d.getElementsByTagName("a")[0],k=m.createElement("select"),l=k.appendChild(m.createElement("option"));if(f&&f.length&&g){c.support={leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,
style:/red/.test(g.getAttribute("style")),hrefNormalized:"/a"===g.getAttribute("href"),opacity:/^0.55$/.test(g.style.opacity),cssFloat:!!g.style.cssFloat,checkOn:"on"===d.getElementsByTagName("input")[0].value,optSelected:l.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,scriptEval:!1,noCloneEvent:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0};k.disabled=!0;c.support.optDisabled=!l.disabled;b.type="text/javascript";try{b.appendChild(m.createTextNode("window."+
e+"=1;"))}catch(r){}a.insertBefore(b,a.firstChild);q[e]&&(c.support.scriptEval=!0,delete q[e]);try{delete b.test}catch(h){c.support.deleteExpando=!1}a.removeChild(b);d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",function Da(){c.support.noCloneEvent=!1;d.detachEvent("onclick",Da)}),d.cloneNode(!0).fireEvent("onclick"));d=m.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=m.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=
a.cloneNode(!0).cloneNode(!0).lastChild.checked;c(function(){var a=m.createElement("div");a.style.width=a.style.paddingLeft="1px";m.body.appendChild(a);c.boxModel=c.support.boxModel=2===a.offsetWidth;"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,c.support.inlineBlockNeedsLayout=2===a.offsetWidth,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",c.support.shrinkWrapBlocks=2!==a.offsetWidth);a.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";
var b=a.getElementsByTagName("td");c.support.reliableHiddenOffsets=0===b[0].offsetHeight;b[0].style.display="";b[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&0===b[0].offsetHeight;a.innerHTML="";m.body.removeChild(a).style.display="none"});a=function(a){var b=m.createElement("div");a="on"+a;var c=a in b;c||(b.setAttribute(a,"return;"),c="function"===typeof b[a]);return c};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=g=
null}})();var S={},ca=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},data:function(a,b,d){if(c.acceptData(a)){a=a==q?S:a;var e=a.nodeType,f=e?a[c.expando]:null,g=c.cache;if(!e||f||!("string"===typeof b&&d===p))return e?f||(a[c.expando]=f=++c.uuid):g=a,"object"===typeof b?e?g[f]=c.extend(g[f],b):c.extend(g,b):e&&!g[f]&&(g[f]={}),a=e?g[f]:g,d!==p&&(a[b]=d),"string"===typeof b?a[b]:a}},removeData:function(a,
b){if(c.acceptData(a)){a=a==q?S:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,g=d?f[e]:e;if(b)g&&(delete g[b],d&&c.isEmptyObject(g)&&c.removeData(a));else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);else if(d)delete f[e];else for(var k in a)delete a[k]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(!0===b||a.getAttribute("classid")!==b)}return!0}});c.fn.extend({data:function(a,b){var d=null;
if("undefined"===typeof a){if(this.length)for(var e=this[0].attributes,f,d=c.data(this[0]),g=0,k=e.length;g<k;g++)f=e[g].name,0===f.indexOf("data-")&&(f=f.substr(5),u(this[0],f,d[f]));return d}if("object"===typeof a)return this.each(function(){c.data(this,a)});var l=a.split(".");l[1]=l[1]?"."+l[1]:"";return b===p?(d=this.triggerHandler("getData"+l[1]+"!",[l[0]]),d===p&&this.length&&(d=c.data(this[0],a),d=u(this[0],a,d)),d===p&&l[1]?this.data(l[0]):d):this.each(function(){var d=c(this),e=[l[0],b];
d.triggerHandler("setData"+l[1]+"!",e);c.data(this,a,b);d.triggerHandler("changeData"+l[1]+"!",e)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=c.data(a,b);if(!d)return e||[];!e||c.isArray(d)?e=c.data(a,b,c.makeArray(d)):e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();"inprogress"===e&&(e=d.shift());e&&("fx"===b&&d.unshift("inprogress"),e.call(a,function(){c.dequeue(a,
b)}))}});c.fn.extend({queue:function(a,b){"string"!==typeof a&&(b=a,a="fx");return b===p?c.queue(this[0],a):this.each(function(){var d=c.queue(this,a,b);"fx"===a&&"inprogress"!==d[0]&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var E=/[\n\t]/g,T=/\s+/,Z=/\r/g,
U=/^(?:href|src|style)$/,da=/^(?:button|input)$/i,ka=/^(?:button|input|object|select|textarea)$/i,L=/^a(?:rea)?$/i,n=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,b){return c.access(this,a,b,!0,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");1===this.nodeType&&
this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.addClass(a.call(this,b,d.attr("class")))});if(a&&"string"===typeof a)for(var b=(a||"").split(T),d=0,e=this.length;d<e;d++){var f=this[d];if(1===f.nodeType)if(f.className){for(var g=" "+f.className+" ",k=f.className,l=0,r=b.length;l<r;l++)0>g.indexOf(" "+b[l]+" ")&&(k+=" "+b[l]);f.className=c.trim(k)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(b){var d=
c(this);d.removeClass(a.call(this,b,d.attr("class")))});if(a&&"string"===typeof a||a===p)for(var b=(a||"").split(T),d=0,e=this.length;d<e;d++){var f=this[d];if(1===f.nodeType&&f.className)if(a){for(var g=(" "+f.className+" ").replace(E," "),k=0,l=b.length;k<l;k++)g=g.replace(" "+b[k]+" "," ");f.className=c.trim(g)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e="boolean"===typeof b;return c.isFunction(a)?this.each(function(d){var e=c(this);e.toggleClass(a.call(this,d,e.attr("class"),
b),b)}):this.each(function(){if("string"===d)for(var f,g=0,k=c(this),l=b,r=a.split(T);f=r[g++];)l=e?l:!k.hasClass(f),k[l?"addClass":"removeClass"](f);else if("undefined"===d||"boolean"===d)this.className&&c.data(this,"__className__",this.className),this.className=this.className||!1===a?"":c.data(this,"__className__")||""})},hasClass:function(a){a=" "+a+" ";for(var b=0,c=this.length;b<c;b++)if(-1<(" "+this[b].className+" ").replace(E," ").indexOf(a))return!0;return!1},val:function(a){if(!arguments.length){var b=
this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex,d=[],f=b.options,b="select-one"===b.type;if(0>e)return null;for(var g=b?e:0,e=b?e+1:f.length;g<e;g++){var k=f[g];if(k.selected&&(c.support.optDisabled?!k.disabled:null===k.getAttribute("disabled"))&&(!k.parentNode.disabled||!c.nodeName(k.parentNode,"optgroup"))){a=c(k).val();if(b)return a;d.push(a)}}return d}return n.test(b.type)&&!c.support.checkOn?
null===b.getAttribute("value")?"on":b.value:(b.value||"").replace(Z,"")}return p}var l=c.isFunction(a);return this.each(function(b){var d=c(this),e=a;if(1===this.nodeType)if(l&&(e=a.call(this,b,d.val())),null==e?e="":"number"===typeof e?e+="":c.isArray(e)&&(e=c.map(e,function(a){return null==a?"":a+""})),c.isArray(e)&&n.test(this.type))this.checked=0<=c.inArray(d.val(),e);else if(c.nodeName(this,"select")){var f=c.makeArray(e);c("option",this).each(function(){this.selected=0<=c.inArray(c(this).val(),
f)});f.length||(this.selectedIndex=-1)}else this.value=e})}});c.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,b,d,e){if(!a||3===a.nodeType||8===a.nodeType)return p;if(e&&b in c.attrFn)return c(a)[b](d);e=1!==a.nodeType||!c.isXMLDoc(a);var f=d!==p;b=e&&c.props[b]||b;var g=U.test(b);if((b in a||a[b]!==p)&&e&&!g)return f&&("type"===b&&da.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"),null===d?1===a.nodeType&&a.removeAttribute(b):
a[b]=d),c.nodeName(a,"form")&&a.getAttributeNode(b)?a.getAttributeNode(b).nodeValue:"tabIndex"===b?(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:ka.test(a.nodeName)||L.test(a.nodeName)&&a.href?0:p:a[b];if(!c.support.style&&e&&"style"===b)return f&&(a.style.cssText=""+d),a.style.cssText;f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return p;a=!c.support.hrefNormalized&&e&&g?a.getAttribute(b,2):a.getAttribute(b);return null===a?p:a}});var h=/\.(.*)$/,s=
/^(?:textarea|input|select)$/i,y=/\./g,v=/ /g,B=/[^\w\s.|`]/g,P=function(a){return a.replace(B,"\\$&")},G={focusin:0,focusout:0};c.event={add:function(a,b,d,e){if(!(3===a.nodeType||8===a.nodeType)){c.isWindow(a)&&(a!==q&&!a.frameElement)&&(a=q);if(!1===d)d=z;else if(!d)return;var f,g;d.handler&&(f=d,d=f.handler);d.guid||(d.guid=c.guid++);if(g=c.data(a)){var k=a.nodeType?"events":"__events__",l=g[k],r=g.handle;"function"===typeof l?(r=l.handle,l=l.events):l||(a.nodeType||(g[k]=g=function(){}),g.events=
l={});r||(g.handle=r=function(){return"undefined"!==typeof c&&!c.event.triggered?c.event.handle.apply(r.elem,arguments):p});r.elem=a;b=b.split(" ");for(var h=0,s;k=b[h++];){g=f?c.extend({},f):{handler:d,data:e};-1<k.indexOf(".")?(s=k.split("."),k=s.shift(),g.namespace=s.slice(0).sort().join(".")):(s=[],g.namespace="");g.type=k;g.guid||(g.guid=d.guid);var m=l[k],n=c.event.special[k]||{};if(!m&&(m=l[k]=[],!n.setup||!1===n.setup.call(a,e,s,r)))a.addEventListener?a.addEventListener(k,r,!1):a.attachEvent&&
a.attachEvent("on"+k,r);n.add&&(n.add.call(a,g),g.handler.guid||(g.handler.guid=d.guid));m.push(g);c.event.global[k]=!0}a=null}}},global:{},remove:function(a,b,d,e){if(!(3===a.nodeType||8===a.nodeType)){!1===d&&(d=z);var f,g,k=0,l,r,h,s,m,n,y=a.nodeType?"events":"__events__",p=c.data(a),q=p&&p[y];if(p&&q)if("function"===typeof q&&(p=q,q=q.events),b&&b.type&&(d=b.handler,b=b.type),!b||"string"===typeof b&&"."===b.charAt(0))for(f in b=b||"",q)c.event.remove(a,f+b);else{for(b=b.split(" ");f=b[k++];)if(s=
f,l=0>f.indexOf("."),r=[],l||(r=f.split("."),f=r.shift(),h=RegExp("(^|\\.)"+c.map(r.slice(0).sort(),P).join("\\.(?:.*\\.)?")+"(\\.|$)")),m=q[f])if(d){s=c.event.special[f]||{};for(g=e||0;g<m.length;g++)if(n=m[g],d.guid===n.guid){if(l||h.test(n.namespace))null==e&&m.splice(g--,1),s.remove&&s.remove.call(a,n);if(null!=e)break}if(0===m.length||null!=e&&1===m.length)(!s.teardown||!1===s.teardown.call(a,r))&&c.removeEvent(a,f,p.handle),delete q[f]}else for(g=0;g<m.length;g++)if(n=m[g],l||h.test(n.namespace))c.event.remove(a,
s,n.handler,g),m.splice(g--,1);if(c.isEmptyObject(q)){if(b=p.handle)b.elem=null;delete p.events;delete p.handle;"function"===typeof p?c.removeData(a,y):c.isEmptyObject(p)&&c.removeData(a)}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a="object"===typeof a?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);0<=f.indexOf("!")&&(a.type=f=f.slice(0,-1),a.exclusive=!0);d||(a.stopPropagation(),c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)}));
if(!d||3===d.nodeType||8===d.nodeType)return p;a.result=p;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if((!d||!d.nodeName||!c.noData[d.nodeName.toLowerCase()])&&d["on"+f]&&!1===d["on"+f].apply(d,b))a.result=!1,a.preventDefault()}catch(g){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,!0);else if(!a.isDefaultPrevented()){var k;e=a.target;var l=f.replace(h,""),
r=c.nodeName(e,"a")&&"click"===l,s=c.event.special[l]||{};if((!s._default||!1===s._default.call(d,a))&&!r&&(!e||!e.nodeName||!c.noData[e.nodeName.toLowerCase()])){try{if(e[l]){if(k=e["on"+l])e["on"+l]=null;c.event.triggered=!0;e[l]()}}catch(m){}k&&(e["on"+l]=k);c.event.triggered=!1}}},handle:function(a){var b,d,e,f;d=[];var g=c.makeArray(arguments);a=g[0]=c.event.fix(a||q.event);a.currentTarget=this;b=0>a.type.indexOf(".")&&!a.exclusive;b||(e=a.type.split("."),a.type=e.shift(),d=e.slice(0).sort(),
e=RegExp("(^|\\.)"+d.join("\\.(?:.*\\.)?")+"(\\.|$)"));a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");"function"===typeof f&&(f=f.events);d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var k=d.length;f<k;f++){var l=d[f];if(b||e.test(l.namespace))if(a.handler=l.handler,a.data=l.data,a.handleObj=l,l=l.handler.apply(this,g),l!==p&&(a.result=l,!1===l&&(a.preventDefault(),a.stopPropagation())),a.isImmediatePropagationStopped())break}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;)e=this.props[--d],a[e]=b[e];a.target||(a.target=a.srcElement||m);3===a.target.nodeType&&(a.target=a.target.parentNode);!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);null==a.pageX&&null!=a.clientX&&(b=m.documentElement,d=m.body,a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0),a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0));if(null==a.which&&(null!=a.charCode||null!=a.keyCode))a.which=null!=a.charCode?a.charCode:a.keyCode;!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey);!a.which&&a.button!==p&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,D(a.origType,a.selector),c.extend({},a,{handler:M,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
D(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){c.isWindow(this)&&(this.onbeforeunload=d)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}};c.removeEvent=m.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);a&&a.type?(this.originalEvent=a,this.type=a.type):this.type=a;this.timeStamp=c.now();
this[c.expando]=!0};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=C;var a=this.originalEvent;a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=C;var a=this.originalEvent;a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=C;this.stopPropagation()},isDefaultPrevented:z,isPropagationStopped:z,isImmediatePropagationStopped:z};var pa=function(a){var b=
a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;b!==this&&(a.type=a.data,c.event.handle.apply(this,arguments))}catch(d){}},qa=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?qa:pa,a)},teardown:function(a){c.event.remove(this,b,a&&a.selector?qa:pa)}}});c.support.submitBubbles||(c.event.special.submit={setup:function(){if("form"!==this.nodeName.toLowerCase())c.event.add(this,
"click.specialSubmit",function(a){var b=a.target,d=b.type;if(("submit"===d||"image"===d)&&c(b).closest("form").length)return a.liveFired=p,W("submit",this,arguments)}),c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if(("text"===d||"password"===d)&&c(b).closest("form").length&&13===a.keyCode)return a.liveFired=p,W("submit",this,arguments)});else return!1},teardown:function(){c.event.remove(this,".specialSubmit")}});if(!c.support.changeBubbles){var aa,ra=function(a){var b=
a.type,d=a.value;"radio"===b||"checkbox"===b?d=a.checked:"select-multiple"===b?d=-1<a.selectedIndex?c.map(a.options,function(a){return a.selected}).join("-"):"":"select"===a.nodeName.toLowerCase()&&(d=a.selectedIndex);return d},ea=function(a,b){var d=a.target,e,f;if(s.test(d.nodeName)&&!d.readOnly&&(e=c.data(d,"_change_data"),f=ra(d),("focusout"!==a.type||"radio"!==d.type)&&c.data(d,"_change_data",f),!(e===p||f===e)))if(null!=e||f)return a.type="change",a.liveFired=p,c.event.trigger(a,b,d)};c.event.special.change=
{filters:{focusout:ea,beforedeactivate:ea,click:function(a){var b=a.target,c=b.type;if("radio"===c||"checkbox"===c||"select"===b.nodeName.toLowerCase())return ea.call(this,a)},keydown:function(a){var b=a.target,c=b.type;if(13===a.keyCode&&"textarea"!==b.nodeName.toLowerCase()||32===a.keyCode&&("checkbox"===c||"radio"===c)||"select-multiple"===c)return ea.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",ra(a))}},setup:function(){if("file"===this.type)return!1;for(var a in aa)c.event.add(this,
a+".specialChange",aa[a]);return s.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return s.test(this.nodeName)}};aa=c.event.special.change.filters;aa.focus=aa.beforeactivate}m.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(a){a=c.event.fix(a);a.type=b;return c.event.trigger(a,null,a.target)}c.event.special[b]={setup:function(){0===G[b]++&&m.addEventListener(a,d,!0)},teardown:function(){0===--G[b]&&m.removeEventListener(a,d,!0)}}});
c.each(["bind","one"],function(a,b){c.fn[b]=function(a,e,f){if("object"===typeof a){for(var g in a)this[b](g,e,a[g],f);return this}if(c.isFunction(e)||!1===e)f=e,e=p;var k="one"===b?c.proxy(f,function(a){c(this).unbind(a,k);return f.apply(this,arguments)}):f;if("unload"===a&&"one"!==b)this.one(a,e,f);else{g=0;for(var l=this.length;g<l;g++)c.event.add(this[g],a,k,e)}return this}});c.fn.extend({unbind:function(a,b){if("object"===typeof a&&!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=
0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,c,e){return this.live(b,c,e,a)},undelegate:function(a,b,c){return 0===arguments.length?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,
b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||!1}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var sa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(a,e,f,g){var k,l=0,r,s,m=g||this.selector;g=g?this:c(this.context);if("object"===typeof a&&!a.preventDefault){for(k in a)g[b](k,
e,a[k],m);return this}c.isFunction(e)&&(f=e,e=p);for(a=(a||"").split(" ");null!=(k=a[l++]);)if(r=h.exec(k),s="",r&&(s=r[0],k=k.replace(h,"")),"hover"===k)a.push("mouseenter"+s,"mouseleave"+s);else if(r=k,"focus"===k||"blur"===k?(a.push(sa[k]+s),k+=s):k=(sa[k]||k)+s,"live"===b){s=0;for(var n=g.length;s<n;s++)c.event.add(g[s],"live."+D(k,m),{data:e,selector:m,handler:f,origType:k,origHandler:f,preType:r})}else g.unbind("live."+D(k,m),f);return this}});c.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".split(" "),
function(a,b){c.fn[b]=function(a,c){null==c&&(c=a,a=null);return 0<arguments.length?this.bind(b,a,c):this.trigger(b)};c.attrFn&&(c.attrFn[b]=!0)});q.attachEvent&&!q.addEventListener&&c(q).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(a,b,c,d,e,f){e=0;for(var g=d.length;e<g;e++){var l=d[e];if(l){for(var k=!1,l=l[a];l;){if(l.sizcache===c){k=d[l.sizset];break}1===l.nodeType&&!f&&(l.sizcache=c,l.sizset=
e);if(l.nodeName.toLowerCase()===b){k=l;break}l=l[a]}d[e]=k}}}function b(a,b,c,d,e,f){e=0;for(var g=d.length;e<g;e++){var k=d[e];if(k){for(var r=!1,k=k[a];k;){if(k.sizcache===c){r=d[k.sizset];break}if(1===k.nodeType)if(f||(k.sizcache=c,k.sizset=e),"string"!==typeof b){if(k===b){r=!0;break}}else if(0<l.filter(b,[k]).length){r=k;break}k=k[a]}d[e]=r}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,
g=!1,k=!0;[0,0].sort(function(){k=!1;return 0});var l=function(a,b,c,e){c=c||[];var g=b=b||m;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!==typeof a)return c;var k,h,n,p,q,t=!0,B=l.isXML(b),v=[],G=a;do if(d.exec(""),k=d.exec(G))if(G=k[3],v.push(k[1]),k[2]){p=k[3];break}while(k);if(1<v.length&&s.exec(a))if(2===v.length&&r.relative[v[0]])h=P(v[0]+v[1],b);else for(h=r.relative[v[0]]?[b]:l(v.shift(),b);v.length;)a=v.shift(),r.relative[a]&&(a+=v.shift()),h=P(a,h);else if(!e&&(1<v.length&&
9===b.nodeType&&!B&&r.match.ID.test(v[0])&&!r.match.ID.test(v[v.length-1]))&&(k=l.find(v.shift(),b,B),b=k.expr?l.filter(k.expr,k.set)[0]:k.set[0]),b){k=e?{expr:v.pop(),set:y(e)}:l.find(v.pop(),1===v.length&&("~"===v[0]||"+"===v[0])&&b.parentNode?b.parentNode:b,B);h=k.expr?l.filter(k.expr,k.set):k.set;for(0<v.length?n=y(h):t=!1;v.length;)k=q=v.pop(),r.relative[q]?k=v.pop():q="",null==k&&(k=b),r.relative[q](n,k,B)}else n=[];n||(n=h);n||l.error(q||a);if("[object Array]"===f.call(n))if(t)if(b&&1===b.nodeType)for(a=
0;null!=n[a];a++)n[a]&&(!0===n[a]||1===n[a].nodeType&&l.contains(b,n[a]))&&c.push(h[a]);else for(a=0;null!=n[a];a++)n[a]&&1===n[a].nodeType&&c.push(h[a]);else c.push.apply(c,n);else y(n,c);p&&(l(p,g,c,e),l.uniqueSort(c));return c};l.uniqueSort=function(a){if(t&&(g=k,a.sort(t),g))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};l.matches=function(a,b){return l(a,null,null,b)};l.matchesSelector=function(a,b){return 0<l(b,null,null,[a]).length};l.find=function(a,b,c){var d;if(!a)return[];
for(var e=0,f=r.order.length;e<f;e++){var g,k=r.order[e];if(g=r.leftMatch[k].exec(a)){var l=g[1];g.splice(1,1);if("\\"!==l.substr(l.length-1)&&(g[1]=(g[1]||"").replace(/\\/g,""),d=r.find[k](g,b,c),null!=d)){a=a.replace(r.match[k],"");break}}}d||(d=b.getElementsByTagName("*"));return{set:d,expr:a}};l.filter=function(a,b,c,d){for(var e,f,g=a,k=[],h=b,s=b&&b[0]&&l.isXML(b[0]);a&&b.length;){for(var n in r.filter)if(null!=(e=r.leftMatch[n].exec(a))&&e[2]){var m,y,q=r.filter[n];y=e[1];f=!1;e.splice(1,1);
if("\\"!==y.substr(y.length-1)){h===k&&(k=[]);if(r.preFilter[n])if(e=r.preFilter[n](e,h,c,k,d,s)){if(!0===e)continue}else f=m=!0;if(e)for(var v=0;null!=(y=h[v]);v++)if(y){m=q(y,e,v,h);var t=d^!!m;c&&null!=m?t?f=!0:h[v]=!1:t&&(k.push(y),f=!0)}if(m!==p){c||(h=k);a=a.replace(r.match[n],"");if(!f)return[];break}}}if(a===g)if(null==f)l.error(a);else break;g=a}return h};l.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var r=l.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")}},
relative:{"+":function(a,b){var c="string"===typeof b,d=c&&!/\W/.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,e=a.length,f;d<e;d++)if(f=a[d]){for(;(f=f.previousSibling)&&1!==f.nodeType;);a[d]=c||f&&f.nodeName.toLowerCase()===b?f||!1:f===b}c&&l.filter(b,a,!0)},">":function(a,b){var c,d="string"===typeof b,e=0,f=a.length;if(d&&!/\W/.test(b))for(b=b.toLowerCase();e<f;e++){if(c=a[e])c=c.parentNode,a[e]=c.nodeName.toLowerCase()===b?c:!1}else{for(;e<f;e++)if(c=a[e])a[e]=d?c.parentNode:c.parentNode===
b;d&&l.filter(b,a,!0)}},"":function(c,d,f){var g,k=e++,l=b;"string"===typeof d&&!/\W/.test(d)&&(g=d=d.toLowerCase(),l=a);l("parentNode",d,k,c,g,f)},"~":function(c,d,f){var g,k=e++,l=b;"string"===typeof d&&!/\W/.test(d)&&(g=d=d.toLowerCase(),l=a);l("previousSibling",d,k,c,g,f)}},find:{ID:function(a,b,c){if("undefined"!==typeof b.getElementById&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if("undefined"!==typeof b.getElementsByName){for(var c=[],d=b.getElementsByName(a[1]),
e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return 0===c.length?null:c}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(/\\/g,"")+" ";if(f)return a;f=0;for(var g;null!=(g=b[f]);f++)g&&(e^(g.className&&0<=(" "+g.className+" ").replace(/[\t\n]/g," ").indexOf(a))?c||d.push(g):c&&(b[f]=!1));return!1},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a){return a[1].toLowerCase()},CHILD:function(a){if("nth"===
a[1]){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec("even"===a[2]&&"2n"||"odd"===a[2]&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){b=a[1].replace(/\\/g,"");!f&&r.attrMap[b]&&(a[1]=r.attrMap[b]);"~="===a[2]&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,e,f){if("not"===a[1])if(1<(d.exec(a[3])||"").length||/^\w/.test(a[3]))a[3]=l(a[3],null,null,b);else return a=l.filter(a[3],b,c,1^f),c||e.push.apply(e,a),!1;else if(r.match.POS.test(a[0])||
r.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return!1===a.disabled&&"hidden"!==a.type},disabled:function(a){return!0===a.disabled},checked:function(a){return!0===a.checked},selected:function(a){return!0===a.selected},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!l(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},
radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||"button"===a.nodeName.toLowerCase()},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return 0===
b},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return 0===b%2},odd:function(a,b){return 1===b%2},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=r.filters[e];if(f)return f(a,c,b,d);if("contains"===e)return 0<=(a.textContent||a.innerText||l.getText([a])||"").indexOf(b[3]);if("not"===e){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return!1;
return!0}l.error("Syntax error, unrecognized expression: "+e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case "only":case "first":for(;d=d.previousSibling;)if(1===d.nodeType)return!1;if("first"===c)return!0;d=a;case "last":for(;d=d.nextSibling;)if(1===d.nodeType)return!1;return!0;case "nth":var c=b[2],e=b[3];if(1===c&&0===e)return!0;var f=b[0],g=a.parentNode;if(g&&(g.sizcache!==f||!a.nodeIndex)){for(var k=0,d=g.firstChild;d;d=d.nextSibling)1===d.nodeType&&(d.nodeIndex=++k);g.sizcache=f}d=a.nodeIndex-
e;return 0===c?0===d:0===d%c&&0<=d/c}},ID:function(a,b){return 1===a.nodeType&&a.getAttribute("id")===b},TAG:function(a,b){return"*"===b&&1===a.nodeType||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return-1<(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)},ATTR:function(a,b){var c=b[1],c=r.attrHandle[c]?r.attrHandle[c](a):null!=a[c]?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return null==c?"!="===e:"="===e?d===f:"*="===e?0<=d.indexOf(f):"~="===e?0<=(" "+d+" ").indexOf(f):!f?d&&!1!==
c:"!="===e?d!==f:"^="===e?0===d.indexOf(f):"$="===e?d.substr(d.length-f.length)===f:"|="===e?d===f||d.substr(0,f.length+1)===f+"-":!1},POS:function(a,b,c,d){var e=r.setFilters[b[2]];if(e)return e(a,c,b,d)}}},s=r.match.POS,h=function(a,b){return"\\"+(b-0+1)},n;for(n in r.match)r.match[n]=RegExp(r.match[n].source+/(?![^\[]*\])(?![^\(]*\))/.source),r.leftMatch[n]=RegExp(/(^(?:.|\r|\n)*?)/.source+r.match[n].source.replace(/\\(\d+)/g,h));var y=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,
a),b):a};try{Array.prototype.slice.call(m.documentElement.childNodes,0)}catch(q){y=function(a,b){var c=0,d=b||[];if("[object Array]"===f.call(a))Array.prototype.push.apply(d,a);else if("number"===typeof a.length)for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var t,B;m.documentElement.compareDocumentPosition?t=function(a,b){return a===b?(g=!0,0):!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:
1}:(t=function(a,b){var c,d,e=[],f=[];c=a.parentNode;d=b.parentNode;var k=c;if(a===b)return g=!0,0;if(c===d)return B(a,b);if(c){if(!d)return 1}else return-1;for(;k;)e.unshift(k),k=k.parentNode;for(k=d;k;)f.unshift(k),k=k.parentNode;c=e.length;d=f.length;for(k=0;k<c&&k<d;k++)if(e[k]!==f[k])return B(e[k],f[k]);return k===c?B(a,f[k],-1):B(e[k],b,1)},B=function(a,b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});l.getText=function(a){for(var b="",c,d=0;a[d];d++)c=
a[d],3===c.nodeType||4===c.nodeType?b+=c.nodeValue:8!==c.nodeType&&(b+=l.getText(c.childNodes));return b};(function(){var a=m.createElement("div"),b="script"+(new Date).getTime(),c=m.documentElement;a.innerHTML="<a name='"+b+"'/>";c.insertBefore(a,c.firstChild);m.getElementById(b)&&(r.find.ID=function(a,b,c){if("undefined"!==typeof b.getElementById&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||"undefined"!==typeof b.getAttributeNode&&b.getAttributeNode("id").nodeValue===a[1]?[b]:p:[]},r.filter.ID=
function(a,b){var c="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b});c.removeChild(a);c=a=null})();(function(){var a=m.createElement("div");a.appendChild(m.createComment(""));0<a.getElementsByTagName("*").length&&(r.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if("*"===a[1]){for(var d=[],e=0;c[e];e++)1===c[e].nodeType&&d.push(c[e]);c=d}return c});a.innerHTML="<a href='#'></a>";a.firstChild&&("undefined"!==typeof a.firstChild.getAttribute&&
"#"!==a.firstChild.getAttribute("href"))&&(r.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();m.querySelectorAll&&function(){var a=l,b=m.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!(b.querySelectorAll&&0===b.querySelectorAll(".TEST").length)){l=function(b,c,d,e){c=c||m;b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!e&&!l.isXML(c))if(9===c.nodeType)try{return y(c.querySelectorAll(b),d)}catch(f){}else if(1===c.nodeType&&"object"!==c.nodeName.toLowerCase()){var g=
c.getAttribute("id"),k=g||"__sizzle__";g||c.setAttribute("id",k);try{return y(c.querySelectorAll("#"+k+" "+b),d)}catch(h){}finally{g||c.removeAttribute("id")}}return a(b,c,d,e)};for(var c in a)l[c]=a[c];b=null}}();(function(){var a=m.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,c=!1;try{b.call(m.documentElement,"[test!='']:sizzle")}catch(d){c=!0}b&&(l.matchesSelector=function(a,d){d=d.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!l.isXML(a))try{if(c||
!r.match.PSEUDO.test(d)&&!/!=/.test(d))return b.call(a,d)}catch(e){}return 0<l(d,null,null,[a]).length})})();(function(){var a=m.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";a.getElementsByClassName&&0!==a.getElementsByClassName("e").length&&(a.lastChild.className="e",1!==a.getElementsByClassName("e").length&&(r.order.splice(1,0,"CLASS"),r.find.CLASS=function(a,b,c){if("undefined"!==typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])},
a=null))})();l.contains=m.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:m.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};l.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var P=function(a,b){for(var c,d=[],e="",f=b.nodeType?[b]:b;c=r.match.PSEUDO.exec(a);)e+=c[0],a=a.replace(r.match.PSEUDO,"");a=r.relative[a]?a+"*":a;c=0;for(var g=f.length;c<g;c++)l(a,
f[c],d);return l.filter(e,d)};c.find=l;c.expr=l.selectors;c.expr[":"]=c.expr.filters;c.unique=l.uniqueSort;c.text=l.getText;c.isXMLDoc=l.isXML;c.contains=l.contains})();var Ka=/Until$/,La=/^(?:parents|prevUntil|prevAll)/,Ma=/,/,Ea=/^.[^:#\[\.,]*$/,Na=Array.prototype.slice,Oa=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++)if(d=b.length,c.find(a,this[e],b),0<e)for(var g=d;g<b.length;g++)for(var k=0;k<d;k++)if(b[k]===b[g]){b.splice(g--,
1);break}return b},has:function(a){var b=c(a);return this.filter(function(){for(var a=0,e=b.length;a<e;a++)if(c.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(A(this,a,!1),"not",a)},filter:function(a){return this.pushStack(A(this,a,!0),"filter",a)},is:function(a){return!!a&&0<c.filter(a,this).length},closest:function(a,b){var d=[],e,f,g=this[0];if(c.isArray(a)){var k,l={},h=1;if(g&&a.length){e=0;for(f=a.length;e<f;e++)k=a[e],l[k]||(l[k]=c.expr.match.POS.test(k)?c(k,b||this.context):
k);for(;g&&g.ownerDocument&&g!==b;){for(k in l)e=l[k],(e.jquery?-1<e.index(g):c(g).is(e))&&d.push({selector:k,elem:g,level:h});g=g.parentNode;h++}}return d}k=Oa.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(g=this[e];g;)if(k?-1<k.index(g):c.find.matchesSelector(g,a)){d.push(g);break}else if(g=g.parentNode,!g||!g.ownerDocument||g===b)break;d=1<d.length?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){return!a||"string"===typeof a?c.inArray(this[0],a?c(a):
this.parent().children()):c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d="string"===typeof a?c(a,b||this.context):c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||11===d[0].parentNode.nodeType||!e[0]||!e[0].parentNode||11===e[0].parentNode.nodeType?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,
b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,
"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Ka.test(a)||(e=d);e&&"string"===typeof e&&(f=c.filter(e,f));f=1<this.length?c.unique(f):f;if((1<this.length||Ma.test(e))&&La.test(a))f=f.reverse();return this.pushStack(f,a,Na.call(arguments).join(","))}});c.extend({filter:function(a,b,d){d&&(a=":not("+a+")");return 1===b.length?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=
[];for(a=a[b];a&&9!==a.nodeType&&(d===p||1!==a.nodeType||!c(a).is(d));)1===a.nodeType&&e.push(a),a=a[b];return e},nth:function(a,b,c){b=b||1;for(var e=0;a&&!(1===a.nodeType&&++e===b);a=a[c]);return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}});var ta=/ jQuery\d+="(?:\d+|null)"/g,fa=/^\s+/,ua=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,va=/<([\w:]+)/,Pa=/<tbody/i,Qa=/<|&#?\w+;/,wa=/<(?:script|object|embed|option|style)/i,
xa=/checked\s*(?:[^=]|=\s*.checked.)/i,Ra=/\=([^="'>\s]+\/)>/g,H={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};H.optgroup=H.option;H.tbody=H.tfoot=H.colgroup=H.caption=H.thead;H.th=H.td;c.support.htmlSerialize||(H._default=
[1,"div<div>","</div>"]);c.fn.extend({text:function(a){return c.isFunction(a)?this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))}):"object"!==typeof a&&a!==p?this.empty().append((this[0]&&this[0].ownerDocument||m).createTextNode(a)):c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapAll(a.call(this,b))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&
1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return c.isFunction(a)?this.each(function(b){c(this).wrapInner(a.call(this,b))}):this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,
!0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;null!=(e=this[d]);d++)if(!a||c.filter(a,[e]).length)!b&&1===e.nodeType&&(c.cleanData(e.getElementsByTagName("*")),c.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;null!=(b=this[a]);a++)for(1===b.nodeType&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var a=this.outerHTML,b=this.ownerDocument;a||(a=b.createElement("div"),a.appendChild(this.cloneNode(!0)),a=a.innerHTML);return c.clean([a.replace(ta,"").replace(Ra,'="$1">').replace(fa,"")],b)[0]}return this.cloneNode(!0)});!0===a&&(I(this,b),I(this.find("*"),b.find("*")));return b},html:function(a){if(a===p)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(ta,""):null;if("string"===
typeof a&&!wa.test(a)&&(c.support.leadingWhitespace||!fa.test(a))&&!H[(va.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ua,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)1===this[b].nodeType&&(c.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a)}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(b){var d=c(this);d.html(a.call(this,b,d.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=
c(this),e=d.html();d.replaceWith(a.call(this,b,e))});"string"!==typeof a&&(a=c(a).detach());return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,!0)},domManip:function(a,b,d){var e,f,g,k=a[0],l=[];if(!c.support.checkClone&&3===arguments.length&&"string"===typeof k&&xa.test(k))return this.each(function(){c(this).domManip(a,b,d,!0)});
if(c.isFunction(k))return this.each(function(e){var f=c(this);a[0]=k.call(this,e,b?f.html():p);f.domManip(a,b,d)});if(this[0]){e=k&&k.parentNode;e=c.support.parentNode&&e&&11===e.nodeType&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,l);g=e.fragment;if(f=1===g.childNodes.length?g=g.firstChild:g.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var h=this.length;f<h;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):
this[f]:this[f],0<f||e.cacheable||1<this.length?g.cloneNode(!0):g)}l.length&&c.each(l,J)}return this}});c.buildFragment=function(a,b,d){var e,f,g;b=b&&b[0]?b[0].ownerDocument||b[0]:m;if(1===a.length&&"string"===typeof a[0]&&512>a[0].length&&b===m&&!wa.test(a[0])&&(c.support.checkClone||!xa.test(a[0])))if(f=!0,g=c.fragments[a[0]])1!==g&&(e=g);e||(e=b.createDocumentFragment(),c.clean(a,b,e,d));f&&(c.fragments[a[0]]=g?e:1);return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",
insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=1===this.length&&this[0].parentNode;if(f&&11===f.nodeType&&1===f.childNodes.length&&1===d.length)return d[b](this[0]),this;for(var f=0,g=d.length;f<g;f++){var k=(0<f?this.clone(!0):this).get();c(d[f])[b](k);e=e.concat(k)}return this.pushStack(e,a,d.selector)}});c.extend({clean:function(a,b,d,e){b=b||m;"undefined"===typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||
m);for(var f=[],g=0,k;null!=(k=a[g]);g++)if("number"===typeof k&&(k+=""),k){if("string"===typeof k&&!Qa.test(k))k=b.createTextNode(k);else if("string"===typeof k){k=k.replace(ua,"<$1></$2>");var l=(va.exec(k)||["",""])[1].toLowerCase(),h=H[l]||H._default,s=h[0],n=b.createElement("div");for(n.innerHTML=h[1]+k+h[2];s--;)n=n.lastChild;if(!c.support.tbody){s=Pa.test(k);l="table"===l&&!s?n.firstChild&&n.firstChild.childNodes:"<table>"===h[1]&&!s?n.childNodes:[];for(h=l.length-1;0<=h;--h)c.nodeName(l[h],
"tbody")&&!l[h].childNodes.length&&l[h].parentNode.removeChild(l[h])}!c.support.leadingWhitespace&&fa.test(k)&&n.insertBefore(b.createTextNode(fa.exec(k)[0]),n.firstChild);k=n.childNodes}k.nodeType?f.push(k):f=c.merge(f,k)}if(d)for(g=0;f[g];g++)e&&c.nodeName(f[g],"script")&&(!f[g].type||"text/javascript"===f[g].type.toLowerCase())?e.push(f[g].parentNode?f[g].parentNode.removeChild(f[g]):f[g]):(1===f[g].nodeType&&f.splice.apply(f,[g+1,0].concat(c.makeArray(f[g].getElementsByTagName("script")))),d.appendChild(f[g]));
return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,g=c.support.deleteExpando,k=0,l;null!=(l=a[k]);k++)if(!l.nodeName||!c.noData[l.nodeName.toLowerCase()])if(d=l[c.expando]){if((b=e[d])&&b.events)for(var h in b.events)f[h]?c.event.remove(l,h):c.removeEvent(l,h,b.handle);g?delete l[c.expando]:l.removeAttribute&&l.removeAttribute(c.expando);delete e[d]}}});var ya=/alpha\([^)]*\)/i,Sa=/opacity=([^)]*)/,Ta=/-([a-z])/ig,Ua=/([A-Z])/g,za=/^-?\d+(?:px)?$/i,Va=/^-?\d/,Wa={position:"absolute",
visibility:"hidden",display:"block"},Fa=["Left","Right"],Ga=["Top","Bottom"],ba,Aa,ga,Xa=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return 2===arguments.length&&b===p?this:c.access(this,a,b,!0,function(a,b,f){return f!==p?c.style(a,b,f):c.css(a,b)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ba(a,"opacity","opacity");return""===c?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":c.support.cssFloat?
"cssFloat":"styleFloat"},style:function(a,b,d,e){if(a&&!(3===a.nodeType||8===a.nodeType||!a.style)){var f,g=c.camelCase(b),k=a.style,l=c.cssHooks[g];b=c.cssProps[g]||g;if(d!==p){if(!("number"===typeof d&&isNaN(d)||null==d))if("number"===typeof d&&!c.cssNumber[g]&&(d+="px"),!l||!("set"in l)||(d=l.set(a,d))!==p)try{k[b]=d}catch(h){}}else return l&&"get"in l&&(f=l.get(a,!1,e))!==p?f:k[b]}},css:function(a,b,d){var e,f=c.camelCase(b),g=c.cssHooks[f];b=c.cssProps[f]||f;if(g&&"get"in g&&(e=g.get(a,!0,d))!==
p)return e;if(ba)return ba(a,b,f)},swap:function(a,b,c){var e={},f;for(f in b)e[f]=a.style[f],a.style[f]=b[f];c.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(Ta,Xa)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(a,e,f){var g;if(e)return 0!==a.offsetWidth?g=N(a,b,f):c.swap(a,Wa,function(){g=N(a,b,f)}),0>=g&&(g=ba(a,b,b),"0px"===g&&ga&&(g=ga(a,b,b)),null!=g)?""===g||"auto"===g?"0px":g:0>g||null==g?(g=a.style[b],""===g||"auto"===g?"0px":
g):"string"===typeof g?g:g+"px"},set:function(a,b){if(za.test(b)){if(b=parseFloat(b),0<=b)return b+"px"}else return b}}});c.support.opacity||(c.cssHooks.opacity={get:function(a,b){return Sa.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+100*b+")",f=d.filter||"";d.filter=ya.test(f)?f.replace(ya,e):d.filter+" "+e}});m.defaultView&&m.defaultView.getComputedStyle&&(Aa=
function(a,b,d){var e;d=d.replace(Ua,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return p;if(b=b.getComputedStyle(a,null))e=b.getPropertyValue(d),""===e&&!c.contains(a.ownerDocument.documentElement,a)&&(e=c.style(a,d));return e});m.documentElement.currentStyle&&(ga=function(a,b){var c,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;!za.test(f)&&Va.test(f)&&(c=g.left,e=a.runtimeStyle.left,a.runtimeStyle.left=a.currentStyle.left,g.left="fontSize"===b?"1em":f||0,f=g.pixelLeft+"px",g.left=
c,a.runtimeStyle.left=e);return""===f?"auto":f});ba=Aa||ga;c.expr&&c.expr.filters&&(c.expr.filters.hidden=function(a){var b=a.offsetHeight;return 0===a.offsetWidth&&0===b||!c.support.reliableHiddenOffsets&&"none"===(a.style.display||c.css(a,"display"))},c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)});var Ya=c.now(),Za=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,$a=/^(?:select|textarea)/i,ab=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
bb=/^(?:GET|HEAD)$/,Ha=/\[\]$/,V=/\=\?(&|$)/,la=/\?/,cb=/([?&])_=[^&]*/,db=/^(\w+:)?\/\/([^\/?#]+)/,eb=/%20/g,fb=/#.*$/,Ba=c.fn.load;c.fn.extend({load:function(a,b,d){if("string"!==typeof a&&Ba)return Ba.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(0<=e){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";b&&(c.isFunction(b)?(d=b,b=null):"object"===typeof b&&(b=c.param(b,c.ajaxSettings.traditional),e="POST"));var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,
b){if("success"===b||"notmodified"===b)g.html(f?c("<div>").append(a.responseText.replace(Za,"")).find(f):a.responseText);d&&g.each(d,[a.responseText,b,a])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||$a.test(this.nodeName)||ab.test(this.type))}).map(function(a,b){var d=c(this).val();return null==
d?null:c.isArray(d)?c.map(d,function(a){return{name:b.name,value:a}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a){return this.bind(b,a)}});c.extend({get:function(a,b,d,e){c.isFunction(b)&&(e=e||d,d=b,b=null);return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,
b,d,e){c.isFunction(b)&&(e=e||d,d=b,b={});return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,xhr:function(){return new q.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},
ajax:function(a){var b=c.extend(!0,{},c.ajaxSettings,a),d,e,f,g=b.type.toUpperCase(),k=bb.test(g);b.url=b.url.replace(fb,"");b.context=a&&null!=a.context?a.context:b;b.data&&(b.processData&&"string"!==typeof b.data)&&(b.data=c.param(b.data,b.traditional));if("jsonp"===b.dataType){if("GET"===g)V.test(b.url)||(b.url+=(la.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||!V.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if("json"===b.dataType&&
(b.data&&V.test(b.data)||V.test(b.url))){d=b.jsonpCallback||"jsonp"+Ya++;b.data&&(b.data=(b.data+"").replace(V,"="+d+"$1"));b.url=b.url.replace(V,"="+d+"$1");b.dataType="script";var l=q[d];q[d]=function(a){if(c.isFunction(l))l(a);else{q[d]=p;try{delete q[d]}catch(g){}}f=a;c.handleSuccess(b,t,e,f);c.handleComplete(b,t,e,f);s&&s.removeChild(y)}}"script"===b.dataType&&null===b.cache&&(b.cache=!1);if(!1===b.cache&&k){var h=c.now(),n=b.url.replace(cb,"$1_="+h);b.url=n+(n===b.url?(la.test(b.url)?"&":"?")+
"_="+h:"")}b.data&&k&&(b.url+=(la.test(b.url)?"&":"?")+b.data);b.global&&0===c.active++&&c.event.trigger("ajaxStart");h=(h=db.exec(b.url))&&(h[1]&&h[1].toLowerCase()!==location.protocol||h[2].toLowerCase()!==location.host);if("script"===b.dataType&&"GET"===g&&h){var s=m.getElementsByTagName("head")[0]||m.documentElement,y=m.createElement("script");b.scriptCharset&&(y.charset=b.scriptCharset);y.src=b.url;if(!d){var v=!1;y.onload=y.onreadystatechange=function(){if(!v&&(!this.readyState||"loaded"===
this.readyState||"complete"===this.readyState))v=!0,c.handleSuccess(b,t,e,f),c.handleComplete(b,t,e,f),y.onload=y.onreadystatechange=null,s&&y.parentNode&&s.removeChild(y)}}s.insertBefore(y,s.firstChild);return p}var B=!1,t=b.xhr();if(t){b.username?t.open(g,b.url,b.async,b.username,b.password):t.open(g,b.url,b.async);try{(null!=b.data&&!k||a&&a.contentType)&&t.setRequestHeader("Content-Type",b.contentType),b.ifModified&&(c.lastModified[b.url]&&t.setRequestHeader("If-Modified-Since",c.lastModified[b.url]),
c.etag[b.url]&&t.setRequestHeader("If-None-Match",c.etag[b.url])),h||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(P){}if(b.beforeSend&&!1===b.beforeSend.call(b.context,t,b))return b.global&&1===c.active--&&c.event.trigger("ajaxStop"),t.abort(),!1;b.global&&c.triggerGlobal(b,"ajaxSend",[t,b]);var G=t.onreadystatechange=function(a){if(!t||0===t.readyState||"abort"===
a)B||c.handleComplete(b,t,e,f),B=!0,t&&(t.onreadystatechange=c.noop);else if(!B&&t&&(4===t.readyState||"timeout"===a)){B=!0;t.onreadystatechange=c.noop;e="timeout"===a?"timeout":!c.httpSuccess(t)?"error":b.ifModified&&c.httpNotModified(t,b.url)?"notmodified":"success";var g;if("success"===e)try{f=c.httpData(t,b.dataType,b)}catch(k){e="parsererror",g=k}"success"===e||"notmodified"===e?d||c.handleSuccess(b,t,e,f):c.handleError(b,t,e,g);d||c.handleComplete(b,t,e,f);"timeout"===a&&t.abort();b.async&&
(t=null)}};try{var w=t.abort;t.abort=function(){t&&Function.prototype.call.call(w,t);G("abort")}}catch(x){}b.async&&0<b.timeout&&setTimeout(function(){t&&!B&&G("timeout")},b.timeout);try{t.send(k||null==b.data?null:b.data)}catch(u){c.handleError(b,t,null,u),c.handleComplete(b,t,e,f)}b.async||G();return t}},param:function(a,b){var d=[],e=function(a,b){b=c.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===p&&(b=c.ajaxSettings.traditional);if(c.isArray(a)||a.jquery)c.each(a,
function(){e(this.name,this.value)});else for(var f in a)Q(f,a[f],b,e);return d.join("&").replace(eb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess",[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",
[b,a]);a.global&&1===c.active--&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&null==a.context.url?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&"file:"===location.protocol||200<=a.status&&300>a.status||304===a.status||1223===a.status}catch(b){}return!1},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),e=a.getResponseHeader("Etag");d&&(c.lastModified[b]=d);e&&(c.etag[b]=e);return 304===a.status},httpData:function(a,
b,d){var e=a.getResponseHeader("content-type")||"",f="xml"===b||!b&&0<=e.indexOf("xml");a=f?a.responseXML:a.responseText;f&&"parsererror"===a.documentElement.nodeName&&c.error("parsererror");d&&d.dataFilter&&(a=d.dataFilter(a,b));"string"===typeof a&&("json"===b||!b&&0<=e.indexOf("json")?a=c.parseJSON(a):("script"===b||!b&&0<=e.indexOf("javascript"))&&c.globalEval(a));return a}});q.ActiveXObject&&(c.ajaxSettings.xhr=function(){if("file:"!==q.location.protocol)try{return new q.XMLHttpRequest}catch(a){}try{return new q.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}});
c.support.ajax=!!c.ajaxSettings.xhr();var ia={},gb=/^(?:toggle|show|hide)$/,hb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ha,ma=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||0===a)return this.animate(x("show",3),a,b,d);d=0;for(var e=this.length;d<e;d++)a=this[d],b=a.style.display,!c.data(a,"olddisplay")&&"none"===b&&(b=a.style.display=""),""===b&&"none"===c.css(a,"display")&&
c.data(a,"olddisplay",K(a.nodeName));for(d=0;d<e;d++)if(a=this[d],b=a.style.display,""===b||"none"===b)a.style.display=c.data(a,"olddisplay")||"";return this},hide:function(a,b,d){if(a||0===a)return this.animate(x("hide",3),a,b,d);a=0;for(b=this.length;a<b;a++)d=c.css(this[a],"display"),"none"!==d&&c.data(this[a],"olddisplay",d);for(a=0;a<b;a++)this[a].style.display="none";return this},_toggle:c.fn.toggle,toggle:function(a,b,d){var e="boolean"===typeof a;c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,
arguments):null==a||e?this.each(function(){var b=e?a:c(this).is(":hidden");c(this)[b?"show":"hide"]()}):this.animate(x("toggle",3),a,b,d);return this},fadeTo:function(a,b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,d,e){var f=c.speed(b,d,e);return c.isEmptyObject(a)?this.each(f.complete):this[!1===f.queue?"each":"queue"](function(){var b=c.extend({},f),d,e=1===this.nodeType,h=e&&c(this).is(":hidden"),s=this;for(d in a){var n=c.camelCase(d);
d!==n&&(a[n]=a[d],delete a[d],d=n);if("hide"===a[d]&&h||"show"===a[d]&&!h)return b.complete.call(this);if(e&&("height"===d||"width"===d))b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===c.css(this,"display")&&"none"===c.css(this,"float")&&(c.support.inlineBlockNeedsLayout?"inline"===K(this.nodeName)?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1):this.style.display="inline-block");c.isArray(a[d])&&((b.specialEasing=b.specialEasing||
{})[d]=a[d][1],a[d]=a[d][0])}null!=b.overflow&&(this.style.overflow="hidden");b.curAnim=c.extend({},a);c.each(a,function(d,e){var f=new c.fx(s,b,d);if(gb.test(e))f["toggle"===e?h?"show":"hide":e](a);else{var k=hb.exec(e),l=f.cur()||0;if(k){var n=parseFloat(k[2]),m=k[3]||"px";"px"!==m&&(c.style(s,d,(n||1)+m),l*=(n||1)/f.cur(),c.style(s,d,l+m));k[1]&&(n=("-="===k[1]?-1:1)*n+l);f.custom(l,n,m)}else f.custom(l,e,"")}});return!0})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var a=
d.length-1;0<=a;a--)d[a].elem===this&&(b&&d[a](!0),d.splice(a,1))});b||this.dequeue();return this}});c.each({slideDown:x("show",1),slideUp:x("hide",1),slideToggle:x("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(a,c,f){return this.animate(b,a,c,f)}});c.extend({speed:function(a,b,d){var e=a&&"object"===typeof a?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=
c.fx.off?0:"number"===typeof e.duration?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){!1!==e.queue&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,e){return c+e*a},swing:function(a,b,c,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+c}},timers:[],fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;b.orig||(b.orig={})}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,
this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&-1E4<a?a:0},custom:function(a,b,d){function e(a){return f.step(a)}var f=this,g=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;e()&&(c.timers.push(e)&&!ha)&&(ha=setInterval(g.tick,
g.interval))},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=!0;this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)!0!==
this.options.curAnim[e]&&(d=!1);if(d){if(null!=this.options.overflow&&!c.support.shrinkWrapBlocks){var f=this.elem,g=this.options;c.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var k in this.options.curAnim)c.style(this.elem,k,this.options.orig[k]);this.options.complete.call(this.elem)}return!1}a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":
"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update();return!0}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ha);ha=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&
null!=a.elem.style[a.prop]?a.elem.style[a.prop]=("width"===a.prop||"height"===a.prop?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});c.expr&&c.expr.filters&&(c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length});var ib=/^t(?:able|d|h)$/i,Ca=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in m.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(b){c.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===
b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!d||!c.contains(g,b))return d||{top:0,left:0};b=f.body;f=O(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&g.scrollLeft||b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(b){c.offset.setOffset(this,
a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,g=f.documentElement,k=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var l=b.offsetTop,h=b.offsetLeft;(b=b.parentNode)&&(b!==k&&b!==g)&&!(c.offset.supportsFixedPosition&&"fixed"===d.position);){d=f?f.getComputedStyle(b,null):b.currentStyle;l-=b.scrollTop;h-=b.scrollLeft;if(b===e){l+=b.offsetTop;h+=b.offsetLeft;
if(c.offset.doesNotAddBorder&&(!c.offset.doesAddBorderForTableAndCells||!ib.test(b.nodeName)))l+=parseFloat(d.borderTopWidth)||0,h+=parseFloat(d.borderLeftWidth)||0;e=b.offsetParent}c.offset.subtractsBorderForOverflowNotVisible&&"visible"!==d.overflow&&(l+=parseFloat(d.borderTopWidth)||0,h+=parseFloat(d.borderLeftWidth)||0)}if("relative"===d.position||"static"===d.position)l+=k.offsetTop,h+=k.offsetLeft;c.offset.supportsFixedPosition&&"fixed"===d.position&&(l+=Math.max(g.scrollTop,k.scrollTop),h+=
Math.max(g.scrollLeft,k.scrollLeft));return{top:l,left:h}};c.offset={initialize:function(){var a=m.body,b=m.createElement("div"),d,e,f,g=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=5!==e.offsetTop;this.doesAddBorderForTableAndCells=5===f.offsetTop;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=20===e.offsetTop||15===e.offsetTop;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=-5===e.offsetTop;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==g;a.removeChild(b);
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();c.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(c.css(a,"marginTop"))||0,d+=parseFloat(c.css(a,"marginLeft"))||0);return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");"static"===e&&(a.style.position="relative");var f=c(a),g=f.offset(),k=c.css(a,"top"),l=c.css(a,"left"),h="absolute"===e&&-1<c.inArray("auto",[k,l]),e={},n={};h&&(n=f.position());k=h?n.top:parseInt(k,
10)||0;l=h?n.left:parseInt(l,10)||0;c.isFunction(b)&&(b=b.call(a,d,g));null!=b.top&&(e.top=b.top-g.top+k);null!=b.left&&(e.left=b.left-g.left+l);"using"in b?b.using.call(a,e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ca.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],
"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||m.body;a&&!Ca.test(a.nodeName)&&"static"===c.css(a,"position");)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(b){var f=this[0],g;return!f?null:b!==p?this.each(function(){(g=O(this))?g.scrollTo(!a?b:c(g).scrollLeft(),a?b:c(g).scrollTop()):this[d]=b}):(g=O(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:
c.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(a){return this[0]?parseFloat(c.css(this[0],d,a?"margin":"border")):null};c.fn[d]=function(a){var f=this[0];if(!f)return null==a?null:this;if(c.isFunction(a))return this.each(function(b){var f=c(this);f[d](a.call(this,b,f[d]()))});if(c.isWindow(f))return"CSS1Compat"===
f.document.compatMode&&f.document.documentElement["client"+b]||f.document.body["client"+b];if(9===f.nodeType)return Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);if(a===p){var f=c.css(f,d),g=parseFloat(f);return c.isNaN(g)?f:g}return this.css(d,"string"===typeof a?a:a+"px")}})})(window);(function(q){function p(p){if("string"===typeof p.data){var z=p.handler,C=p.data.toLowerCase().split(" ");p.handler=function(p){if(!(this!==p.target&&(/textarea|select/i.test(p.target.nodeName)||"text"===p.target.type))){var u="keypress"!==p.type&&q.hotkeys.specialKeys[p.which],D=String.fromCharCode(p.which).toLowerCase(),A="",I={};p.altKey&&"alt"!==u&&(A+="alt+");p.ctrlKey&&"ctrl"!==u&&(A+="ctrl+");p.metaKey&&(!p.ctrlKey&&"meta"!==u)&&(A+="meta+");p.shiftKey&&"shift"!==u&&(A+="shift+");u?I[A+u]=
!0:(I[A+D]=!0,I[A+q.hotkeys.shiftNums[D]]=!0,"shift+"===A&&(I[q.hotkeys.shiftNums[D]]=!0));u=0;for(D=C.length;u<D;u++)if(I[C[u]])return z.apply(this,arguments)}}}}q.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",
109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}};q.each(["keydown","keyup","keypress"],function(){q.event.special[this]={add:p}})})(jQuery);!function(q){for(var p=0,u=["moz","ms","o","webkit"],z;!q.requestAnimationFrame&&(z=u.pop());)q.requestAnimationFrame=q[z+"RequestAnimationFrame"],q.cancelAnimationFrame=q[z+"CancelAnimationFrame"]||q[z+"CancelRequestAnimationFrame"];q.requestAnimationFrame||(q.requestAnimationFrame=function(q){var u=+new Date,z=16-(u-p),z=0<z?z:0;p=u+z;return setTimeout(function(){q(p)},z)},q.cancelAnimationFrame=clearTimeout)}(this);(function(){var q,p,u,z,C,W,M,D,A,I,J,N,Q,x,K,O,m,c,S,ca,E,T,Z,U,da,ka={}.hasOwnProperty,L=function(c,h){function s(){this.constructor=c}for(var m in h)ka.call(h,m)&&(c[m]=h[m]);s.prototype=h.prototype;c.prototype=new s;c.__super__=h.prototype;return c};u=$(window).width();p=$(window).height();C=0.5;D=450;J=[];x=[];K=[];E={};O=$("<canvas width='"+u+"' height='"+p+"'></canvas>");m=z=O.get(0);c=z.getContext("2d");$(window).resize(function(){u=$(window).width();p=$(window).height();m.width=u;return m.height=
p});z=function(n){function h(c,n,m,p,q,u,x,z){this.cx=c;this.cy=n;this.radius=m;this.setCircleBox();h.__super__.constructor.call(this,this.x,this.y,this.width,this.height,p,q,u,x,z)}L(h,n);h.prototype.setCircleBox=function(){this.width=this.height=2*this.radius;this.x=this.cx-this.radius;return this.y=this.cy-this.radius};h.prototype.update=function(){this.cx+=this.x_velocity;this.cy+=this.y_velocity;this.setCircleBox();!1===this.inBounds()&&(0>this.cx?this.cx=u+-1*this.cx:this.cx>u&&(this.cx=-1*
(this.cx-u)),0>this.cy?this.cy=p+-1*this.cy:this.cy>p&&(this.cy=-1*(this.cy-p)));h.__super__.update.call(this);return this.testViability()};h.prototype.testViability=function(){return this.active=this.active&&1<this.radius};h.prototype.draw=function(){c.fillStyle=this.fill_style.toString();c.strokeStyle=this.stroke_style;return c.drawCircle(0.5+this.cx|0,0.5+this.cy|0,0.5+this.radius|0)};h.prototype.inBounds=function(){return this.cx>-1*this.radius&&this.cx<u+this.radius&&this.cy>-1*this.radius&&
this.cy<p+this.radius};h.prototype.join=function(c){var h,n;if(!this.active||!c.active||1>this.radius||1>c.radius)return!1;h=n=!1;this.radius>c.radius?(n=this,h=c):this.radius<c.radius?(n=c,h=this):0.5<Math.random()?this.explode():c.explode();n&&h&&(c=h.getF(),h.radius-=1,h=h.getF(),n.addF(c-h));return this.testViability()};h.prototype.explode=function(){this.active=!1;return K.push(new M(this))};return h}(function(n){function h(c,n,m,p,q,u,x,z,A,C){this.width=m;this.height=p;h.__super__.constructor.call(this,
c,n,q,u,x,z,A,C)}L(h,n);h.prototype.inBounds=function(){return 0<=this.x&&this.x<=u&&0<=this.y&&this.y<=p};h.prototype.getF=function(){return this.radius*this.radius*Math.PI};h.prototype.setF=function(c){return this.radius=Math.sqrt(c/Math.PI)};h.prototype.addF=function(c){return this.setF(this.getF()+c)};h.prototype.update=function(){h.__super__.update.call(this);return this.testViability()};h.prototype.testViability=function(){return this.active=this.active&&inBounds()};h.prototype.draw=function(h,
n){null==h&&(h=!0);null==n&&(n=!1);h&&(c.fillStyle=this.fill_style,c.fillRect(this.x,this.y,this.width,this.height));if(n)return c.strokeStyle=this.stroke_style,c.strokeRect(this.x,this.y,this.width,this.height)};return h}(function(c){function h(c,n,m,p,q,u,x,z){this.x=c;this.y=n;this.x_velocity=null!=m?m:0;this.y_velocity=null!=p?p:0;h.__super__.constructor.call(this,z,q,u,x)}L(h,c);h.prototype.update=function(){this.x+=this.x_velocity;return this.y+=this.y_velocity};return h}(function(){return function(n,
h,m,p){this.active=null!=n?n:!0;this.fill_style=null!=h?h:"black";this.stroke_style=null!=m?m:"black";this.line_width=null!=p?p:2;c.fillStyle=this.fills_style;c.strokeStyle=this.stroke_style;c.lineWidth=this.line_width}}())));A=function(c){function h(c,n,m){h.__super__.constructor.call(this,c,n,m,0,0,new I(255,0,0,0.9),"black");this.age=this.last_bullet_shot=0}L(h,c);h.prototype.shoot=function(){var c,h;h=this.gunpoint();c=h[0];h=h[1];this.last_bullet_shot+10<this.age&&(J.push(new q(c,h,0.2*this.radius,
2*this.x_velocity,2*this.y_velocity)),this.last_bullet_shot=this.age);return this.radius*=0.99};h.prototype.gunpoint=function(){return[this.x+this.width/2,this.y+this.height/2]};h.prototype.update=function(){this.age++;keydown.left&&-4<=this.x_velocity&&(this.x_velocity-=0.1);keydown.right&&4>=this.x_velocity&&(this.x_velocity+=0.1);keydown.up&&-4<=this.y_velocity&&(this.y_velocity-=0.1);keydown.down&&4>=this.y_velocity&&(this.y_velocity+=0.1);this.setCircleBox();keydown.space&&this.shoot();return h.__super__.update.call(this)};
h.prototype.draw=function(){return h.__super__.draw.call(this,!0,!0)};return h}(z);M=function(c){function h(c){h.__super__.constructor.call(this,c.cx,c.cy,c.radius,0,0,c.fill_style,c.stroke_style)}L(h,c);h.prototype.update=function(){this.fill_style.a&&(this.fill_style.a-=0.05,0>=this.fill_style.a&&(this.active=!1));return this.radius+=10};h.prototype.draw=function(){return h.__super__.draw.call(this,!0,!0)};return h}(z);q=function(c){function h(c,n,m,p,q){null==m&&(m=3);h.__super__.constructor.call(this,
c,n,m,p,q,"yellow","black")}L(h,c);h.prototype.draw=function(){return h.__super__.draw.call(this,!0,!0)};return h}(z);W=function(c){function h(c){var n,m,q,x;null==c&&(c=10+10*Math.random());c>D&&(c=D);n=Math.random();0.25>n?(q=-c,n=Math.random()*u,x=C,m=-1*C+Math.random()*(1+C)):0.5>n?(q=p+c,n=Math.random()*u,x=-1*C,m=-1*C*Math.random()*(1+C)):(0.75>n?(q=Math.random()*p,n=-c,m=1):(q=Math.random()*p,n=u+c,m=-1*C),x=-1*C*Math.random()*(1+C));this.age=0;h.__super__.constructor.call(this,n,q,c,m,x,new I(Math.floor(255*
Math.random()),Math.floor(255*Math.random()),Math.floor(255*Math.random()),0.7),"rgb(0,0,255)")}L(h,c);h.prototype.update=function(){h.__super__.update.call(this);this.radius>E.radius&&(this.stroke_style="black");this.radius>=D&&(this.stroke_style="darkred");if(this.radius<E.radius)return this.stroke_style="blue"};h.prototype.draw=function(){return h.__super__.draw.call(this,!0,!0)};h.prototype.join=function(c){h.__super__.join.call(this,c);if(this.radius>D)return this.radius=D};return h}(z);Z=function(c){window.requestAnimationFrame(Z,
m);da();return Q()};da=function(){var c,h,m,q,v;c=function(c){var h,n,m,p;p=[];n=0;for(m=x.length;n<m;n++)h=x[n],h!==c&&(N(c,h)&&h.active&&c.active)&&p.push(c.join(h));return p};q=0;for(v=x.length;q<v;q++)m=x[q],c(m);c=0;for(q=x.length;c<q;c++)m=x[c],N(m,E)&&E.join(m);c=function(c){var h,n,p;p=[];h=0;for(n=x.length;h<n;h++)m=x[h],N(c,m)&&p.push((m.explode(),c.active=!1));return p};q=0;for(v=J.length;q<v;q++)h=J[q],c(h);c=function(){var c,h,n;n=[];c=0;for(h=x.length;c<h;c++)m=x[c],m.active&&n.push((m.update(),
m));return n}();x=null;x=c;K=function(){var c,h,n,m;m=[];h=0;for(n=K.length;h<n;h++)c=K[h],c.active&&m.push((c.update(),c));return m}();J=function(){var c,n,m;m=[];c=0;for(n=J.length;c<n;c++)h=J[c],h.active&&m.push((h.update(),h));return m}();E.update();1E3>x.length&&(c=Math.floor(1+Math.random()*ca(E)),0.05>Math.random()&&x.push(new W(c)));!1===E.active&&U();1.2*E.radius>p&&U()};Q=function(){var n,h,m,q;c.clearRect(0,0,u,p);E.draw();h=0;for(m=J.length;h<m;h++)n=J[h],n.draw();h=0;for(m=x.length;h<
m;h++)n=x[h],n.draw();q=[];h=0;for(m=K.length;h<m;h++)n=K[h],q.push(n.draw());return q};T=function(c,h){return c.x<h.x+h.width&&c.x+c.width>h.x&&c.y<h.y+h.height&&c.y+c.height>h.y};N=function(c,h){var m,p;return T(c,h)&&(m=h.cx-c.cx,p=h.cy-c.cy,m=Math.sqrt(m*m+p*p),0>m-c.radius-h.radius)?!0:!1};ca=function(c){return Math.floor(12*Math.sqrt(c.radius))};window.keydown={};S=function(c){return $.hotkeys.specialKeys[c.which]||String.fromCharCode(c.which).toLowerCase()};$(document).bind("keydown",function(c){return keydown[S(c)]=
!0});$(document).bind("keyup",function(c){return keydown[S(c)]=!1});Number.prototype.clamp=function(c,h){return Math.min(Math.max(this,c),h)};CanvasRenderingContext2D.prototype.fillCircle=function(c,h,m){this.beginPath();this.arc(c,h,m,0,2*Math.PI);return this.fill()};CanvasRenderingContext2D.prototype.strokeCircle=function(c,h,m){this.beginPath();this.arc(c,h,m,0,2*Math.PI);return this.stroke()};CanvasRenderingContext2D.prototype.drawCircle=function(c,h,m){this.beginPath();this.arc(c,h,m,0,2*Math.PI);
this.fill();return this.stroke()};I=function(c){function h(c,m,n,p){null==c&&(c=0);null==m&&(m=0);null==n&&(n=0);this.a=null!=p?p:1;h.__super__.constructor.call(this,c,m,n)}L(h,c);h.prototype.toString=function(){return"rgba("+this.r+","+this.g+","+this.b+","+this.a+")"};return h}(function(){function c(h,m,n){this.r=null!=h?h:0;this.g=null!=m?m:0;this.b=null!=n?n:0}c.prototype.toString=function(){return"rgba("+this.r+","+this.g+","+this.b+")"};return c}());$("#gamearea").append(O);console.log(E);U=
function(){x=[];J=[];K=[];return E=new A(u/2,p/2,20)};U();Z()}).call(this);