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