(function(){var t=this;t.N2_=t.N2_||{r:[],d:[]},t.N2R=t.N2R||function(){t.N2_.r.push(arguments)},t.N2D=t.N2D||function(){t.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderBackgrounds",function(a,t){function e(t){this.device=null,this.slider=t,this.hasFixed=!1,this.lazyLoad=parseInt(t.parameters.lazyLoad),this.lazyLoadNeighbor=parseInt(t.parameters.lazyLoadNeighbor),this.loadDeferred=a.Deferred(),this.deviceDeferred=a.Deferred(),this.slider.stages.done("Resized",this.onResized.bind(this)),this.slider.stages.done("StarterSlide",this.onStarterSlide.bind(this))}return e.prototype.loadWithProgress=function(t){for(var e=0,i=this.loadDeferred,s=0;s').appendTo("body")),parseFloat(s.css("fontSize"))/10)+"rem"}}}),N2D("SmartSliderLoad",function(i,t){function e(t,e){this.parameters=i.extend({fade:1,scroll:0},e),this.deferred=i.Deferred(),this.slider=t,this.spinnerCouner=0,this.id=t.sliderElement.attr("id"),this.$window=i(window),this.spinner=i("#"+this.id+"-spinner"),this.$placeholder=i("#"+this.id+"-placeholder")}return e.prototype.start=function(){var i;this.parameters.scroll?(this.onScrollCallback=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.onScroll()):(this.parameters.fade&&(this.loadingArea=this.$placeholder,this.showSpinner("fadePlaceholder"),(i=this.spinner.find(".n2-ss-spinner-counter")).length&&(i.html("0%"),this.slider.stages.done("SlidesReady",function(){this.slider.backgrounds.loadDeferred.progress(function(t,e){i.html(Math.round(t/(e+1)*100)+"%")}.bind(this))}.bind(this)))),this.showSlider())},e.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.slider.sliderElement.offset().top+100&&(window.removeEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.showSlider())},e.prototype.loadLayerImages=function(){var t=i.Deferred();return this.slider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},e.prototype.showSlider=function(){this.slider.stages.done("ResizeFirst",this.stage1.bind(this))},e.prototype.stage1=function(){this.slider.responsive.isReadyToResize=!0,i.when.apply(i,this.slider.widgetDeferreds).done(this.stage2.bind(this))},e.prototype.stage2=function(){this.slider.responsive.doResize(),this.slider.finalizeStarterSlide(),i.when(this.slider.backgrounds.loadDeferred,this.loadLayerImages(),this.slider.stages.get("Fonts").getDeferred()).always(this.stage3.bind(this))},e.prototype.stage3=function(){this.slider.responsive.doResize(),this.slider.stages.resolve("BeforeShow"),this.slider.widgets.onReady(),this.slider.responsive.alignElement.addClass("n2-ss-align-visible"),this.slider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.spinner.find(".n2-ss-spinner-counter").html(""),this.removeSpinner("fadePlaceholder"),this.$placeholder.remove(),this.loadingArea=this.slider.sliderElement,i(window).scroll(),this.slider.stages.resolve("Show"),this.slider.startVisibilityCheck()},e.prototype.showSpinner=function(t){0===this.spinnerCouner&&this.spinner.appendTo(this.loadingArea).css("display",""),this.spinnerCouner++},e.prototype.removeSpinner=function(t){this.spinnerCouner--,this.spinnerCouner<=0&&(this.spinner.detach(),this.spinnerCouner=0)},e}),N2D("SmartSliderPlugins",function(t,i){function s(t){this.slider=t,this.plugins={}}s.prototype.add=function(t,e){this.plugins[t]=new e(this.slider)},s.prototype.get=function(t){return this.plugins[t]||!1};var n={},r=[];return{addPlugin:function(t,e){for(var i=0;i.7*e,n=!0;"partly-visible"===t.mode?(s&&(i.bottom<0||i.top>=i.height)||!s&&(i.bottom-i.height<0||0<=i.top-e+i.height))&&(n=!1):"not-visible"===t.mode&&(n=i.top-e<0&&0'+this.parameters.css+"").appendTo("head")},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){this.stages.resolve("HasDimension"),this.killed=!1,this.isVisible=!0,n2const.isIE?$sliderElement.attr("data-ie",n2const.isIE):n2const.isEdge&&$sliderElement.attr("data-ie",n2const.isEdge),this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlides=[],this.slides=[],this.visibleRealSlides=[],this.visibleSlides=[],this.sliderElement=$sliderElement.data("ss",this),this.needBackgroundWrap=!1,this.blockCarousel=!1,this.parameters=$.extend({plugins:[],admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{touch:"horizontal",keyboard:!1,mousewheel:!1,blockCarouselInteraction:1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:!1,dynamicHeight:0,titles:[],descriptions:[],backgroundParallax:{strength:0,tablet:0,mobile:0},alias:{id:0,smoothScroll:0,slideSwitch:0,scrollSpeed:400}},parameters),this.stages.resolve("Parameters"),this.disabled={layerAnimations:!1,layerSplitTextAnimations:!1,backgroundAnimations:!1,postBackgroundAnimations:!1},this.disableLayerAnimations!==undefined&&!0===this.disableLayerAnimations&&(this.disabled.layerAnimations=!0),n2const.isSamsungBrowser&&(this.disabled.layerSplitTextAnimations=!0,this.disabled.postBackgroundAnimations=!0),this.initCSS();try{eval(this.parameters.callbacks)}catch(t){console.error(t)}n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",this.addWidget.bind(this)),this.isAdmin&&(this.changeTo=function(){}),this.load=new N2Classes.SmartSliderLoad(this,this.parameters.load),this.backgrounds=new N2Classes.SmartSliderBackgrounds(this),this.initSlides(),"function"==typeof this.parameters.initCallbacks&&this.parameters.initCallbacks.call(this,$),this.stages.done("VisibleSlides",this.onSlidesReady.bind(this)),this.initUI(),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.onSlidesReady=function(){this.stages.resolve("SlidesReady")},SmartSliderAbstract.prototype.initUI=function(){for(var i=0;ithis.realSlides.length-1?0:i+1]);this.widgets=new N2Classes.SmartSliderWidgets(this);var isHover=!1,hoverTimeout,eventName;if(this.sliderElement.on({universalenter:function(t){$(t.target).closest(".n2-full-screen-widget").length||(clearTimeout(hoverTimeout),isHover=!0,this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))}.bind(this),universalleave:function(t){t.stopPropagation(),hoverTimeout=setTimeout(function(){isHover=!1,this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)}.bind(this),1e3)}.bind(this)}),this.parameters.carousel||this.initNotCarousel(),this.initHideArrow(),this.controls={},this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(t){t.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}.bind(this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}catch(t){}this.initControls(),this.stages.resolve("UIReady"),this.isAdmin||(eventName="click",this.hasTouch()&&(eventName="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(eventName,function(e){eval(el.data("n2click"))})}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&&4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))})),this.load.start(),this.sliderElement.keypress(function(t){32!==t.charCode&&13!==t.charCode||($target=$(t.target).filter('[role="button"],[tabindex]').not("a,input,select,textarea"),$target.length&&(t.preventDefault(),$(t.target).click().triggerHandler("n2Activate")))}).on("mouseleave",function(t){$(t.currentTarget).blur()})}},SmartSliderAbstract.prototype.initSlides=function(){for(var t=this.sliderElement.find(".n2-ss-slide"),e=0;e=this.slides.length:"previous"===t&&this.currentSlide.index-1<0},SmartSliderAbstract.prototype.initNotCarousel=function(){this.realSlides[0].setPrevious(!1),this.realSlides[this.realSlides.length-1].setNext(!1)},SmartSliderAbstract.prototype.initHideArrow=function(){var i=function(t){this.widgets.setState("nonCarouselFirst",!this.getUIPreviousSlide(t)),this.widgets.setState("nonCarouselLast",!this.getUINextSlide(t))}.bind(this);this.stages.done("StarterSlide",function(){i(this.currentSlide),this.sliderElement.on("SliderResize",function(){i(this.currentSlide)}.bind(this))}.bind(this)),this.sliderElement.on("SlideWillChange",function(t,e){i(e)})},SmartSliderAbstract.prototype.next=function(t,e){var i=this.currentSlide.getNext();return!(!i||!this.getUINextSlide(this.currentSlide))&&this.changeTo(i.index,!1,t,e)},SmartSliderAbstract.prototype.previous=function(t,e){var i=this.getUIPreviousSlide(this.currentSlide);return!!i&&this.changeTo(i.index,!0,t,e)},SmartSliderAbstract.prototype.isChangePossible=function(t){var e,i,s=!1;return"next"===t?(e=this.currentSlide.getNext())&&(s=e.index):"previous"!==t||(i=this.currentSlide.getPrevious())&&(s=i.index),!1!==s&&s!==this.currentSlide.index},SmartSliderAbstract.prototype.nextCarousel=function(t,e){return!!this.next(t,e)||this.changeTo(this.getFirstSlide().index,!1,t,e)},SmartSliderAbstract.prototype.getFirstSlide=function(){return this.slides[0].isVisible?this.slides[0]:this.slides[0].getNext()},SmartSliderAbstract.prototype.getSlideCount=function(){for(var t=0,e=0;ethis.currentSlide.index?this.changeTo(t,!1):this.changeTo(t,!0)},SmartSliderAbstract.prototype.changeTo=function(i,s,n,r){if((i=parseInt(i))===this.currentSlide.index)return!1;if(!this.slides[i].isVisible)return console.error("this slide is not visible on this device"),!1;this.trigger("SlideWillChange",[this.slides[i]]);var o=$.now();return $.when($.when.apply($,this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[i]))),this.focus(n)).done(function(){var t,e;i!==this.currentSlide.index&&this.mainAnimationLastChangeTime<=o&&(this.mainAnimationLastChangeTime=o,"ended"===(t=this.mainAnimation.getState())?(n===undefined&&(n=!1),e=this.mainAnimation,r!==undefined&&(e=r),this._changeTo(i,s,n,r),e.changeTo(this.currentSlide,this.slides[i],s,n),this._changeCurrentSlide(i)):"initAnimation"!==t&&"playing"!==t||(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",function(){this.changeTo.call(this,i,s,n,r)}.bind(this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale())))}.bind(this)),!0},SmartSliderAbstract.prototype.setCurrentRealSlide=function(t){this.currentRealSlide=this.currentSlide=t},SmartSliderAbstract.prototype._changeCurrentSlide=function(t){this.setCurrentRealSlide(this.slides[t]),this.sliderElement.triggerHandler("sliderChangeCurrentSlide")},SmartSliderAbstract.prototype._changeTo=function(t,e,i,s){},SmartSliderAbstract.prototype.revertTo=function(t,e){this.slides[e].unsetActive(),this.slides[t].setActive(),this._changeCurrentSlide(t),this.trigger("SlideWillChange",[this.slides[t]])},SmartSliderAbstract.prototype.forceSetActiveSlide=function(t){t.setActive()},SmartSliderAbstract.prototype.forceUnsetActiveSlide=function(t){t.unsetActive()},SmartSliderAbstract.prototype.updateInsideSlides=function(t){for(var e=0;et?this.changeTo(t,!0,i):this.changeTo(t,!1,i):this.changeTo(t,!e,i))},SmartSliderAbstract.prototype.hide=function(){this.isVisible&&(this.responsive.alignElement.addClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.addClass("n2-ss-slider-has-no-slide"),this.isVisible=!1)},SmartSliderAbstract.prototype.show=function(){this.isVisible||(this.responsive.alignElement.removeClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.removeClass("n2-ss-slider-has-no-slide"),$(window).scroll(),this.isVisible=!0)},SmartSliderAbstract.prototype.startAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",0),!0)},SmartSliderAbstract.prototype.pauseAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",1),!0)},SmartSliderAbstract.prototype.getAnimationAxis=function(){return"horizontal"},SmartSliderAbstract.prototype.getDirectionPrevious=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"next":"previous"},SmartSliderAbstract.prototype.getDirectionNext=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"previous":"next"},SmartSliderAbstract.prototype.previousWithDirection=function(){return this[this.getDirectionPrevious()]()},SmartSliderAbstract.prototype.nextWithDirection=function(){return this[this.getDirectionNext()]()},SmartSliderAbstract.prototype.getUIPreviousSlide=function(t){return t.getPrevious()},SmartSliderAbstract.prototype.getUINextSlide=function(t){return t.getNext()},SmartSliderAbstract}),N2D("Stages",function(r,e){function t(){this.stages={}}function i(t){this.n=t,this.d=r.Deferred()}return t.prototype.get=function(t){return this.stages[t]===e&&(this.stages[t]=new i(t)),this.stages[t]},t.prototype.resolve=function(t){this.get(t).resolve()},t.prototype.done=function(t,e){var i;if("string"==typeof t)i=this.get(t);else{for(var s=[],n=0;n").attr("id",t).css({height:0,lineHeight:0,minHeight:0,margin:0,padding:0}).insertBefore(this.elements.$sliderAlign)},t.prototype.initSmoothScroll=function(){N2R("windowLoad",function(e){var i="#"+this.parameters.alias;e("a[href='"+i+"']").on("click",function(t){this.smoothScrollTo(e(i),t,1)}.bind(this)),this.initAnchorSmoothScroll()}.bind(this))},t.prototype.initAnchorSmoothScroll=function(){this.parameters.anchor.hasAnchor&&this.smoothScrollTo(this.elements.$slider)},t.prototype.getParameterNumber=function(){var s={};return this.parameters.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,e,i){s[e]=i}),s[this.parameters.alias]!==e?parseInt(s[this.parameters.alias]):null},t.prototype.smoothScrollTo=function(t,e,i){(!this.parameters.slideSwitch||this.parameters.scroll||i)&&this.parameters.smoothScroll&&(e&&e.preventDefault(),s("html, body").animate({scrollTop:t.offset().top},this.parameters.scrollSpeed))},t}),N2D("SmartSliderControlAutoplay",function(i,s){"use strict";function t(t,e){this.slider=t,this.state={enabled:1,paused:1,pausedSecondary:0,mainAnimationPlaying:0,wait:0},this.wait=new N2Classes.SmartSliderControlAutoplayWait(this),this._currentCount=1,this.autoplayToSlide=0,this.autoplayToSlideIndex=-1,this.parameters=i.extend({enabled:0,start:1,duration:8e3,autoplayLoop:0,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0},interval:1,intervalModifier:"loop",intervalSlide:"current"},e),this.clickHandled=!1,(t.controls.autoplay=this).parameters.enabled?(this.parameters.duration/=1e3,this.slider.visible(this.onReady.bind(this))):this.disable()}return t.prototype.preventClickHandle=function(){this.clickHandled=!0,setTimeout(function(){this.clickHandled=!1}.bind(this),300)},t.prototype.onReady=function(){this.timeline=NextendTween.to({_progress:0},this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:this.next.bind(this)}),this.slider.sliderElement.on({"BeforeCurrentSlideChange.autoplay":function(){this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this),"CurrentSlideChanged.autoplay":function(t,e){this.timeline.duration(this.getSlideDuration(e.index)),this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this),"mainAnimationStart.autoplay":function(){this._currentCount++,this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this),"mainAnimationComplete.autoplay":function(t,e,i,s){this.timeline.duration(this.getSlideDuration(s)),this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this),"autoplayPause.autoplay":function(){this.setState("paused",1)}.bind(this),"autoplayResume.autoplay":function(t,e){(this.state.paused||0===parseInt(this.parameters.start)&&0===parseInt(this.state.paused))&&(this._currentCount=1),this.setState("pausedSecondary",0),this.setState("paused",0),e!==s&&this.timeline.progress(e)}.bind(this)}),this.initClick(this.parameters.pause.click,this.parameters.resume.click),this.initHover(this.parameters.pause.mouse,this.parameters.resume.mouse),this.initMedia(this.parameters.pause.mediaStarted,this.parameters.resume.mediaEnded),this.slider.stages.resolve("AutoplayReady"),this.slider.trigger("autoplay",0),this.parameters.start||this.setState("pausedSecondary",1),this.setState("paused",0)},t.prototype.setState=function(t,e){this.state[t]!==e&&(this.state[t]=e,this.timeline!==s&&(!this.state.enabled||this.state.paused||this.state.pausedSecondary||this.state.wait||this.state.mainAnimationPlaying?(this.timeline.paused()||this.timeline.pause(),this.state.mainAnimationPlaying||this.isPaused!==s&&this.isPaused||(this.isPaused=!0,this.slider.trigger("autoplayPaused"))):(this.timeline.paused()&&this.timeline.play(),this.isPaused!==s&&!this.isPaused||(this.isPaused=!1,this.slider.trigger("autoplayStarted")))))},t.prototype.initClick=function(e,i){(e||i)&&this.slider.sliderElement.on("universalclick.autoplay",function(t){this.clickHandled||(this.state.pausedSecondary?i&&this.setState("pausedSecondary",0):e&&this.setState("pausedSecondary",1))}.bind(this))},t.prototype.initHover=function(e,i){var s;(e||i)&&(s=!1,this.slider.sliderElement.on({"touchend.autoplay":function(){s=!0,setTimeout(function(){s=!1},300)},"mouseenter.autoplay":function(t){this.state.pausedSecondary?"enter"===i&&this.setState("pausedSecondary",0):s||"enter"!==e||this.setState("pausedSecondary",1)}.bind(this),"mouseleave.autoplay":function(t){this.state.pausedSecondary?"leave"===i&&this.setState("pausedSecondary",0):"leave"===e&&this.setState("pausedSecondary",1)}.bind(this)}))},t.prototype.initMedia=function(t,e){var i=this.slider.sliderElement;t?i.on({"mediaStarted.autoplay":function(t,e){this.wait.add(e)}.bind(this),"mediaEnded.autoplay":function(t,e){this.wait.resolve(e)}.bind(this)}):e&&i.on({"mediaEnded.autoplay":function(){this.setState("pausedSecondary",0)}.bind(this)})},t.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",function(){this.slider.trigger("autoplay",this.timeline.progress())}.bind(this))},t.prototype.next=function(){if(this.timeline.pause(),!this.parameters.autoplayLoop){switch(this.parameters.intervalModifier){case"slide":this.slideSwitchingSlideCount();break;case"slideindex":this.slideSwitchingIndex();break;default:this.slideSwitchingLoop()}0=this.autoplayToSlide&&this.limitAutoplay(),0<=this.autoplayToSlideIndex&&this.slider.slides.length===this.slider.visibleSlides.length&&(this.autoplayToSlideIndex===this.slider.currentRealSlide.index+2||1===this.autoplayToSlideIndex&&this.slider.currentRealSlide.index+this.autoplayToSlideIndex===this.slider.slides.length)&&this.limitAutoplay()}this.slider.nextCarousel(!0)},t.prototype.slideSwitchingLoop=function(){this.autoplayToSlide=this.parameters.interval*this.slider.visibleSlides.length-1,"next"===this.parameters.intervalSlide&&this.autoplayToSlide++},t.prototype.slideSwitchingSlideCount=function(){this.autoplayToSlide=this.parameters.interval},t.prototype.slideSwitchingIndex=function(){var t=Math.max(1,this.parameters.interval);t>this.slider.slides.length&&(t=1),this.autoplayToSlideIndex=t},t.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.setState("paused",1)):this.disable()},t.prototype.disable=function(){this.setState("enabled",0),this.slider.sliderElement.off(".autoplay"),this.slider.stages.resolve("AutoplayDestroyed")},t.prototype.getSlideDuration=function(t){var e=this.slider.realSlides[this.slider.getRealIndex(t)],i=e.minimumSlideDuration;return 0===parseInt(e.minimumSlideDuration)&&(i=this.parameters.duration),i},t}),N2D("SmartSliderControlFullscreen",function(n,t){"use strict";function e(t,e,i){this.slider=t,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._forceFull=this.responsive.parameters.forceFull,this.forceFullpage="auto"==this._type||"fullwidth"==this._type||"fullpage"==this._type,this.forceFullpage&&(this._upscale=this.responsive.parameters.upscale),this.isFullScreen=!1,this.fullParent=this.slider.sliderElement.closest(".n2-ss-align"),this.browserSpecific={};var s=this.slider.sliderElement[0];s.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):s.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):s.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):s.webkitRequestFullscreen?(this.browserSpecific.requestFullscreen="webkitRequestFullscreen",this.browserSpecific.event="webkitfullscreenchange"):(this.browserSpecific.requestFullscreen="nextendRequestFullscreen",this.browserSpecific.event="nextendfullscreenchange",this.fullParent[0][this.browserSpecific.requestFullscreen]=function(){this.fullParent.css({position:"fixed",left:0,top:0,width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e6}),document.fullscreenElement=this.fullParent[0],this.triggerEvent(document,this.browserSpecific.event),n(window).trigger("resize")}.bind(this)),document.exitFullscreen?this.browserSpecific.exitFullscreen="exitFullscreen":document.msExitFullscreen?this.browserSpecific.exitFullscreen="msExitFullscreen":document.mozCancelFullScreen?this.browserSpecific.exitFullscreen="mozCancelFullScreen":document.webkitExitFullscreen?this.browserSpecific.exitFullscreen="webkitExitFullscreen":(this.browserSpecific.exitFullscreen="nextendExitFullscreen",this.fullParent[0][this.browserSpecific.exitFullscreen]=function(){this.fullParent.css({position:"",left:"",top:"",width:"",height:"",backgroundColor:"",zIndex:""}),document.fullscreenElement=null,this.triggerEvent(document,this.browserSpecific.event)}.bind(this)),document.addEventListener(this.browserSpecific.event,this.fullScreenChange.bind(this))}return e.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},e.prototype.requestFullscreen=function(){return!this.isFullScreen&&(this.isFullScreen=!0,this._fullScreen(),!0)},e.prototype.exitFullscreen=function(){return!!this.isFullScreen&&(this.isFullScreen=!1,this._normalScreen(),!0)},e.prototype.triggerEvent=function(t,e){var i;document.createEvent?(i=document.createEvent("HTMLEvents")).initEvent(e,!0,!0):document.createEventObject&&((i=document.createEventObject()).eventType=e),i.eventName=e,t.dispatchEvent?t.dispatchEvent(i):t.fireEvent&&htmlEvents["on"+e]?t.fireEvent("on"+i.eventType,i):t[e]?t[e]():t["on"+e]&&t["on"+e]()},e.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.isFullScreen=!0,this.responsive.parameters.type="fullpage",this.responsive.parameters.upscale=!0,this.responsive.parameters.forceFull=!1,this._marginLeft=this.responsive.containerElement[0].style.marginLeft,this.responsive.containerElement.css(n2const.rtl.marginLeft,0)),this.fullParent.css({width:"100%",height:"100%",backgroundColor:n("body").css("background-color")}).addClass("n2-ss-in-fullscreen"),this.fullParent.get(0)[this.browserSpecific.requestFullscreen]()},e.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},e.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.trigger("n2FullScreen"),n("html").addClass("n2-in-fullscreen"),this.isFullScreen=!0,n(window).trigger("resize")):this.forceFullpage&&(this.responsive.isFullScreen=!1,this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.containerElement.css(n2const.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),n("html").removeClass("n2-in-fullscreen"),n(window).trigger("resize"),this.isFullScreen=!1,this.slider.trigger("n2ExitFullScreen"))},e.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},e}),N2D("SmartSliderControlKeyboard",function(s,t){"use strict";var n;function r(){this.controls=[],document.addEventListener("keydown",this.onKeyDown.bind(this)),document.addEventListener("mousemove",this.onMouseMove.bind(this),{capture:!0})}function o(t,e,i){this.slider=t,this.parameters=s.extend({},i),this.parseEvent="vertical"===e?o.prototype.parseEventVertical:o.prototype.parseEventHorizontal,(n=n||new r).addControl(this),this.slider.sliderElement.on("SliderKeyDown",this.onKeyDown.bind(this)),t.controls.keyboard=this}return r.prototype.onMouseMove=function(t){this.mouseEvent=t},r.prototype.addControl=function(t){this.controls.push(t)},r.prototype.onKeyDown=function(t){if(t.target.tagName.match(/BODY|DIV|IMG/)&&!t.target.isContentEditable){var e;if(this.mouseEvent&&(e=this.findSlider(document.elementFromPoint(this.mouseEvent.clientX,this.mouseEvent.clientY))))return void e.trigger("SliderKeyDown",t);if(document.activeElement!==document.body&&(e=this.findSlider(document.activeElement)))return void e.trigger("SliderKeyDown",t);for(var i=0;i=e&&t.top-.5*i<=e+s(window).height()},o.prototype.onKeyDown=function(t,e){!e.defaultPrevented&&this.isSliderOnScreen()&&this.parseEvent.call(this,e)&&e.preventDefault()},o.prototype.parseEventHorizontal=function(t){switch(t.keyCode){case 39:return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"previous":"next"](),!0;case 37:return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"next":"previous"](),!0;default:return!1}},o.prototype.parseEventVertical=function(t){switch(t.keyCode){case 40:return this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction?!1:(n2const.activeElementBlur(),this.slider.next(),!0);case 38:return this.slider.isChangeCarousel("previous")&&this.slider.parameters.controls.blockCarouselInteraction?!1:(n2const.activeElementBlur(),this.slider.previous(),!0);default:return!1}},o}),N2D("SmartSliderControlMouseWheel",function(s,t){"use strict";function e(t){this.preventScroll={local:!1,curve:!1,curveGlobal:!1,global:!1,localTimeout:!1,curveTimeout:!1,curveGlobalTimeout:!1,globalTimeout:!1},this.maxDelta=0,this.slider=t,document.addEventListener("wheel",this.onGlobalMouseWheel.bind(this),{passive:!1}),t.controls.mouseWheel=this}return e.prototype.hasScrollableParentRecursive=function(t,e){if(e===this.slider.sliderElement[0])return!1;if(e.scrollHeight>e.clientHeight){var i=s(e).css("overflow");if("hidden"!==i&&"visible"!==i)if(t){if(0e&&this.releaseCurveLock(),this.maxDelta=Math.max(this.maxDelta,e),this.preventScroll.curveGlobalTimeout&&clearTimeout(this.preventScroll.curveGlobalTimeout),this.preventScroll.curveGlobalTimeout=setTimeout(s.proxy(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0},this),500))},e.prototype.releaseCurveLock=function(){this.preventScroll.curve=!1,clearTimeout(this.preventScroll.curveTimeout)},e.prototype.local=function(){!1!==this.preventScroll.local&&clearTimeout(this.preventScroll.localTimeout),this.preventScroll.local=!0,this.preventScroll.localTimeout=setTimeout(function(){this.preventScroll.local=!1,this.dynamicDelta||this.releaseCurveLock()}.bind(this),1e3)},e.prototype.global=function(){!1!==this.preventScroll.global&&clearTimeout(this.preventScroll.globalTimeout),this.preventScroll.global=!0,this.preventScroll.globalTimeout=setTimeout(function(){this.preventScroll.global=!1}.bind(this),2e3)},e}),N2D("SmartSliderControlTouch",function(e,t){"use strict";function i(t){this.slider=t,this.minDistance=10,this.interactiveDrag=!0,this.preventMultipleTap=!1,this._animation=t.mainAnimation,this.swipeElement=this.slider.sliderElement.find("> .n2_ss__touch_element"),this.$window=e(window),t.controls.touch=this,t.stages.done("StarterSlide",this.onStarterSlide.bind(this)),t.sliderElement.on("visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))}return i.prototype.onStarterSlide=function(){-1this.minDistance||Math.abs(i.y)>this.minDistance)&&(this.logDistance(n,i.y),this.currentInteraction.percent<1&&this.setTouchProgress(n,i.y),"touch"===this.currentInteraction.type&&t.cancelable&&("switch"!==this.currentInteraction.action&&"hold"!==this.currentInteraction.action||(this.currentInteraction.hadDirection=!0))),"switch"===this.currentInteraction.action)return!0}return!1},i.prototype._end=function(t,e,i,s){var n;"switch"===this.currentInteraction.action&&(n=s?0:this.measureRealDirection(),this.interactiveDrag?(this._animation.timeline.progress()<1&&this._animation.setTouchEnd(n,this.currentInteraction.progress,i.time),this._animation.setTouch(!1)):n&&this.callAction(this.currentInteraction.animationStartDirection),this.swipeElement.removeClass("n2-grabbing")),this.onEnd(),delete this.currentInteraction,Math.abs(i.x)<10&&Math.abs(i.y)<10?this.onTap(t):nextend.preventClick()},i.prototype.onEnd=function(){var t,e,i,s,n;"scroll"===this.currentInteraction.action&&"pointer"===this.currentInteraction.type&&(t=this.currentInteraction.distanceY[0],e=this.currentInteraction.distanceY[this.currentInteraction.distanceY.length-1],i=(t.d-e.d)/(e.t-t.t)*10,s=Date.now(),n=function(){requestAnimationFrame(function(){var t,e;if(!this.kineticScrollCancelled&&i&&(t=Date.now()-s,1<(e=i*Math.exp(-t/325))||e<-1))return this.$window.scrollTop(this.$window.scrollTop()+e),void n();this.onEndKineticScroll()}.bind(this))}.bind(this),this.kineticScrollCancelled=!1,n(),document.addEventListener("pointerdown",this.cancelKineticScroll))},i.prototype.onEndKineticScroll=function(){delete this.kineticScrollCancelled,document.removeEventListener("pointerdown",this.cancelKineticScroll),e("html").css("scroll-behavior","")},i.prototype.setTouchProgress=function(t,e){this.recognizeSwitchInteraction();var i,s=this.getPercent(t);if(this.currentInteraction.percent=s,"switch"===this.currentInteraction.action){if(this.interactiveDrag){switch(this.currentInteraction.animationStartDirection){case"up":i=-1*s;break;case"down":i=s;break;case"left":i=-1*s;break;case"right":i=s}this.currentInteraction.progress=i,this._animation.setTouchProgress(i)}}else"unknown"!==this.currentInteraction.action&&"scroll"!==this.currentInteraction.action||this.startScrollInteraction(e)},i.prototype.startScrollInteraction=function(t){"vertical"!==this.axis&&!n2const.isEdge||this.slider.controlFullscreen.isFullScreen||(this.currentInteraction.action="scroll","pointer"===this.currentInteraction.type&&(e("html").css("scroll-behavior","auto"),this.$window.scrollTop(Math.max(0,this.currentInteraction.scrollTop-t))))},i.prototype.recognizeSwitchInteraction=function(){var t;"unknown"===this.currentInteraction.action&&1e.d||e.d<0&&t.d').attr(i).appendTo(this.$background)))},t.prototype.fadeOut=function(){NextendTween.to(this.$background,.3,{opacity:0})},t}),N2D("SmartSliderSlideBackground",function(l,t){function e(t,e,i){var s;this.loadStarted=!1,this.types=this.types||{color:"SmartSliderSlideBackgroundColor",image:"SmartSliderSlideBackgroundImage",video:"SmartSliderSlideBackgroundVideo"},this.width=0,this.height=0,this.slide=t,this.element=e,t.slider.needBackgroundWrap?(s=e.find("> *"),this.$wrapElement=l('
').appendTo(e).append(s)):this.$wrapElement=this.element,this.manager=i,this.loadDeferred=l.Deferred(),this.elements={color:!1,image:!1,video:!1},this.currentSrc="",this.mode=e.data("mode"),this.opacity=e.data("opacity");var n=this.element.find(".n2-ss-slide-background-image");n.length&&(this.elements.image=new N2Classes[this.types.image](t,i,this,n));var r=this.element.find(".n2-ss-slide-background-color");r.length&&(this.elements.color=new N2Classes[this.types.color](this,r));var o=[];for(var a in this.elements)this.elements[a]&&o.push(this.elements[a].getLoadedDeferred());l.when.apply(l,o).then(function(){this.loadDeferred.resolve()}.bind(this))}return e.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var t=l(this);t.attr("src",t.data("lazysrc"))}),this.loadStarted=!0),"pending"===this.loadDeferred.state()&&this.elements.image&&this.elements.image.preLoad(),this.loadDeferred},e.prototype.fadeOut=function(){this.elements.image&&this.elements.image.fadeOut()},e.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},e.prototype.hasColor=function(){return this.elements.color},e.prototype.hasImage=function(){return this.elements.image},e.prototype.hasVideo=function(){return this.elements.video},e.prototype.hasBackground=function(){return this.elements.color||this.elements.image||this.elements.video},e.prototype.updateBackgroundToDevice=function(t){this.hasImage()&&this.elements.image.updateBackgroundToDevice(t)},e}),N2D("FrontendComponentCommon",["FrontendComponent"],function(s,n){function t(t,e,i,s){this.wraps={},N2Classes.FrontendComponent.prototype.constructor.apply(this,arguments)}return((t.prototype=Object.create(N2Classes.FrontendComponent.prototype)).constructor=t).prototype.init=function(t){this.stateCBs=[],this.state={InComplete:!1};var e=this.$layer.find("> .n2-ss-layer-mask");e.length&&(this.wraps.mask=e);var i=this.$layer.find("> .n2-ss-layer-parallax");switch(i.length&&(this.wraps.parallax=i),this.$layer.data("pm")){case"absolute":this.placement=new N2Classes.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new N2Classes.FrontendPlacementNormal(this);break;case"content":this.placement=new N2Classes.FrontendPlacementContent(this);break;default:this.placement=new N2Classes.FrontendPlacementDefault(this)}this.parallax=this.$layer.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.isAdaptiveFont||this.parent.isAdaptiveFont||this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize",100)),N2Classes.FrontendComponent.prototype.init.call(this,t)},t.prototype.setState=function(t,e){this.state[t]=e;for(var i=0;i"),NextendTween.set(t[0],{rotationZ:e}))},t.prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.call(this,t);var e=this.isVisible;if(this.isVisible=this.getDevice("")&&this.parent.isVisible,this.isVisible===n&&(this.isVisible=1),e&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none"),this.$layer.triggerHandler("visibilityChange",[0])):!e&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display",""),this.$layer.triggerHandler("visibilityChange",[1])),this.isVisible){var i=this.getDevice("fontsize",100);this.refreshBaseSize(i),!this.parent.isAdaptiveFont&&this.isAdaptiveFont?this.$layer.css("font-size",N2Classes.FontSize.toRem(16*i/100)):this.$layer.css("font-size",i+"%");for(var s=0;s').prependTo(this.$element),this.$focusableElements=this.$element.find('a[href]:not([href=""]),link,button,input:not([type="hidden"]),select,textarea,audio[controls],video[controls],[tabindex]:not([tabindex="-1"])'),this.disableFocus(),this.background=!1,t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=e.data("slide-duration"),s.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0)),this._isCurrentlyEdited=this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?(this.$layer=e.find('.n2-ss-layer[data-sstype="slide"]'),t.sliderElement.on({SliderDeviceOrientation:function(){this.slider.visibleRealSlides.push(this),this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Visible")}.bind(this)})):(this.component=new N2Classes.FrontendComponentSectionSlide(this,t,e.find('.n2-ss-layer[data-sstype="slide"]')),this.$layer=this.component.$layer)}var i=!(((e.prototype=Object.create(N2Classes.FrontendSliderSlideAbstract.prototype)).constructor=e).prototype._setInside=function(t){this.isInside!==t&&(this.isInside=t)});try{document.createElement("div").focus(Object.defineProperty({},"preventScroll",{get:function(){i=!0}}))}catch(t){}return e.prototype.focus=function(){i&&this.$slideFocus[0].focus({preventScroll:!0})},e.prototype.allowFocus=function(){this.$focusableElements.attr("tabindex","0"),this.$element.removeAttr("aria-hidden")},e.prototype.disableFocus=function(){this.$focusableElements.attr("tabindex","-1"),this.$element.attr("aria-hidden",!0)},e.prototype.init=function(){var t=this.slider.findSlideBackground(this);0 .n2-ss-layer"))}return((i.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateVerticalAlign(),this.updateInnerAlign(),this.updateMaxWidth()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&0 .n2-ss-layer"))}return((i.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateVerticalAlign(),this.updateInnerAlign(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"==e&&0 .n2-ss-layer"))}return((t.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=t).prototype.init=function(t){N2Classes.FrontendComponentCommon.prototype.init.call(this,t);for(var e=0;e .n2-ss-layer")),e.sliderElement.on({SliderDeviceOrientation:function(t,e){this.onDeviceChange(e.device.toLowerCase())}.bind(this),SliderResize:function(t,e,i){this.onResize(e,i.resizeContext)}.bind(this)}),this.start()}return((i.prototype=Object.create(N2Classes.FrontendComponent.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.call(this,t);for(var e=0;e').appendTo("body")),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&p("html, body").css("overflow","hidden"),nextend.smallestZoom=320,this.slider.stages.resolve("ResponsiveStart"),this.init(),this.onResize(),p(window).on("SliderContentResize",function(t){this.onResize(t)}.bind(this)),this.parameters.onResizeEnabled)if(p(window).on({resize:this.onResize.bind(this),orientationchange:this.onResize.bind(this)}),window.ResizeObserver!==t){var e=0;new ResizeObserver(function(t){t.forEach(function(t){e!==t.contentRect.width&&(e=t.contentRect.width,this.internalResize())}.bind(this))}.bind(this)).observe(this.containerElement.parent().get(0))}else try{p('').on("load",function(t){var i=0,s=p(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",function(t){var e=s.width();i!==e&&(i=e,this.internalResize())}.bind(this));s[0].document.getElementsByTagName("HTML")[0].setAttribute("lang",window.document.getElementsByTagName("HTML")[0].getAttribute("lang"))}.bind(this)).insertBefore(this.containerElement)}catch(t){}},u.prototype.internalResize=function(){this.onResize()},u.prototype.getMinimumContentHeight=function(){for(var t,e=this.slider.visibleRealSlides,i=0,s=0;s');this.$playerElement.prepend(t),this.player=new Vimeo.Player(t[0],{autoplay:!1}),this.promise=this.player.ready(),this.slider.stages.done("BeforeShow",function(){this.promise.then(this.onReady.bind(this))}.bind(this))},i.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);0<=t&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.$playerElement),this.isStatic=this.slide.isStatic();var e=this.$playerElement.closest(".n2-ss-layer");this.layer=e.data("layer"),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){var i;e?this.setState("visible",!0,!0):(i=this.state.play,this.setState("visible",!1,!0),i&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.$cover.length&&(n2const.isMobile&&this.$cover.on("click",this.safePlay.bind(this)),e.one("n2play",function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:function(){this.$cover.remove()}.bind(this)})}.bind(this))),this.player.on("play",function(){this.isStatic||this.slider.trigger("mediaStarted",this.playerId),e.triggerHandler("n2play")}.bind(this)),this.player.on("pause",function(){e.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)}.bind(this)),this.player.on("ended",function(){this.isStatic||this.slider.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&0==this.parameters.loop&&((document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen).call(document),this.slider.next())}.bind(this)),this.isStatic||this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(this.initAutoplay.bind(this)),this.readyDeferred.resolve()},i.prototype.onCurrentSlideChange=function(t){this.slide.isActiveWhen(t)?1==this.parameters.autoplay&&this.setState("play",!0):parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!0,!0)},i.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s,n){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},i.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll&&this.layer.isVisible?this.play():this.pause())},i.prototype.play=function(){this.slider.trigger("mediaStarted",this.playerId),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(function(t){t