!function(b){var i=!0;b.flexslider=function(p,t){var f=b(p);void 0===t.rtl&&"rtl"==b("html").attr("dir")&&(t.rtl=!0),f.vars=b.extend({},b.flexslider.defaults,t);var e,u=f.vars.namespace,m=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,d=("ontouchstart"in window||m||window.DocumentTouch&&document instanceof DocumentTouch)&&f.vars.touch,l="click touchend MSPointerUp keyup",c="",v="vertical"===f.vars.direction,g=f.vars.reverse,y=0<f.vars.itemWidth,w="fade"===f.vars.animation,h=""!==f.vars.asNavFor,x={};b.data(p,"flexslider",f),x={init:function(){f.animating=!1,f.currentSlide=parseInt(f.vars.startAt?f.vars.startAt:0,10),isNaN(f.currentSlide)&&(f.currentSlide=0),f.animatingTo=f.currentSlide,f.atEnd=0===f.currentSlide||f.currentSlide===f.last,f.containerSelector=f.vars.selector.substr(0,f.vars.selector.search(" ")),f.slides=b(f.vars.selector,f),f.container=b(f.containerSelector,f),f.count=f.slides.length,f.syncExists=0<b(f.vars.sync).length,"slide"===f.vars.animation&&(f.vars.animation="swing"),f.prop=v?"top":f.vars.rtl?"marginRight":"marginLeft",f.args={},f.manualPause=!1,f.stopped=!1,f.started=!1,f.startTimeout=null,f.transitions=!f.vars.video&&!w&&f.vars.useCSS&&function(){var t=document.createElement("div"),e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return f.pfx=e[i].replace("Perspective","").toLowerCase(),f.prop="-"+f.pfx+"-transform",!0;return!1}(),f.isFirefox=-1<navigator.userAgent.toLowerCase().indexOf("firefox"),(f.ensureAnimationEnd="")!==f.vars.controlsContainer&&(f.controlsContainer=0<b(f.vars.controlsContainer).length&&b(f.vars.controlsContainer)),""!==f.vars.manualControls&&(f.manualControls=0<b(f.vars.manualControls).length&&b(f.vars.manualControls)),""!==f.vars.customDirectionNav&&(f.customDirectionNav=2===b(f.vars.customDirectionNav).length&&b(f.vars.customDirectionNav)),f.vars.randomize&&(f.slides.sort(function(){return Math.round(Math.random())-.5}),f.container.empty().append(f.slides)),f.doMath(),f.setup("init"),f.vars.controlNav&&x.controlNav.setup(),f.vars.directionNav&&x.directionNav.setup(),f.vars.keyboard&&(1===b(f.containerSelector).length||f.vars.multipleKeyboard)&&b(document).bind("keyup",function(t){var e=t.keyCode;if(!f.animating&&(39===e||37===e)){var i=f.vars.rtl?37===e?f.getTarget("next"):39===e&&f.getTarget("prev"):39===e?f.getTarget("next"):37===e&&f.getTarget("prev");f.flexAnimate(i,f.vars.pauseOnAction)}}),f.vars.mousewheel&&f.bind("mousewheel",function(t,e,i,o){t.preventDefault();var n=e<0?f.getTarget("next"):f.getTarget("prev");f.flexAnimate(n,f.vars.pauseOnAction)}),f.vars.pausePlay&&x.pausePlay.setup(),f.vars.slideshow&&f.vars.pauseInvisible&&x.pauseInvisible.init(),f.vars.slideshow&&(f.vars.pauseOnHover&&f.hover(function(){f.manualPlay||f.manualPause||f.pause()},function(){f.manualPause||f.manualPlay||f.stopped||f.play()}),f.vars.pauseInvisible&&x.pauseInvisible.isHidden()||(0<f.vars.initDelay?f.startTimeout=setTimeout(f.play,f.vars.initDelay):f.play())),h&&x.asNav.setup(),d&&f.vars.touch&&x.touch(),(!w||w&&f.vars.smoothHeight)&&b(window).bind("resize orientationchange focus",x.resize),f.find("img").attr("draggable","false"),setTimeout(function(){f.vars.start(f)},200)},asNav:{setup:function(){f.asNav=!0,f.animatingTo=Math.floor(f.currentSlide/f.move),f.currentItem=f.currentSlide,f.slides.removeClass(u+"active-slide").eq(f.currentItem).addClass(u+"active-slide"),m?(p._slider=f).slides.each(function(){var t=this;t._gesture=new MSGesture,(t._gesture.target=t).addEventListener("MSPointerDown",function(t){t.preventDefault(),t.currentTarget._gesture&&t.currentTarget._gesture.addPointer(t.pointerId)},!1),t.addEventListener("MSGestureTap",function(t){t.preventDefault();var e=b(this),i=e.index();b(f.vars.asNavFor).data("flexslider").animating||e.hasClass("active")||(f.direction=f.currentItem<i?"next":"prev",f.flexAnimate(i,f.vars.pauseOnAction,!1,!0,!0))})}):f.slides.on(l,function(t){t.preventDefault();var e=b(this),i=e.index();(f.vars.rtl?-1*(e.offset().right-b(f).scrollLeft()):e.offset().left-b(f).scrollLeft())<=0&&e.hasClass(u+"active-slide")?f.flexAnimate(f.getTarget("prev"),!0):b(f.vars.asNavFor).data("flexslider").animating||e.hasClass(u+"active-slide")||(f.direction=f.currentItem<i?"next":"prev",f.flexAnimate(i,f.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){f.manualControls?x.controlNav.setupManual():x.controlNav.setupPaging()},setupPaging:function(){var t,e,i="thumbnails"===f.vars.controlNav?"control-thumbs":"control-paging",o=1;if(f.controlNavScaffold=b('<ol class="'+u+"control-nav "+u+i+'"></ol>'),1<f.pagingCount)for(var n=0;n<f.pagingCount;n++){if(void 0===(e=f.slides.eq(n)).attr("data-thumb-alt")&&e.attr("data-thumb-alt",""),t=b("<a></a>").attr("href","#").text(o),"thumbnails"===f.vars.controlNav&&(t=b("<img/>").attr("src",e.attr("data-thumb"))),""!==e.attr("data-thumb-alt")&&t.attr("alt",e.attr("data-thumb-alt")),"thumbnails"===f.vars.controlNav&&!0===f.vars.thumbCaptions){var r=e.attr("data-thumbcaption");if(""!==r&&void 0!==r){var s=b("<span></span>").addClass(u+"caption").text(r);t.append(s)}}var a=b("<li>");t.appendTo(a),a.append("</li>"),f.controlNavScaffold.append(a),o++}f.controlsContainer?b(f.controlsContainer).append(f.controlNavScaffold):f.append(f.controlNavScaffold),x.controlNav.set(),x.controlNav.active(),f.controlNavScaffold.delegate("a, img",l,function(t){if(t.preventDefault(),""===c||c===t.type){var e=b(this),i=f.controlNav.index(e);e.hasClass(u+"active")||(f.direction=i>f.currentSlide?"next":"prev",f.flexAnimate(i,f.vars.pauseOnAction))}""===c&&(c=t.type),x.setToClearWatchedEvent()})},setupManual:function(){f.controlNav=f.manualControls,x.controlNav.active(),f.controlNav.bind(l,function(t){if(t.preventDefault(),""===c||c===t.type){var e=b(this),i=f.controlNav.index(e);e.hasClass(u+"active")||(i>f.currentSlide?f.direction="next":f.direction="prev",f.flexAnimate(i,f.vars.pauseOnAction))}""===c&&(c=t.type),x.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===f.vars.controlNav?"img":"a";f.controlNav=b("."+u+"control-nav li "+t,f.controlsContainer?f.controlsContainer:f)},active:function(){f.controlNav.removeClass(u+"active").eq(f.animatingTo).addClass(u+"active")},update:function(t,e){1<f.pagingCount&&"add"===t?f.controlNavScaffold.append(b('<li><a href="#">'+f.count+"</a></li>")):1===f.pagingCount?f.controlNavScaffold.find("li").remove():f.controlNav.eq(e).closest("li").remove(),x.controlNav.set(),1<f.pagingCount&&f.pagingCount!==f.controlNav.length?f.update(e,t):x.controlNav.active()}},directionNav:{setup:function(){var t=b('<ul class="'+u+'direction-nav"><li class="'+u+'nav-prev"><a class="'+u+'prev" href="#">'+f.vars.prevText+'</a></li><li class="'+u+'nav-next"><a class="'+u+'next" href="#">'+f.vars.nextText+"</a></li></ul>");f.customDirectionNav?f.directionNav=f.customDirectionNav:f.controlsContainer?(b(f.controlsContainer).append(t),f.directionNav=b("."+u+"direction-nav li a",f.controlsContainer)):(f.append(t),f.directionNav=b("."+u+"direction-nav li a",f)),x.directionNav.update(),f.directionNav.bind(l,function(t){var e;t.preventDefault(),""!==c&&c!==t.type||(e=b(this).hasClass(u+"next")?f.getTarget("next"):f.getTarget("prev"),f.flexAnimate(e,f.vars.pauseOnAction)),""===c&&(c=t.type),x.setToClearWatchedEvent()})},update:function(){var t=u+"disabled";1===f.pagingCount?f.directionNav.addClass(t).attr("tabindex","-1"):f.vars.animationLoop?f.directionNav.removeClass(t).removeAttr("tabindex"):0===f.animatingTo?f.directionNav.removeClass(t).filter("."+u+"prev").addClass(t).attr("tabindex","-1"):f.animatingTo===f.last?f.directionNav.removeClass(t).filter("."+u+"next").addClass(t).attr("tabindex","-1"):f.directionNav.removeClass(t).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=b('<div class="'+u+'pauseplay"><a href="#"></a></div>');f.controlsContainer?(f.controlsContainer.append(t),f.pausePlay=b("."+u+"pauseplay a",f.controlsContainer)):(f.append(t),f.pausePlay=b("."+u+"pauseplay a",f)),x.pausePlay.update(f.vars.slideshow?u+"pause":u+"play"),f.pausePlay.bind(l,function(t){t.preventDefault(),""!==c&&c!==t.type||(b(this).hasClass(u+"pause")?(f.manualPause=!0,f.manualPlay=!1,f.pause()):(f.manualPause=!1,f.manualPlay=!0,f.play())),""===c&&(c=t.type),x.setToClearWatchedEvent()})},update:function(t){"play"===t?f.pausePlay.removeClass(u+"pause").addClass(u+"play").html(f.vars.playText):f.pausePlay.removeClass(u+"play").addClass(u+"pause").html(f.vars.pauseText)}},touch:function(){var n,r,s,a,l,c,t,o,u,d=!1,e=0,i=0,h=0;if(m){p.style.msTouchAction="none",p._gesture=new MSGesture,(p._gesture.target=p).addEventListener("MSPointerDown",function(t){t.stopPropagation(),f.animating?t.preventDefault():(f.pause(),p._gesture.addPointer(t.pointerId),h=0,a=v?f.h:f.w,c=Number(new Date),s=y&&g&&f.animatingTo===f.last?0:y&&g?f.limit-(f.itemW+f.vars.itemMargin)*f.move*f.animatingTo:y&&f.currentSlide===f.last?f.limit:y?(f.itemW+f.vars.itemMargin)*f.move*f.currentSlide:g?(f.last-f.currentSlide+f.cloneOffset)*a:(f.currentSlide+f.cloneOffset)*a)},!1),p._slider=f,p.addEventListener("MSGestureChange",function(t){t.stopPropagation();var e=t.target._slider;if(!e)return;var i=-t.translationX,o=-t.translationY;if(h+=v?o:i,l=(e.vars.rtl?-1:1)*h,d=v?Math.abs(h)<Math.abs(-i):Math.abs(h)<Math.abs(-o),t.detail===t.MSGESTURE_FLAG_INERTIA)return void setImmediate(function(){p._gesture.stop()});(!d||500<Number(new Date)-c)&&(t.preventDefault(),!w&&e.transitions&&(e.vars.animationLoop||(l=h/(0===e.currentSlide&&h<0||e.currentSlide===e.last&&0<h?Math.abs(h)/a+2:1)),e.setProps(s+l,"setTouch")))},!1),p.addEventListener("MSGestureEnd",function(t){t.stopPropagation();var e=t.target._slider;if(!e)return;if(e.animatingTo===e.currentSlide&&!d&&null!==l){var i=g?-l:l,o=0<i?e.getTarget("next"):e.getTarget("prev");e.canAdvance(o)&&(Number(new Date)-c<550&&50<Math.abs(i)||Math.abs(i)>a/2)?e.flexAnimate(o,e.vars.pauseOnAction):w||e.flexAnimate(e.currentSlide,e.vars.pauseOnAction,!0)}s=l=r=n=null,h=0},!1)}else t=function(t){f.animating?t.preventDefault():(window.navigator.msPointerEnabled||1===t.touches.length)&&(f.pause(),a=v?f.h:f.w,c=Number(new Date),e=t.touches[0].pageX,i=t.touches[0].pageY,s=y&&g&&f.animatingTo===f.last?0:y&&g?f.limit-(f.itemW+f.vars.itemMargin)*f.move*f.animatingTo:y&&f.currentSlide===f.last?f.limit:y?(f.itemW+f.vars.itemMargin)*f.move*f.currentSlide:g?(f.last-f.currentSlide+f.cloneOffset)*a:(f.currentSlide+f.cloneOffset)*a,n=v?i:e,r=v?e:i,p.addEventListener("touchmove",o,!1),p.addEventListener("touchend",u,!1))},o=function(t){e=t.touches[0].pageX,i=t.touches[0].pageY,l=v?n-i:(f.vars.rtl?-1:1)*(n-e);(!(d=v?Math.abs(l)<Math.abs(e-r):Math.abs(l)<Math.abs(i-r))||500<Number(new Date)-c)&&(t.preventDefault(),!w&&f.transitions&&(f.vars.animationLoop||(l/=0===f.currentSlide&&l<0||f.currentSlide===f.last&&0<l?Math.abs(l)/a+2:1),f.setProps(s+l,"setTouch")))},u=function(t){if(p.removeEventListener("touchmove",o,!1),f.animatingTo===f.currentSlide&&!d&&null!==l){var e=g?-l:l,i=0<e?f.getTarget("next"):f.getTarget("prev");f.canAdvance(i)&&(Number(new Date)-c<550&&50<Math.abs(e)||Math.abs(e)>a/2)?f.flexAnimate(i,f.vars.pauseOnAction):w||f.flexAnimate(f.currentSlide,f.vars.pauseOnAction,!0)}p.removeEventListener("touchend",u,!1),s=l=r=n=null},p.addEventListener("touchstart",t,!1)},resize:function(){!f.animating&&f.is(":visible")&&(y||f.doMath(),w?x.smoothHeight():y?(f.slides.width(f.computedW),f.update(f.pagingCount),f.setProps()):v?(f.viewport.height(f.h),f.setProps(f.h,"setTotal")):(f.vars.smoothHeight&&x.smoothHeight(),f.newSlides.width(f.computedW),f.setProps(f.computedW,"setTotal")))},smoothHeight:function(t){if(!v||w){var e=w?f:f.viewport;t?e.animate({height:f.slides.eq(f.animatingTo).innerHeight()},t):e.innerHeight(f.slides.eq(f.animatingTo).innerHeight())}},sync:function(t){var e=b(f.vars.sync).data("flexslider"),i=f.animatingTo;switch(t){case"animate":e.flexAnimate(i,f.vars.pauseOnAction,!1,!0);break;case"play":e.playing||e.asNav||e.play();break;case"pause":e.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=b(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var t=x.pauseInvisible.getHiddenProp();if(t){var e=t.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(e,function(){x.pauseInvisible.isHidden()?f.startTimeout?clearTimeout(f.startTimeout):f.pause():f.started?f.play():0<f.vars.initDelay?setTimeout(f.play,f.vars.initDelay):f.play()})}},isHidden:function(){var t=x.pauseInvisible.getHiddenProp();return!!t&&document[t]},getHiddenProp:function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)if(t[e]+"Hidden"in document)return t[e]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(e),e=setTimeout(function(){c=""},3e3)}},f.flexAnimate=function(t,e,i,o,n){if(f.vars.animationLoop||t===f.currentSlide||(f.direction=t>f.currentSlide?"next":"prev"),h&&1===f.pagingCount&&(f.direction=f.currentItem<t?"next":"prev"),!f.animating&&(f.canAdvance(t,n)||i)&&f.is(":visible")){if(h&&o){var r=b(f.vars.asNavFor).data("flexslider");if(f.atEnd=0===t||t===f.count-1,r.flexAnimate(t,!0,!1,!0,n),f.direction=f.currentItem<t?"next":"prev",r.direction=f.direction,Math.ceil((t+1)/f.visible)-1===f.currentSlide||0===t)return f.currentItem=t,f.slides.removeClass(u+"active-slide").eq(t).addClass(u+"active-slide"),!1;f.currentItem=t,f.slides.removeClass(u+"active-slide").eq(t).addClass(u+"active-slide"),t=Math.floor(t/f.visible)}if(f.animating=!0,f.animatingTo=t,e&&f.pause(),f.vars.before(f),f.syncExists&&!n&&x.sync("animate"),f.vars.controlNav&&x.controlNav.active(),y||f.slides.removeClass(u+"active-slide").eq(t).addClass(u+"active-slide"),f.atEnd=0===t||t===f.last,f.vars.directionNav&&x.directionNav.update(),t===f.last&&(f.vars.end(f),f.vars.animationLoop||f.pause()),w)d?(f.slides.eq(f.currentSlide).css({opacity:0,zIndex:1}),f.slides.eq(t).css({opacity:1,zIndex:2}),f.wrapup(c)):(f.slides.eq(f.currentSlide).css({zIndex:1}).animate({opacity:0},f.vars.animationSpeed,f.vars.easing),f.slides.eq(t).css({zIndex:2}).animate({opacity:1},f.vars.animationSpeed,f.vars.easing,f.wrapup));else{var s,a,l,c=v?f.slides.filter(":first").height():f.computedW;a=y?(s=f.vars.itemMargin,(l=(f.itemW+s)*f.move*f.animatingTo)>f.limit&&1!==f.visible?f.limit:l):0===f.currentSlide&&t===f.count-1&&f.vars.animationLoop&&"next"!==f.direction?g?(f.count+f.cloneOffset)*c:0:f.currentSlide===f.last&&0===t&&f.vars.animationLoop&&"prev"!==f.direction?g?0:(f.count+1)*c:g?(f.count-1-t+f.cloneOffset)*c:(t+f.cloneOffset)*c,f.setProps(a,"",f.vars.animationSpeed),f.transitions?(f.vars.animationLoop&&f.atEnd||(f.animating=!1,f.currentSlide=f.animatingTo),f.container.unbind("webkitTransitionEnd transitionend"),f.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(f.ensureAnimationEnd),f.wrapup(c)}),clearTimeout(f.ensureAnimationEnd),f.ensureAnimationEnd=setTimeout(function(){f.wrapup(c)},f.vars.animationSpeed+100)):f.container.animate(f.args,f.vars.animationSpeed,f.vars.easing,function(){f.wrapup(c)})}f.vars.smoothHeight&&x.smoothHeight(f.vars.animationSpeed)}},f.wrapup=function(t){w||y||(0===f.currentSlide&&f.animatingTo===f.last&&f.vars.animationLoop?f.setProps(t,"jumpEnd"):f.currentSlide===f.last&&0===f.animatingTo&&f.vars.animationLoop&&f.setProps(t,"jumpStart")),f.animating=!1,f.currentSlide=f.animatingTo,f.vars.after(f)},f.animateSlides=function(){!f.animating&&i&&f.flexAnimate(f.getTarget("next"))},f.pause=function(){clearInterval(f.animatedSlides),f.animatedSlides=null,f.playing=!1,f.vars.pausePlay&&x.pausePlay.update("play"),f.syncExists&&x.sync("pause")},f.play=function(){f.playing&&clearInterval(f.animatedSlides),f.animatedSlides=f.animatedSlides||setInterval(f.animateSlides,f.vars.slideshowSpeed),f.started=f.playing=!0,f.vars.pausePlay&&x.pausePlay.update("pause"),f.syncExists&&x.sync("play")},f.stop=function(){f.pause(),f.stopped=!0},f.canAdvance=function(t,e){var i=h?f.pagingCount-1:f.last;return!!e||(!(!h||f.currentItem!==f.count-1||0!==t||"prev"!==f.direction)||(!h||0!==f.currentItem||t!==f.pagingCount-1||"next"===f.direction)&&(!(t===f.currentSlide&&!h)&&(!!f.vars.animationLoop||(!f.atEnd||0!==f.currentSlide||t!==i||"next"===f.direction)&&(!f.atEnd||f.currentSlide!==i||0!==t||"next"!==f.direction))))},f.getTarget=function(t){return"next"===(f.direction=t)?f.currentSlide===f.last?0:f.currentSlide+1:0===f.currentSlide?f.last:f.currentSlide-1},f.setProps=function(t,e,i){var o,n=(o=t||(f.itemW+f.vars.itemMargin)*f.move*f.animatingTo,function(){if(y)return"setTouch"===e?t:g&&f.animatingTo===f.last?0:g?f.limit-(f.itemW+f.vars.itemMargin)*f.move*f.animatingTo:f.animatingTo===f.last?f.limit:o;switch(e){case"setTotal":return g?(f.count-1-f.currentSlide+f.cloneOffset)*t:(f.currentSlide+f.cloneOffset)*t;case"setTouch":return t;case"jumpEnd":return g?t:f.count*t;case"jumpStart":return g?f.count*t:t;default:return t}}()*(f.vars.rtl?1:-1)+"px");f.transitions&&(n=f.isFirefox?v?"translate3d(0,"+n+",0)":"translate3d("+parseInt(n)+"px,0,0)":v?"translate3d(0,"+n+",0)":"translate3d("+(f.vars.rtl?-1:1)*parseInt(n)+"px,0,0)",i=void 0!==i?i/1e3+"s":"0s",f.container.css("-"+f.pfx+"-transition-duration",i),f.container.css("transition-duration",i)),f.args[f.prop]=n,(f.transitions||void 0===i)&&f.container.css(f.args),f.container.css("transform",n)},f.setup=function(t){var e,i;w?(f.vars.rtl?f.slides.css({width:"100%",float:"right",marginLeft:"-100%",position:"relative"}):f.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(d?f.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+f.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(f.currentSlide).css({opacity:1,zIndex:2}):0==f.vars.fadeFirstSlide?f.slides.css({opacity:0,display:"block",zIndex:1}).eq(f.currentSlide).css({zIndex:2}).css({opacity:1}):f.slides.css({opacity:0,display:"block",zIndex:1}).eq(f.currentSlide).css({zIndex:2}).animate({opacity:1},f.vars.animationSpeed,f.vars.easing)),f.vars.smoothHeight&&x.smoothHeight()):("init"===t&&(f.viewport=b('<div class="'+u+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(f).append(f.container),f.cloneCount=0,f.cloneOffset=0,g&&(i=b.makeArray(f.slides).reverse(),f.slides=b(i),f.container.empty().append(f.slides))),f.vars.animationLoop&&!y&&(f.cloneCount=2,f.cloneOffset=1,"init"!==t&&f.container.find(".clone").remove(),f.container.append(x.uniqueID(f.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(x.uniqueID(f.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),f.newSlides=b(f.vars.selector,f),e=g?f.count-1-f.currentSlide+f.cloneOffset:f.currentSlide+f.cloneOffset,v&&!y?(f.container.height(200*(f.count+f.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){f.newSlides.css({display:"block"}),f.doMath(),f.viewport.height(f.h),f.setProps(e*f.h,"init")},"init"===t?100:0)):(f.container.width(200*(f.count+f.cloneCount)+"%"),f.setProps(e*f.computedW,"init"),setTimeout(function(){f.doMath(),f.vars.rtl&&f.isFirefox?f.newSlides.css({width:f.computedW,marginRight:f.computedM,float:"right",display:"block"}):f.newSlides.css({width:f.computedW,marginRight:f.computedM,float:"left",display:"block"}),f.vars.smoothHeight&&x.smoothHeight()},"init"===t?100:0)));y||f.slides.removeClass(u+"active-slide").eq(f.currentSlide).addClass(u+"active-slide"),f.vars.init(f)},f.doMath=function(){var t=f.slides.first(),e=f.vars.itemMargin,i=f.vars.minItems,o=f.vars.maxItems;f.w=void 0===f.viewport?f.width():f.viewport.width(),f.isFirefox&&(f.w=f.width()),f.h=t.height(),f.boxPadding=t.outerWidth()-t.width(),y?(f.itemT=f.vars.itemWidth+e,f.itemM=e,f.minW=i?i*f.itemT:f.w,f.maxW=o?o*f.itemT-e:f.w,f.itemW=f.minW>f.w?(f.w-e*(i-1))/i:f.maxW<f.w?(f.w-e*(o-1))/o:f.vars.itemWidth>f.w?f.w:f.vars.itemWidth,f.visible=Math.floor(f.w/f.itemW),f.move=0<f.vars.move&&f.vars.move<f.visible?f.vars.move:f.visible,f.pagingCount=Math.ceil((f.count-f.visible)/f.move+1),f.last=f.pagingCount-1,f.limit=1===f.pagingCount?0:f.vars.itemWidth>f.w?f.itemW*(f.count-1)+e*(f.count-1):(f.itemW+e)*f.count-f.w-e):(f.itemW=f.w,f.itemM=e,f.pagingCount=f.count,f.last=f.count-1),f.computedW=f.itemW-f.boxPadding,f.computedM=f.itemM},f.update=function(t,e){f.doMath(),y||(t<f.currentSlide?f.currentSlide+=1:t<=f.currentSlide&&0!==t&&(f.currentSlide-=1),f.animatingTo=f.currentSlide),f.vars.controlNav&&!f.manualControls&&("add"===e&&!y||f.pagingCount>f.controlNav.length?x.controlNav.update("add"):("remove"===e&&!y||f.pagingCount<f.controlNav.length)&&(y&&f.currentSlide>f.last&&(f.currentSlide-=1,f.animatingTo-=1),x.controlNav.update("remove",f.last))),f.vars.directionNav&&x.directionNav.update()},f.addSlide=function(t,e){var i=b(t);f.count+=1,f.last=f.count-1,v&&g?void 0!==e?f.slides.eq(f.count-e).after(i):f.container.prepend(i):void 0!==e?f.slides.eq(e).before(i):f.container.append(i),f.update(e,"add"),f.slides=b(f.vars.selector+":not(.clone)",f),f.setup(),f.vars.added(f)},f.removeSlide=function(t){var e=isNaN(t)?f.slides.index(b(t)):t;f.count-=1,f.last=f.count-1,isNaN(t)?b(t,f.slides).remove():v&&g?f.slides.eq(f.last).remove():f.slides.eq(t).remove(),f.doMath(),f.update(e,"remove"),f.slides=b(f.vars.selector+":not(.clone)",f),f.setup(),f.vars.removed(f)},x.init()},b(window).on("blur",function(t){i=!1}).on("focus",function(t){i=!0}),b.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,isFirefox:!1,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1},b.fn.flexslider=function(o){if(void 0===o&&(o={}),"object"==typeof o)return this.each(function(){var t=b(this),e=o.selector?o.selector:".slides > li",i=t.find(e);1===i.length&&!1===o.allowOneSlide||0===i.length?(i.fadeIn(400),o.start&&o.start(t)):void 0===t.data("flexslider")&&new b.flexslider(this,o)});var t=b(this).data("flexslider");switch(o){case"play":t.play();break;case"pause":t.pause();break;case"stop":t.stop();break;case"next":t.flexAnimate(t.getTarget("next"),!0);break;case"prev":case"previous":t.flexAnimate(t.getTarget("prev"),!0);break;default:"number"==typeof o&&t.flexAnimate(o,!0)}}}(jQuery),function(e,t,i){"use strict";var o=t.Modernizr,n={},r={_init:function(t){return r.$el=e(this),r.options=e.extend(!0,{custom:!1,modalIdAttribute:"modal-id",hiddeBtnID:"hideemodal"},t),r._config(),r.$el.on("click",function(t){}),this},_config:function(){var t=r.$el.data(r.options.modalIdAttribute);return n.modal=e("#"+t),this},showModal:function(){return r.baseHtml(),r.startLoading(),n.overlay.addClass("shown"),n.html.addClass("shown"),this},hideModal:function(){return n.overlay.removeClass("shown"),n.html.removeClass("shown"),setTimeout(function(){r.destroy()},300),this},setHideEvent:function(){n.overlay.on("click",function(t){r.hideModal()}),n.closeBtnHtml.on("click",function(t){r.hideModal()}),e("#"+r.options.hiddeBtnID).on("click",function(t){r.hideModal()})},setHTML:function(t){return n.html.html(t),this},setTitle:function(t){return n.modalTitle.text(t),this},addText:function(t){return n.modalText.append(t),this},addError:function(t){return n.modalText.append('<p class="error-msg">'+t+"</p>"),n.modalTitle.text("ERROR"),this},addImage:function(t){return n.html.addClass("with-image"),n.modalImage=jQuery('<img src="'+t+'" />').appendTo(n.html),this},addBtn:function(t){return t=e.extend(!0,{href:"",cssClass:"",onclick:"",id:"",title:"",hideOnClick:!1},t),n.modalBtn=jQuery('<a href="'+t.href+'" id="'+t.id+'" class="'+t.cssClass+'" onclick="'+t.onclick+'"><span>'+t.title+"</span></a>").appendTo(n.modalText),t.hideOnClick&&n.modalBtn.on("click",function(){r.hideModal()}),this},startLoading:function(){return n.html.addClass("eloading"),this},endLoading:function(){return n.html.removeClass("eloading"),this},baseHtml:function(){return n.overlay=jQuery('<div class="emodal-overlay"></div>'),n.html=jQuery('<div class="emodal" id="base-modal"><div class="emodal-border"></div></div>'),n.modalText=jQuery('<div class="emodal-text"></div>').prependTo(n.html),n.modalTitle=jQuery('<h5 class="emodal-title"></h5>').prependTo(n.modalText),n.closeBtnHtml=jQuery('<div class="close-modal"><i class="icon-remove"></i></div>').prependTo(n.html),o.csstransforms&&(n.overlay.addClass("with-transforms"),n.html.addClass("with-transforms")),o.csstransitions&&(n.overlay.addClass("with-transitions"),n.html.addClass("with-transitions")),e("body").prepend(n.overlay),e("body").prepend(n.html),r.setHideEvent(),this},destroy:function(){return n.overlay.remove(),n.html.remove(),this}};e.fn.eModal=function(t){return r[t]?r[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("invalid method call!"):r._init.apply(this,arguments)}}(jQuery,window),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(window.jQuery||window.Zepto)}(function(u){var d,o,h,n,p,e,l="Close",c="BeforeClose",f="MarkupParse",m="Open",v=".mfp",g="mfp-ready",i="mfp-removing",s="mfp-prevent-close",t=function(){},a=!!window.jQuery,y=u(window),w=function(t,e){d.ev.on("mfp"+t+v,e)},x=function(t,e,i,o){var n=document.createElement("div");return n.className="mfp-"+t,i&&(n.innerHTML=i),o?e&&e.appendChild(n):(n=u(n),e&&n.appendTo(e)),n},b=function(t,e){d.ev.triggerHandler("mfp"+t,e),d.st.callbacks&&(t=t.charAt(0).toLowerCase()+t.slice(1),d.st.callbacks[t]&&d.st.callbacks[t].apply(d,u.isArray(e)?e:[e]))},S=function(t){return t===e&&d.currTemplate.closeBtn||(d.currTemplate.closeBtn=u(d.st.closeMarkup.replace("%title%",d.st.tClose)),e=t),d.currTemplate.closeBtn},r=function(){u.magnificPopup.instance||((d=new t).init(),u.magnificPopup.instance=d)};t.prototype={constructor:t,init:function(){var t=navigator.appVersion;d.isLowIE=d.isIE8=document.all&&!document.addEventListener,d.isAndroid=/android/gi.test(t),d.isIOS=/iphone|ipad|ipod/gi.test(t),d.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),d.probablyMobile=d.isAndroid||d.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),h=u(document),d.popupsCache={}},open:function(t){var e;if(!1===t.isObj){d.items=t.items.toArray(),d.index=0;var i,o=t.items;for(e=0;e<o.length;e++)if((i=o[e]).parsed&&(i=i.el[0]),i===t.el[0]){d.index=e;break}}else d.items=u.isArray(t.items)?t.items:[t.items],d.index=t.index||0;if(!d.isOpen){d.types=[],p="",t.mainEl&&t.mainEl.length?d.ev=t.mainEl.eq(0):d.ev=h,t.key?(d.popupsCache[t.key]||(d.popupsCache[t.key]={}),d.currTemplate=d.popupsCache[t.key]):d.currTemplate={},d.st=u.extend(!0,{},u.magnificPopup.defaults,t),d.fixedContentPos="auto"===d.st.fixedContentPos?!d.probablyMobile:d.st.fixedContentPos,d.st.modal&&(d.st.closeOnContentClick=!1,d.st.closeOnBgClick=!1,d.st.showCloseBtn=!1,d.st.enableEscapeKey=!1),d.bgOverlay||(d.bgOverlay=x("bg").on("click"+v,function(){d.close()}),d.wrap=x("wrap").attr("tabindex",-1).on("click"+v,function(t){d._checkIfClose(t.target)&&d.close()}),d.container=x("container",d.wrap)),d.contentContainer=x("content"),d.st.preloader&&(d.preloader=x("preloader",d.container,d.st.tLoading));var n=u.magnificPopup.modules;for(e=0;e<n.length;e++){var r=n[e];r=r.charAt(0).toUpperCase()+r.slice(1),d["init"+r].call(d)}b("BeforeOpen"),d.st.showCloseBtn&&(d.st.closeBtnInside?(w(f,function(t,e,i,o){i.close_replaceWith=S(o.type)}),p+=" mfp-close-btn-in"):d.wrap.append(S())),d.st.alignTop&&(p+=" mfp-align-top"),d.fixedContentPos?d.wrap.css({overflow:d.st.overflowY,overflowX:"hidden",overflowY:d.st.overflowY}):d.wrap.css({top:y.scrollTop(),position:"absolute"}),(!1===d.st.fixedBgPos||"auto"===d.st.fixedBgPos&&!d.fixedContentPos)&&d.bgOverlay.css({height:h.height(),position:"absolute"}),d.st.enableEscapeKey&&h.on("keyup"+v,function(t){27===t.keyCode&&d.close()}),y.on("resize"+v,function(){d.updateSize()}),d.st.closeOnContentClick||(p+=" mfp-auto-cursor"),p&&d.wrap.addClass(p);var s=d.wH=y.height(),a={};if(d.fixedContentPos&&d._hasScrollBar(s)){var l=d._getScrollbarSize();l&&(a.marginRight=l)}d.fixedContentPos&&(d.isIE7?u("body, html").css("overflow","hidden"):a.overflow="hidden");var c=d.st.mainClass;return d.isIE7&&(c+=" mfp-ie7"),c&&d._addClassToMFP(c),d.updateItemHTML(),b("BuildControls"),u("html").css(a),d.bgOverlay.add(d.wrap).prependTo(d.st.prependTo||u(document.body)),d._lastFocusedEl=document.activeElement,setTimeout(function(){d.content?(d._addClassToMFP(g),d._setFocus()):d.bgOverlay.addClass(g),h.on("focusin"+v,d._onFocusIn)},16),d.isOpen=!0,d.updateSize(s),b(m),t}d.updateItemHTML()},close:function(){d.isOpen&&(b(c),d.isOpen=!1,d.st.removalDelay&&!d.isLowIE&&d.supportsTransition?(d._addClassToMFP(i),setTimeout(function(){d._close()},d.st.removalDelay)):d._close())},_close:function(){b(l);var t=i+" "+g+" ";if(d.bgOverlay.detach(),d.wrap.detach(),d.container.empty(),d.st.mainClass&&(t+=d.st.mainClass+" "),d._removeClassFromMFP(t),d.fixedContentPos){var e={marginRight:""};d.isIE7?u("body, html").css("overflow",""):e.overflow="",u("html").css(e)}h.off("keyup.mfp focusin"+v),d.ev.off(v),d.wrap.attr("class","mfp-wrap").removeAttr("style"),d.bgOverlay.attr("class","mfp-bg"),d.container.attr("class","mfp-container"),!d.st.showCloseBtn||d.st.closeBtnInside&&!0!==d.currTemplate[d.currItem.type]||d.currTemplate.closeBtn&&d.currTemplate.closeBtn.detach(),d.st.autoFocusLast&&d._lastFocusedEl&&u(d._lastFocusedEl).focus(),d.currItem=null,d.content=null,d.currTemplate=null,d.prevHeight=0,b("AfterClose")},updateSize:function(t){if(d.isIOS){var e=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*e;d.wrap.css("height",i),d.wH=i}else d.wH=t||y.height();d.fixedContentPos||d.wrap.css("height",d.wH),b("Resize")},updateItemHTML:function(){var t=d.items[d.index];d.contentContainer.detach(),d.content&&d.content.detach(),t.parsed||(t=d.parseEl(d.index));var e=t.type;if(b("BeforeChange",[d.currItem?d.currItem.type:"",e]),d.currItem=t,!d.currTemplate[e]){var i=!!d.st[e]&&d.st[e].markup;b("FirstMarkupParse",i),d.currTemplate[e]=!i||u(i)}n&&n!==t.type&&d.container.removeClass("mfp-"+n+"-holder");var o=d["get"+e.charAt(0).toUpperCase()+e.slice(1)](t,d.currTemplate[e]);d.appendContent(o,e),t.preloaded=!0,b("Change",t),n=t.type,d.container.prepend(d.contentContainer),b("AfterChange")},appendContent:function(t,e){(d.content=t)?d.st.showCloseBtn&&d.st.closeBtnInside&&!0===d.currTemplate[e]?d.content.find(".mfp-close").length||d.content.append(S()):d.content=t:d.content="",b("BeforeAppend"),d.container.addClass("mfp-"+e+"-holder"),d.contentContainer.append(d.content)},parseEl:function(t){var e,i=d.items[t];if((i=i.tagName?{el:u(i)}:(e=i.type,{data:i,src:i.src})).el){for(var o=d.types,n=0;n<o.length;n++)if(i.el.hasClass("mfp-"+o[n])){e=o[n];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=e||d.st.type||"inline",i.index=t,i.parsed=!0,d.items[t]=i,b("ElementParse",i),d.items[t]},addGroup:function(e,i){var t=function(t){t.mfpEl=this,d._openClick(t,e,i)};i||(i={});var o="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,t)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,t):(i.items=e).off(o).on(o,t))},_openClick:function(t,e,i){if((void 0!==i.midClick?i.midClick:u.magnificPopup.defaults.midClick)||!(2===t.which||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)){var o=void 0!==i.disableOn?i.disableOn:u.magnificPopup.defaults.disableOn;if(o)if(u.isFunction(o)){if(!o.call(d))return!0}else if(y.width()<o)return!0;t.type&&(t.preventDefault(),d.isOpen&&t.stopPropagation()),i.el=u(t.mfpEl),i.delegate&&(i.items=e.find(i.delegate)),d.open(i)}},updateStatus:function(t,e){if(d.preloader){o!==t&&d.container.removeClass("mfp-s-"+o),e||"loading"!==t||(e=d.st.tLoading);var i={status:t,text:e};b("UpdateStatus",i),t=i.status,e=i.text,d.preloader.html(e),d.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),d.container.addClass("mfp-s-"+t),o=t}},_checkIfClose:function(t){if(!u(t).hasClass(s)){var e=d.st.closeOnContentClick,i=d.st.closeOnBgClick;if(e&&i)return!0;if(!d.content||u(t).hasClass("mfp-close")||d.preloader&&t===d.preloader[0])return!0;if(t===d.content[0]||u.contains(d.content[0],t)){if(e)return!0}else if(i&&u.contains(document,t))return!0;return!1}},_addClassToMFP:function(t){d.bgOverlay.addClass(t),d.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),d.wrap.removeClass(t)},_hasScrollBar:function(t){return(d.isIE7?h.height():document.body.scrollHeight)>(t||y.height())},_setFocus:function(){(d.st.focus?d.content.find(d.st.focus).eq(0):d.wrap).focus()},_onFocusIn:function(t){if(t.target!==d.wrap[0]&&!u.contains(d.wrap[0],t.target))return d._setFocus(),!1},_parseMarkup:function(n,t,e){var r;e.data&&(t=u.extend(e.data,t)),b(f,[n,t,e]),u.each(t,function(t,e){if(void 0===e||!1===e)return!0;if(1<(r=t.split("_")).length){var i=n.find(v+"-"+r[0]);if(0<i.length){var o=r[1];"replaceWith"===o?i[0]!==e[0]&&i.replaceWith(e):"img"===o?i.is("img")?i.attr("src",e):i.replaceWith(u("<img>").attr("src",e).attr("class",i.attr("class"))):i.attr(r[1],e)}}else n.find(v+"-"+t).html(e)})},_getScrollbarSize:function(){if(void 0===d.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),d.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return d.scrollbarSize}},u.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(t,e){return r(),(t=t?u.extend(!0,{},t):{}).isObj=!0,t.index=e||0,this.instance.open(t)},close:function(){return u.magnificPopup.instance&&u.magnificPopup.instance.close()},registerModule:function(t,e){e.options&&(u.magnificPopup.defaults[t]=e.options),u.extend(this.proto,e.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},u.fn.magnificPopup=function(t){r();var e=u(this);if("string"==typeof t)if("open"===t){var i,o=a?e.data("magnificPopup"):e[0].magnificPopup,n=parseInt(arguments[1],10)||0;i=o.items?o.items[n]:(i=e,o.delegate&&(i=i.find(o.delegate)),i.eq(n)),d._openClick({mfpEl:i},e,o)}else d.isOpen&&d[t].apply(d,Array.prototype.slice.call(arguments,1));else t=u.extend(!0,{},t),a?e.data("magnificPopup",t):e[0].magnificPopup=t,d.addGroup(e,t);return e};var T,z,C,k="inline",I=function(){C&&(z.after(C.addClass(T)).detach(),C=null)};u.magnificPopup.registerModule(k,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){d.types.push(k),w(l+"."+k,function(){I()})},getInline:function(t,e){if(I(),t.src){var i=d.st.inline,o=u(t.src);if(o.length){var n=o[0].parentNode;n&&n.tagName&&(z||(T=i.hiddenClass,z=x(T),T="mfp-"+T),C=o.after(z).detach().removeClass(T)),d.updateStatus("ready")}else d.updateStatus("error",i.tNotFound),o=u("<div>");return t.inlineElement=o}return d.updateStatus("ready"),d._parseMarkup(e,{},t),e}}});var _,E="ajax",M=function(){_&&u(document.body).removeClass(_)},j=function(){M(),d.req&&d.req.abort()};u.magnificPopup.registerModule(E,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){d.types.push(E),_=d.st.ajax.cursor,w(l+"."+E,j),w("BeforeChange."+E,j)},getAjax:function(n){_&&u(document.body).addClass(_),d.updateStatus("loading");var t=u.extend({url:n.src,success:function(t,e,i){var o={data:t,xhr:i};b("ParseAjax",o),d.appendContent(u(o.data),E),n.finished=!0,M(),d._setFocus(),setTimeout(function(){d.wrap.addClass(g)},16),d.updateStatus("ready"),b("AjaxContentAdded")},error:function(){M(),n.finished=n.loadError=!0,d.updateStatus("error",d.st.ajax.tError.replace("%url%",n.src))}},d.st.ajax.settings);return d.req=u.ajax(t),""}}});var L;u.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var t=d.st.image,e=".image";d.types.push("image"),w(m+e,function(){"image"===d.currItem.type&&t.cursor&&u(document.body).addClass(t.cursor)}),w(l+e,function(){t.cursor&&u(document.body).removeClass(t.cursor),y.off("resize"+v)}),w("Resize"+e,d.resizeImage),d.isLowIE&&w("AfterChange",d.resizeImage)},resizeImage:function(){var t=d.currItem;if(t&&t.img&&d.st.image.verticalFit){var e=0;d.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",d.wH-e)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,L&&clearInterval(L),t.isCheckingImgSize=!1,b("ImageHasSize",t),t.imgHidden&&(d.content&&d.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(e){var i=0,o=e.img[0],n=function(t){L&&clearInterval(L),L=setInterval(function(){0<o.naturalWidth?d._onImageHasSize(e):(200<i&&clearInterval(L),3===++i?n(10):40===i?n(50):100===i&&n(500))},t)};n(1)},getImage:function(t,e){var i=0,o=function(){t&&(t.img[0].complete?(t.img.off(".mfploader"),t===d.currItem&&(d._onImageHasSize(t),d.updateStatus("ready")),t.hasSize=!0,t.loaded=!0,b("ImageLoadComplete")):++i<200?setTimeout(o,100):n())},n=function(){t&&(t.img.off(".mfploader"),t===d.currItem&&(d._onImageHasSize(t),d.updateStatus("error",r.tError.replace("%url%",t.src))),t.hasSize=!0,t.loaded=!0,t.loadError=!0)},r=d.st.image,s=e.find(".mfp-img");if(s.length){var a=document.createElement("img");a.className="mfp-img",t.el&&t.el.find("img").length&&(a.alt=t.el.find("img").attr("alt")),t.img=u(a).on("load.mfploader",o).on("error.mfploader",n),a.src=t.src,s.is("img")&&(t.img=t.img.clone()),0<(a=t.img[0]).naturalWidth?t.hasSize=!0:a.width||(t.hasSize=!1)}return d._parseMarkup(e,{title:function(t){if(t.data&&void 0!==t.data.title)return t.data.title;var e=d.st.image.titleSrc;if(e){if(u.isFunction(e))return e.call(d,t);if(t.el)return t.el.attr(e)||""}return""}(t),img_replaceWith:t.img},t),d.resizeImage(),t.hasSize?(L&&clearInterval(L),t.loadError?(e.addClass("mfp-loading"),d.updateStatus("error",r.tError.replace("%url%",t.src))):(e.removeClass("mfp-loading"),d.updateStatus("ready"))):(d.updateStatus("loading"),t.loading=!0,t.hasSize||(t.imgHidden=!0,e.addClass("mfp-loading"),d.findImageSize(t))),e}}});var P;u.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,r=d.st.zoom,e=".zoom";if(r.enabled&&d.supportsTransition){var i,o,n=r.duration,s=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+r.duration/1e3+"s "+r.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},n="transition";return o["-webkit-"+n]=o["-moz-"+n]=o["-o-"+n]=o[n]=i,e.css(o),e},a=function(){d.content.css("visibility","visible")};w("BuildControls"+e,function(){if(d._allowZoom()){if(clearTimeout(i),d.content.css("visibility","hidden"),!(t=d._getItemToZoom()))return void a();(o=s(t)).css(d._getOffset()),d.wrap.append(o),i=setTimeout(function(){o.css(d._getOffset(!0)),i=setTimeout(function(){a(),setTimeout(function(){o.remove(),t=o=null,b("ZoomAnimationEnded")},16)},n)},16)}}),w(c+e,function(){if(d._allowZoom()){if(clearTimeout(i),d.st.removalDelay=n,!t){if(!(t=d._getItemToZoom()))return;o=s(t)}o.css(d._getOffset(!0)),d.wrap.append(o),d.content.css("visibility","hidden"),setTimeout(function(){o.css(d._getOffset())},16)}}),w(l+e,function(){d._allowZoom()&&(a(),o&&o.remove(),t=null)})}},_allowZoom:function(){return"image"===d.currItem.type},_getItemToZoom:function(){return!!d.currItem.hasSize&&d.currItem.img},_getOffset:function(t){var e,i=(e=t?d.currItem.img:d.st.zoom.opener(d.currItem.el||d.currItem)).offset(),o=parseInt(e.css("padding-top"),10),n=parseInt(e.css("padding-bottom"),10);i.top-=u(window).scrollTop()-o;var r={width:e.width(),height:(a?e.innerHeight():e[0].offsetHeight)-n-o};return void 0===P&&(P=void 0!==document.createElement("p").style.MozTransform),P?r["-moz-transform"]=r.transform="translate("+i.left+"px,"+i.top+"px)":(r.left=i.left,r.top=i.top),r}}});var O="iframe",N=function(t){if(d.currTemplate[O]){var e=d.currTemplate[O].find("iframe");e.length&&(t||(e[0].src="//about:blank"),d.isIE8&&e.css("display",t?"block":"none"))}};u.magnificPopup.registerModule(O,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){d.types.push(O),w("BeforeChange",function(t,e,i){e!==i&&(e===O?N():i===O&&N(!0))}),w(l+"."+O,function(){N()})},getIframe:function(t,e){var i=t.src,o=d.st.iframe;u.each(o.patterns,function(){if(-1<i.indexOf(this.index))return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1});var n={};return o.srcAction&&(n[o.srcAction]=i),d._parseMarkup(e,n,t),d.updateStatus("ready"),e}}});var W=function(t){var e=d.items.length;return e-1<t?t-e:t<0?e+t:t},H=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};u.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var r=d.st.gallery,t=".mfp-gallery";if(d.direction=!0,!r||!r.enabled)return!1;p+=" mfp-gallery",w(m+t,function(){r.navigateByImgClick&&d.wrap.on("click"+t,".mfp-img",function(){if(1<d.items.length)return d.next(),!1}),h.on("keydown"+t,function(t){37===t.keyCode?d.prev():39===t.keyCode&&d.next()})}),w("UpdateStatus"+t,function(t,e){e.text&&(e.text=H(e.text,d.currItem.index,d.items.length))}),w(f+t,function(t,e,i,o){var n=d.items.length;i.counter=1<n?H(r.tCounter,o.index,n):""}),w("BuildControls"+t,function(){if(1<d.items.length&&r.arrows&&!d.arrowLeft){var t=r.arrowMarkup,e=d.arrowLeft=u(t.replace(/%title%/gi,r.tPrev).replace(/%dir%/gi,"left")).addClass(s),i=d.arrowRight=u(t.replace(/%title%/gi,r.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){d.prev()}),i.click(function(){d.next()}),d.container.append(e.add(i))}}),w("Change"+t,function(){d._preloadTimeout&&clearTimeout(d._preloadTimeout),d._preloadTimeout=setTimeout(function(){d.preloadNearbyImages(),d._preloadTimeout=null},16)}),w(l+t,function(){h.off(t),d.wrap.off("click"+t),d.arrowRight=d.arrowLeft=null})},next:function(){d.direction=!0,d.index=W(d.index+1),d.updateItemHTML()},prev:function(){d.direction=!1,d.index=W(d.index-1),d.updateItemHTML()},goTo:function(t){d.direction=t>=d.index,d.index=t,d.updateItemHTML()},preloadNearbyImages:function(){var t,e=d.st.gallery.preload,i=Math.min(e[0],d.items.length),o=Math.min(e[1],d.items.length);for(t=1;t<=(d.direction?o:i);t++)d._preloadItem(d.index+t);for(t=1;t<=(d.direction?i:o);t++)d._preloadItem(d.index-t)},_preloadItem:function(t){if(t=W(t),!d.items[t].preloaded){var e=d.items[t];e.parsed||(e=d.parseEl(t)),b("LazyLoad",e),"image"===e.type&&(e.img=u('<img class="mfp-img" />').on("load.mfploader",function(){e.hasSize=!0}).on("error.mfploader",function(){e.hasSize=!0,e.loadError=!0,b("LazyLoadError",e)}).attr("src",e.src)),e.preloaded=!0}}}});var D="retina";u.magnificPopup.registerModule(D,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(1<window.devicePixelRatio){var i=d.st.retina,o=i.ratio;1<(o=isNaN(o)?o():o)&&(w("ImageHasSize."+D,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/o,width:"100%"})}),w("ElementParse."+D,function(t,e){e.src=i.replaceSrc(e,o)}))}}}}),r()}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&t(jQuery)}(function(c){"use strict";var n,r,s={interval:100,sensitivity:6,timeout:0},a=0,u=function(t){n=t.pageX,r=t.pageY},d=function(t,e,i,o){if(Math.sqrt((i.pX-n)*(i.pX-n)+(i.pY-r)*(i.pY-r))<o.sensitivity)return e.off(i.event,u),delete i.timeoutId,i.isActive=!0,t.pageX=n,t.pageY=r,delete i.pX,delete i.pY,o.over.apply(e[0],[t]);i.pX=n,i.pY=r,i.timeoutId=setTimeout(function(){d(t,e,i,o)},o.interval)},h=function(t){return"function"==typeof t};c.fn.hoverIntent=function(t,e,i){var o=a++,l=c.extend({},s);c.isPlainObject(t)?(l=c.extend(l,t),h(l.out)||(l.out=l.over)):l=h(e)?c.extend(l,{over:t,out:e,selector:i}):c.extend(l,{over:t,out:t,selector:e});var n=function(t){var r=c.extend({},t),s=c(this),e=s.data("hoverIntent");e||s.data("hoverIntent",e={});var a=e[o];a||(e[o]=a={id:o}),a.timeoutId&&(a.timeoutId=clearTimeout(a.timeoutId));var i=a.event="mousemove.hoverIntent.hoverIntent"+o;if("mouseenter"===t.type){if(a.isActive)return;a.pX=r.pageX,a.pY=r.pageY,s.off(i,u).on(i,u),a.timeoutId=setTimeout(function(){d(r,s,a,l)},l.interval)}else{if(!a.isActive)return;s.off(i,u),a.timeoutId=setTimeout(function(){var t,e,i,o,n;t=r,e=s,i=a,o=l.out,(n=e.data("hoverIntent"))&&delete n[i.id],o.apply(e[0],[t])},l.timeout)}};return this.on({"mouseenter.hoverIntent":n,"mouseleave.hoverIntent":n},l.selector)}}),function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";function i(c,n,u){(u=u||e||t.jQuery)&&(n.prototype.option||(n.prototype.option=function(t){u.isPlainObject(t)&&(this.options=u.extend(!0,this.options,t))}),u.fn[c]=function(t){if("string"!=typeof t)return o=t,this.each(function(t,e){var i=u.data(e,c);i?(i.option(o),i._init()):(i=new n(e,o),u.data(e,c,i))}),this;var e,r,s,a,l,o,i=d.call(arguments,1);return s=i,l="$()."+c+'("'+(r=t)+'")',(e=this).each(function(t,e){var i=u.data(e,c);if(i){var o=i[r];if(o&&"_"!=r.charAt(0)){var n=o.apply(i,s);a=void 0===a?n:a}else h(l+" is not a valid method")}else h(c+" not initialized. Cannot call methods, i.e. "+l)}),void 0!==a?a:e},o(u))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var d=Array.prototype.slice,n=t.console,h=void 0===n?function(){}:function(t){n.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return-1==o.indexOf(e)&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return-1!=o&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var r=i[n];o&&o[r]&&(this.off(t,r),delete o[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function g(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function y(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function w(t){if(function(){if(!T){T=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=y(t);x=200==Math.round(g(i.width)),w.isBoxSizeOuter=x,e.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=y(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<S;e++)t[b[e]]=0;return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var o=i.isBorderBox="border-box"==e.boxSizing,n=0;n<S;n++){var r=b[n],s=e[r],a=parseFloat(s);i[r]=isNaN(a)?0:a}var l=i.paddingLeft+i.paddingRight,c=i.paddingTop+i.paddingBottom,u=i.marginLeft+i.marginRight,d=i.marginTop+i.marginBottom,h=i.borderLeftWidth+i.borderRightWidth,p=i.borderTopWidth+i.borderBottomWidth,f=o&&x,m=g(e.width);!1!==m&&(i.width=m+(f?0:l+h));var v=g(e.height);return!1!==v&&(i.height=v+(f?0:c+p)),i.innerWidth=i.width-(l+h),i.innerHeight=i.height-(c+p),i.outerWidth=i.width+u,i.outerHeight=i.height+d,i}}var x,i="undefined"==typeof console?function(){}:function(t){console.error(t)},b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],S=b.length,T=!1;return w}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i]+"MatchesSelector";if(t[o])return o}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(c,r){var u={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice;u.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},u.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},u.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,r(t,e))return t},u.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},u.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.filterFindElements=function(t,o){t=u.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);r(t,o)&&n.push(t);for(var e=t.querySelectorAll(o),i=0;i<e.length;i++)n.push(e[i])}}),n},u.debounceMethod=function(t,e,o){o=o||100;var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,i=this;this[r]=setTimeout(function(){n.apply(i,e),delete i[r]},o)}},u.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},u.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var d=c.console;return u.htmlInit=function(a,l){u.docReady(function(){var t=u.toDashed(l),n="data-"+t,e=document.querySelectorAll("["+n+"]"),i=document.querySelectorAll(".js-"+t),o=u.makeArray(e).concat(u.makeArray(i)),r=n+"-options",s=c.jQuery;o.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(r);try{t=i&&JSON.parse(i)}catch(t){return void(d&&d.error("Error parsing "+n+" on "+e.className+": "+t))}var o=new a(e,t);s&&s.data(e,l,o)})})},u}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var o=document.documentElement.style,n="string"==typeof o.transition?"transition":"WebkitTransition",r="string"==typeof o.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"},l=i.prototype=Object.create(t.prototype);l.constructor=i,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.getSize=function(){this.size=e(this.element)},l.css=function(t){var e=this.element.style;for(var i in t){e[a[i]||i]=t[i]}},l.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=t[e?"left":"right"],n=t[i?"top":"bottom"],r=parseFloat(o),s=parseFloat(n),a=this.layout.size;-1!=o.indexOf("%")&&(r=r/100*a.width),-1!=n.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},l.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[n];e[r]=this.getXValue(a),e[s]="";var l=o?"paddingTop":"paddingBottom",c=o?"top":"bottom",u=o?"bottom":"top",d=this.position.y+t[l];e[c]=this.getYValue(d),e[u]="",this.css(e),this.emitEvent("layout",[this])},l.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},l.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},l._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!n||this.isTransitioning){var r=t-i,s=e-o,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},l.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},l._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},l.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var c="opacity,"+r.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});l.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:c,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1)}},l.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},l.onotransitionend=function(t){this.ontransitionend(t)};var u={"-webkit-transform":"transform"};l.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=u[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},l._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(d)},l.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){return n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},l.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(n,r){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(t,e,i,o){return r(n,t,e,i,o)}):"object"==typeof module&&module.exports?module.exports=r(n,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=r(n,n.EvEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)}(window,function(t,e,n,r,o){"use strict";function s(t,e){var i=r.getQueryElement(t);if(i){this.element=i,c&&(this.$element=c(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(e);var o=++u;this.element.outlayerGUID=o,(d[o]=this)._create(),this._getOption("initLayout")&&this.layout()}else l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function a(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}var l=t.console,c=t.jQuery,i=function(){},u=0,d={};s.namespace="outlayer",s.Item=o,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var h=s.prototype;r.extend(h,e.prototype),h.option=function(t){r.extend(this.options,t)},h._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0;n<e.length;n++){var r=new i(e[n],this);o.push(r)}return o},h._filterFindItemElements=function(t){return r.filterFindElements(t,this.options.itemSelector)},h.getItemElements=function(){return this.items.map(function(t){return t.element})},h.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=n(this.element)},h._getMeasurement=function(t,e){var i,o=this.options[t];o?("string"==typeof o?i=this.element.querySelector(o):o instanceof HTMLElement&&(i=o),this[t]=i?n(i)[e]:o):this[t]=0},h.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},h._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},h._layoutItems=function(t,i){if(this._emitCompleteOnItems("layout",t),t&&t.length){var o=[];t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,o.push(e)},this),this._processLayoutQueue(o)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},h.updateStagger=function(){var t=this.options.stagger;return null==t?void(this.stagger=0):(this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],o=e&&e[2];return i.length?(i=parseFloat(i))*(p[o]||1):0}(t),this.stagger)},h._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},h._getContainerSize=i,h._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},h._emitCompleteOnItems=function(e,t){function i(){n.dispatchEvent(e+"Complete",null,[t])}function o(){++s==r&&i()}var n=this,r=t.length;if(t&&r){var s=0;t.forEach(function(t){t.once(e,o)})}else i()},h.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),c)if(this.$element=this.$element||c(this.element),e){var n=c.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},h.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},h.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},h.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},h.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){r.removeFrom(this.stamps,t),this.unignore(t)},this)},h._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),r.makeArray(t)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},h._manageStamp=i,h._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=n(t);return{left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom}},h.handleEvent=r.handleEvent,h.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},r.debounceMethod(s,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},h.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},h.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},h.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},h.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.reveal()})}},h.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var i=this.updateStagger();t.forEach(function(t,e){t.stagger(e*i),t.hide()})}},h.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},h.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},h.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},h.getItems=function(t){t=r.makeArray(t);var i=[];return t.forEach(function(t){var e=this.getItem(t);e&&i.push(e)},this),i},h.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),r.removeFrom(this.items,t)},this)},h.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete d[e],delete this.element.outlayerGUID,c&&c.removeData(this.element,this.constructor.namespace)},s.data=function(t){var e=(t=r.getQueryElement(t))&&t.outlayerGUID;return e&&d[e]},s.create=function(t,e){var i=a(s);return i.defaults=r.extend({},s.defaults),r.extend(i.defaults,e),i.compatOptions=r.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=a(o),r.htmlInit(i,t),c&&c.bridget&&c.bridget(t,i),i};var p={ms:1,s:1e3};return s.Item=o,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),o=i._create;i._create=function(){this.id=this.layout.itemGUID++,o.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(e,i){"use strict";function o(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=o.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){n[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},n.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},o.modes={},o.create=function(t,e){function i(){o.apply(this,arguments)}return(i.prototype=Object.create(n)).constructor=i,e&&(i.options=e),o.modes[i.prototype.namespace=t]=i},o}),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,c){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";var i=e.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],e=t&&t.element;this.columnWidth=e&&c(e).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,n=o/i,r=i-o%i;n=Math[r&&r<1?"round":"floor"](n),this.cols=Math.max(n,1)},i.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,e=c(t);this.containerWidth=e&&e.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var o=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),n={x:this.columnWidth*o.col,y:o.y},r=o.y+t.size.outerHeight,s=i+o.col,a=o.col;a<s;a++)this.colYs[a]=r;return n},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++)e[o]=this._getColGroupY(o,t);return e},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols;i=1<t&&i+t>this.cols?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},i._manageStamp=function(t){var e=c(t),i=this._getElementOffset(t),o=this._getOption("originLeft")?i.left:i.right,n=o+e.outerWidth,r=Math.floor(o/this.columnWidth);r=Math.max(0,r);var s=Math.floor(n/this.columnWidth);s-=n%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var a=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,l=r;l<=s;l++)this.colYs[l]=Math.max(a,this.colYs[l])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var r in e.prototype)n[r]||(o[r]=e.prototype[r]);var s=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,s.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(s,a){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(t,e,i,o,n,r){return a(s,t,e,i,o,n,r)}):"object"==typeof module&&module.exports?module.exports=a(s,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):s.Isotope=a(s,s.Outlayer,s.getSize,s.matchesSelector,s.fizzyUIUtils,s.Isotope.Item,s.Isotope.LayoutMode)}(window,function(t,i,e,o,r,n,s){var a=t.jQuery,c=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},u=i.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});u.Item=n,u.LayoutMode=s;var l=u.prototype;l._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++){t[e].id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=s.modes[t],i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e},l._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var e,i,o,n=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){o=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],r=this._getFilterTest(e),s=0;s<t.length;s++){var a=t[s];if(!a.isIgnored){var l=r(a);l&&i.push(a),l&&a.isHidden?o.push(a):l||a.isHidden||n.push(a)}}return{matches:i,needReveal:o,needHide:n}},l._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return o(t.element,e)}},l.updateSortData=function(t){var e;e=t?(t=r.makeArray(t),this.getItems(t)):this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=d(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].updateSortData()}};var d=function(t){if("string"!=typeof t)return t;var e,i,o=c(t).split(" "),n=o[0],r=n.match(/^\[(.+)\]$/),s=r&&r[1],a=(i=n,(e=s)?function(t){return t.getAttribute(e)}:function(t){var e=t.querySelector(i);return e&&e.textContent}),l=u.sortDataParsers[o[1]];return l?function(t){return t&&l(a(t))}:function(t){return t&&a(t)}};u.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=r.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=(s=this.sortHistory,a=this.options.sortAscending,function(t,e){for(var i=0;i<s.length;i++){var o=s[i],n=t.sortData[o],r=e.sortData[o];if(r<n||n<r)return(r<n?1:-1)*((void 0!==a[o]?a[o]:a)?1:-1)}return 0});this.filteredItems.sort(e)}var s,a},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;i<n;i++)o=e[i],this.element.appendChild(o.element);var r=this._filter(e).matches;for(i=0;i<n;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete e[i].isLayoutInstant;this.reveal(r)}};var h=l.remove;return l.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);h.call(this,t);for(var i=e&&e.length,o=0;i&&o<i;o++){var n=e[o];r.removeFrom(this.filteredItems,n)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=t.apply(this,e);return this.options.transitionDuration=i,o},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},u}),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){void 0!==e.easing&&(e.easing.jswing=e.easing.swing);var i=Math.pow,o=Math.sqrt,n=Math.sin,r=Math.cos,s=Math.PI,a=1.70158,l=1.525*a,c=2*s/3,u=2*s/4.5;function d(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375}return e.extend(e.easing,{def:"easeOutQuad",swing:function(t){return e.easing[e.easing.def](t)},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return 1-(1-t)*(1-t)},easeInOutQuad:function(t){return t<.5?2*t*t:1-i(-2*t+2,2)/2},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1-i(1-t,3)},easeInOutCubic:function(t){return t<.5?4*t*t*t:1-i(-2*t+2,3)/2},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1-i(1-t,4)},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-i(-2*t+2,4)/2},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1-i(1-t,5)},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1-i(-2*t+2,5)/2},easeInSine:function(t){return 1-r(t*s/2)},easeOutSine:function(t){return n(t*s/2)},easeInOutSine:function(t){return-(r(s*t)-1)/2},easeInExpo:function(t){return 0===t?0:i(2,10*t-10)},easeOutExpo:function(t){return 1===t?1:1-i(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:t<.5?i(2,20*t-10)/2:(2-i(2,-20*t+10))/2},easeInCirc:function(t){return 1-o(1-i(t,2))},easeOutCirc:function(t){return o(1-i(t-1,2))},easeInOutCirc:function(t){return t<.5?(1-o(1-i(2*t,2)))/2:(o(1-i(-2*t+2,2))+1)/2},easeInElastic:function(t){return 0===t?0:1===t?1:-i(2,10*t-10)*n((10*t-10.75)*c)},easeOutElastic:function(t){return 0===t?0:1===t?1:i(2,-10*t)*n((10*t-.75)*c)+1},easeInOutElastic:function(t){return 0===t?0:1===t?1:t<.5?-i(2,20*t-10)*n((20*t-11.125)*u)/2:i(2,-20*t+10)*n((20*t-11.125)*u)/2+1},easeInBack:function(t){return 2.70158*t*t*t-a*t*t},easeOutBack:function(t){return 1+2.70158*i(t-1,3)+a*i(t-1,2)},easeInOutBack:function(t){return t<.5?i(2*t,2)*(7.189819*t-l)/2:(i(2*t-2,2)*((l+1)*(2*t-2)+l)+2)/2},easeInBounce:function(t){return 1-d(1-t)},easeOutBounce:d,easeInOutBounce:function(t){return t<.5?(1-d(1-2*t))/2:(1+d(2*t-1))/2}}),e}),function(c){c.cookie=function(t,e,i){if(1<arguments.length&&(!/Object/.test(Object.prototype.toString.call(e))||null==e)){if(i=c.extend({},i),null==e&&(i.expires=-1),"number"==typeof i.expires){var o=i.expires,n=i.expires=new Date;n.setDate(n.getDate()+o)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",i.raw?e:encodeURIComponent(e),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var r,s=(i=e||{}).raw?function(t){return t}:decodeURIComponent,a=document.cookie.split("; "),l=0;r=a[l]&&a[l].split("=");l++)if(s(r[0])===t)return s(r[1]||"");return null}}(jQuery),function(v){function r(t,e){var i;return(i=v.data(t,n))?i:v.data(t,n,new o(t,e))}function o(t,e){function i(t,e){v(document).on("touchstart",f),l.hasFocus=!0,c="sxy-focus",t&&t(e),c="sxy-hover"}function r(){v(document).off("touchstart",f),l.hasFocus=!1,c="sxy-blur",l.el.triggerHandler(c),c="sxy-hover"}function o(t){a=t,u.x=t.pageX,u.y=t.pageY,l.pt=[u],l.trigger(c)}function n(t){t=(a=t).originalEvent.targetTouches;for(var e=l.pt=[],i=0,o=t.length;i<o;++i)e.push({x:t[i].pageX,y:t[i].pageY,type:1,down:!0});l.trigger(c)}function s(t,e,i,o){for(d.push(t={e:t,hnd:i,l:0,el:o||l.el}),i=0,o=e.length;i<o;++i)h[w[e[i]]].push(t)}var a,l=this,c="sxy-hover",u={x:0,y:0,down:!1,type:0},d=[],h={};this.options=e=v.extend({},y,e),this.el=v(t),this.pt=[],this.g={},this.h={},this.hasFocus=!1;for(var p=0;p<w.length;++p)h[w[p]]=[];g||(s("mouseenter",[0,2,4],function(t){l.hasFocus||i(o,t),c="sxy-hover",o(t)}),s("mouseleave",[1,2,5],function(t){c=u.down?"sxy-up":"sxy-hover",u.down=!1,o(t),r()}),s("mousedown",[3,4],function(t){c="sxy-down",u.down=!0,o(t),c="sxy-move"}),s("mouseup",[0,1,2,3,4,5],function(t){c="sxy-up",u.down=!1,o(t),c="sxy-hover"}),s("mousemove",[2,4],o)),s("touchstart",[0,1,2,3,4,5],function(t){c="sxy-down",l.hasFocus||i(n,t),n(t),c="sxy-move"}),s("touchend",[0,1,2,3,4,5],function(t){c="sxy-up";var e=(a=t).originalEvent.targetTouches;t=t.originalEvent.changedTouches;for(var i=l.pt=[],o=0,n=e.length;o<n;++o)i.push({x:e[o].pageX,y:e[o].pageY,type:1,down:!0});for(o=0,n=t.length;o<n;++o)i.push({x:t[o].pageX,y:t[o].pageY,type:1,down:!1});l.trigger(c),c="sxy-hover"}),s("touchmove",[0,1,2,3,4,5],n);var f=function(t){for(var e=!0,i=l.pt,o=0,n=i.length;o<n;++o)if(1==i[o].down){e=!1;break}e&&r()},m=v.Event;this.trigger=function(t,e){this.options.preventDefault&&a.preventDefault(),(e=e||{}).pointers=l.pt,e.originalEvent=a,l.el.trigger(m(t,e))},this.eventEnabler=function(t,e){for(var i,o=h[t],n=e?1:-1,r=0,s=o.length;r<s;++r)switch((i=o[r]).l+=n){case 0:i.el.off(i.e,i.hnd);break;case 1:i.el.on(i.e,i.hnd)}},l.focus=i,l.blur=r}for(var g=-1<(t=navigator.userAgent.toLowerCase()).indexOf("android")&&-1<t.indexOf("mobile"),n="swinxytouch",y={preventDefault:!0,stopPropagation:!1},w="sxy-focus sxy-blur sxy-hover sxy-down sxy-move sxy-up".split(" "),t=function(t){return function(){r(this).eventEnabler(t,!0)}},e=function(t){return function(){r(this).eventEnabler(t,!1)}},i=0,s=w.length;i<s;++i){var a=w[i];v.event.special[a]={setup:t(a),teardown:e(a)}}v.fn[n]=function(e){return this.each(function(){var t=r(this);e&&t[e]&&t[e].apply(t,Array.prototype.slice.call(arguments,1))})},v.fn[n].g=function(t,o,n){v.event.special[t]={setup:function(){var e,i=r(this);e=i.g[t]=new o(i,i.options[t]?v.extend({},n,i.options[t]):n),v.each(e,function(t){"sxy-"==t.substr(0,4)&&i.el.on(t,e[t])})},teardown:function(){var e=r(this),i=e.g[t];v.each(i,function(t){"sxy-"==t.substr(0,4)&&e.el.off(t,i[t])}),e.g[t]=null}}},v.fn[n].d=function(t,e){var i=t.x-e.x,o=t.y-e.y;return Math.sqrt(i*i+o*o)},v.fn[n].a=function(t,e){var i;return 0<(i=Math.atan2(t.y-e.y,t.x-e.x))?i*(180/Math.PI):(2*Math.PI+i)*(180/Math.PI)},v.fn[n].h=function(t,e){o.prototype[t]=function(){this.h[t]=new e(this)}},v.fn[n].m=function(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}}(jQuery),function(i){i.fn.swinxytouch.h("smartclick",function(t){var e=this;e.allow=!1,e._hndClick=function(t){e.allow||t.preventDefault(),e.allow=!1},e._hndTap=function(t){e.allow=!0,i(t.originalEvent.target).trigger("click")},t.el.on("click",e._hndClick),t.el.on("sxy-tap",e._hndTap)})}(jQuery),function(a){a.fn.swinxytouch.h("bound",function(i){var t=i.el.offset(),o=t.left,n=t.top,r=o+i.el.width(),s=n+i.el.height();i.el.on("sxy-hover sxy-down sxy-up sxy-move sxy-focus",function(t){var e=t.pointers[0];e.y<n||e.x>r||e.y>s||e.x<o?i.hasFocus&&i.blur():i.hasFocus||(i.focus(),i.el.trigger(a.Event("sxy-focus",{pointers:t.pointers,originalEvent:t.originalEvent})))})})}(jQuery),jQuery.fn.swinxytouch.g("sxy-tap",function(e,i){var o,n,r=Math.abs;this["sxy-down"]=function(t){1==(t=t.pointers).length&&(o=(new Date).getTime(),n={x:t[0].x,y:t[0].y})},this["sxy-up"]=function(t){1==(t=t.pointers).length&&(new Date).getTime()-o<i.maxDelay&&r(n.x-t[0].x)<i.maxMove&&r(n.y-t[0].y)<i.maxMove&&e.trigger("sxy-tap",{position:n})}},{maxDelay:150,maxMove:2}),function(t){t.fn.swinxytouch.g("sxy-swipe",function(e,i){var o,n,r=t.fn.swinxytouch.d,s=t.fn.swinxytouch.a,a={};this["sxy-down"]=function(t){t=t.pointers,o=(new Date).getTime(),n={x:t[0].x,y:t[0].y}},this["sxy-up"]=function(t){t=t.pointers,(new Date).getTime()-o<i.maxTime&&r(n,t[0])>i.minMove&&(a.direction=i.map[Math.round(s(n,t[0])/(360/i.map.length))%i.map.length],a.distance=Math.abs(r(n,t[0])),e.trigger("sxy-swipe",a))}},{maxTime:300,minMove:10,map:["left","up","right","down"]})}(jQuery),function(t){var u="sxy-scale";t.fn.swinxytouch.g(u,function(n,i){function o(t,e){var i=t.pointers,o=a(i[0],i[1]);c.state=e,c.scale=o/s,c.distance=o-s,c.position=l(i[0],i[1]),n.trigger(u,c)}var r,s,a=t.fn.swinxytouch.d,l=t.fn.swinxytouch.m,c={};this["sxy-down"]=function(t){2==(t=t.pointers).length&&(r=!1,s=a({x:t[0].x,y:t[0].y},{x:t[1].x,y:t[1].y}))},this["sxy-up"]=function(t){r&&o(t,3)},this["sxy-move"]=function(t){var e=t.pointers;2==e.length&&(r?o(t,2):Math.abs(1-a(e[0],e[1])/s)>i.minScale&&(r=!0,o(t,1)))}},{minScale:.2})}(jQuery),function(t){var u="sxy-rotate";t.fn.swinxytouch.g(u,function(n,i){function o(t,e){var i,o;c.state=e,c.rotation+=Math.abs(i=(o=l(t.pointers[0],t.pointers[1]))-a)<180?i:0,a=o,n.trigger(u,c)}var r,s,a,l=t.fn.swinxytouch.a,c={};this["sxy-down"]=function(t){2==t.pointers.length&&(r=!1,s=a=l(t.pointers[0],t.pointers[1]))},this["sxy-up"]=function(t){r&&(r=!1,o(t,3))},this["sxy-move"]=function(t){var e=t.pointers;2==e.length&&(r?o(t,2):Math.abs(s-l(e[0],e[1]))>i.minRotate&&(r=!0,c.rotation=0,o(t,1)))}},{minRotate:3})}(jQuery),jQuery.fn.swinxytouch.g("sxy-longpress",function(i,o){var n,r={},e=function(){var t=i.pt,e=Math.abs;n=null,e(r.x-t[0].x)<o.maxMove&&e(r.y-t[0].y)<o.maxMove&&i.trigger("sxy-longpress",{position:r})};this["sxy-down"]=function(t){t=t.pointers,r={x:t[0].x,y:t[0].y},n&&clearTimeout(n),n=setTimeout(e,o.minDelay)},this["sxy-up"]=function(){clearTimeout(n)}},{minDelay:1e3,maxMove:5}),function(t){var r="sxy-drag";t.fn.swinxytouch.g(r,function(o){function e(t,e){var i=t.pointers;n.state=e,0<i.length&&(n.position.x=i[0].x,n.position.y=i[0].y),o.trigger(r,n)}var i,n={position:{}};this["sxy-up"]=function(t){i&&e(t,3),i=!1},this["sxy-move"]=function(t){1==t.pointers.length&&(i?e(t,2):(i=!0,e(t,1)))}})}(jQuery),jQuery.fn.swinxytouch.g("sxy-doubletap",function(e,i){var o,n,r=Math.abs;this["sxy-tap"]=function(t){t=t.position,null!=o&&(new Date).getTime()-o<i.maxDelay&&r(n.x-t.x)<i.maxMove&&r(n.y-t.y)<i.maxMove?(e.trigger("sxy-doubletap",{position:n}),o=null):(o=(new Date).getTime(),n={x:t.x,y:t.y})}},{maxDelay:300,maxMove:4}),function(a,t){function s(t,e){this.e=t.get(0),this.j=t.first(),null!=e&&a.extend(this,e)}function o(t,e){var i,r=this;r.element=a(t),r.options=a.extend({},l,e),r.driver=new a.fn.swinxyzoom.modes[r.options.mode](this),r.initialised=!1,r.enabled=!1,r.waiting=null,r.element.css({cursor:"default"}),r.dmp={cX:0,tX:0,cY:0,tY:0,timer:!1},r.last=!1,r.hasFocus=!1,r._animate=function(){var t=r.dmp,e=r.si.e.style,i=r.options.damping,o=t.tX-t.cX,n=t.tY-t.cY;e.left=(t.cX+=o/i)+"px",e.top=(t.cY+=n/i)+"px",0==~~o&&0==~~n&&(clearTimeout(t.timer),t.timer=!1)},r._moveSlider=function(t){t=t.pointers[0].y;var e=r.ct.sl.j.offset(),i=r.maxZoom/r.ct.sl.j.height();t=r.ct.sl.j.height()-(t-e.top),r.zoom(t*i,r.cursor.lastX,r.cursor.lastY)},r._focus=function(){var t=r.dp.j.offset();r.dp.ol=t.left,r.dp.ot=t.top,r.hasFocus=!0,r.options.controls&&(r.ct.j.show(),r.ct.ol.j.stop().animate({opacity:.5},{queue:!1}),r.ct.j.show()),!1!==r.last&&(r.last.w!=r.rt.j.width()||r.last.h!=r.rt.j.height())&&r.rebuild(function(){r.zoom(r.maxZoom,r.cursor.lastX,r.cursor.lastY),r.driver.load&&r.driver.load(r.cursor.lastX,r.cursor.lastY),r.zoom(r.maxZoom,r.cursor.lastX,r.cursor.lastY)}),r.last={w:r.rt.j.width(),h:r.rt.j.height()}},r._blur=function(t){r.hasFocus=!1,r.options.controls&&(r.ct.j.hide(),r.ct.ol.j.stop().animate({opacity:0},{queue:!1,complete:function(){}}))},r._mousewheel=function(t,e,i,o){t.preventDefault(),r.zoom(r.level+Math.round(o*(r.maxZoom/r.options.steps)),t.pageX,t.pageY)},r._stepIn=function(t){t.preventDefault(),r.zoom(r.level+Math.round(r.maxZoom/r.options.steps*1),r.cursor.lastX,r.cursor.lastY)},r._stepOut=function(t){t.preventDefault(),r.zoom(r.level+Math.round(r.maxZoom/r.options.steps*-1),r.cursor.lastX,r.cursor.lastY)},r._scale=[],r._scale[1]=function(t){i=r.level,a("#info").append("start["+i+"] ")},r._scale[2]=function(t){a("#info").append("s "),a("#info").append("s["+Math.abs(i*t.scale)+","+t.position.x+"] "),r.zoom(i*t.scale,t.position.x,t.position.y)},r._scale[3]=function(t){};var o=r.element.children().first().attr("src"),n=r.element.attr("href"),s=new Image;s.onload=function(){r.load(o,n)},s.src=o}var l={damping:8,steps:15,mode:"dock",zoom:15,controls:!0,size:"actual"};o.prototype.load=function(t,i,o){var n=this;t||(t=n.dp.tn.src),i||(i=n.si.src);var e=function(){o&&n._focus(),n.dp.tn.src=t,n.si.src=i,n.dp.tn.j.attr("src")!=n.dp.tn.src&&(n.dp.tn.j.one("load",function(){"actual"==n.options.size&&n.rt.j.css({width:n.dp.tn.j.width(),height:n.dp.tn.j.height()}),n.dp.tn.j.stop().animate({opacity:1},{queue:!1,complete:function(){n.rt.bg.j.attr("src",n.dp.tn.src),n.dp.tn.j.css({opacity:0})}})}),n.dp.tn.j.attr("src",n.dp.tn.src));var e=function(t,e){var i;n.si.j.one("load",function(){n.dp.j.off("sxy-move sxy-hover",i),n.waiting=null,n.rebuild(function(){n.zoom(n.maxZoom/n.options.steps*n.options.zoom,n.cursor.lastX,n.cursor.lastY),n.driver.load&&n.driver.load(n.cursor.lastX,n.cursor.lastY),n.zoom(n.maxZoom/n.options.steps*n.options.zoom,n.cursor.lastX,n.cursor.lastY),n.rt.j.toggleClass("sxy-zoom-loading")})}),n.cursor={lastX:t,lastY:e},n.dp.j.on("sxy-move sxy-hover",i=function(t){t=t.pointers[0],n.cursor={lastX:t.x,lastY:t.y}}),n.si.j.attr("src",n.si.src)};o?(n.waiting=null,n.rt.j.toggleClass("sxy-zoom-loading"),e(0,0)):n.waiting||n.rt.j.one("sxy-focus",n.waiting=function(t){n.rt.j.toggleClass("sxy-zoom-loading"),e(t.pointers[0].x,t.pointers[0].y)})};0==n.initialised?n.tearUp(e):e()},o.prototype.getNaturalSize=function(t,e){var i=new Image;i.onload=function(){e({w:i.width,h:i.height})},i.src=t},o.prototype.rebuild=function(e){var i=this,o=i.dp,t=i.vp,n=i.si,r=i.vf;switch(a.extend(o,{w:"actual"==i.options.size?o.tn.j.width():i.rt.j.width(),h:"actual"==i.options.size?o.tn.j.height():i.rt.j.height(),ol:o.j.offset().left,ot:o.j.offset().top,hyp:Math.round(Math.sqrt(Math.pow(o.tn.j.width(),2)+Math.pow(o.tn.j.height(),2)))}),i.options.size){case"actual":i.rt.j.css({width:o.w,height:o.h});break;case"src":i.rt.j.css({width:o.w,height:o.h})}a.extend(t,{w:o.w,h:o.h}),i.vp.j.css({width:o.w,height:o.h}),i.getNaturalSize(i.si.src,function(t){a.extend(n,{w:0,h:0,l:0,t:0,mL:0,mT:0,oHyp:Math.round(Math.sqrt(Math.pow(t.w,2)+Math.pow(t.h,2))),oH:t.h,oW:t.w}),a.extend(r,{w:0,h:0,l:0,t:0}),i.ct.sl.j.css({height:i.ct.sl.h=i.ct.j.height()-(i.ct.zin.j.outerHeight()+i.ct.zout.j.outerHeight())}),i.ct.sl.h-=16,clearTimeout(i.dmp.timer),i.dmp={cX:0,tX:0,cY:0,tY:0,timer:!1},i.scale=Math.atan(i.si.oH/i.si.oW),i.angle=0,i.maxZoom=n.oHyp-o.hyp,i.level=0,e()})},o.prototype.tearUp=function(n){var r=this;r.initialised=!0,r.el=new s(r.element),r.el.tn=new s(r.element.children()),r.getNaturalSize(r.el.tn.j.attr("src"),function(t){var e,i;switch(console.log("tear-up "+r.options.mode),r.options.size){case"actual":e=t.w+"px",i=t.h+"px";break;case"src":e=r.el.tn.j.attr("width")+"px",i="auto";break;default:e=r.options.size,i="auto"}var o={w:e,h:i,srcthumb:r.el.tn.j.attr("src"),mode:r.options.mode,auto:"auto"==i?'<div style="padding-top: '+100/t.w*t.h+'%;" />':""};r.el.j.wrap('<div class="sxy-zoom-container sxy-zoom-mode-{mode}" style="width: {w}; height: {h}; position: relative;" ></div>'.replace(/\{(\w+)\}/g,function(t,e){return o[e]||t})),r.element.hide(),r.rt=new s(r.el.j.parent()),r.rt.j.append('<img class="sxy-zoom-bg" src="{srcthumb}" />{auto}<div class="sxy-controls"><div class="overlay"></div><a class="in" href="#"></a><div class="sxy-slider"><div class="sxy-handle" style="top: 0px;"></div></div><a class="out" href="#"></a></div><div class="sxy-zoom-dragpad"><div class="sxy-overlay"></div><div class="sxy-zoom-viewport"><img galleryimg="no" /></div><img class="inner-thumb" src="{srcthumb}" /><div class="sxy-zoom-viewfinder"></div></div><div class="sxy-loading"><span></span></div>'.replace(/\{(\w+)\}/g,function(t,e){return o[e]||t})),r.rt.bg=new s(r.rt.j.find(".sxy-zoom-bg")),r.rt.j.on("dragstart",function(t){return!1}),r.ct=new s(r.rt.j.find(".sxy-controls").hide()),r.ct.ol=new s(r.ct.j.find(".overlay")),r.ct.zin=new s(r.ct.j.find(".in")),r.ct.zout=new s(r.ct.j.find(".out")),r.ct.sl=new s(r.ct.j.find(".sxy-slider").first(),{h:0}),r.ct.hnd=new s(r.ct.j.find(".sxy-handle")),r.dp=new s(r.rt.j.find(".sxy-zoom-dragpad").first(),{w:0,h:0,ol:0,ot:0,hyp:0}),r.dp.ovl=new s(r.dp.j.find(".sxy-overlay")),r.dp.tn=new s(r.dp.j.find(".inner-thumb").css({opacity:0}),{src:""}),r.vp=new s(r.dp.j.find(".sxy-zoom-viewport").css({opacity:0}),{w:0,h:0}),r.si=new s(r.vp.j.find("img"),{w:0,h:0,l:0,t:0,mL:0,mT:0,oHyp:0,oH:0,oW:0,src:""}),r.vf=new s(r.dp.j.find(".sxy-zoom-viewfinder").css({display:"none"}),{w:0,h:0,l:0,t:0,osl:0,ost:0}),r.rt.j.on("sxy-focus",r._focus),r.rt.j.on("sxy-blur",r._blur),a.event.special.mousewheel&&r.rt.j.on("mousewheel",r._mousewheel),r.dp.j.on("sxy-scale",function(t){r._scale[t.state](t)}),r.ct.zin.j.on("click",r._stepIn),r.ct.zout.j.on("click",r._stepOut),r.ct.sl.j.on("sxy-down sxy-move",r._moveSlider),n()})},o.prototype.move=function(t,e,i){var o=t/this.scale*-1,n=e/this.scale*-1;this.cursor.lastX=o+this.vf.w/2+this.dp.ol,this.cursor.lastY=n+this.vf.h/2+this.dp.ot,o<0&&(o=t=0),n<0&&(n=e=0),o+this.vf.w>this.dp.w&&(o=this.dp.w-this.vf.w,t=this.si.mL),n+this.vf.h>this.dp.h&&(n=this.dp.h-this.vf.h,e=this.si.mT),this.vf.l=~~o,this.vf.t=~~n,this.dmp.tX=t,this.dmp.tY=e,i&&0!=this.options.damping?this.dmp.timer||(this.dmp.timer=setInterval(this._animate,16)):(clearTimeout(this.dmp.timer),this.dmp.timer=!1,(i=this.si.e.style).left=(this.dmp.tX=this.dmp.cX=t)+"px",i.top=(this.dmp.tY=this.dmp.cY=e)+"px")},o.prototype.center=function(t,e,i){this.move(-1*(t-this.vf.w/2)*this.scale,-1*(e-this.vf.h/2)*this.scale,i)},o.prototype.zoom=function(t,e,i){this.level=t,this.level<0&&(this.level=0),this.level>this.maxZoom&&(this.level=this.maxZoom),t=(this.si.oHyp-this.level)/this.si.oHyp*100,this.ct.hnd.j.css({top:this.ct.sl.h-this.ct.sl.h/100*100*(this.level/this.maxZoom)}),this.vf.w=this.vp.w/100*t,this.vf.h=this.vp.h/100*t,this.vf.osl=parseInt(this.vf.j.css("border-left-width"),10),this.vf.ost=parseInt(this.vf.j.css("border-top-width"),10),this.scale=this.si.oW/this.vp.w/(this.si.oW/100*t/this.vp.w),this.si.w=this.si.oW/(this.si.oW/100*t/this.dp.w),this.si.h=this.si.oH/(this.si.oH/100*t/this.dp.h),this.vf.j.css({width:this.vf.w,height:this.vf.h}),this.si.j.css({width:this.si.w,height:this.si.h}),this.si.mL=0-(this.si.w-this.vp.w),this.si.mT=0-(this.si.h-this.vp.h),this.driver.zoom&&this.driver.zoom(e,i)},a.fn.swinxyzoom=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var t;if(t=a.data(this,"swinxyzoom")){if(t[e])return t[e].apply(t,i);a.error("Method "+e+" does not exist on jQuery.swinxyzoom")}else a.data(this,"swinxyzoom",new o(this,e))})},a.fn.swinxyzoom.modes={}}(jQuery),function(g,t){var y={position:"right"},w=!1,x={backgroundSize:{supported:!1,variations:["backgroundSize","WebkitBackgroundSize","MozBackgroundSize","OBackgroundSize","msBackgroundSize"]}};g.fn.swinxyzoom.modes.dock=function(a){function l(){d&&(d=!1,a.vf.j.hide(),a.dp.ovl.j.stop().animate({opacity:0},{queue:!1}),a.vp.j.stop().animate({opacity:0,left:a.dp.w/2,top:a.dp.h/2,width:0,height:0},{queue:!1}))}function c(t,e){a.waiting||(d=!0,a.si.j.show(),a.vp.j.show(),a.vf.j.show(),a.dp.ovl.j.stop().animate({opacity:.5},{queue:!1}),a.vp.j.stop().animate({opacity:1,left:h,top:p,width:a.vp.w,height:a.vp.h},{queue:!1}),s.move(t,e,!0))}function i(){if(a.rt.j.on("sxy-focus",function(t){c((t=t.pointers[0]).x,t.y)}),a.rt.j.on("sxy-blur",function(t){l()}),a.dp.j.on("sxy-hover sxy-move sxy-down",e),0==f){var t=g('<img src="" style="display: block; position: absolute;" />');a.vf.j.append(t),a.vf.img={j:t,e:t.get(0)}}s.initialised=!0}function u(){if(s.initialised){var t=a.vf,e=a.vf.e.style;v=(t.l!=n||t.t!=r)&&(e.left=(n=t.l)+"px",e.top=(r=t.t)+"px",0==f?((e=a.vf.img.e.style).left="-"+(t.l+t.osl)+"px",e.top="-"+(t.t+t.ost)+"px"):e.backgroundPosition="-"+(t.l+t.osl)+"px -"+(t.t+t.ost)+"px",setTimeout(u,8))}}function o(t,e,i){var o=(n=a.dp.j.offset()).left,n=n.top,r=o+a.dp.j.width(),s=n+a.dp.j.height();e<n||r<t||s<e||t<o?l():(d||c(t,e),a.center(t-a.dp.ol,e-a.dp.ot,i),v||u())}this.initialised=!1,w||(w=!0,x._all=function(t){var e,i=0,o=0;for(e in t){++i;for(var n=t[e],r=n.variations,s=0,a=r.length;s<a;++s)if(void 0!==document.createElement("div").style[r[s]]){++o,n.supported=r[s];break}}return i==o}(x));var n,r,d=!1,s=this,h=0,p=0,f=x.backgroundSize.supported,e=function(t){1==t.pointers.length&&o((t=t.pointers[0]).x,t.y,!0)},m=g.extend({},y,null!=a.options.dock?a.options.dock:{}),v=!1;s.tearUp=i,s.load=function(t,e){switch(m.position){case"top":h=0,p=-1*(a.dp.h+10);break;case"right":h=a.dp.w+10,p=0;break;case"bottom":h=0,p=a.dp.h+10;break;case"left":h=-1*(a.dp.w+10),p=0}a.vp.j.css({width:0,height:0,left:a.dp.w/2,top:a.dp.h/2}),a.dp.ovl.j.css({opacity:0}),a.vf.j.css({position:"relative",overflow:"hidden"}),n=r=0,s.initialised||i(),0==f?(a.vf.img.j.attr("src",a.dp.tn.src),a.vf.img.j.css({width:a.dp.w,height:a.dp.h})):(a.vf.j.css("background-image","url("+a.dp.tn.src+")"),a.vf.j.css(f,a.dp.w+"px "+a.dp.h+"px")),a.hasFocus&&c(t,e)},s.focus=c,s.blur=l,s.move=o,s.zoom=function(t,e){o(t,e,!1)}}}(jQuery),jQuery.fn.swinxyzoom.modes.window=function(o){function i(t,e){o.waiting||(o.si.j.show(),o.vp.j.show(),o.vf.j.show(),o.vp.j.stop().animate({opacity:1},{queue:!1}),s(t,e,!0))}function n(){o.vf.j.hide(),o.vp.j.stop().animate({opacity:0},{queue:!1})}function r(){var t=o.vf,e=o.vf.e.style;u=(t.l!=a||t.t!=l)&&(e.left=(a=t.l)+"px",e.top=(l=t.t)+"px",setTimeout(r,8))}function s(t,e,i){o.center(t-o.dp.ol,e-o.dp.ot,i),u||r()}var a,l,c=this,u=this.initialised=!1;c.tearUp=function(t,e){o.rt.j.on("sxy-focus",function(t){i(t.pointers[0].x,t.pointers[0].y)}),o.rt.j.on("sxy-blur",function(){n()}),o.dp.j.on("sxy-hover sxy-move sxy-down",function(t){1==t.pointers.length&&s((t=t.pointers[0]).x,t.y,!0)})},c.load=function(t,e){o.vp.j.css({opacity:0,width:o.dp.w,height:o.dp.h,left:0,top:0}),a=l=0,c.initialised||c.tearUp(),o.hasFocus&&c.focus(t,e)},c.focus=i,c.blur=n,c.move=s,c.zoom=function(t,e){s(t,e,!1)}},function(t,e){var f={width:200,height:200};t.fn.swinxyzoom.modes.lens=function(o){function i(t,e){o.waiting||(u=!0,o.dp.j.on("sxy-hover sxy-move sxy-down",d),o.vp.j.show(),o.vp.j.stop().animate({opacity:1,width:o.vp.w,height:o.vp.h},{queue:!1}),c.move(t,e,!0))}function n(){u&&(u=!1,o.dp.j.off("sxy-hover sxy-move sxy-down",d),o.vp.j.stop().animate({opacity:0},{queue:!1,complete:function(){o.vp.j.hide()}}))}function r(){var t=o.vf,e=o.vp,i=o.vp.e.style;p=(t.l!=a||t.t!=l)&&(i.left=o.cursor.lastX-o.dp.ol-e.w/2+"px",i.top=o.cursor.lastY-o.dp.ot-e.h/2+"px",setTimeout(r,8))}function s(t,e,i){o.center(t-o.dp.ol,e-o.dp.ot,i),p||r()}this.initialised=!1;var a,l,c=this,u=!0,d=function(t){1==t.pointers.length&&s((t=t.pointers[0]).x,t.y,!0)},h=t.extend({},f,null!=o.options.lens?o.options.lens:{}),p=!1;c.tearUp=function(t,e){o.dp.j.swinxytouch("bound"),o.dp.j.on("sxy-focus",function(t){i(t.pointers[0].x,t.pointers[0].y)}),o.dp.j.on("sxy-blur",function(){n()})},c.load=function(t,e){o.vp.j.css({opacity:0,width:h.width,height:h.height,left:0,top:0}),o.vp.w=h.width,o.vp.h=h.height,o.vp.j.show(),o.si.j.show(),o.vf.j.hide(),a=l=0,c.initialised||c.tearUp(),o.hasFocus&&i(t,e)},c.focus=i,c.blur=n,c.move=s,c.zoom=function(t,e){s(t,e,!1)}}}(jQuery),jQuery.fn.swinxyzoom.modes.slippy=function(i){var o,n,r,s;function a(){i.dp.j.on("sxy-focus",function(t){l(t.pointers[0].x,t.pointers[0].y)}),i.dp.j.on("sxy-blur",function(t){e()}),i.dp.j.on("sxy-down",function(t){i.dp.j.toggleClass("down"),t=t.pointers[0],o=i.dmp.tX,n=i.dmp.tY,r=t.x-i.dp.ol,s=t.y-i.dp.ot}),i.dp.j.on("sxy-up",function(t){i.dp.j.toggleClass("down")}),i.dp.j.on("sxy-move",function(t){t=t.pointers[0],i.move(o+(t.x-i.dp.ol-r),n+(t.y-i.dp.ot-s),!0),p||c()})}function l(t,e){i.waiting||(i.si.j.show(),i.vp.j.show(),i.vf.j.show(),i.vp.j.stop().animate({opacity:1},{queue:!1}))}function e(t,e){i.vf.j.hide(),i.vp.j.animate({opacity:0},{queue:!1})}function c(){var t=i.vf,e=i.vf.e.style;p=(t.l!=d||t.t!=h)&&(e.left=(d=t.l)+"px",e.top=(h=t.t)+"px",setTimeout(c,8))}this.initialised=!1;var u=this;s=r=n=o=void 0;var d,h,p=!1;u.tearUp=a,u.load=function(t,e){i.vp.j.css({opacity:0,width:i.dp.w,height:i.dp.h,left:0,top:0}),n=o=0,r=t,s=e,i.center(i.dp.w/2,i.dp.h/2,!1),d=h=0,u.initialised||a(),i.hasFocus&&l()},u.focus=l,u.blur=e,u.zoom=function(t,e){i.center(i.cursor.lastX-i.dp.ol,i.cursor.lastY-i.dp.ot,!1),i.vf.j.css({left:i.vf.l,top:i.vf.t})}},function(L,P){function O(t,e){this.el=t.get(0),this.jq=t.first(),e!=P&&L.extend(this,e)}function o(S,T){function z(){k(E.current-1)}function C(){k(E.current+1)}function k(t){t=t<1||t>E.total?E.current:t,I.page!=P&&I.page(t,E.current),E.current=t,T.change&&T.change(E),j()}var I=null,_=null,E=null,M=null,j=null;this.page=k,this.next=C,this.previous=z,function(){if(T=L.extend({},W,T),_=new O(L(S)),E=new O(_.jq.find("ul"),{current:null,total:null}),I=new L.fn[N].providers[T.provider](this,_,E,T[T.provider]?T[T.provider]:{}),!H){H=!0;var t,e=D,i=D,o=0,n=0;for(t in i){++o;for(var r=i[t],s=r.variations,a=0,l=s.length;a<l;++a)if(document.createElement("div").style[s[a]]!==P){++n,r.supported=s[a];break}}e._all=o==n}if(D._all){var c=D.transform.supported,u=D.transition.supported;j=function(t){var e=E.el.style;t==P?(e[u]="200ms",e[c]="translate("+-1*(E.current-1)*(M-T.bleed)+"px,0)"):(e[u]="0ms",e[c]="translate("+t+"px,0)")}}else{var d=E.el.style,h=null,p=0,f=0,m=function(){var t=p-f;d.left=(f+=t/8)+"px",0==~~t&&(d.left=p+"px",clearTimeout(h),h=!1)};j=function(t){p=t?f=t:-1*(E.current-1)*(M-T.bleed),h||(h=setInterval(m,16))}}null!=T.width&&_.jq.css({width:T.width}),null!=T.height&&_.jq.css({height:T.height}),M=_.jq.width(),_.jq.css({overflow:"hidden",width:M}),E.jq.css({width:E.total*M,"list-style":"none",margin:0,padding:0,position:"relative"}),E.jq.children("li").css({width:M-T.bleed,display:"block",float:"left"}),j(-1*(E.current-1)*(M-T.bleed)),T.change&&T.change(E),T.smartclick&&E.jq.swinxytouch("smartclick"),T.next&&L(T.next).click(function(t){t.preventDefault(),C()}),T.previous&&L(T.previous).click(function(t){t.preventDefault(),z()}),T.swipe&&E.jq.on("sxy-swipe",function(t){if(t.distance<M/2)switch(t.direction){case"right":z();break;case"left":C()}});var v=[],g=0,y=0,w=0,x=0,b=0;v[1]=function(t){g=-1*(E.current-1)*(M-T.bleed),y=t.position.x,x=t.position.y,b=0},v[2]=function(t){if(0==b&&(b=Math.abs(y-t.position.x)>=Math.abs(x-t.position.y)?1:2),1==b){var e=1;w=t.position.x-y,(1==E.current&&0<w||E.current==E.total&&w<0)&&(e=Math.abs(w)/M+1.5),j(g+w/e)}else 0!=(t=x-(x=t.position.y))&&(x+=t,window.scrollBy(0,t))},v[3]=function(){Math.abs(w)>M/2?k(w<0?E.current+1:E.current-1):k(E.current)},E.jq.on("sxy-drag",function(t){v[t.state](t)})}()}var N="swinxyswipe",W={bleed:0,change:null,next:null,previous:null,provider:"html",smartclick:!0,swipe:!0,width:null},H=!1,D={transform:{supported:!1,variations:["transform","WebkitTransform","MozTransform","OTransform","msTransform"]},transition:{supported:!1,variations:["transition","WebkitTransition","MozTransition","OTransition","msTransition"]}};L.fn[N]=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var t;if(t=L.data(this,N)){if(t[e])return t[e].apply(t,i);L.error("Method "+e+" does not exist on jQuery.swinxyswipe")}else L.data(this,N,new o(this,e))})},L.fn[N].providers={}}(jQuery),jQuery.fn.swinxyswipe.providers.html=function(t,e,i){i.current=1,i.total=i.jq.children().length},function(l){function c(t,e){for(var i="";0<e;)1&e&&(i+=t),e>>=1,t+=t;return i}var u={total:null,current:null,request:null,loaded:null,preload:1,autofree:8};l.fn.swinxyswipe.providers.ajax=function(t,e,o,n){function i(t){var e;r(t);for(var i=t-1;i>=(1<(e=t-n.preload)?e:1);--i)r(i);for(i=t+1;i<=((e=t+n.preload)<o.total?e:o.total);++i)r(i);if(a.length>n.autofree)for(;a.length>n.autofree;)(t=a.shift())>=o.current-n.preload&&t<=o.current+n.preload?a.push(t):(s[t]=!1,o.jq.children()[t-1].innerHTML="",l(o.jq.children()[t-1]).addClass("sxy-page-blank"))}function r(e){if(!s[e]){var i=l(o.jq.children()[e-1]);i.removeClass("sxy-page-blank").addClass("sxy-page-loading"),s[e]=!0,a.push(e),l.get(n.request(e),null,function(t){n.loaded&&(t=n.loaded(e,t)),o.jq.children()[e-1].innerHTML=t,i.removeClass("sxy-page-loading")},"html")}}t=e.jq.width();var s=[],a=[];this.page=i,n=l.extend({},u,n),o.current=n.current,o.total=n.total,s[o.current]=!0,1<o.current&&o.jq.prepend(c('<li class="sxy-page-blank" style="width: '+t+'px"></li>',o.current-1)),o.current<o.total&&o.jq.append(c('<li class="sxy-page-blank" style="width: '+t+'px"></li>',o.total-o.current)),i(o.current)}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var k=!1,I=!1,_=0,E=2e3,M=0,j=t,L=document,P=window,O=j(P),N=[];var W=P.requestAnimationFrame||P.webkitRequestAnimationFrame||P.mozRequestAnimationFrame||!1,H=P.cancelAnimationFrame||P.webkitCancelAnimationFrame||P.mozCancelAnimationFrame||!1;if(W)P.cancelAnimationFrame||(H=function(t){});else{var r=0;W=function(t,e){var i=(new Date).getTime(),o=Math.max(0,16-(i-r)),n=P.setTimeout(function(){t(i+o)},o);return r=i+o,n},H=function(t){P.clearTimeout(t)}}var e,i,o,D=P.MutationObserver||P.WebKitMutationObserver||!1,A=Date.now||function(){return(new Date).getTime()},q={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"6px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:40,mousescrollstep:27,touchbehavior:!1,emulatetouch:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:(i=L.currentScript||!!(e=L.getElementsByTagName("script")).length&&e[e.length-1],o=i?i.src.split("?")[0]:"",0<o.split("/").length?o.split("/").slice(0,-1).join("/")+"/":""),preventmultitouchscrolling:!0,disablemutationobserver:!1,enableobserver:!0,scrollbarid:!1,scrollCLass:!1},B=!1,a=function(t,e){var w=this;this.version="3.7.6",this.name="nicescroll",this.me=e;var x=j("body"),b=this.opt={doc:x,win:!1};if(j.extend(b,q),b.snapbackspeed=80,t)for(var i in b)void 0!==t[i]&&(b[i]=t[i]);if(b.disablemutationobserver&&(D=!1),this.doc=b.doc,this.iddoc=this.doc&&this.doc[0]&&this.doc[0].id||"",this.ispage=/^BODY|HTML/.test(b.win?b.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=!1!==b.win,this.win=b.win||(this.ispage?O:this.doc),this.docscroll=this.ispage&&!this.haswrapper?O:this.win,this.body=x,this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName,this.istextarea="TEXTAREA"==this.win[0].nodeName,this.forcescreen=!1,this.canshowonmouseevent="scroll"!=b.autohidemode,this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,"auto"==b.rtlmode){var o=this.win[0]==P?this.body:this.win,n=o.css("writing-mode")||o.css("-webkit-writing-mode")||o.css("-ms-writing-mode")||o.css("-moz-writing-mode");"horizontal-tb"==n||"lr-tb"==n||""===n?(this.isrtlmode="rtl"==o.css("direction"),this.isvertical=!1):(this.isrtlmode="vertical-rl"==n||"tb"==n||"tb-rl"==n||"rl-tb"==n,this.isvertical="vertical-rl"==n||"tb"==n||"tb-rl"==n)}else this.isrtlmode=!0===b.rtlmode,this.isvertical=!1;if(this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1,(this.observerbody=!1)!==b.scrollbarid)this.id=b.scrollbarid;else for(;this.id="ascrail"+E++,L.getElementById(this.id););this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.railslocked=!1,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.wheelprevented=!1,this.overflowx=b.overflowx,this.overflowy=b.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=function(){if(B)return B;var t=L.createElement("DIV"),r=t.style,e=navigator.userAgent,i=navigator.platform,s={};return s.haspointerlock="pointerLockElement"in L||"webkitPointerLockElement"in L||"mozPointerLockElement"in L,s.isopera="opera"in P,s.isopera12=s.isopera&&"getUserMedia"in navigator,s.isoperamini="[object OperaMini]"===Object.prototype.toString.call(P.operamini),s.isie="all"in L&&"attachEvent"in t&&!s.isopera,s.isieold=s.isie&&!("msInterpolationMode"in r),s.isie7=s.isie&&!s.isieold&&(!("documentMode"in L)||7===L.documentMode),s.isie8=s.isie&&"documentMode"in L&&8===L.documentMode,s.isie9=s.isie&&"performance"in P&&9===L.documentMode,s.isie10=s.isie&&"performance"in P&&10===L.documentMode,s.isie11="msRequestFullscreen"in t&&11<=L.documentMode,s.ismsedge="msCredentials"in P,s.ismozilla="MozAppearance"in r,s.iswebkit=!s.ismsedge&&"WebkitAppearance"in r,s.ischrome=s.iswebkit&&"chrome"in P,s.ischrome38=s.ischrome&&"touchAction"in r,s.ischrome22=!s.ischrome38&&s.ischrome&&s.haspointerlock,s.ischrome26=!s.ischrome38&&s.ischrome&&"transition"in r,s.cantouch="ontouchstart"in L.documentElement||"ontouchstart"in P,s.hasw3ctouch=!!P.PointerEvent&&(0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints),s.hasmstouch=!s.hasw3ctouch&&(P.MSPointerEvent||!1),s.ismac=/^mac$/i.test(i),s.isios=s.cantouch&&/iphone|ipad|ipod/i.test(i),s.isios4=s.isios&&!("seal"in Object),s.isios7=s.isios&&"webkitHidden"in L,s.isios8=s.isios&&"hidden"in L,s.isios10=s.isios&&P.Proxy,s.isandroid=/android/i.test(e),s.haseventlistener="addEventListener"in t,s.trstyle=!1,s.hastransform=!1,s.hastranslate3d=!1,s.transitionstyle=!1,s.hastransition=!1,s.transitionend=!1,s.trstyle="transform",s.hastransform="transform"in r||function(){for(var t=["msTransform","webkitTransform","MozTransform","OTransform"],e=0,i=t.length;e<i;e++)if(void 0!==r[t[e]]){s.trstyle=t[e];break}s.hastransform=!!s.trstyle}(),s.hastransform&&(r[s.trstyle]="translate3d(1px,2px,3px)",s.hastranslate3d=/translate3d/.test(r[s.trstyle])),s.transitionstyle="transition",s.prefixstyle="",s.transitionend="transitionend",s.hastransition="transition"in r||function(){s.transitionend=!1;for(var t=["webkitTransition","msTransition","MozTransition","OTransition","OTransition","KhtmlTransition"],e=["-webkit-","-ms-","-moz-","-o-","-o","-khtml-"],i=["webkitTransitionEnd","msTransitionEnd","transitionend","otransitionend","oTransitionEnd","KhtmlTransitionEnd"],o=0,n=t.length;o<n;o++)if(t[o]in r){s.transitionstyle=t[o],s.prefixstyle=e[o],s.transitionend=i[o];break}s.ischrome26&&(s.prefixstyle=e[1]),s.hastransition=s.transitionstyle}(),s.cursorgrabvalue=function(){var t=["grab","-webkit-grab","-moz-grab"];(s.ischrome&&!s.ischrome38||s.isie)&&(t=[]);for(var e=0,i=t.length;e<i;e++){var o=t[e];if(r.cursor=o,r.cursor==o)return o}return"url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"}(),s.hasmousecapture="setCapture"in t,s.hasMutationObserver=!1!==D,t=null,B=s}();var S=j.extend({},this.detected);this.canhwscroll=S.hastransform&&b.hwacceleration,this.ishwscroll=this.canhwscroll&&w.haswrapper,this.isrtlmode?this.isvertical?this.hasreversehr=!(S.iswebkit||S.isie||S.isie11):this.hasreversehr=!(S.iswebkit||S.isie&&!S.isie10&&!S.isie11):this.hasreversehr=!1,this.istouchcapable=!1,(S.cantouch||!S.hasw3ctouch&&!S.hasmstouch)&&(!S.cantouch||S.isios||S.isandroid||!S.iswebkit&&!S.ismozilla)||(this.istouchcapable=!0),b.enablemouselockapi||(S.hasmousecapture=!1,S.haspointerlock=!1),this.debounced=function(t,e,i){w&&(w.delaylist[t]||!1||(w.delaylist[t]={h:W(function(){w.delaylist[t].fn.call(w),w.delaylist[t]=!1},i)},e.call(w)),w.delaylist[t].fn=e)},this.synched=function(t,e){w.synclist[t]?w.synclist[t]=e:(w.synclist[t]=e,W(function(){w&&(w.synclist[t]&&w.synclist[t].call(w),w.synclist[t]=null)}))},this.unsynched=function(t){w.synclist[t]&&(w.synclist[t]=!1)},this.css=function(t,e){for(var i in e)w.saved.css.push([t,i,t.css(i)]),t.css(i,e[i])},this.scrollTop=function(t){return void 0===t?w.getScrollTop():w.setScrollTop(t)},this.scrollLeft=function(t){return void 0===t?w.getScrollLeft():w.setScrollLeft(t)};var u=function(t,e,i,o,n,r,s){this.st=t,this.ed=e,this.spd=i,this.p1=o||0,this.p2=n||1,this.p3=r||0,this.p4=s||1,this.ts=A(),this.df=e-t};function r(){var t=w.doc.css(S.trstyle);return!(!t||"matrix"!=t.substr(0,6))&&t.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/)}if(u.prototype={B2:function(t){return 3*(1-t)*(1-t)*t},B3:function(t){return 3*(1-t)*t*t},B4:function(t){return t*t*t},getPos:function(){return(A()-this.ts)/this.spd},getNow:function(){var t=(A()-this.ts)/this.spd,e=this.B2(t)+this.B3(t)+this.B4(t);return 1<=t?this.ed:this.st+this.df*e|0},update:function(t,e){return this.st=this.getNow(),this.ed=t,this.spd=e,this.ts=A(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},S.hastranslate3d&&S.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(t){if(!t){var e=r();if(e)return 16==e.length?-e[13]:-e[5];if(w.timerscroll&&w.timerscroll.bz)return w.timerscroll.bz.getNow()}return w.doc.translate.y},this.getScrollLeft=function(t){if(!t){var e=r();if(e)return 16==e.length?-e[12]:-e[4];if(w.timerscroll&&w.timerscroll.bh)return w.timerscroll.bh.getNow()}return w.doc.translate.x},this.notifyScrollEvent=function(t){var e=L.createEvent("UIEvents");e.initUIEvent("scroll",!1,!1,P,1),e.niceevent=!0,t.dispatchEvent(e)};var s=this.isrtlmode?1:-1;S.hastranslate3d&&b.enabletranslate3d?(this.setScrollTop=function(t,e){w.doc.translate.y=t,w.doc.translate.ty=-1*t+"px",w.doc.css(S.trstyle,"translate3d("+w.doc.translate.tx+","+w.doc.translate.ty+",0)"),e||w.notifyScrollEvent(w.win[0])},this.setScrollLeft=function(t,e){w.doc.translate.x=t,w.doc.translate.tx=t*s+"px",w.doc.css(S.trstyle,"translate3d("+w.doc.translate.tx+","+w.doc.translate.ty+",0)"),e||w.notifyScrollEvent(w.win[0])}):(this.setScrollTop=function(t,e){w.doc.translate.y=t,w.doc.translate.ty=-1*t+"px",w.doc.css(S.trstyle,"translate("+w.doc.translate.tx+","+w.doc.translate.ty+")"),e||w.notifyScrollEvent(w.win[0])},this.setScrollLeft=function(t,e){w.doc.translate.x=t,w.doc.translate.tx=t*s+"px",w.doc.css(S.trstyle,"translate("+w.doc.translate.tx+","+w.doc.translate.ty+")"),e||w.notifyScrollEvent(w.win[0])})}else this.getScrollTop=function(){return w.docscroll.scrollTop()},this.setScrollTop=function(t){w.docscroll.scrollTop(t)},this.getScrollLeft=function(){return w.hasreversehr?w.detected.ismozilla?w.page.maxw-Math.abs(w.docscroll.scrollLeft()):w.page.maxw-w.docscroll.scrollLeft():w.docscroll.scrollLeft()},this.setScrollLeft=function(t){return setTimeout(function(){if(w)return w.hasreversehr&&(t=w.detected.ismozilla?-(w.page.maxw-t):w.page.maxw-t),w.docscroll.scrollLeft(t)},1)};this.getTarget=function(t){return!!t&&(t.target?t.target:!!t.srcElement&&t.srcElement)},this.hasParent=function(t,e){if(!t)return!1;for(var i=t.target||t.srcElement||t||!1;i&&i.id!=e;)i=i.parentNode||!1;return!1!==i};var a={thin:1,medium:3,thick:5};function l(t,e,i){var o=t.css(e),n=parseFloat(o);if(isNaN(n)){var r=3==(n=a[o]||0)?i?w.win.outerHeight()-w.win.innerHeight():w.win.outerWidth()-w.win.innerWidth():1;return w.isie8&&n&&(n+=1),r?n:0}return n}this.getDocumentScrollOffset=function(){return{top:P.pageYOffset||L.documentElement.scrollTop,left:P.pageXOffset||L.documentElement.scrollLeft}},this.getOffset=function(){if(w.isfixed){var t=w.win.offset(),e=w.getDocumentScrollOffset();return t.top-=e.top,t.left-=e.left,t}var i=w.win.offset();if(!w.viewport)return i;var o=w.viewport.offset();return{top:i.top-o.top,left:i.left-o.left}},this.updateScrollBar=function(t){var e,i;if(w.ishwscroll)w.rail.css({height:w.win.innerHeight()-(b.railpadding.top+b.railpadding.bottom)}),w.railh&&w.railh.css({width:w.win.innerWidth()-(b.railpadding.left+b.railpadding.right)});else{var o=w.getOffset();if((e={top:o.top,left:o.left-(b.railpadding.left+b.railpadding.right)}).top+=l(w.win,"border-top-width",!0),e.left+=w.rail.align?w.win.outerWidth()-l(w.win,"border-right-width")-w.rail.width:l(w.win,"border-left-width"),(i=b.railoffset)&&(i.top&&(e.top+=i.top),i.left&&(e.left+=i.left)),w.railslocked||w.rail.css({top:e.top,left:e.left,height:(t?t.h:w.win.innerHeight())-(b.railpadding.top+b.railpadding.bottom)}),w.zoom&&w.zoom.css({top:e.top+1,left:1==w.rail.align?e.left-20:e.left+w.rail.width+4}),w.railh&&!w.railslocked){e={top:o.top,left:o.left},(i=b.railhoffset)&&(i.top&&(e.top+=i.top),i.left&&(e.left+=i.left));var n=w.railh.align?e.top+l(w.win,"border-top-width",!0)+w.win.innerHeight()-w.railh.height:e.top+l(w.win,"border-top-width",!0),r=e.left+l(w.win,"border-left-width");w.railh.css({top:n-(b.railpadding.top+b.railpadding.bottom),left:r,width:w.railh.width})}}},this.doRailClick=function(t,e,i){var o,n,r,s;w.railslocked||(w.cancelEvent(t),"pageY"in t||(t.pageX=t.clientX+L.documentElement.scrollLeft,t.pageY=t.clientY+L.documentElement.scrollTop),e?(o=i?w.doScrollLeft:w.doScrollTop,r=i?(t.pageX-w.railh.offset().left-w.cursorwidth/2)*w.scrollratio.x:(t.pageY-w.rail.offset().top-w.cursorheight/2)*w.scrollratio.y,w.unsynched("relativexy"),o(0|r)):(o=i?w.doScrollLeftBy:w.doScrollBy,r=i?w.scroll.x:w.scroll.y,s=i?t.pageX-w.railh.offset().left:t.pageY-w.rail.offset().top,n=i?w.view.w:w.view.h,o(s<=r?n:-n)))},w.newscrolly=w.newscrollx=0,w.hasanimationframe="requestAnimationFrame"in P,w.hascancelanimationframe="cancelAnimationFrame"in P,w.hasborderbox=!1,this.init=function(){if(w.saved.css=[],S.isoperamini)return!0;if(S.isandroid&&!("hidden"in L))return!0;b.emulatetouch=b.emulatetouch||b.touchbehavior,w.hasborderbox=P.getComputedStyle&&"border-box"===P.getComputedStyle(L.body)["box-sizing"];var i={"overflow-y":"hidden"};if((S.isie11||S.isie10)&&(i["-ms-overflow-style"]="none"),w.ishwscroll&&(this.doc.css(S.transitionstyle,S.prefixstyle+"transform 0ms ease-out"),S.transitionend&&w.bind(w.doc,S.transitionend,w.onScrollTransitionEnd,!1)),w.zindex="auto",w.ispage||"auto"!=b.zindex?w.zindex=b.zindex:w.zindex=function(){var t=w.win;if("zIndex"in t)return t.zIndex();for(;0<t.length;){if(9==t[0].nodeType)return!1;var e=t.css("zIndex");if(!isNaN(e)&&0!==e)return parseInt(e);t=t.parent()}return!1}()||"auto",!w.ispage&&"auto"!=w.zindex&&w.zindex>M&&(M=w.zindex),w.isie&&0===w.zindex&&"auto"==b.zindex&&(w.zindex="auto"),!w.ispage||!S.isieold){var t=w.docscroll;w.ispage&&(t=w.haswrapper?w.win:w.doc),w.css(t,i),w.ispage&&(S.isie11||S.isie)&&w.css(j("html"),i),!S.isios||w.ispage||w.haswrapper||w.css(x,{"-webkit-overflow-scrolling":"touch"});var e=j(L.createElement("div"));e.css({position:"relative",top:0,float:"right",width:b.cursorwidth,height:0,"background-color":b.cursorcolor,border:b.cursorborder,"background-clip":"padding-box","-webkit-border-radius":b.cursorborderradius,"-moz-border-radius":b.cursorborderradius,"border-radius":b.cursorborderradius}),e.addClass("nicescroll-cursors"),w.cursor=e;var o=j(L.createElement("div"));o.attr("id",w.id),o.addClass("nicescroll-rails nicescroll-rails-vr"),b.scrollCLass&&o.addClass(b.scrollCLass);var n,r,s=["left","right","top","bottom"];for(var a in s)r=s[a],(n=b.railpadding[r]||0)&&o.css("padding-"+r,n+"px");o.append(e),o.width=Math.max(parseFloat(b.cursorwidth),e.outerWidth()),o.css({width:o.width+"px",zIndex:w.zindex,background:b.background,cursor:"default"}),o.visibility=!0,o.scrollable=!0,o.align="left"==b.railalign?0:1,w.rail=o;var l,c=w.rail.drag=!1;if(!b.boxzoom||w.ispage||S.isieold||(c=L.createElement("div"),w.bind(c,"click",w.doZoom),w.bind(c,"mouseenter",function(){w.zoom.css("opacity",b.cursoropacitymax)}),w.bind(c,"mouseleave",function(){w.zoom.css("opacity",b.cursoropacitymin)}),w.zoom=j(c),w.zoom.css({cursor:"pointer",zIndex:w.zindex,backgroundImage:"url("+b.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0 0"}),b.dblclickzoom&&w.bind(w.win,"dblclick",w.doZoom),S.cantouch&&b.gesturezoom&&(w.ongesturezoom=function(t){return 1.5<t.scale&&w.doZoomIn(t),t.scale<.8&&w.doZoomOut(t),w.cancelEvent(t)},w.bind(w.win,"gestureend",w.ongesturezoom))),w.railh=!1,b.horizrailenabled&&(w.css(t,{overflowX:"hidden"}),(e=j(L.createElement("div"))).css({position:"absolute",top:0,height:b.cursorwidth,width:0,backgroundColor:b.cursorcolor,border:b.cursorborder,backgroundClip:"padding-box","-webkit-border-radius":b.cursorborderradius,"-moz-border-radius":b.cursorborderradius,"border-radius":b.cursorborderradius}),S.isieold&&e.css("overflow","hidden"),e.addClass("nicescroll-cursors"),w.cursorh=e,(l=j(L.createElement("div"))).attr("id",w.id+"-hr"),l.addClass("nicescroll-rails nicescroll-rails-hr"),b.scrollCLass&&l.addClass(b.scrollCLass),l.height=Math.max(parseFloat(b.cursorwidth),e.outerHeight()),l.css({height:l.height+"px",zIndex:w.zindex,background:b.background}),l.append(e),l.visibility=!0,l.scrollable=!0,l.align="top"==b.railvalign?0:1,w.railh=l,w.railh.drag=!1),w.ispage)o.css({position:"fixed",top:0,height:"100%"}),o.css(o.align?{right:0}:{left:0}),w.body.append(o),w.railh&&(l.css({position:"fixed",left:0,width:"100%"}),l.css(l.align?{bottom:0}:{top:0}),w.body.append(l));else{if(w.ishwscroll){"static"==w.win.css("position")&&w.css(w.win,{position:"relative"});var u="HTML"==w.win[0].nodeName?w.body:w.win;j(u).scrollTop(0).scrollLeft(0),w.zoom&&(w.zoom.css({position:"absolute",top:1,right:0,"margin-right":o.width+4}),u.append(w.zoom)),o.css({position:"absolute",top:0}),o.css(o.align?{right:0}:{left:0}),u.append(o),l&&(l.css({position:"absolute",left:0,bottom:0}),l.css(l.align?{bottom:0}:{top:0}),u.append(l))}else{w.isfixed="fixed"==w.win.css("position");var d=w.isfixed?"fixed":"absolute";w.isfixed||(w.viewport=w.getViewport(w.win[0])),w.viewport&&(w.body=w.viewport,/fixed|absolute/.test(w.viewport.css("position"))||w.css(w.viewport,{position:"relative"})),o.css({position:d}),w.zoom&&w.zoom.css({position:d}),w.updateScrollBar(),w.body.append(o),w.zoom&&w.body.append(w.zoom),w.railh&&(l.css({position:d}),w.body.append(l))}S.isios&&w.css(w.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),b.disableoutline&&(S.isie&&w.win.attr("hideFocus","true"),S.iswebkit&&w.win.css("outline","none"))}if(!1===b.autohidemode?(w.autohidedom=!1,w.rail.css({opacity:b.cursoropacitymax}),w.railh&&w.railh.css({opacity:b.cursoropacitymax})):!0===b.autohidemode||"leave"===b.autohidemode?(w.autohidedom=j().add(w.rail),S.isie8&&(w.autohidedom=w.autohidedom.add(w.cursor)),w.railh&&(w.autohidedom=w.autohidedom.add(w.railh)),w.railh&&S.isie8&&(w.autohidedom=w.autohidedom.add(w.cursorh))):"scroll"==b.autohidemode?(w.autohidedom=j().add(w.rail),w.railh&&(w.autohidedom=w.autohidedom.add(w.railh))):"cursor"==b.autohidemode?(w.autohidedom=j().add(w.cursor),w.railh&&(w.autohidedom=w.autohidedom.add(w.cursorh))):"hidden"==b.autohidemode&&(w.autohidedom=!1,w.hide(),w.railslocked=!1),S.cantouch||w.istouchcapable||b.emulatetouch||S.hasmstouch){w.scrollmom=new R(w);w.ontouchstart=function(t){if(w.locked)return!1;if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!1;if(w.hasmoving=!1,w.scrollmom.timer&&(w.triggerScrollEnd(),w.scrollmom.stop()),!w.railslocked){var e=w.getTarget(t);if(e)if(/INPUT/i.test(e.nodeName)&&/range/i.test(e.type))return w.stopPropagation(t);var i="mousedown"===t.type;if(!("clientX"in t)&&"changedTouches"in t&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY),w.forcescreen){var o=t;(t={original:t.original?t.original:t}).clientX=o.screenX,t.clientY=o.screenY}if(w.rail.drag={x:t.clientX,y:t.clientY,sx:w.scroll.x,sy:w.scroll.y,st:w.getScrollTop(),sl:w.getScrollLeft(),pt:2,dl:!1,tg:e},w.ispage||!b.directionlockdeadzone)w.rail.drag.dl="f";else{var n=O.width(),r=O.height(),s=w.getContentSize(),a=s.h-r,l=s.w-n;w.rail.scrollable&&!w.railh.scrollable?w.rail.drag.ck=0<a&&"v":!w.rail.scrollable&&w.railh.scrollable?w.rail.drag.ck=0<l&&"h":w.rail.drag.ck=!1}if(b.emulatetouch&&w.isiframe&&S.isie){var c=w.win.position();w.rail.drag.x+=c.left,w.rail.drag.y+=c.top}if(w.hasmoving=!1,w.lastmouseup=!1,w.scrollmom.reset(t.clientX,t.clientY),e&&i){if(!/INPUT|SELECT|BUTTON|TEXTAREA/i.test(e.nodeName))return S.hasmousecapture&&e.setCapture(),b.emulatetouch?(e.onclick&&!e._onclick&&(e._onclick=e.onclick,e.onclick=function(t){if(w.hasmoving)return!1;e._onclick.call(this,t)}),w.cancelEvent(t)):w.stopPropagation(t);/SUBMIT|CANCEL|BUTTON/i.test(j(e).attr("type"))&&(w.preventclick={tg:e,click:!1})}}},w.ontouchend=function(t){if(!w.rail.drag)return!0;if(2==w.rail.drag.pt){if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!1;w.rail.drag=!1;var e="mouseup"===t.type;if(w.hasmoving&&(w.scrollmom.doMomentum(),w.lastmouseup=!0,w.hideCursor(),S.hasmousecapture&&L.releaseCapture(),e))return w.cancelEvent(t)}else if(1==w.rail.drag.pt)return w.onmouseup(t)};var f=b.emulatetouch&&w.isiframe&&!S.hasmousecapture,m=.3*b.directionlockdeadzone|0;w.ontouchmove=function(t,e){if(!w.rail.drag)return!0;if(t.targetTouches&&b.preventmultitouchscrolling&&1<t.targetTouches.length)return!0;if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!0;if(2!=w.rail.drag.pt)return 1==w.rail.drag.pt?w.onmousemove(t):void 0;var i,o;if("changedTouches"in t&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY),o=i=0,f&&!e){var n=w.win.position();o=-n.left,i=-n.top}var r=t.clientY+i,s=r-w.rail.drag.y,a=t.clientX+o,l=a-w.rail.drag.x,c=w.rail.drag.st-s;if(w.ishwscroll&&b.bouncescroll)c<0?c=Math.round(c/2):c>w.page.maxh&&(c=w.page.maxh+Math.round((c-w.page.maxh)/2));else if(c<0?r=c=0:c>w.page.maxh&&(c=w.page.maxh,r=0),0===r&&!w.hasmoving)return w.ispage||(w.rail.drag=!1),!0;var u=w.getScrollLeft();if(w.railh&&w.railh.scrollable&&(u=w.isrtlmode?l-w.rail.drag.sl:w.rail.drag.sl-l,w.ishwscroll&&b.bouncescroll?u<0?u=Math.round(u/2):u>w.page.maxw&&(u=w.page.maxw+Math.round((u-w.page.maxw)/2)):(u<0&&(a=u=0),u>w.page.maxw&&(u=w.page.maxw,a=0))),!w.hasmoving){if(w.rail.drag.y===t.clientY&&w.rail.drag.x===t.clientX)return w.cancelEvent(t);var d=Math.abs(s),h=Math.abs(l),p=b.directionlockdeadzone;if(w.rail.drag.ck?"v"==w.rail.drag.ck?p<h&&d<=m?w.rail.drag=!1:p<d&&(w.rail.drag.dl="v"):"h"==w.rail.drag.ck&&(p<d&&h<=m?w.rail.drag=!1:p<h&&(w.rail.drag.dl="h")):p<d&&p<h?w.rail.drag.dl="f":p<d?w.rail.drag.dl=m<h?"f":"v":p<h&&(w.rail.drag.dl=m<d?"f":"h"),!w.rail.drag.dl)return w.cancelEvent(t);w.triggerScrollStart(t.clientX,t.clientY,0,0,0),w.hasmoving=!0}return w.preventclick&&!w.preventclick.click&&(w.preventclick.click=w.preventclick.tg.onclick||!1,w.preventclick.tg.onclick=w.onpreventclick),w.rail.drag.dl&&("v"==w.rail.drag.dl?u=w.rail.drag.sl:"h"==w.rail.drag.dl&&(c=w.rail.drag.st)),w.synched("touchmove",function(){w.rail.drag&&2==w.rail.drag.pt&&(w.prepareTransition&&w.resetTransition(),w.rail.scrollable&&w.setScrollTop(c),w.scrollmom.update(a,r),w.railh&&w.railh.scrollable?(w.setScrollLeft(u),w.showCursor(c,u)):w.showCursor(c),S.isie10&&L.selection.clear())}),w.cancelEvent(t)},w.ontouchstartCursor=function(t,e){if(!w.rail.drag||3==w.rail.drag.pt){if(w.locked)return w.cancelEvent(t);w.cancelScroll(),w.rail.drag={x:t.touches[0].clientX,y:t.touches[0].clientY,sx:w.scroll.x,sy:w.scroll.y,pt:3,hr:!!e};var i=w.getTarget(t);return!w.ispage&&S.hasmousecapture&&i.setCapture(),w.isiframe&&!S.hasmousecapture&&(w.saved.csspointerevents=w.doc.css("pointer-events"),w.css(w.doc,{"pointer-events":"none"})),w.cancelEvent(t)}},w.ontouchendCursor=function(t){if(w.rail.drag){if(S.hasmousecapture&&L.releaseCapture(),w.isiframe&&!S.hasmousecapture&&w.doc.css("pointer-events",w.saved.csspointerevents),3!=w.rail.drag.pt)return;return w.rail.drag=!1,w.cancelEvent(t)}},w.ontouchmoveCursor=function(t){if(w.rail.drag){if(3!=w.rail.drag.pt)return;if(w.cursorfreezed=!0,w.rail.drag.hr){w.scroll.x=w.rail.drag.sx+(t.touches[0].clientX-w.rail.drag.x),w.scroll.x<0&&(w.scroll.x=0);var e=w.scrollvaluemaxw;w.scroll.x>e&&(w.scroll.x=e)}else{w.scroll.y=w.rail.drag.sy+(t.touches[0].clientY-w.rail.drag.y),w.scroll.y<0&&(w.scroll.y=0);var i=w.scrollvaluemax;w.scroll.y>i&&(w.scroll.y=i)}return w.synched("touchmove",function(){w.rail.drag&&3==w.rail.drag.pt&&(w.showCursor(),w.rail.drag.hr?w.doScrollLeft(Math.round(w.scroll.x*w.scrollratio.x),b.cursordragspeed):w.doScrollTop(Math.round(w.scroll.y*w.scrollratio.y),b.cursordragspeed))}),w.cancelEvent(t)}}}if(w.onmousedown=function(t,e){if(!w.rail.drag||1==w.rail.drag.pt){if(w.railslocked)return w.cancelEvent(t);w.cancelScroll(),w.rail.drag={x:t.clientX,y:t.clientY,sx:w.scroll.x,sy:w.scroll.y,pt:1,hr:e||!1};var i=w.getTarget(t);return S.hasmousecapture&&i.setCapture(),w.isiframe&&!S.hasmousecapture&&(w.saved.csspointerevents=w.doc.css("pointer-events"),w.css(w.doc,{"pointer-events":"none"})),w.hasmoving=!1,w.cancelEvent(t)}},w.onmouseup=function(t){if(w.rail.drag)return 1!=w.rail.drag.pt||(S.hasmousecapture&&L.releaseCapture(),w.isiframe&&!S.hasmousecapture&&w.doc.css("pointer-events",w.saved.csspointerevents),w.rail.drag=!1,w.cursorfreezed=!1,w.hasmoving&&w.triggerScrollEnd(),w.cancelEvent(t))},w.onmousemove=function(t){if(w.rail.drag){if(1!==w.rail.drag.pt)return;if(S.ischrome&&0===t.which)return w.onmouseup(t);if(w.cursorfreezed=!0,w.hasmoving||w.triggerScrollStart(t.clientX,t.clientY,0,0,0),w.hasmoving=!0,w.rail.drag.hr){w.scroll.x=w.rail.drag.sx+(t.clientX-w.rail.drag.x),w.scroll.x<0&&(w.scroll.x=0);var e=w.scrollvaluemaxw;w.scroll.x>e&&(w.scroll.x=e)}else{w.scroll.y=w.rail.drag.sy+(t.clientY-w.rail.drag.y),w.scroll.y<0&&(w.scroll.y=0);var i=w.scrollvaluemax;w.scroll.y>i&&(w.scroll.y=i)}return w.synched("mousemove",function(){w.cursorfreezed&&(w.showCursor(),w.rail.drag.hr?w.scrollLeft(Math.round(w.scroll.x*w.scrollratio.x)):w.scrollTop(Math.round(w.scroll.y*w.scrollratio.y)))}),w.cancelEvent(t)}w.checkarea=0},S.cantouch||b.emulatetouch)w.onpreventclick=function(t){if(w.preventclick)return w.preventclick.tg.onclick=w.preventclick.click,w.preventclick=!1,w.cancelEvent(t)},w.onclick=!S.isios&&function(t){return!w.lastmouseup||(w.lastmouseup=!1,w.cancelEvent(t))},b.grabcursorenabled&&S.cursorgrabvalue&&(w.css(w.ispage?w.doc:w.win,{cursor:S.cursorgrabvalue}),w.css(w.rail,{cursor:S.cursorgrabvalue}));else{var h=function(t){if(w.selectiondrag){if(t){var e=w.win.outerHeight(),i=t.pageY-w.selectiondrag.top;0<i&&i<e&&(i=0),e<=i&&(i-=e),w.selectiondrag.df=i}if(0!==w.selectiondrag.df){var o=-2*w.selectiondrag.df/6|0;w.doScrollBy(o),w.debounced("doselectionscroll",function(){h()},50)}}};w.hasTextSelected="getSelection"in L?function(){return 0<L.getSelection().rangeCount}:"selection"in L?function(){return"None"!=L.selection.type}:function(){return!1},w.onselectionstart=function(t){w.ispage||(w.selectiondrag=w.win.offset())},w.onselectionend=function(t){w.selectiondrag=!1},w.onselectiondrag=function(t){w.selectiondrag&&w.hasTextSelected()&&w.debounced("selectionscroll",function(){h(t)},250)}}if(S.hasw3ctouch?(w.css(w.ispage?j("html"):w.win,{"touch-action":"none"}),w.css(w.rail,{"touch-action":"none"}),w.css(w.cursor,{"touch-action":"none"}),w.bind(w.win,"pointerdown",w.ontouchstart),w.bind(L,"pointerup",w.ontouchend),w.delegate(L,"pointermove",w.ontouchmove)):S.hasmstouch?(w.css(w.ispage?j("html"):w.win,{"-ms-touch-action":"none"}),w.css(w.rail,{"-ms-touch-action":"none"}),w.css(w.cursor,{"-ms-touch-action":"none"}),w.bind(w.win,"MSPointerDown",w.ontouchstart),w.bind(L,"MSPointerUp",w.ontouchend),w.delegate(L,"MSPointerMove",w.ontouchmove),w.bind(w.cursor,"MSGestureHold",function(t){t.preventDefault()}),w.bind(w.cursor,"contextmenu",function(t){t.preventDefault()})):S.cantouch&&(w.bind(w.win,"touchstart",w.ontouchstart,!1,!0),w.bind(L,"touchend",w.ontouchend,!1,!0),w.bind(L,"touchcancel",w.ontouchend,!1,!0),w.delegate(L,"touchmove",w.ontouchmove,!1,!0)),b.emulatetouch&&(w.bind(w.win,"mousedown",w.ontouchstart,!1,!0),w.bind(L,"mouseup",w.ontouchend,!1,!0),w.bind(L,"mousemove",w.ontouchmove,!1,!0)),(b.cursordragontouch||!S.cantouch&&!b.emulatetouch)&&(w.rail.css({cursor:"default"}),w.railh&&w.railh.css({cursor:"default"}),w.jqbind(w.rail,"mouseenter",function(){if(!w.ispage&&!w.win.is(":visible"))return!1;w.canshowonmouseevent&&w.showCursor(),w.rail.active=!0}),w.jqbind(w.rail,"mouseleave",function(){w.rail.active=!1,w.rail.drag||w.hideCursor()}),b.sensitiverail&&(w.bind(w.rail,"click",function(t){w.doRailClick(t,!1,!1)}),w.bind(w.rail,"dblclick",function(t){w.doRailClick(t,!0,!1)}),w.bind(w.cursor,"click",function(t){w.cancelEvent(t)}),w.bind(w.cursor,"dblclick",function(t){w.cancelEvent(t)})),w.railh&&(w.jqbind(w.railh,"mouseenter",function(){if(!w.ispage&&!w.win.is(":visible"))return!1;w.canshowonmouseevent&&w.showCursor(),w.rail.active=!0}),w.jqbind(w.railh,"mouseleave",function(){w.rail.active=!1,w.rail.drag||w.hideCursor()}),b.sensitiverail&&(w.bind(w.railh,"click",function(t){w.doRailClick(t,!1,!0)}),w.bind(w.railh,"dblclick",function(t){w.doRailClick(t,!0,!0)}),w.bind(w.cursorh,"click",function(t){w.cancelEvent(t)}),w.bind(w.cursorh,"dblclick",function(t){w.cancelEvent(t)})))),b.cursordragontouch&&(this.istouchcapable||S.cantouch)&&(w.bind(w.cursor,"touchstart",w.ontouchstartCursor),w.bind(w.cursor,"touchmove",w.ontouchmoveCursor),w.bind(w.cursor,"touchend",w.ontouchendCursor),w.cursorh&&w.bind(w.cursorh,"touchstart",function(t){w.ontouchstartCursor(t,!0)}),w.cursorh&&w.bind(w.cursorh,"touchmove",w.ontouchmoveCursor),w.cursorh&&w.bind(w.cursorh,"touchend",w.ontouchendCursor)),b.emulatetouch||S.isandroid||S.isios?(w.bind(S.hasmousecapture?w.win:L,"mouseup",w.ontouchend),w.onclick&&w.bind(L,"click",w.onclick),b.cursordragontouch?(w.bind(w.cursor,"mousedown",w.onmousedown),w.bind(w.cursor,"mouseup",w.onmouseup),w.cursorh&&w.bind(w.cursorh,"mousedown",function(t){w.onmousedown(t,!0)}),w.cursorh&&w.bind(w.cursorh,"mouseup",w.onmouseup)):(w.bind(w.rail,"mousedown",function(t){t.preventDefault()}),w.railh&&w.bind(w.railh,"mousedown",function(t){t.preventDefault()}))):(w.bind(S.hasmousecapture?w.win:L,"mouseup",w.onmouseup),w.bind(L,"mousemove",w.onmousemove),w.onclick&&w.bind(L,"click",w.onclick),w.bind(w.cursor,"mousedown",w.onmousedown),w.bind(w.cursor,"mouseup",w.onmouseup),w.railh&&(w.bind(w.cursorh,"mousedown",function(t){w.onmousedown(t,!0)}),w.bind(w.cursorh,"mouseup",w.onmouseup)),!w.ispage&&b.enablescrollonselection&&(w.bind(w.win[0],"mousedown",w.onselectionstart),w.bind(L,"mouseup",w.onselectionend),w.bind(w.cursor,"mouseup",w.onselectionend),w.cursorh&&w.bind(w.cursorh,"mouseup",w.onselectionend),w.bind(L,"mousemove",w.onselectiondrag)),w.zoom&&(w.jqbind(w.zoom,"mouseenter",function(){w.canshowonmouseevent&&w.showCursor(),w.rail.active=!0}),w.jqbind(w.zoom,"mouseleave",function(){w.rail.active=!1,w.rail.drag||w.hideCursor()}))),b.enablemousewheel&&(w.isiframe||w.mousewheel(S.isie&&w.ispage?L:w.win,w.onmousewheel),w.mousewheel(w.rail,w.onmousewheel),w.railh&&w.mousewheel(w.railh,w.onmousewheelhr)),w.ispage||S.cantouch||/HTML|^BODY/.test(w.win[0].nodeName)||(w.win.attr("tabindex")||w.win.attr({tabindex:++_}),w.bind(w.win,"focus",function(t){k=w.getTarget(t).id||w.getTarget(t)||!1,w.hasfocus=!0,w.canshowonmouseevent&&w.noticeCursor()}),w.bind(w.win,"blur",function(t){k=!1,w.hasfocus=!1}),w.bind(w.win,"mouseenter",function(t){I=w.getTarget(t).id||w.getTarget(t)||!1,w.hasmousefocus=!0,w.canshowonmouseevent&&w.noticeCursor()}),w.bind(w.win,"mouseleave",function(t){I=!1,w.hasmousefocus=!1,w.rail.drag||w.hideCursor()})),w.onkeypress=function(t){if(w.railslocked&&0===w.page.maxh)return!0;t=t||P.event;var e=w.getTarget(t);if(e&&/INPUT|TEXTAREA|SELECT|OPTION/.test(e.nodeName)&&(!(e.getAttribute("type")||e.type||!1)||!/submit|button|cancel/i.tp))return!0;if(j(e).attr("contenteditable"))return!0;if(w.hasfocus||w.hasmousefocus&&!k||w.ispage&&!k&&!I){var i=t.keyCode;if(w.railslocked&&27!=i)return w.cancelEvent(t);var o=t.ctrlKey||!1,n=t.shiftKey||!1,r=!1;switch(i){case 38:case 63233:w.doScrollBy(72),r=!0;break;case 40:case 63235:w.doScrollBy(-72),r=!0;break;case 37:case 63232:w.railh&&(o?w.doScrollLeft(0):w.doScrollLeftBy(72),r=!0);break;case 39:case 63234:w.railh&&(o?w.doScrollLeft(w.page.maxw):w.doScrollLeftBy(-72),r=!0);break;case 33:case 63276:w.doScrollBy(w.view.h),r=!0;break;case 34:case 63277:w.doScrollBy(-w.view.h),r=!0;break;case 36:case 63273:w.railh&&o?w.doScrollPos(0,0):w.doScrollTo(0),r=!0;break;case 35:case 63275:w.railh&&o?w.doScrollPos(w.page.maxw,w.page.maxh):w.doScrollTo(w.page.maxh),r=!0;break;case 32:b.spacebarenabled&&(n?w.doScrollBy(w.view.h):w.doScrollBy(-w.view.h),r=!0);break;case 27:w.zoomactive&&(w.doZoom(),r=!0)}if(r)return w.cancelEvent(t)}},b.enablekeyboard&&w.bind(L,S.isopera&&!S.isopera12?"keypress":"keydown",w.onkeypress),w.bind(L,"keydown",function(t){(t.ctrlKey||!1)&&(w.wheelprevented=!0)}),w.bind(L,"keyup",function(t){t.ctrlKey||!1||(w.wheelprevented=!1)}),w.bind(P,"blur",function(t){w.wheelprevented=!1}),w.bind(P,"resize",w.onscreenresize),w.bind(P,"orientationchange",w.onscreenresize),w.bind(P,"load",w.lazyResize),S.ischrome&&!w.ispage&&!w.haswrapper){var p=w.win.attr("style"),v=parseFloat(w.win.css("width"))+1;w.win.css("width",v),w.synched("chromefix",function(){w.win.attr("style",p)})}if(w.onAttributeChange=function(t){w.lazyResize(w.isieold?250:30)},b.enableobserver&&(w.isie11||!1===D||(w.observerbody=new D(function(t){if(t.forEach(function(t){if("attributes"==t.type)return x.hasClass("modal-open")&&x.hasClass("modal-dialog")&&!j.contains(j(".modal-dialog")[0],w.doc[0])?w.hide():w.show()}),w.me.clientWidth!=w.page.width||w.me.clientHeight!=w.page.height)return w.lazyResize(30)}),w.observerbody.observe(L.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]})),!w.ispage&&!w.haswrapper)){var g=w.win[0];!1!==D?(w.observer=new D(function(t){t.forEach(w.onAttributeChange)}),w.observer.observe(g,{childList:!0,characterData:!1,attributes:!0,subtree:!1}),w.observerremover=new D(function(t){t.forEach(function(t){if(0<t.removedNodes.length)for(var e in t.removedNodes)if(w&&t.removedNodes[e]===g)return w.remove()})}),w.observerremover.observe(g.parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(w.bind(g,S.isie&&!S.isie9?"propertychange":"DOMAttrModified",w.onAttributeChange),S.isie9&&g.attachEvent("onpropertychange",w.onAttributeChange),w.bind(g,"DOMNodeRemoved",function(t){t.target===g&&w.remove()}))}!w.ispage&&b.boxzoom&&w.bind(P,"resize",w.resizeZoom),w.istextarea&&(w.bind(w.win,"keydown",w.lazyResize),w.bind(w.win,"mouseup",w.lazyResize)),w.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var y=function(){var e;w.iframexd=!1;try{(e="contentDocument"in this?this.contentDocument:this.contentWindow._doc).domain}catch(t){e=!(w.iframexd=!0)}if(w.iframexd)return"console"in P&&console.log("NiceScroll error: policy restriced iframe"),!0;if(w.forcescreen=!0,w.isiframe&&(w.iframe={doc:j(e),html:w.doc.contents().find("html")[0],body:w.doc.contents().find("body")[0]},w.getContentSize=function(){return{w:Math.max(w.iframe.html.scrollWidth,w.iframe.body.scrollWidth),h:Math.max(w.iframe.html.scrollHeight,w.iframe.body.scrollHeight)}},w.docscroll=j(w.iframe.body)),!S.isios&&b.iframeautoresize&&!w.isiframe){w.win.scrollTop(0),w.doc.height("");var t=Math.max(e.getElementsByTagName("html")[0].scrollHeight,e.body.scrollHeight);w.doc.height(t)}w.lazyResize(30),w.css(j(w.iframe.body),i),S.isios&&w.haswrapper&&w.css(j(e.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?w.bind(this.contentWindow,"scroll",w.onscroll):w.bind(e,"scroll",w.onscroll),b.enablemousewheel&&w.mousewheel(e,w.onmousewheel),b.enablekeyboard&&w.bind(e,S.isopera?"keypress":"keydown",w.onkeypress),S.cantouch?(w.bind(e,"touchstart",w.ontouchstart),w.bind(e,"touchmove",w.ontouchmove)):b.emulatetouch&&(w.bind(e,"mousedown",w.ontouchstart),w.bind(e,"mousemove",function(t){return w.ontouchmove(t,!0)}),b.grabcursorenabled&&S.cursorgrabvalue&&w.css(j(e.body),{cursor:S.cursorgrabvalue})),w.bind(e,"mouseup",w.ontouchend),w.zoom&&(b.dblclickzoom&&w.bind(e,"dblclick",w.doZoom),w.ongesturezoom&&w.bind(e,"gestureend",w.ongesturezoom))};this.doc[0].readyState&&"complete"===this.doc[0].readyState&&setTimeout(function(){y.call(w.doc[0],!1)},500),w.bind(this.doc,"load",y)}},this.showCursor=function(t,e){if(w.cursortimeout&&(clearTimeout(w.cursortimeout),w.cursortimeout=0),w.rail){if(w.autohidedom&&(w.autohidedom.stop().css({opacity:b.cursoropacitymax}),w.cursoractive=!0),w.rail.drag&&1==w.rail.drag.pt||(void 0!==t&&!1!==t&&(w.scroll.y=t/w.scrollratio.y|0),void 0!==e&&(w.scroll.x=e/w.scrollratio.x|0)),w.cursor.css({height:w.cursorheight,top:w.scroll.y}),w.cursorh){var i=w.hasreversehr?w.scrollvaluemaxw-w.scroll.x:w.scroll.x;w.cursorh.css({width:w.cursorwidth,left:!w.rail.align&&w.rail.visibility?i+w.rail.width:i}),w.cursoractive=!0}w.zoom&&w.zoom.stop().css({opacity:b.cursoropacitymax})}},this.hideCursor=function(t){w.cursortimeout||w.rail&&w.autohidedom&&(w.hasmousefocus&&"leave"===b.autohidemode||(w.cursortimeout=setTimeout(function(){w.rail.active&&w.showonmouseevent||(w.autohidedom.stop().animate({opacity:b.cursoropacitymin}),w.zoom&&w.zoom.stop().animate({opacity:b.cursoropacitymin}),w.cursoractive=!1),w.cursortimeout=0},t||b.hidecursordelay)))},this.noticeCursor=function(t,e,i){w.showCursor(e,i),w.rail.active||w.hideCursor(t)},this.getContentSize=w.ispage?function(){return{w:Math.max(L.body.scrollWidth,L.documentElement.scrollWidth),h:Math.max(L.body.scrollHeight,L.documentElement.scrollHeight)}}:w.haswrapper?function(){return{w:w.doc[0].offsetWidth,h:w.doc[0].offsetHeight}}:function(){return{w:w.docscroll[0].scrollWidth,h:w.docscroll[0].scrollHeight}},this.onResize=function(t,e){if(!w||!w.win)return!1;var i=w.page.maxh,o=w.page.maxw,n=w.view.h,r=w.view.w;if(w.view={w:w.ispage?w.win.width():w.win[0].clientWidth,h:w.ispage?w.win.height():w.win[0].clientHeight},w.page=e||w.getContentSize(),w.page.maxh=Math.max(0,w.page.h-w.view.h),w.page.maxw=Math.max(0,w.page.w-w.view.w),w.page.maxh==i&&w.page.maxw==o&&w.view.w==r&&w.view.h==n){if(w.ispage)return w;var s=w.win.offset();if(w.lastposition){var a=w.lastposition;if(a.top==s.top&&a.left==s.left)return w}w.lastposition=s}return 0===w.page.maxh?(w.hideRail(),w.scrollvaluemax=0,w.scroll.y=0,w.scrollratio.y=0,w.cursorheight=0,w.setScrollTop(0),w.rail&&(w.rail.scrollable=!1)):(w.page.maxh-=b.railpadding.top+b.railpadding.bottom,w.rail.scrollable=!0),0===w.page.maxw?(w.hideRailHr(),w.scrollvaluemaxw=0,w.scroll.x=0,w.scrollratio.x=0,w.cursorwidth=0,w.setScrollLeft(0),w.railh&&(w.railh.scrollable=!1)):(w.page.maxw-=b.railpadding.left+b.railpadding.right,w.railh&&(w.railh.scrollable=b.horizrailenabled)),w.railslocked=w.locked||0===w.page.maxh&&0===w.page.maxw,w.railslocked?(w.ispage||w.updateScrollBar(w.view),!1):(w.hidden||(w.rail.visibility||w.showRail(),w.railh&&!w.railh.visibility&&w.showRailHr()),w.istextarea&&w.win.css("resize")&&"none"!=w.win.css("resize")&&(w.view.h-=20),w.cursorheight=Math.min(w.view.h,Math.round(w.view.h*(w.view.h/w.page.h))),w.cursorheight=b.cursorfixedheight?b.cursorfixedheight:Math.max(b.cursorminheight,w.cursorheight),w.cursorwidth=Math.min(w.view.w,Math.round(w.view.w*(w.view.w/w.page.w))),w.cursorwidth=b.cursorfixedheight?b.cursorfixedheight:Math.max(b.cursorminheight,w.cursorwidth),w.scrollvaluemax=w.view.h-w.cursorheight-(b.railpadding.top+b.railpadding.bottom),w.hasborderbox||(w.scrollvaluemax-=w.cursor[0].offsetHeight-w.cursor[0].clientHeight),w.railh&&(w.railh.width=0<w.page.maxh?w.view.w-w.rail.width:w.view.w,w.scrollvaluemaxw=w.railh.width-w.cursorwidth-(b.railpadding.left+b.railpadding.right)),w.ispage||w.updateScrollBar(w.view),w.scrollratio={x:w.page.maxw/w.scrollvaluemaxw,y:w.page.maxh/w.scrollvaluemax},w.getScrollTop()>w.page.maxh?w.doScrollTop(w.page.maxh):(w.scroll.y=w.getScrollTop()/w.scrollratio.y|0,w.scroll.x=w.getScrollLeft()/w.scrollratio.x|0,w.cursoractive&&w.noticeCursor()),w.scroll.y&&0===w.getScrollTop()&&w.doScrollTo(w.scroll.y*w.scrollratio.y|0),w)},this.resize=w.onResize;var c=0;function d(i,o,n,t){w._bind(i,o,function(t){var e={original:t=t||P.event,target:t.target||t.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==t.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},stopImmediatePropagation:function(){t.stopImmediatePropagation?t.stopImmediatePropagation():t.cancelBubble=!0}};return"mousewheel"==o?(t.wheelDeltaX&&(e.deltaX=-.025*t.wheelDeltaX),t.wheelDeltaY&&(e.deltaY=-.025*t.wheelDeltaY),!e.deltaY&&!e.deltaX&&(e.deltaY=-.025*t.wheelDelta)):e.deltaY=t.detail,n.call(i,e)},t)}this.onscreenresize=function(t){clearTimeout(c);var e=!w.ispage&&!w.haswrapper;e&&w.hideRails(),c=setTimeout(function(){w&&(e&&w.showRails(),w.resize()),c=0},120)},this.lazyResize=function(t){return clearTimeout(c),t=isNaN(t)?240:t,c=setTimeout(function(){w&&w.resize(),c=0},t),w},this.jqbind=function(t,e,i){w.events.push({e:t,n:e,f:i,q:!0}),j(t).on(e,i)};var h=!(this.mousewheel=function(t,e,i){var o="jquery"in t?t[0]:t;if("onwheel"in L.createElement("div"))w._bind(o,"wheel",e,i||!1);else{var n=void 0!==L.onmousewheel?"mousewheel":"DOMMouseScroll";d(o,n,e,i||!1),"DOMMouseScroll"==n&&d(o,"MozMousePixelScroll",e,i||!1)}});if(S.haseventlistener){try{var p=Object.defineProperty({},"passive",{get:function(){h=!0}});P.addEventListener("test",null,p)}catch(t){}this.stopPropagation=function(t){return t&&(t=t.original?t.original:t).stopPropagation(),!1},this.cancelEvent=function(t){return t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),t.preventManipulation&&t.preventManipulation(),!1}}else Event.prototype.preventDefault=function(){this.returnValue=!1},Event.prototype.stopPropagation=function(){this.cancelBubble=!0},P.constructor.prototype.addEventListener=L.constructor.prototype.addEventListener=Element.prototype.addEventListener=function(t,e,i){this.attachEvent("on"+t,e)},P.constructor.prototype.removeEventListener=L.constructor.prototype.removeEventListener=Element.prototype.removeEventListener=function(t,e,i){this.detachEvent("on"+t,e)},this.cancelEvent=function(t){return(t=t||P.event)&&(t.cancelBubble=!0,t.cancel=!0,t.returnValue=!1),!1},this.stopPropagation=function(t){return(t=t||P.event)&&(t.cancelBubble=!0),!1};this.delegate=function(t,e,i,o,n){var r=N[e]||!1;r||(r={a:[],l:[],f:function(t){for(var e=r.l,i=!1,o=e.length-1;0<=o;o--)if(!1===(i=e[o].call(t.target,t)))return!1;return i}},w.bind(t,e,r.f,o,n),N[e]=r),w.ispage?(r.a=[w.id].concat(r.a),r.l=[i].concat(r.l)):(r.a.push(w.id),r.l.push(i))},this.undelegate=function(t,e,i,o,n){var r=N[e]||!1;if(r&&r.l)for(var s=0,a=r.l.length;s<a;s++)r.a[s]===w.id&&(r.a.splice(s),r.l.splice(s),0===r.a.length&&(w._unbind(t,e,r.l.f),N[e]=null))},this.bind=function(t,e,i,o,n){var r="jquery"in t?t[0]:t;w._bind(r,e,i,o||!1,n||!1)},this._bind=function(t,e,i,o,n){w.events.push({e:t,n:e,f:i,b:o,q:!1}),h&&(n||t==window.document||t==window.document.body||t==window)?t.addEventListener(e,i,{passive:!1,capture:o}):t.addEventListener(e,i,o||!1)},this._unbind=function(t,e,i,o){N[e]?w.undelegate(t,e,i,o):t.removeEventListener(e,i,o)},this.unbindAll=function(){for(var t=0;t<w.events.length;t++){var e=w.events[t];e.q?e.e.unbind(e.n,e.f):w._unbind(e.e,e.n,e.f,e.b)}},this.showRails=function(){return w.showRail().showRailHr()},this.showRail=function(){return 0===w.page.maxh||!w.ispage&&"none"==w.win.css("display")||(w.rail.visibility=!0,w.rail.css("display","block")),w},this.showRailHr=function(){return w.railh&&(0===w.page.maxw||!w.ispage&&"none"==w.win.css("display")||(w.railh.visibility=!0,w.railh.css("display","block"))),w},this.hideRails=function(){return w.hideRail().hideRailHr()},this.hideRail=function(){return w.rail.visibility=!1,w.rail.css("display","none"),w},this.hideRailHr=function(){return w.railh&&(w.railh.visibility=!1,w.railh.css("display","none")),w},this.show=function(){return w.hidden=!1,w.railslocked=!1,w.showRails()},this.hide=function(){return w.hidden=!0,w.railslocked=!0,w.hideRails()},this.toggle=function(){return w.hidden?w.show():w.hide()},this.remove=function(){for(var t in w.stop(),w.cursortimeout&&clearTimeout(w.cursortimeout),w.delaylist)w.delaylist[t]&&H(w.delaylist[t].h);w.doZoomOut(),w.unbindAll(),S.isie9&&w.win[0].detachEvent("onpropertychange",w.onAttributeChange),!1!==w.observer&&w.observer.disconnect(),!1!==w.observerremover&&w.observerremover.disconnect(),!1!==w.observerbody&&w.observerbody.disconnect(),w.events=null,w.cursor&&w.cursor.remove(),w.cursorh&&w.cursorh.remove(),w.rail&&w.rail.remove(),w.railh&&w.railh.remove(),w.zoom&&w.zoom.remove();for(var e=0;e<w.saved.css.length;e++){var i=w.saved.css[e];i[0].css(i[1],void 0===i[2]?"":i[2])}w.saved=!1,w.me.data("__nicescroll","");var o=j.nicescroll;for(var n in o.each(function(t){if(this&&this.id===w.id){delete o[t];for(var e=++t;e<o.length;e++,t++)o[t]=o[e];o.length--,o.length&&delete o[o.length]}}),w)w[n]=null,delete w[n];w=null},this.scrollstart=function(t){return this.onscrollstart=t,w},this.scrollend=function(t){return this.onscrollend=t,w},this.scrollcancel=function(t){return this.onscrollcancel=t,w},this.zoomin=function(t){return this.onzoomin=t,w},this.zoomout=function(t){return this.onzoomout=t,w},this.isScrollable=function(t){var e=t.target?t.target:t;if("OPTION"==e.nodeName)return!0;for(;e&&1==e.nodeType&&e!==this.me[0]&&!/^BODY|HTML/.test(e.nodeName);){var i=j(e),o=i.css("overflowY")||i.css("overflowX")||i.css("overflow")||"";if(/scroll|auto/.test(o))return e.clientHeight!=e.scrollHeight;e=!!e.parentNode&&e.parentNode}return!1},this.getViewport=function(t){for(var e=!(!t||!t.parentNode)&&t.parentNode;e&&1==e.nodeType&&!/^BODY|HTML/.test(e.nodeName);){var i=j(e);if(/fixed|absolute/.test(i.css("position")))return i;var o=i.css("overflowY")||i.css("overflowX")||i.css("overflow")||"";if(/scroll|auto/.test(o)&&e.clientHeight!=e.scrollHeight)return i;if(0<i.getNiceScroll().length)return i;e=!!e.parentNode&&e.parentNode}return!1},this.triggerScrollStart=function(t,e,i,o,n){if(w.onscrollstart){var r={type:"scrollstart",current:{x:t,y:e},request:{x:i,y:o},end:{x:w.newscrollx,y:w.newscrolly},speed:n};w.onscrollstart.call(w,r)}},this.triggerScrollEnd=function(){if(w.onscrollend){var t=w.getScrollLeft(),e=w.getScrollTop(),i={type:"scrollend",current:{x:t,y:e},end:{x:t,y:e}};w.onscrollend.call(w,i)}};var f=0,m=0,v=0,g=1;function y(t,e,i,o){w.scrollrunning||(w.newscrolly=w.getScrollTop(),w.newscrollx=w.getScrollLeft(),v=A());var n=A()-v;if(v=A(),350<n?g=1:g+=(2-g)/10,e=e*g|0,t=t*g|0){if(o)if(t<0){if(w.getScrollLeft()>=w.page.maxw)return!0}else if(w.getScrollLeft()<=0)return!0;var r=0<t?1:-1;m!==r&&(w.scrollmom&&w.scrollmom.stop(),w.newscrollx=w.getScrollLeft(),m=r),w.lastdeltax-=t}if(e){if(function(){var t=w.getScrollTop();if(e<0){if(t>=w.page.maxh)return!0}else if(t<=0)return!0}()){if(b.nativeparentscrolling&&i&&!w.ispage&&!w.zoomactive)return!0;var s=w.view.h>>1;e=w.newscrolly<-s?(w.newscrolly=-s,-1):w.newscrolly>w.page.maxh+s?(w.newscrolly=w.page.maxh+s,1):0}var a=0<e?1:-1;f!==a&&(w.scrollmom&&w.scrollmom.stop(),w.newscrolly=w.getScrollTop(),f=a),w.lastdeltay-=e}(e||t)&&w.synched("relativexy",function(){var t=w.lastdeltay+w.newscrolly;w.lastdeltay=0;var e=w.lastdeltax+w.newscrollx;w.lastdeltax=0,w.rail.drag||w.doScrollPos(e,t)})}var T=!1;function z(t,e,i){var o,n;if(!i&&T)return!0;(0===t.deltaMode?(o=-t.deltaX*(b.mousescrollstep/54)|0,n=-t.deltaY*(b.mousescrollstep/54)|0):1===t.deltaMode&&(o=-t.deltaX*b.mousescrollstep*50/80|0,n=-t.deltaY*b.mousescrollstep*50/80|0),e&&b.oneaxismousemode&&0===o&&n)&&(o=n,n=0,i&&(o<0?w.getScrollLeft()>=w.page.maxw:w.getScrollLeft()<=0)&&(n=o,o=0));if(w.isrtlmode&&(o=-o),!y(o,n,i,!0))return T=!1,t.stopImmediatePropagation(),t.preventDefault();i&&(T=!0)}if(this.onmousewheel=function(t){if(w.wheelprevented||w.locked)return!1;if(w.railslocked)return w.debounced("checkunlock",w.resize,250),!1;if(w.rail.drag)return w.cancelEvent(t);if("auto"===b.oneaxismousemode&&0!==t.deltaX&&(b.oneaxismousemode=!1),b.oneaxismousemode&&0===t.deltaX&&!w.rail.scrollable)return!w.railh||!w.railh.scrollable||w.onmousewheelhr(t);var e=A(),i=!1;if(b.preservenativescrolling&&w.checkarea+600<e&&(w.nativescrollingarea=w.isScrollable(t),i=!0),w.checkarea=e,w.nativescrollingarea)return!0;var o=z(t,!1,i);return o&&(w.checkarea=0),o},this.onmousewheelhr=function(t){if(!w.wheelprevented){if(w.railslocked||!w.railh.scrollable)return!0;if(w.rail.drag)return w.cancelEvent(t);var e=A(),i=!1;return b.preservenativescrolling&&w.checkarea+600<e&&(w.nativescrollingarea=w.isScrollable(t),i=!0),w.checkarea=e,!!w.nativescrollingarea||(w.railslocked?w.cancelEvent(t):z(t,!0,i))}},this.stop=function(){return w.cancelScroll(),w.scrollmon&&w.scrollmon.stop(),w.cursorfreezed=!1,w.scroll.y=Math.round(w.getScrollTop()*(1/w.scrollratio.y)),w.noticeCursor(),w},this.getTransitionSpeed=function(t){return 80+t/72*b.scrollspeed|0},b.smoothscroll)if(w.ishwscroll&&S.hastransition&&b.usetransition&&b.smoothscroll){var C="";this.resetTransition=function(){C="",w.doc.css(S.prefixstyle+"transition-duration","0ms")},this.prepareTransition=function(t,e){var i=e?t:w.getTransitionSpeed(t),o=i+"ms";return C!==o&&(C=o,w.doc.css(S.prefixstyle+"transition-duration",o)),i},this.doScrollLeft=function(t,e){var i=w.scrollrunning?w.newscrolly:w.getScrollTop();w.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=w.scrollrunning?w.newscrollx:w.getScrollLeft();w.doScrollPos(i,t,e)},this.cursorupdate={running:!1,start:function(){var t=this;if(!t.running){t.running=!0;var e=function(){t.running&&W(e),w.showCursor(w.getScrollTop(),w.getScrollLeft()),w.notifyScrollEvent(w.win[0])};W(e)}},stop:function(){this.running=!1}},this.doScrollPos=function(t,e,i){var o=w.getScrollTop(),n=w.getScrollLeft();if(((w.newscrolly-o)*(e-o)<0||(w.newscrollx-n)*(t-n)<0)&&w.cancelScroll(),b.bouncescroll?(e<0?e=e/2|0:e>w.page.maxh&&(e=w.page.maxh+(e-w.page.maxh)/2|0),t<0?t=t/2|0:t>w.page.maxw&&(t=w.page.maxw+(t-w.page.maxw)/2|0)):(e<0?e=0:e>w.page.maxh&&(e=w.page.maxh),t<0?t=0:t>w.page.maxw&&(t=w.page.maxw)),w.scrollrunning&&t==w.newscrollx&&e==w.newscrolly)return!1;w.newscrolly=e,w.newscrollx=t;var r=w.getScrollTop(),s=w.getScrollLeft(),a={};a.x=t-s,a.y=e-r;var l=0|Math.sqrt(a.x*a.x+a.y*a.y),c=w.prepareTransition(l);w.scrollrunning||(w.scrollrunning=!0,w.triggerScrollStart(s,r,t,e,c),w.cursorupdate.start()),w.scrollendtrapped=!0,S.transitionend||(w.scrollendtrapped&&clearTimeout(w.scrollendtrapped),w.scrollendtrapped=setTimeout(w.onScrollTransitionEnd,c)),w.setScrollTop(w.newscrolly),w.setScrollLeft(w.newscrollx)},this.cancelScroll=function(){if(!w.scrollendtrapped)return!0;var t=w.getScrollTop(),e=w.getScrollLeft();return w.scrollrunning=!1,S.transitionend||clearTimeout(S.transitionend),w.scrollendtrapped=!1,w.resetTransition(),w.setScrollTop(t),w.railh&&w.setScrollLeft(e),w.timerscroll&&w.timerscroll.tm&&clearInterval(w.timerscroll.tm),w.timerscroll=!1,w.cursorfreezed=!1,w.cursorupdate.stop(),w.showCursor(t,e),w},this.onScrollTransitionEnd=function(){if(w.scrollendtrapped){var t=w.getScrollTop(),e=w.getScrollLeft();if(t<0?t=0:t>w.page.maxh&&(t=w.page.maxh),e<0?e=0:e>w.page.maxw&&(e=w.page.maxw),t!=w.newscrolly||e!=w.newscrollx)return w.doScrollPos(e,t,b.snapbackspeed);w.scrollrunning&&w.triggerScrollEnd(),w.scrollrunning=!1,w.scrollendtrapped=!1,w.resetTransition(),w.timerscroll=!1,w.setScrollTop(t),w.railh&&w.setScrollLeft(e),w.cursorupdate.stop(),w.noticeCursor(!1,t,e),w.cursorfreezed=!1}}}else this.doScrollLeft=function(t,e){var i=w.scrollrunning?w.newscrolly:w.getScrollTop();w.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=w.scrollrunning?w.newscrollx:w.getScrollLeft();w.doScrollPos(i,t,e)},this.doScrollPos=function(t,e,i){var o=w.getScrollTop(),n=w.getScrollLeft();((w.newscrolly-o)*(e-o)<0||(w.newscrollx-n)*(t-n)<0)&&w.cancelScroll();var r=!1;if(w.bouncescroll&&w.rail.visibility||(e<0?r=!(e=0):e>w.page.maxh&&(e=w.page.maxh,r=!0)),w.bouncescroll&&w.railh.visibility||(t<0?r=!(t=0):t>w.page.maxw&&(t=w.page.maxw,r=!0)),w.scrollrunning&&w.newscrolly===e&&w.newscrollx===t)return!0;w.newscrolly=e,w.newscrollx=t,w.dst={},w.dst.x=t-n,w.dst.y=e-o,w.dst.px=n,w.dst.py=o;var s=0|Math.sqrt(w.dst.x*w.dst.x+w.dst.y*w.dst.y),a=w.getTransitionSpeed(s);w.bzscroll={};var l=r?1:.58;w.bzscroll.x=new u(n,w.newscrollx,a,0,0,l,1),w.bzscroll.y=new u(o,w.newscrolly,a,0,0,l,1);A();var c=function(){if(w.scrollrunning){var t=w.bzscroll.y.getPos();w.setScrollLeft(w.bzscroll.x.getNow()),w.setScrollTop(w.bzscroll.y.getNow()),t<=1?w.timer=W(c):(w.scrollrunning=!1,w.timer=0,w.triggerScrollEnd())}};w.scrollrunning||(w.triggerScrollStart(n,o,t,e,a),w.scrollrunning=!0,w.timer=W(c))},this.cancelScroll=function(){return w.timer&&H(w.timer),w.timer=0,w.bzscroll=!1,w.scrollrunning=!1,w};else this.doScrollLeft=function(t,e){var i=w.getScrollTop();w.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=w.getScrollLeft();w.doScrollPos(i,t,e)},this.doScrollPos=function(t,e,i){var o=t>w.page.maxw?w.page.maxw:t;o<0&&(o=0);var n=e>w.page.maxh?w.page.maxh:e;n<0&&(n=0),w.synched("scroll",function(){w.setScrollTop(n),w.setScrollLeft(o)})},this.cancelScroll=function(){};this.doScrollBy=function(t,e){y(0,t)},this.doScrollLeftBy=function(t,e){y(t,0)},this.doScrollTo=function(t,e){var i=e?Math.round(t*w.scrollratio.y):t;i<0?i=0:i>w.page.maxh&&(i=w.page.maxh),w.cursorfreezed=!1,w.doScrollTop(t)},this.checkContentSize=function(){var t=w.getContentSize();t.h==w.page.h&&t.w==w.page.w||w.resize(!1,t)},w.onscroll=function(t){w.rail.drag||w.cursorfreezed||w.synched("scroll",function(){w.scroll.y=Math.round(w.getScrollTop()/w.scrollratio.y),w.railh&&(w.scroll.x=Math.round(w.getScrollLeft()/w.scrollratio.x)),w.noticeCursor()})},w.bind(w.docscroll,"scroll",w.onscroll),this.doZoomIn=function(t){if(!w.zoomactive){w.zoomactive=!0,w.zoomrestore={style:{}};var e=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],i=w.win[0].style;for(var o in e){var n=e[o];w.zoomrestore.style[n]=void 0!==i[n]?i[n]:""}w.zoomrestore.style.width=w.win.css("width"),w.zoomrestore.style.height=w.win.css("height"),w.zoomrestore.padding={w:w.win.outerWidth()-w.win.width(),h:w.win.outerHeight()-w.win.height()},S.isios4&&(w.zoomrestore.scrollTop=O.scrollTop(),O.scrollTop(0)),w.win.css({position:S.isios4?"absolute":"fixed",top:0,left:0,zIndex:M+100,margin:0});var r=w.win.css("backgroundColor");return(""===r||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(r))&&w.win.css("backgroundColor","#fff"),w.rail.css({zIndex:M+101}),w.zoom.css({zIndex:M+102}),w.zoom.css("backgroundPosition","0 -18px"),w.resizeZoom(),w.onzoomin&&w.onzoomin.call(w),w.cancelEvent(t)}},this.doZoomOut=function(t){if(w.zoomactive)return w.zoomactive=!1,w.win.css("margin",""),w.win.css(w.zoomrestore.style),S.isios4&&O.scrollTop(w.zoomrestore.scrollTop),w.rail.css({"z-index":w.zindex}),w.zoom.css({"z-index":w.zindex}),w.zoomrestore=!1,w.zoom.css("backgroundPosition","0 0"),w.onResize(),w.onzoomout&&w.onzoomout.call(w),w.cancelEvent(t)},this.doZoom=function(t){return w.zoomactive?w.doZoomOut(t):w.doZoomIn(t)},this.resizeZoom=function(){if(w.zoomactive){var t=w.getScrollTop();w.win.css({width:O.width()-w.zoomrestore.padding.w+"px",height:O.height()-w.zoomrestore.padding.h+"px"}),w.onResize(),w.setScrollTop(Math.min(w.page.maxh,t))}},this.init(),j.nicescroll.push(this)},R=function(t){var m=this;this.nc=t,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.reset=function(t,e){m.stop(),m.steptime=0,m.lasttime=A(),m.speedx=0,m.speedy=0,m.lastx=t,m.lasty=e,m.lastscrollx=-1,m.lastscrolly=-1},this.update=function(t,e){var i=A();m.steptime=i-m.lasttime,m.lasttime=i;var o=e-m.lasty,n=t-m.lastx,r=m.nc.getScrollTop()+o,s=m.nc.getScrollLeft()+n;m.snapx=s<0||s>m.nc.page.maxw,m.snapy=r<0||r>m.nc.page.maxh,m.speedx=n,m.speedy=o,m.lastx=t,m.lasty=e},this.stop=function(){m.nc.unsynched("domomentum2d"),m.timer&&clearTimeout(m.timer),m.timer=0,m.lastscrollx=-1,m.lastscrolly=-1},this.doSnapy=function(t,e){var i=!1;e<0?i=!(e=0):e>m.nc.page.maxh&&(e=m.nc.page.maxh,i=!0),t<0?i=!(t=0):t>m.nc.page.maxw&&(t=m.nc.page.maxw,i=!0),i?m.nc.doScrollPos(t,e,m.nc.opt.snapbackspeed):m.nc.triggerScrollEnd()},this.doMomentum=function(t){var e=A(),i=t?e+t:m.lasttime,o=m.nc.getScrollLeft(),n=m.nc.getScrollTop(),r=m.nc.page.maxh,s=m.nc.page.maxw;m.speedx=0<s?Math.min(60,m.speedx):0,m.speedy=0<r?Math.min(60,m.speedy):0;var a=i&&e-i<=60;(n<0||r<n||o<0||s<o)&&(a=!1);var l=!(!m.speedy||!a)&&m.speedy,c=!(!m.speedx||!a)&&m.speedx;if(l||c){var u=Math.max(16,m.steptime);if(50<u){var d=u/50;m.speedx*=d,m.speedy*=d,u=50}m.demulxy=0,m.lastscrollx=m.nc.getScrollLeft(),m.chkx=m.lastscrollx,m.lastscrolly=m.nc.getScrollTop(),m.chky=m.lastscrolly;var h=m.lastscrollx,p=m.lastscrolly,f=function(){var t=600<A()-e?.04:.02;m.speedx&&(h=Math.floor(m.lastscrollx-m.speedx*(1-m.demulxy)),((m.lastscrollx=h)<0||s<h)&&(t=.1)),m.speedy&&(p=Math.floor(m.lastscrolly-m.speedy*(1-m.demulxy)),((m.lastscrolly=p)<0||r<p)&&(t=.1)),m.demulxy=Math.min(1,m.demulxy+t),m.nc.synched("domomentum2d",function(){if(m.speedx){m.nc.getScrollLeft();m.chkx=h,m.nc.setScrollLeft(h)}if(m.speedy){m.nc.getScrollTop();m.chky=p,m.nc.setScrollTop(p)}m.timer||(m.nc.hideCursor(),m.doSnapy(h,p))}),m.demulxy<1?m.timer=setTimeout(f,u):(m.stop(),m.nc.hideCursor(),m.doSnapy(h,p))};f()}else m.doSnapy(m.nc.getScrollLeft(),m.nc.getScrollTop())}},n=t.fn.scrollTop;t.cssHooks.pageYOffset={get:function(t,e,i){var o=j.data(t,"__nicescroll")||!1;return o&&o.ishwscroll?o.getScrollTop():n.call(t)},set:function(t,e){var i=j.data(t,"__nicescroll")||!1;return i&&i.ishwscroll?i.setScrollTop(parseInt(e)):n.call(t,e),this}},t.fn.scrollTop=function(e){if(void 0!==e)return this.each(function(){var t=j.data(this,"__nicescroll")||!1;t&&t.ishwscroll?t.setScrollTop(parseInt(e)):n.call(j(this),e)});var t=this[0]&&j.data(this[0],"__nicescroll")||!1;return t&&t.ishwscroll?t.getScrollTop():n.call(this)};var s=t.fn.scrollLeft;j.cssHooks.pageXOffset={get:function(t,e,i){var o=j.data(t,"__nicescroll")||!1;return o&&o.ishwscroll?o.getScrollLeft():s.call(t)},set:function(t,e){var i=j.data(t,"__nicescroll")||!1;return i&&i.ishwscroll?i.setScrollLeft(parseInt(e)):s.call(t,e),this}},t.fn.scrollLeft=function(e){if(void 0!==e)return this.each(function(){var t=j.data(this,"__nicescroll")||!1;t&&t.ishwscroll?t.setScrollLeft(parseInt(e)):s.call(j(this),e)});var t=this[0]&&j.data(this[0],"__nicescroll")||!1;return t&&t.ishwscroll?t.getScrollLeft():s.call(this)};var l=function(t){var e=this;if(this.length=0,this.name="nicescrollarray",this.each=function(t){return j.each(e,t),e},this.push=function(t){e[e.length]=t,e.length++},this.eq=function(t){return e[t]},t)for(var i=0;i<t.length;i++){var o=j.data(t[i],"__nicescroll")||!1;o&&(this[this.length]=o,this.length++)}return this};!function(t,e,i){for(var o=0,n=e.length;o<n;o++)i(t,e[o])}(l.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(t,e){t[e]=function(){var t=arguments;return this.each(function(){this[e].apply(this,t)})}}),t.fn.getNiceScroll=function(t){return void 0===t?new l(this):this[t]&&j.data(this[t],"__nicescroll")||!1},(t.expr.pseudos||t.expr[":"]).nicescroll=function(t){return void 0!==j.data(t,"__nicescroll")},j.fn.niceScroll=function(n,r){void 0!==r||"object"!=typeof n||"jquery"in n||(r=n,n=!1);var s=new l;return this.each(function(){var t=j(this),e=j.extend({},r);if(n){var i=j(n);e.doc=1<i.length?j(n,t):i,e.win=t}!("doc"in e)||"win"in e||(e.win=t);var o=t.data("__nicescroll")||!1;o||(e.doc=e.doc||t,o=new a(e,t),t.data("__nicescroll",o)),s.push(o)}),1===s.length?s[0]:s},P.NiceScroll={getjQuery:function(){return t}},j.nicescroll||(j.nicescroll=new l,j.nicescroll.options=q)}),function(e){e(function(){var t;e.support.transition=(t=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 i[t]}())&&{end:t}})}(window.jQuery),function(r){var n=function(t,e){this.options=e,this.$element=r(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",r.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};n.prototype={constructor:n,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var e=this,t=r.Event("show");this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var t=r.support.transition&&e.$element.hasClass("fade");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show(),t&&e.$element[0].offsetWidth,e.$element.addClass("in").attr("aria-hidden",!1),e.enforceFocus(),t?e.$element.one(r.support.transition.end,function(){e.$element.focus().trigger("shown")}):e.$element.focus().trigger("shown")}))},hide:function(t){t&&t.preventDefault();t=r.Event("hide"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),r(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),r.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},enforceFocus:function(){var e=this;r(document).on("focusin.modal",function(t){e.$element[0]!==t.target&&!e.$element.has(t.target).length&&e.$element.focus()})},escape:function(){var e=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(t){27==t.which&&e.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,e=setTimeout(function(){t.$element.off(r.support.transition.end),t.hideModal()},500);this.$element.one(r.support.transition.end,function(){clearTimeout(e),t.hideModal()})},hideModal:function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(t){var e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=r.support.transition&&e;if(this.$backdrop=r('<div class="modal-backdrop '+e+'" />').appendTo(document.body),this.$backdrop.click("static"==this.options.backdrop?r.proxy(this.$element[0].focus,this.$element[0]):r.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(r.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),r.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(r.support.transition.end,t):t()):t&&t()}};var t=r.fn.modal;r.fn.modal=function(o){return this.each(function(){var t=r(this),e=t.data("modal"),i=r.extend({},r.fn.modal.defaults,t.data(),"object"==typeof o&&o);e||t.data("modal",e=new n(this,i)),"string"==typeof o?e[o]():i.show&&e.show()})},r.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},r.fn.modal.Constructor=n,r.fn.modal.noConflict=function(){return r.fn.modal=t,this},r(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var e=r(this),i=e.attr("href"),o=r(e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),n=o.data("modal")?"toggle":r.extend({remote:!/#/.test(i)&&i},o.data(),e.data());t.preventDefault(),o.modal(n).one("hide",function(){e.focus()})})}(window.jQuery),function(l){var n=function(t,e){this.init("tooltip",t,e)};n.prototype={constructor:n,init:function(t,e,i){var o,n,r,s,a;for(this.type=t,this.$element=l(e),this.options=this.getOptions(i),this.enabled=!0,a=(r=this.options.trigger.split(" ")).length;a--;)"click"==(s=r[a])?this.$element.on("click."+this.type,this.options.selector,l.proxy(this.toggle,this)):"manual"!=s&&(o="hover"==s?"mouseenter":"focus",n="hover"==s?"mouseleave":"blur",this.$element.on(o+"."+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(n+"."+this.type,this.options.selector,l.proxy(this.leave,this)));this.options.selector?this._options=l.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return(t=l.extend({},l.fn[this.type].defaults,this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var e,i=l.fn[this.type].defaults,o={};if(this._options&&l.each(this._options,function(t,e){i[t]!=e&&(o[t]=e)},this),!(e=l(t.currentTarget)[this.type](o).data(this.type)).options.delay||!e.options.delay.show)return e.show();clearTimeout(this.timeout),e.hoverState="in",this.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)},leave:function(t){var e=l(t.currentTarget)[this.type](this._options).data(this.type);if(this.timeout&&clearTimeout(this.timeout),!e.options.delay||!e.options.delay.hide)return e.hide();e.hoverState="out",this.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)},show:function(){var t,e,i,o,n,r,s=l.Event("show");if(this.hasContent()&&this.enabled){if(this.$element.trigger(s),s.isDefaultPrevented())return;switch(t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade"),n="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,t.detach().css({top:0,left:0,display:"block"}),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),e=this.getPosition(),i=t[0].offsetWidth,o=t[0].offsetHeight,n){case"bottom":r={top:e.top+e.height,left:e.left+e.width/2-i/2};break;case"top":r={top:e.top-o,left:e.left+e.width/2-i/2};break;case"left":r={top:e.top+e.height/2-o/2,left:e.left-i};break;case"right":r={top:e.top+e.height/2-o/2,left:e.left+e.width}}this.applyPlacement(r,n),this.$element.trigger("shown")}},applyPlacement:function(t,e){var i,o,n,r,s=this.tip(),a=s[0].offsetWidth,l=s[0].offsetHeight;s.offset(t).addClass(e).addClass("in"),i=s[0].offsetWidth,o=s[0].offsetHeight,"top"==e&&o!=l&&(t.top=t.top+l-o,r=!0),"bottom"==e||"top"==e?(n=0,t.left<0&&(n=-2*t.left,t.left=0,s.offset(t),i=s[0].offsetWidth,o=s[0].offsetHeight),this.replaceArrow(n-a+i,i,"left")):this.replaceArrow(o-l,o,"top"),r&&s.offset(t)},replaceArrow:function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},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")},hide:function(){var t,e=this.tip(),i=l.Event("hide");if(this.$element.trigger(i),!i.isDefaultPrevented())return e.removeClass("in"),l.support.transition&&this.$tip.hasClass("fade")?(t=setTimeout(function(){e.off(l.support.transition.end).detach()},500),e.one(l.support.transition.end,function(){clearTimeout(t),e.detach()})):e.detach(),this.$element.trigger("hidden"),this},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","")},hasContent:function(){return this.getTitle()},getPosition:function(){var t=this.$element[0];return l.extend({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},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)},tip:function(){return this.$tip=this.$tip||l(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var e=t?l(t.currentTarget)[this.type](this._options).data(this.type):this;e.tip().hasClass("in")?e.hide():e.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var t=l.fn.tooltip;l.fn.tooltip=function(o){return this.each(function(){var t=l(this),e=t.data("tooltip"),i="object"==typeof o&&o;e||t.data("tooltip",e=new n(this,i)),"string"==typeof o&&e[o]()})},l.fn.tooltip.Constructor=n,l.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},l.fn.tooltip.noConflict=function(){return l.fn.tooltip=t,this}}(window.jQuery);
(()=>{var e=0,r={};function i(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=i.Adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),r[this.key]=this,e+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete r[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var e,i=[];for(e in r)i.push(r[e]);for(var o=0,n=i.length;o<n;o++)i[o][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),r)r[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.VcWaypoint=i})(),(()=>{function e(t){window.setTimeout(t,1e3/60)}var i=0,o={},u=window.VcWaypoint,t=window.onload;function n(t){this.element=t,this.Adapter=u.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,u.windowContext||(u.windowContext=!0,u.windowContext=new n(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}n.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},n.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".vcwaypoints"),delete o[this.key])},n.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.vcwaypoints",function(){t.didResize||(t.didResize=!0,u.requestAnimationFrame(e))})},n.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.vcwaypoints",function(){t.didScroll&&!u.isTouch||(t.didScroll=!0,u.requestAnimationFrame(e))})},n.prototype.handleResize=function(){u.Context.refreshAll()},n.prototype.handleScroll=function(){var t,e,i={},o={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(t in o){var n,r=o[t],s=r.newScroll>r.oldScroll?r.forward:r.backward;for(n in this.waypoints[t]){var a,l,h=this.waypoints[t][n];null!==h.triggerPoint&&(a=r.oldScroll<h.triggerPoint,l=r.newScroll>=h.triggerPoint,a&&l||!a&&!l)&&(h.queueTrigger(s),i[h.group.id]=h.group)}}for(e in i)i[e].flushTriggers();this.oldScroll={x:o.horizontal.newScroll,y:o.vertical.newScroll}},n.prototype.innerHeight=function(){return this.element==this.element.window?u.viewportHeight():this.adapter.innerHeight()},n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},n.prototype.innerWidth=function(){return this.element==this.element.window?u.viewportWidth():this.adapter.innerWidth()},n.prototype.destroy=function(){var t,e=[];for(t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var o=0,n=e.length;o<n;o++)e[o].destroy()},n.prototype.refresh=function(){var t,e,i=this.element==this.element.window,o=i?void 0:this.adapter.offset(),n={};for(e in this.handleScroll(),t={horizontal:{contextOffset:i?0:o.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:o.top,contextScroll:i?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r,s=t[e];for(r in this.waypoints[e]){var a,l=this.waypoints[e][r],h=l.options.offset,p=l.triggerPoint,c=0,d=null==p;l.element!==l.element.window&&(c=l.adapter.offset()[s.offsetProp]),"function"==typeof h?h=h.apply(l):"string"==typeof h&&(h=parseFloat(h),-1<l.options.offset.indexOf("%"))&&(h=Math.ceil(s.contextDimension*h/100)),a=s.contextScroll-s.contextOffset,l.triggerPoint=Math.floor(c+a-h),c=p<s.oldScroll,a=l.triggerPoint>=s.oldScroll,h=!c&&!a,!d&&(c&&a)?(l.queueTrigger(s.backward),n[l.group.id]=l.group):(!d&&h||d&&s.oldScroll>=l.triggerPoint)&&(l.queueTrigger(s.forward),n[l.group.id]=l.group)}}return u.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)},n.refreshAll=function(){for(var t in o)o[t].refresh()},n.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),n.refreshAll()},u.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},u.Context=n})(),(()=>{function r(t,e){return t.triggerPoint-e.triggerPoint}function s(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.VcWaypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t];e.sort("up"===t||"left"===t?s:r);for(var i=0,o=e.length;i<o;i+=1){var n=e[i];!n.options.continuous&&i!==e.length-1||n.trigger([t])}}this.clearTriggerQueues()},o.prototype.next=function(t){this.waypoints.sort(r);t=i.Adapter.inArray(t,this.waypoints);return t===this.waypoints.length-1?null:this.waypoints[t+1]},o.prototype.previous=function(t){this.waypoints.sort(r);t=i.Adapter.inArray(t,this.waypoints);return t?this.waypoints[t-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){t=i.Adapter.inArray(t,this.waypoints);-1<t&&this.waypoints.splice(t,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return e[t.axis][t.name]||new o(t)},i.Group=o})(),(()=>{var i=window.jQuery,t=window.VcWaypoint;function o(t){this.$element=i(t)}i.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){o.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),i.each(["extend","inArray","isEmptyObject"],function(t,e){o[e]=i[e]}),t.adapters.push({name:"jquery",Adapter:o}),t.Adapter=o})(),(()=>{var n=window.VcWaypoint;function t(o){return function(){var e=[],i=arguments[0];return o.isFunction(arguments[0])&&((i=o.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var t=o.extend({},i,{element:this});"string"==typeof t.context&&(t.context=o(this).closest(t.context)[0]),e.push(new n(t))}),e}}window.jQuery&&(window.jQuery.fn.vcwaypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.vcwaypoint=t(window.Zepto))})();
jQuery(document).ready(function(u){u("style#redux_demo-dynamic-css").remove(),u(".popup-with-form").magnificPopup({type:"inline",closeBtnInside:!0,preloader:!1,midClick:!0,closeOnBgClick:!0,removalDelay:300,focus:"#et_modal_search",mainClass:"my-mfp-slide-bottom effect-delay2",callbacks:{beforeOpen:function(){this.st.focus="#et_modal_search"},open:function(){u("#s").focus()}}}),u(".search-dropdown").on("mouseover",function(){u(this).find("input").focus()}).on("touchstart click",".popup-with-form",function(){u(".search-dropdown").find("input").focus()}),u(".popup-btn").magnificPopup({type:"inline",midClick:!0});var i=u("#contact-form"),a=jQuery(".spinner");u(".required-field").focus(function(){u(this).removeClass("validation-failed")}),i.find("#submit").on("click",function(t){if(t.preventDefault(),u("#contactsMsgs").html(""),a.show(),"",i.find(".required-field").each(function(){""==u(this).val()&&u(this).addClass("validation-failed")}),url=i.attr("action"),data=i.serialize(),data+="&action=et_send_msg_action",u("body").hasClass("g_captcha")){var e=grecaptcha.getResponse();data+="&greresponse="+e}u.ajax({url:myAjax.ajaxurl,method:"GET",data:data,error:function(t){u("#contactsMsgs").html('<p class="error">Error while ajax request<span class="close-parent"></span></p>'),a.hide()},success:function(t){"success"==t.status?(u("#contactsMsgs").html('<p class="success">'+t.msg+'<span class="close-parent"></span></p>'),i.find("input[type=text], textarea").val("")):u("#contactsMsgs").html('<p class="error">'+t.msg+'<span class="close-parent"></span></p>'),a.hide(),B()}})}),u.fn.etMegaSearch=function(t){var e=u(this),i=e.find("form").find('input[type="text"]'),a=e.find(".et-search-result"),o=e.find(".et-close-results");return i.on("keyup",function(){""==u(this).val()||u(this).val().length<3?e.removeClass("loading result-exist"):(data="s="+u(this).val()+"&products="+e.data("products")+"&count="+e.data("count")+"&images="+e.data("images")+"&posts="+e.data("posts")+"&portfolio="+e.data("portfolio")+"&pages="+e.data("pages")+"&action=et_get_search_result",e.addClass("loading"),a.html(""),u.ajax({url:myAjax.ajaxurl,method:"GET",data:data,dataType:"JSON",error:function(t){console.log("AJAX error")},success:function(t){e.addClass("result-exist"),t.results||(t.html="<span class=no-results-text>"+t.html+"</span>"),a.html(t.html)},complete:function(){e.removeClass("loading")}}))}),o.on("click",function(){e.removeClass("result-exist")}),this},u(".et-mega-search").each(function(){u(this).etMegaSearch()}),u.fn.countdown=function(t){u.extend({type:"default"},t);return setInterval(function(){var t=u(".et-timer"),e=Date.parse(t.data("final"))/1e3,i=Math.floor(u.now()/1e3),a=t.find(".days"),o=t.find(".hours"),s=t.find(".minutes"),n=t.find(".seconds"),r=e-i;if(0<r){var l=Math.floor(r/86400);r-=60*l*60*24;var d=Math.floor(r/3600);r-=60*d*60;var c=Math.floor(r/60);r-=60*c,l<10&&(l="0"+l),d<10&&(d="0"+d),c<10&&(c="0"+c),r<10&&(r="0"+r),a<1||"00"==l?a.parent().hide().next().hide():a.text(l),o.text(d),s.text(c),n.text(r)}},1e3),this},u(".et-timer").countdown();var t=u.cookie("etheme_popup_closed");function f(){u("a[rel^='lightboxGall']").magnificPopup({type:"image",gallery:{enabled:!0},image:{titleSrc:function(t){return t.el.attr("alt")}}}),u("a[rel='lightbox']").magnificPopup({type:"image"})}u(".etheme-popup").magnificPopup({type:"inline",preloader:!1,focus:"#username",modal:!0,closeOnBgClick:!0}),"do-not-show"!=t&&u(".etheme-popup").trigger("click"),u(document).on("click",".popup-modal-dismiss",function(t){t.preventDefault(),u.magnificPopup.close(),"do-not-show"==u("#showagain:checked").val()&&u.cookie("etheme_popup_closed","do-not-show",{expires:1,path:"/"})}),f(),u(".slides").each(function(){u(this).magnificPopup({delegate:"a[rel^='lightboxGall']",type:"image",gallery:{enabled:!0},image:{titleSrc:function(t){return t.el.attr("alt")}}})}),u(".mobile-loader > div").fadeOut(300),u(".mobile-loader").delay(300).fadeOut(800,function(){u(".mobile-loader").remove()}),u(".single-product-page .images").addClass("shown");var e,o=u(window).width()<768?0:30;function s(){u(".et_section").each(function(){u(this).css({left:-(u(window).width()-u(".header > .container").width())/2,width:u(window).width(),visibility:"visible"}),u(this).find(".section-back-video video").css({width:u(window).width()})})}function n(){u(".hover-effect-slider").each(function(){var e=u(this),i=0,a=e.find(".product-content-image");if(a.attr("data-images-list")){var o=a.data("images-list"),t='<div class="slider-counter"><span class="current-index">1</span>/<span class="slides-count">'+(o=o.split(",")).length+"</span></div>";1<o.length&&(e.prepend('<div class="small-slider-arrow arrow-left">left</div><div class="small-slider-arrow arrow-right">right</div>'),e.prepend(t),e.find(".arrow-left").on("click",function(t){0<i?i--:i=o.length-1,a.find("img").attr("src",o[i]),a.find("img").attr("srcset",o[i]),e.find(".current-index").text(i+1)}),e.find(".arrow-right").on("click",function(t){i<o.length-1?i++:i=0,a.find("img").attr("src",o[i]),a.find("img").attr("srcset",o[i]),e.find(".current-index").text(i+1)}))}})}u(window).on("resize",function(){var t=u(window).width()<768?0:30;u(".tabs-under-product .tabs").width(u(".content-area").width()-t)}),u(".tabs-under-product .tabs").width(u(".content-area").width()-o),s(),u(window).on("resize",function(){s()}),u(function(){var t=u(".top-panel"),e=u(".page-wrapper"),i=t.outerHeight(),a=!1;u(".show-top-panel").on("click",function(){a=a?(e.attr("style",""),t.removeClass("show-panel"),u(this).removeClass("show-panel"),!1):(u(this).addClass("show-panel"),e.attr("style","transform: translateY("+i+"px);-ms-transform: translateY("+i+"px);-webkit-transform: translateY("+i+"px);"),t.addClass("show-panel"),!0)})}),u(".toggle-element ~ br").remove(),u(".toggle-element ~ p").remove(),u(".block-with-ico h5").next("p").remove(),u(".tab-content .row-fluid").next("p").remove(),u(".tab-content .row-fluid").prev("p").remove(),setTimeout(function(){u(".fade-in").removeClass("fade-in")},500),n(),u(".yith-wcwl-add-button.show").each(function(){var t=u(this).find("a").text();u(this).find("a").attr("data-hover",t)}),u.fn.et_menu=function(t){var i=function(t){t.fadeIn(100).css({display:"list-item",listStyle:"none"}).find("li").css({listStyle:"none"})},a=function(t){var e=t.find(".container > ul > li.menu-item-has-children").length,i=t.find(".container > ul > li").outerWidth();1<e&&(i=i*e+20,t.css({width:i}));var a=u(".menu-wrapper").outerWidth(),o=u(".menu-wrapper").offset().left;a-(t.offset().left-o+i)<0&&t.css({left:"auto",right:0})},o=function(t,e){var i=0,a="current",o=u(".header-wrapper"),s=t;if(s.parent().hasClass(a))e.preventDefault(),s.parent().removeClass(a),s.next().stop().slideUp(n.animTime),o.stop().animate({paddingBottom:0},n.animTime);else{if(s.parent().find(">div").length<1)return;e.preventDefault(),0<s.parent().parent().find("."+a).length&&(i=n.animTime,o.stop().animate({paddingBottom:0},n.animTime)),s.parent().parent().find("."+a).removeClass(a).find(">div").stop().slideUp(n.animTime),setTimeout(function(){s.parent().addClass(a),o.stop().animate({paddingBottom:s.next().height()+50},n.animTime),s.next().stop().slideDown(n.animTime)},i)}},n=u.extend({type:"default",animTime:250,openByClick:!0},t);return"mega"==n.type?this.find(">li>a").on("click",function(t){o(u(this),t)}):this.find(">li").on("mouseenter",function(){var t=u(this).hasClass("open-by-click");if(!t||!n.openByClick&&t){n.openByClick&&(u(".open-by-click.current").find(">a").trigger("click"),u(this).find(">a").unbind("click"));var e=u(this).find("> .nav-sublist-dropdown");i(e),"columns"==n.type&&a(e)}else u(this).find(">a").unbind("click"),u(this).find(">a").bind("click",function(t){o(u(this),t)})}).on("mouseleave",function(){(!u(this).hasClass("open-by-click")||!n.openByClick&&u(this).hasClass("open-by-click"))&&u(this).find("> .nav-sublist-dropdown").fadeOut(100).attr("style","")}),this},u(".main-nav .menu").et_menu({type:"default"}),u(".fixed-header .menu").et_menu({openByClick:!1});var r=!1,l=jQuery(".back-to-top");jQuery(window).on("scroll",function(){window.clearTimeout(e),e=window.setTimeout(function(){jQuery(window).scrollTop()<=0?(r=!1,l.removeClass("btt-shown")):0==r&&(r=!0,l.stop(!0,!0).addClass("btt-shown").on("click",function(){l.removeClass("btt-shown")}))},400)}),jQuery(".back-to-top").on("click",function(t){return jQuery("html, body").animate({scrollTop:0},600),!1}),$portfolio=u(".masonry"),$portfolio.length&&($portfolio.each(function(){var d=u(this);function e(t){var e=t.attr("data-filter"),i=t.parents(".portfolio-filters").next(".portfolio-wrapper").find(".et-load-portfolio"),a=i.attr("data-limit"),o=i.attr("data-class"),s=t.attr("data-category-id"),n=i.attr("data-portfolio-category-page"),r=i.attr("data-portfolio-category-page-name"),l=i.attr("data-columns");return t.parents(".portfolio-filters").find("li a").removeClass("active"),t.hasClass("active")||t.addClass("active"),a&&-1!=a?u.ajax({url:myAjax.ajaxurl,method:"POST",dataType:"json",data:{action:"et_portfolio_ajax",limit:a,category:s,is_category:n,category_name:r,class:o,url:window.location.href,columns:l},before:function(){u("body").removeClass("et-preloader-hide").addClass("et-preloader-on")},success:function(t){u(".portfolio-wrapper").replaceWith(t.html)},complete:function(){var t=u(document).find("."+o).find(".portfolio");setTimeout(function(){t.isotope({itemSelector:".portfolio-item",isOriginLeft:!u("body").hasClass("rtl")}),t.isotope("layout"),f()},200)},after:function(){},error:function(){console.error("error")}}):d.isotope({filter:e}),!1}d.isotope({itemSelector:".portfolio-item"}),d.parents(".page-template-portfolio").find(".portfolio-filters a").on("click",function(t){t.preventDefault(),e(u(this))}),u(".page-template-portfolio").length<1&&d.parent().prev(".portfolio-filters").find("a").on("click",function(t){t.preventDefault(),e(u(this))}),u(document).on("click",".portfolio-pagination a",function(t){t.preventDefault();var e=u(this).parents(".portfolio-wrapper").find(".et-load-portfolio"),i=e.attr("data-class"),a=u(this).attr("href"),o=new URL(a),s=o.searchParams.get("et-paged"),n=e.attr("data-portfolio-category-page-name"),r=o.searchParams.get("et-cat"),l=e.attr("data-portfolio-category-page"),d=e.attr("data-limit"),c=e.attr("data-columns"),p=e.find("span").text();JSON.parse(p);u.ajax({url:myAjax.ajaxurl,method:"POST",dataType:"json",data:{action:"et_portfolio_ajax_pagination",url:window.location.href,class:i,limit:d,is_category:l,category:r,cat:n,paged:s,columns:c},before:function(){},success:function(t){u(".portfolio-wrapper").replaceWith(t)},complete:function(){var t=u(document).find("."+i).find(".portfolio");setTimeout(function(){f(),t.isotope({itemSelector:".portfolio-item",isOriginLeft:!u("body").hasClass("rtl")})},200);var e=u(document).find("."+i).offset().top;u(document).find("."+i).prev(".portfolio-filters").length&&(e-=u(document).find("."+i).prev(".portfolio-filters").outerHeight(!0)),u("html, body").animate({scrollTop:e},1e3)},after:function(){},error:function(){console.error("error")}})})}),setTimeout(function(){u(window).trigger("resize")},500)),$blog=u(".blog-masonry");var d="article";$blog.isotope({itemSelector:d}),u(".copyright .logo-small").on("click",function(){var t=u("");$blog.isotope("insert",t)}),u("body").on("click",".load-more-posts a",function(t){t.preventDefault();var e=u(this).attr("href");0<u(this).length&&(p(e),c=!0)});var c=!1;function p(t){c||u.ajax({url:t,method:"GET",timeout:1e4,dataType:"text",beforeSend:function(){u(".load-more-posts").addClass("loading")},success:function(t){u(".blog-masonry").addClass("with-transition"),u(d).addClass("with-transition"),u(".blog-masonry").isotope("insert",u(t).find(".blog-masonry "+d)),u(".load-more-posts").html(u(t).find(".load-more-posts").html())},error:function(t){console.log("Error loading ajax content!"),window.location.reload()},complete:function(){setTimeout(function(){u(window).trigger("resize")},100),setTimeout(function(){c=!1},500),u(".load-more-posts").removeClass("loading")}})}u(window).on("scroll",function(){var t=u(window),e=u(".load-more-posts");if(0<e.length){var i=t.scrollTop();windowHeight=t.height();var a=e.offset().top,o=e.height(),s=i+windowHeight;if(a+o<i||s<a)return;var n=e.find("a").attr("href");0<e.find("a").length&&(p(n),c=!0)}}),$container=u(".isotope-container"),$isotope=u(".et_isotope"),$isotope.each(function(){var t=u(this);t.isotope({itemSelector:".et_isotope-item"}),setTimeout(function(){t.addClass("with-transition"),t.find(".et_isotope-item").addClass("with-transition"),u(window).trigger("resize")},500)}),$container.each(function(){var t=u(this),e=t.find(".et_isotope");t.find(".et_categories_filter a").data("isotope",e).on("click",function(t){t.preventDefault();var e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})})}),u(window).on("scroll",function(){if(!u("body").hasClass("fixNav-enabled"))return!1;var t=u(".fixed-header-area"),e=u(this).scrollTop();u(".header-wrapper").height()+20<e?t.hasClass("fixed-already")||t.stop().addClass("fixed-already"):t.hasClass("fixed-already")&&t.stop().removeClass("fixed-already")});var m=u("#iconModal");function h(){var t="switcher-active",e="products-grid",i="products-list";jQuery(".switchToList").on("click",function(){jQuery.cookie("products_page")&&"grid"!=jQuery.cookie("products_page")||(jQuery(".switchToList").addClass(t),jQuery(".switchToGrid").removeClass(t),jQuery(".product-loop").fadeOut(300,function(){jQuery(this).removeClass(e).addClass(i).fadeIn(300),jQuery.cookie("products_page","list",{expires:3,path:"/"})}))}),jQuery(".switchToGrid").on("click",function(){jQuery.cookie("products_page")&&"list"!=jQuery.cookie("products_page")||(jQuery(".switchToGrid").addClass(t),jQuery(".switchToList").removeClass(t),jQuery(".product-loop").fadeOut(300,function(){jQuery(this).removeClass(i).addClass(e).fadeIn(300),jQuery.cookie("products_page","grid",{expires:3,path:"/"})}))})}function v(){var t="switcher-active";"grid"==jQuery.cookie("products_page")&&u("body").hasClass("post-type-archive-product")?(jQuery(".product-loop").removeClass("products-list").addClass("products-grid"),jQuery(".switchToGrid").addClass(t)):"list"==jQuery.cookie("products_page")&&u("body").hasClass("post-type-archive-product")?(jQuery(".product-loop").removeClass("products-grid").addClass("products-list"),jQuery(".switchToList").addClass(t)):"list_grid"==view_mode_default||"list"==view_mode_default?jQuery(".switchToList").addClass(t):jQuery(".switchToGrid").addClass(t)}u(".demo-icons .demo-icon").on("click",function(){var t=u(this).find("i").attr("class");m.find("i").each(function(){u(this).attr("class",t)}),m.find("#myModalLabel").text(t),m.modal()}),h(),v(),u("a.showlogin").on("click",function(){return u("form.et_login").slideToggle(),!1});var g=u(".checkout-steps-nav"),w=u(".checkout-steps"),y=u(".continue-checkout");function _(l){var d={first_name:u("#step3 #billing_first_name"),last_name:u("#step3 #billing_last_name"),email_field:u("#step3 #billing_email"),phone:u("#step3 #billing_phone"),country:u("#step3 #billing_country"),address_1:u("#step3 #billing_address_1"),city:u("#step3 #billing_city"),tate:u("#step3 #billing_state")};u("#step3 #billing_postcode").is(":visible")&&(d.postcode=u("#step3 #billing_postcode")),u("#step2").length&&(d.password=u("#step2 #account_password")),u.ajax({url:myAjax.ajaxurl,method:"POST",data:{action:"et_step_checkout"},success:function(t){var e,i,a,o,s=JSON.parse(t);if(e=d,i=l,a=s,o=[],u("ul.woocommerce-error").remove(),jQuery.each(e,function(t,e){try{e=e.get(0).value}catch(t){console.log(t)}if((4===i||5===i||3===i)&&"checked"===u("#createaccount").attr(" checked"))return"password"==t&&""==e&&o.push(a.password),o;4!==i&&5!==i||("first_name"==t&&""==e&&o.push(a.first_name),"last_name"==t&&""==e&&o.push(a.last_name),"email_field"==t&&(e.indexOf("@")<1||""==e)&&o.push(a.email_field),"phone"==t&&""==e&&o.push(a.phone),"country"==t&&""==e&&o.push(a.country),"address_1"==t&&""==e&&o.push(a.address_1),"city"==t&&""==e&&o.push(a.city),"postcode"==t&&""==e&&o.push(a.postcode))}),""==(s=o))!function(t){var e=u(".checkout-steps-nav");u(".checkout-step").fadeOut(200),e.find("li a").removeClass("active filled");for(var i=t;0<i;i--)u("#tostep"+i+" a").addClass("filled");u("#tostep"+t+" a").addClass("active"),jQuery("html, body").animate({scrollTop:u(".checkout-steps-nav").offset().top-100},800),setTimeout(function(){u("#step"+t).fadeIn(200)},200)}(l);else{var n='<ul class="woocommerce-error">';for(var r in s)n+="<li>"+s[r]+"</li>";n+="</ul>",u("form.checkout.woocommerce-checkout").prepend(n)}},error:function(t){alert("ajax error")}})}function b(t){2==t?(u("#tostep2").css("display","inline-block"),u("#createaccount").attr("checked",!0),0<u("#step2").length?u("#step1 .continue-checkout").data("next",2):u("#step1 .continue-checkout").data("next",3)):(u("#tostep2").hide(),u("#createaccount").attr("checked",!1),u("#step1 .continue-checkout").data("next",3))}function C(t,e){u.ajax({url:t,method:"GET",timeout:1e4,dataType:"text",success:function(t){!function(t,e){u(".woocommerce-pagination").html(u(t).find(".woocommerce-pagination").html());for(var i=0;i<e.length;i++)jQuery(e[i]).html(jQuery(t).find(e[i]).html());u(".content.span9").html(u(t).find(".content.span9").html()),u(".widget_layered_nav_filters").html(u(t).find(".widget_layered_nav_filters").html()),u(".content.span12").html(u(t).find(".content.span12").html()),u(".product-grid").removeClass("loading").find("#floatingCirclesG").remove(),u("select.orderby").on("change",function(){u(this).closest("form").submit()}),u("html, body").animate({scrollTop:u(".product-loop").offset().top-100},500),v(),h(),n()}(t,e)},error:function(t){alert("Error loading ajax content!"),window.location.reload()}})}if(g.find("li a").on("click",function(t){t.preventDefault(),_(u(this).data("step"))}),y.on("click",function(t){t.preventDefault(),_(u(this).data("next"))}),w.find(".active").show(),u('input[name="method"]').on("change",function(){b(jQuery(this).val())}),0<w.length&&b(u('input[name="method"]:checked').val()),u(".woocommerce-review-link").on("click",function(){u("#tab_reviews").trigger("click")}),!u("body").hasClass("post-type-archive-tribe_events")){if(1==ajaxFilterEnabled&&!u("body").hasClass("single-product")){u(document).on("click",".widget_layered_nav a, .woocommerce-pagination a",function(t){var e=u(this).attr("href");""==e&&(e=u(this).attr("value")),history.pushState({},"",e);var i=[];return jQuery(".widget_layered_nav").each(function(){i.push("#"+jQuery(this).attr("id"))}),u(".product-loop .product").addClass("loading").prepend('<div id="floatingCirclesG"><div class="f_circleG" id="frotateG_01"></div><div class="f_circleG" id="frotateG_02"></div><div class="f_circleG" id="frotateG_03"></div><div class="f_circleG" id="frotateG_04"></div><div class="f_circleG" id="frotateG_05"></div><div class="f_circleG" id="frotateG_06"></div><div class="f_circleG" id="frotateG_07"></div><div class="f_circleG" id="frotateG_08"></div></div>'),C(e,i),t.stopPropagation(),!1});var k={popped:"state"in window.history&&null!==window.history.state,initialUrl:location.href,initialPop:!1,init:function(){return this.initialPop=!this.popped&&location.href==this.initialUrl,this.popped=!0,this.initialPop}};u(window).on("popstate",function(t){k.init()||location.assign(location.href)})}u(document).on("click",".etheme_add_to_cart_button.ajax_add_to_cart",function(){var t=u(this);t.parents(".product").addClass("loading"),t.parent().prepend('<div class="added-text"><div>'+successfullyAdded+"</div></div>"),setTimeout(function(){u(".added-text").fadeOut(300),t.parent().find(".added-text").remove(),t.parents(".product").removeClass("loading")},3e3)});var x=jQuery(".etheme-simple-product").eModal();u(document).on("click",".etheme-simple-product, .etheme-variable-add-to-cart",function(t){t.preventDefault();var a=u(this);if(!a.hasClass("disabled")){var e=jQuery("form.cart");if(jQuery(this).parents().hasClass("quick-view-popup")&&(e=a.closest("form.cart"),jQuery(this).parents().hasClass("variations_form")&&(e=a.closest(".variations_form"))),a.is(".etheme-simple-product, .product_type_downloadable, .product_type_virtual, .woocommerce-variation-add-to-cart-enabled .etheme-variable-add-to-cart")){u("#top-cart").addClass("updating"),formAction=u(e).attr("action");var i=u(e).serializeArray();return x.eModal("showModal"),u.ajax({url:formAction,data:i,method:"POST",timeout:1e4,dataType:"text",error:function(t){x.eModal("endLoading").eModal("addError","Error with ajax").eModal("addBtn",{title:contBtn,href:"javascript:void(0);",cssClass:"button small hidewindow",hideOnClick:!0})},success:function(t,e,i){jQuery(".shopping-cart-widget").html(jQuery(t).find(".shopping-cart-widget").html()),jQuery(".cart-totals").html(jQuery(t).find(".cart-totals").html()),jQuery("#shopping-cart-modal").html(jQuery(t).find("#shopping-cart-modal").html()),0<u(".thumbnails img").length?productImageSrc=u(".thumbnails img").first().attr("src"):0<u(".main-image-slider img").length?productImageSrc=u(".main-image-slider img").first().attr("src"):productImageSrc=u(".images img").first().attr("src"),a.parents().hasClass("quick-view-popup")&&(productImageSrc=a.parents(".quick-view-popup").find(".main-image img").first().attr("src")),productName=u(".product_title, .product-name, .product-name-hiden").first().text(),x.eModal("endLoading").eModal("setTitle",productName).eModal("addImage",productImageSrc).eModal("addText",successfullyAdded).eModal("addBtn",{title:contBtn,href:"javascript:void(0);",cssClass:"button small hidewindow",hideOnClick:!0}).eModal("addBtn",{title:checkBtn,href:checkoutUrl,cssClass:"button filled active small arrow-right"})}}),!1}return!0}}),u(document.body).on("click",".show-quickly, .show-quickly-btn",function(){var t=u(this),e=t.data("prodid");u.ajax({url:woocommerce_params.ajax_url,method:"POST",data:{action:"et_product_quick_view",prodid:e},dataType:"html",beforeSend:function(){t.parent().parent().addClass("loading"),t.after('<div id="floatingCirclesG"><div class="f_circleG" id="frotateG_01"></div><div class="f_circleG" id="frotateG_02"></div><div class="f_circleG" id="frotateG_03"></div><div class="f_circleG" id="frotateG_04"></div><div class="f_circleG" id="frotateG_05"></div><div class="f_circleG" id="frotateG_06"></div><div class="f_circleG" id="frotateG_07"></div><div class="f_circleG" id="frotateG_08"></div></div>')},complete:function(){t.parent().find("#floatingCirclesG").remove(),t.parent().parent().removeClass("loading")},success:function(t){u.magnificPopup.open({items:{src:'<div class="quick-view-popup mfp-with-anim"><div class="doubled-border">'+t+"</div></div>"},type:"inline",removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-zoom-in-to-left-out"}}},0),u("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />'),u(function(){u(".quick-view-popup .variations_form").wc_variation_form(),u(".quick-view-popup .variations_form .variations select").trigger("change"),I()}),u(".quick-view-popup .images").addClass("shown")},error:function(){u.magnificPopup.open({items:{src:'<div class="quick-view-popup mfp-with-anim"><div class="doubled-border">Error with AJAX request</div></div>'},type:"inline",removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-zoom-in-to-left-out"}}},0)}})});var j=u(".search.hide-input").find("#searchform"),T=j.find(".button"),Q=j.find('input[type="text"]');T.on("click",function(t){t.preventDefault(),Q.fadeIn(200).focus(),u("body").addClass("search-input-shown"),u(document).on("click",function(t){var e=t.target;u(e).is(".search.hide-input")||u(e).parents().is(".search.hide-input")||(Q.fadeOut(200),u("body").removeClass("search-input-shown"))})});var G=u(".tabs");u(".tabs > p > a").unwrap("p");var S,q=u(".left-bar, .right-bar");q.each(function(){var t=u(this);(S=t.find("> a.tab-title").clone().removeClass("tab-title").addClass("tab-title-left")).first().addClass("opened");var e=u('<div class="left-titles"></div>').prependTo(t);e.html(S),t.find(".tab-content").css({minHeight:e.height()})}),G.each(function(){var i=u(this);function a(t){var e,i=0<u(".fixed-header").length?u(".fixed-header").outerHeight():0;e=u("[id=content_"+t+"]").offset().top-i-u("[id="+t+"]").outerHeight()-10,u("html, body").animate({scrollTop:e},1e3)}i.hasClass("closed-tabs")||i.find(".tab-title").first().addClass("opened").next().show(),i.find(".tab-title, .tab-title-left").on("click",function(t){t.preventDefault();var e=u(this).attr("id");u(this).hasClass("opened")?(i.hasClass("accordion")||u(window).width()<767)&&(u(this).removeClass("opened"),u("#content_"+e).hide()):(i.find(".tab-title, .tab-title-left").each(function(){var t=u(this).attr("id");u(this).removeClass("opened"),u("#content_"+t).hide()}),i.hasClass("accordion")||u(window).width()<767?(u("#content_"+e).removeClass("tab-content").show(),setTimeout(function(){u("#content_"+e).addClass("tab-content").show()},1)):u("#content_"+e).show(),setTimeout(function(){a(e)},200),u(this).addClass("opened"))})}),I();var O="+",D="&ndash;";if(catsAccordion){var P=u(".product-categories");P.find("> li").has(".children").has("li").addClass("parent-level0"),P.find("li").has(".children").prepend('<div class="open-this">+</div>'),0<u(".current-cat.parent-level0, .current-cat, .current-cat-parent").length&&P.find(".current-cat.parent-level0, .current-cat-parent").find("> .open-this").html(D).parent().addClass("opened").find("> ul.children").show(),P.find(".open-this").on("click",function(){u(this).parent().hasClass("opened")?u(this).html(O).parent().removeClass("opened").find("> ul, > div.nav-sublist-dropdown").slideUp(200):u(this).html(D).parent().addClass("opened").find("> ul, > div.nav-sublist-dropdown").slideDown(200)})}u(".toggle-block").find(".toggle-element").find(".toggle-title").on("click",function(t){t.preventDefault(),u(this).hasClass("opened")?u(this).removeClass("opened").find(".open-this").html(O).parent().parent().find(".toggle-content").slideUp(200):(u(this).parent().hasClass("noMultiple")&&u(this).parent().find(".toggle-element").removeClass("opened").find(".open-this").html(O).parent().parent().find(".toggle-content").slideUp(200),u(this).addClass("opened").find(".open-this").html(D).parent().parent().find(".toggle-content").slideDown(200))});var M=u(".mobile-nav div > ul");M.addClass("et-mobile-menu"),M.find("li:has(ul)",this).each(function(){u(this).prepend('<span class="open-child"></span>')}),M.find(".open-child").on("click",function(){u(this).parent().hasClass("over")?u(this).parent().removeClass("over").find(">ul").slideUp(200):(u(this).parent().parent().find(">li.over").removeClass("over").find(">ul").slideUp(200),u(this).parent().addClass("over").find(">ul").slideDown(200))}),u(".menu-icon, .close-mobile-nav").on("click",function(t){u("body").hasClass("mobile-nav-shown")?u("body").removeClass("mobile-nav-shown"):u("body").addClass("mobile-nav-shown",function(){setTimeout(function(){u(document).one("click",function(t){var e=t.target;u(e).is(".mobile-nav")||u(e).parents().is(".mobile-nav")||u("body").removeClass("mobile-nav-shown")})},111)})}),u(".side-area-icon, .close-side-area").on("click",function(t){u("body").hasClass("shown-side-area")?u("body").removeClass("shown-side-area"):u("body").addClass("shown-side-area",function(){setTimeout(function(){u(document).one("click",function(t){var e=t.target;u(e).is(".side-area")||u(e).parents().is(".side-area")||u("body").removeClass("shown-side-area")})},111)})}),B();var z=u("#commentform");z.find("#submit").on("click",function(t){u("#commentsMsgs").html(""),z.find(".required-field").each(function(){""==u(this).val()&&(u(this).addClass("validation-failed"),t.preventDefault())})});var A=u(".animated-counter");u(window).on("scroll",function(){var a=u(this).scrollTop();A.each(function(){var t=u(this).offset().top,e=u(this).outerHeight(),i=u(window).height();u(this).hasClass("loaded")||a<t+e-i||function(t){var e=parseInt(t.text()),i=t.data("value");if(!(i<=e)){var a=200,o=parseInt((i-e)/a.toFixed());o<1&&(o=1,a=i-e);var s=parseInt((((i-e)/o-a)*o).toFixed())+e,n=0,r=setInterval(function(){n++,s+=o,t.text(s),n==a&&clearInterval(r)},1);t.addClass("loaded")}}(u(this))})}),767<u(window).width()&&u(".parallax-section").each(function(){var t=u(this).data("parallax-speed")||.1;u(this).parallax("50%",t)})}function I(){u("form.variations_form").on("found_variation",function(t,e){var i={image:e.image.src,link:e.image.full_src,title:e.image.title,srcset:e.image.srcset,thumb:e.image.thumb_src};if(null!=i.image){var a=u(this).closest(".product"),o=a.find("a#main-zoom-image img:eq(0)"),s=a.find("a#main-zoom-image");s.attr("data-o_href",s.attr("href")),void 0===s.attr("data-o_src")&&s.attr("data-o_src",o.attr("src")),void 0===s.attr("data-thumb-o_src")&&s.attr("data-thumb-o_src",o.attr("data-thumb_src")),u(".main-image-slider").hasClass("zoom-enabled")?(768<u(window).width()&&5<i.image.length&&5<i.link.length&&setTimeout(function(){u("a#main-zoom-image").swinxyzoom("load",i.image,i.link)},500),setTimeout(function(){u("a#main-zoom-image").attr("href",i.link),u(".product-thumbnails-slider li:eq(0) img").attr("src",i.thumb)},500)):(u("a#main-zoom-image").attr("href",i.link),u(".product-thumbnails-slider li:eq(0) img").attr("src",i.thumb)),0<u(".quick-view-popup").length&&(u(".quick-view-popup .main-image img").attr("data-o_src",u(".quick-view-popup .main-image img").attr("src")),u(".quick-view-popup .main-image img").attr("data-o_srcset",u(".quick-view-popup .main-image img").attr("srcset")),u(".quick-view-popup .main-image img").attr("src",i.image),u(".quick-view-popup .main-image img").attr("srcset",i.srcset)),1<u(".main-image-slider .slides li").length&&u(".main-image-slider").flexslider(0),1<u(".product-thumbnails-slider .slides li").length&&u(".product-thumbnails-slider").flexslider(0)}}).on("reset_image",function(t){var e=u(this).closest(".product"),i=e.find("a#main-zoom-image img:eq(0)"),a=e.find("a#main-zoom-image"),o={src:i.attr("data-o_data-src"),href:a.attr("data-o_href"),thumb:a.attr("data-thumb-o_src")};0<u(".quick-view-popup").length&&(o.href=u(".quick-view-popup .main-image img").data("o_src"),o.srcset=u(".quick-view-popup .main-image img").data("o_srcset"),u(".quick-view-popup .main-image img").attr("src",o.href),u(".quick-view-popup .main-image img").attr("srcset",o.srcset)),u(".main-image-slider").hasClass("zoom-enabled")?(void 0!==o.src&&void 0!==o.href&&(768<u(window).width()&&5<o.src.length&&5<o.href.length&&(o.href=o.src,setTimeout(function(){u("a#main-zoom-image").swinxyzoom("load",o.src,o.href)},500)),u("a#main-zoom-image").attr("href",o.href)),setTimeout(function(){u(".product-thumbnails-slider li:eq(0) img").attr("src",o.thumb)},500)):(o.href=i.attr("data-o_data-large_image"),u(".woocommerce-product-gallery__image a").attr("href",o.href),u("a#main-zoom-image").attr("href",o.href),u(".product-thumbnails-slider li:eq(0) img").attr("src",o.thumb)),1<u(".main-image-slider .slides li").length&&u(".main-image-slider").flexslider(0),1<u(".product-thumbnails-slider .slides li").length&&u(".product-thumbnails-slider").flexslider(0)}),u(".variations_form .variations select").trigger("change")}function B(){jQuery(".close-parent").on("click",function(t){jQuery(this).parent().slideUp(100)})}}),function(d){var i=d(window),c=i.height();i.on("resize",function(){c=i.height()}),d.fn.parallax=function(s,n,t){var r,l=d(this);function e(){var o=i.scrollTop();l.each(function(){var t=d(this),e=t.offset().top,i=r(t),a=o+c;e+i<o||a<e||l.style("background-position",s+" "+Math.round((e-a)*n)+"px","important")})}l.each(function(){l.offset().top}),r=t?function(t){return t.outerHeight(!0)}:function(t){return t.height()},(arguments.length<1||null===s)&&(s="50%"),(arguments.length<2||null===n)&&(n=.1),(arguments.length<3||null===t)&&(t=!0),i.bind("scroll",e).on("resize",e),e()}}(jQuery),function(n){if(!n.fn.style){var o=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};!!CSSStyleDeclaration.prototype.getPropertyValue||(CSSStyleDeclaration.prototype.getPropertyValue=function(t){return this.getAttribute(t)},CSSStyleDeclaration.prototype.setProperty=function(t,e,i){if(this.setAttribute(t,e),""!=(i=void 0!==i?i:"")){var a=new RegExp(o(t)+"\\s*:\\s*"+o(e)+"(\\s*;)?","gmi");this.cssText=this.cssText.replace(a,t+": "+e+" !"+i+";")}},CSSStyleDeclaration.prototype.removeProperty=function(t){return this.removeAttribute(t)},CSSStyleDeclaration.prototype.getPropertyPriority=function(t){return new RegExp(o(t)+"\\s*:\\s*[^\\s]*\\s*!important(\\s*;)?","gmi").test(this.cssText)?"important":""}),n.fn.style=function(t,e,i){if(void 0!==this.get(0)){var a=this.get(0).style;if(void 0===t)return a;if(0<t.indexOf(":")){var o=t.indexOf(":");e=void 0!==e?e:t.substring(o+1,t.length),t=t.substring(0,o)}if(void 0===e)return a.getPropertyValue(t);i=void 0!==i?i:"",a.setProperty(t,e,i)}},n("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />'),n(document).on("click",".plus, .minus",function(){var t=n(this).closest(".quantity").find(".qty"),e=parseFloat(t.val()),i=parseFloat(t.attr("max")),a=parseFloat(t.attr("min")),o=t.attr("step"),s="";e&&""!==e&&"NaN"!==e||(e=0),""!==i&&"NaN"!==i||(i=""),""!==a&&"NaN"!==a||(a=0),"any"!==o&&""!==o&&void 0!==o&&"NaN"!==parseFloat(o)||(o=1),n(this).is(".plus")?i&&(i==e||i<e)?t.val(i):(s=e+parseFloat(o),s=-1!==o.indexOf(".")||-1!==o.indexOf(",")?s.toFixed(3):parseFloat(s),t.val(s)):a&&(a==e||e<a)?t.val(a):0<e&&(s=e-parseFloat(o),s=-1!==o.indexOf(".")||-1!==o.indexOf(",")?s.toFixed(3):parseFloat(s),t.val(s)),t.trigger("change")}),n(document.body).on("updated_wc_div",function(){n("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />')}),n(".submitbtn").on("click",function(t){t.preventDefault(),n(".form-error").addClass("hidden");var e="";if(n("body").hasClass("g_captcha"))e=grecaptcha.getResponse();var i={password1:n("#wp_signup_form #et_pass"),password2:n("#wp_signup_form #et_pass2"),usermail:n("#wp_signup_form #email"),username:n("#wp_signup_form #username")};return jQuery.ajax({type:"POST",dataType:"JSON",url:myAjax.ajaxurl,data:{action:"etheme_account_register",password1:i.password1.val(),password2:i.password2.val(),usermail:i.usermail.val(),username:i.username.val(),greresponse:e,security:n("#wp_signup_form #et_new_user_nonce").val()},success:function(t){"success"!=t.status?(t.fields.username&&("empty"==t.fields.username?i.username.parents(".form-row").find(".form-error.empty").removeClass("hidden"):"exist"==t.fields.username&&i.username.parents(".form-row").find(".form-error.exists").removeClass("hidden")),t.fields.usermail&&("empty"==t.fields.usermail?i.usermail.parents(".form-row").find(".form-error.empty").removeClass("hidden"):"exists"==t.fields.usermail?i.usermail.parents(".form-row").find(".form-error.exists").removeClass("hidden"):"invalid"==t.fields.usermail&&i.usermail.parents(".form-row").find(".form-error.invalid").removeClass("hidden")),t.fields.password1&&("empty"==t.fields.password1?i.password1.parents(".form-row").find(".form-error.empty").removeClass("hidden"):"match"==t.fields.password1?i.password1.parents(".form-row").find(".form-error.match").removeClass("hidden"):"length"==t.fields.password1&&i.password1.parents(".form-row").find(".form-error.length").removeClass("hidden")),t.fields.password2&&("empty"==t.fields.password2?i.password2.parents(".form-row").find(".form-error.empty").removeClass("hidden"):"match"==t.fields.password2?i.password2.parents(".form-row").find(".form-error.match").removeClass("hidden"):"length"==t.fields.password2&&i.password2.parents(".form-row").find(".form-error.length").removeClass("hidden"))):window.location.href=t.redirecturl}}),!1})}}(jQuery);
document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",(()=>{for(var e=["-webkit-","-moz-","-ms-","-o-",""],t=0;t<e.length;t++)e[t]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")})(),(c=>{"function"!=typeof window.vc_js&&(window.vc_js=function(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),vc_ttaToggleBehaviour(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function(e){(e?e.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var e=jQuery(this),t=1e3*parseInt(e.attr("data-interval"),10),i=e.attr("data-flex_fx"),o=0==t?!1:!0;e.is(":visible")&&setTimeout(function(){e.flexslider({animation:i,slideshow:o,slideshowSpeed:t,sliderSpeed:800,smoothHeight:!0})},1)})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var e,t;0<jQuery(".wpb_googleplus").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://apis.google.com/js/plusone.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var e,t;0<jQuery(".wpb_pinterest").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://assets.pinterest.com/js/pinit.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.find(".vc_single_bar").each(function(e){var t=jQuery(this).find(".vc_bar"),i=t.data("percentage-value");setTimeout(function(){t.css({width:i+"%"})},200*e)})},{offset:"85%"})})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function(e){function t(e){e&&e.preventDefault&&e.preventDefault();var t=jQuery(this).closest(".vc_toggle"),e=t.find(".vc_toggle_content");t.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){t.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){t.addClass("vc_toggle_active")}})}(e?e.hasClass("vc_toggle_title")?e.unbind("click"):e.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",t)}),"function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function(e){function t(){var e=jQuery(this);e.toggleClass("wpb-tta-toggle-active"),e.parent().parent().parent().find(".vc_pagination-item").each(function(){if(!c(this).hasClass("vc_active"))return c(this).find("a").click(),!1})}(e?e.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click",t),setTimeout(function(){jQuery(".wpb-tta-toggle").each(function(){var e=jQuery(this);e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||e.addClass("wpb-tta-toggle-active")})},1e3)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(e){var t,o;jQuery.ui&&(e=e||jQuery(".wpb_tabs, .wpb_tour"),t=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",o=1===parseInt(t[0],10)&&parseInt(t[1],10)<9,e.each(function(){var e=jQuery(this).attr("data-interval"),t=[],i=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(e,t){wpb_prepare_tab_content(e,t)},activate:function(e,t){wpb_prepare_tab_content(e,t)}});if(e&&0<e)try{i.tabs("rotate",1e3*e)}catch(e){window.console&&window.console.warn&&console.warn("tabs behaviours error",e)}jQuery(this).find(".wpb_tab").each(function(){t.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),o?i.tabs("select",jQuery("a",this).attr("href")):i.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var t;e&&e.preventDefault&&e.preventDefault(),o?(t=i.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?t++:t--,t<0?t=i.tabs("length")-1:t>=i.tabs("length")&&(t=0),i.tabs("select",t)):(t=i.tabs("option","active"),e=i.find(".wpb_tab").length,t=jQuery(this).parent().hasClass("wpb_next_slide")?e<=t+1?0:t+1:t-1<0?e-1:t-1,i.tabs("option","active",t))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(){var e=jQuery(this),t=(e.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt(e.data("active-tab"),10)&&parseInt(e.data("active-tab"),10)-1),i=!1===t||"yes"===e.data("collapsible"),t=e.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:t,collapsible:i,navigation:!0,activate:vc_accordionActivate,change:function(e,t){void 0!==jQuery.fn.isotope&&t.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(t.newPanel)}});!0===e.data("vcDisableKeydown")&&(t.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var o={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var e=jQuery(this),t=e.find(".wpb_thumbnails"),i=t.attr("data-layout-mode");t.isotope({itemSelector:".isotope-item",layoutMode:void 0===o[i]?"fitRows":o[i]}),e.find(".categories_filter a").data("isotope",t).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){t.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){(e?e.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var e=jQuery(this);!0!==e.data("carousel_enabled")&&e.is(":visible")&&(e.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(e=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":e.css("margin-left"),"margin-left":0}),(e=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(){var e,t,i=jQuery(this);i.hasClass("wpb_slider_nivo")?(0===(t=1e3*i.attr("data-interval"))&&(t=9999999999),jQuery.fn.nivoSlider&&!i.data("nivo-initialized")&&(i.data("nivo-initialized",!0),i.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:t,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"}))):i.hasClass("wpb_image_grid")&&i.find(".wpb_image_grid_ul")&&i.find(".wpb_image_grid_ul").isotope&&(jQuery.fn.imagesLoaded?e=i.find(".wpb_image_grid_ul").imagesLoaded(function(){e.isotope({itemSelector:".isotope-item",layoutMode:"fitRows",percentPosition:!0})}):i.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows",percentPosition:!0}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1<location.href.indexOf("#!prettyPhoto")&&(location.hash="")},social_tools:""})}catch(e){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",e)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"),!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var s=window.jQuery;function e(){var e;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||(e=s('[data-vc-full-width="true"]'),s.each(e,function(){var e,t,i,o,n,a,r,c=s(this),d=(c.addClass("vc_hidden"),c.next(".vc_row-full-width"));(d=d.length?d:c.parent().next(".vc_row-full-width")).length&&(c.removeAttr("data-vc-full-width-temp"),e=parseInt(c.css("margin-left"),10),t=parseInt(c.css("margin-right"),10),i=0-d.offset().left-e,o=s(window).width(),n={position:"relative",left:i="rtl"===c.css("direction")?(i=i-d.width()+o)+e+t:i,"box-sizing":"border-box",width:o,"max-width":o},c.css(n),c.data("vcStretchContent")||("rtl"===c.css("direction")?((a=i)<0&&(a=0),(r=i)<0&&(r=0)):(r=o-(a=(a=-1*i)<0?0:a)-d.width()+e+t)<0&&(r=0),c.css({"padding-left":a+"px","padding-right":r+"px"})),c.attr("data-vc-full-width-init","true"),c.removeClass("vc_hidden"),s(document).trigger("vc-full-width-row-single",{el:c,offset:i,marginLeft:e,marginRight:t,elFull:d,width:o,maxWidth:o}))}),s(document).trigger("vc-full-width-row",e))}function t(){var e,t,i=s(".vc_row-o-full-height:first");i.length&&(e=s(window).height(),(t=i.offset().top)<e)&&i.css("min-height",100-t/(e/100)+"vh"),s(document).trigger("vc-full-height-row",i)}s(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",e).on("resize.vcRowBehaviour",t),e(),t(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&s(".vc_row-o-full-height").each(function(){"flex"===s(this).css("display")&&s(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds();var n=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),s(".vc_parallax-inner").remove(),s("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),s("[data-vc-parallax]").each(function(){var e,t,i,o;n=!0,"on"===s(this).data("vcParallaxOFade")&&s(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),e=100*s(this).data("vcParallax"),(t=s("<div />").addClass("vc_parallax-inner").appendTo(s(this))).height(e+"%"),i=s(this).data("vcParallaxImage"),(o=vcExtractYoutubeId(i))?insertYoutubeVideoAsBackground(t,o):void 0!==i&&t.css("background-image","url("+i+")"),t.attr("data-bottom-top","top: "+-(e-100)+"%;").attr("data-top-bottom","top: 0%;")}),n&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(e){for(var t=!1,i=1;!1===t;){if(e.hasClass("columns_count_"+i))return t=!0,i;i++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(e,t){var i=t.panel||t.newPanel,o=i.find(".vc_pie_chart:not(.vc_ready)"),n=i.find(".vc_round-chart"),a=i.find(".vc_line-chart"),r=i.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(i),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),i.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&i.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),o.length&&jQuery.fn.vcChat&&o.vcChat(),n.length&&jQuery.fn.vcRoundChart&&n.vcRoundChart({reload:!1}),a.length&&jQuery.fn.vcLineChart&&a.vcLineChart({reload:!1}),r.length&&jQuery.fn.carousel&&r.carousel("resizeAction"),t=i.find(".isotope, .wpb_image_grid_ul"),o=i.find(".wpb_gmaps_widget"),0<t.length&&t.isotope("layout"),o.length&&!o.is(".map_ready")&&((n=o.find("iframe")).attr("src",n.attr("src")),o.addClass("map_ready")),i.parents(".isotope").length&&i.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),c(document).trigger("wpb_prepare_tab_content",i)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var t=window.jQuery,i={};i.newPanel=t(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,i)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(e,t){var i,o,n,a;t.newPanel.length&&t.newHeader.length&&(i=t.newPanel.find(".vc_pie_chart:not(.vc_ready)"),o=t.newPanel.find(".vc_round-chart"),n=t.newPanel.find(".vc_line-chart"),a=t.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),vc_carouselBehaviour(t.newPanel),vc_plugin_flexslider(t.newPanel),i.length&&jQuery.fn.vcChat&&i.vcChat(),o.length&&jQuery.fn.vcRoundChart&&o.vcRoundChart({reload:!1}),n.length&&jQuery.fn.vcLineChart&&n.vcLineChart({reload:!1}),a.length&&jQuery.fn.carousel&&a.carousel("resizeAction"),t.newPanel.parents(".isotope").length)&&t.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){c(".vc_video-bg").remove(),c("[data-vc-video-bg]").each(function(){var e,i=jQuery(this);i.data("vcVideoBg")?(e=i.data("vcVideoBg"),(e=vcExtractYoutubeId(e))&&(i.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground(i,e)),jQuery(window).on("grid:items:added",function(e,t){i.has(t).length&&vcResizeVideoBackground(i)})):i.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function(e,t,i){if("undefined"==typeof YT||void 0===YT.Player)return 100<(i=void 0===i?0:i)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground(e,t,i++)},100);var o=e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");new YT.Player(o[0],{width:"100%",height:"100%",videoId:t,playerVars:{playlist:t,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(e){e.target.mute().setLoop(!0)}}}),vcResizeVideoBackground(e),jQuery(window).on("resize",function(){vcResizeVideoBackground(e)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function(e){var t,i,o,n,a=e.innerWidth(),r=e.innerHeight();a/r<16/9?(t=r*(16/9),i=r,o=-Math.round((t-a)/2)+"px",n=-Math.round((i-r)/2)+"px"):(i=(t=a)*(9/16),n=-Math.round((i-r)/2)+"px",o=-Math.round((t-a)/2)+"px"),t+="px",i+="px",e.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:o,marginTop:n,width:t,height:i})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(e){return void 0!==e&&null!==(e=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&e[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var e=window.jQuery,t=e(".wpb_gmaps_widget");t.on("click",function(){e("iframe",this).css("pointer-events","auto")}),t.on("mouseleave",function(){e("iframe",this).css("pointer-events","none")}),e(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(e){e.each(function(){var e=jQuery(this),t=e.width();e.css("perspective",4*t+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(e){e.each(function(){var e=jQuery(this),t=e.find(".vc-hoverbox-inner"),i=(t.css("min-height",0),e.find(".vc-hoverbox-front-inner").outerHeight()),e=e.find(".vc-hoverbox-back-inner").outerHeight(),i=e<i?i:e;t.css("min-height",(i=i<250?250:i)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var e=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(e),vc_setHoverBoxPerspective(e)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function(){window.vc_js()})})(window.jQuery);