/gi,g=/^(?:body|html)$/i,y=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],x=u.createElement("table"),w=u.createElement("tr"),E={tr:u.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:w,th:w,"*":u.createElement("div")},O=/complete|loaded|interactive/,S=/^[\w-]*$/,T={},C=T.toString,j={},N=u.createElement("div"),k={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},P=Array.isArray||function(t){return t instanceof Array};function z(t){return null==t?String(t):T[C.call(t)]||"object"}function A(t){return"function"==z(t)}function D(t){return null!=t&&t==t.window}function I(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function L(t){return"object"==z(t)}function M(t){return L(t)&&!D(t)&&Object.getPrototypeOf(t)==Object.prototype}function R(t){var e=!!t&&"length"in t&&t.length,n=$.type(t);return"function"!=n&&!D(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function F(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function B(t){return t in f?f[t]:f[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function Z(t,e){return"number"!=typeof e||p[F(t)]?e:e+"px"}function q(t){return"children"in t?l.call(t.children):$.map(t.childNodes,(function(t){if(1==t.nodeType)return t}))}function W(t,e){var n,i=t?t.length:0;for(n=0;n<\/$2>")),n===e&&(n=d.test(t)&&RegExp.$1),n in E||(n="*"),(s=E[n]).innerHTML=""+t,r=$.each(l.call(s.childNodes),(function(){s.removeChild(this)}))),M(i)&&(o=$(r),$.each(i,(function(t,e){b.indexOf(t)>-1?o[t](e):o.attr(t,e)}))),r},j.Z=function(t,e){return new W(t,e)},j.isZ=function(t){return t instanceof j.Z},j.init=function(t,n){var i,r;if(!t)return j.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&d.test(t))i=j.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return $(n).find(t);i=j.qsa(u,t)}else{if(A(t))return $(u).ready(t);if(j.isZ(t))return t;if(P(t))r=t,i=c.call(r,(function(t){return null!=t}));else if(L(t))i=[t],t=null;else if(d.test(t))i=j.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return $(n).find(t);i=j.qsa(u,t)}}return j.Z(i,t)},($=function(t,e){return j.init(t,e)}).extend=function(t){var e,n=l.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach((function(n){H(t,n,e)})),t},j.qsa=function(t,e){var n,i="#"==e[0],r=!i&&"."==e[0],o=i||r?e.slice(1):e,s=S.test(o);return t.getElementById&&s&&i?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:l.call(s&&!i&&t.getElementsByClassName?r?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},$.contains=u.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},$.type=z,$.isFunction=A,$.isWindow=D,$.isArray=P,$.isPlainObject=M,$.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},$.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},$.inArray=function(t,e,n){return s.indexOf.call(e,t,n)},$.camelCase=r,$.trim=function(t){return null==t?"":String.prototype.trim.call(t)},$.uuid=0,$.support={},$.expr={},$.noop=function(){},$.map=function(t,e){var n,i,r,o,s=[];if(R(t))for(i=0;i0?$.fn.concat.apply([],o):o},$.each=function(t,e){var n,i;if(R(t)){for(n=0;n=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(t){return s.every.call(this,(function(e,n){return!1!==t.call(e,n,e)})),this},filter:function(t){return A(t)?this.not(this.not(t)):$(c.call(this,(function(e){return j.matches(e,t)})))},add:function(t,e){return $(o(this.concat($(t,e))))},is:function(t){return this.length>0&&j.matches(this[0],t)},not:function(t){var n=[];if(A(t)&&t.call!==e)this.each((function(e){t.call(this,e)||n.push(this)}));else{var i="string"==typeof t?this.filter(t):R(t)&&A(t.item)?l.call(t):$(t);this.forEach((function(t){i.indexOf(t)<0&&n.push(t)}))}return $(n)},has:function(t){return this.filter((function(){return L(t)?$.contains(this,t):$(this).find(t).size()}))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!L(t)?t:$(t)},last:function(){var t=this[this.length-1];return t&&!L(t)?t:$(t)},find:function(t){var e=this;return t?"object"==typeof t?$(t).filter((function(){var t=this;return s.some.call(e,(function(e){return $.contains(e,t)}))})):1==this.length?$(j.qsa(this[0],t)):this.map((function(){return j.qsa(this,t)})):$()},closest:function(t,e){var n=[],i="object"==typeof t&&$(t);return this.each((function(r,o){for(;o&&!(i?i.indexOf(o)>=0:j.matches(o,t));)o=o!==e&&!I(o)&&o.parentNode;o&&n.indexOf(o)<0&&n.push(o)})),$(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=$.map(n,(function(t){if((t=t.parentNode)&&!I(t)&&e.indexOf(t)<0)return e.push(t),t}));return X(e,t)},parent:function(t){return X(o(this.pluck("parentNode")),t)},children:function(t){return X(this.map((function(){return q(this)})),t)},contents:function(){return this.map((function(){return this.contentDocument||l.call(this.childNodes)}))},siblings:function(t){return X(this.map((function(t,e){return c.call(q(e.parentNode),(function(t){return t!==e}))})),t)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(t){return $.map(this,(function(e){return e[t]}))},show:function(){return this.each((function(){var t,e,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(t=this.nodeName,h[t]||(e=u.createElement(t),u.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),h[t]=n),h[t]))}))},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=A(t);if(this[0]&&!e)var n=$(t).get(0),i=n.parentNode||this.length>1;return this.each((function(r){$(this).wrapAll(e?t.call(this,r):i?n.cloneNode(!0):n)}))},wrapAll:function(t){if(this[0]){var e;for($(this[0]).before(t=$(t));(e=t.children()).length;)t=e.first();$(t).append(this)}return this},wrapInner:function(t){var e=A(t);return this.each((function(n){var i=$(this),r=i.contents(),o=e?t.call(this,n):t;r.length?r.wrapAll(o):i.append(o)}))},unwrap:function(){return this.parent().each((function(){$(this).replaceWith($(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return this.each((function(){var n=$(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()}))},prev:function(t){return $(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return $(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each((function(e){var n=this.innerHTML;$(this).empty().append(G(this,t,e,n))})):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each((function(e){var n=G(this,t,e,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(t,i){var r;return"string"!=typeof t||1 in arguments?this.each((function(e){if(1===this.nodeType)if(L(t))for(n in t)_(this,n,t[n]);else _(this,t,G(this,i,e,this.getAttribute(t)))})):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(t))?r:e},removeAttr:function(t){return this.each((function(){1===this.nodeType&&t.split(" ").forEach((function(t){_(this,t)}),this)}))},prop:function(t,e){return t=k[t]||t,1 in arguments?this.each((function(n){this[t]=G(this,e,n,this[t])})):this[0]&&this[0][t]},removeProp:function(t){return t=k[t]||t,this.each((function(){delete this[t]}))},data:function(t,n){var i="data-"+t.replace(y,"-$1").toLowerCase(),r=1 in arguments?this.attr(i,n):this.attr(i);return null!==r?Y(r):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each((function(e){this.value=G(this,t,e,this.value)}))):this[0]&&(this[0].multiple?$(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each((function(t){var n=$(this),i=G(this,e,t,n.offset()),r=n.offsetParent().offset(),o={top:i.top-r.top,left:i.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)}));if(!this.length)return null;if(u.documentElement!==this[0]&&!$.contains(u.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var i=this[0];if("string"==typeof t){if(!i)return;return i.style[r(t)]||getComputedStyle(i,"").getPropertyValue(t)}if(P(t)){if(!i)return;var o={},s=getComputedStyle(i,"");return $.each(t,(function(t,e){o[e]=i.style[r(e)]||s.getPropertyValue(e)})),o}}var a="";if("string"==z(t))e||0===e?a=F(t)+":"+Z(t,e):this.each((function(){this.style.removeProperty(F(t))}));else for(n in t)t[n]||0===t[n]?a+=F(n)+":"+Z(n,t[n])+";":this.each((function(){this.style.removeProperty(F(n))}));return this.each((function(){this.style.cssText+=";"+a}))},index:function(t){return t?this.indexOf($(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&s.some.call(this,(function(t){return this.test(V(t))}),B(t))},addClass:function(t){return t?this.each((function(e){if("className"in this){i=[];var n=V(this);G(this,t,e,n).split(/\s+/g).forEach((function(t){$(this).hasClass(t)||i.push(t)}),this),i.length&&V(this,n+(n?" ":"")+i.join(" "))}})):this},removeClass:function(t){return this.each((function(n){if("className"in this){if(t===e)return V(this,"");i=V(this),G(this,t,n,i).split(/\s+/g).forEach((function(t){i=i.replace(B(t)," ")})),V(this,i.trim())}}))},toggleClass:function(t,n){return t?this.each((function(i){var r=$(this);G(this,t,i,V(this)).split(/\s+/g).forEach((function(t){(n===e?!r.hasClass(t):n)?r.addClass(t):r.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=g.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat($(t).css("margin-top"))||0,n.left-=parseFloat($(t).css("margin-left"))||0,i.top+=parseFloat($(e[0]).css("border-top-width"))||0,i.left+=parseFloat($(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||u.body;t&&!g.test(t.nodeName)&&"static"==$(t).css("position");)t=t.offsetParent;return t}))}},$.fn.detach=$.fn.remove,["width","height"].forEach((function(t){var n=t.replace(/./,(function(t){return t[0].toUpperCase()}));$.fn[t]=function(i){var r,o=this[0];return i===e?D(o)?o["inner"+n]:I(o)?o.documentElement["scroll"+n]:(r=this.offset())&&r[t]:this.each((function(e){(o=$(this)).css(t,G(this,i,e,o[t]()))}))}})),["after","prepend","before","append"].forEach((function(n,i){var r=i%2;$.fn[n]=function(){var n,o,s=$.map(arguments,(function(t){var i=[];return"array"==(n=z(t))?(t.forEach((function(t){return t.nodeType!==e?i.push(t):$.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(j.fragment(t)))})),i):"object"==n||null==t?t:j.fragment(t)})),a=this.length>1;return s.length<1?this:this.each((function(e,n){o=r?n:n.parentNode,n=0==i?n.nextSibling:1==i?n.firstChild:2==i?n:null;var c=$.contains(u.documentElement,o);s.forEach((function(e){if(a)e=e.cloneNode(!0);else if(!o)return $(e).remove();o.insertBefore(e,n),c&&U(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}}))}))}))},$.fn[r?n+"To":"insert"+(i?"Before":"After")]=function(t){return $(t)[n](this),this}})),j.Z.prototype=W.prototype=$.fn,j.uniq=o,j.deserializeValue=Y,$.zepto=j,$}();return t.Zepto=e,void 0===t.$&&(t.$=e),function($){var e,n=1,i=Array.prototype.slice,r=$.isFunction,o=function(t){return"string"==typeof t},s={},a={},c="onfocusin"in t,l={focus:"focusin",blur:"focusout"},u={mouseenter:"mouseover",mouseleave:"mouseout"};function h(t){return t._zid||(t._zid=n++)}function f(t,e,n,i){if((e=p(e)).ns)var r=(o=e.ns,new RegExp("(?:^| )"+o.replace(" "," .* ?")+"(?: |$)"));var o;return(s[h(t)]||[]).filter((function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||r.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!i||t.sel==i)}))}function p(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function d(t,e){return t.del&&!c&&t.e in l||!!e}function m(t){return u[t]||c&&l[t]||t}function v(t,n,i,r,o,a,c){var l=h(t),f=s[l]||(s[l]=[]);n.split(/\s/).forEach((function(n){if("ready"==n)return $(document).ready(i);var s=p(n);s.fn=i,s.sel=o,s.e in u&&(i=function(t){var e=t.relatedTarget;if(!e||e!==this&&!$.contains(this,e))return s.fn.apply(this,arguments)}),s.del=a;var l=a||i;s.proxy=function(n){if(!(n=E(n)).isImmediatePropagationStopped()){n.data=r;var i=l.apply(t,n._args==e?[n]:[n].concat(n._args));return!1===i&&(n.preventDefault(),n.stopPropagation()),i}},s.i=f.length,f.push(s),"addEventListener"in t&&t.addEventListener(m(s.e),s.proxy,d(s,c))}))}function g(t,e,n,i,r){var o=h(t);(e||"").split(/\s/).forEach((function(e){f(t,e,n,i).forEach((function(e){delete s[o][e.i],"removeEventListener"in t&&t.removeEventListener(m(e.e),e.proxy,d(e,r))}))}))}a.click=a.mousedown=a.mouseup=a.mousemove="MouseEvents",$.event={add:v,remove:g},$.proxy=function(t,e){var n=2 in arguments&&i.call(arguments,2);if(r(t)){var s=function(){return t.apply(e,n?n.concat(i.call(arguments)):arguments)};return s._zid=h(t),s}if(o(e))return n?(n.unshift(t[e],t),$.proxy.apply(null,n)):$.proxy(t[e],t);throw new TypeError("expected function")},$.fn.bind=function(t,e,n){return this.on(t,e,n)},$.fn.unbind=function(t,e){return this.off(t,e)},$.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var y=function(){return!0},b=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,w={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function E(t,n){return!n&&t.isDefaultPrevented||(n||(n=t),$.each(w,(function(e,i){var r=n[e];t[e]=function(){return this[i]=y,r&&r.apply(n,arguments)},t[i]=b})),t.timeStamp||(t.timeStamp=Date.now()),(n.defaultPrevented!==e?n.defaultPrevented:"returnValue"in n?!1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=y)),t}function O(t){var n,i={originalEvent:t};for(n in t)x.test(n)||t[n]===e||(i[n]=t[n]);return E(i,t)}$.fn.delegate=function(t,e,n){return this.on(e,t,n)},$.fn.undelegate=function(t,e,n){return this.off(e,t,n)},$.fn.live=function(t,e){return $(document.body).delegate(this.selector,t,e),this},$.fn.die=function(t,e){return $(document.body).undelegate(this.selector,t,e),this},$.fn.on=function(t,n,s,a,c){var l,u,h=this;return t&&!o(t)?($.each(t,(function(t,e){h.on(t,n,s,e,c)})),h):(o(n)||r(a)||!1===a||(a=s,s=n,n=e),a!==e&&!1!==s||(a=s,s=e),!1===a&&(a=b),h.each((function(e,r){c&&(l=function(t){return g(r,t.type,a),a.apply(this,arguments)}),n&&(u=function(t){var e,o=$(t.target).closest(n,r).get(0);if(o&&o!==r)return e=$.extend(O(t),{currentTarget:o,liveFired:r}),(l||a).apply(o,[e].concat(i.call(arguments,1)))}),v(r,t,a,s,n,u||l)})))},$.fn.off=function(t,n,i){var s=this;return t&&!o(t)?($.each(t,(function(t,e){s.off(t,n,e)})),s):(o(n)||r(i)||!1===i||(i=n,n=e),!1===i&&(i=b),s.each((function(){g(this,t,i,n)})))},$.fn.trigger=function(t,e){return(t=o(t)||$.isPlainObject(t)?$.Event(t):E(t))._args=e,this.each((function(){t.type in l&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):$(this).triggerHandler(t,e)}))},$.fn.triggerHandler=function(t,e){var n,i;return this.each((function(r,s){(n=O(o(t)?$.Event(t):t))._args=e,n.target=s,$.each(f(s,t.type||t),(function(t,e){if(i=e.proxy(n),n.isImmediatePropagationStopped())return!1}))})),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(t){$.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}})),$.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(a[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),E(n)}}(e),function($){var e,n,i=+new Date,r=t.document,o=/