vendor: 9,709 bytes, line 1
1!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}),!function(a,b,c){!function(b){var d="function"==typeof define&&define.amd,e="https:"==c.location.protocol?"https:":"http:",f="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.12/jquery.mousewheel.min.js";d||a.event.special.mousewheel||a("head").append(decodeURI("%3Cscript src="+e+"//"+f+"%3E%3C/script%3E")),b()}(function(){var d,e="mCustomScrollbar",f="mCS",g=".mCustomScrollbar",h={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},i=0,j={},k=b.attachEvent&&!b.addEventListener?1:0,l=!1,m=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],n={init:function(b){var b=a.extend(!0,{},h,b),c=o.call(this);if(b.live){var d=b.liveSelector||this.selector||g,e=a(d);if("off"===b.live)return void q(d);j[d]=setTimeout(function(){e.mCustomScrollbar(b),"once"===b.live&&e.length&&q(d)},500)}else q(d);return b.setWidth=b.set_width?b.set_width:b.setWidth,b.setHeight=b.set_height?b.set_height:b.setHeight,b.axis=b.horizontalScroll?"x":r(b.axis),b.scrollInertia=b.scrollInertia>0&&b.scrollInertia<17?17:b.scrollInertia,"object"!=typeof b.mouseWheel&&1==b.mouseWheel&&(b.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),b.mouseWheel.scrollAmount=b.mouseWheelPixels?b.mouseWheelPixels:b.mouseWheel.scrollAmount,b.mouseWheel.normalizeDelta=b.advanced.normalizeMouseWheelDelta?b.advanced.normalizeMouseWheelDelta:b.mouseWheel.normalizeDelta,b.scrollButtons.scrollType=s(b.scrollButtons.scrollType),p(b),a(c).each(function(){var c=a(this);if(!c.data(f)){c.data(f,{idx:++i,opt:b,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:c.css("direction"),cbOffsets:null,trigger:null});var d=c.data(f),e=d.opt,g=c.data("mcs-axis"),h=c.data("mcs-scrollbar-position"),j=c.data("mcs-theme");g&&(e.axis=g),h&&(e.scrollbarPosition=h),j&&(e.theme=j,p(e)),t.call(this),a("#mCSB_"+d.idx+"_container img:not(."+m[2]+")").addClass(m[2]),n.update.call(null,c)}})},update:function(b,c){var d=b||o.call(this);return a(d).each(function(){var b=a(this);if(b.data(f)){var d=b.data(f),e=d.opt,g=a("#mCSB_"+d.idx+"_container"),h=[a("#mCSB_"+d.idx+"_dragger_vertical"),a("#mCSB_"+d.idx+"_dragger_horizontal")];if(!g.length)return;d.tweenRunning&&W(b),b.hasClass(m[3])&&b.removeClass(m[3]),b.hasClass(m[4])&&b.removeClass(m[4]),x.call(this),v.call(this),"y"===e.axis||e.advanced.autoExpandHorizontalScroll||g.css("width",u(g.children())),d.overflowed=B.call(this),F.call(this),e.autoDraggerLength&&y.call(this),z.call(this),D.call(this);var i=[Math.abs(g[0].offsetTop),Math.abs(g[0].offsetLeft)];"x"!==e.axis&&(d.overflowed[0]?h[0].height()>h[0].parent().height()?C.call(this):(X(b,i[0].toString(),{dir:"y",dur:0,overwrite:"none"}),d.contentReset.y=null):(C.call(this),"y"===e.axis?E.call(this):"yx"===e.axis&&d.overflowed[1]&&X(b,i[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==e.axis&&(d.overflowed[1]?h[1].width()>h[1].parent().width()?C.call(this):(X(b,i[1].toString(),{dir:"x",dur:0,overwrite:"none"}),d.contentReset.x=null):(C.call(this),"x"===e.axis?E.call(this):"yx"===e.axis&&d.overflowed[0]&&X(b,i[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),c&&d&&(2===c&&e.callbacks.onImageLoad&&"function"==typeof e.callbacks.onImageLoad?e.callbacks.onImageLoad.call(this):3===c&&e.callbacks.onSelectorChange&&"function"==typeof e.callbacks.onSelectorChange?e.callbacks.onSelectorChange.call(this):e.callbacks.onUpdate&&"function"==typeof e.callbacks.onUpdate&&e.callbacks.onUpdate.call(this)),U.call(this)}})},scrollTo:function(b,c){if("undefined"!=typeof b&&null!=b){var d=o.call(this);return a(d).each(function(){var d=a(this);if(d.data(f)){var e=d.data(f),g=e.opt,h={trigger:"external",scrollInertia:g.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},i=a.extend(!0,{},h,c),j=S.call(this,b),k=i.scrollInertia>0&&i.scrollInertia<17?17:i.scrollInertia;j[0]=T.call(this,j[0],"y"),j[1]=T.call(this,j[1],"x"),i.moveDragger&&(j[0]*=e.scrollRatio.y,j[1]*=e.scrollRatio.x),i.dur=k,setTimeout(function(){null!==j[0]&&"undefined"!=typeof j[0]&&"x"!==g.axis&&e.overflowed[0]&&(i.dir="y",i.overwrite="all",X(d,j[0].toString(),i)),null!==j[1]&&"undefined"!=typeof j[1]&&"y"!==g.axis&&e.overflowed[1]&&(i.dir="x",i.overwrite="none",X(d,j[1].toString(),i))},i.timeout)}})}},stop:function(){var b=o.call(this);return a(b).each(function(){var b=a(this);b.data(f)&&W(b)})},disable:function(b){var c=o.call(this);return a(c).each(function(){var c=a(this);c.data(f)&&(c.data(f),U.call(this,"remove"),E.call(this),b&&C.call(this),F.call(this,!0),c.addClass(m[3]))})},destroy:function(){var b=o.call(this);return a(b).each(function(){var c=a(this);if(c.data(f)){var d=c.data(f),g=d.opt,h=a("#mCSB_"+d.idx),i=a("#mCSB_"+d.idx+"_container"),j=a(".mCSB_"+d.idx+"_scrollbar");g.live&&q(g.liveSelector||a(b).selector),U.call(this,"remove"),E.call(this),C.call(this),c.removeData(f),_(this,"mcs"),j.remove(),i.find("img."+m[2]).removeClass(m[2]),h.replaceWith(i.contents()),c.removeClass(e+" _"+f+"_"+d.idx+" "+m[6]+" "+m[7]+" "+m[5]+" "+m[3]).addClass(m[4])}})}},o=function(){return"object"!=typeof a(this)||a(this).length<1?g:this},p=function(b){var c=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],d=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],e=["minimal","minimal-dark"],f=["minimal","minimal-dark"],g=["minimal","minimal-dark"];b.autoDraggerLength=!(a.inArray(b.theme,c)>-1)&&b.autoDraggerLength,b.autoExpandScrollbar=!(a.inArray(b.theme,d)>-1)&&b.autoExpandScrollbar,b.scrollButtons.enable=!(a.inArray(b.theme,e)>-1)&&b.scrollButtons.enable,b.autoHideScrollbar=a.inArray(b.theme,f)>-1||b.autoHideScrollbar,b.scrollbarPosition=a.inArray(b.theme,g)>-1?"outside":b.scrollbarPosition},q=function(a){j[a]&&(clearTimeout(j[a]),_(j,a))},r=function(a){return"yx"===a||"xy"===a||"auto"===a?"yx":"x"===a||"horizontal"===a?"x":"y"},s=function(a){return"stepped"===a||"pixels"===a||"step"===a||"click"===a?"stepped":"stepless"},t=function(){var b=a(this),c=b.data(f),d=c.opt,g=d.autoExpandScrollbar?" "+m[1]+"_expand":"",h=["<div id='m
1CSB_"+c.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+c.idx+"_scrollbar mCS-"+d.theme+" mCSB_scrollTools_vertical"+g+"'><div class='"+m[12]+"'><div id='mCSB_"+c.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+c.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+c.idx+"_scrollbar mCS-"+d.theme+" mCSB_scrollTools_horizontal"+g+"'><div class='"+m[12]+"'><div id='mCSB_"+c.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],i="yx"===d.axis?"mCSB_vertical_horizontal":"x"===d.axis?"mCSB_horizontal":"mCSB_vertical",j="yx"===d.axis?h[0]+h[1]:"x"===d.axis?h[1]:h[0],k="yx"===d.axis?"<div id='mCSB_"+c.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",l=d.autoHideScrollbar?" "+m[6]:"",n="x"!==d.axis&&"rtl"===c.langDir?" "+m[7]:"";d.setWidth&&b.css("width",d.setWidth),d.setHeight&&b.css("height",d.setHeight),d.setLeft="y"!==d.axis&&"rtl"===c.langDir?"989999px":d.setLeft,b.addClass(e+" _"+f+"_"+c.idx+l+n).wrapInner("<div id='mCSB_"+c.idx+"' class='mCustomScrollBox mCS-"+d.theme+" "+i+"'><div id='mCSB_"+c.idx+"_container' class='mCSB_container' style='position:relative; top:"+d.setTop+"; left:"+d.setLeft+";' dir="+c.langDir+" /></div>");var o=a("#mCSB_"+c.idx),p=a("#mCSB_"+c.idx+"_container");"y"===d.axis||d.advanced.autoExpandHorizontalScroll||p.css("width",u(p.children())),"outside"===d.scrollbarPosition?("static"===b.css("position")&&b.css("position","relative"),b.css("overflow","visible"),o.addClass("mCSB_outside").after(j)):(o.addClass("mCSB_inside").append(j),p.wrap(k)),w.call(this);var q=[a("#mCSB_"+c.idx+"_dragger_vertical"),a("#mCSB_"+c.idx+"_dragger_horizontal")];q[0].css("min-height",q[0].height()),q[1].css("min-width",q[1].width())},u=function(b){return Math.max.apply(Math,b.map(function(){return a(this).outerWidth(!0)}).get())},v=function(){var b=a(this),c=b.data(f),d=c.opt,e=a("#mCSB_"+c.idx+"_container");d.advanced.autoExpandHorizontalScroll&&"y"!==d.axis&&e.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(e[0].getBoundingClientRect().right+.4)-Math.floor(e[0].getBoundingClientRect().left),position:"relative"}).unwrap()},w=function(){var b=a(this),c=b.data(f),d=c.opt,e=a(".mCSB_"+c.idx+"_scrollbar:first"),g=ca(d.scrollButtons.tabindex)?"tabindex='"+d.scrollButtons.tabindex+"'":"",h=["<a href='#' class='"+m[13]+"' oncontextmenu='return false;' "+g+" />","<a href='#' class='"+m[14]+"' oncontextmenu='return false;' "+g+" />","<a href='#' class='"+m[15]+"' oncontextmenu='return false;' "+g+" />","<a href='#' class='"+m[16]+"' oncontextmenu='return false;' "+g+" />"],i=["x"===d.axis?h[2]:h[0],"x"===d.axis?h[3]:h[1],h[2],h[3]];d.scrollButtons.enable&&e.prepend(i[0]).append(i[1]).next(".mCSB_scrollTools").prepend(i[2]).append(i[3])},x=function(){var b=a(this),c=b.data(f),d=a("#mCSB_"+c.idx),e=b.css("max-height")||"none",g=-1!==e.indexOf("%"),h=b.css("box-sizing");if("none"!==e){var i=g?b.parent().height()*parseInt(e)/100:parseInt(e);"border-box"===h&&(i-=b.innerHeight()-b.height()+(b.outerHeight()-b.innerHe
vendor: 18,068 bytes, line 1
1ight())),d.css("max-height",Math.round(i))}},y=function(){var b=a(this),c=b.data(f),d=a("#mCSB_"+c.idx),e=a("#mCSB_"+c.idx+"_container"),g=[a("#mCSB_"+c.idx+"_dragger_vertical"),a("#mCSB_"+c.idx+"_dragger_horizontal")],h=[d.height()/e.outerHeight(!1),d.width()/e.outerWidth(!1)],i=[parseInt(g[0].css("min-height")),Math.round(h[0]*g[0].parent().height()),parseInt(g[1].css("min-width")),Math.round(h[1]*g[1].parent().width())],j=k&&i[1]<i[0]?i[0]:i[1],l=k&&i[3]<i[2]?i[2]:i[3];g[0].css({height:j,"max-height":g[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":i[0]+"px"}),g[1].css({width:l,"max-width":g[1].parent().width()-10})},z=function(){var b=a(this),c=b.data(f),d=a("#mCSB_"+c.idx),e=a("#mCSB_"+c.idx+"_container"),g=[a("#mCSB_"+c.idx+"_dragger_vertical"),a("#mCSB_"+c.idx+"_dragger_horizontal")],h=[e.outerHeight(!1)-d.height(),e.outerWidth(!1)-d.width()],i=[h[0]/(g[0].parent().height()-g[0].height()),h[1]/(g[1].parent().width()-g[1].width())];c.scrollRatio={y:i[0],x:i[1]}},A=function(a,b,c){var d=c?m[0]+"_expanded":"",e=a.closest(".mCSB_scrollTools");"active"===b?(a.toggleClass(m[0]+" "+d),e.toggleClass(m[1]),a[0]._draggable=a[0]._draggable?0:1):a[0]._draggable||("hide"===b?(a.removeClass(m[0]),e.removeClass(m[1])):(a.addClass(m[0]),e.addClass(m[1])))},B=function(){var b=a(this),c=b.data(f),d=a("#mCSB_"+c.idx),e=a("#mCSB_"+c.idx+"_container"),g=null==c.overflowed?e.height():e.outerHeight(!1),h=null==c.overflowed?e.width():e.outerWidth(!1);return[g>d.height(),h>d.width()]},C=function(){var b=a(this),c=b.data(f),d=c.opt,e=a("#mCSB_"+c.idx),g=a("#mCSB_"+c.idx+"_container"),h=[a("#mCSB_"+c.idx+"_dragger_vertical"),a("#mCSB_"+c.idx+"_dragger_horizontal")];if(W(b),("x"!==d.axis&&!c.overflowed[0]||"y"===d.axis&&c.overflowed[0])&&(h[0].add(g).css("top",0),X(b,"_resetY")),"y"!==d.axis&&!c.overflowed[1]||"x"===d.axis&&c.overflowed[1]){var i=dx=0;"rtl"===c.langDir&&(i=e.width()-g.outerWidth(!1),dx=Math.abs(i/c.scrollRatio.x)),g.css("left",i),h[1].css("left",dx),X(b,"_resetX")}},D=function(){function b(){g=setTimeout(function(){a.event.special.mousewheel?(clearTimeout(g),K.call(c[0])):b()},100)}var c=a(this),d=c.data(f),e=d.opt;if(!d.bindEvents){if(H.call(this),e.contentTouchScroll&&I.call(this),J.call(this),e.mouseWheel.enable){var g;b()}M.call(this),O.call(this),e.advanced.autoScrollOnFocus&&N.call(this),e.scrollButtons.enable&&P.call(this),e.keyboard.enable&&Q.call(this),d.bindEvents=!0}},E=function(){var b=a(this),d=b.data(f),e=d.opt,g=f+"_"+d.idx,h=".mCSB_"+d.idx+"_scrollbar",i=a("#mCSB_"+d.idx+",#mCSB_"+d.idx+"_container,#mCSB_"+d.idx+"_container_wrapper,"+h+" ."+m[12]+",#mCSB_"+d.idx+"_dragger_vertical,#mCSB_"+d.idx+"_dragger_horizontal,"+h+">a"),j=a("#mCSB_"+d.idx+"_container");e.advanced.releaseDraggableSelectors&&i.add(a(e.advanced.releaseDraggableSelectors)),d.bindEvents&&(a(c).unbind("."+g),i.each(function(){a(this).unbind("."+g)}),clearTimeout(b[0]._focusTimeout),_(b[0],"_focusTimeout"),clearTimeout(d.sequential.step),_(d.sequential,"step"),clearTimeout(j[0].onCompleteTimeout),_(j[0],"onCompleteTimeout"),d.bindEvents=!1)},F=function(b){var c=a(this),d=c.data(f),e=d.opt,g=a("#mCSB_"+d.idx+"_container_wrapper"),h=g.length?g:a("#mCSB_"+d.idx+"_container"),i=[a("#mCSB_"+d.idx+"_scrollbar_vertical"),a("#mCSB_"+d.idx+"_scrollbar_horizontal")],j=[i[0].find(".mCSB_dragger"),i[1].find(".mCSB_dragger")];"x"!==e.axis&&(d.overflowed[0]&&!b?(i[0].add(j[0]).add(i[0].children("a")).css("display","block"),h.removeClass(m[8]+" "+m[10])):(e.alwaysShowScrollbar?(2!==e.alwaysShowScrollbar&&j[0].css("display","none"),h.removeClass(m[10])):(i[0].css("display","none"),h.addClass(m[10])),h.addClass(m[8]))),"y"!==e.axis&&(d.overflowed[1]&&!b?(i[1].add(j[1]).add(i[1].children("a")).css("display","block"),h.removeClass(m[9]+" "+m[11])):(e.alwaysShowScrollbar?(2!==e.alwaysShowScrollbar&&j[1].css("display","none"),h.removeClass(m[11])):(i[1].css("display","none"),h.addClass(m[11])),h.addClass(m[9]))),d.overflowed[0]||d.overflowed[1]?c.removeClass(m[5]):c.addClass(m[5])},G=function(a){var b=a.type;switch(b){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return[a.originalEvent.pageY,a.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var c=a.originalEvent.touches[0]||a.originalEvent.changedTouches[0],d=a.originalEvent.touches.length||a.originalEvent.changedTouches.length;return[c.pageY,c.pageX,d>1];default:return[a.pageY,a.pageX,!1]}},H=function(){function b(a){var b=p.find("iframe");if(b.length){var c=a?"auto":"none";b.css("pointer-events",c)}}function d(a,b,c,d){if(p[0].idleTimer=m.scrollInertia<233?250:0,e.attr("id")===o[1])var f="x",g=(e[0].offsetLeft-b+d)*j.scrollRatio.x;else var f="y",g=(e[0].offsetTop-a+c)*j.scrollRatio.y;X(i,g.toString(),{dir:f,drag:!0})}var e,g,h,i=a(this),j=i.data(f),m=j.opt,n=f+"_"+j.idx,o=["mCSB_"+j.idx+"_dragger_vertical","mCSB_"+j.idx+"_dragger_horizontal"],p=a("#mCSB_"+j.idx+"_container"),q=a("#"+o[0]+",#"+o[1]),r=m.advanced.releaseDraggableSelectors?q.add(a(m.advanced.releaseDraggableSelectors)):q;q.bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n,function(d){if(d.stopImmediatePropagation(),d.preventDefault(),aa(d)){l=!0,k&&(c.onselectstart=function(){return!1}),b(!1),W(i),e=a(this);var f=e.offset(),j=G(d)[0]-f.top,n=G(d)[1]-f.left,o=e.height()+f.top,p=e.width()+f.left;o>j&&j>0&&p>n&&n>0&&(g=j,h=n),A(e,"active",m.autoExpandScrollbar)}}).bind("touchmove."+n,function(a){a.stopImmediatePropagation(),a.preventDefault();var b=e.offset(),c=G(a)[0]-b.top,f=G(a)[1]-b.left;d(g,h,c,f)}),a(c).bind("mousemove."+n+" pointermove."+n+" MSPointerMove."+n,function(a){if(e){var b=e.offset(),c=G(a)[0]-b.top,f=G(a)[1]-b.left;if(g===c)return;d(g,h,c,f)}}).add(r).bind("mouseup."+n+" touchend."+n+" pointerup."+n+" MSPointerUp."+n,function(){e&&(A(e,"active",m.autoExpandScrollbar),e=null),l=!1,k&&(c.onselectstart=null),b(!0)})},I=function(){function b(a,b){var c=[1.5*b,2*b,b/1.5,b/2];return a>90?b>4?c[0]:c[3]:a>60?b>3?c[3]:c[2]:a>30?b>8?c[1]:b>6?c[0]:b>4?b:c[2]:b>8?b:c[3]}function c(a,b,c,d,e,f){a&&X(t,a.toString(),{dur:b,scrollEasing:c,dir:d,overwrite:e,drag:f})}var e,g,h,i,j,k,m,n,o,p,q,r,s,t=a(this),u=t.data(f),v=u.opt,w=f+"_"+u.idx,x=a("#mCSB_"+u.idx),y=a("#mCSB_"+u.idx+"_container"),z=[a("#mCSB_"+u.idx+"_dragger_vertical"),a("#mCSB_"+u.idx+"_dragger_horizontal")],A=[],B=[],C=0,D="yx"===v.axis?"none":"all",E=[];y.bind("touchstart."+w+" pointerdown."+w+" MSPointerDown."+w,function(a){if(!ba(a)||l||G(a)[2])return void(d=0);d=1,r=0,s=0;var b=y.offset();e=G(a)[0]-b.top,g=G(a)[1]-b.left,E=[G(a)[0],G(a)[1]]}).bind("touchmove."+w+" pointermove."+w+" MSPointerMove."+w,function(a){if(ba(a)&&!l&&!G(a)[2]&&(a.stopImmediatePropagation(),!s||r)){k=Z();var b=x.offset(),d=G(a)[0]-b.top,f=G(a)[1]-b.left,h="mcsLinearOut";if(A.push(d),B.push(f),E[2]=Math.abs(G(a)[0]-E[0]),E[3]=Math.abs(G(a)[1]-E[1]),u.overflowed[0])var i=z[0].parent().height()-z[0].height(),j=e-d>0&&d-e>-(i*u.scrollRatio.y)&&(2*E[3]<E[2]||"yx"===v.axis);if(u.overflowed[1])var m=z[1].parent().width()-z[1].width(),n=g-f>0&&f-g>-(m*u.scrollRatio.x)&&(2*E[2]<E[3]||"yx"===v.axis);j||n?(a.preventDefault(),r=1):s=1,p="yx"===v.axis?[e-d,g-f]:"x"===v.axis?[null,g-f]:[e-d,null],y[0].idleTimer=250,u.overflowed[0]&&c(p[0],C,h,"y","all",!0),u.overflowed[1]&&c(p[1],C,h,"x",D,!0)}}),x.bind("touchstart."+w+" pointerdown."+w+" MSPointerDown."+w,function(a){if(!ba(a)||l||G(a)[2])return void(d=0);d=1,a.stopImmediatePropagation(),W(t),j=Z();var b=x.offset();h=G(a)[0]-b.top,i=G(a)[1]-b.left,A=[],B=[]}).bind("touchend."+w+" pointerup."+w+" MSPointerUp."+w,function(a){if(ba(a)&&!l&&!G(a)[2]){a.stopImmediatePropagation(),r=0,s=0,m=Z();var d=x.offset(),e=G(a)[0]-d.top,f=G(a)[1]-d.left;if(!(m-k>30)){o=1e3/(m-j);var g="mcsEaseOut",t=2.5>o,w=t?[A[A.length-2],B[B.length-2]]:[0,0];n=t?[e-w[0],f-w[1]]:[e-h,f-i];var z=[Math.abs(n[0]),Math.abs(n[1])];o=t?[Math.abs(n[0]/4),Math.abs(n[1]/4)]:[o,o];var C=[Math.abs(y[0].offsetTop)-n[0]*b(z[0]/o[0],o[0]),Math.abs(y[0].offsetLeft)-n[1]*b(z[1]/o[1],o[1])];p="yx"===v.axis?[C[0],C[1]]:"x"===v.axis?[null,C[1]]:[C[0],null],q=[4*z[0]+v.scrollInertia,4*z[1]+v.scrollInertia];var E=parseInt(v.contentTouchScroll)||0;p[0]=z[0]>E?p[0]:0,p[1]=z[1]>E?p[1]:0,u.overflowed[0]&&c(p[0],q[0],g,"y",D,!1),u.overflowed[1]&&c(p[1],q[1],g,"x",D,!1)}}})},J=function(){function e(){return b.getSelection?b.getSelection().toString():c.selection&&"Control"!=c.selection.type?c.selection.createRange().text:0}function g(a,b,c){m.type=c&&h?"stepped":"stepless",m.scrollAmount=10,R(i,a,b,"mcsLinearOut",c?60:null)}var h,i=a(this),j=i.data(f),k=j.opt,m=j.sequential,n=f+"_"+j.idx,o=a("#mCSB_"+j.idx+"_container"),p=o.parent();o.bind("mousedown."+n,function(){d||h||(h=1,l=!0)}).add(c).bind("mousemove."+n,function(a){if(!d&&h&&e()){var b=o.offset(),c=G(a)[0]-b.top+o[0].offsetTop,f=G(a)[1]-b.left+o[0].offsetLeft;c>0&&c<p.height()&&f>0&&f<p.width()?m.step&&g("off",null,"stepped"):("x"!==k.axis&&j.overflowed[0]&&(0>c?g("on",38):c>p.height()&&g("on",40)),"y"!==k.axis&&j.overflowed[1]&&(0>f?g("on",37):f>p.width()&&g("on",39)))}}).bind("mouseup."+n,function(){d||(h&&(h=0,g("off",null)),l=!1)})},K=function(){function b(a){var b=null;try{var c=a.contentDocument||a.contentWindow.document;b=c.body.innerHTML}catch(a){}return null!==b}var c=a(this),d=c.data(f);if(d){var e=d.opt,g=f+"_"+d.idx,h=a("#mCSB_"+d.idx),i=[a("#mCSB_"+d.idx+"_dragger_vertical"),a("#mCSB_"+d.idx+"_dragger_horizontal")],j=a("#mCSB_"+d.idx+"_container").find("iframe"),l=h;j.length&&j.each(function(){var c=this;b(c)&&(l=l.add(a(c).contents().find("body")))}),l.bind("mousewheel."+g,function(b,f){if(W(c),!L(c,b.target)){var g="auto"!==e.mouseWheel.deltaFactor?parseInt(e.mouseWheel.deltaFactor):k&&b.deltaFactor<100?100:b.deltaFactor||100;if("x"===e.axis||"x"===e.mouseWheel.axis)var j="x",l=[Math.round(g*d.scrollRatio.x),parseInt(e.mouseWheel.scrollAmount)],m="auto"!==e.mouseWheel.scrollAmount?l[1]:l[0]>=h.width()?.9*h.width():l[0],n=Math.abs(a("#mCSB_"+d.idx+"_container")[0].offsetLeft),o=i[1][0].offsetLeft,p=i[1].parent().width()-i[1].width(),q=b.deltaX||b.deltaY||f;else var j="y",l=[Math.round(g*d.scrollRatio.y),parseInt(e.mouseWheel.scrollAmount)],m="auto"!==e.mouseWheel.scrollAmount?l[1]:l[0]>=h.height()?.9*h.height():l[0],n=Math.abs(a("#mCSB_"+d.idx+"_container")[0].offsetTop),o=i[0][0].offsetTop,p=i[0].parent().height()-i[0].height(),q=b.deltaY||f;"y"===j&&!d.overflowed[0]||"x"===j&&!d.overflowed[1]||(e.mouseWheel.invert&&(q=-q),e.mouseWheel.normalizeDelta&&(q=0>q?-1:1),(q>0&&0!==o||0>q&&o!==p||e.mouseWheel.preventDefault)&&(b.stopImmediatePropagation(),b.preventDefault()),X(c,(n-q*m).toString(),{dir:j}))}})}},L=function(b,c){var d=c.nodeName.toLowerCase(),e=b.data(f).opt.mouseWheel.disableOver,g=["select","textarea"];return a.inArray(d,e)>-1&&!(a.inArray(d,g)>-1&&!a(c).is(":focus"))},M=function(){var b=a(this),c=b.data(f),d=f+"_"+c.idx,e=a("#mCSB_"+c.idx+"_container"),g=e.parent(),h=a(".mCSB_"+c.idx+"_scrollbar ."+m[12]);h.bind("touchstart."+d+" pointerdown."+d+" MSPointerDown."+d,function(){l=!0}).bind("touchend."+d+" pointerup."+d+" MSPointerUp."+d,function(){l=!1}).bind("click."+d,function(d){if(a(d.target).hasClass(m[12])||a(d.target).hasClass("mCSB_draggerRail")){W(b);var f=a(this),h=f.find(".mCSB_dragger");if(f.parent(".mCSB_scrollTools_horizontal").length>0){if(!c.overflowed[1])return;var i="x",j=d.pageX>h.offset().left?-1:1,k=Math.abs(e[0].offsetLeft)-.9*j*g.width()}else{if(!c.overflowed[0])return;var i="y",j=d.pageY>h.offset().top?-1:1,k=Math.abs(e[0].offsetTop)-.9*j*g.height()}X(b,k.toString(),{dir:i,scrollEasing:"mcsEaseInOut"})}})},N=function(){var b=a(this),d=b.data(f),e=d.opt,g=f+"_"+d.idx,h=a("#mCSB_"+d.idx+"_container"),i=h.parent();h.bind("focusin."+g,function(){var d=a(c.activeElement),f=h.find(".mCustomScrollBox").length,g=0;d.is(e.advanced.autoScrollOnFocus)&&(W(b),clearTimeout(b[0]._focusTimeout),b[0]._focusTimer=f?(g+17)*f:0,b[0]._focusTimeout=setTimeout(function(){var a=[da(d)[0],da(d)[1]],c=[h[0].offsetTop,h[0].offsetLeft],f=[c[0]+a[0]>=0&&c[0]+a[0]<i.height()-d.outerHeight(!1),c[1]+a[1]>=0&&c[0]+a[1]<i.width()-d.outerWidth(!1)],j="yx"!==e.axis||f[0]||f[1]?"all":"none";"x"===e.axis||f[0]||X(b,a[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:j,dur:g}),"y"===e.axis||f[1]||X(b,a[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:j,dur:g})},b[0]._focusTimer))})},O=function(){var b=a(this),c=b.data(f),d=f+"_"+c.idx,e=a("#mCSB_"+c.idx+"_container").parent();e.bind("scroll."+d,function(){(0!==e.scrollTop()||0!==e.scrollLeft())&&a(".mCSB_"+c.idx+"_scrollbar").css("visibility","hidden")})},P=function(){var b=a(this),c=b.data(f),d=c.opt,e=c.sequential,g=f+"_"+c.idx,h=".mCSB_"+c.idx+"_scrollbar",i=a(h+">a");i.bind("mousedown."+g+" touchstart."+g+" pointerdown."+g+" MSPointerDown."+g+" mouseup."+g+" touchend."+g+" pointerup."+g+" MSPointerUp."+g+" mouseout."+g+" pointerout."+g+" MSPointerOut."+g+" click."+g,function(f){function g(a,c){e.scrollAmount=d.snapAmount||d.scrollButtons.scrollAmount,R(b,a,c)}if(f.preventDefault(),aa(f)){var h=a(this).attr("class");switch(e.type=d.scrollButtons.scrollType,f.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===e.type)return;l=!0,c.tweenRunning=!1,g("on",h);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===e.type)return;l=!1,e.dir&&g("off",h);break;case"click":if("stepped"!==e.type||c.tweenRunning)return;g("on",h)}}})},Q=function(){var b=a(this),d=b.data(f),e=d.opt,g=d.sequential,h=f+"_"+d.idx,i=a("#mCSB_"+d.idx),j=a("#mCSB_"+d.idx+"_container"),k=j.parent(),l="input,textarea,select,datalist,keygen,[contenteditable='true']";i.attr("tabindex","0").bind("blur."+h+" keydown."+h+" keyup."+h,function(f){function h(a,c){g.type=e.keyboard.scrollType,g.scrollAmount=e.snapAmount||e.keyboard.scrollAmount,"stepped"===g.type&&d.tweenRunning||R(b,a,c)}switch(f.type){case"blur":d.tweenRunning&&g.dir&&h("off",null);break;case"keydown":case"keyup":var i=f.keyCode?f.keyCode:f.which,m="on";if("x"!==e.axis&&(38===i||40===i)||"y"!==e.axis&&(37===i||39===i)){if((38===i||40===i)&&!d.overflowed[0]||(37===i||39===i)&&!d.overflowed[1])return;"keyup"===f.type&&(m="off"),a(c.activeElement).is(l)||(f.preventDefault(),f.stopImmediatePropagation(),h(m,i))}else if(33===i||34===i){if((d.overflowed[0]||d.overflowed[1])&&(f.preventDefault(),f.stopImmediatePropagation()),"keyup"===f.type){W(b);var n=34===i?-1:1;if("x"===e.axis||"yx"===e.axis&&d.overflowed[1]&&!d.overflowed[0])var o="x",p=Math.abs(j[0].offsetLeft)-.9*n*k.width();else var o="y",p=Math.abs(j[0].offsetTop)-.9*n*k.height();X(b,p.toString(),{dir:o,scrollEasing:"mcsEaseInOut"})}}else if((35===i||36===i)&&!a(c.activeElement).is(l)&&((d.overflowed[0]||d.overflowed[1])&&(f.preventDefault(),f.stopImmediatePropagation()),"keyup"===f.type)){if("x"===e.axis||"yx"===e.axis&&d.overflowed[1]&&!d.overflowed[0])var o="x",p=35===i?Math.abs(k.width()-j.outerWidth(!1)):0;else var o="y",p=35===i?Math.abs(k.height()-j.outerHeight(!1)):0;X(b,p.toString(),{dir:o,scrollEasing:"mcsEaseInOut"})}}})},R=function(b,c,d,e,g){function h(a){var c="stepped"!==l.type,d=g?g:a?c?p/1.5:q:1e3/60,f=a?c?7.5:40:2.5,i=[Math.abs(n[0].offsetTop),Math.abs(n[0].offsetLeft)],k=[j.scrollRatio.y>10?10:j.scrollRatio.y,j.scrollRatio.x>10?10:j.scrollRatio.x],m="x"===l.dir[0]?i[1]+l.dir[1]*k[1]*f:i[0]+l.dir[1]*k[0]*f,o="x"===l.dir[0]?i[1]+l.dir[1]*parseInt(l.scrollAmount):i[0]+l.dir[1]*parseInt(l.scrollAmount),r="auto"!==l.scrollAmount?o:m,s=e?e:a?c?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",t=!!a;return a&&17>d&&(r="x"===l.dir[0]?i[1]:i[0]),X(b,r.toString(),{dir:l.dir[0],scrollEasing:s,dur:d,onComplete:t}),a?void(l.dir=!1):(clearTimeout(l.step),void(l.step=setTimeout(function(){h()},d)))}function i(){clearTimeout(l.step),_(l,"step"),W(b)}var j=b.data(f),k=j.opt,l=j.sequential,n=a("#mCSB_"+j.idx+"_container"),o="stepped"===l.type,p=k.scrollInertia<26?26:k.scrollInertia,q=k.scrollInertia<1?17:k.scrollInertia;switch(c){case"on":if(l.dir=[d===m[16]||d===m[15]||39===d||37===d?"x":"y",d===m[13]||d===m[15]||38===d||37===d?-1:1],W(b),ca(d)&&"stepped"===l.type)return;h(o);break;case"off":i(),(o||j.tweenRunning&&l.dir)&&h(!0)}},S=function(b){var c=a(this).data(f).opt,d=[];return"function"==typeof b&&(b=b()),b instanceof Array?d=b.length>1?[b[0],b[1]]:"x"===c.axis?[null,b[0]]:[b[0],null]:(d[0]=b.y?b.y:b.x||"x"===c.axis?null:b,d[1]=b.x?b.x:b.y||"y"===c.axis?null:b),"function"==typeof d[0]&&(d[0]=d[0]()),"function"==typeof d[1]&&(d[1]=d[1]()),d},T=function(b,c){if(null!=b&&"undefined"!=typeof b){var d=a(this),e=d.data(f),g=e.opt,h=a("#mCSB_"+e.idx+"_container"),i=h.parent(),j=typeof b;c||(c="x"===g.axis?"x":"y");var k="x"===c?h.outerWidth(!1):h.outerHeight(!1),l="x"===c?h[0].offsetLeft:h[0].offsetTop,m="x"===c?"left":"top";switch(j){case"function":return b();case"object":var o=b.jquery?b:a(b);if(!o.length)return;return"x"===c?da(o)[1]:da(o)[0];case"string":case"number":if(ca(b))return Math.abs(b);if(-1!==b.indexOf("%"))return Math.abs(k*parseInt(b)/100);if(-1!==b.indexOf("-="))return Math.abs(l-parseInt(b.split("-=")[1]));if(-1!==b.indexOf("+=")){var p=l+parseInt(b.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==b.indexOf("px")&&ca(b.split("px")[0]))return Math.abs(b.split("px")[0]);if("top"===b||"left"===b)return 0;if("bottom"===b)return Math.abs(i.height()-h.outerHeight(!1));if("right"===b)return Math.abs(i.width()-h.outerWidth(!1));if("first"===b||"last"===b){var o=h.find(":"+b);return"x"===c?da(o)[1]:da(o)[0]}return a(b).length?"x"===c?da(a(b))[1]:da(a(b))[0]:(h.css(m,b),void n.update.call(null,d[0]))}}},U=function(b){function c(){clearTimeout(l[0].autoUpdate),l[0].autoUpdate=setTimeout(function(){return k.advanced.updateOnSelectorChange&&(o=g(),o!==u)?(h(3),void(u=o)):(k.advanced.updateOnContentResize&&(p=[l.outerHeight(!1),l.outerWidth(!1),r.height(),r.width(),t()[0],t()[1]],(p[0]!==v[0]||p[1]!==v[1]||p[2]!==v[2]||p[3]!==v[3]||p[4]!==v[4]||p[5]!==v[5])&&(h(p[
10]!==v[0]||p[1]!==v[1]),v=p)),k.advanced.updateOnImageLoad&&(q=d(),q!==w&&(l.find("img").each(function(){e(this)}),w=q)),void((k.advanced.updateOnSelectorChange||k.advanced.updateOnContentResize||k.advanced.updateOnImageLoad)&&c()))},60)}function d(){var a=0;return k.advanced.updateOnImageLoad&&(a=l.find("img").length),a}function e(b){function c(a,b){return function(){return b.apply(a,arguments)}}function d(){this.onload=null,a(b).addClass(m[2]),h(2)}if(a(b).hasClass(m[2]))return void h();var e=new Image;e.onload=c(e,d),e.src=b.src}function g(){k.advanced.updateOnSelectorChange===!0&&(k.advanced.updateOnSelectorChange="*");var b=0,c=l.find(k.advanced.updateOnSelectorChange);return k.advanced.updateOnSelectorChange&&c.length>0&&c.each(function(){b+=a(this).height()+a(this).width()}),b}function h(a){clearTimeout(l[0].autoUpdate),n.update.call(null,i[0],a); 2}var i=a(this),j=i.data(f),k=j.opt,l=a("#mCSB_"+j.idx+"_container");if(b)return clearTimeout(l[0].autoUpdate),void _(l[0],"autoUpdate");var o,p,q,r=l.parent(),s=[a("#mCSB_"+j.idx+"_scrollbar_vertical"),a("#mCSB_"+j.idx+"_scrollbar_horizontal")],t=function(){return[s[0].is(":visible")?s[0].outerHeight(!0):0,s[1].is(":visible")?s[1].outerWidth(!0):0]},u=g(),v=[l.outerHeight(!1),l.outerWidth(!1),r.height(),r.width(),t()[0],t()[1]],w=d();c()},V=function(a,b,c){return Math.round(a/b)*b-c},W=function(b){var c=b.data(f),d=a("#mCSB_"+c.idx+"_container,#mCSB_"+c.idx+"_container_wrapper,#mCSB_"+c.idx+"_dragger_vertical,#mCSB_"+c.idx+"_dragger_horizontal");d.each(function(){$.call(this)})},X=function(b,c,d){function e(a){return i&&j.callbacks[a]&&"function"==typeof j.callbacks[a]}function g(){return[j.callbacks.alwaysTriggerOffsets||t>=u[0]+w,j.callbacks.alwaysTriggerOffsets||-x>=t]}function h(){var a=[n[0].offsetTop,n[0].offsetLeft],c=[r[0].offsetTop,r[0].offsetLeft],e=[n.outerHeight(!1),n.outerWidth(!1)],f=[m.height(),m.width()];b[0].mcs={content:n,top:a[0],left:a[1],draggerTop:c[0],draggerLeft:c[1],topPct:Math.round(100*Math.abs(a[0])/(Math.abs(e[0])-f[0])),leftPct:Math.round(100*Math.abs(a[1])/(Math.abs(e[1])-f[1])),direction:d.dir}}var i=b.data(f),j=i.opt,k={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:j.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},d=a.extend(k,d),l=[d.dur,d.drag?0:d.dur],m=a("#mCSB_"+i.idx),n=a("#mCSB_"+i.idx+"_container"),o=n.parent(),p=j.callbacks.onTotalScrollOffset?S.call(b,j.callbacks.onTotalScrollOffset):[0,0],q=j.callbacks.onTotalScrollBackOffset?S.call(b,j.callbacks.onTotalScrollBackOffset):[0,0];if(i.trigger=d.trigger,(0!==o.scrollTop()||0!==o.scrollLeft())&&(a(".mCSB_"+i.idx+"_scrollbar").css("visibility","visible"),o.scrollTop(0).scrollLeft(0)),"_resetY"!==c||i.contentReset.y||(e("onOverflowYNone")&&j.callbacks.onOverflowYNone.call(b[0]),i.contentReset.y=1),"_resetX"!==c||i.contentReset.x||(e("onOverflowXNone")&&j.callbacks.onOverflowXNone.call(b[0]),i.contentReset.x=1),"_resetY"!==c&&"_resetX"!==c){switch(!i.contentReset.y&&b[0].mcs||!i.overflowed[0]||(e("onOverflowY")&&j.callbacks.onOverflowY.call(b[0]),i.contentReset.x=null),!i.contentReset.x&&b[0].mcs||!i.overflowed[1]||(e("onOverflowX")&&j.callbacks.onOverflowX.call(b[0]),i.contentReset.x=null),j.snapAmount&&(c=V(c,j.snapAmount,j.snapOffset)),d.dir){case"x":var r=a("#mCSB_"+i.idx+"_dragger_horizontal"),s="left",t=n[0].offsetLeft,u=[m.width()-n.outerWidth(!1),r.parent().width()-r.width()],v=[c,0===c?0:c/i.scrollRatio.x],w=p[1],x=q[1],y=w>0?w/i.scrollRatio.x:0,z=x>0?x/i.scrollRatio.x:0;break;
vendor: 4,407 bytes, line 2
2case"y":var r=a("#mCSB_"+i.idx+"_dragger_vertical"),s="top",t=n[0].offsetTop,u=[m.height()-n.outerHeight(!1),r.parent().height()-r.height()],v=[c,0===c?0:c/i.scrollRatio.y],w=p[0],x=q[0],y=w>0?w/i.scrollRatio.y:0,z=x>0?x/i.scrollRatio.y:0}v[1]<0||0===v[0]&&0===v[1]?v=[0,0]:v[1]>=u[1]?v=[u[0],u[1]]:v[0]=-v[0],b[0].mcs||(h(),e("onInit")&&j.callbacks.onInit.call(b[0])),clearTimeout(n[0].onCompleteTimeout),(i.tweenRunning||!(0===t&&v[0]>=0||t===u[0]&&v[0]<=u[0]))&&(Y(r[0],s,Math.round(v[1]),l[1],d.scrollEasing),Y(n[0],s,Math.round(v[0]),l[0],d.scrollEasing,d.overwrite,{onStart:function(){d.callbacks&&d.onStart&&!i.tweenRunning&&(e("onScrollStart")&&(h(),j.callbacks.onScrollStart.call(b[0])),i.tweenRunning=!0,A(r),i.cbOffsets=g())},onUpdate:function(){d.callbacks&&d.onUpdate&&e("whileScrolling")&&(h(),j.callbacks.whileScrolling.call(b[0]))},onComplete:function(){if(d.callbacks&&d.onComplete){"yx"===j.axis&&clearTimeout(n[0].onCompleteTimeout);var a=n[0].idleTimer||0;n[0].onCompleteTimeout=setTimeout(function(){e("onScroll")&&(h(),j.callbacks.onScroll.call(b[0])),e("onTotalScroll")&&v[1]>=u[1]-y&&i.cbOffsets[0]&&(h(),j.callbacks.onTotalScroll.call(b[0])),e("onTotalScrollBack")&&v[1]<=z&&i.cbOffsets[1]&&(h(),j.callbacks.onTotalScrollBack.call(b[0])),i.tweenRunning=!1,n[0].idleTimer=0,A(r,"hide")},a)}}}))}},Y=function(a,c,d,e,f,g,h){function i(){w.stop||(t||p.call(),t=Z()-s,j(),t>=w.time&&(w.time=t>w.time?t+n-(t-w.time):t+n-1,w.time<t+1&&(w.time=t+1)),w.time<e?w.id=o(i):r.call())}function j(){e>0?(w.currVal=m(w.time,u,x,e,f),v[c]=Math.round(w.currVal)+"px"):v[c]=d+"px",q.call()}function k(){n=1e3/60,w.time=t+n,o=b.requestAnimationFrame?b.requestAnimationFrame:function(a){return j(),setTimeout(a,.01)},w.id=o(i)}function l(){null!=w.id&&(b.requestAnimationFrame?b.cancelAnimationFrame(w.id):clearTimeout(w.id),w.id=null)}function m(a,b,c,d,e){switch(e){case"linear":case"mcsLinear":return c*a/d+b;case"mcsLinearOut":return a/=d,a--,c*Math.sqrt(1-a*a)+b;case"easeInOutSmooth":return a/=d/2,1>a?c/2*a*a+b:(a--,-c/2*(a*(a-2)-1)+b);case"easeInOutStrong":return a/=d/2,1>a?c/2*Math.pow(2,10*(a-1))+b:(a--,c/2*(-Math.pow(2,-10*a)+2)+b);case"easeInOut":case"mcsEaseInOut":return a/=d/2,1>a?c/2*a*a*a+b:(a-=2,c/2*(a*a*a+2)+b);case"easeOutSmooth":return a/=d,a--,-c*(a*a*a*a-1)+b;case"easeOutStrong":return c*(-Math.pow(2,-10*a/d)+1)+b;case"easeOut":case"mcsEaseOut":default:var f=(a/=d)*a,g=f*a;return b+c*(.499999999999997*g*f+-2.5*f*f+5.5*g+-6.5*f+4*a)}}a._mTween||(a._mTween={top:{},left:{}});var n,o,h=h||{},p=h.onStart||function(){},q=h.onUpdate||function(){},r=h.onComplete||function(){},s=Z(),t=0,u=a.offsetTop,v=a.style,w=a._mTween[c];"left"===c&&(u=a.offsetLeft);var x=d-u;w.stop=0,"none"!==g&&l(),k()},Z=function(){return b.performance&&b.performance.now?b.performance.now():b.performance&&b.performance.webkitNow?b.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},$=function(){var a=this;a._mTween||(a._mTween={top:{},left:{}});for(var c=["top","left"],d=0;d<c.length;d++){var e=c[d];a._mTween[e].id&&(b.requestAnimationFrame?b.cancelAnimationFrame(a._mTween[e].id):clearTimeout(a._mTween[e].id),a._mTween[e].id=null,a._mTween[e].stop=1)}},_=function(a,b){try{delete a[b]}catch(c){a[b]=null}},aa=function(a){return!(a.which&&1!==a.which)},ba=function(a){var b=a.originalEvent.pointerType;return!(b&&"touch"!==b&&2!==b)},ca=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},da=function(a){var b=a.parents(".mCSB_container");return[a.offset().top-b.offset().top,a.offset().left-b.offset().left]};a.fn[e]=function(b){return n[b]?n[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist"):n.init.apply(this,arguments)},a[e]=function(b){return n[b]?n[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist"):n.init.apply(this,arguments)},a[e].defaults=h,b[e]=!0,a(b).load(function(){a(g)[e](),a.extend(a.expr[":"],{mcsInView:a.expr[":"].mcsInView||function(b){var c,d,e=a(b),f=e.parents(".mCSB_container");if(f.length)return c=f.parent(),d=[f[0].offsetTop,f[0].offsetLeft],d[0]+da(e)[0]>=0&&d[0]+da(e)[0]<c.height()-e.outerHeight(!1)&&d[1]+da(e)[1]>=0&&d[1]+da(e)[1]<c.width()-e.outerWidth(!1)},mcsOverflow:a.expr[":"].mcsOverflow||function(b){var c=a(b).data(f);if(c)return c.overflowed[0]||c.overflowed[1]}})})})}(jQuery,window,document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.