!function(t){t.expr={":":{}},t.support={},t.fn.clone=function(){var e=t();return this.each(function(){e.push(this.cloneNode(!0))}),e},["Left","Top"].forEach(function(e,o){var n="scroll"+e;function r(t){return(e=t)&&"object"==typeof e&&"setInterval"in e?t:9===t.nodeType&&(t.defaultView||t.parentWindow);var e}t.fn[n]=function(e){var i,f;if(void 0===e)return(i=this[0])?(f=r(i))?"pageXOffset"in f?f[o?"pageYOffset":"pageXOffset"]:f.document.documentElement[n]||f.document.body[n]:i[n]:null;this.each(function(){if(f=r(this)){var i=o?t(f).scrollLeft():e,a=o?e:t(f).scrollTop();f.scrollTo(i,a)}else this[n]=e})}}),["width","height"].forEach(function(e){var o=e.replace(/./,function(t){return t[0].toUpperCase()});t.fn["outer"+o]=function(t){var o=this;if(o){var n=o[e]();return{width:["left","right"],height:["top","bottom"]}[e].forEach(function(e){t&&(n+=parseInt(o.css("margin-"+e),10))}),n}return null}}),t.proxy=function(e,o){if("string"==typeof o){var n=e[o];o=e,e=n}if(t.isFunction(e)){var r=Array.prototype.slice.call(arguments,2),i=function(){return e.apply(o,r.concat(Array.prototype.slice.call(arguments)))};return i.guid=e.guid=e.guid||i.guid||t.guid++,i}};var e=String.prototype.trim;t.trim=function(t,o){return!o&&e?e.call(t):(o=defaultToWhiteSpace(o),t.replace(new RegExp("^["+o+"]+|["+o+"]+$","g"),""))};var o=/^(?:body|html)$/i;t.fn.position=function(){if(!this[0])return null;var e=this[0],n=this.offsetParent(),r=this.offset(),i=o.test(n[0].nodeName)?{top:0,left:0}:n.offset();return r.top-=parseFloat(t(e).css("margin-top"))||0,r.left-=parseFloat(t(e).css("margin-left"))||0,i.top+=parseFloat(t(n[0]).css("border-top-width"))||0,i.left+=parseFloat(t(n[0]).css("border-left-width"))||0,{top:r.top-i.top,left:r.left-i.left}},t.fn.offsetParent=function(){var e=t();return this.each(function(){for(var n=this.offsetParent||document.body;n&&!o.test(n.nodeName)&&"static"===t(n).css("position");)n=n.offsetParent;e.push(n)}),e}}(Zepto);