(function(a){typeof define=='function'&&define.amd?define(['jquery'],a):a(jQuery)})(function(c,e){var v=6,a=c.event.add,b=c.event.remove,g=function(a,b,d){c.event.trigger(b,d,a)},L=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a,b){return window.setTimeout(function(){a()},25)}}(),j={textarea:!0,input:!0,select:!0,button:!0},d={move:'mousemove',cancel:'mouseup dragstart',end:'mouseup'},f={move:'touchmove',cancel:'touchend',end:'touchend'};function K(e){var c=e,a=!1,b=!1;function d(e){a?(c(),L(d),b=!0,a=!1):b=!1}this.kick=function(c){a=!0,b||d()},this.end=function(d){var e=c;if(!d)return;b?(c=a?function(){e(),d()}:d,a=!0):d()}}function I(){return!0}function m(){return!1}function n(a){a.preventDefault()}function o(a){if(j[a.target.tagName.toLowerCase()])return;a.preventDefault()}function H(a){return a.which===1&&!a.ctrlKey&&!a.altKey}function h(a,c){var b,d;if(a.identifiedTouch)return a.identifiedTouch(c);for(b=-1,d=a.length;++b