diff --git a/README.md b/README.md index ab89240..b53a630 100644 --- a/README.md +++ b/README.md @@ -212,7 +212,7 @@ Take the table below only as a overview of all options. autoHide string "never" - The possibility to hide visible scrollbars after a certain action. + The possibility to hide visible scrollbars automatically after a certain action. diff --git a/css/OverlayScrollbars.css b/css/OverlayScrollbars.css index 89f494f..49ddb39 100644 --- a/css/OverlayScrollbars.css +++ b/css/OverlayScrollbars.css @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.3.0 + * Version: 1.4.0 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 26.02.2018 + * Date: 02.03.2018 */ /* diff --git a/css/OverlayScrollbars.min.css b/css/OverlayScrollbars.min.css index a1d6a7f..186e8d1 100644 --- a/css/OverlayScrollbars.min.css +++ b/css/OverlayScrollbars.min.css @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.3.0 + * Version: 1.4.0 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 26.02.2018 + * Date: 02.03.2018 */ html.os-html,html.os-html > .os-host{display:block;overflow:hidden;box-sizing:border-box;height:100%!important;width:100%!important;min-width:100%!important;min-height:100%!important;margin:0!important;position:absolute!important}html.os-html > .os-host > .os-padding{position:absolute}body.os-dragging,body.os-dragging *{cursor:default}.os-host,.os-host-textarea{position:relative;overflow:visible!important}#hs-dummy-scrollbar-size{position:fixed;opacity:0;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);visibility:hidden;overflow:scroll;height:500px;width:500px}#hs-dummy-scrollbar-size,.os-viewport{-ms-overflow-style:scrollbar!important}.os-viewport-native-scrollbars-invisible#hs-dummy-scrollbar-size::-webkit-scrollbar,.os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar,.os-viewport-native-scrollbars-invisible#hs-dummy-scrollbar-size::-webkit-scrollbar-corner,.os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner{display:none!important;width:0!important;height:0!important;visibility:hidden!important;background:transparent!important}.os-content-glue{max-height:100%;max-width:100%;width:100%;pointer-events:none}.os-padding{direction:inherit;position:absolute;overflow:visible;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:1}.os-host-overflow > .os-padding{overflow:hidden}.os-viewport{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;overflow:hidden;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.os-content-arrange{position:absolute;z-index:-1;min-height:1px;min-width:1px;pointer-events:none}.os-content{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:100%;height:100%;width:100%;visibility:visible}.os-host-textarea > .os-padding > .os-content{overflow:hidden!important}.os-content > .os-textarea{direction:inherit!important;float:none!important;margin:0!important;max-height:none!important;max-width:none!important;border:none!important;border-radius:0!important;background:transparent!important;outline:0 none transparent!important;overflow:hidden!important;resize:none!important;position:absolute!important;top:0!important;left:0!important;z-index:1;padding:0}.os-host-rtl > .os-padding > .os-viewport > .os-content > .os-textarea{right:0!important}.os-content > .os-textarea-cover{z-index:-1;pointer-events:none}.os-content > .os-textarea[wrap='off']{white-space:pre!important;margin:0!important}.os-text-inherit{font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;text-transform:inherit;text-decoration:inherit;text-indent:inherit;text-align:inherit;text-shadow:inherit;text-overflow:inherit;letter-spacing:inherit;word-spacing:inherit;line-height:inherit;unicode-bidi:inherit;direction:inherit;color:inherit;cursor:text}.os-resize-observer,.os-resize-observer-host{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.os-resize-observer-host{padding:inherit;border:inherit;border-color:transparent;border-style:solid;box-sizing:border-box}.os-resize-observer-host:after{content:''}.os-resize-observer-host > .os-resize-observer,.os-resize-observer-host:after{height:200%;width:200%;padding:inherit;border:inherit;margin:0;display:block;box-sizing:content-box}.os-resize-observer.observed,object.os-resize-observer{box-sizing:border-box!important}.os-size-auto-observer{box-sizing:inherit!important;height:100%;width:inherit;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none}.os-size-auto-observer > .os-resize-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}.os-resize-observer-item{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;z-index:-1;opacity:0;direction:ltr!important;-webkit-box-flex:0!important;-ms-flex:none!important;flex:none!important}.os-resize-observer-item-final{position:absolute;left:0;top:0;-webkit-transition:none!important;transition:none!important;-webkit-box-flex:0!important;-ms-flex:none!important;flex:none!important}.os-resize-observer{-webkit-animation-duration:.001s;animation-duration:.001s;-webkit-animation-name:hs-resize-observer-dummy-animation;animation-name:hs-resize-observer-dummy-animation}.os-host-transition > .os-scrollbar,.os-host-transition > .os-scrollbar-corner{-webkit-transition:opacity 0.3s,visibility 0.3s,top 0.3s,right 0.3s,bottom 0.3s,left .3s;transition:opacity 0.3s,visibility 0.3s,top 0.3s,right 0.3s,bottom 0.3s,left .3s}html.os-html > .os-host > .os-scrollbar{position:absolute;z-index:999999}.os-scrollbar,.os-scrollbar-corner{position:absolute;opacity:1;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);z-index:1}.os-scrollbar-corner{bottom:0;right:0}.os-scrollbar{pointer-events:none}.os-scrollbar-track{pointer-events:auto;position:relative;height:100%;width:100%;padding:0!important;border:none!important}.os-scrollbar-handle{pointer-events:auto;position:absolute;width:100%;height:100%}.os-scrollbar-handle-off,.os-scrollbar-track-off{pointer-events:none}.os-scrollbar.os-scrollbar-unusable,.os-scrollbar.os-scrollbar-unusable *{pointer-events:none!important}.os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-host-rtl > .os-scrollbar-horizontal{right:0}.os-host-rtl > .os-scrollbar-vertical{right:auto;left:0}.os-host-rtl > .os-scrollbar-corner{right:auto;left:0}.os-scrollbar-auto-hidden,.os-padding + .os-scrollbar-corner,.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden > .os-scrollbar-corner,.os-host-scrollbar-horizontal-hidden > .os-scrollbar-horizontal,.os-host-resize-disabled.os-host-scrollbar-vertical-hidden > .os-scrollbar-corner,.os-host-scrollbar-vertical-hidden > .os-scrollbar-vertical,.os-scrollbar-horizontal.os-scrollbar-auto-hidden + .os-scrollbar-vertical + .os-scrollbar-corner,.os-scrollbar-horizontal + .os-scrollbar-vertical.os-scrollbar-auto-hidden + .os-scrollbar-corner,.os-scrollbar-horizontal.os-scrollbar-auto-hidden + .os-scrollbar-vertical.os-scrollbar-auto-hidden + .os-scrollbar-corner{opacity:0;visibility:hidden;pointer-events:none}.os-scrollbar-corner-resize-both{cursor:nwse-resize}.os-host-rtl > .os-scrollbar-corner-resize-both{cursor:nesw-resize}.os-scrollbar-corner-resize-horizontal{cursor:ew-resize}.os-scrollbar-corner-resize-vertical{cursor:ns-resize}.os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize{cursor:default}.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden > .os-scrollbar-vertical{top:0;bottom:0}.os-host-resize-disabled.os-host-scrollbar-vertical-hidden > .os-scrollbar-horizontal{right:0;left:0}.os-scrollbar:hover,.os-scrollbar-corner.os-scrollbar-corner-resize{opacity:1!important;visibility:visible!important}.os-scrollbar-corner.os-scrollbar-corner-resize{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My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UyNzg2MDUsLTAuMDc3MDkzIC0wLjczNjk2MjksLTAuMjE4MzU5NCAwLjIzOTQxMDQsMC4zMTMwODU5IDAuNjEyNjM2MywwLjUxODYwMzUgMS4wMzcyMDcxLDAuNTE4NjAzNSAwLjcyMzU3OTMsMCAxLjMxMDE1NjIsLTAuNTg2NTc3IDEuMzEwMTU2MiwtMS4zMTAxNTYzIDAsLTAuNDI0NTcwOCAtMC4yMDU1MTc1LC0wLjc5Nzc5NjYgLTAuNTE4NjAzNSwtMS4wMzcyMDcgeiBtIDMuMDg0MzI2MiwwIGMgMC4xNDEyNjY3LDAuMjA5MTAyNCAwLjIxODM1OTQsMC40NjU2MjA2IDAuMjE4MzU5NCwwLjczNjk2MjkgMCwwLjcyMzU3OTMgLTAuNTg2NTc3LDEuMzEwMTU2MyAtMS4zMTAxNTYzLDEuMzEwMTU2MyAtMC4yNzEzNDIzLDAgLTAuNTI3ODYwNSwtMC4wNzcwOTMgLTAuNzM2OTYyOSwtMC4yMTgzNTk0IDAuMjM5NDEwNCwwLjMxMzA4NTkgMC42MTI2MzYyLDAuNTE4NjAzNSAxLjAzNzIwNywwLjUxODYwMzUgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjU3NyAxLjMxMDE1NjMsLTEuMzEwMTU2MyAwLC0wLjQyNDU3MDggLTAuMjA1NTE3NiwtMC43OTc3OTY2IC0wLjUxODYwMzUsLTEuMDM3MjA3IHoiIC8+ICA8L2c+PC9zdmc+);background-repeat:no-repeat;background-position:100% 100%;pointer-events:auto!important}.os-host-rtl > .os-scrollbar-corner.os-scrollbar-corner-resize{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.os-host-overflow{overflow:hidden!important}@-webkit-keyframes hs-resize-observer-dummy-animation{from{z-index:0}to{z-index:-1}}@keyframes hs-resize-observer-dummy-animation{from{z-index:0}to{z-index:-1}}.os-theme-none > .os-scrollbar-horizontal,.os-theme-none > .os-scrollbar-vertical,.os-theme-none > .os-scrollbar-corner{display:none!important}.os-theme-none > .os-scrollbar-corner-resize{display:block!important;min-width:10px;min-height:10px}.os-theme-dark > .os-scrollbar-horizontal,.os-theme-light > .os-scrollbar-horizontal{right:10px;height:10px}.os-theme-dark > .os-scrollbar-vertical,.os-theme-light > .os-scrollbar-vertical{bottom:10px;width:10px}.os-theme-dark.os-host-rtl > .os-scrollbar-horizontal,.os-theme-light.os-host-rtl > .os-scrollbar-horizontal{left:10px;right:0}.os-theme-dark > .os-scrollbar-corner,.os-theme-light > .os-scrollbar-corner{height:10px;width:10px;background-color:transparent}.os-theme-dark > .os-scrollbar,.os-theme-light > .os-scrollbar{padding:2px;box-sizing:border-box;background:transparent}.os-theme-dark > .os-scrollbar.os-scrollbar-unusable,.os-theme-light > .os-scrollbar.os-scrollbar-unusable{background:transparent}.os-theme-dark > .os-scrollbar > .os-scrollbar-track,.os-theme-light > .os-scrollbar > .os-scrollbar-track{background:transparent}.os-theme-dark > .os-scrollbar-horizontal > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar-horizontal > .os-scrollbar-track > .os-scrollbar-handle{min-width:30px}.os-theme-dark > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle{min-height:30px}.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{border-radius:11px;opacity:.4}.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{background:#000}.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{background:#fff}.os-theme-dark.os-host-transition > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light.os-host-transition > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{-webkit-transition:opacity .3s;transition:opacity .3s}.os-theme-dark > .os-scrollbar:hover > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar:hover > .os-scrollbar-track > .os-scrollbar-handle{opacity:.55}.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle.active,.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle.active{opacity:.7}.os-theme-dark > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-dark > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-vertical .os-scrollbar-handle:before{content:'';position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-theme-dark.os-host-scrollbar-horizontal-hidden > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-dark.os-host-scrollbar-vertical-hidden > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light.os-host-scrollbar-horizontal-hidden > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light.os-host-scrollbar-vertical-hidden > .os-scrollbar-vertical .os-scrollbar-handle:before{display:none}.os-theme-dark > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-horizontal .os-scrollbar-handle:before{top:-6px;bottom:-2px}.os-theme-dark > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-vertical .os-scrollbar-handle:before{left:-6px;right:-2px}.os-host-rtl.os-theme-dark > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-host-rtl.os-theme-light > .os-scrollbar-vertical .os-scrollbar-handle:before{right:-6px;left:-2px} \ No newline at end of file diff --git a/js/OverlayScrollbars.js b/js/OverlayScrollbars.js index 15a29df..f16a7dc 100644 --- a/js/OverlayScrollbars.js +++ b/js/OverlayScrollbars.js @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.3.0 + * Version: 1.4.0 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 26.02.2018 + * Date: 02.03.2018 */ (function (global, factory) { @@ -21,7 +21,7 @@ }(typeof window !== 'undefined' ? window : this, (function(window, document, undefined) { 'use-strict'; var PLUGINNAME = 'OverlayScrollbars'; - + var TYPES = { o : 'object', f : 'function', @@ -1189,7 +1189,7 @@ return FakejQuery; })(COMPATIBILITY); - var INSTANCES = (function(helper) { + var INSTANCES = (function(helper) { var _targets = [ ]; var _instancePropertyString = '__overlayScrollbars__'; @@ -1406,7 +1406,7 @@ }, scrollbars : { visibility : 'auto', //visible || hidden || auto || v || h || a - autoHide : 'never', //never || scroll || leave || n || s || l + autoHide : 'never', //never || scroll || leave || move || n || s || l || m autoHideDelay : 800, //number dragScrolling : true, //true || false clickScrolling : false, //true || false @@ -1457,7 +1457,7 @@ var nativeScrollbarSize = (function() { bodyElement.append(scrollbarDummyElement); var strOverflow = 'overflow'; - var strHidden = 'hidden'; + var strHidden = 'hidden'; var scrollbarDummyElement0 = scrollbarDummyElement[0]; var dummyContainerChild = helper(scrollbarDummyElement.children('div').first()); var IEBUGFIX = scrollbarDummyElement0[WORDING.oH]; //IE9 causes a bug where offsetHeight is zero for no reason @@ -1468,44 +1468,44 @@ x: scrollbarDummyElement0[WORDING.oH] - scrollbarDummyElement0[WORDING.cH], y: scrollbarDummyElement0[WORDING.oW] - scrollbarDummyElement0[WORDING.cW] }; - //https://bugzilla.mozilla.org/show_bug.cgi?id=1439305 - _base.restrictedMeasuring = (function() { - scrollbarDummyElement.css(strOverflow, strHidden); - var scrollSize = { - w : scrollbarDummyElement0[WORDING.sW], - h : scrollbarDummyElement0[WORDING.sH] - }; - scrollbarDummyElement.css(strOverflow, 'visible'); - var scrollSize2 = { - w : scrollbarDummyElement0[WORDING.sW], - h : scrollbarDummyElement0[WORDING.sH] - }; - return (scrollSize.w - scrollSize2.w) !== 0 || (scrollSize.h - scrollSize2.h) !== 0; - })(); - _base.nativeScrollbarStyling = (function() { - scrollbarDummyElement.addClass('os-viewport-native-scrollbars-invisible'); - scrollbarDummyElement.css(strOverflow, strHidden).hide().css(strOverflow, 'scroll').show(); //fix opera bug: scrollbar styles will only appear if overflow value is scroll or auto during the activation of the style. - return (scrollbarDummyElement0[WORDING.oH] - scrollbarDummyElement0[WORDING.cH]) === 0 && (scrollbarDummyElement0[WORDING.oW] - scrollbarDummyElement0[WORDING.cW]) === 0; - })(); - _base.rtlScrollBehavior = (function() { - scrollbarDummyElement.css({ 'overflow-y' : strHidden, 'direction' : 'rtl' }).scrollLeft(0); - var dummyContainerOffset = scrollbarDummyElement.offset(); - var dummyContainerChildOffset = dummyContainerChild.offset(); - scrollbarDummyElement.scrollLeft(999); - var dummyContainerScrollOffsetAfterScroll = dummyContainerChild.offset(); - return { - //origin direction = determines if the zero scroll position is on the left or right side - //'i' means 'invert' (i === true means that the axis must be inverted to be correct) - //true = on the left side - //false = on the right side - i : dummyContainerOffset.left === dummyContainerChildOffset.left, - //negative = determines if the maximum scroll is positive or negative - //'n' means 'negate' (n === true means that the axis must be negated to be correct) - //true = negative - //false = positive - n : dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left === 0 - }; - })(); + //https://bugzilla.mozilla.org/show_bug.cgi?id=1439305 + _base.restrictedMeasuring = (function() { + scrollbarDummyElement.css(strOverflow, strHidden); + var scrollSize = { + w : scrollbarDummyElement0[WORDING.sW], + h : scrollbarDummyElement0[WORDING.sH] + }; + scrollbarDummyElement.css(strOverflow, 'visible'); + var scrollSize2 = { + w : scrollbarDummyElement0[WORDING.sW], + h : scrollbarDummyElement0[WORDING.sH] + }; + return (scrollSize.w - scrollSize2.w) !== 0 || (scrollSize.h - scrollSize2.h) !== 0; + })(); + _base.nativeScrollbarStyling = (function() { + scrollbarDummyElement.addClass('os-viewport-native-scrollbars-invisible'); + scrollbarDummyElement.css(strOverflow, strHidden).hide().css(strOverflow, 'scroll').show(); //fix opera bug: scrollbar styles will only appear if overflow value is scroll or auto during the activation of the style. + return (scrollbarDummyElement0[WORDING.oH] - scrollbarDummyElement0[WORDING.cH]) === 0 && (scrollbarDummyElement0[WORDING.oW] - scrollbarDummyElement0[WORDING.cW]) === 0; + })(); + _base.rtlScrollBehavior = (function() { + scrollbarDummyElement.css({ 'overflow-y' : strHidden, 'direction' : 'rtl' }).scrollLeft(0); + var dummyContainerOffset = scrollbarDummyElement.offset(); + var dummyContainerChildOffset = dummyContainerChild.offset(); + scrollbarDummyElement.scrollLeft(999); + var dummyContainerScrollOffsetAfterScroll = dummyContainerChild.offset(); + return { + //origin direction = determines if the zero scroll position is on the left or right side + //'i' means 'invert' (i === true means that the axis must be inverted to be correct) + //true = on the left side + //false = on the right side + i : dummyContainerOffset.left === dummyContainerChildOffset.left, + //negative = determines if the maximum scroll is positive or negative + //'n' means 'negate' (n === true means that the axis must be negated to be correct) + //true = negative + //false = positive + n : dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left === 0 + }; + })(); scrollbarDummyElement.removeAttr(WORDING.s).remove(); return scrollbarSize; })(); @@ -1799,7 +1799,7 @@ var _supportTransform; var _supportPassiveEvents; var _supportResizeObserver; - var _restrictedMeasuring; + var _restrictedMeasuring; var _isBorderBox; var _paddingX; var _paddingY; @@ -1846,6 +1846,8 @@ var _strMouseTouchDownEvent = 'mousedown touchstart'; var _strMouseTouchUpEvent = 'mouseup touchend'; var _strMouseTouchMoveEvent = 'mousemove touchmove'; + var _strMouseTouchEnter = 'mouseenter'; + var _strMouseTouchLeave = 'mouseleave'; var _strKeyDownEvent = 'keydown'; var _strKeyUpEvent = 'keyup'; var _strSelectStartEvent = 'selectstart'; @@ -1997,12 +1999,14 @@ //scrollbars: var _scrollbarsAutoHideTimeoutId; + var _scrollbarsAutoHideMoveTimeoutId; var _scrollbarsAutoHideDelay; var _scrollbarsAutoHideNever; var _scrollbarsAutoHideScroll; + var _scrollbarsAutoHideMove; var _scrollbarsAutoHideLeave; var _scrollbarsTouchSupport; - var _scrollbarsAutoHideScrollAndHovered; + var _scrollbarsAutoHideFlagScrollAndHovered; //resize var _resizeReconnectMutationObserver; @@ -2377,8 +2381,8 @@ * @param args The args with which the callback shall be called. */ function callCallback(callback, args) { - if(_initialized) - callback.call(_base, args); + if(_initialized) + callback.call(_base, args); } /** @@ -2754,11 +2758,11 @@ else { var strActive = 'active'; var hide = function () { - if (!_scrollbarsAutoHideScrollAndHovered) { + if (!_scrollbarsAutoHideFlagScrollAndHovered) { var anyActive = _scrollbarHorizontalHandleElement.hasClass(strActive) || _scrollbarVerticalHandleElement.hasClass(strActive); - if (!anyActive && (_scrollbarsAutoHideScroll || _scrollbarsAutoHideLeave)) + if (!anyActive && (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove || _scrollbarsAutoHideLeave)) _scrollbarHorizontalElement.addClass(_classNameScrollbarAutoHidden); - if (!anyActive && (_scrollbarsAutoHideScroll || _scrollbarsAutoHideLeave)) + if (!anyActive && (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove || _scrollbarsAutoHideLeave)) _scrollbarVerticalElement.addClass(_classNameScrollbarAutoHidden); } }; @@ -2979,7 +2983,7 @@ event.clientY >= rect.top && event.clientY <= rect.bottom)) { hostOnMouseLeave(); } - if (_scrollbarsAutoHideScroll) + if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) refreshScrollbarsAutoHide(false); }; var documentKeyDown = function (event) { @@ -3101,13 +3105,13 @@ compatibility.prvD(event); } }).hover(function () { //make sure both scrollbars will stay visible if one scrollbar is hovered if autoHide is "scroll". - if (_scrollbarsAutoHideScroll) { - _scrollbarsAutoHideScrollAndHovered = true; + if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) { + _scrollbarsAutoHideFlagScrollAndHovered = true; refreshScrollbarsAutoHide(true); } }, function () { - if (_scrollbarsAutoHideScroll) { - _scrollbarsAutoHideScrollAndHovered = false; + if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) { + _scrollbarsAutoHideFlagScrollAndHovered = false; refreshScrollbarsAutoHide(false); } }); @@ -3154,6 +3158,20 @@ refreshScrollbarsAutoHide(false); } + /** + * The mouse leave event of the host element. This event is only needed for the autoHide feature. + */ + function hostOnMouseMove() { + if (_scrollbarsAutoHideMove) { + refreshScrollbarsAutoHide(true); + clearTimeout(_scrollbarsAutoHideMoveTimeoutId); + _scrollbarsAutoHideMoveTimeoutId = setTimeout(function () { + if (_scrollbarsAutoHideMove) + refreshScrollbarsAutoHide(false); + }, 100); + } + } + /** * The scroll event of the viewport element. That is the main scroll event. It controls also the "scroll", "scrollStart" and "scrollStop" callbacks. * @param event The scroll event. @@ -3169,7 +3187,7 @@ if (_scrollStopTimeoutId !== undefined) clearTimeout(_scrollStopTimeoutId); else { - if (_scrollbarsAutoHideScroll) + if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) refreshScrollbarsAutoHide(true); if (!nativeOverlayScrollbarsAreActive()) @@ -3199,7 +3217,7 @@ function onScrollStop() { clearTimeout(_scrollStopTimeoutId); _scrollStopTimeoutId = undefined; - if (_scrollbarsAutoHideScroll) + if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) refreshScrollbarsAutoHide(false); if (!nativeOverlayScrollbarsAreActive()) @@ -3534,7 +3552,7 @@ var classNameAllowedValues = ['*', null]; var overflowBehaviorAllowedValues = ['v-h:visible-hidden', 'v-s:visible-scroll', 's:scroll', 'h:hidden']; var scrollbarsVisibilityAllowedValues = ['v:visible', 'h:hidden', 'a:auto']; - var scrollbarsAutoHideAllowedValues = ['n:never', 's:scroll', 'l:leave']; + var scrollbarsAutoHideAllowedValues = ['n:never', 's:scroll', 'l:leave', 'm:move']; var resizeAllowedValues = ['n:none', 'b:both', 'h:horizontal', 'v:vertical']; var strCallbacksDot = 'callbacks.'; var strScrollbarsDot = _strScrollbar + 's.'; @@ -3899,6 +3917,7 @@ //scrollbars visibility _scrollbarsAutoHideNever = scrollbarsAutoHide === 'n'; _scrollbarsAutoHideScroll = scrollbarsAutoHide === 's'; + _scrollbarsAutoHideMove = scrollbarsAutoHide === 'm'; _scrollbarsAutoHideLeave = scrollbarsAutoHide === 'l'; //scrollbars autoHideDelay @@ -4050,7 +4069,7 @@ var isRTLLeft = _isRTL ? _strLeft : _strRight; var isRTLRight = _isRTL ? _strRight : _strLeft; var hostElement = _hostElement[0]; - var paddingElement = _paddingElement[0]; + var paddingElement = _paddingElement[0]; //detect width auto: var widthAutoResizeDetection = false; @@ -4236,7 +4255,12 @@ var strOverflowY = strOverflow + '-y'; var strHidden = 'hidden'; var strVisible = 'visible'; - var hideOverflow4CorrectMeasuring = _restrictedMeasuring ? (_nativeScrollbarIsOverlaid.x || _nativeScrollbarIsOverlaid.y) || (_viewportSize.w < _nativeScrollbarMinSize.y || _viewportSize.h < _nativeScrollbarMinSize.x) : false;; + //decide whether the content overflow must get hidden for correct overflow measuring, it MUST be always hidden if the height is auto + var hideOverflow4CorrectMeasuring = _restrictedMeasuring ? + (_nativeScrollbarIsOverlaid.x || _nativeScrollbarIsOverlaid.y) || //it must be hidden if native scrollbars are overlaid + (_viewportSize.w < _nativeScrollbarMinSize.y || _viewportSize.h < _nativeScrollbarMinSize.x) || //it must be hidden if host-element is too small + heightAuto //it must be hidden if height is auto + : heightAuto; //if there is not the restricted Measuring bug, it must be hidden if the height is auto //Reset the viewport (very important for natively overlaid scrollbars and zoom change var viewportElementResetCSS = {}; @@ -4251,7 +4275,7 @@ //measure several sizes: var contentMeasureElement = getContentMeasureElement(); //in Firefox content element has to have overflow hidden, else element margins aren't calculated properly, this element prevents this bug, but only if scrollbars aren't overlaid - var contentMeasureElementGuaranty = hideOverflow4CorrectMeasuring ? contentMeasureElement : _viewportElement[0]; + var contentMeasureElementGuaranty = _restrictedMeasuring && !hideOverflow4CorrectMeasuring ? _viewportElement[0] : contentMeasureElement; var clientSize = { w: contentMeasureElement[WORDING.cW], h: contentMeasureElement[WORDING.cH] @@ -4364,12 +4388,12 @@ }; hostSizeChanged = checkCacheDouble(hostSize, _hostSizeCache); _hostSizeCache = hostSize; - - //viewport size is padding container because it never has padding, margin and a border. - _viewportSize = { - w: paddingElement[WORDING.oW], - h: paddingElement[WORDING.oH] - }; + + //viewport size is padding container because it never has padding, margin and a border. + _viewportSize = { + w: paddingElement[WORDING.oW], + h: paddingElement[WORDING.oH] + }; var overflowBehaviorIsVS = { x: overflowBehavior.x === 'v-s', @@ -4525,14 +4549,14 @@ viewportElementCSS[strOverflowY] = _strEmpty; resetScrollbarHidingY(); } - + // if the scroll container is too small and if there is any overflow with not overlay scrollbar, make viewport element greater in size (Firefox hide Scrollbars fix) // because firefox starts hiding scrollbars on too small elements // with this behavior the overflow calculation may be incorrect or the scrollbars would appear suddenly // https://bugzilla.mozilla.org/show_bug.cgi?id=292284 - if ((_viewportSize.h < _nativeScrollbarMinSize.x || _viewportSize.w < _nativeScrollbarMinSize.y) - && ((hasOverflow.x && hideOverflow.x && !_nativeScrollbarIsOverlaid.x) || (hasOverflow.y && hideOverflow.y && !_nativeScrollbarIsOverlaid.y))) { + if ((_viewportSize.h < _nativeScrollbarMinSize.x || _viewportSize.w < _nativeScrollbarMinSize.y) + && ((hasOverflow.x && hideOverflow.x && !_nativeScrollbarIsOverlaid.x) || (hasOverflow.y && hideOverflow.y && !_nativeScrollbarIsOverlaid.y))) { viewportElementCSS[_strPaddingMinus + _strTop] = _nativeScrollbarMinSize.x; viewportElementCSS[_strMarginMinus + _strTop] = -_nativeScrollbarMinSize.x; @@ -4696,34 +4720,42 @@ //manage the scrollbars auto hide feature (auto hide them after specific actions) if (scrollbarsAutoHideChanged || ignoreOverlayScrollbarHidingChanged) { - var strMouseEnter = 'mouseenter'; - var strMouseLeave = 'mouseleave'; - var addLeaveEvents = function () { + var addMouseTouchEvents = function (move) { if (_supportPassiveEvents) { - addPassiveEventListener(_hostElement, strMouseEnter, hostOnMouseEnter); - addPassiveEventListener(_hostElement, strMouseLeave, hostOnMouseLeave); + if(move) + addPassiveEventListener(_hostElement, _strMouseTouchMoveEvent, hostOnMouseMove); + else { + addPassiveEventListener(_hostElement, _strMouseTouchEnter, hostOnMouseEnter); + addPassiveEventListener(_hostElement, _strMouseTouchLeave, hostOnMouseLeave); + } } else { - _hostElement.on(strMouseEnter, hostOnMouseEnter); - _hostElement.on(strMouseLeave, hostOnMouseLeave); + if(move) + _hostElement.on(_strMouseTouchMoveEvent, hostOnMouseMove); + else { + _hostElement.on(_strMouseTouchEnter, hostOnMouseEnter); + _hostElement.on(_strMouseTouchLeave, hostOnMouseLeave); + } } }; - var removeLeaveEvents = function () { + var removeMouseTouchEvents = function () { if (_supportPassiveEvents) { - removePassiveEventListener(_hostElement, strMouseEnter, hostOnMouseEnter); - removePassiveEventListener(_hostElement, strMouseLeave, hostOnMouseLeave); + removePassiveEventListener(_hostElement, _strMouseTouchMoveEvent, hostOnMouseMove); + removePassiveEventListener(_hostElement, _strMouseTouchEnter, hostOnMouseEnter); + removePassiveEventListener(_hostElement, _strMouseTouchLeave, hostOnMouseLeave); } else { - _hostElement.off(strMouseEnter, hostOnMouseEnter); - _hostElement.off(strMouseLeave, hostOnMouseLeave); + _hostElement.off(_strMouseTouchMoveEvent, hostOnMouseMove); + _hostElement.off(_strMouseTouchEnter, hostOnMouseEnter); + _hostElement.off(_strMouseTouchLeave, hostOnMouseLeave); } }; - if (_scrollbarsAutoHideLeave) { - removeLeaveEvents(); - addLeaveEvents(); + if (_scrollbarsAutoHideLeave || _scrollbarsAutoHideMove) { + removeMouseTouchEvents(); + addMouseTouchEvents(_scrollbarsAutoHideMove); } else { - removeLeaveEvents(); + removeMouseTouchEvents(); } if (_scrollbarsAutoHideNever) @@ -4939,12 +4971,14 @@ _sizeAutoObserverElement.remove(); if (_supportPassiveEvents) { - removePassiveEventListener(_hostElement, 'mouseenter', hostOnMouseEnter); - removePassiveEventListener(_hostElement, 'mouseleave', hostOnMouseLeave); + removePassiveEventListener(_hostElement, _strMouseTouchMoveEvent, hostOnMouseMove); + removePassiveEventListener(_hostElement, _strMouseTouchEnter, hostOnMouseEnter); + removePassiveEventListener(_hostElement, _strMouseTouchLeave, hostOnMouseLeave); } else { - _hostElement.off('mouseenter', hostOnMouseEnter); - _hostElement.off('mouseleave', hostOnMouseLeave); + _hostElement.off(_strMouseTouchMoveEvent, hostOnMouseMove); + _hostElement.off(_strMouseTouchEnter, hostOnMouseEnter); + _hostElement.off(_strMouseTouchLeave, hostOnMouseLeave); } _scrollbarHorizontalElement.remove(); @@ -5542,7 +5576,7 @@ _supportPassiveEvents = globals.supportPassiveEvents; _supportResizeObserver = globals.supportResizeObserver; _supportMutationObserver = globals.supportMutationObserver; - _restrictedMeasuring = globals.restrictedMeasuring; + _restrictedMeasuring = globals.restrictedMeasuring; _documentElement = helper(targetElement.ownerDocument); _windowElement = helper(_documentElement[0].defaultView || _documentElement[0].parentWindow); _htmlElement = _documentElement.find('html').first(); @@ -5808,24 +5842,24 @@ _pluginGlobals.defaultOptions = helper.extend(true, { }, currDefaultOptions , newDefaultOptions); }; })(COMPATIBILITY, INSTANCES, HELPER, BYPROPERTYPATH); - - var jQuery = window.jQuery; - if(jQuery && jQuery.fn) { - /** - * The jQuery initialization interface. - * @param options The initial options for the construction of the plugin. To initialize the plugin, this option has to be a object! If it isn't a object, the instance(s) are returned and the plugin wont be initialized. - * @returns {*} After initialization it returns the jQuery element array, else it returns the instance(s) of the elements which are selected. - */ - jQuery.fn.overlayScrollbars = function (options) { - var _elements = this; - if(jQuery.isPlainObject(options)) { - jQuery.each(_elements, function() { window[PLUGINNAME](this, options); }); - return _elements; - } - else - return window[PLUGINNAME](_elements, options); - }; - } - - return window[PLUGINNAME]; + + var jQuery = window.jQuery; + if(jQuery && jQuery.fn) { + /** + * The jQuery initialization interface. + * @param options The initial options for the construction of the plugin. To initialize the plugin, this option has to be a object! If it isn't a object, the instance(s) are returned and the plugin wont be initialized. + * @returns {*} After initialization it returns the jQuery element array, else it returns the instance(s) of the elements which are selected. + */ + jQuery.fn.overlayScrollbars = function (options) { + var _elements = this; + if(jQuery.isPlainObject(options)) { + jQuery.each(_elements, function() { window[PLUGINNAME](this, options); }); + return _elements; + } + else + return window[PLUGINNAME](_elements, options); + }; + } + + return window[PLUGINNAME]; }))); \ No newline at end of file diff --git a/js/OverlayScrollbars.min.js b/js/OverlayScrollbars.min.js index b5620dd..3874e0b 100644 --- a/js/OverlayScrollbars.min.js +++ b/js/OverlayScrollbars.min.js @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.3.0 + * Version: 1.4.0 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 26.02.2018 + * Date: 02.03.2018 */ - -!function(e,t){"function"==typeof define&&define.amd?define(function(){return t(e,e.document,undefined)}):"object"==typeof exports?module.exports=t(e,e.document,undefined):t(e,e.document,undefined)}("undefined"!=typeof window?window:this,function(e,t,n){"use-strict";var r="OverlayScrollbars",i={o:"object",f:"function",a:"array",s:"string",n:"number",u:"undefined"},o={c:"class",s:"style",i:"id",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth"},a={wW:function(){return e.innerWidth||t.documentElement[o.cW]||t.body[o.cW]},wH:function(){return e.innerHeight||t.documentElement[o.cH]||t.body[o.cH]},mO:function(){return e.MutationObserver||e.WebKitMutationObserver||e.WebkitMutationObserver||e.MozMutationObserver||n},rO:function(){return e.ResizeObserver||e.WebKitResizeObserver||e.WebkitResizeObserver||e.MozResizeObserver||n},rAF:function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}},cAF:function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||function(t){return e.clearTimeout(t)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},page:function(e){var r="page",i="client",o="X",a="Y",s=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,l=s.documentElement,c=s.body;if(e.touches!==n){var u=e.touches[0];return{x:u[r+o],y:u[r+a]}}return!e[r+o]&&e[i+o]&&null!=e[i+o]?{x:e[i+o]+(l&&l.scrollLeft||c&&c.scrollLeft||0)-(l&&l.clientLeft||c&&c.clientLeft||0),y:e[i+a]+(l&&l.scrollTop||c&&c.scrollTop||0)-(l&&l.clientTop||c&&c.clientTop||0)}:{x:e[r+o],y:e[r+a]}},mBtn:function(e){return e.which||e.button===n?e.which:1&e.button?1:2&e.button?3:4&e.button?2:0},bind:function(e,t){if(typeof e!==i.f)throw"Can't bind function!";var n=Array.prototype.slice.call(arguments,2),r=function(){},o=function(){return e.apply(this instanceof r?this:t,n.concat(Array.prototype.slice.call(arguments)))};return e.prototype&&(r.prototype=e.prototype),o.prototype=new r,o}},s=function(r){var o=/[^\x20\t\r\n\f]+/g,a=Object.prototype.toString,s=" ",l="",c=[],u={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},f={swing:function(e,t,n,r,i){return.5-Math.cos(e*Math.PI)/2},linear:function(e,t,n,r,i){return e},easeInQuad:function(e,t,n,r,i){return r*(t/=i)*t+n},easeOutQuad:function(e,t,n,r,i){return-r*(t/=i)*(t-2)+n},easeInOutQuad:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,r,i){return r*(t/=i)*t*t+n},easeOutCubic:function(e,t,n,r,i){return r*((t=t/i-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t+n:r/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,r,i){return r*(t/=i)*t*t*t+n},easeOutQuart:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t+n:-r/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,r,i){return r*(t/=i)*t*t*t*t+n},easeOutQuint:function(e,t,n,r,i){return r*((t=t/i-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t*t+n:r/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,r,i){return-r*Math.cos(t/i*(Math.PI/2))+r+n},easeOutSine:function(e,t,n,r,i){return r*Math.sin(t/i*(Math.PI/2))+n},easeInOutSine:function(e,t,n,r,i){return-r/2*(Math.cos(Math.PI*t/i)-1)+n},easeInExpo:function(e,t,n,r,i){return 0==t?n:r*Math.pow(2,10*(t/i-1))+n},easeOutExpo:function(e,t,n,r,i){return t==i?n+r:r*(1-Math.pow(2,-10*t/i))+n},easeInOutExpo:function(e,t,n,r,i){return 0==t?n:t==i?n+r:(t/=i/2)<1?r/2*Math.pow(2,10*(t-1))+n:r/2*(2-Math.pow(2,-10*--t))+n},easeInCirc:function(e,t,n,r,i){return-r*(Math.sqrt(1-(t/=i)*t)-1)+n},easeOutCirc:function(e,t,n,r,i){return r*Math.sqrt(1-(t=t/i-1)*t)+n},easeInOutCirc:function(e,t,n,r,i){return(t/=i/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+n:r/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;if(0==t)return n;if(1==(t/=i))return n+r;if(a||(a=.3*i),s0&&t-1 in e)}function m(e){return(e.match(o)||[]).join(s)}function g(e,n){for(var r=(e.parentNode||t).querySelectorAll(n)||[],i=r.length;i--;)if(r[i]==e)return!0;return!1}function w(e,t,n){h.type(n)===i.s?e.insertAdjacentHTML(t,n):n.nodeType?e.insertAdjacentElement(t,n):e.insertAdjacentElement(t,n[0])}function b(e,t,r){try{e.style[t]!==n&&(e.style[t]=x(t,r))}catch(i){}}function x(e,t){return u[e.toLowerCase()]||h.type(t)!==i.n||(t=t+="px"),t}function C(e,t){var n,r;!1!==t&&e.q.splice(0,1),e.q.length>0?(r=e.q[0],M(e.el,r.props,r.duration,r.easing,r.complete,!0)):(n=h.inArray(e,c))>-1&&c.splice(n,1)}function O(e,t,n){"scrollLeft"===t?e[t]=n:"scrollTop"===t?e[t]=n:b(e,t,n)}function M(e,t,n,i,o,a){var s,l,u,v,p,y,m={},g={},w=0,b=h.isPlainObject(n);for(b?(i=n.easing,n.start,u=n.progress,v=n.step,p=n.specialEasing,o=n.complete,y=n.duration):y=n,p=p||{},y=y||400,i=i||"swing",a=a||!1;w0)E=r.now(),k=function(){for(s in x=r.now(),I=x-E,M=L.stop||I>=y,S=1-(Math.max(0,E+y-x)/y||0),g)z=m[s],H=g[s],T=(H-z)*f[p[s]||i](S,S*y,0,1,y)+z,O(e,s,T),d(v)&&v(T,{elem:e,prop:s,start:z,now:T,end:H,pos:S,options:{easing:i,speacialEasing:p,duration:y,complete:o,step:v},startTime:E});d(u)&&u({},S,Math.max(0,y-I)),M?(C(l),d(o)&&o()):L.frame=r.rAF()(k)},L.frame=r.rAF()(k);else{for(s in g)O(e,s,g[s]);C(l)}}}function S(e,t,n){for(var i,o,a,s=0;s0){if((o=i.q[0]).stop=!0,r.cAF()(o.frame),i.q.splice(0,1),n)for(a in o.props)O(e,a,o.props[a]);t?i.q=[]:C(i,!1)}break}}function A(e){var t=this;h.type(e)===i.s||e.length||(e=[e]);for(var n=0;n-1)return!0;return!1},addClass:function(e){var t,r,i,a,l,c,u=null,f=0,h=0;if(e)for(t=e.match(o)||[];r=this[f++];)if(u===n&&(u=r.classList!==n),u)for(;l=t[h++];)r.classList.add(l);else if(a=r.className,i=1===r.nodeType&&s+m(a)+s){for(;l=t[h++];)i.indexOf(s+l+s)<0&&(i+=l+s);a!==(c=m(i))&&(r.className=c)}return this},removeClass:function(e){var t,r,i,a,l,c,u=null,f=0,h=0;if(e)for(t=e.match(o)||[];r=this[f++];)if(u===n&&(u=r.classList!==n),u)for(;l=t[h++];)r.classList.remove(l);else if(a=r.className,i=1===r.nodeType&&s+m(a)+s){for(;l=t[h++];)for(;i.indexOf(s+l+s)>-1;)i=i.replace(s+l+s,s);a!==(c=m(i))&&(r.className=c)}return this},remove:function(){return this.each(function(){var e=this;null!=e.parentNode&&e.parentNode.removeChild(e)})},offset:function(){var n=this[0].getBoundingClientRect(),r=e.pageXOffset||t.documentElement.scrollLeft,i=e.pageYOffset||t.documentElement.scrollTop;return{top:n.top+i,left:n.left+r}},css:function(t,r){var o,a;return h.type(t)===i.s?r===n?(o=this[0],e.getComputedStyle?e.getComputedStyle(o,null).getPropertyValue(t):o.currentStyle[t]):this.each(function(){b(this,t,r)}):this.each(function(){for(a in t)b(this,a,t[a])})},unwrap:function(){var e,t,n,r=[];for(this.each(function(){n=this.parentNode,-1===h.inArray(n,r)&&r.push(n)}),e=0;e0;)i=i.childNodes[0];for(t=0;n.length-t;i.firstChild===n[0]&&t++)i.appendChild(n[t]);var s=a?a.nextSibling:o.firstChild;return o.insertBefore(r,s),this},wrapInner:function(e){return this.each(function(){var t=new A(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){return this.each(function(){new h(this).wrapAll(e)})},contents:function(){var e,t,n=[];return this.each(function(){for(e=this.childNodes,t=0;t-1&&(delete n[r],t.splice(i,1))}function a(e){return s(e)!==n}function s(e){for(var n=0;n
'),f=function(){a.append(u);var e,t="overflow",n="hidden",r=u[0],s=c(u.children("div").first());return 0===r[o.oH]&&u.hide().show(),e={x:r[o.oH]-r[o.cH],y:r[o.oW]-r[o.cW]},i.restrictedMeasuring=function(){u.css(t,n);var e={w:r[o.sW],h:r[o.sH]};u.css(t,"visible");var i={w:r[o.sW],h:r[o.sH]};return e.w-i.w!=0||e.h-i.h!=0}(),i.nativeScrollbarStyling=(u.addClass("os-viewport-native-scrollbars-invisible"),u.css(t,n).hide().css(t,"scroll").show(),r[o.oH]-r[o.cH]==0&&r[o.oW]-r[o.cW]==0),i.rtlScrollBehavior=function(){u.css({"overflow-y":n,direction:"rtl"}).scrollLeft(0);var e=u.offset(),t=s.offset();u.scrollLeft(999);var r=s.offset();return{i:e.left===t.left,n:t.left-r.left==0}}(),u.removeAttr(o.s).remove(),e}(),h={x:0===f.x,y:0===f.y};function v(e){var r=!1,i="Webkit Moz ms O".split(" "),o=t.createElement("div"),a=null;if(e=e.toLowerCase(),o.style[e]!==n&&(r=!0),!1===r){a=e.charAt(0).toUpperCase()+e.substr(1);for(var s=0;s0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)}(),i.cssCalc=function(){for(var e=t.createElement("div"),n=["calc","-webkit-calc","-moz-calc","-o-calc"],r=0;r0){var e=s.wW(),h=s.wH(),d=e-t,p=h-n;if(0===d&&0===p)return;var y=Math.round(e/(t/100)),m=Math.round(h/(n/100)),g=Math.abs(d),w=Math.abs(p),b=Math.abs(y),x=Math.abs(m),C=v(),O=g>2&&w>2,M=!f(b,x);if(!!(O&&M&&(C!==r&&r>0))){a.append(u);var S=u[0];i.nativeScrollbarSize={x:S[o.oH]-S[o.cH],y:S[o.oW]-S[o.cW]},u.remove(),c.each(l.all(),function(){l.has(this)&&l.get(this).update("zoom")})}t=e,n=h,r=C}})}function f(e,t){var n=Math.abs(e),r=Math.abs(t);return!(n===r||n+1===r||n-1===r)}function v(){var t=e.screen.deviceXDPI||0,n=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/n}}()}function y(e){var t,r=this,i="autoUpdate",o=i+"Interval",a=[],l=[],u=!1,f=33,h=f,v=s.now(),d=function(){if(a.length>0&&u){t=s.rAF()(function(){d()});var e=s.now(),r=e-v;if(r>h){v=e-r%h;for(var c=f,p=0;pw&&(y.update("auto"),l[p]=new Date(b+=w)),c=Math.max(1,Math.min(c,w))}}h=c}}else h=f};r.add=function(t){-1===c.inArray(t,a)&&(a.push(t),l.push(s.now()),a.length>0&&!u&&(u=!0,e.autoUpdateLoop=u,d()))},r.remove=function(r){var i=c.inArray(r,a);i>-1&&(l.splice(i,1),a.splice(i,1),0===a.length&&u&&(u=!1,e.autoUpdateLoop=u,t!==n&&(s.cAF()(t),t=-1)))}}function m(t,f,h,v){if(Kr(t)){if(l.has(t)){var d=l.get(t);return d.options(f),d}var p,y,m,g,w,b,x,C,O,M,S,A,z,H,T,E,k,I,W,L,P,F,N,D,R,B,j,q,U,_,Q,V,X,Y,J,K,$,G,Z,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,fe,he,ve,de,pe,ye,me,ge,we,be,xe,Ce,Oe,Me,Se,Ae,ze,He,Te,Ee,ke,Ie,We,Le,Pe,Fe,Ne,De,Re,Be,je,qe,Ue,_e,Qe,Ve,Xe,Ye,Je,Ke,$e,Ge,Ze,et,tt,nt,rt,it,ot,at,st,lt,ct,ut,ft,ht,vt,dt,pt,yt,mt,gt,wt=new e[r],bt=!1,xt=!1,Ct=!1,Ot=!1,Mt=!1,St={w:0,h:0},At={},zt={},Ht={},Tt=175,Et="-hidden",kt="margin-",It="padding-",Wt="border-",Lt="top",Pt="right",Ft="bottom",Nt="left",Dt="min-",Rt="max-",Bt="width",jt="height",qt="float",Ut="",_t="auto",Qt="scroll",Vt="100%",Xt="x",Yt="y",Jt='
',$t=".",Gt=" ",Zt="scrollbar",en="-horizontal",tn="-vertical",nn=Qt+"Left",rn=Qt+"Top",on="mousedown touchstart",an="mouseup touchend",sn="mousemove touchmove",ln="keydown",cn="keyup",un="selectstart",fn="transitionend webkitTransitionEnd oTransitionEnd",hn="__overlayScrollbarsRO__",vn="os-",dn=vn+"html",pn=vn+"host",yn=pn+"-textarea",mn=pn+"-"+Zt+en+Et,gn=pn+"-"+Zt+tn+Et,wn=pn+"-transition",bn=pn+"-rtl",xn=pn+"-resize-disabled",Cn=pn+"-scrolling",On=pn+"-overflow",Mn=On+"-x",Sn=On+"-y",An=vn+"textarea",zn=An+"-cover",Hn=vn+"padding",Tn=vn+"viewport",En=Tn+"-native-scrollbars-invisible",kn=Tn+"-native-scrollbars-overlaid",In=vn+"content",Wn=vn+"content-arrange",Ln=vn+"content-glue",Pn=vn+"size-auto-observer",Fn=vn+"resize-observer",Nn=vn+"resize-observer-item",Dn=Nn+"-final",Rn=vn+"text-inherit",Bn=vn+Zt,jn=Bn+"-track",qn=jn+"-off",Un=Bn+"-handle",_n=Un+"-off",Qn=Bn+"-unusable",Vn=Bn+"-"+_t+Et,Xn=Bn+"-corner",Yn=Xn+"-resize",Jn=Yn+"-both",Kn=Yn+en,$n=Yn+tn,Gn=Bn+en,Zn=Bn+tn,er=vn+"dragging",tr=vn+"theme-none",nr={},rr=33,ir=11,or=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],ar=[],sr={x:0,y:0},lr={w:0,h:0};if(wt.sleep=function(){N=!0},wt.update=function(e){if(e===_t){var t=oi(),n=ii();(t||n)&&ci(!1,n)}else"zoom"===e?ci(!0,!0):(e=N||e,N=!1,ci(!1,!1,e))},wt.options=function(e,t){if(c.isEmptyObject(e)||!c.isPlainObject(e)){if(c.type(e)===i.s){if(arguments.length>=2){var n={};return u.set(n,e,t,!0),ri(n),void ci()}return u.get(B,e)}return B}ri(e);var r=N||!1;N=!1,ci(),N=r},wt.destroy=function(){xt=!0,v.remove(wt),Cr(),pr($),Mt&&pr(K),$.remove(),G!==n&&G.remove(),te!==n&&te.remove(),Mt&&K.remove(),A?(fr(J,"mouseenter",Vr),fr(J,"mouseleave",Xr)):(J.off("mouseenter",Vr),J.off("mouseleave",Xr)),oe.remove(),le.remove(),ie&&ie.remove(),pt||Sr(),ne.contents().unwrap().unwrap().unwrap(),Ot&&V.removeClass(dn),Ct?(Y.off(Qt,Pr),Y.off("drop",Ir),Y.off("focus",Wr),Y.off("focusout",Lr),m>9||!y?Y.off("input",Tr):(Y.off(ln,Er),Y.off(cn,kr)),re.remove(),Y.removeClass(An).removeClass(Rn),Y.unwrap().removeAttr(o.s),J.remove()):(Y.removeClass(pn),J.removeClass(pn).removeClass(xn).removeClass(bn).removeClass(mn).removeClass(gn).removeClass(wn).removeClass(Cn).removeClass(On).removeClass(Mn).removeClass(Sn).removeClass(tr).removeClass(Ke)),l.rem(t);var e=j.callbacks.onDestroyed;for(var r in c.isFunction(e)&&wr(e),wt)delete wt[r];wt=n},wt.scroll=function(t,r,a,s){if(0===arguments.length||t===n){var l=At,u=zt,f=Je&&F&&p.i,h=Je&&F&&p.n,v=l.cs,d=l.csr,y=l.ms;return v=f?y-v:v,{x:{position:v*=h?-1:1,ratio:d=f?1-d:d,max:y*=h?-1:1,handleOffset:l.ho,handleLength:l.hl,handleLengthRatio:l.hlr,trackLength:l.tl,isRTL:F,isRTLNormalized:Je},y:{position:u.cs,ratio:u.csr,max:u.ms,handleOffset:u.ho,handleLength:u.hl,handleLengthRatio:u.hlr,trackLength:u.tl}}}var m,g=[Xt,Nt,"l"],w=[Yt,Lt,"t"],b=["+=","-=","*=","/="],x={},C=c.type(r)===i.o,O="end",M="begin",A={axis:"xy",block:[M,M],margin:[0,0,0,0]},z=[Xt,Yt,"xy","yx"],H=[M,O],T=t.hasOwnProperty("el"),E=T?t.el:t,k=E instanceof c,I=!k&&Kr(E),W=function(e,t){for(m=0;m0)t.x=e[0],t.y=e[1];else if(c.type(e)===i.s||c.type(e)===i.n)t.x=e,t.y=e;else if(c.type(e)===i.o){for(var n in e=c.extend({},e),m=0,e)e.hasOwnProperty(n)&&(m>2&&delete e[n],m++);var r=function(t){var n=t?g:w;for(m=0;m2){var y=r.substr(0,2);for(m=0;m/g,(d?"-":Ut)+Vt)).replace(/px/g,Ut)).replace(/%/g,h+f*(v&&p.n?-1:1)/100)).replace(/vw/g,h+Ht.w)).replace(/vh/g,h+Ht.h),a=e.parseInt(e.parseFloat(e.eval(r)).toFixed())}else c.type(r)===i.n&&(a=r);if(!isNaN(a)&&a!==n&&c.type(a)===i.n){var g=Je&&v,w=u*(g&&p.n?-1:1),x=g&&p.i,C=g&&p.n;switch(w=x?f-w:w,o){case"+=":s=w+a;break;case"-=":s=w-a;break;case"*=":s=w*a;break;case"/=":s=w/a;break;default:s=a}x&&(s=f-s),C&&(s*=-1),v&&p.n?(s=Math.max(f,s),s=Math.min(0,s)):(s=Math.min(f,s),s=Math.max(0,s)),s===u&&(s=n)}return s};if(k||I){var N=k?E:c(E);if(0===N.length)return;if(T){var D,R,B,j=t.axis,q=t.block,U=c.type(q),_=t.margin,Q=c.type(_);if(U===i.s)q=[q,q];else if(U===i.a)if((R=q.length)>2||R<1)q=n;else{for(D=!0,1===R&&(q[1]=M),m=0;m0||C){var fe={};if(ce&&(fe[nn]=x.x),ue&&(fe[rn]=x.y),C)ee.animate(fe,r);else{var he={duration:r,complete:s};if(c.type(a)===i.a){var ve={};ve[nn]=a[0],ve[rn]=a[1],he.specialEasing=ve}else he.easing=a;ee.animate(fe,he)}}else ce&&ee[nn](x.x),ue&&ee[rn](x.y)},wt.scrollStop=function(e,t,n){ee.stop(e,t,n)},wt.getElements=function(){return{target:Y[0],host:J[0],padding:Z[0],viewport:ee[0],content:ne[0],scrollbarHorizontal:{scrollbar:oe[0],track:ae[0],handle:se[0]},scrollbarVertical:{scrollbar:le[0],track:ce[0],handle:ue[0]},scrollbarCorner:ie}},wt.getState=function(e){var t=function(e){if(!c.isPlainObject(e))return e;var t=c.extend(!0,{},e);u.del(t,"c");var n=function(e,n){t.hasOwnProperty(e)&&(t[n]=t[e],delete t[e])};return n("w",Bt),n("h",jt),t},n={sleeping:t(N)||!1,autoUpdate:t(!rt),widthAuto:t(ye),heightAuto:t(me),padding:t(be),overflowAmount:t(Te),hideOverflow:t(pe),hasOverflow:t(de),contentScrollSize:t(he),viewportSize:t(Ht),hostSize:t(fe)};return c.type(e)===i.s?u.get(n,e):n},ui(t,f))return l.add(t,wt),wt;wt=n}function cr(){if(!N){var e=$[0],t={w:e[o.sW],h:e[o.sH]};if(bt){var n=mr(t,Ue);Ue=t,n&&ci(!0,!1)}else Ue=t}}function ur(e,t,n){e=e[0];for(var r=t.split(Gt),i=0;i9||!y){var f='">',v="",d="childNodes",g=Jt+Fn+f;g+=Jt+Nn+'" dir="ltr'+f,g+=Jt+Nn+f,g+=Jt+Dn+Kt,g+=v,g+=Jt+Nn+f,g+=Jt+Dn+'" style="width: 200%; height: 200%'+Kt,g+=v,g+=v,g+=v,e.prepend(g);var w,b,x,C,O=(e=e[0])[d][0][d][0],M=c(O[d][1]),S=c(O[d][0]),A=c(S[0][d][0]),H=O[o.oW],T=O[o.oH],E=2,k=h.nativeScrollbarSize,I=function(){S[nn](n)[rn](n),M[nn](n)[rn](n)},W=function(){b=0,w&&(H=x,T=C,r())},L=function(e){return x=O[o.oW],C=O[o.oH],w=x!=H||C!=T,e&&w&&!b?(s.cAF()(b),b=s.rAF()(W)):e||W(),I(),e&&(s.prvD(e),s.stpP(e)),!1},P={};P[Lt]=-(k.y+1)*E,P[Pt]=k.x*-E,P[Ft]=k.y*-E,P[Nt]=-(k.x+1)*E,c(O).css(P),S.on(Qt,L),M.on(Qt,L),c(e).on(u,function(){L(!1)});var N={};N[Bt]=n,N[jt]=n,A.css(N),I()}else{var D=Q[0],R=e;e=e[0];var B=D.attachEvent,j=typeof navigator===i.u||(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));if(B)R.prepend(Jt+Fn+Kt),R.find($t+Fn).first()[0].attachEvent("onresize",r);else{var q=D.createElement(i.o);q.setAttribute("tabindex","-1"),q.setAttribute(o.c,Fn),q.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",r),e.document.documentElement.style.display="none"},q.type="text/html",j&&R.prepend(q),q.data="about:blank",j||R.prepend(q),R.on(u,r)}}}if((e=c(e))[0]===$[0]){var U=function(){var t=J.css("direction");if(t!==Me){var r={},i=0;return"ltr"===t?(r[Nt]=0,r[Pt]=_t,i=n):(r[Nt]=_t,r[Pt]=0,i=p.n?-n:p.i?0:n),$.children().first().css(r),e.scrollLeft(i),e.scrollTop(n),Me=t,!0}return!1};U(),e.on(Qt,function(e){return U()&&ci(),s.prvD(e),s.stpP(e),!1})}}function pr(e){if(z){var t=e.contents()[0];t[hn].disconnect(),delete t[hn]}else e.children($t+Fn).first().remove()}function yr(e,t,r){return!0===r?r:t===n||e!==t}function mr(e,t,r,i,o){if(!0===o)return o;if(i===n&&o===n){if(!0===r)return r;r=n}return r=r===n?"w":r,i=i===n?"h":i,t===n||(e[r]!==t[r]||e[i]!==t[i])}function gr(e,t){return t===n||(e.t!==t.t||e.r!==t.r||e.b!==t.b||e.l!==t.l)}function wr(e,t){bt&&e.call(wt,t)}function br(e,t,r){r===n&&(r=[Ut,Ut,Ut,Ut]),e[t+Lt]=r[0],e[t+Pt]=r[1],e[t+Ft]=r[2],e[t+Nt]=r[3]}function xr(){it&&!rt&&(tt.observe(J[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[o.i,o.c,o.s]}),nt.observe(Ct?Y[0]:ne[0],{attributes:!0,attributeOldValue:!0,subtree:!Ct,childList:!Ct,characterData:!Ct,attributeFilter:Ct?["wrap","cols","rows"]:[o.i,o.c,o.s]}),rt=!0)}function Cr(){it&&rt&&(tt.disconnect(),nt.disconnect(),rt=!1)}function Or(e){if(!N){var t=(e.originalEvent||e).touches!==n;(1===s.mBtn(e)||t)&&(rt&&(dt=!0,Cr()),sr=s.page(e),lr.w=J[0][o.oW]-(T?0:E),lr.h=J[0][o.oH]-(T?0:k),Q.on(un,Fr),Q.on(sn,Mr),Q.on(an,Sr),X.addClass(er),ie.setCapture&&ie.setCapture(),s.prvD(e),s.stpP(e))}}function Mr(e){e.originalEvent;var t=s.page(e),n={};(mt||yt)&&(n[Bt]=lr.w+t.x-sr.x),(gt||yt)&&(n[jt]=lr.h+t.y-sr.y),J.css(n),s.stpP(e)}function Sr(e){var t=e!==n;Q.off(un,Fr),Q.off(sn,Mr),Q.off(an,Sr),X.removeClass(er),ie.releaseCapture&&ie.releaseCapture(),t&&(dt&&xr(),wt.update(_t)),dt=!1}function Ar(){if(!N){var e=!We,t=Ht.w-(T||Se||!ye?0:k+W),n=Ht.h-(T||Se||!me?0:k+W),r={},i=ye||e,a=Y[0];r[Dt+Bt]=Ut,r[Dt+jt]=Ut,r[Bt]=_t,Y.css(r);var s=a[o.oW],l=i?Math.max(s,a[o.sW]-1):1;l+=ye?L+(T?0:e?0:E+I):0,r[Bt]=ye?l:Vt,r[jt]=_t,Y.css(r);var c=a[o.oH],u=Math.max(c,a[o.sH]-1);return r[Bt]=l,r[jt]=u,re.css(r),r[Dt+Bt]=t+(!T&&ye?E+I:0),r[Dt+jt]=n+(!T&&me?k+W:0),Y.css(r),{ow:s,oh:c,dw:l,dh:u}}}function zr(){var e=Y.prop("selectionStart");if(e!==n){for(var t=Y.val(),r=t.length,i=t.split("\n"),o=i.length,a=t.substr(0,e).split("\n"),s=0,l=0,c=a.length,u=a[a.length-1].length,f=0;fl&&(s=f+1,l=h)}return{cursorRow:c,cursorCol:u,rows:o,cols:l,wRow:s,pos:e,max:r}}}function Hr(e){for(var t=0;t-1&&ar.splice(n,1),0===ar.length&&(Ar(),wt.update(_t),clearInterval(ot))}}function Ir(){setTimeout(function(){Ar(),wt.update(_t)},50)}function Wr(){at=!0}function Lr(){at=!1,clearInterval(ot),ar=[],Ar(),wt.update(_t)}function Pr(e){return Y[nn](p.i&&Je?9999999:0),Y[rn](0),s.prvD(e),s.stpP(e),!1}function Fr(e){return s.prvD(e),!1}function Nr(){return Ee&&C.x&&C.y}function Dr(e,t,n){var r=e?mn:gn,i=e?oe:le;t?J.removeClass(r):J.addClass(r),n?i.removeClass(Qn):i.addClass(Qn)}function Rr(e,t){if(clearTimeout(st),e)oe.removeClass(Vn),le.removeClass(Vn);else{var n="active",r=function(){if(!vt){var e=se.hasClass(n)||ue.hasClass(n);e||!ut&&!ft||oe.addClass(Vn),e||!ut&&!ft||le.addClass(Vn)}};lt>0&&!0!==t?st=setTimeout(r,lt):r()}}function Br(e){var t={},n=Qr(e),r=Math.min(1,(fe[n._wh]-(Se?e?E:k:0))/he[n._wh]);t[n.wh]=Math.floor(100*r*1e5)/1e5+"%",Nr()||n.h.css(t),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function jr(e,t){var n=F&&e,r={},i=Qr(e),o=ee[0][Qt+i.WH]-ee[0]["client"+i.WH];p.n&&n&&(o*=-1);var a=t/o;a=isNaN(a)?0:Math.min(1,a),i.i.ms=o,i.i.cs=t,i.i.csr=a;var s=i.i.hl,l=i.t[0]["offset"+i.WH],c=(l-s)*a;if(c=isNaN(c)?0:c,n&&(p.n||!p.n&&!p.i)&&(c=l-s-c),c=Math.max(0,c),S){var u;n&&(c=-(l-s-c));var f="translate(",h="transform";u=e?f+c+"px, 0px)":f+"0px, "+c+"px)",r["-webkit-"+h]=u,r["-moz-"+h]=u,r["-ms-"+h]=u,r["-o-"+h]=u,r[h]=u}else r[i.lt]=c;Nr()||i.h.css(r),i.i.ho=c,i.i.tl=l}function qr(e,t){var n=t?"removeClass":"addClass",r=e?ce:ue,i=e?qn:_n;(e?ae:se)[n](i),r[n](i)}function Ur(){oe=c(Jt+Bn+Gt+Gn+Kt),ae=c(Jt+jn+Kt),se=c(Jt+Un+Kt),le=c(Jt+Bn+Gt+Zn+Kt),ce=c(Jt+jn+Kt),ue=c(Jt+Un+Kt),oe.append(ae),ae.append(se),le.append(ce),ce.append(ue),Z.after(le),Z.after(oe),M&&(oe.on(fn,function(e){e.target===oe[0]&&(Br(!0),jr(!0,ee[nn]()))}),le.on(fn,function(e){e.target===le[0]&&(Br(!1),jr(!1,ee[rn]()))})),_r(!0),_r(!1),ie=c(Jt+Gt+Xn+Kt),J.append(ie)}function _r(e){var t,r,i,o=Qr(e),a=o.xy,l=Qt+o.LT,c="active",u=1,f=function(){u=.5},h=function(){u=1},v=function(n){n.originalEvent;var i=o.i.tl,c=o.i.hl,u=o.i.ms*((c/2+s.page(n)[a]-r-c/2)/(i-c));u=isFinite(u)?u:0,F&&e&&(p.n||!p.n&&!p.i)&&(u*=-1),ee[l](t+u),A||s.prvD(n)},d=function(e){e=e||e.originalEvent,X.removeClass(er),o.h.removeClass(c),o.t.removeClass(c),o.s.removeClass(c),A?(fr(Q,sn,v),fr(Q,an,d),fr(Q,ln,y),fr(Q,cn,m),fr(Q,un,Fr)):(Q.off(sn,v),Q.off(an,d),Q.off(ln,y),Q.off(cn,m),Q.off(un,Fr)),h(),t=n,r=n,i!==n&&(wt.scrollStop(),clearTimeout(i),i=n);var a=J[0].getBoundingClientRect();e.clientX>=a.left&&e.clientX<=a.right&&e.clientY>=a.top&&e.clientY<=a.bottom||Xr(),ut&&Rr(!1)},y=function(e){16==e.keyCode&&f()},m=function(e){16==e.keyCode&&h()};o.h.on(on,function(i){if(!N){var u=(i.originalEvent||i).touches!==n;Nr()||!Xe||u&&!ht||(1===s.mBtn(i)||u)&&(t=(t=ee[l]())===n?0:t,(F&&e&&!p.n||!F)&&(t=t<0?0:t),r=s.page(i)[a],X.addClass(er),o.h.addClass(c),o.s.addClass(c),A?(ur(Q,un,Fr),ur(Q,sn,v),ur(Q,an,d)):(Q.on(un,Fr),Q.on(sn,v),Q.on(an,d)),s.prvD(i))}}),o.t.on(on,function(t){if(!N){var l=(t.originalEvent||t).touches!==n;if(!Nr()&&Ve&&(!l||ht)&&(1===s.mBtn(t)||l)){var h,v=Ht[o._wh],g=o.t.offset()[o.lt],w=!0;t.shiftKey&&f();var b=function(){var t=o.i.ho,a=o.i.hl,s=r-g,l=200*u,c=w?Math.max(333,l):l,f={},d=F&&e&&(!p.i&&!p.n||Je),y=t>s;d&&(y=t=s;d&&(m=h?t+a>=s:t<=s),m?(clearTimeout(i),wt.scrollStop(),i=n):i=setTimeout(b,c),w=!1};r=s.page(t)[a],X.addClass(er),o.t.addClass(c),o.s.addClass(c),A?(ur(Q,un,Fr),ur(Q,an,d),ur(Q,ln,y),ur(Q,cn,m)):(Q.on(un,Fr),Q.on(an,d),Q.on(ln,y),Q.on(cn,m)),b(),s.prvD(t)}}}).hover(function(){ut&&(vt=!0,Rr(!0))},function(){ut&&(vt=!1,Rr(!1))}),o.s.on(on,function(e){s.stpP(e)})}function Qr(e){return{wh:e?Bt:jt,WH:e?"Width":"Height",lt:e?Nt:Lt,LT:e?"Left":"Top",xy:e?Xt:Yt,XY:e?"X":"Y",_wh:e?"w":"h",_lt:e?"l":"t",t:e?ae:ce,h:e?se:ue,s:e?oe:le,i:e?At:zt}}function Vr(){ft&&Rr(!0)}function Xr(){ft&&!X.hasClass(er)&&Rr(!1)}function Yr(e){if(!N){var t=j.callbacks,r=t.onScrollStart,i=t.onScroll,o=t.onScrollStop;D!==n?clearTimeout(D):(ut&&Rr(!0),Nr()||J.addClass(Cn),c.isFunction(r)&&wr(r,e)),jr(!0,ee[nn]()),jr(!1,ee[rn]()),c.isFunction(i)&&wr(i,e),D=setTimeout(function(){Jr(e),c.isFunction(o)&&wr(o,e)},Tt)}}function Jr(){clearTimeout(D),D=n,ut&&Rr(!1),Nr()||J.removeClass(Cn)}function Kr(e){return typeof HTMLElement===i.o?e instanceof HTMLElement:e&&typeof e===i.o&&null!==e&&1===e.nodeType&&typeof e.nodeName===i.s}function $r(e,t,r,o){var a,s,l,f,h,v={n:t,s:!1,v:n,p:n},d=i.u,p=u.has(e,t),y=u.get(e,t),m=!1,g=!0!==p,w="*",b=!1;for(c.type(r)!==i.a&&(r=[r]),h=r.length,s=0;s1){var C=0;for(f=0;f1)break}1===C&&(b=!0)}else b=!0;x===n&&(m=!0)}if(g&&!1===p&&m&&(g=!1),!g){a=y,d=c.type(a);var M=function(e){var t=c.type(e);return t===d&&(t!==i.s||(!!b||a===e))&&(v.s=!0,v.v=a,v.p=a,!0)};for(s=0;s-1&&o.splice(u,1);for(var f=0;f0&&bt&&i-q0?J.addClass(ce):J.addClass(tr)),ot&&(!0===it?(Cr(),v.add(wt)):null===it&&y?(Cr(),v.add(wt)):(v.remove(wt),xr())),Ue)if(qe)if(G===n&&(G=c(Jt+Ln+Kt),Z.before(G)),Mt)K.show();else{K=c(Jt+Pn+Kt),G.before(K);var Tt={w:-1,h:-1};dr(K,function(){var e={w:K[0][o.oW],h:K[0][o.oH]};mr(e,Tt)&&(bt&&me&&e.h>0||ye&&e.w>0?ci():(bt&&!me&&0===e.h||!ye&&0===e.w)&&ci()),Tt=e}),Mt=!0,null!==w&&K.css(jt,w+"(100% + 1px)")}else Mt&&K.hide();r&&($.find("*").trigger(Qt),Mt&&K.find("*").trigger(Qt));var Et,$t=J.css("direction"),Gt=yr($t,Oe,r),Zt=J.css("box-sizing"),en=yr(Zt,we,r),tn={c:r,t:ai(J.css(It+Lt)),r:ai(J.css(It+Pt)),b:ai(J.css(It+Ft)),l:ai(J.css(It+Nt))};try{Et=Mt?K[0].getBoundingClientRect():null}catch(Pi){return}T="border-box"===Zt;var an=(F="rtl"===$t)?Nt:Pt,sn=F?Pt:Nt,ln=J[0],cn=Z[0],un=!1,fn=!(!Mt||"none"===J.css(qt))&&(0===Math.round(Et.right-Et.left)&&(!!De||ln[o.cW]-E>0));if(qe&&!fn){var hn=ln[o.oW],vn=G.css(Bt);G.css(Bt,_t);var dn=ln[o.oW];G.css(Bt,vn),(un=hn!==dn)||(G.css(Bt,hn+1),dn=ln[o.oW],G.css(Bt,vn),un=hn!==dn)}var pn=(fn||un)&&qe,yn=yr(pn,ye,r),mn=!pn&&ye,gn=!!Mt&&0===Math.round(Et.bottom-Et.top),wn=yr(gn,me,r),An=!gn&&me,zn="-"+Bt,Hn=pn&&T||!T,Tn=gn&&T||!T,En={c:r,t:Tn?ai(J.css(Wt+Lt+zn)):0,r:Hn?ai(J.css(Wt+Pt+zn)):0,b:Tn?ai(J.css(Wt+Ft+zn)):0,l:Hn?ai(J.css(Wt+Nt+zn)):0},kn={c:r,t:ai(J.css(kt+Lt)),r:ai(J.css(kt+Pt)),b:ai(J.css(kt+Ft)),l:ai(J.css(kt+Nt))},In={h:String(J.css(Rt+jt)),w:String(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t||en||Re||yn||pn||wn||gn||In.c||nt||vt||je||Pe||Q||xt||zt||Ne||Re||xt||zt||r){var jn="overflow",qn=jn+"-x",Un=jn+"-y",_n="hidden",Qn="visible",Vn=!!H&&(C.x||C.y||Ht.w0&&(Nn[Bt]=Math.max(1,Nn[Bt]),Nn[jt]=Math.max(1,Nn[jt])),Ct&&re.css(Sr),G.css(Nn)}pn&&(Fn[Bt]=Vt),!pn||T||rt||(Fn[qt]="none"),ne.css(Fn),Fn={};var Hr=er.getBoundingClientRect(),Tr={w:Math.max(er[o.sW],ir[o.sW]),h:Math.max(er[o.sH],ir[o.sH])};if(Vn&&ne.css(jn,Ut),Hr.width!==n){var Er=Hr.width,kr=Hr.height,Ir=.001;Tr.w+=ai(Er+Ir)-Er,Tr.h+=ai(kr+Ir)-kr}Tr.c=t=mr(Tr,he,r),he=Tr,e=mr(lr={w:ln[o.cW],h:ln[o.cH]},fe),fe=lr,Ht={w:cn[o.oW],h:cn[o.oH]};var Wr={x:"v-s"===st.x,y:"v-s"===st.y},Lr={x:"v-h"===st.x,y:"v-h"===st.y},Pr={x:"s"===st.x,y:"s"===st.y},Fr={x:Math.max(0,Tr.w-lr.w+(De?E:0)),y:Math.max(0,Tr.h-lr.h+(De?k:0))},Nr=Ct&&(0===Ht.w||0===Ht.h);Nr&&(Fr.x=0,Fr.y=0);var Ur={x:Fr.x>0,y:Fr.y>0},_r={x:Ur.x,y:Ur.y};(Wr.x||Lr.x)&&(_r.x=Ur.y&&!Wr.y&&!Lr.y),(Wr.y||Lr.y)&&(_r.y=Ur.x&&!Wr.x&&!Lr.x),_r.xs=!!_r.x&&(Pr.x||Wr.x),_r.ys=!!_r.y&&(Pr.y||Wr.y);var Qr={x:Ur.x&&_r.xs,y:Ur.y&&_r.ys},Yr=Te;if(Fr.c=mr(Fr,Te,Xt,Yt,r),Te=Fr,Ur.c=mr(Ur,de,Xt,Yt,r),de=Ur,_r.c=mr(_r,pe,Xt,Yt,r),pe=_r,C.x||C.y){var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wr(D,{isRTL:F,dir:$t}),e&&c.isFunction(B)&&wr(B,{width:fe.w,height:fe.h}),t&&c.isFunction(R)&&wr(R,{width:he.w,height:he.h}),(Ur.c||_r.c)&&c.isFunction(S)&&wr(S,{x:Ur.x,y:Ur.y,xScrollable:_r.xs,yScrollable:_r.ys,clipped:_r.x||_r.y}),Fr.c&&c.isFunction(z)&&wr(z,{x:Fr.x,y:Fr.y})}Ot&&(Ur.c||et.c)&&(et.f||Gr(),C.y&&Ur.x&&ne.css(Dt+Bt,et.w+O.y),C.x&&Ur.y&&ne.css(Dt+jt,et.h+O.x),et.c=!1),vr($),vr(K),c.isFunction(M)&&wr(M,{forced:r})}}function ui(e,t){R=h.defaultOptions,g=h.nativeScrollbarStyling,b=c.extend(!0,{},h.nativeScrollbarSize),C=c.extend(!0,{},h.nativeScrollbarIsOverlaid),O=c.extend(!0,{},h.overlayScrollbarDummySize),p=c.extend(!0,{},h.rtlScrollBehavior),ri(c.extend(!0,{},R,t));var n,r=j.callbacks;if(C.x&&C.x&&!j.nativeScrollbarsOverlaid.initialize){var i=r.onInitializationWithdrawn;return c.isFunction(i)&&wr(i),!1}if(w=h.cssCalc,m=h.msie,y=h.autoUpdateRecommended,M=h.supportTransition,S=h.supportTransform,A=h.supportPassiveEvents,z=h.supportResizeObserver,it=h.supportMutationObserver,H=h.restrictedMeasuring,Q=c(e.ownerDocument),_=c(Q[0].defaultView||Q[0].parentWindow),V=Q.find("html").first(),X=V.find("body").first(),Y=c(e),Ct=Y.is("textarea"),(Ot=Y.is("body"))&&((n={}).l=Math.max(Y[nn](),V[nn](),_[nn]()),n.t=Math.max(Y[rn](),V[rn](),_[rn]())),Ct){Y.wrap(Jt+yn+Kt),Y.addClass(An).addClass(Rn),J=Y.parent();var a={};j.sizeAutoCapable||(a[Bt]=Y.css(Bt),a[jt]=Y.css(jt)),J.css(a),J.wrapInner(Jt+In+Gt+Rn+Kt).wrapInner(Jt+Tn+Gt+Rn+Kt).wrapInner(Jt+Hn+Gt+Rn+Kt),ne=J.find($t+In).first(),ee=J.find($t+Tn).first(),Z=J.find($t+Hn).first(),re=c(Jt+zn+Kt),ne.prepend(re),Y.on(Qt,Pr),Y.on("drop",Ir),Y.on("focus",Wr),Y.on("focusout",Lr),m>9||!y?Y.on("input",Tr):(Y.on(ln,Er),Y.on(cn,kr))}else Y.addClass(pn),(J=Y).wrapInner(Jt+In+Kt).wrapInner(Jt+Tn+Kt).wrapInner(Jt+Hn+Kt),ne=J.find($t+In).first(),ee=J.find($t+Tn).first(),Z=J.find($t+Hn).first(),ne.on(fn,function(e){!0!==ke&&si((e=e.originalEvent||e).propertyName)&&ci(_t)});if(Ur(),A?ur(ee,Qt,Yr):ee.on(Qt,Yr),g&&(C.x&&C.y?ee.addClass(kn):ee.addClass(En)),it){var l,u=s.mO(),f=s.now();tt=new u(function(e){if(bt&&!N){var t=!1;c.each(e,function(){var e=this,n=this.target,r=e.attributeName;if(t=r===o.c?ti(e.oldValue,n.className):r!==o.s||e.oldValue!==n.style.cssText)return!1}),t&&wt.update(_t)}}),nt=new u(function(e){if(bt&&!N){for(var t=!1,n=0;nir||!i?o():l=setTimeout(o,ir)}}})}Ot&&(V.addClass(dn),ee[nn](n.l),ee[rn](n.t)),$=c(Jt+"os-resize-observer-host"+Kt),J.prepend($),dr($,cr),cr(),wt.update(_t),setTimeout(function(){M&&!xt&&J.addClass(wn)},333),bt=!0;var v=r.onInitialized;return c.isFunction(v)&&wr(v),bt}}e[r]=function(e,t){if(0===arguments.length)return this;d();var r,i=[];return c.isPlainObject(t)?e&&e.length?e.length>1?(c.each(e,function(){(r=this)!==n&&i.push(m(r,t,f,h))}),i):m(e[0],t,f,h):m(e,t,f,h):e?e.length&&e.length>0?e.length>1?(c.each(e,function(){r=l.get(this),"!"===t?r!==n&&i.push(r):i.push(r)}),i):l.get(e[0]):l.get(e):void 0},e[r].globals=function(){d();var e=c.extend(!0,{},f);return delete e.msie,e},e[r].defaultOptions=function(e){d();var t=f.defaultOptions;if(e===n)return c.extend(!0,{},t);f.defaultOptions=c.extend(!0,{},t,e)}}(a,l,s,c),e.jQuery);return u&&u.fn&&(u.fn.overlayScrollbars=function(t){var n=this;return u.isPlainObject(t)?(u.each(n,function(){e[r](this,t)}),n):e[r](n,t)}),e[r]}); \ No newline at end of file + +!function(e,t){"function"==typeof define&&define.amd?define(function(){return t(e,e.document,undefined)}):"object"==typeof exports?module.exports=t(e,e.document,undefined):t(e,e.document,undefined)}("undefined"!=typeof window?window:this,function(e,t,n){"use-strict";var r="OverlayScrollbars",i={o:"object",f:"function",a:"array",s:"string",n:"number",u:"undefined"},o={c:"class",s:"style",i:"id",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth"},a={wW:function(){return e.innerWidth||t.documentElement[o.cW]||t.body[o.cW]},wH:function(){return e.innerHeight||t.documentElement[o.cH]||t.body[o.cH]},mO:function(){return e.MutationObserver||e.WebKitMutationObserver||e.WebkitMutationObserver||e.MozMutationObserver||n},rO:function(){return e.ResizeObserver||e.WebKitResizeObserver||e.WebkitResizeObserver||e.MozResizeObserver||n},rAF:function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}},cAF:function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||function(t){return e.clearTimeout(t)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},page:function(e){var r="page",i="client",o="X",a="Y",s=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,l=s.documentElement,c=s.body;if(e.touches!==n){var u=e.touches[0];return{x:u[r+o],y:u[r+a]}}return!e[r+o]&&e[i+o]&&null!=e[i+o]?{x:e[i+o]+(l&&l.scrollLeft||c&&c.scrollLeft||0)-(l&&l.clientLeft||c&&c.clientLeft||0),y:e[i+a]+(l&&l.scrollTop||c&&c.scrollTop||0)-(l&&l.clientTop||c&&c.clientTop||0)}:{x:e[r+o],y:e[r+a]}},mBtn:function(e){return e.which||e.button===n?e.which:1&e.button?1:2&e.button?3:4&e.button?2:0},bind:function(e,t){if(typeof e!==i.f)throw"Can't bind function!";var n=Array.prototype.slice.call(arguments,2),r=function(){},o=function(){return e.apply(this instanceof r?this:t,n.concat(Array.prototype.slice.call(arguments)))};return e.prototype&&(r.prototype=e.prototype),o.prototype=new r,o}},s=function(r){var o=/[^\x20\t\r\n\f]+/g,a=Object.prototype.toString,s=" ",l="",c=[],u={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},f={swing:function(e,t,n,r,i){return.5-Math.cos(e*Math.PI)/2},linear:function(e,t,n,r,i){return e},easeInQuad:function(e,t,n,r,i){return r*(t/=i)*t+n},easeOutQuad:function(e,t,n,r,i){return-r*(t/=i)*(t-2)+n},easeInOutQuad:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,r,i){return r*(t/=i)*t*t+n},easeOutCubic:function(e,t,n,r,i){return r*((t=t/i-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t+n:r/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,r,i){return r*(t/=i)*t*t*t+n},easeOutQuart:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t+n:-r/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,r,i){return r*(t/=i)*t*t*t*t+n},easeOutQuint:function(e,t,n,r,i){return r*((t=t/i-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t*t+n:r/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,r,i){return-r*Math.cos(t/i*(Math.PI/2))+r+n},easeOutSine:function(e,t,n,r,i){return r*Math.sin(t/i*(Math.PI/2))+n},easeInOutSine:function(e,t,n,r,i){return-r/2*(Math.cos(Math.PI*t/i)-1)+n},easeInExpo:function(e,t,n,r,i){return 0==t?n:r*Math.pow(2,10*(t/i-1))+n},easeOutExpo:function(e,t,n,r,i){return t==i?n+r:r*(1-Math.pow(2,-10*t/i))+n},easeInOutExpo:function(e,t,n,r,i){return 0==t?n:t==i?n+r:(t/=i/2)<1?r/2*Math.pow(2,10*(t-1))+n:r/2*(2-Math.pow(2,-10*--t))+n},easeInCirc:function(e,t,n,r,i){return-r*(Math.sqrt(1-(t/=i)*t)-1)+n},easeOutCirc:function(e,t,n,r,i){return r*Math.sqrt(1-(t=t/i-1)*t)+n},easeInOutCirc:function(e,t,n,r,i){return(t/=i/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+n:r/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,r,i){var o=1.70158,a=0,s=r;if(0==t)return n;if(1==(t/=i))return n+r;if(a||(a=.3*i),s0&&t-1 in e)}function m(e){return(e.match(o)||[]).join(s)}function g(e,n){for(var r=(e.parentNode||t).querySelectorAll(n)||[],i=r.length;i--;)if(r[i]==e)return!0;return!1}function w(e,t,n){h.type(n)===i.s?e.insertAdjacentHTML(t,n):n.nodeType?e.insertAdjacentElement(t,n):e.insertAdjacentElement(t,n[0])}function b(e,t,r){try{e.style[t]!==n&&(e.style[t]=x(t,r))}catch(i){}}function x(e,t){return u[e.toLowerCase()]||h.type(t)!==i.n||(t=t+="px"),t}function C(e,t){var n,r;!1!==t&&e.q.splice(0,1),e.q.length>0?(r=e.q[0],M(e.el,r.props,r.duration,r.easing,r.complete,!0)):(n=h.inArray(e,c))>-1&&c.splice(n,1)}function O(e,t,n){"scrollLeft"===t?e[t]=n:"scrollTop"===t?e[t]=n:b(e,t,n)}function M(e,t,n,i,o,a){var s,l,u,v,p,y,m={},g={},w=0,b=h.isPlainObject(n);for(b?(i=n.easing,n.start,u=n.progress,v=n.step,p=n.specialEasing,o=n.complete,y=n.duration):y=n,p=p||{},y=y||400,i=i||"swing",a=a||!1;w0)E=r.now(),k=function(){for(s in x=r.now(),I=x-E,M=L.stop||I>=y,S=1-(Math.max(0,E+y-x)/y||0),g)T=m[s],z=g[s],H=(z-T)*f[p[s]||i](S,S*y,0,1,y)+T,O(e,s,H),d(v)&&v(H,{elem:e,prop:s,start:T,now:H,end:z,pos:S,options:{easing:i,speacialEasing:p,duration:y,complete:o,step:v},startTime:E});d(u)&&u({},S,Math.max(0,y-I)),M?(C(l),d(o)&&o()):L.frame=r.rAF()(k)},L.frame=r.rAF()(k);else{for(s in g)O(e,s,g[s]);C(l)}}}function S(e,t,n){for(var i,o,a,s=0;s0){if((o=i.q[0]).stop=!0,r.cAF()(o.frame),i.q.splice(0,1),n)for(a in o.props)O(e,a,o.props[a]);t?i.q=[]:C(i,!1)}break}}function A(e){var t=this;h.type(e)===i.s||e.length||(e=[e]);for(var n=0;n-1)return!0;return!1},addClass:function(e){var t,r,i,a,l,c,u=null,f=0,h=0;if(e)for(t=e.match(o)||[];r=this[f++];)if(u===n&&(u=r.classList!==n),u)for(;l=t[h++];)r.classList.add(l);else if(a=r.className,i=1===r.nodeType&&s+m(a)+s){for(;l=t[h++];)i.indexOf(s+l+s)<0&&(i+=l+s);a!==(c=m(i))&&(r.className=c)}return this},removeClass:function(e){var t,r,i,a,l,c,u=null,f=0,h=0;if(e)for(t=e.match(o)||[];r=this[f++];)if(u===n&&(u=r.classList!==n),u)for(;l=t[h++];)r.classList.remove(l);else if(a=r.className,i=1===r.nodeType&&s+m(a)+s){for(;l=t[h++];)for(;i.indexOf(s+l+s)>-1;)i=i.replace(s+l+s,s);a!==(c=m(i))&&(r.className=c)}return this},remove:function(){return this.each(function(){var e=this;null!=e.parentNode&&e.parentNode.removeChild(e)})},offset:function(){var n=this[0].getBoundingClientRect(),r=e.pageXOffset||t.documentElement.scrollLeft,i=e.pageYOffset||t.documentElement.scrollTop;return{top:n.top+i,left:n.left+r}},css:function(t,r){var o,a;return h.type(t)===i.s?r===n?(o=this[0],e.getComputedStyle?e.getComputedStyle(o,null).getPropertyValue(t):o.currentStyle[t]):this.each(function(){b(this,t,r)}):this.each(function(){for(a in t)b(this,a,t[a])})},unwrap:function(){var e,t,n,r=[];for(this.each(function(){n=this.parentNode,-1===h.inArray(n,r)&&r.push(n)}),e=0;e0;)i=i.childNodes[0];for(t=0;n.length-t;i.firstChild===n[0]&&t++)i.appendChild(n[t]);var s=a?a.nextSibling:o.firstChild;return o.insertBefore(r,s),this},wrapInner:function(e){return this.each(function(){var t=new A(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){return this.each(function(){new h(this).wrapAll(e)})},contents:function(){var e,t,n=[];return this.each(function(){for(e=this.childNodes,t=0;t-1&&(delete n[r],t.splice(i,1))}function a(e){return s(e)!==n}function s(e){for(var n=0;n
'),f=function(){a.append(u);var e,t="overflow",n="hidden",r=u[0],s=c(u.children("div").first());return 0===r[o.oH]&&u.hide().show(),e={x:r[o.oH]-r[o.cH],y:r[o.oW]-r[o.cW]},i.restrictedMeasuring=function(){u.css(t,n);var e={w:r[o.sW],h:r[o.sH]};u.css(t,"visible");var i={w:r[o.sW],h:r[o.sH]};return e.w-i.w!=0||e.h-i.h!=0}(),i.nativeScrollbarStyling=(u.addClass("os-viewport-native-scrollbars-invisible"),u.css(t,n).hide().css(t,"scroll").show(),r[o.oH]-r[o.cH]==0&&r[o.oW]-r[o.cW]==0),i.rtlScrollBehavior=function(){u.css({"overflow-y":n,direction:"rtl"}).scrollLeft(0);var e=u.offset(),t=s.offset();u.scrollLeft(999);var r=s.offset();return{i:e.left===t.left,n:t.left-r.left==0}}(),u.removeAttr(o.s).remove(),e}(),h={x:0===f.x,y:0===f.y};function v(e){var r=!1,i="Webkit Moz ms O".split(" "),o=t.createElement("div"),a=null;if(e=e.toLowerCase(),o.style[e]!==n&&(r=!0),!1===r){a=e.charAt(0).toUpperCase()+e.substr(1);for(var s=0;s0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)}(),i.cssCalc=function(){for(var e=t.createElement("div"),n=["calc","-webkit-calc","-moz-calc","-o-calc"],r=0;r0){var e=s.wW(),h=s.wH(),d=e-t,p=h-n;if(0===d&&0===p)return;var y=Math.round(e/(t/100)),m=Math.round(h/(n/100)),g=Math.abs(d),w=Math.abs(p),b=Math.abs(y),x=Math.abs(m),C=v(),O=g>2&&w>2,M=!f(b,x);if(!!(O&&M&&(C!==r&&r>0))){a.append(u);var S=u[0];i.nativeScrollbarSize={x:S[o.oH]-S[o.cH],y:S[o.oW]-S[o.cW]},u.remove(),c.each(l.all(),function(){l.has(this)&&l.get(this).update("zoom")})}t=e,n=h,r=C}})}function f(e,t){var n=Math.abs(e),r=Math.abs(t);return!(n===r||n+1===r||n-1===r)}function v(){var t=e.screen.deviceXDPI||0,n=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/n}}()}function y(e){var t,r=this,i="autoUpdate",o=i+"Interval",a=[],l=[],u=!1,f=33,h=f,v=s.now(),d=function(){if(a.length>0&&u){t=s.rAF()(function(){d()});var e=s.now(),r=e-v;if(r>h){v=e-r%h;for(var c=f,p=0;pw&&(y.update("auto"),l[p]=new Date(b+=w)),c=Math.max(1,Math.min(c,w))}}h=c}}else h=f};r.add=function(t){-1===c.inArray(t,a)&&(a.push(t),l.push(s.now()),a.length>0&&!u&&(u=!0,e.autoUpdateLoop=u,d()))},r.remove=function(r){var i=c.inArray(r,a);i>-1&&(l.splice(i,1),a.splice(i,1),0===a.length&&u&&(u=!1,e.autoUpdateLoop=u,t!==n&&(s.cAF()(t),t=-1)))}}function m(t,f,h,v){if(ti(t)){if(l.has(t)){var d=l.get(t);return d.options(f),d}var p,y,m,g,w,b,x,C,O,M,S,A,T,z,H,E,k,I,W,L,P,F,N,D,R,B,j,q,U,_,Q,V,X,Y,J,K,$,G,Z,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,fe,he,ve,de,pe,ye,me,ge,we,be,xe,Ce,Oe,Me,Se,Ae,Te,ze,He,Ee,ke,Ie,We,Le,Pe,Fe,Ne,De,Re,Be,je,qe,Ue,_e,Qe,Ve,Xe,Ye,Je,Ke,$e,Ge,Ze,et,tt,nt,rt,it,ot,at,st,lt,ct,ut,ft,ht,vt,dt,pt,yt,mt,gt,wt,bt,xt=new e[r],Ct=!1,Ot=!1,Mt=!1,St=!1,At=!1,Tt={w:0,h:0},zt={},Ht={},Et={},kt=175,It="-hidden",Wt="margin-",Lt="padding-",Pt="border-",Ft="top",Nt="right",Dt="bottom",Rt="left",Bt="min-",jt="max-",qt="width",Ut="height",_t="float",Qt="",Vt="auto",Xt="scroll",Yt="100%",Jt="x",Kt="y",$t='
',Zt=".",en=" ",tn="scrollbar",nn="-horizontal",rn="-vertical",on=Xt+"Left",an=Xt+"Top",sn="mousedown touchstart",ln="mouseup touchend",cn="mousemove touchmove",un="mouseenter",fn="mouseleave",hn="keydown",vn="keyup",dn="selectstart",pn="transitionend webkitTransitionEnd oTransitionEnd",yn="__overlayScrollbarsRO__",mn="os-",gn=mn+"html",wn=mn+"host",bn=wn+"-textarea",xn=wn+"-"+tn+nn+It,Cn=wn+"-"+tn+rn+It,On=wn+"-transition",Mn=wn+"-rtl",Sn=wn+"-resize-disabled",An=wn+"-scrolling",Tn=wn+"-overflow",zn=Tn+"-x",Hn=Tn+"-y",En=mn+"textarea",kn=En+"-cover",In=mn+"padding",Wn=mn+"viewport",Ln=Wn+"-native-scrollbars-invisible",Pn=Wn+"-native-scrollbars-overlaid",Fn=mn+"content",Nn=mn+"content-arrange",Dn=mn+"content-glue",Rn=mn+"size-auto-observer",Bn=mn+"resize-observer",jn=mn+"resize-observer-item",qn=jn+"-final",Un=mn+"text-inherit",_n=mn+tn,Qn=_n+"-track",Vn=Qn+"-off",Xn=_n+"-handle",Yn=Xn+"-off",Jn=_n+"-unusable",Kn=_n+"-"+Vt+It,$n=_n+"-corner",Gn=$n+"-resize",Zn=Gn+"-both",er=Gn+nn,tr=Gn+rn,nr=_n+nn,rr=_n+rn,ir=mn+"dragging",or=mn+"theme-none",ar={},sr=33,lr=11,cr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],ur=[],fr={x:0,y:0},hr={w:0,h:0};if(xt.sleep=function(){N=!0},xt.update=function(e){if(e===Vt){var t=ui(),n=ci();(t||n)&&di(!1,n)}else"zoom"===e?di(!0,!0):(e=N||e,N=!1,di(!1,!1,e))},xt.options=function(e,t){if(c.isEmptyObject(e)||!c.isPlainObject(e)){if(c.type(e)===i.s){if(arguments.length>=2){var n={};return u.set(n,e,t,!0),li(n),void di()}return u.get(B,e)}return B}li(e);var r=N||!1;N=!1,di(),N=r},xt.destroy=function(){Ot=!0,v.remove(xt),Ar(),wr($),At&&wr(K),$.remove(),G!==n&&G.remove(),te!==n&&te.remove(),At&&K.remove(),A?(pr(J,cn,Gr),pr(J,un,Kr),pr(J,fn,$r)):(J.off(cn,Gr),J.off(un,Kr),J.off(fn,$r)),oe.remove(),le.remove(),ie&&ie.remove(),mt||Hr(),ne.contents().unwrap().unwrap().unwrap(),St&&V.removeClass(gn),Mt?(Y.off(Xt,Rr),Y.off("drop",Fr),Y.off("focus",Nr),Y.off("focusout",Dr),m>9||!y?Y.off("input",Wr):(Y.off(hn,Lr),Y.off(vn,Pr)),re.remove(),Y.removeClass(En).removeClass(Un),Y.unwrap().removeAttr(o.s),J.remove()):(Y.removeClass(wn),J.removeClass(wn).removeClass(Sn).removeClass(Mn).removeClass(xn).removeClass(Cn).removeClass(On).removeClass(An).removeClass(Tn).removeClass(zn).removeClass(Hn).removeClass(or).removeClass(Ke)),l.rem(t);var e=j.callbacks.onDestroyed;for(var r in c.isFunction(e)&&Or(e),xt)delete xt[r];xt=n},xt.scroll=function(t,r,a,s){if(0===arguments.length||t===n){var l=zt,u=Ht,f=Je&&F&&p.i,h=Je&&F&&p.n,v=l.cs,d=l.csr,y=l.ms;return v=f?y-v:v,{x:{position:v*=h?-1:1,ratio:d=f?1-d:d,max:y*=h?-1:1,handleOffset:l.ho,handleLength:l.hl,handleLengthRatio:l.hlr,trackLength:l.tl,isRTL:F,isRTLNormalized:Je},y:{position:u.cs,ratio:u.csr,max:u.ms,handleOffset:u.ho,handleLength:u.hl,handleLengthRatio:u.hlr,trackLength:u.tl}}}var m,g=[Jt,Rt,"l"],w=[Kt,Ft,"t"],b=["+=","-=","*=","/="],x={},C=c.type(r)===i.o,O="end",M="begin",A={axis:"xy",block:[M,M],margin:[0,0,0,0]},T=[Jt,Kt,"xy","yx"],z=[M,O],H=t.hasOwnProperty("el"),E=H?t.el:t,k=E instanceof c,I=!k&&ti(E),W=function(e,t){for(m=0;m0)t.x=e[0],t.y=e[1];else if(c.type(e)===i.s||c.type(e)===i.n)t.x=e,t.y=e;else if(c.type(e)===i.o){for(var n in e=c.extend({},e),m=0,e)e.hasOwnProperty(n)&&(m>2&&delete e[n],m++);var r=function(t){var n=t?g:w;for(m=0;m2){var y=r.substr(0,2);for(m=0;m/g,(d?"-":Qt)+Yt)).replace(/px/g,Qt)).replace(/%/g,h+f*(v&&p.n?-1:1)/100)).replace(/vw/g,h+Et.w)).replace(/vh/g,h+Et.h),a=e.parseInt(e.parseFloat(e.eval(r)).toFixed())}else c.type(r)===i.n&&(a=r);if(!isNaN(a)&&a!==n&&c.type(a)===i.n){var g=Je&&v,w=u*(g&&p.n?-1:1),x=g&&p.i,C=g&&p.n;switch(w=x?f-w:w,o){case"+=":s=w+a;break;case"-=":s=w-a;break;case"*=":s=w*a;break;case"/=":s=w/a;break;default:s=a}x&&(s=f-s),C&&(s*=-1),v&&p.n?(s=Math.max(f,s),s=Math.min(0,s)):(s=Math.min(f,s),s=Math.max(0,s)),s===u&&(s=n)}return s};if(k||I){var N=k?E:c(E);if(0===N.length)return;if(H){var D,R,B,j=t.axis,q=t.block,U=c.type(q),_=t.margin,Q=c.type(_);if(U===i.s)q=[q,q];else if(U===i.a)if((R=q.length)>2||R<1)q=n;else{for(D=!0,1===R&&(q[1]=M),m=0;m0||C){var fe={};if(ce&&(fe[on]=x.x),ue&&(fe[an]=x.y),C)ee.animate(fe,r);else{var he={duration:r,complete:s};if(c.type(a)===i.a){var ve={};ve[on]=a[0],ve[an]=a[1],he.specialEasing=ve}else he.easing=a;ee.animate(fe,he)}}else ce&&ee[on](x.x),ue&&ee[an](x.y)},xt.scrollStop=function(e,t,n){ee.stop(e,t,n)},xt.getElements=function(){return{target:Y[0],host:J[0],padding:Z[0],viewport:ee[0],content:ne[0],scrollbarHorizontal:{scrollbar:oe[0],track:ae[0],handle:se[0]},scrollbarVertical:{scrollbar:le[0],track:ce[0],handle:ue[0]},scrollbarCorner:ie}},xt.getState=function(e){var t=function(e){if(!c.isPlainObject(e))return e;var t=c.extend(!0,{},e);u.del(t,"c");var n=function(e,n){t.hasOwnProperty(e)&&(t[n]=t[e],delete t[e])};return n("w",qt),n("h",Ut),t},n={sleeping:t(N)||!1,autoUpdate:t(!rt),widthAuto:t(ye),heightAuto:t(me),padding:t(be),overflowAmount:t(He),hideOverflow:t(pe),hasOverflow:t(de),contentScrollSize:t(he),viewportSize:t(Et),hostSize:t(fe)};return c.type(e)===i.s?u.get(n,e):n},pi(t,f))return l.add(t,xt),xt;xt=n}function vr(){if(!N){var e=$[0],t={w:e[o.sW],h:e[o.sH]};if(Ct){var n=xr(t,Ue);Ue=t,n&&di(!0,!1)}else Ue=t}}function dr(e,t,n){e=e[0];for(var r=t.split(en),i=0;i9||!y){var f='">',v="",d="childNodes",g=$t+Bn+f;g+=$t+jn+'" dir="ltr'+f,g+=$t+jn+f,g+=$t+qn+Gt,g+=v,g+=$t+jn+f,g+=$t+qn+'" style="width: 200%; height: 200%'+Gt,g+=v,g+=v,g+=v,e.prepend(g);var w,b,x,C,O=(e=e[0])[d][0][d][0],M=c(O[d][1]),S=c(O[d][0]),A=c(S[0][d][0]),z=O[o.oW],H=O[o.oH],E=2,k=h.nativeScrollbarSize,I=function(){S[on](n)[an](n),M[on](n)[an](n)},W=function(){b=0,w&&(z=x,H=C,r())},L=function(e){return x=O[o.oW],C=O[o.oH],w=x!=z||C!=H,e&&w&&!b?(s.cAF()(b),b=s.rAF()(W)):e||W(),I(),e&&(s.prvD(e),s.stpP(e)),!1},P={};P[Ft]=-(k.y+1)*E,P[Nt]=k.x*-E,P[Dt]=k.y*-E,P[Rt]=-(k.x+1)*E,c(O).css(P),S.on(Xt,L),M.on(Xt,L),c(e).on(u,function(){L(!1)});var N={};N[qt]=n,N[Ut]=n,A.css(N),I()}else{var D=Q[0],R=e;e=e[0];var B=D.attachEvent,j=typeof navigator===i.u||(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));if(B)R.prepend($t+Bn+Gt),R.find(Zt+Bn).first()[0].attachEvent("onresize",r);else{var q=D.createElement(i.o);q.setAttribute("tabindex","-1"),q.setAttribute(o.c,Bn),q.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",r),e.document.documentElement.style.display="none"},q.type="text/html",j&&R.prepend(q),q.data="about:blank",j||R.prepend(q),R.on(u,r)}}}if((e=c(e))[0]===$[0]){var U=function(){var t=J.css("direction");if(t!==Me){var r={},i=0;return"ltr"===t?(r[Rt]=0,r[Nt]=Vt,i=n):(r[Rt]=Vt,r[Nt]=0,i=p.n?-n:p.i?0:n),$.children().first().css(r),e.scrollLeft(i),e.scrollTop(n),Me=t,!0}return!1};U(),e.on(Xt,function(e){return U()&&di(),s.prvD(e),s.stpP(e),!1})}}function wr(e){if(T){var t=e.contents()[0];t[yn].disconnect(),delete t[yn]}else e.children(Zt+Bn).first().remove()}function br(e,t,r){return!0===r?r:t===n||e!==t}function xr(e,t,r,i,o){if(!0===o)return o;if(i===n&&o===n){if(!0===r)return r;r=n}return r=r===n?"w":r,i=i===n?"h":i,t===n||(e[r]!==t[r]||e[i]!==t[i])}function Cr(e,t){return t===n||(e.t!==t.t||e.r!==t.r||e.b!==t.b||e.l!==t.l)}function Or(e,t){Ct&&e.call(xt,t)}function Mr(e,t,r){r===n&&(r=[Qt,Qt,Qt,Qt]),e[t+Ft]=r[0],e[t+Nt]=r[1],e[t+Dt]=r[2],e[t+Rt]=r[3]}function Sr(){it&&!rt&&(tt.observe(J[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[o.i,o.c,o.s]}),nt.observe(Mt?Y[0]:ne[0],{attributes:!0,attributeOldValue:!0,subtree:!Mt,childList:!Mt,characterData:!Mt,attributeFilter:Mt?["wrap","cols","rows"]:[o.i,o.c,o.s]}),rt=!0)}function Ar(){it&&rt&&(tt.disconnect(),nt.disconnect(),rt=!1)}function Tr(e){if(!N){var t=(e.originalEvent||e).touches!==n;(1===s.mBtn(e)||t)&&(rt&&(yt=!0,Ar()),fr=s.page(e),hr.w=J[0][o.oW]-(H?0:E),hr.h=J[0][o.oH]-(H?0:k),Q.on(dn,Br),Q.on(cn,zr),Q.on(ln,Hr),X.addClass(ir),ie.setCapture&&ie.setCapture(),s.prvD(e),s.stpP(e))}}function zr(e){e.originalEvent;var t=s.page(e),n={};(wt||gt)&&(n[qt]=hr.w+t.x-fr.x),(bt||gt)&&(n[Ut]=hr.h+t.y-fr.y),J.css(n),s.stpP(e)}function Hr(e){var t=e!==n;Q.off(dn,Br),Q.off(cn,zr),Q.off(ln,Hr),X.removeClass(ir),ie.releaseCapture&&ie.releaseCapture(),t&&(yt&&Sr(),xt.update(Vt)),yt=!1}function Er(){if(!N){var e=!We,t=Et.w-(H||Se||!ye?0:k+W),n=Et.h-(H||Se||!me?0:k+W),r={},i=ye||e,a=Y[0];r[Bt+qt]=Qt,r[Bt+Ut]=Qt,r[qt]=Vt,Y.css(r);var s=a[o.oW],l=i?Math.max(s,a[o.sW]-1):1;l+=ye?L+(H?0:e?0:E+I):0,r[qt]=ye?l:Yt,r[Ut]=Vt,Y.css(r);var c=a[o.oH],u=Math.max(c,a[o.sH]-1);return r[qt]=l,r[Ut]=u,re.css(r),r[Bt+qt]=t+(!H&&ye?E+I:0),r[Bt+Ut]=n+(!H&&me?k+W:0),Y.css(r),{ow:s,oh:c,dw:l,dh:u}}}function kr(){var e=Y.prop("selectionStart");if(e!==n){for(var t=Y.val(),r=t.length,i=t.split("\n"),o=i.length,a=t.substr(0,e).split("\n"),s=0,l=0,c=a.length,u=a[a.length-1].length,f=0;fl&&(s=f+1,l=h)}return{cursorRow:c,cursorCol:u,rows:o,cols:l,wRow:s,pos:e,max:r}}}function Ir(e){for(var t=0;t-1&&ur.splice(n,1),0===ur.length&&(Er(),xt.update(Vt),clearInterval(ot))}}function Fr(){setTimeout(function(){Er(),xt.update(Vt)},50)}function Nr(){at=!0}function Dr(){at=!1,clearInterval(ot),ur=[],Er(),xt.update(Vt)}function Rr(e){return Y[on](p.i&&Je?9999999:0),Y[an](0),s.prvD(e),s.stpP(e),!1}function Br(e){return s.prvD(e),!1}function jr(){return Ee&&C.x&&C.y}function qr(e,t,n){var r=e?xn:Cn,i=e?oe:le;t?J.removeClass(r):J.addClass(r),n?i.removeClass(Jn):i.addClass(Jn)}function Ur(e,t){if(clearTimeout(st),e)oe.removeClass(Kn),le.removeClass(Kn);else{var n="active",r=function(){if(!pt){var e=se.hasClass(n)||ue.hasClass(n);!e&&(ft||ht||vt)&&oe.addClass(Kn),!e&&(ft||ht||vt)&&le.addClass(Kn)}};ct>0&&!0!==t?st=setTimeout(r,ct):r()}}function _r(e){var t={},n=Jr(e),r=Math.min(1,(fe[n._wh]-(Se?e?E:k:0))/he[n._wh]);t[n.wh]=Math.floor(100*r*1e5)/1e5+"%",jr()||n.h.css(t),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function Qr(e,t){var n=F&&e,r={},i=Jr(e),o=ee[0][Xt+i.WH]-ee[0]["client"+i.WH];p.n&&n&&(o*=-1);var a=t/o;a=isNaN(a)?0:Math.min(1,a),i.i.ms=o,i.i.cs=t,i.i.csr=a;var s=i.i.hl,l=i.t[0]["offset"+i.WH],c=(l-s)*a;if(c=isNaN(c)?0:c,n&&(p.n||!p.n&&!p.i)&&(c=l-s-c),c=Math.max(0,c),S){var u;n&&(c=-(l-s-c));var f="translate(",h="transform";u=e?f+c+"px, 0px)":f+"0px, "+c+"px)",r["-webkit-"+h]=u,r["-moz-"+h]=u,r["-ms-"+h]=u,r["-o-"+h]=u,r[h]=u}else r[i.lt]=c;jr()||i.h.css(r),i.i.ho=c,i.i.tl=l}function Vr(e,t){var n=t?"removeClass":"addClass",r=e?ce:ue,i=e?Vn:Yn;(e?ae:se)[n](i),r[n](i)}function Xr(){oe=c($t+_n+en+nr+Gt),ae=c($t+Qn+Gt),se=c($t+Xn+Gt),le=c($t+_n+en+rr+Gt),ce=c($t+Qn+Gt),ue=c($t+Xn+Gt),oe.append(ae),ae.append(se),le.append(ce),ce.append(ue),Z.after(le),Z.after(oe),M&&(oe.on(pn,function(e){e.target===oe[0]&&(_r(!0),Qr(!0,ee[on]()))}),le.on(pn,function(e){e.target===le[0]&&(_r(!1),Qr(!1,ee[an]()))})),Yr(!0),Yr(!1),ie=c($t+en+$n+Gt),J.append(ie)}function Yr(e){var t,r,i,o=Jr(e),a=o.xy,l=Xt+o.LT,c="active",u=1,f=function(){u=.5},h=function(){u=1},v=function(n){n.originalEvent;var i=o.i.tl,c=o.i.hl,u=o.i.ms*((c/2+s.page(n)[a]-r-c/2)/(i-c));u=isFinite(u)?u:0,F&&e&&(p.n||!p.n&&!p.i)&&(u*=-1),ee[l](t+u),A||s.prvD(n)},d=function(e){e=e||e.originalEvent,X.removeClass(ir),o.h.removeClass(c),o.t.removeClass(c),o.s.removeClass(c),A?(pr(Q,cn,v),pr(Q,ln,d),pr(Q,hn,y),pr(Q,vn,m),pr(Q,dn,Br)):(Q.off(cn,v),Q.off(ln,d),Q.off(hn,y),Q.off(vn,m),Q.off(dn,Br)),h(),t=n,r=n,i!==n&&(xt.scrollStop(),clearTimeout(i),i=n);var a=J[0].getBoundingClientRect();e.clientX>=a.left&&e.clientX<=a.right&&e.clientY>=a.top&&e.clientY<=a.bottom||$r(),(ft||ht)&&Ur(!1)},y=function(e){16==e.keyCode&&f()},m=function(e){16==e.keyCode&&h()};o.h.on(sn,function(i){if(!N){var u=(i.originalEvent||i).touches!==n;jr()||!Xe||u&&!dt||(1===s.mBtn(i)||u)&&(t=(t=ee[l]())===n?0:t,(F&&e&&!p.n||!F)&&(t=t<0?0:t),r=s.page(i)[a],X.addClass(ir),o.h.addClass(c),o.s.addClass(c),A?(dr(Q,dn,Br),dr(Q,cn,v),dr(Q,ln,d)):(Q.on(dn,Br),Q.on(cn,v),Q.on(ln,d)),s.prvD(i))}}),o.t.on(sn,function(t){if(!N){var l=(t.originalEvent||t).touches!==n;if(!jr()&&Ve&&(!l||dt)&&(1===s.mBtn(t)||l)){var h,v=Et[o._wh],g=o.t.offset()[o.lt],w=!0;t.shiftKey&&f();var b=function(){var t=o.i.ho,a=o.i.hl,s=r-g,l=200*u,c=w?Math.max(333,l):l,f={},d=F&&e&&(!p.i&&!p.n||Je),y=t>s;d&&(y=t=s;d&&(m=h?t+a>=s:t<=s),m?(clearTimeout(i),xt.scrollStop(),i=n):i=setTimeout(b,c),w=!1};r=s.page(t)[a],X.addClass(ir),o.t.addClass(c),o.s.addClass(c),A?(dr(Q,dn,Br),dr(Q,ln,d),dr(Q,hn,y),dr(Q,vn,m)):(Q.on(dn,Br),Q.on(ln,d),Q.on(hn,y),Q.on(vn,m)),b(),s.prvD(t)}}}).hover(function(){(ft||ht)&&(pt=!0,Ur(!0))},function(){(ft||ht)&&(pt=!1,Ur(!1))}),o.s.on(sn,function(e){s.stpP(e)})}function Jr(e){return{wh:e?qt:Ut,WH:e?"Width":"Height",lt:e?Rt:Ft,LT:e?"Left":"Top",xy:e?Jt:Kt,XY:e?"X":"Y",_wh:e?"w":"h",_lt:e?"l":"t",t:e?ae:ce,h:e?se:ue,s:e?oe:le,i:e?zt:Ht}}function Kr(){vt&&Ur(!0)}function $r(){vt&&!X.hasClass(ir)&&Ur(!1)}function Gr(){ht&&(Ur(!0),clearTimeout(lt),lt=setTimeout(function(){ht&&Ur(!1)},100))}function Zr(e){if(!N){var t=j.callbacks,r=t.onScrollStart,i=t.onScroll,o=t.onScrollStop;D!==n?clearTimeout(D):((ft||ht)&&Ur(!0),jr()||J.addClass(An),c.isFunction(r)&&Or(r,e)),Qr(!0,ee[on]()),Qr(!1,ee[an]()),c.isFunction(i)&&Or(i,e),D=setTimeout(function(){ei(e),c.isFunction(o)&&Or(o,e)},kt)}}function ei(){clearTimeout(D),D=n,(ft||ht)&&Ur(!1),jr()||J.removeClass(An)}function ti(e){return typeof HTMLElement===i.o?e instanceof HTMLElement:e&&typeof e===i.o&&null!==e&&1===e.nodeType&&typeof e.nodeName===i.s}function ni(e,t,r,o){var a,s,l,f,h,v={n:t,s:!1,v:n,p:n},d=i.u,p=u.has(e,t),y=u.get(e,t),m=!1,g=!0!==p,w="*",b=!1;for(c.type(r)!==i.a&&(r=[r]),h=r.length,s=0;s1){var C=0;for(f=0;f1)break}1===C&&(b=!0)}else b=!0;x===n&&(m=!0)}if(g&&!1===p&&m&&(g=!1),!g){a=y,d=c.type(a);var M=function(e){var t=c.type(e);return t===d&&(t!==i.s||(!!b||a===e))&&(v.s=!0,v.v=a,v.p=a,!0)};for(s=0;s-1&&o.splice(u,1);for(var f=0;f0&&Ct&&i-q0?J.addClass(ce):J.addClass(or)),ot&&(!0===it?(Ar(),v.add(xt)):null===it&&y?(Ar(),v.add(xt)):(v.remove(xt),Sr())),Ue)if(qe)if(G===n&&(G=c($t+Dn+Gt),Z.before(G)),At)K.show();else{K=c($t+Rn+Gt),G.before(K);var Ht={w:-1,h:-1};gr(K,function(){var e={w:K[0][o.oW],h:K[0][o.oH]};xr(e,Ht)&&(Ct&&me&&e.h>0||ye&&e.w>0?di():(Ct&&!me&&0===e.h||!ye&&0===e.w)&&di()),Ht=e}),At=!0,null!==w&&K.css(Ut,w+"(100% + 1px)")}else At&&K.hide();r&&($.find("*").trigger(Xt),At&&K.find("*").trigger(Xt));var kt,It=J.css("direction"),Zt=br(It,Oe,r),en=J.css("box-sizing"),tn=br(en,we,r),nn={c:r,t:fi(J.css(Lt+Ft)),r:fi(J.css(Lt+Nt)),b:fi(J.css(Lt+Dt)),l:fi(J.css(Lt+Rt))};try{kt=At?K[0].getBoundingClientRect():null}catch(Di){return}H="border-box"===en;var rn=(F="rtl"===It)?Rt:Nt,ln=F?Nt:Rt,hn=J[0],vn=Z[0],dn=!1,pn=!(!At||"none"===J.css(_t))&&(0===Math.round(kt.right-kt.left)&&(!!De||hn[o.cW]-E>0));if(qe&&!pn){var yn=hn[o.oW],mn=G.css(qt);G.css(qt,Vt);var gn=hn[o.oW];G.css(qt,mn),(dn=yn!==gn)||(G.css(qt,yn+1),gn=hn[o.oW],G.css(qt,mn),dn=yn!==gn)}var wn=(pn||dn)&&qe,bn=br(wn,ye,r),xn=!wn&&ye,Cn=!!At&&0===Math.round(kt.bottom-kt.top),On=br(Cn,me,r),En=!Cn&&me,kn="-"+qt,In=wn&&H||!H,Wn=Cn&&H||!H,Ln={c:r,t:Wn?fi(J.css(Pt+Ft+kn)):0,r:In?fi(J.css(Pt+Nt+kn)):0,b:Wn?fi(J.css(Pt+Dt+kn)):0,l:In?fi(J.css(Pt+Rt+kn)):0},Pn={c:r,t:fi(J.css(Wt+Ft)),r:fi(J.css(Wt+Nt)),b:fi(J.css(Wt+Dt)),l:fi(J.css(Wt+Rt))},Fn={h:String(J.css(jt+Ut)),w:String(J.css(jt+qt))},Bn={},jn={};if(E=nn.l+nn.r,k=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=de||{x:!1,y:!1},e||t||Zt||tn||Re||bn||wn||On||Cn||Fn.c||nt||lt||je||Pe||Q||yt||zt||Ne||Re||yt||zt||r){var Qn="overflow",Vn=Qn+"-x",Xn=Qn+"-y",Yn="hidden",Jn="visible",Kn=z&&(C.x||C.y||Et.w0&&(jn[qt]=Math.max(1,jn[qt]),jn[Ut]=Math.max(1,jn[Ut])),Mt&&re.css(Hr),G.css(jn)}wn&&(Bn[qt]=Yt),!wn||H||rt||(Bn[_t]="none"),ne.css(Bn),Bn={};var Ir=ir.getBoundingClientRect(),Wr={w:Math.max(ir[o.sW],lr[o.sW]),h:Math.max(ir[o.sH],lr[o.sH])};if(Kn&&ne.css(Qn,Qt),Ir.width!==n){var Lr=Ir.width,Pr=Ir.height,Fr=.001;Wr.w+=fi(Lr+Fr)-Lr,Wr.h+=fi(Pr+Fr)-Pr}Wr.c=t=xr(Wr,he,r),he=Wr,e=xr(hr={w:hn[o.cW],h:hn[o.cH]},fe),fe=hr,Et={w:vn[o.oW],h:vn[o.oH]};var Nr={x:"v-s"===st.x,y:"v-s"===st.y},Dr={x:"v-h"===st.x,y:"v-h"===st.y},Rr={x:"s"===st.x,y:"s"===st.y},Br={x:Math.max(0,Wr.w-hr.w+(De?E:0)),y:Math.max(0,Wr.h-hr.h+(De?k:0))},jr=Mt&&(0===Et.w||0===Et.h);jr&&(Br.x=0,Br.y=0);var Xr={x:Br.x>0,y:Br.y>0},Yr={x:Xr.x,y:Xr.y};(Nr.x||Dr.x)&&(Yr.x=Xr.y&&!Nr.y&&!Dr.y),(Nr.y||Dr.y)&&(Yr.y=Xr.x&&!Nr.x&&!Dr.x),Yr.xs=!!Yr.x&&(Rr.x||Nr.x),Yr.ys=!!Yr.y&&(Rr.y||Nr.y);var Jr={x:Xr.x&&Yr.xs,y:Xr.y&&Yr.ys},Zr=He;if(Br.c=xr(Br,He,Jt,Kt,r),He=Br,Xr.c=xr(Xr,de,Jt,Kt,r),de=Xr,Yr.c=xr(Yr,pe,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](u.l),ee[an](u.t));Zt&&c.isFunction(D)&&Or(D,{isRTL:F,dir:It}),e&&c.isFunction(B)&&Or(B,{width:fe.w,height:fe.h}),t&&c.isFunction(R)&&Or(R,{width:he.w,height:he.h}),(Xr.c||Yr.c)&&c.isFunction(S)&&Or(S,{x:Xr.x,y:Xr.y,xScrollable:Yr.xs,yScrollable:Yr.ys,clipped:Yr.x||Yr.y}),Br.c&&c.isFunction(T)&&Or(T,{x:Br.x,y:Br.y})}St&&(Xr.c||et.c)&&(et.f||ri(),C.y&&Xr.x&&ne.css(Bt+qt,et.w+O.y),C.x&&Xr.y&&ne.css(Bt+Ut,et.h+O.x),et.c=!1),mr($),mr(K),c.isFunction(M)&&Or(M,{forced:r})}}function pi(e,t){R=h.defaultOptions,g=h.nativeScrollbarStyling,b=c.extend(!0,{},h.nativeScrollbarSize),C=c.extend(!0,{},h.nativeScrollbarIsOverlaid),O=c.extend(!0,{},h.overlayScrollbarDummySize),p=c.extend(!0,{},h.rtlScrollBehavior),li(c.extend(!0,{},R,t));var n,r=j.callbacks;if(C.x&&C.x&&!j.nativeScrollbarsOverlaid.initialize){var i=r.onInitializationWithdrawn;return c.isFunction(i)&&Or(i),!1}if(w=h.cssCalc,m=h.msie,y=h.autoUpdateRecommended,M=h.supportTransition,S=h.supportTransform,A=h.supportPassiveEvents,T=h.supportResizeObserver,it=h.supportMutationObserver,z=h.restrictedMeasuring,Q=c(e.ownerDocument),_=c(Q[0].defaultView||Q[0].parentWindow),V=Q.find("html").first(),X=V.find("body").first(),Y=c(e),Mt=Y.is("textarea"),(St=Y.is("body"))&&((n={}).l=Math.max(Y[on](),V[on](),_[on]()),n.t=Math.max(Y[an](),V[an](),_[an]())),Mt){Y.wrap($t+bn+Gt),Y.addClass(En).addClass(Un),J=Y.parent();var a={};j.sizeAutoCapable||(a[qt]=Y.css(qt),a[Ut]=Y.css(Ut)),J.css(a),J.wrapInner($t+Fn+en+Un+Gt).wrapInner($t+Wn+en+Un+Gt).wrapInner($t+In+en+Un+Gt),ne=J.find(Zt+Fn).first(),ee=J.find(Zt+Wn).first(),Z=J.find(Zt+In).first(),re=c($t+kn+Gt),ne.prepend(re),Y.on(Xt,Rr),Y.on("drop",Fr),Y.on("focus",Nr),Y.on("focusout",Dr),m>9||!y?Y.on("input",Wr):(Y.on(hn,Lr),Y.on(vn,Pr))}else Y.addClass(wn),(J=Y).wrapInner($t+Fn+Gt).wrapInner($t+Wn+Gt).wrapInner($t+In+Gt),ne=J.find(Zt+Fn).first(),ee=J.find(Zt+Wn).first(),Z=J.find(Zt+In).first(),ne.on(pn,function(e){!0!==ke&&hi((e=e.originalEvent||e).propertyName)&&di(Vt)});if(Xr(),A?dr(ee,Xt,Zr):ee.on(Xt,Zr),g&&(C.x&&C.y?ee.addClass(Pn):ee.addClass(Ln)),it){var l,u=s.mO(),f=s.now();tt=new u(function(e){if(Ct&&!N){var t=!1;c.each(e,function(){var e=this,n=this.target,r=e.attributeName;if(t=r===o.c?ai(e.oldValue,n.className):r!==o.s||e.oldValue!==n.style.cssText)return!1}),t&&xt.update(Vt)}}),nt=new u(function(e){if(Ct&&!N){for(var t=!1,n=0;nlr||!i?o():l=setTimeout(o,lr)}}})}St&&(V.addClass(gn),ee[on](n.l),ee[an](n.t)),$=c($t+"os-resize-observer-host"+Gt),J.prepend($),gr($,vr),vr(),xt.update(Vt),setTimeout(function(){M&&!Ot&&J.addClass(On)},333),Ct=!0;var v=r.onInitialized;return c.isFunction(v)&&Or(v),Ct}}e[r]=function(e,t){if(0===arguments.length)return this;d();var r,i=[];return c.isPlainObject(t)?e&&e.length?e.length>1?(c.each(e,function(){(r=this)!==n&&i.push(m(r,t,f,h))}),i):m(e[0],t,f,h):m(e,t,f,h):e?e.length&&e.length>0?e.length>1?(c.each(e,function(){r=l.get(this),"!"===t?r!==n&&i.push(r):i.push(r)}),i):l.get(e[0]):l.get(e):void 0},e[r].globals=function(){d();var e=c.extend(!0,{},f);return delete e.msie,e},e[r].defaultOptions=function(e){d();var t=f.defaultOptions;if(e===n)return c.extend(!0,{},t);f.defaultOptions=c.extend(!0,{},t,e)}}(a,l,s,c),e.jQuery);return u&&u.fn&&(u.fn.overlayScrollbars=function(t){var n=this;return u.isPlainObject(t)?(u.each(n,function(){e[r](this,t)}),n):e[r](n,t)}),e[r]}); \ No newline at end of file diff --git a/js/jquery.overlayScrollbars.js b/js/jquery.overlayScrollbars.js index fb1e3f9..3dbcc95 100644 --- a/js/jquery.overlayScrollbars.js +++ b/js/jquery.overlayScrollbars.js @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.3.0 + * Version: 1.4.0 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 26.02.2018 + * Date: 02.03.2018 */ (function (global, factory) { @@ -435,7 +435,7 @@ }, scrollbars : { visibility : 'auto', //visible || hidden || auto || v || h || a - autoHide : 'never', //never || scroll || leave || n || s || l + autoHide : 'never', //never || scroll || leave || move || n || s || l || m autoHideDelay : 800, //number dragScrolling : true, //true || false clickScrolling : false, //true || false @@ -486,7 +486,7 @@ var nativeScrollbarSize = (function() { bodyElement.append(scrollbarDummyElement); var strOverflow = 'overflow'; - var strHidden = 'hidden'; + var strHidden = 'hidden'; var scrollbarDummyElement0 = scrollbarDummyElement[0]; var dummyContainerChild = helper(scrollbarDummyElement.children('div').first()); var IEBUGFIX = scrollbarDummyElement0[WORDING.oH]; //IE9 causes a bug where offsetHeight is zero for no reason @@ -497,44 +497,44 @@ x: scrollbarDummyElement0[WORDING.oH] - scrollbarDummyElement0[WORDING.cH], y: scrollbarDummyElement0[WORDING.oW] - scrollbarDummyElement0[WORDING.cW] }; - //https://bugzilla.mozilla.org/show_bug.cgi?id=1439305 - _base.restrictedMeasuring = (function() { - scrollbarDummyElement.css(strOverflow, strHidden); - var scrollSize = { - w : scrollbarDummyElement0[WORDING.sW], - h : scrollbarDummyElement0[WORDING.sH] - }; - scrollbarDummyElement.css(strOverflow, 'visible'); - var scrollSize2 = { - w : scrollbarDummyElement0[WORDING.sW], - h : scrollbarDummyElement0[WORDING.sH] - }; - return (scrollSize.w - scrollSize2.w) !== 0 || (scrollSize.h - scrollSize2.h) !== 0; - })(); - _base.nativeScrollbarStyling = (function() { - scrollbarDummyElement.addClass('os-viewport-native-scrollbars-invisible'); - scrollbarDummyElement.css(strOverflow, strHidden).hide().css(strOverflow, 'scroll').show(); //fix opera bug: scrollbar styles will only appear if overflow value is scroll or auto during the activation of the style. - return (scrollbarDummyElement0[WORDING.oH] - scrollbarDummyElement0[WORDING.cH]) === 0 && (scrollbarDummyElement0[WORDING.oW] - scrollbarDummyElement0[WORDING.cW]) === 0; - })(); - _base.rtlScrollBehavior = (function() { - scrollbarDummyElement.css({ 'overflow-y' : strHidden, 'direction' : 'rtl' }).scrollLeft(0); - var dummyContainerOffset = scrollbarDummyElement.offset(); - var dummyContainerChildOffset = dummyContainerChild.offset(); - scrollbarDummyElement.scrollLeft(999); - var dummyContainerScrollOffsetAfterScroll = dummyContainerChild.offset(); - return { - //origin direction = determines if the zero scroll position is on the left or right side - //'i' means 'invert' (i === true means that the axis must be inverted to be correct) - //true = on the left side - //false = on the right side - i : dummyContainerOffset.left === dummyContainerChildOffset.left, - //negative = determines if the maximum scroll is positive or negative - //'n' means 'negate' (n === true means that the axis must be negated to be correct) - //true = negative - //false = positive - n : dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left === 0 - }; - })(); + //https://bugzilla.mozilla.org/show_bug.cgi?id=1439305 + _base.restrictedMeasuring = (function() { + scrollbarDummyElement.css(strOverflow, strHidden); + var scrollSize = { + w : scrollbarDummyElement0[WORDING.sW], + h : scrollbarDummyElement0[WORDING.sH] + }; + scrollbarDummyElement.css(strOverflow, 'visible'); + var scrollSize2 = { + w : scrollbarDummyElement0[WORDING.sW], + h : scrollbarDummyElement0[WORDING.sH] + }; + return (scrollSize.w - scrollSize2.w) !== 0 || (scrollSize.h - scrollSize2.h) !== 0; + })(); + _base.nativeScrollbarStyling = (function() { + scrollbarDummyElement.addClass('os-viewport-native-scrollbars-invisible'); + scrollbarDummyElement.css(strOverflow, strHidden).hide().css(strOverflow, 'scroll').show(); //fix opera bug: scrollbar styles will only appear if overflow value is scroll or auto during the activation of the style. + return (scrollbarDummyElement0[WORDING.oH] - scrollbarDummyElement0[WORDING.cH]) === 0 && (scrollbarDummyElement0[WORDING.oW] - scrollbarDummyElement0[WORDING.cW]) === 0; + })(); + _base.rtlScrollBehavior = (function() { + scrollbarDummyElement.css({ 'overflow-y' : strHidden, 'direction' : 'rtl' }).scrollLeft(0); + var dummyContainerOffset = scrollbarDummyElement.offset(); + var dummyContainerChildOffset = dummyContainerChild.offset(); + scrollbarDummyElement.scrollLeft(999); + var dummyContainerScrollOffsetAfterScroll = dummyContainerChild.offset(); + return { + //origin direction = determines if the zero scroll position is on the left or right side + //'i' means 'invert' (i === true means that the axis must be inverted to be correct) + //true = on the left side + //false = on the right side + i : dummyContainerOffset.left === dummyContainerChildOffset.left, + //negative = determines if the maximum scroll is positive or negative + //'n' means 'negate' (n === true means that the axis must be negated to be correct) + //true = negative + //false = positive + n : dummyContainerChildOffset.left - dummyContainerScrollOffsetAfterScroll.left === 0 + }; + })(); scrollbarDummyElement.removeAttr(WORDING.s).remove(); return scrollbarSize; })(); @@ -828,7 +828,7 @@ var _supportTransform; var _supportPassiveEvents; var _supportResizeObserver; - var _restrictedMeasuring; + var _restrictedMeasuring; var _isBorderBox; var _paddingX; var _paddingY; @@ -875,6 +875,8 @@ var _strMouseTouchDownEvent = 'mousedown touchstart'; var _strMouseTouchUpEvent = 'mouseup touchend'; var _strMouseTouchMoveEvent = 'mousemove touchmove'; + var _strMouseTouchEnter = 'mouseenter'; + var _strMouseTouchLeave = 'mouseleave'; var _strKeyDownEvent = 'keydown'; var _strKeyUpEvent = 'keyup'; var _strSelectStartEvent = 'selectstart'; @@ -1026,12 +1028,14 @@ //scrollbars: var _scrollbarsAutoHideTimeoutId; + var _scrollbarsAutoHideMoveTimeoutId; var _scrollbarsAutoHideDelay; var _scrollbarsAutoHideNever; var _scrollbarsAutoHideScroll; + var _scrollbarsAutoHideMove; var _scrollbarsAutoHideLeave; var _scrollbarsTouchSupport; - var _scrollbarsAutoHideScrollAndHovered; + var _scrollbarsAutoHideFlagScrollAndHovered; //resize var _resizeReconnectMutationObserver; @@ -1406,8 +1410,8 @@ * @param args The args with which the callback shall be called. */ function callCallback(callback, args) { - if(_initialized) - callback.call(_base, args); + if(_initialized) + callback.call(_base, args); } /** @@ -1783,11 +1787,11 @@ else { var strActive = 'active'; var hide = function () { - if (!_scrollbarsAutoHideScrollAndHovered) { + if (!_scrollbarsAutoHideFlagScrollAndHovered) { var anyActive = _scrollbarHorizontalHandleElement.hasClass(strActive) || _scrollbarVerticalHandleElement.hasClass(strActive); - if (!anyActive && (_scrollbarsAutoHideScroll || _scrollbarsAutoHideLeave)) + if (!anyActive && (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove || _scrollbarsAutoHideLeave)) _scrollbarHorizontalElement.addClass(_classNameScrollbarAutoHidden); - if (!anyActive && (_scrollbarsAutoHideScroll || _scrollbarsAutoHideLeave)) + if (!anyActive && (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove || _scrollbarsAutoHideLeave)) _scrollbarVerticalElement.addClass(_classNameScrollbarAutoHidden); } }; @@ -1808,7 +1812,6 @@ //get and apply intended handle length var handleRatio = Math.min(1, (_hostSizeCache[scrollbarVars._wh] - (_paddingAbsoluteCache ? (isHorizontal ? _paddingX : _paddingY) : 0)) / _contentScrollSizeCache[scrollbarVars._wh]); - handleRatio = isNaN(handleRatio) ? 0 : handleRatio; handleCSS[scrollbarVars.wh] = (Math.floor(handleRatio * 100 * 100000) / 100000) + "%"; //the last * 100000 / 100000 is for flooring to the 4th digit if (!nativeOverlayScrollbarsAreActive()) @@ -2009,7 +2012,7 @@ event.clientY >= rect.top && event.clientY <= rect.bottom)) { hostOnMouseLeave(); } - if (_scrollbarsAutoHideScroll) + if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) refreshScrollbarsAutoHide(false); }; var documentKeyDown = function (event) { @@ -2131,13 +2134,13 @@ compatibility.prvD(event); } }).hover(function () { //make sure both scrollbars will stay visible if one scrollbar is hovered if autoHide is "scroll". - if (_scrollbarsAutoHideScroll) { - _scrollbarsAutoHideScrollAndHovered = true; + if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) { + _scrollbarsAutoHideFlagScrollAndHovered = true; refreshScrollbarsAutoHide(true); } }, function () { - if (_scrollbarsAutoHideScroll) { - _scrollbarsAutoHideScrollAndHovered = false; + if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) { + _scrollbarsAutoHideFlagScrollAndHovered = false; refreshScrollbarsAutoHide(false); } }); @@ -2184,6 +2187,20 @@ refreshScrollbarsAutoHide(false); } + /** + * The mouse leave event of the host element. This event is only needed for the autoHide feature. + */ + function hostOnMouseMove() { + if (_scrollbarsAutoHideMove) { + refreshScrollbarsAutoHide(true); + clearTimeout(_scrollbarsAutoHideMoveTimeoutId); + _scrollbarsAutoHideMoveTimeoutId = setTimeout(function () { + if (_scrollbarsAutoHideMove) + refreshScrollbarsAutoHide(false); + }, 100); + } + } + /** * The scroll event of the viewport element. That is the main scroll event. It controls also the "scroll", "scrollStart" and "scrollStop" callbacks. * @param event The scroll event. @@ -2199,7 +2216,7 @@ if (_scrollStopTimeoutId !== undefined) clearTimeout(_scrollStopTimeoutId); else { - if (_scrollbarsAutoHideScroll) + if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) refreshScrollbarsAutoHide(true); if (!nativeOverlayScrollbarsAreActive()) @@ -2229,7 +2246,7 @@ function onScrollStop() { clearTimeout(_scrollStopTimeoutId); _scrollStopTimeoutId = undefined; - if (_scrollbarsAutoHideScroll) + if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) refreshScrollbarsAutoHide(false); if (!nativeOverlayScrollbarsAreActive()) @@ -2564,7 +2581,7 @@ var classNameAllowedValues = ['*', null]; var overflowBehaviorAllowedValues = ['v-h:visible-hidden', 'v-s:visible-scroll', 's:scroll', 'h:hidden']; var scrollbarsVisibilityAllowedValues = ['v:visible', 'h:hidden', 'a:auto']; - var scrollbarsAutoHideAllowedValues = ['n:never', 's:scroll', 'l:leave']; + var scrollbarsAutoHideAllowedValues = ['n:never', 's:scroll', 'l:leave', 'm:move']; var resizeAllowedValues = ['n:none', 'b:both', 'h:horizontal', 'v:vertical']; var strCallbacksDot = 'callbacks.'; var strScrollbarsDot = _strScrollbar + 's.'; @@ -2929,6 +2946,7 @@ //scrollbars visibility _scrollbarsAutoHideNever = scrollbarsAutoHide === 'n'; _scrollbarsAutoHideScroll = scrollbarsAutoHide === 's'; + _scrollbarsAutoHideMove = scrollbarsAutoHide === 'm'; _scrollbarsAutoHideLeave = scrollbarsAutoHide === 'l'; //scrollbars autoHideDelay @@ -3080,7 +3098,7 @@ var isRTLLeft = _isRTL ? _strLeft : _strRight; var isRTLRight = _isRTL ? _strRight : _strLeft; var hostElement = _hostElement[0]; - var paddingElement = _paddingElement[0]; + var paddingElement = _paddingElement[0]; //detect width auto: var widthAutoResizeDetection = false; @@ -3266,7 +3284,12 @@ var strOverflowY = strOverflow + '-y'; var strHidden = 'hidden'; var strVisible = 'visible'; - var hideOverflow4CorrectMeasuring = _restrictedMeasuring ? (_nativeScrollbarIsOverlaid.x || _nativeScrollbarIsOverlaid.y) || (_viewportSize.w < _nativeScrollbarMinSize.y || _viewportSize.h < _nativeScrollbarMinSize.x) : false; + //decide whether the content overflow must get hidden for correct overflow measuring, it MUST be always hidden if the height is auto + var hideOverflow4CorrectMeasuring = _restrictedMeasuring ? + (_nativeScrollbarIsOverlaid.x || _nativeScrollbarIsOverlaid.y) || //it must be hidden if native scrollbars are overlaid + (_viewportSize.w < _nativeScrollbarMinSize.y || _viewportSize.h < _nativeScrollbarMinSize.x) || //it must be hidden if host-element is too small + heightAuto //it must be hidden if height is auto + : heightAuto; //if there is not the restricted Measuring bug, it must be hidden if the height is auto //Reset the viewport (very important for natively overlaid scrollbars and zoom change var viewportElementResetCSS = {}; @@ -3394,12 +3417,12 @@ }; hostSizeChanged = checkCacheDouble(hostSize, _hostSizeCache); _hostSizeCache = hostSize; - - //viewport size is padding container because it never has padding, margin and a border. - _viewportSize = { - w: paddingElement[WORDING.oW], - h: paddingElement[WORDING.oH] - }; + + //viewport size is padding container because it never has padding, margin and a border. + _viewportSize = { + w: paddingElement[WORDING.oW], + h: paddingElement[WORDING.oH] + }; var overflowBehaviorIsVS = { x: overflowBehavior.x === 'v-s', @@ -3555,14 +3578,14 @@ viewportElementCSS[strOverflowY] = _strEmpty; resetScrollbarHidingY(); } - + // if the scroll container is too small and if there is any overflow with not overlay scrollbar, make viewport element greater in size (Firefox hide Scrollbars fix) // because firefox starts hiding scrollbars on too small elements // with this behavior the overflow calculation may be incorrect or the scrollbars would appear suddenly // https://bugzilla.mozilla.org/show_bug.cgi?id=292284 - if ((_viewportSize.h < _nativeScrollbarMinSize.x || _viewportSize.w < _nativeScrollbarMinSize.y) - && ((hasOverflow.x && hideOverflow.x && !_nativeScrollbarIsOverlaid.x) || (hasOverflow.y && hideOverflow.y && !_nativeScrollbarIsOverlaid.y))) { + if ((_viewportSize.h < _nativeScrollbarMinSize.x || _viewportSize.w < _nativeScrollbarMinSize.y) + && ((hasOverflow.x && hideOverflow.x && !_nativeScrollbarIsOverlaid.x) || (hasOverflow.y && hideOverflow.y && !_nativeScrollbarIsOverlaid.y))) { viewportElementCSS[_strPaddingMinus + _strTop] = _nativeScrollbarMinSize.x; viewportElementCSS[_strMarginMinus + _strTop] = -_nativeScrollbarMinSize.x; @@ -3726,34 +3749,42 @@ //manage the scrollbars auto hide feature (auto hide them after specific actions) if (scrollbarsAutoHideChanged || ignoreOverlayScrollbarHidingChanged) { - var strMouseEnter = 'mouseenter'; - var strMouseLeave = 'mouseleave'; - var addLeaveEvents = function () { + var addMouseTouchEvents = function (move) { if (_supportPassiveEvents) { - addPassiveEventListener(_hostElement, strMouseEnter, hostOnMouseEnter); - addPassiveEventListener(_hostElement, strMouseLeave, hostOnMouseLeave); + if(move) + addPassiveEventListener(_hostElement, _strMouseTouchMoveEvent, hostOnMouseMove); + else { + addPassiveEventListener(_hostElement, _strMouseTouchEnter, hostOnMouseEnter); + addPassiveEventListener(_hostElement, _strMouseTouchLeave, hostOnMouseLeave); + } } else { - _hostElement.on(strMouseEnter, hostOnMouseEnter); - _hostElement.on(strMouseLeave, hostOnMouseLeave); + if(move) + _hostElement.on(_strMouseTouchMoveEvent, hostOnMouseMove); + else { + _hostElement.on(_strMouseTouchEnter, hostOnMouseEnter); + _hostElement.on(_strMouseTouchLeave, hostOnMouseLeave); + } } }; - var removeLeaveEvents = function () { + var removeMouseTouchEvents = function () { if (_supportPassiveEvents) { - removePassiveEventListener(_hostElement, strMouseEnter, hostOnMouseEnter); - removePassiveEventListener(_hostElement, strMouseLeave, hostOnMouseLeave); + removePassiveEventListener(_hostElement, _strMouseTouchMoveEvent, hostOnMouseMove); + removePassiveEventListener(_hostElement, _strMouseTouchEnter, hostOnMouseEnter); + removePassiveEventListener(_hostElement, _strMouseTouchLeave, hostOnMouseLeave); } else { - _hostElement.off(strMouseEnter, hostOnMouseEnter); - _hostElement.off(strMouseLeave, hostOnMouseLeave); + _hostElement.off(_strMouseTouchMoveEvent, hostOnMouseMove); + _hostElement.off(_strMouseTouchEnter, hostOnMouseEnter); + _hostElement.off(_strMouseTouchLeave, hostOnMouseLeave); } }; - if (_scrollbarsAutoHideLeave) { - removeLeaveEvents(); - addLeaveEvents(); + if (_scrollbarsAutoHideLeave || _scrollbarsAutoHideMove) { + removeMouseTouchEvents(); + addMouseTouchEvents(_scrollbarsAutoHideMove); } else { - removeLeaveEvents(); + removeMouseTouchEvents(); } if (_scrollbarsAutoHideNever) @@ -3969,12 +4000,14 @@ _sizeAutoObserverElement.remove(); if (_supportPassiveEvents) { - removePassiveEventListener(_hostElement, 'mouseenter', hostOnMouseEnter); - removePassiveEventListener(_hostElement, 'mouseleave', hostOnMouseLeave); + removePassiveEventListener(_hostElement, _strMouseTouchMoveEvent, hostOnMouseMove); + removePassiveEventListener(_hostElement, _strMouseTouchEnter, hostOnMouseEnter); + removePassiveEventListener(_hostElement, _strMouseTouchLeave, hostOnMouseLeave); } else { - _hostElement.off('mouseenter', hostOnMouseEnter); - _hostElement.off('mouseleave', hostOnMouseLeave); + _hostElement.off(_strMouseTouchMoveEvent, hostOnMouseMove); + _hostElement.off(_strMouseTouchEnter, hostOnMouseEnter); + _hostElement.off(_strMouseTouchLeave, hostOnMouseLeave); } _scrollbarHorizontalElement.remove(); @@ -4572,7 +4605,7 @@ _supportPassiveEvents = globals.supportPassiveEvents; _supportResizeObserver = globals.supportResizeObserver; _supportMutationObserver = globals.supportMutationObserver; - _restrictedMeasuring = globals.restrictedMeasuring; + _restrictedMeasuring = globals.restrictedMeasuring; _documentElement = helper(targetElement.ownerDocument); _windowElement = helper(_documentElement[0].defaultView || _documentElement[0].parentWindow); _htmlElement = _documentElement.find('html').first(); @@ -4838,5 +4871,6 @@ _pluginGlobals.defaultOptions = helper.extend(true, { }, currDefaultOptions , newDefaultOptions); }; })(COMPATIBILITY, INSTANCES, HELPER, BYPROPERTYPATH); + return window[PLUGINNAME]; }))); \ No newline at end of file diff --git a/js/jquery.overlayScrollbars.min.js b/js/jquery.overlayScrollbars.min.js index 0d0925e..bce9ad2 100644 --- a/js/jquery.overlayScrollbars.min.js +++ b/js/jquery.overlayScrollbars.min.js @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.3.0 + * Version: 1.4.0 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 26.02.2018 + * Date: 02.03.2018 */ -!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(e,e.document,undefined,n)}):"object"==typeof exports?module.exports=t(e,e.document,undefined,require("jquery")):t(e,e.document,undefined,e.jQuery)}("undefined"!=typeof window?window:this,function(e,t,n,r){"use-strict";var o="OverlayScrollbars",i={o:"object",f:"function",a:"array",s:"string",n:"number",u:"undefined"},a={c:"class",s:"style",i:"id",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth"},s={wW:function(){return e.innerWidth||t.documentElement[a.cW]||t.body[a.cW]},wH:function(){return e.innerHeight||t.documentElement[a.cH]||t.body[a.cH]},mO:function(){return e.MutationObserver||e.WebKitMutationObserver||e.WebkitMutationObserver||e.MozMutationObserver||n},rO:function(){return e.ResizeObserver||e.WebKitResizeObserver||e.WebkitResizeObserver||e.MozResizeObserver||n},rAF:function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}},cAF:function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||function(t){return e.clearTimeout(t)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},page:function(e){var r="page",o="client",i="X",a="Y",s=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,l=s.documentElement,c=s.body;if(e.touches!==n){var f=e.touches[0];return{x:f[r+i],y:f[r+a]}}return!e[r+i]&&e[o+i]&&null!=e[o+i]?{x:e[o+i]+(l&&l.scrollLeft||c&&c.scrollLeft||0)-(l&&l.clientLeft||c&&c.clientLeft||0),y:e[o+a]+(l&&l.scrollTop||c&&c.scrollTop||0)-(l&&l.clientTop||c&&c.clientTop||0)}:{x:e[r+i],y:e[r+a]}},mBtn:function(e){return e.which||e.button===n?e.which:1&e.button?1:2&e.button?3:4&e.button?2:0},bind:function(e,t){if(typeof e!==i.f)throw"Can't bind function!";var n=Array.prototype.slice.call(arguments,2),r=function(){},o=function(){return e.apply(this instanceof r?this:t,n.concat(Array.prototype.slice.call(arguments)))};return e.prototype&&(r.prototype=e.prototype),o.prototype=new r,o}},l=function(t){return t.fn.overlayScrollbars=function(n){var r=this;return t.isPlainObject(n)?(t.each(r,function(){e[o](this,n)}),r):e[o](r,n)},t}(r),c=function(e){var t=[],r="__overlayScrollbars__";function o(e,n){e[r]=n,t.push(e)}function i(n){var o=e.inArray(n,t);o>-1&&(delete n[r],t.splice(o,1))}function a(e){return s(e)!==n}function s(e){for(var n=0;n
'),u=function(){s.append(f);var e,t="overflow",n="hidden",r=f[0],o=c(f.children("div").first());return 0===r[a.oH]&&f.hide().show(),e={x:r[a.oH]-r[a.cH],y:r[a.oW]-r[a.cW]},i.restrictedMeasuring=function(){f.css(t,n);var e={w:r[a.sW],h:r[a.sH]};f.css(t,"visible");var o={w:r[a.sW],h:r[a.sH]};return e.w-o.w!=0||e.h-o.h!=0}(),i.nativeScrollbarStyling=(f.addClass("os-viewport-native-scrollbars-invisible"),f.css(t,n).hide().css(t,"scroll").show(),r[a.oH]-r[a.cH]==0&&r[a.oW]-r[a.cW]==0),i.rtlScrollBehavior=function(){f.css({"overflow-y":n,direction:"rtl"}).scrollLeft(0);var e=f.offset(),t=o.offset();f.scrollLeft(999);var r=o.offset();return{i:e.left===t.left,n:t.left-r.left==0}}(),f.removeAttr(a.s).remove(),e}(),v={x:0===u.x,y:0===u.y};function d(e){var r=!1,o="Webkit Moz ms O".split(" "),i=t.createElement("div"),a=null;if(e=e.toLowerCase(),i.style[e]!==n&&(r=!0),!1===r){a=e.charAt(0).toUpperCase()+e.substr(1);for(var s=0;s0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var o=t.indexOf("Edge/");return o>0&&parseInt(t.substring(o+5,t.indexOf(".",o)),10)}(),i.cssCalc=function(){for(var e=t.createElement("div"),n=["calc","-webkit-calc","-moz-calc","-o-calc"],r=0;r0){var e=r.wW(),v=r.wH(),h=e-t,p=v-n;if(0===h&&0===p)return;var y=Math.round(e/(t/100)),m=Math.round(v/(n/100)),x=Math.abs(h),w=Math.abs(p),g=Math.abs(y),b=Math.abs(m),C=d(),S=x>2&&w>2,O=!u(g,b);if(!!(S&&O&&(C!==o&&o>0))){s.append(f);var z=f[0];i.nativeScrollbarSize={x:z[a.oH]-z[a.cH],y:z[a.oW]-z[a.cW]},f.remove(),c.each(l.all(),function(){l.has(this)&&l.get(this).update("zoom")})}t=e,n=v,o=C}})}function u(e,t){var n=Math.abs(e),r=Math.abs(t);return!(n===r||n+1===r||n-1===r)}function d(){var t=e.screen.deviceXDPI||0,n=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/n}}()}function y(e){var t,o=this,i="autoUpdate",a=i+"Interval",s=[],l=[],f=!1,u=33,v=u,d=r.now(),h=function(){if(s.length>0&&f){t=r.rAF()(function(){h()});var e=r.now(),o=e-d;if(o>v){d=e-o%v;for(var c=u,p=0;pw&&(y.update("auto"),l[p]=new Date(g+=w)),c=Math.max(1,Math.min(c,w))}}v=c}}else v=u};o.add=function(t){-1===c.inArray(t,s)&&(s.push(t),l.push(r.now()),s.length>0&&!f&&(f=!0,e.autoUpdateLoop=f,h()))},o.remove=function(o){var i=c.inArray(o,s);i>-1&&(l.splice(i,1),s.splice(i,1),0===s.length&&f&&(f=!1,e.autoUpdateLoop=f,t!==n&&(r.cAF()(t),t=-1)))}}function m(t,u,v,d){if(Qr(t)){if(l.has(t)){var h=l.get(t);return h.options(u),h}var p,y,m,x,w,g,b,C,S,O,z,H,W,k,M,A,T,E,L,F,D,I,R,P,N,U,B,j,_,V,q,X,Y,J,K,Q,G,Z,$,ee,te,ne,re,oe,ie,ae,se,le,ce,fe,ue,ve,de,he,pe,ye,me,xe,we,ge,be,Ce,Se,Oe,ze,He,We,ke,Me,Ae,Te,Ee,Le,Fe,De,Ie,Re,Pe,Ne,Ue,Be,je,_e,Ve,qe,Xe,Ye,Je,Ke,Qe,Ge,Ze,$e,et,tt,nt,rt,ot,it,at,st,lt,ct,ft,ut,vt,dt,ht,pt,yt,mt,xt,wt=new e[o],gt=!1,bt=!1,Ct=!1,St=!1,Ot=!1,zt={w:0,h:0},Ht={},Wt={},kt={},Mt=175,At="-hidden",Tt="margin-",Et="padding-",Lt="border-",Ft="top",Dt="right",It="bottom",Rt="left",Pt="min-",Nt="max-",Ut="width",Bt="height",jt="float",_t="",Vt="auto",qt="scroll",Xt="100%",Yt="x",Jt="y",Kt='
',Gt=".",Zt=" ",$t="scrollbar",en="-horizontal",tn="-vertical",nn=qt+"Left",rn=qt+"Top",on="mousedown touchstart",an="mouseup touchend",sn="mousemove touchmove",ln="keydown",cn="keyup",fn="selectstart",un="transitionend webkitTransitionEnd oTransitionEnd",vn="__overlayScrollbarsRO__",dn="os-",hn=dn+"html",pn=dn+"host",yn=pn+"-textarea",mn=pn+"-"+$t+en+At,xn=pn+"-"+$t+tn+At,wn=pn+"-transition",gn=pn+"-rtl",bn=pn+"-resize-disabled",Cn=pn+"-scrolling",Sn=pn+"-overflow",On=Sn+"-x",zn=Sn+"-y",Hn=dn+"textarea",Wn=Hn+"-cover",kn=dn+"padding",Mn=dn+"viewport",An=Mn+"-native-scrollbars-invisible",Tn=Mn+"-native-scrollbars-overlaid",En=dn+"content",Ln=dn+"content-arrange",Fn=dn+"content-glue",Dn=dn+"size-auto-observer",In=dn+"resize-observer",Rn=dn+"resize-observer-item",Pn=Rn+"-final",Nn=dn+"text-inherit",Un=dn+$t,Bn=Un+"-track",jn=Bn+"-off",_n=Un+"-handle",Vn=_n+"-off",qn=Un+"-unusable",Xn=Un+"-"+Vt+At,Yn=Un+"-corner",Jn=Yn+"-resize",Kn=Jn+"-both",Qn=Jn+en,Gn=Jn+tn,Zn=Un+en,$n=Un+tn,er=dn+"dragging",tr=dn+"theme-none",nr={},rr=33,or=11,ir=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],ar=[],sr={x:0,y:0},lr={w:0,h:0};if(wt.sleep=function(){R=!0},wt.update=function(e){if(e===Vt){var t=io(),n=oo();(t||n)&&co(!1,n)}else"zoom"===e?co(!0,!0):(e=R||e,R=!1,co(!1,!1,e))},wt.options=function(e,t){if(c.isEmptyObject(e)||!c.isPlainObject(e)){if(c.type(e)===i.s){if(arguments.length>=2){var n={};return f.set(n,e,t,!0),ro(n),void co()}return f.get(U,e)}return U}ro(e);var r=R||!1;R=!1,co(),R=r},wt.destroy=function(){bt=!0,d.remove(wt),Cr(),pr(G),Ot&&pr(Q),G.remove(),Z!==n&&Z.remove(),te!==n&&te.remove(),Ot&&Q.remove(),H?(ur(K,"mouseenter",Xr),ur(K,"mouseleave",Yr)):(K.off("mouseenter",Xr),K.off("mouseleave",Yr)),ie.remove(),le.remove(),oe&&oe.remove(),pt||zr(),ne.contents().unwrap().unwrap().unwrap(),St&&X.removeClass(hn),Ct?(J.off(qt,Dr),J.off("drop",Er),J.off("focus",Lr),J.off("focusout",Fr),m>9||!y?J.off("input",Mr):(J.off(ln,Ar),J.off(cn,Tr)),re.remove(),J.removeClass(Hn).removeClass(Nn),J.unwrap().removeAttr(a.s),K.remove()):(J.removeClass(pn),K.removeClass(pn).removeClass(bn).removeClass(gn).removeClass(mn).removeClass(xn).removeClass(wn).removeClass(Cn).removeClass(Sn).removeClass(On).removeClass(zn).removeClass(tr).removeClass(Qe)),l.rem(t);var e=B.callbacks.onDestroyed;for(var r in c.isFunction(e)&&wr(e),wt)delete wt[r];wt=n},wt.scroll=function(t,r,o,s){if(0===arguments.length||t===n){var l=Ht,f=Wt,u=Ke&&I&&p.i,v=Ke&&I&&p.n,d=l.cs,h=l.csr,y=l.ms;return d=u?y-d:d,{x:{position:d*=v?-1:1,ratio:h=u?1-h:h,max:y*=v?-1:1,handleOffset:l.ho,handleLength:l.hl,handleLengthRatio:l.hlr,trackLength:l.tl,isRTL:I,isRTLNormalized:Ke},y:{position:f.cs,ratio:f.csr,max:f.ms,handleOffset:f.ho,handleLength:f.hl,handleLengthRatio:f.hlr,trackLength:f.tl}}}var m,x=[Yt,Rt,"l"],w=[Jt,Ft,"t"],g=["+=","-=","*=","/="],b={},C=c.type(r)===i.o,S="end",O="begin",H={axis:"xy",block:[O,O],margin:[0,0,0,0]},W=[Yt,Jt,"xy","yx"],k=[O,S],M=t.hasOwnProperty("el"),A=M?t.el:t,T=A instanceof c,E=!T&&Qr(A),L=function(e,t){for(m=0;m0)t.x=e[0],t.y=e[1];else if(c.type(e)===i.s||c.type(e)===i.n)t.x=e,t.y=e;else if(c.type(e)===i.o){for(var n in e=c.extend({},e),m=0,e)e.hasOwnProperty(n)&&(m>2&&delete e[n],m++);var r=function(t){var n=t?x:w;for(m=0;m2){var y=r.substr(0,2);for(m=0;m/g,(h?"-":_t)+Xt)).replace(/px/g,_t)).replace(/%/g,v+u*(d&&p.n?-1:1)/100)).replace(/vw/g,v+kt.w)).replace(/vh/g,v+kt.h),a=e.parseInt(e.parseFloat(e.eval(r)).toFixed())}else c.type(r)===i.n&&(a=r);if(!isNaN(a)&&a!==n&&c.type(a)===i.n){var x=Ke&&d,w=f*(x&&p.n?-1:1),b=x&&p.i,C=x&&p.n;switch(w=b?u-w:w,o){case"+=":s=w+a;break;case"-=":s=w-a;break;case"*=":s=w*a;break;case"/=":s=w/a;break;default:s=a}b&&(s=u-s),C&&(s*=-1),d&&p.n?(s=Math.max(u,s),s=Math.min(0,s)):(s=Math.min(u,s),s=Math.max(0,s)),s===f&&(s=n)}return s};if(T||E){var R=T?A:c(A);if(0===R.length)return;if(M){var P,N,U,B=t.axis,j=t.block,_=c.type(j),V=t.margin,q=c.type(V);if(_===i.s)j=[j,j];else if(_===i.a)if((N=j.length)>2||N<1)j=n;else{for(P=!0,1===N&&(j[1]=O),m=0;m0||C){var ue={};if(ce&&(ue[nn]=b.x),fe&&(ue[rn]=b.y),C)ee.animate(ue,r);else{var ve={duration:r,complete:s};if(c.type(o)===i.a){var de={};de[nn]=o[0],de[rn]=o[1],ve.specialEasing=de}else ve.easing=o;ee.animate(ue,ve)}}else ce&&ee[nn](b.x),fe&&ee[rn](b.y)},wt.scrollStop=function(e,t,n){ee.stop(e,t,n)},wt.getElements=function(){return{target:J[0],host:K[0],padding:$[0],viewport:ee[0],content:ne[0],scrollbarHorizontal:{scrollbar:ie[0],track:ae[0],handle:se[0]},scrollbarVertical:{scrollbar:le[0],track:ce[0],handle:fe[0]},scrollbarCorner:oe}},wt.getState=function(e){var t=function(e){if(!c.isPlainObject(e))return e;var t=c.extend(!0,{},e);f.del(t,"c");var n=function(e,n){t.hasOwnProperty(e)&&(t[n]=t[e],delete t[e])};return n("w",Ut),n("h",Bt),t},n={sleeping:t(R)||!1,autoUpdate:t(!rt),widthAuto:t(ye),heightAuto:t(me),padding:t(ge),overflowAmount:t(Me),hideOverflow:t(pe),hasOverflow:t(he),contentScrollSize:t(ve),viewportSize:t(kt),hostSize:t(ue)};return c.type(e)===i.s?f.get(n,e):n},fo(t,u))return l.add(t,wt),wt;wt=n}function cr(){if(!R){var e=G[0],t={w:e[a.sW],h:e[a.sH]};if(gt){var n=mr(t,_e);_e=t,n&&co(!0,!1)}else _e=t}}function fr(e,t,n){e=e[0];for(var r=t.split(Zt),o=0;o9||!y){var u='">',d="",h="childNodes",x=Kt+In+u;x+=Kt+Rn+'" dir="ltr'+u,x+=Kt+Rn+u,x+=Kt+Pn+Qt,x+=d,x+=Kt+Rn+u,x+=Kt+Pn+'" style="width: 200%; height: 200%'+Qt,x+=d,x+=d,x+=d,e.prepend(x);var w,g,b,C,S=(e=e[0])[h][0][h][0],O=c(S[h][1]),z=c(S[h][0]),H=c(z[0][h][0]),k=S[a.oW],M=S[a.oH],A=2,T=v.nativeScrollbarSize,E=function(){z[nn](n)[rn](n),O[nn](n)[rn](n)},L=function(){g=0,w&&(k=b,M=C,o())},F=function(e){return b=S[a.oW],C=S[a.oH],w=b!=k||C!=M,e&&w&&!g?(r.cAF()(g),g=r.rAF()(L)):e||L(),E(),e&&(r.prvD(e),r.stpP(e)),!1},D={};D[Ft]=-(T.y+1)*A,D[Dt]=T.x*-A,D[It]=T.y*-A,D[Rt]=-(T.x+1)*A,c(S).css(D),z.on(qt,F),O.on(qt,F),c(e).on(f,function(){F(!1)});var R={};R[Ut]=n,R[Bt]=n,H.css(R),E()}else{var P=q[0],N=e;e=e[0];var U=P.attachEvent,B=typeof navigator===i.u||(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));if(U)N.prepend(Kt+In+Qt),N.find(Gt+In).first()[0].attachEvent("onresize",o);else{var j=P.createElement(i.o);j.setAttribute("tabindex","-1"),j.setAttribute(a.c,In),j.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",o),e.document.documentElement.style.display="none"},j.type="text/html",B&&N.prepend(j),j.data="about:blank",B||N.prepend(j),N.on(f,o)}}}if((e=c(e))[0]===G[0]){var _=function(){var t=K.css("direction");if(t!==Oe){var r={},o=0;return"ltr"===t?(r[Rt]=0,r[Dt]=Vt,o=n):(r[Rt]=Vt,r[Dt]=0,o=p.n?-n:p.i?0:n),G.children().first().css(r),e.scrollLeft(o),e.scrollTop(n),Oe=t,!0}return!1};_(),e.on(qt,function(e){return _()&&co(),r.prvD(e),r.stpP(e),!1})}}function pr(e){if(W){var t=e.contents()[0];t[vn].disconnect(),delete t[vn]}else e.children(Gt+In).first().remove()}function yr(e,t,r){return!0===r?r:t===n||e!==t}function mr(e,t,r,o,i){if(!0===i)return i;if(o===n&&i===n){if(!0===r)return r;r=n}return r=r===n?"w":r,o=o===n?"h":o,t===n||(e[r]!==t[r]||e[o]!==t[o])}function xr(e,t){return t===n||(e.t!==t.t||e.r!==t.r||e.b!==t.b||e.l!==t.l)}function wr(e,t){gt&&e.call(wt,t)}function gr(e,t,r){r===n&&(r=[_t,_t,_t,_t]),e[t+Ft]=r[0],e[t+Dt]=r[1],e[t+It]=r[2],e[t+Rt]=r[3]}function br(){ot&&!rt&&(tt.observe(K[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[a.i,a.c,a.s]}),nt.observe(Ct?J[0]:ne[0],{attributes:!0,attributeOldValue:!0,subtree:!Ct,childList:!Ct,characterData:!Ct,attributeFilter:Ct?["wrap","cols","rows"]:[a.i,a.c,a.s]}),rt=!0)}function Cr(){ot&&rt&&(tt.disconnect(),nt.disconnect(),rt=!1)}function Sr(e){if(!R){var t=(e.originalEvent||e).touches!==n;(1===r.mBtn(e)||t)&&(rt&&(ht=!0,Cr()),sr=r.page(e),lr.w=K[0][a.oW]-(M?0:A),lr.h=K[0][a.oH]-(M?0:T),q.on(fn,Ir),q.on(sn,Or),q.on(an,zr),Y.addClass(er),oe.setCapture&&oe.setCapture(),r.prvD(e),r.stpP(e))}}function Or(e){e.originalEvent;var t=r.page(e),n={};(mt||yt)&&(n[Ut]=lr.w+t.x-sr.x),(xt||yt)&&(n[Bt]=lr.h+t.y-sr.y),K.css(n),r.stpP(e)}function zr(e){var t=e!==n;q.off(fn,Ir),q.off(sn,Or),q.off(an,zr),Y.removeClass(er),oe.releaseCapture&&oe.releaseCapture(),t&&(ht&&br(),wt.update(Vt)),ht=!1}function Hr(){if(!R){var e=!Le,t=kt.w-(M||ze||!ye?0:T+L),n=kt.h-(M||ze||!me?0:T+L),r={},o=ye||e,i=J[0];r[Pt+Ut]=_t,r[Pt+Bt]=_t,r[Ut]=Vt,J.css(r);var s=i[a.oW],l=o?Math.max(s,i[a.sW]-1):1;l+=ye?F+(M?0:e?0:A+E):0,r[Ut]=ye?l:Xt,r[Bt]=Vt,J.css(r);var c=i[a.oH],f=Math.max(c,i[a.sH]-1);return r[Ut]=l,r[Bt]=f,re.css(r),r[Pt+Ut]=t+(!M&&ye?A+E:0),r[Pt+Bt]=n+(!M&&me?T+L:0),J.css(r),{ow:s,oh:c,dw:l,dh:f}}}function Wr(){var e=J.prop("selectionStart");if(e!==n){for(var t=J.val(),r=t.length,o=t.split("\n"),i=o.length,a=t.substr(0,e).split("\n"),s=0,l=0,c=a.length,f=a[a.length-1].length,u=0;ul&&(s=u+1,l=v)}return{cursorRow:c,cursorCol:f,rows:i,cols:l,wRow:s,pos:e,max:r}}}function kr(e){for(var t=0;t-1&&ar.splice(n,1),0===ar.length&&(Hr(),wt.update(Vt),clearInterval(it))}}function Er(){setTimeout(function(){Hr(),wt.update(Vt)},50)}function Lr(){at=!0}function Fr(){at=!1,clearInterval(it),ar=[],Hr(),wt.update(Vt)}function Dr(e){return J[nn](p.i&&Ke?9999999:0),J[rn](0),r.prvD(e),r.stpP(e),!1}function Ir(e){return r.prvD(e),!1}function Rr(){return Ae&&C.x&&C.y}function Pr(e,t,n){var r=e?mn:xn,o=e?ie:le;t?K.removeClass(r):K.addClass(r),n?o.removeClass(qn):o.addClass(qn)}function Nr(e,t){if(clearTimeout(st),e)ie.removeClass(Xn),le.removeClass(Xn);else{var n="active",r=function(){if(!dt){var e=se.hasClass(n)||fe.hasClass(n);e||!ft&&!ut||ie.addClass(Xn),e||!ft&&!ut||le.addClass(Xn)}};lt>0&&!0!==t?st=setTimeout(r,lt):r()}}function Ur(e){var t={},n=qr(e),r=Math.min(1,(ue[n._wh]-(ze?e?A:T:0))/ve[n._wh]);r=isNaN(r)?0:r,t[n.wh]=Math.floor(100*r*1e5)/1e5+"%",Rr()||n.h.css(t),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function Br(e,t){var n=I&&e,r={},o=qr(e),i=ee[0][qt+o.WH]-ee[0]["client"+o.WH];p.n&&n&&(i*=-1);var a=t/i;a=isNaN(a)?0:Math.min(1,a),o.i.ms=i,o.i.cs=t,o.i.csr=a;var s=o.i.hl,l=o.t[0]["offset"+o.WH],c=(l-s)*a;if(c=isNaN(c)?0:c,n&&(p.n||!p.n&&!p.i)&&(c=l-s-c),c=Math.max(0,c),z){var f;n&&(c=-(l-s-c));var u="translate(",v="transform";f=e?u+c+"px, 0px)":u+"0px, "+c+"px)",r["-webkit-"+v]=f,r["-moz-"+v]=f,r["-ms-"+v]=f,r["-o-"+v]=f,r[v]=f}else r[o.lt]=c;Rr()||o.h.css(r),o.i.ho=c,o.i.tl=l}function jr(e,t){var n=t?"removeClass":"addClass",r=e?ce:fe,o=e?jn:Vn;(e?ae:se)[n](o),r[n](o)}function _r(){ie=c(Kt+Un+Zt+Zn+Qt),ae=c(Kt+Bn+Qt),se=c(Kt+_n+Qt),le=c(Kt+Un+Zt+$n+Qt),ce=c(Kt+Bn+Qt),fe=c(Kt+_n+Qt),ie.append(ae),ae.append(se),le.append(ce),ce.append(fe),$.after(le),$.after(ie),O&&(ie.on(un,function(e){e.target===ie[0]&&(Ur(!0),Br(!0,ee[nn]()))}),le.on(un,function(e){e.target===le[0]&&(Ur(!1),Br(!1,ee[rn]()))})),Vr(!0),Vr(!1),oe=c(Kt+Zt+Yn+Qt),K.append(oe)}function Vr(e){var t,o,i,a=qr(e),s=a.xy,l=qt+a.LT,c="active",f=1,u=function(){f=.5},v=function(){f=1},d=function(n){n.originalEvent;var i=a.i.tl,c=a.i.hl,f=a.i.ms*((c/2+r.page(n)[s]-o-c/2)/(i-c));f=isFinite(f)?f:0,I&&e&&(p.n||!p.n&&!p.i)&&(f*=-1),ee[l](t+f),H||r.prvD(n)},h=function(e){e=e||e.originalEvent,Y.removeClass(er),a.h.removeClass(c),a.t.removeClass(c),a.s.removeClass(c),H?(ur(q,sn,d),ur(q,an,h),ur(q,ln,y),ur(q,cn,m),ur(q,fn,Ir)):(q.off(sn,d),q.off(an,h),q.off(ln,y),q.off(cn,m),q.off(fn,Ir)),v(),t=n,o=n,i!==n&&(wt.scrollStop(),clearTimeout(i),i=n);var r=K[0].getBoundingClientRect();e.clientX>=r.left&&e.clientX<=r.right&&e.clientY>=r.top&&e.clientY<=r.bottom||Yr(),ft&&Nr(!1)},y=function(e){16==e.keyCode&&u()},m=function(e){16==e.keyCode&&v()};a.h.on(on,function(i){if(!R){var f=(i.originalEvent||i).touches!==n;Rr()||!Ye||f&&!vt||(1===r.mBtn(i)||f)&&(t=(t=ee[l]())===n?0:t,(I&&e&&!p.n||!I)&&(t=t<0?0:t),o=r.page(i)[s],Y.addClass(er),a.h.addClass(c),a.s.addClass(c),H?(fr(q,fn,Ir),fr(q,sn,d),fr(q,an,h)):(q.on(fn,Ir),q.on(sn,d),q.on(an,h)),r.prvD(i))}}),a.t.on(on,function(t){if(!R){var l=(t.originalEvent||t).touches!==n;if(!Rr()&&Xe&&(!l||vt)&&(1===r.mBtn(t)||l)){var v,d=kt[a._wh],x=a.t.offset()[a.lt],w=!0;t.shiftKey&&u();var g=function(){var t=a.i.ho,r=a.i.hl,s=o-x,l=200*f,c=w?Math.max(333,l):l,u={},h=I&&e&&(!p.i&&!p.n||Ke),y=t>s;h&&(y=t=s;h&&(m=v?t+r>=s:t<=s),m?(clearTimeout(i),wt.scrollStop(),i=n):i=setTimeout(g,c),w=!1};o=r.page(t)[s],Y.addClass(er),a.t.addClass(c),a.s.addClass(c),H?(fr(q,fn,Ir),fr(q,an,h),fr(q,ln,y),fr(q,cn,m)):(q.on(fn,Ir),q.on(an,h),q.on(ln,y),q.on(cn,m)),g(),r.prvD(t)}}}).hover(function(){ft&&(dt=!0,Nr(!0))},function(){ft&&(dt=!1,Nr(!1))}),a.s.on(on,function(e){r.stpP(e)})}function qr(e){return{wh:e?Ut:Bt,WH:e?"Width":"Height",lt:e?Rt:Ft,LT:e?"Left":"Top",xy:e?Yt:Jt,XY:e?"X":"Y",_wh:e?"w":"h",_lt:e?"l":"t",t:e?ae:ce,h:e?se:fe,s:e?ie:le,i:e?Ht:Wt}}function Xr(){ut&&Nr(!0)}function Yr(){ut&&!Y.hasClass(er)&&Nr(!1)}function Jr(e){if(!R){var t=B.callbacks,r=t.onScrollStart,o=t.onScroll,i=t.onScrollStop;P!==n?clearTimeout(P):(ft&&Nr(!0),Rr()||K.addClass(Cn),c.isFunction(r)&&wr(r,e)),Br(!0,ee[nn]()),Br(!1,ee[rn]()),c.isFunction(o)&&wr(o,e),P=setTimeout(function(){Kr(e),c.isFunction(i)&&wr(i,e)},Mt)}}function Kr(){clearTimeout(P),P=n,ft&&Nr(!1),Rr()||K.removeClass(Cn)}function Qr(e){return typeof HTMLElement===i.o?e instanceof HTMLElement:e&&typeof e===i.o&&null!==e&&1===e.nodeType&&typeof e.nodeName===i.s}function Gr(e,t,r,o){var a,s,l,u,v,d={n:t,s:!1,v:n,p:n},h=i.u,p=f.has(e,t),y=f.get(e,t),m=!1,x=!0!==p,w="*",g=!1;for(c.type(r)!==i.a&&(r=[r]),v=r.length,s=0;s1){var C=0;for(u=0;u1)break}1===C&&(g=!0)}else g=!0;b===n&&(m=!0)}if(x&&!1===p&&m&&(x=!1),!x){a=y,h=c.type(a);var O=function(e){var t=c.type(e);return t===h&&(t!==i.s||(!!g||a===e))&&(d.s=!0,d.v=a,d.p=a,!0)};for(s=0;s-1&&i.splice(f,1);for(var u=0;u0&>&&i-j0?K.addClass(ce):K.addClass(tr)),it&&(!0===ot?(Cr(),d.add(wt)):null===ot&&y?(Cr(),d.add(wt)):(d.remove(wt),br())),_e)if(je)if(Z===n&&(Z=c(Kt+Fn+Qt),$.before(Z)),Ot)Q.show();else{Q=c(Kt+Dn+Qt),Z.before(Q);var Mt={w:-1,h:-1};hr(Q,function(){var e={w:Q[0][a.oW],h:Q[0][a.oH]};mr(e,Mt)&&(gt&&me&&e.h>0||ye&&e.w>0?co():(gt&&!me&&0===e.h||!ye&&0===e.w)&&co()),Mt=e}),Ot=!0,null!==w&&Q.css(Bt,w+"(100% + 1px)")}else Ot&&Q.hide();o&&(G.find("*").trigger(qt),Ot&&Q.find("*").trigger(qt));var At,Gt=K.css("direction"),Zt=yr(Gt,Se,o),$t=K.css("box-sizing"),en=yr($t,we,o),tn={c:o,t:ao(K.css(Et+Ft)),r:ao(K.css(Et+Dt)),b:ao(K.css(Et+It)),l:ao(K.css(Et+Rt))};try{At=Ot?Q[0].getBoundingClientRect():null}catch(Io){return}M="border-box"===$t;var an=(I="rtl"===Gt)?Rt:Dt,sn=I?Dt:Rt,ln=K[0],cn=$[0],fn=!1,un=!(!Ot||"none"===K.css(jt))&&(0===Math.round(At.right-At.left)&&(!!Pe||ln[a.cW]-A>0));if(je&&!un){var vn=ln[a.oW],dn=Z.css(Ut);Z.css(Ut,Vt);var hn=ln[a.oW];Z.css(Ut,dn),(fn=vn!==hn)||(Z.css(Ut,vn+1),hn=ln[a.oW],Z.css(Ut,dn),fn=vn!==hn)}var pn=(un||fn)&&je,yn=yr(pn,ye,o),mn=!pn&&ye,xn=!!Ot&&0===Math.round(At.bottom-At.top),wn=yr(xn,me,o),Hn=!xn&&me,Wn="-"+Ut,kn=pn&&M||!M,Mn=xn&&M||!M,An={c:o,t:Mn?ao(K.css(Lt+Ft+Wn)):0,r:kn?ao(K.css(Lt+Dt+Wn)):0,b:Mn?ao(K.css(Lt+It+Wn)):0,l:kn?ao(K.css(Lt+Rt+Wn)):0},Tn={c:o,t:ao(K.css(Tt+Ft)),r:ao(K.css(Tt+Dt)),b:ao(K.css(Tt+It)),l:ao(K.css(Tt+Rt))},En={h:String(K.css(Nt+Bt)),w:String(K.css(Nt+Ut))},In={},Rn={};if(A=tn.l+tn.r,T=tn.t+tn.b,tn.c=xr(tn,ge),E=An.l+An.r,L=An.t+An.b,An.c=xr(An,be),F=Tn.l+Tn.r,D=Tn.t+Tn.b,Tn.c=xr(Tn,Ce),En.ih=parseInt(En.h),En.iw=parseInt(En.w),En.ch=En.h.indexOf("px")>-1,En.cw=En.w.indexOf("px")>-1,En.c=mr(En,xe,o),Se=Gt,we=$t,ye=pn,me=xn,ge=tn,be=An,Ce=Tn,xe=En,Zt&&Ot&&Q.css(jt,sn),tn.c||Zt||Ne||yn||wn||en||_e){var Pn={},Nn={};gr(Rn,Tt,[-tn.t,-tn.r,-tn.b,-tn.l]),Pe?(gr(Pn,_t,[tn.t,tn.r,tn.b,tn.l]),gr(Ct?Nn:In,Et)):(gr(Pn,_t),gr(Ct?Nn:In,Et,[tn.t,tn.r,tn.b,tn.l])),$.css(Pn),J.css(Nn)}kt={w:cn[a.oW],h:cn[a.oH]};var Un=!!Ct&&Hr();if(xn&&(wn||Ne||en||En.c||tn.c||An.c)?(En.cw&&(In[Nt+Bt]=En.ch?En.ih-(Pe?T:0)+(M?-L:T):_t),In[Bt]=Vt):(wn||Ne)&&(In[Nt+Bt]=_t,In[Bt]=Xt),pn&&(yn||Ne||en||En.c||tn.c||An.c||Zt)?(En.cw&&(In[Nt+Ut]=En.cw?En.iw-(Pe?A:0)+(M?-E:A)+(C.y?S.y:0):_t),In[Ut]=Vt,Rn[Nt+Ut]=Xt):(yn||Ne)&&(In[Nt+Ut]=_t,In[Ut]=Xt,In[jt]=_t,Rn[Nt+Ut]=_t),pn&&(En.cw||(In[Nt+Ut]=_t),Rn[Ut]=Ct&&ht?Un.dw:Vt,In[Ut]=Vt,In[jt]=sn),xn&&(En.ch||(In[Nt+Bt]=_t),Rn[Bt]=Ct?Ht?Un.dh:Vt:ne[0][a.cH]),je&&Z.css(Rn),ne.css(In),In={},Rn={},he=he||{x:!1,y:!1},e||t||Zt||en||Ne||yn||pn||wn||xn||En.c||nt||dt||Be||De||q||bt||Wt||Re||Ne||bt||Wt||o){var Bn="overflow",jn=Bn+"-x",_n=Bn+"-y",Vn="hidden",qn="visible",Xn=!!k&&(C.x||C.y||kt.w0&&(Rn[Ut]=Math.max(1,Rn[Ut]),Rn[Bt]=Math.max(1,Rn[Bt])),Ct&&re.css(zr),Z.css(Rn)}pn&&(In[Ut]=Xt),!pn||M||rt||(In[jt]="none"),ne.css(In),In={};var kr=er.getBoundingClientRect(),Mr={w:Math.max(er[a.sW],or[a.sW]),h:Math.max(er[a.sH],or[a.sH])};if(Xn&&ne.css(Bn,_t),kr.width!==n){var Ar=kr.width,Tr=kr.height,Er=.001;Mr.w+=ao(Ar+Er)-Ar,Mr.h+=ao(Tr+Er)-Tr}Mr.c=t=mr(Mr,ve,o),ve=Mr,e=mr(lr={w:ln[a.cW],h:ln[a.cH]},ue),ue=lr,kt={w:cn[a.oW],h:cn[a.oH]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ln+Qt),ee.prepend(te)),te.css($r)}ne.css(In)}var eo={};Pn={};if(e||_r.c||Vr.c||Mr.c||dt||en||nt||Zt||Be||wn){eo[sn]=_t;var to=function(){eo[It]=_t,zt.h=0},no=function(){eo[an]=_t,zt.w=0};if(_r.x&&Vr.xs?(eo[jn]=qt,tt?to():(eo[It]=-(C.x?S.x:g.x),zt.h=C.x?S.y:0)):(eo[jn]=_t,to()),_r.y&&Vr.ys?(eo[_n]=qt,tt?no():(eo[an]=-(C.y?S.y:g.y),zt.w=C.y?S.x:0)):(eo[_n]=_t,no()),(kt.h-1,Do=Lo.y>-1;(Fo||Do)&&(Do&&ee[rn](Lo.y),Fo&&(I&&Ke&&p.i?ee[nn](0):ee[nn](Lo.x)))}Fe=Oo}else Ct||(I&&p.i&&C.y&&_r.x&&Ke&&(f.l+=zt.w),ee[nn](f.l),ee[rn](f.t));Zt&&c.isFunction(P)&&wr(P,{isRTL:I,dir:Gt}),e&&c.isFunction(U)&&wr(U,{width:ue.w,height:ue.h}),t&&c.isFunction(N)&&wr(N,{width:ve.w,height:ve.h}),(_r.c||Vr.c)&&c.isFunction(z)&&wr(z,{x:_r.x,y:_r.y,xScrollable:Vr.xs,yScrollable:Vr.ys,clipped:Vr.x||Vr.y}),Ir.c&&c.isFunction(W)&&wr(W,{x:Ir.x,y:Ir.y})}St&&(_r.c||et.c)&&(et.f||Zr(),C.y&&_r.x&&ne.css(Pt+Ut,et.w+S.y),C.x&&_r.y&&ne.css(Pt+Bt,et.h+S.x),et.c=!1),dr(G),dr(Q),c.isFunction(O)&&wr(O,{forced:o})}}function fo(e,t){N=v.defaultOptions,x=v.nativeScrollbarStyling,g=c.extend(!0,{},v.nativeScrollbarSize),C=c.extend(!0,{},v.nativeScrollbarIsOverlaid),S=c.extend(!0,{},v.overlayScrollbarDummySize),p=c.extend(!0,{},v.rtlScrollBehavior),ro(c.extend(!0,{},N,t));var n,o=B.callbacks;if(C.x&&C.x&&!B.nativeScrollbarsOverlaid.initialize){var i=o.onInitializationWithdrawn;return c.isFunction(i)&&wr(i),!1}if(w=v.cssCalc,m=v.msie,y=v.autoUpdateRecommended,O=v.supportTransition,z=v.supportTransform,H=v.supportPassiveEvents,W=v.supportResizeObserver,ot=v.supportMutationObserver,k=v.restrictedMeasuring,q=c(e.ownerDocument),V=c(q[0].defaultView||q[0].parentWindow),X=q.find("html").first(),Y=X.find("body").first(),J=c(e),Ct=J.is("textarea"),(St=J.is("body"))&&((n={}).l=Math.max(J[nn](),X[nn](),V[nn]()),n.t=Math.max(J[rn](),X[rn](),V[rn]())),Ct){J.wrap(Kt+yn+Qt),J.addClass(Hn).addClass(Nn),K=J.parent();var s={};B.sizeAutoCapable||(s[Ut]=J.css(Ut),s[Bt]=J.css(Bt)),K.css(s),K.wrapInner(Kt+En+Zt+Nn+Qt).wrapInner(Kt+Mn+Zt+Nn+Qt).wrapInner(Kt+kn+Zt+Nn+Qt),ne=K.find(Gt+En).first(),ee=K.find(Gt+Mn).first(),$=K.find(Gt+kn).first(),re=c(Kt+Wn+Qt),ne.prepend(re),J.on(qt,Dr),J.on("drop",Er),J.on("focus",Lr),J.on("focusout",Fr),m>9||!y?J.on("input",Mr):(J.on(ln,Ar),J.on(cn,Tr))}else J.addClass(pn),(K=J).wrapInner(Kt+En+Qt).wrapInner(Kt+Mn+Qt).wrapInner(Kt+kn+Qt),ne=K.find(Gt+En).first(),ee=K.find(Gt+Mn).first(),$=K.find(Gt+kn).first(),ne.on(un,function(e){!0!==Te&&so((e=e.originalEvent||e).propertyName)&&co(Vt)});if(_r(),H?fr(ee,qt,Jr):ee.on(qt,Jr),x&&(C.x&&C.y?ee.addClass(Tn):ee.addClass(An)),ot){var l,f=r.mO(),u=r.now();tt=new f(function(e){if(gt&&!R){var t=!1;c.each(e,function(){var e=this,n=this.target,r=e.attributeName;if(t=r===a.c?to(e.oldValue,n.className):r!==a.s||e.oldValue!==n.style.cssText)return!1}),t&&wt.update(Vt)}}),nt=new f(function(e){if(gt&&!R){for(var t=!1,n=0;nor||!i?a():l=setTimeout(a,or)}}})}St&&(X.addClass(hn),ee[nn](n.l),ee[rn](n.t)),G=c(Kt+"os-resize-observer-host"+Qt),K.prepend(G),hr(G,cr),cr(),wt.update(Vt),setTimeout(function(){O&&!bt&&K.addClass(wn)},333),gt=!0;var d=o.onInitialized;return c.isFunction(d)&&wr(d),gt}}e[o]=function(e,t){if(0===arguments.length)return this;h();var r,o=[];return c.isPlainObject(t)?e&&e.length?e.length>1?(c.each(e,function(){(r=this)!==n&&o.push(m(r,t,u,v))}),o):m(e[0],t,u,v):m(e,t,u,v):e?e.length&&e.length>0?e.length>1?(c.each(e,function(){r=l.get(this),"!"===t?r!==n&&o.push(r):o.push(r)}),o):l.get(e[0]):l.get(e):void 0},e[o].globals=function(){h();var e=c.extend(!0,{},u);return delete e.msie,e},e[o].defaultOptions=function(e){h();var t=u.defaultOptions;if(e===n)return c.extend(!0,{},t);u.defaultOptions=c.extend(!0,{},t,e)}}(s,c,l,f);return e[o]}); \ No newline at end of file +!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(e,e.document,undefined,n)}):"object"==typeof exports?module.exports=t(e,e.document,undefined,require("jquery")):t(e,e.document,undefined,e.jQuery)}("undefined"!=typeof window?window:this,function(e,t,n,r){"use-strict";var o="OverlayScrollbars",i={o:"object",f:"function",a:"array",s:"string",n:"number",u:"undefined"},a={c:"class",s:"style",i:"id",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth"},s={wW:function(){return e.innerWidth||t.documentElement[a.cW]||t.body[a.cW]},wH:function(){return e.innerHeight||t.documentElement[a.cH]||t.body[a.cH]},mO:function(){return e.MutationObserver||e.WebKitMutationObserver||e.WebkitMutationObserver||e.MozMutationObserver||n},rO:function(){return e.ResizeObserver||e.WebKitResizeObserver||e.WebkitResizeObserver||e.MozResizeObserver||n},rAF:function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)}},cAF:function(){return e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||function(t){return e.clearTimeout(t)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},page:function(e){var r="page",o="client",i="X",a="Y",s=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,l=s.documentElement,c=s.body;if(e.touches!==n){var f=e.touches[0];return{x:f[r+i],y:f[r+a]}}return!e[r+i]&&e[o+i]&&null!=e[o+i]?{x:e[o+i]+(l&&l.scrollLeft||c&&c.scrollLeft||0)-(l&&l.clientLeft||c&&c.clientLeft||0),y:e[o+a]+(l&&l.scrollTop||c&&c.scrollTop||0)-(l&&l.clientTop||c&&c.clientTop||0)}:{x:e[r+i],y:e[r+a]}},mBtn:function(e){return e.which||e.button===n?e.which:1&e.button?1:2&e.button?3:4&e.button?2:0},bind:function(e,t){if(typeof e!==i.f)throw"Can't bind function!";var n=Array.prototype.slice.call(arguments,2),r=function(){},o=function(){return e.apply(this instanceof r?this:t,n.concat(Array.prototype.slice.call(arguments)))};return e.prototype&&(r.prototype=e.prototype),o.prototype=new r,o}},l=function(t){return t.fn.overlayScrollbars=function(n){var r=this;return t.isPlainObject(n)?(t.each(r,function(){e[o](this,n)}),r):e[o](r,n)},t}(r),c=function(e){var t=[],r="__overlayScrollbars__";function o(e,n){e[r]=n,t.push(e)}function i(n){var o=e.inArray(n,t);o>-1&&(delete n[r],t.splice(o,1))}function a(e){return s(e)!==n}function s(e){for(var n=0;n
'),u=function(){s.append(f);var e,t="overflow",n="hidden",r=f[0],o=c(f.children("div").first());return 0===r[a.oH]&&f.hide().show(),e={x:r[a.oH]-r[a.cH],y:r[a.oW]-r[a.cW]},i.restrictedMeasuring=function(){f.css(t,n);var e={w:r[a.sW],h:r[a.sH]};f.css(t,"visible");var o={w:r[a.sW],h:r[a.sH]};return e.w-o.w!=0||e.h-o.h!=0}(),i.nativeScrollbarStyling=(f.addClass("os-viewport-native-scrollbars-invisible"),f.css(t,n).hide().css(t,"scroll").show(),r[a.oH]-r[a.cH]==0&&r[a.oW]-r[a.cW]==0),i.rtlScrollBehavior=function(){f.css({"overflow-y":n,direction:"rtl"}).scrollLeft(0);var e=f.offset(),t=o.offset();f.scrollLeft(999);var r=o.offset();return{i:e.left===t.left,n:t.left-r.left==0}}(),f.removeAttr(a.s).remove(),e}(),v={x:0===u.x,y:0===u.y};function d(e){var r=!1,o="Webkit Moz ms O".split(" "),i=t.createElement("div"),a=null;if(e=e.toLowerCase(),i.style[e]!==n&&(r=!0),!1===r){a=e.charAt(0).toUpperCase()+e.substr(1);for(var s=0;s0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);if(t.indexOf("Trident/")>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var o=t.indexOf("Edge/");return o>0&&parseInt(t.substring(o+5,t.indexOf(".",o)),10)}(),i.cssCalc=function(){for(var e=t.createElement("div"),n=["calc","-webkit-calc","-moz-calc","-o-calc"],r=0;r0){var e=r.wW(),v=r.wH(),h=e-t,p=v-n;if(0===h&&0===p)return;var y=Math.round(e/(t/100)),m=Math.round(v/(n/100)),x=Math.abs(h),w=Math.abs(p),g=Math.abs(y),b=Math.abs(m),C=d(),S=x>2&&w>2,O=!u(g,b);if(!!(S&&O&&(C!==o&&o>0))){s.append(f);var z=f[0];i.nativeScrollbarSize={x:z[a.oH]-z[a.cH],y:z[a.oW]-z[a.cW]},f.remove(),c.each(l.all(),function(){l.has(this)&&l.get(this).update("zoom")})}t=e,n=v,o=C}})}function u(e,t){var n=Math.abs(e),r=Math.abs(t);return!(n===r||n+1===r||n-1===r)}function d(){var t=e.screen.deviceXDPI||0,n=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/n}}()}function y(e){var t,o=this,i="autoUpdate",a=i+"Interval",s=[],l=[],f=!1,u=33,v=u,d=r.now(),h=function(){if(s.length>0&&f){t=r.rAF()(function(){h()});var e=r.now(),o=e-d;if(o>v){d=e-o%v;for(var c=u,p=0;pw&&(y.update("auto"),l[p]=new Date(g+=w)),c=Math.max(1,Math.min(c,w))}}v=c}}else v=u};o.add=function(t){-1===c.inArray(t,s)&&(s.push(t),l.push(r.now()),s.length>0&&!f&&(f=!0,e.autoUpdateLoop=f,h()))},o.remove=function(o){var i=c.inArray(o,s);i>-1&&(l.splice(i,1),s.splice(i,1),0===s.length&&f&&(f=!1,e.autoUpdateLoop=f,t!==n&&(r.cAF()(t),t=-1)))}}function m(t,u,v,d){if(to(t)){if(l.has(t)){var h=l.get(t);return h.options(u),h}var p,y,m,x,w,g,b,C,S,O,z,H,W,k,M,T,A,E,L,F,D,I,R,P,N,U,B,j,_,V,q,X,Y,J,K,Q,G,Z,$,ee,te,ne,re,oe,ie,ae,se,le,ce,fe,ue,ve,de,he,pe,ye,me,xe,we,ge,be,Ce,Se,Oe,ze,He,We,ke,Me,Te,Ae,Ee,Le,Fe,De,Ie,Re,Pe,Ne,Ue,Be,je,_e,Ve,qe,Xe,Ye,Je,Ke,Qe,Ge,Ze,$e,et,tt,nt,rt,ot,it,at,st,lt,ct,ft,ut,vt,dt,ht,pt,yt,mt,xt,wt,gt,bt=new e[o],Ct=!1,St=!1,Ot=!1,zt=!1,Ht=!1,Wt={w:0,h:0},kt={},Mt={},Tt={},At=175,Et="-hidden",Lt="margin-",Ft="padding-",Dt="border-",It="top",Rt="right",Pt="bottom",Nt="left",Ut="min-",Bt="max-",jt="width",_t="height",Vt="float",qt="",Xt="auto",Yt="scroll",Jt="100%",Kt="x",Qt="y",Gt='
',$t=".",en=" ",tn="scrollbar",nn="-horizontal",rn="-vertical",on=Yt+"Left",an=Yt+"Top",sn="mousedown touchstart",ln="mouseup touchend",cn="mousemove touchmove",fn="mouseenter",un="mouseleave",vn="keydown",dn="keyup",hn="selectstart",pn="transitionend webkitTransitionEnd oTransitionEnd",yn="__overlayScrollbarsRO__",mn="os-",xn=mn+"html",wn=mn+"host",gn=wn+"-textarea",bn=wn+"-"+tn+nn+Et,Cn=wn+"-"+tn+rn+Et,Sn=wn+"-transition",On=wn+"-rtl",zn=wn+"-resize-disabled",Hn=wn+"-scrolling",Wn=wn+"-overflow",kn=Wn+"-x",Mn=Wn+"-y",Tn=mn+"textarea",An=Tn+"-cover",En=mn+"padding",Ln=mn+"viewport",Fn=Ln+"-native-scrollbars-invisible",Dn=Ln+"-native-scrollbars-overlaid",In=mn+"content",Rn=mn+"content-arrange",Pn=mn+"content-glue",Nn=mn+"size-auto-observer",Un=mn+"resize-observer",Bn=mn+"resize-observer-item",jn=Bn+"-final",_n=mn+"text-inherit",Vn=mn+tn,qn=Vn+"-track",Xn=qn+"-off",Yn=Vn+"-handle",Jn=Yn+"-off",Kn=Vn+"-unusable",Qn=Vn+"-"+Xt+Et,Gn=Vn+"-corner",Zn=Gn+"-resize",$n=Zn+"-both",er=Zn+nn,tr=Zn+rn,nr=Vn+nn,rr=Vn+rn,or=mn+"dragging",ir=mn+"theme-none",ar={},sr=33,lr=11,cr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],fr=[],ur={x:0,y:0},vr={w:0,h:0};if(bt.sleep=function(){R=!0},bt.update=function(e){if(e===Xt){var t=fo(),n=co();(t||n)&&po(!1,n)}else"zoom"===e?po(!0,!0):(e=R||e,R=!1,po(!1,!1,e))},bt.options=function(e,t){if(c.isEmptyObject(e)||!c.isPlainObject(e)){if(c.type(e)===i.s){if(arguments.length>=2){var n={};return f.set(n,e,t,!0),lo(n),void po()}return f.get(U,e)}return U}lo(e);var r=R||!1;R=!1,po(),R=r},bt.destroy=function(){St=!0,d.remove(bt),Hr(),wr(G),Ht&&wr(Q),G.remove(),Z!==n&&Z.remove(),te!==n&&te.remove(),Ht&&Q.remove(),H?(pr(K,cn,Zr),pr(K,fn,Qr),pr(K,un,Gr)):(K.off(cn,Zr),K.off(fn,Qr),K.off(un,Gr)),ie.remove(),le.remove(),oe&&oe.remove(),mt||Mr(),ne.contents().unwrap().unwrap().unwrap(),zt&&X.removeClass(xn),Ot?(J.off(Yt,Nr),J.off("drop",Ir),J.off("focus",Rr),J.off("focusout",Pr),m>9||!y?J.off("input",Lr):(J.off(vn,Fr),J.off(dn,Dr)),re.remove(),J.removeClass(Tn).removeClass(_n),J.unwrap().removeAttr(a.s),K.remove()):(J.removeClass(wn),K.removeClass(wn).removeClass(zn).removeClass(On).removeClass(bn).removeClass(Cn).removeClass(Sn).removeClass(Hn).removeClass(Wn).removeClass(kn).removeClass(Mn).removeClass(ir).removeClass(Qe)),l.rem(t);var e=B.callbacks.onDestroyed;for(var r in c.isFunction(e)&&Sr(e),bt)delete bt[r];bt=n},bt.scroll=function(t,r,o,s){if(0===arguments.length||t===n){var l=kt,f=Mt,u=Ke&&I&&p.i,v=Ke&&I&&p.n,d=l.cs,h=l.csr,y=l.ms;return d=u?y-d:d,{x:{position:d*=v?-1:1,ratio:h=u?1-h:h,max:y*=v?-1:1,handleOffset:l.ho,handleLength:l.hl,handleLengthRatio:l.hlr,trackLength:l.tl,isRTL:I,isRTLNormalized:Ke},y:{position:f.cs,ratio:f.csr,max:f.ms,handleOffset:f.ho,handleLength:f.hl,handleLengthRatio:f.hlr,trackLength:f.tl}}}var m,x=[Kt,Nt,"l"],w=[Qt,It,"t"],g=["+=","-=","*=","/="],b={},C=c.type(r)===i.o,S="end",O="begin",H={axis:"xy",block:[O,O],margin:[0,0,0,0]},W=[Kt,Qt,"xy","yx"],k=[O,S],M=t.hasOwnProperty("el"),T=M?t.el:t,A=T instanceof c,E=!A&&to(T),L=function(e,t){for(m=0;m0)t.x=e[0],t.y=e[1];else if(c.type(e)===i.s||c.type(e)===i.n)t.x=e,t.y=e;else if(c.type(e)===i.o){for(var n in e=c.extend({},e),m=0,e)e.hasOwnProperty(n)&&(m>2&&delete e[n],m++);var r=function(t){var n=t?x:w;for(m=0;m2){var y=r.substr(0,2);for(m=0;m/g,(h?"-":qt)+Jt)).replace(/px/g,qt)).replace(/%/g,v+u*(d&&p.n?-1:1)/100)).replace(/vw/g,v+Tt.w)).replace(/vh/g,v+Tt.h),a=e.parseInt(e.parseFloat(e.eval(r)).toFixed())}else c.type(r)===i.n&&(a=r);if(!isNaN(a)&&a!==n&&c.type(a)===i.n){var x=Ke&&d,w=f*(x&&p.n?-1:1),b=x&&p.i,C=x&&p.n;switch(w=b?u-w:w,o){case"+=":s=w+a;break;case"-=":s=w-a;break;case"*=":s=w*a;break;case"/=":s=w/a;break;default:s=a}b&&(s=u-s),C&&(s*=-1),d&&p.n?(s=Math.max(u,s),s=Math.min(0,s)):(s=Math.min(u,s),s=Math.max(0,s)),s===f&&(s=n)}return s};if(A||E){var R=A?T:c(T);if(0===R.length)return;if(M){var P,N,U,B=t.axis,j=t.block,_=c.type(j),V=t.margin,q=c.type(V);if(_===i.s)j=[j,j];else if(_===i.a)if((N=j.length)>2||N<1)j=n;else{for(P=!0,1===N&&(j[1]=O),m=0;m0||C){var ue={};if(ce&&(ue[on]=b.x),fe&&(ue[an]=b.y),C)ee.animate(ue,r);else{var ve={duration:r,complete:s};if(c.type(o)===i.a){var de={};de[on]=o[0],de[an]=o[1],ve.specialEasing=de}else ve.easing=o;ee.animate(ue,ve)}}else ce&&ee[on](b.x),fe&&ee[an](b.y)},bt.scrollStop=function(e,t,n){ee.stop(e,t,n)},bt.getElements=function(){return{target:J[0],host:K[0],padding:$[0],viewport:ee[0],content:ne[0],scrollbarHorizontal:{scrollbar:ie[0],track:ae[0],handle:se[0]},scrollbarVertical:{scrollbar:le[0],track:ce[0],handle:fe[0]},scrollbarCorner:oe}},bt.getState=function(e){var t=function(e){if(!c.isPlainObject(e))return e;var t=c.extend(!0,{},e);f.del(t,"c");var n=function(e,n){t.hasOwnProperty(e)&&(t[n]=t[e],delete t[e])};return n("w",jt),n("h",_t),t},n={sleeping:t(R)||!1,autoUpdate:t(!rt),widthAuto:t(ye),heightAuto:t(me),padding:t(ge),overflowAmount:t(Me),hideOverflow:t(pe),hasOverflow:t(he),contentScrollSize:t(ve),viewportSize:t(Tt),hostSize:t(ue)};return c.type(e)===i.s?f.get(n,e):n},yo(t,u))return l.add(t,bt),bt;bt=n}function dr(){if(!R){var e=G[0],t={w:e[a.sW],h:e[a.sH]};if(Ct){var n=br(t,_e);_e=t,n&&po(!0,!1)}else _e=t}}function hr(e,t,n){e=e[0];for(var r=t.split(en),o=0;o9||!y){var u='">',d="",h="childNodes",x=Gt+Un+u;x+=Gt+Bn+'" dir="ltr'+u,x+=Gt+Bn+u,x+=Gt+jn+Zt,x+=d,x+=Gt+Bn+u,x+=Gt+jn+'" style="width: 200%; height: 200%'+Zt,x+=d,x+=d,x+=d,e.prepend(x);var w,g,b,C,S=(e=e[0])[h][0][h][0],O=c(S[h][1]),z=c(S[h][0]),H=c(z[0][h][0]),k=S[a.oW],M=S[a.oH],T=2,A=v.nativeScrollbarSize,E=function(){z[on](n)[an](n),O[on](n)[an](n)},L=function(){g=0,w&&(k=b,M=C,o())},F=function(e){return b=S[a.oW],C=S[a.oH],w=b!=k||C!=M,e&&w&&!g?(r.cAF()(g),g=r.rAF()(L)):e||L(),E(),e&&(r.prvD(e),r.stpP(e)),!1},D={};D[It]=-(A.y+1)*T,D[Rt]=A.x*-T,D[Pt]=A.y*-T,D[Nt]=-(A.x+1)*T,c(S).css(D),z.on(Yt,F),O.on(Yt,F),c(e).on(f,function(){F(!1)});var R={};R[jt]=n,R[_t]=n,H.css(R),E()}else{var P=q[0],N=e;e=e[0];var U=P.attachEvent,B=typeof navigator===i.u||(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));if(U)N.prepend(Gt+Un+Zt),N.find($t+Un).first()[0].attachEvent("onresize",o);else{var j=P.createElement(i.o);j.setAttribute("tabindex","-1"),j.setAttribute(a.c,Un),j.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",o),e.document.documentElement.style.display="none"},j.type="text/html",B&&N.prepend(j),j.data="about:blank",B||N.prepend(j),N.on(f,o)}}}if((e=c(e))[0]===G[0]){var _=function(){var t=K.css("direction");if(t!==Oe){var r={},o=0;return"ltr"===t?(r[Nt]=0,r[Rt]=Xt,o=n):(r[Nt]=Xt,r[Rt]=0,o=p.n?-n:p.i?0:n),G.children().first().css(r),e.scrollLeft(o),e.scrollTop(n),Oe=t,!0}return!1};_(),e.on(Yt,function(e){return _()&&po(),r.prvD(e),r.stpP(e),!1})}}function wr(e){if(W){var t=e.contents()[0];t[yn].disconnect(),delete t[yn]}else e.children($t+Un).first().remove()}function gr(e,t,r){return!0===r?r:t===n||e!==t}function br(e,t,r,o,i){if(!0===i)return i;if(o===n&&i===n){if(!0===r)return r;r=n}return r=r===n?"w":r,o=o===n?"h":o,t===n||(e[r]!==t[r]||e[o]!==t[o])}function Cr(e,t){return t===n||(e.t!==t.t||e.r!==t.r||e.b!==t.b||e.l!==t.l)}function Sr(e,t){Ct&&e.call(bt,t)}function Or(e,t,r){r===n&&(r=[qt,qt,qt,qt]),e[t+It]=r[0],e[t+Rt]=r[1],e[t+Pt]=r[2],e[t+Nt]=r[3]}function zr(){ot&&!rt&&(tt.observe(K[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[a.i,a.c,a.s]}),nt.observe(Ot?J[0]:ne[0],{attributes:!0,attributeOldValue:!0,subtree:!Ot,childList:!Ot,characterData:!Ot,attributeFilter:Ot?["wrap","cols","rows"]:[a.i,a.c,a.s]}),rt=!0)}function Hr(){ot&&rt&&(tt.disconnect(),nt.disconnect(),rt=!1)}function Wr(e){if(!R){var t=(e.originalEvent||e).touches!==n;(1===r.mBtn(e)||t)&&(rt&&(yt=!0,Hr()),ur=r.page(e),vr.w=K[0][a.oW]-(M?0:T),vr.h=K[0][a.oH]-(M?0:A),q.on(hn,Ur),q.on(cn,kr),q.on(ln,Mr),Y.addClass(or),oe.setCapture&&oe.setCapture(),r.prvD(e),r.stpP(e))}}function kr(e){e.originalEvent;var t=r.page(e),n={};(wt||xt)&&(n[jt]=vr.w+t.x-ur.x),(gt||xt)&&(n[_t]=vr.h+t.y-ur.y),K.css(n),r.stpP(e)}function Mr(e){var t=e!==n;q.off(hn,Ur),q.off(cn,kr),q.off(ln,Mr),Y.removeClass(or),oe.releaseCapture&&oe.releaseCapture(),t&&(yt&&zr(),bt.update(Xt)),yt=!1}function Tr(){if(!R){var e=!Le,t=Tt.w-(M||ze||!ye?0:A+L),n=Tt.h-(M||ze||!me?0:A+L),r={},o=ye||e,i=J[0];r[Ut+jt]=qt,r[Ut+_t]=qt,r[jt]=Xt,J.css(r);var s=i[a.oW],l=o?Math.max(s,i[a.sW]-1):1;l+=ye?F+(M?0:e?0:T+E):0,r[jt]=ye?l:Jt,r[_t]=Xt,J.css(r);var c=i[a.oH],f=Math.max(c,i[a.sH]-1);return r[jt]=l,r[_t]=f,re.css(r),r[Ut+jt]=t+(!M&&ye?T+E:0),r[Ut+_t]=n+(!M&&me?A+L:0),J.css(r),{ow:s,oh:c,dw:l,dh:f}}}function Ar(){var e=J.prop("selectionStart");if(e!==n){for(var t=J.val(),r=t.length,o=t.split("\n"),i=o.length,a=t.substr(0,e).split("\n"),s=0,l=0,c=a.length,f=a[a.length-1].length,u=0;ul&&(s=u+1,l=v)}return{cursorRow:c,cursorCol:f,rows:i,cols:l,wRow:s,pos:e,max:r}}}function Er(e){for(var t=0;t-1&&fr.splice(n,1),0===fr.length&&(Tr(),bt.update(Xt),clearInterval(it))}}function Ir(){setTimeout(function(){Tr(),bt.update(Xt)},50)}function Rr(){at=!0}function Pr(){at=!1,clearInterval(it),fr=[],Tr(),bt.update(Xt)}function Nr(e){return J[on](p.i&&Ke?9999999:0),J[an](0),r.prvD(e),r.stpP(e),!1}function Ur(e){return r.prvD(e),!1}function Br(){return Te&&C.x&&C.y}function jr(e,t,n){var r=e?bn:Cn,o=e?ie:le;t?K.removeClass(r):K.addClass(r),n?o.removeClass(Kn):o.addClass(Kn)}function _r(e,t){if(clearTimeout(st),e)ie.removeClass(Qn),le.removeClass(Qn);else{var n="active",r=function(){if(!pt){var e=se.hasClass(n)||fe.hasClass(n);!e&&(ut||vt||dt)&&ie.addClass(Qn),!e&&(ut||vt||dt)&&le.addClass(Qn)}};ct>0&&!0!==t?st=setTimeout(r,ct):r()}}function Vr(e){var t={},n=Kr(e),r=Math.min(1,(ue[n._wh]-(ze?e?T:A:0))/ve[n._wh]);t[n.wh]=Math.floor(100*r*1e5)/1e5+"%",Br()||n.h.css(t),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function qr(e,t){var n=I&&e,r={},o=Kr(e),i=ee[0][Yt+o.WH]-ee[0]["client"+o.WH];p.n&&n&&(i*=-1);var a=t/i;a=isNaN(a)?0:Math.min(1,a),o.i.ms=i,o.i.cs=t,o.i.csr=a;var s=o.i.hl,l=o.t[0]["offset"+o.WH],c=(l-s)*a;if(c=isNaN(c)?0:c,n&&(p.n||!p.n&&!p.i)&&(c=l-s-c),c=Math.max(0,c),z){var f;n&&(c=-(l-s-c));var u="translate(",v="transform";f=e?u+c+"px, 0px)":u+"0px, "+c+"px)",r["-webkit-"+v]=f,r["-moz-"+v]=f,r["-ms-"+v]=f,r["-o-"+v]=f,r[v]=f}else r[o.lt]=c;Br()||o.h.css(r),o.i.ho=c,o.i.tl=l}function Xr(e,t){var n=t?"removeClass":"addClass",r=e?ce:fe,o=e?Xn:Jn;(e?ae:se)[n](o),r[n](o)}function Yr(){ie=c(Gt+Vn+en+nr+Zt),ae=c(Gt+qn+Zt),se=c(Gt+Yn+Zt),le=c(Gt+Vn+en+rr+Zt),ce=c(Gt+qn+Zt),fe=c(Gt+Yn+Zt),ie.append(ae),ae.append(se),le.append(ce),ce.append(fe),$.after(le),$.after(ie),O&&(ie.on(pn,function(e){e.target===ie[0]&&(Vr(!0),qr(!0,ee[on]()))}),le.on(pn,function(e){e.target===le[0]&&(Vr(!1),qr(!1,ee[an]()))})),Jr(!0),Jr(!1),oe=c(Gt+en+Gn+Zt),K.append(oe)}function Jr(e){var t,o,i,a=Kr(e),s=a.xy,l=Yt+a.LT,c="active",f=1,u=function(){f=.5},v=function(){f=1},d=function(n){n.originalEvent;var i=a.i.tl,c=a.i.hl,f=a.i.ms*((c/2+r.page(n)[s]-o-c/2)/(i-c));f=isFinite(f)?f:0,I&&e&&(p.n||!p.n&&!p.i)&&(f*=-1),ee[l](t+f),H||r.prvD(n)},h=function(e){e=e||e.originalEvent,Y.removeClass(or),a.h.removeClass(c),a.t.removeClass(c),a.s.removeClass(c),H?(pr(q,cn,d),pr(q,ln,h),pr(q,vn,y),pr(q,dn,m),pr(q,hn,Ur)):(q.off(cn,d),q.off(ln,h),q.off(vn,y),q.off(dn,m),q.off(hn,Ur)),v(),t=n,o=n,i!==n&&(bt.scrollStop(),clearTimeout(i),i=n);var r=K[0].getBoundingClientRect();e.clientX>=r.left&&e.clientX<=r.right&&e.clientY>=r.top&&e.clientY<=r.bottom||Gr(),(ut||vt)&&_r(!1)},y=function(e){16==e.keyCode&&u()},m=function(e){16==e.keyCode&&v()};a.h.on(sn,function(i){if(!R){var f=(i.originalEvent||i).touches!==n;Br()||!Ye||f&&!ht||(1===r.mBtn(i)||f)&&(t=(t=ee[l]())===n?0:t,(I&&e&&!p.n||!I)&&(t=t<0?0:t),o=r.page(i)[s],Y.addClass(or),a.h.addClass(c),a.s.addClass(c),H?(hr(q,hn,Ur),hr(q,cn,d),hr(q,ln,h)):(q.on(hn,Ur),q.on(cn,d),q.on(ln,h)),r.prvD(i))}}),a.t.on(sn,function(t){if(!R){var l=(t.originalEvent||t).touches!==n;if(!Br()&&Xe&&(!l||ht)&&(1===r.mBtn(t)||l)){var v,d=Tt[a._wh],x=a.t.offset()[a.lt],w=!0;t.shiftKey&&u();var g=function(){var t=a.i.ho,r=a.i.hl,s=o-x,l=200*f,c=w?Math.max(333,l):l,u={},h=I&&e&&(!p.i&&!p.n||Ke),y=t>s;h&&(y=t=s;h&&(m=v?t+r>=s:t<=s),m?(clearTimeout(i),bt.scrollStop(),i=n):i=setTimeout(g,c),w=!1};o=r.page(t)[s],Y.addClass(or),a.t.addClass(c),a.s.addClass(c),H?(hr(q,hn,Ur),hr(q,ln,h),hr(q,vn,y),hr(q,dn,m)):(q.on(hn,Ur),q.on(ln,h),q.on(vn,y),q.on(dn,m)),g(),r.prvD(t)}}}).hover(function(){(ut||vt)&&(pt=!0,_r(!0))},function(){(ut||vt)&&(pt=!1,_r(!1))}),a.s.on(sn,function(e){r.stpP(e)})}function Kr(e){return{wh:e?jt:_t,WH:e?"Width":"Height",lt:e?Nt:It,LT:e?"Left":"Top",xy:e?Kt:Qt,XY:e?"X":"Y",_wh:e?"w":"h",_lt:e?"l":"t",t:e?ae:ce,h:e?se:fe,s:e?ie:le,i:e?kt:Mt}}function Qr(){dt&&_r(!0)}function Gr(){dt&&!Y.hasClass(or)&&_r(!1)}function Zr(){vt&&(_r(!0),clearTimeout(lt),lt=setTimeout(function(){vt&&_r(!1)},100))}function $r(e){if(!R){var t=B.callbacks,r=t.onScrollStart,o=t.onScroll,i=t.onScrollStop;P!==n?clearTimeout(P):((ut||vt)&&_r(!0),Br()||K.addClass(Hn),c.isFunction(r)&&Sr(r,e)),qr(!0,ee[on]()),qr(!1,ee[an]()),c.isFunction(o)&&Sr(o,e),P=setTimeout(function(){eo(e),c.isFunction(i)&&Sr(i,e)},At)}}function eo(){clearTimeout(P),P=n,(ut||vt)&&_r(!1),Br()||K.removeClass(Hn)}function to(e){return typeof HTMLElement===i.o?e instanceof HTMLElement:e&&typeof e===i.o&&null!==e&&1===e.nodeType&&typeof e.nodeName===i.s}function no(e,t,r,o){var a,s,l,u,v,d={n:t,s:!1,v:n,p:n},h=i.u,p=f.has(e,t),y=f.get(e,t),m=!1,x=!0!==p,w="*",g=!1;for(c.type(r)!==i.a&&(r=[r]),v=r.length,s=0;s1){var C=0;for(u=0;u1)break}1===C&&(g=!0)}else g=!0;b===n&&(m=!0)}if(x&&!1===p&&m&&(x=!1),!x){a=y,h=c.type(a);var O=function(e){var t=c.type(e);return t===h&&(t!==i.s||(!!g||a===e))&&(d.s=!0,d.v=a,d.p=a,!0)};for(s=0;s-1&&i.splice(f,1);for(var u=0;u0&&Ct&&i-j0?K.addClass(ce):K.addClass(ir)),it&&(!0===ot?(Hr(),d.add(bt)):null===ot&&y?(Hr(),d.add(bt)):(d.remove(bt),zr())),_e)if(je)if(Z===n&&(Z=c(Gt+Pn+Zt),$.before(Z)),Ht)Q.show();else{Q=c(Gt+Nn+Zt),Z.before(Q);var Mt={w:-1,h:-1};xr(Q,function(){var e={w:Q[0][a.oW],h:Q[0][a.oH]};br(e,Mt)&&(Ct&&me&&e.h>0||ye&&e.w>0?po():(Ct&&!me&&0===e.h||!ye&&0===e.w)&&po()),Mt=e}),Ht=!0,null!==w&&Q.css(_t,w+"(100% + 1px)")}else Ht&&Q.hide();o&&(G.find("*").trigger(Yt),Ht&&Q.find("*").trigger(Yt));var At,Et=K.css("direction"),$t=gr(Et,Se,o),en=K.css("box-sizing"),tn=gr(en,we,o),nn={c:o,t:uo(K.css(Ft+It)),r:uo(K.css(Ft+Rt)),b:uo(K.css(Ft+Pt)),l:uo(K.css(Ft+Nt))};try{At=Ht?Q[0].getBoundingClientRect():null}catch(No){return}M="border-box"===en;var rn=(I="rtl"===Et)?Nt:Rt,ln=I?Rt:Nt,vn=K[0],dn=$[0],hn=!1,pn=!(!Ht||"none"===K.css(Vt))&&(0===Math.round(At.right-At.left)&&(!!Pe||vn[a.cW]-T>0));if(je&&!pn){var yn=vn[a.oW],mn=Z.css(jt);Z.css(jt,Xt);var xn=vn[a.oW];Z.css(jt,mn),(hn=yn!==xn)||(Z.css(jt,yn+1),xn=vn[a.oW],Z.css(jt,mn),hn=yn!==xn)}var wn=(pn||hn)&&je,gn=gr(wn,ye,o),bn=!wn&&ye,Cn=!!Ht&&0===Math.round(At.bottom-At.top),Sn=gr(C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Xt,Bn[Bt+jt]=Jt):(gn||Ne)&&(Un[Bt+jt]=qt,Un[jt]=Jt,Un[Vt]=qt,Bn[Bt+jt]=qt),wn&&(In.cw||(Un[Bt+jt]=qt),Bn[jt]=Ot&&pt?Vn.dw:Xt,Un[jt]=Xt,Un[Vt]=ln),Cn&&(In.ch||(Un[Bt+_t]=qt),Bn[_t]=Ot?St?Vn.dh:Xt:ne[0][a.cH]),je&&Z.css(Bn),ne.css(Un),Un={},Bn={},he=he||{x:!1,y:!1},e||t||$t||tn||Ne||gn||wn||Sn||Cn||In.c||nt||lt||Be||De||q||yt||kt||Re||Ne||yt||kt||o){var qn="overflow",Xn=qn+"-x",Yn=qn+"-y",Jn="hidden",Kn="visible",Qn=k&&(C.x||C.y||Tt.w0&&(Bn[jt]=Math.max(1,Bn[jt]),Bn[_t]=Math.max(1,Bn[_t])),Ot&&re.css(Mr),Z.css(Bn)}wn&&(Un[jt]=Jt),!wn||M||rt||(Un[Vt]="none"),ne.css(Un),Un={};var Er=or.getBoundingClientRect(),Lr={w:Math.max(or[a.sW],lr[a.sW]),h:Math.max(or[a.sH],lr[a.sH])};if(Qn&&ne.css(qn,qt),Er.width!==n){var Fr=Er.width,Dr=Er.height,Ir=.001;Lr.w+=uo(Fr+Ir)-Fr,Lr.h+=uo(Dr+Ir)-Dr}Lr.c=t=br(Lr,ve,o),ve=Lr,e=br(vr={w:vn[a.cW],h:vn[a.cH]},ue),ue=vr,Tt={w:dn[a.oW],h:dn[a.oH]};var Rr={x:"v-s"===st.x,y:"v-s"===st.y},Pr={x:"v-h"===st.x,y:"v-h"===st.y},Nr={x:"s"===st.x,y:"s"===st.y},Ur={x:Math.max(0,Lr.w-vr.w+(Pe?T:0)),y:Math.max(0,Lr.h-vr.h+(Pe?A:0))},Br=Ot&&(0===Tt.w||0===Tt.h);Br&&(Ur.x=0,Ur.y=0);var Yr={x:Ur.x>0,y:Ur.y>0},Jr={x:Yr.x,y:Yr.y};(Rr.x||Pr.x)&&(Jr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t?so():(io[rn]=-(C.y?S.y:g.y),Wt.w=C.y?S.x:0)):(io[Yn]=qt,so()),(Tt.h-1,Po=Io.y>-1;(Ro||Po)&&(Po&&ee[an](Io.y),Ro&&(I&&Ke&&p.i?ee[on](0):ee[on](Io.x)))}Fe=Wo}else Ot||(I&&p.i&&C.y&&Yr.x&&Ke&&(f.l+=Wt.w),ee[on](f.l),ee[an](f.t));$t&&c.isFunction(P)&&Sr(P,{isRTL:I,dir:Et}),e&&c.isFunction(U)&&Sr(U,{width:ue.w,height:ue.h}),t&&c.isFunction(N)&&Sr(N,{width:ve.w,height:ve.h}),(Yr.c||Jr.c)&&c.isFunction(z)&&Sr(z,{x:Yr.x,y:Yr.y,xScrollable:Jr.xs,yScrollable:Jr.ys,clipped:Jr.x||Jr.y}),Ur.c&&c.isFunction(W)&&Sr(W,{x:Ur.x,y:Ur.y})}zt&&(Yr.c||et.c)&&(et.f||ro(),C.y&&Yr.x&&ne.css(Ut+jt,et.w+S.y),C.x&&Yr.y&&ne.css(Ut+_t,et.h+S.x),et.c=!1),mr(G),mr(Q),c.isFunction(O)&&Sr(O,{forced:o})}}function yo(e,t){N=v.defaultOptions,x=v.nativeScrollbarStyling,g=c.extend(!0,{},v.nativeScrollbarSize),C=c.extend(!0,{},v.nativeScrollbarIsOverlaid),S=c.extend(!0,{},v.overlayScrollbarDummySize),p=c.extend(!0,{},v.rtlScrollBehavior),lo(c.extend(!0,{},N,t));var n,o=B.callbacks;if(C.x&&C.x&&!B.nativeScrollbarsOverlaid.initialize){var i=o.onInitializationWithdrawn;return c.isFunction(i)&&Sr(i),!1}if(w=v.cssCalc,m=v.msie,y=v.autoUpdateRecommended,O=v.supportTransition,z=v.supportTransform,H=v.supportPassiveEvents,W=v.supportResizeObserver,ot=v.supportMutationObserver,k=v.restrictedMeasuring,q=c(e.ownerDocument),V=c(q[0].defaultView||q[0].parentWindow),X=q.find("html").first(),Y=X.find("body").first(),J=c(e),Ot=J.is("textarea"),(zt=J.is("body"))&&((n={}).l=Math.max(J[on](),X[on](),V[on]()),n.t=Math.max(J[an](),X[an](),V[an]())),Ot){J.wrap(Gt+gn+Zt),J.addClass(Tn).addClass(_n),K=J.parent();var s={};B.sizeAutoCapable||(s[jt]=J.css(jt),s[_t]=J.css(_t)),K.css(s),K.wrapInner(Gt+In+en+_n+Zt).wrapInner(Gt+Ln+en+_n+Zt).wrapInner(Gt+En+en+_n+Zt),ne=K.find($t+In).first(),ee=K.find($t+Ln).first(),$=K.find($t+En).first(),re=c(Gt+An+Zt),ne.prepend(re),J.on(Yt,Nr),J.on("drop",Ir),J.on("focus",Rr),J.on("focusout",Pr),m>9||!y?J.on("input",Lr):(J.on(vn,Fr),J.on(dn,Dr))}else J.addClass(wn),(K=J).wrapInner(Gt+In+Zt).wrapInner(Gt+Ln+Zt).wrapInner(Gt+En+Zt),ne=K.find($t+In).first(),ee=K.find($t+Ln).first(),$=K.find($t+En).first(),ne.on(pn,function(e){!0!==Ae&&vo((e=e.originalEvent||e).propertyName)&&po(Xt)});if(Yr(),H?hr(ee,Yt,$r):ee.on(Yt,$r),x&&(C.x&&C.y?ee.addClass(Dn):ee.addClass(Fn)),ot){var l,f=r.mO(),u=r.now();tt=new f(function(e){if(Ct&&!R){var t=!1;c.each(e,function(){var e=this,n=this.target,r=e.attributeName;if(t=r===a.c?ao(e.oldValue,n.className):r!==a.s||e.oldValue!==n.style.cssText)return!1}),t&&bt.update(Xt)}}),nt=new f(function(e){if(Ct&&!R){for(var t=!1,n=0;nlr||!i?a():l=setTimeout(a,lr)}}})}zt&&(X.addClass(xn),ee[on](n.l),ee[an](n.t)),G=c(Gt+"os-resize-observer-host"+Zt),K.prepend(G),xr(G,dr),dr(),bt.update(Xt),setTimeout(function(){O&&!St&&K.addClass(Sn)},333),Ct=!0;var d=o.onInitialized;return c.isFunction(d)&&Sr(d),Ct}}e[o]=function(e,t){if(0===arguments.length)return this;h();var r,o=[];return c.isPlainObject(t)?e&&e.length?e.length>1?(c.each(e,function(){(r=this)!==n&&o.push(m(r,t,u,v))}),o):m(e[0],t,u,v):m(e,t,u,v):e?e.length&&e.length>0?e.length>1?(c.each(e,function(){r=l.get(this),"!"===t?r!==n&&o.push(r):o.push(r)}),o):l.get(e[0]):l.get(e):void 0},e[o].globals=function(){h();var e=c.extend(!0,{},u);return delete e.msie,e},e[o].defaultOptions=function(e){h();var t=u.defaultOptions;if(e===n)return c.extend(!0,{},t);u.defaultOptions=c.extend(!0,{},t,e)}}(s,c,l,f);return e[o]}); \ No newline at end of file diff --git a/package.json b/package.json index 1c974a6..533326e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "overlayscrollbars", - "version": "1.3.0", + "version": "1.4.0", "description": "A javascript scrollbar plugin which hides the native scrollbars and provides custom styleable overlay scrollbars, but keeps the native functionality and feeling.", "keywords" : [ "overlayscrollbars",