!function(t,e,o){!function(t){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],t):t(jQuery)}(function(o){var a="mCustomScrollbar",r={setWidth:!1,setHeight:!1,setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,autoHideScrollbar:!1,autoExpandScrollbar:!1,alwaysShowScrollbar:0,snapAmount:null,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1,disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{enable:!1,scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoExpandHorizontalScroll:!1,autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0,updateOnSelectorChange:!1},theme:"light",callbacks:{onScrollStart:!1,onScroll:!1,onTotalScroll:!1,onTotalScrollBack:!1,whileScrolling:!1,onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0},live:!1,liveSelector:null},i=0,n={},l=function(t){n[t]&&(clearTimeout(n[t]),u._delete.call(null,n[t]))},s=t.attachEvent&&!t.addEventListener?1:0,c=!1,d={init:function(t){var t=o.extend(!0,{},r,t),e=u._selector.call(this);if(t.live){var a=t.liveSelector||this.selector||".mCustomScrollbar",s=o(a);if("off"===t.live)return void l(a);n[a]=setTimeout(function(){s.mCustomScrollbar(t),"once"===t.live&&s.length&&l(a)},500)}else l(a);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":u._findAxis.call(null,t.axis),t.scrollInertia=t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=u._findScrollButtonsType.call(null,t.scrollButtons.scrollType),u._theme.call(null,t),o(e).each(function(){var e=o(this);if(!e.data("mCS")){e.data("mCS",{idx:++i,opt:t,scrollRatio:{y:null,x:null},overflowed:null,bindEvents:!1,tweenRunning:!1,sequential:{},langDir:e.css("direction"),cbOffsets:null,trigger:null});var a=e.data("mCS").opt,r=e.data("mcs-axis"),n=e.data("mcs-scrollbar-position"),l=e.data("mcs-theme");r&&(a.axis=r),n&&(a.scrollbarPosition=n),l&&(a.theme=l,u._theme.call(null,a)),u._pluginMarkup.call(this),d.update.call(null,e)}})},update:function(t){var e=t||u._selector.call(this);return o(e).each(function(){var t=o(this);if(t.data("mCS")){var e=t.data("mCS"),a=e.opt,r=o("#mCSB_"+e.idx+"_container"),i=[o("#mCSB_"+e.idx+"_dragger_vertical"),o("#mCSB_"+e.idx+"_dragger_horizontal")];if(!r.length)return;e.tweenRunning&&u._stop.call(null,t),t.hasClass("mCS_disabled")&&t.removeClass("mCS_disabled"),t.hasClass("mCS_destroyed")&&t.removeClass("mCS_destroyed"),u._maxHeight.call(this),u._expandContentHorizontally.call(this),"y"===a.axis||a.advanced.autoExpandHorizontalScroll||r.css("width",u._contentWidth(r.children())),e.overflowed=u._overflowed.call(this),u._scrollbarVisibility.call(this),a.autoDraggerLength&&u._setDraggerLength.call(this),u._scrollRatio.call(this),u._bindEvents.call(this);var n=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==a.axis&&(e.overflowed[0]?i[0].height()>i[0].parent().height()?u._resetContentPosition.call(this):u._scrollTo.call(this,t,n[0].toString(),{dir:"y",dur:0,overwrite:"none"}):(u._resetContentPosition.call(this),"y"===a.axis?u._unbindEvents.call(this):"yx"===a.axis&&e.overflowed[1]&&u._scrollTo.call(this,t,n[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==a.axis&&(e.overflowed[1]?i[1].width()>i[1].parent().width()?u._resetContentPosition.call(this):u._scrollTo.call(this,t,n[1].toString(),{dir:"x",dur:0,overwrite:"none"}):(u._resetContentPosition.call(this),"x"===a.axis?u._unbindEvents.call(this):"yx"===a.axis&&e.overflowed[0]&&u._scrollTo.call(this,t,n[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),u._autoUpdate.call(this)}})},scrollTo:function(t,e){if(void 0!==t&&null!=t){var a=u._selector.call(this);return o(a).each(function(){var a=o(this);if(a.data("mCS")){var r=a.data("mCS"),i=r.opt,n={trigger:"external",scrollInertia:i.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=o.extend(!0,{},n,e),s=u._arr.call(this,t),c=l.scrollInertia<17?17:l.scrollInertia;s[0]=u._to.call(this,s[0],"y"),s[1]=u._to.call(this,s[1],"x"),l.moveDragger&&(s[0]*=r.scrollRatio.y,s[1]*=r.scrollRatio.x),l.dur=c,setTimeout(function(){null!==s[0]&&void 0!==s[0]&&"x"!==i.axis&&r.overflowed[0]&&(l.dir="y",l.overwrite="all",u._scrollTo.call(this,a,s[0].toString(),l)),null!==s[1]&&void 0!==s[1]&&"y"!==i.axis&&r.overflowed[1]&&(l.dir="x",l.overwrite="none",u._scrollTo.call(this,a,s[1].toString(),l))},60)}})}},stop:function(){var t=u._selector.call(this);return o(t).each(function(){var t=o(this);t.data("mCS")&&u._stop.call(null,t)})},disable:function(t){var e=u._selector.call(this);return o(e).each(function(){var e=o(this);if(e.data("mCS")){e.data("mCS").opt;u._autoUpdate.call(this,"remove"),u._unbindEvents.call(this),t&&u._resetContentPosition.call(this),u._scrollbarVisibility.call(this,!0),e.addClass("mCS_disabled")}})},destroy:function(){var t=u._selector.call(this);return o(t).each(function(){var e=o(this);if(e.data("mCS")){var r=e.data("mCS"),i=r.opt,n=o("#mCSB_"+r.idx),s=o("#mCSB_"+r.idx+"_container"),c=o(".mCSB_"+r.idx+"_scrollbar");i.live&&l(t),u._autoUpdate.call(this,"remove"),u._unbindEvents.call(this),u._resetContentPosition.call(this),e.removeData("mCS"),u._delete.call(null,this.mcs),c.remove(),n.replaceWith(s.contents()),e.removeClass(a+" _mCS_"+r.idx+" mCS-autoHide mCS-dir-rtl mCS_no_scrollbar mCS_disabled").addClass("mCS_destroyed")}})}},u={_selector:function(){return"object"!=typeof o(this)||o(this).length<1?".mCustomScrollbar":this},_theme:function(t){var e=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["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"],r=["minimal","minimal-dark"],i=["minimal","minimal-dark"],n=["minimal","minimal-dark"];t.autoDraggerLength=!(o.inArray(t.theme,e)>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(o.inArray(t.theme,a)>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(o.inArray(t.theme,r)>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=o.inArray(t.theme,i)>-1||t.autoHideScrollbar,t.scrollbarPosition=o.inArray(t.theme,n)>-1?"outside":t.scrollbarPosition},_findAxis:function(t){return"yx"===t||"xy"===t||"auto"===t?"yx":"x"===t||"horizontal"===t?"x":"y"},_findScrollButtonsType:function(t){return"stepped"===t||"pixels"===t||"step"===t||"click"===t?"stepped":"stepless"},_pluginMarkup:function(){var t=o(this),e=t.data("mCS"),r=e.opt,i=r.autoExpandScrollbar?" mCSB_scrollTools_onDrag_expand":"",n=["<div id='mCSB_"+e.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+e.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_vertical"+i+"'><div class='mCSB_draggerContainer'><div id='mCSB_"+e.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_"+e.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+e.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_horizontal"+i+"'><div class='mCSB_draggerContainer'><div id='mCSB_"+e.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===r.axis?"mCSB_vertical_horizontal":"x"===r.axis?"mCSB_horizontal":"mCSB_vertical",s="yx"===r.axis?n[0]+n[1]:"x"===r.axis?n[1]:n[0],c="yx"===r.axis?"<div id='mCSB_"+e.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",d=r.autoHideScrollbar?" mCS-autoHide":"",m="x"!==r.axis&&"rtl"===e.langDir?" mCS-dir-rtl":"";r.setWidth&&t.css("width",r.setWidth),r.setHeight&&t.css("height",r.setHeight),r.setLeft="y"!==r.axis&&"rtl"===e.langDir?"989999px":r.setLeft,t.addClass(a+" _mCS_"+e.idx+d+m).wrapInner("<div id='mCSB_"+e.idx+"' class='mCustomScrollBox mCS-"+r.theme+" "+l+"'><div id='mCSB_"+e.idx+"_container' class='mCSB_container' style='position:relative; top:"+r.setTop+"; left:"+r.setLeft+";' dir="+e.langDir+" /></div>");var h=o("#mCSB_"+e.idx),f=o("#mCSB_"+e.idx+"_container");"y"===r.axis||r.advanced.autoExpandHorizontalScroll||f.css("width",u._contentWidth(f.children())),"outside"===r.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),h.addClass("mCSB_outside").after(s)):(h.addClass("mCSB_inside").append(s),f.wrap(c)),u._scrollButtons.call(this);var _=[o("#mCSB_"+e.idx+"_dragger_vertical"),o("#mCSB_"+e.idx+"_dragger_horizontal")];_[0].css("min-height",_[0].height()),_[1].css("min-width",_[1].width())},_contentWidth:function(t){return Math.max.apply(Math,t.map(function(){return o(this).outerWidth(!0)}).get())},_expandContentHorizontally:function(){var t=o(this).data("mCS"),e=t.opt,a=o("#mCSB_"+t.idx+"_container");e.advanced.autoExpandHorizontalScroll&&"y"!==e.axis&&a.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(a[0].getBoundingClientRect().right+.4)-Math.floor(a[0].getBoundingClientRect().left),position:"relative"}).unwrap()},_scrollButtons:function(){var t=o(this).data("mCS"),e=t.opt,a=o(".mCSB_"+t.idx+"_scrollbar:first"),r=["<a href='#' class='mCSB_buttonUp' oncontextmenu='return false;' />","<a href='#' class='mCSB_buttonDown' oncontextmenu='return false;' />","<a href='#' class='mCSB_buttonLeft' oncontextmenu='return false;' />","<a href='#' class='mCSB_buttonRight' oncontextmenu='return false;' />"],i=["x"===e.axis?r[2]:r[0],"x"===e.axis?r[3]:r[1],r[2],r[3]];e.scrollButtons.enable&&a.prepend(i[0]).append(i[1]).next(".mCSB_scrollTools").prepend(i[2]).append(i[3])},_maxHeight:function(){var t=o(this),e=t.data("mCS"),a=(e.opt,o("#mCSB_"+e.idx)),r=t.css("max-height"),i=-1!==r.indexOf("%"),n=t.css("box-sizing");if("none"!==r){var l=i?t.parent().height()*parseInt(r)/100:parseInt(r);"border-box"===n&&(l-=t.innerHeight()-t.height()+(t.outerHeight()-t.innerHeight())),a.css("max-height",Math.round(l))}},_setDraggerLength:function(){var t=o(this).data("mCS"),e=o("#mCSB_"+t.idx),a=o("#mCSB_"+t.idx+"_container"),r=[o("#mCSB_"+t.idx+"_dragger_vertical"),o("#mCSB_"+t.idx+"_dragger_horizontal")],i=[e.height()/a.outerHeight(!1),e.width()/a.outerWidth(!1)],n=[parseInt(r[0].css("min-height")),Math.round(i[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(i[1]*r[1].parent().width())],l=s&&n[1]<n[0]?n[0]:n[1],c=s&&n[3]<n[2]?n[2]:n[3];r[0].css({height:l,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":n[0]+"px"}),r[1].css({width:c,"max-width":r[1].parent().width()-10})},_scrollRatio:function(){var t=o(this).data("mCS"),e=o("#mCSB_"+t.idx),a=o("#mCSB_"+t.idx+"_container"),r=[o("#mCSB_"+t.idx+"_dragger_vertical"),o("#mCSB_"+t.idx+"_dragger_horizontal")],i=[a.outerHeight(!1)-e.height(),a.outerWidth(!1)-e.width()],n=[i[0]/(r[0].parent().height()-r[0].height()),i[1]/(r[1].parent().width()-r[1].width())];t.scrollRatio={y:n[0],x:n[1]}},_onDragClasses:function(t,e,o){var a=o?"mCSB_dragger_onDrag_expanded":"",r=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag"],i=t.closest(".mCSB_scrollTools");"active"===e?(t.toggleClass(r[0]+" "+a),i.toggleClass(r[1]),t[0]._draggable=t[0]._draggable?0:1):t[0]._draggable||("hide"===e?(t.removeClass(r[0]),i.removeClass(r[1])):(t.addClass(r[0]),i.addClass(r[1])))},_overflowed:function(){var t=o(this).data("mCS"),e=o("#mCSB_"+t.idx),a=o("#mCSB_"+t.idx+"_container"),r=null==t.overflowed?a.height():a.outerHeight(!1),i=null==t.overflowed?a.width():a.outerWidth(!1);return[r>e.height(),i>e.width()]},_resetContentPosition:function(){var t=o(this),e=t.data("mCS"),a=e.opt,r=o("#mCSB_"+e.idx),i=o("#mCSB_"+e.idx+"_container"),n=[o("#mCSB_"+e.idx+"_dragger_vertical"),o("#mCSB_"+e.idx+"_dragger_horizontal")];if(u._stop(t),("x"!==a.axis&&!e.overflowed[0]||"y"===a.axis&&e.overflowed[0])&&n[0].add(i).css("top",0),"y"!==a.axis&&!e.overflowed[1]||"x"===a.axis&&e.overflowed[1]){var l=dx=0;"rtl"===e.langDir&&(l=r.width()-i.outerWidth(!1),dx=Math.abs(l/e.scrollRatio.x)),i.css("left",l),n[1].css("left",dx)}},_bindEvents:function(){function t(){i=setTimeout(function(){o.event.special.mousewheel?(clearTimeout(i),u._mousewheel.call(e[0])):t()},1e3)}var e=o(this),a=e.data("mCS"),r=a.opt;if(!a.bindEvents){if(u._draggable.call(this),r.contentTouchScroll&&u._contentDraggable.call(this),r.mouseWheel.enable){var i;t()}u._draggerRail.call(this),u._wrapperScroll.call(this),r.advanced.autoScrollOnFocus&&u._focus.call(this),r.scrollButtons.enable&&u._buttons.call(this),r.keyboard.enable&&u._keyboard.call(this),a.bindEvents=!0}},_unbindEvents:function(){var t=o(this),a=t.data("mCS"),r="mCS_"+a.idx,i=".mCSB_"+a.idx+"_scrollbar",n=o("#mCSB_"+a.idx+",#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,"+i+" .mCSB_draggerContainer,#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal,"+i+">a"),l=o("#mCSB_"+a.idx+"_container");a.bindEvents&&(o(e).unbind("."+r),n.each(function(){o(this).unbind("."+r)}),clearTimeout(t[0]._focusTimeout),u._delete.call(null,t[0]._focusTimeout),clearTimeout(a.sequential.step),u._delete.call(null,a.sequential.step),clearTimeout(l[0].onCompleteTimeout),u._delete.call(null,l[0].onCompleteTimeout),a.bindEvents=!1)},_scrollbarVisibility:function(t){var e=o(this),a=e.data("mCS"),r=a.opt,i=o("#mCSB_"+a.idx+"_container_wrapper"),n=i.length?i:o("#mCSB_"+a.idx+"_container"),l=[o("#mCSB_"+a.idx+"_scrollbar_vertical"),o("#mCSB_"+a.idx+"_scrollbar_horizontal")],s=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==r.axis&&(a.overflowed[0]&&!t?(l[0].add(s[0]).add(l[0].children("a")).css("display","block"),n.removeClass("mCS_no_scrollbar_y mCS_y_hidden")):(r.alwaysShowScrollbar?(2!==r.alwaysShowScrollbar&&s[0].add(l[0].children("a")).css("display","none"),n.removeClass("mCS_y_hidden")):(l[0].css("display","none"),n.addClass("mCS_y_hidden")),n.addClass("mCS_no_scrollbar_y"))),"y"!==r.axis&&(a.overflowed[1]&&!t?(l[1].add(s[1]).add(l[1].children("a")).css("display","block"),n.removeClass("mCS_no_scrollbar_x mCS_x_hidden")):(r.alwaysShowScrollbar?(2!==r.alwaysShowScrollbar&&s[1].add(l[1].children("a")).css("display","none"),n.removeClass("mCS_x_hidden")):(l[1].css("display","none"),n.addClass("mCS_x_hidden")),n.addClass("mCS_no_scrollbar_x"))),a.overflowed[0]||a.overflowed[1]?e.removeClass("mCS_no_scrollbar"):e.addClass("mCS_no_scrollbar")},_coordinates:function(t){switch(t.type){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return[t.originalEvent.pageY,t.originalEvent.pageX];case"touchstart":case"touchmove":case"touchend":var e=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];return[e.pageY,e.pageX];default:return[t.pageY,t.pageX]}},_draggable:function(){function t(t){var e=_.find("iframe");if(e.length){var o=t?"auto":"none";e.css("pointer-events",o)}}function a(t,e,o,a){if(_[0].idleTimer=m.scrollInertia<233?250:0,r.attr("id")===f[1])var i="x",n=(r[0].offsetLeft-e+a)*d.scrollRatio.x;else var i="y",n=(r[0].offsetTop-t+o)*d.scrollRatio.y;u._scrollTo(l,n.toString(),{dir:i,drag:!0})}var r,i,n,l=o(this),d=l.data("mCS"),m=d.opt,h="mCS_"+d.idx,f=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"],_=o("#mCSB_"+d.idx+"_container"),p=o("#"+f[0]+",#"+f[1]);p.bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,function(a){if(a.stopImmediatePropagation(),a.preventDefault(),u._mouseBtnLeft(a)){c=!0,s&&(e.onselectstart=function(){return!1}),t(!1),u._stop(l);var d=(r=o(this)).offset(),h=u._coordinates(a)[0]-d.top,f=u._coordinates(a)[1]-d.left,_=r.height()+d.top,p=r.width()+d.left;h<_&&h>0&&f<p&&f>0&&(i=h,n=f),u._onDragClasses(r,"active",m.autoExpandScrollbar)}}).bind("touchmove."+h,function(t){t.stopImmediatePropagation(),t.preventDefault();var e=r.offset(),o=u._coordinates(t)[0]-e.top,l=u._coordinates(t)[1]-e.left;a(i,n,o,l)}),o(e).bind("mousemove."+h+" pointermove."+h+" MSPointerMove."+h,function(t){if(r){var e=r.offset(),o=u._coordinates(t)[0]-e.top,l=u._coordinates(t)[1]-e.left;if(i===o)return;a(i,n,o,l)}}).add(p).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" MSPointerUp."+h,function(o){r&&(u._onDragClasses(r,"active",m.autoExpandScrollbar),r=null),c=!1,s&&(e.onselectstart=null),t(!0)})},_contentDraggable:function(){function t(t,e){var o=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?o[0]:o[3]:t>60?e>3?o[3]:o[2]:t>30?e>8?o[1]:e>6?o[0]:e>4?e:o[2]:e>8?e:o[3]}function e(t,e,o,a,r,i){t&&u._scrollTo(p,t.toString(),{dur:e,scrollEasing:o,dir:a,overwrite:r,drag:i})}var a,r,i,n,l,s,d,m,h,f,_,p=o(this),g=p.data("mCS"),S=g.opt,v="mCS_"+g.idx,x=o("#mCSB_"+g.idx),C=o("#mCSB_"+g.idx+"_container"),b=[o("#mCSB_"+g.idx+"_dragger_vertical"),o("#mCSB_"+g.idx+"_dragger_horizontal")],w=[],y=[],B="yx"===S.axis?"none":"all";C.bind("touchstart."+v+" pointerdown."+v+" MSPointerDown."+v,function(t){if(u._pointerTouch(t)&&!c){var e=C.offset();a=u._coordinates(t)[0]-e.top,r=u._coordinates(t)[1]-e.left}}).bind("touchmove."+v+" pointermove."+v+" MSPointerMove."+v,function(t){if(u._pointerTouch(t)&&!c){t.stopImmediatePropagation(),s=u._getTime();var o=x.offset(),i=u._coordinates(t)[0]-o.top,n=u._coordinates(t)[1]-o.left;if(w.push(i),y.push(n),g.overflowed[0])var l=b[0].parent().height()-b[0].height(),d=a-i>0&&i-a>-l*g.scrollRatio.y;if(g.overflowed[1])var m=b[1].parent().width()-b[1].width(),h=r-n>0&&n-r>-m*g.scrollRatio.x;(d||h)&&t.preventDefault(),f="yx"===S.axis?[a-i,r-n]:"x"===S.axis?[null,r-n]:[a-i,null],C[0].idleTimer=250,g.overflowed[0]&&e(f[0],0,"mcsLinearOut","y","all",!0),g.overflowed[1]&&e(f[1],0,"mcsLinearOut","x",B,!0)}}),x.bind("touchstart."+v+" pointerdown."+v+" MSPointerDown."+v,function(t){if(u._pointerTouch(t)&&!c){t.stopImmediatePropagation(),u._stop(p),l=u._getTime();var e=x.offset();i=u._coordinates(t)[0]-e.top,n=u._coordinates(t)[1]-e.left,w=[],y=[]}}).bind("touchend."+v+" pointerup."+v+" MSPointerUp."+v,function(o){if(u._pointerTouch(o)&&!c){o.stopImmediatePropagation(),d=u._getTime();var a=x.offset(),r=u._coordinates(o)[0]-a.top,p=u._coordinates(o)[1]-a.left;if(!(d-s>30)){var v=(h=1e3/(d-l))<2.5,b=v?[w[w.length-2],y[y.length-2]]:[0,0];m=v?[r-b[0],p-b[1]]:[r-i,p-n];var T=[Math.abs(m[0]),Math.abs(m[1])];h=v?[Math.abs(m[0]/4),Math.abs(m[1]/4)]:[h,h];var M=[Math.abs(C[0].offsetTop)-m[0]*t(T[0]/h[0],h[0]),Math.abs(C[0].offsetLeft)-m[1]*t(T[1]/h[1],h[1])];f="yx"===S.axis?[M[0],M[1]]:"x"===S.axis?[null,M[1]]:[M[0],null],_=[4*T[0]+S.scrollInertia,4*T[1]+S.scrollInertia];var k=parseInt(S.contentTouchScroll)||0;f[0]=T[0]>k?f[0]:0,f[1]=T[1]>k?f[1]:0,g.overflowed[0]&&e(f[0],_[0],"mcsEaseOut","y",B,!1),g.overflowed[1]&&e(f[1],_[1],"mcsEaseOut","x",B,!1)}}})},_mousewheel:function(){var t=o(this),e=t.data("mCS");if(e){var a=e.opt,r="mCS_"+e.idx,i=o("#mCSB_"+e.idx),n=[o("#mCSB_"+e.idx+"_dragger_vertical"),o("#mCSB_"+e.idx+"_dragger_horizontal")];i.bind("mousewheel."+r,function(r,l){if(u._stop(t),!u._disableMousewheel(t,r.target)){var c="auto"!==a.mouseWheel.deltaFactor?parseInt(a.mouseWheel.deltaFactor):s&&r.deltaFactor<100?100:r.deltaFactor<40?40:r.deltaFactor||100;if("x"===a.axis||"x"===a.mouseWheel.axis)var d="x",m=[Math.round(c*e.scrollRatio.x),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?m[1]:m[0]>=i.width()?.9*i.width():m[0],f=Math.abs(o("#mCSB_"+e.idx+"_container")[0].offsetLeft),_=n[1][0].offsetLeft,p=n[1].parent().width()-n[1].width(),g=r.deltaX||r.deltaY||l;else var d="y",m=[Math.round(c*e.scrollRatio.y),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?m[1]:m[0]>=i.height()?.9*i.height():m[0],f=Math.abs(o("#mCSB_"+e.idx+"_container")[0].offsetTop),_=n[0][0].offsetTop,p=n[0].parent().height()-n[0].height(),g=r.deltaY||l;"y"===d&&!e.overflowed[0]||"x"===d&&!e.overflowed[1]||(a.mouseWheel.invert&&(g=-g),a.mouseWheel.normalizeDelta&&(g=g<0?-1:1),(g>0&&0!==_||g<0&&_!==p||a.mouseWheel.preventDefault)&&(r.stopImmediatePropagation(),r.preventDefault()),u._scrollTo(t,(f-g*h).toString(),{dir:d}))}})}},_disableMousewheel:function(t,e){var a=e.nodeName.toLowerCase(),r=t.data("mCS").opt.mouseWheel.disableOver,i=["select","textarea"];return o.inArray(a,r)>-1&&!(o.inArray(a,i)>-1&&!o(e).is(":focus"))},_draggerRail:function(){var t=o(this),e=t.data("mCS"),a="mCS_"+e.idx,r=o("#mCSB_"+e.idx+"_container"),i=r.parent();o(".mCSB_"+e.idx+"_scrollbar .mCSB_draggerContainer").bind("touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,function(t){c=!0}).bind("touchend."+a+" pointerup."+a+" MSPointerUp."+a,function(t){c=!1}).bind("click."+a,function(a){if(o(a.target).hasClass("mCSB_draggerContainer")||o(a.target).hasClass("mCSB_draggerRail")){u._stop(t);var n=o(this),l=n.find(".mCSB_dragger");if(n.parent(".mCSB_scrollTools_horizontal").length>0){if(!e.overflowed[1])return;var s="x",c=a.pageX>l.offset().left?-1:1,d=Math.abs(r[0].offsetLeft)-c*(.9*i.width())}else{if(!e.overflowed[0])return;var s="y",c=a.pageY>l.offset().top?-1:1,d=Math.abs(r[0].offsetTop)-c*(.9*i.height())}u._scrollTo(t,d.toString(),{dir:s,scrollEasing:"mcsEaseInOut"})}})},_focus:function(){var t=o(this),a=t.data("mCS"),r=a.opt,i="mCS_"+a.idx,n=o("#mCSB_"+a.idx+"_container"),l=n.parent();n.bind("focusin."+i,function(a){var i=o(e.activeElement),s=n.find(".mCustomScrollBox").length;i.is(r.advanced.autoScrollOnFocus)&&(u._stop(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=s?17*s:0,t[0]._focusTimeout=setTimeout(function(){var e=[i.offset().top-n.offset().top,i.offset().left-n.offset().left],o=[n[0].offsetTop,n[0].offsetLeft],a=[o[0]+e[0]>=0&&o[0]+e[0]<l.height()-i.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<l.width()-i.outerWidth(!1)],s="yx"!==r.axis||a[0]||a[1]?"all":"none";"x"===r.axis||a[0]||u._scrollTo(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:s,dur:0}),"y"===r.axis||a[1]||u._scrollTo(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:s,dur:0})},t[0]._focusTimer))})},_wrapperScroll:function(){var t=o(this).data("mCS"),e="mCS_"+t.idx,a=o("#mCSB_"+t.idx+"_container").parent();a.bind("scroll."+e,function(t){a.scrollTop(0).scrollLeft(0)})},_buttons:function(){var t=o(this),e=t.data("mCS"),a=e.opt,r=e.sequential,i="mCS_"+e.idx,n=(o("#mCSB_"+e.idx+"_container"),".mCSB_"+e.idx+"_scrollbar");o(n+">a").bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(i){function n(e,o){r.scrollAmount=a.snapAmount||a.scrollButtons.scrollAmount,u._sequentialScroll.call(this,t,e,o)}if(i.preventDefault(),u._mouseBtnLeft(i)){var l=o(this).attr("class");switch(r.type=a.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===r.type)return;c=!0,e.tweenRunning=!1,n("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===r.type)return;c=!1,r.dir&&n("off",l);break;case"click":if("stepped"!==r.type||e.tweenRunning)return;n("on",l)}}})},_keyboard:function(){var t=o(this),a=t.data("mCS"),r=a.opt,i=a.sequential,n="mCS_"+a.idx,l=o("#mCSB_"+a.idx),s=o("#mCSB_"+a.idx+"_container"),c=s.parent(),d="input,textarea,select,datalist,keygen,[contenteditable='true']";l.attr("tabindex","0").bind("blur."+n+" keydown."+n+" keyup."+n,function(n){function l(e,o){i.type=r.keyboard.scrollType,i.scrollAmount=r.snapAmount||r.keyboard.scrollAmount,"stepped"===i.type&&a.tweenRunning||u._sequentialScroll.call(this,t,e,o)}switch(n.type){case"blur":a.tweenRunning&&i.dir&&l("off",null);break;case"keydown":case"keyup":var m=n.keyCode?n.keyCode:n.which,h="on";if("x"!==r.axis&&(38===m||40===m)||"y"!==r.axis&&(37===m||39===m)){if((38===m||40===m)&&!a.overflowed[0]||(37===m||39===m)&&!a.overflowed[1])return;"keyup"===n.type&&(h="off"),o(e.activeElement).is(d)||(n.preventDefault(),n.stopImmediatePropagation(),l(h,m))}else if(33===m||34===m){if((a.overflowed[0]||a.overflowed[1])&&(n.preventDefault(),n.stopImmediatePropagation()),"keyup"===n.type){u._stop(t);var f=34===m?-1:1;if("x"===r.axis||"yx"===r.axis&&a.overflowed[1]&&!a.overflowed[0])var _="x",p=Math.abs(s[0].offsetLeft)-f*(.9*c.width());else var _="y",p=Math.abs(s[0].offsetTop)-f*(.9*c.height());u._scrollTo(t,p.toString(),{dir:_,scrollEasing:"mcsEaseInOut"})}}else if((35===m||36===m)&&!o(e.activeElement).is(d)&&((a.overflowed[0]||a.overflowed[1])&&(n.preventDefault(),n.stopImmediatePropagation()),"keyup"===n.type)){if("x"===r.axis||"yx"===r.axis&&a.overflowed[1]&&!a.overflowed[0])var _="x",p=35===m?Math.abs(c.width()-s.outerWidth(!1)):0;else var _="y",p=35===m?Math.abs(c.height()-s.outerHeight(!1)):0;u._scrollTo(t,p.toString(),{dir:_,scrollEasing:"mcsEaseInOut"})}}})},_sequentialScroll:function(t,e,a){function r(e){var o="stepped"!==l.type,a=e?o?n.scrollInertia/1.5:n.scrollInertia:1e3/60,c=e?o?7.5:40:2.5,d=[Math.abs(s[0].offsetTop),Math.abs(s[0].offsetLeft)],m=[i.scrollRatio.y>10?10:i.scrollRatio.y,i.scrollRatio.x>10?10:i.scrollRatio.x],h="x"===l.dir[0]?d[1]+l.dir[1]*(m[1]*c):d[0]+l.dir[1]*(m[0]*c),f="x"===l.dir[0]?d[1]+l.dir[1]*parseInt(l.scrollAmount):d[0]+l.dir[1]*parseInt(l.scrollAmount),_="auto"!==l.scrollAmount?f:h,p=e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",g=!!e;e&&a<17&&(_="x"===l.dir[0]?d[1]:d[0]),u._scrollTo(t,_.toString(),{dir:l.dir[0],scrollEasing:p,dur:a,onComplete:g}),e?l.dir=!1:(clearTimeout(l.step),l.step=setTimeout(function(){r()},a))}var i=t.data("mCS"),n=i.opt,l=i.sequential,s=o("#mCSB_"+i.idx+"_container"),c="stepped"===l.type;switch(e){case"on":if(l.dir=["mCSB_buttonRight"===a||"mCSB_buttonLeft"===a||39===a||37===a?"x":"y","mCSB_buttonUp"===a||"mCSB_buttonLeft"===a||38===a||37===a?-1:1],u._stop(t),u._isNumeric(a)&&"stepped"===l.type)return;r(c);break;case"off":!function(){clearTimeout(l.step),u._stop(t)}(),(c||i.tweenRunning&&l.dir)&&r(!0)}},_arr:function(t){var e=o(this).data("mCS").opt,a=[];return"function"==typeof t&&(t=t()),t instanceof Array?a=t.length>1?[t[0],t[1]]:"x"===e.axis?[null,t[0]]:[t[0],null]:(a[0]=t.y?t.y:t.x||"x"===e.axis?null:t,a[1]=t.x?t.x:t.y||"y"===e.axis?null:t),"function"==typeof a[0]&&(a[0]=a[0]()),"function"==typeof a[1]&&(a[1]=a[1]()),a},_to:function(t,e){if(null!=t&&void 0!==t){var a=o(this),r=a.data("mCS"),i=r.opt,n=o("#mCSB_"+r.idx+"_container"),l=n.parent(),s=typeof t;e||(e="x"===i.axis?"x":"y");var c="x"===e?n.outerWidth(!1):n.outerHeight(!1),m="x"===e?n.offset().left:n.offset().top,h="x"===e?n[0].offsetLeft:n[0].offsetTop,f="x"===e?"left":"top";switch(s){case"function":return t();case"object":if(t.nodeType)_="x"===e?o(t).offset().left:o(t).offset().top;else if(t.jquery){if(!t.length)return;var _="x"===e?t.offset().left:t.offset().top}return _-m;case"string":case"number":if(u._isNumeric.call(null,t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(c*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(h-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=h+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&u._isNumeric.call(null,t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-n.outerHeight(!1));if("right"===t)return Math.abs(l.width()-n.outerWidth(!1));if("first"===t||"last"===t){var g=n.find(":"+t);return(_="x"===e?o(g).offset().left:o(g).offset().top)-m}return o(t).length?(_="x"===e?o(t).offset().left:o(t).offset().top)-m:(n.css(f,t),void d.update.call(null,a[0]))}}},_autoUpdate:function(t){function e(){clearTimeout(m[0].autoUpdate),m[0].autoUpdate=setTimeout(function(){if(c.advanced.updateOnSelectorChange&&(h=i())!==v)return n(),void(v=h);c.advanced.updateOnContentResize&&((f=[m.outerHeight(!1),m.outerWidth(!1),p.height(),p.width(),S()[0],S()[1]])[0]===x[0]&&f[1]===x[1]&&f[2]===x[2]&&f[3]===x[3]&&f[4]===x[4]&&f[5]===x[5]||(n(),x=f)),c.advanced.updateOnImageLoad&&(_=a())!==C&&(m.find("img").each(function(){r(this.src)}),C=_),(c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&e()},60)}function a(){var t=0;return c.advanced.updateOnImageLoad&&(t=m.find("img").length),t}function r(t){function e(){this.onload=null,n()}var o=new Image;o.onload=function(t,e){return function(){return e.apply(t,arguments)}}(o,e),o.src=t}function i(){!0===c.advanced.updateOnSelectorChange&&(c.advanced.updateOnSelectorChange="*");var t=0,e=m.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&e.length>0&&e.each(function(){t+=o(this).height()+o(this).width()}),t}function n(){clearTimeout(m[0].autoUpdate),d.update.call(null,l[0])}var l=o(this),s=l.data("mCS"),c=s.opt,m=o("#mCSB_"+s.idx+"_container");if(t)return clearTimeout(m[0].autoUpdate),void u._delete.call(null,m[0].autoUpdate);var h,f,_,p=m.parent(),g=[o("#mCSB_"+s.idx+"_scrollbar_vertical"),o("#mCSB_"+s.idx+"_scrollbar_horizontal")],S=function(){return[g[0].is(":visible")?g[0].outerHeight(!0):0,g[1].is(":visible")?g[1].outerWidth(!0):0]},v=i(),x=[m.outerHeight(!1),m.outerWidth(!1),p.height(),p.width(),S()[0],S()[1]],C=a();e()},_snapAmount:function(t,e,o){return Math.round(t/e)*e-o},_stop:function(t){var e=t.data("mCS");o("#mCSB_"+e.idx+"_container,#mCSB_"+e.idx+"_container_wrapper,#mCSB_"+e.idx+"_dragger_vertical,#mCSB_"+e.idx+"_dragger_horizontal").each(function(){u._stopTween.call(this)})},_scrollTo:function(t,e,a){function r(t){return l&&s.callbacks[t]&&"function"==typeof s.callbacks[t]}function i(){return[s.callbacks.alwaysTriggerOffsets||S>=v[0]+C,s.callbacks.alwaysTriggerOffsets||S<=-b]}function n(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[p[0].offsetTop,p[0].offsetLeft],r=[h.outerHeight(!1),h.outerWidth(!1)],i=[m.height(),m.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(r[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(r[1])-i[1])),direction:a.dir}}var l=t.data("mCS"),s=l.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:s.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},d=[(a=o.extend(c,a)).dur,a.drag?0:a.dur],m=o("#mCSB_"+l.idx),h=o("#mCSB_"+l.idx+"_container"),f=s.callbacks.onTotalScrollOffset?u._arr.call(t,s.callbacks.onTotalScrollOffset):[0,0],_=s.callbacks.onTotalScrollBackOffset?u._arr.call(t,s.callbacks.onTotalScrollBackOffset):[0,0];switch(l.trigger=a.trigger,s.snapAmount&&(e=u._snapAmount(e,s.snapAmount,s.snapOffset)),a.dir){case"x":var p=o("#mCSB_"+l.idx+"_dragger_horizontal"),g="left",S=h[0].offsetLeft,v=[m.width()-h.outerWidth(!1),p.parent().width()-p.width()],x=[e,e/l.scrollRatio.x],C=f[1],b=_[1],w=C>0?C/l.scrollRatio.x:0,y=b>0?b/l.scrollRatio.x:0;break;case"y":var p=o("#mCSB_"+l.idx+"_dragger_vertical"),g="top",S=h[0].offsetTop,v=[m.height()-h.outerHeight(!1),p.parent().height()-p.height()],x=[e,e/l.scrollRatio.y],C=f[0],b=_[0],w=C>0?C/l.scrollRatio.y:0,y=b>0?b/l.scrollRatio.y:0}x[1]<0?x=[0,0]:x[1]>=v[1]?x=[v[0],v[1]]:x[0]=-x[0],clearTimeout(h[0].onCompleteTimeout),!l.tweenRunning&&(0===S&&x[0]>=0||S===v[0]&&x[0]<=v[0])||(u._tweenTo.call(null,p[0],g,Math.round(x[1]),d[1],a.scrollEasing),u._tweenTo.call(null,h[0],g,Math.round(x[0]),d[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!l.tweenRunning&&(r("onScrollStart")&&(n(),s.callbacks.onScrollStart.call(t[0])),l.tweenRunning=!0,u._onDragClasses(p),l.cbOffsets=i())},onUpdate:function(){a.callbacks&&a.onUpdate&&r("whileScrolling")&&(n(),s.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===s.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){r("onScroll")&&(n(),s.callbacks.onScroll.call(t[0])),r("onTotalScroll")&&x[1]>=v[1]-w&&l.cbOffsets[0]&&(n(),s.callbacks.onTotalScroll.call(t[0])),r("onTotalScrollBack")&&x[1]<=y&&l.cbOffsets[1]&&(n(),s.callbacks.onTotalScrollBack.call(t[0])),l.tweenRunning=!1,h[0].idleTimer=0,u._onDragClasses(p,"hide")},e)}}}))},_tweenTo:function(e,o,a,r,i,n,l){function s(){e._mcsstop||(g||h.call(),g=u._getTime()-p,c(),g>=e._mcstime&&(e._mcstime=g>e._mcstime?g+m-(g-e._mcstime):g+m-1,e._mcstime<g+1&&(e._mcstime=g+1)),e._mcstime<r?e._mcsid=_request(s):_.call())}function c(){r>0?(e._mcscurrVal=d(e._mcstime,S,x,r,i),v[o]=Math.round(e._mcscurrVal)+"px"):v[o]=a+"px",f.call()}function d(t,e,o,a,r){switch(r){case"linear":case"mcsLinear":return o*t/a+e;case"mcsLinearOut":return t/=a,t--,o*Math.sqrt(1-t*t)+e;case"easeInOutSmooth":return(t/=a/2)<1?o/2*t*t+e:(t--,-o/2*(t*(t-2)-1)+e);case"easeInOutStrong":return(t/=a/2)<1?o/2*Math.pow(2,10*(t-1))+e:(t--,o/2*(2-Math.pow(2,-10*t))+e);case"easeInOut":case"mcsEaseInOut":return(t/=a/2)<1?o/2*t*t*t+e:(t-=2,o/2*(t*t*t+2)+e);case"easeOutSmooth":return t/=a,t--,-o*(t*t*t*t-1)+e;case"easeOutStrong":return o*(1-Math.pow(2,-10*t/a))+e;case"easeOut":case"mcsEaseOut":default:var i=(t/=a)*t,n=i*t;return e+o*(.499999999999997*n*i+-2.5*i*i+5.5*n+-6.5*i+4*t)}}var m,h=(l=l||{}).onStart||function(){},f=l.onUpdate||function(){},_=l.onComplete||function(){},p=u._getTime(),g=0,S=e.offsetTop,v=e.style;"left"===o&&(S=e.offsetLeft);var x=a-S;e._mcsstop=0,"none"!==n&&function(){null!=e._mcsid&&(t.requestAnimationFrame?t.cancelAnimationFrame(e._mcsid):clearTimeout(e._mcsid),e._mcsid=null)}(),function(){m=1e3/60,e._mcstime=g+m,_request=t.requestAnimationFrame?t.requestAnimationFrame:function(t){return c(),setTimeout(t,.01)},e._mcsid=_request(s)}()},_getTime:function(){return t.performance&&t.performance.now?t.performance.now():t.performance&&t.performance.webkitNow?t.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},_stopTween:function(){var e=this;null!=e._mcsid&&(t.requestAnimationFrame?t.cancelAnimationFrame(e._mcsid):clearTimeout(e._mcsid),e._mcsid=null,e._mcsstop=1)},_delete:function(t){try{delete t}catch(e){t=null}},_mouseBtnLeft:function(t){return!(t.which&&1!==t.which)},_pointerTouch:function(t){var e=t.originalEvent.pointerType;return!(e&&"touch"!==e&&2!==e)},_isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}};o.fn[a]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void o.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},o[a]=function(t){return d[t]?d[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void o.error("Method "+t+" does not exist"):d.init.apply(this,arguments)},o[a].defaults=r,t[a]=!0,o(t).on("load",function(){o(".mCustomScrollbar")[a]()})})}(window,document);