/*! * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * * Version: 1.9.1 * * Copyright KingSora | Rene Haas. * https://github.com/KingSora * * Released under the MIT license. * Date: 03.08.2019 */ !function(n,t){"function"==typeof define&&define.amd?define(function(){return t(n,n.document,undefined)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(n,n.document,undefined):t(n,n.document,undefined)}("undefined"!=typeof window?window:this,function(lt,vt,zi){"use strict";var a,l,v,T,k,I,s,o,h,A,E,H,L,N,ht="object",dt="function",pt="array",bt="string",mt="boolean",gt="number",u="undefined",n="null",wt="class",Ci="style",yt="id",Ti="length",xt="prototype",ki="offsetHeight",Ii="clientHeight",Ai="scrollHeight",Ei="offsetWidth",Hi="clientWidth",Li="scrollWidth",_t="hasOwnProperty",Ot={e:{},u:{},v:["-webkit-","-moz-","-o-","-ms-"],d:["WebKit","Moz","O","MS"],m:function(n){var t=this.u;if(t[n])return t[n];for(var r,e,i=this.v,o=this.g(n),u=vt.createElement("div")[Ci],f=0,a=0;f
'),o=S[0],e=Di(S.children("div").eq(0));O.append(S),S.hide().show();var t,r,u,f,a,c,s,l,v,h=z(o),d={x:0===h.x,y:0===h.y};function z(n){return{x:n[ki]-n[Ii],y:n[Ei]-n[Hi]}}Di.extend(_,{defaultOptions:n,autoUpdateLoop:!1,autoUpdateRecommended:!Ni.mO(),nativeScrollbarSize:h,nativeScrollbarIsOverlaid:d,nativeScrollbarStyling:function(){var n=!1;S.addClass("os-viewport-native-scrollbars-invisible");try{n="none"===S.css("scrollbar-width")||"none"===lt.getComputedStyle(o,"::-webkit-scrollbar").getPropertyValue("display")}catch(t){}return n}(),overlayScrollbarDummySize:{x:30,y:30},msie:(r=lt.navigator.userAgent,u="indexOf",f="substring",a=r[u]("MSIE "),c=r[u]("Trident/"),s=r[u]("Edge/"),l=r[u]("rv:"),v=parseInt,0i&&(t.update("auto"),d[a]=new Date(o+=i)),n=Ri.max(1,Ri.min(n,i)));b=n}}else b=33};this.add=function(n){-1===e(n,h)&&(h.push(n),d.push(s()),0/g,(l?"-":Ee)+Ne)[v](/px/g,Ee)[v](/%/g," * "+c*(s&&Rt.n?-1:1)/100)[v](/vw/g," * "+me.w)[v](/vh/g," * "+me.h),gi(isNaN(t)?gi(h(t),!0).toFixed():t)):t)!==zi&&!isNaN(e)&&sn(e)==gt){var d=z&&s,p=a*(d&&Rt.n?-1:1),b=d&&Rt.i,m=d&&Rt.n;switch(p=b?c-p:p,r){case"+=":i=p+e;break;case"-=":i=p-e;break;case"*=":i=p*e;break;case"/=":i=p/e;break;default:i=e}i=b?c-i:i,i*=m?-1:1,i=s&&Rt.n?Ri.min(0,Ri.max(c,i)):Ri.max(0,Ri.min(c,i))}return i===a?zi:i}function d(n,t,r,e){var i,o,u=[r,r],f=sn(n);if(f==t)n=[n,n];else if(f==pt){if(2<(i=n[M])||i<1)n=u;else for(1===i&&(n[1]=r),b=0;b=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom||Xn(),(ae||ce)&&li(!1)}}function N(n){i=sr[k](),i=isNaN(i)?0:i,(nr&&_&&!Rt.n||!nr)&&(i=i<0?0:i),z=it()[T],S=c(n),P=!s(u),Oi(j,Mn),Oi(r.sn,o),Oi(r.vn,o),W.on(X,h).on(q,L).on(J,$n),!D&&g||Ni.prvD(n),Ni.stpP(n)}a(r.sn,We,function d(n){H(n)&&N(n)}),a(r.ln,[We,Y,$],[function R(n){if(H(n)){var h,d=Ri.round(me[r.Q]),p=r.ln.offset()[r.U],t=n.ctrlKey,b=n.shiftKey,m=b&&t,g=!0,w=function(n){P&&hi(_,n)},y=function(){w(),N(n)},x=function(){if(!Qt){var n=(S-p)*z,t=C.W,r=C.P,e=C.j,i=C.M,o=C.R,u=270*I,f=g?Ri.max(400,u):u,a=i*((n-e/2)/(r-e)),c=nr&&_&&(!Rt.i&&!Rt.n||Yr),s=c?t"+(n||Ee)+""}function ft(n,t){for(var r,e=t.split(B),i=0;i