Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: chrome/test/data/chromeproxy/extension/popup_compiled.js

Issue 1438043006: Check in Data Saver extension into Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make all lines<80 characters, fixed remaining presubmit warnings Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/data/chromeproxy/extension/popup.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 /*
5 jQuery JavaScript Library v1.9.0
6 http://jquery.com/
7
8 Includes Sizzle.js
9 http://sizzlejs.com/
10
11 Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
12 Released under the MIT license
13 http://jquery.org/license
14
15 Date: 2013-1-14
16 */
17 (function(v,p){function m(a){var f=a.length,k=c.type(a);
18 return c.isWindow(a)?!1:1===a.nodeType&&f?!0:"array"===k||"function"
19 !==k&&(0===f||"number"==typeof f&&0<f&&f-1 in a)}function d(a){
20 var f=kb[a]={};return c.each(a.match(Z)||[],function(a,c){f[c]=!0}),f}
21 function n(a,f,k,b){if(c.acceptData(a)){var g,l,u=c.expando,
22 x="string"==typeof f,e=a.nodeType,d=e?c.cache:a,q=e?a[u]:a[u]&&u;
23 if(q&&d[q]&&(b||d[q].data)||!x||k!==p)return q||(e?a[u]=q=I.pop()
24 ||c.guid++:q=u),d[q]||(d[q]={},e||(d[q].toJSON=c.noop)),
25 ("object"==typeof f||"function"==typeof f)&&(b?d[q]=c.extend(d[q],f)
26 :d[q].data=c.extend(d[q].data,f)),g=d[q],b||(g.data||(g.data={}),g=g.data)
27 ,k!==p&&(g[c.camelCase(f)]=k),x?(l=g[f],null==l&&(l=g[c.camelCase(f)]))
28 :l=g,l}}function h(a,f,k){if(c.acceptData(a)){var b,g,l,u=a.nodeType,x=u?
29 c.cache:a,e=u?a[c.expando]:c.expando;if(x[e]){if(f&&(b=k?x[e]:x[e].data))
30 {c.isArray(f)?f=f.concat(c.map(f,c.camelCase)):f in b?f=[f]:(
31 f=c.camelCase(f),f=f in b?[f]:f.split(" "));g=0;for(l=f.length;l>g;g++)
32 delete b[f[g]];
33 if(!(k?B:c.isEmptyObject)(b))return}(k||(delete x[e].data,B(x[e])))&&(u?
34 c.cleanData([a],!0):c.support.deleteExpando||x!=x.window?delete x[e]:x[e]=null
35 )
36 }}}function r(a,f,k){if(k===p&&1===a.nodeType){var b="data-"+f.replace(
37 Jb,"-$1").toLowerCase();if(k=a.getAttribute(b),"string"==typeof k){try{
38 k="true"===k?!0:"false"===k?!1:"null"===k?null:+k+""===k?+k:Kb.test(k)?
39 c.parseJSON(k):k}catch(g){}c.data(a,f,k)}else k=p}return k}function B(
40 a){for(var f in a)if(("data"!==f||!c.isEmptyObject(a[f]))&&"toJSON"!==
41 f)return!1;return!0}function D(){return!0}function M(){return!1}
42 function E(a,f){do a=a[f];while(a&&1!==a.nodeType);return a}function A(
43 a,f,k){if(f=f||0,c.isFunction(f))return c.grep(a,function(a,c){var b=!!
44 f.call(a,c,a);return b===k});if(f.nodeType)return c.grep(a,function(a){
45 return a===f===k});if("string"==typeof f){var b=c.grep(a,function(a){
46 return 1===a.nodeType});if(Lb.test(f))return c.filter(f,b,!k);f=c.filter(
47 f,b)}return c.grep(a,function(a){return 0<=c.inArray(a,f)===k})}function V(
48 a){var f=
49 lb.split("|");a=a.createDocumentFragment();if(a.createElement)for(;f.length;)
50 f.pop();return a}function ra(a,f){return a.getElementsByTagName(f)[0]||
51 a.appendChild(a.ownerDocument.createElement(f))}function Q(a){
52 var f=a.getAttributeNode("type");return a.type=(f&&f.specified)+"/"+a.type,a}
53 function ea(a){var f=Mb.exec(a.type);return f?a.type=f[1]:
54 a.removeAttribute("type"),a}function R(a,f){for(var k,b=0;null!=(k=a[b]);b++)
55 c._data(k,"globalEval",!f||c._data(f[b],"globalEval"))}function sa(a,f){if
56 (1===
57 f.nodeType&&c.hasData(a)){var k,b,g;b=c._data(a);var l=c._data(f,b),u=b.events
58 ;
59 if(u)for(k in delete l.handle,l.events={},u)for(b=0,g=u[k].length;g>b;b++)
60 c.event.add(f,k,u[k][b]);l.data&&(l.data=c.extend({},l.data))}}function F(a,f)
61 {var k,b,g=0,l=a.getElementsByTagName!==p?a.getElementsByTagName(f||"*"):
62 a.querySelectorAll!==p?a.querySelectorAll(f||"*"):p;if(!l)for(l=[],
63 k=a.childNodes||a;null!=(b=k[g]);g++)!f||c.nodeName(b,f)?l.push(b):
64 c.merge(l,F(b,f));return f===p||f&&c.nodeName(a,f)?c.merge([a],
65 l):l}function Da(a){Ua.test(a.type)&&(a.defaultChecked=a.checked)}
66 function Ea(a,f){if(f in a)return f;for(
67 var c=f.charAt(0).toUpperCase()+f.slice(1),b=f,g=mb.length;g--;)
68 if(f=mb[g]+c,f in a)return f;return b}function S(a,f){return a=f||a,
69 "none"===c.css(a,"display")||!c.contains(a.ownerDocument,a)}function X(a,f){
70 for(var k,b=[],g=0,l=a.length;l>g;g++)k=a[g],k.style&&(b[g]=c._data(k,
71 "olddisplay"),f?(b[g]||"none"!==k.style.display||(k.style.display=""),""===
72 k.style.display&&S(k)&&(b[g]=c._data(k,"olddisplay",
73 Fa(k.nodeName)))):b[g]||S(k)||c._data(k,"olddisplay",c.css(k,"display")));
74 for(g=0;l>g;g++)k=a[g],k.style&&(f&&"none"!==k.style.display&&""!==
75 k.style.display||(k.style.display=f?b[g]||"":"none"));return a}function va(
76 a,f,c){return(a=Nb.exec(f))?Math.max(0,a[1]-(c||0))+(a[2]||"px"):f}
77 function Ga(a,f,k,b,g){f=k===(b?"border":"content")?4:"width"===f?1:0;
78 for(var l=0;4>f;f+=2)"margin"===k&&(l+=c.css(a,k+fa[f],!0,g)),b?(
79 "content"===k&&(l-=c.css(a,"padding"+fa[f],!0,g)),"margin"!==k&&(l-=c.css(a,
80 "border"+
81 fa[f]+"Width",!0,g))):(l+=c.css(a,"padding"+fa[f],!0,g),"padding"!==k&&(
82 l+=c.css(a,"border"+fa[f]+"Width",!0,g)));return l}function Ha(a,f,k){
83 var b=!0,g="width"===f?a.offsetWidth:a.offsetHeight,l=ga(a),
84 u=c.support.boxSizing&&"border-box"===c.css(a,"boxSizing",!1,l);if(0>=g||
85 null==g){if(g=Y(a,f,l),(0>g||null==g)&&(g=a.style[f]),Ia.test(g))return g;
86 b=u&&(c.support.boxSizingReliable||g===a.style[f]);g=parseFloat(g)||0}
87 return g+Ga(a,f,k||(u?"border":"content"),b,l)+"px"}function Fa(a){
88 var f=y,k=nb[a];
89 return k||(k=Ja(a,f),"none"!==k&&k||(wa=(wa||c(
90 "<iframe frameborder='0' width='0' height='0'/>").css(
91 "cssText","display:block !important")).appendTo(f.documentElement),
92 f=(wa[0].contentWindow||wa[0].contentDocument).document,f.write(
93 "<!doctype html><html><body>"),f.close(),k=Ja(a,f),wa.detach()),nb[a]=k),
94 k}function Ja(a,f){var k=c(f.createElement(a)).appendTo(f.body),
95 b=c.css(k[0],"display");return k.remove(),b}function xa(a,f,k,b){
96 var g;if(c.isArray(f))c.each(f,function(f,c){k||Ob.test(a)?b(a,c):xa(a+
97 "["+("object"==typeof c?f:"")+"]",c,k,b)});else if(k||"object"!==c.type(
98 f))b(a,f);else for(g in f)xa(a+"["+g+"]",f[g],k,b)}function Ka(a){
99 return function(f,k){"string"!=typeof f&&(k=f,f="*");var b,g=0,l=
100 f.toLowerCase().match(Z)||[];if(c.isFunction(k))for(;b=l[g++];)"+"===b[0]?
101 (b=b.slice(1)||"*",(a[b]=a[b]||[]).unshift(k)):(a[b]=a[b]||[]).push(k)
102 }}function La(a,f,k,b){function g(x){var e;return l[x]=!0,c.each(a[x]||[],
103 function(a,c){var x=c(f,k,b);return"string"!=typeof x||u||l[x]?u?!(e=x):p:(
104 f.dataTypes.unshift(x),
105 g(x),!1)}),e}var l={},u=a===Wa;return g(f.dataTypes[0])||!l["*"]&&g("*")}
106 function P(a,f){var k,b,g=c.ajaxSettings.flatOptions||{};for(k in f)
107 f[k]!==p&&((g[k]?a:b||(b={}))[k]=f[k]);return b&&c.extend(!0,a,b),a}
108 function ka(){try{return new v.XMLHttpRequest}catch(a){}}function ya()
109 {return setTimeout(function(){la=p}),la=c.now()}function b(a,f){c.each(
110 f,function(f,c){for(var b=(za[f]||[]).concat(za["*"]),l=0,u=b.length;
111 u>l&&!b[l].call(a,f,c);l++);})}function e(a,f,k){var t,g=0,l=Ma.length,
112 u=c.Deferred().always(function(){delete x.elem}),
113 x=function(){if(t)return!1;for(var f=la||ya(),f=Math.max(
114 0,e.startTime+e.duration-f),c=f/e.duration||0,c=1-c,k=0,b=e.tweens.length;
115 b>k;k++)e.tweens[k].run(c);return u.notifyWith(a,[e,c,f]),1>c&&b?f:(
116 u.resolveWith(a,[e]),!1)},e=u.promise({elem:a,props:c.extend({},f),
117 opts:c.extend(!0,{specialEasing:{}},k),originalProperties:f,
118 originalOptions:k,startTime:la||ya(),duration:k.duration,tweens:[],
119 createTween:function(f,k){var b=c.Tween(a,e.opts,f,k,e.opts.specialEasing[f]
120 ||e.opts.easing);return e.tweens.push(b),
121 b},stop:function(f){var c=0,k=f?e.tweens.length:0;if(t)return this;for(
122 t=!0;k>c;c++)e.tweens[c].run(1);return f?u.resolveWith(a,[e,f]):
123 u.rejectWith(a,[e,f]),this}});k=e.props;for(q(k,e.opts.specialEasing);
124 l>g;g++)if(f=Ma[g].call(e,a,k,e.opts))return f;return b(e,k),c.isFunction(
125 e.opts.start)&&e.opts.start.call(a,e),c.fx.timer(c.extend(x,{elem:a,
126 anim:e,queue:e.opts.queue})),e.progress(e.opts.progress).done(
127 e.opts.done,e.opts.complete).fail(e.opts.fail).always(e.opts.always)}
128 function q(a,f){var k,b,
129 g,l,u;for(k in a)if(b=c.camelCase(k),g=f[b],l=a[k],c.isArray(l)&&(
130 g=l[1],l=a[k]=l[0]),k!==b&&(a[b]=l,delete a[k]),u=c.cssHooks[b],
131 u&&"expand"in u)for(k in l=u.expand(l),delete a[b],l)k in a||(a[k]=l[k],
132 f[k]=g);else f[b]=g}function w(a,f,k){var b,g,l,u,x,e,d=this,q=a.style,h={},
133 m=[],n=a.nodeType&&S(a);k.queue||(x=c._queueHooks(a,"fx"),null==x.unqueued&&(x
134 .unqueued=0,e=x.empty.fire,x.empty.fire=function(){x.unqueued||e()}),
135 x.unqueued++,d.always(function(){d.always(function(){x.unqueued--;c.queue(a,
136 "fx").length||x.empty.fire()})}));1===a.nodeType&&("height"in f||"width"in f)
137 &&(k.overflow=[q.overflow,q.overflowX,q.overflowY],"inline"===c.css(a
138 ,"display")&&"none"===c.css(a,"float")&&(c.support.inlineBlockNeedsLayout&
139 &"inline"!==Fa(a.nodeName)?q.zoom=1:q.display="inline-block"));k.overflow&&(q
140 .overflow="hidden",c.support.shrinkWrapBlocks||d.done(function(){q.overflow=k
141 .overflow[0];q.overflowX=k.overflow[1];q.overflowY=k.overflow[2]}));for(b in f
142 )(l=f[b],Qb.exec(l))&&(delete f[b],g=g||"toggle"===
143 l,l!==(n?"hide":"show"))&&m.push(b);if(f=m.length)for(l=c._data(a,"fxshow")||c
144 ._data(a,"fxshow",{}),("hidden"in l)&&(n=l.hidden),g&&(l.hidden=!n),n?c(a)
145 .show():d.done(function(){c(a).hide()}),d.done(function(){var f;c._removeData
146 (a,"fxshow");for(f in h)c.style(a,f,h[f])}),b=0;f>b;b++)g=m[b],u=d.createTween
147 (g,n?l[g]:0),h[g]=l[g]||c.style(a,g),g in l||(l[g]=u.start,n&&(u.end=u.start,u
148 .start="width"===g||"height"===g?1:0))}function z(a,f,c,b,g){return new z
149 .prototype.init(a,f,c,b,g)}function J(a,f){var c,
150 b={height:a},g=0;for(f=f?1:0;4>g;g+=2-f)c=fa[g],b["margin"+c]=b["padding"+c]=a
151 ;return f&&(b.opacity=b.width=a),b}function N(a){return c.isWindow(a)?a:9===a
152 .nodeType?a.defaultView||a.parentWindow:!1}var O,G,y=v.document,Na=v.location
153 ,Aa=v.jQuery,Rb=v.$,ha={},I=[],Oa=I.concat,Xa=I.push,aa=I.slice,ob=I.indexOf
154 ,Sb=ha.toString,Ya=ha.hasOwnProperty,Za="1.9.0".trim,c=function(a,f){return
155 new c.fn.init(a,f,O)},Pa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source
156 ,Z=/\S+/g,Tb=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
157 Ub=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,pb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Vb=/^[\]
158 ,:{}\s]*$/,Wb=/(?:^|:|,)(?:\s*\[)+/g,Xb=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g
159 ,Yb=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g
160 ,Zb=/^-ms-/,$b=/-([\da-z])/gi,ac=function(a,f){return f.toUpperCase()}
161 ,Qa=function(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",Qa
162 ,!1),c.ready()):"complete"===y.readyState&&(y.detachEvent("onreadystatechange"
163 ,Qa),c.ready())};c.fn=c.prototype={jquery:"1.9.0",constructor:c,
164 init:function(a,f,k){var b,g;if(!a)return this;if("string"==typeof a){if
165 (b="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:Ub
166 .exec(a),!b||!b[1]&&f)return!f||f.jquery?(f||k).find(a):this.constructor(f)
167 .find(a);if(b[1]){if(f=f instanceof c?f[0]:f,c.merge(this,c.parseHTML(b[1],f&
168 &f.nodeType?f.ownerDocument||f:y,!0)),pb.test(b[1])&&c.isPlainObject(f))for(b
169 in f)c.isFunction(this[b])?this[b](f[b]):this.attr(b,f[b]);return this}if(g=y
170 .getElementById(b[2]),g&&g.parentNode){if(g.id!==
171 b[2])return k.find(a);this.length=1;this[0]=g}return this.context=y,this
172 .selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this
173 ):c.isFunction(a)?k.ready(a):(a.selector!==p&&(this.selector=a.selector,this
174 .context=a.context),c.makeArray(a,this))},selector:"",length:0,size:function()
175 {return this.length},toArray:function(){return aa.call(this)},get:function(a)
176 {return null==a?this.toArray():0>a?this[this.length+a]:this[a]}
177 ,pushStack:function(a){a=c.merge(this.constructor(),a);return a.prevObject=
178 this,a.context=this.context,a},each:function(a,f){return c.each(this,a,f)}
179 ,ready:function(a){return c.ready.promise().done(a),this},slice:function()
180 {return this.pushStack(aa.apply(this,arguments))},first:function(){return this
181 .eq(0)},last:function(){return this.eq(-1)},eq:function(a){var f=this.length
182 ;a=+a+(0>a?f:0);return this.pushStack(0<=a&&f>a?[this[a]]:[])},map:function(a)
183 {return this.pushStack(c.map(this,function(f,c){return a.call(f,c,f)}))}
184 ,end:function(){return this.prevObject||this.constructor(null)},
185 push:Xa,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn
186 .extend=function(){var a,f,k,b,g,l,u=arguments[0]||{},x=1,e=arguments.length
187 ,d=!1;"boolean"==typeof u&&(d=u,u=arguments[1]||{},x=2);"object"==typeof u||c
188 .isFunction(u)||(u={});for(e===x&&(u=this,--x);e>x;x++)if(null!=(a=arguments[x
189 ]))for(f in a)k=u[f],b=a[f],u!==b&&(d&&b&&(c.isPlainObject(b)||(g=c.isArray(b)
190 ))?(g?(g=!1,l=k&&c.isArray(k)?k:[]):l=k&&c.isPlainObject(k)?k:{},u[f]=c.extend
191 (d,l,b)):b!==p&&(u[f]=b));return u};c.extend({noConflict:function(a){return v
192 .$===
193 c&&(v.$=Rb),a&&v.jQuery===c&&(v.jQuery=Aa),c},isReady:!1,readyWait:1
194 ,holdReady:function(a){a?c.readyWait++:c.ready(!0)},ready:function(a){if
195 (!0===a?!--c.readyWait:!c.isReady){if(!y.body)return setTimeout(c.ready);c
196 .isReady=!0;!0!==a&&0<--c.readyWait||(G.resolveWith(y,[c]),c.fn.trigger&&c(y)
197 .trigger("ready").off("ready"))}},isFunction:function(a){return"function"===c
198 .type(a)},isArray:Array.isArray||function(a){return"array"===c.type(a)}
199 ,isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a)
200 {return!isNaN(parseFloat(a))&&
201 isFinite(a)},type:function(a){return null==a?a+"":"object"==typeof a|
202 |"function"==typeof a?ha[Sb.call(a)]||"object":typeof a}
203 ,isPlainObject:function(a){if(!a||"object"!==c.type(a)||a.nodeType||c.isWindow
204 (a))return!1;try{if(a.constructor&&!Ya.call(a,"constructor")&&!Ya.call(a
205 .constructor.prototype,"isPrototypeOf"))return!1}catch(f){return!1}for(var b
206 in a);return b===p||Ya.call(a,b)},isEmptyObject:function(a){for(var f in a
207 )return!1;return!0},error:function(a){throw Error(a);},parseHTML:function(a,
208 f,b){if(!a||"string"!=typeof a)return null;"boolean"==typeof f&&(b=f,f=!1);f=f
209 ||y;var t=pb.exec(a);b=!b&&[];return t?[f.createElement(t[1])]:(t=c
210 .buildFragment([a],f,b),b&&c(b).remove(),c.merge([],t.childNodes))}
211 ,parseJSON:function(a){return v.JSON&&v.JSON.parse?v.JSON.parse(a
212 ):null===a?a:"string"==typeof a&&(a=c.trim(a),a&&Vb.test(a.replace(Xb,"@")
213 .replace(Yb,"]").replace(Wb,"")))?Function("return "+a)():(c.error("Invalid
214 JSON: "+a),p)},parseXML:function(a){var f,b;if(!a||"string"!=typeof a)return
215 null;
216 try{v.DOMParser?(b=new DOMParser,f=b.parseFromString(a,"text/xml")):(f=new
217 ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(a))}catch(t){f=p
218 }return f&&f.documentElement&&!f.getElementsByTagName("parsererror").length||c
219 .error("Invalid XML: "+a),f},noop:function(){},globalEval:function(a){a&&c
220 .trim(a)&&(v.execScript||function(a){v.eval.call(v,a)})(a)},camelCase:function
221 (a){return a.replace(Zb,"ms-").replace($b,ac)},nodeName:function(a,f){return a
222 .nodeName&&a.nodeName.toLowerCase()===f.toLowerCase()},
223 each:function(a,f,c){var b,g=0,l=a.length,u=m(a);if(c)if(u)for(;l>g&&(b=f
224 .apply(a[g],c),!1!==b);g++);else for(g in a){if(b=f.apply(a[g],c),!1===b)break
225 }else if(u)for(;l>g&&(b=f.call(a[g],g,a[g]),!1!==b);g++);else for(g in a)if
226 (b=f.call(a[g],g,a[g]),!1===b)break;return a},trim:Za&&!Za.call("\ufeff\u00a0"
227 )?function(a){return null==a?"":Za.call(a)}:function(a){return null==a?"":
228 (a+"").replace(Tb,"")},makeArray:function(a,f){var b=f||[];return null!=a&&(m
229 (Object(a))?c.merge(b,"string"==typeof a?[a]:a):
230 Xa.call(b,a)),b},inArray:function(a,f,c){var b;if(f){if(ob)return ob.call(f,a
231 ,c);b=f.length;for(c=c?0>c?Math.max(0,b+c):c:0;b>c;c++)if(c in f&&f[c]===a
232 )return c}return-1},merge:function(a,f){var c=f.length,b=a.length,g=0;if
233 ("number"==typeof c)for(;c>g;g++)a[b++]=f[g];else for(;f[g]!==p;)a[b++]=f[g++]
234 ;return a.length=b,a},grep:function(a,f,c){var b,g=[],l=0,u=a.length;for(c=!!c
235 ;u>l;l++)b=!!f(a[l],l),c!==b&&g.push(a[l]);return g},map:function(a,f,c){var b
236 ,g=0,l=a.length;b=m(a);var u=[];if(b)for(;l>
237 g;g++)b=f(a[g],g,c),null!=b&&(u[u.length]=b);else for(g in a)b=f(a[g],g,c)
238 ,null!=b&&(u[u.length]=b);return Oa.apply([],u)},guid:1,proxy:function(a,f)
239 {var b,t,g;return"string"==typeof f&&(b=a[f],f=a,a=b),c.isFunction(a)?(t=aa
240 .call(arguments,2),g=function(){return a.apply(f||this,t.concat(aa.call
241 (arguments)))},g.guid=a.guid=a.guid||c.guid++,g):p},access:function(a,f,b,t,g
242 ,l,u){var x=0,e=a.length,d=null==b;if("object"===c.type(b))for(x in g=!0,b)c
243 .access(a,f,x,b[x],!0,l,u);else if(t!==p&&(g=!0,c.isFunction(t)||
244 (u=!0),d&&(u?(f.call(a,t),f=null):(d=f,f=function(a,f,b){return d.call(c(a),b)
245 })),f))for(;e>x;x++)f(a[x],b,u?t:t.call(a[x],x,f(a[x],b)));return g?a:d?f.call
246 (a):e?f(a[0],b):l},now:function(){return(new Date).getTime()}});c.ready
247 .promise=function(a){if(!G)if(G=c.Deferred(),"complete"===y.readyState
248 )setTimeout(c.ready);else if(y.addEventListener)y.addEventListener
249 ("DOMContentLoaded",Qa,!1),v.addEventListener("load",c.ready,!1);else{y
250 .attachEvent("onreadystatechange",Qa);v.attachEvent("onload",c.ready);
251 var f=!1;try{f=null==v.frameElement&&y.documentElement}catch(b){}f&&f.doScroll
252 &&function g(){if(!c.isReady){try{f.doScroll("left")}catch(a){return
253 setTimeout(g,50)}c.ready()}}()}return G.promise(a)};c.each("Boolean Number
254 String Function Array Date RegExp Object Error".split(" "),function(a,f){ha["
255 [object "+f+"]"]=f.toLowerCase()});O=c(y);var kb={};c.Callbacks=function(a)
256 {a="string"==typeof a?kb[a]||d(a):c.extend({},a);var f,b,t,g,l,u,x=[],e=!a
257 .once&&[],q=function(c){f=a.memory&&c;b=!0;u=g||0;g=0;
258 l=x.length;for(t=!0;x&&l>u;u++)if(!1===x[u].apply(c[0],c[1])&&a.stopOnFalse)
259 {f=!1;break}t=!1;x&&(e?e.length&&q(e.shift()):f?x=[]:h.disable())},h=
260 {add:function(){if(x){var b=x.length;(function Pb(f){c.each(f,function(f,b)
261 {var k=c.type(b);"function"===k?a.unique&&h.has(b)||x.push(b):b&&b.length&
262 &"string"!==k&&Pb(b)})})(arguments);t?l=x.length:f&&(g=b,q(f))}return this}
263 ,remove:function(){return x&&c.each(arguments,function(a,f){for(var b;-1<(b=c
264 .inArray(f,x,b));)x.splice(b,1),t&&(l>=b&&l--,u>=b&&u--)}),
265 this},has:function(a){return-1<c.inArray(a,x)},empty:function(){return x=[]
266 ,this},disable:function(){return x=e=f=p,this},disabled:function(){return!x}
267 ,lock:function(){return e=p,f||h.disable(),this},locked:function(){return!e}
268 ,fireWith:function(a,f){return f=f||[],f=[a,f.slice?f.slice():f],!x||b&&!e||
269 (t?e.push(f):q(f)),this},fire:function(){return h.fireWith(this,arguments)
270 ,this},fired:function(){return!!b}};return h};c.extend({Deferred:function(a)
271 {var f=[["resolve","done",c.Callbacks("once memory"),
272 "resolved"],["reject","fail",c.Callbacks("once memory"),"rejected"],["notify"
273 ,"progress",c.Callbacks("memory")]],b="pending",t={state:function(){return b}
274 ,always:function(){return g.done(arguments).fail(arguments),this}
275 ,then:function(){var a=arguments;return c.Deferred(function(b){c.each(f
276 ,function(f,k){var e=k[0],d=c.isFunction(a[f])&&a[f];g[k[1]](function(){var
277 a=d&&d.apply(this,arguments);a&&c.isFunction(a.promise)?a.promise().done(b
278 .resolve).fail(b.reject).progress(b.notify):b[e+"With"](this===
279 t?b.promise():this,d?[a]:arguments)})});a=null}).promise()},promise:function(a
280 ){return null!=a?c.extend(a,t):t}},g={};return t.pipe=t.then,c.each(f,function
281 (a,c){var e=c[2],d=c[3];t[c[1]]=e.add;d&&e.add(function(){b=d},f[1^a][2]
282 .disable,f[2][2].lock);g[c[0]]=function(){return g[c[0]+"With"]
283 (this===g?t:this,arguments),this};g[c[0]+"With"]=e.fireWith}),t.promise(g),a&
284 &a.call(g,g),g},when:function(a){var f,b,t,g=0,l=aa.call(arguments),u=l.length
285 ,e=1!==u||a&&c.isFunction(a.promise)?u:0,d=1===e?a:c.Deferred(),
286 q=function(a,c,b){return function(k){c[a]=this;b[a]=1<arguments.length?aa.call
287 (arguments):k;b===f?d.notifyWith(c,b):--e||d.resolveWith(c,b)}};if(1<u)for
288 (f=Array(u),b=Array(u),t=Array(u);u>g;g++)l[g]&&c.isFunction(l[g].promise)?l[g
289 ].promise().done(q(g,t,l)).fail(d.reject).progress(q(g,b,f)):--e;return e||d
290 .resolveWith(t,l),d.promise()}});c.support=function(){var a,f,b,t,g,l,u,e=y
291 .createElement("div");if(e.setAttribute("className","t"),e.innerHTML=
292 " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",
293 f=e.getElementsByTagName("*"),b=e.getElementsByTagName("a")[0],!f||!b||!f
294 .length)return{};t=y.createElement("select");g=t.appendChild(y.createElement
295 ("option"));f=e.getElementsByTagName("input")[0];b.style.cssText="top:1px
296 ;float:left;opacity:.5";a={getSetAttribute:"t"!==e.className
297 ,leadingWhitespace:3===e.firstChild.nodeType,tbody:!e.getElementsByTagName
298 ("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length
299 ,style:/top/.test(b.getAttribute("style")),hrefNormalized:"/a"===b
300 .getAttribute("href"),
301 opacity:/^0.5/.test(b.style.opacity),cssFloat:!!b.style.cssFloat,checkOn:!!f
302 .value,optSelected:g.selected,enctype:!!y.createElement("form").enctype
303 ,html5Clone:"<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML
304 ,boxModel:"CSS1Compat"===y.compatMode,deleteExpando:!0,noCloneEvent:!0
305 ,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0
306 ,boxSizingReliable:!0,pixelPosition:!1};f.checked=!0;a.noCloneChecked=f
307 .cloneNode(!0).checked;t.disabled=!0;a.optDisabled=!g.disabled;try{delete e
308 .test}catch(d){a.deleteExpando=
309 !1}f=y.createElement("input");f.setAttribute("value","");a.input=""===f
310 .getAttribute("value");f.value="t";f.setAttribute("type","radio");a
311 .radioValue="t"===f.value;f.setAttribute("checked","t");f.setAttribute("name"
312 ,"t");b=y.createDocumentFragment();b.appendChild(f);a.appendChecked=f.checked
313 ;a.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked;e.attachEvent&&
314 (e.attachEvent("onclick",function(){a.noCloneEvent=!1}),e.cloneNode(!0).click(
315 ));for(u in{submit:!0,change:!0,focusin:!0})e.setAttribute(b=
316 "on"+u,"t"),a[u+"Bubbles"]=b in v||!1===e.attributes[b].expando;return e.style
317 .backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",a
318 .clearCloneStyle="content-box"===e.style.backgroundClip,c(function(){var f,b,c
319 ,k=y.getElementsByTagName("body")[0];k&&(f=y.createElement("div"),f.style
320 .cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px
321 ;margin-top:1px",k.appendChild(f).appendChild(e),e
322 .innerHTML="<table><tr><td></td><td>t</td></tr></table>",c=e
323 .getElementsByTagName("td"),
324 c[0].style.cssText="padding:0;margin:0;border:0;display:none",l=0===c[0]
325 .offsetHeight,c[0].style.display="",c[1].style.display="none",a
326 .reliableHiddenOffsets=l&&0===c[0].offsetHeight,e.innerHTML="",e.style
327 .cssText="box-sizing:border-box;-moz-box-sizing:border-box
328 ;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px
329 ;margin-top:1%;position:absolute;top:1%;",a.boxSizing=4===e.offsetWidth,a
330 .doesNotIncludeMarginInBodyOffset=1!==k.offsetTop,v.getComputedStyle&&(a
331 .pixelPosition="1%"!==
332 (v.getComputedStyle(e,null)||{}).top,a.boxSizingReliable="4px"===(v
333 .getComputedStyle(e,null)||{width:"4px"}).width,b=e.appendChild(y
334 .createElement("div")),b.style.cssText=e.style.cssText="padding:0;margin:0
335 ;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box
336 ;-webkit-box-sizing:content-box;",b.style.marginRight=b.style.width="0",e
337 .style.width="1px",a.reliableMarginRight=!parseFloat((v.getComputedStyle(b
338 ,null)||{}).marginRight)),e.style.zoom!==p&&(e.innerHTML="",e.style.cssText=
339 "padding:0;margin:0;border:0;display:block;box-sizing:content-box
340 ;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;width:1px
341 ;padding:1px;display:inline;zoom:1",a.inlineBlockNeedsLayout=3===e.offsetWidth
342 ,e.style.display="block",e.innerHTML="<div></div>",e.firstChild.style
343 .width="5px",a.shrinkWrapBlocks=3!==e.offsetWidth,k.style.zoom=1),k
344 .removeChild(f),e=null)}),f=t=b=g=b=f=null,a}();var Kb=/(?:\{[\s\S]*\}|\[[\s\S
345 ]*\])$/,Jb=/([A-Z])/g;c.extend({cache:{},expando:"jQuery"+("1.9.0"+Math.random
346 ()).replace(/\D/g,
347 ""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
348 ,applet:!0},hasData:function(a){return a=a.nodeType?c.cache[a[c.expando]]:a[c
349 .expando],!!a&&!B(a)},data:function(a,f,b){return n(a,f,b,!1)}
350 ,removeData:function(a,f){return h(a,f,!1)},_data:function(a,f,b){return n(a,f
351 ,b,!0)},_removeData:function(a,f){return h(a,f,!0)},acceptData:function(a){var
352 f=a.nodeName&&c.noData[a.nodeName.toLowerCase()];return!f||!0!==f&&a
353 .getAttribute("classid")===f}});c.fn.extend({data:function(a,f){var b,
354 t,g=this[0],l=0,e=null;if(a===p){if(this.length&&(e=c.data(g),1===g.nodeType&
355 &!c._data(g,"parsedAttrs"))){for(b=g.attributes;b.length>l;l++)t=b[l].name,t
356 .indexOf("data-")||(t=c.camelCase(t.substring(5)),r(g,t,e[t]));c._data(g
357 ,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){c
358 .data(this,a)}):c.access(this,function(f){return f===p?g?r(g,a,c.data(g,a)
359 ):null:(this.each(function(){c.data(this,a,f)}),p)},null,f,1<arguments.length
360 ,null,!0)},removeData:function(a){return this.each(function(){c.removeData
361 (this,
362 a)})}});c.extend({queue:function(a,f,b){var t;return a?(f=(f||"fx")+"queue"
363 ,t=c._data(a,f),b&&(!t||c.isArray(b)?t=c._data(a,f,c.makeArray(b)):t.push(b))
364 ,t||[]):p},dequeue:function(a,f){f=f||"fx";var b=c.queue(a,f),t=b.length,g=b
365 .shift(),l=c._queueHooks(a,f),e=function(){c.dequeue(a,f)};"inprogress"===g&&
366 (g=b.shift(),t--);(l.cur=g)&&("fx"===f&&b.unshift("inprogress"),delete l.stop
367 ,g.call(a,e,l));!t&&l&&l.empty.fire()},_queueHooks:function(a,f){var
368 b=f+"queueHooks";return c._data(a,b)||c._data(a,b,
369 {empty:c.Callbacks("once memory").add(function(){c._removeData(a,f+"queue");c
370 ._removeData(a,b)})})}});c.fn.extend({queue:function(a,f){var b=2
371 ;return"string"!=typeof a&&(f=a,a="fx",b--),b>arguments.length?c.queue(this[0]
372 ,a):f===p?this:this.each(function(){var b=c.queue(this,a,f);c._queueHooks(this
373 ,a);"fx"===a&&"inprogress"!==b[0]&&c.dequeue(this,a)})},dequeue:function(a)
374 {return this.each(function(){c.dequeue(this,a)})},delay:function(a,f){return
375 a=c.fx?c.fx.speeds[a]||a:a,f=f||"fx",this.queue(f,function(f,
376 b){var c=setTimeout(f,a);b.stop=function(){clearTimeout(c)}})}
377 ,clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,f)
378 {var b,t=1,g=c.Deferred(),l=this,e=this.length,d=function(){--t||g.resolveWith
379 (l,[l])};"string"!=typeof a&&(f=a,a=p);for(a=a||"fx";e--;)(b=c._data(l[e]
380 ,a+"queueHooks"))&&b.empty&&(t++,b.empty.add(d));return d(),g.promise(f)}})
381 ;var ma,qb,$a=/[\t\r\n]/g,bc=/\r/g,cc=/^(?:input|select|textarea|button|object
382 )$/i,dc=/^(?:a|area)$/i,rb=/^(?:checked|selected|autofocus|autoplay|async
383 |controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped
384 )$/i,
385 ab=/^(?:checked|selected)$/i,ia=c.support.getSetAttribute,bb=c.support.input;c
386 .fn.extend({attr:function(a,f){return c.access(this,c.attr,a,f,1<arguments
387 .length)},removeAttr:function(a){return this.each(function(){c.removeAttr(this
388 ,a)})},prop:function(a,f){return c.access(this,c.prop,a,f,1<arguments.length)}
389 ,removeProp:function(a){return a=c.propFix[a]||a,this.each(function(){try{this
390 [a]=p,delete this[a]}catch(f){}})},addClass:function(a){var f,b,t,g,l,e=0
391 ,d=this.length;f="string"==typeof a&&a;if(c.isFunction(a))return this.each
392 (function(f){c(this).addClass(a.call(this,
393 f,this.className))});if(f)for(f=(a||"").match(Z)||[];d>e;e++)if(b=this[e]
394 ,t=1===b.nodeType&&(b.className?(" "+b.className+" ").replace($a," "):" "))
395 {for(l=0;g=f[l++];)0>t.indexOf(" "+g+" ")&&(t+=g+" ");b.className=c.trim(t)
396 }return this},removeClass:function(a){var f,b,t,g,l,e=0,d=this.length
397 ;f=0===arguments.length||"string"==typeof a&&a;if(c.isFunction(a))return this
398 .each(function(f){c(this).removeClass(a.call(this,f,this.className))});if(f
399 )for(f=(a||"").match(Z)||[];d>e;e++)if(b=this[e],t=1===b.nodeType&&
400 (b.className?(" "+b.className+" ").replace($a," "):"")){for(l=0;g=f[l++];)for(
401 ;0<=t.indexOf(" "+g+" ");)t=t.replace(" "+g+" "," ");b.className=a?c.trim(t
402 ):""}return this},toggleClass:function(a,f){var b=typeof a,t="boolean"==typeof
403 f;return c.isFunction(a)?this.each(function(b){c(this).toggleClass(a.call
404 (this,b,this.className,f),f)}):this.each(function(){if("string"===b)for(var g
405 ,l=0,e=c(this),d=f,q=a.match(Z)||[];g=q[l++];)d=t?d:!e.hasClass(g),e
406 [d?"addClass":"removeClass"](g);else("undefined"===
407 b||"boolean"===b)&&(this.className&&c._data(this,"__className__",this
408 .className),this.className=this.className||!1===a?"":c._data(this
409 ,"__className__")||"")})},hasClass:function(a){a=" "+a+" ";for(var f=0,b=this
410 .length;b>f;f++)if(1===this[f].nodeType&&0<=(" "+this[f].className+" ")
411 .replace($a," ").indexOf(a))return!0;return!1},val:function(a){var f,b,t
412 ,g=this[0];if(arguments.length)return t=c.isFunction(a),this.each(function(b)
413 {var k,g=c(this);1===this.nodeType&&(k=t?a.call(this,b,g.val()):a,null==
414 k?k="":"number"==typeof k?k+="":c.isArray(k)&&(k=c.map(k,function(a){return
415 null==a?"":a+""})),f=c.valHooks[this.type]||c.valHooks[this.nodeName
416 .toLowerCase()],f&&"set"in f&&f.set(this,k,"value")!==p||(this.value=k))});if
417 (g)return f=c.valHooks[g.type]||c.valHooks[g.nodeName.toLowerCase()],f&
418 &"get"in f&&(b=f.get(g,"value"))!==p?b:(b=g.value,"string"==typeof b?b.replace
419 (bc,""):null==b?"":b)}});c.extend({valHooks:{option:{get:function(a){var f=a
420 .attributes.value;return!f||f.specified?a.value:a.text}},
421 select:{get:function(a){for(var f,b=a.options,t=a.selectedIndex
422 ,g="select-one"===a.type||0>t,l=g?null:[],e=g?t+1:b.length,d=0>t?e:g?t:0;e>d
423 ;d++)if(f=b[d],!(!f.selected&&d!==t||(c.support.optDisabled?f
424 .disabled:null!==f.getAttribute("disabled"))||f.parentNode.disabled&&c
425 .nodeName(f.parentNode,"optgroup"))){if(a=c(f).val(),g)return a;l.push(a)
426 }return l},set:function(a,f){var b=c.makeArray(f);return c(a).find("option")
427 .each(function(){this.selected=0<=c.inArray(c(this).val(),b)}),b.length||(a
428 .selectedIndex=
429 -1),b}}},attr:function(a,f,b){var t,g,l,e=a.nodeType;if(a&&3!==e&&8!==e&&2!==e
430 )return a.getAttribute===p?c.prop(a,f,b):(l=1!==e||!c.isXMLDoc(a),l&&(f=f
431 .toLowerCase(),g=c.attrHooks[f]||(rb.test(f)?qb:ma)),b===p?g&&l&&"get"in g&
432 &null!==(t=g.get(a,f))?t:(a.getAttribute!==p&&(t=a.getAttribute(f))
433 ,null==t?p:t):null!==b?g&&l&&"set"in g&&(t=g.set(a,b,f))!==p?t:(a.setAttribute
434 (f,b+""),b):(c.removeAttr(a,f),p))},removeAttr:function(a,f){var b,t,g=0,e=f&
435 &f.match(Z);if(e&&1===a.nodeType)for(;b=e[g++];)t=c.propFix[b]||
436 b,rb.test(b)?!ia&&ab.test(b)?a[c.camelCase("default-"+b)]=a[t]=!1:a[t]=!1:c
437 .attr(a,b,""),a.removeAttribute(ia?b:t)},attrHooks:{type:{set:function(a,f){if
438 (!c.support.radioValue&&"radio"===f&&c.nodeName(a,"input")){var b=a.value
439 ;return a.setAttribute("type",f),b&&(a.value=b),f}}}},propFix:
440 {tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className"
441 ,maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding"
442 ,rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder"
443 ,
444 contenteditable:"contentEditable"},prop:function(a,f,b){var t,g,e,u=a.nodeType
445 ;if(a&&3!==u&&8!==u&&2!==u)return e=1!==u||!c.isXMLDoc(a),e&&(f=c.propFix[f]|
446 |f,g=c.propHooks[f]),b!==p?g&&"set"in g&&(t=g.set(a,b,f))!==p?t:a[f]=b:g&
447 &"get"in g&&null!==(t=g.get(a,f))?t:a[f]},propHooks:{tabIndex:{get:function(a)
448 {var f=a.getAttributeNode("tabindex");return f&&f.specified?parseInt(f.value
449 ,10):cc.test(a.nodeName)||dc.test(a.nodeName)&&a.href?0:p}}}});qb=
450 {get:function(a,f){var b=c.prop(a,f),t="boolean"==typeof b&&
451 a.getAttribute(f);return(b="boolean"==typeof b?bb&&ia?null!=t:ab.test(f)?a[c
452 .camelCase("default-"+f)]:!!t:a.getAttributeNode(f))&&!1!==b.value?f
453 .toLowerCase():p},set:function(a,f,b){return!1===f?c.removeAttr(a,b):bb&&ia|
454 |!ab.test(b)?a.setAttribute(!ia&&c.propFix[b]||b,b):a[c.camelCase("default-"+b
455 )]=a[b]=!0,b}};bb&&ia||(c.attrHooks.value={get:function(a,f){var b=a
456 .getAttributeNode(f);return c.nodeName(a,"input")?a.defaultValue:b&&b
457 .specified?b.value:p},set:function(a,f,b){return c.nodeName(a,"input")?
458 (a.defaultValue=f,p):ma&&ma.set(a,f,b)}});ia||(ma=c.valHooks.button=
459 {get:function(a,f){var b=a.getAttributeNode(f);return b&&("id"===f||"name"===f
460 ||"coords"===f?""!==b.value:b.specified)?b.value:p},set:function(a,f,b){var
461 c=a.getAttributeNode(b);return c||a.setAttributeNode(c=a.ownerDocument
462 .createAttribute(b)),c.value=f+="","value"===b||f===a.getAttribute(b)?f:p}},c
463 .attrHooks.contenteditable={get:ma.get,set:function(a,b,c){ma.set(a
464 ,""===b?!1:b,c)}},c.each(["width","height"],function(a,b){c.attrHooks[b]=
465 c.extend(c.attrHooks[b],{set:function(a,c){return""===c?(a.setAttribute(b
466 ,"auto"),c):p}})}));c.support.hrefNormalized||(c.each(["href","src","width"
467 ,"height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{get:function
468 (a){a=a.getAttribute(b,2);return null==a?p:a}})}),c.each(["href","src"]
469 ,function(a,b){c.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}))
470 ;c.support.style||(c.attrHooks.style={get:function(a){return a.style.cssText|
471 |p},set:function(a,b){return a.style.cssText=b+""}});
472 c.support.optSelected||(c.propHooks.selected=c.extend(c.propHooks.selected,
473 {get:function(a){a=a.parentNode;return a&&(a.selectedIndex,a.parentNode&&a
474 .parentNode.selectedIndex),null}}));c.support.enctype||(c.propFix
475 .enctype="encoding");c.support.checkOn||c.each(["radio","checkbox"],function()
476 {c.valHooks[this]={get:function(a){return null===a.getAttribute("value"
477 )?"on":a.value}}});c.each(["radio","checkbox"],function(){c.valHooks[this]=c
478 .extend(c.valHooks[this],{set:function(a,b){return c.isArray(b)?
479 a.checked=0<=c.inArray(c(a).val(),b):p}})});var cb=/^(?:input|select|textarea
480 )$/i,ec=/^key/,fc=/^(?:mouse|contextmenu)|click/,sb=/^(?:focusinfocus
481 |focusoutblur)$/,tb=/^([^.]*)(?:\.(.+)|)$/;c.event={global:{},add:function(a,b
482 ,k,t,g){var e,u,d,q,h,m,n,w,r;if(h=3!==a.nodeType&&8!==a.nodeType&&c._data(a))
483 {k.handler&&(e=k,k=e.handler,g=e.selector);k.guid||(k.guid=c.guid++);(q=h
484 .events)||(q=h.events={});(u=h.handle)||(u=h.handle=function(a){return c===p|
485 |a&&c.event.triggered===a.type?p:c.event.dispatch.apply(u.elem,
486 arguments)},u.elem=a);b=(b||"").match(Z)||[""];for(h=b.length;h--;)d=tb.exec(b
487 [h])||[],w=m=d[1],r=(d[2]||"").split(".").sort(),d=c.event.special[w]||{},w=
488 (g?d.delegateType:d.bindType)||w,d=c.event.special[w]||{},m=c.extend({type:w
489 ,origType:m,data:t,handler:k,guid:k.guid,selector:g,needsContext:g&&c.expr
490 .match.needsContext.test(g),namespace:r.join(".")},e),(n=q[w])||(n=q[w]=[],n
491 .delegateCount=0,d.setup&&!1!==d.setup.call(a,t,r,u)||(a.addEventListener?a
492 .addEventListener(w,u,!1):a.attachEvent&&a.attachEvent("on"+
493 w,u))),d.add&&(d.add.call(a,m),m.handler.guid||(m.handler.guid=k.guid)),g?n
494 .splice(n.delegateCount++,0,m):n.push(m),c.event.global[w]=!0;a=null}}
495 ,remove:function(a,b,k,e,g){var l,u,d,q,h,m,n,w,p,r,z,v=c.hasData(a)&&c._data
496 (a);if(v&&(q=v.events)){b=(b||"").match(Z)||[""];for(h=b.length;h--;)if(d=tb
497 .exec(b[h])||[],p=z=d[1],r=(d[2]||"").split(".").sort(),p){n=c.event.special[p
498 ]||{};p=(e?n.delegateType:n.bindType)||p;w=q[p]||[];d=d[2]&&RegExp("(^|\\.)"+r
499 .join("\\.(?:.*\\.|)")+"(\\.|$)");for(u=l=w.length;l--;)m=
500 w[l],!g&&z!==m.origType||k&&k.guid!==m.guid||d&&!d.test(m.namespace)||e&&e!==m
501 .selector&&("**"!==e||!m.selector)||(w.splice(l,1),m.selector&&w
502 .delegateCount--,n.remove&&n.remove.call(a,m));u&&!w.length&&(n.teardown&
503 &!1!==n.teardown.call(a,r,v.handle)||c.removeEvent(a,p,v.handle),delete q[p])
504 }else for(p in q)c.event.remove(a,p+b[h],k,e,!0);c.isEmptyObject(q)&&(delete v
505 .handle,c._removeData(a,"events"))}},trigger:function(a,b,k,e){var g,l,d,q,h,m
506 ,n=[k||y],w=a.type||a;h=a.namespace?a.namespace.split("."):
507 [];if(l=g=k=k||y,3!==k.nodeType&&8!==k.nodeType&&!sb.test(w+c.event.triggered)
508 &&(0<=w.indexOf(".")&&(h=w.split("."),w=h.shift(),h.sort()),q=0>w.indexOf(":")
509 &&"on"+w,a=a[c.expando]?a:new c.Event(w,"object"==typeof a&&a),a.isTrigger=!0
510 ,a.namespace=h.join("."),a.namespace_re=a.namespace?RegExp("(^|\\.)"+h.join
511 ("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=p,a.target||(a.target=k),b=null==b?
512 [a]:c.makeArray(b,[a]),m=c.event.special[w]||{},e||!m.trigger||!1!==m.trigger
513 .apply(k,b))){if(!e&&!m.noBubble&&!c.isWindow(k)){d=
514 m.delegateType||w;for(sb.test(d+w)||(l=l.parentNode);l;l=l.parentNode)n.push(l
515 ),g=l;g===(k.ownerDocument||y)&&n.push(g.defaultView||g.parentWindow||v)}for
516 (g=0;(l=n[g++])&&!a.isPropagationStopped();)a.type=1<g?d:m.bindType||w,(h=(c
517 ._data(l,"events")||{})[a.type]&&c._data(l,"handle"))&&h.apply(l,b),(h=q&&l[q]
518 )&&c.acceptData(l)&&h.apply&&!1===h.apply(l,b)&&a.preventDefault();if(a.type=w
519 ,!(e||a.isDefaultPrevented()||m._default&&!1!==m._default.apply(k
520 .ownerDocument,b)||"click"===w&&c.nodeName(k,"a"))&&
521 c.acceptData(k)&&q&&k[w]&&!c.isWindow(k)){(g=k[q])&&(k[q]=null);c.event
522 .triggered=w;try{k[w]()}catch(r){}c.event.triggered=p;g&&(k[q]=g)}return a
523 .result}},dispatch:function(a){a=c.event.fix(a);var b,k,e,g,l,d=[],q=aa.call
524 (arguments);b=(c._data(this,"events")||{})[a.type]||[];var h=c.event.special[a
525 .type]||{};if(q[0]=a,a.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch
526 .call(this,a)){d=c.event.handlers.call(this,a,b);for(b=0;(g=d[b++])&&!a
527 .isPropagationStopped();)for(a.currentTarget=g.elem,k=
528 0;(l=g.handlers[k++])&&!a.isImmediatePropagationStopped();)a.namespace_re&&!a
529 .namespace_re.test(l.namespace)||(a.handleObj=l,a.data=l.data,e=((c.event
530 .special[l.origType]||{}).handle||l.handler).apply(g.elem,q),e===p||!1!==(a
531 .result=e)||(a.preventDefault(),a.stopPropagation()));return h.postDispatch&&h
532 .postDispatch.call(this,a),a.result}},handlers:function(a,b){var k,e,g,l,d=[]
533 ,q=b.delegateCount,h=a.target;if(q&&h.nodeType&&(!a.button||"click"!==a.type)
534 )for(;h!=this;h=h.parentNode||this)if(!0!==h.disabled||
535 "click"!==a.type){e=[];for(k=0;q>k;k++)l=b[k],g=l.selector+" ",e[g]===p&&(e[g
536 ]=l.needsContext?0<=c(g,this).index(h):c.find(g,this,null,[h]).length),e[g]&&e
537 .push(l);e.length&&d.push({elem:h,handlers:e})}return b.length>q&&d.push(
538 {elem:this,handlers:b.slice(q)}),d},fix:function(a){if(a[c.expando])return a
539 ;var b,k,e=a,g=c.event.fixHooks[a.type]||{},l=g.props?this.props.concat(g
540 .props):this.props;a=new c.Event(e);for(b=l.length;b--;)k=l[b],a[k]=e[k]
541 ;return a.target||(a.target=e.srcElement||y),3===a.target.nodeType&&
542 (a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,e):a}
543 ,props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey
544 relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{}
545 ,keyHooks:{props:["char","charCode","key","keyCode"],filter:function(a,b)
546 {return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}}
547 ,mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY
548 pageX pageY screenX screenY toElement".split(" "),
549 filter:function(a,b){var c,e,g,l=b.button,d=b.fromElement;return null==a.pageX
550 &&null!=b.clientX&&(c=a.target.ownerDocument||y,e=c.documentElement,g=c.body,a
551 .pageX=b.clientX+(e&&e.scrollLeft||g&&g.scrollLeft||0)-(e&&e.clientLeft||g&&g
552 .clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||g&&g.scrollTop||0)-(e&&e
553 .clientTop||g&&g.clientTop||0)),!a.relatedTarget&&d&&(a.relatedTarget=d===a
554 .target?b.toElement:d),a.which||l===p||(a.which=1&l?1:2&l?3:4&l?2:0),a}}
555 ,special:{load:{noBubble:!0},click:{trigger:function(){return c.nodeName(this,
556 "input")&&"checkbox"===this.type&&this.click?(this.click(),!1):p}},focus:
557 {trigger:function(){if(this!==y.activeElement&&this.focus)try{return this
558 .focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function()
559 {return this===y.activeElement&&this.blur?(this.blur(),!1):p}
560 ,delegateType:"focusout"},beforeunload:{postDispatch:function(a){a.result!==p&
561 &(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,k,e){a=c
562 .extend(new c.Event,k,{type:a,isSimulated:!0,originalEvent:{}});e?c.event
563 .trigger(a,
564 null,b):c.event.dispatch.call(b,a);a.isDefaultPrevented()&&k.preventDefault()}
565 };c.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a
566 .removeEventListener(b,c,!1)}:function(a,b,c){b="on"+b;a.detachEvent&&(a[b
567 ]===p&&(a[b]=null),a.detachEvent(b,c))};c.Event=function(a,b){return this
568 instanceof c.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this
569 .isDefaultPrevented=a.defaultPrevented||!1===a.returnValue||a
570 .getPreventDefault&&a.getPreventDefault()?D:M):this.type=a,b&&c.extend(this,
571 b),this.timeStamp=a&&a.timeStamp||c.now(),this[c.expando]=!0,p):new c.Event(a
572 ,b)};c.Event.prototype={isDefaultPrevented:M,isPropagationStopped:M
573 ,isImmediatePropagationStopped:M,preventDefault:function(){var a=this
574 .originalEvent;this.isDefaultPrevented=D;a&&(a.preventDefault?a.preventDefault
575 ():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this
576 .isPropagationStopped=D;a&&(a.stopPropagation&&a.stopPropagation(),a
577 .cancelBubble=!0)},stopImmediatePropagation:function(){this
578 .isImmediatePropagationStopped=
579 D;this.stopPropagation()}};c.each({mouseenter:"mouseover"
580 ,mouseleave:"mouseout"},function(a,b){c.event.special[a]={delegateType:b
581 ,bindType:b,handle:function(a){var e,g=this,l=a.relatedTarget,d=a.handleObj
582 ;return(!l||l!==g&&!c.contains(g,l))&&(a.type=d.origType,e=d.handler.apply
583 (this,arguments),a.type=b),e}}});c.support.submitBubbles||(c.event.special
584 .submit={setup:function(){return c.nodeName(this,"form")?!1:(c.event.add(this
585 ,"click._submit keypress._submit",function(a){a=a.target;(a=c.nodeName(a,
586 "input")||c.nodeName(a,"button")?a.form:p)&&!c._data(a,"submitBubbles")&&(c
587 .event.add(a,"submit._submit",function(a){a._submit_bubble=!0}),c._data(a
588 ,"submitBubbles",!0))}),p)},postDispatch:function(a){a._submit_bubble&&(delete
589 a._submit_bubble,this.parentNode&&!a.isTrigger&&c.event.simulate("submit"
590 ,this.parentNode,a,!0))},teardown:function(){return c.nodeName(this,"form"
591 )?!1:(c.event.remove(this,"._submit"),p)}});c.support.changeBubbles||(c.event
592 .special.change={setup:function(){return cb.test(this.nodeName)?
593 (("checkbox"===this.type||"radio"===this.type)&&(c.event.add(this
594 ,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName
595 &&(this._just_changed=!0)}),c.event.add(this,"click._change",function(a){this
596 ._just_changed&&!a.isTrigger&&(this._just_changed=!1);c.event.simulate
597 ("change",this,a,!0)})),!1):(c.event.add(this,"beforeactivate._change"
598 ,function(a){a=a.target;cb.test(a.nodeName)&&!c._data(a,"changeBubbles")&&(c
599 .event.add(a,"change._change",function(a){!this.parentNode||a.isSimulated||
600 a.isTrigger||c.event.simulate("change",this.parentNode,a,!0)}),c._data(a
601 ,"changeBubbles",!0))}),p)},handle:function(a){var b=a.target;return this!==b|
602 |a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj
603 .handler.apply(this,arguments):p},teardown:function(){return c.event.remove
604 (this,"._change"),!cb.test(this.nodeName)}});c.support.focusinBubbles||c.each(
605 {focus:"focusin",blur:"focusout"},function(a,b){var k=0,e=function(a){c.event
606 .simulate(b,a.target,c.event.fix(a),!0)};c.event.special[b]=
607 {setup:function(){0===k++&&y.addEventListener(a,e,!0)},teardown:function()
608 {0===--k&&y.removeEventListener(a,e,!0)}}});c.fn.extend({on:function(a,b,k,e,g
609 ){var l,d;if("object"==typeof a){"string"!=typeof b&&(k=k||b,b=p);for(d in a
610 )this.on(d,b,k,a[d],g);return this}if(null==k&&null==e?(e=b,k=b=p):null==e&&
611 ("string"==typeof b?(e=k,k=p):(e=k,k=b,b=p)),!1===e)e=M;else if(!e)return this
612 ;return 1===g&&(l=e,e=function(a){return c().off(a),l.apply(this,arguments)},e
613 .guid=l.guid||(l.guid=c.guid++)),this.each(function(){c.event.add(this,
614 a,e,k,b)})},one:function(a,b,c,e){return this.on(a,b,c,e,1)},off:function(a,b
615 ,k){var e,g;if(a&&a.preventDefault&&a.handleObj)return e=a.handleObj,c(a
616 .delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e
617 .selector,e.handler),this;if("object"==typeof a){for(g in a)this.off(g,b,a[g])
618 ;return this}return(!1===b||"function"==typeof b)&&(k=b,b=p),!1===k&&(k=M)
619 ,this.each(function(){c.event.remove(this,a,k,b)})},bind:function(a,b,c)
620 {return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,
621 null,b)},delegate:function(a,b,c,e){return this.on(b,a,c,e)}
622 ,undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this
623 .off(b,a||"**",c)},trigger:function(a,b){return this.each(function(){c.event
624 .trigger(a,b,this)})},triggerHandler:function(a,b){var k=this[0];return k?c
625 .event.trigger(a,b,k,!0):p},hover:function(a,b){return this.mouseenter(a)
626 .mouseleave(b||a)}});c.each("blur focus focusin focusout load resize scroll
627 unload click dblclick mousedown mouseup mousemove mouseover mouseout
628 mouseenter mouseleave change select submit keydown keypress keyup error
629 contextmenu".split(" "),
630 function(a,b){c.fn[b]=function(a,c){return 0<arguments.length?this.on(b,null,a
631 ,c):this.trigger(b)};ec.test(b)&&(c.event.fixHooks[b]=c.event.keyHooks);fc
632 .test(b)&&(c.event.fixHooks[b]=c.event.mouseHooks)});(function(a,b){function k
633 (a){return ia.test(a+"")}function e(){var a,b=[];return a=function(c,f){return
634 b.push(c+=" ")>A.cacheLength&&delete a[b.shift()],a[c]=f}}function g(a)
635 {return a[K]=!0,a}function l(a){var b=T.createElement("div");try{return a(b)
636 }catch(c){return!1}finally{}}function d(a,b,c,
637 f){var k,g,e,l,t;if((b?b.ownerDocument||b:qa)!==T&&F(b),b=b||T,c=c||[],!a|
638 |"string"!=typeof a)return c;if(1!==(l=b.nodeType)&&9!==l)return[];if(!ba&&!f)
639 {if(k=ja.exec(a))if(e=k[1])if(9===l){if(g=b.getElementById(e),!g||!g
640 .parentNode)return c;if(g.id===e)return c.push(g),c}else{if(b.ownerDocument&&
641 (g=b.ownerDocument.getElementById(e))&&ta(b,g)&&g.id===e)return c.push(g),c
642 }else{if(k[2])return Q.apply(c,R.call(b.getElementsByTagName(a),0)),c;if((e=k
643 [3])&&L.getByClassName&&b.getElementsByClassName)return Q.apply(c,
644 R.call(b.getElementsByClassName(e),0)),c}if(L.qsa&&!ca.test(a)){if(k=!0,g=K
645 ,e=b,t=9===l&&a,1===l&&"object"!==b.nodeName.toLowerCase()){l=w(a);(k=b
646 .getAttribute("id"))?g=k.replace(ma,"\\$&"):b.setAttribute("id",g);g="
647 [id='"+g+"'] ";for(e=l.length;e--;)l[e]=g+p(l[e]);e=aa.test(a)&&b.parentNode|
648 |b;t=l.join(",")}if(t)try{return Q.apply(c,R.call(e.querySelectorAll(t),0)),c
649 }catch(q){}finally{k||b.removeAttribute("id")}}}var u;a:{a=a.replace(ha,"$1")
650 ;var h,m,n;k=w(a);if(!f&&1===k.length){if(u=k[0]=k[0].slice(0),
651 2<u.length&&"ID"===(h=u[0]).type&&9===b.nodeType&&!ba&&A.relative[u[1].type])
652 {if(b=A.find.ID(h.matches[0].replace(na,oa),b)[0],!b){u=c;break a}a=a.slice(u
653 .shift().value.length)}for(l=Y.needsContext.test(a)?-1:u.length-1;0<=l&&(h=u[l
654 ],!A.relative[m=h.type]);l--)if((n=A.find[m])&&(f=n(h.matches[0].replace(na,oa
655 ),aa.test(u[0].type)&&b.parentNode||b))){if(u.splice(l,1),a=f.length&&p(u),!a)
656 {u=(Q.apply(c,R.call(f,0)),c);break a}break}}u=(M(a,k)(f,b,ba,c,aa.test(a)),c)
657 }return u}function q(a,b){for(var c=
658 a&&b&&a.nextSibling;c;c=c.nextSibling)if(c===b)return-1;return a?1:-1}function
659 h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b
660 .type===a}}function m(a){return function(b){var c=b.nodeName.toLowerCase()
661 ;return("input"===c||"button"===c)&&b.type===a}}function n(a){return g
662 (function(b){return b=+b,g(function(c,f){for(var k,g=a([],c.length,b),e=g
663 .length;e--;)c[k=g[e]]&&(c[k]=!(f[k]=c[k]))})})}function w(a,b){var c,f,k,g,e
664 ,l,t;if(e=S[a+" "])return b?0:e.slice(0);e=a;l=[];for(t=
665 A.preFilter;e;){c&&!(f=da.exec(e))||(f&&(e=e.slice(f[0].length)||e),l.push(k=[
666 ]));c=!1;(f=ea.exec(e))&&(c=f.shift(),k.push({value:c,type:f[0].replace(ha," "
667 )}),e=e.slice(c.length));for(g in A.filter)!(f=Y[g].exec(e))||t[g]&&!(f=t[g](f
668 ))||(c=f.shift(),k.push({value:c,type:g,matches:f}),e=e.slice(c.length));if(!c
669 )break}return b?e.length:e?d.error(a):S(a,l).slice(0)}function p(a){for(var
670 b=0,c=a.length,f="";c>b;b++)f+=a[b].value;return f}function r(a,b,c){var f=b
671 .dir,k=c&&"parentNode"===b.dir,g=Oa++;
672 return b.first?function(b,c,g){for(;b=b[f];)if(1===b.nodeType||k)return a(b,c
673 ,g)}:function(b,c,e){var l,d,t,q=H+" "+g;if(e)for(;b=b[f];){if((1===b.nodeType
674 ||k)&&a(b,c,e))return!0}else for(;b=b[f];)if(1===b.nodeType||k)if(t=b[K]||(b[K
675 ]={}),(d=t[f])&&d[0]===q){if(!0===(l=d[1])||l===C)return!0===l}else if(d=t[f]=
676 [q],d[1]=a(b,c,e)||C,!0===d[1])return!0}}function z(a){return 1<a
677 .length?function(b,c,f){for(var k=a.length;k--;)if(!a[k](b,c,f))return!1
678 ;return!0}:a[0]}function v(a,b,c,f,k){for(var g,e=[],
679 l=0,d=a.length,t=null!=b;d>l;l++)(g=a[l])&&(!c||c(g,f,k))&&(e.push(g),t&&b
680 .push(l));return e}function B(a,b,c,f,k,e){return f&&!f[K]&&(f=B(f)),k&&!k[K]&
681 &(k=B(k,e)),g(function(g,e,l,t){var q,h,m=[],n=[],x=e.length,w;if(!(w=g)){w=b|
682 |"*";for(var p=l.nodeType?[l]:l,r=[],z=0,Va=p.length;Va>z;z++)d(w,p[z],r);w=r
683 }w=!a||!g&&b?w:v(w,m,a,l,t);p=c?k||(g?a:x||f)?[]:e:w;if(c&&c(w,p,l,t),f)for
684 (q=v(p,n),f(q,[],l,t),l=q.length;l--;)(h=q[l])&&(p[n[l]]=!(w[n[l]]=h));if(g)
685 {if(k||a){if(k){q=[];for(l=p.length;l--;)(h=
686 p[l])&&q.push(w[l]=h);k(null,p=[],q,t)}for(l=p.length;l--;)(h=p[l])&&-1<
687 (q=k?Aa.call(g,h):m[l])&&(g[q]=!(e[q]=h))}}else p=v(p===e?p.splice(x,p.length
688 ):p),k?k(null,e,p,t):Q.apply(e,p)})}function y(a){var b,c,f,k=a.length,g=A
689 .relative[a[0].type];c=g||A.relative[" "];for(var e=g?1:0,l=r(function(a)
690 {return a===b},c,!0),d=r(function(a){return-1<Aa.call(b,a)},c,!0),t=[function
691 (a,c,f){return!g&&(f||c!==Ra)||((b=c).nodeType?l(a,c,f):d(a,c,f))}];k>e;e++)if
692 (c=A.relative[a[e].type])t=[r(z(t),c)];else{if(c=A.filter[a[e].type].apply
693 (null,
694 a[e].matches),c[K]){for(f=++e;k>f&&!A.relative[a[f].type];f++);return B(1<e&&z
695 (t),1<e&&p(a.slice(0,e-1)).replace(ha,"$1"),c,f>e&&y(a.slice(e,f)),k>f&&y(a=a
696 .slice(f)),k>f&&p(a))}t.push(c)}return z(t)}function J(a,b){var c=0,f=0<b
697 .length,k=0<a.length,e=function(g,e,l,t,q){var h,m,n=[],w=0,p="0",x=g&&[]
698 ,r=null!=q,z=Ra,Va=g||k&&A.find.TAG("*",q&&e.parentNode||e)
699 ,B=H+=null==z?1:Math.E;for(r&&(Ra=e!==T&&e,C=c);null!=(q=Va[p]);p++){if(k&&q)
700 {for(h=0;m=a[h];h++)if(m(q,e,l)){t.push(q);break}r&&(H=B,C=++c)}f&&
701 ((q=!m&&q)&&w--,g&&x.push(q))}if(w+=p,f&&p!==w){for(h=0;m=b[h];h++)m(x,n,e,l)
702 ;if(g){if(0<w)for(;p--;)x[p]||n[p]||(n[p]=Z.call(t));n=v(n)}Q.apply(t,n);r&&!g
703 &&0<n.length&&1<w+b.length&&d.uniqueSort(t)}return r&&(H=B,Ra=z),x};return f?g
704 (e):e}function N(){}var O,C,A,D,G,M,E,Ra,F,T,W,ba,ca,ua,Sa,ta,V
705 ,K="sizzle"+-new Date,qa=a.document,L={},H=0,Oa=0,Na=e(),S=e(),U=e(),I=typeof
706 b,P=[],Z=P.pop,Q=P.push,R=P.slice,Aa=P.indexOf||function(a){for(var b=0
707 ,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},
708 P="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w#"),ra="\\[
709 [\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:(
710 [*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+P+")|)|)
711 [\\x20\\t\\r\\n\\f]*\\]",X=":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((['\"])(
712 (?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ra.replace(3,8)+")*)|.*)\\)|
713 )",ha=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)
714 [\\x20\\t\\r\\n\\f]+$","g"),da=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,ea=
715 /^[\x20\t\r\n\f]*([\x20\t\r\n\f>+~])[\x20\t\r\n\f]*/,fa=RegExp(X),ga=RegExp
716 ("^"+P+"$"),Y={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|
717 [^\x00-\xa0])+)/,NAME:/^\[name=['"]?((?:\\.|[\w-]|[^\x00-\xa0])+)['"]?\]/
718 ,TAG:RegExp("^("+"(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+".replace("w","w*")+")")
719 ,ATTR:RegExp("^"+ra),PSEUDO:RegExp("^"+X),CHILD:/^:(only|first|last|nth
720 |nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)
721 [\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i,
722 needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\(
723 [\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},aa=/[\x20\t\r\n\f
724 ]*[+~]/,ia=/\{\s*\[native code\]\s*\}/,ja=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/
725 ,ka=/^(?:input|select|textarea|button)$/i,la=/^h\d$/i,ma=/'|\\/g,pa=/\=
726 [\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,na=/\\([\da-fA-F]{1,6}
727 [\x20\t\r\n\f]?|.)/g,oa=function(a,b){var c="0x"+b-65536;return
728 c!==c?b:0>c?String.fromCharCode(c+65536):String.fromCharCode(55296|c>>
729 10,56320|1023&c)};try{R.call(W.childNodes,0)[0].nodeType}catch(sa){R=function
730 (a){for(var b,c=[];b=this[a];a++)c.push(b);return c}}G=d.isXML=function(a)
731 {return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};F=d
732 .setDocument=function(a){var c=a?a.ownerDocument||a:qa;return c!==T&&9===c
733 .nodeType&&c.documentElement?(T=c,W=c.documentElement,ba=G(c),L
734 .tagNameNoComments=l(function(a){return a.appendChild(c.createComment("")),!a
735 .getElementsByTagName("*").length}),L.attributes=l(function(a){a.innerHTML=
736 "<select></select>";a=typeof a.lastChild.getAttribute("multiple")
737 ;return"boolean"!==a&&"string"!==a}),L.getByClassName=l(function(a){return a
738 .innerHTML="<div class='hidden e'></div><div class='hidden'></div>",a
739 .getElementsByClassName&&a.getElementsByClassName("e").length?(a.lastChild
740 .className="e",2===a.getElementsByClassName("e").length):!1}),L.getByName=l
741 (function(a){a.id=K+0;a.innerHTML="<a name='"+K+"'></a><div
742 name='"+K+"'></div>";W.insertBefore(a,W.firstChild);var b=c.getElementsByName
743 &&c.getElementsByName(K).length===
744 2+c.getElementsByName(K+0).length;return L.getIdNotName=!c.getElementById(K),W
745 .removeChild(a),b}),A.attrHandle=l(function(a){return a.innerHTML="<a
746 href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!==I&&"#"===a
747 .firstChild.getAttribute("href")})?{}:{href:function(a){return a.getAttribute
748 ("href",2)},type:function(a){return a.getAttribute("type")}},L.getIdNotName?(A
749 .find.ID=function(a,b){if(typeof b.getElementById!==I&&!ba){var c=b
750 .getElementById(a);return c&&c.parentNode?[c]:[]}},A.filter.ID=
751 function(a){var b=a.replace(na,oa);return function(a){return a.getAttribute
752 ("id")===b}}):(A.find.ID=function(a,c){if(typeof c.getElementById!==I&&!ba)
753 {var k=c.getElementById(a);return k?k.id===a||typeof k.getAttributeNode!==I&&k
754 .getAttributeNode("id").value===a?[k]:b:[]}},A.filter.ID=function(a){var b=a
755 .replace(na,oa);return function(a){return(a=typeof a.getAttributeNode!==I&&a
756 .getAttributeNode("id"))&&a.value===b}}),A.find.TAG=L
757 .tagNameNoComments?function(a,c){return typeof c.getElementsByTagName!==
758 I?c.getElementsByTagName(a):b}:function(a,b){var c,f=[],k=0,g=b
759 .getElementsByTagName(a);if("*"===a){for(;c=g[k];k++)1===c.nodeType&&f.push(c)
760 ;return f}return g},A.find.NAME=L.getByName&&function(a,c){return typeof c
761 .getElementsByName!==I?c.getElementsByName(name):b},A.find.CLASS=L
762 .getByClassName&&function(a,c){return typeof c.getElementsByClassName===I|
763 |ba?b:c.getElementsByClassName(a)},ua=[],ca=[":focus"],(L.qsa=k(c
764 .querySelectorAll))&&(l(function(a){a.innerHTML="<select><option
765 selected=''></option></select>";
766 a.querySelectorAll("[selected]").length||ca.push("\\[[\\x20\\t\\r\\n\\f]*
767 (?:checked|disabled|ismap|multiple|readonly|selected|value)");a
768 .querySelectorAll(":checked").length||ca.push(":checked")}),l(function(a){a
769 .innerHTML="<input type='hidden' i=''/>";a.querySelectorAll("[i^='']").length&
770 &ca.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:\"\"|'')");a.querySelectorAll
771 (":enabled").length||ca.push(":enabled",":disabled");a.querySelectorAll("*,:x"
772 );ca.push(",.*:")})),(L.matchesSelector=k(Sa=W.matchesSelector||W
773 .mozMatchesSelector||
774 W.webkitMatchesSelector||W.oMatchesSelector||W.msMatchesSelector))&&l(function
775 (a){L.disconnectedMatch=Sa.call(a,"div");Sa.call(a,"[s!='']:x");ua.push("!=",X
776 )}),ca=RegExp(ca.join("|")),ua=RegExp(ua.join("|")),ta=k(W.contains)||W
777 .compareDocumentPosition?function(a,b){var c=9===a.nodeType?a
778 .documentElement:a,f=b&&b.parentNode;return a===f||!(!f||1!==f.nodeType||!(c
779 .contains?c.contains(f):a.compareDocumentPosition&&16&a
780 .compareDocumentPosition(f)))}:function(a,b){if(b)for(;b=b.parentNode;)if
781 (b===a)return!0;
782 return!1},V=W.compareDocumentPosition?function(a,b){var f;return a===b?(E=!0,0
783 ):(f=b.compareDocumentPosition&&a.compareDocumentPosition&&a
784 .compareDocumentPosition(b))?1&f||a.parentNode&&11===a.parentNode
785 .nodeType?a===c||ta(qa,a)?-1:b===c||ta(qa,b)?1:0:4&f?-1:1:a
786 .compareDocumentPosition?-1:1}:function(a,b){var f,k=0;f=a.parentNode;var g=b
787 .parentNode,e=[a],l=[b];if(a===b)return E=!0,0;if(a.sourceIndex&&b.sourceIndex
788 )return(~b.sourceIndex||-2147483648)-(ta(qa,a)&&~a.sourceIndex||-2147483648)
789 ;if(!f||
790 !g)return a===c?-1:b===c?1:f?-1:g?1:0;if(f===g)return q(a,b);for(f=a;f=f
791 .parentNode;)e.unshift(f);for(f=b;f=f.parentNode;)l.unshift(f);for(;e[k]===l[k
792 ];)k++;return k?q(e[k],l[k]):e[k]===qa?-1:l[k]===qa?1:0},E=!1,[0,0].sort(V),L
793 .detectDuplicates=E,T):T};d.matches=function(a,b){return d(a,null,null,b)};d
794 .matchesSelector=function(a,b){if((a.ownerDocument||a)!==T&&F(a),b=b.replace
795 (pa,"='$1']"),!(!L.matchesSelector||ba||ua&&ua.test(b)||ca.test(b)))try{var
796 c=Sa.call(a,b);if(c||L.disconnectedMatch||a.document&&
797 11!==a.document.nodeType)return c}catch(f){}return 0<d(b,T,null,[a]).length};d
798 .contains=function(a,b){return(a.ownerDocument||a)!==T&&F(a),ta(a,b)};d
799 .attr=function(a,b){var c;return(a.ownerDocument||a)!==T&&F(a),ba||(b=b
800 .toLowerCase()),(c=A.attrHandle[b])?c(a):ba||L.attributes?a.getAttribute(b):(
801 (c=a.getAttributeNode(b))||a.getAttribute(b))&&!0===a[b]?b:c&&c.specified?c
802 .value:null};d.error=function(a){throw Error("Syntax error, unrecognized
803 expression: "+a);};d.uniqueSort=function(a){var b,c=[],f=
804 1,k=0;if(E=!L.detectDuplicates,a.sort(V),E){for(;b=a[f];f++)b===a[f-1]&&(k=c
805 .push(f));for(;k--;)a.splice(c[k],1)}return a};D=d.getText=function(a){var b
806 ,c="",f=0;if(b=a.nodeType)if(1===b||9===b||11===b){if("string"==typeof a
807 .textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=D(a)
808 }else{if(3===b||4===b)return a.nodeValue}else for(;b=a[f];f++)c+=D(b);return c
809 };A=d.selectors={cacheLength:50,createPseudo:g,match:Y,find:{},relative:{">":
810 {dir:"parentNode",first:!0}," ":{dir:"parentNode"},
811 "+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:
812 {ATTR:function(a){return a[1]=a[1].replace(na,oa),a[3]=(a[4]||a[5]||"")
813 .replace(na,oa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function
814 (a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||d.error(a[0]
815 ),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]
816 ||"odd"===a[3])):a[3]&&d.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2]
817 ;return Y.CHILD.test(a[0])?null:(a[4]?a[2]=
818 a[4]:c&&fa.test(c)&&(b=w(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0
819 ]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a)
820 {return"*"===a?function(){return!0}:(a=a.replace(na,oa).toLowerCase(),function
821 (b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var
822 b=Na[a+" "];return b||(b=RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"(
823 [\\x20\\t\\r\\n\\f]|$)"))&&Na(a,function(a){return b.test(a.className||typeof
824 a.getAttribute!==I&&a.getAttribute("class")||"")})},ATTR:function(a,
825 b,c){return function(f){f=d.attr(f,a);return null==f?"!="===b:b?(f+=""
826 ,"="===b?f===c:"!="===b?f!==c:"^="===b?c&&0===f.indexOf(c):"*="===b?c&&-1<f
827 .indexOf(c):"$="===b?c&&f.substr(f.length-c.length)===c:"~="===b?-1<(" "+f+" "
828 ).indexOf(c):"|="===b?f===c||f.substr(0,c.length+1)===c+"-":!1):!0}}
829 ,CHILD:function(a,b,c,f,k){var g="nth"!==a.slice(0,3),e="last"!==a.slice(-4)
830 ,l="of-type"===b;return 1===f&&0===k?function(a){return!!a.parentNode
831 }:function(b,c,d){var t,q,u,h,m;c=g!==e?"nextSibling":"previousSibling";
832 var n=b.parentNode,w=l&&b.nodeName.toLowerCase();d=!d&&!l;if(n){if(g){for(;c;)
833 {for(q=b;q=q[c];)if(l?q.nodeName.toLowerCase()===w:1===q.nodeType)return!1
834 ;m=c="only"===a&&!m&&"nextSibling"}return!0}if(m=[e?n.firstChild:n.lastChild]
835 ,e&&d)for(d=n[K]||(n[K]={}),t=d[a]||[],h=t[0]===H&&t[1],u=t[0]===H&&t[2],q=h&
836 &n.childNodes[h];q=++h&&q&&q[c]||(u=h=0)||m.pop();){if(1===q.nodeType&&++u&
837 &q===b){d[a]=[H,h,u];break}}else if(d&&(t=(b[K]||(b[K]={}))[a])&&t[0]===H)u=t
838 [1];else for(;(q=++h&&q&&q[c]||(u=h=0)||m.pop())&&
839 ((l?q.nodeName.toLowerCase()!==w:1!==q.nodeType)||!++u||(d&&((q[K]||(q[K]={}))
840 [a]=[H,u]),q!==b)););return u-=k,u===f||0===u%f&&0<=u/f}}},PSEUDO:function(a,b
841 ){var c,f=A.pseudos[a]||A.setFilters[a.toLowerCase()]||d.error("unsupported
842 pseudo: "+a);return f[K]?f(b):1<f.length?(c=[a,a,"",b],A.setFilters
843 .hasOwnProperty(a.toLowerCase())?g(function(a,c){for(var k,g=f(a,b),e=g.length
844 ;e--;)k=Aa.call(a,g[e]),a[k]=!(c[k]=g[e])}):function(a){return f(a,0,c)}):f}}
845 ,pseudos:{not:g(function(a){var b=[],c=[],f=M(a.replace(ha,
846 "$1"));return f[K]?g(function(a,b,c,k){var g;c=f(a,null,k,[]);for(k=a.length
847 ;k--;)(g=c[k])&&(a[k]=!(b[k]=g))}):function(a,k,g){return b[0]=a,f(b,null,g,c)
848 ,!c.pop()}}),has:g(function(a){return function(b){return 0<d(a,b).length}})
849 ,contains:g(function(a){return function(b){return-1<(b.textContent||b
850 .innerText||D(b)).indexOf(a)}}),lang:g(function(a){return ga.test(a||"")||d
851 .error("unsupported lang: "+a),a=a.replace(na,oa).toLowerCase(),function(b)
852 {var c;do if(c=ba?b.getAttribute("xml:lang")||b.getAttribute("lang"):
853 b.lang)return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b
854 .parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&
855 &a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===W}
856 ,focus:function(a){return a===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!
857 (a.type||a.href||~a.tabIndex)},enabled:function(a){return!1===a.disabled}
858 ,disabled:function(a){return!0===a.disabled},checked:function(a){var b=a
859 .nodeName.toLowerCase();return"input"===b&&!!a.checked||
860 "option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a
861 .parentNode.selectedIndex,!0===a.selected},empty:function(a){for(a=a
862 .firstChild;a;a=a.nextSibling)if("@"<a.nodeName||3===a.nodeType||4===a
863 .nodeType)return!1;return!0},parent:function(a){return!A.pseudos.empty(a)}
864 ,header:function(a){return la.test(a.nodeName)},input:function(a){return ka
865 .test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase()
866 ;return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;
867 return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a
868 .getAttribute("type"))||b.toLowerCase()===a.type)},first:n(function(){return[0
869 ]}),last:n(function(a,b){return[b-1]}),eq:n(function(a,b,c){return[0>c?c+b:c]}
870 ),even:n(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:n
871 (function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:n(function(a,b,c)
872 {for(b=0>c?c+b:c;0<=--b;)a.push(b);return a}),gt:n(function(a,b,c){for
873 (c=0>c?c+b:c;b>++c;)a.push(c);return a})}};for(O in{radio:!0,
874 checkbox:!0,file:!0,password:!0,image:!0})A.pseudos[O]=h(O);for(O in{submit:!0
875 ,reset:!0})A.pseudos[O]=m(O);M=d.compile=function(a,b){var c,f=[],k=[],g=U[a+"
876 "];if(!g){b||(b=w(a));for(c=b.length;c--;)g=y(b[c]),g[K]?f.push(g):k.push(g)
877 ;g=U(a,J(k,f))}return g};A.pseudos.nth=A.pseudos.eq;A.filters=N.prototype=A
878 .pseudos;A.setFilters=new N;F();d.attr=c.attr;c.find=d;c.expr=d.selectors;c
879 .expr[":"]=c.expr.pseudos;c.unique=d.uniqueSort;c.text=d.getText;c.isXMLDoc=d
880 .isXML;c.contains=d.contains})(v);var gc=
881 /Until$/,hc=/^(?:parents|prev(?:Until|All))/,Lb=/^.[^:#\[\.,]*$/,ub=c.expr
882 .match.needsContext,ic={children:!0,contents:!0,next:!0,prev:!0};c.fn.extend(
883 {find:function(a){var b,k,e;if("string"!=typeof a)return e=this,this.pushStack
884 (c(a).filter(function(){for(b=0;e.length>b;b++)if(c.contains(e[b],this)
885 )return!0}));k=[];for(b=0;this.length>b;b++)c.find(a,this[b],k);return k=this
886 .pushStack(c.unique(k)),k.selector=(this.selector?this.selector+" ":"")+a,k}
887 ,has:function(a){var b,k=c(a,this),e=k.length;return this.filter(function()
888 {for(b=
889 0;e>b;b++)if(c.contains(this,k[b]))return!0})},not:function(a){return this
890 .pushStack(A(this,a,!1))},filter:function(a){return this.pushStack(A(this,a,!0
891 ))},is:function(a){return!!a&&("string"==typeof a?ub.test(a)?0<=c(a,this
892 .context).index(this[0]):0<c.filter(a,this).length:0<this.filter(a).length)}
893 ,closest:function(a,b){for(var k,e=0,g=this.length,l=[],d=ub.test(a)|
894 |"string"!=typeof a?c(a,b||this.context):0;g>e;e++)for(k=this[e];k&&k
895 .ownerDocument&&k!==b&&11!==k.nodeType;){if(d?-1<d.index(k):c.find
896 .matchesSelector(k,
897 a)){l.push(k);break}k=k.parentNode}return this.pushStack(1<l.length?c.unique(l
898 ):l)},index:function(a){return a?"string"==typeof a?c.inArray(this[0],c(a)):c
899 .inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first()
900 .prevAll().length:-1},add:function(a,b){var k="string"==typeof a?c(a,b):c
901 .makeArray(a&&a.nodeType?[a]:a),k=c.merge(this.get(),k);return this.pushStack
902 (c.unique(k))},addBack:function(a){return this.add(null==a?this
903 .prevObject:this.prevObject.filter(a))}});c.fn.andSelf=c.fn.addBack;
904 c.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null}
905 ,parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,k
906 ){return c.dir(a,"parentNode",k)},next:function(a){return E(a,"nextSibling")}
907 ,prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return c
908 .dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")}
909 ,nextUntil:function(a,b,k){return c.dir(a,"nextSibling",k)},prevUntil:function
910 (a,b,k){return c.dir(a,"previousSibling",
911 k)},siblings:function(a){return c.sibling((a.parentNode||{}).firstChild,a)}
912 ,children:function(a){return c.sibling(a.firstChild)},contents:function(a)
913 {return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c
914 .merge([],a.childNodes)}},function(a,b){c.fn[a]=function(k,e){var g=c.map(this
915 ,b,k);return gc.test(a)||(e=k),e&&"string"==typeof e&&(g=c.filter(e,g))
916 ,g=1<this.length&&!ic[a]?c.unique(g):g,1<this.length&&hc.test(a)&&(g=g.reverse
917 ()),this.pushStack(g)}});c.extend({filter:function(a,
918 b,k){return k&&(a=":not("+a+")"),1===b.length?c.find.matchesSelector(b[0],a)?
919 [b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,k){var e=[];for(a=a[b];a&
920 &9!==a.nodeType&&(k===p||1!==a.nodeType||!c(a).is(k));)1===a.nodeType&&e.push
921 (a),a=a[b];return e},sibling:function(a,b){for(var c=[];a;a=a.nextSibling
922 )1===a.nodeType&&a!==b&&c.push(a);return c}});var lb="abbr|article|aside|audio
923 |bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark
924 |meter|nav|output|progress|section|summary|time|video",
925 jc=/ jQuery\d+="(?:null|\d+)"/g,vb=RegExp("<(?:"+lb+")[\\s/>]","i"),db=/^\s+/
926 ,wb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi
927 ,xb=/<([\w:]+)/,yb=/<tbody/i,kc=/<|&#?\w+;/,lc=/<(?:script|style|link)/i,Ua=/^
928 (?:checkbox|radio)$/i,mc=/checked\s*(?:[^=]|=\s*.checked.)/i,zb=/^$|\/(?:java
929 |ecma)script/i,Mb=/^true\/(.*)/,nc=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g
930 ,U={option:[1,"<select multiple='multiple'>","</select>"],legend:[1
931 ,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],
932 param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2
933 ,"<table><tbody>","</tbody></table>"],col:[2
934 ,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3
935 ,"<table><tbody><tr>","</tr></tbody></table>"],_default:c.support
936 .htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},oc=V(y),eb=oc.appendChild(y
937 .createElement("div"));U.optgroup=U.option;U.tbody=U.tfoot=U.colgroup=U
938 .caption=U.thead;U.th=U.td;c.fn.extend({text:function(a){return c.access(this
939 ,function(a){return a===p?c.text(this):
940 this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))}
941 ,null,a,arguments.length)},wrapAll:function(a){if(c.isFunction(a))return this
942 .each(function(b){c(this).wrapAll(a.call(this,b))});if(this[0]){var b=c(a,this
943 [0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0])
944 ;b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a
945 .firstChild;return a}).append(this)}return this},wrapInner:function(a){return
946 c.isFunction(a)?this.each(function(b){c(this).wrapInner(a.call(this,
947 b))}):this.each(function(){var b=c(this),k=b.contents();k.length?k.wrapAll(a
948 ):b.append(a)})},wrap:function(a){var b=c.isFunction(a);return this.each
949 (function(k){c(this).wrapAll(b?a.call(this,k):a)})},unwrap:function(){return
950 this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith
951 (this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0
952 ,function(a){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||this
953 .appendChild(a)})},prepend:function(){return this.domManip(arguments,
954 !0,function(a){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||this
955 .insertBefore(a,this.firstChild)})},before:function(){return this.domManip
956 (arguments,!1,function(a){this.parentNode&&this.parentNode.insertBefore(a,this
957 )})},after:function(){return this.domManip(arguments,!1,function(a){this
958 .parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})}
959 ,remove:function(a,b){for(var k,e=0;null!=(k=this[e]);e++)(!a||0<c.filter(a,[k
960 ]).length)&&(b||1!==k.nodeType||c.cleanData(F(k)),k.parentNode&&
961 (b&&c.contains(k.ownerDocument,k)&&R(F(k,"script")),k.parentNode.removeChild(k
962 )));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){for
963 (1===a.nodeType&&c.cleanData(F(a,!1));a.firstChild;)a.removeChild(a.firstChild
964 );a.options&&c.nodeName(a,"select")&&(a.options.length=0)}return this}
965 ,clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function()
966 {return c.clone(this,a,b)})},html:function(a){return c.access(this,function(a)
967 {var b=this[0]||{},e=0,g=this.length;if(a===p)return 1===
968 b.nodeType?b.innerHTML.replace(jc,""):p;if(!("string"!=typeof a||lc.test(a)|
969 |!c.support.htmlSerialize&&vb.test(a)||!c.support.leadingWhitespace&&db.test(a
970 )||U[(xb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(wb,"<$1></$2>");try
971 {for(;g>e;e++)b=this[e]||{},1===b.nodeType&&(c.cleanData(F(b,!1)),b
972 .innerHTML=a);b=0}catch(l){}}b&&this.empty().append(a)},null,a,arguments
973 .length)},replaceWith:function(a){var b=c.isFunction(a);return b|
974 |"string"==typeof a||(a=c(a).not(this).detach()),this.domManip([a],
975 !0,function(a){var b=this.nextSibling,f=this.parentNode;(f&&1===this.nodeType|
976 |11===this.nodeType)&&(c(this).remove(),b?b.parentNode.insertBefore(a,b):f
977 .appendChild(a))})},detach:function(a){return this.remove(a,!0)}
978 ,domManip:function(a,b,k){a=Oa.apply([],a);var e,g,l,d,q=0,h=this.length
979 ,m=this,n=h-1,w=a[0],r=c.isFunction(w);if(r||!(1>=h||"string"!=typeof w||c
980 .support.checkClone)&&mc.test(w))return this.each(function(c){var e=m.eq(c);r&
981 &(a[0]=w.call(this,c,b?e.html():p));e.domManip(a,b,k)});if(h&&
982 (e=c.buildFragment(a,this[0].ownerDocument,!1,this),g=e.firstChild,1===e
983 .childNodes.length&&(e=g),g)){b=b&&c.nodeName(g,"tr");g=c.map(F(e,"script"),Q)
984 ;for(l=g.length;h>q;q++)d=e,q!==n&&(d=c.clone(d,!0,!0),l&&c.merge(g,F(d
985 ,"script"))),k.call(b&&c.nodeName(this[q],"table")?ra(this[q],"tbody"):this[q]
986 ,d,q);if(l)for(e=g[g.length-1].ownerDocument,c.map(g,ea),q=0;l>q;q++)d=g[q],zb
987 .test(d.type||"")&&!c._data(d,"globalEval")&&c.contains(e,d)&&(d.src?c.ajax(
988 {url:d.src,type:"GET",dataType:"script",async:!1,
989 global:!1,"throws":!0}):c.globalEval((d.text||d.textContent||d.innerHTML||"")
990 .replace(nc,"")));e=g=null}return this}});c.each({appendTo:"append"
991 ,prependTo:"prepend",insertBefore:"before",insertAfter:"after"
992 ,replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(a){for(var e=0,g=[]
993 ,l=c(a),d=l.length-1;d>=e;e++)a=e===d?this:this.clone(!0),c(l[e])[b](a),Xa
994 .apply(g,a.get());return this.pushStack(g)}});c.extend({clone:function(a,b,e)
995 {var d,g,l,q,h,m=c.contains(a.ownerDocument,a);if(c.support.html5Clone||
996 c.isXMLDoc(a)||!vb.test("<"+a.nodeName+">")?h=a.cloneNode(!0):(eb.innerHTML=a
997 .outerHTML,eb.removeChild(h=eb.firstChild)),!(c.support.noCloneEvent&&c
998 .support.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||c.isXMLDoc(a)))for
999 (d=F(h),g=F(a),q=0;null!=(l=g[q]);++q)if(d[q]){var n=d[q],w=void 0,p=void 0
1000 ,r=void 0;if(1===n.nodeType){if(w=n.nodeName.toLowerCase(),!c.support
1001 .noCloneEvent&&n[c.expando]){p=c._data(n);for(r in p.events)c.removeEvent(n,r
1002 ,p.handle);n.removeAttribute(c.expando)}"script"===w&&n.text!==
1003 l.text?(Q(n).text=l.text,ea(n)):"object"===w?(n.parentNode&&(n.outerHTML=l
1004 .outerHTML),c.support.html5Clone&&l.innerHTML&&!c.trim(n.innerHTML)&&(n
1005 .innerHTML=l.innerHTML)):"input"===w&&Ua.test(l.type)?(n.defaultChecked=n
1006 .checked=l.checked,n.value!==l.value&&(n.value=l.value)):"option"===w?n
1007 .defaultSelected=n.selected=l.defaultSelected:("input"===w||"textarea"===w)&&
1008 (n.defaultValue=l.defaultValue)}}if(b)if(e)for(g=g||F(a),d=d||F(h),q=0;null!=
1009 (l=g[q]);q++)sa(l,d[q]);else sa(a,h);return d=F(h,"script"),
1010 0<d.length&&R(d,!m&&F(a,"script")),h},buildFragment:function(a,b,e,d){for(var
1011 g,l,q,h,n,m,w,p=a.length,r=V(b),z=[],v=0;p>v;v++)if(l=a[v],l||0===l)if
1012 ("object"===c.type(l))c.merge(z,l.nodeType?[l]:l);else if(kc.test(l)){h=h||r
1013 .appendChild(b.createElement("div"));q=(xb.exec(l)||["",""])[1].toLowerCase()
1014 ;n=U[q]||U._default;h.innerHTML=n[1]+l.replace(wb,"<$1></$2>")+n[2];for(w=n[0]
1015 ;w--;)h=h.lastChild;if(!c.support.leadingWhitespace&&db.test(l)&&z.push(b
1016 .createTextNode(db.exec(l)[0])),!c.support.tbody)for(w=
1017 (l="table"!==q||yb.test(l)?"<table>"!==n[1]||yb.test(l)?0:h:h.firstChild)&&l
1018 .childNodes.length;w--;)c.nodeName(m=l.childNodes[w],"tbody")&&!m.childNodes
1019 .length&&l.removeChild(m);c.merge(z,h.childNodes);for(h.textContent="";h
1020 .firstChild;)h.removeChild(h.firstChild);h=r.lastChild}else z.push(b
1021 .createTextNode(l));h&&r.removeChild(h);c.support.appendChecked||c.grep(F(z
1022 ,"input"),Da);for(v=0;l=z[v++];)if((!d||-1===c.inArray(l,d))&&(g=c.contains(l
1023 .ownerDocument,l),h=F(r.appendChild(l),"script"),g&&R(h),
1024 e))for(w=0;l=h[w++];)zb.test(l.type||"")&&e.push(l);return r}
1025 ,cleanData:function(a,b){for(var e,d,g,l,q=0,h=c.expando,n=c.cache,m=c.support
1026 .deleteExpando,w=c.event.special;null!=(g=a[q]);q++)if((b||c.acceptData(g))&&
1027 (d=g[h],e=d&&n[d])){if(e.events)for(l in e.events)w[l]?c.event.remove(g,l):c
1028 .removeEvent(g,l,e.handle);n[d]&&(delete n[d],m?delete g[h]:g
1029 .removeAttribute!==p?g.removeAttribute(h):g[h]=null,I.push(d))}}});var Y,ga,wa
1030 ,fb=/alpha\([^)]*\)/i,pc=/opacity\s*=\s*([^)]*)/,qc=/^(top|right|bottom|left
1031 )$/,
1032 rc=/^(none|table(?!-c[ea]).+)/,Ab=/^margin/,Nb=RegExp("^("+Pa+")(.*)$","i")
1033 ,Ia=RegExp("^("+Pa+")(?!px)[a-z%]+$","i"),sc=RegExp("^([+-])=("+Pa+")","i")
1034 ,nb={BODY:"block"},tc={position:"absolute",visibility:"hidden",display:"block"
1035 },Bb={letterSpacing:0,fontWeight:400},fa=["Top","Right","Bottom","Left"],mb=
1036 ["Webkit","O","Moz","ms"];c.fn.extend({css:function(a,b){return c.access(this
1037 ,function(a,b,f){var e,d={},q=0;if(c.isArray(b)){f=ga(a);for(e=b.length;e>q
1038 ;q++)d[b[q]]=c.css(a,b[q],!1,f);return d}return f!==
1039 p?c.style(a,b,f):c.css(a,b)},a,b,1<arguments.length)},show:function(){return X
1040 (this,!0)},hide:function(){return X(this)},toggle:function(a){var
1041 b="boolean"==typeof a;return this.each(function(){(b?a:S(this))?c(this).show(
1042 ):c(this).hide()})}});c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var
1043 c=Y(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0
1044 ,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0
1045 ,zIndex:!0,zoom:!0},cssProps:{"float":c.support.cssFloat?"cssFloat":
1046 "styleFloat"},style:function(a,b,e,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a
1047 .style){var g,l,q,h=c.camelCase(b),n=a.style;if(b=c.cssProps[h]||(c.cssProps[h
1048 ]=Ea(n,h)),q=c.cssHooks[b]||c.cssHooks[h],e===p)return q&&"get"in q&&(g=q.get
1049 (a,!1,d))!==p?g:n[b];if(l=typeof e,"string"===l&&(g=sc.exec(e))&&(e=(g[1]+1)*g
1050 [2]+parseFloat(c.css(a,b)),l="number"),!(null==e||"number"===l&&isNaN(e)||
1051 ("number"!==l||c.cssNumber[h]||(e+="px"),c.support.clearCloneStyle||""!==e|
1052 |0!==b.indexOf("background")||(n[b]="inherit"),
1053 q&&"set"in q&&(e=q.set(a,e,d))===p)))try{n[b]=e}catch(m){}}},css:function(a,b
1054 ,e,d){var g,l,q,h=c.camelCase(b);return b=c.cssProps[h]||(c.cssProps[h]=Ea(a
1055 .style,h)),q=c.cssHooks[b]||c.cssHooks[h],q&&"get"in q&&(g=q.get(a,!0,e))
1056 ,g===p&&(g=Y(a,b,d)),"normal"===g&&b in Bb&&(g=Bb[b]),e?(l=parseFloat(g)
1057 ,!0===e||c.isNumeric(l)?l||0:g):g},swap:function(a,b,c,e){var g,l={};for(g in
1058 b)l[g]=a.style[g],a.style[g]=b[g];c=c.apply(a,e||[]);for(g in b)a.style[g]=l
1059 [g];return c}});v.getComputedStyle?(ga=function(a){return v.getComputedStyle(a
1060 ,
1061 null)},Y=function(a,b,e){var d,g,l,q=(e=e||ga(a))?e.getPropertyValue(b)||e[b
1062 ]:p,h=a.style;return e&&(""!==q||c.contains(a.ownerDocument,a)||(q=c.style(a,b
1063 )),Ia.test(q)&&Ab.test(b)&&(d=h.width,g=h.minWidth,l=h.maxWidth,h.minWidth=h
1064 .maxWidth=h.width=q,q=e.width,h.width=d,h.minWidth=g,h.maxWidth=l)),q}):y
1065 .documentElement.currentStyle&&(ga=function(a){return a.currentStyle}
1066 ,Y=function(a,b,c){var e,g,l;c=(c=c||ga(a))?c[b]:p;var d=a.style;return
1067 null==c&&d&&d[b]&&(c=d[b]),Ia.test(c)&&!qc.test(b)&&(e=d.left,
1068 g=a.runtimeStyle,l=g&&g.left,l&&(g.left=a.currentStyle.left),d
1069 .left="fontSize"===b?"1em":c,c=d.pixelLeft+"px",d.left=e,l&&(g.left=l))
1070 ,""===c?"auto":c});c.each(["height","width"],function(a,b){c.cssHooks[b]=
1071 {get:function(a,e,g){return e?0===a.offsetWidth&&rc.test(c.css(a,"display"))?c
1072 .swap(a,tc,function(){return Ha(a,b,g)}):Ha(a,b,g):p},set:function(a,e,g){var
1073 d=g&&ga(a);return va(a,e,g?Ga(a,b,g,c.support.boxSizing&&"border-box"===c.css
1074 (a,"boxSizing",!1,d),d):0)}}});c.support.opacity||(c.cssHooks.opacity=
1075 {get:function(a,b){return pc.test((b&&a.currentStyle?a.currentStyle.filter:a
1076 .style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b)
1077 {var e=a.style,d=a.currentStyle,g=c.isNumeric(b)?"alpha(opacity="+100*b+")":""
1078 ,l=d&&d.filter||e.filter||"";e.zoom=1;(1<=b||""===b)&&""===c.trim(l.replace(fb
1079 ,""))&&e.removeAttribute&&(e.removeAttribute("filter"),""===b||d&&!d.filter)||
1080 (e.filter=fb.test(l)?l.replace(fb,g):l+" "+g)}});c(function(){c.support
1081 .reliableMarginRight||(c.cssHooks.marginRight=
1082 {get:function(a,b){return b?c.swap(a,{display:"inline-block"},Y,[a
1083 ,"marginRight"]):p}});!c.support.pixelPosition&&c.fn.position&&c.each(["top"
1084 ,"left"],function(a,b){c.cssHooks[b]={get:function(a,e){return e?(e=Y(a,b),Ia
1085 .test(e)?c(a).position()[b]+"px":e):p}}})});c.expr&&c.expr.filters&&(c.expr
1086 .filters.hidden=function(a){return 0===a.offsetWidth&&0===a.offsetHeight||!c
1087 .support.reliableHiddenOffsets&&"none"===(a.style&&a.style.display||c.css(a
1088 ,"display"))},c.expr.filters.visible=function(a){return!c.expr.filters.hidden
1089 (a)});
1090 c.each({margin:"",padding:"",border:"Width"},function(a,b){c.cssHooks[a+b]=
1091 {expand:function(c){var e=0,g={};for(c="string"==typeof c?c.split(" "):[c];4>e
1092 ;e++)g[a+fa[e]+b]=c[e]||c[e-2]||c[0];return g}};Ab.test(a)||(c.cssHooks[a+b]
1093 .set=va)});var uc=/%20/g,Ob=/\[\]$/,Cb=/\r?\n/g,vc=/^(?:submit|button|image
1094 |reset)$/i,wc=/^(?:input|select|textarea|keygen)/i;c.fn.extend(
1095 {serialize:function(){return c.param(this.serializeArray())}
1096 ,serializeArray:function(){return this.map(function(){var a=c.prop(this
1097 ,"elements");
1098 return a?c.makeArray(a):this}).filter(function(){var a=this.type;return this
1099 .name&&!c(this).is(":disabled")&&wc.test(this.nodeName)&&!vc.test(a)&&(this
1100 .checked||!Ua.test(a))}).map(function(a,b){var e=c(this).val();return
1101 null==e?null:c.isArray(e)?c.map(e,function(a){return{name:b.name,value:a
1102 .replace(Cb,"\r\n")}}):{name:b.name,value:e.replace(Cb,"\r\n")}}).get()}});c
1103 .param=function(a,b){var e,d=[],g=function(a,b){b=c.isFunction(b)?b(
1104 ):null==b?"":b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};
1105 if(b===p&&(b=c.ajaxSettings&&c.ajaxSettings.traditional),c.isArray(a)||a
1106 .jquery&&!c.isPlainObject(a))c.each(a,function(){g(this.name,this.value)})
1107 ;else for(e in a)xa(e,a[e],b,g);return d.join("&").replace(uc,"+")};var ja,da
1108 ,gb=c.now(),hb=/\?/,xc=/#.*$/,Db=/([?&])_=[^&]*/,yc=/^(.*?):[ \t]*([^\r\n]*
1109 )\r?$/gm,zc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ac=/^
1110 (?:GET|HEAD)$/,Bc=/^\/\//,Eb=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/
1111 ,Fb=c.fn.load,Gb={},Wa={},Hb="*/".concat("*");try{da=
1112 Na.href}catch(Fc){da=y.createElement("a"),da.href="",da=da.href}ja=Eb.exec(da
1113 .toLowerCase())||[];c.fn.load=function(a,b,e){if("string"!=typeof a&&Fb)return
1114 Fb.apply(this,arguments);var d,g,l,q=this,h=a.indexOf(" ");return 0<=h&&(d=a
1115 .slice(h,a.length),a=a.slice(0,h)),c.isFunction(b)?(e=b,b=p):b&
1116 &"object"==typeof b&&(g="POST"),0<q.length&&c.ajax({url:a,type:g
1117 ,dataType:"html",data:b}).done(function(a){l=arguments;q.html(d?c("<div>")
1118 .append(c.parseHTML(a)).find(d):a)}).complete(e&&function(a,b){q.each(e,
1119 l||[a.responseText,b,a])}),this};c.each("ajaxStart ajaxStop ajaxComplete
1120 ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a)
1121 {return this.on(b,a)}});c.each(["get","post"],function(a,b){c[b]=function(a,e
1122 ,g,d){return c.isFunction(e)&&(d=d||g,g=e,e=p),c.ajax({url:a,type:b,dataType:d
1123 ,data:e,success:g})}});c.extend({active:0,lastModified:{},etag:{}
1124 ,ajaxSettings:{url:da,type:"GET",isLocal:zc.test(ja[1]),global:!0
1125 ,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded;
1126 charset=UTF-8",
1127 accepts:{"*":Hb,text:"text/plain",html:"text/html",xml:"application/xml,
1128 text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/
1129 ,html:/html/,json:/json/},responseFields:{xml:"responseXML"
1130 ,text:"responseText"},converters:{"* text":v.String,"text html":!0,"text
1131 json":c.parseJSON,"text xml":c.parseXML},flatOptions:{url:!0,context:!0}}
1132 ,ajaxSetup:function(a,b){return b?P(P(a,c.ajaxSettings),b):P(c.ajaxSettings,a)
1133 },ajaxPrefilter:Ka(Gb),ajaxTransport:Ka(Wa),ajax:function(a,b){function e(a,
1134 b,f,k){var q,n,w,u,J,N=b;if(2!==O){O=2;h&&clearTimeout(h);d=p;l=k||"";C
1135 .readyState=0<a?4:0;if(f){var D;u=r;k=C;var G,E,M,F=u.contents,I=u.dataTypes
1136 ,L=u.responseFields;for(G in L)G in f&&(k[L[G]]=f[G]);for(;"*"===I[0];)I.shift
1137 (),D===p&&(D=u.mimeType||k.getResponseHeader("Content-Type"));if(D)for(G in F
1138 )if(F[G]&&F[G].test(D)){I.unshift(G);break}if(I[0]in f)E=I[0];else{for(G in f)
1139 {if(!I[0]||u.converters[G+" "+I[0]]){E=G;break}M||(M=G)}E=E||M}u=D=E?(E!==I[0]
1140 &&I.unshift(E),f[E]):p}if(200<=a&&300>a||304===
1141 a)if(r.ifModified&&(J=C.getResponseHeader("Last-Modified"),J&&(c.lastModified
1142 [g]=J),J=C.getResponseHeader("etag"),J&&(c.etag[g]=J)),304===a)q=!0
1143 ,N="notmodified";else{var H;a:{q=r;n=u;var Ca,V;J={};N=0;D=q.dataTypes.slice()
1144 ;G=D[0];if(q.dataFilter&&(n=q.dataFilter(n,q.dataType)),D[1])for(H in q
1145 .converters)J[H.toLowerCase()]=q.converters[H];for(;w=D[++N];)if("*"!==w){if
1146 ("*"!==G&&G!==w){if(H=J[G+" "+w]||J["* "+w],!H)for(Ca in J)if(V=Ca.split(" ")
1147 ,V[1]===w&&(H=J[G+" "+V[0]]||J["* "+V[0]])){!0===H?H=J[Ca]:
1148 !0!==J[Ca]&&(w=V[0],D.splice(N--,0,w));break}if(!0!==H)if(H&&q["throws"])n=H(n
1149 );else try{n=H(n)}catch(P){H={state:"parsererror",error:H?P:"No conversion
1150 from "+G+" to "+w};break a}}G=w}H={state:"success",data:n}}q=H;N=q.state;n=q
1151 .data;w=q.error;q=!w}else w=N,(a||!N)&&(N="error",0>a&&(a=0));C.status=a;C
1152 .statusText=(b||N)+"";q?B.resolveWith(z,[n,N,C]):B.rejectWith(z,[C,N,w]);C
1153 .statusCode(A);A=p;m&&v.trigger(q?"ajaxSuccess":"ajaxError",[C,r,q?n:w]);y
1154 .fireWith(z,[C,N]);m&&(v.trigger("ajaxComplete",[C,
1155 r]),--c.active||c.event.trigger("ajaxStop"))}}"object"==typeof a&&(b=a,a=p)
1156 ;b=b||{};var d,g,l,q,h,n,m,w,r=c.ajaxSetup({},b),z=r.context||r,v=r.context&&
1157 (z.nodeType||z.jquery)?c(z):c.event,B=c.Deferred(),y=c.Callbacks("once memory"
1158 ),A=r.statusCode||{},J={},N={},O=0,D="canceled",C={readyState:0
1159 ,getResponseHeader:function(a){var b;if(2===O){if(!q)for(q={};b=yc.exec(l);)q
1160 [b[1].toLowerCase()]=b[2];b=q[a.toLowerCase()]}return null==b?null:b}
1161 ,getAllResponseHeaders:function(){return 2===O?l:null}
1162 ,setRequestHeader:function(a,
1163 b){var c=a.toLowerCase();return O||(a=N[c]=N[c]||a,J[a]=b),this}
1164 ,overrideMimeType:function(a){return O||(r.mimeType=a),this}
1165 ,statusCode:function(a){var b;if(a)if(2>O)for(b in a)A[b]=[A[b],a[b]];else C
1166 .always(a[C.status]);return this},abort:function(a){a=a||D;return d&&d.abort(a
1167 ),e(0,a),this}};if(B.promise(C).complete=y.add,C.success=C.done,C.error=C.fail
1168 ,r.url=((a||r.url||da)+"").replace(xc,"").replace(Bc,ja[1]+"//"),r.type=b
1169 .method||b.type||r.method||r.type,r.dataTypes=c.trim(r.dataType||"*")
1170 .toLowerCase().match(Z)||
1171 [""],null==r.crossDomain&&(n=Eb.exec(r.url.toLowerCase()),r.crossDomain=!(!n|
1172 |n[1]===ja[1]&&n[2]===ja[2]&&(n[3]||("http:"===n[1]?80:443))==(ja[3]||
1173 ("http:"===ja[1]?80:443)))),r.data&&r.processData&&"string"!=typeof r.data&&(r
1174 .data=c.param(r.data,r.traditional)),La(Gb,r,b,C),2===O)return C;(m=r.global)&
1175 &0===c.active++&&c.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r
1176 .hasContent=!Ac.test(r.type);g=r.url;r.hasContent||(r.data&&(g=r.url+=(hb.test
1177 (g)?"&":"?")+r.data,delete r.data),!1===r.cache&&
1178 (r.url=Db.test(g)?g.replace(Db,"$1_="+gb++):g+(hb.test(g)?"&":"?")+"_="+gb++))
1179 ;r.ifModified&&(c.lastModified[g]&&C.setRequestHeader("If-Modified-Since",c
1180 .lastModified[g]),c.etag[g]&&C.setRequestHeader("If-None-Match",c.etag[g]));(r
1181 .data&&r.hasContent&&!1!==r.contentType||b.contentType)&&C.setRequestHeader
1182 ("Content-Type",r.contentType);C.setRequestHeader("Accept",r.dataTypes[0]&&r
1183 .accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?",
1184 "+Hb+"; q=0.01":""):r.accepts["*"]);for(w in r.headers)C.setRequestHeader(w,
1185 r.headers[w]);if(r.beforeSend&&(!1===r.beforeSend.call(z,C,r)||2===O))return C
1186 .abort();D="abort";for(w in{success:1,error:1,complete:1})C[w](r[w]);if(d=La
1187 (Wa,r,b,C)){C.readyState=1;m&&v.trigger("ajaxSend",[C,r]);r.async&&0<r.timeout
1188 &&(h=setTimeout(function(){C.abort("timeout")},r.timeout));try{O=1,d.send(J,e)
1189 }catch(G){if(!(2>O))throw G;e(-1,G)}}else e(-1,"No Transport");return C}
1190 ,getScript:function(a,b){return c.get(a,p,b,"script")},getJSON:function(a,b,e)
1191 {return c.get(a,b,e,"json")}});c.ajaxSetup({accepts:{script:"text/javascript,
1192 application/javascript, application/ecmascript, application/x-ecmascript"},
1193 contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a)
1194 {return c.globalEval(a),a}}});c.ajaxPrefilter("script",function(a){a.cache===p
1195 &&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});c.ajaxTransport
1196 ("script",function(a){if(a.crossDomain){var b,e=y.head||c("head")[0]||y
1197 .documentElement;return{send:function(c,g){b=y.createElement("script");b
1198 .async=!0;a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b
1199 .onreadystatechange=function(a,c){(c||!b.readyState||
1200 /loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b
1201 .parentNode&&b.parentNode.removeChild(b),b=null,c||g(200,"success"))};e
1202 .insertBefore(b,e.firstChild)},abort:function(){b&&b.onload(p,!0)}}}});var Ib=
1203 [],ib=/(=)\?(?=&|$)|\?\?/;c.ajaxSetup({jsonp:"callback",jsonpCallback:function
1204 (){var a=Ib.pop()||c.expando+"_"+gb++;return this[a]=!0,a}});c.ajaxPrefilter
1205 ("json jsonp",function(a,b,e){var d,g,l,q=!1!==a.jsonp&&(ib.test(a.url
1206 )?"url":"string"==typeof a.data&&!(a.contentType||"").indexOf
1207 ("application/x-www-form-urlencoded")&&
1208 ib.test(a.data)&&"data");return q||"jsonp"===a.dataTypes[0]?(d=a
1209 .jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback
1210 ,q?a[q]=a[q].replace(ib,"$1"+d):!1!==a.jsonp&&(a.url+=(hb.test(a.url)?"&":"?"
1211 )+a.jsonp+"="+d),a.converters["script json"]=function(){return l||c.error(d+"
1212 was not called"),l[0]},a.dataTypes[0]="json",g=v[d],v[d]=function()
1213 {l=arguments},e.always(function(){v[d]=g;a[d]&&(a.jsonpCallback=b
1214 .jsonpCallback,Ib.push(d));l&&c.isFunction(g)&&g(l[0]);l=g=p}),"script"):
1215 p});var pa,Ba,Cc=0,jb=v.ActiveXObject&&function(){for(var a in pa)pa[a](p,!0)}
1216 ;c.ajaxSettings.xhr=v.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&ka(
1217 )))a:{try{a=new v.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void
1218 0}return a}:ka;Ba=c.ajaxSettings.xhr();c.support.cors=!!Ba&
1219 &"withCredentials"in Ba;(Ba=c.support.ajax=!!Ba)&&c.ajaxTransport(function(a)
1220 {if(!a.crossDomain||c.support.cors){var b;return{send:function(e,d){var g,l
1221 ,q=a.xhr();if(a.username?q.open(a.type,a.url,a.async,a.username,
1222 a.password):q.open(a.type,a.url,a.async),a.xhrFields)for(l in a.xhrFields)q[l
1223 ]=a.xhrFields[l];a.mimeType&&q.overrideMimeType&&q.overrideMimeType(a.mimeType
1224 );a.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"
1225 ]="XMLHttpRequest");try{for(l in e)q.setRequestHeader(l,e[l])}catch(h){}q.send
1226 (a.hasContent&&a.data||null);b=function(e,k){var l,h,n,w,m;try{if(b&&(k||4===q
1227 .readyState))if(b=p,g&&(q.onreadystatechange=c.noop,jb&&delete pa[g]),k)4!==q
1228 .readyState&&q.abort();else{w={};l=q.status;m=q.responseXML;
1229 n=q.getAllResponseHeaders();m&&m.documentElement&&(w.xml=m);"string"==typeof q
1230 .responseText&&(w.text=q.responseText);try{h=q.statusText}catch(r){h=""}l||!a
1231 .isLocal||a.crossDomain?1223===l&&(l=204):l=w.text?200:404}}catch(z){k||d(-1,z
1232 )}w&&d(l,h,w,n)};a.async?4===q.readyState?setTimeout(b):(g=++Cc,jb&&(pa||(pa={
1233 },c(v).unload(jb)),pa[g]=b),q.onreadystatechange=b):b()},abort:function(){b&&b
1234 (p,!0)}}}});var la,Ta,Qb=/^(?:toggle|show|hide)$/,Dc=RegExp("^(?:([+-])=|)
1235 ("+Pa+")([a-z%]*)$","i"),Ec=/queueHooks$/,
1236 Ma=[w],za={"*":[function(a,b){var e,d,g=this.createTween(a,b),l=Dc.exec(b),q=g
1237 .cur(),h=+q||0,n=1,w=20;if(l){if(e=+l[2],d=l[3]||(c.cssNumber[a]?"":"px")
1238 ,"px"!==d&&h){h=c.css(g.elem,a,!0)||e||1;do n=n||".5",h/=n,c.style(g.elem,a
1239 ,h+d);while(n!==(n=g.cur()/q)&&1!==n&&--w)}g.unit=d;g.start=h;g.end=l[1]?h+(l
1240 [1]+1)*e:e}return g}]};c.Animation=c.extend(e,{tweener:function(a,b){c
1241 .isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var e,d=0,g=a.length;g>d;d++
1242 )e=a[d],za[e]=za[e]||[],za[e].unshift(b)},prefilter:function(a,
1243 b){b?Ma.unshift(a):Ma.push(a)}});c.Tween=z;z.prototype={constructor:z
1244 ,init:function(a,b,e,d,g,l){this.elem=a;this.prop=e;this.easing=g||"swing"
1245 ;this.options=b;this.start=this.now=this.cur();this.end=d;this.unit=l||(c
1246 .cssNumber[e]?"":"px")},cur:function(){var a=z.propHooks[this.prop];return a&
1247 &a.get?a.get(this):z.propHooks._default.get(this)},run:function(a){var b,e=z
1248 .propHooks[this.prop];return b=this.options.duration?c.easing[this.easing](a
1249 ,this.options.duration*a,0,1,this.options.duration):a,this.now=
1250 (this.end-this.start)*b+this.start,this.options.step&&this.options.step.call
1251 (this.elem,this.now,this),e&&e.set?e.set(this):z.propHooks._default.set(this)
1252 ,this}};z.prototype.init.prototype=z.prototype;z.propHooks={_default:
1253 {get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem
1254 .style[a.prop]?(b=c.css(a.elem,a.prop,"auto"),b&&"auto"!==b?b:0):a.elem[a.prop
1255 ]},set:function(a){c.fx.step[a.prop]?c.fx.step[a.prop](a):a.elem.style&&
1256 (null!=a.elem.style[c.cssProps[a.prop]]||c.cssHooks[a.prop])?
1257 c.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}};z.propHooks
1258 .scrollTop=z.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem
1259 .parentNode&&(a.elem[a.prop]=a.now)}};c.each(["toggle","show","hide"],function
1260 (a,b){var e=c.fn[b];c.fn[b]=function(a,c,d){return null==a||"boolean"==typeof
1261 a?e.apply(this,arguments):this.animate(J(b,!0),a,c,d)}});c.fn.extend(
1262 {fadeTo:function(a,b,c,e){return this.filter(S).css("opacity",0).show().end()
1263 .animate({opacity:b},a,c,e)},animate:function(a,b,d,q){var g=
1264 c.isEmptyObject(a),l=c.speed(b,d,q),h=function(){var b=e(this,c.extend({},a),l
1265 );h.finish=function(){b.stop(!0)};(g||c._data(this,"finish"))&&b.stop(!0)}
1266 ;return h.finish=h,g||!1===l.queue?this.each(h):this.queue(l.queue,h)}
1267 ,stop:function(a,b,e){var d=function(a){var b=a.stop;delete a.stop;b(e)}
1268 ;return"string"!=typeof a&&(e=b,b=a,a=p),b&&!1!==a&&this.queue(a||"fx",[])
1269 ,this.each(function(){var b=!0,f=null!=a&&a+"queueHooks",q=c.timers,h=c._data
1270 (this);if(f)h[f]&&h[f].stop&&d(h[f]);else for(f in h)h[f]&&
1271 h[f].stop&&Ec.test(f)&&d(h[f]);for(f=q.length;f--;)q[f].elem!==this||null!=a&
1272 &q[f].queue!==a||(q[f].anim.stop(e),b=!1,q.splice(f,1));!b&&e||c.dequeue(this
1273 ,a)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var b
1274 ,e=c._data(this),d=e[a+"queue"];b=e[a+"queueHooks"];var g=c.timers,q=d?d
1275 .length:0;e.finish=!0;c.queue(this,a,[]);b&&b.cur&&b.cur.finish&&b.cur.finish
1276 .call(this);for(b=g.length;b--;)g[b].elem===this&&g[b].queue===a&&(g[b].anim
1277 .stop(!0),g.splice(b,1));for(b=0;q>b;b++)d[b]&&
1278 d[b].finish&&d[b].finish.call(this);delete e.finish})}});c.each({slideDown:J
1279 ("show"),slideUp:J("hide"),slideToggle:J("toggle"),fadeIn:{opacity:"show"}
1280 ,fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a
1281 ]=function(a,c,e){return this.animate(b,a,c,e)}});c.speed=function(a,b,e){var
1282 d=a&&"object"==typeof a?c.extend({},a):{complete:e||!e&&b||c.isFunction(a)&&a
1283 ,duration:a,easing:e&&b||b&&!c.isFunction(b)&&b};return d.duration=c.fx
1284 .off?0:"number"==typeof d.duration?d.duration:d.duration in
1285 c.fx.speeds?c.fx.speeds[d.duration]:c.fx.speeds._default,(null==d.queue|
1286 |!0===d.queue)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){c
1287 .isFunction(d.old)&&d.old.call(this);d.queue&&c.dequeue(this,d.queue)},d};c
1288 .easing={linear:function(a){return a},swing:function(a){return.5-Math.cos
1289 (a*Math.PI)/2}};c.timers=[];c.fx=z.prototype.init;c.fx.tick=function(){var a
1290 ,b=c.timers,e=0;for(la=c.now();b.length>e;e++)a=b[e],a()||b[e]!==a||b.splice
1291 (e--,1);b.length||c.fx.stop();la=p};c.fx.timer=function(a){a()&&
1292 c.timers.push(a)&&c.fx.start()};c.fx.interval=13;c.fx.start=function(){Ta||
1293 (Ta=setInterval(c.fx.tick,c.fx.interval))};c.fx.stop=function(){clearInterval
1294 (Ta);Ta=null};c.fx.speeds={slow:600,fast:200,_default:400};c.fx.step={};c.expr
1295 &&c.expr.filters&&(c.expr.filters.animated=function(a){return c.grep(c.timers
1296 ,function(b){return a===b.elem}).length});c.fn.offset=function(a){if(arguments
1297 .length)return a===p?this:this.each(function(b){c.offset.setOffset(this,a,b)})
1298 ;var b,e,d={top:0,left:0},g=this[0],q=
1299 g&&g.ownerDocument;if(q)return b=q.documentElement,c.contains(b,g)?(g
1300 .getBoundingClientRect!==p&&(d=g.getBoundingClientRect()),e=N(q),{top:d.top+(e
1301 .pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(e.pageXOffset||b
1302 .scrollLeft)-(b.clientLeft||0)}):d};c.offset={setOffset:function(a,b,e){var
1303 d=c.css(a,"position");"static"===d&&(a.style.position="relative");var g,q,h=c
1304 (a),n=h.offset(),w=c.css(a,"top"),m=c.css(a,"left"),d=("absolute"===d|
1305 |"fixed"===d)&&-1<c.inArray("auto",[w,m]),r={},p={};d?(p=h.position(),
1306 g=p.top,q=p.left):(g=parseFloat(w)||0,q=parseFloat(m)||0);c.isFunction(b)&&
1307 (b=b.call(a,e,n));null!=b.top&&(r.top=b.top-n.top+g);null!=b.left&&(r.left=b
1308 .left-n.left+q);"using"in b?b.using.call(a,r):h.css(r)}};c.fn.extend(
1309 {position:function(){if(this[0]){var a,b,e={top:0,left:0},d=this[0]
1310 ;return"fixed"===c.css(d,"position")?b=d.getBoundingClientRect():(a=this
1311 .offsetParent(),b=this.offset(),c.nodeName(a[0],"html")||(e=a.offset()),e
1312 .top+=c.css(a[0],"borderTopWidth",!0),e.left+=c.css(a[0],"borderLeftWidth",
1313 !0)),{top:b.top-e.top-c.css(d,"marginTop",!0),left:b.left-e.left-c.css(d
1314 ,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for
1315 (var a=this.offsetParent||y.documentElement;a&&!c.nodeName(a,"html")&
1316 &"static"===c.css(a,"position");)a=a.offsetParent;return a||y.documentElement}
1317 )}});c.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b)
1318 {var e=/Y/.test(b);c.fn[a]=function(d){return c.access(this,function(a,d,q)
1319 {var h=N(a);return q===p?h?b in h?h[b]:h.document.documentElement[d]:
1320 a[d]:(h?h.scrollTo(e?c(h).scrollLeft():q,e?q:c(h).scrollTop()):a[d]=q,p)},a,d
1321 ,arguments.length,null)}});c.each({Height:"height",Width:"width"},function(a,b
1322 ){c.each({padding:"inner"+a,content:b,"":"outer"+a},function(e,d){c.fn[d
1323 ]=function(g,d){var q=arguments.length&&(e||"boolean"!=typeof g),h=e||(!0===g|
1324 |!0===d?"margin":"border");return c.access(this,function(b,e,f){var g;return c
1325 .isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(g=b
1326 .documentElement,Math.max(b.body["scroll"+a],g["scroll"+
1327 a],b.body["offset"+a],g["offset"+a],g["client"+a])):f===p?c.css(b,e,h):c.style
1328 (b,e,f,h)},b,q?g:p,q,null)}})});v.jQuery=v.$=c;"function"==typeof define&
1329 &define.amd&&define.amd.jQuery&&define("jquery",[],function(){return c})})
1330 (window);function updateUI(v){document.body.style.opacity=0;(v="value"in v&&v
1331 .value)?(document.getElementById("proxy_on").style.display="block",document
1332 .getElementById("proxy_off").style.display="none",chrome.browserAction.setIcon
1333 ({path:{19:"./images/proxy-enabled19.webp",38:"./images/proxy-enabled38.webp"}
1334 }),chrome.preferencesPrivate.dataReductionUpdateDailyLengths.onChange
1335 .addListener(onSavingsDataChanged),chrome.preferencesPrivate
1336 .dataReductionUpdateDailyLengths.set({value:!0})):(document.getElementById
1337 ("proxy_off").style.display=
1338 "block",document.getElementById("proxy_on").style.display="none",chrome
1339 .browserAction.setIcon({path:{19:"./images/proxy-disabled19.png",38:"
1340 ./images/proxy-disabled38.png"}}),chrome.preferencesPrivate
1341 .dataReductionUpdateDailyLengths.onChange.removeListener(onSavingsDataChanged)
1342 );$("body").fadeTo(400,1)}
1343 function onSavingsDataChanged(v){var p=null,m=null;"value"in v&&!v.value&&
1344 (chrome.dataReductionProxy.dataReductionDailyContentLength.get({},function(d)
1345 {"value"in d&&(p=d.value);drawDataSavingsChart(p,m)}),chrome
1346 .dataReductionProxy.dataReductionDailyReceivedLength.get({},function(d)
1347 {"value"in d&&(m=d.value);drawDataSavingsChart(p,m)}))}var
1348 isGraphAnimationInProgress=!1,chart=null;
1349 function drawDataSavingsChart(v,p){if(v&&p&&!isGraphAnimationInProgress)
1350 {isGraphAnimationInProgress=!0;var m=Array(30),d=v.length-30;v.splice(0,d);p
1351 .splice(0,d);for(var d=Array(30),n=Array(30),h=0,r=0,B=0;30>B;B++){m[B]="";var
1352 D=v[B]?parseInt(v[B],10):0,M=p[B]?parseInt(p[B],10):0;if(0>D||0>M)M=D=0;d[B
1353 ]=h+D;n[B]=r+M;h=d[B];r=n[B]}r=d[29];h=n[29];B=0==r?0:100*(r-h)/r;0>B&&(B=0
1354 ,n=d,h=r);B=B.toFixed(1)+"";document.getElementById("data_savings_percent")
1355 .innerText=chrome.i18n.getMessage("dataSavingsPercentFormat",
1356 B);B=chrome.i18n.getMessage("originalSizeFormat",""+r);D=chrome.i18n
1357 .getMessage("compressedSizeFormat",""+h);1073741824<h?(r=(r/1073741824)
1358 .toFixed(1)+"",h=(h/1073741824).toFixed(1)+"",B=chrome.i18n.getMessage
1359 ("originalSizeFormatGb",r),D=chrome.i18n.getMessage("compressedSizeFormatGb",h
1360 )):1048576<h?(r=(r/1048576).toFixed(1)+"",h=(h/1048576).toFixed(1)+"",B=chrome
1361 .i18n.getMessage("originalSizeFormatMb",r),D=chrome.i18n.getMessage
1362 ("compressedSizeFormatMb",h)):1024<h&&(r=(r/1024).toFixed(1)+"",h=(h/
1363 1024).toFixed(1)+"",B=chrome.i18n.getMessage("originalSizeFormatKb",r)
1364 ,D=chrome.i18n.getMessage("compressedSizeFormatKb",h));document.getElementById
1365 ("original_data_size").innerHTML=B;document.getElementById
1366 ("compressed_data_size").innerHTML=D;m={labels:m,datasets:[{fillColor:"rgba
1367 (217, 217, 217, 1)",strokeColor:"rgba(217 , 217, 217, 1)",data:d},
1368 {fillColor:"rgba(3, 169, 244, 1)",strokeColor:"rgba(0, 0, 0, 0)",data:n}]};d=
1369 {bezierCurveTension:.1,animationSteps:10,animationEasing:"easeInOutSine"
1370 ,datasetStrokeWidth:1,
1371 pointDot:!1,scaleShowGridLines:!1,showScale:!1,scaleBeginAtZero:!0
1372 ,showTooltips:!1,onAnimationComplete:function(){isGraphAnimationInProgress=!1}
1373 };null==chart&&(n=document.getElementById("data_savings_graph").getContext
1374 ("2d"),chart=new Chart(n));chart.Line(m,d)}}function onEnableProxyClicked()
1375 {chrome.dataReductionProxy.spdyProxyEnabled.set({value:!0})}function
1376 onDisableProxyClicked(){chrome.dataReductionProxy.spdyProxyEnabled.set(
1377 {value:!1})}
1378 document.addEventListener("DOMContentLoaded",function(){createUI()
1379 ;"undefined"===typeof chrome.dataReductionProxy||"undefined"===typeof chrome
1380 .preferencesPrivate?document.getElementById("chrome_incompatible").style
1381 .display="block":chrome.windows.getCurrent({},function(v){v.incognito?document
1382 .getElementById("incognito").style.display="block":(document.getElementById
1383 ("main").style.display="block",chrome.dataReductionProxy.spdyProxyEnabled.get(
1384 {},updateUI),chrome.dataReductionProxy.spdyProxyEnabled.onChange.addListener
1385 (updateUI))});
1386 /mac/i.test(navigator.platform)&&setTimeout(function(){document.body.style
1387 .marginBottom="9px"},500)});
1388 function createUI(){document.getElementById("ext_name").innerText=chrome.i18n
1389 .getMessage("extNameBeta");document.getElementById
1390 ("chrome_incompatible_message").innerText=chrome.i18n.getMessage
1391 ("versionNotCompatible");document.getElementById("incognito_message")
1392 .innerText=chrome.i18n.getMessage("incognitoMessage");document.getElementById
1393 ("info1").innerText=chrome.i18n.getMessage("info1");document.getElementById
1394 ("info2").innerText=chrome.i18n.getMessage("info2");document.getElementById
1395 ("learn_more").innerText=
1396 chrome.i18n.getMessage("learnMoreLinkText");document.getElementById
1397 ("help_feedback").innerText=chrome.i18n.getMessage("helpAndFeedback");var
1398 v=document.getElementById("enable_proxy");v.innerText=chrome.i18n.getMessage
1399 ("enableDataSaverLabel");v.onclick=onEnableProxyClicked;v=document
1400 .getElementById("disable_proxy");v.innerText=chrome.i18n.getMessage
1401 ("disableDataSaverLabel");v.onclick=onDisableProxyClicked;var v=navigator
1402 .language,p=new Date,m=new Date(p.getTime()-2592E6),d={day:"numeric"
1403 ,month:"long"};
1404 document.getElementById("graph_start_date").innerText=m.toLocaleDateString(v,d
1405 );document.getElementById("graph_end_date").innerText=p.toLocaleDateString(v,d
1406 )};/*
1407
1408 Copyright (c) 2013-2014 Nick Downie
1409 Permission is hereby granted, free of charge, to any person obtaining a copy
1410 of this software and associated documentation files (the "Software"), to deal
1411 in the Software without restriction, including without limitation the rights
1412 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1413 copies of the Software, and to permit persons to whom the Software is
1414 furnished to do so, subject to the following conditions:
1415
1416 The above copyright notice and this permission notice shall be included in
1417 all copies or substantial portions of the Software.
1418
1419 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1420 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1421 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1422 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1423 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1424 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1425 SOFTWARE.
1426
1427 Chart.js
1428 http://chartjs.org/
1429 Version: 1.0.1-beta.4
1430
1431 Copyright 2014 Nick Downie
1432 Released under the MIT license
1433 https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
1434 */
1435 (function(){var v=this,p=v.Chart,m=function(b){this.canvas=b.canvas;this.ctx=b
1436 ;this.width=b.canvas.width;this.height=b.canvas.height;return this
1437 .aspectRatio=this.width/this.height,d.retinaScale(this),this};m.defaults=
1438 {global:{animation:!0,animationSteps:60,animationEasing:"easeOutQuart"
1439 ,showScale:!0,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null
1440 ,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1
1441 ,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleIntegersOnly:!0
1442 ,scaleBeginAtZero:!1,
1443 scaleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"
1444 ,scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",responsive:!1
1445 ,maintainAspectRatio:!0,showTooltips:!0,tooltipEvents:["mousemove"
1446 ,"touchstart","touchmove","mouseout"],tooltipFillColor:"rgba(0,0,0,0.8)"
1447 ,tooltipFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"
1448 ,tooltipFontSize:14,tooltipFontStyle:"normal",tooltipFontColor:"#fff"
1449 ,tooltipTitleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"
1450 ,tooltipTitleFontSize:14,
1451 tooltipTitleFontStyle:"bold",tooltipTitleFontColor:"#fff",tooltipYPadding:6
1452 ,tooltipXPadding:6,tooltipCaretSize:8,tooltipCornerRadius:6,tooltipXOffset:10
1453 ,tooltipTemplate:"<%if (label){%><%=label%>: <%}%><%= value %>"
1454 ,multiTooltipTemplate:"<%= value %>",multiTooltipKeyBackground:"#fff"
1455 ,onAnimationProgress:function(){},onAnimationComplete:function(){}}};m.types={
1456 };var d=m.helpers={},n=d.each=function(b,e,d){var h=Array.prototype.slice.call
1457 (arguments,3);if(b)if(b.length===+b.length){var n;for(n=0;n<b.length;n++)e
1458 .apply(d,
1459 [b[n],n].concat(h))}else for(n in b)e.apply(d,[b[n],n].concat(h))},h=d
1460 .clone=function(b){var e={};return n(b,function(d,h){b.hasOwnProperty(h)&&(e[h
1461 ]=d)}),e},r=d.extend=function(b){return n(Array.prototype.slice.call(arguments
1462 ,1),function(e){n(e,function(d,h){e.hasOwnProperty(h)&&(b[h]=d)})}),b},B=d
1463 .merge=function(){var b=Array.prototype.slice.call(arguments,0);return b
1464 .unshift({}),r.apply(null,b)},D=d.indexOf=function(b,e){if(Array.prototype
1465 .indexOf)return b.indexOf(e);for(var d=0;d<b.length;d++)if(b[d]===
1466 e)return d;return-1},M=(d.where=function(b,e){var q=[];return d.each(b
1467 ,function(b){e(b)&&q.push(b)}),q},d.findNextWhere=function(b,e,d){d||(d=-1)
1468 ;for(d+=1;d<b.length;d++){var h=b[d];if(e(h))return h}},d
1469 .findPreviousWhere=function(b,e,d){d||(d=b.length);for(--d;0<=d;d--){var h=b[d
1470 ];if(e(h))return h}},d.inherits=function(b){var e=this,d=b&&b.hasOwnProperty
1471 ("constructor")?b.constructor:function(){return e.apply(this,arguments)}
1472 ,h=function(){this.constructor=d};return h.prototype=e.prototype,d.prototype=
1473 new h,d.extend=M,b&&r(d.prototype,b),d.__super__=e.prototype,d}),E=d
1474 .noop=function(){},A=d.uid=function(){var b=0;return function()
1475 {return"chart-"+b++}}(),V=d.warn=function(b){window.console&
1476 &"function"==typeof window.console.warn&&console.warn(b)},ra=d
1477 .amd="function"==typeof v.define&&v.define.amd,Q=d.isNumber=function(b)
1478 {return!isNaN(parseFloat(b))&&isFinite(b)},ea=d.max=function(b){return Math
1479 .max.apply(Math,b)},R=d.min=function(b){return Math.min.apply(Math,b)},sa=(d
1480 .cap=function(b,e,d){if(Q(e)){if(b>
1481 e)return e}else if(Q(d)&&d>b)return d;return b},d.getDecimalPlaces=function(b)
1482 {return 0!==b%1&&Q(b)?b.toString().split(".")[1].length:0}),F=d
1483 .radians=function(b){return Math.PI/180*b},Da=(d.getAngleFromPoint=function(b
1484 ,e){var d=e.x-b.x,h=e.y-b.y,n=Math.sqrt(d*d+h*h),m=2*Math.PI+Math.atan2(h,d)
1485 ;return 0>d&&0>h&&(m+=2*Math.PI),{angle:m,distance:n}},d.aliasPixel=function(b
1486 ){return 0===b%2?0:.5}),Ea=(d.splineCurve=function(b,e,d,h){var n=Math.sqrt
1487 (Math.pow(e.x-b.x,2)+Math.pow(e.y-b.y,2)),m=Math.sqrt(Math.pow(d.x-
1488 e.x,2)+Math.pow(d.y-e.y,2)),r=h*n/(n+m);h=h*m/(n+m);return{inner:{x:e.x-r*(d
1489 .x-b.x),y:e.y-r*(d.y-b.y)},outer:{x:e.x+h*(d.x-b.x),y:e.y+h*(d.y-b.y)}}},d
1490 .calculateOrderOfMagnitude=function(b){return Math.floor(Math.log(b)/Math.LN10
1491 )}),S=(d.calculateScaleRange=function(b,e,d,h,n){e=Math.floor(e/(1.5*d))
1492 ;d=2>=e;var m=ea(b),r=R(b);m===r&&(m+=.5,.5<=r&&!h?r-=.5:m+=.5);b=Math.abs(m-r
1493 );b=Ea(b);m=Math.ceil(m/(1*Math.pow(10,b)))*Math.pow(10,b);h=h?0:Math.floor(r/
1494 (1*Math.pow(10,b)))*Math.pow(10,b);for(var m=
1495 m-h,r=Math.pow(10,b),p=Math.round(m/r);(p>e||e>2*p)&&!d;)if(p>e)r*=2,p=Math
1496 .round(m/r),0!==p%1&&(d=!0);else{if(n&&0<=b&&0!==r/2%1)break;r/=2;p=Math.round
1497 (m/r)}return d&&(p=2,r=m/p),{steps:p,stepValue:r,min:h,max:h+p*r}},d
1498 .template=function(b,e){if(b instanceof Function)return b(e);var d={},h,n=b
1499 ;h=e;d=/\W/.test(n)?new Function("obj","var p=[],print=function(){p.push.apply
1500 (p,arguments);};with(obj){p.push('"+n.replace(/[\r\t\n]/g," ").split("<%")
1501 .join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,
1502 "',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r")
1503 .join("\\'")+"');}return p.join('');"):d[n]=d[n];return h=h?d(h):d}),X=(d
1504 .generateLabels=function(b,e,d,h){var m=Array(e);return labelTemplateString&&n
1505 (m,function(e,n){m[n]=S(b,{value:d+h*(n+1)})}),m},d.easingEffects=
1506 {linear:function(b){return b},easeInQuad:function(b){return b*b}
1507 ,easeOutQuad:function(b){return-1*b*(b-2)},easeInOutQuad:function(b){return 1>
1508 (b/=.5)?.5*b*b:-.5*(--b*(b-2)-1)},easeInCubic:function(b){return b*b*
1509 b},easeOutCubic:function(b){return 1*((b=b/1-1)*b*b+1)}
1510 ,easeInOutCubic:function(b){return 1>(b/=.5)?.5*b*b*b:.5*((b-=2)*b*b+2)}
1511 ,easeInQuart:function(b){return b*b*b*b},easeOutQuart:function(b){return-1*(
1512 (b=b/1-1)*b*b*b-1)},easeInOutQuart:function(b){return 1>(b/=.5)?.5*b*b*b*b:-
1513 .5*((b-=2)*b*b*b-2)},easeInQuint:function(b){return 1*(b/=1)*b*b*b*b}
1514 ,easeOutQuint:function(b){return 1*((b=b/1-1)*b*b*b*b+1)}
1515 ,easeInOutQuint:function(b){return 1>(b/=.5)?.5*b*b*b*b*b:.5*((b-=2)*b*b*b*b+2
1516 )},easeInSine:function(b){return-1*
1517 Math.cos(b/1*(Math.PI/2))+1},easeOutSine:function(b){return 1*Math.sin(b/1*
1518 (Math.PI/2))},easeInOutSine:function(b){return-.5*(Math.cos(Math.PI*b/1)-1)}
1519 ,easeInExpo:function(b){return 0===b?1:1*Math.pow(2,10*(b/1-1))}
1520 ,easeOutExpo:function(b){return 1===b?1:1*(-Math.pow(2,-10*b/1)+1)}
1521 ,easeInOutExpo:function(b){return 0===b?0:1===b?1:1>(b/=.5)?.5*Math.pow(2,10*
1522 (b-1)):.5*(-Math.pow(2,-10*--b)+2)},easeInCirc:function(b){return 1<=b?b:-1*
1523 (Math.sqrt(1-(b/=1)*b)-1)},easeOutCirc:function(b){return 1*Math.sqrt(1-
1524 (b=b/1-1)*b)},easeInOutCirc:function(b){return 1>(b/=.5)?-.5*(Math.sqrt(1-b*b
1525 )-1):.5*(Math.sqrt(1-(b-=2)*b)+1)},easeInElastic:function(b){var e=1.70158,d=0
1526 ,h=1;return 0===b?0:1==(b/=1)?1:(d||(d=.3),h<Math.abs(1)?(h=1,e=d/4):e=d/
1527 (2*Math.PI)*Math.asin(1/h),-(h*Math.pow(2,10*--b)*Math.sin(2*(1*b-e)*Math.PI/d
1528 )))},easeOutElastic:function(b){var e=1.70158,d=0,h=1;return 0===b?0:1==(b/=1
1529 )?1:(d||(d=.3),h<Math.abs(1)?(h=1,e=d/4):e=d/(2*Math.PI)*Math.asin(1/h),h*Math
1530 .pow(2,-10*b)*Math.sin(2*(1*b-e)*Math.PI/
1531 d)+1)},easeInOutElastic:function(b){var e=1.70158,d=0,h=1;return 0===b?0:2==
1532 (b/=.5)?1:(d||(d=.3*1.5),h<Math.abs(1)?(h=1,e=d/4):e=d/(2*Math.PI)*Math.asin
1533 (1/h),1>b?-.5*h*Math.pow(2,10*--b)*Math.sin(2*(1*b-e)*Math.PI/d):h*Math.pow(2
1534 ,-10*--b)*Math.sin(2*(1*b-e)*Math.PI/d)*.5+1)},easeInBack:function(b){return
1535 1*(b/=1)*b*(2.70158*b-1.70158)},easeOutBack:function(b){return 1*((b=b/1-1
1536 )*b*(2.70158*b+1.70158)+1)},easeInOutBack:function(b){var e=1.70158;return 1>
1537 (b/=.5)?.5*b*b*(((e*=1.525)+1)*b-e):.5*((b-=
1538 2)*b*(((e*=1.525)+1)*b+e)+2)},easeInBounce:function(b){return 1-X
1539 .easeOutBounce(1-b)},easeOutBounce:function(b){return(b/=1)<1/2.75?7
1540 .5625*b*b:2/2.75>b?1*(7.5625*(b-=1.5/2.75)*b+.75):2.5/2.75>b?1*(7.5625*(b-=2
1541 .25/2.75)*b+.9375):1*(7.5625*(b-=2.625/2.75)*b+.984375)}
1542 ,easeInOutBounce:function(b){return.5>b?.5*X.easeInBounce(2*b):.5*X
1543 .easeOutBounce(2*b-1)+.5}}),va=d.requestAnimFrame=function(){return window
1544 .requestAnimationFrame||window.webkitRequestAnimationFrame||window
1545 .mozRequestAnimationFrame||window.oRequestAnimationFrame||
1546 window.msRequestAnimationFrame||function(b){return window.setTimeout(b,1E3/60)
1547 }}(),Ga=(d.cancelAnimFrame=function(){return window.cancelAnimationFrame|
1548 |window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window
1549 .oCancelAnimationFrame||window.msCancelAnimationFrame||function(b){return
1550 window.clearTimeout(b,1E3/60)}}(),d.animationLoop=function(b,e,d,h,n,m){var
1551 r=0,p=X[d]||X.linear,v=function(){r++;var d=r/e,q=p(d);b.call(m,q,d,r);h.call
1552 (m,q,d);e>r?m.animationFrame=va(v):n.apply(m)};va(v)},
1553 d.getRelativePosition=function(b){var e,d,h=b.originalEvent||b;b=b
1554 .currentTarget||b.srcElement;b=b.getBoundingClientRect();return h.touches?(e=h
1555 .touches[0].clientX-b.left,d=h.touches[0].clientY-b.top):(e=h.clientX-b.left
1556 ,d=h.clientY-b.top),{x:e,y:d}},d.addEvent=function(b,e,d){b.addEventListener?b
1557 .addEventListener(e,d):b.attachEvent?b.attachEvent("on"+e,d):b["on"+e]=d})
1558 ,Ha=d.removeEvent=function(b,e,d){b.removeEventListener?b.removeEventListener
1559 (e,d,!1):b.detachEvent?b.detachEvent("on"+e,d):b["on"+
1560 e]=E},Fa=(d.bindEvents=function(b,e,d){b.events||(b.events={});n(e,function(e)
1561 {b.events[e]=function(){d.apply(b,arguments)};Ga(b.chart.canvas,e,b.events[e])
1562 })},d.unbindEvents=function(b,e){n(e,function(e,d){Ha(b.chart.canvas,d,e)})})
1563 ,Ja=d.getMaximumWidth=function(b){b=b.parentNode;return b.clientWidth},xa=d
1564 .getMaximumHeight=function(b){b=b.parentNode;return b.clientHeight},Ka=(d
1565 .getMaximumSize=d.getMaximumWidth,d.retinaScale=function(b){var e=b.ctx,d=b
1566 .canvas.width;b=b.canvas.height;window.devicePixelRatio&&
1567 (e.canvas.style.width=d+"px",e.canvas.style.height=b+"px",e.canvas
1568 .height=b*window.devicePixelRatio,e.canvas.width=d*window.devicePixelRatio,e
1569 .scale(window.devicePixelRatio,window.devicePixelRatio))}),La=d.clear=function
1570 (b){b.ctx.clearRect(0,0,b.width,b.height)},P=d.fontString=function(b,e,d)
1571 {return e+" "+b+"px "+d},ka=d.longestText=function(b,e,d){b.font=e;var h=0
1572 ;return n(d,function(e){e=b.measureText(e).width;h=e>h?e:h}),h},ya=d
1573 .drawRoundedRectangle=function(b,e,d,h,n,m){b.beginPath();b.moveTo(e+
1574 m,d);b.lineTo(e+h-m,d);b.quadraticCurveTo(e+h,d,e+h,d+m);b.lineTo(e+h,d+n-m);b
1575 .quadraticCurveTo(e+h,d+n,e+h-m,d+n);b.lineTo(e+m,d+n);b.quadraticCurveTo(e
1576 ,d+n,e,d+n-m);b.lineTo(e,d+m);b.quadraticCurveTo(e,d,e+m,d);b.closePath()};m
1577 .instances={};m.Type=function(b,e,d){this.options=e;this.chart=d;this.id=A();m
1578 .instances[this.id]=this;e.responsive&&this.resize();this.initialize.call(this
1579 ,b)};r(m.Type.prototype,{initialize:function(){return this},clear:function()
1580 {return La(this.chart),this},stop:function(){return d.cancelAnimFrame.call(v,
1581 this.animationFrame),this},resize:function(b){this.stop();var e=this.chart
1582 .canvas,d=Ja(this.chart.canvas),h=this.options.maintainAspectRatio?d/this
1583 .chart.aspectRatio:xa(this.chart.canvas);return e.width=this.chart.width=d,e
1584 .height=this.chart.height=h,Ka(this.chart),"function"==typeof b&&b.apply(this
1585 ,Array.prototype.slice.call(arguments,1)),this},reflow:E,render:function(b)
1586 {return b&&this.reflow(),this.options.animation&&!b?d.animationLoop(this.draw
1587 ,this.options.animationSteps,this.options.animationEasing,
1588 this.options.onAnimationProgress,this.options.onAnimationComplete,this):(this
1589 .draw(),this.options.onAnimationComplete.call(this)),this}
1590 ,generateLegend:function(){return S(this.options.legendTemplate,this)}
1591 ,destroy:function(){this.clear();Fa(this,this.events);delete m.instances[this
1592 .id]},showTooltip:function(b,e){"undefined"==typeof this.activeElements&&(this
1593 .activeElements=[]);var h=function(b){var e=!1;return b.length!==this
1594 .activeElements.length?e=!0:(n(b,function(b,d){b!==this.activeElements[d]&&
1595 (e=!0)},this),e)}.call(this,b);if(h||e){if(this.activeElements=b,this.draw()
1596 ,0<b.length)if(this.datasets&&1<this.datasets.length){for(var r,p,h=this
1597 .datasets.length-1;0<=h&&(r=this.datasets[h].points||this.datasets[h].bars|
1598 |this.datasets[h].segments,p=D(r,b[0]),-1===p);h--);var v=[],B=[];r=function()
1599 {var b,e,h,n,q,m=[],r=[],w=[];return d.each(this.datasets,function(e){b=e
1600 .points||e.bars||e.segments;b[p]&&b[p].hasValue()&&m.push(b[p])}),d.each(m
1601 ,function(b){r.push(b.x);w.push(b.y);v.push(d.template(this.options
1602 .multiTooltipTemplate,
1603 b));B.push({fill:b._saved.fillColor||b.fillColor,stroke:b._saved.strokeColor|
1604 |b.strokeColor})},this),q=R(w),h=ea(w),n=R(r),e=ea(r),{x:n>this.chart
1605 .width/2?n:e,y:(q+h)/2}}.call(this,p);(new m.MultiTooltip({x:r.x,y:r.y
1606 ,xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding
1607 ,xOffset:this.options.tooltipXOffset,fillColor:this.options.tooltipFillColor
1608 ,textColor:this.options.tooltipFontColor,fontFamily:this.options
1609 .tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this
1610 .options.tooltipFontSize,
1611 titleTextColor:this.options.tooltipTitleFontColor,titleFontFamily:this.options
1612 .tooltipTitleFontFamily,titleFontStyle:this.options.tooltipTitleFontStyle
1613 ,titleFontSize:this.options.tooltipTitleFontSize,cornerRadius:this.options
1614 .tooltipCornerRadius,labels:v,legendColors:B,legendColorBackground:this
1615 .options.multiTooltipKeyBackground,title:b[0].label,chart:this.chart,ctx:this
1616 .chart.ctx})).draw()}else n(b,function(b){var e=b.tooltipPosition();(new m
1617 .Tooltip({x:Math.round(e.x),y:Math.round(e.y),xPadding:this.options
1618 .tooltipXPadding,
1619 yPadding:this.options.tooltipYPadding,fillColor:this.options.tooltipFillColor
1620 ,textColor:this.options.tooltipFontColor,fontFamily:this.options
1621 .tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this
1622 .options.tooltipFontSize,caretHeight:this.options.tooltipCaretSize
1623 ,cornerRadius:this.options.tooltipCornerRadius,text:S(this.options
1624 .tooltipTemplate,b),chart:this.chart})).draw()},this);return this}}
1625 ,toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart
1626 .canvas,arguments)}});
1627 m.Type.extend=function(b){var e=this,d=function(){return e.apply(this
1628 ,arguments)};if(d.prototype=h(e.prototype),r(d.prototype,b),d.extend=m.Type
1629 .extend,b.name||e.prototype.name){var n=b.name||e.prototype.name,p=m.defaults
1630 [e.prototype.name]?h(m.defaults[e.prototype.name]):{};m.defaults[n]=r(p,b
1631 .defaults);m.types[n]=d;m.prototype[n]=function(b,e){var h=B(m.defaults.global
1632 ,m.defaults[n],e||{});return new d(b,h,this)}}else V("Name not provided for
1633 this chart, so it hasn't been registered");return e};
1634 m.Element=function(b){r(this,b);this.initialize.apply(this,arguments);this
1635 .save()};r(m.Element.prototype,{initialize:function(){},restore:function(b)
1636 {return b?n(b,function(b){this[b]=this._saved[b]},this):r(this,this._saved)
1637 ,this},save:function(){return this._saved=h(this),delete this._saved._saved
1638 ,this},update:function(b){return n(b,function(b,d){this._saved[d]=this[d];this
1639 [d]=b},this),this},transition:function(b,e){return n(b,function(b,d){this[d]=
1640 (b-this._saved[d])*e+this._saved[d]},this),this},
1641 tooltipPosition:function(){return{x:this.x,y:this.y}},hasValue:function()
1642 {return Q(this.value)}});m.Element.extend=M;m.Point=m.Element.extend(
1643 {display:!0,inRange:function(b,e){var d=this.hitDetectionRadius+this.radius
1644 ;return Math.pow(b-this.x,2)+Math.pow(e-this.y,2)<Math.pow(d,2)},draw:function
1645 (){if(this.display){var b=this.ctx;b.beginPath();b.arc(this.x,this.y,this
1646 .radius,0,2*Math.PI);b.closePath();b.strokeStyle=this.strokeColor;b
1647 .lineWidth=this.strokeWidth;b.fillStyle=this.fillColor;b.fill();b.stroke()}}})
1648 ;
1649 m.Arc=m.Element.extend({inRange:function(b,e){var h=d.getAngleFromPoint(this,
1650 {x:b,y:e}),n=h.angle>=this.startAngle&&h.angle<=this.endAngle,h=h
1651 .distance>=this.innerRadius&&h.distance<=this.outerRadius;return n&&h}
1652 ,tooltipPosition:function(){var b=this.startAngle+(this.endAngle-this
1653 .startAngle)/2,e=(this.outerRadius-this.innerRadius)/2+this.innerRadius;return
1654 {x:this.x+Math.cos(b)*e,y:this.y+Math.sin(b)*e}},draw:function(){var b=this
1655 .ctx;b.beginPath();b.arc(this.x,this.y,this.outerRadius,this.startAngle,
1656 this.endAngle);b.arc(this.x,this.y,this.innerRadius,this.endAngle,this
1657 .startAngle,!0);b.closePath();b.strokeStyle=this.strokeColor;b.lineWidth=this
1658 .strokeWidth;b.fillStyle=this.fillColor;b.fill();b.lineJoin="bevel";this
1659 .showStroke&&b.stroke()}});m.Rectangle=m.Element.extend({draw:function(){var
1660 b=this.ctx,e=this.width/2,d=this.x-e,e=this.x+e,h=this.base-(this.base-this.y
1661 ),n=this.strokeWidth/2;this.showStroke&&(d+=n,e-=n,h+=n);b.beginPath();b
1662 .fillStyle=this.fillColor;b.strokeStyle=this.strokeColor;
1663 b.lineWidth=this.strokeWidth;b.moveTo(d,this.base);b.lineTo(d,h);b.lineTo(e,h)
1664 ;b.lineTo(e,this.base);b.fill();this.showStroke&&b.stroke()},height:function()
1665 {return this.base-this.y},inRange:function(b,e){return b>=this.x-this.width/2&
1666 &b<=this.x+this.width/2&&e>=this.y&&e<=this.base}});m.Tooltip=m.Element.extend
1667 ({draw:function(){var b=this.chart.ctx;b.font=P(this.fontSize,this.fontStyle
1668 ,this.fontFamily);this.xAlign="center";this.yAlign="above";var e=b.measureText
1669 (this.text).width+2*this.xPadding,d=
1670 this.fontSize+2*this.yPadding,h=d+this.caretHeight+2;this.x+e/2>this.chart
1671 .width?this.xAlign="left":0>this.x-e/2&&(this.xAlign="right");0>this.y-h&&
1672 (this.yAlign="below");var n=this.x-e/2,h=this.y-h;switch(b.fillStyle=this
1673 .fillColor,this.yAlign){case "above":b.beginPath();b.moveTo(this.x,this.y-2);b
1674 .lineTo(this.x+this.caretHeight,this.y-(2+this.caretHeight));b.lineTo(this
1675 .x-this.caretHeight,this.y-(2+this.caretHeight));b.closePath();b.fill();break
1676 ;case "below":h=this.y+2+this.caretHeight,b.beginPath(),
1677 b.moveTo(this.x,this.y+2),b.lineTo(this.x+this.caretHeight,this.y+2+this
1678 .caretHeight),b.lineTo(this.x-this.caretHeight,this.y+2+this.caretHeight),b
1679 .closePath(),b.fill()}switch(this.xAlign){case "left":n=this.x-e+(this
1680 .cornerRadius+this.caretHeight);break;case "right":n=this.x-(this
1681 .cornerRadius+this.caretHeight)}ya(b,n,h,e,d,this.cornerRadius);b.fill();b
1682 .fillStyle=this.textColor;b.textAlign="center";b.textBaseline="middle";b
1683 .fillText(this.text,n+e/2,h+d/2)}});m.MultiTooltip=m.Element.extend(
1684 {initialize:function(){this.font=
1685 P(this.fontSize,this.fontStyle,this.fontFamily);this.titleFont=P(this
1686 .titleFontSize,this.titleFontStyle,this.titleFontFamily);this.height=this
1687 .labels.length*this.fontSize+this.fontSize/2*(this.labels.length-1)+2*this
1688 .yPadding+1.5*this.titleFontSize;this.ctx.font=this.titleFont;var b=this.ctx
1689 .measureText(this.title).width,e=ka(this.ctx,this.font,this.labels)+this
1690 .fontSize+3,b=ea([e,b]);this.width=b+2*this.xPadding;b=this.height/2;0>this
1691 .y-b?this.y=b:this.y+b>this.chart.height&&(this.y=this.chart.height-
1692 b);this.x>this.chart.width/2?this.x-=this.xOffset+this.width:this.x+=this
1693 .xOffset},getLineHeight:function(b){var e=this.y-this.height/2+this.yPadding
1694 ,d=b-1;return 0===b?e+this.titleFontSize/2:e+(1.5*this.fontSize*d+this
1695 .fontSize/2)+1.5*this.titleFontSize},draw:function(){ya(this.ctx,this.x,this
1696 .y-this.height/2,this.width,this.height,this.cornerRadius);var b=this.ctx;b
1697 .fillStyle=this.fillColor;b.fill();b.closePath();b.textAlign="left";b
1698 .textBaseline="middle";b.fillStyle=this.titleTextColor;b.font=
1699 this.titleFont;b.fillText(this.title,this.x+this.xPadding,this.getLineHeight(0
1700 ));b.font=this.font;d.each(this.labels,function(e,d){b.fillStyle=this
1701 .textColor;b.fillText(e,this.x+this.xPadding+this.fontSize+3,this
1702 .getLineHeight(d+1));b.fillStyle=this.legendColorBackground;b.fillRect(this
1703 .x+this.xPadding,this.getLineHeight(d+1)-this.fontSize/2,this.fontSize,this
1704 .fontSize);b.fillStyle=this.legendColors[d].fill;b.fillRect(this.x+this
1705 .xPadding,this.getLineHeight(d+1)-this.fontSize/2,this.fontSize,this.fontSize)
1706 },
1707 this)}});m.Scale=m.Element.extend({initialize:function(){this.fit()}
1708 ,buildYLabels:function(){this.yLabels=[];for(var b=sa(this.stepValue),e=0
1709 ;e<=this.steps;e++)this.yLabels.push(S(this.templateString,{value:(this
1710 .min+e*this.stepValue).toFixed(b)}));this.yLabelWidth=this.display&&this
1711 .showLabels?ka(this.ctx,this.font,this.yLabels):0},addXLabel:function(b){this
1712 .xLabels.push(b);this.valuesCount++;this.fit()},removeXLabel:function(){this
1713 .xLabels.shift();this.valuesCount--;this.fit()},fit:function(){this
1714 .startPoint=
1715 this.display?this.fontSize:0;this.endPoint=this.display?this.height-1.5*this
1716 .fontSize-5:this.height;this.startPoint+=this.padding;this.endPoint-=this
1717 .padding;var b,e=this.endPoint-this.startPoint;this.calculateYRange(e);this
1718 .buildYLabels();for(this.calculateXLabelRotation();e>this.endPoint-this
1719 .startPoint;)e=this.endPoint-this.startPoint,b=this.yLabelWidth,this
1720 .calculateYRange(e),this.buildYLabels(),b<this.yLabelWidth&&this
1721 .calculateXLabelRotation()},calculateXLabelRotation:function(){this.ctx.font=
1722 this.font;var b,e=this.ctx.measureText(this.xLabels[0]).width;b=this.ctx
1723 .measureText(this.xLabels[this.xLabels.length-1]).width;if(this
1724 .xScalePaddingRight=b/2+3,this.xScalePaddingLeft=e/2>this
1725 .yLabelWidth+10?e/2:this.yLabelWidth+10,this.xLabelRotation=0,this.display)
1726 {var d,h=ka(this.ctx,this.font,this.xLabels);this.xLabelWidth=h;for(var n=Math
1727 .floor(this.calculateX(1)-this.calculateX(0))-6;this.xLabelWidth>n&&0===this
1728 .xLabelRotation||this.xLabelWidth>n&&90>=this.xLabelRotation&&0<this
1729 .xLabelRotation;)d=
1730 Math.cos(F(this.xLabelRotation)),b=d*e,b+this.fontSize/2>this.yLabelWidth+8&&
1731 (this.xScalePaddingLeft=b+this.fontSize/2),this.xScalePaddingRight=this
1732 .fontSize/2,this.xLabelRotation++,this.xLabelWidth=d*h;0<this.xLabelRotation&&
1733 (this.endPoint-=Math.sin(F(this.xLabelRotation))*h+3)}else this.xLabelWidth=0
1734 ,this.xScalePaddingLeft=this.xScalePaddingRight=this.padding}
1735 ,calculateYRange:E,drawingArea:function(){return this.startPoint-this.endPoint
1736 },calculateY:function(b){var e=this.drawingArea()/(this.min-
1737 this.max);return this.endPoint-e*(b-this.min)},calculateX:function(b){var e=
1738 (0<this.xLabelRotation,this.width-(this.xScalePaddingLeft+this
1739 .xScalePaddingRight)),e=e/(this.valuesCount-(this.offsetGridLines?0:1))
1740 ;b=e*b+this.xScalePaddingLeft;return this.offsetGridLines&&(b+=e/2),Math.round
1741 (b)},update:function(b){d.extend(this,b);this.fit()},draw:function(){var
1742 b=this.ctx,e=(this.endPoint-this.startPoint)/this.steps,h=Math.round(this
1743 .xScalePaddingLeft);this.display&&(b.fillStyle=this.textColor,b.font=
1744 this.font,n(this.yLabels,function(n,m){var r=this.endPoint-e*m,p=Math.round(r)
1745 ;b.textAlign="right";b.textBaseline="middle";this.showLabels&&b.fillText(n
1746 ,h-10,r);b.beginPath();0<m?(b.lineWidth=this.gridLineWidth,b.strokeStyle=this
1747 .gridLineColor):(b.lineWidth=this.lineWidth,b.strokeStyle=this.lineColor);p+=d
1748 .aliasPixel(b.lineWidth);b.moveTo(h,p);b.lineTo(this.width,p);b.stroke();b
1749 .closePath();b.lineWidth=this.lineWidth;b.strokeStyle=this.lineColor;b
1750 .beginPath();b.moveTo(h-5,p);b.lineTo(h,p);b.stroke();
1751 b.closePath()},this),n(this.xLabels,function(e,d){var h=this.calculateX(d)+Da
1752 (this.lineWidth),n=this.calculateX(d-(this.offsetGridLines?.5:0))+Da(this
1753 .lineWidth),m=0<this.xLabelRotation;b.beginPath();0<d?(b.lineWidth=this
1754 .gridLineWidth,b.strokeStyle=this.gridLineColor):(b.lineWidth=this.lineWidth,b
1755 .strokeStyle=this.lineColor);b.moveTo(n,this.endPoint);b.lineTo(n,this
1756 .startPoint-3);b.stroke();b.closePath();b.lineWidth=this.lineWidth;b
1757 .strokeStyle=this.lineColor;b.beginPath();b.moveTo(n,this.endPoint);
1758 b.lineTo(n,this.endPoint+5);b.stroke();b.closePath();b.save();b.translate(h
1759 ,m?this.endPoint+12:this.endPoint+8);b.rotate(-1*F(this.xLabelRotation));b
1760 .font=this.font;b.textAlign=m?"right":"center";b.textBaseline=m?"middle":"top"
1761 ;b.fillText(e,0,0);b.restore()},this))}});m.RadialScale=m.Element.extend(
1762 {initialize:function(){this.size=R([this.height,this.width]);this
1763 .drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY
1764 ):this.size/2},calculateCenterOffset:function(b){var e=this.drawingArea/
1765 (this.max-this.min);return(b-this.min)*e},update:function(){this.lineArc?this
1766 .drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY
1767 ):this.size/2:this.setScaleSize();this.buildYLabels()},buildYLabels:function()
1768 {this.yLabels=[];for(var b=sa(this.stepValue),e=0;e<=this.steps;e++)this
1769 .yLabels.push(S(this.templateString,{value:(this.min+e*this.stepValue).toFixed
1770 (b)}))},getCircumference:function(){return 2*Math.PI/this.valuesCount}
1771 ,setScaleSize:function(){var b,e,d,h,n,m,r,p=R([this.height/
1772 2-this.pointLabelFontSize-5,this.width/2]);r=this.width;var v=0;this.ctx
1773 .font=P(this.pointLabelFontSize,this.pointLabelFontStyle,this
1774 .pointLabelFontFamily);for(e=0;e<this.valuesCount;e++)b=this.getPointPosition
1775 (e,p),d=this.ctx.measureText(S(this.templateString,{value:this.labels[e]}))
1776 .width+5,0===e||e===this.valuesCount/2?(h=d/2,b.x+h>r&&(r=b.x+h,n=e),b.x-h<v&&
1777 (v=b.x-h,m=e)):e<this.valuesCount/2?b.x+d>r&&(r=b.x+d,n=e):e>this
1778 .valuesCount/2&&b.x-d<v&&(v=b.x-d,m=e);b=v;r=Math.ceil(r-this.width);n=this
1779 .getIndexAngle(n);
1780 m=this.getIndexAngle(m);n=r/Math.sin(n+Math.PI/2);m=b/Math.sin(m+Math.PI/2)
1781 ;n=Q(n)?n:0;m=Q(m)?m:0;this.drawingArea=p-(m+n)/2;this.setCenterPoint(m,n)}
1782 ,setCenterPoint:function(b,e){var d=this.width-e-this.drawingArea,h=b+this
1783 .drawingArea;this.xCenter=(h+d)/2;this.yCenter=this.height/2}
1784 ,getIndexAngle:function(b){var e=2*Math.PI/this.valuesCount;return b*e-Math
1785 .PI/2},getPointPosition:function(b,e){var d=this.getIndexAngle(b);return
1786 {x:Math.cos(d)*e+this.xCenter,y:Math.sin(d)*e+this.yCenter}},draw:function()
1787 {if(this.display){var b=
1788 this.ctx;if(n(this.yLabels,function(e,d){if(0<d){var h;h=this.drawingArea/this
1789 .steps*d;var n=this.yCenter-h;if(0<this.lineWidth){if(b.strokeStyle=this
1790 .lineColor,b.lineWidth=this.lineWidth,this.lineArc)b.beginPath(),b.arc(this
1791 .xCenter,this.yCenter,h,0,2*Math.PI);else{b.beginPath();for(var m=0;m<this
1792 .valuesCount;m++)h=this.getPointPosition(m,this.calculateCenterOffset(this
1793 .min+d*this.stepValue)),0===m?b.moveTo(h.x,h.y):b.lineTo(h.x,h.y)}b.closePath(
1794 );b.stroke()}if(this.showLabels){if(b.font=P(this.fontSize,
1795 this.fontStyle,this.fontFamily),this.showLabelBackdrop)h=b.measureText(e)
1796 .width,b.fillStyle=this.backdropColor,b.fillRect(this.xCenter-h/2-this
1797 .backdropPaddingX,n-this.fontSize/2-this.backdropPaddingY,h+2*this
1798 .backdropPaddingX,this.fontSize+2*this.backdropPaddingY);b.textAlign="center"
1799 ;b.textBaseline="middle";b.fillStyle=this.fontColor;b.fillText(e,this.xCenter
1800 ,n)}}},this),!this.lineArc){b.lineWidth=this.angleLineWidth;b.strokeStyle=this
1801 .angleLineColor;for(var e=this.valuesCount-1;0<=e;e--){if(0<
1802 this.angleLineWidth){var d=this.getPointPosition(e,this.calculateCenterOffset
1803 (this.max));b.beginPath();b.moveTo(this.xCenter,this.yCenter);b.lineTo(d.x,d.y
1804 );b.stroke();b.closePath()}d=this.getPointPosition(e,this
1805 .calculateCenterOffset(this.max)+5);b.font=P(this.pointLabelFontSize,this
1806 .pointLabelFontStyle,this.pointLabelFontFamily);b.fillStyle=this
1807 .pointLabelFontColor;var h=this.labels.length,m=this.labels.length/2,r=m/2
1808 ,p=r>e||e>h-r,h=e===r||e===h-r;b
1809 .textAlign=0===e?"center":e===m?"center":m>e?"left":
1810 "right";b.textBaseline=h?"middle":p?"bottom":"top";b.fillText(this.labels[e],d
1811 .x,d.y)}}}}});d.addEvent(window,"resize",function(){var b;return function()
1812 {clearTimeout(b);b=setTimeout(function(){n(m.instances,function(b){b.options
1813 .responsive&&b.resize(b.render,!0)})},50)}}());ra?define(function(){return m}
1814 ):"object"==typeof module&&module.exports&&(module.exports=m);v.Chart=m;m
1815 .noConflict=function(){return v.Chart=p,m}}).call(this);
1816 (function(){var v=this,p=v.Chart,m=p.helpers,v={scaleBeginAtZero:!0
1817 ,scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)"
1818 ,scaleGridLineWidth:1,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5
1819 ,barDatasetSpacing:1,legendTemplate:'<ul class="<%=name.toLowerCase(
1820 )%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span
1821 style="background-color:<%=datasets[i].fillColor%>"></span><%if(datasets[i]
1822 .label){%><%=datasets[i].label%><%}%></li><%}%></ul>'};p.Type.extend(
1823 {name:"Bar",defaults:v,initialize:function(d){var n=
1824 this.options;this.ScaleClass=p.Scale.extend({offsetGridLines:!0
1825 ,calculateBarX:function(d,m,p){var v=this.calculateBaseWidth();p=this
1826 .calculateX(p)-v/2;d=this.calculateBarWidth(d);return p+d*m+m*n
1827 .barDatasetSpacing+d/2},calculateBaseWidth:function(){return this.calculateX(1
1828 )-this.calculateX(0)-2*n.barValueSpacing},calculateBarWidth:function(d){var
1829 m=this.calculateBaseWidth()-(d-1)*n.barDatasetSpacing;return m/d}});this
1830 .datasets=[];this.options.showTooltips&&m.bindEvents(this,this.options
1831 .tooltipEvents,
1832 function(d){d="mouseout"!==d.type?this.getBarsAtEvent(d):[];this.eachBars
1833 (function(d){d.restore(["fillColor","strokeColor"])});m.each(d,function(d){d
1834 .fillColor=d.highlightFill;d.strokeColor=d.highlightStroke});this.showTooltip
1835 (d)});this.BarClass=p.Rectangle.extend({strokeWidth:this.options
1836 .barStrokeWidth,showStroke:this.options.barShowStroke,ctx:this.chart.ctx});m
1837 .each(d.datasets,function(h){var n={label:h.label||null,fillColor:h.fillColor
1838 ,strokeColor:h.strokeColor,bars:[]};this.datasets.push(n);
1839 m.each(h.data,function(m,p){n.bars.push(new this.BarClass({value:m,label:d
1840 .labels[p],datasetLabel:h.label,strokeColor:h.strokeColor,fillColor:h
1841 .fillColor,highlightFill:h.highlightFill||h.fillColor,highlightStroke:h
1842 .highlightStroke||h.strokeColor}))},this)},this);this.buildScale(d.labels)
1843 ;this.BarClass.prototype.base=this.scale.endPoint;this.eachBars(function(d,n,p
1844 ){m.extend(d,{width:this.scale.calculateBarWidth(this.datasets.length),x:this
1845 .scale.calculateBarX(this.datasets.length,p,n),y:this.scale.endPoint});
1846 d.save()},this);this.render()},update:function(){this.scale.update();m.each
1847 (this.activeElements,function(d){d.restore(["fillColor","strokeColor"])});this
1848 .eachBars(function(d){d.save()});this.render()},eachBars:function(d){m.each
1849 (this.datasets,function(n,h){m.each(n.bars,d,this,h)},this)}
1850 ,getBarsAtEvent:function(d){var n,h=[];d=m.getRelativePosition(d);for(var
1851 r=function(d){h.push(d.bars[n])},p=0;p<this.datasets.length;p++)for(n=0
1852 ;n<this.datasets[p].bars.length;n++)if(this.datasets[p].bars[n].inRange(d.x,
1853 d.y))return m.each(this.datasets,r),h;return h},buildScale:function(d){var
1854 n=this,h=function(){var d=[];return n.eachBars(function(h){d.push(h.value)})
1855 ,d};d={templateString:this.options.scaleLabel,height:this.chart.height
1856 ,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options
1857 .scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options
1858 .scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:d.length
1859 ,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options
1860 .scaleIntegersOnly,
1861 calculateYRange:function(d){d=m.calculateScaleRange(h(),d,this.fontSize,this
1862 .beginAtZero,this.integersOnly);m.extend(this,d)},xLabels:d,font:m.fontString
1863 (this.options.scaleFontSize,this.options.scaleFontStyle,this.options
1864 .scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options
1865 .scaleLineColor,gridLineWidth:this.options.scaleShowGridLines?this.options
1866 .scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this
1867 .options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?
1868 0:this.options.barShowStroke?this.options.barStrokeWidth:0,showLabels:this
1869 .options.scaleShowLabels,display:this.options.showScale};this.options
1870 .scaleOverride&&m.extend(d,{calculateYRange:m.noop,steps:this.options
1871 .scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options
1872 .scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this
1873 .options.scaleStepWidth});this.scale=new this.ScaleClass(d)},addData:function
1874 (d,n){m.each(d,function(d,m){this.datasets[m].bars.push(new this.BarClass(
1875 {value:d,
1876 label:n,x:this.scale.calculateBarX(this.datasets.length,m,this.scale
1877 .valuesCount+1),y:this.scale.endPoint,width:this.scale.calculateBarWidth(this
1878 .datasets.length),base:this.scale.endPoint,strokeColor:this.datasets[m]
1879 .strokeColor,fillColor:this.datasets[m].fillColor}))},this);this.scale
1880 .addXLabel(n);this.update()},removeData:function(){this.scale.removeXLabel();m
1881 .each(this.datasets,function(d){d.bars.shift()},this);this.update()}
1882 ,reflow:function(){m.extend(this.BarClass.prototype,{y:this.scale.endPoint,
1883 base:this.scale.endPoint});var d=m.extend({height:this.chart.height,width:this
1884 .chart.width});this.scale.update(d)},draw:function(d){var n=d||1;this.clear()
1885 ;this.chart.ctx;this.scale.draw(n);m.each(this.datasets,function(d,p){m.each(d
1886 .bars,function(d,h){d.hasValue()&&(d.base=this.scale.endPoint,d.transition(
1887 {x:this.scale.calculateBarX(this.datasets.length,p,h),y:this.scale.calculateY
1888 (d.value),width:this.scale.calculateBarWidth(this.datasets.length)},n).draw())
1889 },this)},this)}})}).call(this);
1890 (function(){var v=this,p=v.Chart,m=p.helpers,v={segmentShowStroke:!0
1891 ,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50
1892 ,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0
1893 ,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><%
1894 for (var i=0; i<segments.length; i++){%><li><span
1895 style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i]
1896 .label){%><%=segments[i].label%><%}%></li><%}%></ul>'};p.Type.extend(
1897 {name:"Doughnut",defaults:v,
1898 initialize:function(d){this.segments=[];this.outerRadius=(m.min([this.chart
1899 .width,this.chart.height])-this.options.segmentStrokeWidth/2)/2;this
1900 .SegmentArc=p.Arc.extend({ctx:this.chart.ctx,x:this.chart.width/2,y:this.chart
1901 .height/2});this.options.showTooltips&&m.bindEvents(this,this.options
1902 .tooltipEvents,function(d){d="mouseout"!==d.type?this.getSegmentsAtEvent(d):[]
1903 ;m.each(this.segments,function(d){d.restore(["fillColor"])});m.each(d,function
1904 (d){d.fillColor=d.highlightColor});this.showTooltip(d)});
1905 this.calculateTotal(d);m.each(d,function(d,h){this.addData(d,h,!0)},this);this
1906 .render()},getSegmentsAtEvent:function(d){var n=[],h=m.getRelativePosition(d)
1907 ;return m.each(this.segments,function(d){d.inRange(h.x,h.y)&&n.push(d)},this)
1908 ,n},addData:function(d,n,h){n=n||this.segments.length;this.segments.splice(n,0
1909 ,new this.SegmentArc({value:d.value,outerRadius:this.options
1910 .animateScale?0:this.outerRadius,innerRadius:this.options.animateScale?0:this
1911 .outerRadius/100*this.options.percentageInnerCutout,fillColor:d.color,
1912 highlightColor:d.highlight||d.color,showStroke:this.options.segmentShowStroke
1913 ,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options
1914 .segmentStrokeColor,startAngle:1.5*Math.PI,circumference:this.options
1915 .animateRotate?0:this.calculateCircumference(d.value),label:d.label}));h||
1916 (this.reflow(),this.update())},calculateCircumference:function(d){return
1917 d/this.total*Math.PI*2},calculateTotal:function(d){this.total=0;m.each(d
1918 ,function(d){this.total+=d.value},this)},update:function(){this.calculateTotal
1919 (this.segments);
1920 m.each(this.activeElements,function(d){d.restore(["fillColor"])});m.each(this
1921 .segments,function(d){d.save()});this.render()},removeData:function(d){d=m
1922 .isNumber(d)?d:this.segments.length-1;this.segments.splice(d,1);this.reflow()
1923 ;this.update()},reflow:function(){m.extend(this.SegmentArc.prototype,{x:this
1924 .chart.width/2,y:this.chart.height/2});this.outerRadius=(m.min([this.chart
1925 .width,this.chart.height])-this.options.segmentStrokeWidth/2)/2;m.each(this
1926 .segments,function(d){d.update({outerRadius:this.outerRadius,
1927 innerRadius:this.outerRadius/100*this.options.percentageInnerCutout})},this)}
1928 ,draw:function(d){var n=d?d:1;this.clear();m.each(this.segments,function(d,m)
1929 {d.transition({circumference:this.calculateCircumference(d.value)
1930 ,outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options
1931 .percentageInnerCutout},n);d.endAngle=d.startAngle+d.circumference;d.draw()
1932 ;0===m&&(d.startAngle=1.5*Math.PI);m<this.segments.length-1&&(this.segments
1933 [m+1].startAngle=d.endAngle)},this)}});p.types.Doughnut.extend({name:"Pie",
1934 defaults:m.merge(v,{percentageInnerCutout:0})})}).call(this);
1935 (function(){var v=this,p=v.Chart,m=p.helpers,v={scaleShowGridLines:!0
1936 ,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,bezierCurve:!0
1937 ,bezierCurveTension:.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1
1938 ,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2
1939 ,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><%
1940 for (var i=0; i<datasets.length; i++){%><li><span
1941 style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i]
1942 .label){%><%=datasets[i].label%><%}%></li><%}%></ul>'};p.Type.extend(
1943 {name:"Line",
1944 defaults:v,initialize:function(d){this.PointClass=p.Point.extend(
1945 {strokeWidth:this.options.pointDotStrokeWidth,radius:this.options
1946 .pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options
1947 .pointHitDetectionRadius,ctx:this.chart.ctx,inRange:function(d){return Math
1948 .pow(d-this.x,2)<Math.pow(this.radius+this.hitDetectionRadius,2)}});this
1949 .datasets=[];this.options.showTooltips&&m.bindEvents(this,this.options
1950 .tooltipEvents,function(d){d="mouseout"!==d.type?this.getPointsAtEvent(d):[];
1951 this.eachPoints(function(d){d.restore(["fillColor","strokeColor"])});m.each(d
1952 ,function(d){d.fillColor=d.highlightFill;d.strokeColor=d.highlightStroke})
1953 ;this.showTooltip(d)});m.each(d.datasets,function(n){var h={label:n.label|
1954 |null,fillColor:n.fillColor,strokeColor:n.strokeColor,pointColor:n.pointColor
1955 ,pointStrokeColor:n.pointStrokeColor,points:[]};this.datasets.push(h);m.each(n
1956 .data,function(m,p){h.points.push(new this.PointClass({value:m,label:d.labels
1957 [p],datasetLabel:n.label,strokeColor:n.pointStrokeColor,
1958 fillColor:n.pointColor,highlightFill:n.pointHighlightFill||n.pointColor
1959 ,highlightStroke:n.pointHighlightStroke||n.pointStrokeColor}))},this);this
1960 .buildScale(d.labels);this.eachPoints(function(d,h){m.extend(d,{x:this.scale
1961 .calculateX(h),y:this.scale.endPoint});d.save()},this)},this);this.render()}
1962 ,update:function(){this.scale.update();m.each(this.activeElements,function(d)
1963 {d.restore(["fillColor","strokeColor"])});this.eachPoints(function(d){d.save()
1964 });this.render()},eachPoints:function(d){m.each(this.datasets,
1965 function(n){m.each(n.points,d,this)},this)},getPointsAtEvent:function(d){var
1966 n=[],h=m.getRelativePosition(d);return m.each(this.datasets,function(d){m
1967 .each(d.points,function(d){d.inRange(h.x,h.y)&&n.push(d)})},this),n}
1968 ,buildScale:function(d){var n=this,h=function(){var d=[];return n.eachPoints
1969 (function(h){d.push(h.value)}),d};d={templateString:this.options.scaleLabel
1970 ,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx
1971 ,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,
1972 fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily
1973 ,valuesCount:d.length,beginAtZero:this.options.scaleBeginAtZero
1974 ,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(d){d=m
1975 .calculateScaleRange(h(),d,this.fontSize,this.beginAtZero,this.integersOnly);m
1976 .extend(this,d)},xLabels:d,font:m.fontString(this.options.scaleFontSize,this
1977 .options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options
1978 .scaleLineWidth,lineColor:this.options.scaleLineColor,gridLineWidth:this
1979 .options.scaleShowGridLines?
1980 this.options.scaleGridLineWidth:0,gridLineColor:this.options
1981 .scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)"
1982 ,padding:this.options.showScale?0:this.options.pointDotRadius+this.options
1983 .pointDotStrokeWidth,showLabels:this.options.scaleShowLabels,display:this
1984 .options.showScale};this.options.scaleOverride&&m.extend(d,{calculateYRange:m
1985 .noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth
1986 ,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this
1987 .options.scaleSteps*
1988 this.options.scaleStepWidth});this.scale=new p.Scale(d)},addData:function(d,n)
1989 {m.each(d,function(d,m){this.datasets[m].points.push(new this.PointClass(
1990 {value:d,label:n,x:this.scale.calculateX(this.scale.valuesCount+1),y:this
1991 .scale.endPoint,strokeColor:this.datasets[m].pointStrokeColor,fillColor:this
1992 .datasets[m].pointColor}))},this);this.scale.addXLabel(n);this.update()}
1993 ,removeData:function(){this.scale.removeXLabel();m.each(this.datasets,function
1994 (d){d.points.shift()},this);this.update()},reflow:function(){var d=
1995 m.extend({height:this.chart.height,width:this.chart.width});this.scale.update
1996 (d)},draw:function(d){var n=d||1;this.clear();var h=this.chart.ctx,p=function
1997 (d){return null!==d.value},v=function(d,h,n){return m.findNextWhere(h,p,n)||d}
1998 ,D=function(d,h,n){return m.findPreviousWhere(h,p,n)||d};this.scale.draw(n);m
1999 .each(this.datasets,function(d){var E=m.where(d.points,p);m.each(d.points
2000 ,function(d,h){d.hasValue()&&d.transition({y:this.scale.calculateY(d.value)
2001 ,x:this.scale.calculateX(h)},n)},this);this.options.bezierCurve&&
2002 m.each(E,function(d,h){var n=0<h&&h<E.length-1?this.options
2003 .bezierCurveTension:0;d.controlPoints=m.splineCurve(D(d,E,h),d,v(d,E,h),n);d
2004 .controlPoints.outer.y>this.scale.endPoint?d.controlPoints.outer.y=this.scale
2005 .endPoint:d.controlPoints.outer.y<this.scale.startPoint&&(d.controlPoints
2006 .outer.y=this.scale.startPoint);d.controlPoints.inner.y>this.scale.endPoint?d
2007 .controlPoints.inner.y=this.scale.endPoint:d.controlPoints.inner.y<this.scale
2008 .startPoint&&(d.controlPoints.inner.y=this.scale.startPoint)},
2009 this);h.lineWidth=this.options.datasetStrokeWidth;h.strokeStyle=d.strokeColor
2010 ;h.beginPath();m.each(E,function(d,n){if(0===n)h.moveTo(d.x,d.y);else if(this
2011 .options.bezierCurve){var m=D(d,E,n);h.bezierCurveTo(m.controlPoints.outer.x,m
2012 .controlPoints.outer.y,d.controlPoints.inner.x,d.controlPoints.inner.y,d.x,d.y
2013 )}else h.lineTo(d.x,d.y)},this);h.stroke();this.options.datasetFill&&0<E
2014 .length&&(h.lineTo(E[E.length-1].x,this.scale.endPoint),h.lineTo(E[0].x,this
2015 .scale.endPoint),h.fillStyle=d.fillColor,h.closePath(),
2016 h.fill());m.each(E,function(d){d.draw()})},this)}})}).call(this);
2017 (function(){var v=this,p=v.Chart,m=p.helpers,v={scaleShowLabelBackdrop:!0
2018 ,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBeginAtZero:!0
2019 ,scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,scaleShowLine:!0
2020 ,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2
2021 ,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0
2022 ,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><%
2023 for (var i=0; i<segments.length; i++){%><li><span
2024 style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i]
2025 .label){%><%=segments[i].label%><%}%></li><%}%></ul>'};p.Type.extend(
2026 {name:"PolarArea",
2027 defaults:v,initialize:function(d){this.segments=[];this.SegmentArc=p.Arc
2028 .extend({showStroke:this.options.segmentShowStroke,strokeWidth:this.options
2029 .segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,ctx:this.chart
2030 .ctx,innerRadius:0,x:this.chart.width/2,y:this.chart.height/2});this.scale=new
2031 p.RadialScale({display:this.options.showScale,fontStyle:this.options
2032 .scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options
2033 .scaleFontFamily,fontColor:this.options.scaleFontColor,
2034 showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options
2035 .scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor
2036 ,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this
2037 .options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this
2038 .options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,lineArc:!0
2039 ,width:this.chart.width,height:this.chart.height,xCenter:this.chart.width/2
2040 ,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options
2041 .scaleLabel,
2042 valuesCount:d.length});this.updateScaleRange(d);this.scale.update();m.each(d
2043 ,function(d,h){this.addData(d,h,!0)},this);this.options.showTooltips&&m
2044 .bindEvents(this,this.options.tooltipEvents,function(d){d="mouseout"!==d
2045 .type?this.getSegmentsAtEvent(d):[];m.each(this.segments,function(d){d.restore
2046 (["fillColor"])});m.each(d,function(d){d.fillColor=d.highlightColor});this
2047 .showTooltip(d)});this.render()},getSegmentsAtEvent:function(d){var n=[],h=m
2048 .getRelativePosition(d);return m.each(this.segments,function(d){d.inRange(h.x,
2049 h.y)&&n.push(d)},this),n},addData:function(d,n,h){n=n||this.segments.length
2050 ;this.segments.splice(n,0,new this.SegmentArc({fillColor:d.color
2051 ,highlightColor:d.highlight||d.color,label:d.label,value:d.value
2052 ,outerRadius:this.options.animateScale?0:this.scale.calculateCenterOffset(d
2053 .value),circumference:this.options.animateRotate?0:this.scale.getCircumference
2054 (),startAngle:1.5*Math.PI}));h||(this.reflow(),this.update())}
2055 ,removeData:function(d){d=m.isNumber(d)?d:this.segments.length-1;this.segments
2056 .splice(d,
2057 1);this.reflow();this.update()},calculateTotal:function(d){this.total=0;m.each
2058 (d,function(d){this.total+=d.value},this);this.scale.valuesCount=this.segments
2059 .length},updateScaleRange:function(d){var n=[];m.each(d,function(d){n.push(d
2060 .value)});d=this.options.scaleOverride?{steps:this.options.scaleSteps
2061 ,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue
2062 ,max:this.options.scaleStartValue+this.options.scaleSteps*this.options
2063 .scaleStepWidth}:m.calculateScaleRange(n,m.min([this.chart.width,
2064 this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero
2065 ,this.options.scaleIntegersOnly);m.extend(this.scale,d,{size:m.min([this.chart
2066 .width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart
2067 .height/2})},update:function(){this.calculateTotal(this.segments);m.each(this
2068 .segments,function(d){d.save()});this.render()},reflow:function(){m.extend
2069 (this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2});this
2070 .updateScaleRange(this.segments);this.scale.update();
2071 m.extend(this.scale,{xCenter:this.chart.width/2,yCenter:this.chart.height/2})
2072 ;m.each(this.segments,function(d){d.update({outerRadius:this.scale
2073 .calculateCenterOffset(d.value)})},this)},draw:function(d){var n=d||1;this
2074 .clear();m.each(this.segments,function(d,m){d.transition({circumference:this
2075 .scale.getCircumference(),outerRadius:this.scale.calculateCenterOffset(d.value
2076 )},n);d.endAngle=d.startAngle+d.circumference;0===m&&(d.startAngle=1.5*Math.PI
2077 );m<this.segments.length-1&&(this.segments[m+1].startAngle=
2078 d.endAngle);d.draw()},this);this.scale.draw()}})}).call(this);
2079 (function(){var v=this,p=v.Chart,m=p.helpers;p.Type.extend({name:"Radar"
2080 ,defaults:{scaleShowLine:!0,angleShowLineOut:!0,scaleShowLabels:!1
2081 ,scaleBeginAtZero:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1
2082 ,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal"
2083 ,pointLabelFontSize:10,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3
2084 ,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0
2085 ,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name
2086 .toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span
2087 style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i]
2088 .label){%><%=datasets[i].label%><%}%></li><%}%></ul>'},
2089 initialize:function(d){this.PointClass=p.Point.extend({strokeWidth:this
2090 .options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this
2091 .options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius
2092 ,ctx:this.chart.ctx});this.datasets=[];this.buildScale(d);this.options
2093 .showTooltips&&m.bindEvents(this,this.options.tooltipEvents,function(d)
2094 {d="mouseout"!==d.type?this.getPointsAtEvent(d):[];this.eachPoints(function(d)
2095 {d.restore(["fillColor","strokeColor"])});m.each(d,function(d){d.fillColor=
2096 d.highlightFill;d.strokeColor=d.highlightStroke});this.showTooltip(d)});m.each
2097 (d.datasets,function(n){var h={label:n.label||null,fillColor:n.fillColor
2098 ,strokeColor:n.strokeColor,pointColor:n.pointColor,pointStrokeColor:n
2099 .pointStrokeColor,points:[]};this.datasets.push(h);m.each(n.data,function(m,p)
2100 {var v;this.scale.animation||(v=this.scale.getPointPosition(p,this.scale
2101 .calculateCenterOffset(m)));h.points.push(new this.PointClass({value:m,label:d
2102 .labels[p],datasetLabel:n.label,x:this.options.animation?
2103 this.scale.xCenter:v.x,y:this.options.animation?this.scale.yCenter:v.y
2104 ,strokeColor:n.pointStrokeColor,fillColor:n.pointColor,highlightFill:n
2105 .pointHighlightFill||n.pointColor,highlightStroke:n.pointHighlightStroke||n
2106 .pointStrokeColor}))},this)},this);this.render()},eachPoints:function(d){m
2107 .each(this.datasets,function(n){m.each(n.points,d,this)},this)}
2108 ,getPointsAtEvent:function(d){d=m.getRelativePosition(d);d=m.getAngleFromPoint
2109 ({x:this.scale.xCenter,y:this.scale.yCenter},d);var n=2*Math.PI/this.scale
2110 .valuesCount,
2111 h=Math.round((d.angle-1.5*Math.PI)/n),p=[];return(h>=this.scale.valuesCount|
2112 |0>h)&&(h=0),d.distance<=this.scale.drawingArea&&m.each(this.datasets,function
2113 (d){p.push(d.points[h])}),p},buildScale:function(d){this.scale=new p
2114 .RadialScale({display:this.options.showScale,fontStyle:this.options
2115 .scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options
2116 .scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options
2117 .scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,
2118 backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options
2119 .scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX
2120 ,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0
2121 ,lineColor:this.options.scaleLineColor,angleLineColor:this.options
2122 .angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options
2123 .angleLineWidth:0,pointLabelFontColor:this.options.pointLabelFontColor
2124 ,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this
2125 .options.pointLabelFontFamily,
2126 pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height
2127 ,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2
2128 ,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:d.labels
2129 ,valuesCount:d.datasets[0].data.length});this.scale.setScaleSize();this
2130 .updateScaleRange(d.datasets);this.scale.buildYLabels()}
2131 ,updateScaleRange:function(d){var n=function(){var h=[];return m.each(d
2132 ,function(d){d.data?h=h.concat(d.data):m.each(d.points,function(d){h.push(d
2133 .value)})}),
2134 h}(),n=this.options.scaleOverride?{steps:this.options.scaleSteps
2135 ,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue
2136 ,max:this.options.scaleStartValue+this.options.scaleSteps*this.options
2137 .scaleStepWidth}:m.calculateScaleRange(n,m.min([this.chart.width,this.chart
2138 .height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this
2139 .options.scaleIntegersOnly);m.extend(this.scale,n)},addData:function(d,n){this
2140 .scale.valuesCount++;m.each(d,function(d,m){var p=this.scale.getPointPosition
2141 (this.scale.valuesCount,
2142 this.scale.calculateCenterOffset(d));this.datasets[m].points.push(new this
2143 .PointClass({value:d,label:n,x:p.x,y:p.y,strokeColor:this.datasets[m]
2144 .pointStrokeColor,fillColor:this.datasets[m].pointColor}))},this);this.scale
2145 .labels.push(n);this.reflow();this.update()},removeData:function(){this.scale
2146 .valuesCount--;this.scale.labels.shift();m.each(this.datasets,function(d){d
2147 .points.shift()},this);this.reflow();this.update()},update:function(){this
2148 .eachPoints(function(d){d.save()});this.reflow();this.render()},
2149 reflow:function(){m.extend(this.scale,{width:this.chart.width,height:this
2150 .chart.height,size:m.min([this.chart.width,this.chart.height]),xCenter:this
2151 .chart.width/2,yCenter:this.chart.height/2});this.updateScaleRange(this
2152 .datasets);this.scale.setScaleSize();this.scale.buildYLabels()},draw:function
2153 (d){var n=d||1,h=this.chart.ctx;this.clear();this.scale.draw();m.each(this
2154 .datasets,function(d){m.each(d.points,function(d,h){d.hasValue()&&d.transition
2155 (this.scale.getPointPosition(h,this.scale.calculateCenterOffset(d.value)),
2156 n)},this);h.lineWidth=this.options.datasetStrokeWidth;h.strokeStyle=d
2157 .strokeColor;h.beginPath();m.each(d.points,function(d,m){0===m?h.moveTo(d.x,d
2158 .y):h.lineTo(d.x,d.y)},this);h.closePath();h.stroke();h.fillStyle=d.fillColor
2159 ;h.fill();m.each(d.points,function(d){d.hasValue()&&d.draw()})},this)}})})
2160 .call(this);
OLDNEW
« no previous file with comments | « chrome/test/data/chromeproxy/extension/popup.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698