text: var Zepto=function(){function c(t){return null==t?String(t):z[q.call(t)]||"object"}function a(t){return"function"==c(t)}function o(t){return null!=t&&t==t.window}function s(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function i(t){return"object"==c(t)}function u(t){return i(t)&&!o(t)&&Object.getPrototypeOf(t)==Object.prototype}function l(t){return"number"==typeof t.length}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 n(t){return t in e?e[t]:e[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function h(t,e){return"number"!=typeof e||O[f(t)]?e:e+"px"}function r(t){return"children"in t?S.call(t.children):b.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function p(t,e){return null==e?b(t):b(t).filter(e)}function d(t,e,n,r){return a(e)?e.call(t,n,r):e}function m(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function v(t,e){var n=t.className||"",r=n&&n.baseVal!==y;return e===y?r?n.baseVal:n:void(r?n.baseVal=e:t.className=e)}function g(e){try{return e?"true"==e||"false"!=e&&("null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?b.parseJSON(e):e):e}catch(t){return e}}var y,x,b,w,E,j,C=[],S=C.slice,T=C.filter,k=window.document,N={},e={},O={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},P=/^\s*<(\w+|!)[^>]*>/,R=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,A=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,L=/^(?:body|html)$/i,Z=/([A-Z])/g,_=["val","css","html","text","data","width","height","offset"],t=k.createElement("table"),D=k.createElement("tr"),$={tr:k.createElement("tbody"),tbody:t,thead:t,tfoot:t,td:D,th:D,"*":k.createElement("div")},F=/complete|loaded|interactive/,M=/^[\w-]*$/,z={},q=z.toString,H={},I=k.createElement("div"),J={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},V=Array.isArray||function(t){return t instanceof Array};return H.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,i=t.parentNode,o=!i;return o&&(i=I).appendChild(t),r=~H.qsa(i,e).indexOf(t),o&&I.removeChild(t),r},E=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},j=function(n){return T.call(n,function(t,e){return n.indexOf(t)==e})},H.fragment=function(t,e,n){var r,i,o;return R.test(t)&&(r=b(k.createElement(RegExp.$1))),r||(t.replace&&(t=t.replace(A,"<$1></$2>")),e===y&&(e=P.test(t)&&RegExp.$1),e in $||(e="*"),(o=$[e]).innerHTML=""+t,r=b.each(S.call(o.childNodes),function(){o.removeChild(this)})),u(n)&&(i=b(r),b.each(n,function(t,e){-1<_.indexOf(t)?i[t](e):i.attr(t,e)})),r},H.Z=function(t,e){return(t=t||[]).__proto__=b.fn,t.selector=e||"",t},H.isZ=function(t){return t instanceof H.Z},H.init=function(t,e){var n,r;if(!t)return H.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&P.test(t))n=H.fragment(t,RegExp.$1,e),t=null;else{if(e!==y)return b(e).find(t);n=H.qsa(k,t)}else{if(a(t))return b(k).ready(t);if(H.isZ(t))return t;if(V(t))r=t,n=T.call(r,function(t){return null!=t});else if(i(t))n=[t],t=null;else if(P.test(t))n=H.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==y)return b(e).find(t);n=H.qsa(k,t)}}return H.Z(n,t)},(b=function(t,e){return H.init(t,e)}).extend=function(e){var n,t=S.call(arguments,1);return"boolean"==typeof e&&(n=e,e=t.shift()),t.forEach(function(t){!function t(e,n,r){for(x in n)r&&(u(n[x])||V(n[x]))?(u(n[x])&&!u(e[x])&&(e[x]={}),V(n[x])&&!V(e[x])&&(e[x]=[]),t(e[x],n[x],r)):n[x]!==y&&(e[x]=n[x])}(e,t,n)}),e},H.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,a=M.test(o);return s(t)&&a&&r?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType?[]:S.call(a&&!r?i?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},b.contains=k.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},b.type=c,b.isFunction=a,b.isWindow=o,b.isArray=V,b.isPlainObject=u,b.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},b.inArray=function(t,e,n){return C.indexOf.call(e,t,n)},b.camelCase=E,b.trim=function(t){return null==t?"":String.prototype.trim.call(t)},b.uuid=0,b.support={},b.expr={},b.map=function(t,e){var n,r,i,o,a=[];if(l(t))for(r=0;r<t.length;r++)null!=(n=e(t[r],r))&&a.push(n);else for(i in t)null!=(n=e(t[i],i))&&a.push(n);return 0<(o=a).length?b.fn.concat.apply([],o):o},b.each=function(t,e){var n,r;if(l(t)){for(n=0;n<t.length;n++)if(!1===e.call(t[n],n,t[n]))return t}else for(r in t)if(!1===e.call(t[r],r,t[r]))return t;return t},b.grep=function(t,e){return T.call(t,e)},window.JSON&&(b.parseJSON=JSON.parse),b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){z["[object "+e+"]"]=e.toLowerCase()}),b.fn={forEach:C.forEach,reduce:C.reduce,push:C.push,sort:C.sort,indexOf:C.indexOf,concat:C.concat,map:function(n){return b(b.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return b(S.apply(this,arguments))},ready:function(t){return F.test(k.readyState)&&k.body?t(b):k.addEventListener("DOMContentLoaded",function(){t(b)},!1),this},get:function(t){return t===y?S.call(this):this[0<=t?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(n){return C.every.call(this,function(t,e){return!1!==n.call(t,e,t)}),this},filter:function(e){return a(e)?this.not(this.not(e)):b(T.call(this,function(t){return H.matches(t,e)}))},add:function(t,e){return b(j(this.concat(b(t,e))))},is:function(t){return 0<this.length&&H.matches(this[0],t)},not:function(e){var n=[];if(a(e)&&e.call!==y)this.each(function(t){e.call(this,t)||n.push(this)});else{var r="string"==typeof e?this.filter(e):l(e)&&a(e.item)?S.call(e):b(e);this.forEach(function(t){r.indexOf(t)<0&&n.push(t)})}return b(n)},has:function(t){return this.filter(function(){return i(t)?b.contains(this,t):b(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&&!i(t)?t:b(t)},last:function(){var t=this[this.length-1];return t&&!i(t)?t:b(t)},find:function(t){var n=this;return t?"object"==typeof t?b(t).filter(function(){var e=this;return C.some.call(n,function(t){return b.contains(t,e)})}):1==this.length?b(H.qsa(this[0],t)):this.map(function(){return H.qsa(this,t)}):b()},closest:function(t,e){var n=this[0],r=!1;for("object"==typeof t&&(r=b(t));n&&!(r?0<=r.indexOf(n):H.matches(n,t));)n=n!==e&&!s(n)&&n.parentNode;return b(n)},parents:function(t){for(var e=[],n=this;0<n.length;)n=b.map(n,function(t){return(t=t.parentNode)&&!s(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return p(e,t)},parent:function(t){return p(j(this.pluck("parentNode")),t)},children:function(t){return p(this.map(function(){return r(this)}),t)},contents:function(){return this.map(function(){return S.call(this.childNodes)})},siblings:function(t){return p(this.map(function(t,e){return T.call(r(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(e){return b.map(this,function(t){return t[e]})},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,N[t]||(e=k.createElement(t),k.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),N[t]=n),N[t]))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(e){var n=a(e);if(this[0]&&!n)var r=b(e).get(0),i=r.parentNode||1<this.length;return this.each(function(t){b(this).wrapAll(n?e.call(this,t):i?r.cloneNode(!0):r)})},wrapAll:function(t){if(this[0]){b(this[0]).before(t=b(t));for(var e;(e=t.children()).length;)t=e.first();b(t).append(this)}return this},wrapInner:function(i){var o=a(i);return this.each(function(t){var e=b(this),n=e.contents(),r=o?i.call(this,t):i;n.length?n.wrapAll(r):e.append(r)})},unwrap:function(){return this.parent().each(function(){b(this).replaceWith(b(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=b(this);(e===y?"none"==t.css("display"):e)?t.show():t.hide()})},prev:function(t){return b(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return b(this.pluck("nextElementSibling")).filter(t||"*")},html:function(n){return 0 in arguments?this.each(function(t){var e=this.innerHTML;b(this).empty().append(d(this,n,t,e))}):0 in this?this[0].innerHTML:null},text:function(n){return 0 in arguments?this.each(function(t){var e=d(this,n,t,this.textContent);this.textContent=null==e?"":""+e}):0 in this?this[0].textContent:null},attr:function(e,n){var t;return"string"!=typeof e||1 in arguments?this.each(function(t){if(1===this.nodeType)if(i(e))for(x in e)m(this,x,e[x]);else m(this,e,d(this,n,t,this.getAttribute(e)))}):this.length&&1===this[0].nodeType?!(t=this[0].getAttribute(e))&&e in this[0]?this[0][e]:t:y},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){m(this,t)},this)})},prop:function(e,n){return e=J[e]||e,1 in arguments?this.each(function(t){this[e]=d(this,n,t,this[e])}):this[0]&&this[0][e]},data:function(t,e){var n="data-"+t.replace(Z,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,e):this.attr(n);return null!==r?g(r):y},val:function(e){return 0 in arguments?this.each(function(t){this.value=d(this,e,t,this.value)}):this[0]&&(this[0].multiple?b(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(o){if(o)return this.each(function(t){var e=b(this),n=d(this,o,t,e.offset()),r=e.offsetParent().offset(),i={top:n.top-r.top,left:n.left-r.left};"static"==e.css("position")&&(i.position="relative"),e.css(i)});if(!this.length)return null;var t=this[0].getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:function(t,e){if(arguments.length<2){var n,r=this[0];if(!r)return;if(n=getComputedStyle(r,""),"string"==typeof t)return r.style[E(t)]||n.getPropertyValue(t);if(V(t)){var i={};return b.each(t,function(t,e){i[e]=r.style[E(e)]||n.getPropertyValue(e)}),i}}var o="";if("string"==c(t))e||0===e?o=f(t)+":"+h(t,e):this.each(function(){this.style.removeProperty(f(t))});else for(x in t)t[x]||0===t[x]?o+=f(x)+":"+h(x,t[x])+";":this.each(function(){this.style.removeProperty(f(x))});return this.each(function(){this.style.cssText+=";"+o})},index:function(t){return t?this.indexOf(b(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&C.some.call(this,function(t){return this.test(v(t))},n(t))},addClass:function(n){return n?this.each(function(t){if("className"in this){w=[];var e=v(this);d(this,n,t,e).split(/\s+/g).forEach(function(t){b(this).hasClass(t)||w.push(t)},this),w.length&&v(this,e+(e?" ":"")+w.join(" "))}}):this},removeClass:function(e){return this.each(function(t){if("className"in this){if(e===y)return v(this,"");w=v(this),d(this,e,t,w).split(/\s+/g).forEach(function(t){w=w.replace(n(t)," ")}),v(this,w.trim())}})},toggleClass:function(n,r){return n?this.each(function(t){var e=b(this);d(this,n,t,v(this)).split(/\s+/g).forEach(function(t){(r===y?!e.hasClass(t):r)?e.addClass(t):e.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===y?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===y?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?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(),r=L.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(b(t).css("margin-top"))||0,n.left-=parseFloat(b(t).css("margin-left"))||0,r.top+=parseFloat(b(e[0]).css("border-top-width"))||0,r.left+=parseFloat(b(e[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||k.body;t&&!L.test(t.nodeName)&&"static"==b(t).css("position");)t=t.offsetParent;return t})}},b.fn.detach=b.fn.remove,["width","height"].forEach(function(r){var i=r.replace(/./,function(t){return t[0].toUpperCase()});b.fn[r]=function(e){var t,n=this[0];return e===y?o(n)?n["inner"+i]:s(n)?n.documentElement["scroll"+i]:(t=this.offset())&&t[r]:this.each(function(t){(n=b(this)).css(r,d(this,e,t,n[r]()))})}}),["after","prepend","before","append"].forEach(function(e,a){var s=a%2;b.fn[e]=function(){var e,r,i=b.map(arguments,function(t){return"object"==(e=c(t))||"array"==e||null==t?t:H.fragment(t)}),o=1<this.length;return i.length<1?this:this.each(function(t,e){r=s?e:e.parentNode,e=0==a?e.nextSibling:1==a?e.firstChild:2==a?e:null;var n=b.contains(k.documentElement,r);i.forEach(function(t){if(o)t=t.cloneNode(!0);else if(!r)return b(t).remove();r.insertBefore(t,e),n&&function t(e,n){n(e);for(var r=0,i=e.childNodes.length;r<i;r++)t(e.childNodes[r],n)}(t,function(t){null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||window.eval.call(window,t.innerHTML)})})})},b.fn[s?e+"To":"insert"+(a?"Before":"After")]=function(t){return b(t)[e](this),this}}),H.Z.prototype=b.fn,H.uniq=j,H.deserializeValue=g,b.zepto=H,b}();window.Zepto=Zepto,void 0===window.$&&(window.$=Zepto),function(l){function f(t){return t._zid||(t._zid=e++)}function a(t,e,n,r){if((e=h(e)).ns)var i=(o=e.ns,new RegExp("(?:^| )"+o.replace(" "," .* ?")+"(?: |$)"));var o;return(E[f(t)]||[]).filter(function(t){return!(!t||e.e&&t.e!=e.e||e.ns&&!i.test(t.ns)||n&&f(t.fn)!==f(n)||r&&t.sel!=r)})}function h(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function p(t,e){return t.del&&!n&&t.e in r||!!e}function d(t){return j[t]||n&&r[t]||t}function u(i,t,e,o,a,s,c){var n=f(i),u=E[n]||(E[n]=[]);t.split(/\s/).forEach(function(t){if("ready"==t)return l(document).ready(e);var n=h(t);n.fn=e,n.sel=a,n.e in j&&(e=function(t){var e=t.relatedTarget;return!e||e!==this&&!l.contains(this,e)?n.fn.apply(this,arguments):void 0});var r=(n.del=s)||e;n.proxy=function(t){if(!(t=v(t)).isImmediatePropagationStopped()){t.data=o;var e=r.apply(i,t._args==y?[t]:[t].concat(t._args));return!1===e&&(t.preventDefault(),t.stopPropagation()),e}},n.i=u.length,u.push(n),"addEventListener"in i&&i.addEventListener(d(n.e),n.proxy,p(n,c))})}function m(e,t,n,r,i){var o=f(e);(t||"").split(/\s/).forEach(function(t){a(e,t,n,r).forEach(function(t){delete E[o][t.i],"removeEventListener"in e&&e.removeEventListener(d(t.e),t.proxy,p(t,i))})})}function v(r,i){return(i||!r.isDefaultPrevented)&&(i||(i=r),l.each(t,function(t,e){var n=i[t];r[t]=function(){return this[e]=s,n&&n.apply(i,arguments)},r[e]=C}),(i.defaultPrevented!==y?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(r.isDefaultPrevented=s)),r}function g(t){var e,n={originalEvent:t};for(e in t)i.test(e)||t[e]===y||(n[e]=t[e]);return v(n,t)}var y,e=1,x=Array.prototype.slice,b=l.isFunction,w=function(t){return"string"==typeof t},E={},o={},n="onfocusin"in window,r={focus:"focusin",blur:"focusout"},j={mouseenter:"mouseover",mouseleave:"mouseout"};o.click=o.mousedown=o.mouseup=o.mousemove="MouseEvents",l.event={add:u,remove:m},l.proxy=function(t,e){var n=2 in arguments&&x.call(arguments,2);if(b(t)){var r=function(){return t.apply(e,n?n.concat(x.call(arguments)):arguments)};return r._zid=f(t),r}if(w(e))return n?(n.unshift(t[e],t),l.proxy.apply(null,n)):l.proxy(t[e],t);throw new TypeError("expected function")},l.fn.bind=function(t,e,n){return this.on(t,e,n)},l.fn.unbind=function(t,e){return this.off(t,e)},l.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var s=function(){return!0},C=function(){return!1},i=/^([A-Z]|returnValue$|layer[XY]$)/,t={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};l.fn.delegate=function(t,e,n){return this.on(e,t,n)},l.fn.undelegate=function(t,e,n){return this.off(e,t,n)},l.fn.live=function(t,e){return l(document.body).delegate(this.selector,t,e),this},l.fn.die=function(t,e){return l(document.body).undelegate(this.selector,t,e),this},l.fn.on=function(e,i,n,o,a){var s,c,r=this;return e&&!w(e)?(l.each(e,function(t,e){r.on(t,i,n,e,a)}),r):(w(i)||b(o)||!1===o||(o=n,n=i,i=y),(b(n)||!1===n)&&(o=n,n=y),!1===o&&(o=C),r.each(function(t,r){a&&(s=function(t){return m(r,t.type,o),o.apply(this,arguments)}),i&&(c=function(t){var e,n=l(t.target).closest(i,r).get(0);return n&&n!==r?(e=l.extend(g(t),{currentTarget:n,liveFired:r}),(s||o).apply(n,[e].concat(x.call(arguments,1)))):void 0}),u(r,e,o,n,i,c||s)}))},l.fn.off=function(t,n,e){var r=this;return t&&!w(t)?(l.each(t,function(t,e){r.off(t,n,e)}),r):(w(n)||b(e)||!1===e||(e=n,n=y),!1===e&&(e=C),r.each(function(){m(this,t,e,n)}))},l.fn.trigger=function(t,e){return(t=w(t)||l.isPlainObject(t)?l.Event(t):v(t))._args=e,this.each(function(){t.type in r&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):l(this).triggerHandler(t,e)})},l.fn.triggerHandler=function(n,r){var i,o;return this.each(function(t,e){(i=g(w(n)?l.Event(n):n))._args=r,i.target=e,l.each(a(e,n.type||n),function(t,e){return o=e.proxy(i),!i.isImmediatePropagationStopped()&&void 0})}),o},"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){l.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}}),l.Event=function(t,e){w(t)||(t=(e=t).type);var n=document.createEvent(o[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),v(n)}}(Zepto),function(v){function g(t,e,n,r){return t.global?(i=e||S,o=n,a=r,s=v.Event(o),v(i).trigger(s,a),!s.isDefaultPrevented()):void 0;var i,o,a,s}function y(t,e){var n=e.context;return!1!==e.beforeSend.call(n,t,e)&&!1!==g(e,n,"ajaxBeforeSend",[t,e])&&void g(e,n,"ajaxSend",[t,e])}function x(t,e,n,r){var i=n.context,o="success";n.success.call(i,t,o,e),r&&r.resolveWith(i,[t,o,e]),g(n,i,"ajaxSuccess",[e,n,t]),a(o,e,n)}function b(t,e,n,r,i){var o=r.context;r.error.call(o,n,e,t),i&&i.rejectWith(o,[n,e,t]),g(r,o,"ajaxError",[n,r,t||e]),a(e,n,r)}function a(t,e,n){var r,i=n.context;n.complete.call(i,e,t),g(n,i,"ajaxComplete",[e,n]),(r=n).global&&!--v.active&&g(r,null,"ajaxStop")}function w(){}function E(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function c(t,e,n,r){return v.isFunction(e)&&(r=n,n=e,e=void 0),v.isFunction(n)||(r=n,n=void 0),{url:t,data:e,success:n,dataType:r}}var j,C,l=0,S=window.document,u=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,T=/^(?:text|application)\/javascript/i,k=/^(?:text|application)\/xml/i,N="application/json",O="text/html",P=/^\s*$/,R=S.createElement("a");R.href=window.location.href,v.active=0,v.ajaxJSONP=function(n,r){if(!("type"in n))return v.ajax(n);var i,o,t=n.jsonpCallback,a=(v.isFunction(t)?t():t)||"jsonp"+ ++l,s=S.createElement("script"),c=window[a],e=function(t){v(s).triggerHandler("error",t||"abort")},u={abort:e};return r&&r.promise(u),v(s).on("load error",function(t,e){clearTimeout(o),v(s).off().remove(),"error"!=t.type&&i?x(i[0],u,n,r):b(null,e||"error",u,n,r),window[a]=c,i&&v.isFunction(c)&&c(i[0]),c=i=void 0}),!1===y(u,n)?e("abort"):(window[a]=function(){i=arguments},s.src=n.url.replace(/\?(.+)=\?/,"?$1="+a),S.head.appendChild(s),0<n.timeout&&(o=setTimeout(function(){e("timeout")},n.timeout))),u},v.ajaxSettings={type:"GET",beforeSend:w,success:w,error:w,complete:w,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:N,xml:"application/xml, text/xml",html:O,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},v.ajax=function(t){var e,n,r,i=v.extend({},t||{}),o=v.Deferred&&v.Deferred();for(j in v.ajaxSettings)void 0===i[j]&&(i[j]=v.ajaxSettings[j]);(r=i).global&&0==v.active++&&g(r,null,"ajaxStart"),i.crossDomain||((e=S.createElement("a")).href=i.url,e.href=e.href,i.crossDomain=R.protocol+"//"+R.host!=e.protocol+"//"+e.host),i.url||(i.url=window.location.toString()),(n=i).processData&&n.data&&"string"!=v.type(n.data)&&(n.data=v.param(n.data,n.traditional)),!n.data||n.type&&"GET"!=n.type.toUpperCase()||(n.url=E(n.url,n.data),n.data=void 0);var a=i.dataType,s=/\?.+=\?/.test(i.url);if(s&&(a="jsonp"),!1!==i.cache&&(t&&!0===t.cache||"script"!=a&&"jsonp"!=a)||(i.url=E(i.url,"_="+Date.now())),"jsonp"==a)return s||(i.url=E(i.url,i.jsonp?i.jsonp+"=?":!1===i.jsonp?"":"callback=?")),v.ajaxJSONP(i,o);var c,u=i.accepts[a],l={},f=function(t,e){l[t.toLowerCase()]=[t,e]},h=/^([\w-]+:)\/\//.test(i.url)?RegExp.$1:window.location.protocol,p=i.xhr(),d=p.setRequestHeader;if(o&&o.promise(p),i.crossDomain||f("X-Requested-With","XMLHttpRequest"),f("Accept",u||"*/*"),(u=i.mimeType||u)&&(-1<u.indexOf(",")&&(u=u.split(",",2)[0]),p.overrideMimeType&&p.overrideMimeType(u)),(i.contentType||!1!==i.contentType&&i.data&&"GET"!=i.type.toUpperCase())&&f("Content-Type",i.contentType||"application/x-www-form-urlencoded"),i.headers)for(C in i.headers)f(C,i.headers[C]);if(p.setRequestHeader=f,!(p.onreadystatechange=function(){if(4==p.readyState){p.onreadystatechange=w,clearTimeout(c);var t,e=!1;if(200<=p.status&&p.status<300||304==p.status||0==p.status&&"file:"==h){a=a||((n=i.mimeType||p.getResponseHeader("content-type"))&&(n=n.split(";",2)[0]),n&&(n==O?"html":n==N?"json":T.test(n)?"script":k.test(n)&&"xml")||"text"),t=p.responseText;try{"script"==a?(0,eval)(t):"xml"==a?t=p.responseXML:"json"==a&&(t=P.test(t)?null:v.parseJSON(t))}catch(t){e=t}e?b(e,"parsererror",p,i,o):x(t,p,i,o)}else b(p.statusText||null,p.status?"error":"abort",p,i,o)}var n})===y(p,i))return p.abort(),b(null,"abort",p,i,o),p;if(i.xhrFields)for(C in i.xhrFields)p[C]=i.xhrFields[C];var m=!("async"in i)||i.async;for(C in p.open(i.type,i.url,m,i.username,i.password),l)d.apply(p,l[C]);return 0<i.timeout&&(c=setTimeout(function(){p.onreadystatechange=w,p.abort(),b(null,"timeout",p,i,o)},i.timeout)),p.send(i.data?i.data:null),p},v.get=function(){return v.ajax(c.apply(null,arguments))},v.post=function(){var t=c.apply(null,arguments);return t.type="POST",v.ajax(t)},v.getJSON=function(){var t=c.apply(null,arguments);return t.dataType="json",v.ajax(t)},v.fn.load=function(t,e,n){if(!this.length)return this;var r,i=this,o=t.split(/\s/),a=c(t,e,n),s=a.success;return 1<o.length&&(a.url=o[0],r=o[1]),a.success=function(t){i.html(r?v("<div>").html(t.replace(u,"")).find(r):t),s&&s.apply(i,arguments)},v.ajax(a),this};var r=encodeURIComponent;v.param=function(t,e){var n=[];return n.add=function(t,e){v.isFunction(e)&&(e=e()),null==e&&(e=""),this.push(r(t)+"="+r(e))},function n(r,t,i,o){var a,s=v.isArray(t),c=v.isPlainObject(t);v.each(t,function(t,e){a=v.type(e),o&&(t=i?o:o+"["+(c||"object"==a||"array"==a?t:"")+"]"),!o&&s?r.add(e.name,e.value):"array"==a||!i&&"object"==a?n(r,e,i,t):r.add(t,e)})}(n,t,e),n.join("&").replace(/%20/g,"+")}}(Zepto),function(o){o.fn.serializeArray=function(){var n,r,e=[],i=function(t){return t.forEach?t.forEach(i):void e.push({name:n,value:t})};return this[0]&&o.each(this[0].elements,function(t,e){r=e.type,(n=e.name)&&"fieldset"!=e.nodeName.toLowerCase()&&!e.disabled&&"submit"!=r&&"reset"!=r&&"button"!=r&&"file"!=r&&("radio"!=r&&"checkbox"!=r||e.checked)&&i(o(e).val())}),e},o.fn.serialize=function(){var e=[];return this.serializeArray().forEach(function(t){e.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.value))}),e.join("&")},o.fn.submit=function(t){if(0 in arguments)this.bind("submit",t);else if(this.length){var e=o.Event("submit");this.eq(0).trigger(e),e.isDefaultPrevented()||this.get(0).submit()}return this}}(Zepto),function(n){"__proto__"in{}||n.extend(n.zepto,{Z:function(t,e){return t=t||[],n.extend(t,n.fn),t.selector=e||"",t.__Z=!0,t},isZ:function(t){return"array"===n.type(t)&&"__Z"in t}});try{getComputedStyle(void 0)}catch(t){var e=getComputedStyle;window.getComputedStyle=function(t){try{return e(t)}catch(t){return null}}}}(Zepto),function(u){u.fn.simpleJekyllSearch=function(t){var i=u.extend({jsonFile:"/search.json",jsonFormat:"title,category,desc,url,date,shortdate",template:'<li><article><a href="{url}">{title} <span class="entry-date"><time datetime="{date}">{date}</time></span></a></article></li>',searchResults:".search-results",searchResultsTitle:"<h4>Search Results:</h4>",limit:"5",noResults:"<p>Oh snap!<br/><small>Nothing found! =(</small></p>"},t),o=i.jsonFormat.split(","),a=[],r=this,s=u(i.searchResults);function c(){s.children().remove()}i.jsonFile.length&&s.length&&u.ajax({type:"GET",url:i.jsonFile,dataType:"json",success:function(t,e,n){a=t,r.keyup(function(t){var e,n,r;u(this).val().length?(n=u(this).val(),r=[],u.each(a,function(t,e){for(t=0;t<o.length;t++)void 0!==e[o[t]]&&-1!==e[o[t]].toLowerCase().indexOf(n.toLowerCase())&&(r.push(e),t=o.length)}),e=r,c(),s.append(u(i.searchResultsTitle)),e.length?u.each(e,function(t,e){if(t<i.limit){for(var n=i.template,t=0;t<o.length;t++){var r=new RegExp("{"+o[t]+"}","g");n=n.replace(r,e[o[t]])}s.append(u(n))}}):s.append(i.noResults)):c()})},error:function(t,e,n){console.log("***ERROR in simpleJekyllSearch.js***"),console.log(t),console.log(e),console.log(n)}})}}(Zepto),function(e,t,n){e("a#slide").click(function(){e("#sidebar,a#slide,#fade").addClass("slide"),e("#open").hide(),e("#search").hide(),e("#close").show()}),e("#fade").click(function(){e("#sidebar,a#slide,#fade").removeClass("slide"),e("#open").show(),e("#search").show(),e("#close").hide()}),t.onkeydown=function(t){if(32==t.keyCode&&t.target==document.body)return t.preventDefault(),!1},e("#searching").click(function(){e("#fade").trigger("click"),e("#search").trigger("click")}),e(document).keydown(function(t){if(!e(".search-form").hasClass("active"))switch(t.key){case" ":e("a#slide").trigger("click");break;case"Escape":e("#fade").trigger("click")}e("#sidebar").hasClass("slide")&&("s"===t.key?(e("#fade").trigger("click"),e("#search").trigger("click")):e("#sidebar ul").find("[key-trigger='"+t.key+"']").trigger("click")),e(".search-form").hasClass("active")&&"Escape"===t.key&&e(".icon-remove-sign").trigger("click")}),e(document).keyup(function(t){e(".search-form").hasClass("active")?e(".search-form").find("input").focus():e(".search-form").find("input").blur()});var r={close:e(".icon-remove-sign"),searchform:e(".search-form"),canvas:e("body"),dothis:e(".dosearch")};r.dothis.on("click",function(){e(".search-wrapper").toggleClass("active"),r.searchform.toggleClass("active"),r.canvas.toggleClass("search-overlay"),e(".search-field").simpleJekyllSearch()}),r.close.on("click",function(){e(".search-wrapper").toggleClass("active"),r.searchform.toggleClass("active"),r.canvas.removeClass("search-overlay")})}(Zepto,window);