/*
 jQuery Mousewheel 3.1.13
 Copyright OpenJS Foundation and other contributors
*/
(function(c){"function"===typeof define&&define.amd?define(["jquery"],c):"object"===typeof exports?module.exports=c:c(window.jq)})(function(c){function m(a){var b=a||window.event,p=t.call(arguments,1),e=0,d=0;a=c.event.fix(b);a.type="mousewheel";"detail"in b&&(d=-1*b.detail);"wheelDelta"in b&&(d=b.wheelDelta);"wheelDeltaY"in b&&(d=b.wheelDeltaY);"wheelDeltaX"in b&&(e=-1*b.wheelDeltaX);"axis"in b&&b.axis===b.HORIZONTAL_AXIS&&(e=-1*d,d=0);var g=0===d?e:d;"deltaY"in b&&(g=d=-1*b.deltaY);"deltaX"in b&&
(e=b.deltaX,0===d&&(g=-1*e));if(0!==d||0!==e){if(1===b.deltaMode){var f=c.data(this,"mousewheel-line-height");g*=f;d*=f;e*=f}else 2===b.deltaMode&&(f=c.data(this,"mousewheel-page-height"),g*=f,d*=f,e*=f);f=Math.max(Math.abs(d),Math.abs(e));if(!h||f<h)h=f,k.settings.adjustOldDeltas&&"mousewheel"===b.type&&0===f%120&&(h/=40);k.settings.adjustOldDeltas&&"mousewheel"===b.type&&0===f%120&&(g/=40,e/=40,d/=40);g=Math[1<=g?"floor":"ceil"](g/h);e=Math[1<=e?"floor":"ceil"](e/h);d=Math[1<=d?"floor":"ceil"](d/
h);k.settings.normalizeOffset&&this.getBoundingClientRect&&(b=this.getBoundingClientRect(),a.offsetX=a.clientX-b.left,a.offsetY=a.clientY-b.top);a.deltaX=e;a.deltaY=d;a.deltaFactor=h;a.deltaMode=0;p.unshift(a,g,e,d);n&&window.clearTimeout(n);n=window.setTimeout(u,200);return(c.event.dispatch||c.event.handle).apply(this,p)}}function u(){h=null}var q=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],l="onwheel"in window.document||9<=window.document.documentMode?["wheel"]:["mousewheel","DomMouseScroll",
"MozMousePixelScroll"],t=Array.prototype.slice,n,h;if(c.event.fixHooks)for(var r=q.length;r;)c.event.fixHooks[q[--r]]=c.event.mouseHooks;var k=c.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=l.length;a;)this.addEventListener(l[--a],m,!1);else this.onmousewheel=m;c.data(this,"mousewheel-line-height",k.getLineHeight(this));c.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=l.length;a;)this.removeEventListener(l[--a],
m,!1);else this.onmousewheel=null;c.removeData(this,"mousewheel-line-height");c.removeData(this,"mousewheel-page-height")},getLineHeight:function(a){a=c(a);var b=a["offsetParent"in c.fn?"offsetParent":"parent"]();b.length||(b=c("body"));return parseInt(b.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(a){return c(a).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};c.fn.extend({mousewheel:function(a){return a?this.on("mousewheel",a):this.trigger("mousewheel")},
unmousewheel:function(a){return this.off("mousewheel",a)}})});
