| Server IP : 119.59.104.26 / Your IP : 216.73.216.209 Web Server : Apache/2 System : Linux ns69.hostinglotus.net 4.18.0-553.141.2.el8_10.x86_64 #1 SMP Wed Jul 8 10:28:18 EDT 2026 x86_64 User : com12370 ( 1517) PHP Version : 7.2.34 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/com12370/public_html/wp-content/themes/MIXThemes/assets/js/ |
Upload File : |
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(t){function e(e){var a=e||window.event,r=l.call(arguments,1),d=0,u=0,h=0,p=0,f=0,m=0;if(e=t.event.fix(a),e.type="mousewheel","detail"in a&&(h=-1*a.detail),"wheelDelta"in a&&(h=a.wheelDelta),"wheelDeltaY"in a&&(h=a.wheelDeltaY),"wheelDeltaX"in a&&(u=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(u=-1*h,h=0),d=0===h?u:h,"deltaY"in a&&(h=-1*a.deltaY,d=h),"deltaX"in a&&(u=a.deltaX,0===h&&(d=-1*u)),0!==h||0!==u){if(1===a.deltaMode){var g=t.data(this,"mousewheel-line-height");d*=g,h*=g,u*=g}else if(2===a.deltaMode){var v=t.data(this,"mousewheel-page-height");d*=v,h*=v,u*=v}if(p=Math.max(Math.abs(h),Math.abs(u)),(!s||s>p)&&(s=p,o(a,p)&&(s/=40)),o(a,p)&&(d/=40,u/=40,h/=40),d=Math[d>=1?"floor":"ceil"](d/s),u=Math[u>=1?"floor":"ceil"](u/s),h=Math[h>=1?"floor":"ceil"](h/s),c.settings.normalizeOffset&&this.getBoundingClientRect){var w=this.getBoundingClientRect();f=e.clientX-w.left,m=e.clientY-w.top}return e.deltaX=u,e.deltaY=h,e.deltaFactor=s,e.offsetX=f,e.offsetY=m,e.deltaMode=0,r.unshift(e,d,u,h),n&&clearTimeout(n),n=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,r)}}function i(){s=null}function o(t,e){return c.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120===0}var n,s,a=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var d=a.length;d;)t.event.fixHooks[a[--d]]=t.event.mouseHooks;var c=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=r.length;i;)this.addEventListener(r[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",c.getLineHeight(this)),t.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=r.length;i;)this.removeEventListener(r[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),o=i["offsetParent"in t.fn?"offsetParent":"parent"]();return o.length||(o=t("body")),parseInt(o.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}),!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(t){function e(e){var a=e||window.event,r=l.call(arguments,1),d=0,u=0,h=0,p=0,f=0,m=0;if(e=t.event.fix(a),e.type="mousewheel","detail"in a&&(h=-1*a.detail),"wheelDelta"in a&&(h=a.wheelDelta),"wheelDeltaY"in a&&(h=a.wheelDeltaY),"wheelDeltaX"in a&&(u=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(u=-1*h,h=0),d=0===h?u:h,"deltaY"in a&&(h=-1*a.deltaY,d=h),"deltaX"in a&&(u=a.deltaX,0===h&&(d=-1*u)),0!==h||0!==u){if(1===a.deltaMode){var g=t.data(this,"mousewheel-line-height");d*=g,h*=g,u*=g}else if(2===a.deltaMode){var v=t.data(this,"mousewheel-page-height");d*=v,h*=v,u*=v}if(p=Math.max(Math.abs(h),Math.abs(u)),(!s||s>p)&&(s=p,o(a,p)&&(s/=40)),o(a,p)&&(d/=40,u/=40,h/=40),d=Math[d>=1?"floor":"ceil"](d/s),u=Math[u>=1?"floor":"ceil"](u/s),h=Math[h>=1?"floor":"ceil"](h/s),c.settings.normalizeOffset&&this.getBoundingClientRect){var w=this.getBoundingClientRect();f=e.clientX-w.left,m=e.clientY-w.top}return e.deltaX=u,e.deltaY=h,e.deltaFactor=s,e.offsetX=f,e.offsetY=m,e.deltaMode=0,r.unshift(e,d,u,h),n&&clearTimeout(n),n=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,r)}}function i(){s=null}function o(t,e){return c.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120===0}var n,s,a=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var d=a.length;d;)t.event.fixHooks[a[--d]]=t.event.mouseHooks;var c=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=r.length;i;)this.addEventListener(r[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",c.getLineHeight(this)),t.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=r.length;i;)this.removeEventListener(r[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),o=i["offsetParent"in t.fn?"offsetParent":"parent"]();return o.length||(o=t("body")),parseInt(o.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}),!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t:t(jQuery,window,document)}(function(t){!function(e){var i="function"==typeof define&&define.amd,o="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",s="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";i||(o?require("jquery-mousewheel")(t):t.event.special.mousewheel||t("head").append(decodeURI("%3Cscript src="+n+"//"+s+"%3E%3C/script%3E"))),e()}(function(){var e,i="mCustomScrollbar",o="mCS",n=".mCustomScrollbar",s={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,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},a=0,r={},l=window.attachEvent&&!window.addEventListener?1:0,d=!1,c=["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"],u={init:function(e){var e=t.extend(!0,{},s,e),i=h.call(this);if(e.live){var l=e.liveSelector||this.selector||n,d=t(l);if("off"===e.live)return void f(l);r[l]=setTimeout(function(){d.mCustomScrollbar(e),"once"===e.live&&d.length&&f(l)},500)}else f(l);return e.setWidth=e.set_width?e.set_width:e.setWidth,e.setHeight=e.set_height?e.set_height:e.setHeight,e.axis=e.horizontalScroll?"x":m(e.axis),e.scrollInertia=e.scrollInertia>0&&e.scrollInertia<17?17:e.scrollInertia,"object"!=typeof e.mouseWheel&&1==e.mouseWheel&&(e.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),e.mouseWheel.scrollAmount=e.mouseWheelPixels?e.mouseWheelPixels:e.mouseWheel.scrollAmount,e.mouseWheel.normalizeDelta=e.advanced.normalizeMouseWheelDelta?e.advanced.normalizeMouseWheelDelta:e.mouseWheel.normalizeDelta,e.scrollButtons.scrollType=g(e.scrollButtons.scrollType),p(e),t(i).each(function(){var i=t(this);if(!i.data(o)){i.data(o,{idx:++a,opt:e,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:i.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=i.data(o),s=n.opt,r=i.data("mcs-axis"),l=i.data("mcs-scrollbar-position"),d=i.data("mcs-theme");r&&(s.axis=r),l&&(s.scrollbarPosition=l),d&&(s.theme=d,p(s)),v.call(this),n&&s.callbacks.onCreate&&"function"==typeof s.callbacks.onCreate&&s.callbacks.onCreate.call(this),t("#mCSB_"+n.idx+"_container img:not(."+c[2]+")").addClass(c[2]),u.update.call(null,i)}})},update:function(e,i){var n=e||h.call(this);return t(n).each(function(){var e=t(this);if(e.data(o)){var n=e.data(o),s=n.opt,a=t("#mCSB_"+n.idx+"_container"),r=t("#mCSB_"+n.idx),l=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")];if(!a.length)return;n.tweenRunning&&F(e),i&&n&&s.callbacks.onBeforeUpdate&&"function"==typeof s.callbacks.onBeforeUpdate&&s.callbacks.onBeforeUpdate.call(this),e.hasClass(c[3])&&e.removeClass(c[3]),e.hasClass(c[4])&&e.removeClass(c[4]),r.css("max-height","none"),r.height()!==e.height()&&r.css("max-height",e.height()),y.call(this),"y"===s.axis||s.advanced.autoExpandHorizontalScroll||a.css("width",w(a)),n.overflowed=k.call(this),j.call(this),s.autoDraggerLength&&S.call(this),x.call(this),T.call(this);var d=[Math.abs(a[0].offsetTop),Math.abs(a[0].offsetLeft)];"x"!==s.axis&&(n.overflowed[0]?l[0].height()>l[0].parent().height()?_.call(this):(V(e,d[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(_.call(this),"y"===s.axis?$.call(this):"yx"===s.axis&&n.overflowed[1]&&V(e,d[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==s.axis&&(n.overflowed[1]?l[1].width()>l[1].parent().width()?_.call(this):(V(e,d[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(_.call(this),"x"===s.axis?$.call(this):"yx"===s.axis&&n.overflowed[0]&&V(e,d[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),i&&n&&(2===i&&s.callbacks.onImageLoad&&"function"==typeof s.callbacks.onImageLoad?s.callbacks.onImageLoad.call(this):3===i&&s.callbacks.onSelectorChange&&"function"==typeof s.callbacks.onSelectorChange?s.callbacks.onSelectorChange.call(this):s.callbacks.onUpdate&&"function"==typeof s.callbacks.onUpdate&&s.callbacks.onUpdate.call(this)),Y.call(this)}})},scrollTo:function(e,i){if("undefined"!=typeof e&&null!=e){var n=h.call(this);return t(n).each(function(){var n=t(this);if(n.data(o)){var s=n.data(o),a=s.opt,r={trigger:"external",scrollInertia:a.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=t.extend(!0,{},r,i),d=q.call(this,e),c=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;d[0]=U.call(this,d[0],"y"),d[1]=U.call(this,d[1],"x"),l.moveDragger&&(d[0]*=s.scrollRatio.y,d[1]*=s.scrollRatio.x),l.dur=nt()?0:c,setTimeout(function(){null!==d[0]&&"undefined"!=typeof d[0]&&"x"!==a.axis&&s.overflowed[0]&&(l.dir="y",l.overwrite="all",V(n,d[0].toString(),l)),null!==d[1]&&"undefined"!=typeof d[1]&&"y"!==a.axis&&s.overflowed[1]&&(l.dir="x",l.overwrite="none",V(n,d[1].toString(),l))},l.timeout)}})}},stop:function(){var e=h.call(this);return t(e).each(function(){var e=t(this);e.data(o)&&F(e)})},disable:function(e){var i=h.call(this);return t(i).each(function(){var i=t(this);i.data(o)&&(i.data(o),Y.call(this,"remove"),$.call(this),e&&_.call(this),j.call(this,!0),i.addClass(c[3]))})},destroy:function(){var e=h.call(this);return t(e).each(function(){var n=t(this);if(n.data(o)){var s=n.data(o),a=s.opt,r=t("#mCSB_"+s.idx),l=t("#mCSB_"+s.idx+"_container"),d=t(".mCSB_"+s.idx+"_scrollbar");a.live&&f(a.liveSelector||t(e).selector),Y.call(this,"remove"),$.call(this),_.call(this),n.removeData(o),Z(this,"mcs"),d.remove(),l.find("img."+c[2]).removeClass(c[2]),r.replaceWith(l.contents()),n.removeClass(i+" _"+o+"_"+s.idx+" "+c[6]+" "+c[7]+" "+c[5]+" "+c[3]).addClass(c[4])}})}},h=function(){return"object"!=typeof t(this)||t(this).length<1?n:this},p=function(e){var i=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],o=["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"],n=["minimal","minimal-dark"],s=["minimal","minimal-dark"],a=["minimal","minimal-dark"];e.autoDraggerLength=t.inArray(e.theme,i)>-1?!1:e.autoDraggerLength,e.autoExpandScrollbar=t.inArray(e.theme,o)>-1?!1:e.autoExpandScrollbar,e.scrollButtons.enable=t.inArray(e.theme,n)>-1?!1:e.scrollButtons.enable,e.autoHideScrollbar=t.inArray(e.theme,s)>-1?!0:e.autoHideScrollbar,e.scrollbarPosition=t.inArray(e.theme,a)>-1?"outside":e.scrollbarPosition},f=function(t){r[t]&&(clearTimeout(r[t]),Z(r,t))},m=function(t){return"yx"===t||"xy"===t||"auto"===t?"yx":"x"===t||"horizontal"===t?"x":"y"},g=function(t){return"stepped"===t||"pixels"===t||"step"===t||"click"===t?"stepped":"stepless"},v=function(){var e=t(this),n=e.data(o),s=n.opt,a=s.autoExpandScrollbar?" "+c[1]+"_expand":"",r=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+s.theme+" mCSB_scrollTools_vertical"+a+"'><div class='"+c[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><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-"+s.theme+" mCSB_scrollTools_horizontal"+a+"'><div class='"+c[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===s.axis?"mCSB_vertical_horizontal":"x"===s.axis?"mCSB_horizontal":"mCSB_vertical",d="yx"===s.axis?r[0]+r[1]:"x"===s.axis?r[1]:r[0],u="yx"===s.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",h=s.autoHideScrollbar?" "+c[6]:"",p="x"!==s.axis&&"rtl"===n.langDir?" "+c[7]:"";s.setWidth&&e.css("width",s.setWidth),s.setHeight&&e.css("height",s.setHeight),s.setLeft="y"!==s.axis&&"rtl"===n.langDir?"989999px":s.setLeft,e.addClass(i+" _"+o+"_"+n.idx+h+p).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+s.theme+" "+l+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+s.setTop+"; left:"+s.setLeft+";' dir='"+n.langDir+"' /></div>");var f=t("#mCSB_"+n.idx),m=t("#mCSB_"+n.idx+"_container");"y"===s.axis||s.advanced.autoExpandHorizontalScroll||m.css("width",w(m)),"outside"===s.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),f.addClass("mCSB_outside").after(d)):(f.addClass("mCSB_inside").append(d),m.wrap(u)),b.call(this);var g=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},w=function(e){var i=[e[0].scrollWidth,Math.max.apply(Math,e.children().map(function(){return t(this).outerWidth(!0)}).get())],o=e.parent().width();return i[0]>o?i[0]:i[1]>o?i[1]:"100%"},y=function(){var e=t(this),i=e.data(o),n=i.opt,s=t("#mCSB_"+i.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){s.css({width:"auto","min-width":0,"overflow-x":"scroll"});var a=Math.ceil(s[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&a>s.parent().width()?s.css({width:a,"min-width":"100%","overflow-x":"inherit"}):s.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(s[0].getBoundingClientRect().right+.4)-Math.floor(s[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},b=function(){var e=t(this),i=e.data(o),n=i.opt,s=t(".mCSB_"+i.idx+"_scrollbar:first"),a=it(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+c[13]+"' "+a+" />","<a href='#' class='"+c[14]+"' "+a+" />","<a href='#' class='"+c[15]+"' "+a+" />","<a href='#' class='"+c[16]+"' "+a+" />"],l=["x"===n.axis?r[2]:r[0],"x"===n.axis?r[3]:r[1],r[2],r[3]];n.scrollButtons.enable&&s.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},S=function(){var e=t(this),i=e.data(o),n=t("#mCSB_"+i.idx),s=t("#mCSB_"+i.idx+"_container"),a=[t("#mCSB_"+i.idx+"_dragger_vertical"),t("#mCSB_"+i.idx+"_dragger_horizontal")],r=[n.height()/s.outerHeight(!1),n.width()/s.outerWidth(!1)],d=[parseInt(a[0].css("min-height")),Math.round(r[0]*a[0].parent().height()),parseInt(a[1].css("min-width")),Math.round(r[1]*a[1].parent().width())],c=l&&d[1]<d[0]?d[0]:d[1],u=l&&d[3]<d[2]?d[2]:d[3];a[0].css({height:c,"max-height":a[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":d[0]+"px"}),a[1].css({width:u,"max-width":a[1].parent().width()-10})},x=function(){var e=t(this),i=e.data(o),n=t("#mCSB_"+i.idx),s=t("#mCSB_"+i.idx+"_container"),a=[t("#mCSB_"+i.idx+"_dragger_vertical"),t("#mCSB_"+i.idx+"_dragger_horizontal")],r=[s.outerHeight(!1)-n.height(),s.outerWidth(!1)-n.width()],l=[r[0]/(a[0].parent().height()-a[0].height()),r[1]/(a[1].parent().width()-a[1].width())];i.scrollRatio={y:l[0],x:l[1]}},C=function(t,e,i){var o=i?c[0]+"_expanded":"",n=t.closest(".mCSB_scrollTools");"active"===e?(t.toggleClass(c[0]+" "+o),n.toggleClass(c[1]),t[0]._draggable=t[0]._draggable?0:1):t[0]._draggable||("hide"===e?(t.removeClass(c[0]),n.removeClass(c[1])):(t.addClass(c[0]),n.addClass(c[1])))},k=function(){var e=t(this),i=e.data(o),n=t("#mCSB_"+i.idx),s=t("#mCSB_"+i.idx+"_container"),a=null==i.overflowed?s.height():s.outerHeight(!1),r=null==i.overflowed?s.width():s.outerWidth(!1),l=s[0].scrollHeight,d=s[0].scrollWidth;return l>a&&(a=l),d>r&&(r=d),[a>n.height(),r>n.width()]},_=function(){var e=t(this),i=e.data(o),n=i.opt,s=t("#mCSB_"+i.idx),a=t("#mCSB_"+i.idx+"_container"),r=[t("#mCSB_"+i.idx+"_dragger_vertical"),t("#mCSB_"+i.idx+"_dragger_horizontal")];if(F(e),("x"!==n.axis&&!i.overflowed[0]||"y"===n.axis&&i.overflowed[0])&&(r[0].add(a).css("top",0),V(e,"_resetY")),"y"!==n.axis&&!i.overflowed[1]||"x"===n.axis&&i.overflowed[1]){var l=dx=0;"rtl"===i.langDir&&(l=s.width()-a.outerWidth(!1),dx=Math.abs(l/i.scrollRatio.x)),a.css("left",l),r[1].css("left",dx),V(e,"_resetX")}},T=function(){function e(){a=setTimeout(function(){t.event.special.mousewheel?(clearTimeout(a),B.call(i[0])):e()},100)}var i=t(this),n=i.data(o),s=n.opt;if(!n.bindEvents){if(M.call(this),s.contentTouchScroll&&I.call(this),A.call(this),s.mouseWheel.enable){var a;e()}z.call(this),R.call(this),s.advanced.autoScrollOnFocus&&L.call(this),s.scrollButtons.enable&&P.call(this),s.keyboard.enable&&N.call(this),n.bindEvents=!0}},$=function(){var e=t(this),i=e.data(o),n=i.opt,s=o+"_"+i.idx,a=".mCSB_"+i.idx+"_scrollbar",r=t("#mCSB_"+i.idx+",#mCSB_"+i.idx+"_container,#mCSB_"+i.idx+"_container_wrapper,"+a+" ."+c[12]+",#mCSB_"+i.idx+"_dragger_vertical,#mCSB_"+i.idx+"_dragger_horizontal,"+a+">a"),l=t("#mCSB_"+i.idx+"_container");n.advanced.releaseDraggableSelectors&&r.add(t(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&r.add(t(n.advanced.extraDraggableSelectors)),i.bindEvents&&(t(document).add(t(!D()||top.document)).unbind("."+s),r.each(function(){t(this).unbind("."+s)}),clearTimeout(e[0]._focusTimeout),Z(e[0],"_focusTimeout"),clearTimeout(i.sequential.step),Z(i.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),Z(l[0],"onCompleteTimeout"),i.bindEvents=!1)},j=function(e){var i=t(this),n=i.data(o),s=n.opt,a=t("#mCSB_"+n.idx+"_container_wrapper"),r=a.length?a:t("#mCSB_"+n.idx+"_container"),l=[t("#mCSB_"+n.idx+"_scrollbar_vertical"),t("#mCSB_"+n.idx+"_scrollbar_horizontal")],d=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==s.axis&&(n.overflowed[0]&&!e?(l[0].add(d[0]).add(l[0].children("a")).css("display","block"),r.removeClass(c[8]+" "+c[10])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&d[0].css("display","none"),r.removeClass(c[10])):(l[0].css("display","none"),r.addClass(c[10])),r.addClass(c[8]))),"y"!==s.axis&&(n.overflowed[1]&&!e?(l[1].add(d[1]).add(l[1].children("a")).css("display","block"),r.removeClass(c[9]+" "+c[11])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&d[1].css("display","none"),r.removeClass(c[11])):(l[1].css("display","none"),r.addClass(c[11])),r.addClass(c[9]))),n.overflowed[0]||n.overflowed[1]?i.removeClass(c[5]):i.addClass(c[5])},O=function(e){var i=e.type,o=e.target.ownerDocument!==document&&null!==frameElement?[t(frameElement).offset().top,t(frameElement).offset().left]:null,n=D()&&e.target.ownerDocument!==top.document&&null!==frameElement?[t(e.view.frameElement).offset().top,t(e.view.frameElement).offset().left]:[0,0];switch(i){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return o?[e.originalEvent.pageY-o[0]+n[0],e.originalEvent.pageX-o[1]+n[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var s=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[s.screenY,s.screenX,a>1]:[s.pageY,s.pageX,a>1];default:return o?[e.pageY-o[0]+n[0],e.pageX-o[1]+n[1],!1]:[e.pageY,e.pageX,!1]}},M=function(){function e(t,e,o,n){if(p[0].idleTimer=c.scrollInertia<233?250:0,i.attr("id")===h[1])var s="x",l=(i[0].offsetLeft-e+n)*r.scrollRatio.x;else var s="y",l=(i[0].offsetTop-t+o)*r.scrollRatio.y;V(a,l.toString(),{dir:s,drag:!0})}var i,n,s,a=t(this),r=a.data(o),c=r.opt,u=o+"_"+r.idx,h=["mCSB_"+r.idx+"_dragger_vertical","mCSB_"+r.idx+"_dragger_horizontal"],p=t("#mCSB_"+r.idx+"_container"),f=t("#"+h[0]+",#"+h[1]),m=c.advanced.releaseDraggableSelectors?f.add(t(c.advanced.releaseDraggableSelectors)):f,g=c.advanced.extraDraggableSelectors?t(!D()||top.document).add(t(c.advanced.extraDraggableSelectors)):t(!D()||top.document);f.bind("contextmenu."+u,function(t){t.preventDefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(e){if(e.stopImmediatePropagation(),e.preventDefault(),tt(e)){d=!0,l&&(document.onselectstart=function(){return!1}),Q.call(p,!1),F(a),i=t(this);var o=i.offset(),r=O(e)[0]-o.top,u=O(e)[1]-o.left,h=i.height()+o.top,f=i.width()+o.left;h>r&&r>0&&f>u&&u>0&&(n=r,s=u),C(i,"active",c.autoExpandScrollbar)}}).bind("touchmove."+u,function(t){t.stopImmediatePropagation(),t.preventDefault();var o=i.offset(),a=O(t)[0]-o.top,r=O(t)[1]-o.left;e(n,s,a,r)}),t(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(t){if(i){var o=i.offset(),a=O(t)[0]-o.top,r=O(t)[1]-o.left;if(n===a&&s===r)return;e(n,s,a,r)}}).add(m).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){i&&(C(i,"active",c.autoExpandScrollbar),i=null),d=!1,l&&(document.onselectstart=null),Q.call(p,!0)})},I=function(){function i(t){if(!et(t)||d||O(t)[2])return void(e=0);e=1,x=0,C=0,c=1,k.removeClass("mCS_touch_action");var i=M.offset();u=O(t)[0]-i.top,h=O(t)[1]-i.left,H=[O(t)[0],O(t)[1]]}function n(t){if(et(t)&&!d&&!O(t)[2]&&(T.documentTouchScroll||t.preventDefault(),t.stopImmediatePropagation(),(!C||x)&&c)){g=K();var e=j.offset(),i=O(t)[0]-e.top,o=O(t)[1]-e.left,n="mcsLinearOut";if(A.push(i),B.push(o),H[2]=Math.abs(O(t)[0]-H[0]),H[3]=Math.abs(O(t)[1]-H[1]),_.overflowed[0])var s=I[0].parent().height()-I[0].height(),a=u-i>0&&i-u>-(s*_.scrollRatio.y)&&(2*H[3]<H[2]||"yx"===T.axis);if(_.overflowed[1])var r=I[1].parent().width()-I[1].width(),p=h-o>0&&o-h>-(r*_.scrollRatio.x)&&(2*H[2]<H[3]||"yx"===T.axis);a||p?(R||t.preventDefault(),x=1):(C=1,k.addClass("mCS_touch_action")),R&&t.preventDefault(),b="yx"===T.axis?[u-i,h-o]:"x"===T.axis?[null,h-o]:[u-i,null],M[0].idleTimer=250,_.overflowed[0]&&l(b[0],E,n,"y","all",!0),_.overflowed[1]&&l(b[1],E,n,"x",Q,!0)}}function s(t){if(!et(t)||d||O(t)[2])return void(e=0);e=1,t.stopImmediatePropagation(),F(k),m=K();var i=j.offset();p=O(t)[0]-i.top,f=O(t)[1]-i.left,A=[],B=[]}function a(t){if(et(t)&&!d&&!O(t)[2]){c=0,t.stopImmediatePropagation(),x=0,C=0,v=K();var e=j.offset(),i=O(t)[0]-e.top,o=O(t)[1]-e.left;if(!(v-g>30)){y=1e3/(v-m);var n="mcsEaseOut",s=2.5>y,a=s?[A[A.length-2],B[B.length-2]]:[0,0];w=s?[i-a[0],o-a[1]]:[i-p,o-f];var u=[Math.abs(w[0]),Math.abs(w[1])];y=s?[Math.abs(w[0]/4),Math.abs(w[1]/4)]:[y,y];var h=[Math.abs(M[0].offsetTop)-w[0]*r(u[0]/y[0],y[0]),Math.abs(M[0].offsetLeft)-w[1]*r(u[1]/y[1],y[1])];b="yx"===T.axis?[h[0],h[1]]:"x"===T.axis?[null,h[1]]:[h[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var k=parseInt(T.contentTouchScroll)||0;b[0]=u[0]>k?b[0]:0,b[1]=u[1]>k?b[1]:0,_.overflowed[0]&&l(b[0],S[0],n,"y",Q,!1),_.overflowed[1]&&l(b[1],S[1],n,"x",Q,!1)}}}function r(t,e){var i=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?i[0]:i[3]:t>60?e>3?i[3]:i[2]:t>30?e>8?i[1]:e>6?i[0]:e>4?e:i[2]:e>8?e:i[3]}function l(t,e,i,o,n,s){t&&V(k,t.toString(),{dur:e,scrollEasing:i,dir:o,overwrite:n,drag:s})}var c,u,h,p,f,m,g,v,w,y,b,S,x,C,k=t(this),_=k.data(o),T=_.opt,$=o+"_"+_.idx,j=t("#mCSB_"+_.idx),M=t("#mCSB_"+_.idx+"_container"),I=[t("#mCSB_"+_.idx+"_dragger_vertical"),t("#mCSB_"+_.idx+"_dragger_horizontal")],A=[],B=[],E=0,Q="yx"===T.axis?"none":"all",H=[],z=M.find("iframe"),L=["touchstart."+$+" pointerdown."+$+" MSPointerDown."+$,"touchmove."+$+" pointermove."+$+" MSPointerMove."+$,"touchend."+$+" pointerup."+$+" MSPointerUp."+$],R=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;M.bind(L[0],function(t){i(t)}).bind(L[1],function(t){n(t)}),j.bind(L[0],function(t){s(t)}).bind(L[2],function(t){a(t)}),z.length&&z.each(function(){t(this).bind("load",function(){D(this)&&t(this.contentDocument||this.contentWindow.document).bind(L[0],function(t){i(t),s(t)}).bind(L[1],function(t){n(t)}).bind(L[2],function(t){a(t)})})})},A=function(){function i(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(t,e,i){c.type=i&&s?"stepped":"stepless",c.scrollAmount=10,W(a,t,e,"mcsLinearOut",i?60:null)}var s,a=t(this),r=a.data(o),l=r.opt,c=r.sequential,u=o+"_"+r.idx,h=t("#mCSB_"+r.idx+"_container"),p=h.parent();h.bind("mousedown."+u,function(){e||s||(s=1,d=!0)}).add(document).bind("mousemove."+u,function(t){if(!e&&s&&i()){var o=h.offset(),a=O(t)[0]-o.top+h[0].offsetTop,d=O(t)[1]-o.left+h[0].offsetLeft;a>0&&a<p.height()&&d>0&&d<p.width()?c.step&&n("off",null,"stepped"):("x"!==l.axis&&r.overflowed[0]&&(0>a?n("on",38):a>p.height()&&n("on",40)),"y"!==l.axis&&r.overflowed[1]&&(0>d?n("on",37):d>p.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){e||(s&&(s=0,n("off",null)),d=!1)})},B=function(){function e(e,o){if(F(i),!H(i,e.target)){var a="auto"!==s.mouseWheel.deltaFactor?parseInt(s.mouseWheel.deltaFactor):l&&e.deltaFactor<100?100:e.deltaFactor||100,c=s.scrollInertia;if("x"===s.axis||"x"===s.mouseWheel.axis)var u="x",h=[Math.round(a*n.scrollRatio.x),parseInt(s.mouseWheel.scrollAmount)],p="auto"!==s.mouseWheel.scrollAmount?h[1]:h[0]>=r.width()?.9*r.width():h[0],f=Math.abs(t("#mCSB_"+n.idx+"_container")[0].offsetLeft),m=d[1][0].offsetLeft,g=d[1].parent().width()-d[1].width(),v="y"===s.mouseWheel.axis?e.deltaY||o:e.deltaX;else var u="y",h=[Math.round(a*n.scrollRatio.y),parseInt(s.mouseWheel.scrollAmount)],p="auto"!==s.mouseWheel.scrollAmount?h[1]:h[0]>=r.height()?.9*r.height():h[0],f=Math.abs(t("#mCSB_"+n.idx+"_container")[0].offsetTop),m=d[0][0].offsetTop,g=d[0].parent().height()-d[0].height(),v=e.deltaY||o;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((s.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(v=-v),s.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==m||0>v&&m!==g||s.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!s.mouseWheel.normalizeDelta&&(p=e.deltaFactor,c=17),V(i,(f-v*p).toString(),{dir:u,dur:c}))}}if(t(this).data(o)){var i=t(this),n=i.data(o),s=n.opt,a=o+"_"+n.idx,r=t("#mCSB_"+n.idx),d=[t("#mCSB_"+n.idx+"_dragger_vertical"),t("#mCSB_"+n.idx+"_dragger_horizontal")],c=t("#mCSB_"+n.idx+"_container").find("iframe");c.length&&c.each(function(){t(this).bind("load",function(){D(this)&&t(this.contentDocument||this.contentWindow.document).bind("mousewheel."+a,function(t,i){e(t,i)})})}),r.bind("mousewheel."+a,function(t,i){e(t,i)})}},E=new Object,D=function(e){var i=!1,o=!1,n=null;if(void 0===e?o="#empty":void 0!==t(e).attr("id")&&(o=t(e).attr("id")),o!==!1&&void 0!==E[o])return E[o];if(e){try{var s=e.contentDocument||e.contentWindow.document;n=s.body.innerHTML}catch(a){}i=null!==n}else{try{var s=top.document;n=s.body.innerHTML}catch(a){}i=null!==n}return o!==!1&&(E[o]=i),i},Q=function(t){var e=this.find("iframe");if(e.length){var i=t?"auto":"none";e.css("pointer-events",i)}},H=function(e,i){var n=i.nodeName.toLowerCase(),s=e.data(o).opt.mouseWheel.disableOver,a=["select","textarea"];return t.inArray(n,s)>-1&&!(t.inArray(n,a)>-1&&!t(i).is(":focus"))},z=function(){var e,i=t(this),n=i.data(o),s=o+"_"+n.idx,a=t("#mCSB_"+n.idx+"_container"),r=a.parent(),l=t(".mCSB_"+n.idx+"_scrollbar ."+c[12]);l.bind("mousedown."+s+" touchstart."+s+" pointerdown."+s+" MSPointerDown."+s,function(i){d=!0,t(i.target).hasClass("mCSB_dragger")||(e=1)}).bind("touchend."+s+" pointerup."+s+" MSPointerUp."+s,function(){d=!1}).bind("click."+s,function(o){if(e&&(e=0,t(o.target).hasClass(c[12])||t(o.target).hasClass("mCSB_draggerRail"))){F(i);var s=t(this),l=s.find(".mCSB_dragger");if(s.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var d="x",u=o.pageX>l.offset().left?-1:1,h=Math.abs(a[0].offsetLeft)-u*(.9*r.width())}else{if(!n.overflowed[0])return;var d="y",u=o.pageY>l.offset().top?-1:1,h=Math.abs(a[0].offsetTop)-u*(.9*r.height())}V(i,h.toString(),{dir:d,scrollEasing:"mcsEaseInOut"})}})},L=function(){var e=t(this),i=e.data(o),n=i.opt,s=o+"_"+i.idx,a=t("#mCSB_"+i.idx+"_container"),r=a.parent();a.bind("focusin."+s,function(){var i=t(document.activeElement),o=a.find(".mCustomScrollBox").length,s=0;i.is(n.advanced.autoScrollOnFocus)&&(F(e),clearTimeout(e[0]._focusTimeout),e[0]._focusTimer=o?(s+17)*o:0,e[0]._focusTimeout=setTimeout(function(){var t=[ot(i)[0],ot(i)[1]],o=[a[0].offsetTop,a[0].offsetLeft],l=[o[0]+t[0]>=0&&o[0]+t[0]<r.height()-i.outerHeight(!1),o[1]+t[1]>=0&&o[0]+t[1]<r.width()-i.outerWidth(!1)],d="yx"!==n.axis||l[0]||l[1]?"all":"none";"x"===n.axis||l[0]||V(e,t[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:d,dur:s}),"y"===n.axis||l[1]||V(e,t[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:d,dur:s})},e[0]._focusTimer))})},R=function(){var e=t(this),i=e.data(o),n=o+"_"+i.idx,s=t("#mCSB_"+i.idx+"_container").parent();s.bind("scroll."+n,function(){0===s.scrollTop()&&0===s.scrollLeft()||t(".mCSB_"+i.idx+"_scrollbar").css("visibility","hidden")})},P=function(){var e=t(this),i=e.data(o),n=i.opt,s=i.sequential,a=o+"_"+i.idx,r=".mCSB_"+i.idx+"_scrollbar",l=t(r+">a");l.bind("contextmenu."+a,function(t){t.preventDefault()}).bind("mousedown."+a+" touchstart."+a+" pointerdown."+a+" MSPointerDown."+a+" mouseup."+a+" touchend."+a+" pointerup."+a+" MSPointerUp."+a+" mouseout."+a+" pointerout."+a+" MSPointerOut."+a+" click."+a,function(o){function a(t,i){s.scrollAmount=n.scrollButtons.scrollAmount,W(e,t,i)}if(o.preventDefault(),tt(o)){var r=t(this).attr("class");switch(s.type=n.scrollButtons.scrollType,o.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===s.type)return;d=!0,i.tweenRunning=!1,a("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===s.type)return;d=!1,s.dir&&a("off",r);break;case"click":if("stepped"!==s.type||i.tweenRunning)return;a("on",r)}}})},N=function(){function e(e){function o(t,e){a.type=s.keyboard.scrollType,a.scrollAmount=s.keyboard.scrollAmount,"stepped"===a.type&&n.tweenRunning||W(i,t,e)}switch(e.type){case"blur":n.tweenRunning&&a.dir&&o("off",null);
break;case"keydown":case"keyup":var r=e.keyCode?e.keyCode:e.which,l="on";if("x"!==s.axis&&(38===r||40===r)||"y"!==s.axis&&(37===r||39===r)){if((38===r||40===r)&&!n.overflowed[0]||(37===r||39===r)&&!n.overflowed[1])return;"keyup"===e.type&&(l="off"),t(document.activeElement).is(u)||(e.preventDefault(),e.stopImmediatePropagation(),o(l,r))}else if(33===r||34===r){if((n.overflowed[0]||n.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){F(i);var h=34===r?-1:1;if("x"===s.axis||"yx"===s.axis&&n.overflowed[1]&&!n.overflowed[0])var p="x",f=Math.abs(d[0].offsetLeft)-h*(.9*c.width());else var p="y",f=Math.abs(d[0].offsetTop)-h*(.9*c.height());V(i,f.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}else if((35===r||36===r)&&!t(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===s.axis||"yx"===s.axis&&n.overflowed[1]&&!n.overflowed[0])var p="x",f=35===r?Math.abs(c.width()-d.outerWidth(!1)):0;else var p="y",f=35===r?Math.abs(c.height()-d.outerHeight(!1)):0;V(i,f.toString(),{dir:p,scrollEasing:"mcsEaseInOut"})}}}var i=t(this),n=i.data(o),s=n.opt,a=n.sequential,r=o+"_"+n.idx,l=t("#mCSB_"+n.idx),d=t("#mCSB_"+n.idx+"_container"),c=d.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",h=d.find("iframe"),p=["blur."+r+" keydown."+r+" keyup."+r];h.length&&h.each(function(){t(this).bind("load",function(){D(this)&&t(this.contentDocument||this.contentWindow.document).bind(p[0],function(t){e(t)})})}),l.attr("tabindex","0").bind(p[0],function(t){e(t)})},W=function(e,i,n,s,a){function r(t){u.snapAmount&&(h.scrollAmount=u.snapAmount instanceof Array?"x"===h.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var i="stepped"!==h.type,o=a?a:t?i?m/1.5:g:1e3/60,n=t?i?7.5:40:2.5,l=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],c=[d.scrollRatio.y>10?10:d.scrollRatio.y,d.scrollRatio.x>10?10:d.scrollRatio.x],f="x"===h.dir[0]?l[1]+h.dir[1]*(c[1]*n):l[0]+h.dir[1]*(c[0]*n),v="x"===h.dir[0]?l[1]+h.dir[1]*parseInt(h.scrollAmount):l[0]+h.dir[1]*parseInt(h.scrollAmount),w="auto"!==h.scrollAmount?v:f,y=s?s:t?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",b=!!t;return t&&17>o&&(w="x"===h.dir[0]?l[1]:l[0]),V(e,w.toString(),{dir:h.dir[0],scrollEasing:y,dur:o,onComplete:b}),t?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){r()},o)))}function l(){clearTimeout(h.step),Z(h,"step"),F(e)}var d=e.data(o),u=d.opt,h=d.sequential,p=t("#mCSB_"+d.idx+"_container"),f="stepped"===h.type,m=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(i){case"on":if(h.dir=[n===c[16]||n===c[15]||39===n||37===n?"x":"y",n===c[13]||n===c[15]||38===n||37===n?-1:1],F(e),it(n)&&"stepped"===h.type)return;r(f);break;case"off":l(),(f||d.tweenRunning&&h.dir)&&r(!0)}},q=function(e){var i=t(this).data(o).opt,n=[];return"function"==typeof e&&(e=e()),e instanceof Array?n=e.length>1?[e[0],e[1]]:"x"===i.axis?[null,e[0]]:[e[0],null]:(n[0]=e.y?e.y:e.x||"x"===i.axis?null:e,n[1]=e.x?e.x:e.y||"y"===i.axis?null:e),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},U=function(e,i){if(null!=e&&"undefined"!=typeof e){var n=t(this),s=n.data(o),a=s.opt,r=t("#mCSB_"+s.idx+"_container"),l=r.parent(),d=typeof e;i||(i="x"===a.axis?"x":"y");var c="x"===i?r.outerWidth(!1)-l.width():r.outerHeight(!1)-l.height(),h="x"===i?r[0].offsetLeft:r[0].offsetTop,p="x"===i?"left":"top";switch(d){case"function":return e();case"object":var f=e.jquery?e:t(e);if(!f.length)return;return"x"===i?ot(f)[1]:ot(f)[0];case"string":case"number":if(it(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(c*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(h-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var m=h+parseInt(e.split("+=")[1]);return m>=0?0:Math.abs(m)}if(-1!==e.indexOf("px")&&it(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(l.height()-r.outerHeight(!1));if("right"===e)return Math.abs(l.width()-r.outerWidth(!1));if("first"===e||"last"===e){var f=r.find(":"+e);return"x"===i?ot(f)[1]:ot(f)[0]}return t(e).length?"x"===i?ot(t(e))[1]:ot(t(e))[0]:(r.css(p,e),void u.update.call(null,n[0]))}}},Y=function(e){function i(){return clearTimeout(h[0].autoUpdate),0===r.parents("html").length?void(r=null):void(h[0].autoUpdate=setTimeout(function(){return d.advanced.updateOnSelectorChange&&(l.poll.change.n=s(),l.poll.change.n!==l.poll.change.o)?(l.poll.change.o=l.poll.change.n,void a(3)):d.advanced.updateOnContentResize&&(l.poll.size.n=r[0].scrollHeight+r[0].scrollWidth+h[0].offsetHeight+r[0].offsetHeight+r[0].offsetWidth,l.poll.size.n!==l.poll.size.o)?(l.poll.size.o=l.poll.size.n,void a(1)):!d.advanced.updateOnImageLoad||"auto"===d.advanced.updateOnImageLoad&&"y"===d.axis||(l.poll.img.n=h.find("img").length,l.poll.img.n===l.poll.img.o)?void((d.advanced.updateOnSelectorChange||d.advanced.updateOnContentResize||d.advanced.updateOnImageLoad)&&i()):(l.poll.img.o=l.poll.img.n,void h.find("img").each(function(){n(this)}))},d.advanced.autoUpdateTimeout))}function n(e){function i(t,e){return function(){return e.apply(t,arguments)}}function o(){this.onload=null,t(e).addClass(c[2]),a(2)}if(t(e).hasClass(c[2]))return void a();var n=new Image;n.onload=i(n,o),n.src=e.src}function s(){d.advanced.updateOnSelectorChange===!0&&(d.advanced.updateOnSelectorChange="*");var t=0,e=h.find(d.advanced.updateOnSelectorChange);return d.advanced.updateOnSelectorChange&&e.length>0&&e.each(function(){t+=this.offsetHeight+this.offsetWidth}),t}function a(t){clearTimeout(h[0].autoUpdate),u.update.call(null,r[0],t)}var r=t(this),l=r.data(o),d=l.opt,h=t("#mCSB_"+l.idx+"_container");return e?(clearTimeout(h[0].autoUpdate),void Z(h[0],"autoUpdate")):void i()},X=function(t,e,i){return Math.round(t/e)*e-i},F=function(e){var i=e.data(o),n=t("#mCSB_"+i.idx+"_container,#mCSB_"+i.idx+"_container_wrapper,#mCSB_"+i.idx+"_dragger_vertical,#mCSB_"+i.idx+"_dragger_horizontal");n.each(function(){G.call(this)})},V=function(e,i,n){function s(t){return l&&d.callbacks[t]&&"function"==typeof d.callbacks[t]}function a(){return[d.callbacks.alwaysTriggerOffsets||b>=S[0]+k,d.callbacks.alwaysTriggerOffsets||-_>=b]}function r(){var t=[p[0].offsetTop,p[0].offsetLeft],i=[w[0].offsetTop,w[0].offsetLeft],o=[p.outerHeight(!1),p.outerWidth(!1)],s=[h.height(),h.width()];e[0].mcs={content:p,top:t[0],left:t[1],draggerTop:i[0],draggerLeft:i[1],topPct:Math.round(100*Math.abs(t[0])/(Math.abs(o[0])-s[0])),leftPct:Math.round(100*Math.abs(t[1])/(Math.abs(o[1])-s[1])),direction:n.dir}}var l=e.data(o),d=l.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:d.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=t.extend(c,n),u=[n.dur,n.drag?0:n.dur],h=t("#mCSB_"+l.idx),p=t("#mCSB_"+l.idx+"_container"),f=p.parent(),m=d.callbacks.onTotalScrollOffset?q.call(e,d.callbacks.onTotalScrollOffset):[0,0],g=d.callbacks.onTotalScrollBackOffset?q.call(e,d.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=n.trigger,0===f.scrollTop()&&0===f.scrollLeft()||(t(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),f.scrollTop(0).scrollLeft(0)),"_resetY"!==i||l.contentReset.y||(s("onOverflowYNone")&&d.callbacks.onOverflowYNone.call(e[0]),l.contentReset.y=1),"_resetX"!==i||l.contentReset.x||(s("onOverflowXNone")&&d.callbacks.onOverflowXNone.call(e[0]),l.contentReset.x=1),"_resetY"!==i&&"_resetX"!==i){if(!l.contentReset.y&&e[0].mcs||!l.overflowed[0]||(s("onOverflowY")&&d.callbacks.onOverflowY.call(e[0]),l.contentReset.x=null),!l.contentReset.x&&e[0].mcs||!l.overflowed[1]||(s("onOverflowX")&&d.callbacks.onOverflowX.call(e[0]),l.contentReset.x=null),d.snapAmount){var v=d.snapAmount instanceof Array?"x"===n.dir?d.snapAmount[1]:d.snapAmount[0]:d.snapAmount;i=X(i,v,d.snapOffset)}switch(n.dir){case"x":var w=t("#mCSB_"+l.idx+"_dragger_horizontal"),y="left",b=p[0].offsetLeft,S=[h.width()-p.outerWidth(!1),w.parent().width()-w.width()],x=[i,0===i?0:i/l.scrollRatio.x],k=m[1],_=g[1],T=k>0?k/l.scrollRatio.x:0,$=_>0?_/l.scrollRatio.x:0;break;case"y":var w=t("#mCSB_"+l.idx+"_dragger_vertical"),y="top",b=p[0].offsetTop,S=[h.height()-p.outerHeight(!1),w.parent().height()-w.height()],x=[i,0===i?0:i/l.scrollRatio.y],k=m[0],_=g[0],T=k>0?k/l.scrollRatio.y:0,$=_>0?_/l.scrollRatio.y:0}x[1]<0||0===x[0]&&0===x[1]?x=[0,0]:x[1]>=S[1]?x=[S[0],S[1]]:x[0]=-x[0],e[0].mcs||(r(),s("onInit")&&d.callbacks.onInit.call(e[0])),clearTimeout(p[0].onCompleteTimeout),J(w[0],y,Math.round(x[1]),u[1],n.scrollEasing),!l.tweenRunning&&(0===b&&x[0]>=0||b===S[0]&&x[0]<=S[0])||J(p[0],y,Math.round(x[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!l.tweenRunning&&(s("onScrollStart")&&(r(),d.callbacks.onScrollStart.call(e[0])),l.tweenRunning=!0,C(w),l.cbOffsets=a())},onUpdate:function(){n.callbacks&&n.onUpdate&&s("whileScrolling")&&(r(),d.callbacks.whileScrolling.call(e[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===d.axis&&clearTimeout(p[0].onCompleteTimeout);var t=p[0].idleTimer||0;p[0].onCompleteTimeout=setTimeout(function(){s("onScroll")&&(r(),d.callbacks.onScroll.call(e[0])),s("onTotalScroll")&&x[1]>=S[1]-T&&l.cbOffsets[0]&&(r(),d.callbacks.onTotalScroll.call(e[0])),s("onTotalScrollBack")&&x[1]<=$&&l.cbOffsets[1]&&(r(),d.callbacks.onTotalScrollBack.call(e[0])),l.tweenRunning=!1,p[0].idleTimer=0,C(w,"hide")},t)}}})}},J=function(t,e,i,o,n,s,a){function r(){S.stop||(w||f.call(),w=K()-v,l(),w>=S.time&&(S.time=w>S.time?w+h-(w-S.time):w+h-1,S.time<w+1&&(S.time=w+1)),S.time<o?S.id=p(r):g.call())}function l(){o>0?(S.currVal=u(S.time,y,x,o,n),b[e]=Math.round(S.currVal)+"px"):b[e]=i+"px",m.call()}function d(){h=1e3/60,S.time=w+h,p=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return l(),setTimeout(t,.01)},S.id=p(r)}function c(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(t,e,i,o,n){switch(n){case"linear":case"mcsLinear":return i*t/o+e;case"mcsLinearOut":return t/=o,t--,i*Math.sqrt(1-t*t)+e;case"easeInOutSmooth":return t/=o/2,1>t?i/2*t*t+e:(t--,-i/2*(t*(t-2)-1)+e);case"easeInOutStrong":return t/=o/2,1>t?i/2*Math.pow(2,10*(t-1))+e:(t--,i/2*(-Math.pow(2,-10*t)+2)+e);case"easeInOut":case"mcsEaseInOut":return t/=o/2,1>t?i/2*t*t*t+e:(t-=2,i/2*(t*t*t+2)+e);case"easeOutSmooth":return t/=o,t--,-i*(t*t*t*t-1)+e;case"easeOutStrong":return i*(-Math.pow(2,-10*t/o)+1)+e;case"easeOut":case"mcsEaseOut":default:var s=(t/=o)*t,a=s*t;return e+i*(.499999999999997*a*s+-2.5*s*s+5.5*a+-6.5*s+4*t)}}t._mTween||(t._mTween={top:{},left:{}});var h,p,a=a||{},f=a.onStart||function(){},m=a.onUpdate||function(){},g=a.onComplete||function(){},v=K(),w=0,y=t.offsetTop,b=t.style,S=t._mTween[e];"left"===e&&(y=t.offsetLeft);var x=i-y;S.stop=0,"none"!==s&&c(),d()},K=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()},G=function(){var t=this;t._mTween||(t._mTween={top:{},left:{}});for(var e=["top","left"],i=0;i<e.length;i++){var o=e[i];t._mTween[o].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(t._mTween[o].id):clearTimeout(t._mTween[o].id),t._mTween[o].id=null,t._mTween[o].stop=1)}},Z=function(t,e){try{delete t[e]}catch(i){t[e]=null}},tt=function(t){return!(t.which&&1!==t.which)},et=function(t){var e=t.originalEvent.pointerType;return!(e&&"touch"!==e&&2!==e)},it=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ot=function(t){var e=t.parents(".mCSB_container");return[t.offset().top-e.offset().top,t.offset().left-e.offset().left]},nt=function(){function t(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)if(t[e]+"Hidden"in document)return t[e]+"Hidden";return null}var e=t();return e?document[e]:!1};t.fn[i]=function(e){return u[e]?u[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist"):u.init.apply(this,arguments)},t[i]=function(e){return u[e]?u[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist"):u.init.apply(this,arguments)},t[i].defaults=s,window[i]=!0,t(window).bind("load",function(){t(n)[i](),t.extend(t.expr[":"],{mcsInView:t.expr[":"].mcsInView||function(e){var i,o,n=t(e),s=n.parents(".mCSB_container");return s.length?(i=s.parent(),o=[s[0].offsetTop,s[0].offsetLeft],o[0]+ot(n)[0]>=0&&o[0]+ot(n)[0]<i.height()-n.outerHeight(!1)&&o[1]+ot(n)[1]>=0&&o[1]+ot(n)[1]<i.width()-n.outerWidth(!1)):void 0},mcsInSight:t.expr[":"].mcsInSight||function(e,i,o){var n,s,a,r,l=t(e),d=l.parents(".mCSB_container"),c="exact"===o[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];return d.length?(n=[l.outerHeight(!1),l.outerWidth(!1)],a=[d[0].offsetTop+ot(l)[0],d[0].offsetLeft+ot(l)[1]],s=[d.parent()[0].offsetHeight,d.parent()[0].offsetWidth],r=[n[0]<s[0]?c[0]:c[1],n[1]<s[1]?c[0]:c[1]],a[0]-s[0]*r[0][0]<0&&a[0]+n[0]-s[0]*r[0][1]>=0&&a[1]-s[1]*r[1][0]<0&&a[1]+n[1]-s[1]*r[1][1]>=0):void 0},mcsOverflow:t.expr[":"].mcsOverflow||function(e){var i=t(e).data(o);return i?i.overflowed[0]||i.overflowed[1]:void 0}})})})}),!function(t,e){function i(t,e){return typeof t===e}function o(){var t,e,o,n,s,a,r;for(var c in d)if(d.hasOwnProperty(c)){if(t=[],e=d[c],e.name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(o=0;o<e.options.aliases.length;o++)t.push(e.options.aliases[o].toLowerCase());for(n=i(e.fn,"function")?e.fn():e.fn,s=0;s<t.length;s++)a=t[s],r=a.split("."),1===r.length?u[r[0]]=n:(!u[r[0]]||u[r[0]]instanceof Boolean||(u[r[0]]=new Boolean(u[r[0]])),u[r[0]][r[1]]=n),l.push((n?"":"no-")+r.join("-"))}}function n(t){var e=p.className,i=u._config.classPrefix||"";if(f&&(e=e.baseVal),u._config.enableJSClass){var o=new RegExp("(^|s)"+i+"no-js(s|$)");e=e.replace(o,"$1"+i+"js$2")}u._config.enableClasses&&(e+=" "+i+t.join(" "+i),f?p.className.baseVal=e:p.className=e)}function s(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):f?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function a(){var t=e.body;return t||(t=s(f?"svg":"body"),t.fake=!0),t}function r(t,i,o,n){var r,l,d,c,u="modernizr",h=s("div"),f=a();if(parseInt(o,10))for(;o--;)d=s("div"),d.id=n?n[o]:u+(o+1),h.appendChild(d);return r=s("style"),r.type="text/css",r.id="s"+u,(f.fake?f:h).appendChild(r),f.appendChild(h),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(e.createTextNode(t)),h.id=u,f.fake&&(f.style.background="",f.style.overflow="hidden",c=p.style.overflow,p.style.overflow="hidden",p.appendChild(f)),l=i(h,t),f.fake?(f.parentNode.removeChild(f),p.style.overflow=c,p.offsetHeight):h.parentNode.removeChild(h),!!l}var l=[],d=[],c={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout(function(){e(i[t])},0)},addTest:function(t,e,i){d.push({name:t,fn:e,options:i})},addAsyncTest:function(t){d.push({name:null,fn:t})}},u=function(){};u.prototype=c,u=new u;var h=c._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];c._prefixes=h;var p=e.documentElement,f="svg"===p.nodeName.toLowerCase();c.testStyles=r,o(),n(l),delete c.addTest,delete c.addAsyncTest;for(var m=0;m<u._q.length;m++)u._qm;t.Modernizr=u}(window,document),!function(t){t.fn.theiaStickySidebar=function(e){function i(e,i){return!0===e.initialized||!(t("body").width()<e.minWidth)&&(function(e,i){e.initialized=!0,i.each(function(){function i(){n.fixedScrollTop=0,n.sidebar.removeClass("is-fixed").css({"min-height":"1px"}),n.stickySidebar.css({position:"static",width:"",transform:"none"})}var n={};n.sidebar=t(this),n.options=e||{},n.container=t(n.options.containerSelector),0==n.container.length&&(n.container=n.sidebar.parent()),n.sidebar.css({position:n.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),n.stickySidebar=n.sidebar.find(".theiaStickySidebar"),n.marginBottom=parseInt(n.sidebar.css("margin-bottom")),n.paddingTop=parseInt(n.sidebar.css("padding-top")),n.paddingBottom=parseInt(n.sidebar.css("padding-bottom"));var s=n.stickySidebar.offset().top,a=n.stickySidebar.outerHeight();n.stickySidebar.css("padding-top",1),n.stickySidebar.css("padding-bottom",1),s-=n.stickySidebar.offset().top,a=n.stickySidebar.outerHeight()-a-s,0==s?(n.stickySidebar.css("padding-top",0),n.stickySidebarPaddingTop=0):n.stickySidebarPaddingTop=1,0==a?(n.stickySidebar.css("padding-bottom",0),n.stickySidebarPaddingBottom=0):n.stickySidebarPaddingBottom=1,n.previousScrollTop=null,n.fixedScrollTop=0,i(),n.onScroll=function(n){if(n.stickySidebar.is(":visible"))if(t("body").width()<n.options.minWidth)i();else{if(n.options.disableOnResponsiveLayouts){var s=n.sidebar.outerWidth("none"==n.sidebar.css("float"));if(s+50>n.container.width())return void i()}var a,r,l=t(document).scrollTop(),d="static";if(l>=n.sidebar.offset().top+(n.paddingTop-n.options.additionalMarginTop)){var c,u=n.paddingTop+e.additionalMarginTop,h=n.paddingBottom+n.marginBottom+e.additionalMarginBottom,p=n.sidebar.offset().top,f=n.sidebar.offset().top+(a=n.container,r=a.height(),a.children().each(function(){r=Math.max(r,t(this).height())}),r),m=0+e.additionalMarginTop,g=n.stickySidebar.outerHeight()+u+h<t(window).height();c=g?m+n.stickySidebar.outerHeight():t(window).height()-n.marginBottom-n.paddingBottom-e.additionalMarginBottom;var v=p-l+n.paddingTop,w=f-l-n.paddingBottom-n.marginBottom,y=n.stickySidebar.offset().top-l,b=n.previousScrollTop-l;"fixed"==n.stickySidebar.css("position")&&"modern"==n.options.sidebarBehavior&&(y+=b),"stick-to-top"==n.options.sidebarBehavior&&(y=e.additionalMarginTop),"stick-to-bottom"==n.options.sidebarBehavior&&(y=c-n.stickySidebar.outerHeight()),y=b>0?Math.min(y,m):Math.max(y,c-n.stickySidebar.outerHeight()),y=Math.max(y,v),y=Math.min(y,w-n.stickySidebar.outerHeight());var S=n.container.height()==n.stickySidebar.outerHeight();d=!S&&y==m||!S&&y==c-n.stickySidebar.outerHeight()?"fixed":l+y-n.sidebar.offset().top-n.paddingTop<=e.additionalMarginTop?"static":"absolute"}if("fixed"==d){var x=t(document).scrollLeft();n.stickySidebar.css({position:"fixed",width:o(n.stickySidebar)+"px",transform:"translateY("+y+"px)",left:n.sidebar.offset().left+parseInt(n.sidebar.css("padding-left"))-x+"px",top:"0px"})}else if("absolute"==d){var C={};"absolute"!=n.stickySidebar.css("position")&&(C.position="absolute",C.transform="translateY("+(l+y-n.sidebar.offset().top-n.stickySidebarPaddingTop-n.stickySidebarPaddingBottom)+"px)",C.top="0px"),C.width=o(n.stickySidebar)+"px",C.left="",n.stickySidebar.css(C)}else"static"==d&&i();"static"!=d&&(1==n.options.updateSidebarHeight&&n.sidebar.addClass("is-fixed").css({"min-height":n.stickySidebar.outerHeight()+n.stickySidebar.offset().top-n.sidebar.offset().top+n.paddingBottom}),tie_animate_element(n.sidebar)),n.previousScrollTop=l}},n.onScroll(n),t(document).on("scroll."+n.options.namespace,function(t){return function(){t.onScroll(t)}}(n)),t(window).on("resize."+n.options.namespace,function(t){return function(){t.stickySidebar.css({position:"static"}),t.onScroll(t)}}(n)),"undefined"!=typeof ResizeSensor&&new ResizeSensor(n.stickySidebar[0],function(t){return function(){t.onScroll(t)}}(n))})}(e,i),!0)}function o(t){var e;try{e=t[0].getBoundingClientRect().width}catch(t){}return void 0===e&&(e=t.width()),e}return(e=t.extend({containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,disableOnResponsiveLayouts:!0,sidebarBehavior:"modern",defaultPosition:"relative",namespace:"TSS"},e)).additionalMarginTop=parseInt(e.additionalMarginTop)||0,e.additionalMarginBottom=parseInt(e.additionalMarginBottom)||0,function(e,o){i(e,o)||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),t(document).on("scroll."+e.namespace,function(e,o){return function(n){var s=i(e,o);s&&t(this).unbind(n)}}(e,o)),t(window).on("resize."+e.namespace,function(e,o){return function(n){var s=i(e,o);s&&t(this).unbind(n)}}(e,o)))}(e,this),this}}(jQuery),!function(t){t&&(t.fn.tiesticky=function(e){return this.each(function(){var i=t(this),o=i.data("tiesticky"),n="object"==typeof e&&e;n=t.extend(!0,{},TieSticky.options,n),o||((o=new TieSticky(this,n)).init(),i.data("tiesticky",o)),"string"==typeof e&&(o[e](),"destroy"===e&&i.removeData("tiesticky"))})},t("[data-tiesticky]").each(function(){var e=t(this);e.tiesticky(e.data())}))}(window.jQuery),function(t,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.TieSticky=e()}(this,function(){"use strict";function t(t){this.callback=t,this.ticking=!1}function e(t,i){var o;i=function n(t){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var e,i,o,s=t||{};for(i=1;i<arguments.length;i++){var a=arguments[i]||{};for(e in a)"object"!=typeof s[e]||(o=s[e])&&"undefined"!=typeof window&&(o===window||o.nodeType)?s[e]=s[e]||a[e]:s[e]=n(s[e],a[e])}return s}(i,e.options),this.lastKnownScrollY=0,this.elem=t,this.tolerance=(o=i.tolerance)===Object(o)?o:{down:o,up:o},this.classes=i.classes,this.behaviorMode=i.behaviorMode,this.scroller=i.scroller,this.initialised=!1,this.onPin=i.onPin,this.onUnpin=i.onUnpin,this.onTop=i.onTop,this.onNotTop=i.onNotTop,this.onBottom=i.onBottom,this.onNotBottom=i.onNotBottom,this.offset=i.offset,this.windwidth=i.windwidth,this.offset="default"!=this.behaviorMode?this.offset+this.elem.offsetHeight:this.offset,this.offset=$body.hasClass("admin-bar")?this.offset-i.adminBarH:this.offset,this.offset=$body.hasClass("border-layout")?this.offset-25:this.offset,this.offset=$body.hasClass("border-layout")&&this.windwidth<992?this.offset+25:this.offset,this.menuHeight=i.menuHeight,this.isHightestThanSticky=i.isHightestThanSticky,this.heightDiff=i.heightDiff}var i={bind:!!function(){}.bind,classList:"classList"in document.documentElement,rAF:!!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame)};return window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,t.prototype={constructor:t,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},e.prototype={constructor:e,init:function(){return e.cutsTheMustard?("default"==this.behaviorMode&&this.elem.classList.add("default-behavior-mode"),this.debouncer=new t(this.update.bind(this)),this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this):void 0},destroy:function(){var t=this.classes;this.initialised=!0,this.elem.classList.remove(t.unpinned,t.pinned,t.top,t.notTop,t.initial,"fixed-nav"),this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var t=this.elem.classList,e=this.classes;!t.contains(e.pinned)&&t.contains(e.unpinned)||(t.add(e.unpinned),t.remove(e.pinned),this.onUnpin&&this.onUnpin.call(this))},pin:function(){var t=this.elem.classList,e=this.classes;t.contains(e.unpinned)&&(t.remove(e.unpinned),t.add(e.pinned),this.onPin&&this.onPin.call(this))},top:function(){var t=this.elem.classList,e=this.classes;t.contains(e.top)||(t.add(e.top),t.remove(e.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var t=this.elem.classList,e=this.classes;t.contains(e.notTop)||(t.add(e.notTop),t.remove(e.top),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){var t=this.elem.classList,e=this.classes;t.contains(e.bottom)||(t.add(e.bottom),t.remove(e.notBottom),this.onBottom&&this.onBottom.call(this))},notBottom:function(){var t=this.elem.classList,e=this.classes;t.contains(e.notBottom)||(t.add(e.notBottom),t.remove(e.bottom),this.onNotBottom&&this.onNotBottom.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop},getViewportHeight:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},getElementPhysicalHeight:function(t){return Math.max(t.offsetHeight,t.clientHeight)},getScrollerPhysicalHeight:function(){return this.scroller===window||this.scroller===document.body?this.getViewportHeight():this.getElementPhysicalHeight(this.scroller)},getDocumentHeight:function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,t.clientHeight,e.clientHeight)},getElementHeight:function(t){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},getScrollerHeight:function(){return this.scroller===window||this.scroller===document.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(t){var e=0>t,i=t+this.getScrollerPhysicalHeight()>this.getScrollerHeight();return e||i},toleranceExceeded:function(t,e){return Math.abs(t-this.lastKnownScrollY)>=this.tolerance[e]},shouldUnpin:function(t,e){var i=t>this.lastKnownScrollY,o=t>=this.offset;return i&&o&&e},shouldPin:function(t,e){var i=t<this.lastKnownScrollY,o=t<=this.offset;return i&&e||o},update:function(){var t=this.getScrollY(),e=t>this.lastKnownScrollY?"down":"up",i=this.toleranceExceeded(t,e);this.isOutOfBounds(t)||("default"==this.behaviorMode&&this.isHightestThanSticky&&this.offset<t&&t<this.offset+this.heightDiff?this.elem.classList.add("just-before-sticky"):this.elem.classList.remove("just-before-sticky"),t<=this.offset-this.elem.offsetHeight&&"default"!=this.behaviorMode?(this.top(),this.elem.classList.add("unpinned-no-transition")):t<=this.offset&&"default"==this.behaviorMode?this.top():t>this.offset&&(this.notTop(),"default"==this.behaviorMode&&t<this.offset+100&&jQuery("#autocomplete-suggestions").hide()),t+this.getViewportHeight()>=this.getScrollerHeight()?this.bottom():this.notBottom(),this.shouldUnpin(t,i)?this.unpin():this.shouldPin(t,i)&&(this.pin(),t>this.offset&&"default"!=this.behaviorMode&&(this.elem.classList.remove("unpinned-no-transition"),jQuery(".autocomplete-suggestions").hide())),this.lastKnownScrollY=t)}},e.options={tolerance:{up:0,down:0},offset:0,behaviorMode:"upwards",scroller:window,classes:{initial:"fixed",pinned:"fixed-pinned",unpinned:"fixed-unpinned",top:"fixed-top",notTop:"fixed-nav",bottom:"fixed-bottom",notBottom:"fixed-not-bottom"}},e.cutsTheMustard=void 0!==i&&i.rAF&&i.bind&&i.classList,e});var megaMenuAjax=!1;jQuery(document).ready(function(){"use strict";function t(t,e,i,o){var n=t.attr("data-id"),s=t.attr("data-icon"),a=7,r=!0;n&&!t.hasClass("is-loaded")&&(t.addClass("is-loaded"),i?(a=o,r=!1):t.hasClass("menu-item-has-children")&&(a=4),megaMenuAjax&&4!=megaMenuAjax.readystate&&megaMenuAjax.abort(),megaMenuAjax=jQuery.ajax({url:tie.ajaxurl,type:"post",data:{action:"tie_mega_menu_load_ajax",id:n,featured:r,number:a,post_icon:s},beforeSend:function(){e.find(".loader-overlay").length||e.addClass("is-loading").append(tie.ajax_loader)},success:function(t){if(r)var i=jQuery(t);else var i='<ul id="loaded-'+n+'">'+t+"</ul>";e.append(i),e.find("ul").hide();var o=e.find("#loaded-"+n+", .mega-check-also ul").show().find("li"),s=e.find(".mega-recent-post");s.add(o).addClass("tie-animate-slideInUp tie-animate-delay"),tie_animate_element(e)},error:function(){t.removeClass("is-loaded")},complete:function(){e.removeClass("is-loading").find(".loader-overlay").remove()}}))}function e(){if($mainNav.length){var t,e=window.innerWidth;if(e>992){$body.hasClass("admin-bar")&&(t=783>e?46:32,t=601>e?0:t);var i=$mainNav.outerHeight();$mainNav.parent().css({height:i}),$mainNav.tiesticky("destroy"),$mainNav.tiesticky({offset:$mainNav.offset().top,behaviorMode:tie.sticky_behavior,tolerance:{up:0,down:0},windwidth:e,menuHeight:i,heightDiff:i-60,adminBarH:t,isHightestThanSticky:i>60?!0:!1})}}}if($mainNav.on("mouseenter",".mega-recent-featured, .mega-cat",function(){var e=jQuery(this),i=e.find(".mega-ajax-content"),o=!1,n=0;e.hasClass("mega-cat")&&(o=!0,n=5,e.has(".cats-vertical").length&&(n=4)),t(e,i,o,n)}),$mainNav.on("mouseenter",".mega-sub-cat",function(){var e=jQuery(this),i=e.attr("data-id");if(!e.hasClass("is-active")){var o=e.closest(".mega-menu"),n=o.find(".mega-ajax-content"),s=5;if(o.has(".cats-vertical").length&&(s=4),o.find(".mega-sub-cat").removeClass("is-active"),e.addClass("is-active"),n.find("#loaded-"+i).length){n.find("ul").hide();var a=n.find("#loaded-"+i+", .mega-check-also ul").show();return a.find("li").addClass("tie-animate-slideInUp tie-animate-delay"),!1}return e.removeClass("is-loaded"),t(e,n,!0,s),!1}}),tie.sticky_desktop&&(e(),$window.resize(e)),jQuery.fn.theiaStickySidebar){var i=jQuery(".is-sticky",".main-content-row");if(i.length){var o=tie.sticky_desktop?68:0;o="default"!=tie.sticky_behavior?8:o,o=$body.hasClass("admin-bar")?o+32:o,o=$body.hasClass("border-layout")?o+30:o,i.theiaStickySidebar({additionalMarginTop:20,additionalMarginBottom:30,minWidth:990})}}jQuery("nav > ul","#theme-header").on("focus.wparia mouseenter.wparia",'[aria-haspopup="true"]',function(t){jQuery(t.currentTarget).attr("aria-expanded",!0)}),jQuery("nav > ul","#theme-header").on("blur.wparia mouseleave.wparia",'[aria-haspopup="true"]',function(t){jQuery(t.currentTarget).attr("aria-expanded",!1)});var n=navigator.userAgent;n.match(/iPad/i)&&n.search("Safari")>=0&&n.search("Chrome")<0&&jQuery("#main-nav li.menu-item-has-children a, #main-nav li.mega-menu a, .top-bar li.menu-item-has-children a").attr("onclick","return true"),jQuery(".has-custom-scroll").each(function(){var t=jQuery(this),e=t.data("height")?t.data("height"):"auto",i=t.data("padding")?t.data("padding"):0;if(t.mCustomScrollbar("destroy"),"window"==t.data("height")){var o=t.height(),n=$window.height()-i-50;e=n>o?o:n}t.mCustomScrollbar({scrollButtons:{enable:!1},autoHideScrollbar:t.hasClass("show-scroll")?!1:!0,scrollInertia:100,mouseWheel:{enable:!0,scrollAmount:60},set_height:e,advanced:{updateOnContentResize:!0},callbacks:{whileScrolling:function(){tie_animate_element(t)}}})});var s=jQuery("#footer-instagram .tie-insta-photos");s.length&&s.mCustomScrollbar({axis:"x",scrollInertia:100,advanced:{autoExpandHorizontalScroll:!0},horizontalScroll:!0})});