nutcracker-web 0.0.16 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,30 +0,0 @@
1
- /*!
2
- * jQuery JavaScript Library v2.0.2
3
- * http://jquery.com/
4
- *
5
- * Includes Sizzle.js
6
- * http://sizzlejs.com/
7
- *
8
- * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
9
- * Released under the MIT license
10
- * http://jquery.org/license
11
- *
12
- * Date: 2013-05-30T21:25Z
13
- */
14
- !function(d,k){function a(t){var e=t.length,n=Et.type(t);return!Et.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||"function"!==n&&(0===e||"number"==typeof e&&0<e&&e-1 in t)))}function t(t){var n=bt[t]={};return Et.each(t.match(st)||[],function(t,e){n[e]=!0}),n}function l(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Et.expando+Math.random()}function u(t,e,n){var r;if(n===k&&1===t.nodeType)if(r="data-"+e.replace(kt,"-$1").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ct.test(n)?JSON.parse(n):n)}catch(i){}wt.set(t,e,n)}else n=k;return n}function n(){return!0}function c(){return!1}function e(){try{return U.activeElement}catch(t){}}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function i(t,n,r){if(Et.isFunction(n))return Et.grep(t,function(t,e){return!!n.call(t,e,t)!==r});if(n.nodeType)return Et.grep(t,function(t){return t===n!==r});if("string"==typeof n){if(Ot.test(n))return Et.filter(n,t,r);n=Et.filter(n,t)}return Et.grep(t,function(t){return 0<=et.call(n,t)!==r})}function o(t,e){return Et.nodeName(t,"table")&&Et.nodeName(1===e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function m(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function g(t){var e=Ut.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function v(t,e){for(var n=t.length,r=0;r<n;r++)xt.set(t[r],"globalEval",!e||xt.get(e[r],"globalEval"))}function h(t,e){var n,r,i,o,s,a,u,l;if(1===e.nodeType){if(xt.hasData(t)&&(o=xt.access(t),s=xt.set(e,o),l=o.events))for(i in delete s.handle,s.events={},l)for(n=0,r=l[i].length;n<r;n++)Et.event.add(e,i,l[i][n]);wt.hasData(t)&&(a=wt.access(t),u=Et.extend({},a),wt.set(e,u))}}function y(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return e===k||e&&Et.nodeName(t,e)?Et.merge([t],n):n}function f(t,e){var n=e.nodeName.toLowerCase();"input"===n&&It.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function p(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=oe.length;i--;)if((e=oe[i]+n)in t)return e;return r}function b(t,e){return t=e||t,"none"===Et.css(t,"display")||!Et.contains(t.ownerDocument,t)}function w(t){return d.getComputedStyle(t,null)}function s(t,e){for(var n,r,i,o=[],s=0,a=t.length;s<a;s++)(r=t[s]).style&&(o[s]=xt.get(r,"olddisplay"),n=r.style.display,e?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&b(r)&&(o[s]=xt.access(r,"olddisplay",_(r.nodeName)))):o[s]||(i=b(r),(n&&"none"!==n||!i)&&xt.set(r,"olddisplay",i?n:Et.css(r,"display"))));for(s=0;s<a;s++)(r=t[s]).style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[s]||"":"none"));return t}function x(t,e,n){var r=Kt.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function C(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=Et.css(t,n+ie[o],!0,i)),r?("content"===n&&(s-=Et.css(t,"padding"+ie[o],!0,i)),"margin"!==n&&(s-=Et.css(t,"border"+ie[o]+"Width",!0,i))):(s+=Et.css(t,"padding"+ie[o],!0,i),"padding"!==n&&(s+=Et.css(t,"border"+ie[o]+"Width",!0,i)));return s}function T(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=w(t),s=Et.support.boxSizing&&"border-box"===Et.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Xt(t,e,o))<0||null==i)&&(i=t.style[e]),Zt.test(i))return i;r=s&&(Et.support.boxSizingReliable||i===t.style[e]),i=parseFloat(i)||0}return i+C(t,e,n||(s?"border":"content"),r,o)+"px"}function _(t){var e=U,n=ee[t];return n||("none"!==(n=N(t,e))&&n||((e=((Gt=(Gt||Et("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(e.documentElement))[0].contentWindow||Gt[0].contentDocument).document).write("<!doctype html><html><body>"),e.close(),n=N(t,e),Gt.detach()),ee[t]=n),n}function N(t,e){var n=Et(e.createElement(t)).appendTo(e.body),r=Et.css(n[0],"display");return n.remove(),r}function S(n,t,r,i){var e;if(Et.isArray(t))Et.each(t,function(t,e){r||ae.test(n)?i(n,e):S(n+"["+("object"==typeof e?t:"")+"]",e,r,i)});else if(r||"object"!==Et.type(t))i(n,t);else for(e in t)S(n+"["+e+"]",t[e],r,i)}function $(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,r=0,i=t.toLowerCase().match(st)||[];if(Et.isFunction(e))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function E(e,i,o,s){function a(t){var r;return u[t]=!0,Et.each(e[t]||[],function(t,e){var n=e(i,o,s);return"string"!=typeof n||l||u[n]?l?!(r=n):void 0:(i.dataTypes.unshift(n),a(n),!1)}),r}var u={},l=e===Te;return a(i.dataTypes[0])||!u["*"]&&a("*")}function j(t,e){var n,r,i=Et.ajaxSettings.flatOptions||{};for(n in e)e[n]!==k&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&Et.extend(!0,t,r),t}function M(t,e,n){for(var r,i,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),r===k&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function D(t,e,n,r){var i,o,s,a,u,l={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(h){return{state:"parsererror",error:s?h:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function A(){return setTimeout(function(){De=k}),De=Et.now()}function O(t,e,n){for(var r,i=(He[e]||[]).concat(He["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,e,t))return r}function R(o,t,e){var n,s,r=0,i=Le.length,a=Et.Deferred().always(function(){delete u.elem}),u=function(){if(s)return!1;for(var t=De||A(),e=Math.max(0,l.startTime+l.duration-t),n=1-(e/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return a.notifyWith(o,[l,n,e]),n<1&&i?e:(a.resolveWith(o,[l]),!1)},l=a.promise({elem:o,props:Et.extend({},t),opts:Et.extend(!0,{specialEasing:{}},e),originalProperties:t,originalOptions:e,startTime:De||A(),duration:e.duration,tweens:[],createTween:function(t,e){var n=Et.Tween(o,l.opts,t,e,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(n),n},stop:function(t){var e=0,n=t?l.tweens.length:0;if(s)return this;for(s=!0;e<n;e++)l.tweens[e].run(1);return t?a.resolveWith(o,[l,t]):a.rejectWith(o,[l,t]),this}}),c=l.props;for(P(c,l.opts.specialEasing);r<i;r++)if(n=Le[r].call(l,o,c,l.opts))return n;return Et.map(c,O,l),Et.isFunction(l.opts.start)&&l.opts.start.call(o,l),Et.fx.timer(Et.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function P(t,e){var n,r,i,o,s;for(n in t)if(i=e[r=Et.camelCase(n)],o=t[n],Et.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(s=Et.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}function L(e,t,n){var r,i,o,s,a,u,l=this,c={},h=e.style,f=e.nodeType&&b(e),p=xt.get(e,"fxshow");for(r in n.queue||(null==(a=Et._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,l.always(function(){l.always(function(){a.unqueued--,Et.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===Et.css(e,"display")&&"none"===Et.css(e,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",l.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),t)if(i=t[r],Oe.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show")){if("show"!==i||!p||p[r]===k)continue;f=!0}c[r]=p&&p[r]||Et.style(e,r)}if(!Et.isEmptyObject(c))for(r in p?"hidden"in p&&(f=p.hidden):p=xt.access(e,"fxshow",{}),o&&(p.hidden=!f),f?Et(e).show():l.done(function(){Et(e).hide()}),l.done(function(){var t;for(t in xt.remove(e,"fxshow"),c)Et.style(e,t,c[t])}),c)s=O(f?p[r]:0,r,l),r in p||(p[r]=s.start,f&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}function H(t,e,n,r,i){return new H.prototype.init(t,e,n,r,i)}function z(t,e){var n,r={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=ie[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function q(t){return Et.isWindow(t)?t:9===t.nodeType&&t.defaultView}var F,I,B=typeof k,W=d.location,U=d.document,J=U.documentElement,V=d.jQuery,X=d.$,G={},Y=[],Q="2.0.2",K=Y.concat,Z=Y.push,tt=Y.slice,et=Y.indexOf,nt=G.toString,rt=G.hasOwnProperty,it=Q.trim,Et=function(t,e){return new Et.fn.init(t,e,F)},ot=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,st=/\S+/g,at=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ut=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,lt=/^-ms-/,ct=/-([\da-z])/gi,ht=function(t,e){return e.toUpperCase()},ft=function(){U.removeEventListener("DOMContentLoaded",ft,!1),d.removeEventListener("load",ft,!1),Et.ready()};Et.fn=Et.prototype={jquery:Q,constructor:Et,init:function(t,e,n){var r,i;if(!t)return this;if("string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):Et.isFunction(t)?n.ready(t):(t.selector!==k&&(this.selector=t.selector,this.context=t.context),Et.makeArray(t,this));if(!(r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:at.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof Et?e[0]:e,Et.merge(this,Et.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:U,!0)),ut.test(r[1])&&Et.isPlainObject(e))for(r in e)Et.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=U.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=U,this.selector=t,this},selector:"",length:0,toArray:function(){return tt.call(this)},get:function(t){return null==t?this.toArray():t<0?this[this.length+t]:this[t]},pushStack:function(t){var e=Et.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return Et.each(this,t,e)},ready:function(t){return Et.ready.promise().done(t),this},slice:function(){return this.pushStack(tt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},map:function(n){return this.pushStack(Et.map(this,function(t,e){return n.call(t,e,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:Z,sort:[].sort,splice:[].splice},Et.fn.init.prototype=Et.fn,Et.extend=Et.fn.extend=function(t,e){var n,r,i,o,s,a,u=t||{},l=1,c=arguments.length,h=!1;for("boolean"==typeof u&&(h=u,u=e||{},l=2),"object"==typeof u||Et.isFunction(u)||(u={}),c===l&&(u=this,--l);l<c;l++)if(null!=(n=arguments[l]))for(r in n)i=u[r],u!==(o=n[r])&&(h&&o&&(Et.isPlainObject(o)||(s=Et.isArray(o)))?(a=s?(s=!1,i&&Et.isArray(i)?i:[]):i&&Et.isPlainObject(i)?i:{},u[r]=Et.extend(h,a,o)):o!==k&&(u[r]=o));return u},Et.extend({expando:"jQuery"+(Q+Math.random()).replace(/\D/g,""),noConflict:function(t){return d.$===Et&&(d.$=X),t&&d.jQuery===Et&&(d.jQuery=V),Et},isReady:!1,readyWait:1,holdReady:function(t){t?Et.readyWait++:Et.ready(!0)},ready:function(t){(!0===t?--Et.readyWait:Et.isReady)||(Et.isReady=!0)!==t&&0<--Et.readyWait||(I.resolveWith(U,[Et]),Et.fn.trigger&&Et(U).trigger("ready").off("ready"))},isFunction:function(t){return"function"===Et.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?G[nt.call(t)]||"object":typeof t},isPlainObject:function(t){if("object"!==Et.type(t)||t.nodeType||Et.isWindow(t))return!1;try{if(t.constructor&&!rt.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},error:function(t){throw new Error(t)},parseHTML:function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||U;var r=ut.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=Et.buildFragment([t],e,i),i&&Et(i).remove(),Et.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new DOMParser).parseFromString(t,"text/xml")}catch(n){e=k}return e&&!e.getElementsByTagName("parsererror").length||Et.error("Invalid XML: "+t),e},noop:function(){},globalEval:function(t){var e,n=eval;(t=Et.trim(t))&&(1===t.indexOf("use strict")?((e=U.createElement("script")).text=t,U.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(lt,"ms-").replace(ct,ht)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=a(t);if(n){if(o)for(;r<i&&!1!==e.apply(t[r],n);r++);else for(r in t)if(!1===e.apply(t[r],n))break}else if(o)for(;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":it.call(t)},makeArray:function(t,e){var n=e||[];return null!=t&&(a(Object(t))?Et.merge(n,"string"==typeof t?[t]:t):Z.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:et.call(e,t,n)},merge:function(t,e){var n=e.length,r=t.length,i=0;if("number"==typeof n)for(;i<n;i++)t[r++]=e[i];else for(;e[i]!==k;)t[r++]=e[i++];return t.length=r,t},grep:function(t,e,n){var r=[],i=0,o=t.length;for(n=!!n;i<o;i++)n!==!!e(t[i],i)&&r.push(t[i]);return r},map:function(t,e,n){var r,i=0,o=t.length,s=[];if(a(t))for(;i<o;i++)null!=(r=e(t[i],i,n))&&(s[s.length]=r);else for(i in t)null!=(r=e(t[i],i,n))&&(s[s.length]=r);return K.apply([],s)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(n=t[e],e=t,t=n),Et.isFunction(t)?(r=tt.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(tt.call(arguments)))}).guid=t.guid=t.guid||Et.guid++,i):k},access:function(t,e,n,r,i,o,s){var a=0,u=t.length,l=null==n;if("object"===Et.type(n))for(a in i=!0,n)Et.access(t,e,a,n[a],!0,o,s);else if(r!==k&&(i=!0,Et.isFunction(r)||(s=!0),l&&(e=s?(e.call(t,r),null):(l=e,function(t,e,n){return l.call(Et(t),n)})),e))for(;a<u;a++)e(t[a],n,s?r:r.call(t[a],a,e(t[a],n)));return i?t:l?e.call(t):u?e(t[0],n):o},now:Date.now,swap:function(t,e,n,r){var i,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=s[o];return i}}),Et.ready.promise=function(t){return I||(I=Et.Deferred(),"complete"===U.readyState?setTimeout(Et.ready):(U.addEventListener("DOMContentLoaded",ft,!1),d.addEventListener("load",ft,!1))),I.promise(t)},Et.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){G["[object "+e+"]"]=e.toLowerCase()}),F=Et(U),
15
- /*!
16
- * Sizzle CSS Selector Engine v1.9.4-pre
17
- * http://sizzlejs.com/
18
- *
19
- * Copyright 2013 jQuery Foundation, Inc. and other contributors
20
- * Released under the MIT license
21
- * http://jquery.org/license
22
- *
23
- * Date: 2013-05-27
24
- */
25
- function(n,i){function x(t,e,n,r){var i,o,s,a,u,l,c,h,f,p;if((e?e.ownerDocument||e:W)!==P&&R(e),n=n||[],!t||"string"!=typeof t)return n;if(1!==(a=(e=e||P).nodeType)&&9!==a)return[];if(H&&!r){if(i=Ct.exec(t))if(s=i[1]){if(9===a){if(!(o=e.getElementById(s))||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&I(e,o)&&o.id===s)return n.push(o),n}else{if(i[2])return it.apply(n,e.getElementsByTagName(t)),n;if((s=i[3])&&S.getElementsByClassName&&e.getElementsByClassName)return it.apply(n,e.getElementsByClassName(s)),n}if(S.qsa&&(!z||!z.test(t))){if(h=c=B,f=e,p=9===a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(l=m(t),(c=e.getAttribute("id"))?h=c.replace(_t,"\\$&"):e.setAttribute("id",h),h="[id='"+h+"'] ",u=l.length;u--;)l[u]=h+g(l[u]);f=gt.test(t)&&e.parentNode||e,p=l.join(",")}if(p)try{return it.apply(n,f.querySelectorAll(p)),n}catch(d){}finally{c||e.removeAttribute("id")}}}return T(t.replace(pt,"$1"),e,n,r)}function r(t){return xt.test(t+"")}function t(){function n(t,e){return r.push(t+=" ")>E.cacheLength&&delete n[r.shift()],n[t]=e}var r=[];return n}function u(t){return t[B]=!0,t}function o(t){var e=P.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e,n){for(var r,i=(t=t.split("|")).length,o=n?null:e;i--;)(r=E.attrHandle[t[i]])&&r!==e||(E.attrHandle[t[i]]=o)}function a(t,e){var n=t.getAttributeNode(e);return n&&n.specified?n.value:!0===t[e]?e.toLowerCase():null}function l(t,e){return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}function c(t){if("input"===t.nodeName.toLowerCase())return t.defaultValue}function h(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Z)-(~t.sourceIndex||Z);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function e(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function f(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function p(s){return u(function(o){return o=+o,u(function(t,e){for(var n,r=s([],t.length,o),i=r.length;i--;)t[n=r[i]]&&(t[n]=!(e[n]=t[n]))})})}function m(t,e){var n,r,i,o,s,a,u,l=X[t+" "];if(l)return e?0:l.slice(0);for(s=t,a=[],u=E.preFilter;s;){for(o in n&&!(r=dt.exec(s))||(r&&(s=s.slice(r[0].length)||s),a.push(i=[])),n=!1,(r=mt.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(pt," ")}),s=s.slice(n.length)),E.filter)!(r=wt[o].exec(s))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return e?s.length:s?x.error(t):X(t,a).slice(0)}function g(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function d(a,t,e){var u=t.dir,l=e&&"parentNode"===u,c=J++;return t.first?function(t,e,n){for(;t=t[u];)if(1===t.nodeType||l)return a(t,e,n)}:function(t,e,n){var r,i,o,s=U+" "+c;if(n){for(;t=t[u];)if((1===t.nodeType||l)&&a(t,e,n))return!0}else for(;t=t[u];)if(1===t.nodeType||l)if((i=(o=t[B]||(t[B]={}))[u])&&i[0]===s){if(!0===(r=i[1])||r===$)return!0===r}else if((i=o[u]=[s])[1]=a(t,e,n)||$,!0===i[1])return!0}}function v(i){return 1<i.length?function(t,e,n){for(var r=i.length;r--;)if(!i[r](t,e,n))return!1;return!0}:i[0]}function C(t,e,n,r,i){for(var o,s=[],a=0,u=t.length,l=null!=e;a<u;a++)(o=t[a])&&(n&&!n(o,r,i)||(s.push(o),l&&e.push(a)));return s}function y(p,d,m,g,v,t){return g&&!g[B]&&(g=y(g)),v&&!v[B]&&(v=y(v,t)),u(function(t,e,n,r){var i,o,s,a=[],u=[],l=e.length,c=t||k(d||"*",n.nodeType?[n]:n,[]),h=!p||!t&&d?c:C(c,a,p,n,r),f=m?v||(t?p:l||g)?[]:e:h;if(m&&m(h,f,n,r),g)for(i=C(f,u),g(i,[],n,r),o=i.length;o--;)(s=i[o])&&(f[u[o]]=!(h[u[o]]=s));if(t){if(v||p){if(v){for(i=[],o=f.length;o--;)(s=f[o])&&i.push(h[o]=s);v(null,f=[],i,r)}for(o=f.length;o--;)(s=f[o])&&-1<(i=v?st.call(t,s):a[o])&&(t[i]=!(e[i]=s))}}else f=C(f===e?f.splice(l,f.length):f),v?v(null,e,f,r):it.apply(e,f)})}function b(t){for(var r,e,n,i=t.length,o=E.relative[t[0].type],s=o||E.relative[" "],a=o?1:0,u=d(function(t){return t===r},s,!0),l=d(function(t){return-1<st.call(r,t)},s,!0),c=[function(t,e,n){return!o&&(n||e!==A)||((r=e).nodeType?u(t,e,n):l(t,e,n))}];a<i;a++)if(e=E.relative[t[a].type])c=[d(v(c),e)];else{if((e=E.filter[t[a].type].apply(null,t[a].matches))[B]){for(n=++a;n<i&&!E.relative[t[n].type];n++);return y(1<a&&v(c),1<a&&g(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(pt,"$1"),e,a<n&&b(t.slice(a,n)),n<i&&b(t=t.slice(n)),n<i&&g(t))}c.push(e)}return v(c)}function w(g,v){var y=0,b=0<v.length,w=0<g.length,t=function(t,e,n,r,i){var o,s,a,u=[],l=0,c="0",h=t&&[],f=null!=i,p=A,d=t||w&&E.find.TAG("*",i&&e.parentNode||e),m=U+=null==p?1:Math.random()||.1;for(f&&(A=e!==P&&e,$=y);null!=(o=d[c]);c++){if(w&&o){for(s=0;a=g[s++];)if(a(o,e,n)){r.push(o);break}f&&(U=m,$=++y)}b&&((o=!a&&o)&&l--,t&&h.push(o))}if(l+=c,b&&c!==l){for(s=0;a=v[s++];)a(h,u,e,n);if(t){if(0<l)for(;c--;)h[c]||u[c]||(u[c]=nt.call(r));u=C(u)}it.apply(r,u),f&&!t&&0<u.length&&1<l+v.length&&x.uniqueSort(r)}return f&&(U=m,A=p),h};return b?u(t):t}function k(t,e,n){for(var r=0,i=e.length;r<i;r++)x(t,e[r],n);return n}function T(t,e,n,r){var i,o,s,a,u,l=m(t);if(!r&&1===l.length){if(2<(o=l[0]=l[0].slice(0)).length&&"ID"===(s=o[0]).type&&S.getById&&9===e.nodeType&&H&&E.relative[o[1].type]){if(!(e=(E.find.ID(s.matches[0].replace(Nt,St),e)||[])[0]))return n;t=t.slice(o.shift().value.length)}for(i=wt.needsContext.test(t)?0:o.length;i--&&(s=o[i],!E.relative[a=s.type]);)if((u=E.find[a])&&(r=u(s.matches[0].replace(Nt,St),gt.test(o[0].type)&&e.parentNode||e))){if(o.splice(i,1),!(t=r.length&&g(o)))return it.apply(n,r),n;break}}return D(t,l)(r,e,!H,n,gt.test(t)),n}function _(){}var N,S,$,E,j,M,D,A,O,R,P,L,H,z,q,F,I,B="sizzle"+-new Date,W=n.document,U=0,J=0,V=t(),X=t(),G=t(),Y=!1,Q=function(){return 0},K=typeof i,Z=1<<31,tt={}.hasOwnProperty,et=[],nt=et.pop,rt=et.push,it=et.push,ot=et.slice,st=et.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]===t)return e;return-1},at="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ut="[\\x20\\t\\r\\n\\f]",lt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ct=lt.replace("w","w#"),ht="\\["+ut+"*("+lt+")"+ut+"*(?:([*^$|!~]?=)"+ut+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+ct+")|)|)"+ut+"*\\]",ft=":("+lt+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ht.replace(3,8)+")*)|.*)\\)|)",pt=new RegExp("^"+ut+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ut+"+$","g"),dt=new RegExp("^"+ut+"*,"+ut+"*"),mt=new RegExp("^"+ut+"*([>+~]|"+ut+")"+ut+"*"),gt=new RegExp(ut+"*[+~]"),vt=new RegExp("="+ut+"*([^\\]'\"]*)"+ut+"*\\]","g"),yt=new RegExp(ft),bt=new RegExp("^"+ct+"$"),wt={ID:new RegExp("^#("+lt+")"),CLASS:new RegExp("^\\.("+lt+")"),TAG:new RegExp("^("+lt.replace("w","w*")+")"),ATTR:new RegExp("^"+ht),PSEUDO:new RegExp("^"+ft),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ut+"*(even|odd|(([+-]|)(\\d*)n|)"+ut+"*(?:([+-]|)"+ut+"*(\\d+)|))"+ut+"*\\)|)","i"),bool:new RegExp("^(?:"+at+")$","i"),needsContext:new RegExp("^"+ut+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ut+"*((?:-\\d)?\\d*)"+ut+"*\\)|)(?=[^-]|$)","i")},xt=/^[^{]+\{\s*\[native \w/,Ct=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,kt=/^(?:input|select|textarea|button)$/i,Tt=/^h\d$/i,_t=/'|\\/g,Nt=new RegExp("\\\\([\\da-f]{1,6}"+ut+"?|("+ut+")|.)","ig"),St=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{it.apply(et=ot.call(W.childNodes),W.childNodes),et[W.childNodes.length].nodeType}catch($t){it={apply:et.length?function(t,e){rt.apply(t,ot.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}for(N in M=x.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},S=x.support={},R=x.setDocument=function(t){var u=t?t.ownerDocument||t:W,e=u.parentWindow;return u!==P&&9===u.nodeType&&u.documentElement?(L=(P=u).documentElement,H=!M(u),e&&e.frameElement&&e.attachEvent("onbeforeunload",function(){R()}),S.attributes=o(function(t){return t.innerHTML="<a href='#'></a>",s("type|href|height|width",l,"#"===t.firstChild.getAttribute("href")),s(at,a,null==t.getAttribute("disabled")),t.className="i",!t.getAttribute("className")}),S.input=o(function(t){return t.innerHTML="<input>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}),s("value",c,S.attributes&&S.input),S.getElementsByTagName=o(function(t){return t.appendChild(u.createComment("")),!t.getElementsByTagName("*").length}),S.getElementsByClassName=o(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),S.getById=o(function(t){return L.appendChild(t).id=B,!u.getElementsByName||!u.getElementsByName(B).length}),S.getById?(E.find.ID=function(t,e){if(typeof e.getElementById!==K&&H){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},E.filter.ID=function(t){var e=t.replace(Nt,St);return function(t){return t.getAttribute("id")===e}}):(delete E.find.ID,E.filter.ID=function(t){var n=t.replace(Nt,St);return function(t){var e=typeof t.getAttributeNode!==K&&t.getAttributeNode("id");return e&&e.value===n}}),E.find.TAG=S.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==K)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},E.find.CLASS=S.getElementsByClassName&&function(t,e){if(typeof e.getElementsByClassName!==K&&H)return e.getElementsByClassName(t)},q=[],z=[],(S.qsa=r(u.querySelectorAll))&&(o(function(t){t.innerHTML="<select><option selected=''></option></select>",t.querySelectorAll("[selected]").length||z.push("\\["+ut+"*(?:value|"+at+")"),t.querySelectorAll(":checked").length||z.push(":checked")}),o(function(t){var e=u.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("t",""),t.querySelectorAll("[t^='']").length&&z.push("[*^$]="+ut+"*(?:''|\"\")"),t.querySelectorAll(":enabled").length||z.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),z.push(",.*:")})),(S.matchesSelector=r(F=L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&o(function(t){S.disconnectedMatch=F.call(t,"div"),F.call(t,"[s!='']:x"),q.push("!=",ft)}),z=z.length&&new RegExp(z.join("|")),q=q.length&&new RegExp(q.join("|")),I=r(L.contains)||L.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},S.sortDetached=o(function(t){return 1&t.compareDocumentPosition(u.createElement("div"))}),Q=L.compareDocumentPosition?function(t,e){if(t===e)return Y=!0,0;var n=e.compareDocumentPosition&&t.compareDocumentPosition&&t.compareDocumentPosition(e);return n?1&n||!S.sortDetached&&e.compareDocumentPosition(t)===n?t===u||I(W,t)?-1:e===u||I(W,e)?1:O?st.call(O,t)-st.call(O,e):0:4&n?-1:1:t.compareDocumentPosition?-1:1}:function(t,e){var n,r=0,i=t.parentNode,o=e.parentNode,s=[t],a=[e];if(t===e)return Y=!0,0;if(!i||!o)return t===u?-1:e===u?1:i?-1:o?1:O?st.call(O,t)-st.call(O,e):0;if(i===o)return h(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?h(s[r],a[r]):s[r]===W?-1:a[r]===W?1:0},u):P},x.matches=function(t,e){return x(t,null,null,e)},x.matchesSelector=function(t,e){if((t.ownerDocument||t)!==P&&R(t),e=e.replace(vt,"='$1']"),S.matchesSelector&&H&&(!q||!q.test(e))&&(!z||!z.test(e)))try{var n=F.call(t,e);if(n||S.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch($t){}return 0<x(e,P,null,[t]).length},x.contains=function(t,e){return(t.ownerDocument||t)!==P&&R(t),I(t,e)},x.attr=function(t,e){(t.ownerDocument||t)!==P&&R(t);var n=E.attrHandle[e.toLowerCase()],r=n&&tt.call(E.attrHandle,e.toLowerCase())?n(t,e,!H):i;return r===i?S.attributes||!H?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null:r},x.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},x.uniqueSort=function(t){var e,n=[],r=0,i=0;if(Y=!S.detectDuplicates,O=!S.sortStable&&t.slice(0),t.sort(Q),Y){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return t},j=x.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=j(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r];r++)n+=j(e);return n},E=x.selectors={cacheLength:50,createPseudo:u,match:wt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Nt,St),t[3]=(t[4]||t[5]||"").replace(Nt,St),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||x.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&x.error(t[0]),t},PSEUDO:function(t){var e,n=!t[5]&&t[2];return wt.CHILD.test(t[0])?null:(t[3]&&t[4]!==i?t[2]=t[4]:n&&yt.test(n)&&(e=m(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Nt,St).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=V[t+" "];return e||(e=new RegExp("(^|"+ut+")"+t+"("+ut+"|$)"))&&V(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==K&&t.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(t){var e=x.attr(t,n);return null==e?"!="===r:!r||(e+="","="===r?e===i:"!="===r?e!==i:"^="===r?i&&0===e.indexOf(i):"*="===r?i&&-1<e.indexOf(i):"$="===r?i&&e.slice(-i.length)===i:"~="===r?-1<(" "+e+" ").indexOf(i):"|="===r&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,t,e,d,m){var g="nth"!==p.slice(0,3),v="last"!==p.slice(-4),y="of-type"===t;return 1===d&&0===m?function(t){return!!t.parentNode}:function(t,e,n){var r,i,o,s,a,u,l=g!==v?"nextSibling":"previousSibling",c=t.parentNode,h=y&&t.nodeName.toLowerCase(),f=!n&&!y;if(c){if(g){for(;l;){for(o=t;o=o[l];)if(y?o.nodeName.toLowerCase()===h:1===o.nodeType)return!1;u=l="only"===p&&!u&&"nextSibling"}return!0}if(u=[v?c.firstChild:c.lastChild],v&&f){for(a=(r=(i=c[B]||(c[B]={}))[p]||[])[0]===U&&r[1],s=r[0]===U&&r[2],o=a&&c.childNodes[a];o=++a&&o&&o[l]||(s=a=0)||u.pop();)if(1===o.nodeType&&++s&&o===t){i[p]=[U,a,s];break}}else if(f&&(r=(t[B]||(t[B]={}))[p])&&r[0]===U)s=r[1];else for(;(o=++a&&o&&o[l]||(s=a=0)||u.pop())&&((y?o.nodeName.toLowerCase()!==h:1!==o.nodeType)||!++s||(f&&((o[B]||(o[B]={}))[p]=[U,s]),o!==t)););return(s-=m)===d||s%d==0&&0<=s/d}}},PSEUDO:function(t,o){var e,s=E.pseudos[t]||E.setFilters[t.toLowerCase()]||x.error("unsupported pseudo: "+t);return s[B]?s(o):1<s.length?(e=[t,t,"",o],E.setFilters.hasOwnProperty(t.toLowerCase())?u(function(t,e){for(var n,r=s(t,o),i=r.length;i--;)t[n=st.call(t,r[i])]=!(e[n]=r[i])}):function(t){return s(t,0,e)}):s}},pseudos:{not:u(function(t){var r=[],i=[],a=D(t.replace(pt,"$1"));return a[B]?u(function(t,e,n,r){for(var i,o=a(t,null,r,[]),s=t.length;s--;)(i=o[s])&&(t[s]=!(e[s]=i))}):function(t,e,n){return r[0]=t,a(r,null,n,i),!i.pop()}}),has:u(function(e){return function(t){return 0<x(e,t).length}}),contains:u(function(e){return function(t){return-1<(t.textContent||t.innerText||j(t)).indexOf(e)}}),lang:u(function(n){return bt.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(Nt,St).toLowerCase(),function(t){var e;do{if(e=H?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===L},focus:function(t){return t===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if("@"<t.nodeName||3===t.nodeType||4===t.nodeType)return!1;return!0},parent:function(t){return!E.pseudos.empty(t)},header:function(t){return Tt.test(t.nodeName)},input:function(t){return kt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||e.toLowerCase()===t.type)},first:p(function(){return[0]}),last:p(function(t,e){return[e-1]}),eq:p(function(t,e,n){return[n<0?n+e:n]}),even:p(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:p(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:p(function(t,e,n){for(var r=n<0?n+e:n;0<=--r;)t.push(r);return t}),gt:p(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})E.pseudos[N]=e(N);for(N in{submit:!0,reset:!0})E.pseudos[N]=f(N);D=x.compile=function(t,e){var n,r=[],i=[],o=G[t+" "];if(!o){for(e||(e=m(t)),n=e.length;n--;)(o=b(e[n]))[B]?r.push(o):i.push(o);o=G(t,w(i,r))}return o},E.pseudos.nth=E.pseudos.eq,_.prototype=E.filters=E.pseudos,E.setFilters=new _,S.sortStable=B.split("").sort(Q).join("")===B,R(),[0,0].sort(Q),S.detectDuplicates=Y,Et.find=x,Et.expr=x.selectors,Et.expr[":"]=Et.expr.pseudos,Et.unique=x.uniqueSort,Et.text=x.getText,Et.isXMLDoc=x.isXML,Et.contains=x.contains}(d);var pt,dt,mt,gt,vt,yt,bt={};Et.Callbacks=function(i){i="string"==typeof i?bt[i]||t(i):Et.extend({},i);var e,n,o,s,a,r,u=[],l=!i.once&&[],c=function(t){for(e=i.memory&&t,n=!0,r=s||0,s=0,a=u.length,o=!0;u&&r<a;r++)if(!1===u[r].apply(t[0],t[1])&&i.stopOnFalse){e=!1;break}o=!1,u&&(l?l.length&&c(l.shift()):e?u=[]:h.disable())},h={add:function(){if(u){var t=u.length;!function r(t){Et.each(t,function(t,e){var n=Et.type(e);"function"===n?i.unique&&h.has(e)||u.push(e):e&&e.length&&"string"!==n&&r(e)})}(arguments),o?a=u.length:e&&(s=t,c(e))}return this},remove:function(){return u&&Et.each(arguments,function(t,e){for(var n;-1<(n=Et.inArray(e,u,n));)u.splice(n,1),o&&(n<=a&&a--,n<=r&&r--)}),this},has:function(t){return t?-1<Et.inArray(t,u):!(!u||!u.length)},empty:function(){return u=[],a=0,this},disable:function(){return u=l=e=k,this},disabled:function(){return!u},lock:function(){return l=k,e||h.disable(),this},locked:function(){return!l},fireWith:function(t,e){return e=[t,(e=e||[]).slice?e.slice():e],!u||n&&!l||(o?l.push(e):c(e)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},Et.extend({Deferred:function(t){var s=[["resolve","done",Et.Callbacks("once memory"),"resolved"],["reject","fail",Et.Callbacks("once memory"),"rejected"],["notify","progress",Et.Callbacks("memory")]],i="pending",a={state:function(){return i},always:function(){return u.done(arguments).fail(arguments),this},then:function(){var o=arguments;return Et.Deferred(function(i){Et.each(s,function(t,e){var n=e[0],r=Et.isFunction(o[t])&&o[t];u[e[1]](function(){var t=r&&r.apply(this,arguments);t&&Et.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[n+"With"](this===a?i.promise():this,r?[t]:arguments)})}),o=null}).promise()},promise:function(t){return null!=t?Et.extend(t,a):a}},u={};return a.pipe=a.then,Et.each(s,function(t,e){var n=e[2],r=e[3];a[e[1]]=n.add,r&&n.add(function(){i=r},s[1^t][2].disable,s[2][2].lock),u[e[0]]=function(){return u[e[0]+"With"](this===u?a:this,arguments),this},u[e[0]+"With"]=n.fireWith}),a.promise(u),t&&t.call(u,u),u},when:function(t){var i,e,n,r=0,o=tt.call(arguments),s=o.length,a=1!==s||t&&Et.isFunction(t.promise)?s:0,u=1===a?t:Et.Deferred(),l=function(e,n,r){return function(t){n[e]=this,r[e]=1<arguments.length?tt.call(arguments):t,r===i?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(1<s)for(i=new Array(s),e=new Array(s),n=new Array(s);r<s;r++)o[r]&&Et.isFunction(o[r].promise)?o[r].promise().done(l(r,n,o)).fail(u.reject).progress(l(r,e,i)):--a;return a||u.resolveWith(n,o),u.promise()}}),Et.support=(pt={},dt=U.createElement("input"),mt=U.createDocumentFragment(),gt=U.createElement("div"),vt=U.createElement("select"),yt=vt.appendChild(U.createElement("option")),dt.type&&(dt.type="checkbox",pt.checkOn=""!==dt.value,pt.optSelected=yt.selected,pt.reliableMarginRight=!0,pt.boxSizingReliable=!0,pt.pixelPosition=!1,dt.checked=!0,pt.noCloneChecked=dt.cloneNode(!0).checked,vt.disabled=!0,pt.optDisabled=!yt.disabled,(dt=U.createElement("input")).value="t",dt.type="radio",pt.radioValue="t"===dt.value,dt.setAttribute("checked","t"),dt.setAttribute("name","t"),mt.appendChild(dt),pt.checkClone=mt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.focusinBubbles="onfocusin"in d,gt.style.backgroundClip="content-box",gt.cloneNode(!0).style.backgroundClip="",pt.clearCloneStyle="content-box"===gt.style.backgroundClip,Et(function(){var t,e,n="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",r=U.getElementsByTagName("body")[0];r&&((t=U.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",r.appendChild(t).appendChild(gt),gt.innerHTML="",gt.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",Et.swap(r,null!=r.style.zoom?{zoom:1}:{},function(){pt.boxSizing=4===gt.offsetWidth}),d.getComputedStyle&&(pt.pixelPosition="1%"!==(d.getComputedStyle(gt,null)||{}).top,pt.boxSizingReliable="4px"===(d.getComputedStyle(gt,null)||{width:"4px"}).width,(e=gt.appendChild(U.createElement("div"))).style.cssText=gt.style.cssText=n,e.style.marginRight=e.style.width="0",gt.style.width="1px",pt.reliableMarginRight=!parseFloat((d.getComputedStyle(e,null)||{}).marginRight)),r.removeChild(t))})),pt);var wt,xt,Ct=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,kt=/([A-Z])/g;l.uid=1,l.accepts=function(t){return!t.nodeType||(1===t.nodeType||9===t.nodeType)},l.prototype={key:function(t){if(!l.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=l.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,Et.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),o=this.cache[i];if("string"==typeof e)o[e]=n;else if(Et.isEmptyObject(o))Et.extend(this.cache[i],e);else for(r in e)o[r]=e[r];return o},get:function(t,e){var n=this.cache[this.key(t)];return e===k?n:n[e]},access:function(t,e,n){return e===k||e&&"string"==typeof e&&n===k?this.get(t,e):(this.set(t,e,n),n!==k?n:e)},remove:function(t,e){var n,r,i,o=this.key(t),s=this.cache[o];if(e===k)this.cache[o]={};else{n=(r=Et.isArray(e)?e.concat(e.map(Et.camelCase)):(i=Et.camelCase(e),e in s?[e,i]:(r=i)in s?[r]:r.match(st)||[])).length;for(;n--;)delete s[r[n]]}},hasData:function(t){return!Et.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}},wt=new l,xt=new l,Et.extend({acceptData:l.accepts,hasData:function(t){return wt.hasData(t)||xt.hasData(t)},data:function(t,e,n){return wt.access(t,e,n)},removeData:function(t,e){wt.remove(t,e)},_data:function(t,e,n){return xt.access(t,e,n)},_removeData:function(t,e){xt.remove(t,e)}}),Et.fn.extend({data:function(r,t){var e,n,i=this[0],o=0,s=null;if(r!==k)return"object"==typeof r?this.each(function(){wt.set(this,r)}):Et.access(this,function(e){var t,n=Et.camelCase(r);if(i&&e===k)return(t=wt.get(i,r))!==k?t:(t=wt.get(i,n))!==k?t:(t=u(i,n,k))!==k?t:void 0;this.each(function(){var t=wt.get(this,n);wt.set(this,n,e),-1!==r.indexOf("-")&&t!==k&&wt.set(this,r,e)})},null,t,1<arguments.length,null,!0);if(this.length&&(s=wt.get(i),1===i.nodeType&&!xt.get(i,"hasDataAttrs"))){for(e=i.attributes;o<e.length;o++)0===(n=e[o].name).indexOf("data-")&&(n=Et.camelCase(n.slice(5)),u(i,n,s[n]));xt.set(i,"hasDataAttrs",!0)}return s},removeData:function(t){return this.each(function(){wt.remove(this,t)})}}),Et.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=xt.get(t,e),n&&(!r||Et.isArray(n)?r=xt.access(t,e,Et.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=Et.queue(t,e),r=n.length,i=n.shift(),o=Et._queueHooks(t,e),s=function(){Et.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return xt.get(t,n)||xt.access(t,n,{empty:Et.Callbacks("once memory").add(function(){xt.remove(t,[e+"queue",n])})})}}),Et.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?Et.queue(this[0],e):n===k?this:this.each(function(){var t=Et.queue(this,e,n);Et._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&Et.dequeue(this,e)})},dequeue:function(t){return this.each(function(){Et.dequeue(this,t)})},delay:function(r,t){return r=Et.fx&&Et.fx.speeds[r]||r,t=t||"fx",this.queue(t,function(t,e){var n=setTimeout(t,r);e.stop=function(){clearTimeout(n)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=Et.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=k),t=t||"fx";s--;)(n=xt.get(o[s],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var Tt,_t,Nt=/[\t\r\n\f]/g,St=/\r/g,$t=/^(?:input|select|textarea|button)$/i;Et.fn.extend({attr:function(t,e){return Et.access(this,Et.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){Et.removeAttr(this,t)})},prop:function(t,e){return Et.access(this,Et.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[Et.propFix[t]||t]})},addClass:function(e){var t,n,r,i,o,s=0,a=this.length,u="string"==typeof e&&e;if(Et.isFunction(e))return this.each(function(t){Et(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(st)||[];s<a;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(Nt," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");n.className=Et.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,s=0,a=this.length,u=0===arguments.length||"string"==typeof e&&e;if(Et.isFunction(e))return this.each(function(t){Et(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(st)||[];s<a;s++)if(r=1===(n=this[s]).nodeType&&(n.className?(" "+n.className+" ").replace(Nt," "):"")){for(o=0;i=t[o++];)for(;0<=r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");n.className=e?Et.trim(r):""}return this},toggleClass:function(o,s){var a=typeof o,u="boolean"==typeof s;return Et.isFunction(o)?this.each(function(t){Et(this).toggleClass(o.call(this,t,this.className,s),s)}):this.each(function(){if("string"===a)for(var t,e=0,n=Et(this),r=s,i=o.match(st)||[];t=i[e++];)r=u?r:!n.hasClass(t),n[r?"addClass":"removeClass"](t);else a!==B&&"boolean"!==a||(this.className&&xt.set(this,"__className__",this.className),this.className=this.className||!1===o?"":xt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(Nt," ").indexOf(e))return!0;return!1},val:function(n){var r,t,i,e=this[0];return arguments.length?(i=Et.isFunction(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=i?n.call(this,t,Et(this).val()):n)?e="":"number"==typeof e?e+="":Et.isArray(e)&&(e=Et.map(e,function(t){return null==t?"":t+""})),(r=Et.valHooks[this.type]||Et.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&r.set(this,e,"value")!==k||(this.value=e))})):e?(r=Et.valHooks[e.type]||Et.valHooks[e.nodeName.toLowerCase()])&&"get"in r&&(t=r.get(e,"value"))!==k?t:"string"==typeof(t=e.value)?t.replace(St,""):null==t?"":t:void 0}}),Et.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,s=o?null:[],a=o?i+1:r.length,u=i<0?a:o?i:0;u<a;u++)if(((n=r[u]).selected||u===i)&&(Et.support.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!Et.nodeName(n.parentNode,"optgroup"))){if(e=Et(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=Et.makeArray(e),s=i.length;s--;)((r=i[s]).selected=0<=Et.inArray(Et(r).val(),o))&&(n=!0);return n||(t.selectedIndex=-1),o}}},attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===B?Et.prop(t,e,n):(1===o&&Et.isXMLDoc(t)||(e=e.toLowerCase(),r=Et.attrHooks[e]||(Et.expr.match.bool.test(e)?_t:Tt)),n===k?r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=Et.find.attr(t,e))?k:i:null!==n?r&&"set"in r&&(i=r.set(t,n,e))!==k?i:(t.setAttribute(e,n+""),n):void Et.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(st);if(o&&1===t.nodeType)for(;n=o[i++];)r=Et.propFix[n]||n,Et.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!Et.support.radioValue&&"radio"===e&&Et.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!Et.isXMLDoc(t))&&(e=Et.propFix[e]||e,i=Et.propHooks[e]),n!==k?i&&"set"in i&&(r=i.set(t,n,e))!==k?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||$t.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),_t={set:function(t,e,n){return!1===e?Et.removeAttr(t,n):t.setAttribute(n,n),n}},Et.each(Et.expr.match.bool.source.match(/\w+/g),function(t,e){var o=Et.expr.attrHandle[e]||Et.find.attr;Et.expr.attrHandle[e]=function(t,e,n){var r=Et.expr.attrHandle[e],i=n?k:(Et.expr.attrHandle[e]=k)!=o(t,e,n)?e.toLowerCase():null;return Et.expr.attrHandle[e]=r,i}}),Et.support.optSelected||(Et.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),Et.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Et.propFix[this.toLowerCase()]=this}),Et.each(["radio","checkbox"],function(){Et.valHooks[this]={set:function(t,e){if(Et.isArray(e))return t.checked=0<=Et.inArray(Et(t).val(),e)}},Et.support.checkOn||(Et.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var jt=/^key/,Mt=/^(?:mouse|contextmenu)|click/,Dt=/^(?:focusinfocus|focusoutblur)$/,At=/^([^.]*)(?:\.(.+)|)$/;Et.event={global:{},add:function(t,e,n,r,i){var o,s,a,u,l,c,h,f,p,d,m,g=xt.get(t);if(g){for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=Et.guid++),(u=g.events)||(u=g.events={}),(s=g.handle)||((s=g.handle=function(t){return typeof Et===B||t&&Et.event.triggered===t.type?k:Et.event.dispatch.apply(s.elem,arguments)}).elem=t),l=(e=(e||"").match(st)||[""]).length;l--;)p=m=(a=At.exec(e[l])||[])[1],d=(a[2]||"").split(".").sort(),p&&(h=Et.event.special[p]||{},p=(i?h.delegateType:h.bindType)||p,h=Et.event.special[p]||{},c=Et.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Et.expr.match.needsContext.test(i),namespace:d.join(".")},o),(f=u[p])||((f=u[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,r,d,s)||t.addEventListener&&t.addEventListener(p,s,!1)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),Et.event.global[p]=!0);t=null}},remove:function(t,e,n,r,i){var o,s,a,u,l,c,h,f,p,d,m,g=xt.hasData(t)&&xt.get(t);if(g&&(u=g.events)){for(l=(e=(e||"").match(st)||[""]).length;l--;)if(p=m=(a=At.exec(e[l])||[])[1],d=(a[2]||"").split(".").sort(),p){for(h=Et.event.special[p]||{},f=u[p=(r?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)c=f[o],!i&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,h.remove&&h.remove.call(t,c));s&&!f.length&&(h.teardown&&!1!==h.teardown.call(t,d,g.handle)||Et.removeEvent(t,p,
26
- g.handle),delete u[p])}else for(p in u)Et.event.remove(t,p+e[l],n,r,!0);Et.isEmptyObject(u)&&(delete g.handle,xt.remove(t,"events"))}},trigger:function(t,e,n,r){var i,o,s,a,u,l,c,h=[n||U],f=rt.call(t,"type")?t.type:t,p=rt.call(t,"namespace")?t.namespace.split("."):[];if(o=s=n=n||U,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(f+Et.event.triggered)&&(0<=f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),u=f.indexOf(":")<0&&"on"+f,(t=t[Et.expando]?t:new Et.Event(f,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=k,t.target||(t.target=n),e=null==e?[t]:Et.makeArray(e,[t]),c=Et.event.special[f]||{},r||!c.trigger||!1!==c.trigger.apply(n,e))){if(!r&&!c.noBubble&&!Et.isWindow(n)){for(a=c.delegateType||f,Dt.test(a+f)||(o=o.parentNode);o;o=o.parentNode)h.push(o),s=o;s===(n.ownerDocument||U)&&h.push(s.defaultView||s.parentWindow||d)}for(i=0;(o=h[i++])&&!t.isPropagationStopped();)t.type=1<i?a:c.bindType||f,(l=(xt.get(o,"events")||{})[t.type]&&xt.get(o,"handle"))&&l.apply(o,e),(l=u&&o[u])&&Et.acceptData(o)&&l.apply&&!1===l.apply(o,e)&&t.preventDefault();return t.type=f,r||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),e)||!Et.acceptData(n)||u&&Et.isFunction(n[f])&&!Et.isWindow(n)&&((s=n[u])&&(n[u]=null),n[Et.event.triggered=f](),Et.event.triggered=k,s&&(n[u]=s)),t.result}},dispatch:function(t){t=Et.event.fix(t);var e,n,r,i,o,s=[],a=tt.call(arguments),u=(xt.get(this,"events")||{})[t.type]||[],l=Et.event.special[t.type]||{};if((a[0]=t).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,t)){for(s=Et.event.handlers.call(this,t,u),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(o.namespace)||(t.handleObj=o,t.data=o.data,(r=((Et.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))!==k&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,s=[],a=e.delegateCount,u=t.target;if(a&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(!0!==u.disabled||"click"!==t.type){for(r=[],n=0;n<a;n++)r[i=(o=e[n]).selector+" "]===k&&(r[i]=o.needsContext?0<=Et(i,this).index(u):Et.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(r=(n=t.target.ownerDocument||U).documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||o===k||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[Et.expando])return t;var e,n,r,i=t.type,o=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Mt.test(i)?this.mouseHooks:jt.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,t=new Et.Event(o),e=r.length;e--;)t[n=r[e]]=o[n];return t.target||(t.target=U),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==e()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===e()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&Et.nodeName(this,"input"))return this.click(),!1},_default:function(t){return Et.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==k&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=Et.extend(new Et.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?Et.event.trigger(i,null,e):Et.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},Et.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},Et.Event=function(t,e){if(!(this instanceof Et.Event))return new Et.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.getPreventDefault&&t.getPreventDefault()?n:c):this.type=t,e&&Et.extend(this,e),this.timeStamp=t&&t.timeStamp||Et.now(),this[Et.expando]=!0},Et.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=n,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=n,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=n,this.stopPropagation()}},Et.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,o){Et.event.special[t]={delegateType:o,bindType:o,handle:function(t){var e,n=this,r=t.relatedTarget,i=t.handleObj;return r&&(r===n||Et.contains(n,r))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=o),e}}}),Et.support.focusinBubbles||Et.each({focus:"focusin",blur:"focusout"},function(t,e){var n=0,r=function(t){Et.event.simulate(e,t.target,Et.event.fix(t),!0)};Et.event.special[e]={setup:function(){0==n++&&U.addEventListener(t,r,!0)},teardown:function(){0==--n&&U.removeEventListener(t,r,!0)}}}),Et.fn.extend({on:function(t,e,n,r,i){var o,s;if("object"==typeof t){for(s in"string"!=typeof e&&(n=n||e,e=k),t)this.on(s,e,n,t[s],i);return this}if(null==n&&null==r?(r=e,n=e=k):null==r&&("string"==typeof e?(r=n,n=k):(r=n,n=e,e=k)),!1===r)r=c;else if(!r)return this;return 1===i&&(o=r,(r=function(t){return Et().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=Et.guid++)),this.each(function(){Et.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,Et(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=k),!1===n&&(n=c),this.each(function(){Et.event.remove(this,t,n,e)});for(i in t)this.off(i,e,t[i]);return this},trigger:function(t,e){return this.each(function(){Et.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return Et.event.trigger(t,e,n,!0)}});var Ot=/^.[^:#\[\.,]*$/,Rt=/^(?:parents|prev(?:Until|All))/,Pt=Et.expr.match.needsContext,Lt={children:!0,contents:!0,next:!0,prev:!0};Et.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(Et(t).filter(function(){for(e=0;e<i;e++)if(Et.contains(r[e],this))return!0}));for(e=0;e<i;e++)Et.find(t,r[e],n);return(n=this.pushStack(1<i?Et.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},has:function(t){var e=Et(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(Et.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(i(this,t||[],!0))},filter:function(t){return this.pushStack(i(this,t||[],!1))},is:function(t){return!!i(this,"string"==typeof t&&Pt.test(t)?Et(t):t||[],!1).length},closest:function(t,e){for(var n,r=0,i=this.length,o=[],s=Pt.test(t)||"string"!=typeof t?Et(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&Et.find.matchesSelector(n,t))){n=o.push(n);break}return this.pushStack(1<o.length?Et.unique(o):o)},index:function(t){return t?"string"==typeof t?et.call(Et(t),this[0]):et.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){var n="string"==typeof t?Et(t,e):Et.makeArray(t&&t.nodeType?[t]:t),r=Et.merge(this.get(),n);return this.pushStack(Et.unique(r))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Et.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Et.dir(t,"parentNode")},parentsUntil:function(t,e,n){return Et.dir(t,"parentNode",n)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return Et.dir(t,"nextSibling")},prevAll:function(t){return Et.dir(t,"previousSibling")},nextUntil:function(t,e,n){return Et.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return Et.dir(t,"previousSibling",n)},siblings:function(t){return Et.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return Et.sibling(t.firstChild)},contents:function(t){return t.contentDocument||Et.merge([],t.childNodes)}},function(r,i){Et.fn[r]=function(t,e){var n=Et.map(this,i,t);return"Until"!==r.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=Et.filter(e,n)),1<this.length&&(Lt[r]||Et.unique(n),Rt.test(r)&&n.reverse()),this.pushStack(n)}}),Et.extend({filter:function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?Et.find.matchesSelector(r,t)?[r]:[]:Et.find.matches(t,Et.grep(e,function(t){return 1===t.nodeType}))},dir:function(t,e,n){for(var r=[],i=n!==k;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&Et(t).is(n))break;r.push(t)}return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}});var Ht=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,zt=/<([\w:]+)/,qt=/<|&#?\w+;/,Ft=/<(?:script|style|link)/i,It=/^(?:checkbox|radio)$/i,Bt=/checked\s*(?:[^=]|=\s*.checked.)/i,Wt=/^$|\/(?:java|ecma)script/i,Ut=/^true\/(.*)/,Jt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Vt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Vt.optgroup=Vt.option,Vt.tbody=Vt.tfoot=Vt.colgroup=Vt.caption=Vt.thead,Vt.th=Vt.td,Et.fn.extend({text:function(t){return Et.access(this,function(t){return t===k?Et.text(this):this.empty().append((this[0]&&this[0].ownerDocument||U).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||o(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=o(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?Et.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||Et.cleanData(y(n)),n.parentNode&&(e&&Et.contains(n.ownerDocument,n)&&v(y(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Et.cleanData(y(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return Et.clone(this,t,e)})},html:function(t){return Et.access(this,function(t){var e=this[0]||{},n=0,r=this.length;if(t===k&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ft.test(t)&&!Vt[(zt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Ht,"<$1></$2>");try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(Et.cleanData(y(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var r=Et.map(this,function(t){return[t.nextSibling,t.parentNode]}),i=0;return this.domManip(arguments,function(t){var e=r[i++],n=r[i++];n&&(e&&e.parentNode!==n&&(e=this.nextSibling),Et(this).remove(),n.insertBefore(t,e))},!0),i?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(n,r,i){n=K.apply([],n);var t,e,o,s,a,u,l=0,c=this.length,h=this,f=c-1,p=n[0],d=Et.isFunction(p);if(d||!(c<=1||"string"!=typeof p||Et.support.checkClone)&&Bt.test(p))return this.each(function(t){var e=h.eq(t);d&&(n[0]=p.call(this,t,e.html())),e.domManip(n,r,i)});if(c&&(e=(t=Et.buildFragment(n,this[0].ownerDocument,!1,!i&&this)).firstChild,1===t.childNodes.length&&(t=e),e)){for(s=(o=Et.map(y(t,"script"),m)).length;l<c;l++)a=t,l!==f&&(a=Et.clone(a,!0,!0),s&&Et.merge(o,y(a,"script"))),r.call(this[l],a,l);if(s)for(u=o[o.length-1].ownerDocument,Et.map(o,g),l=0;l<s;l++)a=o[l],Wt.test(a.type||"")&&!xt.access(a,"globalEval")&&Et.contains(u,a)&&(a.src?Et._evalUrl(a.src):Et.globalEval(a.textContent.replace(Jt,"")))}return this}}),Et.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){Et.fn[t]=function(t){for(var e,n=[],r=Et(t),i=r.length-1,o=0;o<=i;o++)e=o===i?this:this.clone(!0),Et(r[o])[s](e),Z.apply(n,e.get());return this.pushStack(n)}}),Et.extend({clone:function(t,e,n){var r,i,o,s,a=t.cloneNode(!0),u=Et.contains(t.ownerDocument,t);if(!(Et.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Et.isXMLDoc(t)))for(s=y(a),r=0,i=(o=y(t)).length;r<i;r++)f(o[r],s[r]);if(e)if(n)for(o=o||y(t),s=s||y(a),r=0,i=o.length;r<i;r++)h(o[r],s[r]);else h(t,a);return 0<(s=y(a,"script")).length&&v(s,!u&&y(t,"script")),a},buildFragment:function(t,e,n,r){for(var i,o,s,a,u,l,c=0,h=t.length,f=e.createDocumentFragment(),p=[];c<h;c++)if((i=t[c])||0===i)if("object"===Et.type(i))Et.merge(p,i.nodeType?[i]:i);else if(qt.test(i)){for(o=o||f.appendChild(e.createElement("div")),s=(zt.exec(i)||["",""])[1].toLowerCase(),a=Vt[s]||Vt._default,o.innerHTML=a[1]+i.replace(Ht,"<$1></$2>")+a[2],l=a[0];l--;)o=o.firstChild;Et.merge(p,o.childNodes),(o=f.firstChild).textContent=""}else p.push(e.createTextNode(i));for(f.textContent="",c=0;i=p[c++];)if((!r||-1===Et.inArray(i,r))&&(u=Et.contains(i.ownerDocument,i),o=y(f.appendChild(i),"script"),u&&v(o),n))for(l=0;i=o[l++];)Wt.test(i.type||"")&&n.push(i);return f},cleanData:function(t){for(var e,n,r,i,o,s,a=Et.event.special,u=0;(n=t[u])!==k;u++){if(l.accepts(n)&&(o=n[xt.expando])&&(e=xt.cache[o])){if((r=Object.keys(e.events||{})).length)for(s=0;(i=r[s])!==k;s++)a[i]?Et.event.remove(n,i):Et.removeEvent(n,i,e.handle);xt.cache[o]&&delete xt.cache[o]}delete wt.cache[n[wt.expando]]}},_evalUrl:function(t){return Et.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),Et.fn.extend({wrapAll:function(e){var t;return Et.isFunction(e)?this.each(function(t){Et(this).wrapAll(e.call(this,t))}):(this[0]&&(t=Et(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(n){return Et.isFunction(n)?this.each(function(t){Et(this).wrapInner(n.call(this,t))}):this.each(function(){var t=Et(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=Et.isFunction(e);return this.each(function(t){Et(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){Et.nodeName(this,"body")||Et(this).replaceWith(this.childNodes)}).end()}});var Xt,Gt,Yt=/^(none|table(?!-c[ea]).+)/,Qt=/^margin/,Kt=new RegExp("^("+ot+")(.*)$","i"),Zt=new RegExp("^("+ot+")(?!px)[a-z%]+$","i"),te=new RegExp("^([+-])=("+ot+")","i"),ee={BODY:"block"},ne={position:"absolute",visibility:"hidden",display:"block"},re={letterSpacing:0,fontWeight:400},ie=["Top","Right","Bottom","Left"],oe=["Webkit","O","Moz","ms"];Et.fn.extend({css:function(t,e){return Et.access(this,function(t,e,n){var r,i,o={},s=0;if(Et.isArray(e)){for(r=w(t),i=e.length;s<i;s++)o[e[s]]=Et.css(t,e[s],!1,r);return o}return n!==k?Et.style(t,e,n):Et.css(t,e)},t,e,1<arguments.length)},show:function(){return s(this,!0)},hide:function(){return s(this)},toggle:function(t){var e="boolean"==typeof t;return this.each(function(){(e?t:b(this))?Et(this).show():Et(this).hide()})}}),Et.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Xt(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=Et.camelCase(e),u=t.style;if(e=Et.cssProps[a]||(Et.cssProps[a]=p(u,a)),s=Et.cssHooks[e]||Et.cssHooks[a],n===k)return s&&"get"in s&&(i=s.get(t,!1,r))!==k?i:u[e];"string"===(o=typeof n)&&(i=te.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(Et.css(t,e)),o="number"),null==n||"number"===o&&isNaN(n)||("number"!==o||Et.cssNumber[a]||(n+="px"),Et.support.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&(n=s.set(t,n,r))===k||(u[e]=n))}},css:function(t,e,n,r){var i,o,s,a=Et.camelCase(e);return e=Et.cssProps[a]||(Et.cssProps[a]=p(t.style,a)),(s=Et.cssHooks[e]||Et.cssHooks[a])&&"get"in s&&(i=s.get(t,!0,n)),i===k&&(i=Xt(t,e,r)),"normal"===i&&e in re&&(i=re[e]),""===n||n?(o=parseFloat(i),!0===n||Et.isNumeric(o)?o||0:i):i}}),Xt=function(t,e,n){var r,i,o,s=n||w(t),a=s?s.getPropertyValue(e)||s[e]:k,u=t.style;return s&&(""!==a||Et.contains(t.ownerDocument,t)||(a=Et.style(t,e)),Zt.test(a)&&Qt.test(e)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=s.width,u.width=r,u.minWidth=i,u.maxWidth=o)),a},Et.each(["height","width"],function(t,i){Et.cssHooks[i]={get:function(t,e,n){if(e)return 0===t.offsetWidth&&Yt.test(Et.css(t,"display"))?Et.swap(t,ne,function(){return T(t,i,n)}):T(t,i,n)},set:function(t,e,n){var r=n&&w(t);return x(t,e,n?C(t,i,n,Et.support.boxSizing&&"border-box"===Et.css(t,"boxSizing",!1,r),r):0)}}}),Et(function(){Et.support.reliableMarginRight||(Et.cssHooks.marginRight={get:function(t,e){if(e)return Et.swap(t,{display:"inline-block"},Xt,[t,"marginRight"])}}),!Et.support.pixelPosition&&Et.fn.position&&Et.each(["top","left"],function(t,n){Et.cssHooks[n]={get:function(t,e){if(e)return e=Xt(t,n),Zt.test(e)?Et(t).position()[n]+"px":e}}})}),Et.expr&&Et.expr.filters&&(Et.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Et.expr.filters.visible=function(t){return!Et.expr.filters.hidden(t)}),Et.each({margin:"",padding:"",border:"Width"},function(i,o){Et.cssHooks[i+o]={expand:function(t){for(var e=0,n={},r="string"==typeof t?t.split(" "):[t];e<4;e++)n[i+ie[e]+o]=r[e]||r[e-2]||r[0];return n}},Qt.test(i)||(Et.cssHooks[i+o].set=x)});var se=/%20/g,ae=/\[\]$/,ue=/\r?\n/g,le=/^(?:submit|button|image|reset|file)$/i,ce=/^(?:input|select|textarea|keygen)/i;Et.fn.extend({serialize:function(){return Et.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Et.prop(this,"elements");return t?Et.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Et(this).is(":disabled")&&ce.test(this.nodeName)&&!le.test(t)&&(this.checked||!It.test(t))}).map(function(t,e){var n=Et(this).val();return null==n?null:Et.isArray(n)?Et.map(n,function(t){return{name:e.name,value:t.replace(ue,"\r\n")}}):{name:e.name,value:n.replace(ue,"\r\n")}}).get()}}),Et.param=function(t,e){var n,r=[],i=function(t,e){e=Et.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(e===k&&(e=Et.ajaxSettings&&Et.ajaxSettings.traditional),Et.isArray(t)||t.jquery&&!Et.isPlainObject(t))Et.each(t,function(){i(this.name,this.value)});else for(n in t)S(n,t[n],e,i);return r.join("&").replace(se,"+")},Et.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,n){Et.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),Et.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var he,fe,pe=Et.now(),de=/\?/,me=/#.*$/,ge=/([?&])_=[^&]*/,ve=/^(.*?):[ \t]*([^\r\n]*)$/gm,ye=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,be=/^(?:GET|HEAD)$/,we=/^\/\//,xe=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Ce=Et.fn.load,ke={},Te={},_e="*/".concat("*");try{fe=W.href}catch(ze){(fe=U.createElement("a")).href="",fe=fe.href}he=xe.exec(fe.toLowerCase())||[],Et.fn.load=function(t,e,n){if("string"!=typeof t&&Ce)return Ce.apply(this,arguments);var r,i,o,s=this,a=t.indexOf(" ");return 0<=a&&(r=t.slice(a),t=t.slice(0,a)),Et.isFunction(e)?(n=e,e=k):e&&"object"==typeof e&&(i="POST"),0<s.length&&Et.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){o=arguments,s.html(r?Et("<div>").append(Et.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){s.each(n,o||[t.responseText,e,t])}),this},Et.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Et.fn[e]=function(t){return this.on(e,t)}}),Et.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fe,type:"GET",isLocal:ye.test(he[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_e,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Et.parseJSON,"text xml":Et.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?j(j(t,Et.ajaxSettings),e):j(Et.ajaxSettings,t)},ajaxPrefilter:$(ke),ajaxTransport:$(Te),ajax:function(t,e){function n(t,e,n,r){var i,o,s,a,u,l=e;2!==x&&(x=2,p&&clearTimeout(p),c=k,f=r||"",C.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(a=M(m,C,n)),a=D(m,a,C,i),i?(m.ifModified&&((u=C.getResponseHeader("Last-Modified"))&&(Et.lastModified[h]=u),(u=C.getResponseHeader("etag"))&&(Et.etag[h]=u)),204===t||"HEAD"===m.type?l="nocontent":304===t?l="notmodified":(l=a.state,o=a.data,i=!(s=a.error))):(s=l,!t&&l||(l="error",t<0&&(t=0))),C.status=t,C.statusText=(e||l)+"",i?y.resolveWith(g,[o,l,C]):y.rejectWith(g,[C,l,s]),C.statusCode(w),w=k,d&&v.trigger(i?"ajaxSuccess":"ajaxError",[C,m,i?o:s]),b.fireWith(g,[C,l]),d&&(v.trigger("ajaxComplete",[C,m]),--Et.active||Et.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=k),e=e||{};var c,h,f,r,p,i,d,o,m=Et.ajaxSetup({},e),g=m.context||m,v=m.context&&(g.nodeType||g.jquery)?Et(g):Et.event,y=Et.Deferred(),b=Et.Callbacks("once memory"),w=m.statusCode||{},s={},a={},x=0,u="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!r)for(r={};e=ve.exec(f);)r[e[1].toLowerCase()]=e[2];e=r[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?f:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=a[n]=a[n]||t,s[t]=e),this},overrideMimeType:function(t){return x||(m.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)w[e]=[w[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||u;return c&&c.abort(e),n(0,e),this}};if(y.promise(C).complete=b.add,C.success=C.done,C.error=C.fail,m.url=((t||m.url||fe)+"").replace(me,"").replace(we,he[1]+"//"),m.type=e.method||e.type||m.method||m.type,m.dataTypes=Et.trim(m.dataType||"*").toLowerCase().match(st)||[""],null==m.crossDomain&&(i=xe.exec(m.url.toLowerCase()),m.crossDomain=!(!i||i[1]===he[1]&&i[2]===he[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(he[3]||("http:"===he[1]?"80":"443")))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=Et.param(m.data,m.traditional)),E(ke,m,e,C),2===x)return C;for(o in(d=m.global)&&0==Et.active++&&Et.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!be.test(m.type),h=m.url,m.hasContent||(m.data&&(h=m.url+=(de.test(h)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=ge.test(h)?h.replace(ge,"$1_="+pe++):h+(de.test(h)?"&":"?")+"_="+pe++)),m.ifModified&&(Et.lastModified[h]&&C.setRequestHeader("If-Modified-Since",Et.lastModified[h]),Et.etag[h]&&C.setRequestHeader("If-None-Match",Et.etag[h])),(m.data&&m.hasContent&&!1!==m.contentType||e.contentType)&&C.setRequestHeader("Content-Type",m.contentType),C.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+_e+"; q=0.01":""):m.accepts["*"]),m.headers)C.setRequestHeader(o,m.headers[o]);if(m.beforeSend&&(!1===m.beforeSend.call(g,C,m)||2===x))return C.abort();for(o in u="abort",{success:1,error:1,complete:1})C[o](m[o]);if(c=E(Te,m,e,C)){C.readyState=1,d&&v.trigger("ajaxSend",[C,m]),m.async&&0<m.timeout&&(p=setTimeout(function(){C.abort("timeout")},m.timeout));try{x=1,c.send(s,n)}catch(ze){if(!(x<2))throw ze;n(-1,ze)}}else n(-1,"No Transport");return C},getJSON:function(t,e,n){return Et.get(t,e,n,"json")},getScript:function(t,e){return Et.get(t,k,e,"script")}}),Et.each(["get","post"],function(t,i){Et[i]=function(t,e,n,r){return Et.isFunction(e)&&(r=r||n,n=e,e=k),Et.ajax({url:t,type:i,dataType:r,data:e,success:n})}}),Et.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return Et.globalEval(t),t}}}),Et.ajaxPrefilter("script",function(t){t.cache===k&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Et.ajaxTransport("script",function(n){var r,i;if(n.crossDomain)return{send:function(t,e){r=Et("<script>").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",i=function(t){r.remove(),i=null,t&&e("error"===t.type?404:200,t.type)}),U.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ne=[],Se=/(=)\?(?=&|$)|\?\?/;Et.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ne.pop()||Et.expando+"_"+pe++;return this[t]=!0,t}}),Et.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,s=!1!==t.jsonp&&(Se.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Se.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=Et.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Se,"$1"+r):!1!==t.jsonp&&(t.url+=(de.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||Et.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=d[r],d[r]=function(){o=arguments},n.always(function(){d[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,Ne.push(r)),o&&Et.isFunction(i)&&i(o[0]),o=i=k}),"script"}),Et.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(ze){}};var $e=Et.ajaxSettings.xhr(),Ee={0:200,1223:204},je=0,Me={};d.ActiveXObject&&Et(d).on("unload",function(){for(var t in Me)Me[t]();Me=k}),Et.support.cors=!!$e&&"withCredentials"in $e,Et.support.ajax=$e=!!$e,Et.ajaxTransport(function(o){var s;if(Et.support.cors||$e&&!o.crossDomain)return{send:function(t,e){var n,r,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);s=function(t){return function(){s&&(delete Me[r],s=i.onload=i.onerror=null,"abort"===t?i.abort():"error"===t?e(i.status||404,i.statusText):e(Ee[i.status]||i.status,i.statusText,"string"==typeof i.responseText?{text:i.responseText}:k,i.getAllResponseHeaders()))}},i.onload=s(),i.onerror=s("error"),s=Me[r=je++]=s("abort"),i.send(o.hasContent&&o.data||null)},abort:function(){s&&s()}}});var De,Ae,Oe=/^(?:toggle|show|hide)$/,Re=new RegExp("^(?:([+-])=|)("+ot+")([a-z%]*)$","i"),Pe=/queueHooks$/,Le=[L],He={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=Re.exec(e),o=i&&i[3]||(Et.cssNumber[t]?"":"px"),s=(Et.cssNumber[t]||"px"!==o&&+r)&&Re.exec(Et.css(n.elem,t)),a=1,u=20;if(s&&s[3]!==o)for(o=o||s[3],i=i||[],s=+r||1;s/=a=a||".5",Et.style(n.elem,t,s+o),a!==(a=n.cur()/r)&&1!==a&&--u;);return i&&(s=n.start=+s||+r||0,n.unit=o,n.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),n}]};Et.Animation=Et.extend(R,{tweener:function(t,e){for(var n,r=0,i=(t=Et.isFunction(t)?(e=t,["*"]):t.split(" ")).length;r<i;r++)n=t[r],He[n]=He[n]||[],He[n].unshift(e)},prefilter:function(t,e){e?Le.unshift(t):Le.push(t)}}),(Et.Tween=H).prototype={constructor:H,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Et.cssNumber[n]?"":"px")},cur:function(){var t=H.propHooks[this.prop];return t&&t.get?t.get(this):H.propHooks._default.get(this)},run:function(t){var e,n=H.propHooks[this.prop];return this.options.duration?this.pos=e=Et.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=Et.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){Et.fx.step[t.prop]?Et.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[Et.cssProps[t.prop]]||Et.cssHooks[t.prop])?Et.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},Et.each(["toggle","show","hide"],function(t,r){var i=Et.fn[r];Et.fn[r]=function(t,e,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(z(r,!0),t,e,n)}}),Et.fn.extend({fadeTo:function(t,e,n,r){return this.filter(b).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(e,t,n,r){var i=Et.isEmptyObject(e),o=Et.speed(t,n,r),s=function(){var t=R(this,Et.extend({},e),o);(i||xt.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(i,t,o){var s=function(t){var e=t.stop;delete t.stop,e(o)};return"string"!=typeof i&&(o=t,t=i,i=k),t&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var t=!0,e=null!=i&&i+"queueHooks",n=Et.timers,r=xt.get(this);if(e)r[e]&&r[e].stop&&s(r[e]);else for(e in r)r[e]&&r[e].stop&&Pe.test(e)&&s(r[e]);for(e=n.length;e--;)n[e].elem!==this||null!=i&&n[e].queue!==i||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||Et.dequeue(this,i)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=xt.get(this),n=e[s+"queue"],r=e[s+"queueHooks"],i=Et.timers,o=n?n.length:0;for(e.finish=!0,Et.queue(this,s,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===s&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),Et.each({slideDown:z("show"),slideUp:z("hide"),slideToggle:z("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){Et.fn[t]=function(t,e,n){return this.animate(r,t,e,n)}}),Et.speed=function(t,e,n){var r=t&&"object"==typeof t?Et.extend({},t):{complete:n||!n&&e||Et.isFunction(t)&&t,duration:t,easing:n&&e||e&&!Et.isFunction(e)&&e};return r.duration=Et.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in Et.fx.speeds?Et.fx.speeds[r.duration]:Et.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){Et.isFunction(r.old)&&r.old.call(this),r.queue&&Et.dequeue(this,r.queue)},r},Et.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},Et.timers=[],Et.fx=H.prototype.init,Et.fx.tick=function(){var t,e=Et.timers,n=0;for(De=Et.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||Et.fx.stop(),De=k},Et.fx.timer=function(t){t()&&Et.timers.push(t)&&Et.fx.start()},Et.fx.interval=13,Et.fx.start=function(){Ae||(Ae=setInterval(Et.fx.tick,Et.fx.interval))},Et.fx.stop=function(){clearInterval(Ae),Ae=null},Et.fx.speeds={slow:600,fast:200,_default:400},Et.fx.step={},Et.expr&&Et.expr.filters&&(Et.expr.filters.animated=function(e){return Et.grep(Et.timers,function(t){return e===t.elem}).length}),Et.fn.offset=function(e){if(arguments.length)return e===k?this:this.each(function(t){Et.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},
27
- o=r&&r.ownerDocument;return o?(t=o.documentElement,Et.contains(t,r)?(typeof r.getBoundingClientRect!==B&&(i=r.getBoundingClientRect()),n=q(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},Et.offset={setOffset:function(t,e,n){var r,i,o,s,a,u,l=Et.css(t,"position"),c=Et(t),h={};"static"===l&&(t.style.position="relative"),a=c.offset(),o=Et.css(t,"top"),u=Et.css(t,"left"),i=("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(s=(r=c.position()).top,r.left):(s=parseFloat(o)||0,parseFloat(u)||0),Et.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+i),"using"in e?e.using.call(t,h):c.css(h)}},Et.fn.extend({position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===Et.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),Et.nodeName(t[0],"html")||(r=t.offset()),r.top+=Et.css(t[0],"borderTopWidth",!0),r.left+=Et.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-Et.css(n,"marginTop",!0),left:e.left-r.left-Et.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||J;t&&!Et.nodeName(t,"html")&&"static"===Et.css(t,"position");)t=t.offsetParent;return t||J})}}),Et.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var o="pageYOffset"===i;Et.fn[e]=function(t){return Et.access(this,function(t,e,n){var r=q(t);if(n===k)return r?r[i]:t[e];r?r.scrollTo(o?d.pageXOffset:n,o?n:d.pageYOffset):t[e]=n},e,t,arguments.length,null)}}),Et.each({Height:"height",Width:"width"},function(o,s){Et.each({padding:"inner"+o,content:s,"":"outer"+o},function(r,t){Et.fn[t]=function(t,e){var n=arguments.length&&(r||"boolean"!=typeof t),i=r||(!0===t||!0===e?"margin":"border");return Et.access(this,function(t,e,n){var r;return Et.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+o],r["scroll"+o],t.body["offset"+o],r["offset"+o],r["client"+o])):n===k?Et.css(t,e,i):Et.style(t,e,n,i)},s,n?t:k,n,null)}})}),Et.fn.size=function(){return this.length},Et.fn.andSelf=Et.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=Et:"function"==typeof define&&define.amd&&define("jquery",[],function(){return Et}),"object"==typeof d&&"object"==typeof d.document&&(d.jQuery=d.$=Et)}(window),function(){var t=this,e=t._,s={},i=Array.prototype,n=Object.prototype,r=Function.prototype,o=i.push,a=i.slice,u=i.concat,h=n.toString,l=n.hasOwnProperty,c=i.forEach,f=i.map,p=i.reduce,d=i.reduceRight,m=i.filter,g=i.every,v=i.some,y=i.indexOf,b=i.lastIndexOf,w=Array.isArray,x=Object.keys,C=r.bind,k=function(t){return t instanceof k?t:this instanceof k?void(this._wrapped=t):new k(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=k),exports._=k):t._=k,k.VERSION="1.4.4";var T=k.each=k.forEach=function(t,e,n){if(null!=t)if(c&&t.forEach===c)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t)===s)return}else for(var o in t)if(k.has(t,o)&&e.call(n,t[o],o,t)===s)return};k.map=k.collect=function(t,r,i){var o=[];return null==t?o:f&&t.map===f?t.map(r,i):(T(t,function(t,e,n){o[o.length]=r.call(i,t,e,n)}),o)};var _="Reduce of empty array with no initial value";k.reduce=k.foldl=k.inject=function(t,r,i,o){var s=2<arguments.length;if(null==t&&(t=[]),p&&t.reduce===p)return o&&(r=k.bind(r,o)),s?t.reduce(r,i):t.reduce(r);if(T(t,function(t,e,n){s?i=r.call(o,i,t,e,n):(i=t,s=!0)}),!s)throw new TypeError(_);return i},k.reduceRight=k.foldr=function(r,i,o,s){var a=2<arguments.length;if(null==r&&(r=[]),d&&r.reduceRight===d)return s&&(i=k.bind(i,s)),a?r.reduceRight(i,o):r.reduceRight(i);var u=r.length;if(u!==+u){var l=k.keys(r);u=l.length}if(T(r,function(t,e,n){e=l?l[--u]:--u,a?o=i.call(s,o,r[e],e,n):(o=r[e],a=!0)}),!a)throw new TypeError(_);return o},k.find=k.detect=function(t,r,i){var o;return N(t,function(t,e,n){if(r.call(i,t,e,n))return o=t,!0}),o},k.filter=k.select=function(t,r,i){var o=[];return null==t?o:m&&t.filter===m?t.filter(r,i):(T(t,function(t,e,n){r.call(i,t,e,n)&&(o[o.length]=t)}),o)},k.reject=function(t,r,i){return k.filter(t,function(t,e,n){return!r.call(i,t,e,n)},i)},k.every=k.all=function(t,r,i){r||(r=k.identity);var o=!0;return null==t?o:g&&t.every===g?t.every(r,i):(T(t,function(t,e,n){if(!(o=o&&r.call(i,t,e,n)))return s}),!!o)};var N=k.some=k.any=function(t,r,i){r||(r=k.identity);var o=!1;return null==t?o:v&&t.some===v?t.some(r,i):(T(t,function(t,e,n){if(o||(o=r.call(i,t,e,n)))return s}),!!o)};k.contains=k.include=function(t,e){return null!=t&&(y&&t.indexOf===y?-1!=t.indexOf(e):N(t,function(t){return t===e}))},k.invoke=function(t,e){var n=a.call(arguments,2),r=k.isFunction(e);return k.map(t,function(t){return(r?e:t[e]).apply(t,n)})},k.pluck=function(t,e){return k.map(t,function(t){return t[e]})},k.where=function(t,n,e){return k.isEmpty(n)?e?null:[]:k[e?"find":"filter"](t,function(t){for(var e in n)if(n[e]!==t[e])return!1;return!0})},k.findWhere=function(t,e){return k.where(t,e,!0)},k.max=function(t,i,o){if(!i&&k.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);if(!i&&k.isEmpty(t))return-Infinity;var s={computed:-Infinity,value:-Infinity};return T(t,function(t,e,n){var r=i?i.call(o,t,e,n):t;r>=s.computed&&(s={value:t,computed:r})}),s.value},k.min=function(t,i,o){if(!i&&k.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);if(!i&&k.isEmpty(t))return Infinity;var s={computed:Infinity,value:Infinity};return T(t,function(t,e,n){var r=i?i.call(o,t,e,n):t;r<s.computed&&(s={value:t,computed:r})}),s.value},k.shuffle=function(t){var e,n=0,r=[];return T(t,function(t){e=k.random(n++),r[n-1]=r[e],r[e]=t}),r};var S=function(e){return k.isFunction(e)?e:function(t){return t[e]}};k.sortBy=function(t,e,r){var i=S(e);return k.pluck(k.map(t,function(t,e,n){return{value:t,index:e,criteria:i.call(r,t,e,n)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(r<n||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index<e.index?-1:1}),"value")};var $=function(r,t,i,o){var s={},a=S(t||k.identity);return T(r,function(t,e){var n=a.call(i,t,e,r);o(s,n,t)}),s};k.groupBy=function(t,e,n){return $(t,e,n,function(t,e,n){(k.has(t,e)?t[e]:t[e]=[]).push(n)})},k.countBy=function(t,e,n){return $(t,e,n,function(t,e){k.has(t,e)||(t[e]=0),t[e]++})},k.sortedIndex=function(t,e,n,r){for(var i=(n=null==n?k.identity:S(n)).call(r,e),o=0,s=t.length;o<s;){var a=o+s>>>1;n.call(r,t[a])<i?o=a+1:s=a}return o},k.toArray=function(t){return t?k.isArray(t)?a.call(t):t.length===+t.length?k.map(t,k.identity):k.values(t):[]},k.size=function(t){return null==t?0:t.length===+t.length?t.length:k.keys(t).length},k.first=k.head=k.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:a.call(t,0,e)},k.initial=function(t,e,n){return a.call(t,0,t.length-(null==e||n?1:e))},k.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:a.call(t,Math.max(t.length-e,0))},k.rest=k.tail=k.drop=function(t,e,n){return a.call(t,null==e||n?1:e)},k.compact=function(t){return k.filter(t,k.identity)};var E=function(t,e,n){return T(t,function(t){k.isArray(t)?e?o.apply(n,t):E(t,e,n):n.push(t)}),n};k.flatten=function(t,e){return E(t,e,[])},k.without=function(t){return k.difference(t,a.call(arguments,1))},k.uniq=k.unique=function(n,r,t,e){k.isFunction(r)&&(e=t,t=r,r=!1);var i=t?k.map(n,t,e):n,o=[],s=[];return T(i,function(t,e){(r?e&&s[s.length-1]===t:k.contains(s,t))||(s.push(t),o.push(n[e]))}),o},k.union=function(){return k.uniq(u.apply(i,arguments))},k.intersection=function(t){var n=a.call(arguments,1);return k.filter(k.uniq(t),function(e){return k.every(n,function(t){return 0<=k.indexOf(t,e)})})},k.difference=function(t){var e=u.apply(i,a.call(arguments,1));return k.filter(t,function(t){return!k.contains(e,t)})},k.zip=function(){for(var t=a.call(arguments),e=k.max(k.pluck(t,"length")),n=new Array(e),r=0;r<e;r++)n[r]=k.pluck(t,""+r);return n},k.object=function(t,e){if(null==t)return{};for(var n={},r=0,i=t.length;r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},k.indexOf=function(t,e,n){if(null==t)return-1;var r=0,i=t.length;if(n){if("number"!=typeof n)return t[r=k.sortedIndex(t,e)]===e?r:-1;r=n<0?Math.max(0,i+n):n}if(y&&t.indexOf===y)return t.indexOf(e,n);for(;r<i;r++)if(t[r]===e)return r;return-1},k.lastIndexOf=function(t,e,n){if(null==t)return-1;var r=null!=n;if(b&&t.lastIndexOf===b)return r?t.lastIndexOf(e,n):t.lastIndexOf(e);for(var i=r?n:t.length;i--;)if(t[i]===e)return i;return-1},k.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=0,o=new Array(r);i<r;)o[i++]=t,t+=n;return o},k.bind=function(t,e){if(t.bind===C&&C)return C.apply(t,a.call(arguments,1));var n=a.call(arguments,2);return function(){return t.apply(e,n.concat(a.call(arguments)))}},k.partial=function(t){var e=a.call(arguments,1);return function(){return t.apply(this,e.concat(a.call(arguments)))}},k.bindAll=function(e){var t=a.call(arguments,1);return 0===t.length&&(t=k.functions(e)),T(t,function(t){e[t]=k.bind(e[t],e)}),e},k.memoize=function(e,n){var r={};return n||(n=k.identity),function(){var t=n.apply(this,arguments);return k.has(r,t)?r[t]:r[t]=e.apply(this,arguments)}},k.delay=function(t,e){var n=a.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},k.defer=function(t){return k.delay.apply(k,[t,1].concat(a.call(arguments,1)))},k.throttle=function(n,r){var i,o,s,a,u=0,l=function(){u=new Date,s=null,a=n.apply(i,o)};return function(){var t=new Date,e=r-(t-u);return i=this,o=arguments,e<=0?(clearTimeout(s),s=null,u=t,a=n.apply(i,o)):s||(s=setTimeout(l,e)),a}},k.debounce=function(i,o,s){var a,u;return function(){var t=this,e=arguments,n=function(){a=null,s||(u=i.apply(t,e))},r=s&&!a;return clearTimeout(a),a=setTimeout(n,o),r&&(u=i.apply(t,e)),u}},k.once=function(t){var e,n=!1;return function(){return n||(n=!0,e=t.apply(this,arguments),t=null),e}},k.wrap=function(e,n){return function(){var t=[e];return o.apply(t,arguments),n.apply(this,t)}},k.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length-1;0<=e;e--)t=[n[e].apply(this,t)];return t[0]}},k.after=function(t,e){return t<=0?e():function(){if(--t<1)return e.apply(this,arguments)}},k.keys=x||function(t){if(t!==Object(t))throw new TypeError("Invalid object");var e=[];for(var n in t)k.has(t,n)&&(e[e.length]=n);return e},k.values=function(t){var e=[];for(var n in t)k.has(t,n)&&e.push(t[n]);return e},k.pairs=function(t){var e=[];for(var n in t)k.has(t,n)&&e.push([n,t[n]]);return e},k.invert=function(t){var e={};for(var n in t)k.has(t,n)&&(e[t[n]]=n);return e},k.functions=k.methods=function(t){var e=[];for(var n in t)k.isFunction(t[n])&&e.push(n);return e.sort()},k.extend=function(n){return T(a.call(arguments,1),function(t){if(t)for(var e in t)n[e]=t[e]}),n},k.pick=function(e){var n={},t=u.apply(i,a.call(arguments,1));return T(t,function(t){t in e&&(n[t]=e[t])}),n},k.omit=function(t){var e={},n=u.apply(i,a.call(arguments,1));for(var r in t)k.contains(n,r)||(e[r]=t[r]);return e},k.defaults=function(n){return T(a.call(arguments,1),function(t){if(t)for(var e in t)null==n[e]&&(n[e]=t[e])}),n},k.clone=function(t){return k.isObject(t)?k.isArray(t)?t.slice():k.extend({},t):t},k.tap=function(t,e){return e(t),t};var j=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof k&&(t=t._wrapped),e instanceof k&&(e=e._wrapped);var i=h.call(t);if(i!=h.call(e))return!1;switch(i){case"[object String]":return t==String(e);case"[object Number]":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object RegExp]":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if("object"!=typeof t||"object"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]==t)return r[o]==e;n.push(t),r.push(e);var s=0,a=!0;if("[object Array]"==i){if(a=(s=t.length)==e.length)for(;s--&&(a=j(t[s],e[s],n,r)););}else{var u=t.constructor,l=e.constructor;if(u!==l&&!(k.isFunction(u)&&u instanceof u&&k.isFunction(l)&&l instanceof l))return!1;for(var c in t)if(k.has(t,c)&&(s++,!(a=k.has(e,c)&&j(t[c],e[c],n,r))))break;if(a){for(c in e)if(k.has(e,c)&&!s--)break;a=!s}}return n.pop(),r.pop(),a};k.isEqual=function(t,e){return j(t,e,[],[])},k.isEmpty=function(t){if(null==t)return!0;if(k.isArray(t)||k.isString(t))return 0===t.length;for(var e in t)if(k.has(t,e))return!1;return!0},k.isElement=function(t){return!(!t||1!==t.nodeType)},k.isArray=w||function(t){return"[object Array]"==h.call(t)},k.isObject=function(t){return t===Object(t)},T(["Arguments","Function","String","Number","Date","RegExp"],function(e){k["is"+e]=function(t){return h.call(t)=="[object "+e+"]"}}),k.isArguments(arguments)||(k.isArguments=function(t){return!(!t||!k.has(t,"callee"))}),"function"!=typeof/./&&(k.isFunction=function(t){return"function"==typeof t}),k.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},k.isNaN=function(t){return k.isNumber(t)&&t!=+t},k.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"==h.call(t)},k.isNull=function(t){return null===t},k.isUndefined=function(t){return void 0===t},k.has=function(t,e){return l.call(t,e)},k.noConflict=function(){return t._=e,this},k.identity=function(t){return t},k.times=function(t,e,n){for(var r=Array(t),i=0;i<t;i++)r[i]=e.call(n,i);return r},k.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))};var M={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"}};M.unescape=k.invert(M.escape);var D={escape:new RegExp("["+k.keys(M.escape).join("")+"]","g"),unescape:new RegExp("("+k.keys(M.unescape).join("|")+")","g")};k.each(["escape","unescape"],function(e){k[e]=function(t){return null==t?"":(""+t).replace(D[e],function(t){return M[e][t]})}}),k.result=function(t,e){if(null==t)return null;var n=t[e];return k.isFunction(n)?n.call(t):n},k.mixin=function(n){T(k.functions(n),function(t){var e=k[t]=n[t];k.prototype[t]=function(){var t=[this._wrapped];return o.apply(t,arguments),L.call(this,e.apply(k,t))}})};var A=0;k.uniqueId=function(t){var e=++A+"";return t?t+e:e},k.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var O=/(.)^/,R={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},P=/\\|'|\r|\n|\t|\u2028|\u2029/g;k.template=function(o,t,e){var n;e=k.defaults({},e,k.templateSettings);var r=new RegExp([(e.escape||O).source,(e.interpolate||O).source,(e.evaluate||O).source].join("|")+"|$","g"),s=0,a="__p+='";o.replace(r,function(t,e,n,r,i){return a+=o.slice(s,i).replace(P,function(t){return"\\"+R[t]}),e&&(a+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'"),n&&(a+="'+\n((__t=("+n+"))==null?'':__t)+\n'"),r&&(a+="';\n"+r+"\n__p+='"),s=i+t.length,t}),a+="';\n",e.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{n=new Function(e.variable||"obj","_",a)}catch(u){throw u.source=a,u}if(t)return n(t,k);var i=function(t){return n.call(this,t,k)};return i.source="function("+(e.variable||"obj")+"){\n"+a+"}",i},k.chain=function(t){return k(t).chain()};var L=function(t){return this._chain?k(t).chain():t};k.mixin(k),T(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=i[e];k.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!=e&&"splice"!=e||0!==t.length||delete t[0],L.call(this,t)}}),T(["concat","join","slice"],function(t){var e=i[t];k.prototype[t]=function(){return L.call(this,e.apply(this._wrapped,arguments))}}),k.extend(k.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this),function(){var a,t=this,e=t.Backbone,n=[],p=n.push,i=n.slice,d=n.splice;(a="undefined"!=typeof exports?exports:t.Backbone={}).VERSION="1.0.0";var m=t._;m||"undefined"==typeof require||(m=require("underscore")),a.$=t.jQuery||t.Zepto||t.ender||t.$,a.noConflict=function(){return t.Backbone=e,this},a.emulateHTTP=!1,a.emulateJSON=!1;var r=a.Events={on:function(t,e,n){return h(this,"on",t,[e,n])&&e&&(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:n,ctx:n||this})),this},once:function(t,e,n){if(!h(this,"once",t,[e,n])||!e)return this;var r=this,i=m.once(function(){r.off(t,i),e.apply(this,arguments)});return i._callback=e,this.on(t,i,n)},off:function(t,e,n){var r,i,o,s,a,u,l,c;if(!this._events||!h(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events={},this;for(a=0,u=(s=t?[t]:m.keys(this._events)).length;a<u;a++)if(t=s[a],o=this._events[t]){if(this._events[t]=r=[],e||n)for(l=0,c=o.length;l<c;l++)i=o[l],(e&&e!==i.callback&&e!==i.callback._callback||n&&n!==i.context)&&r.push(i);r.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=i.call(arguments,1);if(!h(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&o(n,e),r&&o(r,arguments),this},stopListening:function(t,e,n){var r=this._listeners;if(!r)return this;var i=!e&&!n;for(var o in"object"==typeof e&&(n=this),t&&((r={})[t._listenerId]=t),r)r[o].off(e,n,this),i&&delete this._listeners[o];return this}},u=/\s+/,h=function(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var i in n)t[e].apply(t,[i,n[i]].concat(r));return!1}if(u.test(n)){for(var o=n.split(u),s=0,a=o.length;s<a;s++)t[e].apply(t,[o[s]].concat(r));return!1}return!0},o=function(t,e){var n,r=-1,i=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++r<i;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o);return;case 2:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s);return;case 3:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s,a);return;default:for(;++r<i;)(n=t[r]).callback.apply(n.ctx,e)}},s={listenTo:"on",listenToOnce:"once"};m.each(s,function(i,t){r[t]=function(t,e,n){var r=this._listeners||(this._listeners={});return"object"==typeof e&&(n=this),(r[t._listenerId||(t._listenerId=m.uniqueId("l"))]=t)[i](e,n,this),this}}),r.bind=r.on,r.unbind=r.off,m.extend(a,r);var l=a.Model=function(t,e){var n,r=t||{};e||(e={}),this.cid=m.uniqueId("c"),this.attributes={},m.extend(this,m.pick(e,c)),e.parse&&(r=this.parse(r,e)||{}),(n=m.result(this,"defaults"))&&(r=m.defaults({},r,n)),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)},c=["url","urlRoot","collection"];m.extend(l.prototype,r,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(){return m.clone(this.attributes)},sync:function(){return a.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return m.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var r,i,o,s,a,u,l,c;if(null==t)return this;if("object"==typeof t?(i=t,n=e):(i={})[t]=e,n||(n={}),!this._validate(i,n))return!1;for(r in o=n.unset,a=n.silent,s=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=m.clone(this.attributes),this.changed={}),c=this.attributes,l=this._previousAttributes,this.idAttribute in i&&(this.id=i[this.idAttribute]),i)e=i[r],m.isEqual(c[r],e)||s.push(r),m.isEqual(l[r],e)?delete this.changed[r]:this.changed[r]=e,o?delete c[r]:c[r]=e;if(!a){s.length&&(this._pending=!0);for(var h=0,f=s.length;h<f;h++)this.trigger("change:"+s[h],this,c[s[h]],n)}if(u)return this;if(!a)for(;this._pending;)this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,m.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,m.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!m.isEmpty(this.changed):m.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&m.clone(this.changed);var e,n=!1,r=this._changing?this._previousAttributes:this.attributes;for(var i in t)m.isEqual(r[i],e=t[i])||((n||(n={}))[i]=e);return n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return m.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?m.clone(e):{}).parse&&(e.parse=!0);var n=this,r=e.success;return e.success=function(t){if(!n.set(n.parse(t,e),e))return!1;r&&r(n,t,e),n.trigger("sync",n,t,e)},L(this,e),this.sync("read",this,e)},save:function(t,e,n){var r,i,o,s=this.attributes;if(null==t||"object"==typeof t?(r=t,n=e):(r={})[t]=e,r&&(!n||!n.wait)&&!this.set(r,n))return!1;if(n=m.extend({validate:!0},n),!this._validate(r,n))return!1;r&&n.wait&&(this.attributes=m.extend({},s,r)),void 0===n.parse&&(n.parse=!0);var a=this,u=n.success;return n.success=function(t){a.attributes=s;var e=a.parse(t,n);if(n.wait&&(e=m.extend(r||{},e)),m.isObject(e)&&!a.set(e,n))return!1;u&&u(a,t,n),a.trigger("sync",a,t,n)},L(this,n),"patch"===(i=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=r),o=this.sync(i,this,n),r&&n.wait&&(this.attributes=s),o},destroy:function(e){e=e?m.clone(e):{};var n=this,r=e.success,i=function(){n.trigger("destroy",n,n.collection,e)};if(e.success=function(t){(e.wait||n.isNew())&&i(),r&&r(n,t,e),n.isNew()||n.trigger("sync",n,t,e)},this.isNew())return e.success(),!1;L(this,e);var t=this.sync("delete",this,e);return e.wait||i(),t},url:function(){var t=m.result(this,"urlRoot")||m.result(this.collection,"url")||P();return this.isNew()?t:t+("/"===t.charAt(t.length-1)?"":"/")+encodeURIComponent(this.id)},parse:function(t){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return null==this.id},isValid:function(t){return this._validate({},m.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=m.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,m.extend(e||{},{validationError:n})),!1)}});var f=["keys","values","pairs","invert","pick","omit"];m.each(f,function(e){l.prototype[e]=function(){var t=i.call(arguments);return t.unshift(this.attributes),m[e].apply(m,t)}});var g=a.Collection=function(t,e){e||(e={}),e.url&&(this.url=e.url),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,m.extend({silent:!0},e))},v={add:!0,remove:!0,merge:!0},y={add:!0,merge:!1,remove:!1};m.extend(g.prototype,r,{model:l,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return a.sync.apply(this,arguments)},add:function(t,e){return this.set(t,m.defaults(e||{},y))},remove:function(t,e){var n,r,i,o;for(e||(e={}),n=0,r=(t=m.isArray(t)?t.slice():[t]).length;n<r;n++)(o=this.get(t[n]))&&(delete this._byId[o.id],delete this._byId[o.cid],i=this.indexOf(o),this.models.splice(i,1),this.length--,e.silent||(e.index=i,o.trigger("remove",o,this,e)),this._removeReference(o));return this},set:function(t,e){var n,r,i,o,s;(e=m.defaults(e||{},v)).parse&&(t=this.parse(t,e)),m.isArray(t)||(t=t?[t]:[]);var a=e.at,u=this.comparator&&null==a&&!1!==e.sort,l=m.isString(this.comparator)?this.comparator:null,c=[],h=[],f={};for(n=0,r=t.length;n<r;n++)(i=this._prepareModel(t[n],e))&&((o=this.get(i))?(e.remove&&(f[o.cid]=!0),e.merge&&(o.set(i.attributes,e),u&&!s&&o.hasChanged(l)&&(s=!0))):e.add&&(c.push(i),i.on("all",this._onModelEvent,this),null!=(this._byId[i.cid]=i).id&&(this._byId[i.id]=i)));if(e.remove){for(n=0,r=this.length;n<r;++n)f[(i=this.models[n]).cid]||h.push(i);h.length&&this.remove(h,e)}if(c.length&&(u&&(s=!0),this.length+=c.length,null!=a?d.apply(this.models,[a,0].concat(c)):p.apply(this.models,c)),s&&this.sort({silent:!0}),e.silent)return this;for(n=0,r=c.length;n<r;n++)(i=c[n]).trigger("add",i,this,e);return s&&this.trigger("sort",this,e),this},reset:function(t,e){e||(e={});for(var n=0,r=this.models.length;n<r;n++)this._removeReference(this.models[n]);return e.previousModels=this.models,this._reset(),this.add(t,m.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),this},push:function(t,e){return t=this._prepareModel(t,e),this.add(t,m.extend({at:this.length},e)),t},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return t=this._prepareModel(t,e),this.add(t,m.extend({at:0},e)),t},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(t,e){return this.models.slice(t,e)},get:function(t){if(null!=t)return this._byId[null!=t.id?t.id:t.cid||t]},at:function(t){return this.models[t]},where:function(n,t){return m.isEmpty(n)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var e in n)if(n[e]!==t.get(e))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),m.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(m.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},sortedIndex:function(t,e,n){e||(e=this.comparator);var r=m.isFunction(e)?e:function(t){return t.get(e)};return m.sortedIndex(this.models,t,r,n)},pluck:function(t){return m.invoke(this.models,"get",t)},fetch:function(n){void 0===(n=n?m.clone(n):{}).parse&&(n.parse=!0);var r=n.success,i=this;return n.success=function(t){var e=n.reset?"reset":"set";i[e](t,n),r&&r(i,t,n),i.trigger("sync",i,t,n)},L(this,n),this.sync("read",this,n)},create:function(e,n){if(n=n?m.clone(n):{},!(e=this._prepareModel(e,n)))return!1;n.wait||this.add(e,n);var r=this,i=n.success;return n.success=function(t){n.wait&&r.add(e,n),i&&i(e,t,n)},e.save(null,n),e},parse:function(t){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof l)return t.collection||(t.collection=this),t;e||(e={});var n=new(e.collection=this).model(t,e);return n._validate(t,e)?n:(this.trigger("invalid",this,t,e),!1)},_removeReference:function(t){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,r),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var b=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","indexOf","shuffle","lastIndexOf","isEmpty","chain"];m.each(b,function(e){g.prototype[e]=function(){var t=i.call(arguments);return t.unshift(this.models),m[e].apply(m,t)}});var w=["groupBy","countBy","sortBy"];m.each(w,function(r){g.prototype[r]=function(e,t){var n=m.isFunction(e)?e:function(t){return t.get(e)};return m[r](this.models,n,t)}});var x=a.View=function(t){this.cid=m.uniqueId("view"),this._configure(t||{}),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},C=/^(\S+)\s*(.*)$/,k=["model","collection","el","id","attributes","className","tagName","events"];m.extend(x.prototype,r,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,e){return this.$el&&this.undelegateEvents(),this.$el=t instanceof a.$?t:a.$(t),this.el=this.$el[0],!1!==e&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=m.result(this,"events")))return this;for(var e in this.undelegateEvents(),t){var n=t[e];if(m.isFunction(n)||(n=this[t[e]]),n){var r=e.match(C),i=r[1],o=r[2];n=m.bind(n,this),i+=".delegateEvents"+this.cid,""===o?this.$el.on(i,n):this.$el.on(i,o,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_configure:function(t){this.options&&(t=m.extend({},m.result(this,"options"),t)),m.extend(this,m.pick(t,k)),this.options=t},_ensureElement:function(){if(this.el)this.setElement(m.result(this,"el"),!1);else{var t=m.extend({},m.result(this,"attributes"));this.id&&(t.id=m.result(this,"id")),this.className&&(t["class"]=m.result(this,"className"));var e=a.$("<"+m.result(this,"tagName")+">").attr(t);this.setElement(e,!1)}}}),a.sync=function(t,e,n){var r=T[t];m.defaults(n||(n={}),{emulateHTTP:a.emulateHTTP,emulateJSON:a.emulateJSON});var i={type:r,dataType:"json"};if(n.url||(i.url=m.result(e,"url")||P()),null!=n.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(i.contentType="application/json",i.data=JSON.stringify(n.attrs||e.toJSON(n))),n.emulateJSON&&(i.contentType="application/x-www-form-urlencoded",i.data=i.data?{model:i.data}:{}),n.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){i.type="POST",n.emulateJSON&&(i.data._method=r);var o=n.beforeSend;n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",r),o)return o.apply(this,arguments)}}"GET"===i.type||n.emulateJSON||(i.processData=!1),"PATCH"!==i.type||!window.ActiveXObject||window.external&&window.external.msActiveXFilteringEnabled||(i.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var s=n.xhr=a.ajax(m.extend(i,n));return e.trigger("request",e,s,n),s};var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};a.ajax=function(){return a.$.ajax.apply(a.$,arguments)};var _=a.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},N=/\((.*?)\)/g,S=/(\(\?)?:\w+/g,$=/\*\w+/g,E=/[\-{}\[\]+?.,\\\^$|#\s]/g;m.extend(_.prototype,r,{initialize:function(){},route:function(n,r,i){m.isRegExp(n)||(n=this._routeToRegExp(n)),m.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var o=this;return a.history.route(n,function(t){var e=o._extractParameters(n,t);i&&i.apply(o,e),o.trigger.apply(o,["route:"+r].concat(e)),o.trigger("route",r,e),a.history.trigger("route",o,r,e)}),this},navigate:function(t,e){return a.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=m.result(this,"routes");for(var t,e=m.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(E,"\\$&").replace(N,"(?:$1)?").replace(S,function(t,e){return e?t:"([^/]+)"}).replace($,"(.*?)"),new RegExp("^"+t+"$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return m.map(n,function(t){return t?decodeURIComponent(t):null})}});var j=a.History=function(){this.handlers=[],m.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},M=/^[#\/]|\s+$/g,D=/^\/+|\/+$/g,A=/msie [\w.]+/,O=/\/$/;j.started=!1,m.extend(j.prototype,r,{interval:50,getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=this.location.pathname;var n=this.root.replace(O,"");t.indexOf(n)||(t=t.substr(n.length))}else t=this.getHash();return t.replace(M,"")},start:function(t){if(j.started)throw new Error("Backbone.history has already been started");j.started=!0,this.options=m.extend({},{root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var e=this.getFragment(),n=document.documentMode,r=A.exec(navigator.userAgent.toLowerCase())&&(!n||n<=7);this.root=("/"+this.root+"/").replace(D,"/"),r&&this._wantsHashChange&&(this.iframe=a.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(e)),this._hasPushState?a.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!r?a.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=e;var i=this.location,o=i.pathname.replace(/[^\/]$/,"$&/")===this.root;return this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!o?(this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0):(this._wantsPushState&&this._hasPushState&&o&&i.hash&&(this.fragment=this.getHash().replace(M,""),this.history.replaceState({},document.title,this.root+this.fragment+i.search)),this.options.silent?void 0:this.loadUrl())},stop:function(){a.$(window).off("popstate",this.checkUrl).off(
28
- "hashchange",this.checkUrl),clearInterval(this._checkUrlInterval),j.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()||this.loadUrl(this.getHash())},loadUrl:function(t){var e=this.fragment=this.getFragment(t);return m.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(t,e){if(!j.started)return!1;if(e&&!0!==e||(e={trigger:e}),t=this.getFragment(t||""),this.fragment!==t){this.fragment=t;var n=this.root+t;if(this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}e.trigger&&this.loadUrl(t)}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),a.history=new j;var R=function(t,e){var n,r=this;n=t&&m.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},m.extend(n,r,e);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,t&&m.extend(n.prototype,t),n.__super__=r.prototype,n};l.extend=g.extend=_.extend=x.extend=j.extend=R;var P=function(){throw new Error('A "url" property or function must be specified')},L=function(e,n){var r=n.error;n.error=function(t){r&&r(e,t,n),e.trigger("error",e,t,n)}}}.call(this),function(e){"use strict";e(function(){var t;e.support.transition=(t=function(){var t,e=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in n)if(e.style[t]!==undefined)return n[t]}())&&{end:t}})}(window.jQuery),function(o){"use strict";var e='[data-dismiss="alert"]',r=function(t){o(t).on("click",e,this.close)};r.prototype.close=function(t){function e(){n.trigger("closed").remove()}var n,r=o(this),i=r.attr("data-target");i||(i=(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),n=o(i),t&&t.preventDefault(),n.length||(n=r.hasClass("alert")?r:r.parent()),n.trigger(t=o.Event("close")),t.isDefaultPrevented()||(n.removeClass("in"),o.support.transition&&n.hasClass("fade")?n.on(o.support.transition.end,e):e())};var t=o.fn.alert;o.fn.alert=function(n){return this.each(function(){var t=o(this),e=t.data("alert");e||t.data("alert",e=new r(this)),"string"==typeof n&&e[n].call(t)})},o.fn.alert.Constructor=r,o.fn.alert.noConflict=function(){return o.fn.alert=t,this},o(document).on("click.alert.data-api",e,r.prototype.close)}(window.jQuery),function(i){"use strict";var o=function(t,e){this.$element=i(t),this.options=i.extend({},i.fn.button.defaults,e)};o.prototype.setState=function(t){var e="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";t+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[t]||this.options[t]),setTimeout(function(){"loadingText"==t?n.addClass(e).attr(e,e):n.removeClass(e).removeAttr(e)},0)},o.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons-radio"]');t&&t.find(".active").removeClass("active"),this.$element.toggleClass("active")};var t=i.fn.button;i.fn.button=function(r){return this.each(function(){var t=i(this),e=t.data("button"),n="object"==typeof r&&r;e||t.data("button",e=new o(this,n)),"toggle"==r?e.toggle():r&&e.setState(r)})},i.fn.button.defaults={loadingText:"loading..."},i.fn.button.Constructor=o,i.fn.button.noConflict=function(){return i.fn.button=t,this},i(document).on("click.button.data-api","[data-toggle^=button]",function(t){var e=i(t.target);e.hasClass("btn")||(e=e.closest(".btn")),e.button("toggle")})}(window.jQuery),function(l){"use strict";var o=function(t,e){this.$element=l(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,"hover"==this.options.pause&&this.$element.on("mouseenter",l.proxy(this.pause,this)).on("mouseleave",l.proxy(this.cycle,this))};o.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(l.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var e=this.getActiveIndex(),n=this;if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid",function(){n.to(t)}):e==t?this.pause().cycle():this.slide(e<t?"next":"prev",l(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&l.support.transition.end&&(this.$element.trigger(l.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){if(!this.sliding)return this.slide("next")},prev:function(){if(!this.sliding)return this.slide("prev")},slide:function(t,e){var n,r=this.$element.find(".item.active"),i=e||r[t](),o=this.interval,s="next"==t?"left":"right",a="next"==t?"first":"last",u=this;if(this.sliding=!0,o&&this.pause(),i=i.length?i:this.$element.find(".item")[a](),n=l.Event("slide",{relatedTarget:i[0],direction:s}),!i.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=l(u.$indicators.children()[u.getActiveIndex()]);t&&t.addClass("active")})),l.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(n),n.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(s),i.addClass(s),this.$element.one(l.support.transition.end,function(){i.removeClass([t,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),u.sliding=!1,setTimeout(function(){u.$element.trigger("slid")},0)})}else{if(this.$element.trigger(n),n.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return o&&this.cycle(),this}}};var t=l.fn.carousel;l.fn.carousel=function(i){return this.each(function(){var t=l(this),e=t.data("carousel"),n=l.extend({},l.fn.carousel.defaults,"object"==typeof i&&i),r="string"==typeof i?i:n.slide;e||t.data("carousel",e=new o(this,n)),"number"==typeof i?e.to(i):r?e[r]():n.interval&&e.pause().cycle()})},l.fn.carousel.defaults={interval:5e3,pause:"hover"},l.fn.carousel.Constructor=o,l.fn.carousel.noConflict=function(){return l.fn.carousel=t,this},l(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(t){var e,n,r=l(this),i=l(r.attr("data-target")||(e=r.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")),o=l.extend({},i.data(),r.data());i.carousel(o),(n=r.attr("data-slide-to"))&&i.data("carousel").pause().to(n).cycle(),t.preventDefault()})}(window.jQuery),function(o){"use strict";var i=function(t,e){this.$element=o(t),this.options=o.extend({},o.fn.collapse.defaults,e),this.options.parent&&(this.$parent=o(this.options.parent)),this.options.toggle&&this.toggle()};i.prototype={constructor:i,dimension:function(){return this.$element.hasClass("width")?"width":"height"},show:function(){var t,e,n,r;if(!this.transitioning&&!this.$element.hasClass("in")){if(t=this.dimension(),e=o.camelCase(["scroll",t].join("-")),(n=this.$parent&&this.$parent.find("> .accordion-group > .in"))&&n.length){if((r=n.data("collapse"))&&r.transitioning)return;n.collapse("hide"),r||n.data("collapse",null)}this.$element[t](0),this.transition("addClass",o.Event("show"),"shown"),o.support.transition&&this.$element[t](this.$element[0][e])}},hide:function(){var t;!this.transitioning&&this.$element.hasClass("in")&&(t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",o.Event("hide"),"hidden"),this.$element[t](0))},reset:function(t){var e=this.dimension();return this.$element.removeClass("collapse")[e](t||"auto")[0].offsetWidth,this.$element[null!==t?"addClass":"removeClass"]("collapse"),this},transition:function(t,e,n){var r=this,i=function(){"show"==e.type&&r.reset(),r.transitioning=0,r.$element.trigger(n)};this.$element.trigger(e),e.isDefaultPrevented()||(this.transitioning=1,this.$element[t]("in"),o.support.transition&&this.$element.hasClass("collapse")?this.$element.one(o.support.transition.end,i):i())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var t=o.fn.collapse;o.fn.collapse=function(r){return this.each(function(){var t=o(this),e=t.data("collapse"),n=o.extend({},o.fn.collapse.defaults,t.data(),"object"==typeof r&&r);e||t.data("collapse",e=new i(this,n)),"string"==typeof r&&e[r]()})},o.fn.collapse.defaults={toggle:!0},o.fn.collapse.Constructor=i,o.fn.collapse.noConflict=function(){return o.fn.collapse=t,this},o(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var e,n=o(this),r=n.attr("data-target")||t.preventDefault()||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),i=o(r).data("collapse")?"toggle":n.data();n[o(r).hasClass("in")?"addClass":"removeClass"]("collapsed"),o(r).collapse(i)})}(window.jQuery),function(s){"use strict";function r(){s(u).each(function(){a(s(this)).removeClass("open")})}function a(t){var e,n=t.attr("data-target");return n||(n=(n=t.attr("href"))&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),(e=n&&s(n))&&e.length||(e=t.parent()),e}var u="[data-toggle=dropdown]",i=function(t){var e=s(t).on("click.dropdown.data-api",this.toggle);s("html").on("click.dropdown.data-api",function(){e.parent().removeClass("open")})};i.prototype={constructor:i,toggle:function(){var t,e,n=s(this);if(!n.is(".disabled, :disabled"))return e=(t=a(n)).hasClass("open"),r(),e||t.toggleClass("open"),n.focus(),!1},keydown:function(t){var e,n,r,i,o;if(/(38|40|27)/.test(t.keyCode)&&(e=s(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(!(i=(r=a(e)).hasClass("open"))||i&&27==t.keyCode)return 27==t.which&&r.find(u).focus(),e.click();(n=s("[role=menu] li:not(.divider):visible a",r)).length&&(o=n.index(n.filter(":focus")),38==t.keyCode&&0<o&&o--,40==t.keyCode&&o<n.length-1&&o++,~o||(o=0),n.eq(o).focus())}}};var t=s.fn.dropdown;s.fn.dropdown=function(n){return this.each(function(){var t=s(this),e=t.data("dropdown");e||t.data("dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})},s.fn.dropdown.Constructor=i,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=t,this},s(document).on("click.dropdown.data-api",r).on("click.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.dropdown-menu",function(t){t.stopPropagation()}).on("click.dropdown.data-api",u,i.prototype.toggle).on("keydown.dropdown.data-api",u+", [role=menu]",i.prototype.keydown)}(window.jQuery),function(o){"use strict";var i=function(t,e){this.options=e,this.$element=o(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",o.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};i.prototype={constructor:i,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var e=this,t=o.Event("show");this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var t=o.support.transition&&e.$element.hasClass("fade");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show(),t&&e.$element[0].offsetWidth,e.$element.addClass("in").attr("aria-hidden",!1),e.enforceFocus(),t?e.$element.one(o.support.transition.end,function(){e.$element.focus().trigger("shown")}):e.$element.focus().trigger("shown")}))},hide:function(t){t&&t.preventDefault();t=o.Event("hide"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),o(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),o.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},enforceFocus:function(){var e=this;o(document).on("focusin.modal",function(t){e.$element[0]===t.target||e.$element.has(t.target).length||e.$element.focus()})},escape:function(){var e=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(t){27==t.which&&e.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,e=setTimeout(function(){t.$element.off(o.support.transition.end),t.hideModal()},500);this.$element.one(o.support.transition.end,function(){clearTimeout(e),t.hideModal()})},hideModal:function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(t){var e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=o.support.transition&&e;if(this.$backdrop=o('<div class="modal-backdrop '+e+'" />').appendTo(document.body),this.$backdrop.click("static"==this.options.backdrop?o.proxy(this.$element[0].focus,this.$element[0]):o.proxy(this.hide,this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;n?this.$backdrop.one(o.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(o.support.transition.end,t):t()):t&&t()}};var t=o.fn.modal;o.fn.modal=function(r){return this.each(function(){var t=o(this),e=t.data("modal"),n=o.extend({},o.fn.modal.defaults,t.data(),"object"==typeof r&&r);e||t.data("modal",e=new i(this,n)),"string"==typeof r?e[r]():n.show&&e.show()})},o.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},o.fn.modal.Constructor=i,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),n=e.attr("href"),r=o(e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),i=r.data("modal")?"toggle":o.extend({remote:!/#/.test(n)&&n},r.data(),e.data());t.preventDefault(),r.modal(i).one("hide",function(){e.focus()})})}(window.jQuery),function(u){"use strict";var i=function(t,e){this.init("tooltip",t,e)};i.prototype={constructor:i,init:function(t,e,n){var r,i,o,s,a;for(this.type=t,this.$element=u(e),this.options=this.getOptions(n),this.enabled=!0,a=(o=this.options.trigger.split(" ")).length;a--;)"click"==(s=o[a])?this.$element.on("click."+this.type,this.options.selector,u.proxy(this.toggle,this)):"manual"!=s&&(r="hover"==s?"mouseenter":"focus",i="hover"==s?"mouseleave":"blur",this.$element.on(r+"."+this.type,this.options.selector,u.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,u.proxy(this.leave,this)));this.options.selector?this._options=u.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return(t=u.extend({},u.fn[this.type].defaults,this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var e,n=u.fn[this.type].defaults,r={};if(this._options&&u.each(this._options,function(t,e){n[t]!=e&&(r[t]=e)},this),!(e=u(t.currentTarget)[this.type](r).data(this.type)).options.delay||!e.options.delay.show)return e.show();clearTimeout(this.timeout),e.hoverState="in",this.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)},leave:function(t){var e=u(t.currentTarget)[this.type](this._options).data(this.type);if(this.timeout&&clearTimeout(this.timeout),!e.options.delay||!e.options.delay.hide)return e.hide();e.hoverState="out",this.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)},show:function(){var t,e,n,r,i,o,s=u.Event("show");if(this.hasContent()&&this.enabled){if(this.$element.trigger(s),s.isDefaultPrevented())return;switch(t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade"),i="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,t.detach().css({top:0,left:0,display:"block"}),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),e=this.getPosition(),n=t[0].offsetWidth,r=t[0].offsetHeight,i){case"bottom":o={top:e.top+e.height,left:e.left+e.width/2-n/2};break;case"top":o={top:e.top-r,left:e.left+e.width/2-n/2};break;case"left":o={top:e.top+e.height/2-r/2,left:e.left-n};break;case"right":o={top:e.top+e.height/2-r/2,left:e.left+e.width}}this.applyPlacement(o,i),this.$element.trigger("shown")}},applyPlacement:function(t,e){var n,r,i,o,s=this.tip(),a=s[0].offsetWidth,u=s[0].offsetHeight;s.offset(t).addClass(e).addClass("in"),n=s[0].offsetWidth,r=s[0].offsetHeight,"top"==e&&r!=u&&(t.top=t.top+u-r,o=!0),"bottom"==e||"top"==e?(i=0,t.left<0&&(i=-2*t.left,t.left=0,s.offset(t),n=s[0].offsetWidth,r=s[0].offsetHeight),this.replaceArrow(i-a+n,n,"left")):this.replaceArrow(r-u,r,"top"),o&&s.offset(t)},replaceArrow:function(t,e,n){this.arrow().css(n,t?50*(1-t/e)+"%":"")},setContent:function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},hide:function(){function t(){var t=setTimeout(function(){e.off(u.support.transition.end).detach()},500);e.one(u.support.transition.end,function(){clearTimeout(t),e.detach()})}var e=this.tip(),n=u.Event("hide");if(this.$element.trigger(n),!n.isDefaultPrevented())return e.removeClass("in"),u.support.transition&&this.$tip.hasClass("fade")?t():e.detach(),this.$element.trigger("hidden"),this},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var t=this.$element[0];return u.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},getTitle:function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},tip:function(){return this.$tip=this.$tip||u(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var e=t?u(t.currentTarget)[this.type](this._options).data(this.type):this;e.tip().hasClass("in")?e.hide():e.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var t=u.fn.tooltip;u.fn.tooltip=function(r){return this.each(function(){var t=u(this),e=t.data("tooltip"),n="object"==typeof r&&r;e||t.data("tooltip",e=new i(this,n)),"string"==typeof r&&e[r]()})},u.fn.tooltip.Constructor=i,u.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},u.fn.tooltip.noConflict=function(){return u.fn.tooltip=t,this}}(window.jQuery),function(i){"use strict";var o=function(t,e){this.init("popover",t,e)};o.prototype=i.extend({},i.fn.tooltip.Constructor.prototype,{constructor:o,setContent:function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](n),t.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var t=this.$element,e=this.options;return("function"==typeof e.content?e.content.call(t[0]):e.content)||t.attr("data-content")},tip:function(){return this.$tip||(this.$tip=i(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var t=i.fn.popover;i.fn.popover=function(r){return this.each(function(){var t=i(this),e=t.data("popover"),n="object"==typeof r&&r;e||t.data("popover",e=new o(this,n)),"string"==typeof r&&e[r]()})},i.fn.popover.Constructor=o,i.fn.popover.defaults=i.extend({},i.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.fn.popover.noConflict=function(){return i.fn.popover=t,this}}(window.jQuery),function(o){"use strict";function i(t,e){var n,r=o.proxy(this.process,this),i=o(t).is("body")?o(window):o(t);this.options=o.extend({},o.fn.scrollspy.defaults,e),this.$scrollElement=i.on("scroll.scroll-spy.data-api",r),this.selector=(this.options.target||(n=o(t).attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=o("body"),this.refresh(),this.process()}i.prototype={constructor:i,refresh:function(){var r=this;this.offsets=o([]),this.targets=o([]),this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),n=/^#\w/.test(e)&&o(e);return n&&n.length&&[[n.position().top+(!o.isWindow(r.$scrollElement.get(0))&&r.$scrollElement.scrollTop()),e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){r.offsets.push(this[0]),r.targets.push(this[1])})},process:function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),r=this.offsets,i=this.targets,o=this.activeTarget;if(n<=e)return o!=(t=i.last()[0])&&this.activate(t);for(t=r.length;t--;)o!=i[t]&&e>=r[t]&&(!r[t+1]||e<=r[t+1])&&this.activate(i[t])},activate:function(t){var e,n;this.activeTarget=t,o(this.selector).parent(".active").removeClass("active"),n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',(e=o(n).parent("li").addClass("active")).parent(".dropdown-menu").length&&(e=e.closest("li.dropdown").addClass("active")),e.trigger("activate")}};var t=o.fn.scrollspy;o.fn.scrollspy=function(r){return this.each(function(){var t=o(this),e=t.data("scrollspy"),n="object"==typeof r&&r;e||t.data("scrollspy",e=new i(this,n)),"string"==typeof r&&e[r]()})},o.fn.scrollspy.Constructor=i,o.fn.scrollspy.defaults={offset:10},o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);t.scrollspy(t.data())})})}(window.jQuery),function(s){"use strict";var r=function(t){this.element=s(t)};r.prototype={constructor:r,show:function(){var t,e,n,r=this.element,i=r.closest("ul:not(.dropdown-menu)"),o=r.attr("data-target");o||(o=(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),r.parent("li").hasClass("active")||(t=i.find(".active:last a")[0],n=s.Event("show",{relatedTarget:t}),r.trigger(n),n.isDefaultPrevented()||(e=s(o),this.activate(r.parent("li"),i),this.activate(e,e.parent(),function(){r.trigger({type:"shown",relatedTarget:t})})))},activate:function(t,e,n){function r(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),o?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),n&&n()}var i=e.find("> .active"),o=n&&s.support.transition&&i.hasClass("fade");o?i.one(s.support.transition.end,r):r(),i.removeClass("in")}};var t=s.fn.tab;s.fn.tab=function(n){return this.each(function(){var t=s(this),e=t.data("tab");e||t.data("tab",e=new r(this)),"string"==typeof n&&e[n]()})},s.fn.tab.Constructor=r,s.fn.tab.noConflict=function(){return s.fn.tab=t,this},s(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),s(this).tab("show")})}(window.jQuery),function(i){"use strict";var o=function(t,e){this.$element=i(t),this.options=i.extend({},i.fn.typeahead.defaults,e),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=i(this.options.menu),this.shown=!1,this.listen()};o.prototype={constructor:o,select:function(){var t=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(t)).change(),this.hide()},updater:function(t){return t},show:function(){var t=i.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:t.top+t.height,left:t.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(){var t;return this.query=this.$element.val(),!this.query||this.query.length<this.options.minLength?this.shown?this.hide():this:(t=i.isFunction(this.source)?this.source(this.query,i.proxy(this.process,this)):this.source)?this.process(t):this},process:function(t){var e=this;return t=i.grep(t,function(t){return e.matcher(t)}),(t=this.sorter(t)).length?this.render(t.slice(0,this.options.items)).show():this.shown?this.hide():this},matcher:function(t){return~t.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(t){for(var e,n=[],r=[],i=[];e=t.shift();)e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?r.push(e):i.push(e):n.push(e);return n.concat(r,i)},highlighter:function(t){var e=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return t.replace(new RegExp("("+e+")","ig"),function(t,e){return"<strong>"+e+"</strong>"})},render:function(t){var n=this;return(t=i(t).map(function(t,e){return(t=i(n.options.item).attr("data-value",e)).find("a").html(n.highlighter(e)),t[0]})).first().addClass("active"),this.$menu.html(t),this},next:function(){var t=this.$menu.find(".active").removeClass("active").next();t.length||(t=i(this.$menu.find("li")[0])),t.addClass("active")},prev:function(){var t=this.$menu.find(".active").removeClass("active").prev();t.length||(t=this.$menu.find("li").last()),t.addClass("active")},listen:function(){this.$element.on("focus",i.proxy(this.focus,this)).on("blur",i.proxy(this.blur,this)).on("keypress",i.proxy(this.keypress,this)).on("keyup",i.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",i.proxy(this.keydown,this)),this.$menu.on("click",i.proxy(this.click,this)).on("mouseenter","li",i.proxy(this.mouseenter,this)).on("mouseleave","li",i.proxy(this.mouseleave,this))},eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(t){this.suppressKeyPressRepeat=~i.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}t.stopPropagation(),t.preventDefault()},focus:function(){this.focused=!0},blur:function(){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(t){t.stopPropagation(),t.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(t){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),i(t.currentTarget).addClass("active")},mouseleave:function(){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var t=i.fn.typeahead;i.fn.typeahead=function(r){return this.each(function(){var t=i(this),e=t.data("typeahead"),n="object"==typeof r&&r;e||t.data("typeahead",e=new o(this,n)),"string"==typeof r&&e[r]()})},i.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1},i.fn.typeahead.Constructor=o,i.fn.typeahead.noConflict=function(){return i.fn.typeahead=t,this},i(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(){var t=i(this);t.data("typeahead")||t.typeahead(t.data())})}(window.jQuery),function(u){"use strict";var i=function(t,e){this.options=u.extend({},u.fn.affix.defaults,e),this.$window=u(window).on("scroll.affix.data-api",u.proxy(this.checkPosition,this)).on("click.affix.data-api",u.proxy(function(){setTimeout(u.proxy(this.checkPosition,this),1)},this)),this.$element=u(t),this.checkPosition()};i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t,e=u(document).height(),n=this.$window.scrollTop(),r=this.$element.offset(),i=this.options.offset,o=i.bottom,s=i.top,a="affix affix-top affix-bottom";"object"!=typeof i&&(o=s=i),"function"==typeof s&&(s=i.top()),"function"==typeof o&&(o=i.bottom()),t=!(null!=this.unpin&&n+this.unpin<=r.top)&&(null!=o&&r.top+this.$element.height()>=e-o?"bottom":null!=s&&n<=s&&"top"),this.affixed!==t&&(this.affixed=t,this.unpin="bottom"==t?r.top-n:null,this.$element.removeClass(a).addClass("affix"+(t?"-"+t:"")))}};var t=u.fn.affix;u.fn.affix=function(r){return this.each(function(){var t=u(this),e=t.data("affix"),n="object"==typeof r&&r;e||t.data("affix",e=new i(this,n)),"string"==typeof r&&e[r]()})},u.fn.affix.Constructor=i,u.fn.affix.defaults={offset:0},u.fn.affix.noConflict=function(){return u.fn.affix=t,this},u(window).on("load",function(){u('[data-spy="affix"]').each(function(){var t=u(this),e=t.data();e.offset=e.offset||{},e.offsetBottom&&(e.offset.bottom=e.offsetBottom),e.offsetTop&&(e.offset.top=e.offsetTop),t.affix(e)})})}(window.jQuery),function(){var t=this,e=t.humanize,c={};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=c),exports.humanize=c):("function"==typeof define&&define.amd&&define("humanize",function(){return c}),t.humanize=c),c.noConflict=function(){return t.humanize=e,this},c.pad=function(t,e,n,r){if(t+="",n?1<n.length&&(n=n.charAt(0)):n=" ","right"===(r=r===undefined?"left":"right"))for(;t.length<e;)t+=n;else for(;t.length<e;)t=n+t;return t},c.time=function(){return(new Date).getTime()/1e3};var u=[0,0,31,59,90,120,151,181,212,243,273,304,334],l=[0,0,31,60,91,121,152,182,213,244,274,305,335];c.date=function(t,e){var r=e===undefined?new Date:e instanceof Date?new Date(e):new Date(1e3*e),n=/\\?([a-z])/gi,i=function(t,e){return a[t]?a[t]():e},o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["January","February","March","April","May","June","July","August","September","October","November","December"],a={d:function(){return c.pad(a.j(),2,"0")},D:function(){return a.l().slice(0,3)},j:function(){return r.getDate()},l:function(){return o[a.w()]},N:function(){return a.w()||7},S:function(){var t=a.j();return 4<t&&t<21?"th":{1:"st",2:"nd",3:"rd"}[t%10]||"th"},w:function(){return r.getDay()},z:function(){return(a.L()?l[a.n()]:u[a.n()])+a.j()-1},W:function(){var t=a.z()-a.N()+1.5;return c.pad(1+Math.floor(Math.abs(t)/7)+(3.5<t%7?1:0),2,"0")},F:function(){return s[r.getMonth()]},m:function(){return c.pad(a.n(),2,"0")},M:function(){return a.F().slice(0,3)},n:function(){return r.getMonth()+1},t:function(){return new Date(a.Y(),a.n(),0).getDate()},L:function(){return 1===new Date(a.Y(),1,29).getMonth()?1:0},o:function(){var t=a.n(),e=a.W();return a.Y()+(12===t&&e<9?-1:1===t&&9<e)},Y:function(){return r.getFullYear()},y:function(){return String(a.Y()).slice(-2)},a:function(){return 11<r.getHours()?"pm":"am"},A:function(){return a.a().toUpperCase()},B:function(){var t=r.getTime()/1e3,e=t%86400+3600;e<0&&(e+=86400);var n=e/86.4%1e3;return t<0?Math.ceil(n):Math.floor(n)},g:function(){return a.G()%12||12},G:function(){return r.getHours()},h:function(){return c.pad(a.g(),2,"0")},H:function(){return c.pad(a.G(),2,"0")},i:function(){return c.pad(r.getMinutes(),2,"0")},s:function(){return c.pad(r.getSeconds(),2,"0")},u:function(){return c.pad(1e3*r.getMilliseconds(),6,"0")},O:function(){var t=r.getTimezoneOffset(),e=Math.abs(t);return(0<t?"-":"+")+c.pad(100*Math.floor(e/60)+e%60,4,"0")},P:function(){var t=a.O();return t.substr(0,3)+":"+t.substr(3,2)},Z:function(){return 60*-r.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(n,i)},r:function(){return"D, d M Y H:i:s O".replace(n,i)},U:function(){return r.getTime()/1e3||0}};return t.replace(n,i)},c.numberFormat=function(t,e,n,r){e=isNaN(e)?2:Math.abs(e),n=n===undefined?".":n,r=r===undefined?",":r;var i=t<0?"-":"";t=Math.abs(+t||0)
29
- ;var o=parseInt(t.toFixed(e),10)+"",s=3<o.length?o.length%3:0;return i+(s?o.substr(0,s)+r:"")+o.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+r)+(e?n+Math.abs(t-o).toFixed(e).slice(2):"")},c.naturalDay=function(t,e){t=t===undefined?c.time():t,e=e===undefined?"Y-m-d":e;var n=86400,r=new Date,i=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime()/1e3;return t<i&&i-n<=t?"yesterday":i<=t&&t<i+n?"today":i+n<=t&&t<i+2*n?"tomorrow":c.date(e,t)},c.relativeTime=function(t){t=t===undefined?c.time():t;var e=c.time(),n=e-t;if(n<2&&-2<n)return(0<=n?"just ":"")+"now";if(n<60&&-60<n)return 0<=n?Math.floor(n)+" seconds ago":"in "+Math.floor(-n)+" seconds";if(n<120&&-120<n)return 0<=n?"about a minute ago":"in about a minute";if(n<3600&&-3600<n)return 0<=n?Math.floor(n/60)+" minutes ago":"in "+Math.floor(-n/60)+" minutes";if(n<7200&&-7200<n)return 0<=n?"about an hour ago":"in about an hour";if(n<86400&&-86400<n)return 0<=n?Math.floor(n/3600)+" hours ago":"in "+Math.floor(-n/3600)+" hours";var r=172800;if(n<r&&-r<n)return 0<=n?"1 day ago":"in 1 day";var i=2505600;if(n<i&&-i<n)return 0<=n?Math.floor(n/86400)+" days ago":"in "+Math.floor(-n/86400)+" days";var o=5184e3;if(n<o&&-o<n)return 0<=n?"about a month ago":"in about a month";var s=parseInt(c.date("Y",e),10),a=parseInt(c.date("Y",t),10),u=12*s+parseInt(c.date("n",e),10)-(12*a+parseInt(c.date("n",t),10));if(u<12&&-12<u)return 0<=u?u+" months ago":"in "+-u+" months";var l=s-a;return l<2&&-2<l?0<=l?"a year ago":"in a year":0<=l?l+" years ago":"in "+-l+" years"},c.ordinal=function(t){t=parseInt(t,10);var e=(t=isNaN(t)?0:t)<0?"-":"",n=(t=Math.abs(t))%100;return e+t+(4<n&&n<21?"th":{1:"st",2:"nd",3:"rd"}[t%10]||"th")},c.filesize=function(t,e,n,r,i){if(e=e===undefined?1024:e,n=isNaN(n)?2:Math.abs(n),r=r===undefined?".":r,i=i===undefined?",":i,t<=0)return"0 bytes";var o=[1],s=["bytes","Kb","Mb","Gb","Tb","Pb"];if(t<e)return c.numberFormat(t,0)+" "+s[0];for(var a=1;a<s.length;a++)if(o[a]=o[a-1]*e,t<o[a])return c.numberFormat(t/o[a-1],n,r,i)+" "+s[a-1];return c.numberFormat(t/o[s.length-1],n,r,i)+" "+s[s.length-1]},c.linebreaks=function(t){return"<p>"+(t=(t=(t=(t=(t=t.replace(/^([\n|\r]*)/,"")).replace(/([\n|\r]*)$/,"")).replace(/(\r\n|\n|\r)/g,"\n")).replace(/(\n{2,})/g,"</p><p>")).replace(/\n/g,"<br />"))+"</p>"},c.nl2br=function(t){return t.replace(/(\r\n|\n|\r)/g,"<br />")},c.truncatechars=function(t,e){return t.length<=e?t:t.substr(0,e)+"\u2026"},c.truncatewords=function(t,e){var n=t.split(" ");return n.length<e?t:n.slice(0,e).join(" ")+"\u2026"}}.call(this),function(){this.JST||(this.JST={}),this.JST.cluster=function(t){t||(t={});var s=[],a=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){var t,e,n,r,i,o;for(s.push("<h3 align=center> "),s.push(a(this.model.get("name"))),s.push(' </h3>\n\n<ul class="pager fixed">\n '),this.prevCluster?(s.push('\n <li class="previous nosel"><a class="nextPrevButton" href="'),s.push(a(null!=(r=this.prevCluster)?r.get("routeURL"):void 0)),s.push('">&larr; Prev</a></li>\n ')):s.push('\n <li class="previous disabled nosel"><a>&larr; Prev</a></li>\n '),s.push("\n\n "),this.nextCluster?(s.push('\n <li class="next nosel"><a class="nextPrevButton" href="'),s.push(a(null!=(i=this.nextCluster)?i.get("routeURL"):void 0)),s.push('">Next &rarr;</a></li>\n ')):s.push('\n <li class="next disabled nosel"><a>Next &rarr;</a></li>\n '),s.push('\n </li>\n</ul>\n\n\n</br>\n<table class="table table-striped table-bordered">\n <tr>\n <th>Client Connections</th>\n <th>Client EOF</th>\n <th>Client Errors</th>\n <th>Forward Errors</th>\n <th>Fragments</th>\n <th>Server Ejects</th>\n </tr>\n <tr>\n <td>'),s.push(a(this.model.get("client_connections"))),s.push("</td>\n <td>"),s.push(a(this.model.get("client_eof"))),s.push("</td>\n <td>"),s.push(a(this.model.get("client_err"))),s.push("</td>\n <td>"),s.push(a(this.model.get("forward_error"))),s.push("</td>\n <td>"),s.push(a(this.model.get("fragments"))),s.push("</td>\n <td>"),s.push(a(this.model.get("server_ejects"))),s.push('</td>\n </tr>\n\n</table>\n\n</br>\n<div class="chartsBox">\n <div class="row">\n <div class="span5">\n <div id="chart1" style="padding-left: 23%"></div>\n </div>\n <div class="span5">\n <div id="chart2" style="padding-left: 40%"></div>\n </div>\n </div>\n</div>\n\n\n</br>\n<table class="table table-striped table-bordered">\n <thead>\n <tr>\n <th>Host</th>\n <th>Free Memory</th>\n <th>Used Memory</th>\n <th>Used Memory RSS</th>\n <th>Max Memory</th>\n <th>Fragmentation</th>\n </tr>\n </thead>\n <tbody>\n '),t=0,e=(o=this.model.get("nodes").models).length;t<e;t++)n=o[t],s.push('\n <tr>\n <td><a href="'),s.push(a(n.get("routeURL"))),s.push('">'),s.push(a(n.get("hostname"))),s.push("</a></td>\n <td>"),s.push(a(humanize.filesize(n.get("freeMemory")))),s.push("</td>\n <td>"),s.push(a(humanize.filesize(n.get("usedMemory")))),s.push("</td>\n <td>"),s.push(a(humanize.filesize(n.get("usedMemoryRss")))),s.push("</td>\n <td>"),s.push(a(humanize.filesize(n.get("maxMemory")))),s.push("</td>\n <td>"),s.push(a(n.get("fragmentation"))),s.push("</td>\n </tr>\n ");s.push("\n <tr>\n <td>&nbsp;</td>\n <td>"),s.push(a(humanize.filesize(_(this.model.get("nodes").pluck("freeMemory")).sum()))),s.push("</td>\n <td>"),s.push(a(humanize.filesize(_(this.model.get("nodes").pluck("usedMemory")).sum()))),s.push("</td>\n <td>"),s.push(a(humanize.filesize(_(this.model.get("nodes").pluck("usedMemoryRss")).sum()))),s.push("</td>\n <td>"),s.push(a(humanize.filesize(_(this.model.get("nodes").pluck("maxMemory")).sum()))),s.push("</td>\n <td>~"),s.push(a(humanize.numberFormat(_(this.model.get("nodes").pluck("fragmentation")).average(),2))),s.push("</td>\n </tr>\n </tbody>\n</table>\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST.config=function(t){t||(t={});var u=[],l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){var t,e,n,r,i,o,s,a;for(u.push("\n<h3> Clusters </h3>\n<br/>\n"),n=0,i=(s=_(this.model.get("config")).map(function(t,e){return[e,t]})).length;n<i;n++){for(e=s[n],u.push('\n <table class="table table-striped table-bordered">\n <tr><th>Name</th><td>'),u.push("<a href="+Nutcracker.Models.Cluster.routeURL(e[0])+">"+e[0]+"</a>"),u.push("</td></tr>\n <tr><th>Servers</th><td>"),u.push(e[1].servers.map(function(t){return"<a href="+Nutcracker.Models.Node.routeURL(t)+">"+t+"</a>"}).join("<br/>")),u.push("</td></tr>\n "),r=0,o=(a=_(e[1]).map(function(t,e){return[e,t]})).length;r<o;r++)t=a[r],u.push("\n "),/servers/.test(t[0])||(u.push("\n <tr><th>"),u.push(l(t[0])),u.push("</th><td>"),u.push(l(t[1])),u.push("</td></tr>\n ")),u.push("\n ");u.push("\n </table>\n </br>\n")}u.push("\n")}).call(this)}.call(t),t.safe=e,t.escape=n,u.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST.footer=function(t){t||(t={});var e=[],n=t.safe,r=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},r||(r=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){e.push('<div id="lastUpdate"></div>\n')}).call(this)}.call(t),t.safe=n,t.escape=r,e.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST.navbar=function(t){t||(t={});var u=[],l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){var t,e,n,r,i,o,s,a;for(u.push('<div class="navbar">\n <div class="navbar-inner">\n <div class="container" style="font-size: 17px">\n <a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-responsive-collapse">\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </a>\n <a class="brand" href="#" style="color: #ffffff;font-size: 25px">Nutcracker</a>\n <div class="nav-collapse collapse navbar-responsive-collapse">\n <ul class="nav">\n <li class="divider-vertical"></li>\n <li id="overview" ><a href="#/">Overview</a></li>\n <li class="divider-vertical"></li>\n <li id="config" ><a href="#/config">Config </a></li>\n <li class="divider-vertical"></li>\n <li id="clusters" class="dropdown">\n <a class="dropdown-toggle" id="drop4" style="padding-top: 10px;" role="button" data-toggle="dropdown" href="#">Clusters <b class="caret"></b></a>\n <ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4">\n <li class=\'divider\'></li>\n '),e=0,r=(s=this.model.get("clusters").models).length;e<r;e++)t=s[e],u.push('\n <li role="presentation" style="font-size: 15px">\n <a role="menuitem" tabindex="-1" href="'),u.push(l(t.get("routeURL"))),u.push('">'),u.push(l(t.get("name"))),u.push("</a>\n </li>\n <li class='divider'></li>\n ");for(u.push('\n </ul>\n </li>\n\n <li class="divider-vertical"></li>\n <li id="nodes" class="dropdown">\n <a class="dropdown-toggle" id="drop5" style="padding-top: 10px;" role="button" data-toggle="dropdown" href="#">Nodes <b class="caret"></b></a>\n <ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop5">\n <li class=\'divider\'></li>\n '),n=0,i=(a=this.model.nodes().models).length;n<i;n++)o=a[n],u.push('\n <li role="presentation" style="font-size: 15px">\n <a role="menuitem" tabindex="-1" href="'),u.push(l(o.get("routeURL"))),u.push('">'),u.push(l(o.get("hostname"))),u.push("</a>\n </li>\n <li class='divider'></li>\n ");u.push('\n </ul>\n </li>\n\n <li class="divider-vertical"></li>\n </ul>\n\n <ul class="nav pull-right">\n <li class="divider-vertical"></li>\n <li id="auto-refresh-drop-down" class="dropdown">\n <a class="dropdown-toggle" id="auto-refresh-drop" style="padding-top: 10px;" role="button" data-toggle="dropdown" href="#">Auto Refresh </a>\n <ul id="auto-refresh-menu" class="dropdown-menu" role="menu" aria-labelledby="auto-refresh-drop">\n <li id="auto-refresh-value-30" role="presentation" style="font-size: 15px">\n <a class="auto-refresh-button" value="30" role="menuitem" tabindex="-1" href="">30 Seconds</a>\n </li>\n <li class=\'divider\'></li>\n <li id="auto-refresh-value-60" role="presentation" style="font-size: 15px">\n <a class="auto-refresh-button" value="60" role="menuitem" tabindex="-1" href="">60 Seconds</a>\n </li>\n <li class=\'divider\'></li>\n <li id="auto-refresh-value-300" role="presentation" style="font-size: 15px">\n <a class="auto-refresh-button" value="300" role="menuitem" tabindex="-1" href="">5 Minutes</a>\n </li>\n <li class=\'divider\'></li>\n <li id="auto-refresh-value-3600" role="presentation" style="font-size: 15px">\n <a class="auto-refresh-button" value="3600" role="menuitem" tabindex="-1" href="">1 Hour</a>\n </li>\n </ul>\n </li>\n <li class="divider-vertical"></li>\n </ul>\n\n \n </div><!-- /.nav-collapse -->\n </div>\n </div><!-- /navbar-inner -->\n</div><!-- /navbar -->\n')}).call(this)}.call(t),t.safe=e,t.escape=n,u.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST.node=function(t){t||(t={});var s=[],a=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){var t,e,n,r,i,o;for(s.push("<h3 align=center>"),s.push(a(this.model.get("hostname"))),s.push('</h3>\n\n<ul class="pager">\n '),this.prevNode?(s.push('\n <li class="previous nosel"><a class="nextPrevButton" href="'),s.push(a(null!=(r=this.prevNode)?r.get("routeURL"):void 0)),s.push('">&larr; Prev</a></li>\n ')):s.push('\n <li class="previous disabled nosel"><a>&larr; Prev</a></li>\n '),s.push("\n \n "),e=0,n=(i=this.model.get("clusters")).length;e<n;e++)t=i[e],s.push('\n <li class="nosel"><a class="nextPrevButton" href="'),s.push(a(t.get("routeURL"))),s.push('">'),s.push(a(t.get("name"))),s.push("</a></li>\n ");s.push("\n\n "),this.nextNode?(s.push('\n <li class="next nosel"><a class="nextPrevButton" href="'),s.push(a(null!=(o=this.nextNode)?o.get("routeURL"):void 0)),s.push('">Next &rarr;</a></li>\n ')):s.push('\n <li class="next disabled nosel"><a>Next &rarr;</a></li>\n '),s.push('\n </li>\n</ul>\n</br>\n<div class="chartsBox">\n <div class="row">\n <div class="span5">\n <div id="chart1" style="padding-left: 26%"></div>\n </div>\n <div class="span5">\n <div id="chart2" style="padding-left: 40%"></div>\n </div>\n </div>\n</div>\n\n<br/>\n<div class="row-fluid">\n <div class="span6">\n <h4> Cluster <-> Node Stats </h4>\n <table class="table table-striped table-bordered">\n <tr><th>In-Queue</th><td> '),s.push(a(this.model.get("in_queue"))),s.push("</td></tr>\n <tr><th>In-Queue Memory Size</th><td> "),s.push(a(humanize.filesize(this.model.get("in_queue_bytes")))),s.push("</td></tr>\n <tr><th>Out-Queue</th><td> "),s.push(a(this.model.get("out_queue"))),s.push("</td></tr>\n <tr><th>Out-Queue Memory Size</th><td> "),s.push(a(humanize.filesize(this.model.get("out_queue_bytes")))),s.push("</td></tr>\n <tr><th>Requests</th><td> "),s.push(a(this.model.get("requests"))),s.push("</td></tr>\n <tr><th>Requests Memory Size</th><td> "),s.push(a(humanize.filesize(this.model.get("request_bytes")))),s.push("</td></tr>\n <tr><th>Responses</th><td> "),s.push(a(this.model.get("responses"))),s.push("</td></tr>\n <tr><th>Responses Memory Size</th><td> "),s.push(a(humanize.filesize(this.model.get("response_bytes")))),s.push("</td></tr>\n <tr><th>Server Connections</th><td> "),s.push(a(this.model.get("server_connections"))),s.push("</td></tr>\n <tr><th>Server EOF</th><td> "),s.push(a(this.model.get("server_eof"))),s.push("</td></tr>\n <tr><th>Server Error</th><td> "),s.push(a(this.model.get("server_err"))),s.push("</td></tr>\n <tr><th>Server Timedout</th><td> "),s.push(a(this.model.get("server_timedout"))),s.push('</td></tr>\n </table>\n </div>\n\n <div class="span6">\n <h4>Node Stats</h3>\n <table class="table table-striped table-bordered">\n <tr><th>Hits</th><td> '),s.push(a(humanize.numberFormat(this.model.get("info").hits,0))),s.push("</td></tr>\n <tr><th>Misses</th><td> "),s.push(a(humanize.numberFormat(this.model.get("info").misses,0))),s.push("</td></tr>\n <tr><th>Hit Ratio</th><td> "),s.push(a(humanize.numberFormat(this.model.get("info").hit_ratio,2))),s.push("</td></tr>\n <tr><th>Max Memory</th><td> "),s.push(a(humanize.filesize(this.model.get("info").max_memory))),s.push("</td></tr>\n <tr><th>Used Memory</th><td> "),s.push(a(humanize.filesize(this.model.get("info").used_memory))),s.push("</td></tr>\n <tr><th>Used Memory RSS</th><td> "),s.push(a(humanize.filesize(this.model.get("info").used_memory_rss))),s.push("</td></tr>\n <tr><th>Connections</th><td> "),s.push(a(this.model.get("info").connections)),s.push("</td></tr>\n <tr><th>Keys</th><td> "),s.push(a(humanize.numberFormat(this.model.get("info").keys,0))),s.push("</td></tr>\n <tr><th>Evicted Keys</th><td> "),s.push(a(humanize.numberFormat(this.model.get("info").evicted_keys,0))),s.push("</td></tr>\n <tr><th>Expired Keys</th><td> "),s.push(a(humanize.numberFormat(this.model.get("info").expired_keys,0))),s.push("</td></tr>\n <tr><th>Fragmentation</th><td> "),s.push(a(humanize.numberFormat(this.model.get("info").fragmentation,2))),s.push("</td></tr>\n <tr><th>&nbsp;</th><td> &nbsp;</td></tr>\n </table>\n </div>\n\n</div>\n\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,s.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST.overview=function(t){t||(t={});var u=[],l=function(t){return t&&t.ecoSafe?t:void 0!==t&&null!=t?n(t):""},e=t.safe,n=t.escape;return t.safe=function(t){if(t&&t.ecoSafe)return t;void 0!==t&&null!=t||(t="");var e=new String(t);return e.ecoSafe=!0,e},n||(n=t.escape=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}),function(){(function(){var t,e,n,r,i,o,s,a;for(u.push('<h3> Overview </h3>\n<br/>\n<table class="table table-striped table-bordered">\n <tbody>\n <tr><th>Hostname</th><td>'),u.push(l(this.model.get("source"))),u.push("</td></tr>\n <tr><th>Service</th><td>Nutcracker Ver. "),u.push(l(this.model.get("version"))),u.push("</td></tr>\n <tr><th>Uptime</th><td>"),u.push(l(humanize.relativeTime((new Date-1e3*this.model.get("uptime"))/1e3))),u.push("</td></tr>\n <tr><th>Server Connections</th><td>"),u.push(l(this.model.get("serverConnections"))),u.push("</td></tr>\n <tr><th>Client Connections</th><td>"),u.push(l(this.model.get("clientConnections"))),u.push("</td></tr>\n\n <tr>\n <th>Total Clusters</th>\n <td>\n "),e=0,r=(s=this.model.get("clusters").models).length;e<r;e++)t=s[e],u.push('\n <a href="'),u.push(l(t.get("routeURL"))),u.push('">'),u.push(l(t.get("name"))),u.push("</a><br/>\n ");for(u.push("\n </td>\n </tr>\n\n <tr>\n <th>Total Nodes</th>\n <td>\n "),n=0,i=(a=this.model.nodes().models).length;n<i;n++)o=a[n],u.push('\n <a href="'),u.push(l(o.get("routeURL"))),u.push('">'),u.push(l(o.get("hostname"))),u.push("</a><br/>\n ");u.push("\n </td>\n </tr>\n \n\n </tbody>\n</table>\n\n")}).call(this)}.call(t),t.safe=e,t.escape=n,u.join("")}}.call(this),function(){window.Nutcracker={Models:{},Collections:{},Views:{},Routers:{},Utils:{},reload:function(){return""===window.location.hash?Nutcracker.router.navigate("/",{trigger:!0}):Nutcracker.router.navigate(window.location.hash,{trigger:!0})},initialize:function(){var t;return t=new Nutcracker.Models.Overview($("#container").data("clusters")),Nutcracker.overview=t,Nutcracker.screen=new Nutcracker.Utils.RegionManager,Nutcracker.screen.navbar(new Nutcracker.Views.Navbar({model:t})),Nutcracker.screen.footer(new Nutcracker.Views.Footer({model:t})),Nutcracker.router=new Nutcracker.Routers.Overview,Backbone.history.start()}},$(document).ready(function(){return Nutcracker.initialize()})}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Collections.Clusters=function(t){function e(){return this.initialize=n(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.initialize=function(){return this.model=Nutcracker.Models.Cluster},e}(Backbone.Collection)}.call(this),function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Collections.Nodes=function(t){function n(){return this.usedMemory=e(this.usedMemory,this),this.maxMemory=e(this.maxMemory,this),this.freeMemory=e(this.freeMemory,this),this.serverConnections=e(this.serverConnections,this),this.add=e(this.add,this),n.__super__.constructor.apply(this,arguments)}return r(n,t),n.prototype.initialize=function(){return this.model=Nutcracker.Models.Node},n.prototype.add=function(e){return this.any(function(t){return t.get("server_url")===e[0].server_url})||n.__super__.add.apply(this,arguments)},n.prototype.serverConnections=function(){return _(this.pluck("server_connections")).sum()},n.prototype.freeMemory=function(){return _(this.pluck("freeMemory")).sum()},n.prototype.maxMemory=function(){return _(this.pluck("maxMemory")).sum()},n.prototype.usedMemory=function(){return _(this.pluck("usedMemory")).sum()},n}(Backbone.Collection)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Models.Cluster=function(t){function e(){return this.set=n(this.set,this),e.__super__.constructor.apply(this,arguments)}return r(e,t),e.routeURL=function(t){return"#/clusters/"+t},e.prototype.initialize=function(){return this.set("routeURL",this.constructor.routeURL(this.get("name")))},e.prototype.set=function(t,e){var n,r;return null==t.nodes||t.nodes instanceof Nutcracker.Collections.Nodes||(t.nodes=new Nutcracker.Collections.Nodes(t.nodes)),null!=(n=t.nodes)&&n.map((r=this,function(t){return t.get("clusters").push(r),t.set("clusters",_(t.get("clusters")).uniq())})),Backbone.Model.prototype.set.call(this,t,e)},e}(Backbone.Model)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Models.Node=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.routeURL=function(t){return"#/nodes/"+t.split(":").slice(0,2).join(":")},e.prototype.initialize=function(){var t;return this.set("clusters",[]),this.set("hostname",null!=(t=this.get("server_url"))?t.replace(/redis:\/\//,""):void 0),this.set("maxMemory",this.get("info").max_memory),this.set("usedMemory",this.get("info").used_memory),this.set("freeMemory",this.get("info").max_memory-this.get("info").used_memory),this.set("usedMemoryRss",this.get("info").used_memory_rss),this.set("fragmentation",this.get("info").fragmentation),this.get("freeMemory")<0&&this.set("freeMemory",0),this.set("hits",this.get("info").hits),this.set("misses",this.get("info").misses),0===this.get("maxMemory")&&this.set("maxMemory",this.get("usedMemory")),0===this.get("hits")&&this.set("hits",1),this.set("routeURL",this.constructor.routeURL(this.get("hostname")))},e}(Backbone.Model)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Models.Overview=function(t){function e(){return this.postInit=n(this.postInit,this),this.clusters=n(this.clusters,this),this.fetch=n(this.fetch,this),this.nodes=n(this.nodes,this),this.initialize=n(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.url="/overview.json",e.prototype.initialize=function(){return this.postInit()},e.prototype.nodes=function(){return new Backbone.Collection(_(this.get("clusters").pluck("nodes")).chain().pluck("models").flatten().uniq(!1,function(t){return t.get("hostname")}).value())},e.prototype.fetch=function(){return e.__super__.fetch.apply(this,arguments)&&this.postInit(),Nutcracker.reload()},e.prototype.clusters=function(){return this.get("clusters")},e.prototype.postInit=function(){var t,e,n,r,i;for(t=_(this.get("clusters").pluck("client_connections")).sum(),e=i=0,n=(r=this.get("clusters").pluck("nodes")).length;e<n;e++)i+=r[e].serverConnections();return this.set("serverConnections",i),this.set("clientConnections",t),this.set("initializeTime",new Date)},e.prototype.set=function(t,e){return null==t.clusters||t.clusters instanceof Nutcracker.Collections.Clusters||(t.clusters=new Nutcracker.Collections.Clusters(t.clusters)),Backbone.Model.prototype.set.call(this,t,e)},e}(Backbone.Model)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Routers.Overview=function(t){function e(){return this._show=n(this._show,this),this.showConfig=n(this.showConfig,this),this.showNode=n(this.showNode,this),this.showCluster=n(this.showCluster,this),this.showOverview=n(this.showOverview,this),e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.routes={"":"showOverview",config:"showConfig","clusters/:cluster":"showCluster","nodes/:node":"showNode"},e.prototype.initialize=function(){return this.showOverview()},e.prototype.showOverview=function(){return this._show(Nutcracker.Views.Overview)},e.prototype.showCluster=function(t){var e,n;return n=(e=Nutcracker.overview.clusters()).findWhere({name:t}),this._show(Nutcracker.Views.Cluster,{model:n,collection:e})},e.prototype.showNode=function(t){var e,n;return n=(e=Nutcracker.overview.nodes()).findWhere({hostname:t}),this._show(Nutcracker.Views.Node,{model:n,collection:e})},e.prototype.showConfig=function(){return this._show(Nutcracker.Views.Config)},e.prototype._show=function(t,e){return null==e&&(e={model:Nutcracker.overview}),Nutcracker.screen.body(new t(e))},e}(Backbone.Router)}.call(this),function(){var i=function(t,e){return function(){return t.apply(e,arguments)}};Nutcracker.Utils.RegionManager=function(){function t(t,e,n,r){this.navbarID=null!=t?t:"#navbar",this.bodyID=null!=e?e:"#container",this.footerID=null!=n?n:"#footer",this.current=null!=r?r:{},this._render=i(this._render,this),this.footer=i(this.footer,this),this.body=i(this.body,this),this.navbar=i(this.navbar,this)}return t.prototype.navbar=function(t){return this._render(this.navbarID,t)},t.prototype.body=function(t){return this._render(this.bodyID,t)},t.prototype.footer=function(t){return this._render(this.footerID,t)},t.prototype._render=function(t,e){var n;return $(t).html(e.render().el),null!=(n=this.current[t])&&n.remove,this.current[t]=e},t}()}.call(this),function(){_.prototype.sum=function(){return _.reduce(this._wrapped,function(t,e){return t+e},0)},_.prototype.average=function(){return this.sum()/parseFloat(this._wrapped.length)}}.call(this),function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},n=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Backbone.GoogleChart=function(t){function i(){return this.listen=e(this.listen,this),this.render=e(this.render,this),this.id=e(this.id,this),this.onGoogleLoad=e(this.onGoogleLoad,this),i.__super__.constructor.apply(this,arguments)}return n(i,t),i.prototype.initialize=function(t){var i,e,o;return i=_.extend({},t),["el","id","attributes","className","tagName"].map(function(t){return delete i[t]}),google.load("visualization","1",{packages:["corechart"],callback:(e=this,function(){return e.onGoogleLoad("loaded")})}),this.onGoogleLoad((o=this,function(){var n,r;return o.google=google.visualization,i.dataTable instanceof Array&&(i.dataTable=o.google.arrayToDataTable(i.dataTable)),(i.beforeDraw||function(){})(o,i),(n=i.formatter)&&function(){r=[];for(var t=0,e=i.dataTable.getNumberOfRows()-1;0<=e?t<=e:e<=t;0<=e?t++:t--)r.push(t);return r}.apply(this).map(function(e){return n.columns.map(function(t){return i.dataTable.setFormattedValue(e,t,n.callback(i.dataTable.getValue(e,t)))})}),o.wrapper=new o.google.ChartWrapper(i),["ready","select","error"].map(o.listen)}))},i.prototype.onGoogleLoad=function(t){return"loaded"===t?(this.googleLoaded=!0,_(this.onGoogleLoadItems).map(function(t){return t()})):this.googleLoaded?t():(this.onGoogleLoadItems||(this.onGoogleLoadItems=[])).push(t)},i.watch=function(t,e){var n,r;if((i._list||(i._list={}))[t]=e,!i._watching)return i._watching=!0,r=10,(n=function(){return _(i._list).map(function(t,e){if($(e)[0])return t()||delete i._list[e]}),_(i._list).isEmpty()?i._watching=!1:setTimeout(n,r+=10)})()},i.prototype.id=function(){var t;return(null!=(t=this.el)?t.id:void 0)||this.randomID()},i.prototype.render=function(){var t;return this.onGoogleLoad((t=this,function(){return t.constructor.watch("#"+t.el.id,function(){return t.wrapper.draw(t.el.id)})})),this},i.prototype.listen=function(t){return this.google.events.addListener(this.wrapper,t,(e=this,function(){return e.trigger(t,e.wrapper.getChart())}));var e},i.prototype.randomID=function(){return _.uniqueId("gc_")},i}(Backbone.View)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Views.Cluster=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.template=JST.cluster,e.prototype.render=function(){var t,e,n,r;return this.curIndex=this.collection.indexOf(this.model),this.nextCluster=this.collection.at(this.curIndex+1),this.prevCluster=this.collection.at(this.curIndex-1),this.$el.html(this.template({model:this.model,nextCluster:this.nextCluster,prevCluster:this.prevCluster})),n={is3D:!0,titleTextStyle:{fontSize:17.5,color:"#333333"},width:300,height:300,sliceVisibilityThreshold:0,chartArea:{width:"100%",height:"80%"},legend:{position:"bottom"}},e=[["Node","Node"]],this.model.get("nodes").map(function(t){return e.push([t.get("hostname"),t.get("maxMemory")])}),(t=new Backbone.GoogleChart({formatter:{callback:humanize.filesize,columns:[1]},chartType:"PieChart",options:n,dataTable:e})).on("select",(r=this,function(t){return Nutcracker.router.navigate(r.model.get("nodes").at(t.getSelection()[0].row).get("routeURL"),{trigger:!0})})),this.$el.find("#chart2").html(t.render().el),this.$el.find("#chart1").html(new Backbone.GoogleChart({formatter:{callback:humanize.filesize,columns:[1]},chartType:"PieChart",options:n,dataTable:[["Memory","Memory"],["Free",this.model.get("nodes").freeMemory()],["Used",this.model.get("nodes").usedMemory()]]}).render().el),this},e}(Backbone.View)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Views.Config=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.template=JST.config,e.prototype.render=function(){return this.$el.html(this.template({model:this.model})),this},e}(Backbone.View)}.call(this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Views.Footer=function(t){function e(){return this.render=n(this.render,this),e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.className="container navbar navbar-fixed-bottom navbar-inverse",e.prototype.template=JST.footer,e.prototype.render=function(){return this.$el.html(this.template({model:this.model})),this.$el.find("#lastUpdate").html("Last updated: "+humanize.relativeTime(this.model.get("initializeTime")/1e3)),setTimeout(this.render,1e3),this},e}(Backbone.View)}.call(
30
- this),function(){var n=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Views.Navbar=function(t){function e(){return this.render=n(this.render,this),this.activate=n(this.activate,this),this.autoRefresh=n(this.autoRefresh,this),this.resetButtons=n(this.resetButtons,this),this.initialize=n(this.initialize,this),e.__super__.constructor.apply(this,arguments)}return r(e,t),e.prototype.className="navbar navbar-inverse navbar-fixed-top",e.prototype.template=JST.navbar,e.prototype.events={"click .auto-refresh-button":"autoRefresh"},e.prototype.initialize=function(){return Backbone.history.bind("all",this.resetButtons),this.listenTo(this.model,"change",this.render),this.autoRefreshInterval=null},e.prototype.resetButtons=function(){var t;return this.$el.find("li").removeClass("active"),this.autoRefreshInterval?(this.$("#auto-refresh-drop-down").addClass("active"),this.$("#auto-refresh-value-"+this.autoRefreshInterval).addClass("active")):(this.$("#auto-refresh-drop-down").removeClass("active"),this.$("#auto-refresh-drop-down").find(".active").removeClass("active")),t=window.location.href,/#\/config$/.test(t)?this.activate("#config"):/#\/clusters\//.test(t)?this.activate("#clusters"):/#\/nodes\//.test(t)?this.activate("#nodes"):this.activate("#overview")},e.prototype.autoRefresh=function(t){var e,n;return e=parseInt($(t.currentTarget).attr("value")),this.autoRefreshTimer&&clearInterval(this.autoRefreshTimer),e===this.autoRefreshInterval?this.autoRefreshInterval=null:(this.autoRefreshInterval=e,this.autoRefreshTimer=setInterval((n=this,function(){return n.model.fetch()}),1e3*this.autoRefreshInterval)),this.resetButtons(),t.preventDefault()},e.prototype.activate=function(t){return this.$(t).addClass("active")},e.prototype.render=function(){return this.$el.html(this.template({model:this.model})),this.resetButtons(),this},e}(Backbone.View)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Views.Node=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.template=JST.node,e.prototype.render=function(){var t;return this.curIndex=this.collection.indexOf(this.model),this.nextNode=this.collection.at(this.curIndex+1),this.prevNode=this.collection.at(this.curIndex-1),t={is3D:!0,titleTextStyle:{fontSize:17.5,color:"#333333"},titleTextStyle:{fontSize:17.5,color:"#333333"},width:300,height:300,sliceVisibilityThreshold:0,chartArea:{width:"100%",height:"80%"},legend:{position:"bottom"}},this.$el.html(this.template({model:this.model,nextNode:this.nextNode,prevNode:this.prevNode})),this.$el.find("#chart1").append(new Backbone.GoogleChart({chartType:"PieChart",formatter:{callback:humanize.filesize,columns:[1]},options:_({title:"Memory"}).extend(t),dataTable:[["Memory","Memory"],["Free",this.model.get("freeMemory")],["Used",this.model.get("usedMemory")]]}).render().el),this.$el.find("#chart2").append(new Backbone.GoogleChart({formatter:{callback:humanize.numberFormat,columns:[1]},chartType:"PieChart",options:_({title:"Hits"}).extend(t),dataTable:[["Memory","Memory"],["Hits",this.model.get("hits")],["Misses",this.model.get("misses")]]}).render().el),this},e}(Backbone.View)}.call(this),function(){var n=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;Nutcracker.Views.Overview=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return n(e,t),e.prototype.template=JST.overview,e.prototype.render=function(){return this.$el.html(this.template({model:this.model})),this},e}(Backbone.View)}.call(this);