var Zepto=function(){function y(n){return n==null?String(n):ut[ei.call(n)]||"object"}function h(n){return y(n)=="function"}function d(n){return n!=null&&n==n.window}function ft(n){return n!=null&&n.nodeType==n.DOCUMENT_NODE}function a(n){return y(n)=="object"}function p(n){return a(n)&&!d(n)&&Object.getPrototypeOf(n)==Object.prototype}function et(t){var i=!!t&&"length"in t&&t.length,r=n.type(t);return"function"!=r&&!d(t)&&("array"==r||i===0||typeof i=="number"&&i>0&&i-1 in t)}function oi(n){return v.call(n,function(n){return n!=null})}function si(t){return t.length>0?n.fn.concat.apply([],t):t}function w(n){return n.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 vt(n){return n in tt?tt[n]:tt[n]=new RegExp("(^|\\s)"+n+"(\\s|$)")}function yt(n,t){return typeof t=="number"&&!ni[w(n)]?t+"px":t}function hi(n){var t,i;return nt[n]||(t=r.createElement(n),r.body.appendChild(t),i=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),i=="none"&&(i="block"),nt[n]=i),nt[n]}function pt(t){return"children"in t?s.call(t.children):n.map(t.childNodes,function(n){if(n.nodeType==1)return n})}function wt(n,t){for(var r=n?n.length:0,i=0;i<r;i++)this[i]=n[i];this.length=r;this.selector=t||""}function bt(n,t,r){for(i in t)r&&(p(t[i])||l(t[i]))?(p(t[i])&&!p(n[i])&&(n[i]={}),l(t[i])&&!l(n[i])&&(n[i]=[]),bt(n[i],t[i],r)):t[i]!==u&&(n[i]=t[i])}function g(t,i){return i==null?n(t):n(t).filter(i)}function e(n,t,i,r){return h(t)?t.call(n,i,r):t}function ot(n,t,i){i==null?n.removeAttribute(t):n.setAttribute(t,i)}function c(n,t){var i=n.className||"",r=i&&i.baseVal!==u;if(t===u)return r?i.baseVal:i;r?i.baseVal=t:n.className=t}function kt(t){try{return t?t=="true"||(t=="false"?!1:t=="null"?null:+t+""==t?+t:/^[\[\{]/.test(t)?n.parseJSON(t):t):t}catch(i){return t}}function dt(n,t){t(n);for(var i=0,r=n.childNodes.length;i<r;i++)dt(n.childNodes[i],t)}var u,i,n,o,f=[],gt=f.concat,v=f.filter,s=f.slice,r=window.document,nt={},tt={},ni={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},it=/^\s*<(\w+|!)[^>]*>/,ti=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ii=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,st=/^(?:body|html)$/i,ri=/([A-Z])/g,ui=["val","css","html","text","data","width","height","offset"],rt=r.createElement("table"),ht=r.createElement("tr"),ct={tr:r.createElement("tbody"),tbody:rt,thead:rt,tfoot:rt,td:ht,th:ht,"*":r.createElement("div")},fi=/^[\w-]*$/,ut={},ei=ut.toString,t={},b,k,lt=r.createElement("div"),at={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},l=Array.isArray||function(n){return n instanceof Array};return t.matches=function(n,i){var u,e,r,f;return!i||!n||n.nodeType!==1?!1:(u=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.matchesSelector,u)?u.call(n,i):(r=n.parentNode,f=!r,f&&(r=lt).appendChild(n),e=~t.qsa(r,i).indexOf(n),f&&lt.removeChild(n),e)},b=function(n){return n.replace(/-+(.)?/g,function(n,t){return t?t.toUpperCase():""})},k=function(n){return v.call(n,function(t,i){return n.indexOf(t)==i})},t.fragment=function(t,i,f){var e,h,o;return ti.test(t)&&(e=n(r.createElement(RegExp.$1))),e||(t.replace&&(t=t.replace(ii,"<$1><\/$2>")),i===u&&(i=it.test(t)&&RegExp.$1),i in ct||(i="*"),o=ct[i],o.innerHTML=""+t,e=n.each(s.call(o.childNodes),function(){o.removeChild(this)})),p(f)&&(h=n(e),n.each(f,function(n,t){ui.indexOf(n)>-1?h[n](t):h.attr(n,t)})),e},t.Z=function(n,t){return new wt(n,t)},t.isZ=function(n){return n instanceof t.Z},t.init=function(i,f){var e;if(i)if(typeof i=="string")if(i=i.trim(),i[0]=="<"&&it.test(i))e=t.fragment(i,RegExp.$1,f),i=null;else{if(f!==u)return n(f).find(i);e=t.qsa(r,i)}else{if(h(i))return n(r).ready(i);if(t.isZ(i))return i;if(l(i))e=oi(i);else if(a(i))e=[i],i=null;else if(it.test(i))e=t.fragment(i.trim(),RegExp.$1,f),i=null;else{if(f!==u)return n(f).find(i);e=t.qsa(r,i)}}else return t.Z();return t.Z(e,i)},n=function(n,i){return t.init(n,i)},n.extend=function(n){var t,i=s.call(arguments,1);return typeof n=="boolean"&&(t=n,n=i.shift()),i.forEach(function(i){bt(n,i,t)}),n},t.qsa=function(n,t){var u,i=t[0]=="#",f=!i&&t[0]==".",r=i||f?t.slice(1):t,e=fi.test(r);return n.getElementById&&e&&i?(u=n.getElementById(r))?[u]:[]:n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11?[]:s.call(e&&!i&&n.getElementsByClassName?f?n.getElementsByClassName(r):n.getElementsByTagName(t):n.querySelectorAll(t))},n.contains=r.documentElement.contains?function(n,t){return n!==t&&n.contains(t)}:function(n,t){while(t&&(t=t.parentNode))if(t===n)return!0;return!1},n.type=y,n.isFunction=h,n.isWindow=d,n.isArray=l,n.isPlainObject=p,n.isEmptyObject=function(n){for(var t in n)return!1;return!0},n.isNumeric=function(n){var t=Number(n),i=typeof n;return n!=null&&i!="boolean"&&(i!="string"||n.length)&&!isNaN(t)&&isFinite(t)||!1},n.inArray=function(n,t,i){return f.indexOf.call(t,n,i)},n.camelCase=b,n.trim=function(n){return n==null?"":String.prototype.trim.call(n)},n.uuid=0,n.support={},n.expr={},n.noop=function(){},n.map=function(n,t){var i,u=[],r,f;if(et(n))for(r=0;r<n.length;r++)i=t(n[r],r),i!=null&&u.push(i);else for(f in n)i=t(n[f],f),i!=null&&u.push(i);return si(u)},n.each=function(n,t){var i,r;if(et(n)){for(i=0;i<n.length;i++)if(t.call(n[i],i,n[i])===!1)return n}else for(r in n)if(t.call(n[r],r,n[r])===!1)return n;return n},n.grep=function(n,t){return v.call(n,t)},window.JSON&&(n.parseJSON=JSON.parse),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ut["[object "+t+"]"]=t.toLowerCase()}),n.fn={constructor:t.Z,length:0,forEach:f.forEach,reduce:f.reduce,push:f.push,sort:f.sort,splice:f.splice,indexOf:f.indexOf,concat:function(){for(var i,r=[],n=0;n<arguments.length;n++)i=arguments[n],r[n]=t.isZ(i)?i.toArray():i;return gt.apply(t.isZ(this)?this.toArray():this,r)},map:function(t){return n(n.map(this,function(n,i){return t.call(n,i,n)}))},slice:function(){return n(s.apply(this,arguments))},ready:function(t){if(r.readyState!=="complete"&&(r.readyState==="loading"||r.documentElement.doScroll)){var i=function(){r.removeEventListener("DOMContentLoaded",i,!1);window.removeEventListener("load",i,!1);t(n)};r.addEventListener("DOMContentLoaded",i,!1);window.addEventListener("load",i,!1)}else setTimeout(function(){t(n)},0);return this},get:function(n){return n===u?s.call(this):this[n>=0?n:n+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){this.parentNode!=null&&this.parentNode.removeChild(this)})},each:function(n){return f.every.call(this,function(t,i){return n.call(t,i,t)!==!1}),this},filter:function(i){return h(i)?this.not(this.not(i)):n(v.call(this,function(n){return t.matches(n,i)}))},add:function(t,i){return n(k(this.concat(n(t,i))))},is:function(n){return this.length>0&&t.matches(this[0],n)},not:function(t){var i=[],r;return h(t)&&t.call!==u?this.each(function(n){t.call(this,n)||i.push(this)}):(r=typeof t=="string"?this.filter(t):et(t)&&h(t.item)?s.call(t):n(t),this.forEach(function(n){r.indexOf(n)<0&&i.push(n)})),n(i)},has:function(t){return this.filter(function(){return a(t)?n.contains(this,t):n(this).find(t).size()})},eq:function(n){return n===-1?this.slice(n):this.slice(n,+n+1)},first:function(){var t=this[0];return t&&!a(t)?t:n(t)},last:function(){var t=this[this.length-1];return t&&!a(t)?t:n(t)},find:function(i){var r=this;return i?typeof i=="object"?n(i).filter(function(){var t=this;return f.some.call(r,function(i){return n.contains(i,t)})}):this.length==1?n(t.qsa(this[0],i)):this.map(function(){return t.qsa(this,i)}):n()},closest:function(i,r){var u=[],f=typeof i=="object"&&n(i);return this.each(function(n,e){while(e&&!(f?f.indexOf(e)>=0:t.matches(e,i)))e=e!==r&&!ft(e)&&e.parentNode;e&&u.indexOf(e)<0&&u.push(e)}),n(u)},parents:function(t){for(var i=[],r=this;r.length>0;)r=n.map(r,function(n){if((n=n.parentNode)&&!ft(n)&&i.indexOf(n)<0)return i.push(n),n});return g(i,t)},parent:function(n){return g(k(this.pluck("parentNode")),n)},children:function(n){return g(this.map(function(){return pt(this)}),n)},contents:function(){return this.map(function(){return this.contentDocument||s.call(this.childNodes)})},siblings:function(n){return g(this.map(function(n,t){return v.call(pt(t.parentNode),function(n){return n!==t})}),n)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return n.map(this,function(n){return n[t]})},show:function(){return this.each(function(){this.style.display=="none"&&(this.style.display="");getComputedStyle(this,"").getPropertyValue("display")=="none"&&(this.style.display=hi(this.nodeName))})},replaceWith:function(n){return this.before(n).remove()},wrap:function(t){var r=h(t),i,u;return this[0]&&!r&&(i=n(t).get(0),u=i.parentNode||this.length>1),this.each(function(f){n(this).wrapAll(r?t.call(this,f):u?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){n(this[0]).before(t=n(t));for(var i;(i=t.children()).length;)t=i.first();n(t).append(this)}return this},wrapInner:function(t){var i=h(t);return this.each(function(r){var u=n(this),f=u.contents(),e=i?t.call(this,r):t;f.length?f.wrapAll(e):u.append(e)})},unwrap:function(){return this.parent().each(function(){n(this).replaceWith(n(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 i=n(this);(t===u?i.css("display")=="none":t)?i.show():i.hide()})},prev:function(t){return n(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return n(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(i){var r=this.innerHTML;n(this).empty().append(e(this,t,i,r))}):0 in this?this[0].innerHTML:null},text:function(n){return 0 in arguments?this.each(function(t){var i=e(this,n,t,this.textContent);this.textContent=i==null?"":""+i}):0 in this?this.pluck("textContent").join(""):null},attr:function(n,t){var r;return typeof n=="string"&&!(1 in arguments)?0 in this&&this[0].nodeType==1&&(r=this[0].getAttribute(n))!=null?r:u:this.each(function(r){if(this.nodeType===1)if(a(n))for(i in n)ot(this,i,n[i]);else ot(this,n,e(this,t,r,this.getAttribute(n)))})},removeAttr:function(n){return this.each(function(){this.nodeType===1&&n.split(" ").forEach(function(n){ot(this,n)},this)})},prop:function(n,t){return n=at[n]||n,1 in arguments?this.each(function(i){this[n]=e(this,t,i,this[n])}):this[0]&&this[0][n]},removeProp:function(n){return n=at[n]||n,this.each(function(){delete this[n]})},data:function(n,t){var i="data-"+n.replace(ri,"-$1").toLowerCase(),r=1 in arguments?this.attr(i,t):this.attr(i);return r!==null?kt(r):u},val:function(t){return 0 in arguments?(t==null&&(t=""),this.each(function(n){this.value=e(this,t,n,this.value)})):this[0]&&(this[0].multiple?n(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(i){var r=n(this),u=e(this,t,i,r.offset()),f=r.offsetParent().offset(),o={top:u.top-f.top,left:u.left-f.left};r.css("position")=="static"&&(o.position="relative");r.css(o)});if(!this.length)return null;if(r.documentElement!==this[0]&&!n.contains(r.documentElement,this[0]))return{top:0,left:0};var i=this[0].getBoundingClientRect();return{left:i.left+window.pageXOffset,top:i.top+window.pageYOffset,width:Math.round(i.width),height:Math.round(i.height)}},css:function(t,r){var u,e,o,f;if(arguments.length<2){if(u=this[0],typeof t=="string")return u?u.style[b(t)]||getComputedStyle(u,"").getPropertyValue(t):void 0;if(l(t))return u?(e={},o=getComputedStyle(u,""),n.each(t,function(n,t){e[t]=u.style[b(t)]||o.getPropertyValue(t)}),e):void 0}if(f="",y(t)=="string")r||r===0?f=w(t)+":"+yt(t,r):this.each(function(){this.style.removeProperty(w(t))});else for(i in t)t[i]||t[i]===0?f+=w(i)+":"+yt(i,t[i])+";":this.each(function(){this.style.removeProperty(w(i))});return this.each(function(){this.style.cssText+=";"+f})},index:function(t){return t?this.indexOf(n(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(n){return n?f.some.call(this,function(n){return this.test(c(n))},vt(n)):!1},addClass:function(t){return t?this.each(function(i){if("className"in this){o=[];var r=c(this),u=e(this,t,i,r);u.split(/\s+/g).forEach(function(t){n(this).hasClass(t)||o.push(t)},this);o.length&&c(this,r+(r?" ":"")+o.join(" "))}}):this},removeClass:function(n){return this.each(function(t){if("className"in this){if(n===u)return c(this,"");o=c(this);e(this,n,t,o).split(/\s+/g).forEach(function(n){o=o.replace(vt(n)," ")});c(this,o.trim())}})},toggleClass:function(t,i){return t?this.each(function(r){var f=n(this),o=e(this,t,r,c(this));o.split(/\s+/g).forEach(function(n){(i===u?!f.hasClass(n):i)?f.addClass(n):f.removeClass(n)})}):this},scrollTop:function(n){if(this.length){var t="scrollTop"in this[0];return n===u?t?this[0].scrollTop:this[0].pageYOffset:this.each(t?function(){this.scrollTop=n}:function(){this.scrollTo(this.scrollX,n)})}},scrollLeft:function(n){if(this.length){var t="scrollLeft"in this[0];return n===u?t?this[0].scrollLeft:this[0].pageXOffset:this.each(t?function(){this.scrollLeft=n}:function(){this.scrollTo(n,this.scrollY)})}},position:function(){if(this.length){var u=this[0],t=this.offsetParent(),i=this.offset(),r=st.test(t[0].nodeName)?{top:0,left:0}:t.offset();return i.top-=parseFloat(n(u).css("margin-top"))||0,i.left-=parseFloat(n(u).css("margin-left"))||0,r.top+=parseFloat(n(t[0]).css("border-top-width"))||0,r.left+=parseFloat(n(t[0]).css("border-left-width"))||0,{top:i.top-r.top,left:i.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||r.body;t&&!st.test(t.nodeName)&&n(t).css("position")=="static";)t=t.offsetParent;return t})}},n.fn.detach=n.fn.remove,["width","height"].forEach(function(t){var i=t.replace(/./,function(n){return n[0].toUpperCase()});n.fn[t]=function(r){var o,f=this[0];return r===u?d(f)?f["inner"+i]:ft(f)?f.documentElement["scroll"+i]:(o=this.offset())&&o[t]:this.each(function(i){f=n(this);f.css(t,e(this,r,i,f[t]()))})}}),["after","prepend","before","append"].forEach(function(i,f){var e=f%2;n.fn[i]=function(){var o,s=n.map(arguments,function(i){var r=[];return(o=y(i),o=="array")?(i.forEach(function(i){if(i.nodeType!==u)return r.push(i);if(n.zepto.isZ(i))return r=r.concat(i.get());r=r.concat(t.fragment(i))}),r):o=="object"||i==null?i:t.fragment(i)}),i,h=this.length>1;return s.length<1?this:this.each(function(t,u){i=e?u:u.parentNode;u=f==0?u.nextSibling:f==1?u.firstChild:f==2?u:null;var o=n.contains(r.documentElement,i);s.forEach(function(t){if(h)t=t.cloneNode(!0);else if(!i)return n(t).remove();i.insertBefore(t,u);o&&dt(t,function(n){if(n.nodeName!=null&&n.nodeName.toUpperCase()==="SCRIPT"&&(!n.type||n.type==="text/javascript")&&!n.src){var t=n.ownerDocument?n.ownerDocument.defaultView:window;t.eval.call(t,n.innerHTML)}})})})};n.fn[e?i+"To":"insert"+(f?"Before":"After")]=function(t){return n(t)[i](this),this}}),t.Z.prototype=wt.prototype=n.fn,t.uniq=k,t.deserializeValue=kt,n.zepto=t,n}(),ajaxBase,cache;if(window.Zepto=Zepto,window.$===undefined&&(window.$=Zepto),function(n){function tt(t,i,r){var u=n.Event(i);return n(t).trigger(u,r),!u.isDefaultPrevented()}function r(n,t,i,r){if(n.global)return tt(t||u,i,r)}function it(t){t.global&&n.active++==0&&r(t,null,"ajaxStart")}function rt(t){t.global&&!--n.active&&r(t,null,"ajaxStop")}function v(n,t){var i=t.context;if(t.beforeSend.call(i,n,t)===!1||r(t,i,"ajaxBeforeSend",[n,t])===!1)return!1;r(t,i,"ajaxSend",[n,t])}function y(n,t,i,u){var f=i.context,e="success";i.success.call(f,n,e,t);u&&u.resolveWith(f,[n,e,t]);r(i,f,"ajaxSuccess",[t,i,n]);p(e,t,i)}function f(n,t,i,u,f){var e=u.context;u.error.call(e,i,t,n);f&&f.rejectWith(e,[i,t,n]);r(u,e,"ajaxError",[i,u,n||t]);p(t,i,u)}function p(n,t,i){var u=i.context;i.complete.call(u,t,n);r(i,u,"ajaxComplete",[t,i]);rt(i)}function ut(n,t,r){if(r.dataFilter==i)return n;var u=r.context;return r.dataFilter.call(u,n,t)}function i(){}function ft(n){return n&&(n=n.split(";",2)[0]),n&&(n==a?"html":n==l?"json":d.test(n)?"script":g.test(n)&&"xml")||"text"}function h(n,t){return t==""?n:(n+"&"+t).replace(/[&?]{1,2}/,"?")}function et(t){t.processData&&t.data&&n.type(t.data)!="string"&&(t.data=n.param(t.data,t.traditional));t.data&&(!t.type||t.type.toUpperCase()=="GET"||"jsonp"==t.dataType)&&(t.url=h(t.url,t.data),t.data=undefined)}function o(t,i,r,u){return n.isFunction(i)&&(u=r,r=i,i=undefined),n.isFunction(r)||(u=r,r=undefined),{url:t,data:i,success:r,dataType:u}}function w(t,i,r,u){var f,e=n.isArray(i),o=n.isPlainObject(i);n.each(i,function(i,s){f=n.type(s);u&&(i=r?u:u+"["+(o||f=="object"||f=="array"?i:"")+"]");!u&&e?t.add(s.name,s.value):f!="array"&&(r||f!="object")?t.add(i,s):w(t,s,r,i)})}var b=+new Date,u=window.document,e,t,k=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,d=/^(?:text|application)\/javascript/i,g=/^(?:text|application)\/xml/i,l="application/json",a="text/html",nt=/^\s*$/,s=u.createElement("a"),c;s.href=window.location.href;n.active=0;n.ajaxJSONP=function(t,i){if(!("type"in t))return n.ajax(t);var c=t.jsonpCallback,s=(n.isFunction(c)?c():c)||"Zepto"+b++,o=u.createElement("script"),h=window[s],r,l=function(t){n(o).triggerHandler("error",t||"abort")},e={abort:l},a;i&&i.promise(e);n(o).on("load error",function(u,c){clearTimeout(a);n(o).off().remove();u.type!="error"&&r?y(r[0],e,t,i):f(null,c||"error",e,t,i);window[s]=h;r&&n.isFunction(h)&&h(r[0]);h=r=undefined});return v(e,t)===!1?(l("abort"),e):(window[s]=function(){r=arguments},o.src=t.url.replace(/\?(.+)=\?/,"?$1="+s),u.head.appendChild(o),t.timeout>0&&(a=setTimeout(function(){l("timeout")},t.timeout)),e)};n.ajaxSettings={type:"GET",beforeSend:i,success:i,error:i,complete:i,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:l,xml:"application/xml, text/xml",html:a,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:i};n.ajax=function(r){var o=n.extend({},r||{}),a=n.Deferred&&n.Deferred(),w,g,l,k,rt;for(e in n.ajaxSettings)o[e]===undefined&&(o[e]=n.ajaxSettings[e]);if(it(o),o.crossDomain||(w=u.createElement("a"),w.href=o.url,w.href=w.href,o.crossDomain=s.protocol+"//"+s.host!=w.protocol+"//"+w.host),o.url||(o.url=window.location.toString()),(g=o.url.indexOf("#"))>-1&&(o.url=o.url.slice(0,g)),et(o),l=o.dataType,k=/\?.+=\?/.test(o.url),k&&(l="jsonp"),o.cache!==!1&&(r&&r.cache===!0||"script"!=l&&"jsonp"!=l)||(o.url=h(o.url,"_="+Date.now())),"jsonp"==l)return k||(o.url=h(o.url,o.jsonp?o.jsonp+"=?":o.jsonp===!1?"":"callback=?")),n.ajaxJSONP(o,a);var p=o.accepts[l],d={},b=function(n,t){d[n.toLowerCase()]=[n,t]},ot=/^([\w-]+:)\/\//.test(o.url)?RegExp.$1:window.location.protocol,c=o.xhr(),st=c.setRequestHeader,tt;if(a&&a.promise(c),o.crossDomain||b("X-Requested-With","XMLHttpRequest"),b("Accept",p||"*/*"),(p=o.mimeType||p)&&(p.indexOf(",")>-1&&(p=p.split(",",2)[0]),c.overrideMimeType&&c.overrideMimeType(p)),(o.contentType||o.contentType!==!1&&o.data&&o.type.toUpperCase()!="GET")&&b("Content-Type",o.contentType||"application/x-www-form-urlencoded"),o.headers)for(t in o.headers)b(t,o.headers[t]);if(c.setRequestHeader=b,c.onreadystatechange=function(){if(c.readyState==4){c.onreadystatechange=i;clearTimeout(tt);var t,r=!1;if(c.status>=200&&c.status<300||c.status==304||c.status==0&&ot=="file:"){if(l=l||ft(o.mimeType||c.getResponseHeader("content-type")),c.responseType=="arraybuffer"||c.responseType=="blob")t=c.response;else{t=c.responseText;try{t=ut(t,l,o);l=="script"?(1,eval)(t):l=="xml"?t=c.responseXML:l=="json"&&(t=nt.test(t)?null:n.parseJSON(t))}catch(u){r=u}if(r)return f(r,"parsererror",c,o,a)}y(t,c,o,a)}else f(c.statusText||null,c.status?"error":"abort",c,o,a)}},v(c,o)===!1)return c.abort(),f(null,"abort",c,o,a),c;if(rt="async"in o?o.async:!0,c.open(o.type,o.url,rt,o.username,o.password),o.xhrFields)for(t in o.xhrFields)c[t]=o.xhrFields[t];for(t in d)st.apply(c,d[t]);return o.timeout>0&&(tt=setTimeout(function(){c.onreadystatechange=i;c.abort();f(null,"timeout",c,o,a)},o.timeout)),c.send(o.data?o.data:null),c};n.get=function(){return n.ajax(o.apply(null,arguments))};n.post=function(){var t=o.apply(null,arguments);return t.type="POST",n.ajax(t)};n.getJSON=function(){var t=o.apply(null,arguments);return t.dataType="json",n.ajax(t)};n.fn.load=function(t,i,r){if(!this.length)return this;var s=this,f=t.split(/\s/),e,u=o(t,i,r),h=u.success;return f.length>1&&(u.url=f[0],e=f[1]),u.success=function(t){s.html(e?n("<div>").html(t.replace(k,"")).find(e):t);h&&h.apply(s,arguments)},n.ajax(u),this};c=encodeURIComponent;n.param=function(t,i){var r=[];return r.add=function(t,i){n.isFunction(i)&&(i=i());i==null&&(i="");this.push(c(t)+"="+c(i))},w(r,t,i),r.join("&").replace(/%20/g,"+")}}(Zepto),function(n){function r(n){return n._zid||(n._zid=nt++)}function y(n,t,i,u){if(t=p(t),t.ns)var e=tt(t.ns);return(f[r(n)]||[]).filter(function(n){return n&&(!t.e||n.e==t.e)&&(!t.ns||e.test(n.ns))&&(!i||r(n.fn)===r(i))&&(!u||n.sel==u)})}function p(n){var t=(""+n).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function tt(n){return new RegExp("(?:^| )"+n.replace(" "," .* ?")+"(?: |$)")}function w(n,t){return n.del&&!a&&n.e in h||!!t}function b(n){return v[n]||a&&h[n]||n}function k(t,u,o,s,h,c,l){var a=r(t),y=f[a]||(f[a]=[]);u.split(/\s/).forEach(function(r){var u,f;if(r=="ready")return n(document).ready(o);u=p(r);u.fn=o;u.sel=h;u.e in v&&(o=function(t){var i=t.relatedTarget;if(!i||i!==this&&!n.contains(this,i))return u.fn.apply(this,arguments)});u.del=c;f=c||o;u.proxy=function(n){if(n=e(n),!n.isImmediatePropagationStopped()){n.data=s;var r=f.apply(t,n._args==i?[n]:[n].concat(n._args));return r===!1&&(n.preventDefault(),n.stopPropagation()),r}};u.i=y.length;y.push(u);"addEventListener"in t&&t.addEventListener(b(u.e),u.proxy,w(u,l))})}function c(n,t,i,u,e){var o=r(n);(t||"").split(/\s/).forEach(function(t){y(n,t,i,u).forEach(function(t){delete f[o][t.i];"removeEventListener"in n&&n.removeEventListener(b(t.e),t.proxy,w(t,e))})})}function e(t,r){if(r||!t.isDefaultPrevented){r||(r=t);n.each(rt,function(n,i){var u=r[n];t[n]=function(){return this[i]=d,u&&u.apply(r,arguments)};t[i]=l});try{t.timeStamp||(t.timeStamp=Date.now())}catch(u){}(r.defaultPrevented!==i?r.defaultPrevented:"returnValue"in r?r.returnValue===!1:r.getPreventDefault&&r.getPreventDefault())&&(t.isDefaultPrevented=d)}return t}function g(n){var t,r={originalEvent:n};for(t in n)it.test(t)||n[t]===i||(r[t]=n[t]);return e(r,n)}var nt=1,i,o=Array.prototype.slice,s=n.isFunction,t=function(n){return typeof n=="string"},f={},u={},a="onfocusin"in window,h={focus:"focusin",blur:"focusout"},v={mouseenter:"mouseover",mouseleave:"mouseout"};u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents";n.event={add:k,remove:c};n.proxy=function(i,u){var f=2 in arguments&&o.call(arguments,2),e;if(s(i))return e=function(){return i.apply(u,f?f.concat(o.call(arguments)):arguments)},e._zid=r(i),e;if(t(u))return f?(f.unshift(i[u],i),n.proxy.apply(null,f)):n.proxy(i[u],i);throw new TypeError("expected function");};n.fn.bind=function(n,t,i){return this.on(n,t,i)};n.fn.unbind=function(n,t){return this.off(n,t)};n.fn.one=function(n,t,i,r){return this.on(n,t,i,r,1)};var d=function(){return!0},l=function(){return!1},it=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,rt={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};n.fn.delegate=function(n,t,i){return this.on(t,n,i)};n.fn.undelegate=function(n,t,i){return this.off(t,n,i)};n.fn.live=function(t,i){return n(document.body).delegate(this.selector,t,i),this};n.fn.die=function(t,i){return n(document.body).undelegate(this.selector,t,i),this};n.fn.on=function(r,u,f,e,h){var a,y,v=this;return r&&!t(r)?(n.each(r,function(n,t){v.on(n,u,f,t,h)}),v):(t(u)||s(e)||e===!1||(e=f,f=u,u=i),(e===i||f===!1)&&(e=f,f=i),e===!1&&(e=l),v.each(function(t,i){h&&(a=function(n){return c(i,n.type,e),e.apply(this,arguments)});u&&(y=function(t){var f,r=n(t.target).closest(u,i).get(0);if(r&&r!==i)return f=n.extend(g(t),{currentTarget:r,liveFired:i}),(a||e).apply(r,[f].concat(o.call(arguments,1)))});k(i,r,e,f,u,y||a)}))};n.fn.off=function(r,u,f){var e=this;return r&&!t(r)?(n.each(r,function(n,t){e.off(n,u,t)}),e):(t(u)||s(f)||f===!1||(f=u,u=i),f===!1&&(f=l),e.each(function(){c(this,r,f,u)}))};n.fn.trigger=function(i,r){return i=t(i)||n.isPlainObject(i)?n.Event(i):e(i),i._args=r,this.each(function(){i.type in h&&typeof this[i.type]=="function"?this[i.type]():"dispatchEvent"in this?this.dispatchEvent(i):n(this).triggerHandler(i,r)})};n.fn.triggerHandler=function(i,r){var u,f;return this.each(function(e,o){u=g(t(i)?n.Event(i):i);u._args=r;u.target=o;n.each(y(o,i.type||i),function(n,t){return f=t.proxy(u),u.isImmediatePropagationStopped()?!1:void 0})}),f};"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){n.fn[t]=function(n){return 0 in arguments?this.bind(t,n):this.trigger(t)}});n.Event=function(n,i){var f,o,r;if(t(n)||(i=n,n=i.type),f=document.createEvent(u[n]||"Events"),o=!0,i)for(r in i)r=="bubbles"?o=!!i[r]:f[r]=i[r];return f.initEvent(n,o,!0),e(f)}}(Zepto),typeof page!="undefined")if(page=="students"||page=="teachers"){ajaxBase="/ajax/"+page;cache={};dates.forEach(function(n){$.get(ajaxBase+"/"+n,function(t){cache[n]=t})});$(function(){cache[currentDate]=$("main").html();$("body").on("click","#previousdate, #nextdate",function(){displayDate($(this).data("date"))});$("body").on("change","#dateselector",function(){displayDate(this.value)})});function displayDate(n){n in cache&&$("main").html(cache[n])}}else page=="login"&&$(function(){$("#rememberme-label").on("click",function(){var n=$("#rememberme");n.prop("checked",!n.prop("checked"))})});console.log("Source code: https://github.com/DominikStiller/Vertretungsplan");document.cookie.indexOf("ga_optout=true")>-1&&(window["ga-disable-UA-99091816-1"]=!0);