!function(t,e,i,n){"use strict";function r(t,e,i){return setTimeout(c(t,i),e)}function s(t,e,i){return Array.isArray(t)?(o(t,i[e],i),!0):!1}function o(t,e,i){var r;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(r=0;r<t.length;)e.call(i,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function a(t,e,i){for(var r=Object.keys(e),s=0;s<r.length;)(!i||i&&t[r[s]]===n)&&(t[r[s]]=e[r[s]]),s++;return t}function u(t,e){return a(t,e,!0)}function h(t,e,i){var n,r=e.prototype;n=t.prototype=Object.create(r),n.constructor=t,n._super=r,i&&a(n,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function l(t,e){return typeof t==ce?t.apply(e?e[0]||n:n,e):t}function p(t,e){return t===n?e:t}function f(t,e,i){o(g(e),function(e){t.addEventListener(e,i,!1)})}function d(t,e,i){o(g(e),function(e){t.removeEventListener(e,i,!1)})}function v(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return t.indexOf(e)>-1}function g(t){return t.trim().split(/\s+/g)}function y(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function T(t){return Array.prototype.slice.call(t,0)}function E(t,e,i){for(var n=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];y(r,o)<0&&n.push(t[s]),r[s]=o,s++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function I(t,e){for(var i,r,s=e[0].toUpperCase()+e.slice(1),o=0;o<ue.length;){if(i=ue[o],r=i?i+s:e,r in t)return r;o++}return n}function A(){return de++}function _(e){var i=e.ownerDocument||e;return i.defaultView||i.parentWindow||t}function D(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){l(t.options.enable,[t])&&i.handler(e)},this.init()}function w(t){var e,i=t.options.inputClass;return new(e=i?i:ge?F:ye?H:me?j:q)(t,S)}function S(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,s=e&De&&n-r===0,o=e&(Se|be)&&n-r===0;i.isFirst=!!s,i.isFinal=!!o,s&&(t.session={}),i.eventType=e,b(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function b(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=C(e)),r>1&&!i.firstMultiple?i.firstMultiple=C(e):1===r&&(i.firstMultiple=!1);var s=i.firstInput,o=i.firstMultiple,a=o?o.center:s.center,u=e.center=R(n);e.timeStamp=fe(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=X(a,u),e.distance=N(a,u),x(i,e),e.offsetDirection=M(e.deltaX,e.deltaY);var h=z(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=pe(h.x)>pe(h.y)?h.x:h.y,e.scale=o?O(o.pointers,n):1,e.rotation=o?Y(o.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,P(i,e);var c=t.element;v(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function x(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};(e.eventType===De||s.eventType===Se)&&(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}function P(t,e){var i,r,s,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!=be&&(u>_e||a.velocity===n)){var h=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,l=z(u,h,c);r=l.x,s=l.y,i=pe(l.x)>pe(l.y)?l.x:l.y,o=M(h,c),t.lastInterval=e}else i=a.velocity,r=a.velocityX,s=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=r,e.velocityY=s,e.direction=o}function C(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:le(t.pointers[i].clientX),clientY:le(t.pointers[i].clientY)},i++;return{timeStamp:fe(),pointers:e,center:R(e),deltaX:t.deltaX,deltaY:t.deltaY}}function R(t){var e=t.length;if(1===e)return{x:le(t[0].clientX),y:le(t[0].clientY)};for(var i=0,n=0,r=0;e>r;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:le(i/e),y:le(n/e)}}function z(t,e,i){return{x:e/t||0,y:i/t||0}}function M(t,e){return t===e?xe:pe(t)>=pe(e)?0>t?Pe:Ce:0>e?Re:ze}function N(t,e,i){i||(i=Ye);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function X(t,e,i){i||(i=Ye);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function Y(t,e){return X(e[1],e[0],Oe)+X(t[1],t[0],Oe)}function O(t,e){return N(e[0],e[1],Oe)/N(t[0],t[1],Oe)}function q(){this.evEl=Fe,this.evWin=We,this.allow=!0,this.pressed=!1,D.apply(this,arguments)}function F(){this.evEl=Ve,this.evWin=je,D.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function W(){this.evTarget=Ue,this.evWin=Ge,this.started=!1,D.apply(this,arguments)}function L(t,e){var i=T(t.touches),n=T(t.changedTouches);return e&(Se|be)&&(i=E(i.concat(n),"identifier",!0)),[i,n]}function H(){this.evTarget=Be,this.targetIds={},D.apply(this,arguments)}function V(t,e){var i=T(t.touches),n=this.targetIds;if(e&(De|we)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,s,o=T(t.changedTouches),a=[],u=this.target;if(s=i.filter(function(t){return v(t.target,u)}),e===De)for(r=0;r<s.length;)n[s[r].identifier]=!0,r++;for(r=0;r<o.length;)n[o[r].identifier]&&a.push(o[r]),e&(Se|be)&&delete n[o[r].identifier],r++;return a.length?[E(s.concat(a),"identifier",!0),a]:void 0}function j(){D.apply(this,arguments);var t=c(this.handler,this);this.touch=new H(this.manager,t),this.mouse=new q(this.manager,t)}function k(t,e){this.manager=t,this.set(e)}function U(t){if(m(t,ei))return ei;var e=m(t,ii),i=m(t,ni);return e&&i?ei:e||i?e?ii:ni:m(t,ti)?ti:$e}function G(t){t=a({},t||{}),this.id=A(),this.manager=null,this.options=u(t,this.defaults),this.options.enable=p(this.options.enable,!0),this.state=ri,this.simultaneous={},this.requireFail=[]}function Z(t){return t&hi?"cancel":t&ai?"end":t&oi?"move":t&si?"start":""}function B(t){return t==ze?"down":t==Re?"up":t==Pe?"left":t==Ce?"right":""}function Q(t,e){var i=e.manager;return i?i.get(t):t}function J(){G.apply(this,arguments)}function K(){J.apply(this,arguments),this.pX=null,this.pY=null}function $(){J.apply(this,arguments)}function te(){G.apply(this,arguments),this._timer=null,this._input=null}function ee(){J.apply(this,arguments)}function ie(){J.apply(this,arguments)}function ne(){G.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function re(t,e){return e=e||{},e.recognizers=p(e.recognizers,re.defaults.preset),new se(t,e)}function se(t,e){var i=e?a({},e):{};this.options=u(i,re.defaults),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.element=t,this.input=w(this),this.touchAction=new k(this,this.options.touchAction),oe(this,!0),o(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function oe(t,e){var i=t.element;i.style&&o(t.options.cssProps,function(t,n){i.style[I(i.style,n)]=e?t:""})}function ae(t,i){var n=e.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var ue=["","webkit","moz","MS","ms","o"],he=e.createElement("div"),ce="function",le=Math.round,pe=Math.abs,fe=Date.now,de=1,ve=/mobile|tablet|ip(ad|hone|od)|android/i,me="ontouchstart"in t,ge=I(t,"PointerEvent")!==n,ye=me&&ve.test(navigator.userAgent),Te="touch",Ee="pen",Ie="mouse",Ae="kinect",_e=25,De=1,we=2,Se=4,be=8,xe=1,Pe=2,Ce=4,Re=8,ze=16,Me=Pe|Ce,Ne=Re|ze,Xe=Me|Ne,Ye=["x","y"],Oe=["clientX","clientY"];D.prototype={handler:function(){},init:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(_(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&d(this.element,this.evEl,this.domHandler),this.evTarget&&d(this.target,this.evTarget,this.domHandler),this.evWin&&d(_(this.element),this.evWin,this.domHandler)}};var qe={mousedown:De,mousemove:we,mouseup:Se},Fe="mousedown",We="mousemove mouseup";h(q,D,{handler:function(t){var e=qe[t.type];e&De&&0===t.button&&(this.pressed=!0),e&we&&1!==t.which&&(e=Se),this.pressed&&this.allow&&(e&Se&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Ie,srcEvent:t}))}});var Le={pointerdown:De,pointermove:we,pointerup:Se,pointercancel:be,pointerout:be},He={2:Te,3:Ee,4:Ie,5:Ae},Ve="pointerdown",je="pointermove pointerup pointercancel";t.MSPointerEvent&&(Ve="MSPointerDown",je="MSPointerMove MSPointerUp MSPointerCancel"),h(F,D,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=Le[n],s=He[t.pointerType]||t.pointerType,o=s==Te,a=y(e,t.pointerId,"pointerId");r&De&&(0===t.button||o)?0>a&&(e.push(t),a=e.length-1):r&(Se|be)&&(i=!0),0>a||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),i&&e.splice(a,1))}});var ke={touchstart:De,touchmove:we,touchend:Se,touchcancel:be},Ue="touchstart",Ge="touchstart touchmove touchend touchcancel";h(W,D,{handler:function(t){var e=ke[t.type];if(e===De&&(this.started=!0),this.started){var i=L.call(this,t,e);e&(Se|be)&&i[0].length-i[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Te,srcEvent:t})}}});var Ze={touchstart:De,touchmove:we,touchend:Se,touchcancel:be},Be="touchstart touchmove touchend touchcancel";h(H,D,{handler:function(t){var e=Ze[t.type],i=V.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Te,srcEvent:t})}}),h(j,D,{handler:function(t,e,i){var n=i.pointerType==Te,r=i.pointerType==Ie;if(n)this.mouse.allow=!1;else if(r&&!this.mouse.allow)return;e&(Se|be)&&(this.mouse.allow=!0),this.callback(t,e,i)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Qe=I(he.style,"touchAction"),Je=Qe!==n,Ke="compute",$e="auto",ti="manipulation",ei="none",ii="pan-x",ni="pan-y";k.prototype={set:function(t){t==Ke&&(t=this.compute()),Je&&this.manager.element.style&&(this.manager.element.style[Qe]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return o(this.manager.recognizers,function(e){l(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),U(t.join(" "))},preventDefaults:function(t){if(!Je){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var n=this.actions,r=m(n,ei),s=m(n,ni),o=m(n,ii);if(r){var a=1===t.pointers.length,u=t.distance<2,h=t.deltaTime<250;if(a&&u&&h)return}if(!o||!s)return r||s&&i&Me||o&&i&Ne?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ri=1,si=2,oi=4,ai=8,ui=ai,hi=16,ci=32;G.prototype={defaults:{},set:function(t){return a(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(s(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=Q(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return s(t,"dropRecognizeWith",this)?this:(t=Q(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(s(t,"requireFailure",this))return this;var e=this.requireFail;return t=Q(t,this),-1===y(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(s(t,"dropRequireFailure",this))return this;t=Q(t,this);var e=y(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,n=this.state;ai>n&&e(i.options.event+Z(n)),e(i.options.event),t.additionalEvent&&e(t.additionalEvent),n>=ai&&e(i.options.event+Z(n))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=ci)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(ci|ri)))return!1;t++}return!0},recognize:function(t){var e=a({},t);return l(this.options.enable,[this,e])?(this.state&(ui|hi|ci)&&(this.state=ri),this.state=this.process(e),void(this.state&(si|oi|ai|hi)&&this.tryEmit(e))):(this.reset(),void(this.state=ci))},process:function(){},getTouchAction:function(){},reset:function(){}},h(J,G,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&(si|oi),r=this.attrTest(t);return n&&(i&be||!r)?e|hi:n||r?i&Se?e|ai:e&si?e|oi:si:ci}}),h(K,J,{defaults:{event:"pan",threshold:10,pointers:1,direction:Xe},getTouchAction:function(){var t=this.options.direction,e=[];return t&Me&&e.push(ni),t&Ne&&e.push(ii),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(e.direction&Me?(r=0===s?xe:0>s?Pe:Ce,i=s!=this.pX,n=Math.abs(t.deltaX)):(r=0===o?xe:0>o?Re:ze,i=o!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return J.prototype.attrTest.call(this,t)&&(this.state&si||!(this.state&si)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=B(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),h($,J,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ei]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&si)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),h(te,G,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[$e]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,s=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(Se|be)&&!s)this.reset();else if(t.eventType&De)this.reset(),this._timer=r(function(){this.state=ui,this.tryEmit()},e.time,this);else if(t.eventType&Se)return ui;return ci},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ui&&(t&&t.eventType&Se?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=fe(),this.manager.emit(this.options.event,this._input)))}}),h(ee,J,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ei]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&si)}}),h(ie,J,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Me|Ne,pointers:1},getTouchAction:function(){return K.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Me|Ne)?e=t.overallVelocity:i&Me?e=t.overallVelocityX:i&Ne&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&pe(e)>this.options.velocity&&t.eventType&Se},emit:function(t){var e=B(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(ne,G,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ti]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,s=t.deltaTime<e.time;if(this.reset(),t.eventType&De&&0===this.count)return this.failTimeout();if(n&&s&&i){if(t.eventType!=Se)return this.failTimeout();var o=this.pTime?t.timeStamp-this.pTime<e.interval:!0,a=!this.pCenter||N(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t;var u=this.count%e.taps;if(0===u)return this.hasRequireFailures()?(this._timer=r(function(){this.state=ui,this.tryEmit()},e.interval,this),si):ui}return ci},failTimeout:function(){return this._timer=r(function(){this.state=ci},this.options.interval,this),ci},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ui&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),re.VERSION="2.0.4",re.defaults={domEvents:!1,touchAction:Ke,enable:!0,inputTarget:null,inputClass:null,preset:[[ee,{enable:!1}],[$,{enable:!1},["rotate"]],[ie,{direction:Me}],[K,{direction:Me},["swipe"]],[ne],[ne,{event:"doubletap",taps:2},["tap"]],[te]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var li=1,pi=2;se.prototype={set:function(t){return a(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?pi:li},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ui)&&(r=e.curRecognizer=null);for(var s=0;s<n.length;)i=n[s],e.stopped===pi||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(si|oi|ai)&&(r=e.curRecognizer=i),s++}},get:function(t){if(t instanceof G)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(s(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(s(t,"remove",this))return this;var e=this.recognizers;return t=this.get(t),e.splice(y(e,t),1),this.touchAction.update(),this},on:function(t,e){var i=this.handlers;return o(g(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this},off:function(t,e){var i=this.handlers;return o(g(t),function(t){e?i[t]&&i[t].splice(y(i[t],e),1):delete i[t]}),this},emit:function(t,e){this.options.domEvents&&ae(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&oe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(re,{INPUT_START:De,INPUT_MOVE:we,INPUT_END:Se,INPUT_CANCEL:be,STATE_POSSIBLE:ri,STATE_BEGAN:si,STATE_CHANGED:oi,STATE_ENDED:ai,STATE_RECOGNIZED:ui,STATE_CANCELLED:hi,STATE_FAILED:ci,DIRECTION_NONE:xe,DIRECTION_LEFT:Pe,DIRECTION_RIGHT:Ce,DIRECTION_UP:Re,DIRECTION_DOWN:ze,DIRECTION_HORIZONTAL:Me,DIRECTION_VERTICAL:Ne,DIRECTION_ALL:Xe,Manager:se,Input:D,TouchAction:k,TouchInput:H,MouseInput:q,PointerEventInput:F,TouchMouseInput:j,SingleTouchInput:W,Recognizer:G,AttrRecognizer:J,Tap:ne,Pan:K,Swipe:ie,Pinch:$,Rotate:ee,Press:te,on:f,off:d,each:o,merge:u,extend:a,inherit:h,bindFn:c,prefixed:I}),"function"==typeof define&&define.amd?define(function(){return re}):"undefined"!=typeof module&&module.exports?module.exports=re:t[i]=re}(window,document,"Hammer"),function(t){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],t):"object"==typeof exports&&"function"==typeof require?t(require("jquery"),require("hammerjs")):t(jQuery,Hammer)}(function(t,e){function i(i,n){var r=t(i);r.data("hammer")||r.data("hammer",new e(r[0],n))}t.fn.hammer=function(t){return this.each(function(){i(this,t)})},e.Manager.prototype.emit=function(e){return function(i,n){e.call(this,i,n),t(this.element).trigger({type:i,gesture:n})}}(e.Manager.prototype.emit)});