diff --git a/css/OverlayScrollbars.css b/css/OverlayScrollbars.css index a7ac663..f92af3c 100644 --- a/css/OverlayScrollbars.css +++ b/css/OverlayScrollbars.css @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.5.0 + * Version: 1.5.1 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 21.06.2018 + * Date: 13.07.2018 */ /* diff --git a/css/OverlayScrollbars.min.css b/css/OverlayScrollbars.min.css index 6b60a61..710ab1f 100644 --- a/css/OverlayScrollbars.min.css +++ b/css/OverlayScrollbars.min.css @@ -2,12 +2,12 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.5.0 + * Version: 1.5.1 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 21.06.2018 + * Date: 13.07.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}.os-padding,.os-viewport{top:0;left:0;right:0;margin:0;padding:0;bottom:0}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;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.os-host-flexbox{overflow:hidden!important;display:flex}.os-host-flexbox>.os-padding>.os-viewport>.os-content{display:flex}#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#hs-dummy-scrollbar-size::-webkit-scrollbar-corner,.os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar,.os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner{display:none!important;width:0!important;height:0!important;visibility:hidden!important;background:0 0!important}.os-content-glue{max-height:100%;max-width:100%;width:100%;pointer-events:none}.os-padding{direction:inherit;position:absolute;overflow:visible;width:auto!important;height:auto!important;z-index:1}.os-host-overflow>.os-padding,.os-viewport{overflow:hidden}.os-viewport{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;-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%;visibility:visible}.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:0 0!important;outline:transparent 0!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:solid inherit;box-sizing:border-box}.os-resize-observer-host:after{content:''}.os-resize-observer-host:after,.os-resize-observer-host>.os-resize-observer{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;flex-grow:inherit;flex-shrink:0;flex-basis:0}.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:1ms;animation-duration:1ms;-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 .3s,visibility .3s,top .3s,right .3s,bottom .3s,left .3s;transition:opacity .3s,visibility .3s,top .3s,right .3s,bottom .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-handle,.os-scrollbar-track{pointer-events:auto;width:100%;height:100%}.os-scrollbar-track{position:relative;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.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-corner,.os-host-rtl>.os-scrollbar-vertical{right:auto;left:0}.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-corner,.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-corner,.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal,.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical,.os-padding+.os-scrollbar-corner,.os-scrollbar-auto-hidden,.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-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,.os-host-rtl.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal{right:0;left:0}.os-scrollbar-corner.os-scrollbar-corner-resize,.os-scrollbar:hover{opacity:1!important;visibility:visible!important}.os-scrollbar-corner.os-scrollbar-corner-resize{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4L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jksLTAuMjE4MzU5NCAwLjIzOTQxMDQsMC4zMTMwODU5IDAuNjEyNjM2MywwLjUxODYwMzUgMS4wMzcyMDcxLDAuNTE4NjAzNSAwLjcyMzU3OTMsMCAxLjMxMDE1NjIsLTAuNTg2NTc3IDEuMzEwMTU2MiwtMS4zMTAxNTYzIDAsLTAuNDI0NTcwOCAtMC4yMDU1MTc1LC0wLjc5Nzc5NjYgLTAuNTE4NjAzNSwtMS4wMzcyMDcgeiBtIDMuMDg0MzI2MiwwIGMgMC4xNDEyNjY3LDAuMjA5MTAyNCAwLjIxODM1OTQsMC40NjU2MjA2IDAuMjE4MzU5NCwwLjczNjk2MjkgMCwwLjcyMzU3OTMgLTAuNTg2NTc3LDEuMzEwMTU2MyAtMS4zMTAxNTYzLDEuMzEwMTU2MyAtMC4yNzEzNDIzLDAgLTAuNTI3ODYwNSwtMC4wNzcwOTMgLTAuNzM2OTYyOSwtMC4yMTgzNTk0IDAuMjM5NDEwNCwwLjMxMzA4NTkgMC42MTI2MzYyLDAuNTE4NjAzNSAxLjAzNzIwNywwLjUxODYwMzUgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjU3NyAxLjMxMDE1NjMsLTEuMzEwMTU2MyAwLC0wLjQyNDU3MDggLTAuMjA1NTE3NiwtMC43OTc3OTY2IC0wLjUxODYwMzUsLTEuMDM3MjA3IHoiIC8+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-corner,.os-theme-none>.os-scrollbar-horizontal,.os-theme-none>.os-scrollbar-vertical{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:0 0}.os-theme-dark>.os-scrollbar.os-scrollbar-unusable,.os-theme-dark>.os-scrollbar>.os-scrollbar-track,.os-theme-light>.os-scrollbar.os-scrollbar-unusable,.os-theme-light>.os-scrollbar>.os-scrollbar-track{background:0 0}.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-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:background-color .3s;transition:background-color .3s}.os-theme-dark>.os-scrollbar>.os-scrollbar-track,.os-theme-dark>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle,.os-theme-light>.os-scrollbar>.os-scrollbar-track,.os-theme-light>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle{border-radius:10px}.os-theme-dark>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle{background:rgba(0,0,0,.4)}.os-theme-light>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle{background:rgba(255,255,255,.4)}.os-theme-dark>.os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle{background:rgba(0,0,0,.55)}.os-theme-light>.os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle{background:rgba(255,255,255,.55)}.os-theme-dark>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle.active{background:rgba(0,0,0,.7)}.os-theme-light>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle.active{background:rgba(255,255,255,.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 d39efa7..e374f73 100644 --- a/js/OverlayScrollbars.js +++ b/js/OverlayScrollbars.js @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.5.0 + * Version: 1.5.1 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 21.06.2018 + * Date: 13.07.2018 */ (function (global, factory) { @@ -1228,15 +1228,13 @@ is : function(selector) { var el; - var elVisible; var i; for(i = 0; i < this[LEXICON.l]; i++) { el = this[i]; - elVisible = !!(el[LEXICON.oW] || el[LEXICON.oH] || el.getClientRects()[LEXICON.l]); if(selector === ":visible") - return elVisible; + return !!(el[LEXICON.oW] || el[LEXICON.oH] || el.getClientRects()[LEXICON.l]); if(selector === ":hidden") - return !elVisible; + return !!!(el[LEXICON.oW] || el[LEXICON.oH] || el.getClientRects()[LEXICON.l]); if((el.matches && el.matches(selector)) || matches(el, selector)) return true; } @@ -2024,7 +2022,7 @@ var _lastUpdateTime; var _swallowedUpdateParams = { }; var _swallowedUpdateTimeout; - var _swallowUpdateLag = 33; + var _swallowUpdateLag = 42; var _imgs = [ ]; //DOM elements: @@ -2826,9 +2824,9 @@ return false; var float; - var viewportScrollSize; var textareaValueLength = _isTextarea && _widthAutoCache && !_textareaAutoWrappingCache ? _targetElement.val().length : 0; var setCSS = !_mutationObserverConnected && _widthAutoCache && !_isTextarea; + var viewportScrollSize = { }; var css = { }; //fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1439305, it only works with "clipAlways : true" @@ -3539,11 +3537,16 @@ h: _isTextarea && textareaSize && !textareaDynHeight ? textareaSize.oh : heightAuto ? clientSize.h : scrollSize.h }; - //apply the correct viewport style + //apply the correct viewport style and measure viewport size viewportElementResetCSS[_strBottom] = wasHeightAuto ? _strEmpty : resetBottomTmp; viewportElementResetCSS[isRTLLeft] = wasWidthAuto ? _strEmpty : resetXTmp; _viewportElement.css(viewportElementResetCSS); - + //viewport size is padding container because it never has padding, margin and a border. + _viewportSize = { + w: paddingElement[LEXICON.oW], + h: paddingElement[LEXICON.oH] + }; + //measure and correct several sizes //has to be clientSize because offsetSize respect borders. var hostSize = { @@ -3639,12 +3642,6 @@ hostSizeChanged = checkCacheDouble(hostSize, _hostSizeCache); _hostSizeCache = hostSize; - //viewport size is padding container because it never has padding, margin and a border. - _viewportSize = { - w: paddingElement[LEXICON.oW], - h: paddingElement[LEXICON.oH] - }; - var overflowBehaviorIsVS = { x: overflowBehavior.x === 'v-s', y: overflowBehavior.y === 'v-s' @@ -3701,56 +3698,45 @@ //if native scrollbar is overlay at x OR y axis, prepare DOM if (_nativeScrollbarIsOverlaid.x || _nativeScrollbarIsOverlaid.y) { + var borderDesign = 'px solid transparent'; + var contentArrangeElementCSS = { }; + var arrangeContent = { }; var arrangeChanged = force; - var arrangeContent = {}; if (hasOverflow.x || hasOverflow.y) { arrangeContent.w = _nativeScrollbarIsOverlaid.y && hasOverflow.y ? contentScrollSize.w + _overlayScrollbarDummySize.y : _strEmpty; arrangeContent.h = _nativeScrollbarIsOverlaid.x && hasOverflow.x ? contentScrollSize.h + _overlayScrollbarDummySize.x : _strEmpty; - arrangeChanged = checkCacheSingle(arrangeContent, _arrangeContentSizeCache, force); _arrangeContentSizeCache = arrangeContent; } if (hasOverflow.c || hideOverflow.c || contentScrollSize.c || cssDirectionChanged || widthAutoChanged || heightAutoChanged || widthAuto || heightAuto || ignoreOverlayScrollbarHidingChanged) { - var borderDesign = 'px solid transparent'; - contentElementCSS[_strBorderMinus + isRTLRight] = _strEmpty; - contentElementCSS[_strMarginMinus + isRTLRight] = _strEmpty; + contentElementCSS[_strMarginMinus + isRTLRight] = contentElementCSS[_strBorderMinus + isRTLRight] = _strEmpty; if (_nativeScrollbarIsOverlaid.x && hasOverflow.x && hideOverflow.xs) { - if (heightAuto) - contentElementCSS[_strMarginMinus + _strBottom] = ignoreOverlayScrollbarHiding ? _strEmpty : _overlayScrollbarDummySize.x; - if (!heightAuto && !ignoreOverlayScrollbarHiding) - contentElementCSS[_strBorderMinus + _strBottom] = _overlayScrollbarDummySize.x + borderDesign; - else - contentElementCSS[_strBorderMinus + _strBottom] = _strEmpty; + contentElementCSS[_strMarginMinus + _strBottom] = heightAuto ? (ignoreOverlayScrollbarHiding ? _strEmpty : _overlayScrollbarDummySize.x) : _strEmpty; + contentElementCSS[_strBorderMinus + _strBottom] = (!heightAuto && !ignoreOverlayScrollbarHiding) ? (_overlayScrollbarDummySize.x + borderDesign) : _strEmpty; } else { - arrangeContent.h = _strEmpty; - arrangeChanged = true; + arrangeContent.h = + contentElementCSS[_strMarginMinus + _strBottom] = contentElementCSS[_strBorderMinus + _strBottom] = _strEmpty; - contentElementCSS[_strMarginMinus + _strBottom] = _strEmpty; + arrangeChanged = true; } if (_nativeScrollbarIsOverlaid.y && hasOverflow.y && hideOverflow.ys) { - if (widthAuto) - contentElementCSS[_strMarginMinus + isRTLLeft] = ignoreOverlayScrollbarHiding ? _strEmpty : _overlayScrollbarDummySize.y; - if (/* !widthAuto && */ !ignoreOverlayScrollbarHiding) - contentElementCSS[_strBorderMinus + isRTLLeft] = _overlayScrollbarDummySize.y + borderDesign; - else - contentElementCSS[_strBorderMinus + isRTLLeft] = _strEmpty; + contentElementCSS[_strMarginMinus + isRTLLeft] = widthAuto ? (ignoreOverlayScrollbarHiding ? _strEmpty : _overlayScrollbarDummySize.y) : _strEmpty; + contentElementCSS[_strBorderMinus + isRTLLeft] = (/* !widthAuto && */ !ignoreOverlayScrollbarHiding) ? (_overlayScrollbarDummySize.y + borderDesign) : _strEmpty; } else { - arrangeContent.w = _strEmpty; - arrangeChanged = true; + arrangeContent.w = + contentElementCSS[_strMarginMinus + isRTLLeft] = contentElementCSS[_strBorderMinus + isRTLLeft] = _strEmpty; - contentElementCSS[_strMarginMinus + isRTLLeft] = _strEmpty; + arrangeChanged = true; } } if (ignoreOverlayScrollbarHiding) { - arrangeContent.w = _strEmpty; - arrangeContent.h = _strEmpty; + arrangeContent.w = arrangeContent.h = _strEmpty; arrangeChanged = true; } if (arrangeChanged) { - var contentArrangeElementCSS = { }; contentArrangeElementCSS[_strWidth] = hideOverflow.y ? arrangeContent.w : _strEmpty; contentArrangeElementCSS[_strHeight] = hideOverflow.x ? arrangeContent.h : _strEmpty; @@ -3814,20 +3800,19 @@ viewportElementCSS[_strMarginMinus + isRTLRight] = -_nativeScrollbarMinSize.y; } else { - viewportElementCSS[_strPaddingMinus + _strTop] = _strEmpty; - viewportElementCSS[_strMarginMinus + _strTop] = _strEmpty; - - viewportElementCSS[_strPaddingMinus + isRTLRight] = _strEmpty; + viewportElementCSS[_strPaddingMinus + _strTop] = + viewportElementCSS[_strMarginMinus + _strTop] = + viewportElementCSS[_strPaddingMinus + isRTLRight] = viewportElementCSS[_strMarginMinus + isRTLRight] = _strEmpty; } - viewportElementCSS[_strPaddingMinus + isRTLLeft] = _strEmpty; + viewportElementCSS[_strPaddingMinus + isRTLLeft] = viewportElementCSS[_strMarginMinus + isRTLLeft] = _strEmpty; //if there is any overflow (x OR y axis) and this overflow shall be hidden, make overflow hidden, else overflow visible if ((hasOverflow.x && hideOverflow.x) || (hasOverflow.y && hideOverflow.y) || hideOverflowForceTextarea) { //only hide if is Textarea if (_isTextarea && hideOverflowForceTextarea) { - paddingElementCSS[strOverflowX] = strHidden; + paddingElementCSS[strOverflowX] = paddingElementCSS[strOverflowY] = strHidden; } } @@ -3835,10 +3820,10 @@ if (!clipAlways || (overflowBehaviorIsVH.x || overflowBehaviorIsVS.x || overflowBehaviorIsVH.y || overflowBehaviorIsVS.y)) { //only un-hide if Textarea if (_isTextarea) { - paddingElementCSS[strOverflowX] = _strEmpty; + paddingElementCSS[strOverflowX] = paddingElementCSS[strOverflowY] = _strEmpty; } - viewportElementCSS[strOverflowX] = strVisible; + viewportElementCSS[strOverflowX] = viewportElementCSS[strOverflowY] = strVisible; } } @@ -5403,6 +5388,7 @@ else margin = marginDefault; + //block = type(block) === TYPES.b ? block ? [ strNearest, strBegin ] : [ strNearest, strEnd ] : block; settingsAxis = checkSettingsStringValue(axis, elementObjSettingsAxisValues) ? axis : 'xy'; settingsScroll = getPerAxisValue(scroll, TYPES.s, strAlways, elementObjSettingsScrollValues); settingsBlock = getPerAxisValue(block, TYPES.s, strBegin, elementObjSettingsBlockValues); @@ -5435,7 +5421,7 @@ } //measuring is required - if (settingsBlock.x != strBegin || settingsBlock.y != strBegin || settingsScroll.x == strIfNeeded || settingsScroll.y == strIfNeeded) { + if (settingsBlock.x != strBegin || settingsBlock.y != strBegin || settingsScroll.x == strIfNeeded || settingsScroll.y == strIfNeeded || _isRTL) { var measuringElm = finalElement[0]; var rawElementSize = {}; var rect; @@ -5822,6 +5808,7 @@ return; var doUpdate = false; + //var doUpdateScrollbars = false; var mutation; framework.each(mutations, function () { mutation = this; @@ -5841,6 +5828,14 @@ if (doUpdate) _base.update(_strAuto); + /* + if(doUpdateScrollbars) { + refreshScrollbarHandleLength(true); + refreshScrollbarHandleOffset(true, _scrollHorizontalInfo.cs); + refreshScrollbarHandleLength(false); + refreshScrollbarHandleOffset(false, _scrollVerticalInfo.cs); + } + */ }); _mutationObserverContent = new mutationObserver(function (mutations) { if (!_initialized || _isSleeping) diff --git a/js/OverlayScrollbars.min.js b/js/OverlayScrollbars.min.js index c54d14b..2ef8af9 100644 --- a/js/OverlayScrollbars.min.js +++ b/js/OverlayScrollbars.min.js @@ -2,12 +2,12 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.5.0 + * Version: 1.5.1 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 21.06.2018 + * Date: 13.07.2018 */ -!function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t,t.document,undefined)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(t,t.document,undefined):e(t,t.document,undefined)}("undefined"!=typeof window?window:this,function(t,e,n){"use strict";var r,i,o,a="OverlayScrollbars",s={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},c={c:"class",s:"style",i:"id",l:"length",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth"},u={wW:function(){return t.innerWidth||e.documentElement[c.cW]||e.body[c.cW]},wH:function(){return t.innerHeight||e.documentElement[c.cH]||e.body[c.cH]},mO:function(){return t.MutationObserver||t.WebKitMutationObserver||t.WebkitMutationObserver||t.MozMutationObserver||n},rO:function(){return t.ResizeObserver||t.WebKitResizeObserver||t.WebkitResizeObserver||t.MozResizeObserver||n},rAF:function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}},cAF:function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||t.msCancelAnimationFrame||function(e){return t.clearTimeout(e)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},prvD:function(t){t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1},page:function(t){var r="page",i="client",o="X",a="Y",s=((t=t.originalEvent||t).target||t.srcElement||e).ownerDocument||e,c=s.documentElement,u=s.body;if(t.touches!==n){var l=t.touches[0];return{x:l[r+o],y:l[r+a]}}return!t[r+o]&&t[i+o]&&null!=t[i+o]?{x:t[i+o]+(c&&c.scrollLeft||u&&u.scrollLeft||0)-(c&&c.clientLeft||u&&u.clientLeft||0),y:t[i+a]+(c&&c.scrollTop||u&&u.scrollTop||0)-(c&&c.clientTop||u&&u.clientTop||0)}:{x:t[r+o],y:t[r+a]}},mBtn:function(t){return t.which||t.button===n?t.which:1&t.button?1:2&t.button?3:4&t.button?2:0},inA:function(t,e){for(var n=0;n0?"\r\nValid strings are: [ "+W.join(", ").split(p).join(", ")+" ].":"")),delete t[c]}}};return u(c,e,a),o?r.extend(!0,a,c):!r.isEmptyObject(c)&&n&&console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(c,null,2)),a}});function C(){u||(u=new A(S.d)),f||(f=new z(u))}function A(a){var s=this,u="overflow",l="hidden",f="scroll",h=r("body"),d=r('
'),p=d[0],v=r(d.children("div").eq(0)),y=p[c.oH];h.append(d),0===y&&d.hide().show();var m,w,x,b,g,O,M,S,C,A=H(p),z={x:0===A.x,y:0===A.y};function E(t){var r=!1,i="Webkit Moz ms O".split(" "),o=e.createElement("div"),a=null,s=0;if(t=t.toLowerCase(),o[c.s][t]!==n&&(r=!0),!r)for(a=t.charAt(0).toUpperCase()+t.substr(1);s0?m=C(w[b](g+5,w[x](".",g)),10):O>0?m=C(w[b](S+3,w[x](".",S)),10):M>0&&(m=C(w[b](M+5,w[x](".",M)),10)),m),cssCalc:function(){var t,n,r=e.createElement("div"),i=["calc","-webkit-calc","-moz-calc","-o-calc"];for(t=0;t0){var t=i.wW(),c=i.wH(),f=t-e,p=c-n;if(0===f&&0===p)return;var v,y=Math.round(t/(e/100)),m=Math.round(c/(n/100)),w=Math.abs(f),x=Math.abs(p),b=Math.abs(y),g=Math.abs(m),O=l(),M=w>2&&x>2,S=!u(b,g),C=M&&S&&(O!==a&&a>0),A=s.nativeScrollbarSize;C&&(h.append(d),v=s.nativeScrollbarSize=H(d[0]),d.remove(),A.x===v.x&&A.y===v.y||r.each(o(),function(){o(this)&&o(this).update("zoom")})),e=t,n=c,a=O}};r(t).on("resize",c)}function u(t,e){var n=Math.abs(t),r=Math.abs(e);return!(n===r||n+1===r||n-1===r)}function l(){var e=t.screen.deviceXDPI||0,n=t.screen.logicalXDPI||1;return t.devicePixelRatio||e/n}}()}function z(t){var e,o=this,a="autoUpdate",s=a+"Interval",c=[],u=[],l=!1,f=33,h=f,d=i.now(),p=function(){if(c.length>0&&l){e=i.rAF()(function(){p()});var t=i.now(),r=t-d;if(r>h){d=t-r%h;for(var o=f,v=0;vx&&(y.update("auto"),u[v]=new Date(b+=x)),o=Math.max(1,Math.min(o,x))}}h=o}}else h=f};o.add=function(e){-1===r.inArray(e,c)&&(c.push(e),u.push(i.now()),c.length>0&&!l&&(l=!0,t.autoUpdateLoop=l,p()))},o.remove=function(o){var a=r.inArray(o,c);a>-1&&(u.splice(a,1),c.splice(a,1),0===c.length&&l&&(l=!1,t.autoUpdateLoop=l,e!==n&&(i.cAF()(e),e=-1)))}}function E(u,f,h,d,p){if(li(u)){if(o(u)){var v=o(u);return v.options(f),v}var y,m,w,x,b,g,O,M,C,A,z,E,H,W,T,I,k,L,P,N,q,D,R,j,F,B,U,_,Q,V,X,Y,K,$,G,J,Z,tt,et,nt,rt,it,ot,at,st,ct,ut,lt,ft,ht,dt,pt,vt,yt,mt,wt,xt,bt,gt,Ot,Mt,St,Ct,At,zt,Et,Ht,Wt,Tt,It,kt,Lt,Pt,Nt,qt,Dt,Rt,jt,Ft,Bt,Ut,_t,Qt,Vt,Xt,Yt,Kt,$t,Gt,Jt,Zt,te,ee,ne,re,ie,oe,ae,se,ce,ue,le,fe,he,de,pe,ve,ye,me,we,xe,be,ge,Oe,Me,Se,Ce,Ae,ze,Ee,He,We=new t[a],Te={},Ie={},ke={},Le={},Pe={},Ne=175,qe="-hidden",De="margin-",Re="padding-",je="border-",Fe="top",Be="right",Ue="bottom",_e="left",Qe="min-",Ve="max-",Xe="width",Ye="height",Ke="float",$e="",Ge="auto",Je="scroll",Ze="100%",tn="x",en="y",nn=".",rn=" ",on="scrollbar",an="-horizontal",sn="-vertical",cn=Je+"Left",un=Je+"Top",ln="mousedown touchstart",fn="mouseup touchend touchcancel",hn="mousemove touchmove",dn="mouseenter",pn="mouseleave",vn="keydown",yn="keyup",mn="selectstart",wn="transitionend webkitTransitionEnd oTransitionEnd",xn="__overlayScrollbarsRO__",bn="os-",gn=bn+"html",On=bn+"host",Mn=On+"-textarea",Sn=On+"-"+on+an+qe,Cn=On+"-"+on+sn+qe,An=On+"-transition",zn=On+"-rtl",En=On+"-resize-disabled",Hn=On+"-scrolling",Wn=On+"-overflow",Tn=Wn+"-x",In=Wn+"-y",kn=bn+"textarea",Ln=kn+"-cover",Pn=bn+"padding",Nn=bn+"viewport",qn=Nn+"-native-scrollbars-invisible",Dn=Nn+"-native-scrollbars-overlaid",Rn=bn+"content",jn=bn+"content-arrange",Fn=bn+"content-glue",Bn=bn+"size-auto-observer",Un=bn+"resize-observer",_n=bn+"resize-observer-item",Qn=_n+"-final",Vn=bn+"text-inherit",Xn=bn+on,Yn=Xn+"-track",Kn=Yn+"-off",$n=Xn+"-handle",Gn=$n+"-off",Jn=Xn+"-unusable",Zn=Xn+"-"+Ge+qe,tr=Xn+"-corner",er=tr+"-resize",nr=er+"-both",rr=er+an,ir=er+sn,or=Xn+an,ar=Xn+sn,sr=bn+"dragging",cr=bn+"theme-none",ur={},lr="added removed on contract",fr={},hr=33,dr=[],pr=11,vr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],yr=[],mr={},wr={};if(We.sleep=function(){_=!0},We.update=function(t){var e,n,o="zoom"===t,a="img",s="load";t===Ge?(e=Kr(),n=Yr(),(e||n)&&Jr(!1,n)):o?Jr(!0,!0):(t=_||t,_=!1,Jr(!1,!1,t)),I||o||ut.find(a).each(function(t,e){-1===i.inA(e,dr)&&(e=r(e)).off(s,_r).on(s,_r)})},We.options=function(t,e){if(r.isEmptyObject(t)||!r.isPlainObject(t)){if(Mi(t)==s.s){if(arguments.length>=2){var n={};return xi(n,t,e),Zr(n),void Jr()}return wi(X,t)}return X}Zr(t);var i=_||!1;_=!1,Jr(),_=i},We.destroy=function(){for(var t in T=!0,p.remove(We),Ar(),Or(it),N&&Or(rt),ur)We.removeExt(t);zi(it),ot!==n&&zi(ot),ct!==n&&zi(ct),N&&zi(rt),z?(br(nt,hn,Wr),br(nt,dn,Er),br(nt,pn,Hr)):nt.off(hn,Wr).off(dn,Er).off(pn,Hr),zi(ht),zi(vt),ft&&zi(ft),Ae||Br(),ut.contents().unwrap().unwrap().unwrap(),k&&Ai(Z,gn),I?(et.off(Je,Rr).off("drop",Nr).off("focus",qr).off("focusout",Dr),b>9||!x?et.off("input",kr):et.off(vn,Lr).off(yn,Pr),zi(lt),Ai(et,kn+rn+Vn).unwrap().removeAttr(c.s),zi(nt)):(Ai(et,On),Ai(nt,[On,En,zn,Sn,Cn,An,Hn,Wn,Tn,In,cr,re].join(rn)));for(var e=0;e0)e.x=t[0],e.y=t[1];else if(Mi(t)==s.s||Mi(t)==s.n)e.x=t,e.y=t;else if(Mi(t)==s.o){for(var n in E=Mi(t.n)==s.b?t.n:E,t=Si({},t),m=0,t)t.hasOwnProperty(n)&&(m>2&&delete t[n],m++);var r=function(e){var n=e?H:W;for(m=0;m2){var v=r.substr(0,2);for(m=0;m/g,(d?"-":$e)+Ze))[p](/px/g,$e))[p](/%/g,f+l*(h&&w.n?-1:1)/100))[p](/vw/g,f+Le.w))[p](/vh/g,f+Le.h),o=hi(t.parseFloat(t.eval(r)).toFixed())}else Mi(r)==s.n&&(o=r);if(!isNaN(o)&&o!==n&&Mi(o)==s.n){var y=E&&h,x=u*(y&&w.n?-1:1),b=y&&w.i,g=y&&w.n;switch(x=b?l-x:x,i){case"+=":a=x+o;break;case"-=":a=x-o;break;case"*=":a=x*o;break;case"/=":a=x/o;break;default:a=o}b&&(a=l-a),g&&(a*=-1),h&&w.n?(a=Math.max(l,a),a=Math.min(0,a)):(a=Math.min(l,a),a=Math.max(0,a)),a===u&&(a=n)}return a},J=function(t,e,n,r){var i,o,a=[n,n],c=Mi(t);if(c==e)t=[t,t];else if(c==s.a){if((i=t.length)>2||i<1)t=a;else for(1===i&&(t[1]=n),m=0;m=4?Z(et):ot:ct==s.o?Z([et[Fe],et[Be],et[Ue],et[_e]]):ot,O=K(nt,F)?nt:"xy",M=J(rt,s.s,D,_),S=J(it,s.s,P,B),C=et;var ut=z.offset();ut[Fe]-=C[0],ut[_e]-=C[3];var lt=at.offset(),ft={l:Ie.cs,t:ke.cs},ht={x:M.x==R||O==en,y:M.y==R||O==tn},dt={x:Math.round(ut[_e]-lt[_e]+ft.l),y:Math.round(ut[Fe]-lt[Fe]+ft.t)};if(U&&(w.n||w.i||(dt.x=Math.round(lt[_e]-ut[_e]+ft.l)),w.n&&E&&(dt.x*=-1),w.i&&E&&(dt.x=Math.round(lt[_e]-ut[_e]+(Ie.ms-ft.l)))),S.x!=P||S.y!=P||M.x==j||M.y==j){var pt,vt=z[0],yt={},mt={w:(yt=A?{w:(pt=vt.getBoundingClientRect())[Xe],h:pt[Ye]}:{w:vt[c.oW],h:vt[c.oH]}).w+C[3]+C[1],h:yt.h+C[0]+C[2]},wt=function(t){var e=si(t),n=e._wh,r=e.lt,i=e.xy,o=S[i]==(t&&U?P:L),a=S[i]==N,s=S[i]==q,c=M[i]==R,u=M[i]==j,l=Le[n],f=lt[r],h=mt[n],d=ut[r],p=a?2:1,v=d+h/2,y=f+l/2,m=h<=l&&d>=f&&d+h<=f+l;c?ht[i]=!0:ht[i]||((s||u)&&(ht[i]=!!u&&m,o=hy:v0||k))if(k)st.animate(I,i);else{if(g={duration:i,complete:a},Mi(o)==s.a){var xt={};xt[cn]=o[0],xt[un]=o[1],g.specialEasing=xt}else g.easing=o;st.animate(I,g)}else x&&st[cn](I[cn]),b&&st[un](I[un])},We.scrollStop=function(t,e,n){return st.stop(t,e,n),We},We.getElements=function(t){var e={target:et[0],host:nt[0],padding:at[0],viewport:st[0],content:ut[0],scrollbarHorizontal:{scrollbar:ht[0],track:dt[0],handle:pt[0]},scrollbarVertical:{scrollbar:vt[0],track:yt[0],handle:mt[0]},scrollbarCorner:ft[0]};return Mi(t)==s.s?wi(e,t):e},We.getState=function(t){var e=function(t){if(!r.isPlainObject(t))return t;var e=Si(!0,{},t),n=function(t,n){e.hasOwnProperty(t)&&(e[n]=e[t],delete e[t])};return n("w",Xe),n("h",Ye),delete e.c,e},n={sleeping:e(_)||!1,autoUpdate:e(!he),widthAuto:e(Mt),heightAuto:e(St),padding:e(zt),overflowAmount:e(Nt),hideOverflow:e(Ot),hasOverflow:e(gt),contentScrollSize:e(xt),viewportSize:e(Le),hostSize:e(wt),documentMixed:e(L)};return Mi(t)==s.s?wi(n,t):n},We.ext=function(t){var e,n=lr.split(" "),r=0;if(Mi(t)==s.s){if(ur.hasOwnProperty(t))for(e=Si(!0,{},ur[t]);r9||!x){t.prepend(mi(Un,mi({className:_n,dir:"ltr"},mi(_n,mi(Qn))+mi(_n,mi({className:Qn,style:"width: 200%; height: 200%"})))));var p,v,y,m,g=t[0][l][0][l][0],O=r(g[l][1]),M=r(g[l][0]),S=r(M[0][l][0]),C=g[c.oW],A=g[c.oH],z=2,H=d.nativeScrollbarSize,W=function(){M[cn](o)[un](o),O[cn](o)[un](o)},T=function(){v=0,p&&(C=y,A=m,f())},I=function(t){return y=g[c.oW],m=g[c.oH],p=y!=C||m!=A,t&&p&&!v?(i.cAF()(v),v=i.rAF()(T)):t||T(),W(),t&&(i.prvD(t),i.stpP(t)),!1},k={},L={};L[Fe]=-(H.y+1)*z,L[Be]=H.x*-z,L[Ue]=H.y*-z,L[_e]=-(H.x+1)*z,r(g).css(L),M.on(Je,I),O.on(Je,I),t.on(u,function(){I(!1)}),k[Xe]=o,k[Ye]=o,S.css(k),W()}else{var P=J[0],N=P.attachEvent,q=b!==n;if(N)t.prepend(mi(Un)),Ei(t,nn+Un)[0].attachEvent("onresize",f);else{var D=P.createElement(s.o);D.setAttribute("tabindex","-1"),D.setAttribute(c.c,Un),D.onload=function(){var t=this.contentDocument.defaultView;t.addEventListener("resize",f),t.document.documentElement.style.display="none"},D.type="text/html",q&&t.prepend(D),D.data="about:blank",q||t.prepend(D),t.on(u,f)}}if(t[0]===it[0]){var R=function(){var e=nt.css("direction"),n={},r=0,i=!1;return e!==Tt&&("ltr"===e?(n[_e]=0,n[Be]=Ge,r=o):(n[_e]=Ge,n[Be]=0,r=w.n?-o:w.i?0:o),it.children().eq(0).css(n),t[cn](r)[un](o),Tt=e,i=!0),i};R(),t.on(Je,function(t){return R()&&Jr(),i.prvD(t),i.stpP(t),!1})}}function Or(t){if(E){var e=t.contents()[0];e[xn].disconnect(),delete e[xn]}else zi(t.children(nn+Un).eq(0))}function Mr(t){}function Sr(t){}function Cr(){de&&!he&&(le.observe(nt[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[c.i,c.c,c.s]}),fe.observe(I?et[0]:ut[0],{attributes:!0,attributeOldValue:!0,subtree:!I,childList:!I,characterData:!I,attributeFilter:I?["wrap","cols","rows"]:[c.i,c.c,c.s]}),he=!0)}function Ar(){de&&he&&(le.disconnect(),fe.disconnect(),he=!1)}function zr(){if(!_){var t=it[0],e={w:t[c.sW],h:t[c.sH]};if(W){var n=gi(e,$t);$t=e,n&&Jr(!0,!1)}else $t=e}}function Er(){Oe&&ri(!0)}function Hr(){Oe&&!tt.hasClass(sr)&&ri(!1)}function Wr(){ge&&(ri(!0),clearTimeout(me),me=setTimeout(function(){ge&&!T&&ri(!1)},100))}function Tr(t){_||(Q!==n?clearTimeout(Q):((be||ge)&&ri(!0),vi()||Ci(nt,Hn),ci("onScrollStart",t)),oi(!0,st[cn]()),oi(!1,st[un]()),ci("onScroll",t),Q=setTimeout(function(){T||(Ir(),ci("onScrollStop",t))},Ne))}function Ir(){clearTimeout(Q),Q=n,(be||ge)&&ri(!1),vi()||Ai(nt,Hn)}function kr(){Gr(),We.update(Ge)}function Lr(t){var e=t.keyCode;if(!pi(e)){if(0===yr.length){var n=function(){Gr(),We.update(Ge)};n(),pe=setInterval(n,1e3/60)}-1===r.inArray(e,yr)&&yr.push(e)}}function Pr(t){var e=t.keyCode;if(!pi(e)){var n=r.inArray(e,yr);n>-1&&yr.splice(n,1),0===yr.length&&(Gr(),We.update(Ge),clearInterval(pe))}}function Nr(){setTimeout(function(){T||(Gr(),We.update(Ge))},50)}function qr(){ve=!0}function Dr(){ve=!1,clearInterval(pe),yr=[],Gr(),We.update(Ge)}function Rr(t){return et[cn](w.i&&ne?9999999:0),et[un](0),i.prvD(t),i.stpP(t),!1}function jr(t){if(!_){var e=(t.originalEvent||t).touches!==n;(1===i.mBtn(t)||e)&&(he&&(Ce=!0,Ar()),mr=i.page(t),wr.w=nt[0][c.oW]-(P?0:q),wr.h=nt[0][c.oH]-(P?0:D),J.on(mn,Ur).on(hn,Fr).on(fn,Br),Ci(tt,sr),ft.setCapture&&ft.setCapture(),i.prvD(t),i.stpP(t))}}function Fr(t){var e=i.page(t),n={};(Ee||ze)&&(n[Xe]=wr.w+e.x-mr.x),(He||ze)&&(n[Ye]=wr.h+e.y-mr.y),nt.css(n),i.stpP(t)}function Br(t){var e=t!==n;J.off(mn,Ur).off(hn,Fr).off(fn,Br),Ai(tt,sr),ft.releaseCapture&&ft.releaseCapture(),e&&(Ce&&Cr(),We.update(Ge)),Ce=!1}function Ur(t){return i.prvD(t),!1}function _r(){Jr()}function Qr(){var t={};return k&&ct&&(t.w=hi(ct.css(Qe+Xe)),t.h=hi(ct.css(Qe+Ye)),t.c=gi(t,se),t.f=!0),se=t,t.c||!1}function Vr(t,e){var i=e!==n&&null!==e?e.split(rn):$e,o=t!==n&&null!==t?t.split(rn):$e;if(i===$e&&o===$e)return!1;var a,s,c,u,l=fi(o,i),f=!1,h=ie!==n&&null!==ie?ie.split(rn):[$e],d=re!==n&&null!==re?re.split(rn):[$e],p=r.inArray(cr,l),v=l[a];for(p>-1&&l.splice(p,1),a=0;a0&&W&&a-K0?X:cr)),Qt&&(!0===_t?(Ar(),p.add(We)):null===_t&&x?(Ar(),p.add(We)):(p.remove(We),Cr())),Tt)if(mt)if(ot===n&&(ot=r(mi(Fn)),at.before(ot)),N)rt.show();else{rt=r(mi(Bn)),ot.before(rt);var le={w:-1,h:-1};gr(rt,function(){var t={w:rt[0][c.oW],h:rt[0][c.oH]};gi(t,le)&&(W&&St&&t.h>0||Mt&&t.w>0?Jr():(W&&!St&&0===t.h||!Mt&&0===t.w)&&Jr()),le=t}),N=!0,null!==O&&rt.css(Ye,O+"(100% + 1px)")}else N&&rt.hide();o&&(it.find("*").trigger(Je),N&&rt.find("*").trigger(Je));var fe,de=nt.css("direction"),pe=bi(de,Wt,o),ye=nt.css("box-sizing"),me=bi(ye,At,o),Se={c:o,t:hi(nt.css(Re+Fe)),r:hi(nt.css(Re+Be)),b:hi(nt.css(Re+Ue)),l:hi(nt.css(Re+_e))};try{fe=N?rt[0].getBoundingClientRect():null}catch(qi){return}P="border-box"===ye;var Ce=(U="rtl"===de)?_e:Be,Ie=U?Be:_e,ke=nt[0],Ne=at[0],qe=!1,nn=!(!N||"none"===nt.css(Ke))&&(0===Math.round(fe.right-fe.left)&&(!!dt||ke[c.cW]-q>0));if(mt&&!nn){var on=ke[c.oW],an=ot.css(Xe);ot.css(Xe,Ge);var sn=ke[c.oW];ot.css(Xe,an),(qe=on!==sn)||(ot.css(Xe,on+1),sn=ke[c.oW],ot.css(Xe,an),qe=on!==sn)}var fn=(nn||qe)&&mt&&!u,vn=bi(fn,Mt,o),yn=!fn&&Mt,mn=!(!N||u)&&0===Math.round(fe.bottom-fe.top),wn=bi(mn,St,o),xn=!mn&&St,bn="-"+Xe,gn=fn&&P||!P,On=mn&&P||!P,Mn={c:o,t:On?hi(nt.css(je+Fe+bn)):0,r:gn?hi(nt.css(je+Be+bn)):0,b:On?hi(nt.css(je+Ue+bn)):0,l:gn?hi(nt.css(je+_e+bn)):0},Sn={c:o,t:hi(nt.css(De+Fe)),r:hi(nt.css(De+Be)),b:hi(nt.css(De+Ue)),l:hi(nt.css(De+_e))},Cn={h:String(nt.css(Ve+Ye)),w:String(nt.css(Ve+Xe))},An={},kn={};if(q=Se.l+Se.r,D=Se.t+Se.b,Se.c=Oi(Se,zt),R=Mn.l+Mn.r,j=Mn.t+Mn.b,Mn.c=Oi(Mn,Et),F=Sn.l+Sn.r,B=Sn.t+Sn.b,Sn.c=Oi(Sn,Ht),Cn.ih=hi(Cn.h),Cn.iw=hi(Cn.w),Cn.ch=Cn.h.indexOf("px")>-1,Cn.cw=Cn.w.indexOf("px")>-1,Cn.c=gi(Cn,Ct,o),Wt=de,At=ye,Mt=fn,St=mn,zt=Se,Et=Mn,Ht=Sn,Ct=Cn,pe&&N&&rt.css(Ke,Ie),Se.c||pe||pt||vn||wn||me||Tt){var Ln={},Pn={};ui(kn,De,[-Se.t,-Se.r,-Se.b,-Se.l]),dt?(ui(Ln,$e,[Se.t,Se.r,Se.b,Se.l]),ui(I?Pn:An,Re)):(ui(Ln,$e),ui(I?Pn:An,Re,[Se.t,Se.r,Se.b,Se.l])),at.css(Ln),et.css(Pn)}Le={w:Ne[c.oW],h:Ne[c.oH]};var Nn=!!I&&Gr();if(mn&&(wn||pt||me||Cn.c||Se.c||Mn.c)?(Cn.cw&&(An[Ve+Ye]=Cn.ch?Cn.ih-(dt?D:0)+(P?-j:D):$e),An[Ye]=Ge):(wn||pt)&&(An[Ve+Ye]=$e,An[Ye]=Ze),fn&&(vn||pt||me||Cn.c||Se.c||Mn.c||pe)?(Cn.cw&&(An[Ve+Xe]=Cn.cw?Cn.iw-(dt?q:0)+(P?-R:q)+(y.y?m.y:0):$e),An[Xe]=Ge,kn[Ve+Xe]=Ze):(vn||pt)&&(An[Ve+Xe]=$e,An[Xe]=Ze,An[Ke]=$e,kn[Ve+Xe]=$e),fn&&(Cn.cw||(An[Ve+Xe]=$e),kn[Xe]=I&&Yt?Nn.dw:Ge,An[Xe]=Ge,An[Ke]=Ie),mn&&(Cn.ch||(An[Ve+Ye]=$e),kn[Ye]=I?$t?Nn.dh:Ge:ut[0][c.cH]),mt&&ot.css(kn),ut.css(An),An={},kn={},gt=gt||{x:!1,y:!1},t||e||pe||me||pt||vn||fn||wn||mn||Cn.c||Ut||Xt||yt||Z||S||Kt||ce||ht||pt||Kt||ce||o){var qn="overflow",Dn=qn+"-x",Rn=qn+"-y",Un="hidden",_n="visible",Qn=H?y.x||y.y||Le.w0&&(kn[Xe]=Math.max(1,kn[Xe]),kn[Ye]=Math.max(1,kn[Ye])),I&<.css(ur),ot.css(kn)}fn&&(An[Xe]=Ze),!fn||P||he||(An[Ke]="none"),ut.css(An),An={};var lr=Kn.getBoundingClientRect(),dr={w:Math.max(Kn[c.sW],$n[c.sW]),h:Math.max(Kn[c.sH],$n[c.sH])};if(Qn&&ut.css(qn,$e),lr.width){var pr=lr.width,vr=lr.height,yr=.001;dr.w+=hi(pr+yr)-pr,dr.h+=hi(vr+yr)-vr}dr.c=e=gi(dr,xt,o),xt=dr,t=gi(tr={w:ke[c.cW],h:ke[c.cH]},wt),wt=tr,Le={w:Ne[c.oW],h:Ne[c.oH]};var mr={x:"v-s"===Vt.x,y:"v-s"===Vt.y},wr={x:"v-h"===Vt.x,y:"v-h"===Vt.y},Or={x:"s"===Vt.x,y:"s"===Vt.y},zr={x:Math.max(0,Math.round(100*(dr.w-tr.w+(dt?q:0)))/100),y:Math.max(0,Math.round(100*(dr.h-tr.h+(dt?D:0)))/100)},Tr=I&&(0===Le.w||0===Le.h);Tr&&(zr.x=0,zr.y=0);var Ir={x:zr.x>0,y:zr.y>0},kr={x:Ir.x,y:Ir.y};(mr.x||wr.x)&&(kr.x=Ir.y&&!mr.y&&!wr.y),(mr.y||wr.y)&&(kr.y=Ir.x&&!mr.x&&!wr.x),kr.xs=!!kr.x&&(Or.x||mr.x),kr.ys=!!kr.y&&(Or.y||mr.y);var Lr={x:Ir.x&&kr.xs,y:Ir.y&&kr.ys},Pr=Nt;if(zr.c=gi(zr,Nt,tn,en,o),Nt=zr,Ir.c=gi(Ir,gt,tn,en,o),gt=Ir,kr.c=gi(kr,Ot,tn,en,o),Ot=kr,y.x||y.y){var Nr=o,qr={};if((Ir.x||Ir.y)&&(qr.w=y.y&&Ir.y?dr.w+m.y:$e,qr.h=y.x&&Ir.x?dr.h+m.x:$e,Nr=bi(qr,bt,o),bt=qr),Ir.c||kr.c||dr.c||pe||vn||wn||fn||mn||Ut){var Dr="px solid transparent";An[je+Ie]=$e,An[De+Ie]=$e,y.x&&Ir.x&&kr.xs?(mn&&(An[De+Ue]=Bt?$e:m.x),An[je+Ue]=mn||Bt?$e:m.x+Dr):(qr.h=$e,Nr=!0,An[je+Ue]=$e,An[De+Ue]=$e),y.y&&Ir.y&&kr.ys?(fn&&(An[De+Ce]=Bt?$e:m.y),An[je+Ce]=Bt?$e:m.y+Dr):(qr.w=$e,Nr=!0,An[je+Ce]=$e,An[De+Ce]=$e)}if(Bt&&(qr.w=$e,qr.h=$e,Nr=!0),Nr){var Rr={};Rr[Xe]=kr.y?qr.w:$e,Rr[Ye]=kr.x?qr.h:$e,ct||(ct=r(mi(jn)),st.prepend(ct)),ct.css(Rr)}ut.css(An)}var Fr={};Ln={};if(t||Ir.c||kr.c||dr.c||Xt||me||Ut||pe||yt||wn){Fr[Ie]=$e;var Br=function(){Fr[Ue]=$e,Te.h=0},Ur=function(){Fr[Ce]=$e,Te.w=0};if(Ir.x&&kr.xs?(Fr[Dn]=Je,Bt?Br():(Fr[Ue]=-(y.x?m.x:M.x),Te.h=y.x?m.y:0)):(Fr[Dn]=$e,Br()),Ir.y&&kr.ys?(Fr[Rn]=Je,Bt?Ur():(Fr[Ce]=-(y.y?m.y:M.y),Te.w=y.y?m.x:0)):(Fr[Rn]=$e,Ur()),(Le.h-1,Ni=Li.y>-1;(Pi||Ni)&&(Ni&&st[un](Li.y),Pi&&(U&&ne&&w.i?st[cn](0):st[cn](Li.x)))}Ft=xi}else I||(U&&w.i&&y.y&&Ir.x&&ne&&(f.l+=Te.w||0),st[cn](f.l),st[un](f.t));pe&&ci("onDirectionChanged",{isRTL:U,dir:de}),t&&ci("onHostSizeChanged",{width:wt.w,height:wt.h}),e&&ci("onContentSizeChanged",{width:xt.w,height:xt.h}),(Ir.c||kr.c)&&ci("onOverflowChanged",{x:Ir.x,y:Ir.y,xScrollable:kr.xs,yScrollable:kr.ys,clipped:kr.x||kr.y}),zr.c&&ci("onOverflowAmountChanged",{x:zr.x,y:zr.y})}k&&(Ir.c||se.c)&&(se.f||Qr(),y.y&&Ir.x&&ut.css(Qe+Xe,se.w+m.y),y.x&&Ir.y&&ut.css(Qe+Ye,se.h+m.x),se.c=!1),Sr(it),Sr(rt),ci("onUpdated",{forced:o})}}function Zr(t){X=Si(!0,{},X,S.v(t,S.t,!0)),Y=Si(!0,{},Y,S.v(t,S.t,!1,!0))}function ti(){ht=r(mi(Xn+rn+or)),dt=r(mi(Yn)),pt=r(mi($n)),vt=r(mi(Xn+rn+ar)),yt=r(mi(Yn)),mt=r(mi($n)),ht.append(dt),dt.append(pt),vt.append(yt),yt.append(mt),at.after(vt),at.after(ht),C&&(ht.on(wn,function(t){t.target===ht[0]&&(ii(!0),oi(!0,st[cn]()))}),vt.on(wn,function(t){t.target===vt[0]&&(ii(!1),oi(!1,st[un]()))})),ei(!0),ei(!1),ft=r(mi(tr)),nt.append(ft)}function ei(t){var e,o,a,s=si(t),c=s.xy,u=Je+s.LT,l="active",f=1,h=[16,17],d=function(){f=.5},p=function(){f=1},v=function(n){var r=s.i.tl,a=s.i.hl,l=s.i.ms*((i.page(n)[c]-o)/(r-a));l=isFinite(l)?l:0,U&&t&&!w.i&&(l*=-1),st[u](e+l),z||i.prvD(n)},y=function(t){t=t||t.originalEvent;var r=nt[0].getBoundingClientRect(),i=t.clientX>=r.left&&t.clientX<=r.right&&t.clientY>=r.top&&t.clientY<=r.bottom;Ai(tt,sr),Ai(s.h,l),Ai(s.t,l),Ai(s.s,l),J.off(hn,v).off(fn,y).off(vn,m).off(yn,x).off(mn,Ur),p(),e=n,o=n,a!==n&&(We.scrollStop(),clearTimeout(a),a=n),i||Hr(),(be||ge)&&ri(!1)},m=function(t){r.inArray(t.keyCode,h)>-1&&d()},x=function(t){r.inArray(t.keyCode,h)>-1&&p()},g=function(t){var e=(t.originalEvent||t).touches!==n;return!(_||vi()||!te||e&&!Me)&&(1===i.mBtn(t)||e)},O=function(r){e=(e=st[u]())===n?0:e,(U&&t&&!w.n||!U)&&(e=e<0?0:e),o=i.page(r)[c],Ci(tt,sr),Ci(s.h,l),Ci(s.s,l),J.on(hn,v).on(fn,y).on(mn,Ur),!b&&L||i.prvD(r),i.stpP(r)};s.h.on(ln,function(t){g(t)&&O(t)}),s.t.on(ln,function(e){if(g(e)){var r,h,p=Le[s._wh],v=s.t.offset()[s.lt],b=e.ctrlKey,M=e.shiftKey,S=M&&b,C=!0,A="linear",z=function(){if(!T){var i=o-v,c=s.i.tl,l=s.i.ho,d=s.i.hl,y=s.i.ms,m=270*f,x=C?Math.max(400,m):m,b=y*((i-d/2)/(c-d)),g=U&&t&&(!w.i&&!w.n||ne),E=g?li,H={};M?(b=isFinite(b)?b:0,U&&t&&!w.i&&(b=y-b),S?(H.n=!1,H[s.xy]=b,We.scroll(H,130,A,function(){O(e)})):(st[u](b),O(e))):(r=C?E:r,h=g?r?l+d>=i:l<=i:r?l<=i:l+d>=i,H[s.xy]=r?"-="+p:"+="+p,We.scrollStop(),We.scroll(H,m,A),h?(clearTimeout(a),We.scrollStop(),a=n):a=setTimeout(z,x),C=!1)}};b&&d(),o=i.page(e)[c],Ci(tt,sr),Ci(s.t,l),Ci(s.s,l),J.on(fn,y).on(vn,m).on(yn,x).on(mn,Ur),z(),i.prvD(e),i.stpP(e)}}).hover(function(){(be||ge)&&(Se=!0,ri(!0))},function(){(be||ge)&&(Se=!1,ri(!1))}),s.s.on(ln,function(t){i.stpP(t)})}function ni(t,e,n){var r=t?Sn:Cn,i=t?ht:vt;e?Ai(nt,r):Ci(nt,r),n?Ai(i,Jn):Ci(i,Jn)}function ri(t,e){if(clearTimeout(ye),t)Ai(ht,Zn),Ai(vt,Zn);else{var n="active",r=function(){if(!Se&&!T){var t=pt.hasClass(n)||mt.hasClass(n);!t&&(be||ge||Oe)&&Ci(ht,Zn),!t&&(be||ge||Oe)&&Ci(vt,Zn)}};we>0&&!0!==e?ye=setTimeout(r,we):r()}}function ii(t){var e={},n=si(t),r=1e6,i=Math.min(1,(wt[n._wh]-(It?t?q:D:0))/xt[n._wh]);e[n.wh]=Math.floor(100*i*r)/r+"%",vi()||n.h.css(e),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=i}function oi(t,e){var n,r,i,o=U&&t,a={},s=si(t),c="translate(",u="transform",l=st[0][Je+s.WH]-st[0]["client"+s.WH],f=s.i.hl,h=s.t[0]["offset"+s.WH],d=h-f;w.n&&o&&(l*=-1),i=e/l,i=isNaN(i)?0:Math.min(1,i),s.i.ms=l,s.i.cs=e,s.i.csr=i,d*=i,d=isNaN(d)?0:d,o&&!w.i&&(d=h-f-d),d=Math.max(0,d),A?(r=(r=o?-(h-f-d):d)/h*100*(h/f),n=t?c+r+"%, 0)":c+"0, "+r+"%)",a["-webkit-"+u]=n,a["-moz-"+u]=n,a["-ms-"+u]=n,a["-o-"+u]=n,a[u]=n):a[s.lt]=d,vi()||s.h.css(a),s.i.ho=d,s.i.tl=h}function ai(t,e){var n=e?"removeClass":"addClass",r=t?yt:mt,i=t?Kn:Gn;(t?dt:pt)[n](i),r[n](i)}function si(t){return{wh:t?Xe:Ye,WH:t?"Width":"Height",lt:t?_e:Fe,LT:t?"Left":"Top",xy:t?tn:en,XY:t?"X":"Y",_wh:t?"w":"h",_lt:t?"l":"t",t:t?dt:yt,h:t?pt:mt,s:t?ht:vt,i:t?Ie:ke}}function ci(t,e){if(W){var n,i=Y.callbacks[t],o=t;"on"===o.substr(0,2)&&(o=o.substr(2,1).toLowerCase()+o.substr(3)),Mi(i)==s.f&&i.call(We,e),r.each(ur,function(){Mi((n=this).on)==s.f&&n.on(o,e)})}}function ui(t,e,r){r===n&&(r=[$e,$e,$e,$e]),t[e+Fe]=r[0],t[e+Be]=r[1],t[e+Ue]=r[2],t[e+_e]=r[3]}function li(e){var n="ownerDocument",r="HTMLElement",i=e&&e[n]&&e[n].parentWindow||t;return typeof i[r]==s.o?e instanceof i[r]:e&&typeof e==s.o&&null!==e&&1===e.nodeType&&typeof e.nodeName==s.s}function fi(t,e){var n,r,i=[],o=[];for(n=0;nf&&(l=r+1,f=e);return{cR:h,cC:d,r:c,c:f,w:l,p:t,m:a}}}function pi(t){for(var e=0;e"+(e||$e)+""}function wi(t,e){for(var n,r=e.split(nn),i=0;i9||!x?et.on("input",kr):et.on(vn,Lr).on(yn,Pr)}else Ci(et,On),(nt=et).wrapInner(mi(Rn)).wrapInner(mi(Nn)).wrapInner(mi(Pn)),ut=Ei(nt,nn+Rn),st=Ei(nt,nn+Nn),at=Ei(nt,nn+Pn),ut.on(wn,function(t){!0!==Dt&&$r((t=t.originalEvent||t).propertyName)&&Jr(Ge)});if(ti(),z?xr(st,Je,Tr):st.on(Je,Tr),g&&Ci(st,y.x&&y.y?Dn:qn),de){var l,f,h,p,v,S,P=i.mO(),N=i.now();le=new P(function(t){if(W&&!_){var e,n=!1;r.each(t,function(){if(l=(e=this).target,f=e.attributeName,n=f===c.c?Vr(e.oldValue,l.className):f!==c.s||e.oldValue!==l[c.s].cssText)return!1}),n&&We.update(Ge)}}),fe=new P(function(t){if(W&&!_){var e=!1;r.each(t,function(){return!(e=Xr(this))}),e&&(p=i.now(),v=St||Mt,S=function(){T||(N=p,I&&Gr(),v?We.update():We.update(Ge))},clearTimeout(h),pr<=0||p-N>pr||!v?S():h=setTimeout(S,pr))}})}return k&&(Ci(Z,gn),st[cn](a.l),st[un](a.t)),it=r(mi("os-resize-observer-host")),nt.prepend(it),gr(it,zr),zr(),We.update(Ge),setTimeout(function(){C&&!T&&Ci(nt,An)},333),W=!0,ci("onInitialized"),Mi(o)==s.s&&(o=[o]),r.isArray(o)?r.each(o,function(){We.addExt(this)}):r.isPlainObject(o)&&r.each(o,function(t,e){We.addExt(t,e)}),W}}return t[a]=function(e,i,s){if(0===arguments.length)return this;C();var c,l,h=[];return r.isPlainObject(i)?e&&e.length?(r.each(e,function(){(c=this)!==n&&h.push(E(c,i,s,u,f))}),l=h.length>1?h:h[0]):l=E(e,i,s,u,f):e&&(e.length&&e.length>0?(r.each(e,function(){c=o(this),"!"===i?c instanceof t[a]&&h.push(c):h.push(c)}),l=h.length>1?h:h[0]):l=o(e)),l},t[a].globals=function(){C();var t=r.extend(!0,{},u);return delete t.msie,t},t[a].defaultOptions=function(t){C();var e=u.defaultOptions;if(t===n)return r.extend(!0,{},e);u.defaultOptions=r.extend(!0,{},e,S.v(t,S.t,!0))},t[a].extension=function(t,e,n){var i=r.type(t)==s.s,o=arguments[c.l],a=0;if(o<1||!i)return r.extend(!0,{length:M[c.l]},M);if(i)if(r.type(e)==s.f)M.push({name:t,extension:e,defaultOptions:n});else for(;a1))return r.extend(!0,{},M[a]);M.splice(a,1)}},t[a]}(function(r){var i=/[^\x20\t\r\n\f]+/g,o=Object.prototype.toString,a=" ",u="",l="scrollLeft",f="scrollTop",h=[],d={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},p={swing:function(t,e,n,r,i){return.5-Math.cos(t*Math.PI)/2},linear:function(t,e,n,r,i){return t},easeInQuad:function(t,e,n,r,i){return r*(e/=i)*e+n},easeOutQuad:function(t,e,n,r,i){return-r*(e/=i)*(e-2)+n},easeInOutQuad:function(t,e,n,r,i){return(e/=i/2)<1?r/2*e*e+n:-r/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,r,i){return r*(e/=i)*e*e+n},easeOutCubic:function(t,e,n,r,i){return r*((e=e/i-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,r,i){return(e/=i/2)<1?r/2*e*e*e+n:r/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,r,i){return r*(e/=i)*e*e*e+n},easeOutQuart:function(t,e,n,r,i){return-r*((e=e/i-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,r,i){return(e/=i/2)<1?r/2*e*e*e*e+n:-r/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,r,i){return r*(e/=i)*e*e*e*e+n},easeOutQuint:function(t,e,n,r,i){return r*((e=e/i-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,r,i){return(e/=i/2)<1?r/2*e*e*e*e*e+n:r/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,r,i){return-r*Math.cos(e/i*(Math.PI/2))+r+n},easeOutSine:function(t,e,n,r,i){return r*Math.sin(e/i*(Math.PI/2))+n},easeInOutSine:function(t,e,n,r,i){return-r/2*(Math.cos(Math.PI*e/i)-1)+n},easeInExpo:function(t,e,n,r,i){return 0==e?n:r*Math.pow(2,10*(e/i-1))+n},easeOutExpo:function(t,e,n,r,i){return e==i?n+r:r*(1-Math.pow(2,-10*e/i))+n},easeInOutExpo:function(t,e,n,r,i){return 0==e?n:e==i?n+r:(e/=i/2)<1?r/2*Math.pow(2,10*(e-1))+n:r/2*(2-Math.pow(2,-10*--e))+n},easeInCirc:function(t,e,n,r,i){return-r*(Math.sqrt(1-(e/=i)*e)-1)+n},easeOutCirc:function(t,e,n,r,i){return r*Math.sqrt(1-(e=e/i-1)*e)+n},easeInOutCirc:function(t,e,n,r,i){return(e/=i/2)<1?-r/2*(Math.sqrt(1-e*e)-1)+n:r/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,r,i){var o=1.70158,a=0,s=r;if(0==e)return n;if(1==(e/=i))return n+r;if(a||(a=.3*i),s0&&n-1 in e)}function C(t){return(t.match(i)||[]).join(a)}function A(t,n){for(var r=(t.parentNode||e).querySelectorAll(n)||[],i=r[c.l];i--;)if(r[i]==t)return!0;return!1}function z(t,e,n){if(y(n)==s.a)for(var r=0;r0?(r=t.q[0],I(t.el,r.props,r.duration,r.easing,r.complete,!0)):(n=g(t,h))>-1&&h.splice(n,1)}function T(t,e,n){e===l?t[e]=n:e===f?t[e]=n:E(t,e,n)}function I(t,e,i,o,a,s){var u,d,v,y,w,O,S=b(i),C={},A={},z=0;for(S?(o=i.easing,i.start,v=i.progress,y=i.step,w=i.specialEasing,a=i.complete,O=i.duration):O=i,w=w||{},O=O||400,o=o||"swing",s=s||!1;z0)N=r.now(),q=function(){for(u in E=r.now(),D=E-N,H=j.stop||D>=O,I=1-(Math.max(0,N+O-E)/O||0),A)k=parseFloat(C[u]),L=parseFloat(A[u]),P=(L-k)*p[w[u]||o](I,I*O,0,1,O)+k,T(t,u,P),m(y)&&y(P,{elem:t,prop:u,start:k,now:P,end:L,pos:I,options:{easing:o,speacialEasing:w,duration:O,complete:a,step:y},startTime:N});m(v)&&v({},I,Math.max(0,O-D)),H?(W(d),m(a)&&a()):j.frame=r.rAF()(q)},j.frame=r.rAF()(q);else{for(u in A)T(t,u,A[u]);W(d)}}}function k(t,e,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)T(t,a,o.props[a]);e?i.q=[]:W(i,!1)}break}}return M.prototype={on:function(t,e){var n,r=(t=(t||u).match(i)||[u])[c.l],o=0;return this.each(function(){n=this;try{if(n.addEventListener)for(;o0;)i=i.childNodes[0];for(e=0;n[c.l]-e;i.firstChild===n[0]&&e++)i.appendChild(n[e]);var s=a?a.nextSibling:o.firstChild;return o.insertBefore(r,s),this},wrapInner:function(t){return this.each(function(){var e=M(this),n=e.contents();n[c.l]?n.wrapAll(t):e.append(t)})},wrap:function(t){return this.each(function(){M(this).wrapAll(t)})},css:function(e,r){var i,o,a,u=t.getComputedStyle;return y(e)==s.s?r===n?(i=this[0],a=u?u(i,null):i.currentStyle[e],u&&null!=a?a.getPropertyValue(e):i[c.s][e]):this.each(function(){E(this,e,r)}):this.each(function(){for(o in e)E(this,o,e[o])})},hasClass:function(t){for(var e,n,r=0,i=a+t+a;e=this[r++];)if(n=e.classList){if(n.contains(t))return!0}else if(1===e.nodeType&&(a+C(e.className+u)+a).indexOf(i)>-1)return!0;return!1},addClass:function(t){var e,r,o,s,c,l,f,h,d=0,p=0;if(t)for(e=t.match(i)||[];r=this[d++];)if(h=r.classList,f===n&&(f=h!==n),f)for(;c=e[p++];)h.add(c);else if(s=r.className+u,o=1===r.nodeType&&a+C(s)+a){for(;c=e[p++];)o.indexOf(a+c+a)<0&&(o+=c+a);s!==(l=C(o))&&(r.className=l)}return this},removeClass:function(t){var e,r,o,s,c,l,f,h,d=0,p=0;if(t)for(e=t.match(i)||[];r=this[d++];)if(h=r.classList,f===n&&(f=h!==n),f)for(;c=e[p++];)h.remove(c);else if(s=r.className+u,o=1===r.nodeType&&a+C(s)+a){for(;c=e[p++];)for(;o.indexOf(a+c+a)>-1;)o=o.replace(a+c+a,a);s!==(l=C(o))&&(r.className=l)}return this},hide:function(){return this.each(function(){this[c.s].display="none"})},show:function(){return this.each(function(){this[c.s].display="block"})},attr:function(t,e){for(var r=0;r=0?t:this[c.l]+t])},find:function(t){var e,n=[];return this.each(function(){var r=this.querySelectorAll(t);for(e=0;e-1){if(!(n>1))return i[a][o];delete t[o],i.splice(a,1)}}}));return l&&l.fn&&(l.fn.overlayScrollbars=function(t,e){var n=this;return l.isPlainObject(t)?(l.each(n,function(){f(this,t,e)}),n):f(n,t)}),f}); \ No newline at end of file +!function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t,t.document,undefined)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(t,t.document,undefined):e(t,t.document,undefined)}("undefined"!=typeof window?window:this,function(t,e,n){"use strict";var r,i,o,a="OverlayScrollbars",s={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},c={c:"class",s:"style",i:"id",l:"length",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth"},u={wW:function(){return t.innerWidth||e.documentElement[c.cW]||e.body[c.cW]},wH:function(){return t.innerHeight||e.documentElement[c.cH]||e.body[c.cH]},mO:function(){return t.MutationObserver||t.WebKitMutationObserver||t.WebkitMutationObserver||t.MozMutationObserver||n},rO:function(){return t.ResizeObserver||t.WebKitResizeObserver||t.WebkitResizeObserver||t.MozResizeObserver||n},rAF:function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}},cAF:function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||t.msCancelAnimationFrame||function(e){return t.clearTimeout(e)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},prvD:function(t){t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1},page:function(t){var r="page",i="client",o="X",a="Y",s=((t=t.originalEvent||t).target||t.srcElement||e).ownerDocument||e,c=s.documentElement,u=s.body;if(t.touches!==n){var l=t.touches[0];return{x:l[r+o],y:l[r+a]}}return!t[r+o]&&t[i+o]&&null!=t[i+o]?{x:t[i+o]+(c&&c.scrollLeft||u&&u.scrollLeft||0)-(c&&c.clientLeft||u&&u.clientLeft||0),y:t[i+a]+(c&&c.scrollTop||u&&u.scrollTop||0)-(c&&c.clientTop||u&&u.clientTop||0)}:{x:t[r+o],y:t[r+a]}},mBtn:function(t){return t.which||t.button===n?t.which:1&t.button?1:2&t.button?3:4&t.button?2:0},inA:function(t,e){for(var n=0;n0?"\r\nValid strings are: [ "+W.join(", ").split(p).join(", ")+" ].":"")),delete t[c]}}};return u(c,e,a),o?r.extend(!0,a,c):!r.isEmptyObject(c)&&n&&console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(c,null,2)),a}});function C(){u||(u=new A(S.d)),f||(f=new z(u))}function A(a){var s=this,u="overflow",l="hidden",f="scroll",h=r("body"),d=r('
'),p=d[0],v=r(d.children("div").eq(0)),y=p[c.oH];h.append(d),0===y&&d.hide().show();var m,w,x,b,g,O,M,S,C,A=H(p),z={x:0===A.x,y:0===A.y};function E(t){var r=!1,i="Webkit Moz ms O".split(" "),o=e.createElement("div"),a=null,s=0;if(t=t.toLowerCase(),o[c.s][t]!==n&&(r=!0),!r)for(a=t.charAt(0).toUpperCase()+t.substr(1);s0?m=C(w[b](g+5,w[x](".",g)),10):O>0?m=C(w[b](S+3,w[x](".",S)),10):M>0&&(m=C(w[b](M+5,w[x](".",M)),10)),m),cssCalc:function(){var t,n,r=e.createElement("div"),i=["calc","-webkit-calc","-moz-calc","-o-calc"];for(t=0;t0){var t=i.wW(),c=i.wH(),f=t-e,p=c-n;if(0===f&&0===p)return;var v,y=Math.round(t/(e/100)),m=Math.round(c/(n/100)),w=Math.abs(f),x=Math.abs(p),b=Math.abs(y),g=Math.abs(m),O=l(),M=w>2&&x>2,S=!u(b,g),C=M&&S&&(O!==a&&a>0),A=s.nativeScrollbarSize;C&&(h.append(d),v=s.nativeScrollbarSize=H(d[0]),d.remove(),A.x===v.x&&A.y===v.y||r.each(o(),function(){o(this)&&o(this).update("zoom")})),e=t,n=c,a=O}};r(t).on("resize",c)}function u(t,e){var n=Math.abs(t),r=Math.abs(e);return!(n===r||n+1===r||n-1===r)}function l(){var e=t.screen.deviceXDPI||0,n=t.screen.logicalXDPI||1;return t.devicePixelRatio||e/n}}()}function z(t){var e,o=this,a="autoUpdate",s=a+"Interval",c=[],u=[],l=!1,f=33,h=f,d=i.now(),p=function(){if(c.length>0&&l){e=i.rAF()(function(){p()});var t=i.now(),r=t-d;if(r>h){d=t-r%h;for(var o=f,v=0;vx&&(y.update("auto"),u[v]=new Date(b+=x)),o=Math.max(1,Math.min(o,x))}}h=o}}else h=f};o.add=function(e){-1===r.inArray(e,c)&&(c.push(e),u.push(i.now()),c.length>0&&!l&&(l=!0,t.autoUpdateLoop=l,p()))},o.remove=function(o){var a=r.inArray(o,c);a>-1&&(u.splice(a,1),c.splice(a,1),0===c.length&&l&&(l=!1,t.autoUpdateLoop=l,e!==n&&(i.cAF()(e),e=-1)))}}function E(u,f,h,d,p){if(li(u)){if(o(u)){var v=o(u);return v.options(f),v}var y,m,w,x,b,g,O,M,C,A,z,E,H,W,T,I,k,L,P,N,q,R,D,j,F,B,U,_,Q,V,X,Y,K,$,G,J,Z,tt,et,nt,rt,it,ot,at,st,ct,ut,lt,ft,ht,dt,pt,vt,yt,mt,wt,xt,bt,gt,Ot,Mt,St,Ct,At,zt,Et,Ht,Wt,Tt,It,kt,Lt,Pt,Nt,qt,Rt,Dt,jt,Ft,Bt,Ut,_t,Qt,Vt,Xt,Yt,Kt,$t,Gt,Jt,Zt,te,ee,ne,re,ie,oe,ae,se,ce,ue,le,fe,he,de,pe,ve,ye,me,we,xe,be,ge,Oe,Me,Se,Ce,Ae,ze,Ee,He,We=new t[a],Te={},Ie={},ke={},Le={},Pe={},Ne=175,qe="-hidden",Re="margin-",De="padding-",je="border-",Fe="top",Be="right",Ue="bottom",_e="left",Qe="min-",Ve="max-",Xe="width",Ye="height",Ke="float",$e="",Ge="auto",Je="scroll",Ze="100%",tn="x",en="y",nn=".",rn=" ",on="scrollbar",an="-horizontal",sn="-vertical",cn=Je+"Left",un=Je+"Top",ln="mousedown touchstart",fn="mouseup touchend touchcancel",hn="mousemove touchmove",dn="mouseenter",pn="mouseleave",vn="keydown",yn="keyup",mn="selectstart",wn="transitionend webkitTransitionEnd oTransitionEnd",xn="__overlayScrollbarsRO__",bn="os-",gn=bn+"html",On=bn+"host",Mn=On+"-textarea",Sn=On+"-"+on+an+qe,Cn=On+"-"+on+sn+qe,An=On+"-transition",zn=On+"-rtl",En=On+"-resize-disabled",Hn=On+"-scrolling",Wn=On+"-overflow",Tn=Wn+"-x",In=Wn+"-y",kn=bn+"textarea",Ln=kn+"-cover",Pn=bn+"padding",Nn=bn+"viewport",qn=Nn+"-native-scrollbars-invisible",Rn=Nn+"-native-scrollbars-overlaid",Dn=bn+"content",jn=bn+"content-arrange",Fn=bn+"content-glue",Bn=bn+"size-auto-observer",Un=bn+"resize-observer",_n=bn+"resize-observer-item",Qn=_n+"-final",Vn=bn+"text-inherit",Xn=bn+on,Yn=Xn+"-track",Kn=Yn+"-off",$n=Xn+"-handle",Gn=$n+"-off",Jn=Xn+"-unusable",Zn=Xn+"-"+Ge+qe,tr=Xn+"-corner",er=tr+"-resize",nr=er+"-both",rr=er+an,ir=er+sn,or=Xn+an,ar=Xn+sn,sr=bn+"dragging",cr=bn+"theme-none",ur={},lr="added removed on contract",fr={},hr=42,dr=[],pr=11,vr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],yr=[],mr={},wr={};if(We.sleep=function(){_=!0},We.update=function(t){var e,n,o="zoom"===t,a="img",s="load";t===Ge?(e=Kr(),n=Yr(),(e||n)&&Jr(!1,n)):o?Jr(!0,!0):(t=_||t,_=!1,Jr(!1,!1,t)),I||o||ut.find(a).each(function(t,e){-1===i.inA(e,dr)&&(e=r(e)).off(s,_r).on(s,_r)})},We.options=function(t,e){if(r.isEmptyObject(t)||!r.isPlainObject(t)){if(Mi(t)==s.s){if(arguments.length>=2){var n={};return xi(n,t,e),Zr(n),void Jr()}return wi(X,t)}return X}Zr(t);var i=_||!1;_=!1,Jr(),_=i},We.destroy=function(){for(var t in T=!0,p.remove(We),Ar(),Or(it),N&&Or(rt),ur)We.removeExt(t);zi(it),ot!==n&&zi(ot),ct!==n&&zi(ct),N&&zi(rt),z?(br(nt,hn,Wr),br(nt,dn,Er),br(nt,pn,Hr)):nt.off(hn,Wr).off(dn,Er).off(pn,Hr),zi(ht),zi(vt),ft&&zi(ft),Ae||Br(),ut.contents().unwrap().unwrap().unwrap(),k&&Ai(Z,gn),I?(et.off(Je,Dr).off("drop",Nr).off("focus",qr).off("focusout",Rr),b>9||!x?et.off("input",kr):et.off(vn,Lr).off(yn,Pr),zi(lt),Ai(et,kn+rn+Vn).unwrap().removeAttr(c.s),zi(nt)):(Ai(et,On),Ai(nt,[On,En,zn,Sn,Cn,An,Hn,Wn,Tn,In,cr,re].join(rn)));for(var e=0;e0)e.x=t[0],e.y=t[1];else if(Mi(t)==s.s||Mi(t)==s.n)e.x=t,e.y=t;else if(Mi(t)==s.o){for(var n in E=Mi(t.n)==s.b?t.n:E,t=Si({},t),m=0,t)t.hasOwnProperty(n)&&(m>2&&delete t[n],m++);var r=function(e){var n=e?H:W;for(m=0;m2){var v=r.substr(0,2);for(m=0;m/g,(d?"-":$e)+Ze))[p](/px/g,$e))[p](/%/g,f+l*(h&&w.n?-1:1)/100))[p](/vw/g,f+Le.w))[p](/vh/g,f+Le.h),o=hi(t.parseFloat(t.eval(r)).toFixed())}else Mi(r)==s.n&&(o=r);if(!isNaN(o)&&o!==n&&Mi(o)==s.n){var y=E&&h,x=u*(y&&w.n?-1:1),b=y&&w.i,g=y&&w.n;switch(x=b?l-x:x,i){case"+=":a=x+o;break;case"-=":a=x-o;break;case"*=":a=x*o;break;case"/=":a=x/o;break;default:a=o}b&&(a=l-a),g&&(a*=-1),h&&w.n?(a=Math.max(l,a),a=Math.min(0,a)):(a=Math.min(l,a),a=Math.max(0,a)),a===u&&(a=n)}return a},J=function(t,e,n,r){var i,o,a=[n,n],c=Mi(t);if(c==e)t=[t,t];else if(c==s.a){if((i=t.length)>2||i<1)t=a;else for(1===i&&(t[1]=n),m=0;m=4?Z(et):ot:ct==s.o?Z([et[Fe],et[Be],et[Ue],et[_e]]):ot,O=K(nt,F)?nt:"xy",M=J(rt,s.s,R,_),S=J(it,s.s,P,B),C=et;var ut=z.offset();ut[Fe]-=C[0],ut[_e]-=C[3];var lt=at.offset(),ft={l:Ie.cs,t:ke.cs},ht={x:M.x==D||O==en,y:M.y==D||O==tn},dt={x:Math.round(ut[_e]-lt[_e]+ft.l),y:Math.round(ut[Fe]-lt[Fe]+ft.t)};if(U&&(w.n||w.i||(dt.x=Math.round(lt[_e]-ut[_e]+ft.l)),w.n&&E&&(dt.x*=-1),w.i&&E&&(dt.x=Math.round(lt[_e]-ut[_e]+(Ie.ms-ft.l)))),S.x!=P||S.y!=P||M.x==j||M.y==j||U){var pt,vt=z[0],yt={},mt={w:(yt=A?{w:(pt=vt.getBoundingClientRect())[Xe],h:pt[Ye]}:{w:vt[c.oW],h:vt[c.oH]}).w+C[3]+C[1],h:yt.h+C[0]+C[2]},wt=function(t){var e=si(t),n=e._wh,r=e.lt,i=e.xy,o=S[i]==(t&&U?P:L),a=S[i]==N,s=S[i]==q,c=M[i]==D,u=M[i]==j,l=Le[n],f=lt[r],h=mt[n],d=ut[r],p=a?2:1,v=d+h/2,y=f+l/2,m=h<=l&&d>=f&&d+h<=f+l;c?ht[i]=!0:ht[i]||((s||u)&&(ht[i]=!!u&&m,o=hy:v0||k))if(k)st.animate(I,i);else{if(g={duration:i,complete:a},Mi(o)==s.a){var xt={};xt[cn]=o[0],xt[un]=o[1],g.specialEasing=xt}else g.easing=o;st.animate(I,g)}else x&&st[cn](I[cn]),b&&st[un](I[un])},We.scrollStop=function(t,e,n){return st.stop(t,e,n),We},We.getElements=function(t){var e={target:et[0],host:nt[0],padding:at[0],viewport:st[0],content:ut[0],scrollbarHorizontal:{scrollbar:ht[0],track:dt[0],handle:pt[0]},scrollbarVertical:{scrollbar:vt[0],track:yt[0],handle:mt[0]},scrollbarCorner:ft[0]};return Mi(t)==s.s?wi(e,t):e},We.getState=function(t){var e=function(t){if(!r.isPlainObject(t))return t;var e=Si(!0,{},t),n=function(t,n){e.hasOwnProperty(t)&&(e[n]=e[t],delete e[t])};return n("w",Xe),n("h",Ye),delete e.c,e},n={sleeping:e(_)||!1,autoUpdate:e(!he),widthAuto:e(Mt),heightAuto:e(St),padding:e(zt),overflowAmount:e(Nt),hideOverflow:e(Ot),hasOverflow:e(gt),contentScrollSize:e(xt),viewportSize:e(Le),hostSize:e(wt),documentMixed:e(L)};return Mi(t)==s.s?wi(n,t):n},We.ext=function(t){var e,n=lr.split(" "),r=0;if(Mi(t)==s.s){if(ur.hasOwnProperty(t))for(e=Si(!0,{},ur[t]);r9||!x){t.prepend(mi(Un,mi({className:_n,dir:"ltr"},mi(_n,mi(Qn))+mi(_n,mi({className:Qn,style:"width: 200%; height: 200%"})))));var p,v,y,m,g=t[0][l][0][l][0],O=r(g[l][1]),M=r(g[l][0]),S=r(M[0][l][0]),C=g[c.oW],A=g[c.oH],z=2,H=d.nativeScrollbarSize,W=function(){M[cn](o)[un](o),O[cn](o)[un](o)},T=function(){v=0,p&&(C=y,A=m,f())},I=function(t){return y=g[c.oW],m=g[c.oH],p=y!=C||m!=A,t&&p&&!v?(i.cAF()(v),v=i.rAF()(T)):t||T(),W(),t&&(i.prvD(t),i.stpP(t)),!1},k={},L={};L[Fe]=-(H.y+1)*z,L[Be]=H.x*-z,L[Ue]=H.y*-z,L[_e]=-(H.x+1)*z,r(g).css(L),M.on(Je,I),O.on(Je,I),t.on(u,function(){I(!1)}),k[Xe]=o,k[Ye]=o,S.css(k),W()}else{var P=J[0],N=P.attachEvent,q=b!==n;if(N)t.prepend(mi(Un)),Ei(t,nn+Un)[0].attachEvent("onresize",f);else{var R=P.createElement(s.o);R.setAttribute("tabindex","-1"),R.setAttribute(c.c,Un),R.onload=function(){var t=this.contentDocument.defaultView;t.addEventListener("resize",f),t.document.documentElement.style.display="none"},R.type="text/html",q&&t.prepend(R),R.data="about:blank",q||t.prepend(R),t.on(u,f)}}if(t[0]===it[0]){var D=function(){var e=nt.css("direction"),n={},r=0,i=!1;return e!==Tt&&("ltr"===e?(n[_e]=0,n[Be]=Ge,r=o):(n[_e]=Ge,n[Be]=0,r=w.n?-o:w.i?0:o),it.children().eq(0).css(n),t[cn](r)[un](o),Tt=e,i=!0),i};D(),t.on(Je,function(t){return D()&&Jr(),i.prvD(t),i.stpP(t),!1})}}function Or(t){if(E){var e=t.contents()[0];e[xn].disconnect(),delete e[xn]}else zi(t.children(nn+Un).eq(0))}function Mr(t){}function Sr(t){}function Cr(){de&&!he&&(le.observe(nt[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[c.i,c.c,c.s]}),fe.observe(I?et[0]:ut[0],{attributes:!0,attributeOldValue:!0,subtree:!I,childList:!I,characterData:!I,attributeFilter:I?["wrap","cols","rows"]:[c.i,c.c,c.s]}),he=!0)}function Ar(){de&&he&&(le.disconnect(),fe.disconnect(),he=!1)}function zr(){if(!_){var t=it[0],e={w:t[c.sW],h:t[c.sH]};if(W){var n=gi(e,$t);$t=e,n&&Jr(!0,!1)}else $t=e}}function Er(){Oe&&ri(!0)}function Hr(){Oe&&!tt.hasClass(sr)&&ri(!1)}function Wr(){ge&&(ri(!0),clearTimeout(me),me=setTimeout(function(){ge&&!T&&ri(!1)},100))}function Tr(t){_||(Q!==n?clearTimeout(Q):((be||ge)&&ri(!0),vi()||Ci(nt,Hn),ci("onScrollStart",t)),oi(!0,st[cn]()),oi(!1,st[un]()),ci("onScroll",t),Q=setTimeout(function(){T||(Ir(),ci("onScrollStop",t))},Ne))}function Ir(){clearTimeout(Q),Q=n,(be||ge)&&ri(!1),vi()||Ai(nt,Hn)}function kr(){Gr(),We.update(Ge)}function Lr(t){var e=t.keyCode;if(!pi(e)){if(0===yr.length){var n=function(){Gr(),We.update(Ge)};n(),pe=setInterval(n,1e3/60)}-1===r.inArray(e,yr)&&yr.push(e)}}function Pr(t){var e=t.keyCode;if(!pi(e)){var n=r.inArray(e,yr);n>-1&&yr.splice(n,1),0===yr.length&&(Gr(),We.update(Ge),clearInterval(pe))}}function Nr(){setTimeout(function(){T||(Gr(),We.update(Ge))},50)}function qr(){ve=!0}function Rr(){ve=!1,clearInterval(pe),yr=[],Gr(),We.update(Ge)}function Dr(t){return et[cn](w.i&&ne?9999999:0),et[un](0),i.prvD(t),i.stpP(t),!1}function jr(t){if(!_){var e=(t.originalEvent||t).touches!==n;(1===i.mBtn(t)||e)&&(he&&(Ce=!0,Ar()),mr=i.page(t),wr.w=nt[0][c.oW]-(P?0:q),wr.h=nt[0][c.oH]-(P?0:R),J.on(mn,Ur).on(hn,Fr).on(fn,Br),Ci(tt,sr),ft.setCapture&&ft.setCapture(),i.prvD(t),i.stpP(t))}}function Fr(t){var e=i.page(t),n={};(Ee||ze)&&(n[Xe]=wr.w+e.x-mr.x),(He||ze)&&(n[Ye]=wr.h+e.y-mr.y),nt.css(n),i.stpP(t)}function Br(t){var e=t!==n;J.off(mn,Ur).off(hn,Fr).off(fn,Br),Ai(tt,sr),ft.releaseCapture&&ft.releaseCapture(),e&&(Ce&&Cr(),We.update(Ge)),Ce=!1}function Ur(t){return i.prvD(t),!1}function _r(){Jr()}function Qr(){var t={};return k&&ct&&(t.w=hi(ct.css(Qe+Xe)),t.h=hi(ct.css(Qe+Ye)),t.c=gi(t,se),t.f=!0),se=t,t.c||!1}function Vr(t,e){var i=e!==n&&null!==e?e.split(rn):$e,o=t!==n&&null!==t?t.split(rn):$e;if(i===$e&&o===$e)return!1;var a,s,c,u,l=fi(o,i),f=!1,h=ie!==n&&null!==ie?ie.split(rn):[$e],d=re!==n&&null!==re?re.split(rn):[$e],p=r.inArray(cr,l),v=l[a];for(p>-1&&l.splice(p,1),a=0;a0&&W&&a-K0?X:cr)),Qt&&(!0===_t?(Ar(),p.add(We)):null===_t&&x?(Ar(),p.add(We)):(p.remove(We),Cr())),Tt)if(mt)if(ot===n&&(ot=r(mi(Fn)),at.before(ot)),N)rt.show();else{rt=r(mi(Bn)),ot.before(rt);var le={w:-1,h:-1};gr(rt,function(){var t={w:rt[0][c.oW],h:rt[0][c.oH]};gi(t,le)&&(W&&St&&t.h>0||Mt&&t.w>0?Jr():(W&&!St&&0===t.h||!Mt&&0===t.w)&&Jr()),le=t}),N=!0,null!==O&&rt.css(Ye,O+"(100% + 1px)")}else N&&rt.hide();o&&(it.find("*").trigger(Je),N&&rt.find("*").trigger(Je));var fe,de=nt.css("direction"),pe=bi(de,Wt,o),ye=nt.css("box-sizing"),me=bi(ye,At,o),Se={c:o,t:hi(nt.css(De+Fe)),r:hi(nt.css(De+Be)),b:hi(nt.css(De+Ue)),l:hi(nt.css(De+_e))};try{fe=N?rt[0].getBoundingClientRect():null}catch(qi){return}P="border-box"===ye;var Ce=(U="rtl"===de)?_e:Be,Ie=U?Be:_e,ke=nt[0],Ne=at[0],qe=!1,nn=!(!N||"none"===nt.css(Ke))&&(0===Math.round(fe.right-fe.left)&&(!!dt||ke[c.cW]-q>0));if(mt&&!nn){var on=ke[c.oW],an=ot.css(Xe);ot.css(Xe,Ge);var sn=ke[c.oW];ot.css(Xe,an),(qe=on!==sn)||(ot.css(Xe,on+1),sn=ke[c.oW],ot.css(Xe,an),qe=on!==sn)}var fn=(nn||qe)&&mt&&!u,vn=bi(fn,Mt,o),yn=!fn&&Mt,mn=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e]=Cn.cw?Cn.iw-(dt?q:0)+(P?-D:q)+(y.y?m.y:0):$e),An[Xe]=Ge,kn[Ve+Xe]=Ze):(vn||pt)&&(An[Ve+Xe]=$e,An[Xe]=Ze,An[Ke]=$e,kn[Ve+Xe]=$e),fn&&(Cn.cw||(An[Ve+Xe]=$e),kn[Xe]=I&&Yt?Nn.dw:Ge,An[Xe]=Ge,An[Ke]=Ie),mn&&(Cn.ch||(An[Ve+Ye]=$e),kn[Ye]=I?$t?Nn.dh:Ge:ut[0][c.cH]),mt&&ot.css(kn),ut.css(An),An={},kn={},gt=gt||{x:!1,y:!1},t||e||pe||me||pt||vn||fn||wn||mn||Cn.c||Ut||Xt||yt||Z||S||Kt||ce||ht||pt||Kt||ce||o){var qn="overflow",Rn=qn+"-x",Dn=qn+"-y",Un="hidden",_n="visible",Qn=H?y.x||y.y||Le.w0&&(kn[Xe]=Math.max(1,kn[Xe]),kn[Ye]=Math.max(1,kn[Ye])),I&<.css(ur),ot.css(kn)}fn&&(An[Xe]=Ze),!fn||P||he||(An[Ke]="none"),ut.css(An),An={};var lr=Kn.getBoundingClientRect(),dr={w:Math.max(Kn[c.sW],$n[c.sW]),h:Math.max(Kn[c.sH],$n[c.sH])};if(Qn&&ut.css(qn,$e),lr.width){var pr=lr.width,vr=lr.height,yr=.001;dr.w+=hi(pr+yr)-pr,dr.h+=hi(vr+yr)-vr}dr.c=e=gi(dr,xt,o),xt=dr,t=gi(tr={w:ke[c.cW],h:ke[c.cH]},wt),wt=tr;var mr={x:"v-s"===Vt.x,y:"v-s"===Vt.y},wr={x:"v-h"===Vt.x,y:"v-h"===Vt.y},Or={x:"s"===Vt.x,y:"s"===Vt.y},zr={x:Math.max(0,Math.round(100*(dr.w-tr.w+(dt?q:0)))/100),y:Math.max(0,Math.round(100*(dr.h-tr.h+(dt?R:0)))/100)},Tr=I&&(0===Le.w||0===Le.h);Tr&&(zr.x=0,zr.y=0);var Ir={x:zr.x>0,y:zr.y>0},kr={x:Ir.x,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dn]=Je,Bt?Ur():(Fr[Ce]=-(y.y?m.y:M.y),Te.w=y.y?m.x:0)):(Fr[Dn]=$e,Ur()),(Le.h-1,Ni=Li.y>-1;(Pi||Ni)&&(Ni&&st[un](Li.y),Pi&&(U&&ne&&w.i?st[cn](0):st[cn](Li.x)))}Ft=xi}else I||(U&&w.i&&y.y&&Ir.x&&ne&&(f.l+=Te.w||0),st[cn](f.l),st[un](f.t));pe&&ci("onDirectionChanged",{isRTL:U,dir:de}),t&&ci("onHostSizeChanged",{width:wt.w,height:wt.h}),e&&ci("onContentSizeChanged",{width:xt.w,height:xt.h}),(Ir.c||kr.c)&&ci("onOverflowChanged",{x:Ir.x,y:Ir.y,xScrollable:kr.xs,yScrollable:kr.ys,clipped:kr.x||kr.y}),zr.c&&ci("onOverflowAmountChanged",{x:zr.x,y:zr.y})}k&&(Ir.c||se.c)&&(se.f||Qr(),y.y&&Ir.x&&ut.css(Qe+Xe,se.w+m.y),y.x&&Ir.y&&ut.css(Qe+Ye,se.h+m.x),se.c=!1),Sr(it),Sr(rt),ci("onUpdated",{forced:o})}}function Zr(t){X=Si(!0,{},X,S.v(t,S.t,!0)),Y=Si(!0,{},Y,S.v(t,S.t,!1,!0))}function ti(){ht=r(mi(Xn+rn+or)),dt=r(mi(Yn)),pt=r(mi($n)),vt=r(mi(Xn+rn+ar)),yt=r(mi(Yn)),mt=r(mi($n)),ht.append(dt),dt.append(pt),vt.append(yt),yt.append(mt),at.after(vt),at.after(ht),C&&(ht.on(wn,function(t){t.target===ht[0]&&(ii(!0),oi(!0,st[cn]()))}),vt.on(wn,function(t){t.target===vt[0]&&(ii(!1),oi(!1,st[un]()))})),ei(!0),ei(!1),ft=r(mi(tr)),nt.append(ft)}function ei(t){var e,o,a,s=si(t),c=s.xy,u=Je+s.LT,l="active",f=1,h=[16,17],d=function(){f=.5},p=function(){f=1},v=function(n){var r=s.i.tl,a=s.i.hl,l=s.i.ms*((i.page(n)[c]-o)/(r-a));l=isFinite(l)?l:0,U&&t&&!w.i&&(l*=-1),st[u](e+l),z||i.prvD(n)},y=function(t){t=t||t.originalEvent;var r=nt[0].getBoundingClientRect(),i=t.clientX>=r.left&&t.clientX<=r.right&&t.clientY>=r.top&&t.clientY<=r.bottom;Ai(tt,sr),Ai(s.h,l),Ai(s.t,l),Ai(s.s,l),J.off(hn,v).off(fn,y).off(vn,m).off(yn,x).off(mn,Ur),p(),e=n,o=n,a!==n&&(We.scrollStop(),clearTimeout(a),a=n),i||Hr(),(be||ge)&&ri(!1)},m=function(t){r.inArray(t.keyCode,h)>-1&&d()},x=function(t){r.inArray(t.keyCode,h)>-1&&p()},g=function(t){var e=(t.originalEvent||t).touches!==n;return!(_||vi()||!te||e&&!Me)&&(1===i.mBtn(t)||e)},O=function(r){e=(e=st[u]())===n?0:e,(U&&t&&!w.n||!U)&&(e=e<0?0:e),o=i.page(r)[c],Ci(tt,sr),Ci(s.h,l),Ci(s.s,l),J.on(hn,v).on(fn,y).on(mn,Ur),!b&&L||i.prvD(r),i.stpP(r)};s.h.on(ln,function(t){g(t)&&O(t)}),s.t.on(ln,function(e){if(g(e)){var r,h,p=Le[s._wh],v=s.t.offset()[s.lt],b=e.ctrlKey,M=e.shiftKey,S=M&&b,C=!0,A="linear",z=function(){if(!T){var i=o-v,c=s.i.tl,l=s.i.ho,d=s.i.hl,y=s.i.ms,m=270*f,x=C?Math.max(400,m):m,b=y*((i-d/2)/(c-d)),g=U&&t&&(!w.i&&!w.n||ne),E=g?li,H={};M?(b=isFinite(b)?b:0,U&&t&&!w.i&&(b=y-b),S?(H.n=!1,H[s.xy]=b,We.scroll(H,130,A,function(){O(e)})):(st[u](b),O(e))):(r=C?E:r,h=g?r?l+d>=i:l<=i:r?l<=i:l+d>=i,H[s.xy]=r?"-="+p:"+="+p,We.scrollStop(),We.scroll(H,m,A),h?(clearTimeout(a),We.scrollStop(),a=n):a=setTimeout(z,x),C=!1)}};b&&d(),o=i.page(e)[c],Ci(tt,sr),Ci(s.t,l),Ci(s.s,l),J.on(fn,y).on(vn,m).on(yn,x).on(mn,Ur),z(),i.prvD(e),i.stpP(e)}}).hover(function(){(be||ge)&&(Se=!0,ri(!0))},function(){(be||ge)&&(Se=!1,ri(!1))}),s.s.on(ln,function(t){i.stpP(t)})}function ni(t,e,n){var r=t?Sn:Cn,i=t?ht:vt;e?Ai(nt,r):Ci(nt,r),n?Ai(i,Jn):Ci(i,Jn)}function ri(t,e){if(clearTimeout(ye),t)Ai(ht,Zn),Ai(vt,Zn);else{var n="active",r=function(){if(!Se&&!T){var t=pt.hasClass(n)||mt.hasClass(n);!t&&(be||ge||Oe)&&Ci(ht,Zn),!t&&(be||ge||Oe)&&Ci(vt,Zn)}};we>0&&!0!==e?ye=setTimeout(r,we):r()}}function ii(t){var e={},n=si(t),r=1e6,i=Math.min(1,(wt[n._wh]-(It?t?q:R:0))/xt[n._wh]);e[n.wh]=Math.floor(100*i*r)/r+"%",vi()||n.h.css(e),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=i}function oi(t,e){var n,r,i,o=U&&t,a={},s=si(t),c="translate(",u="transform",l=st[0][Je+s.WH]-st[0]["client"+s.WH],f=s.i.hl,h=s.t[0]["offset"+s.WH],d=h-f;w.n&&o&&(l*=-1),i=e/l,i=isNaN(i)?0:Math.min(1,i),s.i.ms=l,s.i.cs=e,s.i.csr=i,d*=i,d=isNaN(d)?0:d,o&&!w.i&&(d=h-f-d),d=Math.max(0,d),A?(r=(r=o?-(h-f-d):d)/h*100*(h/f),n=t?c+r+"%, 0)":c+"0, "+r+"%)",a["-webkit-"+u]=n,a["-moz-"+u]=n,a["-ms-"+u]=n,a["-o-"+u]=n,a[u]=n):a[s.lt]=d,vi()||s.h.css(a),s.i.ho=d,s.i.tl=h}function ai(t,e){var n=e?"removeClass":"addClass",r=t?yt:mt,i=t?Kn:Gn;(t?dt:pt)[n](i),r[n](i)}function si(t){return{wh:t?Xe:Ye,WH:t?"Width":"Height",lt:t?_e:Fe,LT:t?"Left":"Top",xy:t?tn:en,XY:t?"X":"Y",_wh:t?"w":"h",_lt:t?"l":"t",t:t?dt:yt,h:t?pt:mt,s:t?ht:vt,i:t?Ie:ke}}function ci(t,e){if(W){var n,i=Y.callbacks[t],o=t;"on"===o.substr(0,2)&&(o=o.substr(2,1).toLowerCase()+o.substr(3)),Mi(i)==s.f&&i.call(We,e),r.each(ur,function(){Mi((n=this).on)==s.f&&n.on(o,e)})}}function ui(t,e,r){r===n&&(r=[$e,$e,$e,$e]),t[e+Fe]=r[0],t[e+Be]=r[1],t[e+Ue]=r[2],t[e+_e]=r[3]}function li(e){var n="ownerDocument",r="HTMLElement",i=e&&e[n]&&e[n].parentWindow||t;return typeof i[r]==s.o?e instanceof i[r]:e&&typeof e==s.o&&null!==e&&1===e.nodeType&&typeof e.nodeName==s.s}function fi(t,e){var n,r,i=[],o=[];for(n=0;nf&&(l=r+1,f=e);return{cR:h,cC:d,r:c,c:f,w:l,p:t,m:a}}}function pi(t){for(var e=0;e"+(e||$e)+""}function wi(t,e){for(var n,r=e.split(nn),i=0;i9||!x?et.on("input",kr):et.on(vn,Lr).on(yn,Pr)}else Ci(et,On),(nt=et).wrapInner(mi(Dn)).wrapInner(mi(Nn)).wrapInner(mi(Pn)),ut=Ei(nt,nn+Dn),st=Ei(nt,nn+Nn),at=Ei(nt,nn+Pn),ut.on(wn,function(t){!0!==Rt&&$r((t=t.originalEvent||t).propertyName)&&Jr(Ge)});if(ti(),z?xr(st,Je,Tr):st.on(Je,Tr),g&&Ci(st,y.x&&y.y?Rn:qn),de){var l,f,h,p,v,S,P=i.mO(),N=i.now();le=new P(function(t){if(W&&!_){var e,n=!1;r.each(t,function(){if(l=(e=this).target,f=e.attributeName,n=f===c.c?Vr(e.oldValue,l.className):f!==c.s||e.oldValue!==l[c.s].cssText)return!1}),n&&We.update(Ge)}}),fe=new P(function(t){if(W&&!_){var e=!1;r.each(t,function(){return!(e=Xr(this))}),e&&(p=i.now(),v=St||Mt,S=function(){T||(N=p,I&&Gr(),v?We.update():We.update(Ge))},clearTimeout(h),pr<=0||p-N>pr||!v?S():h=setTimeout(S,pr))}})}return k&&(Ci(Z,gn),st[cn](a.l),st[un](a.t)),it=r(mi("os-resize-observer-host")),nt.prepend(it),gr(it,zr),zr(),We.update(Ge),setTimeout(function(){C&&!T&&Ci(nt,An)},333),W=!0,ci("onInitialized"),Mi(o)==s.s&&(o=[o]),r.isArray(o)?r.each(o,function(){We.addExt(this)}):r.isPlainObject(o)&&r.each(o,function(t,e){We.addExt(t,e)}),W}}return t[a]=function(e,i,s){if(0===arguments.length)return this;C();var c,l,h=[];return r.isPlainObject(i)?e&&e.length?(r.each(e,function(){(c=this)!==n&&h.push(E(c,i,s,u,f))}),l=h.length>1?h:h[0]):l=E(e,i,s,u,f):e&&(e.length&&e.length>0?(r.each(e,function(){c=o(this),"!"===i?c instanceof t[a]&&h.push(c):h.push(c)}),l=h.length>1?h:h[0]):l=o(e)),l},t[a].globals=function(){C();var t=r.extend(!0,{},u);return delete t.msie,t},t[a].defaultOptions=function(t){C();var e=u.defaultOptions;if(t===n)return r.extend(!0,{},e);u.defaultOptions=r.extend(!0,{},e,S.v(t,S.t,!0))},t[a].extension=function(t,e,n){var i=r.type(t)==s.s,o=arguments[c.l],a=0;if(o<1||!i)return r.extend(!0,{length:M[c.l]},M);if(i)if(r.type(e)==s.f)M.push({name:t,extension:e,defaultOptions:n});else for(;a1))return r.extend(!0,{},M[a]);M.splice(a,1)}},t[a]}(function(r){var i=/[^\x20\t\r\n\f]+/g,o=Object.prototype.toString,a=" ",u="",l="scrollLeft",f="scrollTop",h=[],d={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},p={swing:function(t,e,n,r,i){return.5-Math.cos(t*Math.PI)/2},linear:function(t,e,n,r,i){return t},easeInQuad:function(t,e,n,r,i){return r*(e/=i)*e+n},easeOutQuad:function(t,e,n,r,i){return-r*(e/=i)*(e-2)+n},easeInOutQuad:function(t,e,n,r,i){return(e/=i/2)<1?r/2*e*e+n:-r/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,r,i){return r*(e/=i)*e*e+n},easeOutCubic:function(t,e,n,r,i){return r*((e=e/i-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,r,i){return(e/=i/2)<1?r/2*e*e*e+n:r/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,r,i){return r*(e/=i)*e*e*e+n},easeOutQuart:function(t,e,n,r,i){return-r*((e=e/i-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,r,i){return(e/=i/2)<1?r/2*e*e*e*e+n:-r/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,r,i){return r*(e/=i)*e*e*e*e+n},easeOutQuint:function(t,e,n,r,i){return r*((e=e/i-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,r,i){return(e/=i/2)<1?r/2*e*e*e*e*e+n:r/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,r,i){return-r*Math.cos(e/i*(Math.PI/2))+r+n},easeOutSine:function(t,e,n,r,i){return r*Math.sin(e/i*(Math.PI/2))+n},easeInOutSine:function(t,e,n,r,i){return-r/2*(Math.cos(Math.PI*e/i)-1)+n},easeInExpo:function(t,e,n,r,i){return 0==e?n:r*Math.pow(2,10*(e/i-1))+n},easeOutExpo:function(t,e,n,r,i){return e==i?n+r:r*(1-Math.pow(2,-10*e/i))+n},easeInOutExpo:function(t,e,n,r,i){return 0==e?n:e==i?n+r:(e/=i/2)<1?r/2*Math.pow(2,10*(e-1))+n:r/2*(2-Math.pow(2,-10*--e))+n},easeInCirc:function(t,e,n,r,i){return-r*(Math.sqrt(1-(e/=i)*e)-1)+n},easeOutCirc:function(t,e,n,r,i){return r*Math.sqrt(1-(e=e/i-1)*e)+n},easeInOutCirc:function(t,e,n,r,i){return(e/=i/2)<1?-r/2*(Math.sqrt(1-e*e)-1)+n:r/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,r,i){var o=1.70158,a=0,s=r;if(0==e)return n;if(1==(e/=i))return n+r;if(a||(a=.3*i),s0&&n-1 in e)}function C(t){return(t.match(i)||[]).join(a)}function A(t,n){for(var r=(t.parentNode||e).querySelectorAll(n)||[],i=r[c.l];i--;)if(r[i]==t)return!0;return!1}function z(t,e,n){if(y(n)==s.a)for(var r=0;r0?(r=t.q[0],I(t.el,r.props,r.duration,r.easing,r.complete,!0)):(n=g(t,h))>-1&&h.splice(n,1)}function T(t,e,n){e===l?t[e]=n:e===f?t[e]=n:E(t,e,n)}function I(t,e,i,o,a,s){var u,d,v,y,w,O,S=b(i),C={},A={},z=0;for(S?(o=i.easing,i.start,v=i.progress,y=i.step,w=i.specialEasing,a=i.complete,O=i.duration):O=i,w=w||{},O=O||400,o=o||"swing",s=s||!1;z0)N=r.now(),q=function(){for(u in E=r.now(),R=E-N,H=j.stop||R>=O,I=1-(Math.max(0,N+O-E)/O||0),A)k=parseFloat(C[u]),L=parseFloat(A[u]),P=(L-k)*p[w[u]||o](I,I*O,0,1,O)+k,T(t,u,P),m(y)&&y(P,{elem:t,prop:u,start:k,now:P,end:L,pos:I,options:{easing:o,speacialEasing:w,duration:O,complete:a,step:y},startTime:N});m(v)&&v({},I,Math.max(0,O-R)),H?(W(d),m(a)&&a()):j.frame=r.rAF()(q)},j.frame=r.rAF()(q);else{for(u in A)T(t,u,A[u]);W(d)}}}function k(t,e,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)T(t,a,o.props[a]);e?i.q=[]:W(i,!1)}break}}return M.prototype={on:function(t,e){var n,r=(t=(t||u).match(i)||[u])[c.l],o=0;return this.each(function(){n=this;try{if(n.addEventListener)for(;o0;)i=i.childNodes[0];for(e=0;n[c.l]-e;i.firstChild===n[0]&&e++)i.appendChild(n[e]);var s=a?a.nextSibling:o.firstChild;return o.insertBefore(r,s),this},wrapInner:function(t){return this.each(function(){var e=M(this),n=e.contents();n[c.l]?n.wrapAll(t):e.append(t)})},wrap:function(t){return this.each(function(){M(this).wrapAll(t)})},css:function(e,r){var i,o,a,u=t.getComputedStyle;return y(e)==s.s?r===n?(i=this[0],a=u?u(i,null):i.currentStyle[e],u&&null!=a?a.getPropertyValue(e):i[c.s][e]):this.each(function(){E(this,e,r)}):this.each(function(){for(o in e)E(this,o,e[o])})},hasClass:function(t){for(var e,n,r=0,i=a+t+a;e=this[r++];)if(n=e.classList){if(n.contains(t))return!0}else if(1===e.nodeType&&(a+C(e.className+u)+a).indexOf(i)>-1)return!0;return!1},addClass:function(t){var e,r,o,s,c,l,f,h,d=0,p=0;if(t)for(e=t.match(i)||[];r=this[d++];)if(h=r.classList,f===n&&(f=h!==n),f)for(;c=e[p++];)h.add(c);else if(s=r.className+u,o=1===r.nodeType&&a+C(s)+a){for(;c=e[p++];)o.indexOf(a+c+a)<0&&(o+=c+a);s!==(l=C(o))&&(r.className=l)}return this},removeClass:function(t){var e,r,o,s,c,l,f,h,d=0,p=0;if(t)for(e=t.match(i)||[];r=this[d++];)if(h=r.classList,f===n&&(f=h!==n),f)for(;c=e[p++];)h.remove(c);else if(s=r.className+u,o=1===r.nodeType&&a+C(s)+a){for(;c=e[p++];)for(;o.indexOf(a+c+a)>-1;)o=o.replace(a+c+a,a);s!==(l=C(o))&&(r.className=l)}return this},hide:function(){return this.each(function(){this[c.s].display="none"})},show:function(){return this.each(function(){this[c.s].display="block"})},attr:function(t,e){for(var r=0;r=0?t:this[c.l]+t])},find:function(t){var e,n=[];return this.each(function(){var r=this.querySelectorAll(t);for(e=0;e-1){if(!(n>1))return i[a][o];delete t[o],i.splice(a,1)}}}));return l&&l.fn&&(l.fn.overlayScrollbars=function(t,e){var n=this;return l.isPlainObject(t)?(l.each(n,function(){f(this,t,e)}),n):f(n,t)}),f}); \ No newline at end of file diff --git a/js/jquery.overlayScrollbars.js b/js/jquery.overlayScrollbars.js index 8d3b48c..71dbfe2 100644 --- a/js/jquery.overlayScrollbars.js +++ b/js/jquery.overlayScrollbars.js @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.5.0 + * Version: 1.5.1 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 21.06.2018 + * Date: 13.07.2018 */ (function (global, factory) { @@ -159,7 +159,6 @@ // Calculate pageX/Y if not native supported if (!event[strPage + strX] && event[strClient + strX] && event[strClient + strX] != null) { - return { x : event[strClient + strX] + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - @@ -966,7 +965,7 @@ var _lastUpdateTime; var _swallowedUpdateParams = { }; var _swallowedUpdateTimeout; - var _swallowUpdateLag = 33; + var _swallowUpdateLag = 42; var _imgs = [ ]; //DOM elements: @@ -1768,9 +1767,9 @@ return false; var float; - var viewportScrollSize; var textareaValueLength = _isTextarea && _widthAutoCache && !_textareaAutoWrappingCache ? _targetElement.val().length : 0; var setCSS = !_mutationObserverConnected && _widthAutoCache && !_isTextarea; + var viewportScrollSize = { }; var css = { }; //fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1439305, it only works with "clipAlways : true" @@ -2481,11 +2480,16 @@ h: _isTextarea && textareaSize && !textareaDynHeight ? textareaSize.oh : heightAuto ? clientSize.h : scrollSize.h }; - //apply the correct viewport style + //apply the correct viewport style and measure viewport size viewportElementResetCSS[_strBottom] = wasHeightAuto ? _strEmpty : resetBottomTmp; viewportElementResetCSS[isRTLLeft] = wasWidthAuto ? _strEmpty : resetXTmp; _viewportElement.css(viewportElementResetCSS); - + //viewport size is padding container because it never has padding, margin and a border. + _viewportSize = { + w: paddingElement[LEXICON.oW], + h: paddingElement[LEXICON.oH] + }; + //measure and correct several sizes //has to be clientSize because offsetSize respect borders. var hostSize = { @@ -2581,12 +2585,6 @@ hostSizeChanged = checkCacheDouble(hostSize, _hostSizeCache); _hostSizeCache = hostSize; - //viewport size is padding container because it never has padding, margin and a border. - _viewportSize = { - w: paddingElement[LEXICON.oW], - h: paddingElement[LEXICON.oH] - }; - var overflowBehaviorIsVS = { x: overflowBehavior.x === 'v-s', y: overflowBehavior.y === 'v-s' @@ -2643,56 +2641,45 @@ //if native scrollbar is overlay at x OR y axis, prepare DOM if (_nativeScrollbarIsOverlaid.x || _nativeScrollbarIsOverlaid.y) { + var borderDesign = 'px solid transparent'; + var contentArrangeElementCSS = { }; + var arrangeContent = { }; var arrangeChanged = force; - var arrangeContent = {}; if (hasOverflow.x || hasOverflow.y) { arrangeContent.w = _nativeScrollbarIsOverlaid.y && hasOverflow.y ? contentScrollSize.w + _overlayScrollbarDummySize.y : _strEmpty; arrangeContent.h = _nativeScrollbarIsOverlaid.x && hasOverflow.x ? contentScrollSize.h + _overlayScrollbarDummySize.x : _strEmpty; - arrangeChanged = checkCacheSingle(arrangeContent, _arrangeContentSizeCache, force); _arrangeContentSizeCache = arrangeContent; } if (hasOverflow.c || hideOverflow.c || contentScrollSize.c || cssDirectionChanged || widthAutoChanged || heightAutoChanged || widthAuto || heightAuto || ignoreOverlayScrollbarHidingChanged) { - var borderDesign = 'px solid transparent'; - contentElementCSS[_strBorderMinus + isRTLRight] = _strEmpty; - contentElementCSS[_strMarginMinus + isRTLRight] = _strEmpty; + contentElementCSS[_strMarginMinus + isRTLRight] = contentElementCSS[_strBorderMinus + isRTLRight] = _strEmpty; if (_nativeScrollbarIsOverlaid.x && hasOverflow.x && hideOverflow.xs) { - if (heightAuto) - contentElementCSS[_strMarginMinus + _strBottom] = ignoreOverlayScrollbarHiding ? _strEmpty : _overlayScrollbarDummySize.x; - if (!heightAuto && !ignoreOverlayScrollbarHiding) - contentElementCSS[_strBorderMinus + _strBottom] = _overlayScrollbarDummySize.x + borderDesign; - else - contentElementCSS[_strBorderMinus + _strBottom] = _strEmpty; + contentElementCSS[_strMarginMinus + _strBottom] = heightAuto ? (ignoreOverlayScrollbarHiding ? _strEmpty : _overlayScrollbarDummySize.x) : _strEmpty; + contentElementCSS[_strBorderMinus + _strBottom] = (!heightAuto && !ignoreOverlayScrollbarHiding) ? (_overlayScrollbarDummySize.x + borderDesign) : _strEmpty; } else { - arrangeContent.h = _strEmpty; - arrangeChanged = true; + arrangeContent.h = + contentElementCSS[_strMarginMinus + _strBottom] = contentElementCSS[_strBorderMinus + _strBottom] = _strEmpty; - contentElementCSS[_strMarginMinus + _strBottom] = _strEmpty; + arrangeChanged = true; } if (_nativeScrollbarIsOverlaid.y && hasOverflow.y && hideOverflow.ys) { - if (widthAuto) - contentElementCSS[_strMarginMinus + isRTLLeft] = ignoreOverlayScrollbarHiding ? _strEmpty : _overlayScrollbarDummySize.y; - if (/* !widthAuto && */ !ignoreOverlayScrollbarHiding) - contentElementCSS[_strBorderMinus + isRTLLeft] = _overlayScrollbarDummySize.y + borderDesign; - else - contentElementCSS[_strBorderMinus + isRTLLeft] = _strEmpty; + contentElementCSS[_strMarginMinus + isRTLLeft] = widthAuto ? (ignoreOverlayScrollbarHiding ? _strEmpty : _overlayScrollbarDummySize.y) : _strEmpty; + contentElementCSS[_strBorderMinus + isRTLLeft] = (/* !widthAuto && */ !ignoreOverlayScrollbarHiding) ? (_overlayScrollbarDummySize.y + borderDesign) : _strEmpty; } else { - arrangeContent.w = _strEmpty; - arrangeChanged = true; + arrangeContent.w = + contentElementCSS[_strMarginMinus + isRTLLeft] = contentElementCSS[_strBorderMinus + isRTLLeft] = _strEmpty; - contentElementCSS[_strMarginMinus + isRTLLeft] = _strEmpty; + arrangeChanged = true; } } if (ignoreOverlayScrollbarHiding) { - arrangeContent.w = _strEmpty; - arrangeContent.h = _strEmpty; + arrangeContent.w = arrangeContent.h = _strEmpty; arrangeChanged = true; } if (arrangeChanged) { - var contentArrangeElementCSS = { }; contentArrangeElementCSS[_strWidth] = hideOverflow.y ? arrangeContent.w : _strEmpty; contentArrangeElementCSS[_strHeight] = hideOverflow.x ? arrangeContent.h : _strEmpty; @@ -2756,20 +2743,19 @@ viewportElementCSS[_strMarginMinus + isRTLRight] = -_nativeScrollbarMinSize.y; } else { - viewportElementCSS[_strPaddingMinus + _strTop] = _strEmpty; - viewportElementCSS[_strMarginMinus + _strTop] = _strEmpty; - - viewportElementCSS[_strPaddingMinus + isRTLRight] = _strEmpty; + viewportElementCSS[_strPaddingMinus + _strTop] = + viewportElementCSS[_strMarginMinus + _strTop] = + viewportElementCSS[_strPaddingMinus + isRTLRight] = viewportElementCSS[_strMarginMinus + isRTLRight] = _strEmpty; } - viewportElementCSS[_strPaddingMinus + isRTLLeft] = _strEmpty; + viewportElementCSS[_strPaddingMinus + isRTLLeft] = viewportElementCSS[_strMarginMinus + isRTLLeft] = _strEmpty; //if there is any overflow (x OR y axis) and this overflow shall be hidden, make overflow hidden, else overflow visible if ((hasOverflow.x && hideOverflow.x) || (hasOverflow.y && hideOverflow.y) || hideOverflowForceTextarea) { //only hide if is Textarea if (_isTextarea && hideOverflowForceTextarea) { - paddingElementCSS[strOverflowX] = strHidden; + paddingElementCSS[strOverflowX] = paddingElementCSS[strOverflowY] = strHidden; } } @@ -2777,10 +2763,10 @@ if (!clipAlways || (overflowBehaviorIsVH.x || overflowBehaviorIsVS.x || overflowBehaviorIsVH.y || overflowBehaviorIsVS.y)) { //only un-hide if Textarea if (_isTextarea) { - paddingElementCSS[strOverflowX] = _strEmpty; + paddingElementCSS[strOverflowX] = paddingElementCSS[strOverflowY] = _strEmpty; } - viewportElementCSS[strOverflowX] = strVisible; + viewportElementCSS[strOverflowX] = viewportElementCSS[strOverflowY] = strVisible; } } @@ -4345,6 +4331,7 @@ else margin = marginDefault; + //block = type(block) === TYPES.b ? block ? [ strNearest, strBegin ] : [ strNearest, strEnd ] : block; settingsAxis = checkSettingsStringValue(axis, elementObjSettingsAxisValues) ? axis : 'xy'; settingsScroll = getPerAxisValue(scroll, TYPES.s, strAlways, elementObjSettingsScrollValues); settingsBlock = getPerAxisValue(block, TYPES.s, strBegin, elementObjSettingsBlockValues); @@ -4377,7 +4364,7 @@ } //measuring is required - if (settingsBlock.x != strBegin || settingsBlock.y != strBegin || settingsScroll.x == strIfNeeded || settingsScroll.y == strIfNeeded) { + if (settingsBlock.x != strBegin || settingsBlock.y != strBegin || settingsScroll.x == strIfNeeded || settingsScroll.y == strIfNeeded || _isRTL) { var measuringElm = finalElement[0]; var rawElementSize = {}; var rect; @@ -4764,6 +4751,7 @@ return; var doUpdate = false; + //var doUpdateScrollbars = false; var mutation; framework.each(mutations, function () { mutation = this; @@ -4783,6 +4771,14 @@ if (doUpdate) _base.update(_strAuto); + /* + if(doUpdateScrollbars) { + refreshScrollbarHandleLength(true); + refreshScrollbarHandleOffset(true, _scrollHorizontalInfo.cs); + refreshScrollbarHandleLength(false); + refreshScrollbarHandleOffset(false, _scrollVerticalInfo.cs); + } + */ }); _mutationObserverContent = new mutationObserver(function (mutations) { if (!_initialized || _isSleeping) diff --git a/js/jquery.overlayScrollbars.min.js b/js/jquery.overlayScrollbars.min.js index 76337e0..4e559a3 100644 --- a/js/jquery.overlayScrollbars.min.js +++ b/js/jquery.overlayScrollbars.min.js @@ -2,12 +2,12 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.5.0 + * Version: 1.5.1 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 21.06.2018 + * Date: 13.07.2018 */ -!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(n){return e(t,t.document,undefined,n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(t,t.document,undefined,require("jquery")):e(t,t.document,undefined,t.jQuery)}("undefined"!=typeof window?window:this,function(t,e,n,r){"use strict";var i,o,a,s="OverlayScrollbars",c={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},l={c:"class",s:"style",i:"id",l:"length",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth"},u={wW:function(){return t.innerWidth||e.documentElement[l.cW]||e.body[l.cW]},wH:function(){return t.innerHeight||e.documentElement[l.cH]||e.body[l.cH]},mO:function(){return t.MutationObserver||t.WebKitMutationObserver||t.WebkitMutationObserver||t.MozMutationObserver||n},rO:function(){return t.ResizeObserver||t.WebKitResizeObserver||t.WebkitResizeObserver||t.MozResizeObserver||n},rAF:function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}},cAF:function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||t.msCancelAnimationFrame||function(e){return t.clearTimeout(e)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},prvD:function(t){t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1},page:function(t){var r="page",i="client",o="X",a="Y",s=((t=t.originalEvent||t).target||t.srcElement||e).ownerDocument||e,c=s.documentElement,l=s.body;if(t.touches!==n){var u=t.touches[0];return{x:u[r+o],y:u[r+a]}}return!t[r+o]&&t[i+o]&&null!=t[i+o]?{x:t[i+o]+(c&&c.scrollLeft||l&&l.scrollLeft||0)-(c&&c.clientLeft||l&&l.clientLeft||0),y:t[i+a]+(c&&c.scrollTop||l&&l.scrollTop||0)-(c&&c.clientTop||l&&l.clientTop||0)}:{x:t[r+o],y:t[r+a]}},mBtn:function(t){return t.which||t.button===n?t.which:1&t.button?1:2&t.button?3:4&t.button?2:0},inA:function(t,e){for(var n=0;n0?"\r\nValid strings are: [ "+T.join(", ").split(v).join(", ")+" ].":"")),delete t[s]}}};return l(s,e,a),o?r.extend(!0,a,s):!r.isEmptyObject(s)&&n&&console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(s,null,2)),a}});function M(){a||(a=new W(z.d)),u||(u=new H(a))}function W(a){var s=this,c="overflow",u="hidden",f="scroll",h=r("body"),d=r('
'),v=d[0],p=r(d.children("div").eq(0)),y=v[l.oH];h.append(d),0===y&&d.hide().show();var x,m,w,b,g,S,O,z,M,W=C(v),H={x:0===W.x,y:0===W.y};function A(t){var r=!1,i="Webkit Moz ms O".split(" "),o=e.createElement("div"),a=null,s=0;if(t=t.toLowerCase(),o[l.s][t]!==n&&(r=!0),!r)for(a=t.charAt(0).toUpperCase()+t.substr(1);s0?x=M(m[b](g+5,m[w](".",g)),10):S>0?x=M(m[b](z+3,m[w](".",z)),10):O>0&&(x=M(m[b](O+5,m[w](".",O)),10)),x),cssCalc:function(){var t,n,r=e.createElement("div"),i=["calc","-webkit-calc","-moz-calc","-o-calc"];for(t=0;t0){var t=i.wW(),c=i.wH(),f=t-e,v=c-n;if(0===f&&0===v)return;var p,y=Math.round(t/(e/100)),x=Math.round(c/(n/100)),m=Math.abs(f),w=Math.abs(v),b=Math.abs(y),g=Math.abs(x),S=u(),O=m>2&&w>2,z=!l(b,g),M=O&&z&&(S!==a&&a>0),W=s.nativeScrollbarSize;M&&(h.append(d),p=s.nativeScrollbarSize=C(d[0]),d.remove(),W.x===p.x&&W.y===p.y||r.each(o(),function(){o(this)&&o(this).update("zoom")})),e=t,n=c,a=S}};r(t).on("resize",c)}function l(t,e){var n=Math.abs(t),r=Math.abs(e);return!(n===r||n+1===r||n-1===r)}function u(){var e=t.screen.deviceXDPI||0,n=t.screen.logicalXDPI||1;return t.devicePixelRatio||e/n}}()}function H(t){var e,o=this,a="autoUpdate",s=a+"Interval",c=[],l=[],u=!1,f=33,h=f,d=i.now(),v=function(){if(c.length>0&&u){e=i.rAF()(function(){v()});var t=i.now(),r=t-d;if(r>h){d=t-r%h;for(var o=f,p=0;pw&&(y.update("auto"),l[p]=new Date(b+=w)),o=Math.max(1,Math.min(o,w))}}h=o}}else h=f};o.add=function(e){-1===r.inArray(e,c)&&(c.push(e),l.push(i.now()),c.length>0&&!u&&(u=!0,t.autoUpdateLoop=u,v()))},o.remove=function(o){var a=r.inArray(o,c);a>-1&&(l.splice(a,1),c.splice(a,1),0===c.length&&u&&(u=!1,t.autoUpdateLoop=u,e!==n&&(i.cAF()(e),e=-1)))}}function A(a,u,h,d,v){if(ui(a)){if(o(a)){var p=o(a);return p.options(u),p}var y,x,m,w,b,g,S,O,M,W,H,A,C,T,k,E,L,P,D,R,N,F,I,j,U,_,q,B,V,X,Y,K,J,Q,G,Z,$,tt,et,nt,rt,it,ot,at,st,ct,lt,ut,ft,ht,dt,vt,pt,yt,xt,mt,wt,bt,gt,St,Ot,zt,Mt,Wt,Ht,At,Ct,Tt,kt,Et,Lt,Pt,Dt,Rt,Nt,Ft,It,jt,Ut,_t,qt,Bt,Vt,Xt,Yt,Kt,Jt,Qt,Gt,Zt,$t,te,ee,ne,re,ie,oe,ae,se,ce,le,ue,fe,he,de,ve,pe,ye,xe,me,we,be,ge,Se,Oe,ze,Me,We,He,Ae,Ce,Te=new t[s],ke={},Ee={},Le={},Pe={},De={},Re=175,Ne="-hidden",Fe="margin-",Ie="padding-",je="border-",Ue="top",_e="right",qe="bottom",Be="left",Ve="min-",Xe="max-",Ye="width",Ke="height",Je="float",Qe="",Ge="auto",Ze="scroll",$e="100%",tn="x",en="y",nn=".",rn=" ",on="scrollbar",an="-horizontal",sn="-vertical",cn=Ze+"Left",ln=Ze+"Top",un="mousedown touchstart",fn="mouseup touchend touchcancel",hn="mousemove touchmove",dn="mouseenter",vn="mouseleave",pn="keydown",yn="keyup",xn="selectstart",mn="transitionend webkitTransitionEnd oTransitionEnd",wn="__overlayScrollbarsRO__",bn="os-",gn=bn+"html",Sn=bn+"host",On=Sn+"-textarea",zn=Sn+"-"+on+an+Ne,Mn=Sn+"-"+on+sn+Ne,Wn=Sn+"-transition",Hn=Sn+"-rtl",An=Sn+"-resize-disabled",Cn=Sn+"-scrolling",Tn=Sn+"-overflow",kn=Tn+"-x",En=Tn+"-y",Ln=bn+"textarea",Pn=Ln+"-cover",Dn=bn+"padding",Rn=bn+"viewport",Nn=Rn+"-native-scrollbars-invisible",Fn=Rn+"-native-scrollbars-overlaid",In=bn+"content",jn=bn+"content-arrange",Un=bn+"content-glue",_n=bn+"size-auto-observer",qn=bn+"resize-observer",Bn=bn+"resize-observer-item",Vn=Bn+"-final",Xn=bn+"text-inherit",Yn=bn+on,Kn=Yn+"-track",Jn=Kn+"-off",Qn=Yn+"-handle",Gn=Qn+"-off",Zn=Yn+"-unusable",$n=Yn+"-"+Ge+Ne,tr=Yn+"-corner",er=tr+"-resize",nr=er+"-both",rr=er+an,ir=er+sn,or=Yn+an,ar=Yn+sn,sr=bn+"dragging",cr=bn+"theme-none",lr={},ur="added removed on contract",fr={},hr=33,dr=[],vr=11,pr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],yr=[],xr={},mr={};if(Te.sleep=function(){B=!0},Te.update=function(t){var e,n,o="zoom"===t,a="img",s="load";t===Ge?(e=Jr(),n=Kr(),(e||n)&&Zr(!1,n)):o?Zr(!0,!0):(t=B||t,B=!1,Zr(!1,!1,t)),E||o||lt.find(a).each(function(t,e){-1===i.inA(e,dr)&&(e=r(e)).off(s,Br).on(s,Br)})},Te.options=function(t,e){if(r.isEmptyObject(t)||!r.isPlainObject(t)){if(Oi(t)==c.s){if(arguments.length>=2){var n={};return wi(n,t,e),$r(n),void Zr()}return mi(Y,t)}return Y}$r(t);var i=B||!1;B=!1,Zr(),B=i},Te.destroy=function(){for(var t in k=!0,v.remove(Te),Wr(),Sr(it),R&&Sr(rt),lr)Te.removeExt(t);Hi(it),ot!==n&&Hi(ot),ct!==n&&Hi(ct),R&&Hi(rt),H?(br(nt,hn,Tr),br(nt,dn,Ar),br(nt,vn,Cr)):nt.off(hn,Tr).off(dn,Ar).off(vn,Cr),Hi(ht),Hi(pt),ft&&Hi(ft),We||_r(),lt.contents().unwrap().unwrap().unwrap(),L&&Wi($,gn),E?(et.off(Ze,Ir).off("drop",Rr).off("focus",Nr).off("focusout",Fr),b>9||!w?et.off("input",Lr):et.off(pn,Pr).off(yn,Dr),Hi(ut),Wi(et,Ln+rn+Xn).unwrap().removeAttr(l.s),Hi(nt)):(Wi(et,Sn),Wi(nt,[Sn,An,Hn,zn,Mn,Wn,Cn,Tn,kn,En,cr,re].join(rn)));for(var e=0;e0)e.x=t[0],e.y=t[1];else if(Oi(t)==c.s||Oi(t)==c.n)e.x=t,e.y=t;else if(Oi(t)==c.o){for(var n in A=Oi(t.n)==c.b?t.n:A,t=zi({},t),x=0,t)t.hasOwnProperty(n)&&(x>2&&delete t[n],x++);var r=function(e){var n=e?C:T;for(x=0;x2){var p=r.substr(0,2);for(x=0;x/g,(d?"-":Qe)+$e))[v](/px/g,Qe))[v](/%/g,f+u*(h&&m.n?-1:1)/100))[v](/vw/g,f+Pe.w))[v](/vh/g,f+Pe.h),o=hi(t.parseFloat(t.eval(r)).toFixed())}else Oi(r)==c.n&&(o=r);if(!isNaN(o)&&o!==n&&Oi(o)==c.n){var y=A&&h,w=l*(y&&m.n?-1:1),b=y&&m.i,g=y&&m.n;switch(w=b?u-w:w,i){case"+=":a=w+o;break;case"-=":a=w-o;break;case"*=":a=w*o;break;case"/=":a=w/o;break;default:a=o}b&&(a=u-a),g&&(a*=-1),h&&m.n?(a=Math.max(u,a),a=Math.min(0,a)):(a=Math.min(u,a),a=Math.max(0,a)),a===l&&(a=n)}return a},Z=function(t,e,n,r){var i,o,a=[n,n],s=Oi(t);if(s==e)t=[t,t];else if(s==c.a){if((i=t.length)>2||i<1)t=a;else for(1===i&&(t[1]=n),x=0;x=4?$(et):ot:ct==c.o?$([et[Ue],et[_e],et[qe],et[Be]]):ot,S=J(nt,U)?nt:"xy",O=Z(rt,c.s,F,B),z=Z(it,c.s,D,_),M=et;var lt=H.offset();lt[Ue]-=M[0],lt[Be]-=M[3];var ut=at.offset(),ft={l:Ee.cs,t:Le.cs},ht={x:O.x==I||S==en,y:O.y==I||S==tn},dt={x:Math.round(lt[Be]-ut[Be]+ft.l),y:Math.round(lt[Ue]-ut[Ue]+ft.t)};if(q&&(m.n||m.i||(dt.x=Math.round(ut[Be]-lt[Be]+ft.l)),m.n&&A&&(dt.x*=-1),m.i&&A&&(dt.x=Math.round(ut[Be]-lt[Be]+(Ee.ms-ft.l)))),z.x!=D||z.y!=D||O.x==j||O.y==j){var vt,pt=H[0],yt={},xt={w:(yt=W?{w:(vt=pt.getBoundingClientRect())[Ye],h:vt[Ke]}:{w:pt[l.oW],h:pt[l.oH]}).w+M[3]+M[1],h:yt.h+M[0]+M[2]},mt=function(t){var e=si(t),n=e._wh,r=e.lt,i=e.xy,o=z[i]==(t&&q?D:P),a=z[i]==R,s=z[i]==N,c=O[i]==I,l=O[i]==j,u=Pe[n],f=ut[r],h=xt[n],d=lt[r],v=a?2:1,p=d+h/2,y=f+u/2,x=h<=u&&d>=f&&d+h<=f+u;c?ht[i]=!0:ht[i]||((s||l)&&(ht[i]=!!l&&x,o=hy:p0||L))if(L)st.animate(E,i);else{if(g={duration:i,complete:a},Oi(o)==c.a){var wt={};wt[cn]=o[0],wt[ln]=o[1],g.specialEasing=wt}else g.easing=o;st.animate(E,g)}else w&&st[cn](E[cn]),b&&st[ln](E[ln])},Te.scrollStop=function(t,e,n){return st.stop(t,e,n),Te},Te.getElements=function(t){var e={target:et[0],host:nt[0],padding:at[0],viewport:st[0],content:lt[0],scrollbarHorizontal:{scrollbar:ht[0],track:dt[0],handle:vt[0]},scrollbarVertical:{scrollbar:pt[0],track:yt[0],handle:xt[0]},scrollbarCorner:ft[0]};return Oi(t)==c.s?mi(e,t):e},Te.getState=function(t){var e=function(t){if(!r.isPlainObject(t))return t;var e=zi(!0,{},t),n=function(t,n){e.hasOwnProperty(t)&&(e[n]=e[t],delete e[t])};return n("w",Ye),n("h",Ke),delete e.c,e},n={sleeping:e(B)||!1,autoUpdate:e(!he),widthAuto:e(Ot),heightAuto:e(zt),padding:e(Ht),overflowAmount:e(Rt),hideOverflow:e(St),hasOverflow:e(gt),contentScrollSize:e(wt),viewportSize:e(Pe),hostSize:e(mt),documentMixed:e(P)};return Oi(t)==c.s?mi(n,t):n},Te.ext=function(t){var e,n=ur.split(" "),r=0;if(Oi(t)==c.s){if(lr.hasOwnProperty(t))for(e=zi(!0,{},lr[t]);r9||!w){t.prepend(xi(qn,xi({className:Bn,dir:"ltr"},xi(Bn,xi(Vn))+xi(Bn,xi({className:Vn,style:"width: 200%; height: 200%"})))));var v,p,y,x,g=t[0][u][0][u][0],S=r(g[u][1]),O=r(g[u][0]),z=r(O[0][u][0]),M=g[l.oW],W=g[l.oH],H=2,C=d.nativeScrollbarSize,T=function(){O[cn](o)[ln](o),S[cn](o)[ln](o)},k=function(){p=0,v&&(M=y,W=x,f())},E=function(t){return y=g[l.oW],x=g[l.oH],v=y!=M||x!=W,t&&v&&!p?(i.cAF()(p),p=i.rAF()(k)):t||k(),T(),t&&(i.prvD(t),i.stpP(t)),!1},L={},P={};P[Ue]=-(C.y+1)*H,P[_e]=C.x*-H,P[qe]=C.y*-H,P[Be]=-(C.x+1)*H,r(g).css(P),O.on(Ze,E),S.on(Ze,E),t.on(s,function(){E(!1)}),L[Ye]=o,L[Ke]=o,z.css(L),T()}else{var D=Z[0],R=D.attachEvent,N=b!==n;if(R)t.prepend(xi(qn)),Ai(t,nn+qn)[0].attachEvent("onresize",f);else{var F=D.createElement(c.o);F.setAttribute("tabindex","-1"),F.setAttribute(l.c,qn),F.onload=function(){var t=this.contentDocument.defaultView;t.addEventListener("resize",f),t.document.documentElement.style.display="none"},F.type="text/html",N&&t.prepend(F),F.data="about:blank",N||t.prepend(F),t.on(s,f)}}if(t[0]===it[0]){var I=function(){var e=nt.css("direction"),n={},r=0,i=!1;return e!==kt&&("ltr"===e?(n[Be]=0,n[_e]=Ge,r=o):(n[Be]=Ge,n[_e]=0,r=m.n?-o:m.i?0:o),it.children().eq(0).css(n),t[cn](r)[ln](o),kt=e,i=!0),i};I(),t.on(Ze,function(t){return I()&&Zr(),i.prvD(t),i.stpP(t),!1})}}function Sr(t){if(A){var e=t.contents()[0];e[wn].disconnect(),delete e[wn]}else Hi(t.children(nn+qn).eq(0))}function Or(t){}function zr(t){}function Mr(){de&&!he&&(ue.observe(nt[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[l.i,l.c,l.s]}),fe.observe(E?et[0]:lt[0],{attributes:!0,attributeOldValue:!0,subtree:!E,childList:!E,characterData:!E,attributeFilter:E?["wrap","cols","rows"]:[l.i,l.c,l.s]}),he=!0)}function Wr(){de&&he&&(ue.disconnect(),fe.disconnect(),he=!1)}function Hr(){if(!B){var t=it[0],e={w:t[l.sW],h:t[l.sH]};if(T){var n=gi(e,Qt);Qt=e,n&&Zr(!0,!1)}else Qt=e}}function Ar(){Se&&ri(!0)}function Cr(){Se&&!tt.hasClass(sr)&&ri(!1)}function Tr(){ge&&(ri(!0),clearTimeout(xe),xe=setTimeout(function(){ge&&!k&&ri(!1)},100))}function kr(t){B||(V!==n?clearTimeout(V):((be||ge)&&ri(!0),pi()||Mi(nt,Cn),ci("onScrollStart",t)),oi(!0,st[cn]()),oi(!1,st[ln]()),ci("onScroll",t),V=setTimeout(function(){k||(Er(),ci("onScrollStop",t))},Re))}function Er(){clearTimeout(V),V=n,(be||ge)&&ri(!1),pi()||Wi(nt,Cn)}function Lr(){Gr(),Te.update(Ge)}function Pr(t){var e=t.keyCode;if(!vi(e)){if(0===yr.length){var n=function(){Gr(),Te.update(Ge)};n(),ve=setInterval(n,1e3/60)}-1===r.inArray(e,yr)&&yr.push(e)}}function Dr(t){var e=t.keyCode;if(!vi(e)){var n=r.inArray(e,yr);n>-1&&yr.splice(n,1),0===yr.length&&(Gr(),Te.update(Ge),clearInterval(ve))}}function Rr(){setTimeout(function(){k||(Gr(),Te.update(Ge))},50)}function Nr(){pe=!0}function Fr(){pe=!1,clearInterval(ve),yr=[],Gr(),Te.update(Ge)}function Ir(t){return et[cn](m.i&&ne?9999999:0),et[ln](0),i.prvD(t),i.stpP(t),!1}function jr(t){if(!B){var e=(t.originalEvent||t).touches!==n;(1===i.mBtn(t)||e)&&(he&&(Me=!0,Wr()),xr=i.page(t),mr.w=nt[0][l.oW]-(D?0:N),mr.h=nt[0][l.oH]-(D?0:F),Z.on(xn,qr).on(hn,Ur).on(fn,_r),Mi(tt,sr),ft.setCapture&&ft.setCapture(),i.prvD(t),i.stpP(t))}}function Ur(t){var e=i.page(t),n={};(Ae||He)&&(n[Ye]=mr.w+e.x-xr.x),(Ce||He)&&(n[Ke]=mr.h+e.y-xr.y),nt.css(n),i.stpP(t)}function _r(t){var e=t!==n;Z.off(xn,qr).off(hn,Ur).off(fn,_r),Wi(tt,sr),ft.releaseCapture&&ft.releaseCapture(),e&&(Me&&Mr(),Te.update(Ge)),Me=!1}function qr(t){return i.prvD(t),!1}function Br(){Zr()}function Vr(){var t={};return L&&ct&&(t.w=hi(ct.css(Ve+Ye)),t.h=hi(ct.css(Ve+Ke)),t.c=gi(t,se),t.f=!0),se=t,t.c||!1}function Xr(t,e){var i=e!==n&&null!==e?e.split(rn):Qe,o=t!==n&&null!==t?t.split(rn):Qe;if(i===Qe&&o===Qe)return!1;var a,s,c,l,u=fi(o,i),f=!1,h=ie!==n&&null!==ie?ie.split(rn):[Qe],d=re!==n&&null!==re?re.split(rn):[Qe],v=r.inArray(cr,u),p=u[a];for(v>-1&&u.splice(v,1),a=0;a0&&T&&a-J0?Y:cr)),Vt&&(!0===Bt?(Wr(),v.add(Te)):null===Bt&&w?(Wr(),v.add(Te)):(v.remove(Te),Mr())),kt)if(xt)if(ot===n&&(ot=r(xi(Un)),at.before(ot)),R)rt.show();else{rt=r(xi(_n)),ot.before(rt);var ue={w:-1,h:-1};gr(rt,function(){var t={w:rt[0][l.oW],h:rt[0][l.oH]};gi(t,ue)&&(T&&zt&&t.h>0||Ot&&t.w>0?Zr():(T&&!zt&&0===t.h||!Ot&&0===t.w)&&Zr()),ue=t}),R=!0,null!==S&&rt.css(Ke,S+"(100% + 1px)")}else R&&rt.hide();o&&(it.find("*").trigger(Ze),R&&rt.find("*").trigger(Ze));var fe,de=nt.css("direction"),ve=bi(de,Tt,o),ye=nt.css("box-sizing"),xe=bi(ye,Wt,o),ze={c:o,t:hi(nt.css(Ie+Ue)),r:hi(nt.css(Ie+_e)),b:hi(nt.css(Ie+qe)),l:hi(nt.css(Ie+Be))};try{fe=R?rt[0].getBoundingClientRect():null}catch(Ni){return}D="border-box"===ye;var Me=(q="rtl"===de)?Be:_e,Ee=q?_e:Be,Le=nt[0],Re=at[0],Ne=!1,nn=!(!R||"none"===nt.css(Je))&&(0===Math.round(fe.right-fe.left)&&(!!dt||Le[l.cW]-N>0));if(xt&&!nn){var on=Le[l.oW],an=ot.css(Ye);ot.css(Ye,Ge);var sn=Le[l.oW];ot.css(Ye,an),(Ne=on!==sn)||(ot.css(Ye,on+1),sn=Le[l.oW],ot.css(Ye,an),Ne=on!==sn)}var fn=(nn||Ne)&&xt&&!c,pn=bi(fn,Ot,o),yn=!fn&&Ot,xn=!(!R||c)&&0===Math.round(fe.bottom-fe.top),mn=bi(xn,zt,o),wn=!xn&&zt,bn="-"+Ye,gn=fn&&D||!D,Sn=xn&&D||!D,On={c:o,t:Sn?hi(nt.css(je+Ue+bn)):0,r:gn?hi(nt.css(je+_e+bn)):0,b:Sn?hi(nt.css(je+qe+bn)):0,l:gn?hi(nt.css(je+Be+bn)):0},zn={c:o,t:hi(nt.css(Fe+Ue)),r:hi(nt.css(Fe+_e)),b:hi(nt.css(Fe+qe)),l:hi(nt.css(Fe+Be))},Mn={h:String(nt.css(Xe+Ke)),w:String(nt.css(Xe+Ye))},Wn={},Ln={};if(N=ze.l+ze.r,F=ze.t+ze.b,ze.c=Si(ze,Ht),I=On.l+On.r,j=On.t+On.b,On.c=Si(On,At),U=zn.l+zn.r,_=zn.t+zn.b,zn.c=Si(zn,Ct),Mn.ih=hi(Mn.h),Mn.iw=hi(Mn.w),Mn.ch=Mn.h.indexOf("px")>-1,Mn.cw=Mn.w.indexOf("px")>-1,Mn.c=gi(Mn,Mt,o),Tt=de,Wt=ye,Ot=fn,zt=xn,Ht=ze,At=On,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!fn||D||he||(Wn[Je]="none"),lt.css(Wn),Wn={};var ur=Jn.getBoundingClientRect(),dr={w:Math.max(Jn[l.sW],Qn[l.sW]),h:Math.max(Jn[l.sH],Qn[l.sH])};if(Vn&<.css(Nn,Qe),ur.width){var vr=ur.width,pr=ur.height,yr=.001;dr.w+=hi(vr+yr)-vr,dr.h+=hi(pr+yr)-pr}dr.c=e=gi(dr,wt,o),wt=dr,t=gi(tr={w:Le[l.cW],h:Le[l.cH]},mt),mt=tr,Pe={w:Re[l.oW],h:Re[l.oH]};var xr={x:"v-s"===Xt.x,y:"v-s"===Xt.y},mr={x:"v-h"===Xt.x,y:"v-h"===Xt.y},Sr={x:"s"===Xt.x,y:"s"===Xt.y},Hr={x:Math.max(0,Math.round(100*(dr.w-tr.w+(dt?N:0)))/100),y:Math.max(0,Math.round(100*(dr.h-tr.h+(dt?F:0)))/100)},kr=E&&(0===Pe.w||0===Pe.h);kr&&(Hr.x=0,Hr.y=0);var Er={x:Hr.x>0,y:Hr.y>0},Lr={x:Er.x,y:Er.y};(xr.x||mr.x)&&(Lr.x=Er.y&&!xr.y&&!mr.y),(xr.y||mr.y)&&(Lr.y=Er.x&&!xr.x&&!mr.x),Lr.xs=!!Lr.x&&(Sr.x||xr.x),Lr.ys=!!Lr.y&&(Sr.y||xr.y);var Pr={x:Er.x&&Lr.xs,y:Er.y&&Lr.ys},Dr=Rt;if(Hr.c=gi(Hr,Rt,tn,en,o),Rt=Hr,Er.c=gi(Er,gt,tn,en,o),gt=Er,Lr.c=gi(Lr,St,tn,en,o),St=Lr,y.x||y.y){var Rr=o,Nr={};if((Er.x||Er.y)&&(Nr.w=y.y&&Er.y?dr.w+x.y:Qe,Nr.h=y.x&&Er.x?dr.h+x.x:Qe,Rr=bi(Nr,bt,o),bt=Nr),Er.c||Lr.c||dr.c||ve||pn||mn||fn||xn||qt){var Fr="px solid transparent";Wn[je+Ee]=Qe,Wn[Fe+Ee]=Qe,y.x&&Er.x&&Lr.xs?(xn&&(Wn[Fe+qe]=_t?Qe:x.x),Wn[je+qe]=xn||_t?Qe:x.x+Fr):(Nr.h=Qe,Rr=!0,Wn[je+qe]=Qe,Wn[Fe+qe]=Qe),y.y&&Er.y&&Lr.ys?(fn&&(Wn[Fe+Me]=_t?Qe:x.y),Wn[je+Me]=_t?Qe:x.y+Fr):(Nr.w=Qe,Rr=!0,Wn[je+Me]=Qe,Wn[Fe+Me]=Qe)}if(_t&&(Nr.w=Qe,Nr.h=Qe,Rr=!0),Rr){var Ir={};Ir[Ye]=Lr.y?Nr.w:Qe,Ir[Ke]=Lr.x?Nr.h:Qe,ct||(ct=r(xi(jn)),st.prepend(ct)),ct.css(Ir)}lt.css(Wn)}var Ur={};Pn={};if(t||Er.c||Lr.c||dr.c||Yt||xe||qt||ve||yt||mn){Ur[Ee]=Qe;var _r=function(){Ur[qe]=Qe,ke.h=0},qr=function(){Ur[Me]=Qe,ke.w=0};if(Er.x&&Lr.xs?(Ur[Fn]=Ze,_t?_r():(Ur[qe]=-(y.x?x.x:O.x),ke.h=y.x?x.y:0)):(Ur[Fn]=Qe,_r()),Er.y&&Lr.ys?(Ur[In]=Ze,_t?qr():(Ur[Me]=-(y.y?x.y:O.y),ke.w=y.y?x.x:0)):(Ur[In]=Qe,qr()),(Pe.h-1,Ri=Pi.y>-1;(Di||Ri)&&(Ri&&st[ln](Pi.y),Di&&(q&&ne&&m.i?st[cn](0):st[cn](Pi.x)))}Ut=wi}else E||(q&&m.i&&y.y&&Er.x&&ne&&(f.l+=ke.w||0),st[cn](f.l),st[ln](f.t));ve&&ci("onDirectionChanged",{isRTL:q,dir:de}),t&&ci("onHostSizeChanged",{width:mt.w,height:mt.h}),e&&ci("onContentSizeChanged",{width:wt.w,height:wt.h}),(Er.c||Lr.c)&&ci("onOverflowChanged",{x:Er.x,y:Er.y,xScrollable:Lr.xs,yScrollable:Lr.ys,clipped:Lr.x||Lr.y}),Hr.c&&ci("onOverflowAmountChanged",{x:Hr.x,y:Hr.y})}L&&(Er.c||se.c)&&(se.f||Vr(),y.y&&Er.x&<.css(Ve+Ye,se.w+x.y),y.x&&Er.y&<.css(Ve+Ke,se.h+x.x),se.c=!1),zr(it),zr(rt),ci("onUpdated",{forced:o})}}function $r(t){Y=zi(!0,{},Y,z.v(t,z.t,!0)),K=zi(!0,{},K,z.v(t,z.t,!1,!0))}function ti(){ht=r(xi(Yn+rn+or)),dt=r(xi(Kn)),vt=r(xi(Qn)),pt=r(xi(Yn+rn+ar)),yt=r(xi(Kn)),xt=r(xi(Qn)),ht.append(dt),dt.append(vt),pt.append(yt),yt.append(xt),at.after(pt),at.after(ht),M&&(ht.on(mn,function(t){t.target===ht[0]&&(ii(!0),oi(!0,st[cn]()))}),pt.on(mn,function(t){t.target===pt[0]&&(ii(!1),oi(!1,st[ln]()))})),ei(!0),ei(!1),ft=r(xi(tr)),nt.append(ft)}function ei(t){var e,o,a,s=si(t),c=s.xy,l=Ze+s.LT,u="active",f=1,h=[16,17],d=function(){f=.5},v=function(){f=1},p=function(n){var r=s.i.tl,a=s.i.hl,u=s.i.ms*((i.page(n)[c]-o)/(r-a));u=isFinite(u)?u:0,q&&t&&!m.i&&(u*=-1),st[l](e+u),H||i.prvD(n)},y=function(t){t=t||t.originalEvent;var r=nt[0].getBoundingClientRect(),i=t.clientX>=r.left&&t.clientX<=r.right&&t.clientY>=r.top&&t.clientY<=r.bottom;Wi(tt,sr),Wi(s.h,u),Wi(s.t,u),Wi(s.s,u),Z.off(hn,p).off(fn,y).off(pn,x).off(yn,w).off(xn,qr),v(),e=n,o=n,a!==n&&(Te.scrollStop(),clearTimeout(a),a=n),i||Cr(),(be||ge)&&ri(!1)},x=function(t){r.inArray(t.keyCode,h)>-1&&d()},w=function(t){r.inArray(t.keyCode,h)>-1&&v()},g=function(t){var e=(t.originalEvent||t).touches!==n;return!(B||pi()||!te||e&&!Oe)&&(1===i.mBtn(t)||e)},S=function(r){e=(e=st[l]())===n?0:e,(q&&t&&!m.n||!q)&&(e=e<0?0:e),o=i.page(r)[c],Mi(tt,sr),Mi(s.h,u),Mi(s.s,u),Z.on(hn,p).on(fn,y).on(xn,qr),!b&&P||i.prvD(r),i.stpP(r)};s.h.on(un,function(t){g(t)&&S(t)}),s.t.on(un,function(e){if(g(e)){var r,h,v=Pe[s._wh],p=s.t.offset()[s.lt],b=e.ctrlKey,O=e.shiftKey,z=O&&b,M=!0,W="linear",H=function(){if(!k){var i=o-p,c=s.i.tl,u=s.i.ho,d=s.i.hl,y=s.i.ms,x=270*f,w=M?Math.max(400,x):x,b=y*((i-d/2)/(c-d)),g=q&&t&&(!m.i&&!m.n||ne),A=g?ui,C={};O?(b=isFinite(b)?b:0,q&&t&&!m.i&&(b=y-b),z?(C.n=!1,C[s.xy]=b,Te.scroll(C,130,W,function(){S(e)})):(st[l](b),S(e))):(r=M?A:r,h=g?r?u+d>=i:u<=i:r?u<=i:u+d>=i,C[s.xy]=r?"-="+v:"+="+v,Te.scrollStop(),Te.scroll(C,x,W),h?(clearTimeout(a),Te.scrollStop(),a=n):a=setTimeout(H,w),M=!1)}};b&&d(),o=i.page(e)[c],Mi(tt,sr),Mi(s.t,u),Mi(s.s,u),Z.on(fn,y).on(pn,x).on(yn,w).on(xn,qr),H(),i.prvD(e),i.stpP(e)}}).hover(function(){(be||ge)&&(ze=!0,ri(!0))},function(){(be||ge)&&(ze=!1,ri(!1))}),s.s.on(un,function(t){i.stpP(t)})}function ni(t,e,n){var r=t?zn:Mn,i=t?ht:pt;e?Wi(nt,r):Mi(nt,r),n?Wi(i,Zn):Mi(i,Zn)}function ri(t,e){if(clearTimeout(ye),t)Wi(ht,$n),Wi(pt,$n);else{var n="active",r=function(){if(!ze&&!k){var t=vt.hasClass(n)||xt.hasClass(n);!t&&(be||ge||Se)&&Mi(ht,$n),!t&&(be||ge||Se)&&Mi(pt,$n)}};me>0&&!0!==e?ye=setTimeout(r,me):r()}}function ii(t){var e={},n=si(t),r=1e6,i=Math.min(1,(mt[n._wh]-(Et?t?N:F:0))/wt[n._wh]);e[n.wh]=Math.floor(100*i*r)/r+"%",pi()||n.h.css(e),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=i}function oi(t,e){var n,r,i,o=q&&t,a={},s=si(t),c="translate(",l="transform",u=st[0][Ze+s.WH]-st[0]["client"+s.WH],f=s.i.hl,h=s.t[0]["offset"+s.WH],d=h-f;m.n&&o&&(u*=-1),i=e/u,i=isNaN(i)?0:Math.min(1,i),s.i.ms=u,s.i.cs=e,s.i.csr=i,d*=i,d=isNaN(d)?0:d,o&&!m.i&&(d=h-f-d),d=Math.max(0,d),W?(r=(r=o?-(h-f-d):d)/h*100*(h/f),n=t?c+r+"%, 0)":c+"0, "+r+"%)",a["-webkit-"+l]=n,a["-moz-"+l]=n,a["-ms-"+l]=n,a["-o-"+l]=n,a[l]=n):a[s.lt]=d,pi()||s.h.css(a),s.i.ho=d,s.i.tl=h}function ai(t,e){var n=e?"removeClass":"addClass",r=t?yt:xt,i=t?Jn:Gn;(t?dt:vt)[n](i),r[n](i)}function si(t){return{wh:t?Ye:Ke,WH:t?"Width":"Height",lt:t?Be:Ue,LT:t?"Left":"Top",xy:t?tn:en,XY:t?"X":"Y",_wh:t?"w":"h",_lt:t?"l":"t",t:t?dt:yt,h:t?vt:xt,s:t?ht:pt,i:t?Ee:Le}}function ci(t,e){if(T){var n,i=K.callbacks[t],o=t;"on"===o.substr(0,2)&&(o=o.substr(2,1).toLowerCase()+o.substr(3)),Oi(i)==c.f&&i.call(Te,e),r.each(lr,function(){Oi((n=this).on)==c.f&&n.on(o,e)})}}function li(t,e,r){r===n&&(r=[Qe,Qe,Qe,Qe]),t[e+Ue]=r[0],t[e+_e]=r[1],t[e+qe]=r[2],t[e+Be]=r[3]}function ui(e){var n="ownerDocument",r="HTMLElement",i=e&&e[n]&&e[n].parentWindow||t;return typeof i[r]==c.o?e instanceof i[r]:e&&typeof e==c.o&&null!==e&&1===e.nodeType&&typeof e.nodeName==c.s}function fi(t,e){var n,r,i=[],o=[];for(n=0;nf&&(u=r+1,f=e);return{cR:h,cC:d,r:c,c:f,w:u,p:t,m:a}}}function vi(t){for(var e=0;e"+(e||Qe)+""}function mi(t,e){for(var n,r=e.split(nn),i=0;i9||!w?et.on("input",Lr):et.on(pn,Pr).on(yn,Dr)}else Mi(et,Sn),(nt=et).wrapInner(xi(In)).wrapInner(xi(Rn)).wrapInner(xi(Dn)),lt=Ai(nt,nn+In),st=Ai(nt,nn+Rn),at=Ai(nt,nn+Dn),lt.on(mn,function(t){!0!==Ft&&Qr((t=t.originalEvent||t).propertyName)&&Zr(Ge)});if(ti(),H?wr(st,Ze,kr):st.on(Ze,kr),g&&Mi(st,y.x&&y.y?Fn:Nn),de){var u,f,h,v,p,z,D=i.mO(),R=i.now();ue=new D(function(t){if(T&&!B){var e,n=!1;r.each(t,function(){if(u=(e=this).target,f=e.attributeName,n=f===l.c?Xr(e.oldValue,u.className):f!==l.s||e.oldValue!==u[l.s].cssText)return!1}),n&&Te.update(Ge)}}),fe=new D(function(t){if(T&&!B){var e=!1;r.each(t,function(){return!(e=Yr(this))}),e&&(v=i.now(),p=zt||Ot,z=function(){k||(R=v,E&&Gr(),p?Te.update():Te.update(Ge))},clearTimeout(h),vr<=0||v-R>vr||!p?z():h=setTimeout(z,vr))}})}return L&&(Mi($,gn),st[cn](a.l),st[ln](a.t)),it=r(xi("os-resize-observer-host")),nt.prepend(it),gr(it,Hr),Hr(),Te.update(Ge),setTimeout(function(){M&&!k&&Mi(nt,Wn)},333),T=!0,ci("onInitialized"),Oi(o)==c.s&&(o=[o]),r.isArray(o)?r.each(o,function(){Te.addExt(this)}):r.isPlainObject(o)&&r.each(o,function(t,e){Te.addExt(t,e)}),T}}return t[s]=function(e,i,c){if(0===arguments.length)return this;M();var l,f,h=[];return r.isPlainObject(i)?e&&e.length?(r.each(e,function(){(l=this)!==n&&h.push(A(l,i,c,a,u))}),f=h.length>1?h:h[0]):f=A(e,i,c,a,u):e&&(e.length&&e.length>0?(r.each(e,function(){l=o(this),"!"===i?l instanceof t[s]&&h.push(l):h.push(l)}),f=h.length>1?h:h[0]):f=o(e)),f},t[s].globals=function(){M();var t=r.extend(!0,{},a);return delete t.msie,t},t[s].defaultOptions=function(t){M();var e=a.defaultOptions;if(t===n)return r.extend(!0,{},e);a.defaultOptions=r.extend(!0,{},e,z.v(t,z.t,!0))},t[s].extension=function(t,e,n){var i=r.type(t)==c.s,o=arguments[l.l],a=0;if(o<1||!i)return r.extend(!0,{length:O[l.l]},O);if(i)if(r.type(e)==c.f)O.push({name:t,extension:e,defaultOptions:n});else for(;a1))return r.extend(!0,{},O[a]);O.splice(a,1)}},t[s]}(r,u,(i=u,o=[],a="__overlayScrollbars__",function(t,e){var n=arguments[l.l];if(n<1)return o;if(e)t[a]=e,o.push(t);else{var r=i.inA(t,o);if(r>-1){if(!(n>1))return o[r][a];delete t[a],o.splice(r,1)}}}));return f&&f.fn&&(f.fn.overlayScrollbars=function(t,e){var n=this;return f.isPlainObject(t)?(f.each(n,function(){h(this,t,e)}),n):h(n,t)}),h}); \ No newline at end of file +!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(n){return e(t,t.document,undefined,n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(t,t.document,undefined,require("jquery")):e(t,t.document,undefined,t.jQuery)}("undefined"!=typeof window?window:this,function(t,e,n,r){"use strict";var i,o,a,s="OverlayScrollbars",c={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},l={c:"class",s:"style",i:"id",l:"length",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth"},u={wW:function(){return t.innerWidth||e.documentElement[l.cW]||e.body[l.cW]},wH:function(){return t.innerHeight||e.documentElement[l.cH]||e.body[l.cH]},mO:function(){return t.MutationObserver||t.WebKitMutationObserver||t.WebkitMutationObserver||t.MozMutationObserver||n},rO:function(){return t.ResizeObserver||t.WebKitResizeObserver||t.WebkitResizeObserver||t.MozResizeObserver||n},rAF:function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}},cAF:function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||t.msCancelAnimationFrame||function(e){return t.clearTimeout(e)}},now:function(){return Date.now()||(new Date).getTime()},stpP:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},prvD:function(t){t.preventDefault&&t.cancelable?t.preventDefault():t.returnValue=!1},page:function(t){var r="page",i="client",o="X",a="Y",s=((t=t.originalEvent||t).target||t.srcElement||e).ownerDocument||e,c=s.documentElement,l=s.body;if(t.touches!==n){var u=t.touches[0];return{x:u[r+o],y:u[r+a]}}return!t[r+o]&&t[i+o]&&null!=t[i+o]?{x:t[i+o]+(c&&c.scrollLeft||l&&l.scrollLeft||0)-(c&&c.clientLeft||l&&l.clientLeft||0),y:t[i+a]+(c&&c.scrollTop||l&&l.scrollTop||0)-(c&&c.clientTop||l&&l.clientTop||0)}:{x:t[r+o],y:t[r+a]}},mBtn:function(t){return t.which||t.button===n?t.which:1&t.button?1:2&t.button?3:4&t.button?2:0},inA:function(t,e){for(var n=0;n0?"\r\nValid strings are: [ "+T.join(", ").split(v).join(", ")+" ].":"")),delete t[s]}}};return l(s,e,a),o?r.extend(!0,a,s):!r.isEmptyObject(s)&&n&&console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(s,null,2)),a}});function M(){a||(a=new W(z.d)),u||(u=new H(a))}function W(a){var s=this,c="overflow",u="hidden",f="scroll",h=r("body"),d=r('
'),v=d[0],p=r(d.children("div").eq(0)),y=v[l.oH];h.append(d),0===y&&d.hide().show();var x,m,w,b,g,S,O,z,M,W=C(v),H={x:0===W.x,y:0===W.y};function A(t){var r=!1,i="Webkit Moz ms O".split(" "),o=e.createElement("div"),a=null,s=0;if(t=t.toLowerCase(),o[l.s][t]!==n&&(r=!0),!r)for(a=t.charAt(0).toUpperCase()+t.substr(1);s0?x=M(m[b](g+5,m[w](".",g)),10):S>0?x=M(m[b](z+3,m[w](".",z)),10):O>0&&(x=M(m[b](O+5,m[w](".",O)),10)),x),cssCalc:function(){var t,n,r=e.createElement("div"),i=["calc","-webkit-calc","-moz-calc","-o-calc"];for(t=0;t0){var t=i.wW(),c=i.wH(),f=t-e,v=c-n;if(0===f&&0===v)return;var p,y=Math.round(t/(e/100)),x=Math.round(c/(n/100)),m=Math.abs(f),w=Math.abs(v),b=Math.abs(y),g=Math.abs(x),S=u(),O=m>2&&w>2,z=!l(b,g),M=O&&z&&(S!==a&&a>0),W=s.nativeScrollbarSize;M&&(h.append(d),p=s.nativeScrollbarSize=C(d[0]),d.remove(),W.x===p.x&&W.y===p.y||r.each(o(),function(){o(this)&&o(this).update("zoom")})),e=t,n=c,a=S}};r(t).on("resize",c)}function l(t,e){var n=Math.abs(t),r=Math.abs(e);return!(n===r||n+1===r||n-1===r)}function u(){var e=t.screen.deviceXDPI||0,n=t.screen.logicalXDPI||1;return t.devicePixelRatio||e/n}}()}function H(t){var e,o=this,a="autoUpdate",s=a+"Interval",c=[],l=[],u=!1,f=33,h=f,d=i.now(),v=function(){if(c.length>0&&u){e=i.rAF()(function(){v()});var t=i.now(),r=t-d;if(r>h){d=t-r%h;for(var o=f,p=0;pw&&(y.update("auto"),l[p]=new Date(b+=w)),o=Math.max(1,Math.min(o,w))}}h=o}}else h=f};o.add=function(e){-1===r.inArray(e,c)&&(c.push(e),l.push(i.now()),c.length>0&&!u&&(u=!0,t.autoUpdateLoop=u,v()))},o.remove=function(o){var a=r.inArray(o,c);a>-1&&(l.splice(a,1),c.splice(a,1),0===c.length&&u&&(u=!1,t.autoUpdateLoop=u,e!==n&&(i.cAF()(e),e=-1)))}}function A(a,u,h,d,v){if(ui(a)){if(o(a)){var p=o(a);return p.options(u),p}var y,x,m,w,b,g,S,O,M,W,H,A,C,T,k,E,L,P,D,R,N,F,I,j,U,_,q,B,V,X,Y,K,J,Q,G,Z,$,tt,et,nt,rt,it,ot,at,st,ct,lt,ut,ft,ht,dt,vt,pt,yt,xt,mt,wt,bt,gt,St,Ot,zt,Mt,Wt,Ht,At,Ct,Tt,kt,Et,Lt,Pt,Dt,Rt,Nt,Ft,It,jt,Ut,_t,qt,Bt,Vt,Xt,Yt,Kt,Jt,Qt,Gt,Zt,$t,te,ee,ne,re,ie,oe,ae,se,ce,le,ue,fe,he,de,ve,pe,ye,xe,me,we,be,ge,Se,Oe,ze,Me,We,He,Ae,Ce,Te=new t[s],ke={},Ee={},Le={},Pe={},De={},Re=175,Ne="-hidden",Fe="margin-",Ie="padding-",je="border-",Ue="top",_e="right",qe="bottom",Be="left",Ve="min-",Xe="max-",Ye="width",Ke="height",Je="float",Qe="",Ge="auto",Ze="scroll",$e="100%",tn="x",en="y",nn=".",rn=" ",on="scrollbar",an="-horizontal",sn="-vertical",cn=Ze+"Left",ln=Ze+"Top",un="mousedown touchstart",fn="mouseup touchend touchcancel",hn="mousemove touchmove",dn="mouseenter",vn="mouseleave",pn="keydown",yn="keyup",xn="selectstart",mn="transitionend webkitTransitionEnd oTransitionEnd",wn="__overlayScrollbarsRO__",bn="os-",gn=bn+"html",Sn=bn+"host",On=Sn+"-textarea",zn=Sn+"-"+on+an+Ne,Mn=Sn+"-"+on+sn+Ne,Wn=Sn+"-transition",Hn=Sn+"-rtl",An=Sn+"-resize-disabled",Cn=Sn+"-scrolling",Tn=Sn+"-overflow",kn=Tn+"-x",En=Tn+"-y",Ln=bn+"textarea",Pn=Ln+"-cover",Dn=bn+"padding",Rn=bn+"viewport",Nn=Rn+"-native-scrollbars-invisible",Fn=Rn+"-native-scrollbars-overlaid",In=bn+"content",jn=bn+"content-arrange",Un=bn+"content-glue",_n=bn+"size-auto-observer",qn=bn+"resize-observer",Bn=bn+"resize-observer-item",Vn=Bn+"-final",Xn=bn+"text-inherit",Yn=bn+on,Kn=Yn+"-track",Jn=Kn+"-off",Qn=Yn+"-handle",Gn=Qn+"-off",Zn=Yn+"-unusable",$n=Yn+"-"+Ge+Ne,tr=Yn+"-corner",er=tr+"-resize",nr=er+"-both",rr=er+an,ir=er+sn,or=Yn+an,ar=Yn+sn,sr=bn+"dragging",cr=bn+"theme-none",lr={},ur="added removed on contract",fr={},hr=42,dr=[],vr=11,pr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],yr=[],xr={},mr={};if(Te.sleep=function(){B=!0},Te.update=function(t){var e,n,o="zoom"===t,a="img",s="load";t===Ge?(e=Jr(),n=Kr(),(e||n)&&Zr(!1,n)):o?Zr(!0,!0):(t=B||t,B=!1,Zr(!1,!1,t)),E||o||lt.find(a).each(function(t,e){-1===i.inA(e,dr)&&(e=r(e)).off(s,Br).on(s,Br)})},Te.options=function(t,e){if(r.isEmptyObject(t)||!r.isPlainObject(t)){if(Oi(t)==c.s){if(arguments.length>=2){var n={};return wi(n,t,e),$r(n),void Zr()}return mi(Y,t)}return Y}$r(t);var i=B||!1;B=!1,Zr(),B=i},Te.destroy=function(){for(var t in k=!0,v.remove(Te),Wr(),Sr(it),R&&Sr(rt),lr)Te.removeExt(t);Hi(it),ot!==n&&Hi(ot),ct!==n&&Hi(ct),R&&Hi(rt),H?(br(nt,hn,Tr),br(nt,dn,Ar),br(nt,vn,Cr)):nt.off(hn,Tr).off(dn,Ar).off(vn,Cr),Hi(ht),Hi(pt),ft&&Hi(ft),We||_r(),lt.contents().unwrap().unwrap().unwrap(),L&&Wi($,gn),E?(et.off(Ze,Ir).off("drop",Rr).off("focus",Nr).off("focusout",Fr),b>9||!w?et.off("input",Lr):et.off(pn,Pr).off(yn,Dr),Hi(ut),Wi(et,Ln+rn+Xn).unwrap().removeAttr(l.s),Hi(nt)):(Wi(et,Sn),Wi(nt,[Sn,An,Hn,zn,Mn,Wn,Cn,Tn,kn,En,cr,re].join(rn)));for(var e=0;e0)e.x=t[0],e.y=t[1];else if(Oi(t)==c.s||Oi(t)==c.n)e.x=t,e.y=t;else if(Oi(t)==c.o){for(var n in A=Oi(t.n)==c.b?t.n:A,t=zi({},t),x=0,t)t.hasOwnProperty(n)&&(x>2&&delete t[n],x++);var r=function(e){var n=e?C:T;for(x=0;x2){var p=r.substr(0,2);for(x=0;x/g,(d?"-":Qe)+$e))[v](/px/g,Qe))[v](/%/g,f+u*(h&&m.n?-1:1)/100))[v](/vw/g,f+Pe.w))[v](/vh/g,f+Pe.h),o=hi(t.parseFloat(t.eval(r)).toFixed())}else Oi(r)==c.n&&(o=r);if(!isNaN(o)&&o!==n&&Oi(o)==c.n){var y=A&&h,w=l*(y&&m.n?-1:1),b=y&&m.i,g=y&&m.n;switch(w=b?u-w:w,i){case"+=":a=w+o;break;case"-=":a=w-o;break;case"*=":a=w*o;break;case"/=":a=w/o;break;default:a=o}b&&(a=u-a),g&&(a*=-1),h&&m.n?(a=Math.max(u,a),a=Math.min(0,a)):(a=Math.min(u,a),a=Math.max(0,a)),a===l&&(a=n)}return a},Z=function(t,e,n,r){var i,o,a=[n,n],s=Oi(t);if(s==e)t=[t,t];else if(s==c.a){if((i=t.length)>2||i<1)t=a;else for(1===i&&(t[1]=n),x=0;x=4?$(et):ot:ct==c.o?$([et[Ue],et[_e],et[qe],et[Be]]):ot,S=J(nt,U)?nt:"xy",O=Z(rt,c.s,F,B),z=Z(it,c.s,D,_),M=et;var lt=H.offset();lt[Ue]-=M[0],lt[Be]-=M[3];var ut=at.offset(),ft={l:Ee.cs,t:Le.cs},ht={x:O.x==I||S==en,y:O.y==I||S==tn},dt={x:Math.round(lt[Be]-ut[Be]+ft.l),y:Math.round(lt[Ue]-ut[Ue]+ft.t)};if(q&&(m.n||m.i||(dt.x=Math.round(ut[Be]-lt[Be]+ft.l)),m.n&&A&&(dt.x*=-1),m.i&&A&&(dt.x=Math.round(ut[Be]-lt[Be]+(Ee.ms-ft.l)))),z.x!=D||z.y!=D||O.x==j||O.y==j||q){var vt,pt=H[0],yt={},xt={w:(yt=W?{w:(vt=pt.getBoundingClientRect())[Ye],h:vt[Ke]}:{w:pt[l.oW],h:pt[l.oH]}).w+M[3]+M[1],h:yt.h+M[0]+M[2]},mt=function(t){var e=si(t),n=e._wh,r=e.lt,i=e.xy,o=z[i]==(t&&q?D:P),a=z[i]==R,s=z[i]==N,c=O[i]==I,l=O[i]==j,u=Pe[n],f=ut[r],h=xt[n],d=lt[r],v=a?2:1,p=d+h/2,y=f+u/2,x=h<=u&&d>=f&&d+h<=f+u;c?ht[i]=!0:ht[i]||((s||l)&&(ht[i]=!!l&&x,o=hy:p0||L))if(L)st.animate(E,i);else{if(g={duration:i,complete:a},Oi(o)==c.a){var wt={};wt[cn]=o[0],wt[ln]=o[1],g.specialEasing=wt}else g.easing=o;st.animate(E,g)}else w&&st[cn](E[cn]),b&&st[ln](E[ln])},Te.scrollStop=function(t,e,n){return st.stop(t,e,n),Te},Te.getElements=function(t){var e={target:et[0],host:nt[0],padding:at[0],viewport:st[0],content:lt[0],scrollbarHorizontal:{scrollbar:ht[0],track:dt[0],handle:vt[0]},scrollbarVertical:{scrollbar:pt[0],track:yt[0],handle:xt[0]},scrollbarCorner:ft[0]};return Oi(t)==c.s?mi(e,t):e},Te.getState=function(t){var e=function(t){if(!r.isPlainObject(t))return t;var e=zi(!0,{},t),n=function(t,n){e.hasOwnProperty(t)&&(e[n]=e[t],delete e[t])};return n("w",Ye),n("h",Ke),delete e.c,e},n={sleeping:e(B)||!1,autoUpdate:e(!he),widthAuto:e(Ot),heightAuto:e(zt),padding:e(Ht),overflowAmount:e(Rt),hideOverflow:e(St),hasOverflow:e(gt),contentScrollSize:e(wt),viewportSize:e(Pe),hostSize:e(mt),documentMixed:e(P)};return Oi(t)==c.s?mi(n,t):n},Te.ext=function(t){var e,n=ur.split(" "),r=0;if(Oi(t)==c.s){if(lr.hasOwnProperty(t))for(e=zi(!0,{},lr[t]);r9||!w){t.prepend(xi(qn,xi({className:Bn,dir:"ltr"},xi(Bn,xi(Vn))+xi(Bn,xi({className:Vn,style:"width: 200%; height: 200%"})))));var v,p,y,x,g=t[0][u][0][u][0],S=r(g[u][1]),O=r(g[u][0]),z=r(O[0][u][0]),M=g[l.oW],W=g[l.oH],H=2,C=d.nativeScrollbarSize,T=function(){O[cn](o)[ln](o),S[cn](o)[ln](o)},k=function(){p=0,v&&(M=y,W=x,f())},E=function(t){return y=g[l.oW],x=g[l.oH],v=y!=M||x!=W,t&&v&&!p?(i.cAF()(p),p=i.rAF()(k)):t||k(),T(),t&&(i.prvD(t),i.stpP(t)),!1},L={},P={};P[Ue]=-(C.y+1)*H,P[_e]=C.x*-H,P[qe]=C.y*-H,P[Be]=-(C.x+1)*H,r(g).css(P),O.on(Ze,E),S.on(Ze,E),t.on(s,function(){E(!1)}),L[Ye]=o,L[Ke]=o,z.css(L),T()}else{var D=Z[0],R=D.attachEvent,N=b!==n;if(R)t.prepend(xi(qn)),Ai(t,nn+qn)[0].attachEvent("onresize",f);else{var F=D.createElement(c.o);F.setAttribute("tabindex","-1"),F.setAttribute(l.c,qn),F.onload=function(){var t=this.contentDocument.defaultView;t.addEventListener("resize",f),t.document.documentElement.style.display="none"},F.type="text/html",N&&t.prepend(F),F.data="about:blank",N||t.prepend(F),t.on(s,f)}}if(t[0]===it[0]){var I=function(){var e=nt.css("direction"),n={},r=0,i=!1;return e!==kt&&("ltr"===e?(n[Be]=0,n[_e]=Ge,r=o):(n[Be]=Ge,n[_e]=0,r=m.n?-o:m.i?0:o),it.children().eq(0).css(n),t[cn](r)[ln](o),kt=e,i=!0),i};I(),t.on(Ze,function(t){return I()&&Zr(),i.prvD(t),i.stpP(t),!1})}}function Sr(t){if(A){var e=t.contents()[0];e[wn].disconnect(),delete e[wn]}else Hi(t.children(nn+qn).eq(0))}function Or(t){}function zr(t){}function Mr(){de&&!he&&(ue.observe(nt[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[l.i,l.c,l.s]}),fe.observe(E?et[0]:lt[0],{attributes:!0,attributeOldValue:!0,subtree:!E,childList:!E,characterData:!E,attributeFilter:E?["wrap","cols","rows"]:[l.i,l.c,l.s]}),he=!0)}function Wr(){de&&he&&(ue.disconnect(),fe.disconnect(),he=!1)}function Hr(){if(!B){var t=it[0],e={w:t[l.sW],h:t[l.sH]};if(T){var n=gi(e,Qt);Qt=e,n&&Zr(!0,!1)}else Qt=e}}function Ar(){Se&&ri(!0)}function Cr(){Se&&!tt.hasClass(sr)&&ri(!1)}function Tr(){ge&&(ri(!0),clearTimeout(xe),xe=setTimeout(function(){ge&&!k&&ri(!1)},100))}function kr(t){B||(V!==n?clearTimeout(V):((be||ge)&&ri(!0),pi()||Mi(nt,Cn),ci("onScrollStart",t)),oi(!0,st[cn]()),oi(!1,st[ln]()),ci("onScroll",t),V=setTimeout(function(){k||(Er(),ci("onScrollStop",t))},Re))}function Er(){clearTimeout(V),V=n,(be||ge)&&ri(!1),pi()||Wi(nt,Cn)}function Lr(){Gr(),Te.update(Ge)}function Pr(t){var e=t.keyCode;if(!vi(e)){if(0===yr.length){var n=function(){Gr(),Te.update(Ge)};n(),ve=setInterval(n,1e3/60)}-1===r.inArray(e,yr)&&yr.push(e)}}function Dr(t){var e=t.keyCode;if(!vi(e)){var n=r.inArray(e,yr);n>-1&&yr.splice(n,1),0===yr.length&&(Gr(),Te.update(Ge),clearInterval(ve))}}function Rr(){setTimeout(function(){k||(Gr(),Te.update(Ge))},50)}function Nr(){pe=!0}function Fr(){pe=!1,clearInterval(ve),yr=[],Gr(),Te.update(Ge)}function Ir(t){return et[cn](m.i&&ne?9999999:0),et[ln](0),i.prvD(t),i.stpP(t),!1}function jr(t){if(!B){var e=(t.originalEvent||t).touches!==n;(1===i.mBtn(t)||e)&&(he&&(Me=!0,Wr()),xr=i.page(t),mr.w=nt[0][l.oW]-(D?0:N),mr.h=nt[0][l.oH]-(D?0:F),Z.on(xn,qr).on(hn,Ur).on(fn,_r),Mi(tt,sr),ft.setCapture&&ft.setCapture(),i.prvD(t),i.stpP(t))}}function Ur(t){var e=i.page(t),n={};(Ae||He)&&(n[Ye]=mr.w+e.x-xr.x),(Ce||He)&&(n[Ke]=mr.h+e.y-xr.y),nt.css(n),i.stpP(t)}function _r(t){var e=t!==n;Z.off(xn,qr).off(hn,Ur).off(fn,_r),Wi(tt,sr),ft.releaseCapture&&ft.releaseCapture(),e&&(Me&&Mr(),Te.update(Ge)),Me=!1}function qr(t){return i.prvD(t),!1}function Br(){Zr()}function Vr(){var t={};return L&&ct&&(t.w=hi(ct.css(Ve+Ye)),t.h=hi(ct.css(Ve+Ke)),t.c=gi(t,se),t.f=!0),se=t,t.c||!1}function Xr(t,e){var i=e!==n&&null!==e?e.split(rn):Qe,o=t!==n&&null!==t?t.split(rn):Qe;if(i===Qe&&o===Qe)return!1;var a,s,c,l,u=fi(o,i),f=!1,h=ie!==n&&null!==ie?ie.split(rn):[Qe],d=re!==n&&null!==re?re.split(rn):[Qe],v=r.inArray(cr,u),p=u[a];for(v>-1&&u.splice(v,1),a=0;a0&&T&&a-J0?Y:cr)),Vt&&(!0===Bt?(Wr(),v.add(Te)):null===Bt&&w?(Wr(),v.add(Te)):(v.remove(Te),Mr())),kt)if(xt)if(ot===n&&(ot=r(xi(Un)),at.before(ot)),R)rt.show();else{rt=r(xi(_n)),ot.before(rt);var ue={w:-1,h:-1};gr(rt,function(){var t={w:rt[0][l.oW],h:rt[0][l.oH]};gi(t,ue)&&(T&&zt&&t.h>0||Ot&&t.w>0?Zr():(T&&!zt&&0===t.h||!Ot&&0===t.w)&&Zr()),ue=t}),R=!0,null!==S&&rt.css(Ke,S+"(100% + 1px)")}else R&&rt.hide();o&&(it.find("*").trigger(Ze),R&&rt.find("*").trigger(Ze));var fe,de=nt.css("direction"),ve=bi(de,Tt,o),ye=nt.css("box-sizing"),xe=bi(ye,Wt,o),ze={c:o,t:hi(nt.css(Ie+Ue)),r:hi(nt.css(Ie+_e)),b:hi(nt.css(Ie+qe)),l:hi(nt.css(Ie+Be))};try{fe=R?rt[0].getBoundingClientRect():null}catch(Ni){return}D="border-box"===ye;var Me=(q="rtl"===de)?Be:_e,Ee=q?_e:Be,Le=nt[0],Re=at[0],Ne=!1,nn=!(!R||"none"===nt.css(Je))&&(0===Math.round(fe.right-fe.left)&&(!!dt||Le[l.cW]-N>0));if(xt&&!nn){var on=Le[l.oW],an=ot.css(Ye);ot.css(Ye,Ge);var sn=Le[l.oW];ot.css(Ye,an),(Ne=on!==sn)||(ot.css(Ye,on+1),sn=Le[l.oW],ot.css(Ye,an),Ne=on!==sn)}var fn=(nn||Ne)&&xt&&!c,pn=bi(fn,Ot,o),yn=!fn&&Ot,xn=!(!R||c)&&0===Math.round(fe.bottom-fe.top),mn=bi(xn,zt,o),wn=!xn&&zt,bn="-"+Ye,gn=fn&&D||!D,Sn=xn&&D||!D,On={c:o,t:Sn?hi(nt.css(je+Ue+bn)):0,r:gn?hi(nt.css(je+_e+bn)):0,b:Sn?hi(nt.css(je+qe+bn)):0,l:gn?hi(nt.css(je+Be+bn)):0},zn={c:o,t:hi(nt.css(Fe+Ue)),r:hi(nt.css(Fe+_e)),b:hi(nt.css(Fe+qe)),l:hi(nt.css(Fe+Be))},Mn={h:String(nt.css(Xe+Ke)),w:String(nt.css(Xe+Ye))},Wn={},Ln={};if(N=ze.l+ze.r,F=ze.t+ze.b,ze.c=Si(ze,Ht),I=On.l+On.r,j=On.t+On.b,On.c=Si(On,At),U=zn.l+zn.r,_=zn.t+zn.b,zn.c=Si(zn,Ct),Mn.ih=hi(Mn.h),Mn.iw=hi(Mn.w),Mn.ch=Mn.h.indexOf("px")>-1,Mn.cw=Mn.w.indexOf("px")>-1,Mn.c=gi(Mn,Mt,o),Tt=de,Wt=ye,Ot=fn,zt=xn,Ht=ze,At=On,Ct=zn,Mt=Mn,ve&&R&&rt.css(Je,Ee),ze.c||ve||vt||pn||mn||xe||kt){var Pn={},Dn={};li(Ln,Fe,[-ze.t,-ze.r,-ze.b,-ze.l]),dt?(li(Pn,Qe,[ze.t,ze.r,ze.b,ze.l]),li(E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r):(Fr.w=Wn[Fe+Me]=Wn[je+Me]=Qe,Ir=!0)),_t&&(Fr.w=Fr.h=Qe,Ir=!0),Ir&&(Nr[Ye]=Lr.y?Fr.w:Qe,Nr[Ke]=Lr.x?Fr.h:Qe,ct||(ct=r(xi(jn)),st.prepend(ct)),ct.css(Nr)),lt.css(Wn)}var Ur={};Pn={};if(t||Er.c||Lr.c||dr.c||Yt||xe||qt||ve||yt||mn){Ur[Ee]=Qe;var _r=function(){Ur[qe]=Qe,ke.h=0},qr=function(){Ur[Me]=Qe,ke.w=0};if(Er.x&&Lr.xs?(Ur[Fn]=Ze,_t?_r():(Ur[qe]=-(y.x?x.x:O.x),ke.h=y.x?x.y:0)):(Ur[Fn]=Qe,_r()),Er.y&&Lr.ys?(Ur[In]=Ze,_t?qr():(Ur[Me]=-(y.y?x.y:O.y),ke.w=y.y?x.x:0)):(Ur[In]=Qe,qr()),(Pe.h-1,Ri=Pi.y>-1;(Di||Ri)&&(Ri&&st[ln](Pi.y),Di&&(q&&ne&&m.i?st[cn](0):st[cn](Pi.x)))}Ut=wi}else E||(q&&m.i&&y.y&&Er.x&&ne&&(f.l+=ke.w||0),st[cn](f.l),st[ln](f.t));ve&&ci("onDirectionChanged",{isRTL:q,dir:de}),t&&ci("onHostSizeChanged",{width:mt.w,height:mt.h}),e&&ci("onContentSizeChanged",{width:wt.w,height:wt.h}),(Er.c||Lr.c)&&ci("onOverflowChanged",{x:Er.x,y:Er.y,xScrollable:Lr.xs,yScrollable:Lr.ys,clipped:Lr.x||Lr.y}),Hr.c&&ci("onOverflowAmountChanged",{x:Hr.x,y:Hr.y})}L&&(Er.c||se.c)&&(se.f||Vr(),y.y&&Er.x&<.css(Ve+Ye,se.w+x.y),y.x&&Er.y&<.css(Ve+Ke,se.h+x.x),se.c=!1),zr(it),zr(rt),ci("onUpdated",{forced:o})}}function $r(t){Y=zi(!0,{},Y,z.v(t,z.t,!0)),K=zi(!0,{},K,z.v(t,z.t,!1,!0))}function ti(){ht=r(xi(Yn+rn+or)),dt=r(xi(Kn)),vt=r(xi(Qn)),pt=r(xi(Yn+rn+ar)),yt=r(xi(Kn)),xt=r(xi(Qn)),ht.append(dt),dt.append(vt),pt.append(yt),yt.append(xt),at.after(pt),at.after(ht),M&&(ht.on(mn,function(t){t.target===ht[0]&&(ii(!0),oi(!0,st[cn]()))}),pt.on(mn,function(t){t.target===pt[0]&&(ii(!1),oi(!1,st[ln]()))})),ei(!0),ei(!1),ft=r(xi(tr)),nt.append(ft)}function ei(t){var e,o,a,s=si(t),c=s.xy,l=Ze+s.LT,u="active",f=1,h=[16,17],d=function(){f=.5},v=function(){f=1},p=function(n){var r=s.i.tl,a=s.i.hl,u=s.i.ms*((i.page(n)[c]-o)/(r-a));u=isFinite(u)?u:0,q&&t&&!m.i&&(u*=-1),st[l](e+u),H||i.prvD(n)},y=function(t){t=t||t.originalEvent;var r=nt[0].getBoundingClientRect(),i=t.clientX>=r.left&&t.clientX<=r.right&&t.clientY>=r.top&&t.clientY<=r.bottom;Wi(tt,sr),Wi(s.h,u),Wi(s.t,u),Wi(s.s,u),Z.off(hn,p).off(fn,y).off(pn,x).off(yn,w).off(xn,qr),v(),e=n,o=n,a!==n&&(Te.scrollStop(),clearTimeout(a),a=n),i||Cr(),(be||ge)&&ri(!1)},x=function(t){r.inArray(t.keyCode,h)>-1&&d()},w=function(t){r.inArray(t.keyCode,h)>-1&&v()},g=function(t){var e=(t.originalEvent||t).touches!==n;return!(B||pi()||!te||e&&!Oe)&&(1===i.mBtn(t)||e)},S=function(r){e=(e=st[l]())===n?0:e,(q&&t&&!m.n||!q)&&(e=e<0?0:e),o=i.page(r)[c],Mi(tt,sr),Mi(s.h,u),Mi(s.s,u),Z.on(hn,p).on(fn,y).on(xn,qr),!b&&P||i.prvD(r),i.stpP(r)};s.h.on(un,function(t){g(t)&&S(t)}),s.t.on(un,function(e){if(g(e)){var r,h,v=Pe[s._wh],p=s.t.offset()[s.lt],b=e.ctrlKey,O=e.shiftKey,z=O&&b,M=!0,W="linear",H=function(){if(!k){var i=o-p,c=s.i.tl,u=s.i.ho,d=s.i.hl,y=s.i.ms,x=270*f,w=M?Math.max(400,x):x,b=y*((i-d/2)/(c-d)),g=q&&t&&(!m.i&&!m.n||ne),A=g?ui,C={};O?(b=isFinite(b)?b:0,q&&t&&!m.i&&(b=y-b),z?(C.n=!1,C[s.xy]=b,Te.scroll(C,130,W,function(){S(e)})):(st[l](b),S(e))):(r=M?A:r,h=g?r?u+d>=i:u<=i:r?u<=i:u+d>=i,C[s.xy]=r?"-="+v:"+="+v,Te.scrollStop(),Te.scroll(C,x,W),h?(clearTimeout(a),Te.scrollStop(),a=n):a=setTimeout(H,w),M=!1)}};b&&d(),o=i.page(e)[c],Mi(tt,sr),Mi(s.t,u),Mi(s.s,u),Z.on(fn,y).on(pn,x).on(yn,w).on(xn,qr),H(),i.prvD(e),i.stpP(e)}}).hover(function(){(be||ge)&&(ze=!0,ri(!0))},function(){(be||ge)&&(ze=!1,ri(!1))}),s.s.on(un,function(t){i.stpP(t)})}function ni(t,e,n){var r=t?zn:Mn,i=t?ht:pt;e?Wi(nt,r):Mi(nt,r),n?Wi(i,Zn):Mi(i,Zn)}function ri(t,e){if(clearTimeout(ye),t)Wi(ht,$n),Wi(pt,$n);else{var n="active",r=function(){if(!ze&&!k){var t=vt.hasClass(n)||xt.hasClass(n);!t&&(be||ge||Se)&&Mi(ht,$n),!t&&(be||ge||Se)&&Mi(pt,$n)}};me>0&&!0!==e?ye=setTimeout(r,me):r()}}function ii(t){var e={},n=si(t),r=1e6,i=Math.min(1,(mt[n._wh]-(Et?t?N:F:0))/wt[n._wh]);e[n.wh]=Math.floor(100*i*r)/r+"%",pi()||n.h.css(e),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=i}function oi(t,e){var n,r,i,o=q&&t,a={},s=si(t),c="translate(",l="transform",u=st[0][Ze+s.WH]-st[0]["client"+s.WH],f=s.i.hl,h=s.t[0]["offset"+s.WH],d=h-f;m.n&&o&&(u*=-1),i=e/u,i=isNaN(i)?0:Math.min(1,i),s.i.ms=u,s.i.cs=e,s.i.csr=i,d*=i,d=isNaN(d)?0:d,o&&!m.i&&(d=h-f-d),d=Math.max(0,d),W?(r=(r=o?-(h-f-d):d)/h*100*(h/f),n=t?c+r+"%, 0)":c+"0, "+r+"%)",a["-webkit-"+l]=n,a["-moz-"+l]=n,a["-ms-"+l]=n,a["-o-"+l]=n,a[l]=n):a[s.lt]=d,pi()||s.h.css(a),s.i.ho=d,s.i.tl=h}function ai(t,e){var n=e?"removeClass":"addClass",r=t?yt:xt,i=t?Jn:Gn;(t?dt:vt)[n](i),r[n](i)}function si(t){return{wh:t?Ye:Ke,WH:t?"Width":"Height",lt:t?Be:Ue,LT:t?"Left":"Top",xy:t?tn:en,XY:t?"X":"Y",_wh:t?"w":"h",_lt:t?"l":"t",t:t?dt:yt,h:t?vt:xt,s:t?ht:pt,i:t?Ee:Le}}function ci(t,e){if(T){var n,i=K.callbacks[t],o=t;"on"===o.substr(0,2)&&(o=o.substr(2,1).toLowerCase()+o.substr(3)),Oi(i)==c.f&&i.call(Te,e),r.each(lr,function(){Oi((n=this).on)==c.f&&n.on(o,e)})}}function li(t,e,r){r===n&&(r=[Qe,Qe,Qe,Qe]),t[e+Ue]=r[0],t[e+_e]=r[1],t[e+qe]=r[2],t[e+Be]=r[3]}function ui(e){var n="ownerDocument",r="HTMLElement",i=e&&e[n]&&e[n].parentWindow||t;return typeof i[r]==c.o?e instanceof i[r]:e&&typeof e==c.o&&null!==e&&1===e.nodeType&&typeof e.nodeName==c.s}function fi(t,e){var n,r,i=[],o=[];for(n=0;nf&&(u=r+1,f=e);return{cR:h,cC:d,r:c,c:f,w:u,p:t,m:a}}}function vi(t){for(var e=0;e"+(e||Qe)+""}function mi(t,e){for(var n,r=e.split(nn),i=0;i9||!w?et.on("input",Lr):et.on(pn,Pr).on(yn,Dr)}else Mi(et,Sn),(nt=et).wrapInner(xi(In)).wrapInner(xi(Rn)).wrapInner(xi(Dn)),lt=Ai(nt,nn+In),st=Ai(nt,nn+Rn),at=Ai(nt,nn+Dn),lt.on(mn,function(t){!0!==Ft&&Qr((t=t.originalEvent||t).propertyName)&&Zr(Ge)});if(ti(),H?wr(st,Ze,kr):st.on(Ze,kr),g&&Mi(st,y.x&&y.y?Fn:Nn),de){var u,f,h,v,p,z,D=i.mO(),R=i.now();ue=new D(function(t){if(T&&!B){var e,n=!1;r.each(t,function(){if(u=(e=this).target,f=e.attributeName,n=f===l.c?Xr(e.oldValue,u.className):f!==l.s||e.oldValue!==u[l.s].cssText)return!1}),n&&Te.update(Ge)}}),fe=new D(function(t){if(T&&!B){var e=!1;r.each(t,function(){return!(e=Yr(this))}),e&&(v=i.now(),p=zt||Ot,z=function(){k||(R=v,E&&Gr(),p?Te.update():Te.update(Ge))},clearTimeout(h),vr<=0||v-R>vr||!p?z():h=setTimeout(z,vr))}})}return L&&(Mi($,gn),st[cn](a.l),st[ln](a.t)),it=r(xi("os-resize-observer-host")),nt.prepend(it),gr(it,Hr),Hr(),Te.update(Ge),setTimeout(function(){M&&!k&&Mi(nt,Wn)},333),T=!0,ci("onInitialized"),Oi(o)==c.s&&(o=[o]),r.isArray(o)?r.each(o,function(){Te.addExt(this)}):r.isPlainObject(o)&&r.each(o,function(t,e){Te.addExt(t,e)}),T}}return t[s]=function(e,i,c){if(0===arguments.length)return this;M();var l,f,h=[];return r.isPlainObject(i)?e&&e.length?(r.each(e,function(){(l=this)!==n&&h.push(A(l,i,c,a,u))}),f=h.length>1?h:h[0]):f=A(e,i,c,a,u):e&&(e.length&&e.length>0?(r.each(e,function(){l=o(this),"!"===i?l instanceof t[s]&&h.push(l):h.push(l)}),f=h.length>1?h:h[0]):f=o(e)),f},t[s].globals=function(){M();var t=r.extend(!0,{},a);return delete t.msie,t},t[s].defaultOptions=function(t){M();var e=a.defaultOptions;if(t===n)return r.extend(!0,{},e);a.defaultOptions=r.extend(!0,{},e,z.v(t,z.t,!0))},t[s].extension=function(t,e,n){var i=r.type(t)==c.s,o=arguments[l.l],a=0;if(o<1||!i)return r.extend(!0,{length:O[l.l]},O);if(i)if(r.type(e)==c.f)O.push({name:t,extension:e,defaultOptions:n});else for(;a1))return r.extend(!0,{},O[a]);O.splice(a,1)}},t[s]}(r,u,(i=u,o=[],a="__overlayScrollbars__",function(t,e){var n=arguments[l.l];if(n<1)return o;if(e)t[a]=e,o.push(t);else{var r=i.inA(t,o);if(r>-1){if(!(n>1))return o[r][a];delete t[a],o.splice(r,1)}}}));return f&&f.fn&&(f.fn.overlayScrollbars=function(t,e){var n=this;return f.isPlainObject(t)?(f.each(n,function(){h(this,t,e)}),n):h(n,t)}),h}); \ No newline at end of file diff --git a/package.json b/package.json index 26647d9..a739adf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "overlayscrollbars", - "version": "1.5.0", + "version": "1.5.1", "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",