From 5a828e8d82ef8ce959120063d90de6060ca18997 Mon Sep 17 00:00:00 2001 From: Rene Date: Sun, 6 May 2018 10:02:38 +0200 Subject: [PATCH] version 1.4.4 --- css/OverlayScrollbars.css | 4 +-- css/OverlayScrollbars.min.css | 4 +-- js/OverlayScrollbars.js | 40 ++++++++++++++++-------------- js/OverlayScrollbars.min.js | 6 ++--- js/jquery.overlayScrollbars.js | 4 +-- js/jquery.overlayScrollbars.min.js | 4 +-- package.json | 2 +- 7 files changed, 34 insertions(+), 30 deletions(-) diff --git a/css/OverlayScrollbars.css b/css/OverlayScrollbars.css index 2d8a6fa..e5607e3 100644 --- a/css/OverlayScrollbars.css +++ b/css/OverlayScrollbars.css @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.4.3 + * Version: 1.4.4 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 17.04.2018 + * Date: 06.05.2018 */ /* diff --git a/css/OverlayScrollbars.min.css b/css/OverlayScrollbars.min.css index 3b6835d..4d35615 100644 --- a/css/OverlayScrollbars.min.css +++ b/css/OverlayScrollbars.min.css @@ -2,12 +2,12 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.4.3 + * Version: 1.4.4 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 17.04.2018 + * Date: 06.05.2018 */ html.os-html,html.os-html > .os-host{display:block;overflow:hidden;box-sizing:border-box;height:100%!important;width:100%!important;min-width:100%!important;min-height:100%!important;margin:0!important;position:absolute!important}html.os-html > .os-host > .os-padding{position:absolute}body.os-dragging,body.os-dragging *{cursor:default}.os-host,.os-host-textarea{position:relative;overflow:visible!important}#hs-dummy-scrollbar-size{position:fixed;opacity:0;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);visibility:hidden;overflow:scroll;height:500px;width:500px}#hs-dummy-scrollbar-size,.os-viewport{-ms-overflow-style:scrollbar!important}.os-viewport-native-scrollbars-invisible#hs-dummy-scrollbar-size::-webkit-scrollbar,.os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar,.os-viewport-native-scrollbars-invisible#hs-dummy-scrollbar-size::-webkit-scrollbar-corner,.os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner{display:none!important;width:0!important;height:0!important;visibility:hidden!important;background:transparent!important}.os-content-glue{max-height:100%;max-width:100%;width:100%;pointer-events:none}.os-padding{direction:inherit;position:absolute;overflow:visible;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:1}.os-host-overflow > .os-padding{overflow:hidden}.os-viewport{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;overflow:hidden;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.os-content-arrange{position:absolute;z-index:-1;min-height:1px;min-width:1px;pointer-events:none}.os-content{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:100%;height:100%;width:100%;visibility:visible}.os-host-textarea > .os-padding > .os-content{overflow:hidden!important}.os-content > .os-textarea{direction:inherit!important;float:none!important;margin:0!important;max-height:none!important;max-width:none!important;border:none!important;border-radius:0!important;background:transparent!important;outline:0 none transparent!important;overflow:hidden!important;resize:none!important;position:absolute!important;top:0!important;left:0!important;z-index:1;padding:0}.os-host-rtl > .os-padding > .os-viewport > .os-content > .os-textarea{right:0!important}.os-content > .os-textarea-cover{z-index:-1;pointer-events:none}.os-content > .os-textarea[wrap='off']{white-space:pre!important;margin:0!important}.os-text-inherit{font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;text-transform:inherit;text-decoration:inherit;text-indent:inherit;text-align:inherit;text-shadow:inherit;text-overflow:inherit;letter-spacing:inherit;word-spacing:inherit;line-height:inherit;unicode-bidi:inherit;direction:inherit;color:inherit;cursor:text}.os-resize-observer,.os-resize-observer-host{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.os-resize-observer-host{padding:inherit;border:inherit;border-color:transparent;border-style:solid;box-sizing:border-box}.os-resize-observer-host:after{content:''}.os-resize-observer-host > .os-resize-observer,.os-resize-observer-host:after{height:200%;width:200%;padding:inherit;border:inherit;margin:0;display:block;box-sizing:content-box}.os-resize-observer.observed,object.os-resize-observer{box-sizing:border-box!important}.os-size-auto-observer{box-sizing:inherit!important;height:100%;width:inherit;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none}.os-size-auto-observer > .os-resize-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}.os-resize-observer-item{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;z-index:-1;opacity:0;direction:ltr!important;-webkit-box-flex:0!important;-ms-flex:none!important;flex:none!important}.os-resize-observer-item-final{position:absolute;left:0;top:0;-webkit-transition:none!important;transition:none!important;-webkit-box-flex:0!important;-ms-flex:none!important;flex:none!important}.os-resize-observer{-webkit-animation-duration:.001s;animation-duration:.001s;-webkit-animation-name:hs-resize-observer-dummy-animation;animation-name:hs-resize-observer-dummy-animation}.os-host-transition > .os-scrollbar,.os-host-transition > .os-scrollbar-corner{-webkit-transition:opacity 0.3s,visibility 0.3s,top 0.3s,right 0.3s,bottom 0.3s,left .3s;transition:opacity 0.3s,visibility 0.3s,top 0.3s,right 0.3s,bottom 0.3s,left .3s}html.os-html > .os-host > .os-scrollbar{position:absolute;z-index:999999}.os-scrollbar,.os-scrollbar-corner{position:absolute;opacity:1;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);z-index:1}.os-scrollbar-corner{bottom:0;right:0}.os-scrollbar{pointer-events:none}.os-scrollbar-track{pointer-events:auto;position:relative;height:100%;width:100%;padding:0!important;border:none!important}.os-scrollbar-handle{pointer-events:auto;position:absolute;width:100%;height:100%}.os-scrollbar-handle-off,.os-scrollbar-track-off{pointer-events:none}.os-scrollbar.os-scrollbar-unusable,.os-scrollbar.os-scrollbar-unusable *{pointer-events:none!important}.os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-host-rtl > .os-scrollbar-horizontal{right:0}.os-host-rtl > .os-scrollbar-vertical{right:auto;left:0}.os-host-rtl > .os-scrollbar-corner{right:auto;left:0}.os-scrollbar-auto-hidden,.os-padding + .os-scrollbar-corner,.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden > .os-scrollbar-corner,.os-host-scrollbar-horizontal-hidden > .os-scrollbar-horizontal,.os-host-resize-disabled.os-host-scrollbar-vertical-hidden > .os-scrollbar-corner,.os-host-scrollbar-vertical-hidden > .os-scrollbar-vertical,.os-scrollbar-horizontal.os-scrollbar-auto-hidden + .os-scrollbar-vertical + .os-scrollbar-corner,.os-scrollbar-horizontal + .os-scrollbar-vertical.os-scrollbar-auto-hidden + .os-scrollbar-corner,.os-scrollbar-horizontal.os-scrollbar-auto-hidden + .os-scrollbar-vertical.os-scrollbar-auto-hidden + .os-scrollbar-corner{opacity:0;visibility:hidden;pointer-events:none}.os-scrollbar-corner-resize-both{cursor:nwse-resize}.os-host-rtl > .os-scrollbar-corner-resize-both{cursor:nesw-resize}.os-scrollbar-corner-resize-horizontal{cursor:ew-resize}.os-scrollbar-corner-resize-vertical{cursor:ns-resize}.os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize{cursor:default}.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden > .os-scrollbar-vertical{top:0;bottom:0}.os-host-resize-disabled.os-host-scrollbar-vertical-hidden > .os-scrollbar-horizontal{right:0;left:0}.os-scrollbar:hover,.os-scrollbar-corner.os-scrollbar-corner-resize{opacity:1!important;visibility:visible!important}.os-scrollbar-corner.os-scrollbar-corner-resize{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2Z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EwMjQgMC4yMTgzNTk0LDAuNDY1NjIwNiAwLjIxODM1OTQsMC43MzY5NjI5IDAsMC43MjM1NzkzIC0wLjU4NjU3NywxLjMxMDE1NjMgLTEuMzEwMTU2MywxLjMxMDE1NjMgLTAuMjcxMzQyMiwwIC0wLjUyNzg2MDUsLTAuMDc3MDkzIC0wLjczNjk2MjksLTAuMjE4MzU5NCAwLjIzOTQxMDQsMC4zMTMwODU5IDAuNjEyNjM2MywwLjUxODYwMzUgMS4wMzcyMDcxLDAuNTE4NjAzNSAwLjcyMzU3OTMsMCAxLjMxMDE1NjIsLTAuNTg2NTc3IDEuMzEwMTU2MiwtMS4zMTAxNTYzIDAsLTAuNDI0NTcwOCAtMC4yMDU1MTc1LC0wLjc5Nzc5NjYgLTAuNTE4NjAzNSwtMS4wMzcyMDcgeiBtIDMuMDg0MzI2MiwwIGMgMC4xNDEyNjY3LDAuMjA5MTAyNCAwLjIxODM1OTQsMC40NjU2MjA2IDAuMjE4MzU5NCwwLjczNjk2MjkgMCwwLjcyMzU3OTMgLTAuNTg2NTc3LDEuMzEwMTU2MyAtMS4zMTAxNTYzLDEuMzEwMTU2MyAtMC4yNzEzNDIzLDAgLTAuNTI3ODYwNSwtMC4wNzcwOTMgLTAuNzM2OTYyOSwtMC4yMTgzNTk0IDAuMjM5NDEwNCwwLjMxMzA4NTkgMC42MTI2MzYyLDAuNTE4NjAzNSAxLjAzNzIwNywwLjUxODYwMzUgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjU3NyAxLjMxMDE1NjMsLTEuMzEwMTU2MyAwLC0wLjQyNDU3MDggLTAuMjA1NTE3NiwtMC43OTc3OTY2IC0wLjUxODYwMzUsLTEuMDM3MjA3IHoiIC8+ICA8L2c+PC9zdmc+);background-repeat:no-repeat;background-position:100% 100%;pointer-events:auto!important}.os-host-rtl > .os-scrollbar-corner.os-scrollbar-corner-resize{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.os-host-overflow{overflow:hidden!important}@-webkit-keyframes hs-resize-observer-dummy-animation{from{z-index:0}to{z-index:-1}}@keyframes hs-resize-observer-dummy-animation{from{z-index:0}to{z-index:-1}}.os-theme-none > .os-scrollbar-horizontal,.os-theme-none > .os-scrollbar-vertical,.os-theme-none > .os-scrollbar-corner{display:none!important}.os-theme-none > .os-scrollbar-corner-resize{display:block!important;min-width:10px;min-height:10px}.os-theme-dark > .os-scrollbar-horizontal,.os-theme-light > .os-scrollbar-horizontal{right:10px;height:10px}.os-theme-dark > .os-scrollbar-vertical,.os-theme-light > .os-scrollbar-vertical{bottom:10px;width:10px}.os-theme-dark.os-host-rtl > .os-scrollbar-horizontal,.os-theme-light.os-host-rtl > .os-scrollbar-horizontal{left:10px;right:0}.os-theme-dark > .os-scrollbar-corner,.os-theme-light > .os-scrollbar-corner{height:10px;width:10px;background-color:transparent}.os-theme-dark > .os-scrollbar,.os-theme-light > .os-scrollbar{padding:2px;box-sizing:border-box;background:transparent}.os-theme-dark > .os-scrollbar.os-scrollbar-unusable,.os-theme-light > .os-scrollbar.os-scrollbar-unusable{background:transparent}.os-theme-dark > .os-scrollbar > .os-scrollbar-track,.os-theme-light > .os-scrollbar > .os-scrollbar-track{background:transparent}.os-theme-dark > .os-scrollbar-horizontal > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar-horizontal > .os-scrollbar-track > .os-scrollbar-handle{min-width:30px}.os-theme-dark > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle{min-height:30px}.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{border-radius:11px;opacity:.4}.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{background:#000}.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{background:#fff}.os-theme-dark.os-host-transition > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light.os-host-transition > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle{-webkit-transition:opacity .3s;transition:opacity .3s}.os-theme-dark > .os-scrollbar:hover > .os-scrollbar-track > .os-scrollbar-handle,.os-theme-light > .os-scrollbar:hover > .os-scrollbar-track > .os-scrollbar-handle{opacity:.55}.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle.active,.os-theme-light > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle.active{opacity:.7}.os-theme-dark > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-dark > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-vertical .os-scrollbar-handle:before{content:'';position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-theme-dark.os-host-scrollbar-horizontal-hidden > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-dark.os-host-scrollbar-vertical-hidden > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light.os-host-scrollbar-horizontal-hidden > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light.os-host-scrollbar-vertical-hidden > .os-scrollbar-vertical .os-scrollbar-handle:before{display:none}.os-theme-dark > .os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-horizontal .os-scrollbar-handle:before{top:-6px;bottom:-2px}.os-theme-dark > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light > .os-scrollbar-vertical .os-scrollbar-handle:before{left:-6px;right:-2px}.os-host-rtl.os-theme-dark > .os-scrollbar-vertical .os-scrollbar-handle:before,.os-host-rtl.os-theme-light > .os-scrollbar-vertical .os-scrollbar-handle:before{right:-6px;left:-2px} \ No newline at end of file diff --git a/js/OverlayScrollbars.js b/js/OverlayScrollbars.js index 4643783..dcff0e4 100644 --- a/js/OverlayScrollbars.js +++ b/js/OverlayScrollbars.js @@ -2,13 +2,13 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.4.3 + * Version: 1.4.4 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 17.04.2018 + * Date: 06.05.2018 */ (function (global, factory) { @@ -906,14 +906,16 @@ var el; return this.each(function() { el = this; - if (el.addEventListener) { - for (i = 0; i < eventName.length; i++) - el.addEventListener(eventName[i], handler); - } - else if(el.detachEvent) { - for (i = 0; i < eventName.length; i++) - el.attachEvent('on' + eventName[i], handler); - } + try { + if (el.addEventListener) { + for (i = 0; i < eventName.length; i++) + el.addEventListener(eventName[i], handler); + } + else if(el.detachEvent) { + for (i = 0; i < eventName.length; i++) + el.attachEvent('on' + eventName[i], handler); + } + } catch (e) { } }); }, @@ -924,14 +926,16 @@ var el; return this.each(function() { el = this; - if (el.removeEventListener) { - for (i = 0; i < eventName.length; i++) - el.removeEventListener(eventName[i], handler); - } - else if(el.detachEvent) { - for (i = 0; i < eventName.length; i++) - el.detachEvent('on' + eventName[i], handler); - } + try { + if (el.removeEventListener) { + for (i = 0; i < eventName.length; i++) + el.removeEventListener(eventName[i], handler); + } + else if(el.detachEvent) { + for (i = 0; i < eventName.length; i++) + el.detachEvent('on' + eventName[i], handler); + } + } catch (e) { } }); }, diff --git a/js/OverlayScrollbars.min.js b/js/OverlayScrollbars.min.js index 9f7addb..74e357d 100644 --- a/js/OverlayScrollbars.min.js +++ b/js/OverlayScrollbars.min.js @@ -2,12 +2,12 @@ * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * - * Version: 1.4.3 + * Version: 1.4.4 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. - * Date: 17.04.2018 + * Date: 06.05.2018 */ -!function(t,e){"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="OverlayScrollbars",i={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},o={c:"class",s:"style",i:"id",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth"},a={wW:function(){return t.innerWidth||e.documentElement[o.cW]||e.body[o.cW]},wH:function(){return t.innerHeight||e.documentElement[o.cH]||e.body[o.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.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},bind:function(t,e){if(typeof t!==i.f)throw"Can't bind function!";var n=Array.prototype.slice.call(arguments,2),r=function(){},o=function(){return t.apply(this instanceof r?this:e,n.concat(Array.prototype.slice.call(arguments)))};return t.prototype&&(r.prototype=t.prototype),o.prototype=new r,o}},s=t.jQuery,c=function(r){var o=/[^\x20\t\r\n\f]+/g,a=Object.prototype.toString,s=" ",c="",l=[],u={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},f={swing:function(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&&e-1 in t)}function M(t){return(t.match(o)||[]).join(s)}function O(t,n){for(var r=(t.parentNode||e).querySelectorAll(n)||[],i=r.length;i--;)if(r[i]==t)return!0;return!1}function C(t,e,n){p(n)===i.s?t.insertAdjacentHTML(e,n):n.nodeType?t.insertAdjacentElement(e,n):t.insertAdjacentElement(e,n[0])}function S(t,e,r){try{t.style[e]!==n&&(t.style[e]=A(e,r))}catch(i){}}function A(t,e){return u[t.toLowerCase()]||p(e)!==i.n||(e=e+="px"),e}function z(t,e){var n,r;!1!==e&&t.q.splice(0,1),t.q.length>0?(r=t.q[0],E(t.el,r.props,r.duration,r.easing,r.complete,!0)):(n=w(t,l))>-1&&l.splice(n,1)}function T(t,e,n){"scrollLeft"===e?t[e]=n:"scrollTop"===e?t[e]=n:S(t,e,n)}function E(t,e,n,i,o,a){var s,c,u,h,p,v,g={},b={},M=0,O=m(n);for(O?(i=n.easing,n.start,u=n.progress,h=n.step,p=n.specialEasing,o=n.complete,v=n.duration):v=n,p=p||{},v=v||400,i=i||"swing",a=a||!1;M0)I=r.now(),W=function(){for(s in C=r.now(),L=C-I,S=N.stop||L>=v,A=1-(Math.max(0,I+v-C)/v||0),b)E=g[s],H=b[s],k=(H-E)*f[p[s]||i](A,A*v,0,1,v)+E,T(t,s,k),d(h)&&h(k,{elem:t,prop:s,start:E,now:k,end:H,pos:A,options:{easing:i,speacialEasing:p,duration:v,complete:o,step:h},startTime:I});d(u)&&u({},A,Math.max(0,v-L)),S?(z(c),d(o)&&o()):N.frame=r.rAF()(W)},N.frame=r.rAF()(W);else{for(s in b)T(t,s,b[s]);z(c)}}}function H(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=[]:z(i,!1)}break}}return x.prototype={each:function(t){return g(this,t)},append:function(t){return this.each(function(){C(this,"beforeend",t)})},prepend:function(t){return this.each(function(){C(this,"afterbegin",t)})},before:function(t){return this.each(function(){C(this,"beforebegin",t)})},after:function(t){return this.each(function(){C(this,"afterend",t)})},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)},first:function(){return new x(this[0])},last:function(){return new x(this[this.length-1])},find:function(t){var e,n=[];return this.each(function(){var r=this.querySelectorAll(t);for(e=0;e-1)return!0;return!1},addClass:function(t){var e,r,i,a,c,l,u=null,f=0,h=0;if(t)for(e=t.match(o)||[];r=this[f++];)if(u===n&&(u=r.classList!==n),u)for(;c=e[h++];)r.classList.add(c);else if(a=r.className,i=1===r.nodeType&&s+M(a)+s){for(;c=e[h++];)i.indexOf(s+c+s)<0&&(i+=c+s);a!==(l=M(i))&&(r.className=l)}return this},removeClass:function(t){var e,r,i,a,c,l,u=null,f=0,h=0;if(t)for(e=t.match(o)||[];r=this[f++];)if(u===n&&(u=r.classList!==n),u)for(;c=e[h++];)r.classList.remove(c);else if(a=r.className,i=1===r.nodeType&&s+M(a)+s){for(;c=e[h++];)for(;i.indexOf(s+c+s)>-1;)i=i.replace(s+c+s,s);a!==(l=M(i))&&(r.className=l)}return this},remove:function(){return this.each(function(){var t=this;null!=t.parentNode&&t.parentNode.removeChild(t)})},offset:function(){var n=this[0].getBoundingClientRect(),r=t.pageXOffset||e.documentElement.scrollLeft,i=t.pageYOffset||e.documentElement.scrollTop;return{top:n.top+i,left:n.left+r}},position:function(){var t=this[0];return{top:t.offsetTop,left:t.offsetLeft}},css:function(e,r){var o,a;return p(e)===i.s?r===n?(o=this[0],t.getComputedStyle?t.getComputedStyle(o,null).getPropertyValue(e):o.currentStyle[e]):this.each(function(){S(this,e,r)}):this.each(function(){for(a in e)S(this,a,e[a])})},unwrap:function(){var t,e,n,r=[];for(this.each(function(){n=this.parentNode,-1===w(n,r)&&r.push(n)}),t=0;t0;)i=i.childNodes[0];for(e=0;n.length-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=new x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){return this.each(function(){new x(this).wrapAll(t)})},contents:function(){var t,e,n=[];return this.each(function(){for(t=this.childNodes,e=0;e0?"\r\nValid strings are: [ "+H.join(", ").split(d).join(", ")+" ].":"")),delete t[s]}}};return c(s,e,a),o?l.extend(!0,a,s):!l.isEmptyObject(s)&&n&&console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(s,null,2)),a}});function C(){u||(u=new S(O.d)),f||(f=new A(u))}function S(r){var i=this,s="overflow",u="hidden",f="scroll",h=l("body"),p=l('
'),d=p[0],v=l(p.children("div").first()),y=d[o.oH];h.append(p),0===y&&p.hide().show();var m,w,g,x,b,M,O,C,S,A=E(d),z={x:0===A.x,y:0===A.y};function T(t){var r=!1,i="Webkit Moz ms O".split(" "),o=e.createElement("div"),a=null,s=0;if(t=t.toLowerCase(),o.style[t]!==n&&(r=!0),!r)for(a=t.charAt(0).toUpperCase()+t.substr(1);s0?C=S(m[g](x+5,m[w](".",x)),10):b>0?C=S(m[g](O+3,m[w](".",O)),10):M>0&&(C=S(m[g](M+5,m[w](".",M)),10)),C),cssCalc:function(){var t,n,r=e.createElement("div"),i=["calc","-webkit-calc","-moz-calc","-o-calc"];for(t=0;t0){var t=a.wW(),u=a.wH(),f=t-e,d=u-n;if(0===f&&0===d)return;var v=Math.round(t/(e/100)),y=Math.round(u/(n/100)),m=Math.abs(f),w=Math.abs(d),g=Math.abs(v),x=Math.abs(y),b=s(),M=m>2&&w>2,O=!o(g,x);!(M&&O&&(b!==r&&r>0))||(h.append(p),i.nativeScrollbarSize=E(p[0]),p.remove(),l.each(c.all(),function(){c.has(this)&&c.get(this).update("zoom")})),e=t,n=u,r=b}})}function o(t,e){var n=Math.abs(t),r=Math.abs(e);return!(n===r||n+1===r||n-1===r)}function s(){var e=t.screen.deviceXDPI||0,n=t.screen.logicalXDPI||1;return t.devicePixelRatio||e/n}}()}function A(t){var e,r=this,i="autoUpdate",o=i+"Interval",s=[],c=[],u=!1,f=33,h=f,p=a.now(),d=function(){if(s.length>0&&u){e=a.rAF()(function(){d()});var t=a.now(),r=t-p;if(r>h){p=t-r%h;for(var l=f,v=0;vg&&(y.update("auto"),c[v]=new Date(x+=g)),l=Math.max(1,Math.min(l,g))}}h=l}}else h=f};r.add=function(e){-1===l.inArray(e,s)&&(s.push(e),c.push(a.now()),s.length>0&&!u&&(u=!0,t.autoUpdateLoop=u,d()))},r.remove=function(r){var i=l.inArray(r,s);i>-1&&(c.splice(i,1),s.splice(i,1),0===s.length&&u&&(u=!1,t.autoUpdateLoop=u,e!==n&&(a.cAF()(e),e=-1)))}}function z(e,u,f,h){if(ri(e)){if(c.has(e)){var p=c.get(e);return p.options(u),p}var d,v,y,m,w,g,x,b,M,C,S,A,z,T,E,H,k,I,W,L,P,N,R,D,j,F,B,q,_,U,Q,V,X,Y,K,$,G,J,Z,tt,et,nt,rt,it,ot,at,st,ct,lt,ut,ft,ht,pt,dt,vt,yt,mt,wt,gt,xt,bt,Mt,Ot,Ct,St,At,zt,Tt,Et,Ht,kt,It,Wt,Lt,Pt,Nt,Rt,Dt,jt,Ft,Bt,qt,_t,Ut,Qt,Vt,Xt,Yt,Kt,$t,Gt,Jt,Zt,te,ee,ne,re,ie,oe,ae,se,ce,le,ue,fe,he,pe,de,ve,ye,me,we,ge,xe,be,Me,Oe,Ce,Se=new t[r],Ae={},ze={},Te={},Ee={},He={},ke=175,Ie="-hidden",We="margin-",Le="padding-",Pe="border-",Ne="top",Re="right",De="bottom",je="left",Fe="min-",Be="max-",qe="width",_e="height",Ue="float",Qe="",Ve="auto",Xe="scroll",Ye="100%",Ke="x",$e="y",Ge=".",Je=" ",Ze="scrollbar",tn="-horizontal",en="-vertical",nn=Xe+"Left",rn=Xe+"Top",on="mousedown touchstart",an="mouseup touchend",sn="mousemove touchmove",cn="mouseenter",ln="mouseleave",un="keydown",fn="keyup",hn="selectstart",pn="transitionend webkitTransitionEnd oTransitionEnd",dn="__overlayScrollbarsRO__",vn="os-",yn=vn+"html",mn=vn+"host",wn=mn+"-textarea",gn=mn+"-"+Ze+tn+Ie,xn=mn+"-"+Ze+en+Ie,bn=mn+"-transition",Mn=mn+"-rtl",On=mn+"-resize-disabled",Cn=mn+"-scrolling",Sn=mn+"-overflow",An=Sn+"-x",zn=Sn+"-y",Tn=vn+"textarea",En=Tn+"-cover",Hn=vn+"padding",kn=vn+"viewport",In=kn+"-native-scrollbars-invisible",Wn=kn+"-native-scrollbars-overlaid",Ln=vn+"content",Pn=vn+"content-arrange",Nn=vn+"content-glue",Rn=vn+"size-auto-observer",Dn=vn+"resize-observer",jn=vn+"resize-observer-item",Fn=jn+"-final",Bn=vn+"text-inherit",qn=vn+Ze,_n=qn+"-track",Un=_n+"-off",Qn=qn+"-handle",Vn=Qn+"-off",Xn=qn+"-unusable",Yn=qn+"-"+Ve+Ie,Kn=qn+"-corner",$n=Kn+"-resize",Gn=$n+"-both",Jn=$n+tn,Zn=$n+en,tr=qn+tn,er=qn+en,nr=vn+"dragging",rr=vn+"theme-none",ir={},or=33,ar=[],sr=11,cr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],lr=[],ur={},fr={};if(Se.sleep=function(){B=!0},Se.update=function(t){var e,n,r="zoom"===t,i="img",o="load";t===Ve?(e=qr(),n=Br(),(e||n)&&Qr(!1,n)):r?Qr(!0,!0):(t=B||t,B=!1,Qr(!1,!1,t)),H||r||at.find(i).each(function(t,e){-1===l.inArray(e,ar)&&(e=l(e)).off(o,Rr).on(o,Rr)})},Se.options=function(t,e){if(l.isEmptyObject(t)||!l.isPlainObject(t)){if(mi(t)===i.s){if(arguments.length>=2){var n={};return pi(n,t,e),Vr(n),void Qr()}return hi(U,t)}return U}Vr(t);var r=B||!1;B=!1,Qr(),B=r},Se.destroy=function(){E=!0,h.remove(Se),gr(),vr(et),W&&vr(tt),bi(et),nt!==n&&bi(nt),ot!==n&&bi(ot),W&&bi(tt),S?(pr(Z,sn,Or),pr(Z,cn,br),pr(Z,ln,Mr)):Z.off(sn,Or).off(cn,br).off(ln,Mr),bi(lt),bi(ht),ct&&bi(ct),be||Pr(),at.contents().unwrap().unwrap().unwrap(),k&&xi($,yn),H?(J.off(Xe,Ir).off("drop",Er).off("focus",Hr).off("focusout",kr),w>9||!m?J.off("input",Ar):J.off(un,zr).off(fn,Tr),bi(st),xi(J,Tn+Je+Bn).unwrap().removeAttr(o.s),bi(Z)):(xi(J,mn),xi(Z,[mn,On,Mn,gn,xn,bn,Cn,Sn,An,zn,rr,te].join(Je)));for(var t=0;t0)e.x=t[0],e.y=t[1];else if(mi(t)===i.s||mi(t)===i.n)e.x=t,e.y=t;else if(mi(t)===i.o){for(var n in t=wi({},t),w=0,t)t.hasOwnProperty(n)&&(w>2&&delete t[n],w++);var r=function(e){var n=e?g:x;for(w=0;w2){var v=r.substr(0,2);for(w=0;w/g,(p?"-":Qe)+Ye))[d](/px/g,Qe))[d](/%/g,f+u*(h&&y.n?-1:1)/100))[d](/vw/g,f+Ee.w))[d](/vh/g,f+Ee.h),a=oi(t.parseFloat(t.eval(r)).toFixed())}else mi(r)===i.n&&(a=r);if(!isNaN(a)&&a!==n&&mi(a)===i.n){var m=Zt&&h,g=l*(m&&y.n?-1:1),x=m&&y.i,M=m&&y.n;switch(g=x?u-g:g,o){case"+=":s=g+a;break;case"-=":s=g-a;break;case"*=":s=g*a;break;case"/=":s=g/a;break;default:s=a}x&&(s=u-s),M&&(s*=-1),h&&y.n?(s=Math.max(u,s),s=Math.min(0,s)):(s=Math.min(u,s),s=Math.max(0,s)),s===l&&(s=n)}return s};if(L||P){var j=L?W:l(W);if(0===j.length)return;if(I){var B,q,_,U=e.axis,Q=e.block,V=mi(Q),X=e.margin,Y=mi(X);if(V===i.s)Q=[Q,Q];else if(V===i.a)if((q=Q.length)>2||q<1)Q=n;else{for(B=!0,1===q&&(Q[1]=A),w=0;w=G[e.lt]&&$[e.lt]+ht[e._wh]<=G[e.lt]+Ee[e._wh],nt[e.xy]=ht[e._wh]i:r0||O){var yt={};if(dt&&(yt[nn]=M.x),vt&&(yt[rn]=M.y),O)it.animate(yt,r);else{var mt={duration:r,complete:c};if(mi(a)===i.a){var wt={};wt[nn]=a[0],wt[rn]=a[1],mt.specialEasing=wt}else mt.easing=a;it.animate(yt,mt)}}else dt&&it[nn](M.x),vt&&it[rn](M.y)},Se.scrollStop=function(t,e,n){it.stop(t,e,n)},Se.getElements=function(){return{target:J[0],host:Z[0],padding:rt[0],viewport:it[0],content:at[0],scrollbarHorizontal:{scrollbar:lt[0],track:ut[0],handle:ft[0]},scrollbarVertical:{scrollbar:ht[0],track:pt[0],handle:dt[0]},scrollbarCorner:ct}},Se.getState=function(t){var e=function(t){if(!l.isPlainObject(t))return t;var e=wi(!0,{},t),n=function(t,n){e.hasOwnProperty(t)&&(e[n]=e[t],delete e[t])};return n("w",qe),n("h",_e),delete e.c,e},n={sleeping:e(B)||!1,autoUpdate:e(!se),widthAuto:e(xt),heightAuto:e(bt),padding:e(Ct),overflowAmount:e(Wt),hideOverflow:e(gt),hasOverflow:e(wt),contentScrollSize:e(yt),viewportSize:e(Ee),hostSize:e(vt)};return mi(t)===i.s?hi(n,t):n},Mi(e,u))return c.add(e,Se),Se;Se=n}function hr(t,e,n){for(var r=e.split(Je),i=0;i9||!m){t.prepend(fi(Dn,fi({className:jn,dir:"ltr"},fi(jn,fi(Fn))+fi(jn,fi({className:Fn,style:"width: 200%; height: 200%"})))));var p,d,v,g,x=t[0][c][0][c][0],b=l(x[c][1]),M=l(x[c][0]),O=l(M[0][c][0]),C=x[o.oW],S=x[o.oH],z=2,T=f.nativeScrollbarSize,E=function(){M[nn](n)[rn](n),b[nn](n)[rn](n)},H=function(){d=0,p&&(C=v,S=g,u())},k=function(t){return v=x[o.oW],g=x[o.oH],p=v!=C||g!=S,t&&p&&!d?(a.cAF()(d),d=a.rAF()(H)):t||H(),E(),t&&(a.prvD(t),a.stpP(t)),!1},I={},W={};W[Ne]=-(T.y+1)*z,W[Re]=T.x*-z,W[De]=T.y*-z,W[je]=-(T.x+1)*z,l(x).css(W),M.on(Xe,k),b.on(Xe,k),t.on(s,function(){k(!1)}),I[qe]=n,I[_e]=n,O.css(I),E()}else{var L=K[0],P=L.attachEvent,N=!1!==w;if(P)t.prepend(fi(Dn)),ui(t,Ge+Dn)[0].attachEvent("onresize",u);else{var R=L.createElement(i.o);R.setAttribute("tabindex","-1"),R.setAttribute(o.c,Dn),R.onload=function(){var t=this.contentDocument.defaultView;t.addEventListener("resize",u),t.document.documentElement.style.display="none"},R.type="text/html",N&&t.prepend(R),R.data="about:blank",N||t.prepend(R),t.on(s,u)}}if(t[0]===et[0]){var D=function(){var e=Z.css("direction"),r={},i=0,o=!1;return e!==Tt&&("ltr"===e?(r[je]=0,r[Re]=Ve,i=n):(r[je]=Ve,r[Re]=0,i=y.n?-n:y.i?0:n),et.children().first().css(r),t[nn](i)[rn](n),Tt=e,o=!0),o};D(),t.on(Xe,function(t){return D()&&Qr(),a.prvD(t),a.stpP(t),!1})}}function vr(t){if(A){var e=t.contents()[0];e[dn].disconnect(),delete e[dn]}else bi(t.children(Ge+Dn).first())}function yr(t){if(t!==n&&A){var e=t.contents()[0];e[dn].unobserve(e)}}function mr(t){if(t!==n&&A){var e=t.contents()[0];e[dn].observe(e)}}function wr(){ce&&!se&&(oe.observe(Z[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[o.i,o.c,o.s]}),ae.observe(H?J[0]:at[0],{attributes:!0,attributeOldValue:!0,subtree:!H,childList:!H,characterData:!H,attributeFilter:H?["wrap","cols","rows"]:[o.i,o.c,o.s]}),se=!0)}function gr(){ce&&se&&(oe.disconnect(),ae.disconnect(),se=!1)}function xr(){if(!B){var t=et[0],e={w:t[o.sW],h:t[o.sH]};if(T){var n=vi(e,Xt);Xt=e,n&&Qr(!0,!1)}else Xt=e}}function br(){me&&$r(!0)}function Mr(){me&&!G.hasClass(nr)&&$r(!1)}function Or(){ye&&($r(!0),clearTimeout(he),he=setTimeout(function(){ye&&$r(!1)},100))}function Cr(t){var e=Q.callbacks;B||(q!==n?clearTimeout(q):((ve||ye)&&$r(!0),ci()||Z.addClass(Cn),ei(e.onScrollStart,t)),Jr(!0,it[nn]()),Jr(!1,it[rn]()),ei(e.onScroll,t),q=setTimeout(function(){Sr(),ei(e.onScrollStop,t)},ke))}function Sr(){clearTimeout(q),q=n,(ve||ye)&&$r(!1),ci()||Z.removeClass(Cn)}function Ar(){Ur(),Se.update(Ve)}function zr(t){var e=t.keyCode;if(!si(e)){if(0===lr.length){var n=function(){Ur(),Se.update(Ve)};n(),le=setInterval(n,1e3/60)}-1===l.inArray(e,lr)&&lr.push(e)}}function Tr(t){var e=t.keyCode;if(!si(e)){var n=l.inArray(e,lr);n>-1&&lr.splice(n,1),0===lr.length&&(Ur(),Se.update(Ve),clearInterval(le))}}function Er(){setTimeout(function(){Ur(),Se.update(Ve)},50)}function Hr(){ue=!0}function kr(){ue=!1,clearInterval(le),lr=[],Ur(),Se.update(Ve)}function Ir(t){return J[nn](y.i&&Zt?9999999:0),J[rn](0),a.prvD(t),a.stpP(t),!1}function Wr(t){if(!B){var e=(t.originalEvent||t).touches!==n;(1===a.mBtn(t)||e)&&(se&&(xe=!0,gr()),ur=a.page(t),fr.w=Z[0][o.oW]-(I?0:L),fr.h=Z[0][o.oH]-(I?0:P),K.on(hn,Nr).on(sn,Lr).on(an,Pr),G.addClass(nr),ct.setCapture&&ct.setCapture(),a.prvD(t),a.stpP(t))}}function Lr(t){var e=a.page(t),n={};(Oe||Me)&&(n[qe]=fr.w+e.x-ur.x),(Ce||Me)&&(n[_e]=fr.h+e.y-ur.y),Z.css(n),a.stpP(t)}function Pr(t){var e=t!==n;K.off(hn,Nr).off(sn,Lr).off(an,Pr),G.removeClass(nr),ct.releaseCapture&&ct.releaseCapture(),e&&(xe&&wr(),Se.update(Ve)),xe=!1}function Nr(t){return a.prvD(t),!1}function Rr(){Qr()}function Dr(){var t={};return k&&ot&&(t.w=oi(ot.css(Fe+qe)),t.h=oi(ot.css(Fe+_e)),t.c=vi(t,ie),t.f=!0),ie=t,t.c}function jr(t,e){var r=e!==n&&null!==e?e.split(Je):Qe,i=t!==n&&null!==t?t.split(Je):Qe;if(r===Qe&&i===Qe)return!1;var o,a,s,c,u=ii(i,r),f=!1,h=ee!==n&&null!==ee?ee.split(Je):[Qe],p=te!==n&&null!==te?te.split(Je):[Qe],d=l.inArray(rr,u),v=u[o];for(d>-1&&u.splice(d,1),o=0;o0&&T&&i-V0?ft:rr)),ae&&(!0===oe?(gr(),h.add(Se)):null===oe&&m?(gr(),h.add(Se)):(h.remove(Se),wr())),Qt)if(Ut)if(nt===n&&(nt=l(fi(Nn)),rt.before(nt)),W)tt.show();else{tt=l(fi(Rn)),nt.before(tt);var ze={w:-1,h:-1};dr(tt,function(){var t={w:tt[0][o.oW],h:tt[0][o.oH]};vi(t,ze)&&(T&&bt&&t.h>0||xt&&t.w>0?Qr():(T&&!bt&&0===t.h||!xt&&0===t.w)&&Qr()),ze=t}),W=!0,null!==x&&tt.css(_e,x+"(100% + 1px)")}else W&&tt.hide();r&&(et.find("*").trigger(Xe),W&&tt.find("*").trigger(Xe));var Te,ke=Z.css("direction"),Ie=di(ke,zt,r),Ge=Z.css("box-sizing"),Ze=di(Ge,Ot,r),tn={c:r,t:oi(Z.css(Le+Ne)),r:oi(Z.css(Le+Re)),b:oi(Z.css(Le+De)),l:oi(Z.css(Le+je))};try{Te=W?tt[0].getBoundingClientRect():null}catch(Fi){return}I="border-box"===Ge;var en=(F="rtl"===ke)?je:Re,an=F?Re:je,un=Z[0],fn=rt[0],hn=!1,pn=!(!W||"none"===Z.css(Ue))&&(0===Math.round(Te.right-Te.left)&&(!!Ft||un[o.cW]-L>0));if(Ut&&!pn){var dn=un[o.oW],vn=nt.css(qe);nt.css(qe,Ve);var yn=un[o.oW];nt.css(qe,vn),(hn=dn!==yn)||(nt.css(qe,dn+1),yn=un[o.oW],nt.css(qe,vn),hn=dn!==yn)}var mn=(pn||hn)&&Ut,wn=di(mn,xt,r),gn=!mn&&xt,xn=!!W&&0===Math.round(Te.bottom-Te.top),bn=di(xn,bt,r),Tn=!xn&&bt,En="-"+qe,Hn=mn&&I||!I,kn=xn&&I||!I,In={c:r,t:kn?oi(Z.css(Pe+Ne+En)):0,r:Hn?oi(Z.css(Pe+Re+En)):0,b:kn?oi(Z.css(Pe+De+En)):0,l:Hn?oi(Z.css(Pe+je+En)):0},Wn={c:r,t:oi(Z.css(We+Ne)),r:oi(Z.css(We+Re)),b:oi(Z.css(We+De)),l:oi(Z.css(We+je))},Ln={h:String(Z.css(Be+_e)),w:String(Z.css(Be+qe))},Dn={},jn={};if(L=tn.l+tn.r,P=tn.t+tn.b,tn.c=yi(tn,Ct),N=In.l+In.r,R=In.t+In.b,In.c=yi(In,St),D=Wn.l+Wn.r,j=Wn.t+Wn.b,Wn.c=yi(Wn,At),Ln.ih=oi(Ln.h),Ln.iw=oi(Ln.w),Ln.ch=Ln.h.indexOf("px")>-1,Ln.cw=Ln.w.indexOf("px")>-1,Ln.c=vi(Ln,Mt,r),zt=ke,Ot=Ge,xt=mn,bt=xn,Ct=tn,St=In,At=Wn,Mt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var Sr=nr.getBoundingClientRect(),Ar={w:Math.max(nr[o.sW],ar[o.sW]),h:Math.max(nr[o.sH],ar[o.sH])};if(Yn&&at.css(_n,Qe),Sr.width){var zr=Sr.width,Tr=Sr.height,Er=.001;Ar.w+=oi(zr+Er)-zr,Ar.h+=oi(Tr+Er)-Tr}Ar.c=e=vi(Ar,yt,r),yt=Ar,t=vi(ur={w:un[o.cW],h:un[o.cH]},vt),vt=ur,Ee={w:fn[o.oW],h:fn[o.oH]};var Hr={x:"v-s"===ce.x,y:"v-s"===ce.y},kr={x:"v-h"===ce.x,y:"v-h"===ce.y},Ir={x:"s"===ce.x,y:"s"===ce.y},Lr={x:Math.max(0,Math.round(100*(Ar.w-ur.w+(Ft?L:0)))/100),y:Math.max(0,Math.round(100*(Ar.h-ur.h+(Ft?P:0)))/100)},Pr=H&&(0===Ee.w||0===Ee.h);Pr&&(Lr.x=0,Lr.y=0);var Nr={x:Lr.x>0,y:Lr.y>0},Rr={x:Nr.x,y:Nr.y};(Hr.x||kr.x)&&(Rr.x=Nr.y&&!Hr.y&&!kr.y),(Hr.y||kr.y)&&(Rr.y=Nr.x&&!Hr.x&&!kr.x),Rr.xs=!!Rr.x&&(Ir.x||Hr.x),Rr.ys=!!Rr.y&&(Ir.y||Hr.y);var jr={x:Nr.x&&Rr.xs,y:Nr.y&&Rr.ys},Fr=Wt;if(Lr.c=vi(Lr,Wt,Ke,$e,r),Wt=Lr,Nr.c=vi(Nr,wt,Ke,$e,r),wt=Nr,Rr.c=vi(Rr,gt,Ke,$e,r),gt=Rr,d.x||d.y){var Br=r,qr={};if((Nr.x||Nr.y)&&(qr.w=d.y&&Nr.y?Ar.w+v.y:Qe,qr.h=d.x&&Nr.x?Ar.h+v.x:Qe,Br=di(qr,mt,r),mt=qr),Nr.c||Rr.c||Ar.c||Ie||wn||bn||mn||xn||Xt){var _r="px solid transparent";Dn[Pe+an]=Qe,Dn[We+an]=Qe,d.x&&Nr.x&&Rr.xs?(xn&&(Dn[We+De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+qe,ie.w+v.y),d.x&&Nr.y&&at.css(Fe+_e,ie.h+v.x),ie.c=!1),mr(et),mr(tt),ei(M,{forced:r})}}function Vr(t){U=wi(!0,{},U,O.v(t,O.t,!0)),Q=wi(!0,{},Q,O.v(t,O.t,!1,!0))}function Xr(){lt=l(fi(qn+Je+tr)),ut=l(fi(_n)),ft=l(fi(Qn)),ht=l(fi(qn+Je+er)),pt=l(fi(_n)),dt=l(fi(Qn)),lt.append(ut),ut.append(ft),ht.append(pt),pt.append(dt),rt.after(ht),rt.after(lt),M&&(lt.on(pn,function(t){t.target===lt[0]&&(Gr(!0),Jr(!0,it[nn]()))}),ht.on(pn,function(t){t.target===ht[0]&&(Gr(!1),Jr(!1,it[rn]()))})),Yr(!0),Yr(!1),ct=l(fi(Kn)),Z.append(ct)}function Yr(t){var e,r,i,o=ti(t),s=o.xy,c=Xe+o.LT,l="active",u=1,f=function(){u=.5},h=function(){u=1},p=function(n){var i=o.i.tl,l=o.i.hl,u=o.i.ms*((l/2+a.page(n)[s]-r-l/2)/(i-l));u=isFinite(u)?u:0,F&&t&&(y.n||!y.n&&!y.i)&&(u*=-1),it[c](e+u),S||a.prvD(n)},d=function(t){t=t||t.originalEvent,xi(G,nr),xi(o.h,l),xi(o.t,l),xi(o.s,l),S?(pr(K,sn,p),pr(K,an,d),pr(K,un,v),pr(K,fn,m)):K.off(sn,p).off(an,d).off(un,v).off(fn,m),K.off(hn,Nr),h(),e=n,r=n,i!==n&&(Se.scrollStop(),clearTimeout(i),i=n);var a=Z[0].getBoundingClientRect();t.clientX>=a.left&&t.clientX<=a.right&&t.clientY>=a.top&&t.clientY<=a.bottom||Mr(),(ve||ye)&&$r(!1)},v=function(t){16==t.keyCode&&f()},m=function(t){16==t.keyCode&&h()};o.h.on(on,function(i){if(!B){var u=(i.originalEvent||i).touches!==n;ci()||!Gt||u&&!we||(1===a.mBtn(i)||u)&&(e=(e=it[c]())===n?0:e,(F&&t&&!y.n||!F)&&(e=e<0?0:e),r=a.page(i)[s],gi(G,nr),gi(o.h,l),gi(o.s,l),S?(hr(K,sn,p),hr(K,an,d)):K.on(sn,p).on(an,d),K.on(hn,Nr),a.prvD(i))}}),o.t.on(on,function(e){if(!B){var c=(e.originalEvent||e).touches!==n;if(!ci()&&$t&&(!c||we)&&(1===a.mBtn(e)||c)){var h,p=Ee[o._wh],w=o.t.offset()[o.lt],g=!0;e.shiftKey&&f();var x=function(){var e=o.i.ho,a=o.i.hl,s=r-w,c=200*u,l=g?Math.max(333,c):c,f={},d=F&&t&&(!y.i&&!y.n||Zt),v=e>s;d&&(v=e=s;d&&(m=h?e+a>=s:e<=s),m?(clearTimeout(i),Se.scrollStop(),i=n):i=setTimeout(x,l),g=!1};r=a.page(e)[s],gi(G,nr),gi(o.t,l),gi(o.s,l),S?(hr(K,an,d),hr(K,un,v),hr(K,fn,m)):K.on(an,d).on(un,v).on(fn,m),K.on(hn,Nr),x(),a.prvD(e)}}}).hover(function(){(ve||ye)&&(ge=!0,$r(!0))},function(){(ve||ye)&&(ge=!1,$r(!1))}),o.s.on(on,function(t){a.stpP(t)})}function Kr(t,e,n){var r=t?gn:xn,i=t?lt:ht;e?Z.removeClass(r):Z.addClass(r),n?i.removeClass(Xn):i.addClass(Xn)}function $r(t,e){if(clearTimeout(fe),t)lt.removeClass(Yn),ht.removeClass(Yn);else{var n="active",r=function(){if(!ge){var t=ft.hasClass(n)||dt.hasClass(n);!t&&(ve||ye||me)&<.addClass(Yn),!t&&(ve||ye||me)&&ht.addClass(Yn)}};pe>0&&!0!==e?fe=setTimeout(r,pe):r()}}function Gr(t){var e={},n=ti(t),r=Math.min(1,(vt[n._wh]-(Et?t?L:P:0))/yt[n._wh]);e[n.wh]=Math.floor(100*r*1e5)/1e5+"%",ci()||n.h.css(e),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function Jr(t,e){var n,r,i=F&&t,o={},a=ti(t),s="translate(",c="transform",l=it[0][Xe+a.WH]-it[0]["client"+a.WH],u=a.i.hl,f=a.t[0]["offset"+a.WH],h=f-u;y.n&&i&&(l*=-1),r=e/l,r=isNaN(r)?0:Math.min(1,r),a.i.ms=l,a.i.cs=e,a.i.csr=r,h*=r,h=isNaN(h)?0:h,i&&(y.n||!y.n&&!y.i)&&(h=f-u-h),h=Math.max(0,h),C?(i&&(h=-(f-u-h)),n=t?s+h+"px, 0px)":s+"0px, "+h+"px)",o["-webkit-"+c]=n,o["-moz-"+c]=n,o["-ms-"+c]=n,o["-o-"+c]=n,o[c]=n):o[a.lt]=h,ci()||a.h.css(o),a.i.ho=h,a.i.tl=f}function Zr(t,e){var n=e?"removeClass":"addClass",r=t?pt:dt,i=t?Un:Vn;(t?ut:ft)[n](i),r[n](i)}function ti(t){return{wh:t?qe:_e,WH:t?"Width":"Height",lt:t?je:Ne,LT:t?"Left":"Top",xy:t?Ke:$e,XY:t?"X":"Y",_wh:t?"w":"h",_lt:t?"l":"t",t:t?ut:pt,h:t?ft:dt,s:t?lt:ht,i:t?ze:Te}}function ei(t,e){T&&l.isFunction(t)&&t.call(Se,e)}function ni(t,e,r){r===n&&(r=[Qe,Qe,Qe,Qe]),t[e+Ne]=r[0],t[e+Re]=r[1],t[e+De]=r[2],t[e+je]=r[3]}function ri(e){return typeof t.HTMLElement===i.o?e instanceof t.HTMLElement:e&&typeof e===i.o&&null!==e&&1===e.nodeType&&typeof e.nodeName===i.s}function ii(t,e){var n,r=[],i=[];for(n=0;nu&&(l=r+1,u=e);return{cursorRow:f,cursorCol:h,rows:s,cols:u,wRow:l,pos:t,max:o}}}function si(t){for(var e=0;e"+(e||Qe)+""}function hi(t,e){for(var n,r=e.split(Ge),o=0;o9||!m?J.on("input",Ar):J.on(un,zr).on(fn,Tr)}else gi(J,mn),(Z=J).wrapInner(fi(Ln)).wrapInner(fi(kn)).wrapInner(fi(Hn)),at=ui(Z,Ge+Ln),it=ui(Z,Ge+kn),rt=ui(Z,Ge+Hn),at.on(pn,function(t){!0!==Pt&&_r((t=t.originalEvent||t).propertyName)&&Qr(Ve)});if(Xr(),S?hr(it,Xe,Cr):it.on(Xe,Cr),g&&gi(it,d.x&&d.y?Wn:In),ce){var s,c,u,h,p,O,I=a.mO(),W=a.now();oe=new I(function(t){if(T&&!B){var e,n=!1;l.each(t,function(){if(s=(e=this).target,c=e.attributeName,n=c===o.c?jr(e.oldValue,s.className):c!==o.s||e.oldValue!==s.style.cssText)return!1}),n&&Se.update(Ve)}}),ae=new I(function(t){if(T&&!B){var e=!1;l.each(t,function(){return!(e=Fr(this))}),e&&(h=a.now(),p=bt||xt,O=function(){W=h,H&&Ur(),p?Se.update():Se.update(Ve)},clearTimeout(u),sr<=0||h-W>sr||!p?O():u=setTimeout(O,sr))}})}return k&&(gi($,yn),it[nn](n.l),it[rn](n.t)),et=l(fi("os-resize-observer-host")),Z.prepend(et),dr(et,xr),xr(),Se.update(Ve),setTimeout(function(){M&&!E&&gi(Z,bn)},333),T=!0,ei(r.onInitialized),T}}return t[r]=function(e,i){if(0===arguments.length)return this;C();var o,a,s=[];return l.isPlainObject(i)?e&&e.length?(l.each(e,function(){o=this,console.log(o),o!==n&&s.push(z(o,i,u,f))}),a=s.length>1?s:s[0]):a=z(e,i,u,f):e&&(e.length&&e.length>0?(l.each(e,function(){o=c.get(this),"!"===i?o instanceof t[r]&&s.push(o):s.push(o)}),a=s.length>1?s:s[0]):a=c.get(e)),a},t[r].globals=function(){C();var t=l.extend(!0,{},u);return delete t.msie,t},t[r].defaultOptions=function(t){C();var e=u.defaultOptions;if(t===n)return l.extend(!0,{},e);u.defaultOptions=l.extend(!0,{},e,O.v(t,O.t,!0))},t[r]}(a,function(t){var e=[],r="__overlayScrollbars__";function i(t,n){t[r]=n,e.push(t)}function o(n){var i=t.inArray(n,e);i>-1&&(delete n[r],e.splice(i,1))}function a(t){return s(t)!==n}function s(t){for(var n=0;n0&&e-1 in t)}function M(t){return(t.match(o)||[]).join(s)}function O(t,n){for(var r=(t.parentNode||e).querySelectorAll(n)||[],i=r.length;i--;)if(r[i]==t)return!0;return!1}function C(t,e,n){p(n)===i.s?t.insertAdjacentHTML(e,n):n.nodeType?t.insertAdjacentElement(e,n):t.insertAdjacentElement(e,n[0])}function S(t,e,r){try{t.style[e]!==n&&(t.style[e]=A(e,r))}catch(i){}}function A(t,e){return u[t.toLowerCase()]||p(e)!==i.n||(e=e+="px"),e}function z(t,e){var n,r;!1!==e&&t.q.splice(0,1),t.q.length>0?(r=t.q[0],E(t.el,r.props,r.duration,r.easing,r.complete,!0)):(n=w(t,l))>-1&&l.splice(n,1)}function T(t,e,n){"scrollLeft"===e?t[e]=n:"scrollTop"===e?t[e]=n:S(t,e,n)}function E(t,e,n,i,o,a){var s,c,u,h,p,v,g={},b={},M=0,O=m(n);for(O?(i=n.easing,n.start,u=n.progress,h=n.step,p=n.specialEasing,o=n.complete,v=n.duration):v=n,p=p||{},v=v||400,i=i||"swing",a=a||!1;M0)I=r.now(),W=function(){for(s in C=r.now(),L=C-I,S=N.stop||L>=v,A=1-(Math.max(0,I+v-C)/v||0),b)E=g[s],H=b[s],k=(H-E)*f[p[s]||i](A,A*v,0,1,v)+E,T(t,s,k),d(h)&&h(k,{elem:t,prop:s,start:E,now:k,end:H,pos:A,options:{easing:i,speacialEasing:p,duration:v,complete:o,step:h},startTime:I});d(u)&&u({},A,Math.max(0,v-L)),S?(z(c),d(o)&&o()):N.frame=r.rAF()(W)},N.frame=r.rAF()(W);else{for(s in b)T(t,s,b[s]);z(c)}}}function H(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=[]:z(i,!1)}break}}return x.prototype={each:function(t){return g(this,t)},append:function(t){return this.each(function(){C(this,"beforeend",t)})},prepend:function(t){return this.each(function(){C(this,"afterbegin",t)})},before:function(t){return this.each(function(){C(this,"beforebegin",t)})},after:function(t){return this.each(function(){C(this,"afterend",t)})},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)},first:function(){return new x(this[0])},last:function(){return new x(this[this.length-1])},find:function(t){var e,n=[];return this.each(function(){var r=this.querySelectorAll(t);for(e=0;e-1)return!0;return!1},addClass:function(t){var e,r,i,a,c,l,u=null,f=0,h=0;if(t)for(e=t.match(o)||[];r=this[f++];)if(u===n&&(u=r.classList!==n),u)for(;c=e[h++];)r.classList.add(c);else if(a=r.className,i=1===r.nodeType&&s+M(a)+s){for(;c=e[h++];)i.indexOf(s+c+s)<0&&(i+=c+s);a!==(l=M(i))&&(r.className=l)}return this},removeClass:function(t){var e,r,i,a,c,l,u=null,f=0,h=0;if(t)for(e=t.match(o)||[];r=this[f++];)if(u===n&&(u=r.classList!==n),u)for(;c=e[h++];)r.classList.remove(c);else if(a=r.className,i=1===r.nodeType&&s+M(a)+s){for(;c=e[h++];)for(;i.indexOf(s+c+s)>-1;)i=i.replace(s+c+s,s);a!==(l=M(i))&&(r.className=l)}return this},remove:function(){return this.each(function(){var t=this;null!=t.parentNode&&t.parentNode.removeChild(t)})},offset:function(){var n=this[0].getBoundingClientRect(),r=t.pageXOffset||e.documentElement.scrollLeft,i=t.pageYOffset||e.documentElement.scrollTop;return{top:n.top+i,left:n.left+r}},position:function(){var t=this[0];return{top:t.offsetTop,left:t.offsetLeft}},css:function(e,r){var o,a;return p(e)===i.s?r===n?(o=this[0],t.getComputedStyle?t.getComputedStyle(o,null).getPropertyValue(e):o.currentStyle[e]):this.each(function(){S(this,e,r)}):this.each(function(){for(a in e)S(this,a,e[a])})},unwrap:function(){var t,e,n,r=[];for(this.each(function(){n=this.parentNode,-1===w(n,r)&&r.push(n)}),t=0;t0;)i=i.childNodes[0];for(e=0;n.length-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=new x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){return this.each(function(){new x(this).wrapAll(t)})},contents:function(){var t,e,n=[];return this.each(function(){for(t=this.childNodes,e=0;e0?"\r\nValid strings are: [ "+H.join(", ").split(d).join(", ")+" ].":"")),delete t[s]}}};return c(s,e,a),o?l.extend(!0,a,s):!l.isEmptyObject(s)&&n&&console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(s,null,2)),a}});function C(){u||(u=new S(O.d)),f||(f=new A(u))}function S(r){var i=this,s="overflow",u="hidden",f="scroll",h=l("body"),p=l('
'),d=p[0],v=l(p.children("div").first()),y=d[o.oH];h.append(p),0===y&&p.hide().show();var m,w,g,x,b,M,O,C,S,A=E(d),z={x:0===A.x,y:0===A.y};function T(t){var r=!1,i="Webkit Moz ms O".split(" "),o=e.createElement("div"),a=null,s=0;if(t=t.toLowerCase(),o.style[t]!==n&&(r=!0),!r)for(a=t.charAt(0).toUpperCase()+t.substr(1);s0?C=S(m[g](x+5,m[w](".",x)),10):b>0?C=S(m[g](O+3,m[w](".",O)),10):M>0&&(C=S(m[g](M+5,m[w](".",M)),10)),C),cssCalc:function(){var t,n,r=e.createElement("div"),i=["calc","-webkit-calc","-moz-calc","-o-calc"];for(t=0;t0){var t=a.wW(),u=a.wH(),f=t-e,d=u-n;if(0===f&&0===d)return;var v=Math.round(t/(e/100)),y=Math.round(u/(n/100)),m=Math.abs(f),w=Math.abs(d),g=Math.abs(v),x=Math.abs(y),b=s(),M=m>2&&w>2,O=!o(g,x);!(M&&O&&(b!==r&&r>0))||(h.append(p),i.nativeScrollbarSize=E(p[0]),p.remove(),l.each(c.all(),function(){c.has(this)&&c.get(this).update("zoom")})),e=t,n=u,r=b}})}function o(t,e){var n=Math.abs(t),r=Math.abs(e);return!(n===r||n+1===r||n-1===r)}function s(){var e=t.screen.deviceXDPI||0,n=t.screen.logicalXDPI||1;return t.devicePixelRatio||e/n}}()}function A(t){var e,r=this,i="autoUpdate",o=i+"Interval",s=[],c=[],u=!1,f=33,h=f,p=a.now(),d=function(){if(s.length>0&&u){e=a.rAF()(function(){d()});var t=a.now(),r=t-p;if(r>h){p=t-r%h;for(var l=f,v=0;vg&&(y.update("auto"),c[v]=new Date(x+=g)),l=Math.max(1,Math.min(l,g))}}h=l}}else h=f};r.add=function(e){-1===l.inArray(e,s)&&(s.push(e),c.push(a.now()),s.length>0&&!u&&(u=!0,t.autoUpdateLoop=u,d()))},r.remove=function(r){var i=l.inArray(r,s);i>-1&&(c.splice(i,1),s.splice(i,1),0===s.length&&u&&(u=!1,t.autoUpdateLoop=u,e!==n&&(a.cAF()(e),e=-1)))}}function z(e,u,f,h){if(ri(e)){if(c.has(e)){var p=c.get(e);return p.options(u),p}var d,v,y,m,w,g,x,b,M,C,S,A,z,T,E,H,k,I,W,L,P,N,R,D,j,F,B,q,_,U,Q,V,X,Y,K,$,G,J,Z,tt,et,nt,rt,it,ot,at,st,ct,lt,ut,ft,ht,pt,dt,vt,yt,mt,wt,gt,xt,bt,Mt,Ot,Ct,St,At,zt,Tt,Et,Ht,kt,It,Wt,Lt,Pt,Nt,Rt,Dt,jt,Ft,Bt,qt,_t,Ut,Qt,Vt,Xt,Yt,Kt,$t,Gt,Jt,Zt,te,ee,ne,re,ie,oe,ae,se,ce,le,ue,fe,he,pe,de,ve,ye,me,we,ge,xe,be,Me,Oe,Ce,Se=new t[r],Ae={},ze={},Te={},Ee={},He={},ke=175,Ie="-hidden",We="margin-",Le="padding-",Pe="border-",Ne="top",Re="right",De="bottom",je="left",Fe="min-",Be="max-",qe="width",_e="height",Ue="float",Qe="",Ve="auto",Xe="scroll",Ye="100%",Ke="x",$e="y",Ge=".",Je=" ",Ze="scrollbar",tn="-horizontal",en="-vertical",nn=Xe+"Left",rn=Xe+"Top",on="mousedown touchstart",an="mouseup touchend",sn="mousemove touchmove",cn="mouseenter",ln="mouseleave",un="keydown",fn="keyup",hn="selectstart",pn="transitionend webkitTransitionEnd oTransitionEnd",dn="__overlayScrollbarsRO__",vn="os-",yn=vn+"html",mn=vn+"host",wn=mn+"-textarea",gn=mn+"-"+Ze+tn+Ie,xn=mn+"-"+Ze+en+Ie,bn=mn+"-transition",Mn=mn+"-rtl",On=mn+"-resize-disabled",Cn=mn+"-scrolling",Sn=mn+"-overflow",An=Sn+"-x",zn=Sn+"-y",Tn=vn+"textarea",En=Tn+"-cover",Hn=vn+"padding",kn=vn+"viewport",In=kn+"-native-scrollbars-invisible",Wn=kn+"-native-scrollbars-overlaid",Ln=vn+"content",Pn=vn+"content-arrange",Nn=vn+"content-glue",Rn=vn+"size-auto-observer",Dn=vn+"resize-observer",jn=vn+"resize-observer-item",Fn=jn+"-final",Bn=vn+"text-inherit",qn=vn+Ze,_n=qn+"-track",Un=_n+"-off",Qn=qn+"-handle",Vn=Qn+"-off",Xn=qn+"-unusable",Yn=qn+"-"+Ve+Ie,Kn=qn+"-corner",$n=Kn+"-resize",Gn=$n+"-both",Jn=$n+tn,Zn=$n+en,tr=qn+tn,er=qn+en,nr=vn+"dragging",rr=vn+"theme-none",ir={},or=33,ar=[],sr=11,cr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],lr=[],ur={},fr={};if(Se.sleep=function(){B=!0},Se.update=function(t){var e,n,r="zoom"===t,i="img",o="load";t===Ve?(e=qr(),n=Br(),(e||n)&&Qr(!1,n)):r?Qr(!0,!0):(t=B||t,B=!1,Qr(!1,!1,t)),H||r||at.find(i).each(function(t,e){-1===l.inArray(e,ar)&&(e=l(e)).off(o,Rr).on(o,Rr)})},Se.options=function(t,e){if(l.isEmptyObject(t)||!l.isPlainObject(t)){if(mi(t)===i.s){if(arguments.length>=2){var n={};return pi(n,t,e),Vr(n),void Qr()}return hi(U,t)}return U}Vr(t);var r=B||!1;B=!1,Qr(),B=r},Se.destroy=function(){E=!0,h.remove(Se),gr(),vr(et),W&&vr(tt),bi(et),nt!==n&&bi(nt),ot!==n&&bi(ot),W&&bi(tt),S?(pr(Z,sn,Or),pr(Z,cn,br),pr(Z,ln,Mr)):Z.off(sn,Or).off(cn,br).off(ln,Mr),bi(lt),bi(ht),ct&&bi(ct),be||Pr(),at.contents().unwrap().unwrap().unwrap(),k&&xi($,yn),H?(J.off(Xe,Ir).off("drop",Er).off("focus",Hr).off("focusout",kr),w>9||!m?J.off("input",Ar):J.off(un,zr).off(fn,Tr),bi(st),xi(J,Tn+Je+Bn).unwrap().removeAttr(o.s),bi(Z)):(xi(J,mn),xi(Z,[mn,On,Mn,gn,xn,bn,Cn,Sn,An,zn,rr,te].join(Je)));for(var t=0;t0)e.x=t[0],e.y=t[1];else if(mi(t)===i.s||mi(t)===i.n)e.x=t,e.y=t;else if(mi(t)===i.o){for(var n in t=wi({},t),w=0,t)t.hasOwnProperty(n)&&(w>2&&delete t[n],w++);var r=function(e){var n=e?g:x;for(w=0;w2){var v=r.substr(0,2);for(w=0;w/g,(p?"-":Qe)+Ye))[d](/px/g,Qe))[d](/%/g,f+u*(h&&y.n?-1:1)/100))[d](/vw/g,f+Ee.w))[d](/vh/g,f+Ee.h),a=oi(t.parseFloat(t.eval(r)).toFixed())}else mi(r)===i.n&&(a=r);if(!isNaN(a)&&a!==n&&mi(a)===i.n){var m=Zt&&h,g=l*(m&&y.n?-1:1),x=m&&y.i,M=m&&y.n;switch(g=x?u-g:g,o){case"+=":s=g+a;break;case"-=":s=g-a;break;case"*=":s=g*a;break;case"/=":s=g/a;break;default:s=a}x&&(s=u-s),M&&(s*=-1),h&&y.n?(s=Math.max(u,s),s=Math.min(0,s)):(s=Math.min(u,s),s=Math.max(0,s)),s===l&&(s=n)}return s};if(L||P){var j=L?W:l(W);if(0===j.length)return;if(I){var B,q,_,U=e.axis,Q=e.block,V=mi(Q),X=e.margin,Y=mi(X);if(V===i.s)Q=[Q,Q];else if(V===i.a)if((q=Q.length)>2||q<1)Q=n;else{for(B=!0,1===q&&(Q[1]=A),w=0;w=G[e.lt]&&$[e.lt]+ht[e._wh]<=G[e.lt]+Ee[e._wh],nt[e.xy]=ht[e._wh]i:r0||O){var yt={};if(dt&&(yt[nn]=M.x),vt&&(yt[rn]=M.y),O)it.animate(yt,r);else{var mt={duration:r,complete:c};if(mi(a)===i.a){var wt={};wt[nn]=a[0],wt[rn]=a[1],mt.specialEasing=wt}else mt.easing=a;it.animate(yt,mt)}}else dt&&it[nn](M.x),vt&&it[rn](M.y)},Se.scrollStop=function(t,e,n){it.stop(t,e,n)},Se.getElements=function(){return{target:J[0],host:Z[0],padding:rt[0],viewport:it[0],content:at[0],scrollbarHorizontal:{scrollbar:lt[0],track:ut[0],handle:ft[0]},scrollbarVertical:{scrollbar:ht[0],track:pt[0],handle:dt[0]},scrollbarCorner:ct}},Se.getState=function(t){var e=function(t){if(!l.isPlainObject(t))return t;var e=wi(!0,{},t),n=function(t,n){e.hasOwnProperty(t)&&(e[n]=e[t],delete e[t])};return n("w",qe),n("h",_e),delete e.c,e},n={sleeping:e(B)||!1,autoUpdate:e(!se),widthAuto:e(xt),heightAuto:e(bt),padding:e(Ct),overflowAmount:e(Wt),hideOverflow:e(gt),hasOverflow:e(wt),contentScrollSize:e(yt),viewportSize:e(Ee),hostSize:e(vt)};return mi(t)===i.s?hi(n,t):n},Mi(e,u))return c.add(e,Se),Se;Se=n}function hr(t,e,n){for(var r=e.split(Je),i=0;i9||!m){t.prepend(fi(Dn,fi({className:jn,dir:"ltr"},fi(jn,fi(Fn))+fi(jn,fi({className:Fn,style:"width: 200%; height: 200%"})))));var p,d,v,g,x=t[0][c][0][c][0],b=l(x[c][1]),M=l(x[c][0]),O=l(M[0][c][0]),C=x[o.oW],S=x[o.oH],z=2,T=f.nativeScrollbarSize,E=function(){M[nn](n)[rn](n),b[nn](n)[rn](n)},H=function(){d=0,p&&(C=v,S=g,u())},k=function(t){return v=x[o.oW],g=x[o.oH],p=v!=C||g!=S,t&&p&&!d?(a.cAF()(d),d=a.rAF()(H)):t||H(),E(),t&&(a.prvD(t),a.stpP(t)),!1},I={},W={};W[Ne]=-(T.y+1)*z,W[Re]=T.x*-z,W[De]=T.y*-z,W[je]=-(T.x+1)*z,l(x).css(W),M.on(Xe,k),b.on(Xe,k),t.on(s,function(){k(!1)}),I[qe]=n,I[_e]=n,O.css(I),E()}else{var L=K[0],P=L.attachEvent,N=!1!==w;if(P)t.prepend(fi(Dn)),ui(t,Ge+Dn)[0].attachEvent("onresize",u);else{var R=L.createElement(i.o);R.setAttribute("tabindex","-1"),R.setAttribute(o.c,Dn),R.onload=function(){var t=this.contentDocument.defaultView;t.addEventListener("resize",u),t.document.documentElement.style.display="none"},R.type="text/html",N&&t.prepend(R),R.data="about:blank",N||t.prepend(R),t.on(s,u)}}if(t[0]===et[0]){var D=function(){var e=Z.css("direction"),r={},i=0,o=!1;return e!==Tt&&("ltr"===e?(r[je]=0,r[Re]=Ve,i=n):(r[je]=Ve,r[Re]=0,i=y.n?-n:y.i?0:n),et.children().first().css(r),t[nn](i)[rn](n),Tt=e,o=!0),o};D(),t.on(Xe,function(t){return D()&&Qr(),a.prvD(t),a.stpP(t),!1})}}function vr(t){if(A){var e=t.contents()[0];e[dn].disconnect(),delete e[dn]}else bi(t.children(Ge+Dn).first())}function yr(t){if(t!==n&&A){var e=t.contents()[0];e[dn].unobserve(e)}}function mr(t){if(t!==n&&A){var e=t.contents()[0];e[dn].observe(e)}}function wr(){ce&&!se&&(oe.observe(Z[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[o.i,o.c,o.s]}),ae.observe(H?J[0]:at[0],{attributes:!0,attributeOldValue:!0,subtree:!H,childList:!H,characterData:!H,attributeFilter:H?["wrap","cols","rows"]:[o.i,o.c,o.s]}),se=!0)}function gr(){ce&&se&&(oe.disconnect(),ae.disconnect(),se=!1)}function xr(){if(!B){var t=et[0],e={w:t[o.sW],h:t[o.sH]};if(T){var n=vi(e,Xt);Xt=e,n&&Qr(!0,!1)}else Xt=e}}function br(){me&&$r(!0)}function Mr(){me&&!G.hasClass(nr)&&$r(!1)}function Or(){ye&&($r(!0),clearTimeout(he),he=setTimeout(function(){ye&&$r(!1)},100))}function Cr(t){var e=Q.callbacks;B||(q!==n?clearTimeout(q):((ve||ye)&&$r(!0),ci()||Z.addClass(Cn),ei(e.onScrollStart,t)),Jr(!0,it[nn]()),Jr(!1,it[rn]()),ei(e.onScroll,t),q=setTimeout(function(){Sr(),ei(e.onScrollStop,t)},ke))}function Sr(){clearTimeout(q),q=n,(ve||ye)&&$r(!1),ci()||Z.removeClass(Cn)}function Ar(){Ur(),Se.update(Ve)}function zr(t){var e=t.keyCode;if(!si(e)){if(0===lr.length){var n=function(){Ur(),Se.update(Ve)};n(),le=setInterval(n,1e3/60)}-1===l.inArray(e,lr)&&lr.push(e)}}function Tr(t){var e=t.keyCode;if(!si(e)){var n=l.inArray(e,lr);n>-1&&lr.splice(n,1),0===lr.length&&(Ur(),Se.update(Ve),clearInterval(le))}}function Er(){setTimeout(function(){Ur(),Se.update(Ve)},50)}function Hr(){ue=!0}function kr(){ue=!1,clearInterval(le),lr=[],Ur(),Se.update(Ve)}function Ir(t){return J[nn](y.i&&Zt?9999999:0),J[rn](0),a.prvD(t),a.stpP(t),!1}function Wr(t){if(!B){var e=(t.originalEvent||t).touches!==n;(1===a.mBtn(t)||e)&&(se&&(xe=!0,gr()),ur=a.page(t),fr.w=Z[0][o.oW]-(I?0:L),fr.h=Z[0][o.oH]-(I?0:P),K.on(hn,Nr).on(sn,Lr).on(an,Pr),G.addClass(nr),ct.setCapture&&ct.setCapture(),a.prvD(t),a.stpP(t))}}function Lr(t){var e=a.page(t),n={};(Oe||Me)&&(n[qe]=fr.w+e.x-ur.x),(Ce||Me)&&(n[_e]=fr.h+e.y-ur.y),Z.css(n),a.stpP(t)}function Pr(t){var e=t!==n;K.off(hn,Nr).off(sn,Lr).off(an,Pr),G.removeClass(nr),ct.releaseCapture&&ct.releaseCapture(),e&&(xe&&wr(),Se.update(Ve)),xe=!1}function Nr(t){return a.prvD(t),!1}function Rr(){Qr()}function Dr(){var t={};return k&&ot&&(t.w=oi(ot.css(Fe+qe)),t.h=oi(ot.css(Fe+_e)),t.c=vi(t,ie),t.f=!0),ie=t,t.c}function jr(t,e){var r=e!==n&&null!==e?e.split(Je):Qe,i=t!==n&&null!==t?t.split(Je):Qe;if(r===Qe&&i===Qe)return!1;var o,a,s,c,u=ii(i,r),f=!1,h=ee!==n&&null!==ee?ee.split(Je):[Qe],p=te!==n&&null!==te?te.split(Je):[Qe],d=l.inArray(rr,u),v=u[o];for(d>-1&&u.splice(d,1),o=0;o0&&T&&i-V0?ft:rr)),ae&&(!0===oe?(gr(),h.add(Se)):null===oe&&m?(gr(),h.add(Se)):(h.remove(Se),wr())),Qt)if(Ut)if(nt===n&&(nt=l(fi(Nn)),rt.before(nt)),W)tt.show();else{tt=l(fi(Rn)),nt.before(tt);var ze={w:-1,h:-1};dr(tt,function(){var t={w:tt[0][o.oW],h:tt[0][o.oH]};vi(t,ze)&&(T&&bt&&t.h>0||xt&&t.w>0?Qr():(T&&!bt&&0===t.h||!xt&&0===t.w)&&Qr()),ze=t}),W=!0,null!==x&&tt.css(_e,x+"(100% + 1px)")}else W&&tt.hide();r&&(et.find("*").trigger(Xe),W&&tt.find("*").trigger(Xe));var Te,ke=Z.css("direction"),Ie=di(ke,zt,r),Ge=Z.css("box-sizing"),Ze=di(Ge,Ot,r),tn={c:r,t:oi(Z.css(Le+Ne)),r:oi(Z.css(Le+Re)),b:oi(Z.css(Le+De)),l:oi(Z.css(Le+je))};try{Te=W?tt[0].getBoundingClientRect():null}catch(Fi){return}I="border-box"===Ge;var en=(F="rtl"===ke)?je:Re,an=F?Re:je,un=Z[0],fn=rt[0],hn=!1,pn=!(!W||"none"===Z.css(Ue))&&(0===Math.round(Te.right-Te.left)&&(!!Ft||un[o.cW]-L>0));if(Ut&&!pn){var dn=un[o.oW],vn=nt.css(qe);nt.css(qe,Ve);var yn=un[o.oW];nt.css(qe,vn),(hn=dn!==yn)||(nt.css(qe,dn+1),yn=un[o.oW],nt.css(qe,vn),hn=dn!==yn)}var mn=(pn||hn)&&Ut,wn=di(mn,xt,r),gn=!mn&&xt,xn=!!W&&0===Math.round(Te.bottom-Te.top),bn=di(xn,bt,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.y:0):Qe),Dn[qe]=Ve,jn[Be+qe]=Ye):(wn||Bt)&&(Dn[Be+qe]=Qe,Dn[qe]=Ye,Dn[Ue]=Qe,jn[Be+qe]=Qe),mn&&(Ln.cw||(Dn[Be+qe]=Qe),jn[qe]=H&&fe?qn.dw:Ve,Dn[qe]=Ve,Dn[Ue]=an),xn&&(Ln.ch||(Dn[Be+_e]=Qe),jn[_e]=H?ge?qn.dh:Ve:at[0][o.cH]),Ut&&nt.css(jn),at.css(Dn),Dn={},jn={},wt=wt||{x:!1,y:!1},t||e||Ie||Ze||Bt||wn||mn||bn||xn||Ln.c||Xt||le||_t||dt||U||he||xe||jt||Bt||he||xe||r){var _n="overflow",Un=_n+"-x",Qn=_n+"-y",Vn="hidden",Xn="visible",Yn=z&&(d.x||d.y||Ee.w0&&(jn[qe]=Math.max(1,jn[qe]),jn[_e]=Math.max(1,jn[_e])),H&&st.css(Cr),nt.css(jn)}mn&&(Dn[qe]=Ye),!mn||I||se||(Dn[Ue]="none"),at.css(Dn),Dn={};var Sr=nr.getBoundingClientRect(),Ar={w:Math.max(nr[o.sW],ar[o.sW]),h:Math.max(nr[o.sH],ar[o.sH])};if(Yn&&at.css(_n,Qe),Sr.width){var zr=Sr.width,Tr=Sr.height,Er=.001;Ar.w+=oi(zr+Er)-zr,Ar.h+=oi(Tr+Er)-Tr}Ar.c=e=vi(Ar,yt,r),yt=Ar,t=vi(ur={w:un[o.cW],h:un[o.cH]},vt),vt=ur,Ee={w:fn[o.oW],h:fn[o.oH]};var Hr={x:"v-s"===ce.x,y:"v-s"===ce.y},kr={x:"v-h"===ce.x,y:"v-h"===ce.y},Ir={x:"s"===ce.x,y:"s"===ce.y},Lr={x:Math.max(0,Math.round(100*(Ar.w-ur.w+(Ft?L:0)))/100),y:Math.max(0,Math.round(100*(Ar.h-ur.h+(Ft?P:0)))/100)},Pr=H&&(0===Ee.w||0===Ee.h);Pr&&(Lr.x=0,Lr.y=0);var Nr={x:Lr.x>0,y:Lr.y>0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Xr[De]=-(d.x?v.x:b.x),Ae.h=d.x?v.y:0)):(Xr[Un]=Qe,Yr()),Nr.y&&Rr.ys?(Xr[Qn]=Xe,Vt?ti():(Xr[en]=-(d.y?v.y:b.y),Ae.w=d.y?v.x:0)):(Xr[Qn]=Qe,ti()),(Ee.h-1,ji=Ri.y>-1;(Di||ji)&&(ji&&it[rn](Ri.y),Di&&(F&&Zt&&y.i?it[nn](0):it[nn](Ri.x)))}Dt=Ti}else H||(F&&y.i&&d.y&&Nr.x&&Zt&&(c.l+=Ae.w||0),it[nn](c.l),it[rn](c.t));Ie&&ei(A,{isRTL:F,dir:ke}),t&&ei(q,{width:vt.w,height:vt.h}),e&&ei(E,{width:yt.w,height:yt.h}),(Nr.c||Rr.c)&&ei(O,{x:Nr.x,y:Nr.y,xScrollable:Rr.xs,yScrollable:Rr.ys,clipped:Rr.x||Rr.y}),Lr.c&&ei(C,{x:Lr.x,y:Lr.y})}k&&(Nr.c||ie.c)&&(ie.f||Dr(),d.y&&Nr.x&&at.css(Fe+qe,ie.w+v.y),d.x&&Nr.y&&at.css(Fe+_e,ie.h+v.x),ie.c=!1),mr(et),mr(tt),ei(M,{forced:r})}}function Vr(t){U=wi(!0,{},U,O.v(t,O.t,!0)),Q=wi(!0,{},Q,O.v(t,O.t,!1,!0))}function Xr(){lt=l(fi(qn+Je+tr)),ut=l(fi(_n)),ft=l(fi(Qn)),ht=l(fi(qn+Je+er)),pt=l(fi(_n)),dt=l(fi(Qn)),lt.append(ut),ut.append(ft),ht.append(pt),pt.append(dt),rt.after(ht),rt.after(lt),M&&(lt.on(pn,function(t){t.target===lt[0]&&(Gr(!0),Jr(!0,it[nn]()))}),ht.on(pn,function(t){t.target===ht[0]&&(Gr(!1),Jr(!1,it[rn]()))})),Yr(!0),Yr(!1),ct=l(fi(Kn)),Z.append(ct)}function Yr(t){var e,r,i,o=ti(t),s=o.xy,c=Xe+o.LT,l="active",u=1,f=function(){u=.5},h=function(){u=1},p=function(n){var i=o.i.tl,l=o.i.hl,u=o.i.ms*((l/2+a.page(n)[s]-r-l/2)/(i-l));u=isFinite(u)?u:0,F&&t&&(y.n||!y.n&&!y.i)&&(u*=-1),it[c](e+u),S||a.prvD(n)},d=function(t){t=t||t.originalEvent,xi(G,nr),xi(o.h,l),xi(o.t,l),xi(o.s,l),S?(pr(K,sn,p),pr(K,an,d),pr(K,un,v),pr(K,fn,m)):K.off(sn,p).off(an,d).off(un,v).off(fn,m),K.off(hn,Nr),h(),e=n,r=n,i!==n&&(Se.scrollStop(),clearTimeout(i),i=n);var a=Z[0].getBoundingClientRect();t.clientX>=a.left&&t.clientX<=a.right&&t.clientY>=a.top&&t.clientY<=a.bottom||Mr(),(ve||ye)&&$r(!1)},v=function(t){16==t.keyCode&&f()},m=function(t){16==t.keyCode&&h()};o.h.on(on,function(i){if(!B){var u=(i.originalEvent||i).touches!==n;ci()||!Gt||u&&!we||(1===a.mBtn(i)||u)&&(e=(e=it[c]())===n?0:e,(F&&t&&!y.n||!F)&&(e=e<0?0:e),r=a.page(i)[s],gi(G,nr),gi(o.h,l),gi(o.s,l),S?(hr(K,sn,p),hr(K,an,d)):K.on(sn,p).on(an,d),K.on(hn,Nr),a.prvD(i))}}),o.t.on(on,function(e){if(!B){var c=(e.originalEvent||e).touches!==n;if(!ci()&&$t&&(!c||we)&&(1===a.mBtn(e)||c)){var h,p=Ee[o._wh],w=o.t.offset()[o.lt],g=!0;e.shiftKey&&f();var x=function(){var e=o.i.ho,a=o.i.hl,s=r-w,c=200*u,l=g?Math.max(333,c):c,f={},d=F&&t&&(!y.i&&!y.n||Zt),v=e>s;d&&(v=e=s;d&&(m=h?e+a>=s:e<=s),m?(clearTimeout(i),Se.scrollStop(),i=n):i=setTimeout(x,l),g=!1};r=a.page(e)[s],gi(G,nr),gi(o.t,l),gi(o.s,l),S?(hr(K,an,d),hr(K,un,v),hr(K,fn,m)):K.on(an,d).on(un,v).on(fn,m),K.on(hn,Nr),x(),a.prvD(e)}}}).hover(function(){(ve||ye)&&(ge=!0,$r(!0))},function(){(ve||ye)&&(ge=!1,$r(!1))}),o.s.on(on,function(t){a.stpP(t)})}function Kr(t,e,n){var r=t?gn:xn,i=t?lt:ht;e?Z.removeClass(r):Z.addClass(r),n?i.removeClass(Xn):i.addClass(Xn)}function $r(t,e){if(clearTimeout(fe),t)lt.removeClass(Yn),ht.removeClass(Yn);else{var n="active",r=function(){if(!ge){var t=ft.hasClass(n)||dt.hasClass(n);!t&&(ve||ye||me)&<.addClass(Yn),!t&&(ve||ye||me)&&ht.addClass(Yn)}};pe>0&&!0!==e?fe=setTimeout(r,pe):r()}}function Gr(t){var e={},n=ti(t),r=Math.min(1,(vt[n._wh]-(Et?t?L:P:0))/yt[n._wh]);e[n.wh]=Math.floor(100*r*1e5)/1e5+"%",ci()||n.h.css(e),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function Jr(t,e){var n,r,i=F&&t,o={},a=ti(t),s="translate(",c="transform",l=it[0][Xe+a.WH]-it[0]["client"+a.WH],u=a.i.hl,f=a.t[0]["offset"+a.WH],h=f-u;y.n&&i&&(l*=-1),r=e/l,r=isNaN(r)?0:Math.min(1,r),a.i.ms=l,a.i.cs=e,a.i.csr=r,h*=r,h=isNaN(h)?0:h,i&&(y.n||!y.n&&!y.i)&&(h=f-u-h),h=Math.max(0,h),C?(i&&(h=-(f-u-h)),n=t?s+h+"px, 0px)":s+"0px, "+h+"px)",o["-webkit-"+c]=n,o["-moz-"+c]=n,o["-ms-"+c]=n,o["-o-"+c]=n,o[c]=n):o[a.lt]=h,ci()||a.h.css(o),a.i.ho=h,a.i.tl=f}function Zr(t,e){var n=e?"removeClass":"addClass",r=t?pt:dt,i=t?Un:Vn;(t?ut:ft)[n](i),r[n](i)}function ti(t){return{wh:t?qe:_e,WH:t?"Width":"Height",lt:t?je:Ne,LT:t?"Left":"Top",xy:t?Ke:$e,XY:t?"X":"Y",_wh:t?"w":"h",_lt:t?"l":"t",t:t?ut:pt,h:t?ft:dt,s:t?lt:ht,i:t?ze:Te}}function ei(t,e){T&&l.isFunction(t)&&t.call(Se,e)}function ni(t,e,r){r===n&&(r=[Qe,Qe,Qe,Qe]),t[e+Ne]=r[0],t[e+Re]=r[1],t[e+De]=r[2],t[e+je]=r[3]}function ri(e){return typeof t.HTMLElement===i.o?e instanceof t.HTMLElement:e&&typeof e===i.o&&null!==e&&1===e.nodeType&&typeof e.nodeName===i.s}function ii(t,e){var n,r=[],i=[];for(n=0;nu&&(l=r+1,u=e);return{cursorRow:f,cursorCol:h,rows:s,cols:u,wRow:l,pos:t,max:o}}}function si(t){for(var e=0;e"+(e||Qe)+""}function hi(t,e){for(var n,r=e.split(Ge),o=0;o9||!m?J.on("input",Ar):J.on(un,zr).on(fn,Tr)}else gi(J,mn),(Z=J).wrapInner(fi(Ln)).wrapInner(fi(kn)).wrapInner(fi(Hn)),at=ui(Z,Ge+Ln),it=ui(Z,Ge+kn),rt=ui(Z,Ge+Hn),at.on(pn,function(t){!0!==Pt&&_r((t=t.originalEvent||t).propertyName)&&Qr(Ve)});if(Xr(),S?hr(it,Xe,Cr):it.on(Xe,Cr),g&&gi(it,d.x&&d.y?Wn:In),ce){var s,c,u,h,p,O,I=a.mO(),W=a.now();oe=new I(function(t){if(T&&!B){var e,n=!1;l.each(t,function(){if(s=(e=this).target,c=e.attributeName,n=c===o.c?jr(e.oldValue,s.className):c!==o.s||e.oldValue!==s.style.cssText)return!1}),n&&Se.update(Ve)}}),ae=new I(function(t){if(T&&!B){var e=!1;l.each(t,function(){return!(e=Fr(this))}),e&&(h=a.now(),p=bt||xt,O=function(){W=h,H&&Ur(),p?Se.update():Se.update(Ve)},clearTimeout(u),sr<=0||h-W>sr||!p?O():u=setTimeout(O,sr))}})}return k&&(gi($,yn),it[nn](n.l),it[rn](n.t)),et=l(fi("os-resize-observer-host")),Z.prepend(et),dr(et,xr),xr(),Se.update(Ve),setTimeout(function(){M&&!E&&gi(Z,bn)},333),T=!0,ei(r.onInitialized),T}}return t[r]=function(e,i){if(0===arguments.length)return this;C();var o,a,s=[];return l.isPlainObject(i)?e&&e.length?(l.each(e,function(){o=this,console.log(o),o!==n&&s.push(z(o,i,u,f))}),a=s.length>1?s:s[0]):a=z(e,i,u,f):e&&(e.length&&e.length>0?(l.each(e,function(){o=c.get(this),"!"===i?o instanceof t[r]&&s.push(o):s.push(o)}),a=s.length>1?s:s[0]):a=c.get(e)),a},t[r].globals=function(){C();var t=l.extend(!0,{},u);return delete t.msie,t},t[r].defaultOptions=function(t){C();var e=u.defaultOptions;if(t===n)return l.extend(!0,{},e);u.defaultOptions=l.extend(!0,{},e,O.v(t,O.t,!0))},t[r]}(a,function(t){var e=[],r="__overlayScrollbars__";function i(t,n){t[r]=n,e.push(t)}function o(n){var i=t.inArray(n,e);i>-1&&(delete n[r],e.splice(i,1))}function a(t){return s(t)!==n}function s(t){for(var n=0;n0?"\r\nValid strings are: [ "+A.join(", ").split(v).join(", ")+" ].":"")),delete t[s]}}};return l(s,e,a),o?c.extend(!0,a,s):!c.isEmptyObject(s)&&n&&console.warn("The following options are discarded due to invalidity:\r\n"+JSON.stringify(s,null,2)),a}});function O(){u||(u=new C(z.d)),f||(f=new M(u))}function C(o){var i=this,s="overflow",u="hidden",f="scroll",h=c("body"),d=c('
'),v=d[0],p=c(d.children("div").first()),y=v[a.oH];h.append(d),0===y&&d.hide().show();var x,w,m,b,g,S,z,O,C,M=k(v),H={x:0===M.x,y:0===M.y};function W(t){var r=!1,o="Webkit Moz ms O".split(" "),i=e.createElement("div"),a=null,s=0;if(t=t.toLowerCase(),i.style[t]!==n&&(r=!0),!r)for(a=t.charAt(0).toUpperCase()+t.substr(1);s0?O=C(x[m](b+5,x[w](".",b)),10):g>0?O=C(x[m](z+3,x[w](".",z)),10):S>0&&(O=C(x[m](S+5,x[w](".",S)),10)),O),cssCalc:function(){var t,n,r=e.createElement("div"),o=["calc","-webkit-calc","-moz-calc","-o-calc"];for(t=0;t0){var t=r.wW(),u=r.wH(),f=t-e,v=u-n;if(0===f&&0===v)return;var p=Math.round(t/(e/100)),y=Math.round(u/(n/100)),x=Math.abs(f),w=Math.abs(v),m=Math.abs(p),b=Math.abs(y),g=s(),S=x>2&&w>2,z=!a(m,b);!(S&&z&&(g!==o&&o>0))||(h.append(d),i.nativeScrollbarSize=k(d[0]),d.remove(),c.each(l.all(),function(){l.has(this)&&l.get(this).update("zoom")})),e=t,n=u,o=g}})}function a(t,e){var n=Math.abs(t),r=Math.abs(e);return!(n===r||n+1===r||n-1===r)}function s(){var e=t.screen.deviceXDPI||0,n=t.screen.logicalXDPI||1;return t.devicePixelRatio||e/n}}()}function M(t){var e,o=this,i="autoUpdate",a=i+"Interval",s=[],l=[],u=!1,f=33,h=f,d=r.now(),v=function(){if(s.length>0&&u){e=r.rAF()(function(){v()});var t=r.now(),o=t-d;if(o>h){d=t-o%h;for(var c=f,p=0;pm&&(y.update("auto"),l[p]=new Date(b+=m)),c=Math.max(1,Math.min(c,m))}}h=c}}else h=f};o.add=function(e){-1===c.inArray(e,s)&&(s.push(e),l.push(r.now()),s.length>0&&!u&&(u=!0,t.autoUpdateLoop=u,v()))},o.remove=function(o){var i=c.inArray(o,s);i>-1&&(l.splice(i,1),s.splice(i,1),0===s.length&&u&&(u=!1,t.autoUpdateLoop=u,e!==n&&(r.cAF()(e),e=-1)))}}function H(e,u,f,h){if(ro(e)){if(l.has(e)){var d=l.get(e);return d.options(u),d}var v,p,y,x,w,m,b,g,S,O,C,M,H,W,k,A,T,E,L,R,D,P,N,_,F,I,j,U,B,V,q,X,Y,K,J,Q,G,Z,$,tt,et,nt,rt,ot,it,at,st,lt,ct,ut,ft,ht,dt,vt,pt,yt,xt,wt,mt,bt,gt,St,zt,Ot,Ct,Mt,Ht,Wt,kt,At,Tt,Et,Lt,Rt,Dt,Pt,Nt,_t,Ft,It,jt,Ut,Bt,Vt,qt,Xt,Yt,Kt,Jt,Qt,Gt,Zt,$t,te,ee,ne,re,oe,ie,ae,se,le,ce,ue,fe,he,de,ve,pe,ye,xe,we,me,be,ge,Se,ze,Oe,Ce=new t[o],Me={},He={},We={},ke={},Ae={},Te=175,Ee="-hidden",Le="margin-",Re="padding-",De="border-",Pe="top",Ne="right",_e="bottom",Fe="left",Ie="min-",je="max-",Ue="width",Be="height",Ve="float",qe="",Xe="auto",Ye="scroll",Ke="100%",Je="x",Qe="y",Ge=".",Ze=" ",$e="scrollbar",tn="-horizontal",en="-vertical",nn=Ye+"Left",rn=Ye+"Top",on="mousedown touchstart",an="mouseup touchend",sn="mousemove touchmove",ln="mouseenter",cn="mouseleave",un="keydown",fn="keyup",hn="selectstart",dn="transitionend webkitTransitionEnd oTransitionEnd",vn="__overlayScrollbarsRO__",pn="os-",yn=pn+"html",xn=pn+"host",wn=xn+"-textarea",mn=xn+"-"+$e+tn+Ee,bn=xn+"-"+$e+en+Ee,gn=xn+"-transition",Sn=xn+"-rtl",zn=xn+"-resize-disabled",On=xn+"-scrolling",Cn=xn+"-overflow",Mn=Cn+"-x",Hn=Cn+"-y",Wn=pn+"textarea",kn=Wn+"-cover",An=pn+"padding",Tn=pn+"viewport",En=Tn+"-native-scrollbars-invisible",Ln=Tn+"-native-scrollbars-overlaid",Rn=pn+"content",Dn=pn+"content-arrange",Pn=pn+"content-glue",Nn=pn+"size-auto-observer",_n=pn+"resize-observer",Fn=pn+"resize-observer-item",In=Fn+"-final",jn=pn+"text-inherit",Un=pn+$e,Bn=Un+"-track",Vn=Bn+"-off",qn=Un+"-handle",Xn=qn+"-off",Yn=Un+"-unusable",Kn=Un+"-"+Xe+Ee,Jn=Un+"-corner",Qn=Jn+"-resize",Gn=Qn+"-both",Zn=Qn+tn,$n=Qn+en,tr=Un+tn,er=Un+en,nr=pn+"dragging",rr=pn+"theme-none",or={},ir=33,ar=[],sr=11,lr=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],cr=[],ur={},fr={};if(Ce.sleep=function(){j=!0},Ce.update=function(t){var e,n,r="zoom"===t,o="img",i="load";t===Xe?(e=Ur(),n=jr(),(e||n)&&qr(!1,n)):r?qr(!0,!0):(t=j||t,j=!1,qr(!1,!1,t)),A||r||at.find(o).each(function(t,e){-1===c.inArray(e,ar)&&(e=c(e)).off(i,Nr).on(i,Nr)})},Ce.options=function(t,e){if(c.isEmptyObject(t)||!c.isPlainObject(t)){if(wo(t)===i.s){if(arguments.length>=2){var n={};return vo(n,t,e),Xr(n),void qr()}return ho(V,t)}return V}Xr(t);var r=j||!1;j=!1,qr(),j=r},Ce.destroy=function(){k=!0,h.remove(Ce),mr(),pr(et),L&&pr(tt),So(et),nt!==n&&So(nt),it!==n&&So(it),L&&So(tt),C?(dr($,sn,zr),dr($,ln,gr),dr($,cn,Sr)):$.off(sn,zr).off(ln,gr).off(cn,Sr),So(ct),So(ht),lt&&So(lt),ge||Dr(),at.contents().unwrap().unwrap().unwrap(),T&&go(Q,yn),A?(Z.off(Ye,Er).off("drop",kr).off("focus",Ar).off("focusout",Tr),w>9||!x?Z.off("input",Mr):Z.off(un,Hr).off(fn,Wr),So(st),go(Z,Wn+Ze+jn).unwrap().removeAttr(a.s),So($)):(go(Z,xn),go($,[xn,zn,Sn,mn,bn,gn,On,Cn,Mn,Hn,rr,te].join(Ze)));for(var t=0;t0)e.x=t[0],e.y=t[1];else if(wo(t)===i.s||wo(t)===i.n)e.x=t,e.y=t;else if(wo(t)===i.o){for(var n in t=mo({},t),w=0,t)t.hasOwnProperty(n)&&(w>2&&delete t[n],w++);var r=function(e){var n=e?m:b;for(w=0;w2){var p=r.substr(0,2);for(w=0;w/g,(d?"-":qe)+Ke))[v](/px/g,qe))[v](/%/g,f+u*(h&&y.n?-1:1)/100))[v](/vw/g,f+ke.w))[v](/vh/g,f+ke.h),a=io(t.parseFloat(t.eval(r)).toFixed())}else wo(r)===i.n&&(a=r);if(!isNaN(a)&&a!==n&&wo(a)===i.n){var x=$t&&h,m=c*(x&&y.n?-1:1),b=x&&y.i,S=x&&y.n;switch(m=b?u-m:m,o){case"+=":s=m+a;break;case"-=":s=m-a;break;case"*=":s=m*a;break;case"/=":s=m/a;break;default:s=a}b&&(s=u-s),S&&(s*=-1),h&&y.n?(s=Math.max(u,s),s=Math.min(0,s)):(s=Math.min(u,s),s=Math.max(0,s)),s===c&&(s=n)}return s};if(R||D){var F=R?L:c(L);if(0===F.length)return;if(E){var j,U,B,V=e.axis,q=e.block,X=wo(q),Y=e.margin,K=wo(Y);if(X===i.s)q=[q,q];else if(X===i.a)if((U=q.length)>2||U<1)q=n;else{for(j=!0,1===U&&(q[1]=M),w=0;w=G[e.lt]&&Q[e.lt]+ht[e._wh]<=G[e.lt]+ke[e._wh],nt[e.xy]=ht[e._wh]o:r0||z){var yt={};if(vt&&(yt[nn]=S.x),pt&&(yt[rn]=S.y),z)ot.animate(yt,r);else{var xt={duration:r,complete:l};if(wo(o)===i.a){var wt={};wt[nn]=o[0],wt[rn]=o[1],xt.specialEasing=wt}else xt.easing=o;ot.animate(yt,xt)}}else vt&&ot[nn](S.x),pt&&ot[rn](S.y)},Ce.scrollStop=function(t,e,n){ot.stop(t,e,n)},Ce.getElements=function(){return{target:Z[0],host:$[0],padding:rt[0],viewport:ot[0],content:at[0],scrollbarHorizontal:{scrollbar:ct[0],track:ut[0],handle:ft[0]},scrollbarVertical:{scrollbar:ht[0],track:dt[0],handle:vt[0]},scrollbarCorner:lt}},Ce.getState=function(t){var e=function(t){if(!c.isPlainObject(t))return t;var e=mo(!0,{},t),n=function(t,n){e.hasOwnProperty(t)&&(e[n]=e[t],delete e[t])};return n("w",Ue),n("h",Be),delete e.c,e},n={sleeping:e(j)||!1,autoUpdate:e(!se),widthAuto:e(bt),heightAuto:e(gt),padding:e(Ot),overflowAmount:e(Lt),hideOverflow:e(mt),hasOverflow:e(wt),contentScrollSize:e(yt),viewportSize:e(ke),hostSize:e(pt)};return wo(t)===i.s?ho(n,t):n},zo(e,u))return l.add(e,Ce),Ce;Ce=n}function hr(t,e,n){for(var r=e.split(Ze),o=0;o9||!x){t.prepend(fo(_n,fo({className:Fn,dir:"ltr"},fo(Fn,fo(In))+fo(Fn,fo({className:In,style:"width: 200%; height: 200%"})))));var d,v,p,m,b=t[0][l][0][l][0],g=c(b[l][1]),S=c(b[l][0]),z=c(S[0][l][0]),O=b[a.oW],C=b[a.oH],H=2,W=f.nativeScrollbarSize,k=function(){S[nn](n)[rn](n),g[nn](n)[rn](n)},A=function(){v=0,d&&(O=p,C=m,u())},T=function(t){return p=b[a.oW],m=b[a.oH],d=p!=O||m!=C,t&&d&&!v?(r.cAF()(v),v=r.rAF()(A)):t||A(),k(),t&&(r.prvD(t),r.stpP(t)),!1},E={},L={};L[Pe]=-(W.y+1)*H,L[Ne]=W.x*-H,L[_e]=W.y*-H,L[Fe]=-(W.x+1)*H,c(b).css(L),S.on(Ye,T),g.on(Ye,T),t.on(s,function(){T(!1)}),E[Ue]=n,E[Be]=n,z.css(E),k()}else{var R=J[0],D=R.attachEvent,P=!1!==w;if(D)t.prepend(fo(_n)),uo(t,Ge+_n)[0].attachEvent("onresize",u);else{var N=R.createElement(i.o);N.setAttribute("tabindex","-1"),N.setAttribute(a.c,_n),N.onload=function(){var t=this.contentDocument.defaultView;t.addEventListener("resize",u),t.document.documentElement.style.display="none"},N.type="text/html",P&&t.prepend(N),N.data="about:blank",P||t.prepend(N),t.on(s,u)}}if(t[0]===et[0]){var _=function(){var e=$.css("direction"),r={},o=0,i=!1;return e!==Wt&&("ltr"===e?(r[Fe]=0,r[Ne]=Xe,o=n):(r[Fe]=Xe,r[Ne]=0,o=y.n?-n:y.i?0:n),et.children().first().css(r),t[nn](o)[rn](n),Wt=e,i=!0),i};_(),t.on(Ye,function(t){return _()&&qr(),r.prvD(t),r.stpP(t),!1})}}function pr(t){if(M){var e=t.contents()[0];e[vn].disconnect(),delete e[vn]}else So(t.children(Ge+_n).first())}function yr(t){if(t!==n&&M){var e=t.contents()[0];e[vn].unobserve(e)}}function xr(t){if(t!==n&&M){var e=t.contents()[0];e[vn].observe(e)}}function wr(){le&&!se&&(ie.observe($[0],{attributes:!0,attributeOldValue:!0,attributeFilter:[a.i,a.c,a.s]}),ae.observe(A?Z[0]:at[0],{attributes:!0,attributeOldValue:!0,subtree:!A,childList:!A,characterData:!A,attributeFilter:A?["wrap","cols","rows"]:[a.i,a.c,a.s]}),se=!0)}function mr(){le&&se&&(ie.disconnect(),ae.disconnect(),se=!1)}function br(){if(!j){var t=et[0],e={w:t[a.sW],h:t[a.sH]};if(W){var n=yo(e,Yt);Yt=e,n&&qr(!0,!1)}else Yt=e}}function gr(){xe&&Qr(!0)}function Sr(){xe&&!G.hasClass(nr)&&Qr(!1)}function zr(){ye&&(Qr(!0),clearTimeout(he),he=setTimeout(function(){ye&&Qr(!1)},100))}function Or(t){var e=q.callbacks;j||(U!==n?clearTimeout(U):((pe||ye)&&Qr(!0),lo()||$.addClass(On),eo(e.onScrollStart,t)),Zr(!0,ot[nn]()),Zr(!1,ot[rn]()),eo(e.onScroll,t),U=setTimeout(function(){Cr(),eo(e.onScrollStop,t)},Te))}function Cr(){clearTimeout(U),U=n,(pe||ye)&&Qr(!1),lo()||$.removeClass(On)}function Mr(){Vr(),Ce.update(Xe)}function Hr(t){var e=t.keyCode;if(!so(e)){if(0===cr.length){var n=function(){Vr(),Ce.update(Xe)};n(),ce=setInterval(n,1e3/60)}-1===c.inArray(e,cr)&&cr.push(e)}}function Wr(t){var e=t.keyCode;if(!so(e)){var n=c.inArray(e,cr);n>-1&&cr.splice(n,1),0===cr.length&&(Vr(),Ce.update(Xe),clearInterval(ce))}}function kr(){setTimeout(function(){Vr(),Ce.update(Xe)},50)}function Ar(){ue=!0}function Tr(){ue=!1,clearInterval(ce),cr=[],Vr(),Ce.update(Xe)}function Er(t){return Z[nn](y.i&&$t?9999999:0),Z[rn](0),r.prvD(t),r.stpP(t),!1}function Lr(t){if(!j){var e=(t.originalEvent||t).touches!==n;(1===r.mBtn(t)||e)&&(se&&(be=!0,mr()),ur=r.page(t),fr.w=$[0][a.oW]-(E?0:R),fr.h=$[0][a.oH]-(E?0:D),J.on(hn,Pr).on(sn,Rr).on(an,Dr),G.addClass(nr),lt.setCapture&<.setCapture(),r.prvD(t),r.stpP(t))}}function Rr(t){var e=r.page(t),n={};(ze||Se)&&(n[Ue]=fr.w+e.x-ur.x),(Oe||Se)&&(n[Be]=fr.h+e.y-ur.y),$.css(n),r.stpP(t)}function Dr(t){var e=t!==n;J.off(hn,Pr).off(sn,Rr).off(an,Dr),G.removeClass(nr),lt.releaseCapture&<.releaseCapture(),e&&(be&&wr(),Ce.update(Xe)),be=!1}function Pr(t){return r.prvD(t),!1}function Nr(){qr()}function _r(){var t={};return T&&it&&(t.w=io(it.css(Ie+Ue)),t.h=io(it.css(Ie+Be)),t.c=yo(t,oe),t.f=!0),oe=t,t.c}function Fr(t,e){var r=e!==n&&null!==e?e.split(Ze):qe,o=t!==n&&null!==t?t.split(Ze):qe;if(r===qe&&o===qe)return!1;var i,a,s,l,u=oo(o,r),f=!1,h=ee!==n&&null!==ee?ee.split(Ze):[qe],d=te!==n&&null!==te?te.split(Ze):[qe],v=c.inArray(rr,u),p=u[i];for(v>-1&&u.splice(v,1),i=0;i0&&W&&i-X0?ft:rr)),ae&&(!0===ie?(mr(),h.add(Ce)):null===ie&&x?(mr(),h.add(Ce)):(h.remove(Ce),wr())),qt)if(Vt)if(nt===n&&(nt=c(fo(Pn)),rt.before(nt)),L)tt.show();else{tt=c(fo(Nn)),nt.before(tt);var He={w:-1,h:-1};vr(tt,function(){var t={w:tt[0][a.oW],h:tt[0][a.oH]};yo(t,He)&&(W&>&&t.h>0||bt&&t.w>0?qr():(W&&!gt&&0===t.h||!bt&&0===t.w)&&qr()),He=t}),L=!0,null!==b&&tt.css(Be,b+"(100% + 1px)")}else L&&tt.hide();o&&(et.find("*").trigger(Ye),L&&tt.find("*").trigger(Ye));var We,Te=$.css("direction"),Ee=po(Te,Ht,o),Ge=$.css("box-sizing"),$e=po(Ge,zt,o),tn={c:o,t:io($.css(Re+Pe)),r:io($.css(Re+Ne)),b:io($.css(Re+_e)),l:io($.css(Re+Fe))};try{We=L?tt[0].getBoundingClientRect():null}catch(jo){return}E="border-box"===Ge;var en=(I="rtl"===Te)?Fe:Ne,an=I?Ne:Fe,un=$[0],fn=rt[0],hn=!1,dn=!(!L||"none"===$.css(Ve))&&(0===Math.round(We.right-We.left)&&(!!It||un[a.cW]-R>0));if(Vt&&!dn){var vn=un[a.oW],pn=nt.css(Ue);nt.css(Ue,Xe);var yn=un[a.oW];nt.css(Ue,pn),(hn=vn!==yn)||(nt.css(Ue,vn+1),yn=un[a.oW],nt.css(Ue,pn),hn=vn!==yn)}var xn=(dn||hn)&&Vt,wn=po(xn,bt,o),mn=!xn&&bt,bn=!!L&&0===Math.round(We.bottom-We.top),gn=po(bn,gt,o),Wn=!bn&>,kn="-"+Ue,An=xn&&E||!E,Tn=bn&&E||!E,En={c:o,t:Tn?io($.css(De+Pe+kn)):0,r:An?io($.css(De+Ne+kn)):0,b:Tn?io($.css(De+_e+kn)):0,l:An?io($.css(De+Fe+kn)):0},Ln={c:o,t:io($.css(Le+Pe)),r:io($.css(Le+Ne)),b:io($.css(Le+_e)),l:io($.css(Le+Fe))},Rn={h:String($.css(je+Be)),w:String($.css(je+Ue))},_n={},Fn={};if(R=tn.l+tn.r,D=tn.t+tn.b,tn.c=xo(tn,Ot),P=En.l+En.r,N=En.t+En.b,En.c=xo(En,Ct),_=Ln.l+Ln.r,F=Ln.t+Ln.b,Ln.c=xo(Ln,Mt),Rn.ih=io(Rn.h),Rn.iw=io(Rn.w),Rn.ch=Rn.h.indexOf("px")>-1,Rn.cw=Rn.w.indexOf("px")>-1,Rn.c=yo(Rn,St,o),Ht=Te,zt=Ge,bt=xn,gt=bn,Ot=tn,Ct=En,Mt=Ln,St=Rn,Ee&&L&&tt.css(Ve,an),tn.c||Ee||jt||wn||gn||$e||qt){var In={},jn={};no(Fn,Le,[-tn.t,-tn.r,-tn.b,-tn.l]),It?(no(In,qe,[tn.t,tn.r,tn.b,tn.l]),no(A?jn:_n,Re)):(no(In,qe),no(A?jn:_n,Re,[tn.t,tn.r,tn.b,tn.l])),rt.css(In),Z.css(jn)}ke={w:fn[a.oW],h:fn[a.oH]};var Un=!!A&&Vr();if(bn&&(gn||jt||$e||Rn.c||tn.c||En.c)?(Rn.cw&&(_n[je+Be]=Rn.ch?Rn.ih-(It?D:0)+(E?-N:D):qe),_n[Be]=Xe):(gn||jt)&&(_n[je+Be]=qe,_n[Be]=Ke),xn&&(wn||jt||$e||Rn.c||tn.c||En.c||Ee)?(Rn.cw&&(_n[je+Ue]=Rn.cw?Rn.iw-(It?R:0)+(E?-P:R)+(v.y?p.y:0):qe),_n[Ue]=Xe,Fn[je+Ue]=Ke):(wn||jt)&&(_n[je+Ue]=qe,_n[Ue]=Ke,_n[Ve]=qe,Fn[je+Ue]=qe),xn&&(Rn.cw||(_n[je+Ue]=qe),Fn[Ue]=A&&fe?Un.dw:Xe,_n[Ue]=Xe,_n[Ve]=an),bn&&(Rn.ch||(_n[je+Be]=qe),Fn[Be]=A?me?Un.dh:Xe:at[0][a.cH]),Vt&&nt.css(Fn),at.css(_n),_n={},Fn={},wt=wt||{x:!1,y:!1},t||e||Ee||$e||jt||wn||xn||gn||bn||Rn.c||Yt||ce||Bt||vt||V||he||be||Ft||jt||he||be||o){var Bn="overflow",Vn=Bn+"-x",qn=Bn+"-y",Xn="hidden",Yn="visible",Kn=H&&(v.x||v.y||ke.w0&&(Fn[Ue]=Math.max(1,Fn[Ue]),Fn[Be]=Math.max(1,Fn[Be])),A&&st.css(Or),nt.css(Fn)}xn&&(_n[Ue]=Ke),!xn||E||se||(_n[Ve]="none"),at.css(_n),_n={};var Cr=nr.getBoundingClientRect(),Mr={w:Math.max(nr[a.sW],ar[a.sW]),h:Math.max(nr[a.sH],ar[a.sH])};if(Kn&&at.css(Bn,qe),Cr.width){var Hr=Cr.width,Wr=Cr.height,kr=.001;Mr.w+=io(Hr+kr)-Hr,Mr.h+=io(Wr+kr)-Wr}Mr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Le+en]=qe)}if(Xt&&(Ur.w=qe,Ur.h=qe,jr=!0),jr){var Xr={};Xr[Ue]=Nr.y?Ur.w:qe,Xr[Be]=Nr.x?Ur.h:qe,it===n&&(it=c(fo(Dn)),ot.prepend(it)),it.css(Xr)}at.css(_n)}var Yr={};In={};if(t||Pr.c||Nr.c||Mr.c||ce||$e||Yt||Ee||Bt||gn){Yr[an]=qe;var Kr=function(){Yr[_e]=qe,Me.h=0},to=function(){Yr[en]=qe,Me.w=0};if(Pr.x&&Nr.xs?(Yr[Vn]=Ye,Xt?Kr():(Yr[_e]=-(v.x?p.x:g.x),Me.h=v.x?p.y:0)):(Yr[Vn]=qe,Kr()),Pr.y&&Nr.ys?(Yr[qn]=Ye,Xt?to():(Yr[en]=-(v.y?p.y:g.y),Me.w=v.y?p.x:0)):(Yr[qn]=qe,to()),(ke.h-1,Io=_o.y>-1;(Fo||Io)&&(Io&&ot[rn](_o.y),Fo&&(I&&$t&&y.i?ot[nn](0):ot[nn](_o.x)))}_t=ko}else A||(I&&y.i&&v.y&&Pr.x&&$t&&(l.l+=Me.w||0),ot[nn](l.l),ot[rn](l.t));Ee&&eo(M,{isRTL:I,dir:Te}),t&&eo(U,{width:pt.w,height:pt.h}),e&&eo(k,{width:yt.w,height:yt.h}),(Pr.c||Nr.c)&&eo(z,{x:Pr.x,y:Pr.y,xScrollable:Nr.xs,yScrollable:Nr.ys,clipped:Nr.x||Nr.y}),Rr.c&&eo(O,{x:Rr.x,y:Rr.y})}T&&(Pr.c||oe.c)&&(oe.f||_r(),v.y&&Pr.x&&at.css(Ie+Ue,oe.w+p.y),v.x&&Pr.y&&at.css(Ie+Be,oe.h+p.x),oe.c=!1),xr(et),xr(tt),eo(S,{forced:o})}}function Xr(t){V=mo(!0,{},V,z.v(t,z.t,!0)),q=mo(!0,{},q,z.v(t,z.t,!1,!0))}function Yr(){ct=c(fo(Un+Ze+tr)),ut=c(fo(Bn)),ft=c(fo(qn)),ht=c(fo(Un+Ze+er)),dt=c(fo(Bn)),vt=c(fo(qn)),ct.append(ut),ut.append(ft),ht.append(dt),dt.append(vt),rt.after(ht),rt.after(ct),S&&(ct.on(dn,function(t){t.target===ct[0]&&(Gr(!0),Zr(!0,ot[nn]()))}),ht.on(dn,function(t){t.target===ht[0]&&(Gr(!1),Zr(!1,ot[rn]()))})),Kr(!0),Kr(!1),lt=c(fo(Jn)),$.append(lt)}function Kr(t){var e,o,i,a=to(t),s=a.xy,l=Ye+a.LT,c="active",u=1,f=function(){u=.5},h=function(){u=1},d=function(n){var i=a.i.tl,c=a.i.hl,u=a.i.ms*((c/2+r.page(n)[s]-o-c/2)/(i-c));u=isFinite(u)?u:0,I&&t&&(y.n||!y.n&&!y.i)&&(u*=-1),ot[l](e+u),C||r.prvD(n)},v=function(t){t=t||t.originalEvent,go(G,nr),go(a.h,c),go(a.t,c),go(a.s,c),C?(dr(J,sn,d),dr(J,an,v),dr(J,un,p),dr(J,fn,x)):J.off(sn,d).off(an,v).off(un,p).off(fn,x),J.off(hn,Pr),h(),e=n,o=n,i!==n&&(Ce.scrollStop(),clearTimeout(i),i=n);var r=$[0].getBoundingClientRect();t.clientX>=r.left&&t.clientX<=r.right&&t.clientY>=r.top&&t.clientY<=r.bottom||Sr(),(pe||ye)&&Qr(!1)},p=function(t){16==t.keyCode&&f()},x=function(t){16==t.keyCode&&h()};a.h.on(on,function(i){if(!j){var u=(i.originalEvent||i).touches!==n;lo()||!Gt||u&&!we||(1===r.mBtn(i)||u)&&(e=(e=ot[l]())===n?0:e,(I&&t&&!y.n||!I)&&(e=e<0?0:e),o=r.page(i)[s],bo(G,nr),bo(a.h,c),bo(a.s,c),C?(hr(J,sn,d),hr(J,an,v)):J.on(sn,d).on(an,v),J.on(hn,Pr),r.prvD(i))}}),a.t.on(on,function(e){if(!j){var l=(e.originalEvent||e).touches!==n;if(!lo()&&Qt&&(!l||we)&&(1===r.mBtn(e)||l)){var h,d=ke[a._wh],w=a.t.offset()[a.lt],m=!0;e.shiftKey&&f();var b=function(){var e=a.i.ho,r=a.i.hl,s=o-w,l=200*u,c=m?Math.max(333,l):l,f={},v=I&&t&&(!y.i&&!y.n||$t),p=e>s;v&&(p=e=s;v&&(x=h?e+r>=s:e<=s),x?(clearTimeout(i),Ce.scrollStop(),i=n):i=setTimeout(b,c),m=!1};o=r.page(e)[s],bo(G,nr),bo(a.t,c),bo(a.s,c),C?(hr(J,an,v),hr(J,un,p),hr(J,fn,x)):J.on(an,v).on(un,p).on(fn,x),J.on(hn,Pr),b(),r.prvD(e)}}}).hover(function(){(pe||ye)&&(me=!0,Qr(!0))},function(){(pe||ye)&&(me=!1,Qr(!1))}),a.s.on(on,function(t){r.stpP(t)})}function Jr(t,e,n){var r=t?mn:bn,o=t?ct:ht;e?$.removeClass(r):$.addClass(r),n?o.removeClass(Yn):o.addClass(Yn)}function Qr(t,e){if(clearTimeout(fe),t)ct.removeClass(Kn),ht.removeClass(Kn);else{var n="active",r=function(){if(!me){var t=ft.hasClass(n)||vt.hasClass(n);!t&&(pe||ye||xe)&&ct.addClass(Kn),!t&&(pe||ye||xe)&&ht.addClass(Kn)}};de>0&&!0!==e?fe=setTimeout(r,de):r()}}function Gr(t){var e={},n=to(t),r=Math.min(1,(pt[n._wh]-(kt?t?R:D:0))/yt[n._wh]);e[n.wh]=Math.floor(100*r*1e5)/1e5+"%",lo()||n.h.css(e),n.i.hl=n.h[0]["offset"+n.WH],n.i.hlr=r}function Zr(t,e){var n,r,o=I&&t,i={},a=to(t),s="translate(",l="transform",c=ot[0][Ye+a.WH]-ot[0]["client"+a.WH],u=a.i.hl,f=a.t[0]["offset"+a.WH],h=f-u;y.n&&o&&(c*=-1),r=e/c,r=isNaN(r)?0:Math.min(1,r),a.i.ms=c,a.i.cs=e,a.i.csr=r,h*=r,h=isNaN(h)?0:h,o&&(y.n||!y.n&&!y.i)&&(h=f-u-h),h=Math.max(0,h),O?(o&&(h=-(f-u-h)),n=t?s+h+"px, 0px)":s+"0px, "+h+"px)",i["-webkit-"+l]=n,i["-moz-"+l]=n,i["-ms-"+l]=n,i["-o-"+l]=n,i[l]=n):i[a.lt]=h,lo()||a.h.css(i),a.i.ho=h,a.i.tl=f}function $r(t,e){var n=e?"removeClass":"addClass",r=t?dt:vt,o=t?Vn:Xn;(t?ut:ft)[n](o),r[n](o)}function to(t){return{wh:t?Ue:Be,WH:t?"Width":"Height",lt:t?Fe:Pe,LT:t?"Left":"Top",xy:t?Je:Qe,XY:t?"X":"Y",_wh:t?"w":"h",_lt:t?"l":"t",t:t?ut:dt,h:t?ft:vt,s:t?ct:ht,i:t?He:We}}function eo(t,e){W&&c.isFunction(t)&&t.call(Ce,e)}function no(t,e,r){r===n&&(r=[qe,qe,qe,qe]),t[e+Pe]=r[0],t[e+Ne]=r[1],t[e+_e]=r[2],t[e+Fe]=r[3]}function ro(e){return typeof t.HTMLElement===i.o?e instanceof t.HTMLElement:e&&typeof e===i.o&&null!==e&&1===e.nodeType&&typeof e.nodeName===i.s}function oo(t,e){var n,r=[],o=[];for(n=0;nu&&(c=r+1,u=e);return{cursorRow:f,cursorCol:h,rows:s,cols:u,wRow:c,pos:t,max:i}}}function so(t){for(var e=0;e"+(e||qe)+""}function ho(t,e){for(var n,r=e.split(Ge),o=0;o9||!x?Z.on("input",Mr):Z.on(un,Hr).on(fn,Wr)}else bo(Z,xn),($=Z).wrapInner(fo(Rn)).wrapInner(fo(Tn)).wrapInner(fo(An)),at=uo($,Ge+Rn),ot=uo($,Ge+Tn),rt=uo($,Ge+An),at.on(dn,function(t){!0!==Dt&&Br((t=t.originalEvent||t).propertyName)&&qr(Xe)});if(Yr(),C?hr(ot,Ye,Or):ot.on(Ye,Or),m&&bo(ot,v.x&&v.y?Ln:En),le){var s,l,u,h,d,z,E=r.mO(),L=r.now();ie=new E(function(t){if(W&&!j){var e,n=!1;c.each(t,function(){if(s=(e=this).target,l=e.attributeName,n=l===a.c?Fr(e.oldValue,s.className):l!==a.s||e.oldValue!==s.style.cssText)return!1}),n&&Ce.update(Xe)}}),ae=new E(function(t){if(W&&!j){var e=!1;c.each(t,function(){return!(e=Ir(this))}),e&&(h=r.now(),d=gt||bt,z=function(){L=h,A&&Vr(),d?Ce.update():Ce.update(Xe)},clearTimeout(u),sr<=0||h-L>sr||!d?z():u=setTimeout(z,sr))}})}return T&&(bo(Q,yn),ot[nn](n.l),ot[rn](n.t)),et=c(fo("os-resize-observer-host")),$.prepend(et),vr(et,br),br(),Ce.update(Xe),setTimeout(function(){S&&!k&&bo($,gn)},333),W=!0,eo(o.onInitialized),W}}return t[o]=function(e,r){if(0===arguments.length)return this;O();var i,a,s=[];return c.isPlainObject(r)?e&&e.length?(c.each(e,function(){i=this,console.log(i),i!==n&&s.push(H(i,r,u,f))}),a=s.length>1?s:s[0]):a=H(e,r,u,f):e&&(e.length&&e.length>0?(c.each(e,function(){i=l.get(this),"!"===r?i instanceof t[o]&&s.push(i):s.push(i)}),a=s.length>1?s:s[0]):a=l.get(e)),a},t[o].globals=function(){O();var t=c.extend(!0,{},u);return delete t.msie,t},t[o].defaultOptions=function(t){O();var e=u.defaultOptions;if(t===n)return c.extend(!0,{},e);u.defaultOptions=c.extend(!0,{},e,z.v(t,z.t,!0))},t[o]}({wW:function(){return t.innerWidth||e.documentElement[a.cW]||e.body[a.cW]},wH:function(){return t.innerHeight||e.documentElement[a.cH]||e.body[a.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.preventDefault():t.returnValue=!1},page:function(t){var r="page",o="client",i="X",a="Y",s=((t=t.originalEvent||t).target||t.srcElement||e).ownerDocument||e,l=s.documentElement,c=s.body;if(t.touches!==n){var u=t.touches[0];return{x:u[r+i],y:u[r+a]}}return!t[r+i]&&t[o+i]&&null!=t[o+i]?{x:t[o+i]+(l&&l.scrollLeft||c&&c.scrollLeft||0)-(l&&l.clientLeft||c&&c.clientLeft||0),y:t[o+a]+(l&&l.scrollTop||c&&c.scrollTop||0)-(l&&l.clientTop||c&&c.clientTop||0)}:{x:t[r+i],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},bind:function(t,e){if(typeof t!==i.f)throw"Can't bind function!";var n=Array.prototype.slice.call(arguments,2),r=function(){},o=function(){return t.apply(this instanceof r?this:e,n.concat(Array.prototype.slice.call(arguments)))};return t.prototype&&(r.prototype=t.prototype),o.prototype=new r,o}},function(t){var e=[],r="__overlayScrollbars__";function o(t,n){t[r]=n,e.push(t)}function i(n){var o=t.inArray(n,e);o>-1&&(delete n[r],e.splice(o,1))}function a(t){return s(t)!==n}function s(t){for(var n=0;n