/* == jquery mousewheel plugin == Version: 3.1.12, License: MIT License (MIT) */ !function(a){“function”==typeof define&&define.amd?define(,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}=1?”floor“:”ceil“”>j/f),l=Math(e,f,g=,h=”onwheel“in document||document.documentMode>=9?:[”mousewheel“,”DomMouseScroll“,”MozMousePixelScroll“],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g]=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,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,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)}})}); /* == malihu jquery custom scrollbar plugin == Version: 3.1.0, License: MIT License (MIT) */ !function(e){”undefined“!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o=”function“==typeof define&&define.amd,a=”undefined“!=typeof module&&module.exports,n=”“==document.location.protocol?”https:“:”http:“,i=”cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.12/jquery.mousewheel.min.js“;o||(a?require(”jquery-mousewheel“)(e):e.event.special.mousewheel||e(”head“).append(decodeURI(”%3Cscript src=“n
”//“i
”%3E%3C/script%3E“))),t()}(function(){var t,o=”mCustomScrollbar“,a=”mCS“,n=”.mCustomScrollbar“,i={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:},scrollButtons:{scrollType:”stepless“,scrollAmount:”auto“},keyboard:{enable:!0,scrollType:”stepless“,scrollAmount:”auto“},contentTouchScroll:25,advanced:{autoScrollOnFocus:”input,textarea,select,button,datalist,keygen,a,area,object,“,updateOnContentResize:!0,updateOnImageLoad:”auto“,autoUpdateTimeout:60},theme:”light“,callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=,u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if(”off“===t.live)return void m(s);l=setTimeout(function(){c.mCustomScrollbar(t),”once“===t.live&&c.length&&m(s)},500)}else m(s);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“:p(t.axis),t.scrollInertia=t.scrollInertia>0&&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=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css(”direction“),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data(”mcs-axis“),s=o.data(”mcs-scrollbar-position“),c=o.data(”mcs-theme“);l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&”function“==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e(”#mCSB_“n.idx
”_container img:not(.“d[2]
”)“).addClass(d),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e(”#mCSB_“n.idx
”_container“),l=e(”#mCSB_“+n.idx),s=[e(”#mCSB_“n.idx
”_dragger_vertical“),e(”#mCSB_“n.idx
”_dragger_horizontal“)];if(!r.length)return;n.tweenRunning&&N(t),o&&n&&i.callbacks.onBeforeUpdate&&”function“==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d)&&t.removeClass(d),t.hasClass(d)&&t.removeClass(d),l.height()!==t.height()&&l.css(”max-height“,t.height()),_.call(this),”y“===i.axis||i.advanced.autoExpandHorizontalScroll||r.css(”width“,x®),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r.offsetTop),Math.abs(r.offsetLeft)];”x“!==i.axis&&(n.overflowed?s.height()>s.parent().height()?B.call(this):(V(t,c.toString(),{dir:”y“,dur:0,overwrite:”none“}),n.contentReset.y=null):(B.call(this),”y“===i.axis?k.call(this):”yx“===i.axis&&n.overflowed&&V(t,c.toString(),{dir:”x“,dur:0,overwrite:”none“}))),”y“!==i.axis&&(n.overflowed?s.width()>s.parent().width()?B.call(this):(V(t,c.toString(),{dir:”x“,dur:0,overwrite:”none“}),n.contentReset.x=null):(B.call(this),”x“===i.axis?k.call(this):”yx“===i.axis&&n.overflowed&&V(t,c.toString(),{dir:”y“,dur:0,overwrite:”none“}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&”function“==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&”function“==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&”function“==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),j.call(this)}})},scrollTo:function(t,o){if(”undefined“!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:”external“,scrollInertia:r.scrollInertia,scrollEasing:”mcsEaseInOut“,moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=q.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c=Y.call(this,c,”y“),c=Y.call(this,c,”x“),s.moveDragger&&(c*=i.scrollRatio.y,c*=i.scrollRatio.x),s.dur=d,setTimeout(function(){null!==c&&”undefined“!=typeof c&&”x“!==r.axis&&i.overflowed&&(s.dir=”y“,s.overwrite=”all“,V(n,c.toString(),s)),null!==c&&”undefined“!=typeof c&&”y“!==r.axis&&i.overflowed&&(s.dir=”x“,s.overwrite=”none“,V(n,c.toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&N(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){{o.data(a)}j.call(this,”remove“),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d)}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e(”#mCSB_“+i.idx),s=e(”#mCSB_“i.idx
”_container“),c=e(”.mCSB_“i.idx
”_scrollbar“);r.live&&m(r.liveSelector||e(t).selector),j.call(this,”remove“),k.call(this),B.call(this),n.removeData(a),K(this,”mcs“),c.remove(),s.find(”img.“+d).removeClass(d),l.replaceWith(s.contents()),n.removeClass(o+” _“a
”_“i.idx
” “d[6]
” “d[7]
” “d[5]
” “+d).addClass(d)}})}},f=function(){return”object“!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=,a=,n=,i=,r=;t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?”outside“:t.scrollbarPosition},m=function(e){l&&(clearTimeout(l),K(l,e))},p=function(e){return”yx“===e||”xy“===e||”auto“===e?”yx“:”x“===e||”horizontal“===e?”x“:”y“},g=function(e){return”stepped“===e||”pixels“===e||”step“===e||”click“===e?”stepped“:”stepless“},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?” “d[1]
”_expand“:”“,l=[”<div id='mCSB_“n.idx
”_scrollbar_vertical' class='mCSB_scrollTools mCSB_“n.idx
”_scrollbar mCS-“i.theme
” mCSB_scrollTools_vertical“r
”'><div class=‘“d[12]
”'><div id='mCSB_“n.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_“n.idx
”_scrollbar_horizontal' class='mCSB_scrollTools mCSB_“n.idx
”_scrollbar mCS-“i.theme
” mCSB_scrollTools_horizontal“r
”'><div class=’“d[12]
”'><div id='mCSB_“n.idx
”_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div>“],s=”yx“===i.axis?”mCSB_vertical_horizontal“:”x“===i.axis?”mCSB_horizontal“:”mCSB_vertical“,c=”yx“===i.axis?l+l:”x“===i.axis?l:l,u=”yx“===i.axis?”<div id='mCSB_“n.idx
”_container_wrapper' class='mCSB_container_wrapper' />“:”“,f=i.autoHideScrollbar?” “+d:”“,h=”x“!==i.axis&&”rtl“===n.langDir?” “+d:”“;i.setWidth&&t.css(”width“,i.setWidth),i.setHeight&&t.css(”height“,i.setHeight),i.setLeft=”y“!==i.axis&&”rtl“===n.langDir?”989999px“:i.setLeft,t.addClass(o+” _“a
”_“+n.idx+f+h).wrapInner(”<div id='mCSB_“n.idx
”' class='mCustomScrollBox mCS-“i.theme
” “s
”'><div id='mCSB_“n.idx
”_container' class='mCSB_container' style='position:relative; top:“i.setTop
”; left:“i.setLeft
”;' dir=“n.langDir
” /></div>“);var m=e(”#mCSB_“+n.idx),p=e(”#mCSB_“n.idx
”_container“);”y“===i.axis||i.advanced.autoExpandHorizontalScroll||p.css(”width“,x(p)),”outside“===i.scrollbarPosition?(”static“===t.css(”position“)&&t.css(”position“,”relative“),t.css(”overflow“,”visible“),m.addClass(”mCSB_outside“).after©):(m.addClass(”mCSB_inside“).append©,p.wrap(u)),w.call(this);var g=[e(”#mCSB_“n.idx
”_dragger_vertical“),e(”#mCSB_“n.idx
”_dragger_horizontal“)];g.css(”min-height“,g.height()),g.css(”min-width“,g.width())},x=function(t){var o=[t.scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o>a?o:o>a?o:”100%“},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(”#mCSB_“o.idx
”_container“);if(n.advanced.autoExpandHorizontalScroll&&”y“!==n.axis){i.css({width:”auto“,”min-width“:0,”overflow-x“:”scroll“});var r=Math.ceil(i.scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,”min-width“:”100%“,”overflow-x“:”inherit“}):i.css({”overflow-x“:”inherit“,position:”absolute“}).wrap(”<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />“).css({width:Math.ceil(i.getBoundingClientRect().right+.4)-Math.floor(i.getBoundingClientRect().left),”min-width“:”100%“,position:”relative“}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(”.mCSB_“o.idx
”_scrollbar:first“),r=ee(n.scrollButtons.tabindex)?”tabindex='“n.scrollButtons.tabindex
”'“:”“,l=[”<a href='#' class=‘“d[13]
”' oncontextmenu='return false;' “r
” />“,”<a href='#' class=’“d[14]
”' oncontextmenu='return false;' “r
” />“,”<a href='#' class=‘“d[15]
”' oncontextmenu='return false;' “r
” />“,”<a href='#' class=’“d[16]
”' oncontextmenu='return false;' “r
” />“],s=[”x“===n.axis?l:l,”x“===n.axis?l:l,l,l];n.scrollButtons.enable&&i.prepend(s).append(s).next(”.mCSB_scrollTools“).prepend(s).append(s)},S=function(){var t=e(this),o=t.data(a),n=e(”#mCSB_“+o.idx),i=e(”#mCSB_“o.idx
”_container“),r=[e(”#mCSB_“o.idx
”_dragger_vertical“),e(”#mCSB_“o.idx
”_dragger_horizontal“)],l=,c=[parseInt(r.css(”min-height“)),Math.round(l*r.parent().height()),parseInt(r.css(”min-width“)),Math.round(l*r.parent().width())],d=s&&c<c?c:c,u=s&&c<c?c:c;r.css({height:d,”max-height“:r.parent().height()-10}).find(”.mCSB_dragger_bar“).css({”line-height“:c+”px“}),r.css({width:u,”max-width“:r.parent().width()-10})},b=function(){var t=e(this),o=t.data(a),n=e(”#mCSB_“+o.idx),i=e(”#mCSB_“o.idx
”_container“),r=[e(”#mCSB_“o.idx
”_dragger_vertical“),e(”#mCSB_“o.idx
”_dragger_horizontal“)],l=,s=[l/(r.parent().height()-r.height()),l/(r.parent().width()-r.width())];o.scrollRatio={y:s,x:s}},C=function(e,t,o){var a=o?d+”_expanded“:”“,n=e.closest(”.mCSB_scrollTools“);”active“===t?(e.toggleClass(d+” “+a),n.toggleClass(d),e._draggable=e._draggable?0:1):e._draggable||(”hide“===t?(e.removeClass(d),n.removeClass(d)):(e.addClass(d),n.addClass(d)))},y=function(){var t=e(this),o=t.data(a),n=e(”#mCSB_“+o.idx),i=e(”#mCSB_“o.idx
”_container“),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i.scrollHeight,c=i.scrollWidth;return if(N(t),(“x”!==n.axis&&!o.overflowed||“y”===n.axis&&o.overflowed)&&(l.add®.css(“top”,0),V(t,“_resetY”)),“y”!==n.axis&&!o.overflowed||“x”===n.axis&&o.overflowed){var s=dx=0;“rtl”===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css(“left”,s),l.css(“left”,dx),V(t,“_resetX”)}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout®,E.call(o)):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&R.call(this),D.call(this),i.mouseWheel.enable){var r;t()}z.call(this),P.call(this),i.advanced.autoScrollOnFocus&&A.call(this),i.scrollButtons.enable&&H.call(this),i.keyboard.enable&&U.call(this),n.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+“_”+o.idx,r=“.mCSB_”o.idx
“_scrollbar”,l=e(“#mCSB_”o.idx
“,#mCSB_”o.idx
“_container,#mCSB_”o.idx
“_container_wrapper,”r
“ .”d[12]
“,#mCSB_”o.idx
“_dragger_vertical,#mCSB_”o.idx
“_dragger_horizontal,”r
“>a”),s=e(“#mCSB_”o.idx
“_container”);n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),o.bindEvents&&(e(document).unbind(“.”+i),l.each(function(){e(this).unbind(“.”+i)}),clearTimeout(t._focusTimeout),K(t,“_focusTimeout”),clearTimeout(o.sequential.step),K(o.sequential,“step”),clearTimeout(s.onCompleteTimeout),K(s,“onCompleteTimeout”),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e(“#mCSB_”n.idx
“_container_wrapper”),l=r.length?r:e(“#mCSB_”n.idx
“_container”),s=[e(“#mCSB_”n.idx
“_scrollbar_vertical”),e(“#mCSB_”n.idx
“_scrollbar_horizontal”)],c=[s.find(“.mCSB_dragger”),s.find(“.mCSB_dragger”)];“x”!==i.axis&&(n.overflowed&&!t?(s.add(c).add(s.children(“a”)).css(“display”,“block”),l.removeClass(d+“ ”+d)):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c.css(“display”,“none”),l.removeClass(d)):(s.css(“display”,“none”),l.addClass(d)),l.addClass(d))),“y”!==i.axis&&(n.overflowed&&!t?(s.add(c).add(s.children(“a”)).css(“display”,“block”),l.removeClass(d+“ ”+d)):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c.css(“display”,“none”),l.removeClass(d)):(s.css(“display”,“none”),l.addClass(d)),l.addClass(d))),n.overflowed||n.overflowed?o.removeClass(d):o.addClass(d)},O=function(e){var t=e.type;switch(t){case“pointerdown”:case“MSPointerDown”:case“pointermove”:case“MSPointerMove”:case“pointerup”:case“MSPointerUp”:return e.target.ownerDocument!==document?:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case“touchstart”:case“touchmove”:case“touchend”:var o=e.originalEvent.touches||e.originalEvent.changedTouches,a=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return o.pageY,o.pageX,a>1];default:return}},I=function(){function t(e){var t=m.find(”iframe“);if(t.length){var o=e?”auto“:”none“;t.css(”pointer-events“,o)}}function o(e,t,o,a){if(m.idleTimer=u.scrollInertia<233?250:0,n.attr("id")===h)var i=”x“,r=(n.offsetLeft-t+a)*d.scrollRatio.x;else var i=”y“,r=(n.offsetTop-e+o)*d.scrollRatio.y;V(l,r.toString(),{dir:i,drag:!0})}var n,i,r,l=e(this),d=l.data(a),u=d.opt,f=a+”_“+d.idx,h=[”mCSB_“d.idx
”_dragger_vertical“,”mCSB_“d.idx
”_dragger_horizontal“],m=e(”#mCSB_“d.idx
”_container“),p=e(”#“h[0]
”,#“+h),g=u.advanced.releaseDraggableSelectors?p.add(e(u.advanced.releaseDraggableSelectors)):p;p.bind(”mousedown.“f
” touchstart.“f
” pointerdown.“f
” MSPointerDown.“+f,function(o){if(o.stopImmediatePropagation(),o.preventDefault(),Z(o)){c=!0,s&&(document.onselectstart=function(){return!1}),t(!1),N(l),n=e(this);var a=n.offset(),d=O(o)-a.top,f=O(o)-a.left,h=n.height()+a.top,m=n.width()+a.left;h>d&&d>0&&m>f&&f>0&&(i=d,r=f),C(n,”active“,u.autoExpandScrollbar)}}).bind(”touchmove.“+f,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=n.offset(),a=O(e)-t.top,l=O(e)-t.left;o(i,r,a,l)}),e(document).bind(”mousemove.“f
” pointermove.“f
” MSPointerMove.“+f,function(e){if(n){var t=n.offset(),a=O(e)-t.top,l=O(e)-t.left;if(i===a)return;o(i,r,a,l)}}).add(g).bind(”mouseup.“f
” touchend.“f
” pointerup.“f
” MSPointerUp.“+f,function(e){n&&(C(n,”active“,u.autoExpandScrollbar),n=null),c=!1,s&&(document.onselectstart=null),t(!0)})},R=function(){function o(e){if(!$(e)||c||O(e))return void(t=0);t=1,b=0,C=0,d=1,y.removeClass(”mCS_touch_action“);var o=I.offset();u=O(e)-o.top,f=O(e)-o.left,A=[O(e),O(e)]}function n(e){if($(e)&&!c&&!O(e)&&(e.stopImmediatePropagation(),(!C||b)&&d)){g=G();var t=M.offset(),o=O(e)-t.top,a=O(e)-t.left,n=”mcsLinearOut“;if(D.push(o),E.push(a),A=Math.abs(O(e)-A),A=Math.abs(O(e)-A),B.overflowed)var i=R.parent().height()-R.height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*A<A||”yx“===T.axis);if(B.overflowed)var l=R.parent().width()-R.width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*A<A||”yx“===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass(”mCS_touch_action“)),U&&e.preventDefault(),w=”yx“===T.axis?:”x“===T.axis?:[u-o,null],I.idleTimer=250,B.overflowed&&s(w,L,n,”y“,”all“,!0),B.overflowed&&s(w,L,n,”x“,z,!0)}}function i(e){if(!$(e)||c||O(e))return void(t=0);t=1,e.stopImmediatePropagation(),N(y),p=G();var o=M.offset();h=O(e)-o.top,m=O(e)-o.left,D=[],E=}function r(e){if($(e)&&!c&&!O(e)){d=0,e.stopImmediatePropagation(),b=0,C=0,v=G();var t=M.offset(),o=O(e)-t.top,a=O(e)-t.left;if(!(v-g>30)){_=1e3/(v-p);var n=”mcsEaseOut“,i=2.5>_,r=i?[D,E]:[0,0];x=i?[o-r,a-r]:[o-h,a-m];var u=[Math.abs(x),Math.abs(x)];_=i?[Math.abs(x/4),Math.abs(x/4)]:;var f=[Math.abs(I.offsetTop)-x*l(u/[0],[0]),Math.abs(I.offsetLeft)-x*l(u/[1],[1])];w=”yx“===T.axis?[f,f]:”x“===T.axis?[null,f]:[f,null],S=[4*u+T.scrollInertia,4*u+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w=u>y?w:0,w=u>y?w:0,B.overflowed&&s(w,S,n,”y“,z,!1),B.overflowed&&s(w,S,n,”x“,z,!1)}}}function l(e,t){var o=;return e>90?t>4?o:o:e>60?t>3?o:o:e>30?t>8?o:t>6?o:t>4?t:o:t>8?t:o}function s(e,t,o,a,n,i){e&&V(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+”_“+B.idx,M=e(”#mCSB_“+B.idx),I=e(”#mCSB_“B.idx
”_container“),R=[e(”#mCSB_“B.idx
”_dragger_vertical“),e(”#mCSB_“B.idx
”_dragger_horizontal“)],D=[],E=,L=0,z=”yx“===T.axis?”none“:”all“,A=[],P=I.find(”iframe“),H=[”touchstart.“k
” pointerdown.“k
” MSPointerDown.“+k,”touchmove.“k
” pointermove.“k
” MSPointerMove.“+k,”touchend.“k
” pointerup.“k
” MSPointerUp.“+k],U=void 0!==document.body.style.touchAction;I.bind(H,function(e){o(e)}).bind(H,function(e){n(e)}),M.bind(H,function(e){i(e)}).bind(H,function(e){r(e)}),P.length&&P.each(function(){e(this).load(function(){W(this)&&e(this.contentDocument||this.contentWindow.document).bind(H,function(e){o(e),i(e)}).bind(H,function(e){n(e)}).bind(H,function(e){r(e)})})})},D=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&”Control“!=document.selection.type?document.selection.createRange().text:0}function n(e,t,o){d.type=o&&i?”stepped“:”stepless“,d.scrollAmount=10,F(r,e,t,”mcsLinearOut“,o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+”_“+l.idx,f=e(”#mCSB_“l.idx
”_container“),h=f.parent();f.bind(”mousedown.“+u,function(e){t||i||(i=1,c=!0)}).add(document).bind(”mousemove.“+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)-a.top+f.offsetTop,c=O(e)-a.left+f.offsetLeft;r>0&&ru
” dragend.“+u,function(e){t||(i&&(i=0,n(”off“,null)),c=!1)})},E=function(){function t(t,a){if(N(o),!L(o,t.target)){var r=”auto“!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100;if(”x“===i.axis||”x“===i.mouseWheel.axis)var d=”x“,u=,f=”auto“!==i.mouseWheel.scrollAmount?u:u>=l.width()?.9*l.width():u,h=Math.abs(e(”#mCSB_“n.idx
”_container“).offsetLeft),m=c[0].offsetLeft,p=c.parent().width()-c.width(),g=t.deltaX||t.deltaY||a;else var d=”y“,u=,f=”auto“!==i.mouseWheel.scrollAmount?u:u>=l.height()?.9*l.height():u,h=Math.abs(e(”#mCSB_“n.idx
”_container“).offsetTop),m=c[0].offsetTop,p=c.parent().height()-c.height(),g=t.deltaY||a;”y“===d&&!n.overflowed||”x“===d&&!n.overflowed||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(g=-g),i.mouseWheel.normalizeDelta&&(g=0>g?-1:1),(g>0&&0!==m||0>g&&m!==p||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),V(o,(h-g*f).toString(),{dir:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+”_“+n.idx,l=e(”#mCSB_“+n.idx),c=[e(”#mCSB_“n.idx
”_dragger_vertical“),e(”#mCSB_“n.idx
”_dragger_horizontal“)],d=e(”#mCSB_“n.idx
”_container“).find(”iframe“);d.length&&d.each(function(){e(this).load(function(){W(this)&&e(this.contentDocument||this.contentWindow.document).bind(”mousewheel.“+r,function(e,o){t(e,o)})})}),l.bind(”mousewheel.“+r,function(e,o){t(e,o)})}},W=function(e){var t=null;try{var o=e.contentDocument||e.contentWindow.document;t=o.body.innerHTML}catch(a){}return null!==t},L=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=;return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(”:focus“))},z=function(){var t=e(this),o=t.data(a),n=a+”_“+o.idx,i=e(”#mCSB_“o.idx
”_container“),r=i.parent(),l=e(”.mCSB_“o.idx
”_scrollbar .“+d);l.bind(”touchstart.“n
” pointerdown.“n
” MSPointerDown.“+n,function(e){c=!0}).bind(”touchend.“n
” pointerup.“n
” MSPointerUp.“+n,function(e){c=!1}).bind(”click.“+n,function(a){if(e(a.target).hasClass(d)||e(a.target).hasClass(”mCSB_draggerRail“)){N(t);var n=e(this),l=n.find(”.mCSB_dragger“);if(n.parent(”.mCSB_scrollTools_horizontal“).length>0){if(!o.overflowed)return;var s=”x“,c=a.pageX>l.offset().left?-1:1,u=Math.abs(i.offsetLeft)-.9*c*r.width()}else{if(!o.overflowed)return;var s=”y“,c=a.pageY>l.offset().top?-1:1,u=Math.abs(i.offsetTop)-.9*c*r.height()}V(t,u.toString(),{dir:s,scrollEasing:”mcsEaseInOut“})}})},A=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+”_“+o.idx,r=e(”#mCSB_“o.idx
”_container“),l=r.parent();r.bind(”focusin.“+i,function(o){var a=e(document.activeElement),i=r.find(”.mCustomScrollBox“).length,s=0;a.is(n.advanced.autoScrollOnFocus)&&(N(t),clearTimeout(t._focusTimeout),t._focusTimer=i?(s+17)*i:0,t._focusTimeout=setTimeout(function(){var e=[te(a),te(a)],o=[r.offsetTop,r.offsetLeft],i=[o+e>=0&&o+e<l.height()-a.outerHeight(!1),o+e>=0&&o+e<l.width()-a.outerWidth(!1)],c=”yx“!==n.axis||i||i?”all“:”none“;”x“===n.axis||i||V(t,e.toString(),{dir:”y“,scrollEasing:”mcsEaseInOut“,overwrite:c,dur:s}),”y“===n.axis||i||V(t,e.toString(),{dir:”x“,scrollEasing:”mcsEaseInOut“,overwrite:c,dur:s})},t._focusTimer))})},P=function(){var t=e(this),o=t.data(a),n=a+”_“+o.idx,i=e(”#mCSB_“o.idx
”_container“).parent();i.bind(”scroll.“+n,function(t){(0!==i.scrollTop()||0!==i.scrollLeft())&&e(”.mCSB_“o.idx
”_scrollbar“).css(”visibility“,”hidden“)})},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+”_“+o.idx,l=”.mCSB_“o.idx
”_scrollbar“,s=e(l+”>a“);s.bind(”mousedown.“r
” touchstart.“r
” pointerdown.“r
” MSPointerDown.“r
” mouseup.“r
” touchend.“r
” pointerup.“r
” MSPointerUp.“r
” mouseout.“r
” pointerout.“r
” MSPointerOut.“r
” click.“+r,function(a){function r(e,o){i.scrollAmount=n.snapAmount||n.scrollButtons.scrollAmount,F(t,e,o)}if(a.preventDefault(),Z(a)){var l=e(this).attr(”class“);switch(i.type=n.scrollButtons.scrollType,a.type){case”mousedown“:case”touchstart“:case”pointerdown“:case”MSPointerDown“:if(”stepped“===i.type)return;c=!0,o.tweenRunning=!1,r(”on“,l);break;case”mouseup“:case”touchend“:case”pointerup“:case”MSPointerUp“:case”mouseout“:case”pointerout“:case”MSPointerOut“:if(”stepped“===i.type)return;c=!1,i.dir&&r(”off“,l);break;case”click“:if(”stepped“!==i.type||o.tweenRunning)return;r(”on“,l)}}})},U=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.snapAmount||i.keyboard.scrollAmount,”stepped“===r.type&&n.tweenRunning||F(o,e,t)}switch(t.type){case”blur“:n.tweenRunning&&r.dir&&a(”off“,null);break;case”keydown“:case”keyup“:var l=t.keyCode?t.keyCode:t.which,s=”on“;if(”x“!==i.axis&&(38===l||40===l)||”y“!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed||(37===l||39===l)&&!n.overflowed)return;”keyup“===t.type&&(s=”off“),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed||n.overflowed)&&(t.preventDefault(),t.stopImmediatePropagation()),”keyup“===t.type){N(o);var f=34===l?-1:1;if(”x“===i.axis||”yx“===i.axis&&n.overflowed&&!n.overflowed)var h=”x“,m=Math.abs(c.offsetLeft)-.9*f*d.width();else var h=”y“,m=Math.abs(c.offsetTop)-.9*f*d.height();V(o,m.toString(),{dir:h,scrollEasing:”mcsEaseInOut“})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed||n.overflowed)&&(t.preventDefault(),t.stopImmediatePropagation()),”keyup“===t.type)){if(”x“===i.axis||”yx“===i.axis&&n.overflowed&&!n.overflowed)var h=”x“,m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h=”y“,m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;V(o,m.toString(),{dir:h,scrollEasing:”mcsEaseInOut“})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+”_“+n.idx,s=e(”#mCSB_“+n.idx),c=e(”#mCSB_“n.idx
”_container“),d=c.parent(),u=”input,textarea,select,datalist,keygen,“,f=c.find(”iframe“),h=[”blur.“l
” keydown.“l
” keyup.“+l];f.length&&f.each(function(){e(this).load(function(){W(this)&&e(this.contentDocument||this.contentWindow.document).bind(h,function(e){t(e)})})}),s.attr(”tabindex“,”0“).bind(h,function(e){t(e)})},F=function(t,o,n,i,r){function l(e){var o=”stepped“!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h.offsetTop),Math.abs(h.u=“x”===f.dir?s+f.dir*d*n:s+f.dir*d*n,m=“x”===f.dir?s+f.dir*parseInt(f.scrollAmount):s+f.dir*parseInt(f.scrollAmount),v=“auto”!==f.scrollAmount?m:u,x=i?i:e?o?“mcsLinearOut”:“mcsEaseInOut”:“mcsLinear”,_=e?!0:!1;return e&&17>a&&(v=“x”===f.dir?s:s),V(t,v.toString(),{dir:f.dir,scrollEasing:x,dur:a,onComplete:_}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},a)))}function s(){clearTimeout(f.step),K(f,“step”),N(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e(“#mCSB_”c.idx
“_container”),m=“stepped”===f.type?!0:!1,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case“on”:if(f.dir=[n===d||n===d||39===n||37===n?“x”:“y”,n===d||n===d||38===n||37===n?-1:1],N(t),ee(n)&&“stepped”===f.type)return;l(m);break;case“off”:s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},q=function(t){var o=e(this).data(a).opt,n=[];return“function”==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t,t]:“x”===o.axis?[null,t]:[t,null]:(n=t.y?t.y:t.x||“x”===o.axis?null:t,n=t.x?t.x:t.y||“y”===o.axis?null:t),“function”==typeof n&&(n=n()),“function”==typeof n&&(n=n()),n},Y=function(t,o){if(null!=t&&“undefined”!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e(“#mCSB_”i.idx
“_container”),s=l.parent(),c=typeof t;o||(o=“x”===r.axis?“x”:“y”);var d=“x”===o?l.outerWidth(!1):l.outerHeight(!1),f=“x”===o?l.offsetLeft:l.offsetTop,h=“x”===o?“left”:“top”;switch©{case“function”:return t();case“object”:var m=t.jquery?t:e(t);if(!m.length)return;return“x”===o?te(m):te(m);case“string”:case“number”:if(ee(t))return Math.abs(t);if(-1!==t.indexOf(“%”))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf(“-=”))return Math.abs(f-parseInt(t.split(“-=”)));if(-1!==t.indexOf(“+=”)){var p=f+parseInt(t.split(“+=”));return p>=0?0:Math.abs(p)}if(-1!==t.indexOf(“px”)&&ee(t.split(“px”)))return Math.abs(t.split(“px”));if(“top”===t||“left”===t)return 0;if(“bottom”===t)return Math.abs(s.height()-l.outerHeight(!1));if(“right”===t)return Math.abs(s.width()-l.outerWidth(!1));if(“first”===t||“last”===t){var m=l.find(“:”+t);return“x”===o?te(m):te(m)}return e(t).length?“x”===o?te(e(t)):te(e(t)):(l.css(h,t),void u.update.call(null,n))}}},j=function(t){function o(){return clearTimeout(f.autoUpdate),0===l.parents(“html”).length?void(l=null):void(f.autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l.scrollHeight+l.scrollWidth+f.offsetHeight+l.offsetHeight,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||“auto”===c.advanced.updateOnImageLoad&&“y”===c.axis||(s.poll.img.n=f.find(“img”).length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find(“img”).each(function(){n(this)}))},c.advanced.autoUpdateTimeout))}function n(t){function o(e,t){return function(){return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addClass(d),r(2)}if(e(t).hasClass(d))return void r();var n=new Image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange=“*”);var e=0,t=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(f.autoUpdate),u.update.call(null,l,e)}var l=e(this),s=l.data(a),c=s.opt,f=e(“#mCSB_”s.idx
“_container”);return t?(clearTimeout(f.autoUpdate),void K(f,“autoUpdate”)):void o()},X=function(e,t,o){return Math.round(e/t)*t-o},N=function(t){var o=t.data(a),n=e(“#mCSB_”o.idx
“_container,#mCSB_”o.idx
“_container_wrapper,#mCSB_”o.idx
“_dragger_vertical,#mCSB_”o.idx
“_dragger_horizontal”);n.each(function(){J.call(this)})},V=function(t,o,n){function i(e){return s&&c.callbacks&&“function”==typeof c.callbacks}function r(){return[c.callbacks.alwaysTriggerOffsets||_>=w+b,c.callbacks.alwaysTriggerOffsets||-y>=_]}function l(){var e=[h.offsetTop,h.offsetLeft],o=[v.offsetTop,v.offsetLeft],a=,i=;t.mcs={content:h, top:e,left:e,draggerTop:o,draggerLeft:o,topPct:Math.round(100*Math.abs(e)/(Math.abs(a)-i)),leftPct:Math.round(100*Math.abs(e)/(Math.abs(a)-i)),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:“internal”,dir:“y”,scrollEasing:“mcsEaseOut”,drag:!1,dur:c.scrollInertia,overwrite:“all”,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=,f=e(“#mCSB_”+s.idx),h=e(“#mCSB_”s.idx
“_container”),m=h.parent(),p=c.callbacks.onTotalScrollOffset?q.call(t,c.callbacks.onTotalScrollOffset):,g=c.callbacks.onTotalScrollBackOffset?q.call(t,c.callbacks.onTotalScrollBackOffset):;if(s.trigger=n.trigger,(0!==m.scrollTop()||0!==m.scrollLeft())&&(e(“.mCSB_”s.idx
“_scrollbar”).css(“visibility”,“visible”),m.scrollTop(0).scrollLeft(0)),“_resetY”!==o||s.contentReset.y||(i(“onOverflowYNone”)&&c.callbacks.onOverflowYNone.call(t),s.contentReset.y=1),“_resetX”!==o||s.contentReset.x||(i(“onOverflowXNone”)&&c.callbacks.onOverflowXNone.call(t),s.contentReset.x=1),“_resetY”!==o&&“_resetX”!==o){switch(!s.contentReset.y&&t.mcs||!s.overflowed||(i(“onOverflowY”)&&c.callbacks.onOverflowY.call(t),s.contentReset.x=null),!s.contentReset.x&&t.mcs||!s.overflowed||(i(“onOverflowX”)&&c.callbacks.onOverflowX.call(t),s.contentReset.x=null),c.snapAmount&&(o=X(o,c.snapAmount,c.snapOffset)),n.dir){case“x”:var v=e(“#mCSB_”s.idx
“_dragger_horizontal”),x=“left”,_=h.offsetLeft,w=,S=,b=p,y=g,B=b>0?b/s.scrollRatio.x:0,T=y>0?y/s.scrollRatio.x:0;break;case“y”:var v=e(“#mCSB_”s.idx
“_dragger_vertical”),x=“top”,_=h.offsetTop,w=,S=,b=p,y=g,B=b>0?b/s.scrollRatio.y:0,T=y>0?y/s.scrollRatio.y:0}S<0||0===S&&0===S?S=:S>=w?S=[w,w]:S=-S,t.mcs||(l(),i(“onInit”)&&c.callbacks.onInit.call(t)),clearTimeout(h.onCompleteTimeout),(s.tweenRunning||!(0===_&&S>=0||_===w&&S<=w))&&(Q(v,x,Math.round(S),u,n.scrollEasing),Q(h,x,Math.round(S),u,n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i(“onScrollStart”)&&(l(),c.callbacks.onScrollStart.call(t)),s.tweenRunning=!0,C(v),s.cbOffsets=r())},onUpdate:function(){n.callbacks&&n.onUpdate&&i(“whileScrolling”)&&(l(),c.callbacks.whileScrolling.call(t))},onComplete:function(){if(n.callbacks&&n.onComplete){“yx”===c.axis&&clearTimeout(h.onCompleteTimeout);var e=h.idleTimer||0;h.onCompleteTimeout=setTimeout(function(){i(“onScroll”)&&(l(),c.callbacks.onScroll.call(t)),i(“onTotalScroll”)&&S>=w-B&&s.cbOffsets&&(l(),c.callbacks.onTotalScroll.call(t)),i(“onTotalScrollBack”)&&S<=T&&s.cbOffsets&&(l(),c.callbacks.onTotalScrollBack.call(t)),s.tweenRunning=!1,h.idleTimer=0,C(v,“hide”)},e)}}}))}},Q=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=G()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call())}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w=Math.round(S.currVal)+“px”):w=o+“px”,p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,a,n){switch(n){case“linear”:case“mcsLinear”:return o*e/a+t;case“mcsLinearOut”:return e/=a,e–,o*Math.sqrt(1-e*e)+t;case“easeInOutSmooth”:return e/=a/2,1>e?o/2*e*e+t:(e–,-o/2*(e*(e-2)-1)+t);case“easeInOutStrong”:return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e–,o/2*(-Math.pow(2,-10*e)+2)+t);case“easeInOut”:case“mcsEaseInOut”:return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case“easeOutSmooth”:return e/=a,e–,-o*(e*e*e*e-1)+t;case“easeOutStrong”:return o*(-Math.pow(2,-10*e/a)+1)+t;case“easeOut”:case“mcsEaseOut”:default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=G(),x=0,_=e.offsetTop,w=e.style,S=e._mTween;“left”===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,“none”!==i&&d(),c()},G=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date
).getTime()},J=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=,o=0;o<t.length;o++){var a=t;e._mTween.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween.id):clearTimeout(e._mTween.id),e._mTween.id=null,e._mTween.stop=1)}},K=function(e,t){try{delete e}catch(o){e=null}},Z=function(e){return!(e.which&&1!==e.which)},$=function(e){var t=e.originalEvent.pointerType;return!(t&&“touch”!==t&&2!==t)},ee=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},te=function(e){var t=e.parents(“.mCSB_container”);return};e.fn=function(t){return u?u.apply(this,Array.prototype.slice.call(arguments,1)):“object”!=typeof t&&t?void e.error(“Method ”t
“ does not exist”):u.init.apply(this,arguments)},e=function(t){return u?u.apply(this,Array.prototype.slice.call(arguments,1)):“object”!=typeof t&&t?void e.error(“Method ”t
“ does not exist”):u.init.apply(this,arguments)},e.defaults=i,window=!0,e(window).load(function(){e(n)(),e.extend(e.expr,{mcsInView:e.expr.mcsInView||function(t){var o,a,n=e(t),i=n.parents(“.mCSB_container”);if(i.length)return o=i.parent(),a=[i.offsetTop,i.offsetLeft],a+te(n)>=0&&a+te(n)<o.height()-n.outerHeight(!1)&&a+te(n)>=0&&a+te(n)<o.width()-n.outerWidth(!1)},mcsOverflow:e.expr.mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed||o.overflowed}})})})});