!function(d,h,r){function a(t,e,i){t=h.createElement(t);return e&&(t.id=tt+e),i&&(t.style.cssText=i),d(t)}function c(){return r.innerHeight||d(r).height()}function s(t,i){i!==Object(i)&&(i={}),this.cache={},this.el=t,this.value=function(t){var e;return void 0===this.cache[t]&&(void 0!==(e=d(this.el).attr("data-cbox-"+t))?this.cache[t]=e:void 0!==i[t]?this.cache[t]=i[t]:void 0!==Y[t]&&(this.cache[t]=Y[t])),this.cache[t]},this.get=function(t){t=this.value(t);return d.isFunction(t)?t.call(this.el,this):t}}function l(t){var e=W.length,t=(A+t)%e;return t<0?e+t:t}function g(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():c())/100:1)*parseInt(t,10))}function u(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function p(t,e){return t.get("retinaUrl")&&1<r.devicePixelRatio?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function f(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==y[0]&&(t.stopPropagation(),x.focus())}function m(t){m.str!==t&&(x.add(y).removeClass(m.str).addClass(t),m.str=t)}function w(t){d(h).trigger(t),st.triggerHandler(t)}function o(t){var e,i,n,o;G||(i=d(t).data(Z),_=new s(t,i),o=_.get("rel"),A=0,o&&!1!==o&&"nofollow"!==o?(W=d("."+et).filter(function(){return new s(this,d.data(this,Z)).get("rel")===o}),-1===(A=W.index(_.el))&&(W=W.add(_.el),A=W.length-1)):W=d(_.el),$||($=q=!0,m(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),L=a(lt,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),T.css({width:"",height:""}).append(L),j=C.height()+I.height()+T.outerHeight(!0)-T.height(),D=k.width()+H.width()+T.outerWidth(!0)-T.width(),N=L.outerHeight(!0),z=L.outerWidth(!0),e=g(_.get("initialWidth"),"x"),n=g(_.get("initialHeight"),"y"),t=_.get("maxWidth"),i=_.get("maxHeight"),_.w=(!1!==t?Math.min(e,g(t,"x")):e)-z-D,_.h=(!1!==i?Math.min(n,g(i,"y")):n)-N-j,L.css({width:"",height:_.h}),J.position(),w(it),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&h.addEventListener&&(h.addEventListener("focus",f,!0),st.one(rt,function(){h.removeEventListener("focus",f,!0)})),_.get("returnFocus")&&st.one(rt,function(){d(_.el).focus()})),n=parseFloat(_.get("opacity")),y.css({opacity:n==n?n:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(T):B.appendTo("<div/>"),function(){var t,e,i,n=J.prep,o=++dt;{var h;U=!(q=!0),w(at),w(nt),_.get("onLoad"),_.h=_.get("height")?g(_.get("height"),"y")-N-j:_.get("innerHeight")&&g(_.get("innerHeight"),"y"),_.w=_.get("width")?g(_.get("width"),"x")-z-D:_.get("innerWidth")&&g(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=g(_.get("maxWidth"),"x")-z-D,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=g(_.get("maxHeight"),"y")-N-j,_.mh=_.h&&_.h<_.mh?_.h:_.mh),t=_.get("href"),Q=setTimeout(function(){S.show()},100),_.get("inline")?(h=d(t),i=d("<div>").hide().insertBefore(h),st.one(at,function(){i.replaceWith(h)}),n(h)):_.get("iframe")?n(" "):_.get("html")?n(_.get("html")):u(_,t)?(t=p(_,t),U=_.get("createImg"),d(U).addClass(tt+"Photo").bind("error."+tt,function(){n(a(lt,"Error").html(_.get("imgError")))}).one("load",function(){o===dt&&setTimeout(function(){var t;_.get("retinaImage")&&1<r.devicePixelRatio&&(U.height=U.height/r.devicePixelRatio,U.width=U.width/r.devicePixelRatio),_.get("scalePhotos")&&(e=function(){U.height-=U.height*t,U.width-=U.width*t},_.mw&&U.width>_.mw&&(t=(U.width-_.mw)/U.width,e()),_.mh&&U.height>_.mh&&(t=(U.height-_.mh)/U.height,e())),_.h&&(U.style.marginTop=Math.max(_.mh-U.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(U.style.cursor="pointer",d(U).bind("click."+tt,function(){J.next()})),U.style.width=U.width+"px",U.style.height=U.height+"px",n(U)},1)}),U.src=t):t&&M.load(t,_.get("data"),function(t,e){o===dt&&n("error"===e?a(lt,"Error").html(_.get("xhrError")):d(this).contents())})}}())}function v(){x||(V=!1,E=d(r),x=a(lt).attr({id:Z,class:!1===d.support.opacity?tt+"IE":"",role:"dialog",tabindex:"-1"}).hide(),y=a(lt,"Overlay").hide(),S=d([a(lt,"LoadingOverlay")[0],a(lt,"LoadingGraphic")[0]]),b=a(lt,"Wrapper"),T=a(lt,"Content").append(F=a(lt,"Title"),R=a(lt,"Current"),P=d('<button type="button"/>').attr({id:tt+"Previous"}),K=d('<button type="button"/>').attr({id:tt+"Next"}),t=a("button","Slideshow"),S),B=d('<button type="button"/>').attr({id:tt+"Close"}),b.append(a(lt).append(a(lt,"TopLeft"),C=a(lt,"TopCenter"),a(lt,"TopRight")),a(lt,!1,"clear:left").append(k=a(lt,"MiddleLeft"),T,H=a(lt,"MiddleRight")),a(lt,!1,"clear:left").append(a(lt,"BottomLeft"),I=a(lt,"BottomCenter"),a(lt,"BottomRight"))).find("div div").css({float:"left"}),M=a(lt,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(R).add(t)),h.body&&!x.parent().length&&d(h.body).append(y,x.append(b,M))}var y,x,b,T,C,k,H,I,W,E,L,M,S,F,R,t,K,P,B,O,_,j,D,N,z,A,U,$,q,G,Q,J,V,e,i,n,X,Y={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"Image {current}/{total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return d(this).attr("href")},title:function(){return this.title},createImg:function(){var i=new Image,t=d(this).data("cbox-img-attrs");return"object"==typeof t&&d.each(t,function(t,e){i[t]=e}),i},createIframe:function(){var i=h.createElement("iframe"),t=d(this).data("cbox-iframe-attrs");return"object"==typeof t&&d.each(t,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullScreen=!0,i}},Z="colorbox",tt="cbox",et=tt+"Element",it=tt+"_open",nt=tt+"_load",ot=tt+"_complete",ht=tt+"_cleanup",rt=tt+"_closed",at=tt+"_purge",st=d("<a/>"),lt="div",dt=0,ct={},gt=(n=tt+"Slideshow_",X="click."+tt,function(){e?_.get("slideshow")||(st.unbind(ht,wt),wt()):_.get("slideshow")&&W[1]&&(e=!0,st.one(ht,wt),(_.get("slideshowAuto")?ft:mt)(),t.show())});function ut(){clearTimeout(i)}function pt(){(_.get("loop")||W[A+1])&&(ut(),i=setTimeout(J.next,_.get("slideshowSpeed")))}function ft(){t.html(_.get("slideshowStop")).unbind(X).one(X,mt),st.bind(ot,pt).bind(nt,ut),x.removeClass(n+"off").addClass(n+"on")}function mt(){ut(),st.unbind(ot,pt).unbind(nt,ut),t.html(_.get("slideshowStart")).unbind(X).one(X,function(){J.next(),ft()}),x.removeClass(n+"on").addClass(n+"off")}function wt(){e=!1,t.hide(),ut(),st.unbind(ot,pt).unbind(nt,ut),x.removeClass(n+"off "+n+"on")}d[Z]||(d(v),(J=d.fn[Z]=d[Z]=function(e,t){var i=this;return e=e||{},d.isFunction(i)&&(i=d("<a/>"),e.open=!0),i[0]&&(v(),x&&(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),y.click(function(){_.get("overlayClose")&&J.close()}),d(h).bind("keydown."+tt,function(t){var e=t.keyCode;$&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),$&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),d.isFunction(d.fn.on)?d(h).on("click."+tt,"."+et,n):d("."+et).live("click."+tt,n)),1)&&(t&&(e.onComplete=t),i.each(function(){var t=d.data(this,Z)||{};d.data(this,Z,d.extend(t,e))}).addClass(et),new s(i[0],e).get("open")&&o(i[0]))),i;function n(t){1<t.which||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),o(this))}}).position=function(e,t){function i(){C[0].style.width=I[0].style.width=T[0].style.width=parseInt(x[0].style.width,10)-D+"px",T[0].style.height=k[0].style.height=H[0].style.height=parseInt(x[0].style.height,10)-j+"px"}var n,o,h,r,a=0,s=0,l=x.offset();E.unbind("resize."+tt),x.css({top:-9e4,left:-9e4}),o=E.scrollTop(),h=E.scrollLeft(),_.get("fixed")?(l.top-=o,l.left-=h,x.css({position:"fixed"})):(a=o,s=h,x.css({position:"absolute"})),s+=!1!==_.get("right")?Math.max(E.width()-_.w-z-D-g(_.get("right"),"x"),0):!1!==_.get("left")?g(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),a+=!1!==_.get("bottom")?Math.max(c()-_.h-N-j-g(_.get("bottom"),"y"),0):!1!==_.get("top")?g(_.get("top"),"y"):Math.round(Math.max(c()-_.h-N-j,0)/2),x.css({top:l.top,left:l.left,visibility:"visible"}),b[0].style.width=b[0].style.height="9999px",n={width:_.w+z+D,height:_.h+N+j,top:a,left:s},e&&(r=0,d.each(n,function(t){return n[t]!==ct[t]?void(r=e):void 0}),e=r),ct=n,e||x.css(n),x.dequeue().animate(n,{duration:e||0,complete:function(){i(),q=!1,b[0].style.width=_.w+z+D+"px",b[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+tt,J.position)},1),d.isFunction(t)&&t()},step:i})},J.resize=function(t){var e;$&&((t=t||{}).width&&(_.w=g(t.width,"x")-z-D),t.innerWidth&&(_.w=g(t.innerWidth,"x")),L.css({width:_.w}),t.height&&(_.h=g(t.height,"y")-N-j),t.innerHeight&&(_.h=g(t.innerHeight,"y")),t.innerHeight||t.height||(e=L.scrollTop(),L.css({height:"auto"}),_.h=L.height()),L.css({height:_.h}),e&&L.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(t){var e,o;$&&(o="none"===_.get("transition")?0:_.get("speed"),L.remove(),(L=a(lt,"LoadedContent").append(t)).hide().appendTo(M.show()).css({width:(_.w=_.w||L.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:(_.h=_.h||L.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h)}).prependTo(T),M.hide(),d(U).css({float:"none"}),m(_.get("className")),e=function(){function t(){!1===d.support.opacity&&x[0].style.removeAttribute("filter")}var e,i,n=W.length;$&&(i=function(){clearTimeout(Q),S.hide(),w(ot),_.get("onComplete")},F.html(_.get("title")).show(),L.show(),1<n?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",A+1).replace("{total}",n)).show(),K[_.get("loop")||A<n-1?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),gt(),_.get("preloading")&&d.each([l(-1),l(1)],function(){var t=W[this],e=new s(t,d.data(t,Z)),t=e.get("href");t&&u(e,t)&&(t=p(e,t),h.createElement("img").src=t)})):O.hide(),_.get("iframe")?(e=_.get("createIframe"),_.get("scrolling")||(e.scrolling="no"),d(e).attr({src:_.get("href"),class:tt+"Iframe"}).one("load",i).appendTo(L),st.one(at,function(){e.src="//about:blank"}),_.get("fastIframe")&&d(e).trigger("load")):i(),"fade"===_.get("transition")?x.fadeTo(o,1,t):t())},"fade"===_.get("transition")?x.fadeTo(o,0,function(){J.position(0,e)}):J.position(o,e))},J.next=function(){!q&&W[1]&&(_.get("loop")||W[A+1])&&(A=l(1),o(W[A]))},J.prev=function(){!q&&W[1]&&(_.get("loop")||A)&&(A=l(-1),o(W[A]))},J.close=function(){$&&!G&&($=!(G=!0),w(ht),_.get("onCleanup"),E.unbind("."+tt),y.fadeTo(_.get("fadeOut")||0,0),x.stop().fadeTo(_.get("fadeOut")||0,0,function(){x.hide(),y.hide(),w(at),L.remove(),setTimeout(function(){G=!1,w(rt),_.get("onClosed")},1)}))},J.remove=function(){x&&(x.stop(),d[Z].close(),x.stop(!1,!0).remove(),y.remove(),G=!1,x=null,d("."+et).removeData(Z).removeClass(et),d(h).unbind("click."+tt).unbind("keydown."+tt))},J.element=function(){return d(_.el)},J.settings=Y)}(jQuery,document,window);
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(d){function t(e){var t,o=e||window.event,n=p.call(arguments,1),a=0,i=0,l=0,r=0,s=0,c=0;if((e=d.event.fix(o)).type="mousewheel","detail"in o&&(l=-1*o.detail),"wheelDelta"in o&&(l=o.wheelDelta),"wheelDeltaY"in o&&(l=o.wheelDeltaY),"wheelDeltaX"in o&&(i=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(i=-1*l,l=0),a=0===l?i:l,"deltaY"in o&&(a=l=-1*o.deltaY),"deltaX"in o&&(i=o.deltaX,0===l&&(a=-1*i)),0!==l||0!==i){1===o.deltaMode?(a*=t=d.data(this,"mousewheel-line-height"),l*=t,i*=t):2===o.deltaMode&&(a*=t=d.data(this,"mousewheel-page-height"),l*=t,i*=t);var r=Math.max(Math.abs(l),Math.abs(i));return m&&!(r<m)||h(o,m=r)&&(m/=40),h(o,r)&&(a/=40,i/=40,l/=40),a=Math[1<=a?"floor":"ceil"](a/m),i=Math[1<=i?"floor":"ceil"](i/m),l=Math[1<=l?"floor":"ceil"](l/m),g.settings.normalizeOffset&&this.getBoundingClientRect&&(r=this.getBoundingClientRect(),s=e.clientX-r.left,c=e.clientY-r.top),e.deltaX=i,e.deltaY=l,e.deltaFactor=m,e.offsetX=s,e.offsetY=c,e.deltaMode=0,n.unshift(e,a,i,l),f&&clearTimeout(f),f=setTimeout(u,200),(d.event.dispatch||d.event.handle).apply(this,n)}}function u(){m=null}function h(e,t){return g.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var f,m,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],p=Array.prototype.slice;if(d.event.fixHooks)for(var n=e.length;n;)d.event.fixHooks[e[--n]]=d.event.mouseHooks;var g=d.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=o.length;e;)this.addEventListener(o[--e],t,!1);else this.onmousewheel=t;d.data(this,"mousewheel-line-height",g.getLineHeight(this)),d.data(this,"mousewheel-page-height",g.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=o.length;e;)this.removeEventListener(o[--e],t,!1);else this.onmousewheel=null;d.removeData(this,"mousewheel-line-height"),d.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=d(e),e=t["offsetParent"in d.fn?"offsetParent":"parent"]();return e.length||(e=d("body")),parseInt(e.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return d(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};d.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(d){function t(e){var t,o=e||window.event,n=p.call(arguments,1),a=0,i=0,l=0,r=0,s=0,c=0;if((e=d.event.fix(o)).type="mousewheel","detail"in o&&(l=-1*o.detail),"wheelDelta"in o&&(l=o.wheelDelta),"wheelDeltaY"in o&&(l=o.wheelDeltaY),"wheelDeltaX"in o&&(i=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(i=-1*l,l=0),a=0===l?i:l,"deltaY"in o&&(a=l=-1*o.deltaY),"deltaX"in o&&(i=o.deltaX,0===l&&(a=-1*i)),0!==l||0!==i){1===o.deltaMode?(a*=t=d.data(this,"mousewheel-line-height"),l*=t,i*=t):2===o.deltaMode&&(a*=t=d.data(this,"mousewheel-page-height"),l*=t,i*=t);var r=Math.max(Math.abs(l),Math.abs(i));return m&&!(r<m)||h(o,m=r)&&(m/=40),h(o,r)&&(a/=40,i/=40,l/=40),a=Math[1<=a?"floor":"ceil"](a/m),i=Math[1<=i?"floor":"ceil"](i/m),l=Math[1<=l?"floor":"ceil"](l/m),g.settings.normalizeOffset&&this.getBoundingClientRect&&(r=this.getBoundingClientRect(),s=e.clientX-r.left,c=e.clientY-r.top),e.deltaX=i,e.deltaY=l,e.deltaFactor=m,e.offsetX=s,e.offsetY=c,e.deltaMode=0,n.unshift(e,a,i,l),f&&clearTimeout(f),f=setTimeout(u,200),(d.event.dispatch||d.event.handle).apply(this,n)}}function u(){m=null}function h(e,t){return g.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var f,m,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],p=Array.prototype.slice;if(d.event.fixHooks)for(var n=e.length;n;)d.event.fixHooks[e[--n]]=d.event.mouseHooks;var g=d.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=o.length;e;)this.addEventListener(o[--e],t,!1);else this.onmousewheel=t;d.data(this,"mousewheel-line-height",g.getLineHeight(this)),d.data(this,"mousewheel-page-height",g.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=o.length;e;)this.removeEventListener(o[--e],t,!1);else this.onmousewheel=null;d.removeData(this,"mousewheel-line-height"),d.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=d(e),e=t["offsetParent"in d.fn?"offsetParent":"parent"]();return e.length||(e=d("body")),parseInt(e.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return d(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};d.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(L){var R,s,A,n,a,r,i,p,z,g,h,c,d,u,f,m,v,x,w,_,S,b,y,C,B,T,M,k,W,l,D,O,I,E,H,P,X,Y,j,U,F,q,N,V,Q,Z,G,J,K,$,t,ee,te,oe,ne,ae,ie,e,o,le;e="function"==typeof define&&define.amd,o="undefined"!=typeof module&&module.exports,le="https:"==document.location.protocol?"https:":"http:",e||(o?require("jquery-mousewheel")(L):L.event.special.mousewheel||L("head").append(decodeURI("%3Cscript src="+le+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),s="mCustomScrollbar",A="mCS",n=".mCustomScrollbar",a={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}},r=0,i={},p=window.attachEvent&&!window.addEventListener?1:0,z=!1,g=["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"],h={init:function(l){var l=L.extend(!0,{},a,l),e=c.call(this);if(l.live){var t=l.liveSelector||this.selector||n,o=L(t);if("off"===l.live)return void u(t);i[t]=setTimeout(function(){o.mCustomScrollbar(l),"once"===l.live&&o.length&&u(t)},500)}else u(t);return l.setWidth=l.set_width||l.setWidth,l.setHeight=l.set_height||l.setHeight,l.axis=l.horizontalScroll?"x":f(l.axis),l.scrollInertia=0<l.scrollInertia&&l.scrollInertia<17?17:l.scrollInertia,"object"!=typeof l.mouseWheel&&1==l.mouseWheel&&(l.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),l.mouseWheel.scrollAmount=l.mouseWheelPixels||l.mouseWheel.scrollAmount,l.mouseWheel.normalizeDelta=l.advanced.normalizeMouseWheelDelta||l.mouseWheel.normalizeDelta,l.scrollButtons.scrollType=m(l.scrollButtons.scrollType),d(l),L(e).each(function(){var e,t,o,n,a,i=L(this);i.data(A)||(i.data(A,{idx:++r,opt:l,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}}}),t=(e=i.data(A)).opt,o=i.data("mcs-axis"),n=i.data("mcs-scrollbar-position"),a=i.data("mcs-theme"),o&&(t.axis=o),n&&(t.scrollbarPosition=n),a&&(t.theme=a,d(t)),v.call(this),e&&t.callbacks.onCreate&&"function"==typeof t.callbacks.onCreate&&t.callbacks.onCreate.call(this),L("#mCSB_"+e.idx+"_container img:not(."+g[2]+")").addClass(g[2]),h.update.call(null,i))})},update:function(e,l){e=e||c.call(this);return L(e).each(function(){var e,t,o,n,a,i=L(this);i.data(A)&&(t=(e=i.data(A)).opt,a=L("#mCSB_"+e.idx+"_container"),o=L("#mCSB_"+e.idx),n=[L("#mCSB_"+e.idx+"_dragger_vertical"),L("#mCSB_"+e.idx+"_dragger_horizontal")],a.length&&(e.tweenRunning&&G(i),l&&e&&t.callbacks.onBeforeUpdate&&"function"==typeof t.callbacks.onBeforeUpdate&&t.callbacks.onBeforeUpdate.call(this),i.hasClass(g[3])&&i.removeClass(g[3]),i.hasClass(g[4])&&i.removeClass(g[4]),o.css("max-height","none"),o.height()!==i.height()&&o.css("max-height",i.height()),w.call(this),"y"===t.axis||t.advanced.autoExpandHorizontalScroll||a.css("width",x(a)),e.overflowed=C.call(this),k.call(this),t.autoDraggerLength&&S.call(this),b.call(this),T.call(this),a=[Math.abs(a[0].offsetTop),Math.abs(a[0].offsetLeft)],"x"!==t.axis&&(e.overflowed[0]?n[0].height()>n[0].parent().height()?B.call(this):(J(i,a[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(B.call(this),"y"===t.axis?M.call(this):"yx"===t.axis&&e.overflowed[1]&&J(i,a[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==t.axis&&(e.overflowed[1]?n[1].width()>n[1].parent().width()?B.call(this):(J(i,a[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(B.call(this),"x"===t.axis?M.call(this):"yx"===t.axis&&e.overflowed[0]&&J(i,a[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),l&&e&&(2===l&&t.callbacks.onImageLoad&&"function"==typeof t.callbacks.onImageLoad?t.callbacks.onImageLoad.call(this):3===l&&t.callbacks.onSelectorChange&&"function"==typeof t.callbacks.onSelectorChange?t.callbacks.onSelectorChange.call(this):t.callbacks.onUpdate&&"function"==typeof t.callbacks.onUpdate&&t.callbacks.onUpdate.call(this)),Z.call(this)))})},scrollTo:function(l,r){if(void 0!==l&&null!=l){var e=c.call(this);return L(e).each(function(){var e,t,o,n,a,i=L(this);i.data(A)&&(e=i.data(A),a={trigger:"external",scrollInertia:(t=e.opt).scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},o=L.extend(!0,{},a,r),n=V.call(this,l),a=0<o.scrollInertia&&o.scrollInertia<17?17:o.scrollInertia,n[0]=Q.call(this,n[0],"y"),n[1]=Q.call(this,n[1],"x"),o.moveDragger&&(n[0]*=e.scrollRatio.y,n[1]*=e.scrollRatio.x),o.dur=ie()?0:a,setTimeout(function(){null!==n[0]&&void 0!==n[0]&&"x"!==t.axis&&e.overflowed[0]&&(o.dir="y",o.overwrite="all",J(i,n[0].toString(),o)),null!==n[1]&&void 0!==n[1]&&"y"!==t.axis&&e.overflowed[1]&&(o.dir="x",o.overwrite="none",J(i,n[1].toString(),o))},o.timeout))})}},stop:function(){var e=c.call(this);return L(e).each(function(){var e=L(this);e.data(A)&&G(e)})},disable:function(t){var e=c.call(this);return L(e).each(function(){var e=L(this);e.data(A)&&(e.data(A),Z.call(this,"remove"),M.call(this),t&&B.call(this),k.call(this,!0),e.addClass(g[3]))})},destroy:function(){var l=c.call(this);return L(l).each(function(){var e,t,o,n,a,i=L(this);i.data(A)&&(t=(e=i.data(A)).opt,o=L("#mCSB_"+e.idx),n=L("#mCSB_"+e.idx+"_container"),a=L(".mCSB_"+e.idx+"_scrollbar"),t.live&&u(t.liveSelector||L(l).selector),Z.call(this,"remove"),M.call(this),B.call(this),i.removeData(A),ee(this,"mcs"),a.remove(),n.find("img."+g[2]).removeClass(g[2]),o.replaceWith(n.contents()),i.removeClass(s+" _"+A+"_"+e.idx+" "+g[6]+" "+g[7]+" "+g[5]+" "+g[3]).addClass(g[4]))})}},c=function(){return"object"!=typeof L(this)||L(this).length<1?n:this},d=function(e){e.autoDraggerLength=!(-1<L.inArray(e.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"]))&&e.autoDraggerLength,e.autoExpandScrollbar=!(-1<L.inArray(e.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"]))&&e.autoExpandScrollbar,e.scrollButtons.enable=!(-1<L.inArray(e.theme,["minimal","minimal-dark"]))&&e.scrollButtons.enable,e.autoHideScrollbar=-1<L.inArray(e.theme,["minimal","minimal-dark"])||e.autoHideScrollbar,e.scrollbarPosition=-1<L.inArray(e.theme,["minimal","minimal-dark"])?"outside":e.scrollbarPosition},u=function(e){i[e]&&(clearTimeout(i[e]),ee(i,e))},f=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},m=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var e=L(this),t=e.data(A),o=t.opt,n=o.autoExpandScrollbar?" "+g[1]+"_expand":"",a=["<div id='mCSB_"+t.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+o.theme+" mCSB_scrollTools_vertical"+n+"'><div class='"+g[12]+"'><div id='mCSB_"+t.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+t.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+o.theme+" mCSB_scrollTools_horizontal"+n+"'><div class='"+g[12]+"'><div id='mCSB_"+t.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],i="yx"===o.axis?"mCSB_vertical_horizontal":"x"===o.axis?"mCSB_horizontal":"mCSB_vertical",l="yx"===o.axis?a[0]+a[1]:"x"===o.axis?a[1]:a[0],r="yx"===o.axis?"<div id='mCSB_"+t.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",n=o.autoHideScrollbar?" "+g[6]:"",a="x"!==o.axis&&"rtl"===t.langDir?" "+g[7]:"";o.setWidth&&e.css("width",o.setWidth),o.setHeight&&e.css("height",o.setHeight),o.setLeft="y"!==o.axis&&"rtl"===t.langDir?"989999px":o.setLeft,e.addClass(s+" _"+A+"_"+t.idx+n+a).wrapInner("<div id='mCSB_"+t.idx+"' class='mCustomScrollBox mCS-"+o.theme+" "+i+"'><div id='mCSB_"+t.idx+"_container' class='mCSB_container' style='position:relative; top:"+o.setTop+"; left:"+o.setLeft+";' dir='"+t.langDir+"' /></div>");a=L("#mCSB_"+t.idx),i=L("#mCSB_"+t.idx+"_container");"y"===o.axis||o.advanced.autoExpandHorizontalScroll||i.css("width",x(i)),"outside"===o.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),a.addClass("mCSB_outside").after(l)):(a.addClass("mCSB_inside").append(l),i.wrap(r)),_.call(this);t=[L("#mCSB_"+t.idx+"_dragger_vertical"),L("#mCSB_"+t.idx+"_dragger_horizontal")];t[0].css("min-height",t[0].height()),t[1].css("min-width",t[1].width())},x=function(e){var t=[e[0].scrollWidth,Math.max.apply(Math,e.children().map(function(){return L(this).outerWidth(!0)}).get())],e=e.parent().width();return e<t[0]?t[0]:e<t[1]?t[1]:"100%"},w=function(){var e=L(this).data(A),t=e.opt,o=L("#mCSB_"+e.idx+"_container");t.advanced.autoExpandHorizontalScroll&&"y"!==t.axis&&(o.css({width:"auto","min-width":0,"overflow-x":"scroll"}),e=Math.ceil(o[0].scrollWidth),3===t.advanced.autoExpandHorizontalScroll||2!==t.advanced.autoExpandHorizontalScroll&&e>o.parent().width()?o.css({width:e,"min-width":"100%","overflow-x":"inherit"}):o.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(o[0].getBoundingClientRect().right+.4)-Math.floor(o[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap())},_=function(){var e=L(this).data(A),t=e.opt,o=L(".mCSB_"+e.idx+"_scrollbar:first"),e=ne(t.scrollButtons.tabindex)?"tabindex='"+t.scrollButtons.tabindex+"'":"",e=["<a href='#' class='"+g[13]+"' "+e+" />","<a href='#' class='"+g[14]+"' "+e+" />","<a href='#' class='"+g[15]+"' "+e+" />","<a href='#' class='"+g[16]+"' "+e+" />"],e=["x"===t.axis?e[2]:e[0],"x"===t.axis?e[3]:e[1],e[2],e[3]];t.scrollButtons.enable&&o.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3])},S=function(){var e=L(this).data(A),t=L("#mCSB_"+e.idx),o=L("#mCSB_"+e.idx+"_container"),e=[L("#mCSB_"+e.idx+"_dragger_vertical"),L("#mCSB_"+e.idx+"_dragger_horizontal")],t=[t.height()/o.outerHeight(!1),t.width()/o.outerWidth(!1)],o=[parseInt(e[0].css("min-height")),Math.round(t[0]*e[0].parent().height()),parseInt(e[1].css("min-width")),Math.round(t[1]*e[1].parent().width())],t=p&&o[3]<o[2]?o[2]:o[3];e[0].css({height:p&&o[1]<o[0]?o[0]:o[1],"max-height":e[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":o[0]+"px"}),e[1].css({width:t,"max-width":e[1].parent().width()-10})},b=function(){var e=L(this).data(A),t=L("#mCSB_"+e.idx),o=L("#mCSB_"+e.idx+"_container"),n=[L("#mCSB_"+e.idx+"_dragger_vertical"),L("#mCSB_"+e.idx+"_dragger_horizontal")],t=[o.outerHeight(!1)-t.height(),o.outerWidth(!1)-t.width()],n=[t[0]/(n[0].parent().height()-n[0].height()),t[1]/(n[1].parent().width()-n[1].width())];e.scrollRatio={y:n[0],x:n[1]}},y=function(e,t,o){var n=o?g[0]+"_expanded":"",o=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(g[0]+" "+n),o.toggleClass(g[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(g[0]),o.removeClass(g[1])):(e.addClass(g[0]),o.addClass(g[1])))},C=function(){var e=L(this).data(A),t=L("#mCSB_"+e.idx),o=L("#mCSB_"+e.idx+"_container"),n=null==e.overflowed?o.height():o.outerHeight(!1),a=null==e.overflowed?o.width():o.outerWidth(!1),e=o[0].scrollHeight,o=o[0].scrollWidth;return a<o&&(a=o),[(n=n<e?e:n)>t.height(),a>t.width()]},B=function(){var e=L(this),t=e.data(A),o=t.opt,n=L("#mCSB_"+t.idx),a=L("#mCSB_"+t.idx+"_container"),i=[L("#mCSB_"+t.idx+"_dragger_vertical"),L("#mCSB_"+t.idx+"_dragger_horizontal")];G(e),("x"!==o.axis&&!t.overflowed[0]||"y"===o.axis&&t.overflowed[0])&&(i[0].add(a).css("top",0),J(e,"_resetY")),("y"!==o.axis&&!t.overflowed[1]||"x"===o.axis&&t.overflowed[1])&&(o=dx=0,"rtl"===t.langDir&&(o=n.width()-a.outerWidth(!1),dx=Math.abs(o/t.scrollRatio.x)),a.css("left",o),i[1].css("left",dx),J(e,"_resetX"))},T=function(){var t,o=L(this),e=o.data(A),n=e.opt;e.bindEvents||(l.call(this),n.contentTouchScroll&&D.call(this),O.call(this),n.mouseWheel.enable&&function e(){t=setTimeout(function(){L.event.special.mousewheel?(clearTimeout(t),I.call(o[0])):e()},100)}(),Y.call(this),U.call(this),n.advanced.autoScrollOnFocus&&j.call(this),n.scrollButtons.enable&&F.call(this),n.keyboard.enable&&q.call(this),e.bindEvents=!0)},M=function(){var e=L(this),t=e.data(A),o=t.opt,n="mCS_"+t.idx,a=".mCSB_"+t.idx+"_scrollbar",i=L("#mCSB_"+t.idx+",#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,"+a+" ."+g[12]+",#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal,"+a+">a"),a=L("#mCSB_"+t.idx+"_container");o.advanced.releaseDraggableSelectors&&i.add(L(o.advanced.releaseDraggableSelectors)),o.advanced.extraDraggableSelectors&&i.add(L(o.advanced.extraDraggableSelectors)),t.bindEvents&&(L(document).add(L(!H()||top.document)).unbind("."+n),i.each(function(){L(this).unbind("."+n)}),clearTimeout(e[0]._focusTimeout),ee(e[0],"_focusTimeout"),clearTimeout(t.sequential.step),ee(t.sequential,"step"),clearTimeout(a[0].onCompleteTimeout),ee(a[0],"onCompleteTimeout"),t.bindEvents=!1)},k=function(e){var t=L(this),o=t.data(A),n=o.opt,a=L("#mCSB_"+o.idx+"_container_wrapper"),i=a.length?a:L("#mCSB_"+o.idx+"_container"),l=[L("#mCSB_"+o.idx+"_scrollbar_vertical"),L("#mCSB_"+o.idx+"_scrollbar_horizontal")],a=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==n.axis&&(o.overflowed[0]&&!e?(l[0].add(a[0]).add(l[0].children("a")).css("display","block"),i.removeClass(g[8]+" "+g[10])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&a[0].css("display","none"),i.removeClass(g[10])):(l[0].css("display","none"),i.addClass(g[10])),i.addClass(g[8]))),"y"!==n.axis&&(o.overflowed[1]&&!e?(l[1].add(a[1]).add(l[1].children("a")).css("display","block"),i.removeClass(g[9]+" "+g[11])):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&a[1].css("display","none"),i.removeClass(g[11])):(l[1].css("display","none"),i.addClass(g[11])),i.addClass(g[9]))),o.overflowed[0]||o.overflowed[1]?t.removeClass(g[5]):t.addClass(g[5])},W=function(e){var t=e.type,o=e.target.ownerDocument!==document&&null!==frameElement?[L(frameElement).offset().top,L(frameElement).offset().left]:null,n=H()&&e.target.ownerDocument!==top.document&&null!==frameElement?[L(e.view.frameElement).offset().top,L(e.view.frameElement).offset().left]:[0,0];switch(t){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 a=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],i=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[a.screenY,a.screenX,1<i]:[a.pageY,a.pageX,1<i];default:return o?[e.pageY-o[0]+n[0],e.pageX-o[1]+n[1],!1]:[e.pageY,e.pageX,!1]}},l=function(){function n(e,t,o,n){var a;u[0].idleTimer=c.scrollInertia<233?250:0,o=i.attr("id")===d[1]?(a="x",(i[0].offsetLeft-t+n)*s.scrollRatio.x):(a="y",(i[0].offsetTop-e+o)*s.scrollRatio.y),J(r,o.toString(),{dir:a,drag:!0})}var i,a,l,r=L(this),s=r.data(A),c=s.opt,e="mCS_"+s.idx,d=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],u=L("#mCSB_"+s.idx+"_container"),t=L("#"+d[0]+",#"+d[1]),o=c.advanced.releaseDraggableSelectors?t.add(L(c.advanced.releaseDraggableSelectors)):t,h=c.advanced.extraDraggableSelectors?L(!H()||top.document).add(L(c.advanced.extraDraggableSelectors)):L(!H()||top.document);t.bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){var t,o,n;e.stopImmediatePropagation(),e.preventDefault(),te(e)&&(z=!0,p&&(document.onselectstart=function(){return!1}),P.call(u,!1),G(r),n=(i=L(this)).offset(),t=W(e)[0]-n.top,o=W(e)[1]-n.left,e=i.height()+n.top,n=i.width()+n.left,t<e&&0<t&&o<n&&0<o&&(a=t,l=o),y(i,"active",c.autoExpandScrollbar))}).bind("touchmove."+e,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=i.offset(),o=W(e)[0]-t.top,t=W(e)[1]-t.left;n(a,l,o,t)}),L(document).add(h).bind("mousemove."+e+" pointermove."+e+" MSPointerMove."+e,function(e){var t,o;i&&(o=i.offset(),t=W(e)[0]-o.top,o=W(e)[1]-o.left,a===t&&l===o||n(a,l,t,o))}).add(o).bind("mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){i&&(y(i,"active",c.autoExpandScrollbar),i=null),z=!1,p&&(document.onselectstart=null),P.call(u,!0)})},D=function(){function t(e){if(!oe(e)||z||W(e)[2])return R=0;x=v=0,r=R=1,w.removeClass("mCS_touch_action");var t=C.offset();s=W(e)[0]-t.top,c=W(e)[1]-t.left,D=[W(e)[0],W(e)[1]]}function o(e){var t,o,n,a,i;!oe(e)||z||W(e)[2]||(S.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),x&&!v||!r)||(f=$(),n=b.offset(),t=W(e)[0]-n.top,o=W(e)[1]-n.left,n="mcsLinearOut",B.push(t),T.push(o),D[2]=Math.abs(W(e)[0]-D[0]),D[3]=Math.abs(W(e)[1]-D[1]),_.overflowed[0]&&(a=y[0].parent().height()-y[0].height(),a=0<s-t&&t-s>-(a*_.scrollRatio.y)&&(2*D[3]<D[2]||"yx"===S.axis)),_.overflowed[1]&&(i=y[1].parent().width()-y[1].width(),i=0<c-o&&o-c>-(i*_.scrollRatio.x)&&(2*D[2]<D[3]||"yx"===S.axis)),a||i?(E||e.preventDefault(),v=1):(x=1,w.addClass("mCS_touch_action")),E&&e.preventDefault(),p="yx"===S.axis?[s-t,c-o]:"x"===S.axis?[null,c-o]:[s-t,null],C[0].idleTimer=250,_.overflowed[0]&&l(p[0],M,n,"y","all",!0),_.overflowed[1]&&l(p[1],M,n,"x",k,!0))}function n(e){if(!oe(e)||z||W(e)[2])return R=0;R=1,e.stopImmediatePropagation(),G(w),h=$();var t=b.offset();d=W(e)[0]-t.top,u=W(e)[1]-t.left,B=[],T=[]}function a(e){var t,o,n,a;!oe(e)||z||W(e)[2]||(r=0,e.stopImmediatePropagation(),x=v=0,m=$(),n=b.offset(),t=W(e)[0]-n.top,a=W(e)[1]-n.left,30<m-f||(o="mcsEaseOut",n=(e=(g=1e3/(m-h))<2.5)?[B[B.length-2],T[T.length-2]]:[0,0],m=e?[t-n[0],a-n[1]]:[t-d,a-u],a=[Math.abs(m[0]),Math.abs(m[1])],g=e?[Math.abs(m[0]/4),Math.abs(m[1]/4)]:[g,g],e=[Math.abs(C[0].offsetTop)-m[0]*i(a[0]/g[0],g[0]),Math.abs(C[0].offsetLeft)-m[1]*i(a[1]/g[1],g[1])],p="yx"===S.axis?[e[0],e[1]]:"x"===S.axis?[null,e[1]]:[e[0],null],g=[4*a[0]+S.scrollInertia,4*a[1]+S.scrollInertia],e=parseInt(S.contentTouchScroll)||0,p[0]=e<a[0]?p[0]:0,p[1]=e<a[1]?p[1]:0,_.overflowed[0]&&l(p[0],g[0],o,"y",k,!1),_.overflowed[1]&&l(p[1],g[1],o,"x",k,!1)))}function i(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return 90<e?4<t?o[0]:o[3]:60<e?3<t?o[3]:o[2]:30<e?8<t?o[1]:6<t?o[0]:4<t?t:o[2]:8<t?t:o[3]}function l(e,t,o,n,a,i){e&&J(w,e.toString(),{dur:t,scrollEasing:o,dir:n,overwrite:a,drag:i})}var r,s,c,d,u,h,f,m,p,g,v,x,w=L(this),_=w.data(A),S=_.opt,e="mCS_"+_.idx,b=L("#mCSB_"+_.idx),C=L("#mCSB_"+_.idx+"_container"),y=[L("#mCSB_"+_.idx+"_dragger_vertical"),L("#mCSB_"+_.idx+"_dragger_horizontal")],B=[],T=[],M=0,k="yx"===S.axis?"none":"all",D=[],O=C.find("iframe"),I=["touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,"touchmove."+e+" pointermove."+e+" MSPointerMove."+e,"touchend."+e+" pointerup."+e+" MSPointerUp."+e],E=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;C.bind(I[0],function(e){t(e)}).bind(I[1],function(e){o(e)}),b.bind(I[0],function(e){n(e)}).bind(I[2],function(e){a(e)}),O.length&&O.each(function(){L(this).bind("load",function(){H(this)&&L(this.contentDocument||this.contentWindow.document).bind(I[0],function(e){t(e),n(e)}).bind(I[1],function(e){o(e)}).bind(I[2],function(e){a(e)})})})},O=function(){function n(e,t,o){s.type=o&&a?"stepped":"stepless",s.scrollAmount=10,N(i,e,t,"mcsLinearOut",o?60:null)}var a,i=L(this),l=i.data(A),r=l.opt,s=l.sequential,e="mCS_"+l.idx,c=L("#mCSB_"+l.idx+"_container"),d=c.parent();c.bind("mousedown."+e,function(){R||a||(a=1,z=!0)}).add(document).bind("mousemove."+e,function(e){var t,o;!R&&a&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&document.selection.createRange().text)&&(o=c.offset(),t=W(e)[0]-o.top+c[0].offsetTop,o=W(e)[1]-o.left+c[0].offsetLeft,0<t&&t<d.height()&&0<o&&o<d.width()?s.step&&n("off",null,"stepped"):("x"!==r.axis&&l.overflowed[0]&&(t<0?n("on",38):t>d.height()&&n("on",40)),"y"!==r.axis&&l.overflowed[1]&&(o<0?n("on",37):o>d.width()&&n("on",39))))}).bind("mouseup."+e+" dragend."+e,function(){R||(a&&(a=0,n("off",null)),z=!1)})},I=function(){function o(e,t){var o,n,a,i,l,r,s,c;G(d),X(d,e.target)||(o="auto"!==h.mouseWheel.deltaFactor?parseInt(h.mouseWheel.deltaFactor):!(p&&e.deltaFactor<100)&&e.deltaFactor||100,n=h.scrollInertia,t="x"===h.axis||"x"===h.mouseWheel.axis?(a="x",i=[Math.round(o*u.scrollRatio.x),parseInt(h.mouseWheel.scrollAmount)],l="auto"!==h.mouseWheel.scrollAmount?i[1]:i[0]>=f.width()?.9*f.width():i[0],r=Math.abs(L("#mCSB_"+u.idx+"_container")[0].offsetLeft),s=m[1][0].offsetLeft,c=m[1].parent().width()-m[1].width(),"y"===h.mouseWheel.axis?e.deltaY||t:e.deltaX):(a="y",i=[Math.round(o*u.scrollRatio.y),parseInt(h.mouseWheel.scrollAmount)],l="auto"!==h.mouseWheel.scrollAmount?i[1]:i[0]>=f.height()?.9*f.height():i[0],r=Math.abs(L("#mCSB_"+u.idx+"_container")[0].offsetTop),s=m[0][0].offsetTop,c=m[0].parent().height()-m[0].height(),e.deltaY||t),"y"===a&&!u.overflowed[0]||"x"===a&&!u.overflowed[1]||((h.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(t=-t),(0<(t=h.mouseWheel.normalizeDelta?t<0?-1:1:t)&&0!==s||t<0&&s!==c||h.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!h.mouseWheel.normalizeDelta&&(l=e.deltaFactor,n=17),J(d,(r-t*l).toString(),{dir:a,dur:n})))}var d,u,h,e,f,m,t;L(this).data(A)&&(d=L(this),u=d.data(A),h=u.opt,e="mCS_"+u.idx,f=L("#mCSB_"+u.idx),m=[L("#mCSB_"+u.idx+"_dragger_vertical"),L("#mCSB_"+u.idx+"_dragger_horizontal")],(t=L("#mCSB_"+u.idx+"_container").find("iframe")).length&&t.each(function(){L(this).bind("load",function(){H(this)&&L(this.contentDocument||this.contentWindow.document).bind("mousewheel."+e,function(e,t){o(e,t)})})}),f.bind("mousewheel."+e,function(e,t){o(e,t)}))},E=new Object,H=function(e){var t=!1,o=!1,n=null;if(void 0===e?o="#empty":void 0!==L(e).attr("id")&&(o=L(e).attr("id")),!1!==o&&void 0!==E[o])return E[o];if(e){try{n=(e.contentDocument||e.contentWindow.document).body.innerHTML}catch(e){}t=null!==n}else{try{n=top.document.body.innerHTML}catch(e){}t=null!==n}return!1!==o&&(E[o]=t),t},P=function(e){var t=this.find("iframe");t.length&&t.css("pointer-events",e?"auto":"none")},X=function(e,t){var o=t.nodeName.toLowerCase(),e=e.data(A).opt.mouseWheel.disableOver;return-1<L.inArray(o,e)&&!(-1<L.inArray(o,["select","textarea"])&&!L(t).is(":focus"))},Y=function(){var l,r=L(this),s=r.data(A),e="mCS_"+s.idx,c=L("#mCSB_"+s.idx+"_container"),d=c.parent();L(".mCSB_"+s.idx+"_scrollbar ."+g[12]).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){z=!0,L(e.target).hasClass("mCSB_dragger")||(l=1)}).bind("touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){z=!1}).bind("click."+e,function(e){if(l&&(l=0,L(e.target).hasClass(g[12])||L(e.target).hasClass("mCSB_draggerRail"))){G(r);var t=L(this),o=t.find(".mCSB_dragger");if(0<t.parent(".mCSB_scrollTools_horizontal").length){if(!s.overflowed[1])return;var n="x",a=e.pageX>o.offset().left?-1:1,i=Math.abs(c[0].offsetLeft)-a*(.9*d.width())}else{if(!s.overflowed[0])return;n="y",a=e.pageY>o.offset().top?-1:1,i=Math.abs(c[0].offsetTop)-a*(.9*d.height())}J(r,i.toString(),{dir:n,scrollEasing:"mcsEaseInOut"})}})},j=function(){var a=L(this),e=a.data(A),i=e.opt,t="mCS_"+e.idx,l=L("#mCSB_"+e.idx+"_container"),r=l.parent();l.bind("focusin."+t,function(){var n=L(document.activeElement),e=l.find(".mCustomScrollBox").length;n.is(i.advanced.autoScrollOnFocus)&&(G(a),clearTimeout(a[0]._focusTimeout),a[0]._focusTimer=e?17*e:0,a[0]._focusTimeout=setTimeout(function(){var e=[ae(n)[0],ae(n)[1]],t=[l[0].offsetTop,l[0].offsetLeft],o=[0<=t[0]+e[0]&&t[0]+e[0]<r.height()-n.outerHeight(!1),0<=t[1]+e[1]&&t[0]+e[1]<r.width()-n.outerWidth(!1)],t="yx"!==i.axis||o[0]||o[1]?"all":"none";"x"===i.axis||o[0]||J(a,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:t,dur:0}),"y"===i.axis||o[1]||J(a,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:t,dur:0})},a[0]._focusTimer))})},U=function(){var e=L(this).data(A),t="mCS_"+e.idx,o=L("#mCSB_"+e.idx+"_container").parent();o.bind("scroll."+t,function(){0===o.scrollTop()&&0===o.scrollLeft()||L(".mCSB_"+e.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var n=L(this),a=n.data(A),i=a.opt,l=a.sequential,e="mCS_"+a.idx,t=".mCSB_"+a.idx+"_scrollbar";L(t+">a").bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e+" mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e+" mouseout."+e+" pointerout."+e+" MSPointerOut."+e+" click."+e,function(e){function t(e,t){l.scrollAmount=i.scrollButtons.scrollAmount,N(n,e,t)}if(e.preventDefault(),te(e)){var o=L(this).attr("class");switch(l.type=i.scrollButtons.scrollType,e.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===l.type)return;z=!0,a.tweenRunning=!1,t("on",o);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===l.type)return;z=!1,l.dir&&t("off",o);break;case"click":if("stepped"!==l.type||a.tweenRunning)return;t("on",o)}}})},q=function(){function t(e){function t(e,t){c.type=s.keyboard.scrollType,c.scrollAmount=s.keyboard.scrollAmount,"stepped"===c.type&&r.tweenRunning||N(l,e,t)}switch(e.type){case"blur":r.tweenRunning&&c.dir&&t("off",null);break;case"keydown":case"keyup":var o,n,a=e.keyCode||e.which,i="on";if("x"!==s.axis&&(38===a||40===a)||"y"!==s.axis&&(37===a||39===a)){if((38===a||40===a)&&!r.overflowed[0]||(37===a||39===a)&&!r.overflowed[1])return;"keyup"===e.type&&(i="off"),L(document.activeElement).is(h)||(e.preventDefault(),e.stopImmediatePropagation(),t(i,a))}else 33===a||34===a?((r.overflowed[0]||r.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type&&(G(l),n=34===a?-1:1,n="x"===s.axis||"yx"===s.axis&&r.overflowed[1]&&!r.overflowed[0]?(o="x",Math.abs(d[0].offsetLeft)-n*(.9*u.width())):(o="y",Math.abs(d[0].offsetTop)-n*(.9*u.height())),J(l,n.toString(),{dir:o,scrollEasing:"mcsEaseInOut"}))):35!==a&&36!==a||L(document.activeElement).is(h)||((r.overflowed[0]||r.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"!==e.type)||(n="x"===s.axis||"yx"===s.axis&&r.overflowed[1]&&!r.overflowed[0]?(o="x",35===a?Math.abs(u.width()-d.outerWidth(!1)):0):(o="y",35===a?Math.abs(u.height()-d.outerHeight(!1)):0),J(l,n.toString(),{dir:o,scrollEasing:"mcsEaseInOut"}))}}var l=L(this),r=l.data(A),s=r.opt,c=r.sequential,e="mCS_"+r.idx,o=L("#mCSB_"+r.idx),d=L("#mCSB_"+r.idx+"_container"),u=d.parent(),h="input,textarea,select,datalist,keygen,[contenteditable='true']",n=d.find("iframe"),a=["blur."+e+" keydown."+e+" keyup."+e];n.length&&n.each(function(){L(this).bind("load",function(){H(this)&&L(this.contentDocument||this.contentWindow.document).bind(a[0],function(e){t(e)})})}),o.attr("tabindex","0").bind(a[0],function(e){t(e)})},N=function(l,e,t,r,s){function c(e){u.snapAmount&&(h.scrollAmount=u.snapAmount instanceof Array?"x"===h.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var t="stepped"!==h.type,o=s||(e?t?m/1.5:p:1e3/60),n=e?t?7.5:40:2.5,a=[Math.abs(f[0].offsetTop),Math.abs(f[0].offsetLeft)],i=[10<d.scrollRatio.y?10:d.scrollRatio.y,10<d.scrollRatio.x?10:d.scrollRatio.x],i="x"===h.dir[0]?a[1]+h.dir[1]*(i[1]*n):a[0]+h.dir[1]*(i[0]*n),n="x"===h.dir[0]?a[1]+h.dir[1]*parseInt(h.scrollAmount):a[0]+h.dir[1]*parseInt(h.scrollAmount),n="auto"!==h.scrollAmount?n:i,i=r||(e?t?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),t=!!e;return e&&o<17&&(n="x"===h.dir[0]?a[1]:a[0]),J(l,n.toString(),{dir:h.dir[0],scrollEasing:i,dur:o,onComplete:t}),e?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){c()},o)))}var d=l.data(A),u=d.opt,h=d.sequential,f=L("#mCSB_"+d.idx+"_container"),o="stepped"===h.type,m=u.scrollInertia<26?26:u.scrollInertia,p=u.scrollInertia<1?17:u.scrollInertia;switch(e){case"on":if(h.dir=[t===g[16]||t===g[15]||39===t||37===t?"x":"y",t===g[13]||t===g[15]||38===t||37===t?-1:1],G(l),ne(t)&&"stepped"===h.type)return;c(o);break;case"off":clearTimeout(h.step),ee(h,"step"),G(l),(o||d.tweenRunning&&h.dir)&&c(!0)}},V=function(e){var t=L(this).data(A).opt,o=[];return(e="function"==typeof e?e():e)instanceof Array?o=1<e.length?[e[0],e[1]]:"x"===t.axis?[null,e[0]]:[e[0],null]:(o[0]=e.y||(e.x||"x"===t.axis?null:e),o[1]=e.x||(e.y||"y"===t.axis?null:e)),"function"==typeof o[0]&&(o[0]=o[0]()),"function"==typeof o[1]&&(o[1]=o[1]()),o},Q=function(e,t){if(null!=e&&void 0!==e){var o=L(this),n=o.data(A),a=n.opt,i=L("#mCSB_"+n.idx+"_container"),l=i.parent(),n=typeof e,r="x"===(t=t||("x"===a.axis?"x":"y"))?i.outerWidth(!1)-l.width():i.outerHeight(!1)-l.height(),s="x"===t?i[0].offsetLeft:i[0].offsetTop,c="x"===t?"left":"top";switch(n){case"function":return e();case"object":return(u=e.jquery?e:L(e)).length?"x"===t?ae(u)[1]:ae(u)[0]:void 0;case"string":case"number":if(ne(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(r*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(s-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var d=s+parseInt(e.split("+=")[1]);return 0<=d?0:Math.abs(d)}if(-1!==e.indexOf("px")&&ne(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()-i.outerHeight(!1));if("right"===e)return Math.abs(l.width()-i.outerWidth(!1));if("first"!==e&&"last"!==e)return L(e).length?"x"===t?ae(L(e))[1]:ae(L(e))[0]:(i.css(c,e),void h.update.call(null,o[0]));var u=i.find(":"+e);return"x"===t?ae(u)[1]:ae(u)[0]}}},Z=function(e){function o(e){clearTimeout(i[0].autoUpdate),h.update.call(null,t[0],e)}var t=L(this),n=t.data(A),a=n.opt,i=L("#mCSB_"+n.idx+"_container");return e?(clearTimeout(i[0].autoUpdate),void ee(i[0],"autoUpdate")):void function e(){return clearTimeout(i[0].autoUpdate),0===t.parents("html").length?void(t=null):void(i[0].autoUpdate=setTimeout(function(){return a.advanced.updateOnSelectorChange&&(n.poll.change.n=function(){!0===a.advanced.updateOnSelectorChange&&(a.advanced.updateOnSelectorChange="*");var e=0,t=i.find(a.advanced.updateOnSelectorChange);return a.advanced.updateOnSelectorChange&&0<t.length&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}(),n.poll.change.n!==n.poll.change.o)?(n.poll.change.o=n.poll.change.n,void o(3)):a.advanced.updateOnContentResize&&(n.poll.size.n=t[0].scrollHeight+t[0].scrollWidth+i[0].offsetHeight+t[0].offsetHeight+t[0].offsetWidth,n.poll.size.n!==n.poll.size.o)?(n.poll.size.o=n.poll.size.n,void o(1)):!a.advanced.updateOnImageLoad||"auto"===a.advanced.updateOnImageLoad&&"y"===a.axis||(n.poll.img.n=i.find("img").length,n.poll.img.n===n.poll.img.o)?void((a.advanced.updateOnSelectorChange||a.advanced.updateOnContentResize||a.advanced.updateOnImageLoad)&&e()):(n.poll.img.o=n.poll.img.n,void i.find("img").each(function(){var e,t;L(e=this).hasClass(g[2])?o():((t=new Image).onload=function(e,t){return function(){return t.apply(e,arguments)}}(t,function(){this.onload=null,L(e).addClass(g[2]),o(2)}),t.src=e.src)}))},a.advanced.autoUpdateTimeout))}()},G=function(e){e=e.data(A);L("#mCSB_"+e.idx+"_container,#mCSB_"+e.idx+"_container_wrapper,#mCSB_"+e.idx+"_dragger_vertical,#mCSB_"+e.idx+"_dragger_horizontal").each(function(){t.call(this)})},J=function(a,e,i){function t(e){return l&&r.callbacks[e]&&"function"==typeof r.callbacks[e]}function o(){var e=[u[0].offsetTop,u[0].offsetLeft],t=[p[0].offsetTop,p[0].offsetLeft],o=[u.outerHeight(!1),u.outerWidth(!1)],n=[d.height(),d.width()];a[0].mcs={content:u,top:e[0],left:e[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(o[0])-n[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(o[1])-n[1])),direction:i.dir}}var n,l=a.data(A),r=l.opt,s={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:r.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},c=[(i=L.extend(s,i)).dur,i.drag?0:i.dur],d=L("#mCSB_"+l.idx),u=L("#mCSB_"+l.idx+"_container"),h=u.parent(),f=r.callbacks.onTotalScrollOffset?V.call(a,r.callbacks.onTotalScrollOffset):[0,0],m=r.callbacks.onTotalScrollBackOffset?V.call(a,r.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=i.trigger,0===h.scrollTop()&&0===h.scrollLeft()||(L(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),h.scrollTop(0).scrollLeft(0)),"_resetY"!==e||l.contentReset.y||(t("onOverflowYNone")&&r.callbacks.onOverflowYNone.call(a[0]),l.contentReset.y=1),"_resetX"!==e||l.contentReset.x||(t("onOverflowXNone")&&r.callbacks.onOverflowXNone.call(a[0]),l.contentReset.x=1),"_resetY"!==e&&"_resetX"!==e){switch(!l.contentReset.y&&a[0].mcs||!l.overflowed[0]||(t("onOverflowY")&&r.callbacks.onOverflowY.call(a[0]),l.contentReset.x=null),!l.contentReset.x&&a[0].mcs||!l.overflowed[1]||(t("onOverflowX")&&r.callbacks.onOverflowX.call(a[0]),l.contentReset.x=null),r.snapAmount&&(n=r.snapAmount instanceof Array?"x"===i.dir?r.snapAmount[1]:r.snapAmount[0]:r.snapAmount,s=e,h=n,n=r.snapOffset,e=Math.round(s/h)*h-n),i.dir){case"x":var p=L("#mCSB_"+l.idx+"_dragger_horizontal"),g="left",v=u[0].offsetLeft,x=[d.width()-u.outerWidth(!1),p.parent().width()-p.width()],w=[e,0===e?0:e/l.scrollRatio.x],_=f[1],S=m[1],b=0<_?_/l.scrollRatio.x:0,C=0<S?S/l.scrollRatio.x:0;break;case"y":p=L("#mCSB_"+l.idx+"_dragger_vertical"),g="top",v=u[0].offsetTop,x=[d.height()-u.outerHeight(!1),p.parent().height()-p.height()],w=[e,0===e?0:e/l.scrollRatio.y],_=f[0],S=m[0],b=0<_?_/l.scrollRatio.y:0,C=0<S?S/l.scrollRatio.y:0}w[1]<0||0===w[0]&&0===w[1]?w=[0,0]:w[1]>=x[1]?w=[x[0],x[1]]:w[0]=-w[0],a[0].mcs||(o(),t("onInit")&&r.callbacks.onInit.call(a[0])),clearTimeout(u[0].onCompleteTimeout),K(p[0],g,Math.round(w[1]),c[1],i.scrollEasing),!l.tweenRunning&&(0===v&&0<=w[0]||v===x[0]&&w[0]<=x[0])||K(u[0],g,Math.round(w[0]),c[0],i.scrollEasing,i.overwrite,{onStart:function(){i.callbacks&&i.onStart&&!l.tweenRunning&&(t("onScrollStart")&&(o(),r.callbacks.onScrollStart.call(a[0])),l.tweenRunning=!0,y(p),l.cbOffsets=[r.callbacks.alwaysTriggerOffsets||v>=x[0]+_,r.callbacks.alwaysTriggerOffsets||v<=-S])},onUpdate:function(){i.callbacks&&i.onUpdate&&t("whileScrolling")&&(o(),r.callbacks.whileScrolling.call(a[0]))},onComplete:function(){var e;i.callbacks&&i.onComplete&&("yx"===r.axis&&clearTimeout(u[0].onCompleteTimeout),e=u[0].idleTimer||0,u[0].onCompleteTimeout=setTimeout(function(){t("onScroll")&&(o(),r.callbacks.onScroll.call(a[0])),t("onTotalScroll")&&w[1]>=x[1]-b&&l.cbOffsets[0]&&(o(),r.callbacks.onTotalScroll.call(a[0])),t("onTotalScrollBack")&&w[1]<=C&&l.cbOffsets[1]&&(o(),r.callbacks.onTotalScrollBack.call(a[0])),l.tweenRunning=!1,u[0].idleTimer=0,y(p,"hide")},e))}})}},K=function(e,t,o,n,a,i,l){function r(){x.stop||(p||u.call(),p=$()-m,s(),p>=x.time&&(x.time=p>x.time?p+c-(p-x.time):p+c-1,x.time<p+1&&(x.time=p+1)),x.time<n?x.id=d(r):f.call())}function s(){0<n?(x.currVal=function(e,t,o,n,a){switch(a){case"linear":case"mcsLinear":return o*e/n+t;case"mcsLinearOut":return e/=n,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return(e/=n/2)<1?o/2*e*e+t:-o/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return(e/=n/2)<1?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return(e/=n/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=n,-o*(--e*e*e*e-1)+t;case"easeOutStrong":return o*(1-Math.pow(2,-10*e/n))+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=n)*e,l=i*e;return t+o*(.499999999999997*l*i+-2.5*i*i+5.5*l+-6.5*i+4*e)}}(x.time,g,w,n,a),v[t]=Math.round(x.currVal)+"px"):v[t]=o+"px",h.call()}e._mTween||(e._mTween={top:{},left:{}});var c,d,u=(l=l||{}).onStart||function(){},h=l.onUpdate||function(){},f=l.onComplete||function(){},m=$(),p=0,g=e.offsetTop,v=e.style,x=e._mTween[t];"left"===t&&(g=e.offsetLeft);var w=o-g;x.stop=0,"none"===i||null!=x.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(x.id):clearTimeout(x.id),x.id=null),x.time=p+(c=1e3/60),d=window.requestAnimationFrame||function(e){return s(),setTimeout(e,.01)},x.id=d(r)},$=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()},t=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var n=t[o];e._mTween[n].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[n].id):clearTimeout(e._mTween[n].id),e._mTween[n].id=null,e._mTween[n].stop=1)}},ee=function(t,o){try{delete t[o]}catch(e){t[o]=null}},te=function(e){return!(e.which&&1!==e.which)},oe=function(e){e=e.originalEvent.pointerType;return!(e&&"touch"!==e&&2!==e)},ne=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ie=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]},L.fn[s]=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void L.error("Method "+e+" does not exist"):h.init.apply(this,arguments)},L[s]=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void L.error("Method "+e+" does not exist"):h.init.apply(this,arguments)},L[s].defaults=a,window[s]=!0,L(window).bind("load",function(){L(n)[s](),L.extend(L.expr[":"],{mcsInView:L.expr[":"].mcsInView||function(e){var t=L(e),o=t.parents(".mCSB_container");if(o.length)return e=o.parent(),0<=(o=[o[0].offsetTop,o[0].offsetLeft])[0]+ae(t)[0]&&o[0]+ae(t)[0]<e.height()-t.outerHeight(!1)&&0<=o[1]+ae(t)[1]&&o[1]+ae(t)[1]<e.width()-t.outerWidth(!1)},mcsInSight:L.expr[":"].mcsInSight||function(e,t,o){var n=L(e),a=n.parents(".mCSB_container"),e="exact"===o[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(a.length)return o=[n.outerHeight(!1),n.outerWidth(!1)],n=[a[0].offsetTop+ae(n)[0],a[0].offsetLeft+ae(n)[1]],a=[a.parent()[0].offsetHeight,a.parent()[0].offsetWidth],n[0]-a[0]*(e=[o[0]<a[0]?e[0]:e[1],o[1]<a[1]?e[0]:e[1]])[0][0]<0&&0<=n[0]+o[0]-a[0]*e[0][1]&&n[1]-a[1]*e[1][0]<0&&0<=n[1]+o[1]-a[1]*e[1][1]},mcsOverflow:L.expr[":"].mcsOverflow||function(e){e=L(e).data(A);if(e)return e.overflowed[0]||e.overflowed[1]}})})});
!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(a){"use strict";var o,r=window.Slick||{};o=0,(r=function(i,e){var t=this;t.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(i),appendDots:a(i),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(i,e){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},t.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(t,t.initials),t.activeBreakpoint=null,t.animType=null,t.animProp=null,t.breakpoints=[],t.breakpointSettings=[],t.cssTransitions=!1,t.focussed=!1,t.interrupted=!1,t.hidden="hidden",t.paused=!0,t.positionProp=null,t.respondTo=null,t.rowCount=1,t.shouldClick=!0,t.$slider=a(i),t.$slidesCache=null,t.transformType=null,t.transitionType=null,t.visibilityChange="visibilitychange",t.windowWidth=0,t.windowTimer=null,i=a(i).data("slick")||{},t.options=a.extend({},t.defaults,e,i),t.currentSlide=t.options.initialSlide,t.originalSettings=t.options,void 0!==document.mozHidden?(t.hidden="mozHidden",t.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(t.hidden="webkitHidden",t.visibilityChange="webkitvisibilitychange"),t.autoPlay=a.proxy(t.autoPlay,t),t.autoPlayClear=a.proxy(t.autoPlayClear,t),t.autoPlayIterator=a.proxy(t.autoPlayIterator,t),t.changeSlide=a.proxy(t.changeSlide,t),t.clickHandler=a.proxy(t.clickHandler,t),t.selectHandler=a.proxy(t.selectHandler,t),t.setPosition=a.proxy(t.setPosition,t),t.swipeHandler=a.proxy(t.swipeHandler,t),t.dragHandler=a.proxy(t.dragHandler,t),t.keyHandler=a.proxy(t.keyHandler,t),t.instanceUid=o++,t.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,t.registerBreakpoints(),t.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},r.prototype.addSlide=r.prototype.slickAdd=function(i,e,t){var o=this;if("boolean"==typeof e)t=e,e=null;else if(e<0||e>=o.slideCount)return!1;o.unload(),"number"==typeof e?0===e&&0===o.$slides.length?a(i).appendTo(o.$slideTrack):t?a(i).insertBefore(o.$slides.eq(e)):a(i).insertAfter(o.$slides.eq(e)):!0===t?a(i).prependTo(o.$slideTrack):a(i).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(i,e){a(e).attr("data-slick-index",i)}),o.$slidesCache=o.$slides,o.reinit()},r.prototype.animateHeight=function(){var i,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(i=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.animate({height:i},e.options.speed))},r.prototype.animateSlide=function(i,e){var t={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(i=-i),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:i},o.options.speed,o.options.easing,e):o.$slideTrack.animate({top:i},o.options.speed,o.options.easing,e):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),a({animStart:o.currentLeft}).animate({animStart:i},{duration:o.options.speed,easing:o.options.easing,step:function(i){i=Math.ceil(i),!1===o.options.vertical?t[o.animType]="translate("+i+"px, 0px)":t[o.animType]="translate(0px,"+i+"px)",o.$slideTrack.css(t)},complete:function(){e&&e.call()}})):(o.applyTransition(),i=Math.ceil(i),!1===o.options.vertical?t[o.animType]="translate3d("+i+"px, 0px, 0px)":t[o.animType]="translate3d(0px,"+i+"px, 0px)",o.$slideTrack.css(t),e&&setTimeout(function(){o.disableTransition(),e.call()},o.options.speed))},r.prototype.getNavTarget=function(){var i=this.options.asNavFor;return i=i&&null!==i?a(i).not(this.$slider):i},r.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=a(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},r.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(i)).css(t)},r.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},r.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},r.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},r.prototype.buildArrows=function(){var i=this;!0===i.options.arrows&&(i.$prevArrow=a(i.options.prevArrow).addClass("slick-arrow"),i.$nextArrow=a(i.options.nextArrow).addClass("slick-arrow"),i.slideCount>i.options.slidesToShow?(i.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),i.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.prependTo(i.options.appendArrows),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.appendTo(i.options.appendArrows),!0!==i.options.infinite&&i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):i.$prevArrow.add(i.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},r.prototype.buildDots=function(){var i,e,t=this;if(!0===t.options.dots&&t.slideCount>t.options.slidesToShow){for(t.$slider.addClass("slick-dotted"),e=a("<ul />").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)e.append(a("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=e.appendTo(t.options.appendDots),t.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},r.prototype.buildOut=function(){var i=this;i.$slides=i.$slider.children(i.options.slide+":not(.slick-cloned)").addClass("slick-slide"),i.slideCount=i.$slides.length,i.$slides.each(function(i,e){a(e).attr("data-slick-index",i).data("originalStyling",a(e).attr("style")||"")}),i.$slider.addClass("slick-slider"),i.$slideTrack=0===i.slideCount?a('<div class="slick-track"/>').appendTo(i.$slider):i.$slides.wrapAll('<div class="slick-track"/>').parent(),i.$list=i.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),i.$slideTrack.css("opacity",0),!0!==i.options.centerMode&&!0!==i.options.swipeToSlide||(i.options.slidesToScroll=1),a("img[data-lazy]",i.$slider).not("[src]").addClass("slick-loading"),i.setupInfinite(),i.buildArrows(),i.buildDots(),i.updateDots(),i.setSlideClasses("number"==typeof i.currentSlide?i.currentSlide:0),!0===i.options.draggable&&i.$list.addClass("draggable")},r.prototype.buildRows=function(){var i,e,t,o=this,s=document.createDocumentFragment(),n=o.$slider.children();if(1<o.options.rows){for(t=o.options.slidesPerRow*o.options.rows,e=Math.ceil(n.length/t),i=0;i<e;i++){for(var r=document.createElement("div"),l=0;l<o.options.rows;l++){for(var d=document.createElement("div"),a=0;a<o.options.slidesPerRow;a++){var c=i*t+(l*o.options.slidesPerRow+a);n.get(c)&&d.appendChild(n.get(c))}r.appendChild(d)}s.appendChild(r)}o.$slider.empty().append(s),o.$slider.children().children().children().css({width:100/o.options.slidesPerRow+"%",display:"inline-block"})}},r.prototype.checkResponsive=function(i,e){var t,o,s,n=this,r=!1,l=n.$slider.width(),d=window.innerWidth||a(window).width();if("window"===n.respondTo?s=d:"slider"===n.respondTo?s=l:"min"===n.respondTo&&(s=Math.min(d,l)),n.options.responsive&&n.options.responsive.length&&null!==n.options.responsive){for(t in o=null,n.breakpoints)n.breakpoints.hasOwnProperty(t)&&(!1===n.originalSettings.mobileFirst?s<n.breakpoints[t]&&(o=n.breakpoints[t]):s>n.breakpoints[t]&&(o=n.breakpoints[t]));null!==o?null!==n.activeBreakpoint&&o===n.activeBreakpoint&&!e||(n.activeBreakpoint=o,"unslick"===n.breakpointSettings[o]?n.unslick(o):(n.options=a.extend({},n.originalSettings,n.breakpointSettings[o]),!0===i&&(n.currentSlide=n.options.initialSlide),n.refresh(i)),r=o):null!==n.activeBreakpoint&&(n.activeBreakpoint=null,n.options=n.originalSettings,!0===i&&(n.currentSlide=n.options.initialSlide),n.refresh(i),r=o),i||!1===r||n.$slider.trigger("breakpoint",[n,r])}},r.prototype.changeSlide=function(i,e){var t,o=this,s=a(i.currentTarget);switch(s.is("a")&&i.preventDefault(),s.is("li")||(s=s.closest("li")),t=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,i.data.message){case"previous":n=0==t?o.options.slidesToScroll:o.options.slidesToShow-t,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-n,!1,e);break;case"next":n=0==t?o.options.slidesToScroll:t,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+n,!1,e);break;case"index":var n=0===i.data.index?0:i.data.index||s.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(n),!1,e),s.children().trigger("focus");break;default:return}},r.prototype.checkNavigable=function(i){var e=this.getNavigableIndexes(),t=0;if(i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},r.prototype.cleanUpEvents=function(){var i=this;i.options.dots&&null!==i.$dots&&a("li",i.$dots).off("click.slick",i.changeSlide).off("mouseenter.slick",a.proxy(i.interrupt,i,!0)).off("mouseleave.slick",a.proxy(i.interrupt,i,!1)),i.$slider.off("focus.slick blur.slick"),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow&&i.$prevArrow.off("click.slick",i.changeSlide),i.$nextArrow&&i.$nextArrow.off("click.slick",i.changeSlide)),i.$list.off("touchstart.slick mousedown.slick",i.swipeHandler),i.$list.off("touchmove.slick mousemove.slick",i.swipeHandler),i.$list.off("touchend.slick mouseup.slick",i.swipeHandler),i.$list.off("touchcancel.slick mouseleave.slick",i.swipeHandler),i.$list.off("click.slick",i.clickHandler),a(document).off(i.visibilityChange,i.visibility),i.cleanUpSlideEvents(),!0===i.options.accessibility&&i.$list.off("keydown.slick",i.keyHandler),!0===i.options.focusOnSelect&&a(i.$slideTrack).children().off("click.slick",i.selectHandler),a(window).off("orientationchange.slick.slick-"+i.instanceUid,i.orientationChange),a(window).off("resize.slick.slick-"+i.instanceUid,i.resize),a("[draggable!=true]",i.$slideTrack).off("dragstart",i.preventDefault),a(window).off("load.slick.slick-"+i.instanceUid,i.setPosition),a(document).off("ready.slick.slick-"+i.instanceUid,i.setPosition)},r.prototype.cleanUpSlideEvents=function(){var i=this;i.$list.off("mouseenter.slick",a.proxy(i.interrupt,i,!0)),i.$list.off("mouseleave.slick",a.proxy(i.interrupt,i,!1))},r.prototype.cleanUpRows=function(){var i;1<this.options.rows&&((i=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(i))},r.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},r.prototype.destroy=function(i){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),a(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,i||e.$slider.trigger("destroy",[e])},r.prototype.disableTransition=function(i){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(i)).css(e)},r.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},r.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},r.prototype.filterSlides=r.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},r.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var e=a(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=e.is(":focus"),t.autoPlay())},0)})},r.prototype.getCurrent=r.prototype.slickCurrentSlide=function(){return this.currentSlide},r.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},r.prototype.getLeft=function(i){var e,t=this,o=0;return t.slideOffset=0,e=t.$slides.first().outerHeight(!0),!0===t.options.infinite?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,o=e*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!=0&&i+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(o=i>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(i-t.slideCount))*t.slideWidth*-1,(t.options.slidesToShow-(i-t.slideCount))*e*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,t.slideCount%t.options.slidesToScroll*e*-1))):i+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(i+t.options.slidesToShow-t.slideCount)*t.slideWidth,o=(i+t.options.slidesToShow-t.slideCount)*e),t.slideCount<=t.options.slidesToShow&&(o=t.slideOffset=0),!0===t.options.centerMode&&!0===t.options.infinite?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:!0===t.options.centerMode&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),e=!1===t.options.vertical?i*t.slideWidth*-1+t.slideOffset:i*e*-1+o,!0===t.options.variableWidth&&(o=t.slideCount<=t.options.slidesToShow||!1===t.options.infinite?t.$slideTrack.children(".slick-slide").eq(i):t.$slideTrack.children(".slick-slide").eq(i+t.options.slidesToShow),e=!0===t.options.rtl?o[0]?-1*(t.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===t.options.centerMode&&(o=t.slideCount<=t.options.slidesToShow||!1===t.options.infinite?t.$slideTrack.children(".slick-slide").eq(i):t.$slideTrack.children(".slick-slide").eq(i+t.options.slidesToShow+1),e=!0===t.options.rtl?o[0]?-1*(t.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(t.$list.width()-o.outerWidth())/2)),e},r.prototype.getOption=r.prototype.slickGetOption=function(i){return this.options[i]},r.prototype.getNavigableIndexes=function(){for(var i=this,e=0,t=0,o=[],s=!1===i.options.infinite?i.slideCount:(e=-1*i.options.slidesToScroll,t=-1*i.options.slidesToScroll,2*i.slideCount);e<s;)o.push(e),e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;return o},r.prototype.getSlick=function(){return this},r.prototype.getSlideCount=function(){var t,o=this,s=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0;return!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(i,e){if(e.offsetLeft-s+a(e).outerWidth()/2>-1*o.swipeLeft)return t=e,!1}),Math.abs(a(t).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},r.prototype.goTo=r.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},r.prototype.init=function(i){var e=this;a(e.$slider).hasClass("slick-initialized")||(a(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),i&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},r.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){a(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+i})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(i){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+i,id:"slick-slide"+e.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},r.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide))},r.prototype.initDotEvents=function(){var i=this;!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&a("li",i.$dots).on("click.slick",{message:"index"},i.changeSlide),!0===i.options.dots&&!0===i.options.pauseOnDotsHover&&a("li",i.$dots).on("mouseenter.slick",a.proxy(i.interrupt,i,!0)).on("mouseleave.slick",a.proxy(i.interrupt,i,!1))},r.prototype.initSlideEvents=function(){var i=this;i.options.pauseOnHover&&(i.$list.on("mouseenter.slick",a.proxy(i.interrupt,i,!0)),i.$list.on("mouseleave.slick",a.proxy(i.interrupt,i,!1)))},r.prototype.initializeEvents=function(){var i=this;i.initArrowEvents(),i.initDotEvents(),i.initSlideEvents(),i.$list.on("touchstart.slick mousedown.slick",{action:"start"},i.swipeHandler),i.$list.on("touchmove.slick mousemove.slick",{action:"move"},i.swipeHandler),i.$list.on("touchend.slick mouseup.slick",{action:"end"},i.swipeHandler),i.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},i.swipeHandler),i.$list.on("click.slick",i.clickHandler),a(document).on(i.visibilityChange,a.proxy(i.visibility,i)),!0===i.options.accessibility&&i.$list.on("keydown.slick",i.keyHandler),!0===i.options.focusOnSelect&&a(i.$slideTrack).children().on("click.slick",i.selectHandler),a(window).on("orientationchange.slick.slick-"+i.instanceUid,a.proxy(i.orientationChange,i)),a(window).on("resize.slick.slick-"+i.instanceUid,a.proxy(i.resize,i)),a("[draggable!=true]",i.$slideTrack).on("dragstart",i.preventDefault),a(window).on("load.slick.slick-"+i.instanceUid,i.setPosition),a(document).on("ready.slick.slick-"+i.instanceUid,i.setPosition)},r.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},r.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},r.prototype.lazyLoad=function(){var i,e,o=this;function t(i){a("img[data-lazy]",i).each(function(){var i=a(this),e=a(this).attr("data-lazy"),t=document.createElement("img");t.onload=function(){i.animate({opacity:0},100,function(){i.attr("src",e).animate({opacity:1},200,function(){i.removeAttr("data-lazy").removeClass("slick-loading")}),o.$slider.trigger("lazyLoaded",[o,i,e])})},t.onerror=function(){i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,i,e])},t.src=e})}!0===o.options.centerMode?e=!0===o.options.infinite?(i=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(i=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),o.options.slidesToShow/2+1+2+o.currentSlide):(i=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,e=Math.ceil(i+o.options.slidesToShow),!0===o.options.fade&&(0<i&&i--,e<=o.slideCount&&e++)),t(o.$slider.find(".slick-slide").slice(i,e)),o.slideCount<=o.options.slidesToShow?t(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?t(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&t(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},r.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},r.prototype.next=r.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},r.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},r.prototype.pause=r.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},r.prototype.play=r.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},r.prototype.postSlide=function(i){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,i]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&e.initADA())},r.prototype.prev=r.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},r.prototype.preventDefault=function(i){i.preventDefault()},r.prototype.progressiveLazyLoad=function(i){i=i||1;var e,t,o=this,s=a("img[data-lazy]",o.$slider);s.length?(e=s.first(),t=e.attr("data-lazy"),(s=document.createElement("img")).onload=function(){e.attr("src",t).removeAttr("data-lazy").removeClass("slick-loading"),!0===o.options.adaptiveHeight&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,e,t]),o.progressiveLazyLoad()},s.onerror=function(){i<3?setTimeout(function(){o.progressiveLazyLoad(i+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,t]),o.progressiveLazyLoad())},s.src=t):o.$slider.trigger("allImagesLoaded",[o])},r.prototype.refresh=function(i){var e=this,t=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>t&&(e.currentSlide=t),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),t=e.currentSlide,e.destroy(!0),a.extend(e,e.initials,{currentSlide:t}),e.init(),i||e.changeSlide({data:{message:"index",index:t}},!1)},r.prototype.registerBreakpoints=function(){var i,e,t,o=this,s=o.options.responsive||null;if("array"===a.type(s)&&s.length){for(i in o.respondTo=o.options.respondTo||"window",s)if(t=o.breakpoints.length-1,e=s[i].breakpoint,s.hasOwnProperty(i)){for(;0<=t;)o.breakpoints[t]&&o.breakpoints[t]===e&&o.breakpoints.splice(t,1),t--;o.breakpoints.push(e),o.breakpointSettings[e]=s[i].settings}o.breakpoints.sort(function(i,e){return o.options.mobileFirst?i-e:e-i})}},r.prototype.reinit=function(){var i=this;i.$slides=i.$slideTrack.children(i.options.slide).addClass("slick-slide"),i.slideCount=i.$slides.length,i.currentSlide>=i.slideCount&&0!==i.currentSlide&&(i.currentSlide=i.currentSlide-i.options.slidesToScroll),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),i.registerBreakpoints(),i.setProps(),i.setupInfinite(),i.buildArrows(),i.updateArrows(),i.initArrowEvents(),i.buildDots(),i.updateDots(),i.initDotEvents(),i.cleanUpSlideEvents(),i.initSlideEvents(),i.checkResponsive(!1,!0),!0===i.options.focusOnSelect&&a(i.$slideTrack).children().on("click.slick",i.selectHandler),i.setSlideClasses("number"==typeof i.currentSlide?i.currentSlide:0),i.setPosition(),i.focusHandler(),i.paused=!i.options.autoplay,i.autoPlay(),i.$slider.trigger("reInit",[i])},r.prototype.resize=function(){var i=this;a(window).width()!==i.windowWidth&&(clearTimeout(i.windowDelay),i.windowDelay=window.setTimeout(function(){i.windowWidth=a(window).width(),i.checkResponsive(),i.unslicked||i.setPosition()},50))},r.prototype.removeSlide=r.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),(!0===t?o.$slideTrack.children():o.$slideTrack.children(this.options.slide).eq(i)).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},r.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled||(!(s={})===o.cssTransitions?s[o.animType]="translate("+e+", "+t+")":s[o.animType]="translate3d("+e+", "+t+", 0px)"),o.$slideTrack.css(s)},r.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},r.prototype.setFade=function(){var t,o=this;o.$slides.each(function(i,e){t=o.slideWidth*i*-1,!0===o.options.rtl?a(e).css({position:"relative",right:t,top:0,zIndex:o.options.zIndex-2,opacity:0}):a(e).css({position:"relative",left:t,top:0,zIndex:o.options.zIndex-2,opacity:0})}),o.$slides.eq(o.currentSlide).css({zIndex:o.options.zIndex-1,opacity:1})},r.prototype.setHeight=function(){var i,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(i=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.css("height",i))},r.prototype.setOption=r.prototype.slickSetOption=function(){var i,e,t,o,s,n=this,r=!1;if("object"===a.type(arguments[0])?(t=arguments[0],r=arguments[1],s="multiple"):"string"===a.type(arguments[0])&&(t=arguments[0],o=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)n.options[t]=o;else if("multiple"===s)a.each(t,function(i,e){n.options[i]=e});else if("responsive"===s)for(e in o)if("array"!==a.type(n.options.responsive))n.options.responsive=[o[e]];else{for(i=n.options.responsive.length-1;0<=i;)n.options.responsive[i].breakpoint===o[e].breakpoint&&n.options.responsive.splice(i,1),i--;n.options.responsive.push(o[e])}r&&(n.unload(),n.reinit())},r.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},r.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},r.prototype.setSlideClasses=function(i){var e,t,o=this,s=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");o.$slides.eq(i).addClass("slick-current"),!0===o.options.centerMode?(t=Math.floor(o.options.slidesToShow/2),!0===o.options.infinite&&(t<=i&&i<=o.slideCount-1-t?o.$slides.slice(i-t,i+t+1).addClass("slick-active").attr("aria-hidden","false"):(e=o.options.slidesToShow+i,s.slice(e-t+1,e+t+2).addClass("slick-active").attr("aria-hidden","false")),0===i?s.eq(s.length-1-o.options.slidesToShow).addClass("slick-center"):i===o.slideCount-1&&s.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(i).addClass("slick-center")):0<=i&&i<=o.slideCount-o.options.slidesToShow?o.$slides.slice(i,i+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):s.length<=o.options.slidesToShow?s.addClass("slick-active").attr("aria-hidden","false"):(t=o.slideCount%o.options.slidesToShow,e=!0===o.options.infinite?o.options.slidesToShow+i:i,(o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-i<o.options.slidesToShow?s.slice(e-(o.options.slidesToShow-t),e+t):s.slice(e,e+o.options.slidesToShow)).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===o.options.lazyLoad&&o.lazyLoad()},r.prototype.setupInfinite=function(){var i,e,t,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(e=null,o.slideCount>o.options.slidesToShow)){for(t=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,i=o.slideCount;i>o.slideCount-t;--i)a(o.$slides[e=i-1]).clone(!0).attr("id","").attr("data-slick-index",e-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(i=0;i<t;i+=1)a(o.$slides[e=i]).clone(!0).attr("id","").attr("data-slick-index",e+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},r.prototype.interrupt=function(i){i||this.autoPlay(),this.interrupted=i},r.prototype.selectHandler=function(i){var e=this,i=a(i.target).is(".slick-slide")?a(i.target):a(i.target).parents(".slick-slide"),i=(i=parseInt(i.attr("data-slick-index")))||0;if(e.slideCount<=e.options.slidesToShow)return e.setSlideClasses(i),void e.asNavFor(i);e.slideHandler(i)},r.prototype.slideHandler=function(i,e,t){var o,s,n,r,l=this;if(e=e||!1,(!0!==l.animating||!0!==l.options.waitForAnimate)&&!(!0===l.options.fade&&l.currentSlide===i||l.slideCount<=l.options.slidesToShow))if(!1===e&&l.asNavFor(i),n=l.getLeft(o=i),e=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?e:l.swipeLeft,!1===l.options.infinite&&!1===l.options.centerMode&&(i<0||i>l.getDotCount()*l.options.slidesToScroll))!1===l.options.fade&&(o=l.currentSlide,!0!==t?l.animateSlide(e,function(){l.postSlide(o)}):l.postSlide(o));else if(!1===l.options.infinite&&!0===l.options.centerMode&&(i<0||i>l.slideCount-l.options.slidesToScroll))!1===l.options.fade&&(o=l.currentSlide,!0!==t?l.animateSlide(e,function(){l.postSlide(o)}):l.postSlide(o));else{if(l.options.autoplay&&clearInterval(l.autoPlayTimer),s=o<0?l.slideCount%l.options.slidesToScroll!=0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+o:o>=l.slideCount?l.slideCount%l.options.slidesToScroll!=0?0:o-l.slideCount:o,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,s]),e=l.currentSlide,l.currentSlide=s,l.setSlideClasses(l.currentSlide),l.options.asNavFor&&(r=(r=l.getNavTarget()).slick("getSlick")).slideCount<=r.options.slidesToShow&&r.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),!0===l.options.fade)return!0!==t?(l.fadeSlideOut(e),l.fadeSlide(s,function(){l.postSlide(s)})):l.postSlide(s),void l.animateHeight();!0!==t?l.animateSlide(n,function(){l.postSlide(s)}):l.postSlide(s)}},r.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},r.prototype.swipeDirection=function(){var i=this,e=i.touchObject.startX-i.touchObject.curX,t=i.touchObject.startY-i.touchObject.curY,e=Math.atan2(t,e),e=Math.round(180*e/Math.PI);return(e=e<0?360-Math.abs(e):e)<=45&&0<=e||e<=360&&315<=e?!1===i.options.rtl?"left":"right":135<=e&&e<=225?!1===i.options.rtl?"right":"left":!0===i.options.verticalSwiping?35<=e&&e<=135?"down":"up":"vertical"},r.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.interrupted=!1,o.shouldClick=!(10<o.touchObject.swipeLength),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},r.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},r.prototype.swipeMove=function(i){var e,t,o=this,s=void 0!==i.originalEvent?i.originalEvent.touches:null;return!(!o.dragging||s&&1!==s.length)&&(e=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==s?s[0].pageX:i.clientX,o.touchObject.curY=void 0!==s?s[0].pageY:i.clientY,o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curX-o.touchObject.startX,2))),!0===o.options.verticalSwiping&&(o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curY-o.touchObject.startY,2)))),"vertical"!==(t=o.swipeDirection())?(void 0!==i.originalEvent&&4<o.touchObject.swipeLength&&i.preventDefault(),s=(!1===o.options.rtl?1:-1)*(o.touchObject.curX>o.touchObject.startX?1:-1),!0===o.options.verticalSwiping&&(s=o.touchObject.curY>o.touchObject.startY?1:-1),i=o.touchObject.swipeLength,(o.touchObject.edgeHit=!1)===o.options.infinite&&(0===o.currentSlide&&"right"===t||o.currentSlide>=o.getDotCount()&&"left"===t)&&(i=o.touchObject.swipeLength*o.options.edgeFriction,o.touchObject.edgeHit=!0),!1===o.options.vertical?o.swipeLeft=e+i*s:o.swipeLeft=e+i*(o.$list.height()/o.listWidth)*s,!0===o.options.verticalSwiping&&(o.swipeLeft=e+i*s),!0!==o.options.fade&&!1!==o.options.touchMove&&(!0===o.animating?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft))):void 0)},r.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return!(t.touchObject={});void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},r.prototype.unfilterSlides=r.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},r.prototype.unload=function(){var i=this;a(".slick-cloned",i.$slider).remove(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove(),i.$nextArrow&&i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove(),i.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},r.prototype.unslick=function(i){this.$slider.trigger("unslick",[this,i]),this.destroy()},r.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2);!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode||i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode)&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},r.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},r.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},a.fn.slick=function(){for(var i,e=this,t=arguments[0],o=Array.prototype.slice.call(arguments,1),s=e.length,n=0;n<s;n++)if("object"==typeof t||void 0===t?e[n].slick=new r(e[n],t):i=e[n].slick[t].apply(e[n].slick,o),void 0!==i)return i;return e}});
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(o){"use strict";o.fn.emulateTransitionEnd=function(t){var e=!1,i=this;o(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||o(i).trigger(o.support.transition.end)},t),this},o(function(){o.support.transition=function(){var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return{end:i[t]};return!1}(),o.support.transition&&(o.event.special.bsTransitionEnd={bindType:o.support.transition.end,delegateType:o.support.transition.end,handle:function(t){if(o(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(s){"use strict";function a(t){s(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';a.VERSION="3.3.7",a.TRANSITION_DURATION=150,a.prototype.close=function(t){function e(){n.detach().trigger("closed.bs.alert").remove()}var i=s(this),o=i.attr("data-target");o||(o=(o=i.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,""));var n=s("#"===o?[]:o);t&&t.preventDefault(),(n=!n.length?i.closest(".alert"):n).trigger(t=s.Event("close.bs.alert")),t.isDefaultPrevented()||(n.removeClass("in"),s.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",e).emulateTransitionEnd(a.TRANSITION_DURATION):e())};var t=s.fn.alert;s.fn.alert=function(i){return this.each(function(){var t=s(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof i&&e[i].call(t)})},s.fn.alert.Constructor=a,s.fn.alert.noConflict=function(){return s.fn.alert=t,this},s(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),function(s){"use strict";function i(i){return this.each(function(){var t=s(this),e=t.data("bs.button");e||t.data("bs.button",e=new o(this,"object"==typeof i&&i)),"toggle"==i?e.toggle():i&&e.setState(i)})}var o=function(t,e){this.$element=s(t),this.options=s.extend({},o.DEFAULTS,e),this.isLoading=!1};o.VERSION="3.3.7",o.DEFAULTS={loadingText:"loading..."},o.prototype.setState=function(t){var e="disabled",i=this.$element,o=i.is("input")?"val":"html",n=i.data();t+="Text",null==n.resetText&&i.data("resetText",i[o]()),setTimeout(s.proxy(function(){i[o]((null==n[t]?this.options:n)[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},o.prototype.toggle=function(){var t,e=!0,i=this.$element.closest('[data-toggle="buttons"]');i.length?("radio"==(t=this.$element.find("input")).prop("type")?(t.prop("checked")&&(e=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var t=s.fn.button;s.fn.button=i,s.fn.button.Constructor=o,s.fn.button.noConflict=function(){return s.fn.button=t,this},s(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=s(t.target).closest(".btn");i.call(e,"toggle"),s(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),(e.is("input,button")?e:e.find("input:visible,button:visible").first()).trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){s(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(h){"use strict";function n(n){return this.each(function(){var t=h(this),e=t.data("bs.carousel"),i=h.extend({},d.DEFAULTS,t.data(),"object"==typeof n&&n),o="string"==typeof n?n:i.slide;e||t.data("bs.carousel",e=new d(this,i)),"number"==typeof n?e.to(n):o?e[o]():i.interval&&e.pause().cycle()})}function d(t,e){this.$element=h(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",h.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",h.proxy(this.pause,this)).on("mouseleave.bs.carousel",h.proxy(this.cycle,this))}d.VERSION="3.3.7",d.TRANSITION_DURATION=600,d.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},d.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},d.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(h.proxy(this.next,this),this.options.interval)),this},d.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},d.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;t=(i+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(t)},d.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(i<t?"next":"prev",this.$items.eq(t))},d.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&h.support.transition&&(this.$element.trigger(h.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},d.prototype.next=function(){if(!this.sliding)return this.slide("next")},d.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},d.prototype.slide=function(t,e){var i=this.$element.find(".item.active"),o=e||this.getItemForDirection(t,i),n=this.interval,s="next"==t?"left":"right",a=this;if(o.hasClass("active"))return this.sliding=!1;var r=o[0],e=h.Event("slide.bs.carousel",{relatedTarget:r,direction:s});if(this.$element.trigger(e),!e.isDefaultPrevented()){this.sliding=!0,n&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(e=h(this.$indicators.children()[this.getItemIndex(o)]))&&e.addClass("active"));var l=h.Event("slid.bs.carousel",{relatedTarget:r,direction:s});return h.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",function(){o.removeClass([t,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(l)},0)}).emulateTransitionEnd(d.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(l)),n&&this.cycle(),this}};var t=h.fn.carousel;h.fn.carousel=n,h.fn.carousel.Constructor=d,h.fn.carousel.noConflict=function(){return h.fn.carousel=t,this};function e(t){var e,i=h(this),o=h(i.attr("data-target")||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""));o.hasClass("carousel")&&(e=h.extend({},o.data(),i.data()),(i=i.attr("data-slide-to"))&&(e.interval=!1),n.call(o,e),i&&o.data("bs.carousel").to(i),t.preventDefault())}h(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),h(window).on("load",function(){h('[data-ride="carousel"]').each(function(){var t=h(this);n.call(t,t.data())})})}(jQuery),function(n){"use strict";function i(t){var e=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return n(e)}function s(o){return this.each(function(){var t=n(this),e=t.data("bs.collapse"),i=n.extend({},a.DEFAULTS,t.data(),"object"==typeof o&&o);!e&&i.toggle&&/show|hide/.test(o)&&(i.toggle=!1),e||t.data("bs.collapse",e=new a(this,i)),"string"==typeof o&&e[o]()})}var a=function(t,e){this.$element=n(t),this.options=n.extend({},a.DEFAULTS,e),this.$trigger=n('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};a.VERSION="3.3.7",a.TRANSITION_DURATION=350,a.DEFAULTS={toggle:!0},a.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},a.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&((o=t.data("bs.collapse"))&&o.transitioning))){var e=n.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(s.call(t,"hide"),o||t.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!n.support.transition)return o.call(this);t=n.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(a.TRANSITION_DURATION)[i](this.$element[0][t])}}}},a.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=n.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;t=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return n.support.transition?void this.$element[e](0).one("bsTransitionEnd",n.proxy(t,this)).emulateTransitionEnd(a.TRANSITION_DURATION):t.call(this)}}},a.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},a.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,e){e=n(e);this.addAriaAndCollapsedClass(i(e),e)},this)).end()},a.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var t=n.fn.collapse;n.fn.collapse=s,n.fn.collapse.Constructor=a,n.fn.collapse.noConflict=function(){return n.fn.collapse=t,this},n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=n(this);e.attr("data-target")||t.preventDefault();t=i(e),e=t.data("bs.collapse")?"toggle":e.data();s.call(t,e)})}(jQuery),function(n){"use strict";function s(t){var e=t.attr("data-target"),e=(e=!e?(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""):e)&&n(e);return e&&e.length?e:t.parent()}function a(o){o&&3===o.which||(n(".dropdown-backdrop").remove(),n(r).each(function(){var t=n(this),e=s(t),i={relatedTarget:this};e.hasClass("open")&&(o&&"click"==o.type&&/input|textarea/i.test(o.target.tagName)&&n.contains(e[0],o.target)||(e.trigger(o=n.Event("hide.bs.dropdown",i)),o.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(n.Event("hidden.bs.dropdown",i)))))}))}function o(t){n(t).on("click.bs.dropdown",this.toggle)}var r='[data-toggle="dropdown"]';o.VERSION="3.3.7",o.prototype.toggle=function(t){var e=n(this);if(!e.is(".disabled, :disabled")){var i=s(e),o=i.hasClass("open");if(a(),!o){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",a);o={relatedTarget:this};if(i.trigger(t=n.Event("show.bs.dropdown",o)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",o))}return!1}},o.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=n(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var i=s(e),o=i.hasClass("open");if(!o&&27!=t.which||o&&27==t.which)return 27==t.which&&i.find(r).trigger("focus"),e.trigger("click");e=i.find(".dropdown-menu li:not(.disabled):visible a");e.length&&(i=e.index(t.target),38==t.which&&0<i&&i--,40==t.which&&i<e.length-1&&i++,e.eq(i=!~i?0:i).trigger("focus"))}}};var t=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var t=n(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new o(this)),"string"==typeof i&&e[i].call(t)})},n.fn.dropdown.Constructor=o,n.fn.dropdown.noConflict=function(){return n.fn.dropdown=t,this},n(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(s){"use strict";function n(o,n){return this.each(function(){var t=s(this),e=t.data("bs.modal"),i=s.extend({},a.DEFAULTS,t.data(),"object"==typeof o&&o);e||t.data("bs.modal",e=new a(this,i)),"string"==typeof o?e[o](n):i.show&&e.show(n)})}function a(t,e){this.options=e,this.$body=s(document.body),this.$element=s(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,s.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}a.VERSION="3.3.7",a.TRANSITION_DURATION=300,a.BACKDROP_TRANSITION_DURATION=150,a.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},a.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},a.prototype.show=function(i){var o=this,t=s.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',s.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){s(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=s.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),t&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var e=s.Event("shown.bs.modal",{relatedTarget:i});t?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(a.TRANSITION_DURATION):o.$element.trigger("focus").trigger(e)}))},a.prototype.hide=function(t){t&&t.preventDefault(),t=s.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),s(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),s.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",s.proxy(this.hideModal,this)).emulateTransitionEnd(a.TRANSITION_DURATION):this.hideModal())},a.prototype.enforceFocus=function(){s(document).off("focusin.bs.modal").on("focusin.bs.modal",s.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},a.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",s.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},a.prototype.resize=function(){this.isShown?s(window).on("resize.bs.modal",s.proxy(this.handleUpdate,this)):s(window).off("resize.bs.modal")},a.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},a.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},a.prototype.backdrop=function(t){var e,i=this,o=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(e=s.support.transition&&o,this.$backdrop=s(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",s.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),t&&(e?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):t())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e=function(){i.removeBackdrop(),t&&t()},s.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):e()):t&&t()},a.prototype.handleUpdate=function(){this.adjustDialog()},a.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},a.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},a.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},a.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=s.fn.modal;s.fn.modal=n,s.fn.modal.Constructor=a,s.fn.modal.noConflict=function(){return s.fn.modal=t,this},s(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=s(this),i=e.attr("href"),o=s(e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),i=o.data("bs.modal")?"toggle":s.extend({remote:!/#/.test(i)&&i},o.data(),e.data());e.is("a")&&t.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),n.call(o,i,this)})}(jQuery),function(l){"use strict";function h(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}h.VERSION="3.3.7",h.TRANSITION_DURATION=150,h.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},h.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=l(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&l(l.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),n=o.length;n--;){var s,a=o[n];"click"==a?this.$element.on("click."+this.type,this.options.selector,l.proxy(this.toggle,this)):"manual"!=a&&(s="hover"==a?"mouseleave":"focusout",this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,l.proxy(this.leave,this)))}this.options.selector?this._options=l.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.getOptions=function(t){return(t=l.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},h.prototype.getDelegateOptions=function(){var i={},o=this.getDefaults();return this._options&&l.each(this._options,function(t,e){o[t]!=e&&(i[t]=e)}),i},h.prototype.enter=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState?void(e.hoverState="in"):(clearTimeout(e.timeout),e.hoverState="in",e.options.delay&&e.options.delay.show?void(e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)):e.show())},h.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},h.prototype.leave=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue())return clearTimeout(e.timeout),e.hoverState="out",e.options.delay&&e.options.delay.hide?void(e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)):e.hide()},h.prototype.show=function(){var e,t,i,o,n,s,a,r=l.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(r),i=l.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!r.isDefaultPrevented()&&i&&(t=(e=this).tip(),s=this.getUID(this.type),this.setContent(),t.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&t.addClass("fade"),a="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,(n=(o=/\s?auto?\s?/i).test(a))&&(a=a.replace(o,"")||"top"),t.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),r=this.getPosition(),i=t[0].offsetWidth,s=t[0].offsetHeight,n&&(o=a,n=this.getPosition(this.$viewport),a="bottom"==a&&r.bottom+s>n.bottom?"top":"top"==a&&r.top-s<n.top?"bottom":"right"==a&&r.right+i>n.width?"left":"left"==a&&r.left-i<n.left?"right":a,t.removeClass(o).addClass(a)),s=this.getCalculatedOffset(a,r,i,s),this.applyPlacement(s,a),a=function(){var t=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==t&&e.leave(e)},l.support.transition&&this.$tip.hasClass("fade")?t.one("bsTransitionEnd",a).emulateTransitionEnd(h.TRANSITION_DURATION):a()))},h.prototype.applyPlacement=function(t,e){var i=this.tip(),o=i[0].offsetWidth,n=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,l.offset.setOffset(i[0],l.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in");var r=i[0].offsetWidth,s=i[0].offsetHeight;"top"==e&&s!=n&&(t.top=t.top+n-s);a=this.getViewportAdjustedDelta(e,t,r,s);a.left?t.left+=a.left:t.top+=a.top;e=/top|bottom/.test(e),n=e?2*a.left-o+r:2*a.top-n+s,s=e?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(n,i[0][s],e)},h.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},h.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},h.prototype.hide=function(t){function e(){"in"!=i.hoverState&&o.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),t&&t()}var i=this,o=l(this.$tip),n=l.Event("hide.bs."+this.type);if(this.$element.trigger(n),!n.isDefaultPrevented())return o.removeClass("in"),l.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",e).emulateTransitionEnd(h.TRANSITION_DURATION):e(),this.hoverState=null,this},h.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},h.prototype.hasContent=function(){return this.getTitle()},h.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName,o=e.getBoundingClientRect();null==o.width&&(o=l.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));e=window.SVGElement&&e instanceof window.SVGElement,e=i?{top:0,left:0}:e?null:t.offset(),t={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},i=i?{width:l(window).width(),height:l(window).height()}:null;return l.extend({},o,t,i,e)},h.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},h.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n={top:0,left:0};if(!this.$viewport)return n;var s,a=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);return/right|left/.test(t)?(t=e.top-a-r.scroll,s=e.top+a-r.scroll+o,t<r.top?n.top=r.top-t:s>r.top+r.height&&(n.top=r.top+r.height-s)):(s=e.left-a,i=e.left+a+i,s<r.left?n.left=r.left-s:i>r.right&&(n.left=r.left+r.width-i)),n},h.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},h.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},h.prototype.tip=function(){if(!this.$tip&&(this.$tip=l(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},h.prototype.enable=function(){this.enabled=!0},h.prototype.disable=function(){this.enabled=!1},h.prototype.toggleEnabled=function(){this.enabled=!this.enabled},h.prototype.toggle=function(t){var e=this;t&&((e=l(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},h.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var t=l.fn.tooltip;l.fn.tooltip=function(o){return this.each(function(){var t=l(this),e=t.data("bs.tooltip"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.tooltip",e=new h(this,i)),"string"==typeof o&&e[o]())})},l.fn.tooltip.Constructor=h,l.fn.tooltip.noConflict=function(){return l.fn.tooltip=t,this}}(jQuery),function(n){"use strict";function s(t,e){this.init("popover",t,e)}if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.3.7",s.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((s.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function(o){return this.each(function(){var t=n(this),e=t.data("bs.popover"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.popover",e=new s(this,i)),"string"==typeof o&&e[o]())})},n.fn.popover.Constructor=s,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery),function(n){"use strict";function o(t,e){this.$body=n(document.body),this.$scrollElement=n(n(t).is(document.body)?window:t),this.options=n.extend({},o.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=n(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new o(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}o.VERSION="3.3.7",o.DEFAULTS={offset:10},o.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},o.prototype.refresh=function(){var t=this,i="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),n.isWindow(this.$scrollElement[0])||(i="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=n(this),e=t.data("target")||t.attr("href"),t=/^#./.test(e)&&n(e);return t&&t.length&&t.is(":visible")?[[t[i]().top+o,e]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},o.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,s=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),o<=e)return a!=(t=s[s.length-1])&&this.activate(t);if(a&&e<n[0])return this.activeTarget=null,this.clear();for(t=n.length;t--;)a!=s[t]&&e>=n[t]&&(void 0===n[t+1]||e<n[t+1])&&this.activate(s[t])},o.prototype.activate=function(t){this.activeTarget=t,this.clear();t=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',t=n(t).parents("li").addClass("active");(t=t.parent(".dropdown-menu").length?t.closest("li.dropdown").addClass("active"):t).trigger("activate.bs.scrollspy")},o.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=n.fn.scrollspy;n.fn.scrollspy=e,n.fn.scrollspy.Constructor=o,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=t,this},n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);e.call(t,t.data())})})}(jQuery),function(a){"use strict";function e(i){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new r(this)),"string"==typeof i&&e[i]()})}function r(t){this.element=a(t)}r.VERSION="3.3.7",r.TRANSITION_DURATION=150,r.prototype.show=function(){var t,e,i,o=this.element,n=o.closest("ul:not(.dropdown-menu)"),s=o.data("target");s||(s=(s=o.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"")),o.parent("li").hasClass("active")||(t=n.find(".active:last a"),e=a.Event("hide.bs.tab",{relatedTarget:o[0]}),i=a.Event("show.bs.tab",{relatedTarget:t[0]}),t.trigger(e),o.trigger(i),i.isDefaultPrevented()||e.isDefaultPrevented()||(s=a(s),this.activate(o.closest("li"),n),this.activate(s,s.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:o[0]}),o.trigger({type:"shown.bs.tab",relatedTarget:t[0]})})))},r.prototype.activate=function(t,e,i){function o(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var n=e.find("> .active"),s=i&&a.support.transition&&(n.length&&n.hasClass("fade")||!!e.find("> .fade").length);n.length&&s?n.one("bsTransitionEnd",o).emulateTransitionEnd(r.TRANSITION_DURATION):o(),n.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=t,this};function i(t){t.preventDefault(),e.call(a(this),"show")}a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(a){"use strict";function i(i){return this.each(function(){var t=a(this),e=t.data("bs.affix");e||t.data("bs.affix",e=new r(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}var r=function(t,e){this.options=a.extend({},r.DEFAULTS,e),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};r.VERSION="3.3.7",r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0,target:window},r.prototype.getState=function(t,e,i,o){var n=this.$target.scrollTop(),s=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return n<i&&"top";if("bottom"==this.affixed)return null!=i?!(n+this.unpin<=s.top)&&"bottom":!(n+a<=t-o)&&"bottom";var r=null==this.affixed,s=r?n:s.top;return null!=i&&n<=i?"top":null!=o&&t-o<=s+(r?a:e)&&"bottom"},r.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(r.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},r.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},r.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,i=e.top,o=e.bottom,n=Math.max(a(document).height(),a(document.body).height());"object"!=typeof e&&(o=i=e),"function"==typeof i&&(i=e.top(this.$element)),"function"==typeof o&&(o=e.bottom(this.$element));var s=this.getState(n,t,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");e="affix"+(s?"-"+s:""),i=a.Event(e+".bs.affix");if(this.$element.trigger(i),i.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(r.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:n-t-o})}};var t=a.fn.affix;a.fn.affix=i,a.fn.affix.Constructor=r,a.fn.affix.noConflict=function(){return a.fn.affix=t,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var t=a(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),i.call(t,e)})})}(jQuery);
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(u){u.extend(u.fn,{validate:function(t){if(this.length){var s=u.data(this[0],"validator");return s||(this.attr("novalidate","novalidate"),s=new u.validator(t,this[0]),u.data(this[0],"validator",s),s.settings.onsubmit&&(this.on("click.validate",":submit",function(t){s.submitButton=t.currentTarget,u(this).hasClass("cancel")&&(s.cancelSubmit=!0),void 0!==u(this).attr("formnovalidate")&&(s.cancelSubmit=!0)}),this.on("submit.validate",function(i){function t(){var t,e;return s.submitButton&&(s.settings.submitHandler||s.formSubmitted)&&(t=u("<input type='hidden'/>").attr("name",s.submitButton.name).val(u(s.submitButton).val()).appendTo(s.currentForm)),!s.settings.submitHandler||(e=s.settings.submitHandler.call(s,s.currentForm,i),t&&t.remove(),void 0!==e&&e)}return s.settings.debug&&i.preventDefault(),s.cancelSubmit?(s.cancelSubmit=!1,t()):s.form()?s.pendingRequest?!(s.formSubmitted=!0):t():(s.focusInvalid(),!1)})),s)}t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,e,i;return u(this[0]).is("form")?t=this.validate().form():(i=[],t=!0,e=u(this[0].form).validate(),this.each(function(){(t=e.element(this)&&t)||(i=i.concat(e.errorList))}),e.errorList=i),t},rules:function(t,e){var i,s,n,r,a,o=this[0];if(null!=o&&(!o.form&&o.hasAttribute("contenteditable")&&(o.form=this.closest("form")[0],o.name=this.attr("name")),null!=o.form)){if(t)switch(i=u.data(o.form,"validator").settings,s=i.rules,n=u.validator.staticRules(o),t){case"add":u.extend(n,u.validator.normalizeRule(e)),delete n.messages,s[o.name]=n,e.messages&&(i.messages[o.name]=u.extend(i.messages[o.name],e.messages));break;case"remove":return e?(a={},u.each(e.split(/\s/),function(t,e){a[e]=n[e],delete n[e]}),a):(delete s[o.name],n)}return(t=u.validator.normalizeRules(u.extend({},u.validator.classRules(o),u.validator.attributeRules(o),u.validator.dataRules(o),u.validator.staticRules(o)),o)).required&&(r=t.required,delete t.required,t=u.extend({required:r},t)),t.remote&&(r=t.remote,delete t.remote,t=u.extend(t,{remote:r})),t}}}),u.extend(u.expr.pseudos||u.expr[":"],{blank:function(t){return!u.trim(""+u(t).val())},filled:function(t){t=u(t).val();return null!==t&&!!u.trim(""+t)},unchecked:function(t){return!u(t).prop("checked")}}),u.validator=function(t,e){this.settings=u.extend(!0,{},u.validator.defaults,t),this.currentForm=e,this.init()},u.validator.format=function(i,t){return 1===arguments.length?function(){var t=u.makeArray(arguments);return t.unshift(i),u.validator.format.apply(this,t)}:(void 0===t||((t=2<arguments.length&&t.constructor!==Array?u.makeArray(arguments).slice(1):t).constructor!==Array&&(t=[t]),u.each(t,function(t,e){i=i.replace(new RegExp("\\{"+t+"\\}","g"),function(){return e})})),i)},u.extend(u.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:u([]),errorLabelContainer:u([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){9===e.which&&""===this.elementValue(t)||-1!==u.inArray(e.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(t,e,i){("radio"===t.type?this.findByName(t.name):u(t)).addClass(e).removeClass(i)},unhighlight:function(t,e,i){("radio"===t.type?this.findByName(t.name):u(t)).removeClass(e).addClass(i)}},setDefaults:function(t){u.extend(u.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:u.validator.format("Please enter no more than {0} characters."),minlength:u.validator.format("Please enter at least {0} characters."),rangelength:u.validator.format("Please enter a value between {0} and {1} characters long."),range:u.validator.format("Please enter a value between {0} and {1}."),max:u.validator.format("Please enter a value less than or equal to {0}."),min:u.validator.format("Please enter a value greater than or equal to {0}."),step:u.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function t(t){!this.form&&this.hasAttribute("contenteditable")&&(this.form=u(this).closest("form")[0],this.name=u(this).attr("name"));var e=u.data(this.form,"validator"),i="on"+t.type.replace(/^validate/,""),s=e.settings;s[i]&&!u(this).is(s.ignore)&&s[i].call(e,this,t)}this.labelContainer=u(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||u(this.currentForm),this.containers=u(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,s=this.groups={};u.each(this.settings.groups,function(i,t){"string"==typeof t&&(t=t.split(/\s/)),u.each(t,function(t,e){s[e]=i})}),i=this.settings.rules,u.each(i,function(t,e){i[t]=u.validator.normalizeRule(e)}),u(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",t).on("click.validate","select, option, [type='radio'], [type='checkbox']",t),this.settings.invalidHandler&&u(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),u.extend(this.submitted,this.errorMap),this.invalid=u.extend({},this.errorMap),this.valid()||u(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(t){var e,i,s=this.clean(t),n=this.validationTargetFor(s),r=this,a=!0;return void 0===n?delete this.invalid[s.name]:(this.prepareElement(n),this.currentElements=u(n),(i=this.groups[n.name])&&u.each(this.groups,function(t,e){e===i&&t!==n.name&&((s=r.validationTargetFor(r.clean(r.findByName(t))))&&s.name in r.invalid&&(r.currentElements.push(s),a=r.check(s)&&a))}),e=!1!==this.check(n),a=a&&e,this.invalid[n.name]=!e,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),u(t).attr("aria-invalid",!e)),a},showErrors:function(e){var i;e&&(u.extend((i=this).errorMap,e),this.errorList=u.map(this.errorMap,function(t,e){return{message:t,element:i.findByName(e)[0]}}),this.successList=u.grep(this.successList,function(t){return!(t.name in e)})),this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){u.fn.resetForm&&u(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)void 0!==t[e]&&null!==t[e]&&!1!==t[e]&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{u(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===u.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return u(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var t=this.name||u(this).attr("name");return!t&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=u(this).closest("form")[0],this.name=t),!(t in i||!e.objectLength(u(this).rules())||(i[t]=!0,0))})},clean:function(t){return u(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return u(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=u([]),this.toHide=u([])},reset:function(){this.resetInternals(),this.currentElements=u([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(t){var e=u(t),i=t.type;return"radio"===i||"checkbox"===i?this.findByName(t.name).filter(":checked").val():"number"===i&&void 0!==t.validity?t.validity.badInput?"NaN":e.val():(e=t.hasAttribute("contenteditable")?e.text():e.val(),"file"===i?"C:\\fakepath\\"===e.substr(0,12)?e.substr(12):0<=(i=e.lastIndexOf("/"))?e.substr(i+1):0<=(i=e.lastIndexOf("\\"))?e.substr(i+1):e:"string"==typeof e?e.replace(/\r/g,""):e)},check:function(e){e=this.validationTargetFor(this.clean(e));var t,i,s,n,r=u(e).rules(),a=u.map(r,function(t,e){return e}).length,o=!1,l=this.elementValue(e);if("function"==typeof r.normalizer?n=r.normalizer:"function"==typeof this.settings.normalizer&&(n=this.settings.normalizer),n){if("string"!=typeof(l=n.call(e,l)))throw new TypeError("The normalizer should return a string value.");delete r.normalizer}for(i in r){s={method:i,parameters:r[i]};try{if("dependency-mismatch"===(t=u.validator.methods[i].call(this,l,e,s.parameters))&&1===a){o=!0;continue}if(o=!1,"pending"===t)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!t)return this.formatAndAdd(e,s),!1}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+s.method+"' method.",t),t instanceof TypeError&&(t.message+=".  Exception occurred when checking element "+e.id+", check the '"+s.method+"' method."),t}}if(!o)return this.objectLength(r)&&this.successList.push(e),!0},customDataMessage:function(t,e){return u(t).data("msg"+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase())||u(t).data("msg")},customMessage:function(t,e){t=this.settings.messages[t];return t&&(t.constructor===String?t:t[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(t,e){var i=this.findDefined(this.customMessage(t.name,(e="string"==typeof e?{method:e}:e).method),this.customDataMessage(t,e.method),!this.settings.ignoreTitle&&t.title||void 0,u.validator.messages[e.method],"<strong>Warning: No message defined for "+t.name+"</strong>"),s=/\$?\{(\d+)\}/g;return"function"==typeof i?i=i.call(this,e.parameters,t):s.test(i)&&(i=u.validator.format(i.replace(s,"{$1}"),e.parameters)),i},formatAndAdd:function(t,e){var i=this.defaultMessage(t,e);this.errorList.push({message:i,element:t,method:e.method}),this.errorMap[t.name]=i,this.submitted[t.name]=i},addWrapper:function(t){return t=this.settings.wrapper?t.add(t.parent(this.settings.wrapper)):t},defaultShowErrors:function(){for(var t,e,i=0;this.errorList[i];i++)e=this.errorList[i],this.settings.highlight&&this.settings.highlight.call(this,e.element,this.settings.errorClass,this.settings.validClass),this.showLabel(e.element,e.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(i=0;this.successList[i];i++)this.showLabel(this.successList[i]);if(this.settings.unhighlight)for(i=0,t=this.validElements();t[i];i++)this.settings.unhighlight.call(this,t[i],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return u(this.errorList).map(function(){return this.element})},showLabel:function(t,e){var i,s,n,r=this.errorsFor(t),a=this.idOrName(t),o=u(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(e)):(i=r=u("<"+this.settings.errorElement+">").attr("id",a+"-error").addClass(this.settings.errorClass).html(e||""),this.settings.wrapper&&(i=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(i):this.settings.errorPlacement?this.settings.errorPlacement.call(this,i,u(t)):i.insertAfter(t),r.is("label")?r.attr("for",a):0===r.parents("label[for='"+this.escapeCssMeta(a)+"']").length&&(a=r.attr("id"),o?o.match(new RegExp("\\b"+this.escapeCssMeta(a)+"\\b"))||(o+=" "+a):o=a,u(t).attr("aria-describedby",o),(s=this.groups[t.name])&&u.each((n=this).groups,function(t,e){e===s&&u("[name='"+n.escapeCssMeta(t)+"']",n.currentForm).attr("aria-describedby",r.attr("id"))}))),!e&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,t)),this.toShow=this.toShow.add(r)},errorsFor:function(t){var e=this.escapeCssMeta(this.idOrName(t)),t=u(t).attr("aria-describedby"),e="label[for='"+e+"'], label[for='"+e+"'] *";return t&&(e=e+", #"+this.escapeCssMeta(t).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(t){return t.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||!this.checkable(t)&&t.id||t.name},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),u(t).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(t){return u(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,e){switch(e.nodeName.toLowerCase()){case"select":return u("option:selected",e).length;case"input":if(this.checkable(e))return this.findByName(e.name).filter(":checked").length}return t.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(t,e){return!!u(t,e.form).length},function:function(t,e){return t(e)}},optional:function(t){var e=this.elementValue(t);return!u.validator.methods.required.call(this,e,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,u(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,e){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],u(t).removeClass(this.settings.pendingClass),e&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(u(this.currentForm).submit(),this.submitButton&&u("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!e&&0===this.pendingRequest&&this.formSubmitted&&(u(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,e){return e="string"==typeof e&&e||"remote",u.data(t,"previousValue")||u.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:e})})},destroy:function(){this.resetForm(),u(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,e){t.constructor===String?this.classRuleSettings[t]=e:u.extend(this.classRuleSettings,t)},classRules:function(t){var e={},t=u(t).attr("class");return t&&u.each(t.split(" "),function(){this in u.validator.classRuleSettings&&u.extend(e,u.validator.classRuleSettings[this])}),e},normalizeAttributeRule:function(t,e,i,s){/min|max|step/.test(i)&&(null===e||/number|range|text/.test(e))&&(s=Number(s),isNaN(s)&&(s=void 0)),s||0===s?t[i]=s:e===i&&"range"!==e&&(t[i]=!0)},attributeRules:function(t){var e,i,s={},n=u(t),r=t.getAttribute("type");for(e in u.validator.methods)i="required"===e?(i=t.getAttribute(e),""===i&&(i=!0),!!i):n.attr(e),this.normalizeAttributeRule(s,r,e,i);return s.maxlength&&/-1|2147483647|524288/.test(s.maxlength)&&delete s.maxlength,s},dataRules:function(t){var e,i,s={},n=u(t),r=t.getAttribute("type");for(e in u.validator.methods)i=n.data("rule"+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()),this.normalizeAttributeRule(s,r,e,i);return s},staticRules:function(t){var e={},i=u.data(t.form,"validator");return e=i.settings.rules?u.validator.normalizeRule(i.settings.rules[t.name])||{}:e},normalizeRules:function(s,n){return u.each(s,function(t,e){if(!1!==e){if(e.param||e.depends){var i=!0;switch(typeof e.depends){case"string":i=!!u(e.depends,n.form).length;break;case"function":i=e.depends.call(n,n)}i?s[t]=void 0===e.param||e.param:(u.data(n.form,"validator").resetElements(u(n)),delete s[t])}}else delete s[t]}),u.each(s,function(t,e){s[t]=u.isFunction(e)&&"normalizer"!==t?e(n):e}),u.each(["minlength","maxlength"],function(){s[this]&&(s[this]=Number(s[this]))}),u.each(["rangelength","range"],function(){var t;s[this]&&(u.isArray(s[this])?s[this]=[Number(s[this][0]),Number(s[this][1])]:"string"==typeof s[this]&&(t=s[this].replace(/[\[\]]/g,"").split(/[\s,]+/),s[this]=[Number(t[0]),Number(t[1])]))}),u.validator.autoCreateRanges&&(null!=s.min&&null!=s.max&&(s.range=[s.min,s.max],delete s.min,delete s.max),null!=s.minlength&&null!=s.maxlength&&(s.rangelength=[s.minlength,s.maxlength],delete s.minlength,delete s.maxlength)),s},normalizeRule:function(t){var e;return"string"==typeof t&&(e={},u.each(t.split(/\s/),function(){e[this]=!0}),t=e),t},addMethod:function(t,e,i){u.validator.methods[t]=e,u.validator.messages[t]=void 0!==i?i:u.validator.messages[t],e.length<3&&u.validator.addClassRules(t,u.validator.normalizeRule(t))},methods:{required:function(t,e,i){if(!this.depend(i,e))return"dependency-mismatch";if("select"!==e.nodeName.toLowerCase())return this.checkable(e)?0<this.getLength(t,e):0<t.length;e=u(e).val();return e&&0<e.length},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(t,e,i){t=u.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||i<=t},maxlength:function(t,e,i){t=u.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||t<=i},rangelength:function(t,e,i){t=u.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||t>=i[0]&&t<=i[1]},min:function(t,e,i){return this.optional(e)||i<=t},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},step:function(t,e,i){function s(t){return(t=(""+t).match(/(?:\.(\d+))?$/))&&t[1]?t[1].length:0}function n(t){return Math.round(t*Math.pow(10,r))}var r,a=u(e).attr("type"),o="Step attribute on input type "+a+" is not supported.",l=new RegExp("\\b"+a+"\\b"),h=!0;if(a&&!l.test(["text","number","range"].join()))throw new Error(o);return r=s(i),(s(t)>r||n(t)%n(i)!=0)&&(h=!1),this.optional(e)||h},equalTo:function(t,e,i){i=u(i);return this.settings.onfocusout&&i.not(".validate-equalTo-blur").length&&i.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){u(e).valid()}),t===i.val()},remote:function(s,n,t,r){if(this.optional(n))return"dependency-mismatch";var a,e,o=this.previousValue(n,r="string"==typeof r&&r||"remote");return this.settings.messages[n.name]||(this.settings.messages[n.name]={}),o.originalMessage=o.originalMessage||this.settings.messages[n.name][r],this.settings.messages[n.name][r]=o.message,e=u.param(u.extend({data:s},(t="string"==typeof t?{url:t}:t).data)),o.old===e?o.valid:(o.old=e,(a=this).startRequest(n),(e={})[n.name]=s,u.ajax(u.extend(!0,{mode:"abort",port:"validate"+n.name,dataType:"json",data:e,context:a.currentForm,success:function(t){var e,i=!0===t||"true"===t;a.settings.messages[n.name][r]=o.originalMessage,i?(e=a.formSubmitted,a.resetInternals(),a.toHide=a.errorsFor(n),a.formSubmitted=e,a.successList.push(n),a.invalid[n.name]=!1,a.showErrors()):(e={},t=t||a.defaultMessage(n,{method:r,parameters:s}),e[n.name]=o.message=t,a.invalid[n.name]=!0,a.showErrors(e)),o.valid=i,a.stopRequest(n,i)}},t)),"pending")}}});var s,n={};return u.ajaxPrefilter?u.ajaxPrefilter(function(t,e,i){var s=t.port;"abort"===t.mode&&(n[s]&&n[s].abort(),n[s]=i)}):(s=u.ajax,u.ajax=function(t){var e=("mode"in t?t:u.ajaxSettings).mode,i=("port"in t?t:u.ajaxSettings).port;return"abort"===e?(n[i]&&n[i].abort(),n[i]=s.apply(this,arguments),n[i]):s.apply(this,arguments)}),u});
var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,o=arguments[e];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.LazyLoad=e()}(this,function(){"use strict";function n(t,e,n){var o,i,s,l,r,a;!n&&f(t)||(_(e.callback_enter,t),-1<O.indexOf(t.tagName)&&(l=e,function(t,e,n){h(t,"load",e),h(t,"loadeddata",e),h(t,"error",n)}(s=t,r=function t(e){g(e,!0,l),p(s,t,a)},a=function t(e){g(e,!1,l),p(s,r,t)}),u(t,e.class_loading)),i=e,n=(o=t).tagName,(S[n]||function(t,e){var n=L&&e.to_webp,o=d(t,e.data_src),i=d(t,e.data_bg);if(o){var s=c(o,n);t.style.backgroundImage='url("'+s+'")'}if(i){var l=c(i,n);t.style.backgroundImage=l}})(o,i),function(t,e,n){var o="data-"+e;null!==n?t.setAttribute(o,n):t.removeAttribute(o)}(t,"was-processed","true"),_(e.callback_set,t))}function o(t){return t.getBoundingClientRect().top+window.pageYOffset-t.ownerDocument.documentElement.clientTop}function i(t){return t.getBoundingClientRect().left+window.pageXOffset-t.ownerDocument.documentElement.clientLeft}function s(t,e){var n,e=new t(e);try{n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:e}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:e})}window.dispatchEvent(n)}function c(t,e){return e?t.replace(/\.(jpe?g|png)/gi,".webp"):t}function u(t,e){a?t.classList.add(e):t.className+=(t.className?" ":"")+e}function d(t,e){return t.getAttribute("data-"+e)}function f(t){return"true"===d(t,"was-processed")}function l(t,e,n,o){for(var i,s,l=0;i=t.children[l];l+=1)"SOURCE"===i.tagName&&(s=d(i,n),T(i,e,s,o))}function _(t,e){t&&t(e)}function h(t,e,n){t.addEventListener(e,n)}function r(t,e,n){t.removeEventListener(e,n)}function p(t,e,n){r(t,"load",e),r(t,"loadeddata",e),r(t,"error",n)}function g(t,e,n){var o=e?n.class_loaded:n.class_error,i=e?n.callback_load:n.callback_error,e=t.target;t=e,n=n.class_loading,a?t.classList.remove(n):t.className=t.className.replace(new RegExp("(^|\\s+)"+n+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,""),u(e,o),_(i,e)}function m(t,e){for(;e.length;)t.splice(e.pop(),1)}var t,w=function(t,e,n){return(e===window?window.innerHeight+window.pageYOffset:o(e)+e.offsetHeight)<=o(t)-n},v=function(t,e,n){var o=window.innerWidth;return(e===window?o+window.pageXOffset:i(e)+o)<=i(t)-n},b=function(t,e,n){return(e===window?window.pageYOffset:o(e))>=o(t)+n+t.offsetHeight},y=function(t,e,n){return(e===window?window.pageXOffset:i(e))>=i(t)+n+t.offsetWidth},e="undefined"!=typeof window,E=e&&!("onscroll"in window)||/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),a=e&&"classList"in document.createElement("p"),L=e&&(!(!(t=document.createElement("canvas")).getContext||!t.getContext("2d"))&&0===t.toDataURL("image/webp").indexOf("data:image/webp")),T=function(t,e,n,o){n&&t.setAttribute(e,c(n,o))},S={IMG:function(t,e){var n=L&&e.to_webp,o=e.data_srcset,i=t.parentNode;i&&"PICTURE"===i.tagName&&l(i,"srcset",o,n);i=d(t,e.data_sizes);T(t,"sizes",i);o=d(t,o);T(t,"srcset",o,n);e=d(t,e.data_src);T(t,"src",e,n)},IFRAME:function(t,e){e=d(t,e.data_src);T(t,"src",e)},VIDEO:function(t,e){var n=e.data_src,e=d(t,n);l(t,"src",n),T(t,"src",e),t.load()}},O=["IMG","IFRAME","VIDEO"],t=function(t){this._settings=_extends({},{elements_selector:"img",container:window,threshold:300,throttle:150,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_initial:"initial",skip_invisible:!0,callback_load:null,callback_error:null,callback_set:null,callback_processed:null,callback_enter:null,to_webp:!1},t),this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,this._boundHandleScroll=this.handleScroll.bind(this),this._isFirstLoop=!0,window.addEventListener("resize",this._boundHandleScroll),this.update()};return t.prototype={_loopThroughElements:function(t){var e,n,o,i=this._settings,s=this._elements,l=s?s.length:0,r=void 0,a=[],c=this._isFirstLoop;if(c&&(this._isFirstLoop=!1),0!==l){for(r=0;r<l;r++){var d=s[r];i.skip_invisible&&null===d.offsetParent||!E&&!t&&(e=d,n=i.container,o=i.threshold,w(e,n,o)||b(e,n,o)||v(e,n,o)||y(e,n,o))||(c&&u(d,i.class_initial),this.load(d),a.push(r))}m(s,a)}else this._stopScrollHandler()},_purgeElements:function(){for(var t=this._elements,e=t.length,n=void 0,o=[],n=0;n<e;n++)f(t[n])&&o.push(n);m(t,o)},_startScrollHandler:function(){this._isHandlingScroll||(this._isHandlingScroll=!0,this._settings.container.addEventListener("scroll",this._boundHandleScroll))},_stopScrollHandler:function(){this._isHandlingScroll&&(this._isHandlingScroll=!1,this._settings.container.removeEventListener("scroll",this._boundHandleScroll))},handleScroll:function(){var t,e,n=this._settings.throttle;0!==n?(e=n-((t=Date.now())-this._previousLoopTime))<=0||n<e?(this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._previousLoopTime=t,this._loopThroughElements()):this._loopTimeout||(this._loopTimeout=setTimeout(function(){this._previousLoopTime=Date.now(),this._loopTimeout=null,this._loopThroughElements()}.bind(this),e)):this._loopThroughElements()},loadAll:function(){this._loopThroughElements(!0)},update:function(){this._elements=Array.prototype.slice.call(this._queryOriginNode.querySelectorAll(this._settings.elements_selector)),this._purgeElements(),this._loopThroughElements(),this._startScrollHandler()},destroy:function(){window.removeEventListener("resize",this._boundHandleScroll),this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._stopScrollHandler(),this._elements=null,this._queryOriginNode=null,this._settings=null},load:function(t,e){n(t,this._settings,e)}},e&&function(t,e){if(e)if(e.length)for(var n,o=0;n=e[o];o+=1)s(t,n);else s(t,e)}(t,window.lazyLoadOptions),t});
var resizeTimer,timer;function resizeColorBox(){resizeTimer&&clearTimeout(resizeTimer),resizeTimer=setTimeout(function(){$("#cboxOverlay").is(":visible")&&$.colorbox.load(!0)},300)}function modifAdresse(e,i){$.colorbox({maxWidth:"95%",maxHeight:"95%",iframe:!0,fixed:!0,innerWidth:"800px",innerHeight:"80%",href:"/global/includes/formulaire-adresse.php?referer="+e+"&id_adresse="+i,onOpen:function(){$("#colorbox").addClass("cbox_modif_adresse"),$("html, body").css("overflow","hidden")},onComplete:function(){$("#cboxContent").mCustomScrollbar({live:!0,alwaysShowScrollbar:2,theme:"dark-thick"})},onClosed:function(){location.reload(!0),$("html, body").css("overflow","visible")}}),$(".cbox_modif_adresse #cboxLoadedContent").css("min-height","1400px")}function modifAdressePrincipale(e){$.ajax({url:"/global/includes/ajax/modif-adresse-principale.php",data:{id_adresse:e},type:"POST",success:function(e){location.reload(!0)}})}function messageCookies(e){"1"==e&&($("#mention_cookies").hide(),$("nav.nav-smenu").addClass("cookie-valides"),$.ajax({url:"/global/includes/ajax/message-cookies.php",data:{action:"validation-cookies"},type:"POST",success:function(e){}})),"0"==e&&$("#mention_cookies").hide()}function ajax(e){if(null==e||null==e.url||""==e.url)return!1;if(null!=e.confirm&&!confirm(e.confirm))return!1;null==e.method&&(e.method="POST"),datatype=null!=e.datatype?e.datatype:"",$.ajax({url:e.url,data:e.data,method:e.method,success:function(e){majChamps(e)}})}function majChamps(e){""!=e&&(null!=(e=JSON.parse(e)).champs&&$.each(e.champs,function(e,i){0<$("#"+e).length?$("#"+e).is("input, textarea, select")?$("#"+e).val(i):$("#"+e).html(i):$("."+e).is("input, textarea, select")?$("."+e).val(i):$("."+e).html(i)}),null!=e.affiche_cadre&&afficheCadre({affichage:e.affiche_cadre}),null!=e.success&&$("#contenu").prepend('<div class="alert alert-success">'+e.success+"</div>"),null!=e.erreur&&$("#contenu").prepend('<div class="alert alert-danger">'+e.erreur+"</div>"),null!=e.redirect&&(window.location.href=e.redirect))}function afficheTout(){$('div[data-group="cons_1_gen"]');$('div[data-group="cons_1_gen"]').children().css("display","flex"),$(".choix_generiques > a").css("border-color","#fff"),$(".choix_generiques > a").css("opacity","1"),$(".choix_generiques > a.affiche_tout").css({"border-color":"#000",opacity:"1"})}function afficheConsommableMarqueCons1(e){var i=$('div[data-group="cons_1_gen"]');$('div[data-group="cons_1_gen"]').children().css("display","none"),$('[data-marque*="'+e+'"]',i).css("display","flex"),$(".choix_generiques > a").css("border-color","#fff"),$(".choix_generiques > a").css("opacity","0.5"),$(".choix_generiques > a").find('img[src*="'+e+'"]').parent("a").css({"border-color":"#000",opacity:"1"})}function afficheConsommableMarqueCons2(e){var i=$('div[data-group="cons_2_gen"]');$('div[data-group="cons_2_gen"]').children().css("display","none"),$('[data-marque*="'+e+'"]',i).css("display","flex")}!function(a,i,n){a.fn.doubleTapToGo=function(e){return!!("ontouchstart"in i||navigator.msMaxTouchPoints||navigator.userAgent.toLowerCase().match(/windows phone os 7/i))&&(this.each(function(){var t=!1;a(this).on("click",function(e){var i=a(this);i[0]!=t[0]&&(e.preventDefault(),t=i)}),a(n).on("click touchstart MSPointerDown",function(e){for(var i=!0,n=a(e.target).parents(),s=0;s<n.length;s++)n[s]==t[0]&&(i=!1);i&&(t=!1)})}),this)}}(jQuery,window,document),jQuery.extend(jQuery.validator.setDefaults({errorPlacement:function(e,i){"consentement_stockage_donnees"==$(i).attr("name")?$("#error_consentement_stockage_donnees").html(e):$(i).after(e)}})),jQuery.extend(jQuery.validator.messages,{required:"Merci de renseigner ce champ"}),$().ready(function(){$(document).on("keyup keypress","#panier_quantites input",function(e){if(13==e.which)return e.preventDefault(),!1});var e=$("header");function i(){var i;$(".nav-smenu-new > div *").show(),$(".nav-smenu-new").css({"min-height":"0","padding-bottom":"0"}),$(".main-menu li").not(".menu-offres").hover(function(){var e=$(this).attr("class").split("-")[1];$(".main-menu li").css("background-color","#fff"),$(".main-menu li").not(".menu-offres").find("a").css("color","#000"),$(".main-menu .fleche-menu").css("border-color","transparent"),$(this).css("background-color","#000"),$(this).find("a").css("color","#fff"),$(this).find(".fleche-menu").css("border-color","#000 transparent transparent transparent"),$(".nav-smenu").hasClass("cookie-valides")?$(".new-overlay").css("top","215px"):$(".new-overlay").css("top","246px"),i=setTimeout(function(){$(".nav-smenu-new > div").not(".sm-"+e).hide(),$(".nav-smenu-new").fadeIn(),$(".nav-smenu-new > div.sm-"+e).fadeIn(),$(".new-overlay").fadeIn(800)},500)},function(){clearTimeout(i)}),$(".menu-offres").on("mouseenter",function(){$(this).css("background-color","#fff"),$(this).find("a").css("color","#000"),$(".nav-smenu > div").fadeOut(),$(".nav-smenu").fadeOut(),$(".new-overlay").fadeOut(),$(".main-menu li").not(".menu-offres").css("background-color","#fff"),$(".main-menu li").not(".menu-offres").find("a").css("color","#000"),$(".main-menu li").not(".menu-offres").find(".fleche-menu").css("border-color","transparent")}),$(".menu-wrapper").on("mouseleave",function(){$(".nav-smenu-new").fadeOut(),$(".nav-smenu-new > div").fadeOut(),$(".new-overlay").fadeOut(),$(".main-menu li").css("background-color","#fff"),$(".main-menu li").not(".menu-offres").find("a").css("color","#000"),$(".main-menu li.menu-offres").find("a").css("color","#ff5117"),$(".main-menu .fleche-menu").css("border-color","transparent")})}function n(){$(".main-menu li").off(),$(".nav-smenu").css({display:""}),$(".nav-smenu > div").css({display:""}),$(".main-menu li").css({background:""}),$("nav.main-menu .main > ul li").not(".menu-offres").find("a").attr("href","javascript:void(0)"),$("nav.nav-smenu .cat_niv_2").find("> a").attr("href","javascript:void(0)"),$(".nav-smenu ul").css("display","none")&&($("nav.main-menu .main > ul li").not(".menu-offres").find("a").click(function(){var e=$("header.fixed-menu").outerHeight()-1;$("nav.main-menu").css({left:"-100%"}),$("nav.nav-smenu").css({display:"block",left:"0",top:e+"px"}),$("nav.nav-smenu").addClass("smenu-open");e=$(this).parent("li").attr("class").split(/-(.+)/)[1];$(".sm-"+e).css("display","block"),$(".sm-"+e).find("ul").not(".cat_niv_2 ul").css("display","block"),$(".sm-"+e).addClass("sm-open"),$("li.retour").addClass("retour-niv1")}),$(".cat_niv_2").on("click",function(){$(this).css({"background-size":"0"}),$(".cat_niv_2 > a").hide(),$(this).find("ul").css({display:"block"}).addClass("sm3-open"),$("li.retour").removeClass("retour-niv1"),$("li.retour").addClass("retour-niv2")})),$("li.retour a").on("click",function(e){e.stopPropagation(),$(this).parent("li").hasClass("retour-niv1")?($("nav.main-menu").css({left:"0"}),$("nav.nav-smenu").css("display","none"),$("nav.nav-smenu").removeClass("smenu-open"),$(this).closest('div[class^="sm-"]').css("display","none"),$(this).parent("li").removeClass("retour-niv1")):$(this).parent("li").hasClass("retour-niv2")&&($(".cat_niv_2 ul").hide(),$(".cat_niv_2 > a").show(),$(".cat_niv_2").css({"background-size":"25px",padding:"0 10px"}),$(this).parent("li").removeClass("retour-niv2"),$(this).parent("li").addClass("retour-niv1"))})}e.parent().css("min-height",e.height()),769<$(window).width()&&($("body").on("mouseover","img.bt",function(){$(this).stop().fadeTo(350,.6)}),$("body").on("mouseout","img.bt",function(){$(this).stop().fadeTo(350,1)})),(959<$(window).width()?i:n)(),$(window).on("resize",function(){(959<$(this).width()?i:n)()}),$(document).on("click","header:not(.fixed-menu) .menu-mobile",function(){$("nav.main-menu").hasClass("menu-open")?($("nav.main-menu").css({left:"0"}),$("nav.nav-smenu").css("display","none"),$('div[class^="sm-"]').css("display","none"),$("li.retour").removeClass("retour-niv1").removeClass("retour-niv2"),$("nav.main-menu").slideUp(),$("nav.main-menu").removeClass("menu-open")):($("nav.main-menu").slideDown(),$("html, body").animate({scrollTop:$("body").offset().top},1e3),$("nav.main-menu").addClass("menu-open"))}),$(document).on("click","header.fixed-menu .menu-mobile",function(){var e=$("header.fixed-menu").outerHeight()-1;a.width()<=959?$("nav.main-menu").hasClass("menu-open")?($("body").css("overflow","auto"),$("nav.main-menu").css({left:"0",position:"relative",height:"",top:""}),$("nav.nav-smenu").css({left:"0",position:"absolute",height:"",top:""}),$("nav.nav-smenu").css("display","none"),$('div[class^="sm-"]').css("display","none"),$("li.retour").removeClass("retour-niv1").removeClass("retour-niv2"),$("nav.main-menu").slideUp(),$("nav.main-menu").removeClass("menu-open")):($("body").css("overflow","hidden"),$("nav").css("top",e+"px"),$("nav.main-menu").css({position:"fixed",height:"100%",overflow:"auto"}),$("nav.nav-smenu").css({position:"fixed",height:"100%",overflow:"auto","padding-bottom":"19px"}),$("nav.nav-smenu > div").css({"min-height":"100vh"}),$("nav.main-menu").slideDown(),$("nav.main-menu").addClass("menu-open")):$("html, body").animate({scrollTop:$("body").offset().top},1e3)}),$(window).on("resize",function(){var e=$(this);959<=e.width()?($("nav.main-menu").removeClass("menu-open"),$("nav.main-menu").css({display:"block",left:"0"}),$(".new-overlay").css("display","none"),$("li.cat_niv_2 a").css("display","block"),$("li.cat_niv_2 ul").css("display","block"),$("nav.main-menu .main > ul li").not(".menu-offres").find("a").click(function(){$("nav.main-menu").css({left:"0%"})}),$("#sticker").sticky({topSpacing:72})):769<e.width()?$("nav.main-menu").hasClass("menu-open")||($("nav.main-menu").css("display","none"),$("nav.nav-smenu").css("display","none"),$("li.cat_niv_2").css("display","none"),$("li.cat_niv_2 ul").css("display","none")):480<=e.width()?($("nav.main-menu").hasClass("menu-open"),$("nav.nav-smenu").hasClass("smenu-open")&&($("nav.nav-smenu").show(),$("nav.nav-smenu .sm-open").show(),$("nav.nav-smenu .sm-open .liens > div > ul").show()),$("nav.nav-smenu .liens .cat_niv_2 > ul").hasClass("sm3-open")?$("nav.nav-smenu .liens .cat_niv_2 > ul.sm3-open").show():$("#retour-haut").sticky({topSpacing:71})):e.width()<480&&($("#retour-haut").sticky({topSpacing:60}),$("nav.main-menu").hasClass("menu-open"),$("nav.nav-smenu").hasClass("smenu-open")&&($("nav.nav-smenu").show(),$("nav.nav-smenu .sm-open").show(),$("nav.nav-smenu .sm-open .liens > div > ul").show()),$("nav.nav-smenu .liens .cat_niv_2 > ul").hasClass("sm3-open")&&$("nav.nav-smenu .liens .cat_niv_2 > ul.sm3-open").show())});var s,t,a=$(this);"ontouchstart"in document&&959<=$(window).width()&&$("nav.main-menu > .main > ul > li").has("div").doubleTapToGo(),s=$(window),t=$("header"),$(window).on("scroll",function(){200<=s.scrollTop()?($(t).addClass("fixed-menu-transition"),$(t).addClass("fixed-menu"),$(t).sticky({topSpacing:0})):($(t).removeClass("fixed-menu fixed-menu-transition"),$(t).unstick())});var o,c,r=0;function l(){var e;0<$(".cg_filtres:first").length&&($(".cg_filtres").addClass("cg_filtres-active"),$("fieldset .cadre-select").mCustomScrollbar("destroy"),e=$(".cg_filtres:first").clone().wrap("<p>").parent().html(),$(".filtres-mobile").colorbox({maxWidth:"95%",maxHeight:"95%",fixed:!0,html:e,onOpen:function(){$(".cg_filtres").addClass("cg_filtres-active"),$(".c_20 .cg_filtres").remove(),$(".autres-cat").removeClass("cg_autres-active")},onComplete:function(){u("cadre-select")},onClosed:function(){$(".conteneur-liste-articles > .main > .c_20").prepend(e),$(".cg_filtres").removeClass("cg_filtres-active"),u("cadre-select")}}))}function d(){$(".autres-cat:first").clone().appendTo(".main .c_20").addClass("autres-cat_2");var e=$(".autres-cat_2:first");$(".cat-mobile").colorbox({maxWidth:"95%",maxHeight:"95%",fixed:!0,html:e,onOpen:function(){$(".cg_filtres").removeClass("cg_filtres-active"),$(".autres-cat_2").addClass("cg_autres-active")}}),$(".conteneur-liste-articles > .main > .c_20 > .autres-cat_2").remove()}function u(e){"cadre-select"==e&&0<$("fieldset .cadre-select").length&&($("fieldset .cadre-select").mCustomScrollbar("destroy"),$("fieldset .cadre-select").mCustomScrollbar({live:!0,theme:"dark-thick"}))}function h(){$(".compte > ul li:last-child").mouseenter(function(){$("header .resume-panier").show(),$("#recap_panier_haut .panier-wrapper").length&&$("#recap_panier_haut .panier-wrapper").mCustomScrollbar("scrollTo","bottom",{scrollInertia:0})}),$(".compte > ul li:last-child").mouseleave(function(){$("header .resume-panier").hide()})}function m(){$("#preheader a").attr("href","tel:+33388705016"),$(".tel_bbt").attr("href","tel:+33388705016")}function p(){$("#preheader a").attr("href","javascript:void(0)"),$(".tel_bbt").attr("href","javascript:void(0)")}function f(){switch($("#type").val()){case"2":$(".group-entreprise").show(),$(".group-administration").hide(),$(".group-association").hide(),$(".group-tva").show();break;case"3":$(".group-administration").show(),$(".group-entreprise").hide(),$(".group-association").hide(),$(".group-tva").show();break;case"4":$(".group-association").show(),$(".group-entreprise").hide(),$(".group-administration").hide(),$(".group-tva").show();break;case"1":case"default":$(".group-entreprise").hide(),$(".group-administration").hide(),$(".group-association").hide(),$(".group-tva").hide()}}959<$(a).width()?$(".menu-onglets#sticker").sticky({topSpacing:72}):770<=$(a).width()?($(".menu-onglets#sticker").unstick(),$("#retour-haut").sticky({topSpacing:73}),$(window).scroll(function(){var e=$(this).scrollTop();r<e?($(".menu-onglets#sticker").unstick(),$("#retour-haut").sticky({topSpacing:73})):$(".menu-onglets#sticker").sticky({topSpacing:72}),r=e})):479<=$(a).width()?$(window).scroll(function(){var e=$(this).scrollTop();r<e?($(".menu-onglets#sticker").unstick(),$("#retour-haut").sticky({topSpacing:71})):$(".menu-onglets#sticker").sticky({topSpacing:70}),r=e}):$(window).scroll(function(){var e=$(this).scrollTop();r<e?($(".menu-onglets#sticker").unstick(),$("#retour-haut").sticky({topSpacing:61}),$("#consommables #sticker").unstick(),$("#consommables #retour-haut").sticky({topSpacing:61})):($(".menu-onglets#sticker").sticky({topSpacing:60}),$("#consommables #sticker").sticky({topSpacing:60}),$("#consommables #retour-haut").css("position","relative")),r=e}),$(window).width()<=959&&($(".filtres-mobile").on("click",function(){l()}),$(".cat-mobile").on("click",function(){d()}),$(document).bind("cbox_cleanup",function(){$(".autres-cat").removeClass("cg_autres-active"),$(".cg_filtres").removeClass("cg_filtres-active")})),$(window).on("resize",function(){$(".filtres-mobile").on("click",function(){l()}),$(".cat-mobile").on("click",function(){d()})}),$(".cadre-select").length&&u("cadre-select"),0<$("#recap_panier_haut .panier-wrapper").length&&$("#recap_panier_haut .panier-wrapper").mCustomScrollbar({scrollInertia:400,theme:"dark-thick"}),$(document).ajaxComplete(function(){u("cadre-select"),0<$("#recap_panier_haut .panier-wrapper").length&&$("#recap_panier_haut .panier-wrapper").mCustomScrollbar({theme:"dark-thick",setTop:"-999999px"}),0<$("#etape_config_2 .dropdown-menu.open").length&&$("#etape_config_2 .dropdown-menu.open").mCustomScrollbar({setHeight:400,theme:"dark-thick"})}),1280<$(window).width()?h():$("header .resume-panier").hide(),$(window).on("resize",function(){1280<$(window).width()?h():$("header .resume-panier").hide()}),959<$(window).width()&&(o=$("#panier_bas"),c=$(".header-container").outerHeight(),e=$("body").outerHeight()-$(".preheader").outerHeight()-$(".header-container").outerHeight()-$(".main-menu").outerHeight()-$(".contenu").outerHeight()+105,750<$(".contenu").outerHeight()&&$(o).sticky({topSpacing:c,bottomSpacing:e}),o=$("#livraison_bas"),c=$(".header-container").outerHeight(),e=$("body").outerHeight()-$(".preheader").outerHeight()-$(".header-container").outerHeight()-$(".main-menu").outerHeight()-$(".contenu").outerHeight()+90,$(o).sticky({topSpacing:c,bottomSpacing:e})),$(".bt_commande_telecharger").on("click",function(e){e.stopPropagation(),$(this).siblings(".commande_telechargements").slideToggle()}),$(document).click(function(){$(".commande_telechargements").hide()}),$("form div.lh").each(function(){var e=$(this).height()/parseInt($(this).css("line-height"),10);1==e?$(this).css("line-height","50px"):2==e?$(this).css("line-height","25px"):2<e&&$(this).css("line-height","20px")}),($(window).width()<960?m:p)(),$(window).on("resize",function(){($(window).width()<960?m:p)()}),$("#type").on("change",f),$(document).ready(f),$("input:disabled").css("opacity","0.5"),$(".slider-accueil").slick({dots:!0,arrows:!1,infinite:!0,slidesToShow:1,slidesToScroll:1}),$("#fa_image").slick({slidesToShow:1,slidesToScroll:1,fade:!0,arrows:!1,asNavFor:".slider-miniatures"}),$(".slider-miniatures").slick({slidesToShow:3,slidesToScroll:1,asNavFor:"#fa_image",arrows:!1,centerMode:!0,focusOnSelect:!0,responsive:[{breakpoint:1281,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1}},{breakpoint:480,settings:{slidesToShow:2}}]}),$(".slick-prev").on("click",function(){$("#fa_image").slick("slickPrev")}),$(".slick-next").on("click",function(){$("#fa_image").slick("slickNext")}),$(".liste-articles-panier .slider-crosselling").slick({infinite:!0,autoplay:!0,autoplaySpeed:1500,speed:1500,arrows:!0,prevArrow:"<img class='slick-prev bt' src='/medias/icones/arrow-left.svg' height=40 width=40>",nextArrow:"<img class='slick-next bt' src='/medias/icones/arrow-right.svg' height=40 width=40>",appendArrows:".liste-articles-panier .slider-nav",slidesToShow:5,slidesToScroll:3,dots:!1,responsive:[{breakpoint:1600,settings:{slidesToShow:4,slidesToScroll:2}},{breakpoint:1e3,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]}),$("#associes .liste-articles").slick({infinite:!0,autoplay:!0,autoplaySpeed:1500,speed:1500,arrows:!0,prevArrow:"<img class='slick-prev bt' src='/medias/icones/arrow-left-noir.svg' height=40 width=40>",nextArrow:"<img class='slick-next bt' src='/medias/icones/arrow-right-noir.svg' height=40 width=40>",appendArrows:"#associes .slider-nav",slidesToShow:4,slidesToScroll:2,dots:!1,responsive:[{breakpoint:1600,settings:{slidesToShow:3,slidesToScroll:2}},{breakpoint:1e3,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]}),$("body").on("mouseenter",".cadre-article",function(){$(this).find(".cadre-article-hover").removeClass("fadeOut"),$(this).find(".cadre-article-hover").addClass("fadeInUp")}),$("body").on("mouseleave",".cadre-article",function(){$(this).find(".cadre-article-hover").removeClass("fadeInUp"),$(this).find(".cadre-article-hover").addClass("fadeOut")}),$("#fa_image a").colorbox({maxWidth:"95%",maxHeight:"95%",rel:"colorbox",fixed:!0,height:"600px",onOpen:function(){$("#colorbox").addClass("gallerybox"),$("page-article").css("overflow","hidden")},onComplete:function(){$("#cboxPrevious, #cboxNext, #cboxSlideshow").prop("aria-hidden",!0)}}),$(document).bind("cbox_open",function(){$("html, body").css("overflow","hidden")}),$(document).bind("cbox_closed",function(){$("html, body").css("overflow","visible")});$(".modif_config").on("click",function(){$(this).parent().removeClass("etape_complete"),$(this).parent().addClass("etape_actif"),$(this).parent().nextAll("li").removeClass("etape_actif"),$(this).parent().nextAll("li").removeClass("etape_complete"),$(this).parent().nextAll("li").addClass("etape_inactif"),$(this).parent().nextAll("li").children("div").slideUp(),$("#consommables").slideUp(),$("#consommables #sticker").unstick(),$("#lien_copy_div").fadeOut(),$(this).next("div").slideDown(),$(this).parent().nextAll("li").children("h2.h2_complete").find("> span").empty(),$(this).parent().nextAll("li").children("h2.h2_complete").hide(),$(this).parent().nextAll("li").children("h2.h2_actif").show(),$(this).siblings("h2.h2_complete").find("> span").empty(),$(this).siblings("h2.h2_complete").hide(),$(this).siblings("h2.h2_actif").show(),$("#marque").val(""),$("#modele").val(""),$(this).hide()}),$(".h2_complete").on("click",function(){$(this).parent().removeClass("etape_complete"),$(this).parent().addClass("etape_actif"),$(this).parent().nextAll("li").removeClass("etape_actif"),$(this).parent().nextAll("li").removeClass("etape_complete"),$(this).parent().nextAll("li").addClass("etape_inactif"),$(this).parent().nextAll("li").children("div").slideUp(),$("#consommables").slideUp(),$("#consommables #sticker").unstick(),$(this).parent("li").children("div:last").slideDown(),$(this).parent().nextAll("li").children("h2.h2_complete").find("> span").empty(),$(this).parent().nextAll("li").children("h2.h2_complete").hide(),$(this).parent().nextAll("li").children("h2.h2_actif").show(),$(this).find("> span").empty(),$(this).siblings("modif_config").slideUp(),$("#marque").val(""),$("#modele").val(""),$(this).hide(),$(this).siblings(".h2_actif").show()}),$("#inscription_newsletter").click(function(e){$("#inscription_newsletter").prop("checked")?($("#inscription_newsletter_form_types").show(400),$("input[name='inscription_newsletter_type']").attr("required",!0)):($("#inscription_newsletter_form_types").hide(400),$("input[name='inscription_newsletter_type']").attr("required",!1))})}),$(function(){$(document).on("click",'a[href*="#"]:not([href="#"])',function(){if(location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname){var e=$(this.hash);if((e=e.length?e:$("[name="+this.hash.slice(1)+"]")).length)return $("html, body").animate({scrollTop:e.offset().top-50},1e3),!1}})}),$(window).resize(resizeColorBox),window.addEventListener("orientationchange",resizeColorBox,!1),959<$(window).width()&&($(document).on("keyup","#recherche",function(){clearTimeout(timer),timer=setTimeout(function(){var e=$("#recherche").val();$("#recherche-resume").html('<div class="liste-articles"><div class="spinner"></div></div><div class="liste-categories"></div>'),3<=$("#recherche").val().length?$.ajax({url:"/global/includes/ajax/select-articles.php",type:"POST",data:{recherche:e},success:function(e){""!=e?(e=JSON.parse(e),$("#recherche-resume .liste-articles").html(e.articles),$("#recherche-resume .liste-categories").html(e.categories),$("header .recherche").append('<div class="close"><a href="#" onclick="return false;"><img src="/medias/icones/croix.svg" width=20 height=20 alt="Fermer"></a></div>'),"<p>Votre recherche n'a donné aucun résultat</p>"!=e.articles&&null!=e.categories&&0==$("#all_results").length&&$("#recherche-resume").append('<div class="center" id="all_results"><a href="#" onclick="$(\'#form_recherche\').submit()" title="" class="bouton" id="bt_plus_articles">Voir tous les résultats</a></div>'),$("#recherche-resume").css({opacity:"1"}),$("#recherche-resume").css({visibility:"visible"})):($("#recherche-resume").html(""),$("#recherche-resume").css({opacity:"0"}),$("#recherche-resume").css({visibility:"hidden"}))}}):($("#recherche-resume").html(""),$("#recherche-resume").css({opacity:"0"}),$("#recherche-resume").css({visibility:"hidden"}))},500)}),$(document).on("click","#recherche-resume .liste-articles .cadre-article",function(){3<=$("#recherche").val().length&&$.ajax({url:"/global/includes/ajax/functions.php",type:"POST",data:{recherche:$("#recherche").val(),action:"maj-historique-recherche"}})}),$(document).on("click","#recherche-resume .liste-categories .recherche_cat a",function(){3<=$("#recherche").val().length&&$.ajax({url:"/global/includes/ajax/functions.php",type:"POST",data:{recherche:$("#recherche").val(),action:"maj-historique-recherche"}})}),$(document).on("click","header .recherche .close",function(){$('header input[type="search"]').val("").focus(),$("#recherche-resume").css({opacity:"0"}),$("#recherche-resume").css({visibility:"hidden"}),$(this).hide()}),$(document).on("scroll",function(){$("#recherche-resume").css({opacity:"0"}),$("#recherche-resume").css({visibility:"hidden"})})),$(document).on("change","#configurateur_cartouches #marque",function(){$.ajax({url:"/global/includes/ajax/functions.php",type:"POST",data:{action:"select-modeles",marque:$(this).val()},success:function(e){$("#configurateur_cartouches #modeles").html(e),$(".selectpicker").selectpicker({size:10,width:250,live_search:!0,liveSearchPlaceholder:"Modèle de votre imprimante",noneResultsText:"Aucun modèle d'imprimante ne correspond à votre recherche."})}}),$(window).width()<960&&$("html, body").animate({scrollTop:$("#configurateur_cartouches").offset().top},500);var e=$(this).val();$(".etape_config_1 .inner a").find('img[src*="/'+e+'/"]').clone().appendTo(".h2_complete .img_marque_config"),$(".etape_config_1 .inner a").find('img[src*="/'+e+'/"]').siblings("span").clone().appendTo(".h2_complete .nom_marque_config"),$("#marque_copy").html(e),$(".etape_config_1").removeClass("etape_actif"),$(".etape_config_1").addClass("etape_complete"),$(".etape_config_1 .h2_actif").hide(),$(".etape_config_1 .h2_complete").show(),$(".etape_config_1 > .bootstrap-select").slideUp(),$(".etape_config_1 > .modif_config").slideDown(),$(".etape_config_2").removeClass("etape_inactif"),$(".etape_config_2").addClass("etape_actif"),$(".etape_config_2 > #modeles").slideDown()}),window.location.search.indexOf("marque"),$(document).on("change","#configurateur_cartouches #modele",function(){$("#configurateur_cartouches #consommables").html('<div class="spinner"></div>'),$.ajax({url:"/global/includes/ajax/functions.php",type:"POST",data:{action:"select-consommables",id:$(this).val()},success:function(e){$("#configurateur_cartouches #consommables").html(e),myLazyLoad.update(),$("#consommables #sticker").sticky({topSpacing:70})}}),$(window).width()<960&&$("html, body").animate({scrollTop:$("#configurateur_cartouches").offset().top},500);var e="https://www.busiboutique.com/cartouche-encre-imprimante.html?marque="+$("#marque_copy").html()+"&modele="+$(this).find("option:selected").html();$("#lien_copy").attr("href",e),$("#lien_copy").html($(this).find("option:selected").html()),$(".etape_config_2").removeClass("etape_actif"),$(".etape_config_2").addClass("etape_complete"),$(".etape_config_2 .h2_actif").hide(),$(".etape_config_2 .h2_complete").show(),$(".etape_config_2 .h2_complete > span").append($(this).find("option:selected").html()),$(".etape_config_2 > #modeles").slideUp(),$(".etape_config_2 > .modif_config").slideDown(),$("#consommables").slideDown(),$(".etape_config_3").removeClass("etape_inactif"),$(".etape_config_3").addClass("etape_actif"),$("#lien_copy_div").fadeIn()});
function masqueOnglets(){$(".onglet_texte").hide(),$(".onglet_lien").removeClass("onglet_actif")}function afficheOnglet(e){masqueOnglets(),$("#onglet_"+e).show(),$("#onglet_lien_"+e).addClass("onglet_actif")}function majVariante(){article=document.getElementById("variante").value,$.ajax({url:"/global/includes/ajax/maj-article.php",data:"id_article="+article,success:function(e){var a=e,e=a.split("#")[0],a=a.split("#")[1];document.getElementById("fa_prix").innerHTML=e,document.getElementById("fa_dispo").innerHTML=a}})}function ajoutPanier(e){modifPanier({article:e.article,type:"plus",quantite:e.quantite})}$(document).ready(function(){$("body").on("click",".ajout-article-bbt",function(){$("header .resume-panier").show(),$("header .resume-panier").mouseenter()||setTimeout(function(){$("header .resume-panier").fadeOut()},4e3)}),$(document).mouseup(function(e){var a=$("header .resume-panier");a.is(e.target)||0!==a.has(e.target).length||a.hide()})});var ajax_modif_panier=!1;function modifPanier(e){if(1==ajax_modif_panier)return!1;ajax_modif_panier=!0,e.quantite=parseInt(e.quantite),null==e.quantite&&(e.quantite=1),$.ajax({url:"/global/includes/ajax/modif-panier.php",data:e,success:function(e){$("#panier")&&$("#panier").html(e),MAJPanierResume(),MAJPanierRecap(),ajax_modif_panier=!1}})}function MAJPanierResume(){$.ajax({url:"/global/includes/ajax/maj-panier.php",success:function(e){$("#panier_resume").html(e)}})}function MAJPanierRecap(){$.ajax({url:"/global/includes/ajax/functions.php?action=recap-panier",success:function(e){$("#recap_panier_haut").html(e)}})}function valid_bon(e){$.ajax({url:"/global/includes/ajax/bon-reduction.php",data:"code="+e,success:function(e){e=e.split("|");$("#panier").html(e[1]),MAJPanierResume();e=e[0];""!=e?$("#erreur_bon").html(e):$("#erreur_bon").html("")}})}function verifQuantite(e){var a=e.article,t=e.quantite,e=e.sens,n=0;return $.ajax({url:"/global/includes/ajax/verif-quantite.php",data:{id_article:a,quantite:t,sens:e},type:"POST",dataType:"JSON",success:function(e){n=e}}),n}function Qmoins(e){var a=e.article,t=e.champ,e=parseInt($("#"+t).val());e<1?$(t).val("0"):(test=verifQuantite({article:a,quantite:e-1,sens:"moins"}),quantite_verif=test.quantite,erreur=test.erreur,quantite_new=0<quantite_verif?quantite_verif:e-1,$("#"+t).val(quantite_new)),""!=erreur&&null!=erreur&&alert(erreur)}function Qplus(e){var a=e.article,t=e.champ,e=parseInt($("#"+t).val());test=verifQuantite({article:a,quantite:e+1,sens:"plus"}),test=test.split("|"),quantite_verif=test[0],erreur=test[1],quantite_new=0<quantite_verif?quantite_verif:e+1,$("#"+t).val(quantite_new),""!=erreur&&null!=erreur&&alert(erreur)}function supprArticle(e,a){modifPanier({article:e,num_article:a,type:"suppr"})}function fbs_click(){return u=location.href,t=document.title,window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=700,height=500"),!1}function supprAdresse(a){$.ajax({url:"/global/includes/ajax/suppr-adresses-livraison.php",data:{id_article:a},success:function(e){$("#adresse_"+a).remove()}})}function afficheAdresse(e){ajax({url:"/global/includes/ajax/affiche-adresse-livraison.php",data:{id_adresse:e}})}$().ready(function(e){0<$(".email").length&&$(".email").each(function(){email=$(this).attr("id").substr($(this).attr("id").lastIndexOf("_")+1),email=email.split("@"),null!=email[0]&&null!=email[1]&&$(this).html('<a href="mailto: '+email[0]+"@"+email[1]+'" title="">'+email[0]+"@"+email[1]+"</a>")})}),$(document).on("change","#options_livraison input",function(){ajax({url:"/global/includes/ajax/functions.php",data:{action:"select-livraison",livraison:$(this).val()}})}),$(document).ready(function(){return""!=$("#options_livraison input:checked").val()&&null!=$("#options_livraison input:checked").val()&&void ajax({url:"/global/includes/ajax/functions.php",data:{action:"select-livraison",livraison:$("#options_livraison input:checked").val()}})});
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(d){function t(){for(var t=l.scrollTop(),e=h.height(),i=e-g,n=i<t?i-t:0,r=0,s=u.length;r<s;r++){var o,c,p=u[r],a=p.stickyWrapper.offset().top-p.topSpacing-n;p.stickyWrapper.css("height",p.stickyElement.outerHeight()),t<=a?null!==p.currentTop&&(p.stickyElement.css({width:"",position:"",top:"","z-index":""}),p.stickyElement.parent().removeClass(p.className),p.stickyElement.trigger("sticky-end",[p]),p.currentTop=null):((o=e-p.stickyElement.outerHeight()-p.topSpacing-p.bottomSpacing-t-n)<0?o+=p.topSpacing:o=p.topSpacing,p.currentTop!==o&&(p.getWidthFrom?c=d(p.getWidthFrom).width()||null:p.widthFromWrapper&&(c=p.stickyWrapper.width()),null==c&&(c=p.stickyElement.width()),p.stickyElement.css("width",c).css("position","fixed").css("top",o).css("z-index",p.zIndex),p.stickyElement.parent().addClass(p.className),null===p.currentTop?p.stickyElement.trigger("sticky-start",[p]):p.stickyElement.trigger("sticky-update",[p]),p.currentTop===p.topSpacing&&p.currentTop>o||null===p.currentTop&&o<p.topSpacing?p.stickyElement.trigger("sticky-bottom-reached",[p]):null!==p.currentTop&&o===p.topSpacing&&p.currentTop<o&&p.stickyElement.trigger("sticky-bottom-unreached",[p]),p.currentTop=o),a=p.stickyWrapper.parent(),p.stickyElement.offset().top+p.stickyElement.outerHeight()>=a.offset().top+a.outerHeight()&&p.stickyElement.offset().top<=p.topSpacing?p.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):p.stickyElement.css("position","fixed").css("top",o).css("bottom","").css("z-index",p.zIndex))}}function e(){g=l.height();for(var t=0,e=u.length;t<e;t++){var i=u[t],n=null;i.getWidthFrom?i.responsiveWidth&&(n=d(i.getWidthFrom).width()):i.widthFromWrapper&&(n=i.stickyWrapper.width()),null!=n&&i.stickyElement.css("width",n)}}var i=Array.prototype.slice,n=Array.prototype.splice,o={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},l=d(window),h=d(document),u=[],g=l.height(),c={init:function(s){return this.each(function(){var t=d.extend({},o,s),e=d(this),i=e.attr("id"),n=i?i+"-"+o.wrapperClassName:o.wrapperClassName,r=d("<div></div>").attr("id",n).addClass(t.wrapperClassName);e.wrapAll(function(){if(0==d(this).parent("#"+n).length)return r});i=e.parent();t.center&&i.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({float:"none"}).parent().css({float:"right"}),t.stickyElement=e,t.stickyWrapper=i,t.currentTop=null,u.push(t),c.setWrapperHeight(this),c.setupChangeListeners(this)})},setWrapperHeight:function(t){var e=d(t),t=e.parent();t&&t.css("height",e.outerHeight())},setupChangeListeners:function(e){window.MutationObserver?new window.MutationObserver(function(t){(t[0].addedNodes.length||t[0].removedNodes.length)&&c.setWrapperHeight(e)}).observe(e,{subtree:!0,childList:!0}):window.addEventListener?(e.addEventListener("DOMNodeInserted",function(){c.setWrapperHeight(e)},!1),e.addEventListener("DOMNodeRemoved",function(){c.setWrapperHeight(e)},!1)):window.attachEvent&&(e.attachEvent("onDOMNodeInserted",function(){c.setWrapperHeight(e)}),e.attachEvent("onDOMNodeRemoved",function(){c.setWrapperHeight(e)}))},update:t,unstick:function(t){return this.each(function(){for(var t=d(this),e=-1,i=u.length;0<i--;)u[i].stickyElement.get(0)===this&&(n.call(u,i,1),e=i);-1!==e&&(t.unwrap(),t.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",t,!1),window.addEventListener("resize",e,!1)):window.attachEvent&&(window.attachEvent("onscroll",t),window.attachEvent("onresize",e)),d.fn.sticky=function(t){return c[t]?c[t].apply(this,i.call(arguments,1)):"object"!=typeof t&&t?void d.error("Method "+t+" does not exist on jQuery.sticky"):c.init.apply(this,arguments)},d.fn.unstick=function(t){return c[t]?c[t].apply(this,i.call(arguments,1)):"object"!=typeof t&&t?void d.error("Method "+t+" does not exist on jQuery.sticky"):c.unstick.apply(this,arguments)},d(function(){setTimeout(t,0)})});