/*! * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * * Version: 1.7.2 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. * Date: 10.06.2019 */ !function(t,r){"function"==typeof define&&define.amd?define(["jquery"],function(n){return r(t,t.document,undefined,n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=r(t,t.document,undefined,require("jquery")):r(t,t.document,undefined,t.jQuery)}("undefined"!=typeof window?window:this,function(dt,ht,Si,n){"use strict";var i,o,pt="OverlayScrollbars",bt="object",mt="function",wt="array",yt="string",gt="boolean",xt="number",d="null",_t="class",zi="style",St="id",zt="length",Tt="prototype",Ti="offsetHeight",ki="clientHeight",Oi="scrollHeight",Ai="offsetWidth",Ci="clientWidth",Ni="scrollWidth",kt={o:{},u:{},s:["-webkit-","-moz-","-o-","-ms-"],v:["WebKit","Moz","O","MS"],p:function(n){var t=this.u;if(t[n])return t[n];for(var r,e,i=this.s,o=this.m(n),a=ht.createElement("div")[zi],u=0,f=0;u
'),o=z[0],e=Di(z.children("div").eq(0));S.append(z),z.hide().show();var t,r,a,u,f,c,l,s,v,d=T(o),h={x:0===d.x,y:0===d.y};function T(n){return{x:n[Ti]-n[ki],y:n[Ai]-n[Ci]}}Di.extend(_,{defaultOptions:n,autoUpdateLoop:!1,autoUpdateRecommended:!Hi.mO(),nativeScrollbarSize:d,nativeScrollbarIsOverlaid:h,nativeScrollbarStyling:(z.addClass("os-viewport-native-scrollbars-invisible"),"none"===z.css("scrollbar-width")||"none"===dt.getComputedStyle(o,"::-webkit-scrollbar").getPropertyValue("display")),overlayScrollbarDummySize:{x:30,y:30},msie:(r=dt.navigator.userAgent,a="indexOf",u="substring",f=r[a]("MSIE "),c=r[a]("Trident/"),l=r[a]("Edge/"),s=r[a]("rv:"),v=parseInt,0i&&(t.update("auto"),d[f]=new Date(o+=i)),n=Li.max(1,Li.min(n,i)));p=n}}else p=33};this.add=function(n){-1===Di.inArray(n,v)&&(v.push(n),d.push(Hi.now()),0/g,(s?"-":ke)+Ce)[v](/px/g,ke)[v](/%/g," * "+c*(l&&Ht.n?-1:1)/100)[v](/vw/g," * "+ve.w)[v](/vh/g," * "+ve.h),hi(isNaN(t)?hi(d(t),!0).toFixed():t)):t)!==Si&&!isNaN(e)&&ft(e)==xt){var h=g&&l,p=f*(h&&Ht.n?-1:1),b=h&&Ht.i,m=h&&Ht.n;switch(p=b?c-p:p,r){case"+=":o=p+e;break;case"-=":o=p-e;break;case"*=":o=p*e;break;case"/=":o=p/e;break;default:o=e}o=b?c-o:o,o*=m?-1:1,o=l&&Ht.n?Li.min(0,Li.max(c,o)):Li.max(0,Li.min(c,o))}return o===f?Si:o},V=function(n,t,r,e){var i,o,a=[r,r],u=ft(n);if(u==t)n=[n,n];else if(u==wt){if(2<(i=n[L])||i<1)n=a;else for(1===i&&(n[1]=r),s=0;s=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom||Yn(),(re||ee)&&ui(!1)}}function R(n){i=or[A](),i=isNaN(i)?0:i,(Kt&&_&&!Ht.n||!Kt)&&(i=i<0?0:i),T=it()[O],z=f(n),q=!c(a),xi(W,Wn),xi(r.nn,o),xi(r.rn,o),M.on(Q,d).on(J,L).on(en,Kn),!D&&p||Hi.prvD(n),Hi.stpP(n)}r.nn.on(Ie,function(n){H(n)&&R(n)}),r.tn.on(Ie,function(n){if(H(n)){var d,h=Li.round(ve[r.D]),p=r.tn.offset()[r.I],t=n.ctrlKey,b=n.shiftKey,m=b&&t,w=!0,y=function(n){q&&ci(_,n)},g=function(){y(),R(n)},x=function(){if(!jt){var n=(z-p)*T,t=k.C,r=k.L,e=k.N,i=k.A,o=k.k,a=270*C,u=w?Li.max(400,a):a,f=i*((n-e/2)/(r-e)),c=Kt&&_&&(!Ht.i&&!Ht.n||Br),l=c?t"+(n||ke)+""}function ut(n,t){for(var r,e=t.split(Y),i=0;i