/*!
 * hoverIntent v1.10.1 // 2019.10.05 // jQuery v1.7.0+
 * http://briancherne.github.io/jquery-hoverIntent/
 *
 * You may use hoverIntent under the terms of the MIT license. Basically that
 * means you are free to use hoverIntent as long as this header is left intact.
 * Copyright 2007-2019 Brian Cherne
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}((function(e){"use strict";var t,n,o={interval:100,sensitivity:6,timeout:0},i=0,r=function(e){t=e.pageX,n=e.pageY},u=function(e,o,i,v){if(Math.sqrt((i.pX-t)*(i.pX-t)+(i.pY-n)*(i.pY-n))<v.sensitivity)return o.off(i.event,r),delete i.timeoutId,i.isActive=!0,e.pageX=t,e.pageY=n,delete i.pX,delete i.pY,v.over.apply(o[0],[e]);i.pX=t,i.pY=n,i.timeoutId=setTimeout((function(){u(e,o,i,v)}),v.interval)},v=function(e){return"function"==typeof e};e.fn.hoverIntent=function(t,n,f){var a=i++,d=e.extend({},o);e.isPlainObject(t)?(d=e.extend(d,t),v(d.out)||(d.out=d.over)):d=v(n)?e.extend(d,{over:t,out:n,selector:f}):e.extend(d,{over:t,out:t,selector:n});var s=function(t){var n=e.extend({},t),o=e(this),i=o.data("hoverIntent");i||o.data("hoverIntent",i={});var v=i[a];v||(i[a]=v={id:a}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId));var f=v.event="mousemove.hoverIntent.hoverIntent"+a;if("mouseenter"===t.type){if(v.isActive)return;v.pX=n.pageX,v.pY=n.pageY,o.off(f,r).on(f,r),v.timeoutId=setTimeout((function(){u(n,o,v,d)}),d.interval)}else{if(!v.isActive)return;o.off(f,r),v.timeoutId=setTimeout((function(){!function(e,t,n,o){var i=t.data("hoverIntent");i&&delete i[n.id],o.apply(t[0],[e])}(n,o,v,d.out)}),d.timeout)}};return this.on({"mouseenter.hoverIntent":s,"mouseleave.hoverIntent":s},d.selector)}}));
