/gi,v=/^(?:body|html)$/i,A=/([A-Z])/g,E=["val","css","html","text","data","width","height","offset"],y=d.createElement("table"),T=d.createElement("tr"),_={tr:d.createElement("tbody"),tbody:y,thead:y,tfoot:y,td:T,th:T,"*":d.createElement("div")},b=/complete|loaded|interactive/,S=/^[\w-]*$/,C={},R=C.toString,w={},k=d.createElement("div"),L={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},I=Array.isArray||function(e){return e instanceof Array};function O(e){return null==e?String(e):C[R.call(e)]||"object"}function D(e){return"function"==O(e)}function P(e){return null!=e&&e==e.window}function N(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function M(e){return"object"==O(e)}function x(e){return M(e)&&!P(e)&&Object.getPrototypeOf(e)==Object.prototype}function B(e){var t=!!e&&"length"in e&&e.length,n=i.type(e);return"function"!=n&&!P(e)&&("array"==n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function F(e){return e.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 U(e){return e in u?u[e]:u[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function $(e,t){return"number"!=typeof t||p[F(e)]?t:t+"px"}function V(e){return"children"in e?c.call(e.children):i.map(e.childNodes,(function(e){if(1==e.nodeType)return e}))}function z(e,t){var i,n=e?e.length:0;for(i=0;i$2>")),n===e&&(n=f.test(t)&&RegExp.$1),n in _||(n="*"),(a=_[n]).innerHTML=""+t,r=i.each(c.call(a.childNodes),(function(){a.removeChild(this)}))),x(s)&&(o=i(r),i.each(s,(function(e,t){E.indexOf(e)>-1?o[e](t):o.attr(e,t)}))),r},w.Z=function(e,t){return new z(e,t)},w.isZ=function(e){return e instanceof w.Z},w.init=function(t,n){var s,r;if(!t)return w.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&f.test(t))s=w.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=w.qsa(d,t)}else{if(D(t))return i(d).ready(t);if(w.isZ(t))return t;if(I(t))r=t,s=l.call(r,(function(e){return null!=e}));else if(M(t))s=[t],t=null;else if(f.test(t))s=w.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=w.qsa(d,t)}}return w.Z(s,t)},(i=function(e,t){return w.init(e,t)}).extend=function(e){var t,i=c.call(arguments,1);return"boolean"==typeof e&&(t=e,e=i.shift()),i.forEach((function(i){G(e,i,t)})),e},w.qsa=function(e,t){var i,n="#"==t[0],s=!n&&"."==t[0],r=n||s?t.slice(1):t,o=S.test(r);return e.getElementById&&o&&n?(i=e.getElementById(r))?[i]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:c.call(o&&!n&&e.getElementsByClassName?s?e.getElementsByClassName(r):e.getElementsByTagName(t):e.querySelectorAll(t))},i.contains=d.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},i.type=O,i.isFunction=D,i.isWindow=P,i.isArray=I,i.isPlainObject=x,i.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},i.isNumeric=function(e){var t=Number(e),i=typeof e;return null!=e&&"boolean"!=i&&("string"!=i||e.length)&&!isNaN(t)&&isFinite(t)||!1},i.inArray=function(e,t,i){return o.indexOf.call(t,e,i)},i.camelCase=s,i.trim=function(e){return null==e?"":String.prototype.trim.call(e)},i.uuid=0,i.support={},i.expr={},i.noop=function(){},i.map=function(e,t){var n,s,r,o,a=[];if(B(e))for(s=0;s0?i.fn.concat.apply([],o):o},i.each=function(e,t){var i,n;if(B(e)){for(i=0;i=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(e){return o.every.call(this,(function(t,i){return!1!==e.call(t,i,t)})),this},filter:function(e){return D(e)?this.not(this.not(e)):i(l.call(this,(function(t){return w.matches(t,e)})))},add:function(e,t){return i(r(this.concat(i(e,t))))},is:function(e){return this.length>0&&w.matches(this[0],e)},not:function(t){var n=[];if(D(t)&&t.call!==e)this.each((function(e){t.call(this,e)||n.push(this)}));else{var s="string"==typeof t?this.filter(t):B(t)&&D(t.item)?c.call(t):i(t);this.forEach((function(e){s.indexOf(e)<0&&n.push(e)}))}return i(n)},has:function(e){return this.filter((function(){return M(e)?i.contains(this,e):i(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&&!M(e)?e:i(e)},last:function(){var e=this[this.length-1];return e&&!M(e)?e:i(e)},find:function(e){var t=this;return e?"object"==typeof e?i(e).filter((function(){var e=this;return o.some.call(t,(function(t){return i.contains(t,e)}))})):1==this.length?i(w.qsa(this[0],e)):this.map((function(){return w.qsa(this,e)})):i()},closest:function(e,t){var n=[],s="object"==typeof e&&i(e);return this.each((function(i,r){for(;r&&!(s?s.indexOf(r)>=0:w.matches(r,e));)r=r!==t&&!N(r)&&r.parentNode;r&&n.indexOf(r)<0&&n.push(r)})),i(n)},parents:function(e){for(var t=[],n=this;n.length>0;)n=i.map(n,(function(e){if((e=e.parentNode)&&!N(e)&&t.indexOf(e)<0)return t.push(e),e}));return K(t,e)},parent:function(e){return K(r(this.pluck("parentNode")),e)},children:function(e){return K(this.map((function(){return V(this)})),e)},contents:function(){return this.map((function(){return this.contentDocument||c.call(this.childNodes)}))},siblings:function(e){return K(this.map((function(e,t){return l.call(V(t.parentNode),(function(e){return e!==t}))})),e)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(e){return i.map(this,(function(t){return t[e]}))},show:function(){return this.each((function(){var e,t,i;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(e=this.nodeName,h[e]||(t=d.createElement(e),d.body.appendChild(t),i=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==i&&(i="block"),h[e]=i),h[e]))}))},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var t=D(e);if(this[0]&&!t)var n=i(e).get(0),s=n.parentNode||this.length>1;return this.each((function(r){i(this).wrapAll(t?e.call(this,r):s?n.cloneNode(!0):n)}))},wrapAll:function(e){if(this[0]){var t;for(i(this[0]).before(e=i(e));(t=e.children()).length;)e=t.first();i(e).append(this)}return this},wrapInner:function(e){var t=D(e);return this.each((function(n){var s=i(this),r=s.contents(),o=t?e.call(this,n):e;r.length?r.wrapAll(o):s.append(o)}))},unwrap:function(){return this.parent().each((function(){i(this).replaceWith(i(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=i(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()}))},prev:function(e){return i(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return i(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each((function(t){var n=this.innerHTML;i(this).empty().append(j(this,e,t,n))})):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each((function(t){var i=j(this,e,t,this.textContent);this.textContent=null==i?"":""+i})):0 in this?this.pluck("textContent").join(""):null},attr:function(i,n){var s;return"string"!=typeof i||1 in arguments?this.each((function(e){if(1===this.nodeType)if(M(i))for(t in i)Y(this,t,i[t]);else Y(this,i,j(this,n,e,this.getAttribute(i)))})):0 in this&&1==this[0].nodeType&&null!=(s=this[0].getAttribute(i))?s:e},removeAttr:function(e){return this.each((function(){1===this.nodeType&&e.split(" ").forEach((function(e){Y(this,e)}),this)}))},prop:function(e,t){return e=L[e]||e,1 in arguments?this.each((function(i){this[e]=j(this,t,i,this[e])})):this[0]&&this[0][e]},removeProp:function(e){return e=L[e]||e,this.each((function(){delete this[e]}))},data:function(t,i){var n="data-"+t.replace(A,"-$1").toLowerCase(),s=1 in arguments?this.attr(n,i):this.attr(n);return null!==s?W(s):e},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each((function(t){this.value=j(this,e,t,this.value)}))):this[0]&&(this[0].multiple?i(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=i(this),s=j(this,e,t,n.offset()),r=n.offsetParent().offset(),o={top:s.top-r.top,left:s.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)}));if(!this.length)return null;if(d.documentElement!==this[0]&&!i.contains(d.documentElement,this[0]))return{top:0,left:0};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(e,n){if(arguments.length<2){var r=this[0];if("string"==typeof e){if(!r)return;return r.style[s(e)]||getComputedStyle(r,"").getPropertyValue(e)}if(I(e)){if(!r)return;var o={},a=getComputedStyle(r,"");return i.each(e,(function(e,t){o[t]=r.style[s(t)]||a.getPropertyValue(t)})),o}}var l="";if("string"==O(e))n||0===n?l=F(e)+":"+$(e,n):this.each((function(){this.style.removeProperty(F(e))}));else for(t in e)e[t]||0===e[t]?l+=F(t)+":"+$(t,e[t])+";":this.each((function(){this.style.removeProperty(F(t))}));return this.each((function(){this.style.cssText+=";"+l}))},index:function(e){return e?this.indexOf(i(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return!!e&&o.some.call(this,(function(e){return this.test(H(e))}),U(e))},addClass:function(e){return e?this.each((function(t){if("className"in this){n=[];var s=H(this);j(this,e,t,s).split(/\s+/g).forEach((function(e){i(this).hasClass(e)||n.push(e)}),this),n.length&&H(this,s+(s?" ":"")+n.join(" "))}})):this},removeClass:function(t){return this.each((function(i){if("className"in this){if(t===e)return H(this,"");n=H(this),j(this,t,i,n).split(/\s+/g).forEach((function(e){n=n.replace(U(e)," ")})),H(this,n.trim())}}))},toggleClass:function(t,n){return t?this.each((function(s){var r=i(this);j(this,t,s,H(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 i="scrollTop"in this[0];return t===e?i?this[0].scrollTop:this[0].pageYOffset:this.each(i?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var i="scrollLeft"in this[0];return t===e?i?this[0].scrollLeft:this[0].pageXOffset:this.each(i?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),n=this.offset(),s=v.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(i(e).css("margin-top"))||0,n.left-=parseFloat(i(e).css("margin-left"))||0,s.top+=parseFloat(i(t[0]).css("border-top-width"))||0,s.left+=parseFloat(i(t[0]).css("border-left-width"))||0,{top:n.top-s.top,left:n.left-s.left}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||d.body;e&&!v.test(e.nodeName)&&"static"==i(e).css("position");)e=e.offsetParent;return e}))}},i.fn.detach=i.fn.remove,["width","height"].forEach((function(t){var n=t.replace(/./,(function(e){return e[0].toUpperCase()}));i.fn[t]=function(s){var r,o=this[0];return s===e?P(o)?o["inner"+n]:N(o)?o.documentElement["scroll"+n]:(r=this.offset())&&r[t]:this.each((function(e){(o=i(this)).css(t,j(this,s,e,o[t]()))}))}})),["after","prepend","before","append"].forEach((function(t,n){var s=n%2;i.fn[t]=function(){var t,r,o=i.map(arguments,(function(n){var s=[];return"array"==(t=O(n))?(n.forEach((function(t){return t.nodeType!==e?s.push(t):i.zepto.isZ(t)?s=s.concat(t.get()):void(s=s.concat(w.fragment(t)))})),s):"object"==t||null==n?n:w.fragment(n)})),a=this.length>1;return o.length<1?this:this.each((function(e,t){r=s?t:t.parentNode,t=0==n?t.nextSibling:1==n?t.firstChild:2==n?t:null;var l=i.contains(d.documentElement,r);o.forEach((function(e){if(a)e=e.cloneNode(!0);else if(!r)return i(e).remove();r.insertBefore(e,t),l&&q(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var t=e.ownerDocument?e.ownerDocument.defaultView:window;t.eval.call(t,e.innerHTML)}}))}))}))},i.fn[s?t+"To":"insert"+(n?"Before":"After")]=function(e){return i(e)[t](this),this}})),w.Z.prototype=z.prototype=i.fn,w.uniq=r,w.deserializeValue=W,i.zepto=w,i}();window.Zepto=t,void 0===window.$&&(window.$=t),function(e){var t,i,n=+new Date,s=window.document,r=/