vendor: 46,270 bytes, lines 1-419
1!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b:b(jQuery) 2}(function(v){function u(z){var y=z||window.event,x=n.call(arguments,1),w=0,k=0,i=0,f=0,e=0,d=0; 3if(z=v.event.fix(y),z.type="mousewheel","detail" in y&&(i=-1*y.detail),"wheelDelta" in y&&(i=y.wheelDelta),"wheelDeltaY" in y&&(i=y.wheelDeltaY),"wheelDeltaX" in y&&(k=-1*y.wheelDeltaX),"axis" in y&&y.axis===y.HORIZONTAL_AXIS&&(k=-1*i,i=0),w=0===i?k:i,"deltaY" in y&&(i=-1*y.deltaY,w=i),"deltaX" in y&&(k=y.deltaX,0===i&&(w=-1*k)),0!==i||0!==k){if(1===y.deltaMode){var c=v.data(this,"mousewheel-line-height"); 4w*=c,i*=c,k*=c 5}else{if(2===y.deltaMode){var a=v.data(this,"mousewheel-page-height"); 6w*=a,i*=a,k*=a 7}}if(f=Math.max(Math.abs(i),Math.abs(k)),(!q||q>f)&&(q=f,s(y,f)&&(q/=40)),s(y,f)&&(w/=40,k/=40,i/=40),w=Math[w>=1?"floor":"ceil"](w/q),k=Math[k>=1?"floor":"ceil"](k/q),i=Math[i>=1?"floor":"ceil"](i/q),l.settings.normalizeOffset&&this.getBoundingClientRect){var A=this.getBoundingClientRect(); 8e=z.clientX-A.left,d=z.clientY-A.top 9}return z.deltaX=k,z.deltaY=i,z.deltaFactor=q,z.offsetX=e,z.offsetY=d,z.deltaMode=0,x.unshift(z,w,k,i),r&&clearTimeout(r),r=setTimeout(t,200),(v.event.dispatch||v.event.handle).apply(this,x) 10}}function t(){q=null 11}function s(d,c){return l.settings.adjustOldDeltas&&"mousewheel"===d.type&&c%120===0 12}var r,q,p=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel" in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],n=Array.prototype.slice; 13if(v.event.fixHooks){for(var m=p.length; 14m; 15){v.event.fixHooks[p[--m]]=v.event.mouseHooks 16}}var l=v.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener){for(var a=o.length; 17a; 18){this.addEventListener(o[--a],u,!1) 19}}else{this.onmousewheel=u 20}v.data(this,"mousewheel-line-height",l.getLineHeight(this)),v.data(this,"mousewheel-page-height",l.getPageHeight(this)) 21},teardown:function(){if(this.removeEventListener){for(var a=o.length; 22a; 23){this.removeEventListener(o[--a],u,!1) 24}}else{this.onmousewheel=null 25}v.removeData(this,"mousewheel-line-height"),v.removeData(this,"mousewheel-page-height") 26},getLineHeight:function(a){var f=v(a),e=f["offsetParent" in v.fn?"offsetParent":"parent"](); 27return e.length||(e=v("body")),parseInt(e.css("fontSize"),10)||parseInt(f.css("fontSize"),10)||16 28},getPageHeight:function(a){return v(a).height() 29},settings:{adjustOldDeltas:!0,normalizeOffset:!0}}; 30v.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel") 31},unmousewheel:function(b){return this.unbind("mousewheel",b) 32}}) 33}); 34!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b:b(jQuery) 35}(function(v){function u(z){var y=z||window.event,x=n.call(arguments,1),w=0,k=0,i=0,f=0,e=0,d=0; 36if(z=v.event.fix(y),z.type="mousewheel","detail" in y&&(i=-1*y.detail),"wheelDelta" in y&&(i=y.wheelDelta),"wheelDeltaY" in y&&(i=y.wheelDeltaY),"wheelDeltaX" in y&&(k=-1*y.wheelDeltaX),"axis" in y&&y.axis===y.HORIZONTAL_AXIS&&(k=-1*i,i=0),w=0===i?k:i,"deltaY" in y&&(i=-1*y.deltaY,w=i),"deltaX" in y&&(k=y.deltaX,0===i&&(w=-1*k)),0!==i||0!==k){if(1===y.deltaMode){var c=v.data(this,"mousewheel-line-height"); 37w*=c,i*=c,k*=c 38}else{if(2===y.deltaMode){var a=v.data(this,"mousewheel-page-height"); 39w*=a,i*=a,k*=a 40}}if(f=Math.max(Math.abs(i),Math.abs(k)),(!q||q>f)&&(q=f,s(y,f)&&(q/=40)),s(y,f)&&(w/=40,k/=40,i/=40),w=Math[w>=1?"floor":"ceil"](w/q),k=Math[k>=1?"floor":"ceil"](k/q),i=Math[i>=1?"floor":"ceil"](i/q),l.settings.normalizeOffset&&this.getBoundingClientRect){var A=this.getBoundingClientRect(); 41e=z.clientX-A.left,d=z.clientY-A.top 42}return z.deltaX=k,z.deltaY=i,z.deltaFactor=q,z.offsetX=e,z.offsetY=d,z.deltaMode=0,x.unshift(z,w,k,i),r&&clearTimeout(r),r=setTimeout(t,200),(v.event.dispatch||v.event.handle).apply(this,x) 43}}function t(){q=null 44}function s(d,c){return l.settings.adjustOldDeltas&&"mousewheel"===d.type&&c%120===0 45}var r,q,p=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel" in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],n=Array.prototype.slice; 46if(v.event.fixHooks){for(var m=p.length; 47m; 48){v.event.fixHooks[p[--m]]=v.event.mouseHooks 49}}var l=v.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener){for(var a=o.length; 50a; 51){this.addEventListener(o[--a],u,!1) 52}}else{this.onmousewheel=u 53}v.data(this,"mousewheel-line-height",l.getLineHeight(this)),v.data(this,"mousewheel-page-height",l.getPageHeight(this)) 54},teardown:function(){if(this.removeEventListener){for(var a=o.length; 55a; 56){this.removeEventListener(o[--a],u,!1) 57}}else{this.onmousewheel=null 58}v.removeData(this,"mousewheel-line-height"),v.removeData(this,"mousewheel-page-height") 59},getLineHeight:function(a){var f=v(a),e=f["offsetParent" in v.fn?"offsetParent":"parent"](); 60return e.length||(e=v("body")),parseInt(e.css("fontSize"),10)||parseInt(f.css("fontSize"),10)||16 61},getPageHeight:function(a){return v(a).height() 62},settings:{adjustOldDeltas:!0,normalizeOffset:!0}}; 63v.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel") 64},unmousewheel:function(b){return this.unbind("mousewheel",b) 65}}) 66}); 67!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof module&&module.exports?module.exports=a:a(jQuery,window,document) 68}(function(a){!function(d){var e="function"==typeof define&&define.amd,b="undefined"!=typeof module&&module.exports,f="https:"==document.location.protocol?"https:":"http:",c="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"; 69e||(b?require("jquery-mousewheel")(a):a.event.special.mousewheel||a("head").append(decodeURI("%3Cscript src="+f+"//"+c+"%3E%3C/script%3E"))),d() 70}(function(){var aM,aR="mCustomScrollbar",a5="mCS",aS=".mCustomScrollbar",aX={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}},aO=0,aU={},aN=window.attachEvent&&!window.addEventListener?1:0,a2=!1,a1=["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"],aL={init:function(b){var b=a.extend(!0,{},aX,b),f=a0.call(this); 71if(b.live){var d=b.liveSelector||this.selector||aS,g=a(d); 72if("off"===b.live){return void aT(d) 73}aU[d]=setTimeout(function(){g.mCustomScrollbar(b),"once"===b.live&&g.length&&aT(d) 74},500) 75}else{aT(d) 76}return b.setWidth=b.set_width?b.set_width:b.setWidth,b.setHeight=b.set_height?b.set_height:b.setHeight,b.axis=b.horizontalScroll?"x":aQ(b.axis),b.scrollInertia=b.scrollInertia>0&&b.scrollInertia<17?17:b.scrollInertia,"object"!=typeof b.mouseWheel&&1==b.mouseWheel&&(b.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),b.mouseWheel.scrollAmount=b.mouseWheelPixels?b.mouseWheelPixels:b.mouseWheel.scrollAmount,b.mouseWheel.normalizeDelta=b.advanced.normalizeMouseWheelDelta?b.advanced.normalizeMouseWheelDelta:b.mouseWheel.normalizeDelta,b.scrollButtons.scrollType=aZ(b.scrollButtons.scrollType),aY(b),a(f).each(function(){var m=a(this); 77if(!m.data(a5)){m.data(a5,{idx:++aO,opt:b,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:m.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}}); 78var q=m.data(a5),j=q.opt,h=m.data("mcs-axis"),k=m.data("mcs-scrollbar-position"),p=m.data("mcs-theme"); 79h&&(j.axis=h),k&&(j.scrollbarPosition=k),p&&(j.theme=p,aY(j)),aK.call(this),q&&j.callbacks.onCreate&&"function"==typeof j.callbacks.onCreate&&j.callbacks.onCreate.call(this),a("#mCSB_"+q.idx+"_container img:not(."+a1[2]+")").addClass(a1[2]),aL.update.call(null,m) 80}}) 81},update:function(b,c){var d=b||a0.call(this); 82return a(d).each(function(){var h=a(this); 83if(h.data(a5)){var o=h.data(a5),g=o.opt,k=a("#mCSB_"+o.idx+"_container"),f=a("#mCSB_"+o.idx),j=[a("#mCSB_"+o.idx+"_dragger_vertical"),a("#mCSB_"+o.idx+"_dragger_horizontal")]; 84if(!k.length){return 85}o.tweenRunning&&al(h),c&&o&&g.callbacks.onBeforeUpdate&&"function"==typeof g.callbacks.onBeforeUpdate&&g.callbacks.onBeforeUpdate.call(this),h.hasClass(a1[3])&&h.removeClass(a1[3]),h.hasClass(a1[4])&&h.removeClass(a1[4]),f.css("max-height","none"),f.height()!==h.height()&&f.css("max-height",h.height()),a6.call(this),"y"===g.axis||g.advanced.autoExpandHorizontalScroll||k.css("width",aI(k)),o.overflowed=aH.call(this),ap.call(this),g.autoDraggerLength&&aj.call(this),a3.call(this),ai.call(this); 86var m=[Math.abs(k[0].offsetTop),Math.abs(k[0].offsetLeft)]; 87"x"!==g.axis&&(o.overflowed[0]?j[0].height()>j[0].parent().height()?aC.call(this):(aw(h,m[0].toString(),{dir:"y",dur:0,overwrite:"none"}),o.contentReset.y=null):(aC.call(this),"y"===g.axis?aV.call(this):"yx"===g.axis&&o.overflowed[1]&&aw(h,m[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==g.axis&&(o.overflowed[1]?j[1].width()>j[1].parent().width()?aC.call(this):(aw(h,m[1].toString(),{dir:"x",dur:0,overwrite:"none"}),o.contentReset.x=null):(aC.call(this),"x"===g.axis?aV.call(this):"yx"===g.axis&&o.overflowed[0]&&aw(h,m[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),c&&o&&(2===c&&g.callbacks.onImageLoad&&"function"==typeof g.callbacks.onImageLoad?g.callbacks.onImageLoad.call(this):3===c&&g.callbacks.onSelectorChange&&"function"==typeof g.callbacks.onSelectorChange?g.callbacks.onSelectorChange.call(this):g.callbacks.onUpdate&&"function"==typeof g.callbacks.onUpdate&&g.callbacks.onUpdate.call(this)),ao.call(this) 88}}) 89},scrollTo:function(b,c){if("undefined"!=typeof b&&null!=b){var d=a0.call(this); 90return a(d).each(function(){var o=a(this); 91if(o.data(a5)){var g=o.data(a5),j=g.opt,f={trigger:"external",scrollInertia:j.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},h=a.extend(!0,{},f,c),m=ab.call(this,b),k=h.scrollInertia>0&&h.scrollInertia<17?17:h.scrollInertia; 92m[0]=ac.call(this,m[0],"y"),m[1]=ac.call(this,m[1],"x"),h.moveDragger&&(m[0]*=g.scrollRatio.y,m[1]*=g.scrollRatio.x),h.dur=e()?0:k,setTimeout(function(){null!==m[0]&&"undefined"!=typeof m[0]&&"x"!==j.axis&&g.overflowed[0]&&(h.dir="y",h.overwrite="all",aw(o,m[0].toString(),h)),null!==m[1]&&"undefined"!=typeof m[1]&&"y"!==j.axis&&g.overflowed[1]&&(h.dir="x",h.overwrite="none",aw(o,m[1].toString(),h)) 93},h.timeout) 94}}) 95}},stop:function(){var b=a0.call(this); 96return a(b).each(function(){var c=a(this); 97c.data(a5)&&al(c) 98}) 99},disable:function(b){var c=a0.call(this); 100return a(c).each(function(){var d=a(this); 101if(d.data(a5)){d.data(a5); 102ao.call(this,"remove"),aV.call(this),b&&aC.call(this),ap.call(this,!0),d.addClass(a1[3]) 103}}) 104},destroy:function(){var b=a0.call(this); 105return a(b).each(function(){var k=a(this); 106if(k.data(a5)){var f=k.data(a5),h=f.opt,d=a("#mCSB_"+f.idx),g=a("#mCSB_"+f.idx+"_container"),j=a(".mCSB_"+f.idx+"_scrollbar"); 107h.live&&aT(h.liveSelector||a(b).selector),ao.call(this,"remove"),aV.call(this),aC.call(this),k.removeData(a5),aE(this,"mcs"),j.remove(),g.find("img."+a1[2]).removeClass(a1[2]),d.replaceWith(g.contents()),k.removeClass(aR+" _"+a5+"_"+f.idx+" "+a1[6]+" "+a1[7]+" "+a1[5]+" "+a1[3]).addClass(a1[4]) 108}}) 109}},a0=function(){return"object"!=typeof a(this)||a(this).length<1?aS:this 110},aY=function(d){var g=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],b=["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"],h=["minimal","minimal-dark"],c=["minimal","minimal-dark"],f=["minimal","minimal-dark"]; 111d.autoDraggerLength=a.inArray(d.theme,g)>-1?!1:d.autoDraggerLength,d.autoExpandScrollbar=a.inArray(d.theme,b)>-1?!1:d.autoExpandScrollbar,d.scrollButtons.enable=a.inArray(d.theme,h)>-1?!1:d.scrollButtons.enable,d.autoHideScrollbar=a.inArray(d.theme,c)>-1?!0:d.autoHideScrollbar,d.scrollbarPosition=a.inArray(d.theme,f)>-1?"outside":d.scrollbarPosition 112},aT=function(b){aU[b]&&(clearTimeout(aU[b]),aE(aU,b)) 113},aQ=function(b){return"yx"===b||"xy"===b||"auto"===b?"yx":"x"===b||"horizontal"===b?"x":"y" 114},aZ=function(b){return"stepped"===b||"pixels"===b||"step"===b||"click"===b?"stepped":"stepless" 115},aK=function(){var A=a(this),j=A.data(a5),q=j.opt,b=q.autoExpandScrollbar?" "+a1[1]+"_expand":"",o=["<div id='mCSB_"+j.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+j.idx+"_scrollbar mCS-"+q.theme+" mCSB_scrollTools_vertical"+b+"'><div class='"+a1[12]+"'><div id='mCSB_"+j.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+j.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+j.idx+"_scrollbar mCS-"+q.theme+" mCSB_scrollTools_horizontal"+b+"'><div class='"+a1[12]+"'><div id='mCSB_"+j.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],B="yx"===q.axis?"mCSB_vertical_horizontal":"x"===q.axis?"mCSB_horizontal":"mCSB_vertical",y="yx"===q.axis?o[0]+o[1]:"x"===q.axis?o[1]:o[0],z="yx"===q.axis?"<div id='mCSB_"+j.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",x=q.autoHideScrollbar?" "+a1[6]:"",v="x"!==q.axis&&"rtl"===j.langDir?" "+a1[7]:""; 116q.setWidth&&A.css("width",q.setWidth),q.setHeight&&A.css("height",q.setHeight),q.setLeft="y"!==q.axis&&"rtl"===j.langDir?"989999px":q.setLeft,A.addClass(aR+" _"+a5+"_"+j.idx+x+v).wrapInner("<div id='mCSB_"+j.idx+"' class='mCustomScrollBox mCS-"+q.theme+" "+B+"'><div id='mCSB_"+j.idx+"_container' class='mCSB_container' style='position:relative; top:"+q.setTop+"; left:"+q.setLeft+";' dir='"+j.langDir+"' /></div>"); 117var k=a("#mCSB_"+j.idx),d=a("#mCSB_"+j.idx+"_container"); 118"y"===q.axis||q.advanced.autoExpandHorizontalScroll||d.css("width",aI(d)),"outside"===q.scrollbarPosition?("static"===A.css("position")&&A.css("position","relative"),A.css("overflow","visible"),k.addClass("mCSB_outside").after(y)):(k.addClass("mCSB_inside").append(y),d.wrap(z)),aJ.call(this); 119var w=[a("#mCSB_"+j.idx+"_dragger_vertical"),a("#mCSB_"+j.idx+"_dragger_horizontal")]; 120w[0].css("min-height",w[0].height()),w[1].css("min-width",w[1].width()) 121},aI=function(c){var d=[c[0].scrollWidth,Math.max.apply(Math,c.children().map(function(){return a(this).outerWidth(!0) 122}).get())],b=c.parent().width(); 123return d[0]>b?d[0]:d[1]>b?d[1]:"100%" 124},a6=function(){var c=a(this),f=c.data(a5),g=f.opt,b=a("#mCSB_"+f.idx+"_container"); 125if(g.advanced.autoExpandHorizontalScroll&&"y"!==g.axis){b.css({width:"auto","min-width":0,"overflow-x":"scroll"}); 126var d=Math.ceil(b[0].scrollWidth); 1273===g.advanced.autoExpandHorizontalScroll||2!==g.advanced.autoExpandHorizontalScroll&&d>b.parent().width()?b.css({width:d,"min-width":"100%","overflow-x":"inherit"}):b.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(b[0].getBoundingClientRect().right+0.4)-Math.floor(b[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap() 128}},aJ=function(){var d=a(this),h=d.data(a5),j=h.opt,c=a(".mCSB_"+h.idx+"_scrollbar:first"),g=aF(j.scrollButtons.tabindex)?"tabindex='"+j.scrollButtons.tabindex+"'":"",b=["<a href='#' class='"+a1[13]+"' "+g+" />","<a href='#' class='"+a1[14]+"' "+g+" />","<a href='#' class='"+a1[15]+"' "+g+" />","<a href='#' class='"+a1[16]+"' "+g+" />"],f=["x"===j.axis?b[2]:b[0],"x"===j.axis?b[3]:b[1],b[2],b[3]]; 129j.scrollButtons.enable&&c.prepend(f[0]).append(f[1]).next(".mCSB_scrollTools").prepend(f[2]).append(f[3]) 130},aj=function(){var q=a(this),f=q.data(a5),g=a("#mCSB_"+f.idx),j=a("#mCSB_"+f.idx+"_container"),b=[a("#mCSB_"+f.idx+"_dragger_vertical"),a("#mCSB_"+f.idx+"_dragger_horizontal")],h=[g.height()/j.outerHeight(!1),g.width()/j.outerWidth(!1)],m=[parseInt(b[0].css("min-height")),Math.round(h[0]*b[0].parent().height()),parseInt(b[1].css("min-width")),Math.round(h[1]*b[1].parent().width())],k=aN&&m[1]<m[0]?m[0]:m[1],p=aN&&m[3]<m[2]?m[2]:m[3]; 131b[0].css({height:k,"max-height":b[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":m[0]+"px"}),b[1].css({width:p,"max-width":b[1].parent().width()-10}) 132},a3=function(){var d=a(this),h=d.data(a5),j=a("#mCSB_"+h.idx),c=a("#mCSB_"+h.idx+"_container"),g=[a("#mCSB_"+h.idx+"_dragger_vertical"),a("#mCSB_"+h.idx+"_dragger_horizontal")],b=[c.outerHeight(!1)-j.height(),c.outerWidth(!1)-j.width()],f=[b[0]/(g[0].parent().height()-g[0].height()),b[1]/(g[1].parent().width()-g[1].width())]; 133h.scrollRatio={y:f[0],x:f[1]} 134},aB=function(d,c,f){var b=f?a1[0]+"_expanded":"",g=d.closest(".mCSB_scrollTools"); 135"active"===c?(d.toggleClass(a1[0]+" "+b),g.toggleClass(a1[1]),d[0]._draggable=d[0]._draggable?0:1):d[0]._draggable||("hide"===c?(d.removeClass(a1[0]),g.removeClass(a1[1])):(d.addClass(a1[0]),g.addClass(a1[1]))) 136},aH=function(){var f=a(this),j=f.data(a5),m=a("#mCSB_"+j.idx),d=a("#mCSB_"+j.idx+"_container"),h=null==j.overflowed?d.height():d.outerHeight(!1),b=null==j.overflowed?d.width():d.outerWidth(!1),g=d[0].scrollHeight,k=d[0].scrollWidth; 137return g>h&&(h=g),k>b&&(b=k),[h>m.height(),b>m.width()] 138},aC=function(){var d=a(this),h=d.data(a5),j=h.opt,c=a("#mCSB_"+h.idx),g=a("#mCSB_"+h.idx+"_container"),b=[a("#mCSB_"+h.idx+"_dragger_vertical"),a("#mCSB_"+h.idx+"_dragger_horizontal")]; 139if(al(d),("x"!==j.axis&&!h.overflowed[0]||"y"===j.axis&&h.overflowed[0])&&(b[0].add(g).css("top",0),aw(d,"_resetY")),"y"!==j.axis&&!h.overflowed[1]||"x"===j.axis&&h.overflowed[1]){var f=dx=0; 140"rtl"===h.langDir&&(f=c.width()-g.outerWidth(!1),dx=Math.abs(f/h.scrollRatio.x)),g.css("left",f),b[1].css("left",dx),aw(d,"_resetX") 141}},ai=function(){function c(){d=setTimeout(function(){a.event.special.mousewheel?(clearTimeout(d),af.call(f[0])):c() 142},100) 143}var f=a(this),g=f.data(a5),b=g.opt; 144if(!g.bindEvents){if(au.call(this),b.contentTouchScroll&&aA.call(this),ay.call(this),b.mouseWheel.enable){var d; 145c() 146}am.call(this),ah.call(this),b.advanced.autoScrollOnFocus&&av.call(this),b.scrollButtons.enable&&ax.call(this),b.keyboard.enable&&aP.call(this),g.bindEvents=!0 147}},aV=function(){var d=a(this),h=d.data(a5),j=h.opt,c=a5+"_"+h.idx,g=".mCSB_"+h.idx+"_scrollbar",b=a("#mCSB_"+h.idx+",#mCSB_"+h.idx+"_container,#mCSB_"+h.idx+"_container_wrapper,"+g+" ."+a1[12]+",#mCSB_"+h.idx+"_dragger_vertical,#mCSB_"+h.idx+"_dragger_horizontal,"+g+">a"),f=a("#mCSB_"+h.idx+"_container"); 148j.advanced.releaseDraggableSelectors&&b.add(a(j.advanced.releaseDraggableSelectors)),j.advanced.extraDraggableSelectors&&b.add(a(j.advanced.extraDraggableSelectors)),h.bindEvents&&(a(document).add(a(!aD()||top.document)).unbind("."+c),b.each(function(){a(this).unbind("."+c) 149}),clearTimeout(d[0]._focusTimeout),aE(d[0],"_focusTimeout"),clearTimeout(h.sequential.step),aE(h.sequential,"step"),clearTimeout(f[0].onCompleteTimeout),aE(f[0],"onCompleteTimeout"),h.bindEvents=!1) 150},ap=function(f){var j=a(this),m=j.data(a5),d=m.opt,h=a("#mCSB_"+m.idx+"_container_wrapper"),b=h.length?h:a("#mCSB_"+m.idx+"_container"),g=[a("#mCSB_"+m.idx+"_scrollbar_vertical"),a("#mCSB_"+m.idx+"_scrollbar_horizontal")],k=[g[0].find(".mCSB_dragger"),g[1].find(".mCSB_dragger")]; 151"x"!==d.axis&&(m.overflowed[0]&&!f?(g[0].add(k[0]).add(g[0].children("a")).css("display","block"),b.removeClass(a1[8]+" "+a1[10])):(d.alwaysShowScrollbar?(2!==d.alwaysShowScrollbar&&k[0].css("display","none"),b.removeClass(a1[10])):(g[0].css("display","none"),b.addClass(a1[10])),b.addClass(a1[8]))),"y"!==d.axis&&(m.overflowed[1]&&!f?(g[1].add(k[1]).add(g[1].children("a")).css("display","block"),b.removeClass(a1[9]+" "+a1[11])):(d.alwaysShowScrollbar?(2!==d.alwaysShowScrollbar&&k[1].css("display","none"),b.removeClass(a1[11])):(g[1].css("display","none"),b.addClass(a1[11])),b.addClass(a1[9]))),m.overflowed[0]||m.overflowed[1]?j.removeClass(a1[5]):j.addClass(a1[5]) 152},an=function(d){var g=d.type,b=d.target.ownerDocument!==document&&null!==frameElement?[a(frameElement).offset().top,a(frameElement).offset().left]:null,h=aD()&&d.target.ownerDocument!==top.document&&null!==frameElement?[a(d.view.frameElement).offset().top,a(d.view.frameElement).offset().left]:[0,0]; 153switch(g){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return b?[d.originalEvent.pageY-b[0]+h[0],d.originalEvent.pageX-b[1]+h[1],!1]:[d.originalEvent.pageY,d.originalEvent.pageX,!1]; 154case"touchstart":case"touchmove":case"touchend":var c=d.originalEvent.touches[0]||d.originalEvent.changedTouches[0],f=d.originalEvent.touches.length||d.originalEvent.changedTouches.length; 155return d.target.ownerDocument!==document?[c.screenY,c.screenX,f>1]:[c.pageY,c.pageX,f>1]; 156default:return b?[d.pageY-b[0]+h[0],d.pageX-b[1]+h[1],!1]:[d.pageY,d.pageX,!1] 157}},au=function(){function B(l,g,d,m){if(w[0].idleTimer=z.scrollInertia<233?250:0,j.attr("id")===y[1]){var f="x",h=(j[0].offsetLeft-g+m)*s.scrollRatio.x 158}else{var f="y",h=(j[0].offsetTop-l+d)*s.scrollRatio.y 159}aw(b,h.toString(),{dir:f,drag:!0}) 160}var j,k,v,b=a(this),s=b.data(a5),z=s.opt,A=a5+"_"+s.idx,y=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],w=a("#mCSB_"+s.idx+"_container"),q=a("#"+y[0]+",#"+y[1]),c=z.advanced.releaseDraggableSelectors?q.add(a(z.advanced.releaseDraggableSelectors)):q,x=z.advanced.extraDraggableSelectors?a(!aD()||top.document).add(a(z.advanced.extraDraggableSelectors)):a(!aD()||top.document); 161q.bind("contextmenu."+A,function(d){d.preventDefault() 162}).bind("mousedown."+A+" touchstart."+A+" pointerdown."+A+" MSPointerDown."+A,function(n){if(n.stopImmediatePropagation(),n.preventDefault(),a4(n)){a2=!0,aN&&(document.onselectstart=function(){return !1 163}),aq.call(w,!1),al(b),j=a(this); 164var h=j.offset(),g=an(n)[0]-h.top,i=an(n)[1]-h.left,o=j.height()+h.top,d=j.width()+h.left; 165o>g&&g>0&&d>i&&i>0&&(k=g,v=i),aB(j,"active",z.autoExpandScrollbar) 166}}).bind("touchmove."+A,function(h){h.stopImmediatePropagation(),h.preventDefault(); 167var f=j.offset(),g=an(h)[0]-f.top,d=an(h)[1]-f.left; 168B(k,v,g,d) 169}),a(document).add(x).bind("mousemove."+A+" pointermove."+A+" MSPointerMove."+A,function(h){if(j){var f=j.offset(),g=an(h)[0]-f.top,d=an(h)[1]-f.left; 170if(k===g&&v===d){return 171}B(k,v,g,d) 172}}).add(c).bind("mouseup."+A+" touchend."+A+" pointerup."+A+" MSPointerUp."+A,function(){j&&(aB(j,"active",z.autoExpandScrollbar),j=null),a2=!1,aN&&(document.onselectstart=null),aq.call(w,!0) 173}) 174},aA=function(){function bd(b){if(!ad(b)||a2||an(b)[2]){return void (aM=0) 175}aM=1,bn=0,a9=0,bm=1,N.removeClass("mCS_touch_action"); 176var d=O.offset(); 177Z=an(b)[0]-d.top,bl=an(b)[1]-d.left,K=[an(b)[0],an(b)[1]] 178}function be(p){if(ad(p)&&!a2&&!an(p)[2]&&(q.documentTouchScroll||p.preventDefault(),p.stopImmediatePropagation(),(!a9||bn)&&bm)){bk=ar(); 179var u=G.offset(),d=an(p)[0]-u.top,s=an(p)[1]-u.left,f="mcsLinearOut"; 180if(ae.push(d),c.push(s),K[2]=Math.abs(an(p)[0]-K[0]),K[3]=Math.abs(an(p)[1]-K[1]),bb.overflowed[0]){var k=a7[0].parent().height()-a7[0].height(),b=Z-d>0&&d-Z>-(k*bb.scrollRatio.y)&&(2*K[3]<K[2]||"yx"===q.axis) 181}if(bb.overflowed[1]){var g=a7[1].parent().width()-a7[1].width(),m=bl-s>0&&s-bl>-(g*bb.scrollRatio.x)&&(2*K[2]<K[3]||"yx"===q.axis) 182}b||m?(j||p.preventDefault(),bn=1):(a9=1,N.addClass("mCS_touch_action")),j&&p.preventDefault(),X="yx"===q.axis?[Z-d,bl-s]:"x"===q.axis?[null,bl-s]:[Z-d,null],O[0].idleTimer=250,bb.overflowed[0]&&a8(X[0],A,f,"y","all",!0),bb.overflowed[1]&&a8(X[1],A,f,"x",J,!0) 183}}function bi(b){if(!ad(b)||a2||an(b)[2]){return void (aM=0) 184}aM=1,b.stopImmediatePropagation(),al(N),bc=ar(); 185var d=G.offset(); 186bj=an(b)[0]-d.top,bf=an(b)[1]-d.left,ae=[],c=[] 187}function ba(l){if(ad(l)&&!a2&&!an(l)[2]){bm=0,l.stopImmediatePropagation(),bn=0,a9=0,Y=ar(); 188var v=G.offset(),d=an(l)[0]-v.top,p=an(l)[1]-v.left; 189if(!(Y-bk>30)){bo=1000/(Y-bc); 190var g="mcsEaseOut",h=2.5>bo,b=h?[ae[ae.length-2],c[c.length-2]]:[0,0]; 191Q=h?[d-b[0],p-b[1]]:[d-bj,p-bf]; 192var s=[Math.abs(Q[0]),Math.abs(Q[1])]; 193bo=h?[Math.abs(Q[0]/4),Math.abs(Q[1]/4)]:[bo,bo]; 194var k=[Math.abs(O[0].offsetTop)-Q[0]*bg(s[0]/bo[0],bo[0]),Math.abs(O[0].offsetLeft)-Q[1]*bg(s[1]/bo[1],bo[1])]; 195X="yx"===q.axis?[k[0],k[1]]:"x"===q.axis?[null,k[1]]:[k[0],null],t=[4*s[0]+q.scrollInertia,4*s[1]+q.scrollInertia]; 196var m=parseInt(q.contentTouchScroll)||0; 197X[0]=s[0]>m?X[0]:0,X[1]=s[1]>m?X[1]:0,bb.overflowed[0]&&a8(X[0],t[0],g,"y",J,!1),bb.overflowed[1]&&a8(X[1],t[1],g,"x",J,!1) 198}}}function bg(d,b){var f=[1.5*b,2*b,b/1.5,b/2]; 199return d>90?b>4?f[0]:f[3]:d>60?b>3?f[3]:f[2]:d>30?b>8?f[1]:b>6?f[0]:b>4?b:f[2]:b>8?b:f[3] 200}function a8(g,f,h,b,k,d){g&&aw(N,g.toString(),{dur:f,scrollEasing:h,dir:b,overwrite:k,drag:d}) 201}var bm,Z,bl,bj,bf,bc,bk,Y,Q,bo,X,t,bn,a9,N=a(this),bb=N.data(a5),q=bb.opt,bh=a5+"_"+bb.idx,G=a("#mCSB_"+bb.idx),O=a("#mCSB_"+bb.idx+"_container"),a7=[a("#mCSB_"+bb.idx+"_dragger_vertical"),a("#mCSB_"+bb.idx+"_dragger_horizontal")],ae=[],c=[],A=0,J="yx"===q.axis?"none":"all",K=[],F=O.find("iframe"),V=["touchstart."+bh+" pointerdown."+bh+" MSPointerDown."+bh,"touchmove."+bh+" pointermove."+bh+" MSPointerMove."+bh,"touchend."+bh+" pointerup."+bh+" MSPointerUp."+bh],j=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction; 202O.bind(V[0],function(b){bd(b) 203}).bind(V[1],function(b){be(b) 204}),G.bind(V[0],function(b){bi(b) 205}).bind(V[2],function(b){ba(b) 206}),F.length&&F.each(function(){a(this).bind("load",function(){aD(this)&&a(this.contentDocument||this.contentWindow.document).bind(V[0],function(b){bd(b),bi(b) 207}).bind(V[1],function(b){be(b) 208}).bind(V[2],function(b){ba(b) 209}) 210}) 211}) 212},ay=function(){function c(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0 213}function g(f,d,h){q.type=h&&k?"stepped":"stepless",q.scrollAmount=10,aW(b,f,d,"mcsLinearOut",h?60:null) 214}var k,b=a(this),j=b.data(a5),v=j.opt,q=j.sequential,t=a5+"_"+j.idx,p=a("#mCSB_"+j.idx+"_container"),m=p.parent(); 215p.bind("mousedown."+t,function(){aM||k||(k=1,a2=!0) 216}).add(document).bind("mousemove."+t,function(h){if(!aM&&k&&c()){var d=p.offset(),f=an(h)[0]-d.top+p[0].offsetTop,i=an(h)[1]-d.left+p[0].offsetLeft; 217f>0&&f<m.height()&&i>0&&i<m.width()?q.step&&g("off",null,"stepped"):("x"!==v.axis&&j.overflowed[0]&&(0>f?g("on",38):f>m.height()&&g("on",40)),"y"!==v.axis&&j.overflowed[1]&&(0>i?g("on",37):i>m.width()&&g("on",39))) 218}}).bind("mouseup."+t+" dragend."+t,function(){aM||(k&&(k=0,g("off",null)),a2=!1) 219}) 220},af=function(){function g(z,w){if(al(k),!aG(k,z.target)){var c="auto"!==f.mouseWheel.deltaFactor?parseInt(f.mouseWheel.deltaFactor):aN&&z.deltaFactor<100?100:z.deltaFactor||100,s=f.scrollInertia; 221if("x"===f.axis||"x"===f.mouseWheel.axis){var y="x",q=[Math.round(c*p.scrollRatio.x),parseInt(f.mouseWheel.scrollAmount)],n="auto"!==f.mouseWheel.scrollAmount?q[1]:q[0]>=b.width()?0.9*b.width():q[0],l=Math.abs(a("#mCSB_"+p.idx+"_container")[0].offsetLeft),i=m[1][0].offsetLeft,o=m[1].parent().width()-m[1].width(),x="y"===f.mouseWheel.axis?z.deltaY||w:z.deltaX 222}else{var y="y",q=[Math.round(c*p.scrollRatio.y),parseInt(f.mouseWheel.scrollAmount)],n="auto"!==f.mouseWheel.scrollAmount?q[1]:q[0]>=b.height()?0.9*b.height():q[0],l=Math.abs(a("#mCSB_"+p.idx+"_container")[0].offsetTop),i=m[0][0].offsetTop,o=m[0].parent().height()-m[0].height(),x=z.deltaY||w 223}"y"===y&&!p.overflowed[0]||"x"===y&&!p.overflowed[1]||((f.mouseWheel.invert||z.webkitDirectionInvertedFromDevice)&&(x=-x),f.mouseWheel.normalizeDelta&&(x=0>x?-1:1),(x>0&&0!==i||0>x&&i!==o||f.mouseWheel.preventDefault)&&(z.stopImmediatePropagation(),z.preventDefault()),z.deltaFactor<5&&!f.mouseWheel.normalizeDelta&&(n=z.deltaFactor,s=17),aw(k,(l-x*n).toString(),{dir:y,dur:s})) 224}}if(a(this).data(a5)){var k=a(this),p=k.data(a5),f=p.opt,h=a5+"_"+p.idx,b=a("#mCSB_"+p.idx),m=[a("#mCSB_"+p.idx+"_dragger_vertical"),a("#mCSB_"+p.idx+"_dragger_horizontal")],j=a("#mCSB_"+p.idx+"_container").find("iframe"); 225j.length&&j.each(function(){a(this).bind("load",function(){aD(this)&&a(this.contentDocument||this.contentWindow.document).bind("mousewheel."+h,function(c,d){g(c,d) 226}) 227}) 228}),b.bind("mousewheel."+h,function(c,d){g(c,d) 229}) 230}},ak=new Object,aD=function(d){var g=!1,b=!1,h=null; 231if(void 0===d?b="#empty":void 0!==a(d).attr("id")&&(b=a(d).attr("id")),b!==!1&&void 0!==ak[b]){return ak[b] 232}if(d){try{var c=d.contentDocument||d.contentWindow.document; 233h=c.body.innerHTML 234}catch(f){}g=null!==h 235}else{try{var c=top.document; 236h=c.body.innerHTML 237}catch(f){}g=null!==h 238}return b!==!1&&(ak[b]=g),g 239},aq=function(c){var b=this.find("iframe"); 240if(b.length){var d=c?"auto":"none"; 241b.css("pointer-events",d) 242}},aG=function(c,f){var g=f.nodeName.toLowerCase(),b=c.data(a5).opt.mouseWheel.disableOver,d=["select","textarea"]; 243return a.inArray(g,b)>-1&&!(a.inArray(g,d)>-1&&!a(f).is(":focus")) 244},am=function(){var d,h=a(this),j=h.data(a5),c=a5+"_"+j.idx,g=a("#mCSB_"+j.idx+"_container"),b=g.parent(),f=a(".mCSB_"+j.idx+"_scrollbar ."+a1[12]); 245f.bind("mousedown."+c+" touchstart."+c+" pointerdown."+c+" MSPointerDown."+c,function(i){a2=!0,a(i.target).hasClass("mCSB_dragger")||(d=1) 246}).bind("touchend."+c+" pointerup."+c+" MSPointerUp."+c,function(){a2=!1 247}).bind("click."+c,function(k){if(d&&(d=0,a(k.target).hasClass(a1[12])||a(k.target).hasClass("mCSB_draggerRail"))){al(h); 248var m=a(this),n=m.find(".mCSB_dragger"); 249if(m.parent(".mCSB_scrollTools_horizontal").length>0){if(!j.overflowed[1]){return 250}var p="x",l=k.pageX>n.offset().left?-1:1,o=Math.abs(g[0].offsetLeft)-l*(0.9*b.width()) 251}else{if(!j.overflowed[0]){return 252}var p="y",l=k.pageY>n.offset().top?-1:1,o=Math.abs(g[0].offsetTop)-l*(0.9*b.height()) 253}aw(h,o.toString(),{dir:p,scrollEasing:"mcsEaseInOut"}) 254}}) 255},av=function(){var d=a(this),g=d.data(a5),h=g.opt,c=a5+"_"+g.idx,f=a("#mCSB_"+g.idx+"_container"),b=f.parent(); 256f.bind("focusin."+c,function(){var l=a(document.activeElement),j=f.find(".mCustomScrollBox").length,k=0; 257l.is(h.advanced.autoScrollOnFocus)&&(al(d),clearTimeout(d[0]._focusTimeout),d[0]._focusTimer=j?(k+17)*j:0,d[0]._focusTimeout=setTimeout(function(){var n=[az(l)[0],az(l)[1]],i=[f[0].offsetTop,f[0].offsetLeft],m=[i[0]+n[0]>=0&&i[0]+n[0]<b.height()-l.outerHeight(!1),i[1]+n[1]>=0&&i[0]+n[1]<b.width()-l.outerWidth(!1)],o="yx"!==h.axis||m[0]||m[1]?"all":"none"; 258"x"===h.axis||m[0]||aw(d,n[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:o,dur:k}),"y"===h.axis||m[1]||aw(d,n[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:o,dur:k}) 259},d[0]._focusTimer)) 260}) 261},ah=function(){var c=a(this),d=c.data(a5),f=a5+"_"+d.idx,b=a("#mCSB_"+d.idx+"_container").parent(); 262b.bind("scroll."+f,function(){0===b.scrollTop()&&0===b.scrollLeft()||a(".mCSB_"+d.idx+"_scrollbar").css("visibility","hidden") 263}) 264},ax=function(){var d=a(this),h=d.data(a5),j=h.opt,c=h.sequential,g=a5+"_"+h.idx,b=".mCSB_"+h.idx+"_scrollbar",f=a(b+">a"); 265f.bind("contextmenu."+g,function(i){i.preventDefault() 266}).bind("mousedown."+g+" touchstart."+g+" pointerdown."+g+" MSPointerDown."+g+" mouseup."+g+" touchend."+g+" pointerup."+g+" MSPointerUp."+g+" mouseout."+g+" pointerout."+g+" MSPointerOut."+g+" click."+g,function(k){function m(l,n){c.scrollAmount=j.scrollButtons.scrollAmount,aW(d,l,n) 267}if(k.preventDefault(),a4(k)){var i=a(this).attr("class"); 268switch(c.type=j.scrollButtons.scrollType,k.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===c.type){return 269}a2=!0,h.tweenRunning=!1,m("on",i); 270break; 271case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===c.type){return 272}a2=!1,c.dir&&m("off",i); 273break; 274case"click":if("stepped"!==c.type||h.tweenRunning){return 275}m("on",i) 276}}}) 277},aP=function(){function y(n){function i(h,f){b.type=m.keyboard.scrollType,b.scrollAmount=m.keyboard.scrollAmount,"stepped"===b.type&&j.tweenRunning||aW(g,h,f) 278}switch(n.type){case"blur":j.tweenRunning&&b.dir&&i("off",null); 279break; 280case"keydown":case"keyup":var d=n.keyCode?n.keyCode:n.which,r="on"; 281if("x"!==m.axis&&(38===d||40===d)||"y"!==m.axis&&(37===d||39===d)){if((38===d||40===d)&&!j.overflowed[0]||(37===d||39===d)&&!j.overflowed[1]){return 282}"keyup"===n.type&&(r="off"),a(document.activeElement).is(x)||(n.preventDefault(),n.stopImmediatePropagation(),i(r,d)) 283}else{if(33===d||34===d){if((j.overflowed[0]||j.overflowed[1])&&(n.preventDefault(),n.stopImmediatePropagation()),"keyup"===n.type){al(g); 284var u=34===d?-1:1; 285if("x"===m.axis||"yx"===m.axis&&j.overflowed[1]&&!j.overflowed[0]){var o="x",c=Math.abs(w[0].offsetLeft)-u*(0.9*v.width()) 286}else{var o="y",c=Math.abs(w[0].offsetTop)-u*(0.9*v.height()) 287}aw(g,c.toString(),{dir:o,scrollEasing:"mcsEaseInOut"}) 288}}else{if((35===d||36===d)&&!a(document.activeElement).is(x)&&((j.overflowed[0]||j.overflowed[1])&&(n.preventDefault(),n.stopImmediatePropagation()),"keyup"===n.type)){if("x"===m.axis||"yx"===m.axis&&j.overflowed[1]&&!j.overflowed[0]){var o="x",c=35===d?Math.abs(v.width()-w.outerWidth(!1)):0 289}else{var o="y",c=35===d?Math.abs(v.height()-w.outerHeight(!1)):0 290}aw(g,c.toString(),{dir:o,scrollEasing:"mcsEaseInOut"}) 291}}}}}var g=a(this),j=g.data(a5),m=j.opt,b=j.sequential,k=a5+"_"+j.idx,z=a("#mCSB_"+j.idx),w=a("#mCSB_"+j.idx+"_container"),v=w.parent(),x="input,textarea,select,datalist,keygen,[contenteditable='true']",q=w.find("iframe"),p=["blur."+k+" keydown."+k+" keyup."+k]; 292q.length&&q.each(function(){a(this).bind("load",function(){aD(this)&&a(this.contentDocument||this.contentWindow.document).bind(p[0],function(c){y(c) 293}) 294}) 295}),z.attr("tabindex","0").bind(p[0],function(c){y(c) 296}) 297},aW=function(C,j,k,w,b){function v(h){B.snapAmount&&(z.scrollAmount=B.snapAmount instanceof Array?"x"===z.dir[0]?B.snapAmount[1]:B.snapAmount[0]:B.snapAmount); 298var c="stepped"!==z.type,p=b?b:h?c?d/1.5:y:1000/60,f=h?c?7.5:40:2.5,E=[Math.abs(x[0].offsetTop),Math.abs(x[0].offsetLeft)],i=[A.scrollRatio.y>10?10:A.scrollRatio.y,A.scrollRatio.x>10?10:A.scrollRatio.x],g="x"===z.dir[0]?E[1]+z.dir[1]*(i[1]*f):E[0]+z.dir[1]*(i[0]*f),u="x"===z.dir[0]?E[1]+z.dir[1]*parseInt(z.scrollAmount):E[0]+z.dir[1]*parseInt(z.scrollAmount),l="auto"!==z.scrollAmount?u:g,t=w?w:h?c?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",r=!!h; 299return h&&17>p&&(l="x"===z.dir[0]?E[1]:E[0]),aw(C,l.toString(),{dir:z.dir[0],scrollEasing:t,dur:p,onComplete:r}),h?void (z.dir=!1):(clearTimeout(z.step),void (z.step=setTimeout(function(){v() 300},p))) 301}function D(){clearTimeout(z.step),aE(z,"step"),al(C) 302}var A=C.data(a5),B=A.opt,z=A.sequential,x=a("#mCSB_"+A.idx+"_container"),q="stepped"===z.type,d=B.scrollInertia<26?26:B.scrollInertia,y=B.scrollInertia<1?17:B.scrollInertia; 303switch(j){case"on":if(z.dir=[k===a1[16]||k===a1[15]||39===k||37===k?"x":"y",k===a1[13]||k===a1[15]||38===k||37===k?-1:1],al(C),aF(k)&&"stepped"===z.type){return 304}v(q); 305break; 306case"off":D(),(q||A.tweenRunning&&z.dir)&&v(!0) 307}},ab=function(b){var c=a(this).data(a5).opt,d=[]; 308return"function"==typeof b&&(b=b()),b instanceof Array?d=b.length>1?[b[0],b[1]]:"x"===c.axis?[null,b[0]]:[b[0],null]:(d[0]=b.y?b.y:b.x||"x"===c.axis?null:b,d[1]=b.x?b.x:b.y||"y"===c.axis?null:b),"function"==typeof d[0]&&(d[0]=d[0]()),"function"==typeof d[1]&&(d[1]=d[1]()),d 309},ac=function(A,j){if(null!=A&&"undefined"!=typeof A){var k=a(this),v=k.data(a5),b=v.opt,u=a("#mCSB_"+v.idx+"_container"),B=u.parent(),z=typeof A; 310j||(j="x"===b.axis?"x":"y"); 311var y="x"===j?u.outerWidth(!1)-B.width():u.outerHeight(!1)-B.height(),x="x"===j?u[0].offsetLeft:u[0].offsetTop,w="x"===j?"left":"top"; 312switch(z){case"function":return A(); 313case"object":var q=A.jquery?A:a(A); 314if(!q.length){return 315}return"x"===j?az(q)[1]:az(q)[0]; 316case"string":case"number":if(aF(A)){return Math.abs(A) 317}if(-1!==A.indexOf("%")){return Math.abs(y*parseInt(A)/100) 318}if(-1!==A.indexOf("-=")){return Math.abs(x-parseInt(A.split("-=")[1])) 319}if(-1!==A.indexOf("+=")){var g=x+parseInt(A.split("+=")[1]); 320return g>=0?0:Math.abs(g) 321}if(-1!==A.indexOf("px")&&aF(A.split("px")[0])){return Math.abs(A.split("px")[0]) 322}if("top"===A||"left"===A){return 0 323}if("bottom"===A){return Math.abs(B.height()-u.outerHeight(!1)) 324}if("right"===A){return Math.abs(B.width()-u.outerWidth(!1)) 325}if("first"===A||"last"===A){var q=u.find(":"+A); 326return"x"===j?az(q)[1]:az(q)[0] 327}return a(A).length?"x"===j?az(a(A))[1]:az(a(A))[0]:(u.css(w,A),void aL.update.call(null,k[0])) 328}}},ao=function(p){function d(){return clearTimeout(k[0].autoUpdate),0===h.parents("html").length?void (h=null):void (k[0].autoUpdate=setTimeout(function(){return m.advanced.updateOnSelectorChange&&(q.poll.change.n=j(),q.poll.change.n!==q.poll.change.o)?(q.poll.change.o=q.poll.change.n,void b(3)):m.advanced.updateOnContentResize&&(q.poll.size.n=h[0].scrollHeight+h[0].scrollWidth+k[0].offsetHeight+h[0].offsetHeight+h[0].offsetWidth,q.poll.size.n!==q.poll.size.o)?(q.poll.size.o=q.poll.size.n,void b(1)):!m.advanced.updateOnImageLoad||"auto"===m.advanced.updateOnImageLoad&&"y"===m.axis||(q.poll.img.n=k.find("img").length,q.poll.img.n===q.poll.img.o)?void ((m.advanced.updateOnSelectorChange||m.advanced.updateOnContentResize||m.advanced.updateOnImageLoad)&&d()):(q.poll.img.o=q.poll.img.n,void k.find("img").each(function(){g(this) 329})) 330},m.advanced.autoUpdateTimeout)) 331}function g(f){function i(o,n){return function(){return n.apply(o,arguments) 332} 333}function c(){this.onload=null,a(f).addClass(a1[2]),b(2) 334}if(a(f).hasClass(a1[2])){return void b() 335}var l=new Image; 336l.onload=i(l,c),l.src=f.src 337}function j(){m.advanced.updateOnSelectorChange===!0&&(m.advanced.updateOnSelectorChange="*"); 338var f=0,c=k.find(m.advanced.updateOnSelectorChange); 339return m.advanced.updateOnSelectorChange&&c.length>0&&c.each(function(){f+=this.offsetHeight+this.offsetWidth 340}),f 341}function b(c){clearTimeout(k[0].autoUpdate),aL.update.call(null,h[0],c) 342}var h=a(this),q=h.data(a5),m=q.opt,k=a("#mCSB_"+q.idx+"_container"); 343return p?(clearTimeout(k[0].autoUpdate),void aE(k[0],"autoUpdate")):void d() 344},ag=function(c,b,d){return Math.round(c/b)*b-d 345},al=function(b){var c=b.data(a5),d=a("#mCSB_"+c.idx+"_container,#mCSB_"+c.idx+"_container_wrapper,#mCSB_"+c.idx+"_dragger_vertical,#mCSB_"+c.idx+"_dragger_horizontal"); 346d.each(function(){aa.call(this) 347}) 348},aw=function(F,K,L){function P(b){return G&&W.callbacks[b]&&"function"==typeof W.callbacks[b] 349}function H(){return[W.callbacks.alwaysTriggerOffsets||C>=q[0]+z,W.callbacks.alwaysTriggerOffsets||-I>=C] 350}function N(){var d=[Q[0].offsetTop,Q[0].offsetLeft],f=[A[0].offsetTop,A[0].offsetLeft],b=[Q.outerHeight(!1),Q.outerWidth(!1)],c=[U.height(),U.width()]; 351F[0].mcs={content:Q,top:d[0],left:d[1],draggerTop:f[0],draggerLeft:f[1],topPct:Math.round(100*Math.abs(d[0])/(Math.abs(b[0])-c[0])),leftPct:Math.round(100*Math.abs(d[1])/(Math.abs(b[1])-c[1])),direction:L.dir} 352}var G=F.data(a5),W=G.opt,V={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:W.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},L=a.extend(V,L),E=[L.dur,L.drag?0:L.dur],U=a("#mCSB_"+G.idx),Q=a("#mCSB_"+G.idx+"_container"),M=Q.parent(),J=W.callbacks.onTotalScrollOffset?ab.call(F,W.callbacks.onTotalScrollOffset):[0,0],R=W.callbacks.onTotalScrollBackOffset?ab.call(F,W.callbacks.onTotalScrollBackOffset):[0,0]; 353if(G.trigger=L.trigger,0===M.scrollTop()&&0===M.scrollLeft()||(a(".mCSB_"+G.idx+"_scrollbar").css("visibility","visible"),M.scrollTop(0).scrollLeft(0)),"_resetY"!==K||G.contentReset.y||(P("onOverflowYNone")&&W.callbacks.onOverflowYNone.call(F[0]),G.contentReset.y=1),"_resetX"!==K||G.contentReset.x||(P("onOverflowXNone")&&W.callbacks.onOverflowXNone.call(F[0]),G.contentReset.x=1),"_resetY"!==K&&"_resetX"!==K){if(!G.contentReset.y&&F[0].mcs||!G.overflowed[0]||(P("onOverflowY")&&W.callbacks.onOverflowY.call(F[0]),G.contentReset.x=null),!G.contentReset.x&&F[0].mcs||!G.overflowed[1]||(P("onOverflowX")&&W.callbacks.onOverflowX.call(F[0]),G.contentReset.x=null),W.snapAmount){var D=W.snapAmount instanceof Array?"x"===L.dir?W.snapAmount[1]:W.snapAmount[0]:W.snapAmount; 354K=ag(K,D,W.snapOffset) 355}switch(L.dir){case"x":var A=a("#mCSB_"+G.idx+"_dragger_horizontal"),Y="left",C=Q[0].offsetLeft,q=[U.width()-Q.outerWidth(!1),A.parent().width()-A.width()],X=[K,0===K?0:K/G.scrollRatio.x],z=J[1],I=R[1],j=z>0?z/G.scrollRatio.x:0,O=I>0?I/G.scrollRatio.x:0; 356break; 357case"y":var A=a("#mCSB_"+G.idx+"_dragger_vertical"),Y="top",C=Q[0].offsetTop,q=[U.height()-Q.outerHeight(!1),A.parent().height()-A.height()],X=[K,0===K?0:K/G.scrollRatio.y],z=J[0],I=R[0],j=z>0?z/G.scrollRatio.y:0,O=I>0?I/G.scrollRatio.y:0 358}X[1]<0||0===X[0]&&0===X[1]?X=[0,0]:X[1]>=q[1]?X=[q[0],q[1]]:X[0]=-X[0],F[0].mcs||(N(),P("onInit")&&W.callbacks.onInit.call(F[0])),clearTimeout(Q[0].onCompleteTimeout),at(A[0],Y,Math.round(X[1]),E[1],L.scrollEasing),!G.tweenRunning&&(0===C&&X[0]>=0||C===q[0]&&X[0]<=q[0])||at(Q[0],Y,Math.round(X[0]),E[0],L.scrollEasing,L.overwrite,{onStart:function(){L.callbacks&&L.onStart&&!G.tweenRunning&&(P("onScrollStart")&&(N(),W.callbacks.onScrollStart.call(F[0])),G.tweenRunning=!0,aB(A),G.cbOffsets=H()) 359},onUpdate:function(){L.callbacks&&L.onUpdate&&P("whileScrolling")&&(N(),W.callbacks.whileScrolling.call(F[0])) 360},onComplete:function(){if(L.callbacks&&L.onComplete){"yx"===W.axis&&clearTimeout(Q[0].onCompleteTimeout); 361var b=Q[0].idleTimer||0; 362Q[0].onCompleteTimeout=setTimeout(function(){P("onScroll")&&(N(),W.callbacks.onScroll.call(F[0])),P("onTotalScroll")&&X[1]>=q[1]-j&&G.cbOffsets[0]&&(N(),W.callbacks.onTotalScroll.call(F[0])),P("onTotalScrollBack")&&X[1]<=O&&G.cbOffsets[1]&&(N(),W.callbacks.onTotalScrollBack.call(F[0])),G.tweenRunning=!1,Q[0].idleTimer=0,aB(A,"hide") 363},b) 364}}}) 365}},at=function(M,A,E,Q,F,I,C){function H(){j.stop||(k||G.call(),k=ar()-y,B(),k>=j.time&&(j.time=k>j.time?k+L-(k-j.time):k+L-1,j.time<k+1&&(j.time=k+1)),j.time<Q?j.id=J(H):K.call()) 366}function B(){Q>0?(j.currVal=z(j.time,R,P,Q,F),q[A]=Math.round(j.currVal)+"px"):q[A]=E+"px",D.call() 367}function O(){L=1000/60,j.time=k+L,J=window.requestAnimationFrame?window.requestAnimationFrame:function(b){return B(),setTimeout(b,0.01) 368},j.id=J(H) 369}function N(){null!=j.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(j.id):clearTimeout(j.id),j.id=null) 370}function z(g,d,h,b,l){switch(l){case"linear":case"mcsLinear":return h*g/b+d; 371case"mcsLinearOut":return g/=b,g--,h*Math.sqrt(1-g*g)+d; 372case"easeInOutSmooth":return g/=b/2,1>g?h/2*g*g+d:(g--,-h/2*(g*(g-2)-1)+d); 373case"easeInOutStrong":return g/=b/2,1>g?h/2*Math.pow(2,10*(g-1))+d:(g--,h/2*(-Math.pow(2,-10*g)+2)+d); 374case"easeInOut":case"mcsEaseInOut":return g/=b/2,1>g?h/2*g*g*g+d:(g-=2,h/2*(g*g*g+2)+d); 375case"easeOutSmooth":return g/=b,g--,-h*(g*g*g*g-1)+d; 376case"easeOutStrong":return h*(-Math.pow(2,-10*g/b)+1)+d; 377case"easeOut":case"mcsEaseOut":default:var c=(g/=b)*g,f=c*g; 378return d+h*(0.499999999999997*f*c+-2.5*c*c+5.5*f+-6.5*c+4*g) 379}}M._mTween||(M._mTween={top:{},left:{}}); 380var L,J,C=C||{},G=C.onStart||function(){},D=C.onUpdate||function(){},K=C.onComplete||function(){},y=ar(),k=0,R=M.offsetTop,q=M.style,j=M._mTween[A]; 381"left"===A&&(R=M.offsetLeft); 382var P=E-R; 383j.stop=0,"none"!==I&&N(),O() 384},ar=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() 385},aa=function(){var d=this; 386d._mTween||(d._mTween={top:{},left:{}}); 387for(var c=["top","left"],f=0; 388f<c.length; 389f++){var b=c[f]; 390d._mTween[b].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(d._mTween[b].id):clearTimeout(d._mTween[b].id),d._mTween[b].id=null,d._mTween[b].stop=1) 391}},aE=function(c,b){try{delete c[b] 392}catch(d){c[b]=null 393}},a4=function(b){return !(b.which&&1!==b.which) 394},ad=function(c){var b=c.originalEvent.pointerType; 395return !(b&&"touch"!==b&&2!==b) 396},aF=function(b){return !isNaN(parseFloat(b))&&isFinite(b) 397},az=function(c){var b=c.parents(".mCSB_container"); 398return[c.offset().top-b.offset().top,c.offset().left-b.offset().left] 399},e=function(){function c(){var f=["webkit","moz","ms","o"]; 400if("hidden" in document){return"hidden" 401}for(var d=0; 402d<f.length; 403d++){if(f[d]+"Hidden" in document){return f[d]+"Hidden" 404}}return null 405}var b=c(); 406return b?document[b]:!1 407}; 408a.fn[aR]=function(b){return aL[b]?aL[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist"):aL.init.apply(this,arguments) 409},a[aR]=function(b){return aL[b]?aL[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist"):aL.init.apply(this,arguments) 410},a[aR].defaults=aX,window[aR]=!0,a(window).bind("load",function(){a(aS)[aR](),a.extend(a.expr[":"],{mcsInView:a.expr[":"].mcsInView||function(d){var f,b,g=a(d),c=g.parents(".mCSB_container"); 411if(c.length){return f=c.parent(),b=[c[0].offsetTop,c[0].offsetLeft],b[0]+az(g)[0]>=0&&b[0]+az(g)[0]<f.height()-g.outerHeight(!1)&&b[1]+az(g)[1]>=0&&b[1]+az(g)[1]<f.width()-g.outerWidth(!1) 412}},mcsInSight:a.expr[":"].mcsInSight||function(q,f,p){var g,j,b,h,u=a(q),m=u.parents(".mCSB_container"),k="exact"===p[3]?[[1,0],[1,0]]:[[0.9,0.1],[0.6,0.4]]; 413if(m.length){return g=[u.outerHeight(!1),u.outerWidth(!1)],b=[m[0].offsetTop+az(u)[0],m[0].offsetLeft+az(u)[1]],j=[m.parent()[0].offsetHeight,m.parent()[0].offsetWidth],h=[g[0]<j[0]?k[0]:k[1],g[1]<j[1]?k[0]:k[1]],b[0]-j[0]*h[0][0]<0&&b[0]+g[0]-j[0]*h[0][1]>=0&&b[1]-j[1]*h[1][0]<0&&b[1]+g[1]-j[1]*h[1][1]>=0 414}},mcsOverflow:a.expr[":"].mcsOverflow||function(b){var c=a(b).data(a5); 415if(c){return c.overflowed[0]||c.overflowed[1] 416}}}) 417}) 418}) 419});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.